1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
15# This configure script may be copied, distributed and modified under the
16# terms of the curl license; see COPYING for more details
17
18## -------------------------------- ##
19##  XC_CONFIGURE_PREAMBLE ver: 1.0  ##
20## -------------------------------- ##
21
22xc_configure_preamble_ver_major='1'
23xc_configure_preamble_ver_minor='0'
24
25#
26# Set IFS to space, tab and newline.
27#
28
29xc_space=' '
30xc_tab='	'
31xc_newline='
32'
33IFS="$xc_space$xc_tab$xc_newline"
34
35#
36# Set internationalization behavior variables.
37#
38
39LANG='C'
40LC_ALL='C'
41LANGUAGE='C'
42export LANG
43export LC_ALL
44export LANGUAGE
45
46#
47# Some useful variables.
48#
49
50xc_msg_warn='configure: WARNING:'
51xc_msg_abrt='Can not continue.'
52xc_msg_err='configure: error:'
53
54#
55# Verify that 'echo' command is available, otherwise abort.
56#
57
58xc_tst_str='unknown'
59(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60case "x$xc_tst_str" in # ((
61  xsuccess)
62    :
63    ;;
64  *)
65    # Try built-in echo, and fail.
66    echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67    exit 1
68    ;;
69esac
70
71#
72# Verify that 'test' command is available, otherwise abort.
73#
74
75xc_tst_str='unknown'
76(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77case "x$xc_tst_str" in # ((
78  xsuccess)
79    :
80    ;;
81  *)
82    echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83    exit 1
84    ;;
85esac
86
87#
88# Verify that 'PATH' variable is set, otherwise abort.
89#
90
91xc_tst_str='unknown'
92(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93case "x$xc_tst_str" in # ((
94  xsuccess)
95    :
96    ;;
97  *)
98    echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99    exit 1
100    ;;
101esac
102
103#
104# Verify that 'expr' command is available, otherwise abort.
105#
106
107xc_tst_str='unknown'
108xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109case "x$xc_tst_str" in # ((
110  x7)
111    :
112    ;;
113  *)
114    echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115    exit 1
116    ;;
117esac
118
119#
120# Verify that 'sed' utility is found within 'PATH', otherwise abort.
121#
122
123xc_tst_str='unknown'
124xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125  | sed -e 's:unknown:success:' 2>/dev/null`
126case "x$xc_tst_str" in # ((
127  xsuccess)
128    :
129    ;;
130  *)
131    echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132    exit 1
133    ;;
134esac
135
136#
137# Verify that 'grep' utility is found within 'PATH', otherwise abort.
138#
139
140xc_tst_str='unknown'
141(`echo "$xc_tst_str" 2>/dev/null \
142  | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143case "x$xc_tst_str" in # ((
144  xsuccess)
145    :
146    ;;
147  *)
148    echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149    exit 1
150    ;;
151esac
152
153#
154# Verify that 'tr' utility is found within 'PATH', otherwise abort.
155#
156
157xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159  | tr -d "0123456789$xc_tab" 2>/dev/null`
160case "x$xc_tst_str" in # ((
161  xsuccess)
162    :
163    ;;
164  *)
165    echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166    exit 1
167    ;;
168esac
169
170#
171# Verify that 'wc' utility is found within 'PATH', otherwise abort.
172#
173
174xc_tst_str='unknown unknown unknown unknown'
175xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176  | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177case "x$xc_tst_str" in # ((
178  x4)
179    :
180    ;;
181  *)
182    echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183    exit 1
184    ;;
185esac
186
187#
188# Verify that 'cat' utility is found within 'PATH', otherwise abort.
189#
190
191xc_tst_str='unknown'
192xc_tst_str=`cat <<_EOT 2>/dev/null \
193  | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194unknown
195unknown
196unknown
197_EOT`
198case "x$xc_tst_str" in # ((
199  x3)
200    :
201    ;;
202  *)
203    echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204    exit 1
205    ;;
206esac
207
208#
209# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210#
211
212# Directory count in 'PATH' when using a colon separator.
213xc_tst_dirs_col='x'
214xc_tst_prev_IFS=$IFS; IFS=':'
215for xc_tst_dir in $PATH; do
216  IFS=$xc_tst_prev_IFS
217  xc_tst_dirs_col="x$xc_tst_dirs_col"
218done
219IFS=$xc_tst_prev_IFS
220xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222# Directory count in 'PATH' when using a semicolon separator.
223xc_tst_dirs_sem='x'
224xc_tst_prev_IFS=$IFS; IFS=';'
225for xc_tst_dir in $PATH; do
226  IFS=$xc_tst_prev_IFS
227  xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228done
229IFS=$xc_tst_prev_IFS
230xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233  # When both counting methods give the same result we do not want to
234  # chose one over the other, and consider auto-detection not possible.
235  if test -z "$PATH_SEPARATOR"; then
236    # Stop dead until user provides 'PATH_SEPARATOR' definition.
237    echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
238    exit 1
239  fi
240else
241  # Separator with the greater directory count is the auto-detected one.
242  if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243    xc_tst_auto_separator=';'
244  else
245    xc_tst_auto_separator=':'
246  fi
247  if test -z "$PATH_SEPARATOR"; then
248    # Simply use the auto-detected one when not already set.
249    PATH_SEPARATOR=$xc_tst_auto_separator
250  elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251    echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
252  fi
253fi
254xc_PATH_SEPARATOR=$PATH_SEPARATOR
255
256xc_configure_preamble_result='yes'
257
258
259## -------------------- ##
260## M4sh Initialization. ##
261## -------------------- ##
262
263# Be more Bourne compatible
264DUALCASE=1; export DUALCASE # for MKS sh
265if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
266  emulate sh
267  NULLCMD=:
268  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269  # is contrary to our usage.  Disable this feature.
270  alias -g '${1+"$@"}'='"$@"'
271  setopt NO_GLOB_SUBST
272else
273  case `(set -o) 2>/dev/null` in #(
274  *posix*) :
275    set -o posix ;; #(
276  *) :
277     ;;
278esac
279fi
280
281
282as_nl='
283'
284export as_nl
285# Printing a long string crashes Solaris 7 /usr/bin/printf.
286as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289# Prefer a ksh shell builtin over an external printf program on Solaris,
290# but without wasting forks for bash or zsh.
291if test -z "$BASH_VERSION$ZSH_VERSION" \
292    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293  as_echo='print -r --'
294  as_echo_n='print -rn --'
295elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296  as_echo='printf %s\n'
297  as_echo_n='printf %s'
298else
299  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301    as_echo_n='/usr/ucb/echo -n'
302  else
303    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
304    as_echo_n_body='eval
305      arg=$1;
306      case $arg in #(
307      *"$as_nl"*)
308	expr "X$arg" : "X\\(.*\\)$as_nl";
309	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
310      esac;
311      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
312    '
313    export as_echo_n_body
314    as_echo_n='sh -c $as_echo_n_body as_echo'
315  fi
316  export as_echo_body
317  as_echo='sh -c $as_echo_body as_echo'
318fi
319
320
321
322# IFS
323# We need space, tab and new line, in precisely that order.  Quoting is
324# there to prevent editors from complaining about space-tab.
325# (If _AS_PATH_WALK were called with IFS unset, it would disable word
326# splitting by setting IFS to empty value.)
327IFS=" ""	$as_nl"
328
329# Find who we are.  Look in the path if we contain no directory separator.
330as_myself=
331case $0 in #((
332  *[\\/]* ) as_myself=$0 ;;
333  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
334for as_dir in $PATH
335do
336  IFS=$as_save_IFS
337  test -z "$as_dir" && as_dir=.
338    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
339  done
340IFS=$as_save_IFS
341
342     ;;
343esac
344# We did not find ourselves, most probably we were run as `sh COMMAND'
345# in which case we are not to be found in the path.
346if test "x$as_myself" = x; then
347  as_myself=$0
348fi
349if test ! -f "$as_myself"; then
350  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
351  exit 1
352fi
353
354# Unset variables that we do not need and which cause bugs (e.g. in
355# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
356# suppresses any "Segmentation fault" message there.  '((' could
357# trigger a bug in pdksh 5.2.14.
358for as_var in BASH_ENV ENV MAIL MAILPATH
359do eval test x\${$as_var+set} = xset \
360  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
361done
362PS1='$ '
363PS2='> '
364PS4='+ '
365
366# NLS nuisances.
367LC_ALL=C
368export LC_ALL
369LANGUAGE=C
370export LANGUAGE
371
372# CDPATH.
373(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
374
375# Use a proper internal environment variable to ensure we don't fall
376  # into an infinite loop, continuously re-executing ourselves.
377  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378    _as_can_reexec=no; export _as_can_reexec;
379    # We cannot yet assume a decent shell, so we have to provide a
380# neutralization value for shells without unset; and this also
381# works around shells that cannot unset nonexistent variables.
382# Preserve -v and -x to the replacement shell.
383BASH_ENV=/dev/null
384ENV=/dev/null
385(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
386case $- in # ((((
387  *v*x* | *x*v* ) as_opts=-vx ;;
388  *v* ) as_opts=-v ;;
389  *x* ) as_opts=-x ;;
390  * ) as_opts= ;;
391esac
392exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393# Admittedly, this is quite paranoid, since all the known shells bail
394# out after a failed `exec'.
395$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
396as_fn_exit 255
397  fi
398  # We don't want this to propagate to other subprocesses.
399          { _as_can_reexec=; unset _as_can_reexec;}
400if test "x$CONFIG_SHELL" = x; then
401  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
402  emulate sh
403  NULLCMD=:
404  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405  # is contrary to our usage.  Disable this feature.
406  alias -g '\${1+\"\$@\"}'='\"\$@\"'
407  setopt NO_GLOB_SUBST
408else
409  case \`(set -o) 2>/dev/null\` in #(
410  *posix*) :
411    set -o posix ;; #(
412  *) :
413     ;;
414esac
415fi
416"
417  as_required="as_fn_return () { (exit \$1); }
418as_fn_success () { as_fn_return 0; }
419as_fn_failure () { as_fn_return 1; }
420as_fn_ret_success () { return 0; }
421as_fn_ret_failure () { return 1; }
422
423exitcode=0
424as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
429
430else
431  exitcode=1; echo positional parameters were not saved.
432fi
433test x\$exitcode = x0 || exit 1
434test -x / || exit 1"
435  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439test \$(( 1 + 1 )) = 2 || exit 1
440
441  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445    PATH=/empty FPATH=/empty; export PATH FPATH
446    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448  if (eval "$as_required") 2>/dev/null; then :
449  as_have_required=yes
450else
451  as_have_required=no
452fi
453  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
454
455else
456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
457as_found=false
458for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
459do
460  IFS=$as_save_IFS
461  test -z "$as_dir" && as_dir=.
462  as_found=:
463  case $as_dir in #(
464	 /*)
465	   for as_base in sh bash ksh sh5; do
466	     # Try only shells that exist, to save several forks.
467	     as_shell=$as_dir/$as_base
468	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470  CONFIG_SHELL=$as_shell as_have_required=yes
471		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
472  break 2
473fi
474fi
475	   done;;
476       esac
477  as_found=false
478done
479$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481  CONFIG_SHELL=$SHELL as_have_required=yes
482fi; }
483IFS=$as_save_IFS
484
485
486      if test "x$CONFIG_SHELL" != x; then :
487  export CONFIG_SHELL
488             # We cannot yet assume a decent shell, so we have to provide a
489# neutralization value for shells without unset; and this also
490# works around shells that cannot unset nonexistent variables.
491# Preserve -v and -x to the replacement shell.
492BASH_ENV=/dev/null
493ENV=/dev/null
494(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
495case $- in # ((((
496  *v*x* | *x*v* ) as_opts=-vx ;;
497  *v* ) as_opts=-v ;;
498  *x* ) as_opts=-x ;;
499  * ) as_opts= ;;
500esac
501exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502# Admittedly, this is quite paranoid, since all the known shells bail
503# out after a failed `exec'.
504$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
505exit 255
506fi
507
508    if test x$as_have_required = xno; then :
509  $as_echo "$0: This script requires a shell more modern than all"
510  $as_echo "$0: the shells that I found on your system."
511  if test x${ZSH_VERSION+set} = xset ; then
512    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
514  else
515    $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516$0: mailing list: http://curl.haxx.se/mail/ about your
517$0: system, including any error possibly output before this
518$0: message. Then install a modern shell, or manually run
519$0: the script under such a shell if you do have one."
520  fi
521  exit 1
522fi
523fi
524fi
525SHELL=${CONFIG_SHELL-/bin/sh}
526export SHELL
527# Unset more variables known to interfere with behavior of common tools.
528CLICOLOR_FORCE= GREP_OPTIONS=
529unset CLICOLOR_FORCE GREP_OPTIONS
530
531## --------------------- ##
532## M4sh Shell Functions. ##
533## --------------------- ##
534# as_fn_unset VAR
535# ---------------
536# Portably unset VAR.
537as_fn_unset ()
538{
539  { eval $1=; unset $1;}
540}
541as_unset=as_fn_unset
542
543# as_fn_set_status STATUS
544# -----------------------
545# Set $? to STATUS, without forking.
546as_fn_set_status ()
547{
548  return $1
549} # as_fn_set_status
550
551# as_fn_exit STATUS
552# -----------------
553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
554as_fn_exit ()
555{
556  set +e
557  as_fn_set_status $1
558  exit $1
559} # as_fn_exit
560
561# as_fn_mkdir_p
562# -------------
563# Create "$as_dir" as a directory, including parents if necessary.
564as_fn_mkdir_p ()
565{
566
567  case $as_dir in #(
568  -*) as_dir=./$as_dir;;
569  esac
570  test -d "$as_dir" || eval $as_mkdir_p || {
571    as_dirs=
572    while :; do
573      case $as_dir in #(
574      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
575      *) as_qdir=$as_dir;;
576      esac
577      as_dirs="'$as_qdir' $as_dirs"
578      as_dir=`$as_dirname -- "$as_dir" ||
579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580	 X"$as_dir" : 'X\(//\)[^/]' \| \
581	 X"$as_dir" : 'X\(//\)$' \| \
582	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583$as_echo X"$as_dir" |
584    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
585	    s//\1/
586	    q
587	  }
588	  /^X\(\/\/\)[^/].*/{
589	    s//\1/
590	    q
591	  }
592	  /^X\(\/\/\)$/{
593	    s//\1/
594	    q
595	  }
596	  /^X\(\/\).*/{
597	    s//\1/
598	    q
599	  }
600	  s/.*/./; q'`
601      test -d "$as_dir" && break
602    done
603    test -z "$as_dirs" || eval "mkdir $as_dirs"
604  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
605
606
607} # as_fn_mkdir_p
608
609# as_fn_executable_p FILE
610# -----------------------
611# Test if FILE is an executable regular file.
612as_fn_executable_p ()
613{
614  test -f "$1" && test -x "$1"
615} # as_fn_executable_p
616# as_fn_append VAR VALUE
617# ----------------------
618# Append the text in VALUE to the end of the definition contained in VAR. Take
619# advantage of any shell optimizations that allow amortized linear growth over
620# repeated appends, instead of the typical quadratic growth present in naive
621# implementations.
622if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623  eval 'as_fn_append ()
624  {
625    eval $1+=\$2
626  }'
627else
628  as_fn_append ()
629  {
630    eval $1=\$$1\$2
631  }
632fi # as_fn_append
633
634# as_fn_arith ARG...
635# ------------------
636# Perform arithmetic evaluation on the ARGs, and store the result in the
637# global $as_val. Take advantage of shells that can avoid forks. The arguments
638# must be portable across $(()) and expr.
639if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
640  eval 'as_fn_arith ()
641  {
642    as_val=$(( $* ))
643  }'
644else
645  as_fn_arith ()
646  {
647    as_val=`expr "$@" || test $? -eq 1`
648  }
649fi # as_fn_arith
650
651
652# as_fn_error STATUS ERROR [LINENO LOG_FD]
653# ----------------------------------------
654# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656# script with STATUS, using 1 if that was 0.
657as_fn_error ()
658{
659  as_status=$1; test $as_status -eq 0 && as_status=1
660  if test "$4"; then
661    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
663  fi
664  $as_echo "$as_me: error: $2" >&2
665  as_fn_exit $as_status
666} # as_fn_error
667
668if expr a : '\(a\)' >/dev/null 2>&1 &&
669   test "X`expr 00001 : '.*\(...\)'`" = X001; then
670  as_expr=expr
671else
672  as_expr=false
673fi
674
675if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
676  as_basename=basename
677else
678  as_basename=false
679fi
680
681if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
682  as_dirname=dirname
683else
684  as_dirname=false
685fi
686
687as_me=`$as_basename -- "$0" ||
688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689	 X"$0" : 'X\(//\)$' \| \
690	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
691$as_echo X/"$0" |
692    sed '/^.*\/\([^/][^/]*\)\/*$/{
693	    s//\1/
694	    q
695	  }
696	  /^X\/\(\/\/\)$/{
697	    s//\1/
698	    q
699	  }
700	  /^X\/\(\/\).*/{
701	    s//\1/
702	    q
703	  }
704	  s/.*/./; q'`
705
706# Avoid depending upon Character Ranges.
707as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710as_cr_digits='0123456789'
711as_cr_alnum=$as_cr_Letters$as_cr_digits
712
713
714  as_lineno_1=$LINENO as_lineno_1a=$LINENO
715  as_lineno_2=$LINENO as_lineno_2a=$LINENO
716  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
719  sed -n '
720    p
721    /[$]LINENO/=
722  ' <$as_myself |
723    sed '
724      s/[$]LINENO.*/&-/
725      t lineno
726      b
727      :lineno
728      N
729      :loop
730      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
731      t loop
732      s/-\n.*//
733    ' >$as_me.lineno &&
734  chmod +x "$as_me.lineno" ||
735    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
736
737  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738  # already done that, so ensure we don't try to do so again and fall
739  # in an infinite loop.  This has already happened in practice.
740  _as_can_reexec=no; export _as_can_reexec
741  # Don't try to exec as it changes $[0], causing all sort of problems
742  # (the dirname of $[0] is not the place where we might find the
743  # original and so on.  Autoconf is especially sensitive to this).
744  . "./$as_me.lineno"
745  # Exit status is that of the last command.
746  exit
747}
748
749ECHO_C= ECHO_N= ECHO_T=
750case `echo -n x` in #(((((
751-n*)
752  case `echo 'xy\c'` in
753  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
754  xy)  ECHO_C='\c';;
755  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
756       ECHO_T='	';;
757  esac;;
758*)
759  ECHO_N='-n';;
760esac
761
762rm -f conf$$ conf$$.exe conf$$.file
763if test -d conf$$.dir; then
764  rm -f conf$$.dir/conf$$.file
765else
766  rm -f conf$$.dir
767  mkdir conf$$.dir 2>/dev/null
768fi
769if (echo >conf$$.file) 2>/dev/null; then
770  if ln -s conf$$.file conf$$ 2>/dev/null; then
771    as_ln_s='ln -s'
772    # ... but there are two gotchas:
773    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775    # In both cases, we have to default to `cp -pR'.
776    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
777      as_ln_s='cp -pR'
778  elif ln conf$$.file conf$$ 2>/dev/null; then
779    as_ln_s=ln
780  else
781    as_ln_s='cp -pR'
782  fi
783else
784  as_ln_s='cp -pR'
785fi
786rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787rmdir conf$$.dir 2>/dev/null
788
789if mkdir -p . 2>/dev/null; then
790  as_mkdir_p='mkdir -p "$as_dir"'
791else
792  test -d ./-p && rmdir ./-p
793  as_mkdir_p=false
794fi
795
796as_test_x='test -x'
797as_executable_p=as_fn_executable_p
798
799# Sed expression to map a string onto a valid CPP name.
800as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
801
802# Sed expression to map a string onto a valid variable name.
803as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
804
805SHELL=${CONFIG_SHELL-/bin/sh}
806
807
808test -n "$DJDIR" || exec 7<&0 </dev/null
809exec 6>&1
810
811# Name of the host.
812# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813# so uname gets run too.
814ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
815
816#
817# Initializations.
818#
819ac_default_prefix=/usr/local
820ac_clean_files=
821ac_config_libobj_dir=.
822LIBOBJS=
823cross_compiling=no
824subdirs=
825MFLAGS=
826MAKEFLAGS=
827
828# Identity of this package.
829PACKAGE_NAME='curl'
830PACKAGE_TARNAME='curl'
831PACKAGE_VERSION='-'
832PACKAGE_STRING='curl -'
833PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/'
834PACKAGE_URL=''
835
836ac_unique_file="lib/urldata.h"
837# Factoring default headers for most tests.
838ac_includes_default="\
839#include <stdio.h>
840#ifdef HAVE_SYS_TYPES_H
841# include <sys/types.h>
842#endif
843#ifdef HAVE_SYS_STAT_H
844# include <sys/stat.h>
845#endif
846#ifdef STDC_HEADERS
847# include <stdlib.h>
848# include <stddef.h>
849#else
850# ifdef HAVE_STDLIB_H
851#  include <stdlib.h>
852# endif
853#endif
854#ifdef HAVE_STRING_H
855# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
856#  include <memory.h>
857# endif
858# include <string.h>
859#endif
860#ifdef HAVE_STRINGS_H
861# include <strings.h>
862#endif
863#ifdef HAVE_INTTYPES_H
864# include <inttypes.h>
865#endif
866#ifdef HAVE_STDINT_H
867# include <stdint.h>
868#endif
869#ifdef HAVE_UNISTD_H
870# include <unistd.h>
871#endif"
872
873enable_option_checking=no
874ac_subst_vars='am__EXEEXT_FALSE
875am__EXEEXT_TRUE
876LTLIBOBJS
877LIBOBJS
878SUPPORT_PROTOCOLS
879SUPPORT_FEATURES
880ENABLE_STATIC
881ENABLE_SHARED
882CROSSCOMPILING_FALSE
883CROSSCOMPILING_TRUE
884BLANK_AT_MAKETIME
885CURL_NETWORK_AND_TIME_LIBS
886CURL_NETWORK_LIBS
887LIBCURL_LIBS
888SONAME_BUMP_FALSE
889SONAME_BUMP_TRUE
890CFLAG_CURL_SYMBOL_HIDING
891DOING_CURL_SYMBOL_HIDING_FALSE
892DOING_CURL_SYMBOL_HIDING_TRUE
893BUILD_LIBHOSTNAME_FALSE
894BUILD_LIBHOSTNAME_TRUE
895USE_EMBEDDED_ARES_FALSE
896USE_EMBEDDED_ARES_TRUE
897USE_ARES
898subdirs
899USE_MANUAL_FALSE
900USE_MANUAL_TRUE
901MANOPT
902NROFF
903PERL
904IPV6_ENABLED
905USE_NGHTTP2
906IDN_ENABLED
907CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
908CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
909CURL_LT_SHLIB_VERSIONED_FLAVOUR
910USE_LIBRTMP
911USE_LIBSSH2
912LIBMETALINK_CPPFLAGS
913LIBMETALINK_LDFLAGS
914LIBMETALINK_LIBS
915CURL_CA_BUNDLE
916SSL_ENABLED
917USE_AXTLS
918USE_NSS
919USE_CYASSL
920USE_POLARSSL
921HAVE_GNUTLS_SRP
922USE_GNUTLS_NETTLE
923USE_GNUTLS
924HAVE_SSLEAY_SRP
925RANDOM_FILE
926USE_SSLEAY
927PKGCONFIG
928USE_DARWINSSL
929USE_WINDOWS_SSPI
930USE_SCHANNEL
931USE_OPENLDAP
932ZLIB_LIBS
933HAVE_LIBZ_FALSE
934HAVE_LIBZ_TRUE
935HAVE_LIBZ
936CURL_DISABLE_GOPHER
937CURL_DISABLE_SMTP
938CURL_DISABLE_IMAP
939CURL_DISABLE_POP3
940CURL_DISABLE_TFTP
941CURL_DISABLE_TELNET
942CURL_DISABLE_DICT
943CURL_DISABLE_PROXY
944HAVE_LDAP_SSL
945CURL_DISABLE_LDAPS
946CURL_DISABLE_LDAP
947CURL_DISABLE_FILE
948CURL_DISABLE_FTP
949CURL_DISABLE_RTSP
950CURL_DISABLE_HTTP
951DOING_NATIVE_WINDOWS_FALSE
952DOING_NATIVE_WINDOWS_TRUE
953BUILD_UNITTESTS_FALSE
954BUILD_UNITTESTS_TRUE
955CURLDEBUG_FALSE
956CURLDEBUG_TRUE
957USE_EXPLICIT_LIB_DEPS_FALSE
958USE_EXPLICIT_LIB_DEPS_TRUE
959REQUIRE_LIB_DEPS
960CPPFLAG_CURL_STATICLIB
961USE_CPPFLAG_CURL_STATICLIB_FALSE
962USE_CPPFLAG_CURL_STATICLIB_TRUE
963CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
964CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
965CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
966CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
967CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
968CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
969OTOOL64
970OTOOL
971LIPO
972NMEDIT
973DSYMUTIL
974MANIFEST_TOOL
975RANLIB
976ac_ct_AR
977LN_S
978NM
979ac_ct_DUMPBIN
980DUMPBIN
981LD
982FGREP
983LIBTOOL
984OBJDUMP
985DLLTOOL
986AS
987host_os
988host_vendor
989host_cpu
990host
991build_os
992build_vendor
993build_cpu
994build
995PKGADD_VENDOR
996PKGADD_NAME
997PKGADD_PKG
998VERSIONNUM
999CURLVERSION
1000AM_BACKSLASH
1001AM_DEFAULT_VERBOSITY
1002AM_DEFAULT_V
1003AM_V
1004am__fastdepCC_FALSE
1005am__fastdepCC_TRUE
1006CCDEPMODE
1007am__nodep
1008AMDEPBACKSLASH
1009AMDEP_FALSE
1010AMDEP_TRUE
1011am__quote
1012am__include
1013DEPDIR
1014am__untar
1015am__tar
1016AMTAR
1017am__leading_dot
1018SET_MAKE
1019AWK
1020mkdir_p
1021MKDIR_P
1022INSTALL_STRIP_PROGRAM
1023STRIP
1024install_sh
1025MAKEINFO
1026AUTOHEADER
1027AUTOMAKE
1028AUTOCONF
1029ACLOCAL
1030VERSION
1031PACKAGE
1032CYGPATH_W
1033am__isrc
1034CPP
1035OBJEXT
1036EXEEXT
1037ac_ct_CC
1038CPPFLAGS
1039LDFLAGS
1040CFLAGS
1041CC
1042INSTALL_DATA
1043INSTALL_SCRIPT
1044INSTALL_PROGRAM
1045libext
1046AR
1047EGREP
1048GREP
1049SED
1050CURL_CFLAG_EXTRAS
1051CONFIGURE_OPTIONS
1052MAINT
1053MAINTAINER_MODE_FALSE
1054MAINTAINER_MODE_TRUE
1055target_alias
1056host_alias
1057build_alias
1058LIBS
1059ECHO_T
1060ECHO_N
1061ECHO_C
1062DEFS
1063mandir
1064localedir
1065libdir
1066psdir
1067pdfdir
1068dvidir
1069htmldir
1070infodir
1071docdir
1072oldincludedir
1073includedir
1074localstatedir
1075sharedstatedir
1076sysconfdir
1077datadir
1078datarootdir
1079libexecdir
1080sbindir
1081bindir
1082program_transform_name
1083prefix
1084exec_prefix
1085PACKAGE_URL
1086PACKAGE_BUGREPORT
1087PACKAGE_STRING
1088PACKAGE_VERSION
1089PACKAGE_TARNAME
1090PACKAGE_NAME
1091SHELL
1092PATH_SEPARATOR'
1093ac_subst_files=''
1094ac_user_opts='
1095enable_option_checking
1096enable_maintainer_mode
1097enable_debug
1098enable_optimize
1099enable_warnings
1100enable_werror
1101enable_curldebug
1102enable_symbol_hiding
1103enable_hidden_symbols
1104enable_ares
1105enable_dependency_tracking
1106enable_silent_rules
1107enable_largefile
1108enable_shared
1109enable_static
1110with_pic
1111enable_fast_install
1112with_gnu_ld
1113with_sysroot
1114enable_libtool_lock
1115enable_http
1116enable_ftp
1117enable_file
1118enable_ldap
1119enable_ldaps
1120enable_rtsp
1121enable_proxy
1122enable_dict
1123enable_telnet
1124enable_tftp
1125enable_pop3
1126enable_imap
1127enable_smtp
1128enable_gopher
1129enable_manual
1130enable_libcurl_option
1131enable_libgcc
1132with_zlib
1133with_ldap_lib
1134with_lber_lib
1135enable_ipv6
1136with_spnego
1137with_gssapi_includes
1138with_gssapi_libs
1139with_gssapi
1140with_winssl
1141with_darwinssl
1142with_ssl
1143with_egd_socket
1144with_random
1145with_gnutls
1146with_polarssl
1147with_cyassl
1148with_nss
1149with_axtls
1150with_ca_bundle
1151with_ca_path
1152with_libmetalink
1153with_libssh2
1154with_librtmp
1155enable_versioned_symbols
1156with_winidn
1157with_libidn
1158with_nghttp2
1159enable_threaded_resolver
1160enable_verbose
1161enable_sspi
1162enable_crypto_auth
1163enable_ntlm_wb
1164enable_tls_srp
1165enable_cookies
1166enable_soname_bump
1167'
1168      ac_precious_vars='build_alias
1169host_alias
1170target_alias
1171CC
1172CFLAGS
1173LDFLAGS
1174LIBS
1175CPPFLAGS
1176CPP'
1177ac_subdirs_all='ares'
1178
1179# Initialize some variables set by options.
1180ac_init_help=
1181ac_init_version=false
1182ac_unrecognized_opts=
1183ac_unrecognized_sep=
1184# The variables have the same names as the options, with
1185# dashes changed to underlines.
1186cache_file=/dev/null
1187exec_prefix=NONE
1188no_create=
1189no_recursion=
1190prefix=NONE
1191program_prefix=NONE
1192program_suffix=NONE
1193program_transform_name=s,x,x,
1194silent=
1195site=
1196srcdir=
1197verbose=
1198x_includes=NONE
1199x_libraries=NONE
1200
1201# Installation directory options.
1202# These are left unexpanded so users can "make install exec_prefix=/foo"
1203# and all the variables that are supposed to be based on exec_prefix
1204# by default will actually change.
1205# Use braces instead of parens because sh, perl, etc. also accept them.
1206# (The list follows the same order as the GNU Coding Standards.)
1207bindir='${exec_prefix}/bin'
1208sbindir='${exec_prefix}/sbin'
1209libexecdir='${exec_prefix}/libexec'
1210datarootdir='${prefix}/share'
1211datadir='${datarootdir}'
1212sysconfdir='${prefix}/etc'
1213sharedstatedir='${prefix}/com'
1214localstatedir='${prefix}/var'
1215includedir='${prefix}/include'
1216oldincludedir='/usr/include'
1217docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1218infodir='${datarootdir}/info'
1219htmldir='${docdir}'
1220dvidir='${docdir}'
1221pdfdir='${docdir}'
1222psdir='${docdir}'
1223libdir='${exec_prefix}/lib'
1224localedir='${datarootdir}/locale'
1225mandir='${datarootdir}/man'
1226
1227ac_prev=
1228ac_dashdash=
1229for ac_option
1230do
1231  # If the previous option needs an argument, assign it.
1232  if test -n "$ac_prev"; then
1233    eval $ac_prev=\$ac_option
1234    ac_prev=
1235    continue
1236  fi
1237
1238  case $ac_option in
1239  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1240  *=)   ac_optarg= ;;
1241  *)    ac_optarg=yes ;;
1242  esac
1243
1244  # Accept the important Cygnus configure options, so we can diagnose typos.
1245
1246  case $ac_dashdash$ac_option in
1247  --)
1248    ac_dashdash=yes ;;
1249
1250  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1251    ac_prev=bindir ;;
1252  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253    bindir=$ac_optarg ;;
1254
1255  -build | --build | --buil | --bui | --bu)
1256    ac_prev=build_alias ;;
1257  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258    build_alias=$ac_optarg ;;
1259
1260  -cache-file | --cache-file | --cache-fil | --cache-fi \
1261  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262    ac_prev=cache_file ;;
1263  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265    cache_file=$ac_optarg ;;
1266
1267  --config-cache | -C)
1268    cache_file=config.cache ;;
1269
1270  -datadir | --datadir | --datadi | --datad)
1271    ac_prev=datadir ;;
1272  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273    datadir=$ac_optarg ;;
1274
1275  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276  | --dataroo | --dataro | --datar)
1277    ac_prev=datarootdir ;;
1278  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280    datarootdir=$ac_optarg ;;
1281
1282  -disable-* | --disable-*)
1283    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284    # Reject names that are not valid shell variable names.
1285    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286      as_fn_error $? "invalid feature name: $ac_useropt"
1287    ac_useropt_orig=$ac_useropt
1288    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289    case $ac_user_opts in
1290      *"
1291"enable_$ac_useropt"
1292"*) ;;
1293      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294	 ac_unrecognized_sep=', ';;
1295    esac
1296    eval enable_$ac_useropt=no ;;
1297
1298  -docdir | --docdir | --docdi | --doc | --do)
1299    ac_prev=docdir ;;
1300  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301    docdir=$ac_optarg ;;
1302
1303  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1304    ac_prev=dvidir ;;
1305  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306    dvidir=$ac_optarg ;;
1307
1308  -enable-* | --enable-*)
1309    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310    # Reject names that are not valid shell variable names.
1311    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312      as_fn_error $? "invalid feature name: $ac_useropt"
1313    ac_useropt_orig=$ac_useropt
1314    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315    case $ac_user_opts in
1316      *"
1317"enable_$ac_useropt"
1318"*) ;;
1319      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320	 ac_unrecognized_sep=', ';;
1321    esac
1322    eval enable_$ac_useropt=\$ac_optarg ;;
1323
1324  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326  | --exec | --exe | --ex)
1327    ac_prev=exec_prefix ;;
1328  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330  | --exec=* | --exe=* | --ex=*)
1331    exec_prefix=$ac_optarg ;;
1332
1333  -gas | --gas | --ga | --g)
1334    # Obsolete; use --with-gas.
1335    with_gas=yes ;;
1336
1337  -help | --help | --hel | --he | -h)
1338    ac_init_help=long ;;
1339  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340    ac_init_help=recursive ;;
1341  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342    ac_init_help=short ;;
1343
1344  -host | --host | --hos | --ho)
1345    ac_prev=host_alias ;;
1346  -host=* | --host=* | --hos=* | --ho=*)
1347    host_alias=$ac_optarg ;;
1348
1349  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1350    ac_prev=htmldir ;;
1351  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1352  | --ht=*)
1353    htmldir=$ac_optarg ;;
1354
1355  -includedir | --includedir | --includedi | --included | --include \
1356  | --includ | --inclu | --incl | --inc)
1357    ac_prev=includedir ;;
1358  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359  | --includ=* | --inclu=* | --incl=* | --inc=*)
1360    includedir=$ac_optarg ;;
1361
1362  -infodir | --infodir | --infodi | --infod | --info | --inf)
1363    ac_prev=infodir ;;
1364  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365    infodir=$ac_optarg ;;
1366
1367  -libdir | --libdir | --libdi | --libd)
1368    ac_prev=libdir ;;
1369  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370    libdir=$ac_optarg ;;
1371
1372  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373  | --libexe | --libex | --libe)
1374    ac_prev=libexecdir ;;
1375  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376  | --libexe=* | --libex=* | --libe=*)
1377    libexecdir=$ac_optarg ;;
1378
1379  -localedir | --localedir | --localedi | --localed | --locale)
1380    ac_prev=localedir ;;
1381  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382    localedir=$ac_optarg ;;
1383
1384  -localstatedir | --localstatedir | --localstatedi | --localstated \
1385  | --localstate | --localstat | --localsta | --localst | --locals)
1386    ac_prev=localstatedir ;;
1387  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389    localstatedir=$ac_optarg ;;
1390
1391  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1392    ac_prev=mandir ;;
1393  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394    mandir=$ac_optarg ;;
1395
1396  -nfp | --nfp | --nf)
1397    # Obsolete; use --without-fp.
1398    with_fp=no ;;
1399
1400  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401  | --no-cr | --no-c | -n)
1402    no_create=yes ;;
1403
1404  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1406    no_recursion=yes ;;
1407
1408  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410  | --oldin | --oldi | --old | --ol | --o)
1411    ac_prev=oldincludedir ;;
1412  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415    oldincludedir=$ac_optarg ;;
1416
1417  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1418    ac_prev=prefix ;;
1419  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420    prefix=$ac_optarg ;;
1421
1422  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423  | --program-pre | --program-pr | --program-p)
1424    ac_prev=program_prefix ;;
1425  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427    program_prefix=$ac_optarg ;;
1428
1429  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430  | --program-suf | --program-su | --program-s)
1431    ac_prev=program_suffix ;;
1432  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434    program_suffix=$ac_optarg ;;
1435
1436  -program-transform-name | --program-transform-name \
1437  | --program-transform-nam | --program-transform-na \
1438  | --program-transform-n | --program-transform- \
1439  | --program-transform | --program-transfor \
1440  | --program-transfo | --program-transf \
1441  | --program-trans | --program-tran \
1442  | --progr-tra | --program-tr | --program-t)
1443    ac_prev=program_transform_name ;;
1444  -program-transform-name=* | --program-transform-name=* \
1445  | --program-transform-nam=* | --program-transform-na=* \
1446  | --program-transform-n=* | --program-transform-=* \
1447  | --program-transform=* | --program-transfor=* \
1448  | --program-transfo=* | --program-transf=* \
1449  | --program-trans=* | --program-tran=* \
1450  | --progr-tra=* | --program-tr=* | --program-t=*)
1451    program_transform_name=$ac_optarg ;;
1452
1453  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1454    ac_prev=pdfdir ;;
1455  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456    pdfdir=$ac_optarg ;;
1457
1458  -psdir | --psdir | --psdi | --psd | --ps)
1459    ac_prev=psdir ;;
1460  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1461    psdir=$ac_optarg ;;
1462
1463  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464  | -silent | --silent | --silen | --sile | --sil)
1465    silent=yes ;;
1466
1467  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1468    ac_prev=sbindir ;;
1469  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1470  | --sbi=* | --sb=*)
1471    sbindir=$ac_optarg ;;
1472
1473  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1474  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1475  | --sharedst | --shareds | --shared | --share | --shar \
1476  | --sha | --sh)
1477    ac_prev=sharedstatedir ;;
1478  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1479  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1480  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1481  | --sha=* | --sh=*)
1482    sharedstatedir=$ac_optarg ;;
1483
1484  -site | --site | --sit)
1485    ac_prev=site ;;
1486  -site=* | --site=* | --sit=*)
1487    site=$ac_optarg ;;
1488
1489  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1490    ac_prev=srcdir ;;
1491  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1492    srcdir=$ac_optarg ;;
1493
1494  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1495  | --syscon | --sysco | --sysc | --sys | --sy)
1496    ac_prev=sysconfdir ;;
1497  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1498  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1499    sysconfdir=$ac_optarg ;;
1500
1501  -target | --target | --targe | --targ | --tar | --ta | --t)
1502    ac_prev=target_alias ;;
1503  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1504    target_alias=$ac_optarg ;;
1505
1506  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1507    verbose=yes ;;
1508
1509  -version | --version | --versio | --versi | --vers | -V)
1510    ac_init_version=: ;;
1511
1512  -with-* | --with-*)
1513    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1514    # Reject names that are not valid shell variable names.
1515    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1516      as_fn_error $? "invalid package name: $ac_useropt"
1517    ac_useropt_orig=$ac_useropt
1518    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519    case $ac_user_opts in
1520      *"
1521"with_$ac_useropt"
1522"*) ;;
1523      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1524	 ac_unrecognized_sep=', ';;
1525    esac
1526    eval with_$ac_useropt=\$ac_optarg ;;
1527
1528  -without-* | --without-*)
1529    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530    # Reject names that are not valid shell variable names.
1531    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532      as_fn_error $? "invalid package name: $ac_useropt"
1533    ac_useropt_orig=$ac_useropt
1534    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535    case $ac_user_opts in
1536      *"
1537"with_$ac_useropt"
1538"*) ;;
1539      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540	 ac_unrecognized_sep=', ';;
1541    esac
1542    eval with_$ac_useropt=no ;;
1543
1544  --x)
1545    # Obsolete; use --with-x.
1546    with_x=yes ;;
1547
1548  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549  | --x-incl | --x-inc | --x-in | --x-i)
1550    ac_prev=x_includes ;;
1551  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553    x_includes=$ac_optarg ;;
1554
1555  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557    ac_prev=x_libraries ;;
1558  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560    x_libraries=$ac_optarg ;;
1561
1562  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1563Try \`$0 --help' for more information"
1564    ;;
1565
1566  *=*)
1567    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1568    # Reject names that are not valid shell variable names.
1569    case $ac_envvar in #(
1570      '' | [0-9]* | *[!_$as_cr_alnum]* )
1571      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1572    esac
1573    eval $ac_envvar=\$ac_optarg
1574    export $ac_envvar ;;
1575
1576  *)
1577    # FIXME: should be removed in autoconf 3.0.
1578    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1581    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1582    ;;
1583
1584  esac
1585done
1586
1587if test -n "$ac_prev"; then
1588  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1589  as_fn_error $? "missing argument to $ac_option"
1590fi
1591
1592if test -n "$ac_unrecognized_opts"; then
1593  case $enable_option_checking in
1594    no) ;;
1595    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1596    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1597  esac
1598fi
1599
1600# Check all directory arguments for consistency.
1601for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1602		datadir sysconfdir sharedstatedir localstatedir includedir \
1603		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1604		libdir localedir mandir
1605do
1606  eval ac_val=\$$ac_var
1607  # Remove trailing slashes.
1608  case $ac_val in
1609    */ )
1610      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1611      eval $ac_var=\$ac_val;;
1612  esac
1613  # Be sure to have absolute directory names.
1614  case $ac_val in
1615    [\\/$]* | ?:[\\/]* )  continue;;
1616    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1617  esac
1618  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1619done
1620
1621# There might be people who depend on the old broken behavior: `$host'
1622# used to hold the argument of --host etc.
1623# FIXME: To remove some day.
1624build=$build_alias
1625host=$host_alias
1626target=$target_alias
1627
1628# FIXME: To remove some day.
1629if test "x$host_alias" != x; then
1630  if test "x$build_alias" = x; then
1631    cross_compiling=maybe
1632  elif test "x$build_alias" != "x$host_alias"; then
1633    cross_compiling=yes
1634  fi
1635fi
1636
1637ac_tool_prefix=
1638test -n "$host_alias" && ac_tool_prefix=$host_alias-
1639
1640test "$silent" = yes && exec 6>/dev/null
1641
1642
1643ac_pwd=`pwd` && test -n "$ac_pwd" &&
1644ac_ls_di=`ls -di .` &&
1645ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1646  as_fn_error $? "working directory cannot be determined"
1647test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1648  as_fn_error $? "pwd does not report name of working directory"
1649
1650
1651# Find the source files, if location was not specified.
1652if test -z "$srcdir"; then
1653  ac_srcdir_defaulted=yes
1654  # Try the directory containing this script, then the parent directory.
1655  ac_confdir=`$as_dirname -- "$as_myself" ||
1656$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1657	 X"$as_myself" : 'X\(//\)[^/]' \| \
1658	 X"$as_myself" : 'X\(//\)$' \| \
1659	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1660$as_echo X"$as_myself" |
1661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1662	    s//\1/
1663	    q
1664	  }
1665	  /^X\(\/\/\)[^/].*/{
1666	    s//\1/
1667	    q
1668	  }
1669	  /^X\(\/\/\)$/{
1670	    s//\1/
1671	    q
1672	  }
1673	  /^X\(\/\).*/{
1674	    s//\1/
1675	    q
1676	  }
1677	  s/.*/./; q'`
1678  srcdir=$ac_confdir
1679  if test ! -r "$srcdir/$ac_unique_file"; then
1680    srcdir=..
1681  fi
1682else
1683  ac_srcdir_defaulted=no
1684fi
1685if test ! -r "$srcdir/$ac_unique_file"; then
1686  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1687  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1688fi
1689ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1690ac_abs_confdir=`(
1691	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1692	pwd)`
1693# When building in place, set srcdir=.
1694if test "$ac_abs_confdir" = "$ac_pwd"; then
1695  srcdir=.
1696fi
1697# Remove unnecessary trailing slashes from srcdir.
1698# Double slashes in file names in object file debugging info
1699# mess up M-x gdb in Emacs.
1700case $srcdir in
1701*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1702esac
1703for ac_var in $ac_precious_vars; do
1704  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1705  eval ac_env_${ac_var}_value=\$${ac_var}
1706  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1707  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1708done
1709
1710#
1711# Report the --help message.
1712#
1713if test "$ac_init_help" = "long"; then
1714  # Omit some internal or obsolete options to make the list less imposing.
1715  # This message is too long to be a string in the A/UX 3.1 sh.
1716  cat <<_ACEOF
1717\`configure' configures curl - to adapt to many kinds of systems.
1718
1719Usage: $0 [OPTION]... [VAR=VALUE]...
1720
1721To assign environment variables (e.g., CC, CFLAGS...), specify them as
1722VAR=VALUE.  See below for descriptions of some of the useful variables.
1723
1724Defaults for the options are specified in brackets.
1725
1726Configuration:
1727  -h, --help              display this help and exit
1728      --help=short        display options specific to this package
1729      --help=recursive    display the short help of all the included packages
1730  -V, --version           display version information and exit
1731  -q, --quiet, --silent   do not print \`checking ...' messages
1732      --cache-file=FILE   cache test results in FILE [disabled]
1733  -C, --config-cache      alias for \`--cache-file=config.cache'
1734  -n, --no-create         do not create output files
1735      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1736
1737Installation directories:
1738  --prefix=PREFIX         install architecture-independent files in PREFIX
1739                          [$ac_default_prefix]
1740  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1741                          [PREFIX]
1742
1743By default, \`make install' will install all the files in
1744\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1745an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1746for instance \`--prefix=\$HOME'.
1747
1748For better control, use the options below.
1749
1750Fine tuning of the installation directories:
1751  --bindir=DIR            user executables [EPREFIX/bin]
1752  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1753  --libexecdir=DIR        program executables [EPREFIX/libexec]
1754  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1755  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1756  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1757  --libdir=DIR            object code libraries [EPREFIX/lib]
1758  --includedir=DIR        C header files [PREFIX/include]
1759  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1760  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1761  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1762  --infodir=DIR           info documentation [DATAROOTDIR/info]
1763  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1764  --mandir=DIR            man documentation [DATAROOTDIR/man]
1765  --docdir=DIR            documentation root [DATAROOTDIR/doc/curl]
1766  --htmldir=DIR           html documentation [DOCDIR]
1767  --dvidir=DIR            dvi documentation [DOCDIR]
1768  --pdfdir=DIR            pdf documentation [DOCDIR]
1769  --psdir=DIR             ps documentation [DOCDIR]
1770_ACEOF
1771
1772  cat <<\_ACEOF
1773
1774Program names:
1775  --program-prefix=PREFIX            prepend PREFIX to installed program names
1776  --program-suffix=SUFFIX            append SUFFIX to installed program names
1777  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1778
1779System types:
1780  --build=BUILD     configure for building on BUILD [guessed]
1781  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1782_ACEOF
1783fi
1784
1785if test -n "$ac_init_help"; then
1786  case $ac_init_help in
1787     short | recursive ) echo "Configuration of curl -:";;
1788   esac
1789  cat <<\_ACEOF
1790
1791Optional Features:
1792  --disable-option-checking  ignore unrecognized --enable/--with options
1793  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1794  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1795  --enable-maintainer-mode
1796                          enable make rules and dependencies not useful (and
1797                          sometimes confusing) to the casual installer
1798  --enable-debug          Enable debug build options
1799  --disable-debug         Disable debug build options
1800  --enable-optimize       Enable compiler optimizations
1801  --disable-optimize      Disable compiler optimizations
1802  --enable-warnings       Enable strict compiler warnings
1803  --disable-warnings      Disable strict compiler warnings
1804  --enable-werror         Enable compiler warnings as errors
1805  --disable-werror        Disable compiler warnings as errors
1806  --enable-curldebug      Enable curl debug memory tracking
1807  --disable-curldebug     Disable curl debug memory tracking
1808  --enable-symbol-hiding  Enable hiding of library internal symbols
1809  --disable-symbol-hiding Disable hiding of library internal symbols
1810  --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1811  --disable-hidden-symbols
1812                          To be deprecated, use --disable-symbol-hiding
1813  --enable-ares[=PATH]    Enable c-ares for DNS lookups
1814  --disable-ares          Disable c-ares for DNS lookups
1815  --enable-dependency-tracking
1816                          do not reject slow dependency extractors
1817  --disable-dependency-tracking
1818                          speeds up one-time build
1819  --enable-silent-rules   less verbose build output (undo: "make V=1")
1820  --disable-silent-rules  verbose build output (undo: "make V=0")
1821  --disable-largefile     omit support for large files
1822  --enable-shared[=PKGS]  build shared libraries [default=yes]
1823  --enable-static[=PKGS]  build static libraries [default=yes]
1824  --enable-fast-install[=PKGS]
1825                          optimize for fast installation [default=yes]
1826  --disable-libtool-lock  avoid locking (might break parallel builds)
1827  --enable-http           Enable HTTP support
1828  --disable-http          Disable HTTP support
1829  --enable-ftp            Enable FTP support
1830  --disable-ftp           Disable FTP support
1831  --enable-file           Enable FILE support
1832  --disable-file          Disable FILE support
1833  --enable-ldap           Enable LDAP support
1834  --disable-ldap          Disable LDAP support
1835  --enable-ldaps          Enable LDAPS support
1836  --disable-ldaps         Disable LDAPS support
1837  --enable-rtsp           Enable RTSP support
1838  --disable-rtsp          Disable RTSP support
1839  --enable-proxy          Enable proxy support
1840  --disable-proxy         Disable proxy support
1841  --enable-dict           Enable DICT support
1842  --disable-dict          Disable DICT support
1843  --enable-telnet         Enable TELNET support
1844  --disable-telnet        Disable TELNET support
1845  --enable-tftp           Enable TFTP support
1846  --disable-tftp          Disable TFTP support
1847  --enable-pop3           Enable POP3 support
1848  --disable-pop3          Disable POP3 support
1849  --enable-imap           Enable IMAP support
1850  --disable-imap          Disable IMAP support
1851  --enable-smtp           Enable SMTP support
1852  --disable-smtp          Disable SMTP support
1853  --enable-gopher         Enable Gopher support
1854  --disable-gopher        Disable Gopher support
1855  --enable-manual         Enable built-in manual
1856  --disable-manual        Disable built-in manual
1857  --enable-libcurl-option Enable --libcurl C code generation support
1858  --disable-libcurl-option
1859                          Disable --libcurl C code generation support
1860  --enable-libgcc         use libgcc when linking
1861  --enable-ipv6           Enable ipv6 (with ipv4) support
1862  --disable-ipv6          Disable ipv6 support
1863  --enable-versioned-symbols
1864                          Enable versioned symbols in shared library
1865  --disable-versioned-symbols
1866                          Disable versioned symbols in shared library
1867  --enable-threaded-resolver
1868                          Enable threaded resolver
1869  --disable-threaded-resolver
1870                          Disable threaded resolver
1871  --enable-verbose        Enable verbose strings
1872  --disable-verbose       Disable verbose strings
1873  --enable-sspi           Enable SSPI
1874  --disable-sspi          Disable SSPI
1875  --enable-crypto-auth    Enable cryptographic authentication
1876  --disable-crypto-auth   Disable cryptographic authentication
1877  --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1878                          helper, where FILE is ntlm_auth's absolute filename
1879                          (default: /usr/bin/ntlm_auth)
1880  --disable-ntlm-wb       Disable NTLM delegation to winbind's ntlm_auth
1881                          helper
1882  --enable-tls-srp        Enable TLS-SRP authentication
1883  --disable-tls-srp       Disable TLS-SRP authentication
1884  --enable-cookies        Enable cookies support
1885  --disable-cookies       Disable cookies support
1886  --enable-soname-bump    Enable enforced SONAME bump
1887  --disable-soname-bump   Disable enforced SONAME bump
1888
1889Optional Packages:
1890  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1891  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1892  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1893                          both]
1894  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1895  --with-sysroot=DIR Search for dependent libraries within DIR
1896                        (or the compiler's sysroot if not specified).
1897  --with-zlib=PATH        search for zlib in PATH
1898  --without-zlib          disable use of zlib
1899  --with-ldap-lib=libname Specify name of ldap lib file
1900  --with-lber-lib=libname Specify name of lber lib file
1901  --with-spnego=DIR       Specify location of SPNEGO library fbopenssl
1902  --with-gssapi-includes=DIR
1903                          Specify location of GSS-API headers
1904  --with-gssapi-libs=DIR  Specify location of GSS-API libs
1905  --with-gssapi=DIR       Where to look for GSS-API
1906  --with-winssl           enable Windows native SSL/TLS
1907  --without-winssl        disable Windows native SSL/TLS
1908  --with-darwinssl        enable iOS/Mac OS X native SSL/TLS
1909  --without-darwinssl     disable iOS/Mac OS X native SSL/TLS
1910  --with-ssl=PATH         Where to look for OpenSSL, PATH points to the SSL
1911                          installation (default: /usr/local/ssl); when
1912                          possible, set the PKG_CONFIG_PATH environment
1913                          variable instead of using this option
1914  --without-ssl           disable OpenSSL
1915  --with-egd-socket=FILE  Entropy Gathering Daemon socket pathname
1916  --with-random=FILE      read randomness from FILE (default=/dev/urandom)
1917  --with-gnutls=PATH      where to look for GnuTLS, PATH points to the
1918                          installation root
1919  --without-gnutls        disable GnuTLS detection
1920  --with-polarssl=PATH    where to look for PolarSSL, PATH points to the
1921                          installation root
1922  --without-polarssl      disable PolarSSL detection
1923  --with-cyassl=PATH      where to look for CyaSSL, PATH points to the
1924                          installation root (default: system lib default)
1925  --without-cyassl        disable CyaSSL detection
1926  --with-nss=PATH         where to look for NSS, PATH points to the
1927                          installation root
1928  --without-nss           disable NSS detection
1929  --with-axtls=PATH       Where to look for axTLS, PATH points to the axTLS
1930                          installation prefix (default: /usr/local). Ignored
1931                          if another SSL engine is selected.
1932  --without-axtls         disable axTLS
1933  --with-ca-bundle=FILE   File name to use as CA bundle
1934  --without-ca-bundle     Don't use a default CA bundle
1935  --with-ca-path=DIRECTORY
1936                          Directory to use as CA path
1937  --without-ca-path       Don't use a default CA path
1938  --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1939                          installation root
1940  --without-libmetalink   disable libmetalink detection
1941  --with-libssh2=PATH     Where to look for libssh2, PATH points to the
1942                          LIBSSH2 installation; when possible, set the
1943                          PKG_CONFIG_PATH environment variable instead of
1944                          using this option
1945  --without-libssh2       disable LIBSSH2
1946  --with-librtmp=PATH     Where to look for librtmp, PATH points to the
1947                          LIBRTMP installation; when possible, set the
1948                          PKG_CONFIG_PATH environment variable instead of
1949                          using this option
1950  --without-librtmp       disable LIBRTMP
1951  --with-winidn=PATH      enable Windows native IDN
1952  --without-winidn        disable Windows native IDN
1953  --with-libidn=PATH      Enable libidn usage
1954  --without-libidn        Disable libidn usage
1955  --with-nghttp2=PATH     Enable nghttp2 usage
1956  --without-nghttp2       Disable nghttp2 usage
1957
1958Some influential environment variables:
1959  CC          C compiler command
1960  CFLAGS      C compiler flags
1961  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1962              nonstandard directory <lib dir>
1963  LIBS        libraries to pass to the linker, e.g. -l<library>
1964  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1965              you have headers in a nonstandard directory <include dir>
1966  CPP         C preprocessor
1967
1968Use these variables to override the choices made by `configure' or to help
1969it to find libraries and programs with nonstandard names/locations.
1970
1971Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1972_ACEOF
1973ac_status=$?
1974fi
1975
1976if test "$ac_init_help" = "recursive"; then
1977  # If there are subdirs, report their specific --help.
1978  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1979    test -d "$ac_dir" ||
1980      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1981      continue
1982    ac_builddir=.
1983
1984case "$ac_dir" in
1985.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1986*)
1987  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1988  # A ".." for each directory in $ac_dir_suffix.
1989  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1990  case $ac_top_builddir_sub in
1991  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1992  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1993  esac ;;
1994esac
1995ac_abs_top_builddir=$ac_pwd
1996ac_abs_builddir=$ac_pwd$ac_dir_suffix
1997# for backward compatibility:
1998ac_top_builddir=$ac_top_build_prefix
1999
2000case $srcdir in
2001  .)  # We are building in place.
2002    ac_srcdir=.
2003    ac_top_srcdir=$ac_top_builddir_sub
2004    ac_abs_top_srcdir=$ac_pwd ;;
2005  [\\/]* | ?:[\\/]* )  # Absolute name.
2006    ac_srcdir=$srcdir$ac_dir_suffix;
2007    ac_top_srcdir=$srcdir
2008    ac_abs_top_srcdir=$srcdir ;;
2009  *) # Relative name.
2010    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2011    ac_top_srcdir=$ac_top_build_prefix$srcdir
2012    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2013esac
2014ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2015
2016    cd "$ac_dir" || { ac_status=$?; continue; }
2017    # Check for guested configure.
2018    if test -f "$ac_srcdir/configure.gnu"; then
2019      echo &&
2020      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2021    elif test -f "$ac_srcdir/configure"; then
2022      echo &&
2023      $SHELL "$ac_srcdir/configure" --help=recursive
2024    else
2025      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2026    fi || ac_status=$?
2027    cd "$ac_pwd" || { ac_status=$?; break; }
2028  done
2029fi
2030
2031test -n "$ac_init_help" && exit $ac_status
2032if $ac_init_version; then
2033  cat <<\_ACEOF
2034curl configure -
2035generated by GNU Autoconf 2.69
2036
2037Copyright (C) 2012 Free Software Foundation, Inc.
2038This configure script is free software; the Free Software Foundation
2039gives unlimited permission to copy, distribute and modify it.
2040
2041Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
2042This configure script may be copied, distributed and modified under the
2043terms of the curl license; see COPYING for more details
2044_ACEOF
2045  exit
2046fi
2047
2048## ------------------------ ##
2049## Autoconf initialization. ##
2050## ------------------------ ##
2051
2052# ac_fn_c_try_compile LINENO
2053# --------------------------
2054# Try to compile conftest.$ac_ext, and return whether this succeeded.
2055ac_fn_c_try_compile ()
2056{
2057  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058  rm -f conftest.$ac_objext
2059  if { { ac_try="$ac_compile"
2060case "(($ac_try" in
2061  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062  *) ac_try_echo=$ac_try;;
2063esac
2064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065$as_echo "$ac_try_echo"; } >&5
2066  (eval "$ac_compile") 2>conftest.err
2067  ac_status=$?
2068  if test -s conftest.err; then
2069    grep -v '^ *+' conftest.err >conftest.er1
2070    cat conftest.er1 >&5
2071    mv -f conftest.er1 conftest.err
2072  fi
2073  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074  test $ac_status = 0; } && {
2075	 test -z "$ac_c_werror_flag" ||
2076	 test ! -s conftest.err
2077       } && test -s conftest.$ac_objext; then :
2078  ac_retval=0
2079else
2080  $as_echo "$as_me: failed program was:" >&5
2081sed 's/^/| /' conftest.$ac_ext >&5
2082
2083	ac_retval=1
2084fi
2085  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086  as_fn_set_status $ac_retval
2087
2088} # ac_fn_c_try_compile
2089
2090# ac_fn_c_try_cpp LINENO
2091# ----------------------
2092# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2093ac_fn_c_try_cpp ()
2094{
2095  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096  if { { ac_try="$ac_cpp conftest.$ac_ext"
2097case "(($ac_try" in
2098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099  *) ac_try_echo=$ac_try;;
2100esac
2101eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102$as_echo "$ac_try_echo"; } >&5
2103  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2104  ac_status=$?
2105  if test -s conftest.err; then
2106    grep -v '^ *+' conftest.err >conftest.er1
2107    cat conftest.er1 >&5
2108    mv -f conftest.er1 conftest.err
2109  fi
2110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111  test $ac_status = 0; } > conftest.i && {
2112	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2113	 test ! -s conftest.err
2114       }; then :
2115  ac_retval=0
2116else
2117  $as_echo "$as_me: failed program was:" >&5
2118sed 's/^/| /' conftest.$ac_ext >&5
2119
2120    ac_retval=1
2121fi
2122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123  as_fn_set_status $ac_retval
2124
2125} # ac_fn_c_try_cpp
2126
2127# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2128# -------------------------------------------------------
2129# Tests whether HEADER exists and can be compiled using the include files in
2130# INCLUDES, setting the cache variable VAR accordingly.
2131ac_fn_c_check_header_compile ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135$as_echo_n "checking for $2... " >&6; }
2136if eval \${$3+:} false; then :
2137  $as_echo_n "(cached) " >&6
2138else
2139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h.  */
2141$4
2142#include <$2>
2143_ACEOF
2144if ac_fn_c_try_compile "$LINENO"; then :
2145  eval "$3=yes"
2146else
2147  eval "$3=no"
2148fi
2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150fi
2151eval ac_res=\$$3
2152	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2153$as_echo "$ac_res" >&6; }
2154  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155
2156} # ac_fn_c_check_header_compile
2157
2158# ac_fn_c_try_run LINENO
2159# ----------------------
2160# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2161# that executables *can* be run.
2162ac_fn_c_try_run ()
2163{
2164  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2165  if { { ac_try="$ac_link"
2166case "(($ac_try" in
2167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168  *) ac_try_echo=$ac_try;;
2169esac
2170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171$as_echo "$ac_try_echo"; } >&5
2172  (eval "$ac_link") 2>&5
2173  ac_status=$?
2174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2176  { { case "(($ac_try" in
2177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178  *) ac_try_echo=$ac_try;;
2179esac
2180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181$as_echo "$ac_try_echo"; } >&5
2182  (eval "$ac_try") 2>&5
2183  ac_status=$?
2184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2185  test $ac_status = 0; }; }; then :
2186  ac_retval=0
2187else
2188  $as_echo "$as_me: program exited with status $ac_status" >&5
2189       $as_echo "$as_me: failed program was:" >&5
2190sed 's/^/| /' conftest.$ac_ext >&5
2191
2192       ac_retval=$ac_status
2193fi
2194  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2195  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196  as_fn_set_status $ac_retval
2197
2198} # ac_fn_c_try_run
2199
2200# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2201# --------------------------------------------
2202# Tries to find the compile-time value of EXPR in a program that includes
2203# INCLUDES, setting VAR accordingly. Returns whether the value could be
2204# computed
2205ac_fn_c_compute_int ()
2206{
2207  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208  if test "$cross_compiling" = yes; then
2209    # Depending upon the size, compute the lo and hi bounds.
2210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211/* end confdefs.h.  */
2212$4
2213int main (void)
2214{
2215static int test_array [1 - 2 * !(($2) >= 0)];
2216test_array [0] = 0;
2217return test_array [0];
2218
2219 ;
2220 return 0;
2221}
2222_ACEOF
2223if ac_fn_c_try_compile "$LINENO"; then :
2224  ac_lo=0 ac_mid=0
2225  while :; do
2226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229int main (void)
2230{
2231static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2232test_array [0] = 0;
2233return test_array [0];
2234
2235 ;
2236 return 0;
2237}
2238_ACEOF
2239if ac_fn_c_try_compile "$LINENO"; then :
2240  ac_hi=$ac_mid; break
2241else
2242  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2243			if test $ac_lo -le $ac_mid; then
2244			  ac_lo= ac_hi=
2245			  break
2246			fi
2247			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250  done
2251else
2252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253/* end confdefs.h.  */
2254$4
2255int main (void)
2256{
2257static int test_array [1 - 2 * !(($2) < 0)];
2258test_array [0] = 0;
2259return test_array [0];
2260
2261 ;
2262 return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266  ac_hi=-1 ac_mid=-1
2267  while :; do
2268    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h.  */
2270$4
2271int main (void)
2272{
2273static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2274test_array [0] = 0;
2275return test_array [0];
2276
2277 ;
2278 return 0;
2279}
2280_ACEOF
2281if ac_fn_c_try_compile "$LINENO"; then :
2282  ac_lo=$ac_mid; break
2283else
2284  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2285			if test $ac_mid -le $ac_hi; then
2286			  ac_lo= ac_hi=
2287			  break
2288			fi
2289			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2290fi
2291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292  done
2293else
2294  ac_lo= ac_hi=
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297fi
2298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299# Binary search between lo and hi bounds.
2300while test "x$ac_lo" != "x$ac_hi"; do
2301  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303/* end confdefs.h.  */
2304$4
2305int main (void)
2306{
2307static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2308test_array [0] = 0;
2309return test_array [0];
2310
2311 ;
2312 return 0;
2313}
2314_ACEOF
2315if ac_fn_c_try_compile "$LINENO"; then :
2316  ac_hi=$ac_mid
2317else
2318  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2319fi
2320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321done
2322case $ac_lo in #((
2323?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2324'') ac_retval=1 ;;
2325esac
2326  else
2327    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328/* end confdefs.h.  */
2329$4
2330static long int longval () { return $2; }
2331static unsigned long int ulongval () { return $2; }
2332#include <stdio.h>
2333#include <stdlib.h>
2334int main (void)
2335{
2336
2337  FILE *f = fopen ("conftest.val", "w");
2338  if (! f)
2339    return 1;
2340  if (($2) < 0)
2341    {
2342      long int i = longval ();
2343      if (i != ($2))
2344	return 1;
2345      fprintf (f, "%ld", i);
2346    }
2347  else
2348    {
2349      unsigned long int i = ulongval ();
2350      if (i != ($2))
2351	return 1;
2352      fprintf (f, "%lu", i);
2353    }
2354  /* Do not output a trailing newline, as this causes \r\n confusion
2355     on some platforms.  */
2356  return ferror (f) || fclose (f) != 0;
2357
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_run "$LINENO"; then :
2363  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364else
2365  ac_retval=1
2366fi
2367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368  conftest.$ac_objext conftest.beam conftest.$ac_ext
2369rm -f conftest.val
2370
2371  fi
2372  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373  as_fn_set_status $ac_retval
2374
2375} # ac_fn_c_compute_int
2376
2377# ac_fn_c_try_link LINENO
2378# -----------------------
2379# Try to link conftest.$ac_ext, and return whether this succeeded.
2380ac_fn_c_try_link ()
2381{
2382  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383  rm -f conftest.$ac_objext conftest$ac_exeext
2384  if { { ac_try="$ac_link"
2385case "(($ac_try" in
2386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387  *) ac_try_echo=$ac_try;;
2388esac
2389eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390$as_echo "$ac_try_echo"; } >&5
2391  (eval "$ac_link") 2>conftest.err
2392  ac_status=$?
2393  if test -s conftest.err; then
2394    grep -v '^ *+' conftest.err >conftest.er1
2395    cat conftest.er1 >&5
2396    mv -f conftest.er1 conftest.err
2397  fi
2398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399  test $ac_status = 0; } && {
2400	 test -z "$ac_c_werror_flag" ||
2401	 test ! -s conftest.err
2402       } && test -s conftest$ac_exeext && {
2403	 test "$cross_compiling" = yes ||
2404	 test -x conftest$ac_exeext
2405       }; then :
2406  ac_retval=0
2407else
2408  $as_echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
2410
2411	ac_retval=1
2412fi
2413  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2414  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2415  # interfere with the next link command; also delete a directory that is
2416  # left behind by Apple's compiler.  We do this before executing the actions.
2417  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2418  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2419  as_fn_set_status $ac_retval
2420
2421} # ac_fn_c_try_link
2422
2423# ac_fn_c_check_func LINENO FUNC VAR
2424# ----------------------------------
2425# Tests whether FUNC exists, setting the cache variable VAR accordingly
2426ac_fn_c_check_func ()
2427{
2428  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2430$as_echo_n "checking for $2... " >&6; }
2431if eval \${$3+:} false; then :
2432  $as_echo_n "(cached) " >&6
2433else
2434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435/* end confdefs.h.  */
2436
2437#define $2 innocuous_$2
2438#ifdef __STDC__
2439# include <limits.h>
2440#else
2441# include <assert.h>
2442#endif
2443#undef $2
2444#ifdef __cplusplus
2445extern "C"
2446#endif
2447char $2 ();
2448#if defined __stub_$2 || defined __stub___$2
2449choke me
2450#endif
2451
2452int main (void)
2453{
2454return $2 ();
2455 ;
2456 return 0;
2457}
2458_ACEOF
2459if ac_fn_c_try_link "$LINENO"; then :
2460  eval "$3=yes"
2461else
2462  eval "$3=no"
2463fi
2464rm -f core conftest.err conftest.$ac_objext \
2465    conftest$ac_exeext conftest.$ac_ext
2466fi
2467eval ac_res=\$$3
2468	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469$as_echo "$ac_res" >&6; }
2470  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2471
2472} # ac_fn_c_check_func
2473
2474# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2475# -------------------------------------------------------
2476# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2477# the include files in INCLUDES and setting the cache variable VAR
2478# accordingly.
2479ac_fn_c_check_header_mongrel ()
2480{
2481  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482  if eval \${$3+:} false; then :
2483  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2484$as_echo_n "checking for $2... " >&6; }
2485if eval \${$3+:} false; then :
2486  $as_echo_n "(cached) " >&6
2487fi
2488eval ac_res=\$$3
2489	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2490$as_echo "$ac_res" >&6; }
2491else
2492  # Is the header compilable?
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2494$as_echo_n "checking $2 usability... " >&6; }
2495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496/* end confdefs.h.  */
2497$4
2498#include <$2>
2499_ACEOF
2500if ac_fn_c_try_compile "$LINENO"; then :
2501  ac_header_compiler=yes
2502else
2503  ac_header_compiler=no
2504fi
2505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2507$as_echo "$ac_header_compiler" >&6; }
2508
2509# Is the header present?
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2511$as_echo_n "checking $2 presence... " >&6; }
2512cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513/* end confdefs.h.  */
2514#include <$2>
2515_ACEOF
2516if ac_fn_c_try_cpp "$LINENO"; then :
2517  ac_header_preproc=yes
2518else
2519  ac_header_preproc=no
2520fi
2521rm -f conftest.err conftest.i conftest.$ac_ext
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2523$as_echo "$ac_header_preproc" >&6; }
2524
2525# So?  What about this header?
2526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2527  yes:no: )
2528    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2529$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2530    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2532    ;;
2533  no:yes:* )
2534    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2535$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2536    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2537$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2538    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2539$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2540    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2541$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2542    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2543$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2544( $as_echo "## ---------------------------------------------------------------------- ##
2545## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2546## ---------------------------------------------------------------------- ##"
2547     ) | sed "s/^/$as_me: WARNING:     /" >&2
2548    ;;
2549esac
2550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551$as_echo_n "checking for $2... " >&6; }
2552if eval \${$3+:} false; then :
2553  $as_echo_n "(cached) " >&6
2554else
2555  eval "$3=\$ac_header_compiler"
2556fi
2557eval ac_res=\$$3
2558	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559$as_echo "$ac_res" >&6; }
2560fi
2561  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2562
2563} # ac_fn_c_check_header_mongrel
2564
2565# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2566# -------------------------------------------
2567# Tests whether TYPE exists after having included INCLUDES, setting cache
2568# variable VAR accordingly.
2569ac_fn_c_check_type ()
2570{
2571  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2573$as_echo_n "checking for $2... " >&6; }
2574if eval \${$3+:} false; then :
2575  $as_echo_n "(cached) " >&6
2576else
2577  eval "$3=no"
2578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h.  */
2580$4
2581int main (void)
2582{
2583if (sizeof ($2))
2584	 return 0;
2585 ;
2586 return 0;
2587}
2588_ACEOF
2589if ac_fn_c_try_compile "$LINENO"; then :
2590  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591/* end confdefs.h.  */
2592$4
2593int main (void)
2594{
2595if (sizeof (($2)))
2596	    return 0;
2597 ;
2598 return 0;
2599}
2600_ACEOF
2601if ac_fn_c_try_compile "$LINENO"; then :
2602
2603else
2604  eval "$3=yes"
2605fi
2606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609fi
2610eval ac_res=\$$3
2611	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612$as_echo "$ac_res" >&6; }
2613  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2614
2615} # ac_fn_c_check_type
2616cat >config.log <<_ACEOF
2617This file contains any messages produced by compilers while
2618running configure, to aid debugging if configure makes a mistake.
2619
2620It was created by curl $as_me -, which was
2621generated by GNU Autoconf 2.69.  Invocation command line was
2622
2623  $ $0 $@
2624
2625_ACEOF
2626exec 5>>config.log
2627{
2628cat <<_ASUNAME
2629## --------- ##
2630## Platform. ##
2631## --------- ##
2632
2633hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2634uname -m = `(uname -m) 2>/dev/null || echo unknown`
2635uname -r = `(uname -r) 2>/dev/null || echo unknown`
2636uname -s = `(uname -s) 2>/dev/null || echo unknown`
2637uname -v = `(uname -v) 2>/dev/null || echo unknown`
2638
2639/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2640/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2641
2642/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2643/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2644/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2645/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2646/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2647/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2648/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2649
2650_ASUNAME
2651
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655  IFS=$as_save_IFS
2656  test -z "$as_dir" && as_dir=.
2657    $as_echo "PATH: $as_dir"
2658  done
2659IFS=$as_save_IFS
2660
2661} >&5
2662
2663cat >&5 <<_ACEOF
2664
2665
2666## ----------- ##
2667## Core tests. ##
2668## ----------- ##
2669
2670_ACEOF
2671
2672
2673# Keep a trace of the command line.
2674# Strip out --no-create and --no-recursion so they do not pile up.
2675# Strip out --silent because we don't want to record it for future runs.
2676# Also quote any args containing shell meta-characters.
2677# Make two passes to allow for proper duplicate-argument suppression.
2678ac_configure_args=
2679ac_configure_args0=
2680ac_configure_args1=
2681ac_must_keep_next=false
2682for ac_pass in 1 2
2683do
2684  for ac_arg
2685  do
2686    case $ac_arg in
2687    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2688    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2689    | -silent | --silent | --silen | --sile | --sil)
2690      continue ;;
2691    *\'*)
2692      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2693    esac
2694    case $ac_pass in
2695    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2696    2)
2697      as_fn_append ac_configure_args1 " '$ac_arg'"
2698      if test $ac_must_keep_next = true; then
2699	ac_must_keep_next=false # Got value, back to normal.
2700      else
2701	case $ac_arg in
2702	  *=* | --config-cache | -C | -disable-* | --disable-* \
2703	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2704	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2705	  | -with-* | --with-* | -without-* | --without-* | --x)
2706	    case "$ac_configure_args0 " in
2707	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2708	    esac
2709	    ;;
2710	  -* ) ac_must_keep_next=true ;;
2711	esac
2712      fi
2713      as_fn_append ac_configure_args " '$ac_arg'"
2714      ;;
2715    esac
2716  done
2717done
2718{ ac_configure_args0=; unset ac_configure_args0;}
2719{ ac_configure_args1=; unset ac_configure_args1;}
2720
2721# When interrupted or exit'd, cleanup temporary files, and complete
2722# config.log.  We remove comments because anyway the quotes in there
2723# would cause problems or look ugly.
2724# WARNING: Use '\'' to represent an apostrophe within the trap.
2725# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2726trap 'exit_status=$?
2727  # Save into config.log some information that might help in debugging.
2728  {
2729    echo
2730
2731    $as_echo "## ---------------- ##
2732## Cache variables. ##
2733## ---------------- ##"
2734    echo
2735    # The following way of writing the cache mishandles newlines in values,
2736(
2737  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2738    eval ac_val=\$$ac_var
2739    case $ac_val in #(
2740    *${as_nl}*)
2741      case $ac_var in #(
2742      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744      esac
2745      case $ac_var in #(
2746      _ | IFS | as_nl) ;; #(
2747      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748      *) { eval $ac_var=; unset $ac_var;} ;;
2749      esac ;;
2750    esac
2751  done
2752  (set) 2>&1 |
2753    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2754    *${as_nl}ac_space=\ *)
2755      sed -n \
2756	"s/'\''/'\''\\\\'\'''\''/g;
2757	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758      ;; #(
2759    *)
2760      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2761      ;;
2762    esac |
2763    sort
2764)
2765    echo
2766
2767    $as_echo "## ----------------- ##
2768## Output variables. ##
2769## ----------------- ##"
2770    echo
2771    for ac_var in $ac_subst_vars
2772    do
2773      eval ac_val=\$$ac_var
2774      case $ac_val in
2775      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2776      esac
2777      $as_echo "$ac_var='\''$ac_val'\''"
2778    done | sort
2779    echo
2780
2781    if test -n "$ac_subst_files"; then
2782      $as_echo "## ------------------- ##
2783## File substitutions. ##
2784## ------------------- ##"
2785      echo
2786      for ac_var in $ac_subst_files
2787      do
2788	eval ac_val=\$$ac_var
2789	case $ac_val in
2790	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2791	esac
2792	$as_echo "$ac_var='\''$ac_val'\''"
2793      done | sort
2794      echo
2795    fi
2796
2797    if test -s confdefs.h; then
2798      $as_echo "## ----------- ##
2799## confdefs.h. ##
2800## ----------- ##"
2801      echo
2802      cat confdefs.h
2803      echo
2804    fi
2805    test "$ac_signal" != 0 &&
2806      $as_echo "$as_me: caught signal $ac_signal"
2807    $as_echo "$as_me: exit $exit_status"
2808  } >&5
2809  rm -f core *.core core.conftest.* &&
2810    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2811    exit $exit_status
2812' 0
2813for ac_signal in 1 2 13 15; do
2814  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2815done
2816ac_signal=0
2817
2818# confdefs.h avoids OS command line length limits that DEFS can exceed.
2819rm -f -r conftest* confdefs.h
2820
2821$as_echo "/* confdefs.h */" > confdefs.h
2822
2823# Predefined preprocessor variables.
2824
2825cat >>confdefs.h <<_ACEOF
2826#define PACKAGE_NAME "$PACKAGE_NAME"
2827_ACEOF
2828
2829cat >>confdefs.h <<_ACEOF
2830#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2831_ACEOF
2832
2833cat >>confdefs.h <<_ACEOF
2834#define PACKAGE_VERSION "$PACKAGE_VERSION"
2835_ACEOF
2836
2837cat >>confdefs.h <<_ACEOF
2838#define PACKAGE_STRING "$PACKAGE_STRING"
2839_ACEOF
2840
2841cat >>confdefs.h <<_ACEOF
2842#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2843_ACEOF
2844
2845cat >>confdefs.h <<_ACEOF
2846#define PACKAGE_URL "$PACKAGE_URL"
2847_ACEOF
2848
2849
2850# Let the site file select an alternate cache file if it wants to.
2851# Prefer an explicitly selected file to automatically selected ones.
2852ac_site_file1=NONE
2853ac_site_file2=NONE
2854if test -n "$CONFIG_SITE"; then
2855  # We do not want a PATH search for config.site.
2856  case $CONFIG_SITE in #((
2857    -*)  ac_site_file1=./$CONFIG_SITE;;
2858    */*) ac_site_file1=$CONFIG_SITE;;
2859    *)   ac_site_file1=./$CONFIG_SITE;;
2860  esac
2861elif test "x$prefix" != xNONE; then
2862  ac_site_file1=$prefix/share/config.site
2863  ac_site_file2=$prefix/etc/config.site
2864else
2865  ac_site_file1=$ac_default_prefix/share/config.site
2866  ac_site_file2=$ac_default_prefix/etc/config.site
2867fi
2868for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2869do
2870  test "x$ac_site_file" = xNONE && continue
2871  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2872    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2873$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2874    sed 's/^/| /' "$ac_site_file" >&5
2875    . "$ac_site_file" \
2876      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878as_fn_error $? "failed to load site script $ac_site_file
2879See \`config.log' for more details" "$LINENO" 5; }
2880  fi
2881done
2882
2883if test -r "$cache_file"; then
2884  # Some versions of bash will fail to source /dev/null (special files
2885  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2886  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2887    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2888$as_echo "$as_me: loading cache $cache_file" >&6;}
2889    case $cache_file in
2890      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2891      *)                      . "./$cache_file";;
2892    esac
2893  fi
2894else
2895  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2896$as_echo "$as_me: creating cache $cache_file" >&6;}
2897  >$cache_file
2898fi
2899
2900# Check that the precious variables saved in the cache have kept the same
2901# value.
2902ac_cache_corrupted=false
2903for ac_var in $ac_precious_vars; do
2904  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2905  eval ac_new_set=\$ac_env_${ac_var}_set
2906  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2907  eval ac_new_val=\$ac_env_${ac_var}_value
2908  case $ac_old_set,$ac_new_set in
2909    set,)
2910      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2911$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2912      ac_cache_corrupted=: ;;
2913    ,set)
2914      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2915$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2916      ac_cache_corrupted=: ;;
2917    ,);;
2918    *)
2919      if test "x$ac_old_val" != "x$ac_new_val"; then
2920	# differences in whitespace do not lead to failure.
2921	ac_old_val_w=`echo x $ac_old_val`
2922	ac_new_val_w=`echo x $ac_new_val`
2923	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2924	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2925$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2926	  ac_cache_corrupted=:
2927	else
2928	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2929$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2930	  eval $ac_var=\$ac_old_val
2931	fi
2932	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2933$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2934	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2935$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2936      fi;;
2937  esac
2938  # Pass precious variables to config.status.
2939  if test "$ac_new_set" = set; then
2940    case $ac_new_val in
2941    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2942    *) ac_arg=$ac_var=$ac_new_val ;;
2943    esac
2944    case " $ac_configure_args " in
2945      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2946      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2947    esac
2948  fi
2949done
2950if $ac_cache_corrupted; then
2951  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2954$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2955  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2956fi
2957## -------------------- ##
2958## Main body of script. ##
2959## -------------------- ##
2960
2961ac_ext=c
2962ac_cpp='$CPP $CPPFLAGS'
2963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2965ac_compiler_gnu=$ac_cv_c_compiler_gnu
2966
2967
2968
2969
2970
2971
2972
2973# using curl-override.m4
2974
2975
2976
2977
2978
2979ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
2980
2981
2982
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2984$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2985    # Check whether --enable-maintainer-mode was given.
2986if test "${enable_maintainer_mode+set}" = set; then :
2987  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2988else
2989  USE_MAINTAINER_MODE=no
2990fi
2991
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2993$as_echo "$USE_MAINTAINER_MODE" >&6; }
2994   if test $USE_MAINTAINER_MODE = yes; then
2995  MAINTAINER_MODE_TRUE=
2996  MAINTAINER_MODE_FALSE='#'
2997else
2998  MAINTAINER_MODE_TRUE='#'
2999  MAINTAINER_MODE_FALSE=
3000fi
3001
3002  MAINT=$MAINTAINER_MODE_TRUE
3003
3004
3005
3006
3007        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3008$as_echo_n "checking whether to enable debug build options... " >&6; }
3009  OPT_DEBUG_BUILD="default"
3010  # Check whether --enable-debug was given.
3011if test "${enable_debug+set}" = set; then :
3012  enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3013fi
3014
3015  case "$OPT_DEBUG_BUILD" in
3016    no)
3017            want_debug="no"
3018      ;;
3019    default)
3020            want_debug="no"
3021      ;;
3022    *)
3023            want_debug="yes"
3024      ;;
3025  esac
3026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3027$as_echo "$want_debug" >&6; }
3028
3029
3030      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3031$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3032  OPT_COMPILER_OPTIMIZE="default"
3033  # Check whether --enable-optimize was given.
3034if test "${enable_optimize+set}" = set; then :
3035  enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3036fi
3037
3038  case "$OPT_COMPILER_OPTIMIZE" in
3039    no)
3040                              want_optimize="no"
3041      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043      ;;
3044    default)
3045                                                                        if test "$want_debug" = "yes"; then
3046        want_optimize="assume_no"
3047        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3048$as_echo "(assumed) no" >&6; }
3049      else
3050        want_optimize="assume_yes"
3051        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3052$as_echo "(assumed) yes" >&6; }
3053      fi
3054      ;;
3055    *)
3056                              want_optimize="yes"
3057      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3058$as_echo "yes" >&6; }
3059      ;;
3060  esac
3061
3062
3063        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3064$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3065  OPT_COMPILER_WARNINGS="default"
3066  # Check whether --enable-warnings was given.
3067if test "${enable_warnings+set}" = set; then :
3068  enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3069fi
3070
3071  case "$OPT_COMPILER_WARNINGS" in
3072    no)
3073            want_warnings="no"
3074      ;;
3075    default)
3076                  want_warnings="$want_debug"
3077      ;;
3078    *)
3079            want_warnings="yes"
3080      ;;
3081  esac
3082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3083$as_echo "$want_warnings" >&6; }
3084
3085
3086    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3087$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3088  OPT_COMPILER_WERROR="default"
3089  # Check whether --enable-werror was given.
3090if test "${enable_werror+set}" = set; then :
3091  enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3092fi
3093
3094  case "$OPT_COMPILER_WERROR" in
3095    no)
3096            want_werror="no"
3097      ;;
3098    default)
3099            want_werror="no"
3100      ;;
3101    *)
3102            want_werror="yes"
3103      ;;
3104  esac
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3106$as_echo "$want_werror" >&6; }
3107
3108
3109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3110$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3111  OPT_CURLDEBUG_BUILD="default"
3112  # Check whether --enable-curldebug was given.
3113if test "${enable_curldebug+set}" = set; then :
3114  enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3115fi
3116
3117  case "$OPT_CURLDEBUG_BUILD" in
3118    no)
3119            want_curldebug="no"
3120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122      ;;
3123    default)
3124                                          if test "$want_debug" = "yes"; then
3125        { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3126$as_echo "(assumed) yes" >&6; }
3127      else
3128        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129$as_echo "no" >&6; }
3130      fi
3131      want_curldebug_assumed="yes"
3132      want_curldebug="$want_debug"
3133      ;;
3134    *)
3135                                                      want_curldebug="yes"
3136      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137$as_echo "yes" >&6; }
3138      ;;
3139  esac
3140
3141
3142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3143$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3144  OPT_SYMBOL_HIDING="default"
3145  # Check whether --enable-symbol-hiding was given.
3146if test "${enable_symbol_hiding+set}" = set; then :
3147  enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3148fi
3149
3150  # Check whether --enable-hidden-symbols was given.
3151if test "${enable_hidden_symbols+set}" = set; then :
3152  enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3153fi
3154
3155  case "$OPT_SYMBOL_HIDING" in
3156    no)
3157                              want_symbol_hiding="no"
3158      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159$as_echo "no" >&6; }
3160      ;;
3161    default)
3162                  want_symbol_hiding="yes"
3163      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164$as_echo "yes" >&6; }
3165      ;;
3166    *)
3167                        want_symbol_hiding="yes"
3168      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169$as_echo "yes" >&6; }
3170      ;;
3171  esac
3172
3173
3174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3175$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3176  OPT_ARES="default"
3177  # Check whether --enable-ares was given.
3178if test "${enable_ares+set}" = set; then :
3179  enableval=$enable_ares; OPT_ARES=$enableval
3180fi
3181
3182  case "$OPT_ARES" in
3183    no)
3184            want_ares="no"
3185      ;;
3186    default)
3187            want_ares="no"
3188      ;;
3189    *)
3190            want_ares="yes"
3191      if test -n "$enableval" && test "$enableval" != "yes"; then
3192        want_ares_path="$enableval"
3193      fi
3194      ;;
3195  esac
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3197$as_echo "$want_ares" >&6; }
3198
3199
3200#
3201# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3202#
3203
3204if test -z "$xc_configure_preamble_result"; then
3205  as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3206fi
3207
3208#
3209# Check that 'PATH_SEPARATOR' has already been set.
3210#
3211
3212if test -z "$xc_PATH_SEPARATOR"; then
3213  as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3214fi
3215if test -z "$PATH_SEPARATOR"; then
3216  as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3217fi
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3219$as_echo_n "checking for path separator... " >&6; }
3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3221$as_echo "$PATH_SEPARATOR" >&6; }
3222if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3224$as_echo_n "checking for initial path separator... " >&6; }
3225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3226$as_echo "$xc_PATH_SEPARATOR" >&6; }
3227  as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3228fi
3229
3230
3231#
3232# save the configure arguments
3233#
3234CONFIGURE_OPTIONS="\"$ac_configure_args\""
3235
3236
3237CURL_CFLAG_EXTRAS=""
3238if test X"$want_werror" = Xyes; then
3239  CURL_CFLAG_EXTRAS="-Werror"
3240fi
3241
3242
3243if test -z "$SED"; then
3244    # Extract the first word of "sed", so it can be a program name with args.
3245set dummy sed; ac_word=$2
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247$as_echo_n "checking for $ac_word... " >&6; }
3248if ${ac_cv_path_SED+:} false; then :
3249  $as_echo_n "(cached) " >&6
3250else
3251  case $SED in
3252  [\\/]* | ?:[\\/]*)
3253  ac_cv_path_SED="$SED" # Let the user override the test with a path.
3254  ;;
3255  *)
3256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257as_dummy="$PATH:/usr/bin:/usr/local/bin"
3258for as_dir in $as_dummy
3259do
3260  IFS=$as_save_IFS
3261  test -z "$as_dir" && as_dir=.
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272  test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3273  ;;
3274esac
3275fi
3276SED=$ac_cv_path_SED
3277if test -n "$SED"; then
3278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3279$as_echo "$SED" >&6; }
3280else
3281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282$as_echo "no" >&6; }
3283fi
3284
3285
3286  if test -z "$SED" || test "$SED" = "not_found"; then
3287    as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3288  fi
3289fi
3290
3291
3292if test -z "$GREP"; then
3293    # Extract the first word of "grep", so it can be a program name with args.
3294set dummy grep; ac_word=$2
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296$as_echo_n "checking for $ac_word... " >&6; }
3297if ${ac_cv_path_GREP+:} false; then :
3298  $as_echo_n "(cached) " >&6
3299else
3300  case $GREP in
3301  [\\/]* | ?:[\\/]*)
3302  ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3303  ;;
3304  *)
3305  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306as_dummy="$PATH:/usr/bin:/usr/local/bin"
3307for as_dir in $as_dummy
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311    for ac_exec_ext in '' $ac_executable_extensions; do
3312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313    ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318  done
3319IFS=$as_save_IFS
3320
3321  test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3322  ;;
3323esac
3324fi
3325GREP=$ac_cv_path_GREP
3326if test -n "$GREP"; then
3327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3328$as_echo "$GREP" >&6; }
3329else
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331$as_echo "no" >&6; }
3332fi
3333
3334
3335  if test -z "$GREP" || test "$GREP" = "not_found"; then
3336    as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3337  fi
3338fi
3339
3340
3341if test -z "$EGREP"; then
3342    if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3343    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3344$as_echo_n "checking for egrep... " >&6; }
3345    EGREP="$GREP -E"
3346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3347$as_echo "$EGREP" >&6; }
3348  else
3349    # Extract the first word of "egrep", so it can be a program name with args.
3350set dummy egrep; ac_word=$2
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352$as_echo_n "checking for $ac_word... " >&6; }
3353if ${ac_cv_path_EGREP+:} false; then :
3354  $as_echo_n "(cached) " >&6
3355else
3356  case $EGREP in
3357  [\\/]* | ?:[\\/]*)
3358  ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3359  ;;
3360  *)
3361  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362as_dummy="$PATH:/usr/bin:/usr/local/bin"
3363for as_dir in $as_dummy
3364do
3365  IFS=$as_save_IFS
3366  test -z "$as_dir" && as_dir=.
3367    for ac_exec_ext in '' $ac_executable_extensions; do
3368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3369    ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371    break 2
3372  fi
3373done
3374  done
3375IFS=$as_save_IFS
3376
3377  test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3378  ;;
3379esac
3380fi
3381EGREP=$ac_cv_path_EGREP
3382if test -n "$EGREP"; then
3383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3384$as_echo "$EGREP" >&6; }
3385else
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387$as_echo "no" >&6; }
3388fi
3389
3390
3391  fi
3392fi
3393if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3394  as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3395fi
3396
3397
3398if test -z "$AR"; then
3399    if test -n "$ac_tool_prefix"; then
3400  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3401set dummy ${ac_tool_prefix}ar; ac_word=$2
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403$as_echo_n "checking for $ac_word... " >&6; }
3404if ${ac_cv_path_AR+:} false; then :
3405  $as_echo_n "(cached) " >&6
3406else
3407  case $AR in
3408  [\\/]* | ?:[\\/]*)
3409  ac_cv_path_AR="$AR" # Let the user override the test with a path.
3410  ;;
3411  *)
3412  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413as_dummy="$PATH:/usr/bin:/usr/local/bin"
3414for as_dir in $as_dummy
3415do
3416  IFS=$as_save_IFS
3417  test -z "$as_dir" && as_dir=.
3418    for ac_exec_ext in '' $ac_executable_extensions; do
3419  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422    break 2
3423  fi
3424done
3425  done
3426IFS=$as_save_IFS
3427
3428  ;;
3429esac
3430fi
3431AR=$ac_cv_path_AR
3432if test -n "$AR"; then
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3434$as_echo "$AR" >&6; }
3435else
3436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437$as_echo "no" >&6; }
3438fi
3439
3440
3441fi
3442if test -z "$ac_cv_path_AR"; then
3443  ac_pt_AR=$AR
3444  # Extract the first word of "ar", so it can be a program name with args.
3445set dummy ar; ac_word=$2
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447$as_echo_n "checking for $ac_word... " >&6; }
3448if ${ac_cv_path_ac_pt_AR+:} false; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  case $ac_pt_AR in
3452  [\\/]* | ?:[\\/]*)
3453  ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3454  ;;
3455  *)
3456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457as_dummy="$PATH:/usr/bin:/usr/local/bin"
3458for as_dir in $as_dummy
3459do
3460  IFS=$as_save_IFS
3461  test -z "$as_dir" && as_dir=.
3462    for ac_exec_ext in '' $ac_executable_extensions; do
3463  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464    ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466    break 2
3467  fi
3468done
3469  done
3470IFS=$as_save_IFS
3471
3472  ;;
3473esac
3474fi
3475ac_pt_AR=$ac_cv_path_ac_pt_AR
3476if test -n "$ac_pt_AR"; then
3477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3478$as_echo "$ac_pt_AR" >&6; }
3479else
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481$as_echo "no" >&6; }
3482fi
3483
3484  if test "x$ac_pt_AR" = x; then
3485    AR="not_found"
3486  else
3487    case $cross_compiling:$ac_tool_warned in
3488yes:)
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491ac_tool_warned=yes ;;
3492esac
3493    AR=$ac_pt_AR
3494  fi
3495else
3496  AR="$ac_cv_path_AR"
3497fi
3498
3499  if test -z "$AR" || test "$AR" = "not_found"; then
3500    as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3501  fi
3502fi
3503
3504
3505
3506
3507if test -f ${srcdir}/include/curl/curlbuild.h; then
3508  rm -f ${srcdir}/include/curl/curlbuild.h
3509fi
3510
3511CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3512
3513  xc_prog_cc_prev_IFS=$IFS
3514  xc_prog_cc_prev_LIBS=$LIBS
3515  xc_prog_cc_prev_CFLAGS=$CFLAGS
3516  xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3517  xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3518
3519
3520
3521  xc_bad_var_libs=no
3522  for xc_word in $LIBS; do
3523    case "$xc_word" in
3524      -l* | --library=*)
3525        :
3526        ;;
3527      *)
3528        xc_bad_var_libs=yes
3529        ;;
3530    esac
3531  done
3532  if test $xc_bad_var_libs = yes; then
3533    { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3534$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3535    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3536$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3537  fi
3538
3539
3540  xc_bad_var_ldflags=no
3541  for xc_word in $LDFLAGS; do
3542    case "$xc_word" in
3543      -D*)
3544        xc_bad_var_ldflags=yes
3545        ;;
3546      -U*)
3547        xc_bad_var_ldflags=yes
3548        ;;
3549      -I*)
3550        xc_bad_var_ldflags=yes
3551        ;;
3552      -l* | --library=*)
3553        xc_bad_var_ldflags=yes
3554        ;;
3555    esac
3556  done
3557  if test $xc_bad_var_ldflags = yes; then
3558    { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3559$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3560    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3561    for xc_word in $LDFLAGS; do
3562      case "$xc_word" in
3563        -D*)
3564          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3565$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3566          ;;
3567        -U*)
3568          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3569$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3570          ;;
3571        -I*)
3572          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3573$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3574          ;;
3575        -l* | --library=*)
3576          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3577$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3578          ;;
3579      esac
3580    done
3581  fi
3582
3583
3584  xc_bad_var_cppflags=no
3585  for xc_word in $CPPFLAGS; do
3586    case "$xc_word" in
3587      -rpath*)
3588        xc_bad_var_cppflags=yes
3589        ;;
3590      -L* | --library-path=*)
3591        xc_bad_var_cppflags=yes
3592        ;;
3593      -l* | --library=*)
3594        xc_bad_var_cppflags=yes
3595        ;;
3596    esac
3597  done
3598  if test $xc_bad_var_cppflags = yes; then
3599    { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3600$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3601    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3602    for xc_word in $CPPFLAGS; do
3603      case "$xc_word" in
3604        -rpath*)
3605          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3606$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3607          ;;
3608        -L* | --library-path=*)
3609          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3610$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3611          ;;
3612        -l* | --library=*)
3613          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3614$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3615          ;;
3616      esac
3617    done
3618  fi
3619
3620
3621  xc_bad_var_cflags=no
3622  for xc_word in $CFLAGS; do
3623    case "$xc_word" in
3624      -D*)
3625        xc_bad_var_cflags=yes
3626        ;;
3627      -U*)
3628        xc_bad_var_cflags=yes
3629        ;;
3630      -I*)
3631        xc_bad_var_cflags=yes
3632        ;;
3633      -rpath*)
3634        xc_bad_var_cflags=yes
3635        ;;
3636      -L* | --library-path=*)
3637        xc_bad_var_cflags=yes
3638        ;;
3639      -l* | --library=*)
3640        xc_bad_var_cflags=yes
3641        ;;
3642    esac
3643  done
3644  if test $xc_bad_var_cflags = yes; then
3645    { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3646$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3647    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3648    for xc_word in $CFLAGS; do
3649      case "$xc_word" in
3650        -D*)
3651          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3652$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3653          ;;
3654        -U*)
3655          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3656$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3657          ;;
3658        -I*)
3659          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3660$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3661          ;;
3662        -rpath*)
3663          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3664$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3665          ;;
3666        -L* | --library-path=*)
3667          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3668$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3669          ;;
3670        -l* | --library=*)
3671          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3672$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3673          ;;
3674      esac
3675    done
3676  fi
3677
3678  if test $xc_bad_var_libs = yes ||
3679     test $xc_bad_var_cflags = yes ||
3680     test $xc_bad_var_ldflags = yes ||
3681     test $xc_bad_var_cppflags = yes; then
3682     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3683$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3684  fi
3685
3686ac_aux_dir=
3687for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3688  if test -f "$ac_dir/install-sh"; then
3689    ac_aux_dir=$ac_dir
3690    ac_install_sh="$ac_aux_dir/install-sh -c"
3691    break
3692  elif test -f "$ac_dir/install.sh"; then
3693    ac_aux_dir=$ac_dir
3694    ac_install_sh="$ac_aux_dir/install.sh -c"
3695    break
3696  elif test -f "$ac_dir/shtool"; then
3697    ac_aux_dir=$ac_dir
3698    ac_install_sh="$ac_aux_dir/shtool install -c"
3699    break
3700  fi
3701done
3702if test -z "$ac_aux_dir"; then
3703  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3704fi
3705
3706# These three variables are undocumented and unsupported,
3707# and are intended to be withdrawn in a future Autoconf release.
3708# They can cause serious problems if a builder's source tree is in a directory
3709# whose full name contains unusual characters.
3710ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3711ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3712ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3713
3714
3715# Find a good install program.  We prefer a C program (faster),
3716# so one script is as good as another.  But avoid the broken or
3717# incompatible versions:
3718# SysV /etc/install, /usr/sbin/install
3719# SunOS /usr/etc/install
3720# IRIX /sbin/install
3721# AIX /bin/install
3722# AmigaOS /C/install, which installs bootblocks on floppy discs
3723# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3724# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3725# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3726# OS/2's system install, which has a completely different semantic
3727# ./install, which can be erroneously created by make from ./install.sh.
3728# Reject install programs that cannot install multiple files.
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3730$as_echo_n "checking for a BSD-compatible install... " >&6; }
3731if test -z "$INSTALL"; then
3732if ${ac_cv_path_install+:} false; then :
3733  $as_echo_n "(cached) " >&6
3734else
3735  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738  IFS=$as_save_IFS
3739  test -z "$as_dir" && as_dir=.
3740    # Account for people who put trailing slashes in PATH elements.
3741case $as_dir/ in #((
3742  ./ | .// | /[cC]/* | \
3743  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3744  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3745  /usr/ucb/* ) ;;
3746  *)
3747    # OSF1 and SCO ODT 3.0 have their own names for install.
3748    # Don't use installbsd from OSF since it installs stuff as root
3749    # by default.
3750    for ac_prog in ginstall scoinst install; do
3751      for ac_exec_ext in '' $ac_executable_extensions; do
3752	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3753	  if test $ac_prog = install &&
3754	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3755	    # AIX install.  It has an incompatible calling convention.
3756	    :
3757	  elif test $ac_prog = install &&
3758	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3759	    # program-specific install script used by HP pwplus--don't use.
3760	    :
3761	  else
3762	    rm -rf conftest.one conftest.two conftest.dir
3763	    echo one > conftest.one
3764	    echo two > conftest.two
3765	    mkdir conftest.dir
3766	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3767	      test -s conftest.one && test -s conftest.two &&
3768	      test -s conftest.dir/conftest.one &&
3769	      test -s conftest.dir/conftest.two
3770	    then
3771	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3772	      break 3
3773	    fi
3774	  fi
3775	fi
3776      done
3777    done
3778    ;;
3779esac
3780
3781  done
3782IFS=$as_save_IFS
3783
3784rm -rf conftest.one conftest.two conftest.dir
3785
3786fi
3787  if test "${ac_cv_path_install+set}" = set; then
3788    INSTALL=$ac_cv_path_install
3789  else
3790    # As a last resort, use the slow shell script.  Don't cache a
3791    # value for INSTALL within a source directory, because that will
3792    # break other packages using the cache if that directory is
3793    # removed, or if the value is a relative name.
3794    INSTALL=$ac_install_sh
3795  fi
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3798$as_echo "$INSTALL" >&6; }
3799
3800# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3801# It thinks the first close brace ends the variable substitution.
3802test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3803
3804test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3805
3806test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3807
3808# expand $ac_aux_dir to an absolute path
3809am_aux_dir=`cd $ac_aux_dir && pwd`
3810
3811ac_ext=c
3812ac_cpp='$CPP $CPPFLAGS'
3813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816if test -n "$ac_tool_prefix"; then
3817  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3818set dummy ${ac_tool_prefix}gcc; ac_word=$2
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820$as_echo_n "checking for $ac_word... " >&6; }
3821if ${ac_cv_prog_CC+:} false; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  if test -n "$CC"; then
3825  ac_cv_prog_CC="$CC" # Let the user override the test.
3826else
3827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3828for as_dir in $PATH
3829do
3830  IFS=$as_save_IFS
3831  test -z "$as_dir" && as_dir=.
3832    for ac_exec_ext in '' $ac_executable_extensions; do
3833  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3834    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836    break 2
3837  fi
3838done
3839  done
3840IFS=$as_save_IFS
3841
3842fi
3843fi
3844CC=$ac_cv_prog_CC
3845if test -n "$CC"; then
3846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3847$as_echo "$CC" >&6; }
3848else
3849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3850$as_echo "no" >&6; }
3851fi
3852
3853
3854fi
3855if test -z "$ac_cv_prog_CC"; then
3856  ac_ct_CC=$CC
3857  # Extract the first word of "gcc", so it can be a program name with args.
3858set dummy gcc; ac_word=$2
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860$as_echo_n "checking for $ac_word... " >&6; }
3861if ${ac_cv_prog_ac_ct_CC+:} false; then :
3862  $as_echo_n "(cached) " >&6
3863else
3864  if test -n "$ac_ct_CC"; then
3865  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3866else
3867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868for as_dir in $PATH
3869do
3870  IFS=$as_save_IFS
3871  test -z "$as_dir" && as_dir=.
3872    for ac_exec_ext in '' $ac_executable_extensions; do
3873  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874    ac_cv_prog_ac_ct_CC="gcc"
3875    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884ac_ct_CC=$ac_cv_prog_ac_ct_CC
3885if test -n "$ac_ct_CC"; then
3886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3887$as_echo "$ac_ct_CC" >&6; }
3888else
3889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891fi
3892
3893  if test "x$ac_ct_CC" = x; then
3894    CC=""
3895  else
3896    case $cross_compiling:$ac_tool_warned in
3897yes:)
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900ac_tool_warned=yes ;;
3901esac
3902    CC=$ac_ct_CC
3903  fi
3904else
3905  CC="$ac_cv_prog_CC"
3906fi
3907
3908if test -z "$CC"; then
3909          if test -n "$ac_tool_prefix"; then
3910    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3911set dummy ${ac_tool_prefix}cc; ac_word=$2
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913$as_echo_n "checking for $ac_word... " >&6; }
3914if ${ac_cv_prog_CC+:} false; then :
3915  $as_echo_n "(cached) " >&6
3916else
3917  if test -n "$CC"; then
3918  ac_cv_prog_CC="$CC" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925    for ac_exec_ext in '' $ac_executable_extensions; do
3926  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927    ac_cv_prog_CC="${ac_tool_prefix}cc"
3928    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929    break 2
3930  fi
3931done
3932  done
3933IFS=$as_save_IFS
3934
3935fi
3936fi
3937CC=$ac_cv_prog_CC
3938if test -n "$CC"; then
3939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940$as_echo "$CC" >&6; }
3941else
3942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
3944fi
3945
3946
3947  fi
3948fi
3949if test -z "$CC"; then
3950  # Extract the first word of "cc", so it can be a program name with args.
3951set dummy cc; ac_word=$2
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953$as_echo_n "checking for $ac_word... " >&6; }
3954if ${ac_cv_prog_CC+:} false; then :
3955  $as_echo_n "(cached) " >&6
3956else
3957  if test -n "$CC"; then
3958  ac_cv_prog_CC="$CC" # Let the user override the test.
3959else
3960  ac_prog_rejected=no
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964  IFS=$as_save_IFS
3965  test -z "$as_dir" && as_dir=.
3966    for ac_exec_ext in '' $ac_executable_extensions; do
3967  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3969       ac_prog_rejected=yes
3970       continue
3971     fi
3972    ac_cv_prog_CC="cc"
3973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974    break 2
3975  fi
3976done
3977  done
3978IFS=$as_save_IFS
3979
3980if test $ac_prog_rejected = yes; then
3981  # We found a bogon in the path, so make sure we never use it.
3982  set dummy $ac_cv_prog_CC
3983  shift
3984  if test $# != 0; then
3985    # We chose a different compiler from the bogus one.
3986    # However, it has the same basename, so the bogon will be chosen
3987    # first if we set CC to just the basename; use the full file name.
3988    shift
3989    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3990  fi
3991fi
3992fi
3993fi
3994CC=$ac_cv_prog_CC
3995if test -n "$CC"; then
3996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3997$as_echo "$CC" >&6; }
3998else
3999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
4001fi
4002
4003
4004fi
4005if test -z "$CC"; then
4006  if test -n "$ac_tool_prefix"; then
4007  for ac_prog in cl.exe
4008  do
4009    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4010set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4012$as_echo_n "checking for $ac_word... " >&6; }
4013if ${ac_cv_prog_CC+:} false; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016  if test -n "$CC"; then
4017  ac_cv_prog_CC="$CC" # Let the user override the test.
4018else
4019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022  IFS=$as_save_IFS
4023  test -z "$as_dir" && as_dir=.
4024    for ac_exec_ext in '' $ac_executable_extensions; do
4025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4026    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028    break 2
4029  fi
4030done
4031  done
4032IFS=$as_save_IFS
4033
4034fi
4035fi
4036CC=$ac_cv_prog_CC
4037if test -n "$CC"; then
4038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4039$as_echo "$CC" >&6; }
4040else
4041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4042$as_echo "no" >&6; }
4043fi
4044
4045
4046    test -n "$CC" && break
4047  done
4048fi
4049if test -z "$CC"; then
4050  ac_ct_CC=$CC
4051  for ac_prog in cl.exe
4052do
4053  # Extract the first word of "$ac_prog", so it can be a program name with args.
4054set dummy $ac_prog; ac_word=$2
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
4057if ${ac_cv_prog_ac_ct_CC+:} false; then :
4058  $as_echo_n "(cached) " >&6
4059else
4060  if test -n "$ac_ct_CC"; then
4061  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4062else
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066  IFS=$as_save_IFS
4067  test -z "$as_dir" && as_dir=.
4068    for ac_exec_ext in '' $ac_executable_extensions; do
4069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070    ac_cv_prog_ac_ct_CC="$ac_prog"
4071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072    break 2
4073  fi
4074done
4075  done
4076IFS=$as_save_IFS
4077
4078fi
4079fi
4080ac_ct_CC=$ac_cv_prog_ac_ct_CC
4081if test -n "$ac_ct_CC"; then
4082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4083$as_echo "$ac_ct_CC" >&6; }
4084else
4085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087fi
4088
4089
4090  test -n "$ac_ct_CC" && break
4091done
4092
4093  if test "x$ac_ct_CC" = x; then
4094    CC=""
4095  else
4096    case $cross_compiling:$ac_tool_warned in
4097yes:)
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100ac_tool_warned=yes ;;
4101esac
4102    CC=$ac_ct_CC
4103  fi
4104fi
4105
4106fi
4107
4108
4109test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111as_fn_error $? "no acceptable C compiler found in \$PATH
4112See \`config.log' for more details" "$LINENO" 5; }
4113
4114# Provide some information about the compiler.
4115$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4116set X $ac_compile
4117ac_compiler=$2
4118for ac_option in --version -v -V -qversion; do
4119  { { ac_try="$ac_compiler $ac_option >&5"
4120case "(($ac_try" in
4121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122  *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4127  ac_status=$?
4128  if test -s conftest.err; then
4129    sed '10a\
4130... rest of stderr output deleted ...
4131         10q' conftest.err >conftest.er1
4132    cat conftest.er1 >&5
4133  fi
4134  rm -f conftest.er1 conftest.err
4135  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136  test $ac_status = 0; }
4137done
4138
4139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h.  */
4141
4142int main (void)
4143{
4144
4145 ;
4146 return 0;
4147}
4148_ACEOF
4149ac_clean_files_save=$ac_clean_files
4150ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4151# Try to create an executable without -o first, disregard a.out.
4152# It will help us diagnose broken compilers, and finding out an intuition
4153# of exeext.
4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4155$as_echo_n "checking whether the C compiler works... " >&6; }
4156ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4157
4158# The possible output files:
4159ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4160
4161ac_rmfiles=
4162for ac_file in $ac_files
4163do
4164  case $ac_file in
4165    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4166    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4167  esac
4168done
4169rm -f $ac_rmfiles
4170
4171if { { ac_try="$ac_link_default"
4172case "(($ac_try" in
4173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174  *) ac_try_echo=$ac_try;;
4175esac
4176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177$as_echo "$ac_try_echo"; } >&5
4178  (eval "$ac_link_default") 2>&5
4179  ac_status=$?
4180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4181  test $ac_status = 0; }; then :
4182  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4183# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4184# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4185# so that the user can short-circuit this test for compilers unknown to
4186# Autoconf.
4187for ac_file in $ac_files ''
4188do
4189  test -f "$ac_file" || continue
4190  case $ac_file in
4191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4192	;;
4193    [ab].out )
4194	# We found the default executable, but exeext='' is most
4195	# certainly right.
4196	break;;
4197    *.* )
4198	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4199	then :; else
4200	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4201	fi
4202	# We set ac_cv_exeext here because the later test for it is not
4203	# safe: cross compilers may not add the suffix if given an `-o'
4204	# argument, so we may need to know it at that point already.
4205	# Even if this section looks crufty: it has the advantage of
4206	# actually working.
4207	break;;
4208    * )
4209	break;;
4210  esac
4211done
4212test "$ac_cv_exeext" = no && ac_cv_exeext=
4213
4214else
4215  ac_file=''
4216fi
4217if test -z "$ac_file"; then :
4218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219$as_echo "no" >&6; }
4220$as_echo "$as_me: failed program was:" >&5
4221sed 's/^/| /' conftest.$ac_ext >&5
4222
4223{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4225as_fn_error 77 "C compiler cannot create executables
4226See \`config.log' for more details" "$LINENO" 5; }
4227else
4228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4229$as_echo "yes" >&6; }
4230fi
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4232$as_echo_n "checking for C compiler default output file name... " >&6; }
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4234$as_echo "$ac_file" >&6; }
4235ac_exeext=$ac_cv_exeext
4236
4237rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4238ac_clean_files=$ac_clean_files_save
4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4240$as_echo_n "checking for suffix of executables... " >&6; }
4241if { { ac_try="$ac_link"
4242case "(($ac_try" in
4243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244  *) ac_try_echo=$ac_try;;
4245esac
4246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4247$as_echo "$ac_try_echo"; } >&5
4248  (eval "$ac_link") 2>&5
4249  ac_status=$?
4250  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4251  test $ac_status = 0; }; then :
4252  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4253# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4254# work properly (i.e., refer to `conftest.exe'), while it won't with
4255# `rm'.
4256for ac_file in conftest.exe conftest conftest.*; do
4257  test -f "$ac_file" || continue
4258  case $ac_file in
4259    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4260    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4261	  break;;
4262    * ) break;;
4263  esac
4264done
4265else
4266  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4269See \`config.log' for more details" "$LINENO" 5; }
4270fi
4271rm -f conftest conftest$ac_cv_exeext
4272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4273$as_echo "$ac_cv_exeext" >&6; }
4274
4275rm -f conftest.$ac_ext
4276EXEEXT=$ac_cv_exeext
4277ac_exeext=$EXEEXT
4278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279/* end confdefs.h.  */
4280#include <stdio.h>
4281int main (void)
4282{
4283FILE *f = fopen ("conftest.out", "w");
4284 return ferror (f) || fclose (f) != 0;
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290ac_clean_files="$ac_clean_files conftest.out"
4291# Check that the compiler produces executables we can run.  If not, either
4292# the compiler is broken, or we cross compile.
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4294$as_echo_n "checking whether we are cross compiling... " >&6; }
4295if test "$cross_compiling" != yes; then
4296  { { ac_try="$ac_link"
4297case "(($ac_try" in
4298  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299  *) ac_try_echo=$ac_try;;
4300esac
4301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4302$as_echo "$ac_try_echo"; } >&5
4303  (eval "$ac_link") 2>&5
4304  ac_status=$?
4305  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306  test $ac_status = 0; }
4307  if { ac_try='./conftest$ac_cv_exeext'
4308  { { case "(($ac_try" in
4309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310  *) ac_try_echo=$ac_try;;
4311esac
4312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4313$as_echo "$ac_try_echo"; } >&5
4314  (eval "$ac_try") 2>&5
4315  ac_status=$?
4316  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317  test $ac_status = 0; }; }; then
4318    cross_compiling=no
4319  else
4320    if test "$cross_compiling" = maybe; then
4321	cross_compiling=yes
4322    else
4323	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325as_fn_error $? "cannot run C compiled programs.
4326If you meant to cross compile, use \`--host'.
4327See \`config.log' for more details" "$LINENO" 5; }
4328    fi
4329  fi
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4332$as_echo "$cross_compiling" >&6; }
4333
4334rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4335ac_clean_files=$ac_clean_files_save
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4337$as_echo_n "checking for suffix of object files... " >&6; }
4338if ${ac_cv_objext+:} false; then :
4339  $as_echo_n "(cached) " >&6
4340else
4341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h.  */
4343
4344int main (void)
4345{
4346
4347 ;
4348 return 0;
4349}
4350_ACEOF
4351rm -f conftest.o conftest.obj
4352if { { ac_try="$ac_compile"
4353case "(($ac_try" in
4354  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355  *) ac_try_echo=$ac_try;;
4356esac
4357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4358$as_echo "$ac_try_echo"; } >&5
4359  (eval "$ac_compile") 2>&5
4360  ac_status=$?
4361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4362  test $ac_status = 0; }; then :
4363  for ac_file in conftest.o conftest.obj conftest.*; do
4364  test -f "$ac_file" || continue;
4365  case $ac_file in
4366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4367    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4368       break;;
4369  esac
4370done
4371else
4372  $as_echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4377as_fn_error $? "cannot compute suffix of object files: cannot compile
4378See \`config.log' for more details" "$LINENO" 5; }
4379fi
4380rm -f conftest.$ac_cv_objext conftest.$ac_ext
4381fi
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4383$as_echo "$ac_cv_objext" >&6; }
4384OBJEXT=$ac_cv_objext
4385ac_objext=$OBJEXT
4386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4387$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4388if ${ac_cv_c_compiler_gnu+:} false; then :
4389  $as_echo_n "(cached) " >&6
4390else
4391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4392/* end confdefs.h.  */
4393
4394int main (void)
4395{
4396#ifndef __GNUC__
4397       choke me
4398#endif
4399
4400 ;
4401 return 0;
4402}
4403_ACEOF
4404if ac_fn_c_try_compile "$LINENO"; then :
4405  ac_compiler_gnu=yes
4406else
4407  ac_compiler_gnu=no
4408fi
4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410ac_cv_c_compiler_gnu=$ac_compiler_gnu
4411
4412fi
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4414$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4415if test $ac_compiler_gnu = yes; then
4416  GCC=yes
4417else
4418  GCC=
4419fi
4420ac_test_CFLAGS=${CFLAGS+set}
4421ac_save_CFLAGS=$CFLAGS
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4423$as_echo_n "checking whether $CC accepts -g... " >&6; }
4424if ${ac_cv_prog_cc_g+:} false; then :
4425  $as_echo_n "(cached) " >&6
4426else
4427  ac_save_c_werror_flag=$ac_c_werror_flag
4428   ac_c_werror_flag=yes
4429   ac_cv_prog_cc_g=no
4430   CFLAGS="-g"
4431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432/* end confdefs.h.  */
4433
4434int main (void)
4435{
4436
4437 ;
4438 return 0;
4439}
4440_ACEOF
4441if ac_fn_c_try_compile "$LINENO"; then :
4442  ac_cv_prog_cc_g=yes
4443else
4444  CFLAGS=""
4445      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446/* end confdefs.h.  */
4447
4448int main (void)
4449{
4450
4451 ;
4452 return 0;
4453}
4454_ACEOF
4455if ac_fn_c_try_compile "$LINENO"; then :
4456
4457else
4458  ac_c_werror_flag=$ac_save_c_werror_flag
4459	 CFLAGS="-g"
4460	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462
4463int main (void)
4464{
4465
4466 ;
4467 return 0;
4468}
4469_ACEOF
4470if ac_fn_c_try_compile "$LINENO"; then :
4471  ac_cv_prog_cc_g=yes
4472fi
4473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474fi
4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476fi
4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478   ac_c_werror_flag=$ac_save_c_werror_flag
4479fi
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4481$as_echo "$ac_cv_prog_cc_g" >&6; }
4482if test "$ac_test_CFLAGS" = set; then
4483  CFLAGS=$ac_save_CFLAGS
4484elif test $ac_cv_prog_cc_g = yes; then
4485  if test "$GCC" = yes; then
4486    CFLAGS="-g -O2"
4487  else
4488    CFLAGS="-g"
4489  fi
4490else
4491  if test "$GCC" = yes; then
4492    CFLAGS="-O2"
4493  else
4494    CFLAGS=
4495  fi
4496fi
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4498$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4499if ${ac_cv_prog_cc_c89+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  ac_cv_prog_cc_c89=no
4503ac_save_CC=$CC
4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h.  */
4506#include <stdarg.h>
4507#include <stdio.h>
4508struct stat;
4509/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4510struct buf { int x; };
4511FILE * (*rcsopen) (struct buf *, struct stat *, int);
4512static char *e (p, i)
4513     char **p;
4514     int i;
4515{
4516  return p[i];
4517}
4518static char *f (char * (*g) (char **, int), char **p, ...)
4519{
4520  char *s;
4521  va_list v;
4522  va_start (v,p);
4523  s = g (p, va_arg (v,int));
4524  va_end (v);
4525  return s;
4526}
4527
4528/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4529   function prototypes and stuff, but not '\xHH' hex character constants.
4530   These don't provoke an error unfortunately, instead are silently treated
4531   as 'x'.  The following induces an error, until -std is added to get
4532   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4533   array size at least.  It's necessary to write '\x00'==0 to get something
4534   that's true only with -std.  */
4535int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4536
4537/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4538   inside strings and character constants.  */
4539#define FOO(x) 'x'
4540int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4541
4542int test (int i, double x);
4543struct s1 {int (*f) (int a);};
4544struct s2 {int (*f) (double a);};
4545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4546int argc;
4547char **argv;
4548int main (void)
4549{
4550return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4556	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4557do
4558  CC="$ac_save_CC $ac_arg"
4559  if ac_fn_c_try_compile "$LINENO"; then :
4560  ac_cv_prog_cc_c89=$ac_arg
4561fi
4562rm -f core conftest.err conftest.$ac_objext
4563  test "x$ac_cv_prog_cc_c89" != "xno" && break
4564done
4565rm -f conftest.$ac_ext
4566CC=$ac_save_CC
4567
4568fi
4569# AC_CACHE_VAL
4570case "x$ac_cv_prog_cc_c89" in
4571  x)
4572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4573$as_echo "none needed" >&6; } ;;
4574  xno)
4575    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4576$as_echo "unsupported" >&6; } ;;
4577  *)
4578    CC="$CC $ac_cv_prog_cc_c89"
4579    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4580$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4581esac
4582if test "x$ac_cv_prog_cc_c89" != xno; then :
4583
4584fi
4585
4586ac_ext=c
4587ac_cpp='$CPP $CPPFLAGS'
4588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
4592ac_ext=c
4593ac_cpp='$CPP $CPPFLAGS'
4594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596ac_compiler_gnu=$ac_cv_c_compiler_gnu
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4598$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4599if ${am_cv_prog_cc_c_o+:} false; then :
4600  $as_echo_n "(cached) " >&6
4601else
4602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h.  */
4604
4605int main (void)
4606{
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
4612  # Make sure it works both with $CC and with simple cc.
4613  # Following AC_PROG_CC_C_O, we do the test twice because some
4614  # compilers refuse to overwrite an existing .o file with -o,
4615  # though they will create one.
4616  am_cv_prog_cc_c_o=yes
4617  for am_i in 1 2; do
4618    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4619   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4620   ac_status=$?
4621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622   (exit $ac_status); } \
4623         && test -f conftest2.$ac_objext; then
4624      : OK
4625    else
4626      am_cv_prog_cc_c_o=no
4627      break
4628    fi
4629  done
4630  rm -f core conftest*
4631  unset am_i
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4634$as_echo "$am_cv_prog_cc_c_o" >&6; }
4635if test "$am_cv_prog_cc_c_o" != yes; then
4636   # Losing compiler, so override with the script.
4637   # FIXME: It is wrong to rewrite CC.
4638   # But if we don't then we get into trouble of one sort or another.
4639   # A longer-term fix would be to have automake use am__CC in this case,
4640   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4641   CC="$am_aux_dir/compile $CC"
4642fi
4643ac_ext=c
4644ac_cpp='$CPP $CPPFLAGS'
4645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4647ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648
4649
4650
4651ac_ext=c
4652ac_cpp='$CPP $CPPFLAGS'
4653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4657$as_echo_n "checking how to run the C preprocessor... " >&6; }
4658# On Suns, sometimes $CPP names a directory.
4659if test -n "$CPP" && test -d "$CPP"; then
4660  CPP=
4661fi
4662if test -z "$CPP"; then
4663  if ${ac_cv_prog_CPP+:} false; then :
4664  $as_echo_n "(cached) " >&6
4665else
4666      # Double quotes because CPP needs to be expanded
4667    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4668    do
4669      ac_preproc_ok=false
4670for ac_c_preproc_warn_flag in '' yes
4671do
4672  # Use a header file that comes with gcc, so configuring glibc
4673  # with a fresh cross-compiler works.
4674  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675  # <limits.h> exists even on freestanding compilers.
4676  # On the NeXT, cc -E runs the code through the compiler's parser,
4677  # not just through cpp. "Syntax error" is here to catch this case.
4678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679/* end confdefs.h.  */
4680#ifdef __STDC__
4681# include <limits.h>
4682#else
4683# include <assert.h>
4684#endif
4685		     Syntax error
4686_ACEOF
4687if ac_fn_c_try_cpp "$LINENO"; then :
4688
4689else
4690  # Broken: fails on valid input.
4691continue
4692fi
4693rm -f conftest.err conftest.i conftest.$ac_ext
4694
4695  # OK, works on sane cases.  Now check whether nonexistent headers
4696  # can be detected and how.
4697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h.  */
4699#include <ac_nonexistent.h>
4700_ACEOF
4701if ac_fn_c_try_cpp "$LINENO"; then :
4702  # Broken: success on invalid input.
4703continue
4704else
4705  # Passes both tests.
4706ac_preproc_ok=:
4707break
4708fi
4709rm -f conftest.err conftest.i conftest.$ac_ext
4710
4711done
4712# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4713rm -f conftest.i conftest.err conftest.$ac_ext
4714if $ac_preproc_ok; then :
4715  break
4716fi
4717
4718    done
4719    ac_cv_prog_CPP=$CPP
4720
4721fi
4722  CPP=$ac_cv_prog_CPP
4723else
4724  ac_cv_prog_CPP=$CPP
4725fi
4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4727$as_echo "$CPP" >&6; }
4728ac_preproc_ok=false
4729for ac_c_preproc_warn_flag in '' yes
4730do
4731  # Use a header file that comes with gcc, so configuring glibc
4732  # with a fresh cross-compiler works.
4733  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4734  # <limits.h> exists even on freestanding compilers.
4735  # On the NeXT, cc -E runs the code through the compiler's parser,
4736  # not just through cpp. "Syntax error" is here to catch this case.
4737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h.  */
4739#ifdef __STDC__
4740# include <limits.h>
4741#else
4742# include <assert.h>
4743#endif
4744		     Syntax error
4745_ACEOF
4746if ac_fn_c_try_cpp "$LINENO"; then :
4747
4748else
4749  # Broken: fails on valid input.
4750continue
4751fi
4752rm -f conftest.err conftest.i conftest.$ac_ext
4753
4754  # OK, works on sane cases.  Now check whether nonexistent headers
4755  # can be detected and how.
4756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757/* end confdefs.h.  */
4758#include <ac_nonexistent.h>
4759_ACEOF
4760if ac_fn_c_try_cpp "$LINENO"; then :
4761  # Broken: success on invalid input.
4762continue
4763else
4764  # Passes both tests.
4765ac_preproc_ok=:
4766break
4767fi
4768rm -f conftest.err conftest.i conftest.$ac_ext
4769
4770done
4771# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4772rm -f conftest.i conftest.err conftest.$ac_ext
4773if $ac_preproc_ok; then :
4774
4775else
4776  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4778as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4779See \`config.log' for more details" "$LINENO" 5; }
4780fi
4781
4782ac_ext=c
4783ac_cpp='$CPP $CPPFLAGS'
4784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787
4788
4789  IFS=$xc_prog_cc_prev_IFS
4790  LIBS=$xc_prog_cc_prev_LIBS
4791  CFLAGS=$xc_prog_cc_prev_CFLAGS
4792  LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4793  CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4794
4795
4796
4797
4798
4799am__api_version='1.14'
4800
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4802$as_echo_n "checking whether build environment is sane... " >&6; }
4803# Reject unsafe characters in $srcdir or the absolute working directory
4804# name.  Accept space and tab only in the latter.
4805am_lf='
4806'
4807case `pwd` in
4808  *[\\\"\#\$\&\'\`$am_lf]*)
4809    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4810esac
4811case $srcdir in
4812  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4813    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4814esac
4815
4816# Do 'set' in a subshell so we don't clobber the current shell's
4817# arguments.  Must try -L first in case configure is actually a
4818# symlink; some systems play weird games with the mod time of symlinks
4819# (eg FreeBSD returns the mod time of the symlink's containing
4820# directory).
4821if (
4822   am_has_slept=no
4823   for am_try in 1 2; do
4824     echo "timestamp, slept: $am_has_slept" > conftest.file
4825     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4826     if test "$*" = "X"; then
4827	# -L didn't work.
4828	set X `ls -t "$srcdir/configure" conftest.file`
4829     fi
4830     if test "$*" != "X $srcdir/configure conftest.file" \
4831	&& test "$*" != "X conftest.file $srcdir/configure"; then
4832
4833	# If neither matched, then we have a broken ls.  This can happen
4834	# if, for instance, CONFIG_SHELL is bash and it inherits a
4835	# broken ls alias from the environment.  This has actually
4836	# happened.  Such a system could not be considered "sane".
4837	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4838  alias in your environment" "$LINENO" 5
4839     fi
4840     if test "$2" = conftest.file || test $am_try -eq 2; then
4841       break
4842     fi
4843     # Just in case.
4844     sleep 1
4845     am_has_slept=yes
4846   done
4847   test "$2" = conftest.file
4848   )
4849then
4850   # Ok.
4851   :
4852else
4853   as_fn_error $? "newly created file is older than distributed files!
4854Check your system clock" "$LINENO" 5
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857$as_echo "yes" >&6; }
4858# If we didn't sleep, we still need to ensure time stamps of config.status and
4859# generated files are strictly newer.
4860am_sleep_pid=
4861if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4862  ( sleep 1 ) &
4863  am_sleep_pid=$!
4864fi
4865
4866rm -f conftest.file
4867
4868test "$program_prefix" != NONE &&
4869  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4870# Use a double $ so make ignores it.
4871test "$program_suffix" != NONE &&
4872  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4873# Double any \ or $.
4874# By default was `s,x,x', remove it if useless.
4875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4877
4878test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
4879# Use eval to expand $SHELL
4880if eval "$MISSING --run true"; then
4881  am_missing_run="$MISSING --run "
4882else
4883  am_missing_run=
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4885$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4886fi
4887
4888if test x"${install_sh}" != xset; then
4889  case $am_aux_dir in
4890  *\ * | *\	*)
4891    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4892  *)
4893    install_sh="\${SHELL} $am_aux_dir/install-sh"
4894  esac
4895fi
4896
4897# Installed binaries are usually stripped using 'strip' when the user
4898# run "make install-strip".  However 'strip' might not be the right
4899# tool to use in cross-compilation environments, therefore Automake
4900# will honor the 'STRIP' environment variable to overrule this program.
4901if test "$cross_compiling" != no; then
4902  if test -n "$ac_tool_prefix"; then
4903  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4904set dummy ${ac_tool_prefix}strip; ac_word=$2
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906$as_echo_n "checking for $ac_word... " >&6; }
4907if ${ac_cv_prog_STRIP+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  if test -n "$STRIP"; then
4911  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916  IFS=$as_save_IFS
4917  test -z "$as_dir" && as_dir=.
4918    for ac_exec_ext in '' $ac_executable_extensions; do
4919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922    break 2
4923  fi
4924done
4925  done
4926IFS=$as_save_IFS
4927
4928fi
4929fi
4930STRIP=$ac_cv_prog_STRIP
4931if test -n "$STRIP"; then
4932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4933$as_echo "$STRIP" >&6; }
4934else
4935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936$as_echo "no" >&6; }
4937fi
4938
4939
4940fi
4941if test -z "$ac_cv_prog_STRIP"; then
4942  ac_ct_STRIP=$STRIP
4943  # Extract the first word of "strip", so it can be a program name with args.
4944set dummy strip; ac_word=$2
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946$as_echo_n "checking for $ac_word... " >&6; }
4947if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  if test -n "$ac_ct_STRIP"; then
4951  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960    ac_cv_prog_ac_ct_STRIP="strip"
4961    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962    break 2
4963  fi
4964done
4965  done
4966IFS=$as_save_IFS
4967
4968fi
4969fi
4970ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4971if test -n "$ac_ct_STRIP"; then
4972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4973$as_echo "$ac_ct_STRIP" >&6; }
4974else
4975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976$as_echo "no" >&6; }
4977fi
4978
4979  if test "x$ac_ct_STRIP" = x; then
4980    STRIP=":"
4981  else
4982    case $cross_compiling:$ac_tool_warned in
4983yes:)
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4986ac_tool_warned=yes ;;
4987esac
4988    STRIP=$ac_ct_STRIP
4989  fi
4990else
4991  STRIP="$ac_cv_prog_STRIP"
4992fi
4993
4994fi
4995INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4996
4997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4998$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4999if test -z "$MKDIR_P"; then
5000  if ${ac_cv_path_mkdir+:} false; then :
5001  $as_echo_n "(cached) " >&6
5002else
5003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5005do
5006  IFS=$as_save_IFS
5007  test -z "$as_dir" && as_dir=.
5008    for ac_prog in mkdir gmkdir; do
5009	 for ac_exec_ext in '' $ac_executable_extensions; do
5010	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5011	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5012	     'mkdir (GNU coreutils) '* | \
5013	     'mkdir (coreutils) '* | \
5014	     'mkdir (fileutils) '4.1*)
5015	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5016	       break 3;;
5017	   esac
5018	 done
5019       done
5020  done
5021IFS=$as_save_IFS
5022
5023fi
5024
5025  test -d ./--version && rmdir ./--version
5026  if test "${ac_cv_path_mkdir+set}" = set; then
5027    MKDIR_P="$ac_cv_path_mkdir -p"
5028  else
5029    # As a last resort, use the slow shell script.  Don't cache a
5030    # value for MKDIR_P within a source directory, because that will
5031    # break other packages using the cache if that directory is
5032    # removed, or if the value is a relative name.
5033    MKDIR_P="$ac_install_sh -d"
5034  fi
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5037$as_echo "$MKDIR_P" >&6; }
5038
5039for ac_prog in gawk mawk nawk awk
5040do
5041  # Extract the first word of "$ac_prog", so it can be a program name with args.
5042set dummy $ac_prog; ac_word=$2
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; }
5045if ${ac_cv_prog_AWK+:} false; then :
5046  $as_echo_n "(cached) " >&6
5047else
5048  if test -n "$AWK"; then
5049  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5050else
5051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052for as_dir in $PATH
5053do
5054  IFS=$as_save_IFS
5055  test -z "$as_dir" && as_dir=.
5056    for ac_exec_ext in '' $ac_executable_extensions; do
5057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5058    ac_cv_prog_AWK="$ac_prog"
5059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060    break 2
5061  fi
5062done
5063  done
5064IFS=$as_save_IFS
5065
5066fi
5067fi
5068AWK=$ac_cv_prog_AWK
5069if test -n "$AWK"; then
5070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5071$as_echo "$AWK" >&6; }
5072else
5073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074$as_echo "no" >&6; }
5075fi
5076
5077
5078  test -n "$AWK" && break
5079done
5080
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5082$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5083set x ${MAKE-make}
5084ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5085if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  cat >conftest.make <<\_ACEOF
5089SHELL = /bin/sh
5090all:
5091	@echo '@@@%%%=$(MAKE)=@@@%%%'
5092_ACEOF
5093# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5094case `${MAKE-make} -f conftest.make 2>/dev/null` in
5095  *@@@%%%=?*=@@@%%%*)
5096    eval ac_cv_prog_make_${ac_make}_set=yes;;
5097  *)
5098    eval ac_cv_prog_make_${ac_make}_set=no;;
5099esac
5100rm -f conftest.make
5101fi
5102if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5104$as_echo "yes" >&6; }
5105  SET_MAKE=
5106else
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108$as_echo "no" >&6; }
5109  SET_MAKE="MAKE=${MAKE-make}"
5110fi
5111
5112rm -rf .tst 2>/dev/null
5113mkdir .tst 2>/dev/null
5114if test -d .tst; then
5115  am__leading_dot=.
5116else
5117  am__leading_dot=_
5118fi
5119rmdir .tst 2>/dev/null
5120
5121DEPDIR="${am__leading_dot}deps"
5122
5123ac_config_commands="$ac_config_commands depfiles"
5124
5125
5126am_make=${MAKE-make}
5127cat > confinc << 'END'
5128am__doit:
5129	@echo this is the am__doit target
5130.PHONY: am__doit
5131END
5132# If we don't find an include directive, just comment out the code.
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5134$as_echo_n "checking for style of include used by $am_make... " >&6; }
5135am__include="#"
5136am__quote=
5137_am_result=none
5138# First try GNU make style include.
5139echo "include confinc" > confmf
5140# Ignore all kinds of additional output from 'make'.
5141case `$am_make -s -f confmf 2> /dev/null` in #(
5142*the\ am__doit\ target*)
5143  am__include=include
5144  am__quote=
5145  _am_result=GNU
5146  ;;
5147esac
5148# Now try BSD make style include.
5149if test "$am__include" = "#"; then
5150   echo '.include "confinc"' > confmf
5151   case `$am_make -s -f confmf 2> /dev/null` in #(
5152   *the\ am__doit\ target*)
5153     am__include=.include
5154     am__quote="\""
5155     _am_result=BSD
5156     ;;
5157   esac
5158fi
5159
5160
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5162$as_echo "$_am_result" >&6; }
5163rm -f confinc confmf
5164
5165# Check whether --enable-dependency-tracking was given.
5166if test "${enable_dependency_tracking+set}" = set; then :
5167  enableval=$enable_dependency_tracking;
5168fi
5169
5170if test "x$enable_dependency_tracking" != xno; then
5171  am_depcomp="$ac_aux_dir/depcomp"
5172  AMDEPBACKSLASH='\'
5173  am__nodep='_no'
5174fi
5175 if test "x$enable_dependency_tracking" != xno; then
5176  AMDEP_TRUE=
5177  AMDEP_FALSE='#'
5178else
5179  AMDEP_TRUE='#'
5180  AMDEP_FALSE=
5181fi
5182
5183
5184# Check whether --enable-silent-rules was given.
5185if test "${enable_silent_rules+set}" = set; then :
5186  enableval=$enable_silent_rules;
5187fi
5188
5189case $enable_silent_rules in # (((
5190  yes) AM_DEFAULT_VERBOSITY=0;;
5191   no) AM_DEFAULT_VERBOSITY=1;;
5192    *) AM_DEFAULT_VERBOSITY=1;;
5193esac
5194am_make=${MAKE-make}
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5196$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5197if ${am_cv_make_support_nested_variables+:} false; then :
5198  $as_echo_n "(cached) " >&6
5199else
5200  if $as_echo 'TRUE=$(BAR$(V))
5201BAR0=false
5202BAR1=true
5203V=1
5204am__doit:
5205	@$(TRUE)
5206.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5207  am_cv_make_support_nested_variables=yes
5208else
5209  am_cv_make_support_nested_variables=no
5210fi
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5213$as_echo "$am_cv_make_support_nested_variables" >&6; }
5214if test $am_cv_make_support_nested_variables = yes; then
5215    AM_V='$(V)'
5216  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5217else
5218  AM_V=$AM_DEFAULT_VERBOSITY
5219  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5220fi
5221AM_BACKSLASH='\'
5222
5223## --------------------------------------- ##
5224##  Start of automake initialization code  ##
5225## --------------------------------------- ##
5226
5227if test "`cd $srcdir && pwd`" != "`pwd`"; then
5228  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5229  # is not polluted with repeated "-I."
5230  am__isrc=' -I$(srcdir)'
5231  # test to see if srcdir already configured
5232  if test -f $srcdir/config.status; then
5233    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5234  fi
5235fi
5236
5237# test whether we have cygpath
5238if test -z "$CYGPATH_W"; then
5239  if (cygpath --version) >/dev/null 2>/dev/null; then
5240    CYGPATH_W='cygpath -w'
5241  else
5242    CYGPATH_W=echo
5243  fi
5244fi
5245
5246
5247# Define the identity of the package.
5248 PACKAGE='curl'
5249 VERSION='-'
5250
5251
5252cat >>confdefs.h <<_ACEOF
5253#define PACKAGE "$PACKAGE"
5254_ACEOF
5255
5256
5257cat >>confdefs.h <<_ACEOF
5258#define VERSION "$VERSION"
5259_ACEOF
5260
5261# Some tools Automake needs.
5262
5263ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5264
5265
5266AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5267
5268
5269AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5270
5271
5272AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5273
5274
5275MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5276
5277# For better backward compatibility.  To be removed once Automake 1.9.x
5278# dies out for good.  For more background, see:
5279# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5280# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5281mkdir_p='$(MKDIR_P)'
5282
5283# We need awk for the "check" target.  The system "awk" is bad on
5284# some platforms.
5285# Always define AMTAR for backward compatibility.  Yes, it's still used
5286# in the wild :-(  We should find a proper way to deprecate it ...
5287AMTAR='$${TAR-tar}'
5288
5289
5290# We'll loop over all known methods to create a tar archive until one works.
5291_am_tools='gnutar  pax cpio none'
5292
5293am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5294
5295
5296
5297
5298
5299depcc="$CC"   am_compiler_list=
5300
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5302$as_echo_n "checking dependency style of $depcc... " >&6; }
5303if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5304  $as_echo_n "(cached) " >&6
5305else
5306  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5307  # We make a subdir and do the tests there.  Otherwise we can end up
5308  # making bogus files that we don't know about and never remove.  For
5309  # instance it was reported that on HP-UX the gcc test will end up
5310  # making a dummy file named 'D' -- because '-MD' means "put the output
5311  # in D".
5312  rm -rf conftest.dir
5313  mkdir conftest.dir
5314  # Copy depcomp to subdir because otherwise we won't find it if we're
5315  # using a relative directory.
5316  cp "$am_depcomp" conftest.dir
5317  cd conftest.dir
5318  # We will build objects and dependencies in a subdirectory because
5319  # it helps to detect inapplicable dependency modes.  For instance
5320  # both Tru64's cc and ICC support -MD to output dependencies as a
5321  # side effect of compilation, but ICC will put the dependencies in
5322  # the current directory while Tru64 will put them in the object
5323  # directory.
5324  mkdir sub
5325
5326  am_cv_CC_dependencies_compiler_type=none
5327  if test "$am_compiler_list" = ""; then
5328     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5329  fi
5330  am__universal=false
5331  case " $depcc " in #(
5332     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5333     esac
5334
5335  for depmode in $am_compiler_list; do
5336    # Setup a source with many dependencies, because some compilers
5337    # like to wrap large dependency lists on column 80 (with \), and
5338    # we should not choose a depcomp mode which is confused by this.
5339    #
5340    # We need to recreate these files for each test, as the compiler may
5341    # overwrite some of them when testing with obscure command lines.
5342    # This happens at least with the AIX C compiler.
5343    : > sub/conftest.c
5344    for i in 1 2 3 4 5 6; do
5345      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5346      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5347      # Solaris 10 /bin/sh.
5348      echo '/* dummy */' > sub/conftst$i.h
5349    done
5350    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5351
5352    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5353    # mode.  It turns out that the SunPro C++ compiler does not properly
5354    # handle '-M -o', and we need to detect this.  Also, some Intel
5355    # versions had trouble with output in subdirs.
5356    am__obj=sub/conftest.${OBJEXT-o}
5357    am__minus_obj="-o $am__obj"
5358    case $depmode in
5359    gcc)
5360      # This depmode causes a compiler race in universal mode.
5361      test "$am__universal" = false || continue
5362      ;;
5363    nosideeffect)
5364      # After this tag, mechanisms are not by side-effect, so they'll
5365      # only be used when explicitly requested.
5366      if test "x$enable_dependency_tracking" = xyes; then
5367	continue
5368      else
5369	break
5370      fi
5371      ;;
5372    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5373      # This compiler won't grok '-c -o', but also, the minuso test has
5374      # not run yet.  These depmodes are late enough in the game, and
5375      # so weak that their functioning should not be impacted.
5376      am__obj=conftest.${OBJEXT-o}
5377      am__minus_obj=
5378      ;;
5379    none) break ;;
5380    esac
5381    if depmode=$depmode \
5382       source=sub/conftest.c object=$am__obj \
5383       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5384       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5385         >/dev/null 2>conftest.err &&
5386       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5387       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5388       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5389       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5390      # icc doesn't choke on unknown options, it will just issue warnings
5391      # or remarks (even with -Werror).  So we grep stderr for any message
5392      # that says an option was ignored or not supported.
5393      # When given -MP, icc 7.0 and 7.1 complain thusly:
5394      #   icc: Command line warning: ignoring option '-M'; no argument required
5395      # The diagnosis changed in icc 8.0:
5396      #   icc: Command line remark: option '-MP' not supported
5397      if (grep 'ignoring option' conftest.err ||
5398          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5399        am_cv_CC_dependencies_compiler_type=$depmode
5400        break
5401      fi
5402    fi
5403  done
5404
5405  cd ..
5406  rm -rf conftest.dir
5407else
5408  am_cv_CC_dependencies_compiler_type=none
5409fi
5410
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5413$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5414CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5415
5416 if
5417  test "x$enable_dependency_tracking" != xno \
5418  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5419  am__fastdepCC_TRUE=
5420  am__fastdepCC_FALSE='#'
5421else
5422  am__fastdepCC_TRUE='#'
5423  am__fastdepCC_FALSE=
5424fi
5425
5426
5427
5428# POSIX will say in a future version that running "rm -f" with no argument
5429# is OK; and we want to be able to make that assumption in our Makefile
5430# recipes.  So use an aggressive probe to check that the usage we want is
5431# actually supported "in the wild" to an acceptable degree.
5432# See automake bug#10828.
5433# To make any issue more visible, cause the running configure to be aborted
5434# by default if the 'rm' program in use doesn't match our expectations; the
5435# user can still override this though.
5436if rm -f && rm -fr && rm -rf; then : OK; else
5437  cat >&2 <<'END'
5438Oops!
5439
5440Your 'rm' program seems unable to run without file operands specified
5441on the command line, even when the '-f' option is present.  This is contrary
5442to the behaviour of most rm programs out there, and not conforming with
5443the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5444
5445Please tell bug-automake@gnu.org about your system, including the value
5446of your $PATH and any error possibly output before this message.  This
5447can help us improve future automake versions.
5448
5449END
5450  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5451    echo 'Configuration will proceed anyway, since you have set the' >&2
5452    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5453    echo >&2
5454  else
5455    cat >&2 <<'END'
5456Aborting the configuration process, to ensure you take notice of the issue.
5457
5458You can download and install GNU coreutils to get an 'rm' implementation
5459that behaves properly: <http://www.gnu.org/software/coreutils/>.
5460
5461If you want to complete the configuration process using your problematic
5462'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5463to "yes", and re-run configure.
5464
5465END
5466    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5467  fi
5468fi
5469
5470## ------------------------------------- ##
5471##  End of automake initialization code  ##
5472## ------------------------------------- ##
5473
5474
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5476$as_echo_n "checking curl version... " >&6; }
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5478$as_echo "$CURLVERSION" >&6; }
5479
5480
5481
5482VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5483
5484
5485PKGADD_PKG="HAXXcurl"
5486PKGADD_NAME="cURL - a client that groks URLs"
5487PKGADD_VENDOR="curl.haxx.se"
5488
5489
5490
5491
5492    curl_ssl_msg="no      (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
5493    curl_ssh_msg="no      (--with-libssh2)"
5494   curl_zlib_msg="no      (--with-zlib)"
5495    curl_gss_msg="no      (--with-gssapi)"
5496 curl_spnego_msg="no      (--with-spnego)"
5497curl_tls_srp_msg="no      (--enable-tls-srp)"
5498    curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5499   curl_ipv6_msg="no      (--enable-ipv6)"
5500    curl_idn_msg="no      (--with-{libidn,winidn})"
5501 curl_manual_msg="no      (--enable-manual)"
5502curl_libcurl_msg="enabled (--disable-libcurl-option)"
5503curl_verbose_msg="enabled (--disable-verbose)"
5504   curl_sspi_msg="no      (--enable-sspi)"
5505   curl_ldap_msg="no      (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5506  curl_ldaps_msg="no      (--enable-ldaps)"
5507   curl_rtsp_msg="no      (--enable-rtsp)"
5508   curl_rtmp_msg="no      (--with-librtmp)"
5509  curl_mtlnk_msg="no      (--with-libmetalink)"
5510
5511    init_ssl_msg=${curl_ssl_msg}
5512
5513INITIAL_LDFLAGS=$LDFLAGS
5514INITIAL_LIBS=$LIBS
5515
5516
5517# Make sure we can run config.sub.
5518$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5519  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5520
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5522$as_echo_n "checking build system type... " >&6; }
5523if ${ac_cv_build+:} false; then :
5524  $as_echo_n "(cached) " >&6
5525else
5526  ac_build_alias=$build_alias
5527test "x$ac_build_alias" = x &&
5528  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5529test "x$ac_build_alias" = x &&
5530  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5531ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5532  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5533
5534fi
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5536$as_echo "$ac_cv_build" >&6; }
5537case $ac_cv_build in
5538*-*-*) ;;
5539*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5540esac
5541build=$ac_cv_build
5542ac_save_IFS=$IFS; IFS='-'
5543set x $ac_cv_build
5544shift
5545build_cpu=$1
5546build_vendor=$2
5547shift; shift
5548# Remember, the first character of IFS is used to create $*,
5549# except with old shells:
5550build_os=$*
5551IFS=$ac_save_IFS
5552case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5553
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5556$as_echo_n "checking host system type... " >&6; }
5557if ${ac_cv_host+:} false; then :
5558  $as_echo_n "(cached) " >&6
5559else
5560  if test "x$host_alias" = x; then
5561  ac_cv_host=$ac_cv_build
5562else
5563  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5564    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5565fi
5566
5567fi
5568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5569$as_echo "$ac_cv_host" >&6; }
5570case $ac_cv_host in
5571*-*-*) ;;
5572*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5573esac
5574host=$ac_cv_host
5575ac_save_IFS=$IFS; IFS='-'
5576set x $ac_cv_host
5577shift
5578host_cpu=$1
5579host_vendor=$2
5580shift; shift
5581# Remember, the first character of IFS is used to create $*,
5582# except with old shells:
5583host_os=$*
5584IFS=$ac_save_IFS
5585case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5586
5587
5588
5589cat >>confdefs.h <<_ACEOF
5590#define OS "${host}"
5591_ACEOF
5592
5593
5594
5595
5596
5597curl_includes_inttypes="\
5598/* includes start */
5599#ifdef HAVE_SYS_TYPES_H
5600# include <sys/types.h>
5601#endif
5602#ifdef HAVE_STDINT_H
5603# include <stdint.h>
5604#endif
5605#ifdef HAVE_INTTYPES_H
5606# include <inttypes.h>
5607#endif
5608/* includes end */"
5609  case $host_os in
5610    irix*)
5611      ac_cv_header_stdint_h="no"
5612      ;;
5613  esac
5614  for ac_header in sys/types.h stdint.h inttypes.h
5615do :
5616  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5617ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5618"
5619if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5620  cat >>confdefs.h <<_ACEOF
5621#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622_ACEOF
5623
5624fi
5625
5626done
5627
5628
5629
5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5631$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5632if ${ac_cv_path_GREP+:} false; then :
5633  $as_echo_n "(cached) " >&6
5634else
5635  if test -z "$GREP"; then
5636  ac_path_GREP_found=false
5637  # Loop through the user's path and test for each of PROGNAME-LIST
5638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5640do
5641  IFS=$as_save_IFS
5642  test -z "$as_dir" && as_dir=.
5643    for ac_prog in grep ggrep; do
5644    for ac_exec_ext in '' $ac_executable_extensions; do
5645      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5646      as_fn_executable_p "$ac_path_GREP" || continue
5647# Check for GNU ac_path_GREP and select it if it is found.
5648  # Check for GNU $ac_path_GREP
5649case `"$ac_path_GREP" --version 2>&1` in
5650*GNU*)
5651  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5652*)
5653  ac_count=0
5654  $as_echo_n 0123456789 >"conftest.in"
5655  while :
5656  do
5657    cat "conftest.in" "conftest.in" >"conftest.tmp"
5658    mv "conftest.tmp" "conftest.in"
5659    cp "conftest.in" "conftest.nl"
5660    $as_echo 'GREP' >> "conftest.nl"
5661    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663    as_fn_arith $ac_count + 1 && ac_count=$as_val
5664    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5665      # Best one so far, save it but keep looking for a better one
5666      ac_cv_path_GREP="$ac_path_GREP"
5667      ac_path_GREP_max=$ac_count
5668    fi
5669    # 10*(2^10) chars as input seems more than enough
5670    test $ac_count -gt 10 && break
5671  done
5672  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673esac
5674
5675      $ac_path_GREP_found && break 3
5676    done
5677  done
5678  done
5679IFS=$as_save_IFS
5680  if test -z "$ac_cv_path_GREP"; then
5681    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5682  fi
5683else
5684  ac_cv_path_GREP=$GREP
5685fi
5686
5687fi
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5689$as_echo "$ac_cv_path_GREP" >&6; }
5690 GREP="$ac_cv_path_GREP"
5691
5692
5693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5694$as_echo_n "checking for egrep... " >&6; }
5695if ${ac_cv_path_EGREP+:} false; then :
5696  $as_echo_n "(cached) " >&6
5697else
5698  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5699   then ac_cv_path_EGREP="$GREP -E"
5700   else
5701     if test -z "$EGREP"; then
5702  ac_path_EGREP_found=false
5703  # Loop through the user's path and test for each of PROGNAME-LIST
5704  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5706do
5707  IFS=$as_save_IFS
5708  test -z "$as_dir" && as_dir=.
5709    for ac_prog in egrep; do
5710    for ac_exec_ext in '' $ac_executable_extensions; do
5711      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5712      as_fn_executable_p "$ac_path_EGREP" || continue
5713# Check for GNU ac_path_EGREP and select it if it is found.
5714  # Check for GNU $ac_path_EGREP
5715case `"$ac_path_EGREP" --version 2>&1` in
5716*GNU*)
5717  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5718*)
5719  ac_count=0
5720  $as_echo_n 0123456789 >"conftest.in"
5721  while :
5722  do
5723    cat "conftest.in" "conftest.in" >"conftest.tmp"
5724    mv "conftest.tmp" "conftest.in"
5725    cp "conftest.in" "conftest.nl"
5726    $as_echo 'EGREP' >> "conftest.nl"
5727    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5728    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5729    as_fn_arith $ac_count + 1 && ac_count=$as_val
5730    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5731      # Best one so far, save it but keep looking for a better one
5732      ac_cv_path_EGREP="$ac_path_EGREP"
5733      ac_path_EGREP_max=$ac_count
5734    fi
5735    # 10*(2^10) chars as input seems more than enough
5736    test $ac_count -gt 10 && break
5737  done
5738  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5739esac
5740
5741      $ac_path_EGREP_found && break 3
5742    done
5743  done
5744  done
5745IFS=$as_save_IFS
5746  if test -z "$ac_cv_path_EGREP"; then
5747    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5748  fi
5749else
5750  ac_cv_path_EGREP=$EGREP
5751fi
5752
5753   fi
5754fi
5755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5756$as_echo "$ac_cv_path_EGREP" >&6; }
5757 EGREP="$ac_cv_path_EGREP"
5758
5759
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5761$as_echo_n "checking for ANSI C header files... " >&6; }
5762if ${ac_cv_header_stdc+:} false; then :
5763  $as_echo_n "(cached) " >&6
5764else
5765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h.  */
5767#include <stdlib.h>
5768#include <stdarg.h>
5769#include <string.h>
5770#include <float.h>
5771
5772int main (void)
5773{
5774
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779if ac_fn_c_try_compile "$LINENO"; then :
5780  ac_cv_header_stdc=yes
5781else
5782  ac_cv_header_stdc=no
5783fi
5784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5785
5786if test $ac_cv_header_stdc = yes; then
5787  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790#include <string.h>
5791
5792_ACEOF
5793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5794  $EGREP "memchr" >/dev/null 2>&1; then :
5795
5796else
5797  ac_cv_header_stdc=no
5798fi
5799rm -f conftest*
5800
5801fi
5802
5803if test $ac_cv_header_stdc = yes; then
5804  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h.  */
5807#include <stdlib.h>
5808
5809_ACEOF
5810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5811  $EGREP "free" >/dev/null 2>&1; then :
5812
5813else
5814  ac_cv_header_stdc=no
5815fi
5816rm -f conftest*
5817
5818fi
5819
5820if test $ac_cv_header_stdc = yes; then
5821  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5822  if test "$cross_compiling" = yes; then :
5823  :
5824else
5825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5826/* end confdefs.h.  */
5827#include <ctype.h>
5828#include <stdlib.h>
5829#if ((' ' & 0x0FF) == 0x020)
5830# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5831# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5832#else
5833# define ISLOWER(c) \
5834		   (('a' <= (c) && (c) <= 'i') \
5835		     || ('j' <= (c) && (c) <= 'r') \
5836		     || ('s' <= (c) && (c) <= 'z'))
5837# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5838#endif
5839
5840#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5841int
5842main ()
5843{
5844  int i;
5845  for (i = 0; i < 256; i++)
5846    if (XOR (islower (i), ISLOWER (i))
5847	|| toupper (i) != TOUPPER (i))
5848      return 2;
5849  return 0;
5850}
5851_ACEOF
5852if ac_fn_c_try_run "$LINENO"; then :
5853
5854else
5855  ac_cv_header_stdc=no
5856fi
5857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5858  conftest.$ac_objext conftest.beam conftest.$ac_ext
5859fi
5860
5861fi
5862fi
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5864$as_echo "$ac_cv_header_stdc" >&6; }
5865if test $ac_cv_header_stdc = yes; then
5866
5867$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5868
5869fi
5870
5871# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5872for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5873		  inttypes.h stdint.h unistd.h
5874do :
5875  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5876ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5877"
5878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5879  cat >>confdefs.h <<_ACEOF
5880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5881_ACEOF
5882
5883fi
5884
5885done
5886
5887
5888
5889    #
5890        #
5891  if test -z "$SED"; then
5892    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5893  fi
5894  #
5895  # The cast to long int works around a bug in the HP C Compiler
5896# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5897# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5898# This bug is HP SR number 8606223364.
5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5900$as_echo_n "checking size of long... " >&6; }
5901if ${ac_cv_sizeof_long+:} false; then :
5902  $as_echo_n "(cached) " >&6
5903else
5904  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5905
5906else
5907  if test "$ac_cv_type_long" = yes; then
5908     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5910as_fn_error 77 "cannot compute sizeof (long)
5911See \`config.log' for more details" "$LINENO" 5; }
5912   else
5913     ac_cv_sizeof_long=0
5914   fi
5915fi
5916
5917fi
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5919$as_echo "$ac_cv_sizeof_long" >&6; }
5920
5921
5922
5923cat >>confdefs.h <<_ACEOF
5924#define SIZEOF_LONG $ac_cv_sizeof_long
5925_ACEOF
5926
5927
5928  # The cast to long int works around a bug in the HP C Compiler
5929# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5930# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5931# This bug is HP SR number 8606223364.
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5933$as_echo_n "checking size of void*... " >&6; }
5934if ${ac_cv_sizeof_voidp+:} false; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
5938
5939else
5940  if test "$ac_cv_type_voidp" = yes; then
5941     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5943as_fn_error 77 "cannot compute sizeof (void*)
5944See \`config.log' for more details" "$LINENO" 5; }
5945   else
5946     ac_cv_sizeof_voidp=0
5947   fi
5948fi
5949
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
5952$as_echo "$ac_cv_sizeof_voidp" >&6; }
5953
5954
5955
5956cat >>confdefs.h <<_ACEOF
5957#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
5958_ACEOF
5959
5960
5961  #
5962  if test -z "$ac_cv_sizeof_long" ||
5963    test "$ac_cv_sizeof_long" -eq "0"; then
5964    as_fn_error $? "cannot find out size of long." "$LINENO" 5
5965  fi
5966  if test -z "$ac_cv_sizeof_voidp" ||
5967     test "$ac_cv_sizeof_voidp" -eq "0"; then
5968    as_fn_error $? "cannot find out size of void*." "$LINENO" 5
5969  fi
5970  #
5971  x_LP64_long=""
5972  x_LP32_long=""
5973  x_LP16_long=""
5974  #
5975  if test "$ac_cv_sizeof_long" -eq "8" &&
5976     test "$ac_cv_sizeof_voidp" -ge "8"; then
5977    x_LP64_long="long"
5978  elif test "$ac_cv_sizeof_long" -eq "4" &&
5979       test "$ac_cv_sizeof_voidp" -ge "4"; then
5980    x_LP32_long="long"
5981  elif test "$ac_cv_sizeof_long" -eq "2" &&
5982       test "$ac_cv_sizeof_voidp" -ge "2"; then
5983    x_LP16_long="long"
5984  fi
5985  #
5986    #
5987  curl_typeof_curl_off_t="unknown"
5988  curl_sizeof_curl_off_t="unknown"
5989  curl_format_curl_off_t="unknown"
5990  curl_format_curl_off_tu="unknown"
5991  #
5992  if test "$curl_typeof_curl_off_t" = "unknown"; then
5993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
5994$as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
5995    for t8 in          \
5996      "$x_LP64_long"   \
5997      'int64_t'        \
5998      '__int64'        \
5999      'long long'      \
6000      '__longlong'     \
6001      '__longlong_t'   ; do
6002
6003    if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6004    tmp_includes=""
6005    tmp_source=""
6006    tmp_fmt=""
6007    case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6008      int64_t)
6009        tmp_includes="$curl_includes_inttypes"
6010        tmp_source="char f[] = PRId64;"
6011        tmp_fmt="PRId64"
6012        ;;
6013      int32_t)
6014        tmp_includes="$curl_includes_inttypes"
6015        tmp_source="char f[] = PRId32;"
6016        tmp_fmt="PRId32"
6017        ;;
6018      int16_t)
6019        tmp_includes="$curl_includes_inttypes"
6020        tmp_source="char f[] = PRId16;"
6021        tmp_fmt="PRId16"
6022        ;;
6023    esac
6024    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025/* end confdefs.h.  */
6026
6027
6028        $tmp_includes
6029        typedef $t8 curl_off_t;
6030        typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6031
6032int main (void)
6033{
6034
6035        $tmp_source
6036        curl_off_t dummy;
6037
6038 ;
6039 return 0;
6040}
6041
6042_ACEOF
6043if ac_fn_c_try_compile "$LINENO"; then :
6044
6045      if test -z "$tmp_fmt"; then
6046        curl_typeof_curl_off_t="$t8"
6047        curl_sizeof_curl_off_t="8"
6048      else
6049
6050  as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6051  as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6052  if test -z "$SED"; then
6053    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6054  fi
6055  if test -z "$GREP"; then
6056    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6057  fi
6058
6059  tmp_exp=""
6060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061/* end confdefs.h.  */
6062
6063    $curl_includes_inttypes
6064#ifdef $tmp_fmt
6065CURL_DEF_TOKEN $tmp_fmt
6066#endif
6067
6068
6069_ACEOF
6070if ac_fn_c_try_cpp "$LINENO"; then :
6071
6072    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6073      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6074      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6075      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6076    if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6077      tmp_exp=""
6078    fi
6079
6080fi
6081rm -f conftest.err conftest.i conftest.$ac_ext
6082  if test -z "$tmp_exp"; then
6083    eval "$as_ac_HaveDef=no"
6084
6085  else
6086    eval "$as_ac_HaveDef=yes"
6087    eval "$as_ac_Def=\$tmp_exp"
6088
6089  fi
6090
6091        as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6092        as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6093        if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6094          curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6095          curl_typeof_curl_off_t="$t8"
6096          curl_sizeof_curl_off_t="8"
6097        fi
6098                      fi
6099
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102  fi
6103
6104    done
6105    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6106$as_echo "$curl_typeof_curl_off_t" >&6; }
6107  fi
6108  if test "$curl_typeof_curl_off_t" = "unknown"; then
6109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6110$as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6111    for t4 in          \
6112      "$x_LP32_long"   \
6113      'int32_t'        \
6114      '__int32'        \
6115      'int'            ; do
6116
6117    if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6118    tmp_includes=""
6119    tmp_source=""
6120    tmp_fmt=""
6121    case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6122      int64_t)
6123        tmp_includes="$curl_includes_inttypes"
6124        tmp_source="char f[] = PRId64;"
6125        tmp_fmt="PRId64"
6126        ;;
6127      int32_t)
6128        tmp_includes="$curl_includes_inttypes"
6129        tmp_source="char f[] = PRId32;"
6130        tmp_fmt="PRId32"
6131        ;;
6132      int16_t)
6133        tmp_includes="$curl_includes_inttypes"
6134        tmp_source="char f[] = PRId16;"
6135        tmp_fmt="PRId16"
6136        ;;
6137    esac
6138    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140
6141
6142        $tmp_includes
6143        typedef $t4 curl_off_t;
6144        typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6145
6146int main (void)
6147{
6148
6149        $tmp_source
6150        curl_off_t dummy;
6151
6152 ;
6153 return 0;
6154}
6155
6156_ACEOF
6157if ac_fn_c_try_compile "$LINENO"; then :
6158
6159      if test -z "$tmp_fmt"; then
6160        curl_typeof_curl_off_t="$t4"
6161        curl_sizeof_curl_off_t="4"
6162      else
6163
6164  as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6165  as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6166  if test -z "$SED"; then
6167    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6168  fi
6169  if test -z "$GREP"; then
6170    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6171  fi
6172
6173  tmp_exp=""
6174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175/* end confdefs.h.  */
6176
6177    $curl_includes_inttypes
6178#ifdef $tmp_fmt
6179CURL_DEF_TOKEN $tmp_fmt
6180#endif
6181
6182
6183_ACEOF
6184if ac_fn_c_try_cpp "$LINENO"; then :
6185
6186    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6187      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6188      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6189      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6190    if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6191      tmp_exp=""
6192    fi
6193
6194fi
6195rm -f conftest.err conftest.i conftest.$ac_ext
6196  if test -z "$tmp_exp"; then
6197    eval "$as_ac_HaveDef=no"
6198
6199  else
6200    eval "$as_ac_HaveDef=yes"
6201    eval "$as_ac_Def=\$tmp_exp"
6202
6203  fi
6204
6205        as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6206        as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6207        if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6208          curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6209          curl_typeof_curl_off_t="$t4"
6210          curl_sizeof_curl_off_t="4"
6211        fi
6212                      fi
6213
6214fi
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216  fi
6217
6218    done
6219    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6220$as_echo "$curl_typeof_curl_off_t" >&6; }
6221  fi
6222  if test "$curl_typeof_curl_off_t" = "unknown"; then
6223    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
6224$as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
6225    for t2 in          \
6226      "$x_LP16_long"   \
6227      'int16_t'        \
6228      '__int16'        \
6229      'int'            ; do
6230
6231    if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6232    tmp_includes=""
6233    tmp_source=""
6234    tmp_fmt=""
6235    case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6236      int64_t)
6237        tmp_includes="$curl_includes_inttypes"
6238        tmp_source="char f[] = PRId64;"
6239        tmp_fmt="PRId64"
6240        ;;
6241      int32_t)
6242        tmp_includes="$curl_includes_inttypes"
6243        tmp_source="char f[] = PRId32;"
6244        tmp_fmt="PRId32"
6245        ;;
6246      int16_t)
6247        tmp_includes="$curl_includes_inttypes"
6248        tmp_source="char f[] = PRId16;"
6249        tmp_fmt="PRId16"
6250        ;;
6251    esac
6252    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6253/* end confdefs.h.  */
6254
6255
6256        $tmp_includes
6257        typedef $t2 curl_off_t;
6258        typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6259
6260int main (void)
6261{
6262
6263        $tmp_source
6264        curl_off_t dummy;
6265
6266 ;
6267 return 0;
6268}
6269
6270_ACEOF
6271if ac_fn_c_try_compile "$LINENO"; then :
6272
6273      if test -z "$tmp_fmt"; then
6274        curl_typeof_curl_off_t="$t2"
6275        curl_sizeof_curl_off_t="2"
6276      else
6277
6278  as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6279  as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6280  if test -z "$SED"; then
6281    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6282  fi
6283  if test -z "$GREP"; then
6284    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6285  fi
6286
6287  tmp_exp=""
6288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289/* end confdefs.h.  */
6290
6291    $curl_includes_inttypes
6292#ifdef $tmp_fmt
6293CURL_DEF_TOKEN $tmp_fmt
6294#endif
6295
6296
6297_ACEOF
6298if ac_fn_c_try_cpp "$LINENO"; then :
6299
6300    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6301      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6302      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6303      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6304    if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6305      tmp_exp=""
6306    fi
6307
6308fi
6309rm -f conftest.err conftest.i conftest.$ac_ext
6310  if test -z "$tmp_exp"; then
6311    eval "$as_ac_HaveDef=no"
6312
6313  else
6314    eval "$as_ac_HaveDef=yes"
6315    eval "$as_ac_Def=\$tmp_exp"
6316
6317  fi
6318
6319        as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6320        as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6321        if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6322          curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6323          curl_typeof_curl_off_t="$t2"
6324          curl_sizeof_curl_off_t="2"
6325        fi
6326                      fi
6327
6328fi
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330  fi
6331
6332    done
6333    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6334$as_echo "$curl_typeof_curl_off_t" >&6; }
6335  fi
6336  if test "$curl_typeof_curl_off_t" = "unknown"; then
6337    as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6338  fi
6339  #
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6341$as_echo_n "checking size of curl_off_t... " >&6; }
6342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6343$as_echo "$curl_sizeof_curl_off_t" >&6; }
6344  #
6345  { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6346$as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6347  if test "$curl_format_curl_off_t" != "unknown"; then
6348    x_pull_headers="yes"
6349    curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6350    curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6351    curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6352    curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6353  else
6354    x_pull_headers="no"
6355    case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6356      long_long | __longlong | __longlong_t)
6357        curl_format_curl_off_t="lld"
6358        curl_format_curl_off_tu="llu"
6359        ;;
6360      long)
6361        curl_format_curl_off_t="ld"
6362        curl_format_curl_off_tu="lu"
6363        ;;
6364      int)
6365        curl_format_curl_off_t="d"
6366        curl_format_curl_off_tu="u"
6367        ;;
6368      __int64)
6369        curl_format_curl_off_t="I64d"
6370        curl_format_curl_off_tu="I64u"
6371        ;;
6372      __int32)
6373        curl_format_curl_off_t="I32d"
6374        curl_format_curl_off_tu="I32u"
6375        ;;
6376      __int16)
6377        curl_format_curl_off_t="I16d"
6378        curl_format_curl_off_tu="I16u"
6379        ;;
6380      *)
6381        as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6382        ;;
6383    esac
6384  fi
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6386$as_echo "\"$curl_format_curl_off_t\"" >&6; }
6387  #
6388  { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6389$as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6391$as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6392  #
6393
6394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6395$as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6396  #
6397  curl_suffix_curl_off_t="unknown"
6398  curl_suffix_curl_off_tu="unknown"
6399  #
6400  case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6401    long_long | __longlong | __longlong_t)
6402      tst_suffixes="LL::"
6403      ;;
6404    long)
6405      tst_suffixes="L::"
6406      ;;
6407    int)
6408      tst_suffixes="::"
6409      ;;
6410    __int64 | int64_t)
6411      tst_suffixes="LL:i64::"
6412      ;;
6413    __int32 | int32_t)
6414      tst_suffixes="L:i32::"
6415      ;;
6416    __int16 | int16_t)
6417      tst_suffixes="L:i16::"
6418      ;;
6419    *)
6420      as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6421      ;;
6422  esac
6423  #
6424  old_IFS=$IFS; IFS=':'
6425  for tmp_ssuf in $tst_suffixes ; do
6426    IFS=$old_IFS
6427    if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6428      case $tmp_ssuf in
6429        i64 | i32 | i16)
6430          tmp_usuf="u$tmp_ssuf"
6431          ;;
6432        LL | L)
6433          tmp_usuf="U$tmp_ssuf"
6434          ;;
6435        *)
6436          tmp_usuf=""
6437          ;;
6438      esac
6439      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6440/* end confdefs.h.  */
6441
6442
6443          $curl_includes_inttypes
6444          typedef $curl_typeof_curl_off_t new_t;
6445
6446int main (void)
6447{
6448
6449          new_t s1;
6450          new_t s2;
6451          s1 = -10$tmp_ssuf ;
6452          s2 =  20$tmp_ssuf ;
6453          if(s1 > s2)
6454            return 1;
6455
6456 ;
6457 return 0;
6458}
6459
6460_ACEOF
6461if ac_fn_c_try_compile "$LINENO"; then :
6462
6463        curl_suffix_curl_off_t="$tmp_ssuf"
6464        curl_suffix_curl_off_tu="$tmp_usuf"
6465
6466fi
6467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6468    fi
6469  done
6470  IFS=$old_IFS
6471  #
6472  if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6473    as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6474  else
6475    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6476$as_echo "$curl_suffix_curl_off_t" >&6; }
6477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6478$as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6479    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6480$as_echo "$curl_suffix_curl_off_tu" >&6; }
6481  fi
6482  #
6483
6484  #
6485  if test "$x_pull_headers" = "yes"; then
6486    if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6487
6488cat >>confdefs.h <<_EOF
6489#define CURL_PULL_SYS_TYPES_H 1
6490_EOF
6491
6492    fi
6493    if test "x$ac_cv_header_stdint_h" = "xyes"; then
6494
6495cat >>confdefs.h <<_EOF
6496#define CURL_PULL_STDINT_H 1
6497_EOF
6498
6499    fi
6500    if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6501
6502cat >>confdefs.h <<_EOF
6503#define CURL_PULL_INTTYPES_H 1
6504_EOF
6505
6506    fi
6507  fi
6508  #
6509
6510cat >>confdefs.h <<_EOF
6511#define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6512_EOF
6513
6514
6515cat >>confdefs.h <<_EOF
6516#define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6517_EOF
6518
6519
6520cat >>confdefs.h <<_EOF
6521#define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6522_EOF
6523
6524
6525cat >>confdefs.h <<_EOF
6526#define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6527_EOF
6528
6529
6530cat >>confdefs.h <<_EOF
6531#define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6532_EOF
6533
6534
6535cat >>confdefs.h <<_EOF
6536#define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6537_EOF
6538
6539
6540cat >>confdefs.h <<_EOF
6541#define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6542_EOF
6543
6544  #
6545
6546
6547
6548
6549        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6550$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552/* end confdefs.h.  */
6553
6554#ifdef _AIX
6555   yes_this_is_aix
6556#endif
6557
6558_ACEOF
6559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560  $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6561
6562    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6563$as_echo "yes" >&6; }
6564    $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6565
6566
6567else
6568
6569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570$as_echo "no" >&6; }
6571
6572fi
6573rm -f conftest*
6574
6575
6576
6577
6578    #
6579  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6580$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h.  */
6583
6584
6585
6586int main (void)
6587{
6588
6589#ifdef _THREAD_SAFE
6590      int dummy=1;
6591#else
6592      force compilation error
6593#endif
6594
6595 ;
6596 return 0;
6597}
6598
6599_ACEOF
6600if ac_fn_c_try_compile "$LINENO"; then :
6601
6602    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6603$as_echo "yes" >&6; }
6604    tmp_thread_safe_initially_defined="yes"
6605
6606else
6607
6608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610    tmp_thread_safe_initially_defined="no"
6611
6612fi
6613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614  #
6615  if test "$tmp_thread_safe_initially_defined" = "no"; then
6616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6617$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6618
6619  case $host_os in
6620    aix[123].* | aix4.[012].*)
6621            tmp_need_thread_safe="no"
6622      ;;
6623    aix*)
6624            tmp_need_thread_safe="yes"
6625      ;;
6626    *)
6627      tmp_need_thread_safe="no"
6628      ;;
6629  esac
6630
6631    if test "$tmp_need_thread_safe" = "yes"; then
6632      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6633$as_echo "yes" >&6; }
6634    else
6635      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
6637    fi
6638  fi
6639  #
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6641$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6642  if test "$tmp_thread_safe_initially_defined" = "yes" ||
6643    test "$tmp_need_thread_safe" = "yes"; then
6644
6645
6646$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6647
6648cat >>confdefs.h <<_EOF
6649#ifndef _THREAD_SAFE
6650#  define _THREAD_SAFE
6651#endif
6652_EOF
6653
6654    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6655$as_echo "yes" >&6; }
6656  else
6657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659  fi
6660  #
6661
6662
6663    #
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6665$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667/* end confdefs.h.  */
6668
6669
6670
6671int main (void)
6672{
6673
6674#ifdef _REENTRANT
6675      int dummy=1;
6676#else
6677      force compilation error
6678#endif
6679
6680 ;
6681 return 0;
6682}
6683
6684_ACEOF
6685if ac_fn_c_try_compile "$LINENO"; then :
6686
6687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6688$as_echo "yes" >&6; }
6689    tmp_reentrant_initially_defined="yes"
6690
6691else
6692
6693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694$as_echo "no" >&6; }
6695    tmp_reentrant_initially_defined="no"
6696
6697fi
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699  #
6700  if test "$tmp_reentrant_initially_defined" = "no"; then
6701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6702$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6703
6704  case $host_os in
6705    solaris*)
6706      tmp_need_reentrant="yes"
6707      ;;
6708    *)
6709      tmp_need_reentrant="no"
6710      ;;
6711  esac
6712
6713    if test "$tmp_need_reentrant" = "no"; then
6714
6715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h.  */
6717
6718
6719#include <errno.h>
6720
6721int main (void)
6722{
6723
6724      if(0 != errno)
6725        return 1;
6726
6727 ;
6728 return 0;
6729}
6730
6731_ACEOF
6732if ac_fn_c_try_compile "$LINENO"; then :
6733
6734    tmp_errno="yes"
6735
6736else
6737
6738    tmp_errno="no"
6739
6740fi
6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742  if test "$tmp_errno" = "yes"; then
6743    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h.  */
6745
6746
6747#include <errno.h>
6748
6749int main (void)
6750{
6751
6752#ifdef errno
6753        int dummy=1;
6754#else
6755        force compilation error
6756#endif
6757
6758 ;
6759 return 0;
6760}
6761
6762_ACEOF
6763if ac_fn_c_try_compile "$LINENO"; then :
6764
6765      tmp_errno="errno_macro_defined"
6766
6767else
6768
6769      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771
6772
6773#define _REENTRANT
6774#include <errno.h>
6775
6776int main (void)
6777{
6778
6779#ifdef errno
6780          int dummy=1;
6781#else
6782          force compilation error
6783#endif
6784
6785 ;
6786 return 0;
6787}
6788
6789_ACEOF
6790if ac_fn_c_try_compile "$LINENO"; then :
6791
6792        tmp_errno="errno_macro_needs_reentrant"
6793        tmp_need_reentrant="yes"
6794
6795fi
6796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797
6798fi
6799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800  fi
6801
6802    fi
6803    if test "$tmp_need_reentrant" = "no"; then
6804
6805  if test "$tmp_need_reentrant" = "no"; then
6806
6807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809
6810
6811#define gmtime_r innocuous_gmtime_r
6812#ifdef __STDC__
6813# include <limits.h>
6814#else
6815# include <assert.h>
6816#endif
6817#undef gmtime_r
6818#ifdef __cplusplus
6819extern "C"
6820#endif
6821char gmtime_r ();
6822#if defined __stub_gmtime_r || defined __stub___gmtime_r
6823choke me
6824#endif
6825
6826int main (void)
6827{
6828return gmtime_r ();
6829 ;
6830 return 0;
6831}
6832
6833_ACEOF
6834if ac_fn_c_try_link "$LINENO"; then :
6835
6836    tmp_gmtime_r="yes"
6837
6838else
6839
6840    tmp_gmtime_r="no"
6841
6842fi
6843rm -f core conftest.err conftest.$ac_objext \
6844    conftest$ac_exeext conftest.$ac_ext
6845  if test "$tmp_gmtime_r" = "yes"; then
6846    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h.  */
6848
6849#include <sys/types.h>
6850#include <time.h>
6851
6852_ACEOF
6853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854  $EGREP "gmtime_r" >/dev/null 2>&1; then :
6855
6856      tmp_gmtime_r="proto_declared"
6857
6858else
6859
6860      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h.  */
6862
6863#define _REENTRANT
6864#include <sys/types.h>
6865#include <time.h>
6866
6867_ACEOF
6868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869  $EGREP "gmtime_r" >/dev/null 2>&1; then :
6870
6871        tmp_gmtime_r="proto_needs_reentrant"
6872        tmp_need_reentrant="yes"
6873
6874fi
6875rm -f conftest*
6876
6877
6878fi
6879rm -f conftest*
6880
6881  fi
6882
6883  fi
6884  if test "$tmp_need_reentrant" = "no"; then
6885
6886  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887/* end confdefs.h.  */
6888
6889
6890#define localtime_r innocuous_localtime_r
6891#ifdef __STDC__
6892# include <limits.h>
6893#else
6894# include <assert.h>
6895#endif
6896#undef localtime_r
6897#ifdef __cplusplus
6898extern "C"
6899#endif
6900char localtime_r ();
6901#if defined __stub_localtime_r || defined __stub___localtime_r
6902choke me
6903#endif
6904
6905int main (void)
6906{
6907return localtime_r ();
6908 ;
6909 return 0;
6910}
6911
6912_ACEOF
6913if ac_fn_c_try_link "$LINENO"; then :
6914
6915    tmp_localtime_r="yes"
6916
6917else
6918
6919    tmp_localtime_r="no"
6920
6921fi
6922rm -f core conftest.err conftest.$ac_objext \
6923    conftest$ac_exeext conftest.$ac_ext
6924  if test "$tmp_localtime_r" = "yes"; then
6925    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926/* end confdefs.h.  */
6927
6928#include <sys/types.h>
6929#include <time.h>
6930
6931_ACEOF
6932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6933  $EGREP "localtime_r" >/dev/null 2>&1; then :
6934
6935      tmp_localtime_r="proto_declared"
6936
6937else
6938
6939      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940/* end confdefs.h.  */
6941
6942#define _REENTRANT
6943#include <sys/types.h>
6944#include <time.h>
6945
6946_ACEOF
6947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6948  $EGREP "localtime_r" >/dev/null 2>&1; then :
6949
6950        tmp_localtime_r="proto_needs_reentrant"
6951        tmp_need_reentrant="yes"
6952
6953fi
6954rm -f conftest*
6955
6956
6957fi
6958rm -f conftest*
6959
6960  fi
6961
6962  fi
6963  if test "$tmp_need_reentrant" = "no"; then
6964
6965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966/* end confdefs.h.  */
6967
6968
6969#define strerror_r innocuous_strerror_r
6970#ifdef __STDC__
6971# include <limits.h>
6972#else
6973# include <assert.h>
6974#endif
6975#undef strerror_r
6976#ifdef __cplusplus
6977extern "C"
6978#endif
6979char strerror_r ();
6980#if defined __stub_strerror_r || defined __stub___strerror_r
6981choke me
6982#endif
6983
6984int main (void)
6985{
6986return strerror_r ();
6987 ;
6988 return 0;
6989}
6990
6991_ACEOF
6992if ac_fn_c_try_link "$LINENO"; then :
6993
6994    tmp_strerror_r="yes"
6995
6996else
6997
6998    tmp_strerror_r="no"
6999
7000fi
7001rm -f core conftest.err conftest.$ac_objext \
7002    conftest$ac_exeext conftest.$ac_ext
7003  if test "$tmp_strerror_r" = "yes"; then
7004    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005/* end confdefs.h.  */
7006
7007#include <sys/types.h>
7008#include <string.h>
7009
7010_ACEOF
7011if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7012  $EGREP "strerror_r" >/dev/null 2>&1; then :
7013
7014      tmp_strerror_r="proto_declared"
7015
7016else
7017
7018      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019/* end confdefs.h.  */
7020
7021#define _REENTRANT
7022#include <sys/types.h>
7023#include <string.h>
7024
7025_ACEOF
7026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7027  $EGREP "strerror_r" >/dev/null 2>&1; then :
7028
7029        tmp_strerror_r="proto_needs_reentrant"
7030        tmp_need_reentrant="yes"
7031
7032fi
7033rm -f conftest*
7034
7035
7036fi
7037rm -f conftest*
7038
7039  fi
7040
7041  fi
7042  if test "$tmp_need_reentrant" = "no"; then
7043
7044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045/* end confdefs.h.  */
7046
7047
7048#define strtok_r innocuous_strtok_r
7049#ifdef __STDC__
7050# include <limits.h>
7051#else
7052# include <assert.h>
7053#endif
7054#undef strtok_r
7055#ifdef __cplusplus
7056extern "C"
7057#endif
7058char strtok_r ();
7059#if defined __stub_strtok_r || defined __stub___strtok_r
7060choke me
7061#endif
7062
7063int main (void)
7064{
7065return strtok_r ();
7066 ;
7067 return 0;
7068}
7069
7070_ACEOF
7071if ac_fn_c_try_link "$LINENO"; then :
7072
7073    tmp_strtok_r="yes"
7074
7075else
7076
7077    tmp_strtok_r="no"
7078
7079fi
7080rm -f core conftest.err conftest.$ac_objext \
7081    conftest$ac_exeext conftest.$ac_ext
7082  if test "$tmp_strtok_r" = "yes"; then
7083    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084/* end confdefs.h.  */
7085
7086#include <sys/types.h>
7087#include <string.h>
7088
7089_ACEOF
7090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7091  $EGREP "strtok_r" >/dev/null 2>&1; then :
7092
7093      tmp_strtok_r="proto_declared"
7094
7095else
7096
7097      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098/* end confdefs.h.  */
7099
7100#define _REENTRANT
7101#include <sys/types.h>
7102#include <string.h>
7103
7104_ACEOF
7105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7106  $EGREP "strtok_r" >/dev/null 2>&1; then :
7107
7108        tmp_strtok_r="proto_needs_reentrant"
7109        tmp_need_reentrant="yes"
7110
7111fi
7112rm -f conftest*
7113
7114
7115fi
7116rm -f conftest*
7117
7118  fi
7119
7120  fi
7121  if test "$tmp_need_reentrant" = "no"; then
7122
7123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124/* end confdefs.h.  */
7125
7126
7127#define inet_ntoa_r innocuous_inet_ntoa_r
7128#ifdef __STDC__
7129# include <limits.h>
7130#else
7131# include <assert.h>
7132#endif
7133#undef inet_ntoa_r
7134#ifdef __cplusplus
7135extern "C"
7136#endif
7137char inet_ntoa_r ();
7138#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7139choke me
7140#endif
7141
7142int main (void)
7143{
7144return inet_ntoa_r ();
7145 ;
7146 return 0;
7147}
7148
7149_ACEOF
7150if ac_fn_c_try_link "$LINENO"; then :
7151
7152    tmp_inet_ntoa_r="yes"
7153
7154else
7155
7156    tmp_inet_ntoa_r="no"
7157
7158fi
7159rm -f core conftest.err conftest.$ac_objext \
7160    conftest$ac_exeext conftest.$ac_ext
7161  if test "$tmp_inet_ntoa_r" = "yes"; then
7162    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164
7165#include <sys/types.h>
7166#include <sys/socket.h>
7167#include <netinet/in.h>
7168#include <arpa/inet.h>
7169
7170_ACEOF
7171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7172  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7173
7174      tmp_inet_ntoa_r="proto_declared"
7175
7176else
7177
7178      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179/* end confdefs.h.  */
7180
7181#define _REENTRANT
7182#include <sys/types.h>
7183#include <sys/socket.h>
7184#include <netinet/in.h>
7185#include <arpa/inet.h>
7186
7187_ACEOF
7188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7189  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7190
7191        tmp_inet_ntoa_r="proto_needs_reentrant"
7192        tmp_need_reentrant="yes"
7193
7194fi
7195rm -f conftest*
7196
7197
7198fi
7199rm -f conftest*
7200
7201  fi
7202
7203  fi
7204  if test "$tmp_need_reentrant" = "no"; then
7205
7206  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207/* end confdefs.h.  */
7208
7209
7210#define gethostbyaddr_r innocuous_gethostbyaddr_r
7211#ifdef __STDC__
7212# include <limits.h>
7213#else
7214# include <assert.h>
7215#endif
7216#undef gethostbyaddr_r
7217#ifdef __cplusplus
7218extern "C"
7219#endif
7220char gethostbyaddr_r ();
7221#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7222choke me
7223#endif
7224
7225int main (void)
7226{
7227return gethostbyaddr_r ();
7228 ;
7229 return 0;
7230}
7231
7232_ACEOF
7233if ac_fn_c_try_link "$LINENO"; then :
7234
7235    tmp_gethostbyaddr_r="yes"
7236
7237else
7238
7239    tmp_gethostbyaddr_r="no"
7240
7241fi
7242rm -f core conftest.err conftest.$ac_objext \
7243    conftest$ac_exeext conftest.$ac_ext
7244  if test "$tmp_gethostbyaddr_r" = "yes"; then
7245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247
7248#include <sys/types.h>
7249#include <netdb.h>
7250
7251_ACEOF
7252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7254
7255      tmp_gethostbyaddr_r="proto_declared"
7256
7257else
7258
7259      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h.  */
7261
7262#define _REENTRANT
7263#include <sys/types.h>
7264#include <netdb.h>
7265
7266_ACEOF
7267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7268  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7269
7270        tmp_gethostbyaddr_r="proto_needs_reentrant"
7271        tmp_need_reentrant="yes"
7272
7273fi
7274rm -f conftest*
7275
7276
7277fi
7278rm -f conftest*
7279
7280  fi
7281
7282  fi
7283  if test "$tmp_need_reentrant" = "no"; then
7284
7285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286/* end confdefs.h.  */
7287
7288
7289#define gethostbyname_r innocuous_gethostbyname_r
7290#ifdef __STDC__
7291# include <limits.h>
7292#else
7293# include <assert.h>
7294#endif
7295#undef gethostbyname_r
7296#ifdef __cplusplus
7297extern "C"
7298#endif
7299char gethostbyname_r ();
7300#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7301choke me
7302#endif
7303
7304int main (void)
7305{
7306return gethostbyname_r ();
7307 ;
7308 return 0;
7309}
7310
7311_ACEOF
7312if ac_fn_c_try_link "$LINENO"; then :
7313
7314    tmp_gethostbyname_r="yes"
7315
7316else
7317
7318    tmp_gethostbyname_r="no"
7319
7320fi
7321rm -f core conftest.err conftest.$ac_objext \
7322    conftest$ac_exeext conftest.$ac_ext
7323  if test "$tmp_gethostbyname_r" = "yes"; then
7324    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325/* end confdefs.h.  */
7326
7327#include <sys/types.h>
7328#include <netdb.h>
7329
7330_ACEOF
7331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7332  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7333
7334      tmp_gethostbyname_r="proto_declared"
7335
7336else
7337
7338      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h.  */
7340
7341#define _REENTRANT
7342#include <sys/types.h>
7343#include <netdb.h>
7344
7345_ACEOF
7346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7347  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7348
7349        tmp_gethostbyname_r="proto_needs_reentrant"
7350        tmp_need_reentrant="yes"
7351
7352fi
7353rm -f conftest*
7354
7355
7356fi
7357rm -f conftest*
7358
7359  fi
7360
7361  fi
7362  if test "$tmp_need_reentrant" = "no"; then
7363
7364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365/* end confdefs.h.  */
7366
7367
7368#define getprotobyname_r innocuous_getprotobyname_r
7369#ifdef __STDC__
7370# include <limits.h>
7371#else
7372# include <assert.h>
7373#endif
7374#undef getprotobyname_r
7375#ifdef __cplusplus
7376extern "C"
7377#endif
7378char getprotobyname_r ();
7379#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7380choke me
7381#endif
7382
7383int main (void)
7384{
7385return getprotobyname_r ();
7386 ;
7387 return 0;
7388}
7389
7390_ACEOF
7391if ac_fn_c_try_link "$LINENO"; then :
7392
7393    tmp_getprotobyname_r="yes"
7394
7395else
7396
7397    tmp_getprotobyname_r="no"
7398
7399fi
7400rm -f core conftest.err conftest.$ac_objext \
7401    conftest$ac_exeext conftest.$ac_ext
7402  if test "$tmp_getprotobyname_r" = "yes"; then
7403    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h.  */
7405
7406#include <sys/types.h>
7407#include <netdb.h>
7408
7409_ACEOF
7410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7411  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7412
7413      tmp_getprotobyname_r="proto_declared"
7414
7415else
7416
7417      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418/* end confdefs.h.  */
7419
7420#define _REENTRANT
7421#include <sys/types.h>
7422#include <netdb.h>
7423
7424_ACEOF
7425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7426  $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7427
7428        tmp_getprotobyname_r="proto_needs_reentrant"
7429        tmp_need_reentrant="yes"
7430
7431fi
7432rm -f conftest*
7433
7434
7435fi
7436rm -f conftest*
7437
7438  fi
7439
7440  fi
7441  if test "$tmp_need_reentrant" = "no"; then
7442
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445
7446
7447#define getservbyport_r innocuous_getservbyport_r
7448#ifdef __STDC__
7449# include <limits.h>
7450#else
7451# include <assert.h>
7452#endif
7453#undef getservbyport_r
7454#ifdef __cplusplus
7455extern "C"
7456#endif
7457char getservbyport_r ();
7458#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7459choke me
7460#endif
7461
7462int main (void)
7463{
7464return getservbyport_r ();
7465 ;
7466 return 0;
7467}
7468
7469_ACEOF
7470if ac_fn_c_try_link "$LINENO"; then :
7471
7472    tmp_getservbyport_r="yes"
7473
7474else
7475
7476    tmp_getservbyport_r="no"
7477
7478fi
7479rm -f core conftest.err conftest.$ac_objext \
7480    conftest$ac_exeext conftest.$ac_ext
7481  if test "$tmp_getservbyport_r" = "yes"; then
7482    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7483/* end confdefs.h.  */
7484
7485#include <sys/types.h>
7486#include <netdb.h>
7487
7488_ACEOF
7489if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7490  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7491
7492      tmp_getservbyport_r="proto_declared"
7493
7494else
7495
7496      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497/* end confdefs.h.  */
7498
7499#define _REENTRANT
7500#include <sys/types.h>
7501#include <netdb.h>
7502
7503_ACEOF
7504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7505  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7506
7507        tmp_getservbyport_r="proto_needs_reentrant"
7508        tmp_need_reentrant="yes"
7509
7510fi
7511rm -f conftest*
7512
7513
7514fi
7515rm -f conftest*
7516
7517  fi
7518
7519  fi
7520
7521    fi
7522    if test "$tmp_need_reentrant" = "yes"; then
7523      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7524$as_echo "yes" >&6; }
7525    else
7526      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527$as_echo "no" >&6; }
7528    fi
7529  fi
7530  #
7531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7532$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7533  if test "$tmp_reentrant_initially_defined" = "yes" ||
7534    test "$tmp_need_reentrant" = "yes"; then
7535
7536
7537$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7538
7539cat >>confdefs.h <<_EOF
7540#ifndef _REENTRANT
7541#  define _REENTRANT
7542#endif
7543_EOF
7544
7545    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7546$as_echo "yes" >&6; }
7547  else
7548    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549$as_echo "no" >&6; }
7550  fi
7551  #
7552
7553
7554# Check whether --enable-largefile was given.
7555if test "${enable_largefile+set}" = set; then :
7556  enableval=$enable_largefile;
7557fi
7558
7559if test "$enable_largefile" != no; then
7560
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7562$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7563if ${ac_cv_sys_largefile_CC+:} false; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  ac_cv_sys_largefile_CC=no
7567     if test "$GCC" != yes; then
7568       ac_save_CC=$CC
7569       while :; do
7570	 # IRIX 6.2 and later do not support large files by default,
7571	 # so use the C compiler's -n32 option if that helps.
7572	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573/* end confdefs.h.  */
7574#include <sys/types.h>
7575 /* Check that off_t can represent 2**63 - 1 correctly.
7576    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7577    since some C++ compilers masquerading as C compilers
7578    incorrectly reject 9223372036854775807.  */
7579#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7580  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7581		       && LARGE_OFF_T % 2147483647 == 1)
7582		      ? 1 : -1];
7583int main (void)
7584{
7585
7586 ;
7587 return 0;
7588}
7589_ACEOF
7590	 if ac_fn_c_try_compile "$LINENO"; then :
7591  break
7592fi
7593rm -f core conftest.err conftest.$ac_objext
7594	 CC="$CC -n32"
7595	 if ac_fn_c_try_compile "$LINENO"; then :
7596  ac_cv_sys_largefile_CC=' -n32'; break
7597fi
7598rm -f core conftest.err conftest.$ac_objext
7599	 break
7600       done
7601       CC=$ac_save_CC
7602       rm -f conftest.$ac_ext
7603    fi
7604fi
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7606$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7607  if test "$ac_cv_sys_largefile_CC" != no; then
7608    CC=$CC$ac_cv_sys_largefile_CC
7609  fi
7610
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7612$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7613if ${ac_cv_sys_file_offset_bits+:} false; then :
7614  $as_echo_n "(cached) " >&6
7615else
7616  while :; do
7617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618/* end confdefs.h.  */
7619#include <sys/types.h>
7620 /* Check that off_t can represent 2**63 - 1 correctly.
7621    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7622    since some C++ compilers masquerading as C compilers
7623    incorrectly reject 9223372036854775807.  */
7624#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7625  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7626		       && LARGE_OFF_T % 2147483647 == 1)
7627		      ? 1 : -1];
7628int main (void)
7629{
7630
7631 ;
7632 return 0;
7633}
7634_ACEOF
7635if ac_fn_c_try_compile "$LINENO"; then :
7636  ac_cv_sys_file_offset_bits=no; break
7637fi
7638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640/* end confdefs.h.  */
7641#define _FILE_OFFSET_BITS 64
7642#include <sys/types.h>
7643 /* Check that off_t can represent 2**63 - 1 correctly.
7644    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7645    since some C++ compilers masquerading as C compilers
7646    incorrectly reject 9223372036854775807.  */
7647#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7648  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7649		       && LARGE_OFF_T % 2147483647 == 1)
7650		      ? 1 : -1];
7651int main (void)
7652{
7653
7654 ;
7655 return 0;
7656}
7657_ACEOF
7658if ac_fn_c_try_compile "$LINENO"; then :
7659  ac_cv_sys_file_offset_bits=64; break
7660fi
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662  ac_cv_sys_file_offset_bits=unknown
7663  break
7664done
7665fi
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7667$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7668case $ac_cv_sys_file_offset_bits in #(
7669  no | unknown) ;;
7670  *)
7671cat >>confdefs.h <<_ACEOF
7672#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7673_ACEOF
7674;;
7675esac
7676rm -rf conftest*
7677  if test $ac_cv_sys_file_offset_bits = unknown; then
7678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7679$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7680if ${ac_cv_sys_large_files+:} false; then :
7681  $as_echo_n "(cached) " >&6
7682else
7683  while :; do
7684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685/* end confdefs.h.  */
7686#include <sys/types.h>
7687 /* Check that off_t can represent 2**63 - 1 correctly.
7688    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7689    since some C++ compilers masquerading as C compilers
7690    incorrectly reject 9223372036854775807.  */
7691#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7692  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7693		       && LARGE_OFF_T % 2147483647 == 1)
7694		      ? 1 : -1];
7695int main (void)
7696{
7697
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702if ac_fn_c_try_compile "$LINENO"; then :
7703  ac_cv_sys_large_files=no; break
7704fi
7705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708#define _LARGE_FILES 1
7709#include <sys/types.h>
7710 /* Check that off_t can represent 2**63 - 1 correctly.
7711    We can't simply define LARGE_OFF_T to be 9223372036854775807,
7712    since some C++ compilers masquerading as C compilers
7713    incorrectly reject 9223372036854775807.  */
7714#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7715  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7716		       && LARGE_OFF_T % 2147483647 == 1)
7717		      ? 1 : -1];
7718int main (void)
7719{
7720
7721 ;
7722 return 0;
7723}
7724_ACEOF
7725if ac_fn_c_try_compile "$LINENO"; then :
7726  ac_cv_sys_large_files=1; break
7727fi
7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729  ac_cv_sys_large_files=unknown
7730  break
7731done
7732fi
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7734$as_echo "$ac_cv_sys_large_files" >&6; }
7735case $ac_cv_sys_large_files in #(
7736  no | unknown) ;;
7737  *)
7738cat >>confdefs.h <<_ACEOF
7739#define _LARGE_FILES $ac_cv_sys_large_files
7740_ACEOF
7741;;
7742esac
7743rm -rf conftest*
7744  fi
7745
7746
7747fi
7748
7749
7750case `pwd` in
7751  *\ * | *\	*)
7752    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7753$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7754esac
7755
7756
7757
7758macro_version='2.4.2'
7759macro_revision='1.3337'
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773ltmain="$ac_aux_dir/ltmain.sh"
7774
7775# Backslashify metacharacters that are still active within
7776# double-quoted strings.
7777sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7778
7779# Same as above, but do not quote variable references.
7780double_quote_subst='s/\(["`\\]\)/\\\1/g'
7781
7782# Sed substitution to delay expansion of an escaped shell variable in a
7783# double_quote_subst'ed string.
7784delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7785
7786# Sed substitution to delay expansion of an escaped single quote.
7787delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7788
7789# Sed substitution to avoid accidental globbing in evaled expressions
7790no_glob_subst='s/\*/\\\*/g'
7791
7792ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7793ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7794ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7795
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7797$as_echo_n "checking how to print strings... " >&6; }
7798# Test print first, because it will be a builtin if present.
7799if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7800   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7801  ECHO='print -r --'
7802elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7803  ECHO='printf %s\n'
7804else
7805  # Use this function as a fallback that always works.
7806  func_fallback_echo ()
7807  {
7808    eval 'cat <<_LTECHO_EOF
7809$1
7810_LTECHO_EOF'
7811  }
7812  ECHO='func_fallback_echo'
7813fi
7814
7815# func_echo_all arg...
7816# Invoke $ECHO with all args, space-separated.
7817func_echo_all ()
7818{
7819    $ECHO ""
7820}
7821
7822case "$ECHO" in
7823  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7824$as_echo "printf" >&6; } ;;
7825  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7826$as_echo "print -r" >&6; } ;;
7827  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7828$as_echo "cat" >&6; } ;;
7829esac
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7845$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7846if ${ac_cv_path_SED+:} false; then :
7847  $as_echo_n "(cached) " >&6
7848else
7849            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7850     for ac_i in 1 2 3 4 5 6 7; do
7851       ac_script="$ac_script$as_nl$ac_script"
7852     done
7853     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7854     { ac_script=; unset ac_script;}
7855     if test -z "$SED"; then
7856  ac_path_SED_found=false
7857  # Loop through the user's path and test for each of PROGNAME-LIST
7858  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861  IFS=$as_save_IFS
7862  test -z "$as_dir" && as_dir=.
7863    for ac_prog in sed gsed; do
7864    for ac_exec_ext in '' $ac_executable_extensions; do
7865      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7866      as_fn_executable_p "$ac_path_SED" || continue
7867# Check for GNU ac_path_SED and select it if it is found.
7868  # Check for GNU $ac_path_SED
7869case `"$ac_path_SED" --version 2>&1` in
7870*GNU*)
7871  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7872*)
7873  ac_count=0
7874  $as_echo_n 0123456789 >"conftest.in"
7875  while :
7876  do
7877    cat "conftest.in" "conftest.in" >"conftest.tmp"
7878    mv "conftest.tmp" "conftest.in"
7879    cp "conftest.in" "conftest.nl"
7880    $as_echo '' >> "conftest.nl"
7881    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7882    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7883    as_fn_arith $ac_count + 1 && ac_count=$as_val
7884    if test $ac_count -gt ${ac_path_SED_max-0}; then
7885      # Best one so far, save it but keep looking for a better one
7886      ac_cv_path_SED="$ac_path_SED"
7887      ac_path_SED_max=$ac_count
7888    fi
7889    # 10*(2^10) chars as input seems more than enough
7890    test $ac_count -gt 10 && break
7891  done
7892  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7893esac
7894
7895      $ac_path_SED_found && break 3
7896    done
7897  done
7898  done
7899IFS=$as_save_IFS
7900  if test -z "$ac_cv_path_SED"; then
7901    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7902  fi
7903else
7904  ac_cv_path_SED=$SED
7905fi
7906
7907fi
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7909$as_echo "$ac_cv_path_SED" >&6; }
7910 SED="$ac_cv_path_SED"
7911  rm -f conftest.sed
7912
7913test -z "$SED" && SED=sed
7914Xsed="$SED -e 1s/^X//"
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7927$as_echo_n "checking for fgrep... " >&6; }
7928if ${ac_cv_path_FGREP+:} false; then :
7929  $as_echo_n "(cached) " >&6
7930else
7931  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7932   then ac_cv_path_FGREP="$GREP -F"
7933   else
7934     if test -z "$FGREP"; then
7935  ac_path_FGREP_found=false
7936  # Loop through the user's path and test for each of PROGNAME-LIST
7937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7939do
7940  IFS=$as_save_IFS
7941  test -z "$as_dir" && as_dir=.
7942    for ac_prog in fgrep; do
7943    for ac_exec_ext in '' $ac_executable_extensions; do
7944      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7945      as_fn_executable_p "$ac_path_FGREP" || continue
7946# Check for GNU ac_path_FGREP and select it if it is found.
7947  # Check for GNU $ac_path_FGREP
7948case `"$ac_path_FGREP" --version 2>&1` in
7949*GNU*)
7950  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7951*)
7952  ac_count=0
7953  $as_echo_n 0123456789 >"conftest.in"
7954  while :
7955  do
7956    cat "conftest.in" "conftest.in" >"conftest.tmp"
7957    mv "conftest.tmp" "conftest.in"
7958    cp "conftest.in" "conftest.nl"
7959    $as_echo 'FGREP' >> "conftest.nl"
7960    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7961    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7962    as_fn_arith $ac_count + 1 && ac_count=$as_val
7963    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7964      # Best one so far, save it but keep looking for a better one
7965      ac_cv_path_FGREP="$ac_path_FGREP"
7966      ac_path_FGREP_max=$ac_count
7967    fi
7968    # 10*(2^10) chars as input seems more than enough
7969    test $ac_count -gt 10 && break
7970  done
7971  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7972esac
7973
7974      $ac_path_FGREP_found && break 3
7975    done
7976  done
7977  done
7978IFS=$as_save_IFS
7979  if test -z "$ac_cv_path_FGREP"; then
7980    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7981  fi
7982else
7983  ac_cv_path_FGREP=$FGREP
7984fi
7985
7986   fi
7987fi
7988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7989$as_echo "$ac_cv_path_FGREP" >&6; }
7990 FGREP="$ac_cv_path_FGREP"
7991
7992
7993test -z "$GREP" && GREP=grep
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013# Check whether --with-gnu-ld was given.
8014if test "${with_gnu_ld+set}" = set; then :
8015  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8016else
8017  with_gnu_ld=no
8018fi
8019
8020ac_prog=ld
8021if test "$GCC" = yes; then
8022  # Check if gcc -print-prog-name=ld gives a path.
8023  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8024$as_echo_n "checking for ld used by $CC... " >&6; }
8025  case $host in
8026  *-*-mingw*)
8027    # gcc leaves a trailing carriage return which upsets mingw
8028    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8029  *)
8030    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8031  esac
8032  case $ac_prog in
8033    # Accept absolute paths.
8034    [\\/]* | ?:[\\/]*)
8035      re_direlt='/[^/][^/]*/\.\./'
8036      # Canonicalize the pathname of ld
8037      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8038      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8039	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8040      done
8041      test -z "$LD" && LD="$ac_prog"
8042      ;;
8043  "")
8044    # If it fails, then pretend we aren't using GCC.
8045    ac_prog=ld
8046    ;;
8047  *)
8048    # If it is relative, then search for the first ld in PATH.
8049    with_gnu_ld=unknown
8050    ;;
8051  esac
8052elif test "$with_gnu_ld" = yes; then
8053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8054$as_echo_n "checking for GNU ld... " >&6; }
8055else
8056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8057$as_echo_n "checking for non-GNU ld... " >&6; }
8058fi
8059if ${lt_cv_path_LD+:} false; then :
8060  $as_echo_n "(cached) " >&6
8061else
8062  if test -z "$LD"; then
8063  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8064  for ac_dir in $PATH; do
8065    IFS="$lt_save_ifs"
8066    test -z "$ac_dir" && ac_dir=.
8067    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8068      lt_cv_path_LD="$ac_dir/$ac_prog"
8069      # Check to see if the program is GNU ld.  I'd rather use --version,
8070      # but apparently some variants of GNU ld only accept -v.
8071      # Break only if it was the GNU/non-GNU ld that we prefer.
8072      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8073      *GNU* | *'with BFD'*)
8074	test "$with_gnu_ld" != no && break
8075	;;
8076      *)
8077	test "$with_gnu_ld" != yes && break
8078	;;
8079      esac
8080    fi
8081  done
8082  IFS="$lt_save_ifs"
8083else
8084  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8085fi
8086fi
8087
8088LD="$lt_cv_path_LD"
8089if test -n "$LD"; then
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8091$as_echo "$LD" >&6; }
8092else
8093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8094$as_echo "no" >&6; }
8095fi
8096test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8098$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8099if ${lt_cv_prog_gnu_ld+:} false; then :
8100  $as_echo_n "(cached) " >&6
8101else
8102  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8103case `$LD -v 2>&1 </dev/null` in
8104*GNU* | *'with BFD'*)
8105  lt_cv_prog_gnu_ld=yes
8106  ;;
8107*)
8108  lt_cv_prog_gnu_ld=no
8109  ;;
8110esac
8111fi
8112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8113$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8114with_gnu_ld=$lt_cv_prog_gnu_ld
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8125$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8126if ${lt_cv_path_NM+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  if test -n "$NM"; then
8130  # Let the user override the test.
8131  lt_cv_path_NM="$NM"
8132else
8133  lt_nm_to_check="${ac_tool_prefix}nm"
8134  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8135    lt_nm_to_check="$lt_nm_to_check nm"
8136  fi
8137  for lt_tmp_nm in $lt_nm_to_check; do
8138    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8139    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8140      IFS="$lt_save_ifs"
8141      test -z "$ac_dir" && ac_dir=.
8142      tmp_nm="$ac_dir/$lt_tmp_nm"
8143      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8144	# Check to see if the nm accepts a BSD-compat flag.
8145	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8146	#   nm: unknown option "B" ignored
8147	# Tru64's nm complains that /dev/null is an invalid object file
8148	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8149	*/dev/null* | *'Invalid file or object type'*)
8150	  lt_cv_path_NM="$tmp_nm -B"
8151	  break
8152	  ;;
8153	*)
8154	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8155	  */dev/null*)
8156	    lt_cv_path_NM="$tmp_nm -p"
8157	    break
8158	    ;;
8159	  *)
8160	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8161	    continue # so that we can try to find one that supports BSD flags
8162	    ;;
8163	  esac
8164	  ;;
8165	esac
8166      fi
8167    done
8168    IFS="$lt_save_ifs"
8169  done
8170  : ${lt_cv_path_NM=no}
8171fi
8172fi
8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8174$as_echo "$lt_cv_path_NM" >&6; }
8175if test "$lt_cv_path_NM" != "no"; then
8176  NM="$lt_cv_path_NM"
8177else
8178  # Didn't find any BSD compatible name lister, look for dumpbin.
8179  if test -n "$DUMPBIN"; then :
8180    # Let the user override the test.
8181  else
8182    if test -n "$ac_tool_prefix"; then
8183  for ac_prog in dumpbin "link -dump"
8184  do
8185    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8186set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8188$as_echo_n "checking for $ac_word... " >&6; }
8189if ${ac_cv_prog_DUMPBIN+:} false; then :
8190  $as_echo_n "(cached) " >&6
8191else
8192  if test -n "$DUMPBIN"; then
8193  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8194else
8195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196for as_dir in $PATH
8197do
8198  IFS=$as_save_IFS
8199  test -z "$as_dir" && as_dir=.
8200    for ac_exec_ext in '' $ac_executable_extensions; do
8201  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8202    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8203    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8204    break 2
8205  fi
8206done
8207  done
8208IFS=$as_save_IFS
8209
8210fi
8211fi
8212DUMPBIN=$ac_cv_prog_DUMPBIN
8213if test -n "$DUMPBIN"; then
8214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8215$as_echo "$DUMPBIN" >&6; }
8216else
8217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8218$as_echo "no" >&6; }
8219fi
8220
8221
8222    test -n "$DUMPBIN" && break
8223  done
8224fi
8225if test -z "$DUMPBIN"; then
8226  ac_ct_DUMPBIN=$DUMPBIN
8227  for ac_prog in dumpbin "link -dump"
8228do
8229  # Extract the first word of "$ac_prog", so it can be a program name with args.
8230set dummy $ac_prog; ac_word=$2
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8232$as_echo_n "checking for $ac_word... " >&6; }
8233if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8234  $as_echo_n "(cached) " >&6
8235else
8236  if test -n "$ac_ct_DUMPBIN"; then
8237  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8238else
8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240for as_dir in $PATH
8241do
8242  IFS=$as_save_IFS
8243  test -z "$as_dir" && as_dir=.
8244    for ac_exec_ext in '' $ac_executable_extensions; do
8245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8246    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248    break 2
8249  fi
8250done
8251  done
8252IFS=$as_save_IFS
8253
8254fi
8255fi
8256ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8257if test -n "$ac_ct_DUMPBIN"; then
8258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8259$as_echo "$ac_ct_DUMPBIN" >&6; }
8260else
8261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8262$as_echo "no" >&6; }
8263fi
8264
8265
8266  test -n "$ac_ct_DUMPBIN" && break
8267done
8268
8269  if test "x$ac_ct_DUMPBIN" = x; then
8270    DUMPBIN=":"
8271  else
8272    case $cross_compiling:$ac_tool_warned in
8273yes:)
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276ac_tool_warned=yes ;;
8277esac
8278    DUMPBIN=$ac_ct_DUMPBIN
8279  fi
8280fi
8281
8282    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8283    *COFF*)
8284      DUMPBIN="$DUMPBIN -symbols"
8285      ;;
8286    *)
8287      DUMPBIN=:
8288      ;;
8289    esac
8290  fi
8291
8292  if test "$DUMPBIN" != ":"; then
8293    NM="$DUMPBIN"
8294  fi
8295fi
8296test -z "$NM" && NM=nm
8297
8298
8299
8300
8301
8302
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8304$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8305if ${lt_cv_nm_interface+:} false; then :
8306  $as_echo_n "(cached) " >&6
8307else
8308  lt_cv_nm_interface="BSD nm"
8309  echo "int some_variable = 0;" > conftest.$ac_ext
8310  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8311  (eval "$ac_compile" 2>conftest.err)
8312  cat conftest.err >&5
8313  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8314  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8315  cat conftest.err >&5
8316  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8317  cat conftest.out >&5
8318  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8319    lt_cv_nm_interface="MS dumpbin"
8320  fi
8321  rm -f conftest*
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8324$as_echo "$lt_cv_nm_interface" >&6; }
8325
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8327$as_echo_n "checking whether ln -s works... " >&6; }
8328LN_S=$as_ln_s
8329if test "$LN_S" = "ln -s"; then
8330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8331$as_echo "yes" >&6; }
8332else
8333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8334$as_echo "no, using $LN_S" >&6; }
8335fi
8336
8337# find the maximum length of command line arguments
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8339$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8340if ${lt_cv_sys_max_cmd_len+:} false; then :
8341  $as_echo_n "(cached) " >&6
8342else
8343    i=0
8344  teststring="ABCD"
8345
8346  case $build_os in
8347  msdosdjgpp*)
8348    # On DJGPP, this test can blow up pretty badly due to problems in libc
8349    # (any single argument exceeding 2000 bytes causes a buffer overrun
8350    # during glob expansion).  Even if it were fixed, the result of this
8351    # check would be larger than it should be.
8352    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8353    ;;
8354
8355  gnu*)
8356    # Under GNU Hurd, this test is not required because there is
8357    # no limit to the length of command line arguments.
8358    # Libtool will interpret -1 as no limit whatsoever
8359    lt_cv_sys_max_cmd_len=-1;
8360    ;;
8361
8362  cygwin* | mingw* | cegcc*)
8363    # On Win9x/ME, this test blows up -- it succeeds, but takes
8364    # about 5 minutes as the teststring grows exponentially.
8365    # Worse, since 9x/ME are not pre-emptively multitasking,
8366    # you end up with a "frozen" computer, even though with patience
8367    # the test eventually succeeds (with a max line length of 256k).
8368    # Instead, let's just punt: use the minimum linelength reported by
8369    # all of the supported platforms: 8192 (on NT/2K/XP).
8370    lt_cv_sys_max_cmd_len=8192;
8371    ;;
8372
8373  mint*)
8374    # On MiNT this can take a long time and run out of memory.
8375    lt_cv_sys_max_cmd_len=8192;
8376    ;;
8377
8378  amigaos*)
8379    # On AmigaOS with pdksh, this test takes hours, literally.
8380    # So we just punt and use a minimum line length of 8192.
8381    lt_cv_sys_max_cmd_len=8192;
8382    ;;
8383
8384  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8385    # This has been around since 386BSD, at least.  Likely further.
8386    if test -x /sbin/sysctl; then
8387      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8388    elif test -x /usr/sbin/sysctl; then
8389      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8390    else
8391      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8392    fi
8393    # And add a safety zone
8394    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8395    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8396    ;;
8397
8398  interix*)
8399    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8400    lt_cv_sys_max_cmd_len=196608
8401    ;;
8402
8403  os2*)
8404    # The test takes a long time on OS/2.
8405    lt_cv_sys_max_cmd_len=8192
8406    ;;
8407
8408  osf*)
8409    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8410    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8411    # nice to cause kernel panics so lets avoid the loop below.
8412    # First set a reasonable default.
8413    lt_cv_sys_max_cmd_len=16384
8414    #
8415    if test -x /sbin/sysconfig; then
8416      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8417        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8418      esac
8419    fi
8420    ;;
8421  sco3.2v5*)
8422    lt_cv_sys_max_cmd_len=102400
8423    ;;
8424  sysv5* | sco5v6* | sysv4.2uw2*)
8425    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8426    if test -n "$kargmax"; then
8427      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8428    else
8429      lt_cv_sys_max_cmd_len=32768
8430    fi
8431    ;;
8432  *)
8433    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8434    if test -n "$lt_cv_sys_max_cmd_len" && \
8435	test undefined != "$lt_cv_sys_max_cmd_len"; then
8436      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8437      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8438    else
8439      # Make teststring a little bigger before we do anything with it.
8440      # a 1K string should be a reasonable start.
8441      for i in 1 2 3 4 5 6 7 8 ; do
8442        teststring=$teststring$teststring
8443      done
8444      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8445      # If test is not a shell built-in, we'll probably end up computing a
8446      # maximum length that is only half of the actual maximum length, but
8447      # we can't tell.
8448      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8449	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8450	      test $i != 17 # 1/2 MB should be enough
8451      do
8452        i=`expr $i + 1`
8453        teststring=$teststring$teststring
8454      done
8455      # Only check the string length outside the loop.
8456      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8457      teststring=
8458      # Add a significant safety factor because C++ compilers can tack on
8459      # massive amounts of additional arguments before passing them to the
8460      # linker.  It appears as though 1/2 is a usable value.
8461      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8462    fi
8463    ;;
8464  esac
8465
8466fi
8467
8468if test -n $lt_cv_sys_max_cmd_len ; then
8469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8470$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8471else
8472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8473$as_echo "none" >&6; }
8474fi
8475max_cmd_len=$lt_cv_sys_max_cmd_len
8476
8477
8478
8479
8480
8481
8482: ${CP="cp -f"}
8483: ${MV="mv -f"}
8484: ${RM="rm -f"}
8485
8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8487$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8488# Try some XSI features
8489xsi_shell=no
8490( _lt_dummy="a/b/c"
8491  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8492      = c,a/b,b/c, \
8493    && eval 'test $(( 1 + 1 )) -eq 2 \
8494    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8495  && xsi_shell=yes
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8497$as_echo "$xsi_shell" >&6; }
8498
8499
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8501$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8502lt_shell_append=no
8503( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8504    >/dev/null 2>&1 \
8505  && lt_shell_append=yes
8506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8507$as_echo "$lt_shell_append" >&6; }
8508
8509
8510if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8511  lt_unset=unset
8512else
8513  lt_unset=false
8514fi
8515
8516
8517
8518
8519
8520# test EBCDIC or ASCII
8521case `echo X|tr X '\101'` in
8522 A) # ASCII based system
8523    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8524  lt_SP2NL='tr \040 \012'
8525  lt_NL2SP='tr \015\012 \040\040'
8526  ;;
8527 *) # EBCDIC based system
8528  lt_SP2NL='tr \100 \n'
8529  lt_NL2SP='tr \r\n \100\100'
8530  ;;
8531esac
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8542$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8543if ${lt_cv_to_host_file_cmd+:} false; then :
8544  $as_echo_n "(cached) " >&6
8545else
8546  case $host in
8547  *-*-mingw* )
8548    case $build in
8549      *-*-mingw* ) # actually msys
8550        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8551        ;;
8552      *-*-cygwin* )
8553        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8554        ;;
8555      * ) # otherwise, assume *nix
8556        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8557        ;;
8558    esac
8559    ;;
8560  *-*-cygwin* )
8561    case $build in
8562      *-*-mingw* ) # actually msys
8563        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8564        ;;
8565      *-*-cygwin* )
8566        lt_cv_to_host_file_cmd=func_convert_file_noop
8567        ;;
8568      * ) # otherwise, assume *nix
8569        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8570        ;;
8571    esac
8572    ;;
8573  * ) # unhandled hosts (and "normal" native builds)
8574    lt_cv_to_host_file_cmd=func_convert_file_noop
8575    ;;
8576esac
8577
8578fi
8579
8580to_host_file_cmd=$lt_cv_to_host_file_cmd
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8582$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8583
8584
8585
8586
8587
8588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8589$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8590if ${lt_cv_to_tool_file_cmd+:} false; then :
8591  $as_echo_n "(cached) " >&6
8592else
8593  #assume ordinary cross tools, or native build.
8594lt_cv_to_tool_file_cmd=func_convert_file_noop
8595case $host in
8596  *-*-mingw* )
8597    case $build in
8598      *-*-mingw* ) # actually msys
8599        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8600        ;;
8601    esac
8602    ;;
8603esac
8604
8605fi
8606
8607to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8609$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8610
8611
8612
8613
8614
8615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8616$as_echo_n "checking for $LD option to reload object files... " >&6; }
8617if ${lt_cv_ld_reload_flag+:} false; then :
8618  $as_echo_n "(cached) " >&6
8619else
8620  lt_cv_ld_reload_flag='-r'
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8623$as_echo "$lt_cv_ld_reload_flag" >&6; }
8624reload_flag=$lt_cv_ld_reload_flag
8625case $reload_flag in
8626"" | " "*) ;;
8627*) reload_flag=" $reload_flag" ;;
8628esac
8629reload_cmds='$LD$reload_flag -o $output$reload_objs'
8630case $host_os in
8631  cygwin* | mingw* | pw32* | cegcc*)
8632    if test "$GCC" != yes; then
8633      reload_cmds=false
8634    fi
8635    ;;
8636  darwin*)
8637    if test "$GCC" = yes; then
8638      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8639    else
8640      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8641    fi
8642    ;;
8643esac
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653if test -n "$ac_tool_prefix"; then
8654  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8655set dummy ${ac_tool_prefix}objdump; ac_word=$2
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657$as_echo_n "checking for $ac_word... " >&6; }
8658if ${ac_cv_prog_OBJDUMP+:} false; then :
8659  $as_echo_n "(cached) " >&6
8660else
8661  if test -n "$OBJDUMP"; then
8662  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8663else
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667  IFS=$as_save_IFS
8668  test -z "$as_dir" && as_dir=.
8669    for ac_exec_ext in '' $ac_executable_extensions; do
8670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673    break 2
8674  fi
8675done
8676  done
8677IFS=$as_save_IFS
8678
8679fi
8680fi
8681OBJDUMP=$ac_cv_prog_OBJDUMP
8682if test -n "$OBJDUMP"; then
8683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8684$as_echo "$OBJDUMP" >&6; }
8685else
8686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
8688fi
8689
8690
8691fi
8692if test -z "$ac_cv_prog_OBJDUMP"; then
8693  ac_ct_OBJDUMP=$OBJDUMP
8694  # Extract the first word of "objdump", so it can be a program name with args.
8695set dummy objdump; ac_word=$2
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  if test -n "$ac_ct_OBJDUMP"; then
8702  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707  IFS=$as_save_IFS
8708  test -z "$as_dir" && as_dir=.
8709    for ac_exec_ext in '' $ac_executable_extensions; do
8710  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8712    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713    break 2
8714  fi
8715done
8716  done
8717IFS=$as_save_IFS
8718
8719fi
8720fi
8721ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8722if test -n "$ac_ct_OBJDUMP"; then
8723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8724$as_echo "$ac_ct_OBJDUMP" >&6; }
8725else
8726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
8728fi
8729
8730  if test "x$ac_ct_OBJDUMP" = x; then
8731    OBJDUMP="false"
8732  else
8733    case $cross_compiling:$ac_tool_warned in
8734yes:)
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8736$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8737ac_tool_warned=yes ;;
8738esac
8739    OBJDUMP=$ac_ct_OBJDUMP
8740  fi
8741else
8742  OBJDUMP="$ac_cv_prog_OBJDUMP"
8743fi
8744
8745test -z "$OBJDUMP" && OBJDUMP=objdump
8746
8747
8748
8749
8750
8751
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8753$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8754if ${lt_cv_deplibs_check_method+:} false; then :
8755  $as_echo_n "(cached) " >&6
8756else
8757  lt_cv_file_magic_cmd='$MAGIC_CMD'
8758lt_cv_file_magic_test_file=
8759lt_cv_deplibs_check_method='unknown'
8760# Need to set the preceding variable on all platforms that support
8761# interlibrary dependencies.
8762# 'none' -- dependencies not supported.
8763# `unknown' -- same as none, but documents that we really don't know.
8764# 'pass_all' -- all dependencies passed with no checks.
8765# 'test_compile' -- check by making test program.
8766# 'file_magic [[regex]]' -- check by looking for files in library path
8767# which responds to the $file_magic_cmd with a given extended regex.
8768# If you have `file' or equivalent on your system and you're not sure
8769# whether `pass_all' will *always* work, you probably want this one.
8770
8771case $host_os in
8772aix[4-9]*)
8773  lt_cv_deplibs_check_method=pass_all
8774  ;;
8775
8776beos*)
8777  lt_cv_deplibs_check_method=pass_all
8778  ;;
8779
8780bsdi[45]*)
8781  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8782  lt_cv_file_magic_cmd='/usr/bin/file -L'
8783  lt_cv_file_magic_test_file=/shlib/libc.so
8784  ;;
8785
8786cygwin*)
8787  # func_win32_libid is a shell function defined in ltmain.sh
8788  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8789  lt_cv_file_magic_cmd='func_win32_libid'
8790  ;;
8791
8792mingw* | pw32*)
8793  # Base MSYS/MinGW do not provide the 'file' command needed by
8794  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8795  # unless we find 'file', for example because we are cross-compiling.
8796  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8797  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8798    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8799    lt_cv_file_magic_cmd='func_win32_libid'
8800  else
8801    # Keep this pattern in sync with the one in func_win32_libid.
8802    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8803    lt_cv_file_magic_cmd='$OBJDUMP -f'
8804  fi
8805  ;;
8806
8807cegcc*)
8808  # use the weaker test based on 'objdump'. See mingw*.
8809  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8810  lt_cv_file_magic_cmd='$OBJDUMP -f'
8811  ;;
8812
8813darwin* | rhapsody*)
8814  lt_cv_deplibs_check_method=pass_all
8815  ;;
8816
8817freebsd* | dragonfly*)
8818  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8819    case $host_cpu in
8820    i*86 )
8821      # Not sure whether the presence of OpenBSD here was a mistake.
8822      # Let's accept both of them until this is cleared up.
8823      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8824      lt_cv_file_magic_cmd=/usr/bin/file
8825      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8826      ;;
8827    esac
8828  else
8829    lt_cv_deplibs_check_method=pass_all
8830  fi
8831  ;;
8832
8833haiku*)
8834  lt_cv_deplibs_check_method=pass_all
8835  ;;
8836
8837hpux10.20* | hpux11*)
8838  lt_cv_file_magic_cmd=/usr/bin/file
8839  case $host_cpu in
8840  ia64*)
8841    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8842    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8843    ;;
8844  hppa*64*)
8845    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]'
8846    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8847    ;;
8848  *)
8849    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8850    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8851    ;;
8852  esac
8853  ;;
8854
8855interix[3-9]*)
8856  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8857  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8858  ;;
8859
8860irix5* | irix6* | nonstopux*)
8861  case $LD in
8862  *-32|*"-32 ") libmagic=32-bit;;
8863  *-n32|*"-n32 ") libmagic=N32;;
8864  *-64|*"-64 ") libmagic=64-bit;;
8865  *) libmagic=never-match;;
8866  esac
8867  lt_cv_deplibs_check_method=pass_all
8868  ;;
8869
8870# This must be glibc/ELF.
8871linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8872  lt_cv_deplibs_check_method=pass_all
8873  ;;
8874
8875netbsd* | netbsdelf*-gnu)
8876  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8877    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8878  else
8879    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8880  fi
8881  ;;
8882
8883newos6*)
8884  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8885  lt_cv_file_magic_cmd=/usr/bin/file
8886  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8887  ;;
8888
8889*nto* | *qnx*)
8890  lt_cv_deplibs_check_method=pass_all
8891  ;;
8892
8893openbsd*)
8894  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8895    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8896  else
8897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8898  fi
8899  ;;
8900
8901osf3* | osf4* | osf5*)
8902  lt_cv_deplibs_check_method=pass_all
8903  ;;
8904
8905rdos*)
8906  lt_cv_deplibs_check_method=pass_all
8907  ;;
8908
8909solaris*)
8910  lt_cv_deplibs_check_method=pass_all
8911  ;;
8912
8913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8914  lt_cv_deplibs_check_method=pass_all
8915  ;;
8916
8917sysv4 | sysv4.3*)
8918  case $host_vendor in
8919  motorola)
8920    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]'
8921    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8922    ;;
8923  ncr)
8924    lt_cv_deplibs_check_method=pass_all
8925    ;;
8926  sequent)
8927    lt_cv_file_magic_cmd='/bin/file'
8928    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8929    ;;
8930  sni)
8931    lt_cv_file_magic_cmd='/bin/file'
8932    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8933    lt_cv_file_magic_test_file=/lib/libc.so
8934    ;;
8935  siemens)
8936    lt_cv_deplibs_check_method=pass_all
8937    ;;
8938  pc)
8939    lt_cv_deplibs_check_method=pass_all
8940    ;;
8941  esac
8942  ;;
8943
8944tpf*)
8945  lt_cv_deplibs_check_method=pass_all
8946  ;;
8947esac
8948
8949fi
8950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8951$as_echo "$lt_cv_deplibs_check_method" >&6; }
8952
8953file_magic_glob=
8954want_nocaseglob=no
8955if test "$build" = "$host"; then
8956  case $host_os in
8957  mingw* | pw32*)
8958    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8959      want_nocaseglob=yes
8960    else
8961      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8962    fi
8963    ;;
8964  esac
8965fi
8966
8967file_magic_cmd=$lt_cv_file_magic_cmd
8968deplibs_check_method=$lt_cv_deplibs_check_method
8969test -z "$deplibs_check_method" && deplibs_check_method=unknown
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992if test -n "$ac_tool_prefix"; then
8993  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8994set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996$as_echo_n "checking for $ac_word... " >&6; }
8997if ${ac_cv_prog_DLLTOOL+:} false; then :
8998  $as_echo_n "(cached) " >&6
8999else
9000  if test -n "$DLLTOOL"; then
9001  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9002else
9003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004for as_dir in $PATH
9005do
9006  IFS=$as_save_IFS
9007  test -z "$as_dir" && as_dir=.
9008    for ac_exec_ext in '' $ac_executable_extensions; do
9009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9010    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012    break 2
9013  fi
9014done
9015  done
9016IFS=$as_save_IFS
9017
9018fi
9019fi
9020DLLTOOL=$ac_cv_prog_DLLTOOL
9021if test -n "$DLLTOOL"; then
9022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9023$as_echo "$DLLTOOL" >&6; }
9024else
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026$as_echo "no" >&6; }
9027fi
9028
9029
9030fi
9031if test -z "$ac_cv_prog_DLLTOOL"; then
9032  ac_ct_DLLTOOL=$DLLTOOL
9033  # Extract the first word of "dlltool", so it can be a program name with args.
9034set dummy dlltool; ac_word=$2
9035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036$as_echo_n "checking for $ac_word... " >&6; }
9037if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9038  $as_echo_n "(cached) " >&6
9039else
9040  if test -n "$ac_ct_DLLTOOL"; then
9041  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9042else
9043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044for as_dir in $PATH
9045do
9046  IFS=$as_save_IFS
9047  test -z "$as_dir" && as_dir=.
9048    for ac_exec_ext in '' $ac_executable_extensions; do
9049  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9050    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9051    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9052    break 2
9053  fi
9054done
9055  done
9056IFS=$as_save_IFS
9057
9058fi
9059fi
9060ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9061if test -n "$ac_ct_DLLTOOL"; then
9062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9063$as_echo "$ac_ct_DLLTOOL" >&6; }
9064else
9065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066$as_echo "no" >&6; }
9067fi
9068
9069  if test "x$ac_ct_DLLTOOL" = x; then
9070    DLLTOOL="false"
9071  else
9072    case $cross_compiling:$ac_tool_warned in
9073yes:)
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9076ac_tool_warned=yes ;;
9077esac
9078    DLLTOOL=$ac_ct_DLLTOOL
9079  fi
9080else
9081  DLLTOOL="$ac_cv_prog_DLLTOOL"
9082fi
9083
9084test -z "$DLLTOOL" && DLLTOOL=dlltool
9085
9086
9087
9088
9089
9090
9091
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9093$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9094if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9095  $as_echo_n "(cached) " >&6
9096else
9097  lt_cv_sharedlib_from_linklib_cmd='unknown'
9098
9099case $host_os in
9100cygwin* | mingw* | pw32* | cegcc*)
9101  # two different shell functions defined in ltmain.sh
9102  # decide which to use based on capabilities of $DLLTOOL
9103  case `$DLLTOOL --help 2>&1` in
9104  *--identify-strict*)
9105    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9106    ;;
9107  *)
9108    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9109    ;;
9110  esac
9111  ;;
9112*)
9113  # fallback: assume linklib IS sharedlib
9114  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9115  ;;
9116esac
9117
9118fi
9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9120$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9121sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9122test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9123
9124
9125
9126
9127
9128
9129
9130if test -n "$ac_tool_prefix"; then
9131  for ac_prog in ar
9132  do
9133    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9134set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136$as_echo_n "checking for $ac_word... " >&6; }
9137if ${ac_cv_prog_AR+:} false; then :
9138  $as_echo_n "(cached) " >&6
9139else
9140  if test -n "$AR"; then
9141  ac_cv_prog_AR="$AR" # Let the user override the test.
9142else
9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144for as_dir in $PATH
9145do
9146  IFS=$as_save_IFS
9147  test -z "$as_dir" && as_dir=.
9148    for ac_exec_ext in '' $ac_executable_extensions; do
9149  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9150    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9151    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9152    break 2
9153  fi
9154done
9155  done
9156IFS=$as_save_IFS
9157
9158fi
9159fi
9160AR=$ac_cv_prog_AR
9161if test -n "$AR"; then
9162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9163$as_echo "$AR" >&6; }
9164else
9165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166$as_echo "no" >&6; }
9167fi
9168
9169
9170    test -n "$AR" && break
9171  done
9172fi
9173if test -z "$AR"; then
9174  ac_ct_AR=$AR
9175  for ac_prog in ar
9176do
9177  # Extract the first word of "$ac_prog", so it can be a program name with args.
9178set dummy $ac_prog; ac_word=$2
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180$as_echo_n "checking for $ac_word... " >&6; }
9181if ${ac_cv_prog_ac_ct_AR+:} false; then :
9182  $as_echo_n "(cached) " >&6
9183else
9184  if test -n "$ac_ct_AR"; then
9185  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9186else
9187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188for as_dir in $PATH
9189do
9190  IFS=$as_save_IFS
9191  test -z "$as_dir" && as_dir=.
9192    for ac_exec_ext in '' $ac_executable_extensions; do
9193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9194    ac_cv_prog_ac_ct_AR="$ac_prog"
9195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196    break 2
9197  fi
9198done
9199  done
9200IFS=$as_save_IFS
9201
9202fi
9203fi
9204ac_ct_AR=$ac_cv_prog_ac_ct_AR
9205if test -n "$ac_ct_AR"; then
9206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9207$as_echo "$ac_ct_AR" >&6; }
9208else
9209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210$as_echo "no" >&6; }
9211fi
9212
9213
9214  test -n "$ac_ct_AR" && break
9215done
9216
9217  if test "x$ac_ct_AR" = x; then
9218    AR="false"
9219  else
9220    case $cross_compiling:$ac_tool_warned in
9221yes:)
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9224ac_tool_warned=yes ;;
9225esac
9226    AR=$ac_ct_AR
9227  fi
9228fi
9229
9230: ${AR=ar}
9231: ${AR_FLAGS=cru}
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9244$as_echo_n "checking for archiver @FILE support... " >&6; }
9245if ${lt_cv_ar_at_file+:} false; then :
9246  $as_echo_n "(cached) " >&6
9247else
9248  lt_cv_ar_at_file=no
9249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9250/* end confdefs.h.  */
9251
9252int main (void)
9253{
9254
9255 ;
9256 return 0;
9257}
9258_ACEOF
9259if ac_fn_c_try_compile "$LINENO"; then :
9260  echo conftest.$ac_objext > conftest.lst
9261      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9262      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9263  (eval $lt_ar_try) 2>&5
9264  ac_status=$?
9265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9266  test $ac_status = 0; }
9267      if test "$ac_status" -eq 0; then
9268	# Ensure the archiver fails upon bogus file names.
9269	rm -f conftest.$ac_objext libconftest.a
9270	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9271  (eval $lt_ar_try) 2>&5
9272  ac_status=$?
9273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9274  test $ac_status = 0; }
9275	if test "$ac_status" -ne 0; then
9276          lt_cv_ar_at_file=@
9277        fi
9278      fi
9279      rm -f conftest.* libconftest.a
9280
9281fi
9282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283
9284fi
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9286$as_echo "$lt_cv_ar_at_file" >&6; }
9287
9288if test "x$lt_cv_ar_at_file" = xno; then
9289  archiver_list_spec=
9290else
9291  archiver_list_spec=$lt_cv_ar_at_file
9292fi
9293
9294
9295
9296
9297
9298
9299
9300if test -n "$ac_tool_prefix"; then
9301  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9302set dummy ${ac_tool_prefix}strip; ac_word=$2
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
9305if ${ac_cv_prog_STRIP+:} false; then :
9306  $as_echo_n "(cached) " >&6
9307else
9308  if test -n "$STRIP"; then
9309  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314  IFS=$as_save_IFS
9315  test -z "$as_dir" && as_dir=.
9316    for ac_exec_ext in '' $ac_executable_extensions; do
9317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320    break 2
9321  fi
9322done
9323  done
9324IFS=$as_save_IFS
9325
9326fi
9327fi
9328STRIP=$ac_cv_prog_STRIP
9329if test -n "$STRIP"; then
9330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9331$as_echo "$STRIP" >&6; }
9332else
9333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
9335fi
9336
9337
9338fi
9339if test -z "$ac_cv_prog_STRIP"; then
9340  ac_ct_STRIP=$STRIP
9341  # Extract the first word of "strip", so it can be a program name with args.
9342set dummy strip; ac_word=$2
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344$as_echo_n "checking for $ac_word... " >&6; }
9345if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9346  $as_echo_n "(cached) " >&6
9347else
9348  if test -n "$ac_ct_STRIP"; then
9349  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9350else
9351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352for as_dir in $PATH
9353do
9354  IFS=$as_save_IFS
9355  test -z "$as_dir" && as_dir=.
9356    for ac_exec_ext in '' $ac_executable_extensions; do
9357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9358    ac_cv_prog_ac_ct_STRIP="strip"
9359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360    break 2
9361  fi
9362done
9363  done
9364IFS=$as_save_IFS
9365
9366fi
9367fi
9368ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9369if test -n "$ac_ct_STRIP"; then
9370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9371$as_echo "$ac_ct_STRIP" >&6; }
9372else
9373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374$as_echo "no" >&6; }
9375fi
9376
9377  if test "x$ac_ct_STRIP" = x; then
9378    STRIP=":"
9379  else
9380    case $cross_compiling:$ac_tool_warned in
9381yes:)
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9384ac_tool_warned=yes ;;
9385esac
9386    STRIP=$ac_ct_STRIP
9387  fi
9388else
9389  STRIP="$ac_cv_prog_STRIP"
9390fi
9391
9392test -z "$STRIP" && STRIP=:
9393
9394
9395
9396
9397
9398
9399if test -n "$ac_tool_prefix"; then
9400  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9401set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403$as_echo_n "checking for $ac_word... " >&6; }
9404if ${ac_cv_prog_RANLIB+:} false; then :
9405  $as_echo_n "(cached) " >&6
9406else
9407  if test -n "$RANLIB"; then
9408  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9409else
9410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411for as_dir in $PATH
9412do
9413  IFS=$as_save_IFS
9414  test -z "$as_dir" && as_dir=.
9415    for ac_exec_ext in '' $ac_executable_extensions; do
9416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9417    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419    break 2
9420  fi
9421done
9422  done
9423IFS=$as_save_IFS
9424
9425fi
9426fi
9427RANLIB=$ac_cv_prog_RANLIB
9428if test -n "$RANLIB"; then
9429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9430$as_echo "$RANLIB" >&6; }
9431else
9432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433$as_echo "no" >&6; }
9434fi
9435
9436
9437fi
9438if test -z "$ac_cv_prog_RANLIB"; then
9439  ac_ct_RANLIB=$RANLIB
9440  # Extract the first word of "ranlib", so it can be a program name with args.
9441set dummy ranlib; ac_word=$2
9442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9443$as_echo_n "checking for $ac_word... " >&6; }
9444if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9445  $as_echo_n "(cached) " >&6
9446else
9447  if test -n "$ac_ct_RANLIB"; then
9448  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9449else
9450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9451for as_dir in $PATH
9452do
9453  IFS=$as_save_IFS
9454  test -z "$as_dir" && as_dir=.
9455    for ac_exec_ext in '' $ac_executable_extensions; do
9456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9457    ac_cv_prog_ac_ct_RANLIB="ranlib"
9458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9459    break 2
9460  fi
9461done
9462  done
9463IFS=$as_save_IFS
9464
9465fi
9466fi
9467ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9468if test -n "$ac_ct_RANLIB"; then
9469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9470$as_echo "$ac_ct_RANLIB" >&6; }
9471else
9472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473$as_echo "no" >&6; }
9474fi
9475
9476  if test "x$ac_ct_RANLIB" = x; then
9477    RANLIB=":"
9478  else
9479    case $cross_compiling:$ac_tool_warned in
9480yes:)
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9483ac_tool_warned=yes ;;
9484esac
9485    RANLIB=$ac_ct_RANLIB
9486  fi
9487else
9488  RANLIB="$ac_cv_prog_RANLIB"
9489fi
9490
9491test -z "$RANLIB" && RANLIB=:
9492
9493
9494
9495
9496
9497
9498# Determine commands to create old-style static archives.
9499old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9500old_postinstall_cmds='chmod 644 $oldlib'
9501old_postuninstall_cmds=
9502
9503if test -n "$RANLIB"; then
9504  case $host_os in
9505  openbsd*)
9506    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9507    ;;
9508  *)
9509    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9510    ;;
9511  esac
9512  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9513fi
9514
9515case $host_os in
9516  darwin*)
9517    lock_old_archive_extraction=yes ;;
9518  *)
9519    lock_old_archive_extraction=no ;;
9520esac
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560# If no C compiler was specified, use CC.
9561LTCC=${LTCC-"$CC"}
9562
9563# If no C compiler flags were specified, use CFLAGS.
9564LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9565
9566# Allow CC to be a program name with arguments.
9567compiler=$CC
9568
9569
9570# Check for command to grab the raw symbol name followed by C symbol from nm.
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9572$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9573if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9574  $as_echo_n "(cached) " >&6
9575else
9576
9577# These are sane defaults that work on at least a few old systems.
9578# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9579
9580# Character class describing NM global symbol codes.
9581symcode='[BCDEGRST]'
9582
9583# Regexp to match symbols that can be accessed directly from C.
9584sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9585
9586# Define system-specific variables.
9587case $host_os in
9588aix*)
9589  symcode='[BCDT]'
9590  ;;
9591cygwin* | mingw* | pw32* | cegcc*)
9592  symcode='[ABCDGISTW]'
9593  ;;
9594hpux*)
9595  if test "$host_cpu" = ia64; then
9596    symcode='[ABCDEGRST]'
9597  fi
9598  ;;
9599irix* | nonstopux*)
9600  symcode='[BCDEGRST]'
9601  ;;
9602osf*)
9603  symcode='[BCDEGQRST]'
9604  ;;
9605solaris*)
9606  symcode='[BDRT]'
9607  ;;
9608sco3.2v5*)
9609  symcode='[DT]'
9610  ;;
9611sysv4.2uw2*)
9612  symcode='[DT]'
9613  ;;
9614sysv5* | sco5v6* | unixware* | OpenUNIX*)
9615  symcode='[ABDT]'
9616  ;;
9617sysv4)
9618  symcode='[DFNSTU]'
9619  ;;
9620esac
9621
9622# If we're using GNU nm, then use its standard symbol codes.
9623case `$NM -V 2>&1` in
9624*GNU* | *'with BFD'*)
9625  symcode='[ABCDGIRSTW]' ;;
9626esac
9627
9628# Transform an extracted symbol line into a proper C declaration.
9629# Some systems (esp. on ia64) link data and code symbols differently,
9630# so use this general approach.
9631lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9632
9633# Transform an extracted symbol line into symbol name and symbol address
9634lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9635lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9636
9637# Handle CRLF in mingw tool chain
9638opt_cr=
9639case $build_os in
9640mingw*)
9641  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9642  ;;
9643esac
9644
9645# Try without a prefix underscore, then with it.
9646for ac_symprfx in "" "_"; do
9647
9648  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9649  symxfrm="\\1 $ac_symprfx\\2 \\2"
9650
9651  # Write the raw and C identifiers.
9652  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9653    # Fake it for dumpbin and say T for any non-static function
9654    # and D for any global variable.
9655    # Also find C++ and __fastcall symbols from MSVC++,
9656    # which start with @ or ?.
9657    lt_cv_sys_global_symbol_pipe="$AWK '"\
9658"     {last_section=section; section=\$ 3};"\
9659"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9660"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9661"     \$ 0!~/External *\|/{next};"\
9662"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9663"     {if(hide[section]) next};"\
9664"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9665"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9666"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9667"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9668"     ' prfx=^$ac_symprfx"
9669  else
9670    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9671  fi
9672  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9673
9674  # Check to see that the pipe works correctly.
9675  pipe_works=no
9676
9677  rm -f conftest*
9678  cat > conftest.$ac_ext <<_LT_EOF
9679#ifdef __cplusplus
9680extern "C" {
9681#endif
9682char nm_test_var;
9683void nm_test_func(void);
9684void nm_test_func(void){}
9685#ifdef __cplusplus
9686}
9687#endif
9688int main(){nm_test_var='a';nm_test_func();return(0);}
9689_LT_EOF
9690
9691  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9692  (eval $ac_compile) 2>&5
9693  ac_status=$?
9694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9695  test $ac_status = 0; }; then
9696    # Now try to grab the symbols.
9697    nlist=conftest.nm
9698    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9699  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9700  ac_status=$?
9701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9702  test $ac_status = 0; } && test -s "$nlist"; then
9703      # Try sorting and uniquifying the output.
9704      if sort "$nlist" | uniq > "$nlist"T; then
9705	mv -f "$nlist"T "$nlist"
9706      else
9707	rm -f "$nlist"T
9708      fi
9709
9710      # Make sure that we snagged all the symbols we need.
9711      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9712	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9713	  cat <<_LT_EOF > conftest.$ac_ext
9714/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9715#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9716/* DATA imports from DLLs on WIN32 con't be const, because runtime
9717   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9718# define LT_DLSYM_CONST
9719#elif defined(__osf__)
9720/* This system does not cope well with relocations in const data.  */
9721# define LT_DLSYM_CONST
9722#else
9723# define LT_DLSYM_CONST const
9724#endif
9725
9726#ifdef __cplusplus
9727extern "C" {
9728#endif
9729
9730_LT_EOF
9731	  # Now generate the symbol file.
9732	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9733
9734	  cat <<_LT_EOF >> conftest.$ac_ext
9735
9736/* The mapping between symbol names and symbols.  */
9737LT_DLSYM_CONST struct {
9738  const char *name;
9739  void       *address;
9740}
9741lt__PROGRAM__LTX_preloaded_symbols[] =
9742{
9743  { "@PROGRAM@", (void *) 0 },
9744_LT_EOF
9745	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9746	  cat <<\_LT_EOF >> conftest.$ac_ext
9747  {0, (void *) 0}
9748};
9749
9750/* This works around a problem in FreeBSD linker */
9751#ifdef FREEBSD_WORKAROUND
9752static const void *lt_preloaded_setup() {
9753  return lt__PROGRAM__LTX_preloaded_symbols;
9754}
9755#endif
9756
9757#ifdef __cplusplus
9758}
9759#endif
9760_LT_EOF
9761	  # Now try linking the two files.
9762	  mv -f conftest.$ac_objext conftstm.$ac_objext
9763	  lt_globsym_save_LIBS=$LIBS
9764	  lt_globsym_save_CFLAGS=$CFLAGS
9765	  LIBS="conftstm.$ac_objext"
9766	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9767	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9768  (eval $ac_link) 2>&5
9769  ac_status=$?
9770  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9771  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9772	    pipe_works=yes
9773	  fi
9774	  LIBS=$lt_globsym_save_LIBS
9775	  CFLAGS=$lt_globsym_save_CFLAGS
9776	else
9777	  echo "cannot find nm_test_func in $nlist" >&5
9778	fi
9779      else
9780	echo "cannot find nm_test_var in $nlist" >&5
9781      fi
9782    else
9783      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9784    fi
9785  else
9786    echo "$progname: failed program was:" >&5
9787    cat conftest.$ac_ext >&5
9788  fi
9789  rm -rf conftest* conftst*
9790
9791  # Do not use the global_symbol_pipe unless it works.
9792  if test "$pipe_works" = yes; then
9793    break
9794  else
9795    lt_cv_sys_global_symbol_pipe=
9796  fi
9797done
9798
9799fi
9800
9801if test -z "$lt_cv_sys_global_symbol_pipe"; then
9802  lt_cv_sys_global_symbol_to_cdecl=
9803fi
9804if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9806$as_echo "failed" >&6; }
9807else
9808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9809$as_echo "ok" >&6; }
9810fi
9811
9812# Response file support.
9813if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9814  nm_file_list_spec='@'
9815elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9816  nm_file_list_spec='@'
9817fi
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9846$as_echo_n "checking for sysroot... " >&6; }
9847
9848# Check whether --with-sysroot was given.
9849if test "${with_sysroot+set}" = set; then :
9850  withval=$with_sysroot;
9851else
9852  with_sysroot=no
9853fi
9854
9855
9856lt_sysroot=
9857case ${with_sysroot} in #(
9858 yes)
9859   if test "$GCC" = yes; then
9860     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9861   fi
9862   ;; #(
9863 /*)
9864   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9865   ;; #(
9866 no|'')
9867   ;; #(
9868 *)
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9870$as_echo "${with_sysroot}" >&6; }
9871   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9872   ;;
9873esac
9874
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9876$as_echo "${lt_sysroot:-no}" >&6; }
9877
9878
9879
9880
9881
9882# Check whether --enable-libtool-lock was given.
9883if test "${enable_libtool_lock+set}" = set; then :
9884  enableval=$enable_libtool_lock;
9885fi
9886
9887test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9888
9889# Some flags need to be propagated to the compiler or linker for good
9890# libtool support.
9891case $host in
9892ia64-*-hpux*)
9893  # Find out which ABI we are using.
9894  echo 'int i;' > conftest.$ac_ext
9895  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9896  (eval $ac_compile) 2>&5
9897  ac_status=$?
9898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9899  test $ac_status = 0; }; then
9900    case `/usr/bin/file conftest.$ac_objext` in
9901      *ELF-32*)
9902	HPUX_IA64_MODE="32"
9903	;;
9904      *ELF-64*)
9905	HPUX_IA64_MODE="64"
9906	;;
9907    esac
9908  fi
9909  rm -rf conftest*
9910  ;;
9911*-*-irix6*)
9912  # Find out which ABI we are using.
9913  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9914  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9915  (eval $ac_compile) 2>&5
9916  ac_status=$?
9917  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9918  test $ac_status = 0; }; then
9919    if test "$lt_cv_prog_gnu_ld" = yes; then
9920      case `/usr/bin/file conftest.$ac_objext` in
9921	*32-bit*)
9922	  LD="${LD-ld} -melf32bsmip"
9923	  ;;
9924	*N32*)
9925	  LD="${LD-ld} -melf32bmipn32"
9926	  ;;
9927	*64-bit*)
9928	  LD="${LD-ld} -melf64bmip"
9929	;;
9930      esac
9931    else
9932      case `/usr/bin/file conftest.$ac_objext` in
9933	*32-bit*)
9934	  LD="${LD-ld} -32"
9935	  ;;
9936	*N32*)
9937	  LD="${LD-ld} -n32"
9938	  ;;
9939	*64-bit*)
9940	  LD="${LD-ld} -64"
9941	  ;;
9942      esac
9943    fi
9944  fi
9945  rm -rf conftest*
9946  ;;
9947
9948x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9949s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9950  # Find out which ABI we are using.
9951  echo 'int i;' > conftest.$ac_ext
9952  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9953  (eval $ac_compile) 2>&5
9954  ac_status=$?
9955  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9956  test $ac_status = 0; }; then
9957    case `/usr/bin/file conftest.o` in
9958      *32-bit*)
9959	case $host in
9960	  x86_64-*kfreebsd*-gnu)
9961	    LD="${LD-ld} -m elf_i386_fbsd"
9962	    ;;
9963	  x86_64-*linux*)
9964	    case `/usr/bin/file conftest.o` in
9965	      *x86-64*)
9966		LD="${LD-ld} -m elf32_x86_64"
9967		;;
9968	      *)
9969		LD="${LD-ld} -m elf_i386"
9970		;;
9971	    esac
9972	    ;;
9973	  powerpc64le-*)
9974	    LD="${LD-ld} -m elf32lppclinux"
9975	    ;;
9976	  powerpc64-*)
9977	    LD="${LD-ld} -m elf32ppclinux"
9978	    ;;
9979	  s390x-*linux*)
9980	    LD="${LD-ld} -m elf_s390"
9981	    ;;
9982	  sparc64-*linux*)
9983	    LD="${LD-ld} -m elf32_sparc"
9984	    ;;
9985	esac
9986	;;
9987      *64-bit*)
9988	case $host in
9989	  x86_64-*kfreebsd*-gnu)
9990	    LD="${LD-ld} -m elf_x86_64_fbsd"
9991	    ;;
9992	  x86_64-*linux*)
9993	    LD="${LD-ld} -m elf_x86_64"
9994	    ;;
9995	  powerpcle-*)
9996	    LD="${LD-ld} -m elf64lppc"
9997	    ;;
9998	  powerpc-*)
9999	    LD="${LD-ld} -m elf64ppc"
10000	    ;;
10001	  s390*-*linux*|s390*-*tpf*)
10002	    LD="${LD-ld} -m elf64_s390"
10003	    ;;
10004	  sparc*-*linux*)
10005	    LD="${LD-ld} -m elf64_sparc"
10006	    ;;
10007	esac
10008	;;
10009    esac
10010  fi
10011  rm -rf conftest*
10012  ;;
10013
10014*-*-sco3.2v5*)
10015  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10016  SAVE_CFLAGS="$CFLAGS"
10017  CFLAGS="$CFLAGS -belf"
10018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10019$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10020if ${lt_cv_cc_needs_belf+:} false; then :
10021  $as_echo_n "(cached) " >&6
10022else
10023  ac_ext=c
10024ac_cpp='$CPP $CPPFLAGS'
10025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027ac_compiler_gnu=$ac_cv_c_compiler_gnu
10028
10029     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10030/* end confdefs.h.  */
10031
10032int main (void)
10033{
10034
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039if ac_fn_c_try_link "$LINENO"; then :
10040  lt_cv_cc_needs_belf=yes
10041else
10042  lt_cv_cc_needs_belf=no
10043fi
10044rm -f core conftest.err conftest.$ac_objext \
10045    conftest$ac_exeext conftest.$ac_ext
10046     ac_ext=c
10047ac_cpp='$CPP $CPPFLAGS'
10048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10050ac_compiler_gnu=$ac_cv_c_compiler_gnu
10051
10052fi
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10054$as_echo "$lt_cv_cc_needs_belf" >&6; }
10055  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10056    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10057    CFLAGS="$SAVE_CFLAGS"
10058  fi
10059  ;;
10060*-*solaris*)
10061  # Find out which ABI we are using.
10062  echo 'int i;' > conftest.$ac_ext
10063  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10064  (eval $ac_compile) 2>&5
10065  ac_status=$?
10066  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10067  test $ac_status = 0; }; then
10068    case `/usr/bin/file conftest.o` in
10069    *64-bit*)
10070      case $lt_cv_prog_gnu_ld in
10071      yes*)
10072        case $host in
10073        i?86-*-solaris*)
10074          LD="${LD-ld} -m elf_x86_64"
10075          ;;
10076        sparc*-*-solaris*)
10077          LD="${LD-ld} -m elf64_sparc"
10078          ;;
10079        esac
10080        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10081        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10082          LD="${LD-ld}_sol2"
10083        fi
10084        ;;
10085      *)
10086	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10087	  LD="${LD-ld} -64"
10088	fi
10089	;;
10090      esac
10091      ;;
10092    esac
10093  fi
10094  rm -rf conftest*
10095  ;;
10096esac
10097
10098need_locks="$enable_libtool_lock"
10099
10100if test -n "$ac_tool_prefix"; then
10101  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10102set dummy ${ac_tool_prefix}mt; ac_word=$2
10103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104$as_echo_n "checking for $ac_word... " >&6; }
10105if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10106  $as_echo_n "(cached) " >&6
10107else
10108  if test -n "$MANIFEST_TOOL"; then
10109  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10110else
10111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10112for as_dir in $PATH
10113do
10114  IFS=$as_save_IFS
10115  test -z "$as_dir" && as_dir=.
10116    for ac_exec_ext in '' $ac_executable_extensions; do
10117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10118    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10120    break 2
10121  fi
10122done
10123  done
10124IFS=$as_save_IFS
10125
10126fi
10127fi
10128MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10129if test -n "$MANIFEST_TOOL"; then
10130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10131$as_echo "$MANIFEST_TOOL" >&6; }
10132else
10133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10134$as_echo "no" >&6; }
10135fi
10136
10137
10138fi
10139if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10140  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10141  # Extract the first word of "mt", so it can be a program name with args.
10142set dummy mt; ac_word=$2
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144$as_echo_n "checking for $ac_word... " >&6; }
10145if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10146  $as_echo_n "(cached) " >&6
10147else
10148  if test -n "$ac_ct_MANIFEST_TOOL"; then
10149  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10150else
10151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154  IFS=$as_save_IFS
10155  test -z "$as_dir" && as_dir=.
10156    for ac_exec_ext in '' $ac_executable_extensions; do
10157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10158    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10160    break 2
10161  fi
10162done
10163  done
10164IFS=$as_save_IFS
10165
10166fi
10167fi
10168ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10169if test -n "$ac_ct_MANIFEST_TOOL"; then
10170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10171$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10172else
10173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174$as_echo "no" >&6; }
10175fi
10176
10177  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10178    MANIFEST_TOOL=":"
10179  else
10180    case $cross_compiling:$ac_tool_warned in
10181yes:)
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10184ac_tool_warned=yes ;;
10185esac
10186    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10187  fi
10188else
10189  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10190fi
10191
10192test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10194$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10195if ${lt_cv_path_mainfest_tool+:} false; then :
10196  $as_echo_n "(cached) " >&6
10197else
10198  lt_cv_path_mainfest_tool=no
10199  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10200  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10201  cat conftest.err >&5
10202  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10203    lt_cv_path_mainfest_tool=yes
10204  fi
10205  rm -f conftest*
10206fi
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10208$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10209if test "x$lt_cv_path_mainfest_tool" != xyes; then
10210  MANIFEST_TOOL=:
10211fi
10212
10213
10214
10215
10216
10217
10218  case $host_os in
10219    rhapsody* | darwin*)
10220    if test -n "$ac_tool_prefix"; then
10221  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10222set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10224$as_echo_n "checking for $ac_word... " >&6; }
10225if ${ac_cv_prog_DSYMUTIL+:} false; then :
10226  $as_echo_n "(cached) " >&6
10227else
10228  if test -n "$DSYMUTIL"; then
10229  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10230else
10231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232for as_dir in $PATH
10233do
10234  IFS=$as_save_IFS
10235  test -z "$as_dir" && as_dir=.
10236    for ac_exec_ext in '' $ac_executable_extensions; do
10237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10238    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10240    break 2
10241  fi
10242done
10243  done
10244IFS=$as_save_IFS
10245
10246fi
10247fi
10248DSYMUTIL=$ac_cv_prog_DSYMUTIL
10249if test -n "$DSYMUTIL"; then
10250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10251$as_echo "$DSYMUTIL" >&6; }
10252else
10253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10254$as_echo "no" >&6; }
10255fi
10256
10257
10258fi
10259if test -z "$ac_cv_prog_DSYMUTIL"; then
10260  ac_ct_DSYMUTIL=$DSYMUTIL
10261  # Extract the first word of "dsymutil", so it can be a program name with args.
10262set dummy dsymutil; ac_word=$2
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10264$as_echo_n "checking for $ac_word... " >&6; }
10265if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10266  $as_echo_n "(cached) " >&6
10267else
10268  if test -n "$ac_ct_DSYMUTIL"; then
10269  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10270else
10271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10272for as_dir in $PATH
10273do
10274  IFS=$as_save_IFS
10275  test -z "$as_dir" && as_dir=.
10276    for ac_exec_ext in '' $ac_executable_extensions; do
10277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10278    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10280    break 2
10281  fi
10282done
10283  done
10284IFS=$as_save_IFS
10285
10286fi
10287fi
10288ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10289if test -n "$ac_ct_DSYMUTIL"; then
10290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10291$as_echo "$ac_ct_DSYMUTIL" >&6; }
10292else
10293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10294$as_echo "no" >&6; }
10295fi
10296
10297  if test "x$ac_ct_DSYMUTIL" = x; then
10298    DSYMUTIL=":"
10299  else
10300    case $cross_compiling:$ac_tool_warned in
10301yes:)
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10304ac_tool_warned=yes ;;
10305esac
10306    DSYMUTIL=$ac_ct_DSYMUTIL
10307  fi
10308else
10309  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10310fi
10311
10312    if test -n "$ac_tool_prefix"; then
10313  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10314set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316$as_echo_n "checking for $ac_word... " >&6; }
10317if ${ac_cv_prog_NMEDIT+:} false; then :
10318  $as_echo_n "(cached) " >&6
10319else
10320  if test -n "$NMEDIT"; then
10321  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326  IFS=$as_save_IFS
10327  test -z "$as_dir" && as_dir=.
10328    for ac_exec_ext in '' $ac_executable_extensions; do
10329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332    break 2
10333  fi
10334done
10335  done
10336IFS=$as_save_IFS
10337
10338fi
10339fi
10340NMEDIT=$ac_cv_prog_NMEDIT
10341if test -n "$NMEDIT"; then
10342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10343$as_echo "$NMEDIT" >&6; }
10344else
10345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346$as_echo "no" >&6; }
10347fi
10348
10349
10350fi
10351if test -z "$ac_cv_prog_NMEDIT"; then
10352  ac_ct_NMEDIT=$NMEDIT
10353  # Extract the first word of "nmedit", so it can be a program name with args.
10354set dummy nmedit; ac_word=$2
10355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10356$as_echo_n "checking for $ac_word... " >&6; }
10357if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10358  $as_echo_n "(cached) " >&6
10359else
10360  if test -n "$ac_ct_NMEDIT"; then
10361  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10362else
10363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10364for as_dir in $PATH
10365do
10366  IFS=$as_save_IFS
10367  test -z "$as_dir" && as_dir=.
10368    for ac_exec_ext in '' $ac_executable_extensions; do
10369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10370    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10372    break 2
10373  fi
10374done
10375  done
10376IFS=$as_save_IFS
10377
10378fi
10379fi
10380ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10381if test -n "$ac_ct_NMEDIT"; then
10382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10383$as_echo "$ac_ct_NMEDIT" >&6; }
10384else
10385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10386$as_echo "no" >&6; }
10387fi
10388
10389  if test "x$ac_ct_NMEDIT" = x; then
10390    NMEDIT=":"
10391  else
10392    case $cross_compiling:$ac_tool_warned in
10393yes:)
10394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10396ac_tool_warned=yes ;;
10397esac
10398    NMEDIT=$ac_ct_NMEDIT
10399  fi
10400else
10401  NMEDIT="$ac_cv_prog_NMEDIT"
10402fi
10403
10404    if test -n "$ac_tool_prefix"; then
10405  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10406set dummy ${ac_tool_prefix}lipo; ac_word=$2
10407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10408$as_echo_n "checking for $ac_word... " >&6; }
10409if ${ac_cv_prog_LIPO+:} false; then :
10410  $as_echo_n "(cached) " >&6
10411else
10412  if test -n "$LIPO"; then
10413  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10414else
10415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416for as_dir in $PATH
10417do
10418  IFS=$as_save_IFS
10419  test -z "$as_dir" && as_dir=.
10420    for ac_exec_ext in '' $ac_executable_extensions; do
10421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10422    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10423    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10424    break 2
10425  fi
10426done
10427  done
10428IFS=$as_save_IFS
10429
10430fi
10431fi
10432LIPO=$ac_cv_prog_LIPO
10433if test -n "$LIPO"; then
10434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10435$as_echo "$LIPO" >&6; }
10436else
10437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438$as_echo "no" >&6; }
10439fi
10440
10441
10442fi
10443if test -z "$ac_cv_prog_LIPO"; then
10444  ac_ct_LIPO=$LIPO
10445  # Extract the first word of "lipo", so it can be a program name with args.
10446set dummy lipo; ac_word=$2
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448$as_echo_n "checking for $ac_word... " >&6; }
10449if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10450  $as_echo_n "(cached) " >&6
10451else
10452  if test -n "$ac_ct_LIPO"; then
10453  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10454else
10455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458  IFS=$as_save_IFS
10459  test -z "$as_dir" && as_dir=.
10460    for ac_exec_ext in '' $ac_executable_extensions; do
10461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462    ac_cv_prog_ac_ct_LIPO="lipo"
10463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464    break 2
10465  fi
10466done
10467  done
10468IFS=$as_save_IFS
10469
10470fi
10471fi
10472ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10473if test -n "$ac_ct_LIPO"; then
10474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10475$as_echo "$ac_ct_LIPO" >&6; }
10476else
10477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478$as_echo "no" >&6; }
10479fi
10480
10481  if test "x$ac_ct_LIPO" = x; then
10482    LIPO=":"
10483  else
10484    case $cross_compiling:$ac_tool_warned in
10485yes:)
10486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10488ac_tool_warned=yes ;;
10489esac
10490    LIPO=$ac_ct_LIPO
10491  fi
10492else
10493  LIPO="$ac_cv_prog_LIPO"
10494fi
10495
10496    if test -n "$ac_tool_prefix"; then
10497  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10498set dummy ${ac_tool_prefix}otool; ac_word=$2
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500$as_echo_n "checking for $ac_word... " >&6; }
10501if ${ac_cv_prog_OTOOL+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  if test -n "$OTOOL"; then
10505  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10506else
10507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508for as_dir in $PATH
10509do
10510  IFS=$as_save_IFS
10511  test -z "$as_dir" && as_dir=.
10512    for ac_exec_ext in '' $ac_executable_extensions; do
10513  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516    break 2
10517  fi
10518done
10519  done
10520IFS=$as_save_IFS
10521
10522fi
10523fi
10524OTOOL=$ac_cv_prog_OTOOL
10525if test -n "$OTOOL"; then
10526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10527$as_echo "$OTOOL" >&6; }
10528else
10529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530$as_echo "no" >&6; }
10531fi
10532
10533
10534fi
10535if test -z "$ac_cv_prog_OTOOL"; then
10536  ac_ct_OTOOL=$OTOOL
10537  # Extract the first word of "otool", so it can be a program name with args.
10538set dummy otool; ac_word=$2
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540$as_echo_n "checking for $ac_word... " >&6; }
10541if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10542  $as_echo_n "(cached) " >&6
10543else
10544  if test -n "$ac_ct_OTOOL"; then
10545  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10546else
10547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $PATH
10549do
10550  IFS=$as_save_IFS
10551  test -z "$as_dir" && as_dir=.
10552    for ac_exec_ext in '' $ac_executable_extensions; do
10553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554    ac_cv_prog_ac_ct_OTOOL="otool"
10555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556    break 2
10557  fi
10558done
10559  done
10560IFS=$as_save_IFS
10561
10562fi
10563fi
10564ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10565if test -n "$ac_ct_OTOOL"; then
10566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10567$as_echo "$ac_ct_OTOOL" >&6; }
10568else
10569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
10571fi
10572
10573  if test "x$ac_ct_OTOOL" = x; then
10574    OTOOL=":"
10575  else
10576    case $cross_compiling:$ac_tool_warned in
10577yes:)
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10580ac_tool_warned=yes ;;
10581esac
10582    OTOOL=$ac_ct_OTOOL
10583  fi
10584else
10585  OTOOL="$ac_cv_prog_OTOOL"
10586fi
10587
10588    if test -n "$ac_tool_prefix"; then
10589  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10590set dummy ${ac_tool_prefix}otool64; ac_word=$2
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
10593if ${ac_cv_prog_OTOOL64+:} false; then :
10594  $as_echo_n "(cached) " >&6
10595else
10596  if test -n "$OTOOL64"; then
10597  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10598else
10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600for as_dir in $PATH
10601do
10602  IFS=$as_save_IFS
10603  test -z "$as_dir" && as_dir=.
10604    for ac_exec_ext in '' $ac_executable_extensions; do
10605  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10606    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608    break 2
10609  fi
10610done
10611  done
10612IFS=$as_save_IFS
10613
10614fi
10615fi
10616OTOOL64=$ac_cv_prog_OTOOL64
10617if test -n "$OTOOL64"; then
10618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10619$as_echo "$OTOOL64" >&6; }
10620else
10621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
10623fi
10624
10625
10626fi
10627if test -z "$ac_cv_prog_OTOOL64"; then
10628  ac_ct_OTOOL64=$OTOOL64
10629  # Extract the first word of "otool64", so it can be a program name with args.
10630set dummy otool64; ac_word=$2
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10632$as_echo_n "checking for $ac_word... " >&6; }
10633if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10634  $as_echo_n "(cached) " >&6
10635else
10636  if test -n "$ac_ct_OTOOL64"; then
10637  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10638else
10639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10640for as_dir in $PATH
10641do
10642  IFS=$as_save_IFS
10643  test -z "$as_dir" && as_dir=.
10644    for ac_exec_ext in '' $ac_executable_extensions; do
10645  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10646    ac_cv_prog_ac_ct_OTOOL64="otool64"
10647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10648    break 2
10649  fi
10650done
10651  done
10652IFS=$as_save_IFS
10653
10654fi
10655fi
10656ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10657if test -n "$ac_ct_OTOOL64"; then
10658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10659$as_echo "$ac_ct_OTOOL64" >&6; }
10660else
10661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662$as_echo "no" >&6; }
10663fi
10664
10665  if test "x$ac_ct_OTOOL64" = x; then
10666    OTOOL64=":"
10667  else
10668    case $cross_compiling:$ac_tool_warned in
10669yes:)
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10672ac_tool_warned=yes ;;
10673esac
10674    OTOOL64=$ac_ct_OTOOL64
10675  fi
10676else
10677  OTOOL64="$ac_cv_prog_OTOOL64"
10678fi
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10707$as_echo_n "checking for -single_module linker flag... " >&6; }
10708if ${lt_cv_apple_cc_single_mod+:} false; then :
10709  $as_echo_n "(cached) " >&6
10710else
10711  lt_cv_apple_cc_single_mod=no
10712      if test -z "${LT_MULTI_MODULE}"; then
10713	# By default we will add the -single_module flag. You can override
10714	# by either setting the environment variable LT_MULTI_MODULE
10715	# non-empty at configure time, or by adding -multi_module to the
10716	# link flags.
10717	rm -rf libconftest.dylib*
10718	echo "int foo(void){return 1;}" > conftest.c
10719	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10720-dynamiclib -Wl,-single_module conftest.c" >&5
10721	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10722	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10723        _lt_result=$?
10724	# If there is a non-empty error log, and "single_module"
10725	# appears in it, assume the flag caused a linker warning
10726        if test -s conftest.err && $GREP single_module conftest.err; then
10727	  cat conftest.err >&5
10728	# Otherwise, if the output was created with a 0 exit code from
10729	# the compiler, it worked.
10730	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10731	  lt_cv_apple_cc_single_mod=yes
10732	else
10733	  cat conftest.err >&5
10734	fi
10735	rm -rf libconftest.dylib*
10736	rm -f conftest.*
10737      fi
10738fi
10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10740$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10741
10742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10743$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10744if ${lt_cv_ld_exported_symbols_list+:} false; then :
10745  $as_echo_n "(cached) " >&6
10746else
10747  lt_cv_ld_exported_symbols_list=no
10748      save_LDFLAGS=$LDFLAGS
10749      echo "_main" > conftest.sym
10750      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10751      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10752/* end confdefs.h.  */
10753
10754int main (void)
10755{
10756
10757 ;
10758 return 0;
10759}
10760_ACEOF
10761if ac_fn_c_try_link "$LINENO"; then :
10762  lt_cv_ld_exported_symbols_list=yes
10763else
10764  lt_cv_ld_exported_symbols_list=no
10765fi
10766rm -f core conftest.err conftest.$ac_objext \
10767    conftest$ac_exeext conftest.$ac_ext
10768	LDFLAGS="$save_LDFLAGS"
10769
10770fi
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10772$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10773
10774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10775$as_echo_n "checking for -force_load linker flag... " >&6; }
10776if ${lt_cv_ld_force_load+:} false; then :
10777  $as_echo_n "(cached) " >&6
10778else
10779  lt_cv_ld_force_load=no
10780      cat > conftest.c << _LT_EOF
10781int forced_loaded() { return 2;}
10782_LT_EOF
10783      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10784      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10785      echo "$AR cru libconftest.a conftest.o" >&5
10786      $AR cru libconftest.a conftest.o 2>&5
10787      echo "$RANLIB libconftest.a" >&5
10788      $RANLIB libconftest.a 2>&5
10789      cat > conftest.c << _LT_EOF
10790int main() { return 0;}
10791_LT_EOF
10792      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10793      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10794      _lt_result=$?
10795      if test -s conftest.err && $GREP force_load conftest.err; then
10796	cat conftest.err >&5
10797      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10798	lt_cv_ld_force_load=yes
10799      else
10800	cat conftest.err >&5
10801      fi
10802        rm -f conftest.err libconftest.a conftest conftest.c
10803        rm -rf conftest.dSYM
10804
10805fi
10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10807$as_echo "$lt_cv_ld_force_load" >&6; }
10808    case $host_os in
10809    rhapsody* | darwin1.[012])
10810      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10811    darwin1.*)
10812      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10813    darwin*) # darwin 5.x on
10814      # if running on 10.5 or later, the deployment target defaults
10815      # to the OS version, if on x86, and 10.4, the deployment
10816      # target defaults to 10.4. Don't you love it?
10817      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10818	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10819	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10820	10.[012]*)
10821	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10822	10.*)
10823	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10824      esac
10825    ;;
10826  esac
10827    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10828      _lt_dar_single_mod='$single_module'
10829    fi
10830    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10831      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10832    else
10833      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10834    fi
10835    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10836      _lt_dsymutil='~$DSYMUTIL $lib || :'
10837    else
10838      _lt_dsymutil=
10839    fi
10840    ;;
10841  esac
10842
10843for ac_header in dlfcn.h
10844do :
10845  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10846"
10847if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10848  cat >>confdefs.h <<_ACEOF
10849#define HAVE_DLFCN_H 1
10850_ACEOF
10851
10852fi
10853
10854done
10855
10856# ------------------------------------ #
10857#  Determine libtool default behavior  #
10858# ------------------------------------ #
10859
10860#
10861# Default behavior is to enable shared and static libraries on systems
10862# where libtool knows how to build both library versions, and does not
10863# require separate configuration and build runs for each flavor.
10864#
10865
10866xc_lt_want_enable_shared='yes'
10867xc_lt_want_enable_static='yes'
10868
10869#
10870# User may have disabled shared or static libraries.
10871#
10872case "x$enable_shared" in # (
10873  xno)
10874    xc_lt_want_enable_shared='no'
10875    ;;
10876esac
10877case "x$enable_static" in # (
10878  xno)
10879    xc_lt_want_enable_static='no'
10880    ;;
10881esac
10882if test "x$xc_lt_want_enable_shared" = 'xno' &&
10883  test "x$xc_lt_want_enable_static" = 'xno'; then
10884  as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10885fi
10886
10887#
10888# Default behavior on systems that require independent configuration
10889# and build runs for shared and static is to enable shared libraries
10890# and disable static ones. On these systems option '--disable-shared'
10891# must be used in order to build a proper static library.
10892#
10893
10894if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10895  test "x$xc_lt_want_enable_static" = 'xyes'; then
10896  case $host_os in # (
10897    mingw* | pw32* | cegcc* | os2* | aix*)
10898      xc_lt_want_enable_static='no'
10899      ;;
10900  esac
10901fi
10902
10903#
10904# Make libtool aware of current shared and static library preferences
10905# taking in account that, depending on host characteristics, libtool
10906# may modify these option preferences later in this configure script.
10907#
10908
10909enable_shared=$xc_lt_want_enable_shared
10910enable_static=$xc_lt_want_enable_static
10911
10912#
10913# Default behavior is to build PIC objects for shared libraries and
10914# non-PIC objects for static libraries.
10915#
10916
10917xc_lt_want_with_pic='default'
10918
10919#
10920# User may have specified PIC preference.
10921#
10922
10923case "x$with_pic" in # ((
10924  xno)
10925    xc_lt_want_with_pic='no'
10926    ;;
10927  xyes)
10928    xc_lt_want_with_pic='yes'
10929    ;;
10930esac
10931
10932#
10933# Default behavior on some systems where building a shared library out
10934# of non-PIC compiled objects will fail with following linker error
10935# "relocation R_X86_64_32 can not be used when making a shared object"
10936# is to build PIC objects even for static libraries. This behavior may
10937# be overriden using 'configure --disable-shared --without-pic'.
10938#
10939
10940if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10941  case $host_cpu in # (
10942    x86_64 | amd64 | ia64)
10943      case $host_os in # (
10944        linux* | freebsd*)
10945          xc_lt_want_with_pic='yes'
10946          ;;
10947      esac
10948      ;;
10949  esac
10950fi
10951
10952#
10953# Make libtool aware of current PIC preference taking in account that,
10954# depending on host characteristics, libtool may modify PIC default
10955# behavior to fit host system idiosyncrasies later in this script.
10956#
10957
10958with_pic=$xc_lt_want_with_pic
10959
10960## ----------------------- ##
10961##  Start of libtool code  ##
10962## ----------------------- ##
10963
10964
10965
10966
10967# Set options
10968enable_win32_dll=yes
10969
10970case $host in
10971*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10972  if test -n "$ac_tool_prefix"; then
10973  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10974set dummy ${ac_tool_prefix}as; ac_word=$2
10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976$as_echo_n "checking for $ac_word... " >&6; }
10977if ${ac_cv_prog_AS+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  if test -n "$AS"; then
10981  ac_cv_prog_AS="$AS" # Let the user override the test.
10982else
10983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984for as_dir in $PATH
10985do
10986  IFS=$as_save_IFS
10987  test -z "$as_dir" && as_dir=.
10988    for ac_exec_ext in '' $ac_executable_extensions; do
10989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990    ac_cv_prog_AS="${ac_tool_prefix}as"
10991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992    break 2
10993  fi
10994done
10995  done
10996IFS=$as_save_IFS
10997
10998fi
10999fi
11000AS=$ac_cv_prog_AS
11001if test -n "$AS"; then
11002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11003$as_echo "$AS" >&6; }
11004else
11005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006$as_echo "no" >&6; }
11007fi
11008
11009
11010fi
11011if test -z "$ac_cv_prog_AS"; then
11012  ac_ct_AS=$AS
11013  # Extract the first word of "as", so it can be a program name with args.
11014set dummy as; ac_word=$2
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11016$as_echo_n "checking for $ac_word... " >&6; }
11017if ${ac_cv_prog_ac_ct_AS+:} false; then :
11018  $as_echo_n "(cached) " >&6
11019else
11020  if test -n "$ac_ct_AS"; then
11021  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11022else
11023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024for as_dir in $PATH
11025do
11026  IFS=$as_save_IFS
11027  test -z "$as_dir" && as_dir=.
11028    for ac_exec_ext in '' $ac_executable_extensions; do
11029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030    ac_cv_prog_ac_ct_AS="as"
11031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032    break 2
11033  fi
11034done
11035  done
11036IFS=$as_save_IFS
11037
11038fi
11039fi
11040ac_ct_AS=$ac_cv_prog_ac_ct_AS
11041if test -n "$ac_ct_AS"; then
11042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11043$as_echo "$ac_ct_AS" >&6; }
11044else
11045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11046$as_echo "no" >&6; }
11047fi
11048
11049  if test "x$ac_ct_AS" = x; then
11050    AS="false"
11051  else
11052    case $cross_compiling:$ac_tool_warned in
11053yes:)
11054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11056ac_tool_warned=yes ;;
11057esac
11058    AS=$ac_ct_AS
11059  fi
11060else
11061  AS="$ac_cv_prog_AS"
11062fi
11063
11064  if test -n "$ac_tool_prefix"; then
11065  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11066set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068$as_echo_n "checking for $ac_word... " >&6; }
11069if ${ac_cv_prog_DLLTOOL+:} false; then :
11070  $as_echo_n "(cached) " >&6
11071else
11072  if test -n "$DLLTOOL"; then
11073  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11074else
11075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH
11077do
11078  IFS=$as_save_IFS
11079  test -z "$as_dir" && as_dir=.
11080    for ac_exec_ext in '' $ac_executable_extensions; do
11081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11084    break 2
11085  fi
11086done
11087  done
11088IFS=$as_save_IFS
11089
11090fi
11091fi
11092DLLTOOL=$ac_cv_prog_DLLTOOL
11093if test -n "$DLLTOOL"; then
11094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11095$as_echo "$DLLTOOL" >&6; }
11096else
11097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098$as_echo "no" >&6; }
11099fi
11100
11101
11102fi
11103if test -z "$ac_cv_prog_DLLTOOL"; then
11104  ac_ct_DLLTOOL=$DLLTOOL
11105  # Extract the first word of "dlltool", so it can be a program name with args.
11106set dummy dlltool; ac_word=$2
11107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108$as_echo_n "checking for $ac_word... " >&6; }
11109if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11110  $as_echo_n "(cached) " >&6
11111else
11112  if test -n "$ac_ct_DLLTOOL"; then
11113  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11114else
11115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $PATH
11117do
11118  IFS=$as_save_IFS
11119  test -z "$as_dir" && as_dir=.
11120    for ac_exec_ext in '' $ac_executable_extensions; do
11121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124    break 2
11125  fi
11126done
11127  done
11128IFS=$as_save_IFS
11129
11130fi
11131fi
11132ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11133if test -n "$ac_ct_DLLTOOL"; then
11134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11135$as_echo "$ac_ct_DLLTOOL" >&6; }
11136else
11137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11138$as_echo "no" >&6; }
11139fi
11140
11141  if test "x$ac_ct_DLLTOOL" = x; then
11142    DLLTOOL="false"
11143  else
11144    case $cross_compiling:$ac_tool_warned in
11145yes:)
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11148ac_tool_warned=yes ;;
11149esac
11150    DLLTOOL=$ac_ct_DLLTOOL
11151  fi
11152else
11153  DLLTOOL="$ac_cv_prog_DLLTOOL"
11154fi
11155
11156  if test -n "$ac_tool_prefix"; then
11157  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11158set dummy ${ac_tool_prefix}objdump; ac_word=$2
11159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11160$as_echo_n "checking for $ac_word... " >&6; }
11161if ${ac_cv_prog_OBJDUMP+:} false; then :
11162  $as_echo_n "(cached) " >&6
11163else
11164  if test -n "$OBJDUMP"; then
11165  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11166else
11167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168for as_dir in $PATH
11169do
11170  IFS=$as_save_IFS
11171  test -z "$as_dir" && as_dir=.
11172    for ac_exec_ext in '' $ac_executable_extensions; do
11173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176    break 2
11177  fi
11178done
11179  done
11180IFS=$as_save_IFS
11181
11182fi
11183fi
11184OBJDUMP=$ac_cv_prog_OBJDUMP
11185if test -n "$OBJDUMP"; then
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11187$as_echo "$OBJDUMP" >&6; }
11188else
11189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11190$as_echo "no" >&6; }
11191fi
11192
11193
11194fi
11195if test -z "$ac_cv_prog_OBJDUMP"; then
11196  ac_ct_OBJDUMP=$OBJDUMP
11197  # Extract the first word of "objdump", so it can be a program name with args.
11198set dummy objdump; ac_word=$2
11199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11200$as_echo_n "checking for $ac_word... " >&6; }
11201if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11202  $as_echo_n "(cached) " >&6
11203else
11204  if test -n "$ac_ct_OBJDUMP"; then
11205  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11206else
11207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $PATH
11209do
11210  IFS=$as_save_IFS
11211  test -z "$as_dir" && as_dir=.
11212    for ac_exec_ext in '' $ac_executable_extensions; do
11213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216    break 2
11217  fi
11218done
11219  done
11220IFS=$as_save_IFS
11221
11222fi
11223fi
11224ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11225if test -n "$ac_ct_OBJDUMP"; then
11226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11227$as_echo "$ac_ct_OBJDUMP" >&6; }
11228else
11229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
11231fi
11232
11233  if test "x$ac_ct_OBJDUMP" = x; then
11234    OBJDUMP="false"
11235  else
11236    case $cross_compiling:$ac_tool_warned in
11237yes:)
11238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11240ac_tool_warned=yes ;;
11241esac
11242    OBJDUMP=$ac_ct_OBJDUMP
11243  fi
11244else
11245  OBJDUMP="$ac_cv_prog_OBJDUMP"
11246fi
11247
11248  ;;
11249esac
11250
11251test -z "$AS" && AS=as
11252
11253
11254
11255
11256
11257test -z "$DLLTOOL" && DLLTOOL=dlltool
11258
11259
11260
11261
11262
11263test -z "$OBJDUMP" && OBJDUMP=objdump
11264
11265
11266
11267
11268
11269
11270
11271        enable_dlopen=no
11272
11273
11274
11275            # Check whether --enable-shared was given.
11276if test "${enable_shared+set}" = set; then :
11277  enableval=$enable_shared; p=${PACKAGE-default}
11278    case $enableval in
11279    yes) enable_shared=yes ;;
11280    no) enable_shared=no ;;
11281    *)
11282      enable_shared=no
11283      # Look at the argument we got.  We use all the common list separators.
11284      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11285      for pkg in $enableval; do
11286	IFS="$lt_save_ifs"
11287	if test "X$pkg" = "X$p"; then
11288	  enable_shared=yes
11289	fi
11290      done
11291      IFS="$lt_save_ifs"
11292      ;;
11293    esac
11294else
11295  enable_shared=yes
11296fi
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306  # Check whether --enable-static was given.
11307if test "${enable_static+set}" = set; then :
11308  enableval=$enable_static; p=${PACKAGE-default}
11309    case $enableval in
11310    yes) enable_static=yes ;;
11311    no) enable_static=no ;;
11312    *)
11313     enable_static=no
11314      # Look at the argument we got.  We use all the common list separators.
11315      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11316      for pkg in $enableval; do
11317	IFS="$lt_save_ifs"
11318	if test "X$pkg" = "X$p"; then
11319	  enable_static=yes
11320	fi
11321      done
11322      IFS="$lt_save_ifs"
11323      ;;
11324    esac
11325else
11326  enable_static=yes
11327fi
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338# Check whether --with-pic was given.
11339if test "${with_pic+set}" = set; then :
11340  withval=$with_pic; lt_p=${PACKAGE-default}
11341    case $withval in
11342    yes|no) pic_mode=$withval ;;
11343    *)
11344      pic_mode=default
11345      # Look at the argument we got.  We use all the common list separators.
11346      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11347      for lt_pkg in $withval; do
11348	IFS="$lt_save_ifs"
11349	if test "X$lt_pkg" = "X$lt_p"; then
11350	  pic_mode=yes
11351	fi
11352      done
11353      IFS="$lt_save_ifs"
11354      ;;
11355    esac
11356else
11357  pic_mode=default
11358fi
11359
11360
11361test -z "$pic_mode" && pic_mode=default
11362
11363
11364
11365
11366
11367
11368
11369  # Check whether --enable-fast-install was given.
11370if test "${enable_fast_install+set}" = set; then :
11371  enableval=$enable_fast_install; p=${PACKAGE-default}
11372    case $enableval in
11373    yes) enable_fast_install=yes ;;
11374    no) enable_fast_install=no ;;
11375    *)
11376      enable_fast_install=no
11377      # Look at the argument we got.  We use all the common list separators.
11378      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11379      for pkg in $enableval; do
11380	IFS="$lt_save_ifs"
11381	if test "X$pkg" = "X$p"; then
11382	  enable_fast_install=yes
11383	fi
11384      done
11385      IFS="$lt_save_ifs"
11386      ;;
11387    esac
11388else
11389  enable_fast_install=yes
11390fi
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402# This can be used to rebuild libtool when needed
11403LIBTOOL_DEPS="$ltmain"
11404
11405# Always use our own libtool.
11406LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437test -z "$LN_S" && LN_S="ln -s"
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452if test -n "${ZSH_VERSION+set}" ; then
11453   setopt NO_GLOB_SUBST
11454fi
11455
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11457$as_echo_n "checking for objdir... " >&6; }
11458if ${lt_cv_objdir+:} false; then :
11459  $as_echo_n "(cached) " >&6
11460else
11461  rm -f .libs 2>/dev/null
11462mkdir .libs 2>/dev/null
11463if test -d .libs; then
11464  lt_cv_objdir=.libs
11465else
11466  # MS-DOS does not allow filenames that begin with a dot.
11467  lt_cv_objdir=_libs
11468fi
11469rmdir .libs 2>/dev/null
11470fi
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11472$as_echo "$lt_cv_objdir" >&6; }
11473objdir=$lt_cv_objdir
11474
11475
11476
11477
11478
11479cat >>confdefs.h <<_ACEOF
11480#define LT_OBJDIR "$lt_cv_objdir/"
11481_ACEOF
11482
11483
11484
11485
11486case $host_os in
11487aix3*)
11488  # AIX sometimes has problems with the GCC collect2 program.  For some
11489  # reason, if we set the COLLECT_NAMES environment variable, the problems
11490  # vanish in a puff of smoke.
11491  if test "X${COLLECT_NAMES+set}" != Xset; then
11492    COLLECT_NAMES=
11493    export COLLECT_NAMES
11494  fi
11495  ;;
11496esac
11497
11498# Global variables:
11499ofile=libtool
11500can_build_shared=yes
11501
11502# All known linkers require a `.a' archive for static linking (except MSVC,
11503# which needs '.lib').
11504libext=a
11505
11506with_gnu_ld="$lt_cv_prog_gnu_ld"
11507
11508old_CC="$CC"
11509old_CFLAGS="$CFLAGS"
11510
11511# Set sane defaults for various variables
11512test -z "$CC" && CC=cc
11513test -z "$LTCC" && LTCC=$CC
11514test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11515test -z "$LD" && LD=ld
11516test -z "$ac_objext" && ac_objext=o
11517
11518for cc_temp in $compiler""; do
11519  case $cc_temp in
11520    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11521    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11522    \-*) ;;
11523    *) break;;
11524  esac
11525done
11526cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11527
11528
11529# Only perform the check for file, if the check method requires it
11530test -z "$MAGIC_CMD" && MAGIC_CMD=file
11531case $deplibs_check_method in
11532file_magic*)
11533  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11535$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11536if ${lt_cv_path_MAGIC_CMD+:} false; then :
11537  $as_echo_n "(cached) " >&6
11538else
11539  case $MAGIC_CMD in
11540[\\/*] |  ?:[\\/]*)
11541  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11542  ;;
11543*)
11544  lt_save_MAGIC_CMD="$MAGIC_CMD"
11545  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11546  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11547  for ac_dir in $ac_dummy; do
11548    IFS="$lt_save_ifs"
11549    test -z "$ac_dir" && ac_dir=.
11550    if test -f $ac_dir/${ac_tool_prefix}file; then
11551      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11552      if test -n "$file_magic_test_file"; then
11553	case $deplibs_check_method in
11554	"file_magic "*)
11555	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11556	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11557	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11558	    $EGREP "$file_magic_regex" > /dev/null; then
11559	    :
11560	  else
11561	    cat <<_LT_EOF 1>&2
11562
11563*** Warning: the command libtool uses to detect shared libraries,
11564*** $file_magic_cmd, produces output that libtool cannot recognize.
11565*** The result is that libtool may fail to recognize shared libraries
11566*** as such.  This will affect the creation of libtool libraries that
11567*** depend on shared libraries, but programs linked with such libtool
11568*** libraries will work regardless of this problem.  Nevertheless, you
11569*** may want to report the problem to your system manager and/or to
11570*** bug-libtool@gnu.org
11571
11572_LT_EOF
11573	  fi ;;
11574	esac
11575      fi
11576      break
11577    fi
11578  done
11579  IFS="$lt_save_ifs"
11580  MAGIC_CMD="$lt_save_MAGIC_CMD"
11581  ;;
11582esac
11583fi
11584
11585MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11586if test -n "$MAGIC_CMD"; then
11587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11588$as_echo "$MAGIC_CMD" >&6; }
11589else
11590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
11592fi
11593
11594
11595
11596
11597
11598if test -z "$lt_cv_path_MAGIC_CMD"; then
11599  if test -n "$ac_tool_prefix"; then
11600    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11601$as_echo_n "checking for file... " >&6; }
11602if ${lt_cv_path_MAGIC_CMD+:} false; then :
11603  $as_echo_n "(cached) " >&6
11604else
11605  case $MAGIC_CMD in
11606[\\/*] |  ?:[\\/]*)
11607  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11608  ;;
11609*)
11610  lt_save_MAGIC_CMD="$MAGIC_CMD"
11611  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11612  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11613  for ac_dir in $ac_dummy; do
11614    IFS="$lt_save_ifs"
11615    test -z "$ac_dir" && ac_dir=.
11616    if test -f $ac_dir/file; then
11617      lt_cv_path_MAGIC_CMD="$ac_dir/file"
11618      if test -n "$file_magic_test_file"; then
11619	case $deplibs_check_method in
11620	"file_magic "*)
11621	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11622	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11623	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11624	    $EGREP "$file_magic_regex" > /dev/null; then
11625	    :
11626	  else
11627	    cat <<_LT_EOF 1>&2
11628
11629*** Warning: the command libtool uses to detect shared libraries,
11630*** $file_magic_cmd, produces output that libtool cannot recognize.
11631*** The result is that libtool may fail to recognize shared libraries
11632*** as such.  This will affect the creation of libtool libraries that
11633*** depend on shared libraries, but programs linked with such libtool
11634*** libraries will work regardless of this problem.  Nevertheless, you
11635*** may want to report the problem to your system manager and/or to
11636*** bug-libtool@gnu.org
11637
11638_LT_EOF
11639	  fi ;;
11640	esac
11641      fi
11642      break
11643    fi
11644  done
11645  IFS="$lt_save_ifs"
11646  MAGIC_CMD="$lt_save_MAGIC_CMD"
11647  ;;
11648esac
11649fi
11650
11651MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11652if test -n "$MAGIC_CMD"; then
11653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11654$as_echo "$MAGIC_CMD" >&6; }
11655else
11656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
11658fi
11659
11660
11661  else
11662    MAGIC_CMD=:
11663  fi
11664fi
11665
11666  fi
11667  ;;
11668esac
11669
11670# Use C for the default configuration in the libtool script
11671
11672lt_save_CC="$CC"
11673ac_ext=c
11674ac_cpp='$CPP $CPPFLAGS'
11675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11677ac_compiler_gnu=$ac_cv_c_compiler_gnu
11678
11679
11680# Source file extension for C test sources.
11681ac_ext=c
11682
11683# Object file extension for compiled C test sources.
11684objext=o
11685objext=$objext
11686
11687# Code to be used in simple compile tests
11688lt_simple_compile_test_code="int some_variable = 0;"
11689
11690# Code to be used in simple link tests
11691lt_simple_link_test_code='int main(){return(0);}'
11692
11693
11694
11695
11696
11697
11698
11699# If no C compiler was specified, use CC.
11700LTCC=${LTCC-"$CC"}
11701
11702# If no C compiler flags were specified, use CFLAGS.
11703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11704
11705# Allow CC to be a program name with arguments.
11706compiler=$CC
11707
11708# Save the default compiler, since it gets overwritten when the other
11709# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11710compiler_DEFAULT=$CC
11711
11712# save warnings/boilerplate of simple test code
11713ac_outfile=conftest.$ac_objext
11714echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11715eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11716_lt_compiler_boilerplate=`cat conftest.err`
11717$RM conftest*
11718
11719ac_outfile=conftest.$ac_objext
11720echo "$lt_simple_link_test_code" >conftest.$ac_ext
11721eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11722_lt_linker_boilerplate=`cat conftest.err`
11723$RM -r conftest*
11724
11725
11726## CAVEAT EMPTOR:
11727## There is no encapsulation within the following macros, do not change
11728## the running order or otherwise move them around unless you know exactly
11729## what you are doing...
11730if test -n "$compiler"; then
11731
11732lt_prog_compiler_no_builtin_flag=
11733
11734if test "$GCC" = yes; then
11735  case $cc_basename in
11736  nvcc*)
11737    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11738  *)
11739    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11740  esac
11741
11742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11743$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11744if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11745  $as_echo_n "(cached) " >&6
11746else
11747  lt_cv_prog_compiler_rtti_exceptions=no
11748   ac_outfile=conftest.$ac_objext
11749   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11750   lt_compiler_flag="-fno-rtti -fno-exceptions"
11751   # Insert the option either (1) after the last *FLAGS variable, or
11752   # (2) before a word containing "conftest.", or (3) at the end.
11753   # Note that $ac_compile itself does not contain backslashes and begins
11754   # with a dollar sign (not a hyphen), so the echo should work correctly.
11755   # The option is referenced via a variable to avoid confusing sed.
11756   lt_compile=`echo "$ac_compile" | $SED \
11757   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11758   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11759   -e 's:$: $lt_compiler_flag:'`
11760   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11761   (eval "$lt_compile" 2>conftest.err)
11762   ac_status=$?
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   if (exit $ac_status) && test -s "$ac_outfile"; then
11766     # The compiler can only warn and ignore the option if not recognized
11767     # So say no if there are warnings other than the usual output.
11768     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11769     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11770     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11771       lt_cv_prog_compiler_rtti_exceptions=yes
11772     fi
11773   fi
11774   $RM conftest*
11775
11776fi
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11778$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11779
11780if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11781    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11782else
11783    :
11784fi
11785
11786fi
11787
11788
11789
11790
11791
11792
11793  lt_prog_compiler_wl=
11794lt_prog_compiler_pic=
11795lt_prog_compiler_static=
11796
11797
11798  if test "$GCC" = yes; then
11799    lt_prog_compiler_wl='-Wl,'
11800    lt_prog_compiler_static='-static'
11801
11802    case $host_os in
11803      aix*)
11804      # All AIX code is PIC.
11805      if test "$host_cpu" = ia64; then
11806	# AIX 5 now supports IA64 processor
11807	lt_prog_compiler_static='-Bstatic'
11808      fi
11809      ;;
11810
11811    amigaos*)
11812      case $host_cpu in
11813      powerpc)
11814            # see comment about AmigaOS4 .so support
11815            lt_prog_compiler_pic='-fPIC'
11816        ;;
11817      m68k)
11818            # FIXME: we need at least 68020 code to build shared libraries, but
11819            # adding the `-m68020' flag to GCC prevents building anything better,
11820            # like `-m68040'.
11821            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11822        ;;
11823      esac
11824      ;;
11825
11826    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11827      # PIC is the default for these OSes.
11828      ;;
11829
11830    mingw* | cygwin* | pw32* | os2* | cegcc*)
11831      # This hack is so that the source file can tell whether it is being
11832      # built for inclusion in a dll (and should export symbols for example).
11833      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11834      # (--disable-auto-import) libraries
11835      lt_prog_compiler_pic='-DDLL_EXPORT'
11836      ;;
11837
11838    darwin* | rhapsody*)
11839      # PIC is the default on this platform
11840      # Common symbols not allowed in MH_DYLIB files
11841      lt_prog_compiler_pic='-fno-common'
11842      ;;
11843
11844    haiku*)
11845      # PIC is the default for Haiku.
11846      # The "-static" flag exists, but is broken.
11847      lt_prog_compiler_static=
11848      ;;
11849
11850    hpux*)
11851      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11852      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11853      # sets the default TLS model and affects inlining.
11854      case $host_cpu in
11855      hppa*64*)
11856	# +Z the default
11857	;;
11858      *)
11859	lt_prog_compiler_pic='-fPIC'
11860	;;
11861      esac
11862      ;;
11863
11864    interix[3-9]*)
11865      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11866      # Instead, we relocate shared libraries at runtime.
11867      ;;
11868
11869    msdosdjgpp*)
11870      # Just because we use GCC doesn't mean we suddenly get shared libraries
11871      # on systems that don't support them.
11872      lt_prog_compiler_can_build_shared=no
11873      enable_shared=no
11874      ;;
11875
11876    *nto* | *qnx*)
11877      # QNX uses GNU C++, but need to define -shared option too, otherwise
11878      # it will coredump.
11879      lt_prog_compiler_pic='-fPIC -shared'
11880      ;;
11881
11882    sysv4*MP*)
11883      if test -d /usr/nec; then
11884	lt_prog_compiler_pic=-Kconform_pic
11885      fi
11886      ;;
11887
11888    *)
11889      lt_prog_compiler_pic='-fPIC'
11890      ;;
11891    esac
11892
11893    case $cc_basename in
11894    nvcc*) # Cuda Compiler Driver 2.2
11895      lt_prog_compiler_wl='-Xlinker '
11896      if test -n "$lt_prog_compiler_pic"; then
11897        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11898      fi
11899      ;;
11900    esac
11901  else
11902    # PORTME Check for flag to pass linker flags through the system compiler.
11903    case $host_os in
11904    aix*)
11905      lt_prog_compiler_wl='-Wl,'
11906      if test "$host_cpu" = ia64; then
11907	# AIX 5 now supports IA64 processor
11908	lt_prog_compiler_static='-Bstatic'
11909      else
11910	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11911      fi
11912      ;;
11913
11914    mingw* | cygwin* | pw32* | os2* | cegcc*)
11915      # This hack is so that the source file can tell whether it is being
11916      # built for inclusion in a dll (and should export symbols for example).
11917      lt_prog_compiler_pic='-DDLL_EXPORT'
11918      ;;
11919
11920    hpux9* | hpux10* | hpux11*)
11921      lt_prog_compiler_wl='-Wl,'
11922      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11923      # not for PA HP-UX.
11924      case $host_cpu in
11925      hppa*64*|ia64*)
11926	# +Z the default
11927	;;
11928      *)
11929	lt_prog_compiler_pic='+Z'
11930	;;
11931      esac
11932      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11933      lt_prog_compiler_static='${wl}-a ${wl}archive'
11934      ;;
11935
11936    irix5* | irix6* | nonstopux*)
11937      lt_prog_compiler_wl='-Wl,'
11938      # PIC (with -KPIC) is the default.
11939      lt_prog_compiler_static='-non_shared'
11940      ;;
11941
11942    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11943      case $cc_basename in
11944      # old Intel for x86_64 which still supported -KPIC.
11945      ecc*)
11946	lt_prog_compiler_wl='-Wl,'
11947	lt_prog_compiler_pic='-KPIC'
11948	lt_prog_compiler_static='-static'
11949        ;;
11950      # icc used to be incompatible with GCC.
11951      # ICC 10 doesn't accept -KPIC any more.
11952      icc* | ifort*)
11953	lt_prog_compiler_wl='-Wl,'
11954	lt_prog_compiler_pic='-fPIC'
11955	lt_prog_compiler_static='-static'
11956        ;;
11957      # Lahey Fortran 8.1.
11958      lf95*)
11959	lt_prog_compiler_wl='-Wl,'
11960	lt_prog_compiler_pic='--shared'
11961	lt_prog_compiler_static='--static'
11962	;;
11963      nagfor*)
11964	# NAG Fortran compiler
11965	lt_prog_compiler_wl='-Wl,-Wl,,'
11966	lt_prog_compiler_pic='-PIC'
11967	lt_prog_compiler_static='-Bstatic'
11968	;;
11969      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11970        # Portland Group compilers (*not* the Pentium gcc compiler,
11971	# which looks to be a dead project)
11972	lt_prog_compiler_wl='-Wl,'
11973	lt_prog_compiler_pic='-fpic'
11974	lt_prog_compiler_static='-Bstatic'
11975        ;;
11976      ccc*)
11977        lt_prog_compiler_wl='-Wl,'
11978        # All Alpha code is PIC.
11979        lt_prog_compiler_static='-non_shared'
11980        ;;
11981      xl* | bgxl* | bgf* | mpixl*)
11982	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11983	lt_prog_compiler_wl='-Wl,'
11984	lt_prog_compiler_pic='-qpic'
11985	lt_prog_compiler_static='-qstaticlink'
11986	;;
11987      *)
11988	case `$CC -V 2>&1 | sed 5q` in
11989	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11990	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11991	  lt_prog_compiler_pic='-KPIC'
11992	  lt_prog_compiler_static='-Bstatic'
11993	  lt_prog_compiler_wl=''
11994	  ;;
11995	*Sun\ F* | *Sun*Fortran*)
11996	  lt_prog_compiler_pic='-KPIC'
11997	  lt_prog_compiler_static='-Bstatic'
11998	  lt_prog_compiler_wl='-Qoption ld '
11999	  ;;
12000	*Sun\ C*)
12001	  # Sun C 5.9
12002	  lt_prog_compiler_pic='-KPIC'
12003	  lt_prog_compiler_static='-Bstatic'
12004	  lt_prog_compiler_wl='-Wl,'
12005	  ;;
12006        *Intel*\ [CF]*Compiler*)
12007	  lt_prog_compiler_wl='-Wl,'
12008	  lt_prog_compiler_pic='-fPIC'
12009	  lt_prog_compiler_static='-static'
12010	  ;;
12011	*Portland\ Group*)
12012	  lt_prog_compiler_wl='-Wl,'
12013	  lt_prog_compiler_pic='-fpic'
12014	  lt_prog_compiler_static='-Bstatic'
12015	  ;;
12016	esac
12017	;;
12018      esac
12019      ;;
12020
12021    newsos6)
12022      lt_prog_compiler_pic='-KPIC'
12023      lt_prog_compiler_static='-Bstatic'
12024      ;;
12025
12026    *nto* | *qnx*)
12027      # QNX uses GNU C++, but need to define -shared option too, otherwise
12028      # it will coredump.
12029      lt_prog_compiler_pic='-fPIC -shared'
12030      ;;
12031
12032    osf3* | osf4* | osf5*)
12033      lt_prog_compiler_wl='-Wl,'
12034      # All OSF/1 code is PIC.
12035      lt_prog_compiler_static='-non_shared'
12036      ;;
12037
12038    rdos*)
12039      lt_prog_compiler_static='-non_shared'
12040      ;;
12041
12042    solaris*)
12043      lt_prog_compiler_pic='-KPIC'
12044      lt_prog_compiler_static='-Bstatic'
12045      case $cc_basename in
12046      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12047	lt_prog_compiler_wl='-Qoption ld ';;
12048      *)
12049	lt_prog_compiler_wl='-Wl,';;
12050      esac
12051      ;;
12052
12053    sunos4*)
12054      lt_prog_compiler_wl='-Qoption ld '
12055      lt_prog_compiler_pic='-PIC'
12056      lt_prog_compiler_static='-Bstatic'
12057      ;;
12058
12059    sysv4 | sysv4.2uw2* | sysv4.3*)
12060      lt_prog_compiler_wl='-Wl,'
12061      lt_prog_compiler_pic='-KPIC'
12062      lt_prog_compiler_static='-Bstatic'
12063      ;;
12064
12065    sysv4*MP*)
12066      if test -d /usr/nec ;then
12067	lt_prog_compiler_pic='-Kconform_pic'
12068	lt_prog_compiler_static='-Bstatic'
12069      fi
12070      ;;
12071
12072    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12073      lt_prog_compiler_wl='-Wl,'
12074      lt_prog_compiler_pic='-KPIC'
12075      lt_prog_compiler_static='-Bstatic'
12076      ;;
12077
12078    unicos*)
12079      lt_prog_compiler_wl='-Wl,'
12080      lt_prog_compiler_can_build_shared=no
12081      ;;
12082
12083    uts4*)
12084      lt_prog_compiler_pic='-pic'
12085      lt_prog_compiler_static='-Bstatic'
12086      ;;
12087
12088    *)
12089      lt_prog_compiler_can_build_shared=no
12090      ;;
12091    esac
12092  fi
12093
12094case $host_os in
12095  # For platforms which do not support PIC, -DPIC is meaningless:
12096  *djgpp*)
12097    lt_prog_compiler_pic=
12098    ;;
12099  *)
12100    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12101    ;;
12102esac
12103
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12105$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12106if ${lt_cv_prog_compiler_pic+:} false; then :
12107  $as_echo_n "(cached) " >&6
12108else
12109  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12110fi
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12112$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12113lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12114
12115#
12116# Check to make sure the PIC flag actually works.
12117#
12118if test -n "$lt_prog_compiler_pic"; then
12119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12120$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12121if ${lt_cv_prog_compiler_pic_works+:} false; then :
12122  $as_echo_n "(cached) " >&6
12123else
12124  lt_cv_prog_compiler_pic_works=no
12125   ac_outfile=conftest.$ac_objext
12126   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12127   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12128   # Insert the option either (1) after the last *FLAGS variable, or
12129   # (2) before a word containing "conftest.", or (3) at the end.
12130   # Note that $ac_compile itself does not contain backslashes and begins
12131   # with a dollar sign (not a hyphen), so the echo should work correctly.
12132   # The option is referenced via a variable to avoid confusing sed.
12133   lt_compile=`echo "$ac_compile" | $SED \
12134   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12135   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12136   -e 's:$: $lt_compiler_flag:'`
12137   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12138   (eval "$lt_compile" 2>conftest.err)
12139   ac_status=$?
12140   cat conftest.err >&5
12141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142   if (exit $ac_status) && test -s "$ac_outfile"; then
12143     # The compiler can only warn and ignore the option if not recognized
12144     # So say no if there are warnings other than the usual output.
12145     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12146     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12147     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12148       lt_cv_prog_compiler_pic_works=yes
12149     fi
12150   fi
12151   $RM conftest*
12152
12153fi
12154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12155$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12156
12157if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12158    case $lt_prog_compiler_pic in
12159     "" | " "*) ;;
12160     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12161     esac
12162else
12163    lt_prog_compiler_pic=
12164     lt_prog_compiler_can_build_shared=no
12165fi
12166
12167fi
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179#
12180# Check to make sure the static flag actually works.
12181#
12182wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12184$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12185if ${lt_cv_prog_compiler_static_works+:} false; then :
12186  $as_echo_n "(cached) " >&6
12187else
12188  lt_cv_prog_compiler_static_works=no
12189   save_LDFLAGS="$LDFLAGS"
12190   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12191   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12192   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12193     # The linker can only warn and ignore the option if not recognized
12194     # So say no if there are warnings
12195     if test -s conftest.err; then
12196       # Append any errors to the config.log.
12197       cat conftest.err 1>&5
12198       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12199       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12200       if diff conftest.exp conftest.er2 >/dev/null; then
12201         lt_cv_prog_compiler_static_works=yes
12202       fi
12203     else
12204       lt_cv_prog_compiler_static_works=yes
12205     fi
12206   fi
12207   $RM -r conftest*
12208   LDFLAGS="$save_LDFLAGS"
12209
12210fi
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12212$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12213
12214if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12215    :
12216else
12217    lt_prog_compiler_static=
12218fi
12219
12220
12221
12222
12223
12224
12225
12226  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12227$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12228if ${lt_cv_prog_compiler_c_o+:} false; then :
12229  $as_echo_n "(cached) " >&6
12230else
12231  lt_cv_prog_compiler_c_o=no
12232   $RM -r conftest 2>/dev/null
12233   mkdir conftest
12234   cd conftest
12235   mkdir out
12236   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12237
12238   lt_compiler_flag="-o out/conftest2.$ac_objext"
12239   # Insert the option either (1) after the last *FLAGS variable, or
12240   # (2) before a word containing "conftest.", or (3) at the end.
12241   # Note that $ac_compile itself does not contain backslashes and begins
12242   # with a dollar sign (not a hyphen), so the echo should work correctly.
12243   lt_compile=`echo "$ac_compile" | $SED \
12244   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12246   -e 's:$: $lt_compiler_flag:'`
12247   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12248   (eval "$lt_compile" 2>out/conftest.err)
12249   ac_status=$?
12250   cat out/conftest.err >&5
12251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12253   then
12254     # The compiler can only warn and ignore the option if not recognized
12255     # So say no if there are warnings
12256     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12257     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12258     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12259       lt_cv_prog_compiler_c_o=yes
12260     fi
12261   fi
12262   chmod u+w . 2>&5
12263   $RM conftest*
12264   # SGI C++ compiler will create directory out/ii_files/ for
12265   # template instantiation
12266   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12267   $RM out/* && rmdir out
12268   cd ..
12269   $RM -r conftest
12270   $RM conftest*
12271
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12274$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12275
12276
12277
12278
12279
12280
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12282$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12283if ${lt_cv_prog_compiler_c_o+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  lt_cv_prog_compiler_c_o=no
12287   $RM -r conftest 2>/dev/null
12288   mkdir conftest
12289   cd conftest
12290   mkdir out
12291   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12292
12293   lt_compiler_flag="-o out/conftest2.$ac_objext"
12294   # Insert the option either (1) after the last *FLAGS variable, or
12295   # (2) before a word containing "conftest.", or (3) at the end.
12296   # Note that $ac_compile itself does not contain backslashes and begins
12297   # with a dollar sign (not a hyphen), so the echo should work correctly.
12298   lt_compile=`echo "$ac_compile" | $SED \
12299   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12300   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12301   -e 's:$: $lt_compiler_flag:'`
12302   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12303   (eval "$lt_compile" 2>out/conftest.err)
12304   ac_status=$?
12305   cat out/conftest.err >&5
12306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12308   then
12309     # The compiler can only warn and ignore the option if not recognized
12310     # So say no if there are warnings
12311     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12312     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12313     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12314       lt_cv_prog_compiler_c_o=yes
12315     fi
12316   fi
12317   chmod u+w . 2>&5
12318   $RM conftest*
12319   # SGI C++ compiler will create directory out/ii_files/ for
12320   # template instantiation
12321   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12322   $RM out/* && rmdir out
12323   cd ..
12324   $RM -r conftest
12325   $RM conftest*
12326
12327fi
12328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12329$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12330
12331
12332
12333
12334hard_links="nottested"
12335if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12336  # do not overwrite the value of need_locks provided by the user
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12338$as_echo_n "checking if we can lock with hard links... " >&6; }
12339  hard_links=yes
12340  $RM conftest*
12341  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12342  touch conftest.a
12343  ln conftest.a conftest.b 2>&5 || hard_links=no
12344  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12346$as_echo "$hard_links" >&6; }
12347  if test "$hard_links" = no; then
12348    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12349$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12350    need_locks=warn
12351  fi
12352else
12353  need_locks=no
12354fi
12355
12356
12357
12358
12359
12360
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12362$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12363
12364  runpath_var=
12365  allow_undefined_flag=
12366  always_export_symbols=no
12367  archive_cmds=
12368  archive_expsym_cmds=
12369  compiler_needs_object=no
12370  enable_shared_with_static_runtimes=no
12371  export_dynamic_flag_spec=
12372  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12373  hardcode_automatic=no
12374  hardcode_direct=no
12375  hardcode_direct_absolute=no
12376  hardcode_libdir_flag_spec=
12377  hardcode_libdir_separator=
12378  hardcode_minus_L=no
12379  hardcode_shlibpath_var=unsupported
12380  inherit_rpath=no
12381  link_all_deplibs=unknown
12382  module_cmds=
12383  module_expsym_cmds=
12384  old_archive_from_new_cmds=
12385  old_archive_from_expsyms_cmds=
12386  thread_safe_flag_spec=
12387  whole_archive_flag_spec=
12388  # include_expsyms should be a list of space-separated symbols to be *always*
12389  # included in the symbol list
12390  include_expsyms=
12391  # exclude_expsyms can be an extended regexp of symbols to exclude
12392  # it will be wrapped by ` (' and `)$', so one must not match beginning or
12393  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12394  # as well as any symbol that contains `d'.
12395  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12396  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12397  # platforms (ab)use it in PIC code, but their linkers get confused if
12398  # the symbol is explicitly referenced.  Since portable code cannot
12399  # rely on this symbol name, it's probably fine to never include it in
12400  # preloaded symbol tables.
12401  # Exclude shared library initialization/finalization symbols.
12402  extract_expsyms_cmds=
12403
12404  case $host_os in
12405  cygwin* | mingw* | pw32* | cegcc*)
12406    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12407    # When not using gcc, we currently assume that we are using
12408    # Microsoft Visual C++.
12409    if test "$GCC" != yes; then
12410      with_gnu_ld=no
12411    fi
12412    ;;
12413  interix*)
12414    # we just hope/assume this is gcc and not c89 (= MSVC++)
12415    with_gnu_ld=yes
12416    ;;
12417  openbsd*)
12418    with_gnu_ld=no
12419    ;;
12420  linux* | k*bsd*-gnu | gnu*)
12421    link_all_deplibs=no
12422    ;;
12423  esac
12424
12425  ld_shlibs=yes
12426
12427  # On some targets, GNU ld is compatible enough with the native linker
12428  # that we're better off using the native interface for both.
12429  lt_use_gnu_ld_interface=no
12430  if test "$with_gnu_ld" = yes; then
12431    case $host_os in
12432      aix*)
12433	# The AIX port of GNU ld has always aspired to compatibility
12434	# with the native linker.  However, as the warning in the GNU ld
12435	# block says, versions before 2.19.5* couldn't really create working
12436	# shared libraries, regardless of the interface used.
12437	case `$LD -v 2>&1` in
12438	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12439	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12440	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12441	  *)
12442	    lt_use_gnu_ld_interface=yes
12443	    ;;
12444	esac
12445	;;
12446      *)
12447	lt_use_gnu_ld_interface=yes
12448	;;
12449    esac
12450  fi
12451
12452  if test "$lt_use_gnu_ld_interface" = yes; then
12453    # If archive_cmds runs LD, not CC, wlarc should be empty
12454    wlarc='${wl}'
12455
12456    # Set some defaults for GNU ld with shared library support. These
12457    # are reset later if shared libraries are not supported. Putting them
12458    # here allows them to be overridden if necessary.
12459    runpath_var=LD_RUN_PATH
12460    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12461    export_dynamic_flag_spec='${wl}--export-dynamic'
12462    # ancient GNU ld didn't support --whole-archive et. al.
12463    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12464      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12465    else
12466      whole_archive_flag_spec=
12467    fi
12468    supports_anon_versioning=no
12469    case `$LD -v 2>&1` in
12470      *GNU\ gold*) supports_anon_versioning=yes ;;
12471      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12472      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12473      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12474      *\ 2.11.*) ;; # other 2.11 versions
12475      *) supports_anon_versioning=yes ;;
12476    esac
12477
12478    # See if GNU ld supports shared libraries.
12479    case $host_os in
12480    aix[3-9]*)
12481      # On AIX/PPC, the GNU linker is very broken
12482      if test "$host_cpu" != ia64; then
12483	ld_shlibs=no
12484	cat <<_LT_EOF 1>&2
12485
12486*** Warning: the GNU linker, at least up to release 2.19, is reported
12487*** to be unable to reliably create shared libraries on AIX.
12488*** Therefore, libtool is disabling shared libraries support.  If you
12489*** really care for shared libraries, you may want to install binutils
12490*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12491*** You will then need to restart the configuration process.
12492
12493_LT_EOF
12494      fi
12495      ;;
12496
12497    amigaos*)
12498      case $host_cpu in
12499      powerpc)
12500            # see comment about AmigaOS4 .so support
12501            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12502            archive_expsym_cmds=''
12503        ;;
12504      m68k)
12505            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)'
12506            hardcode_libdir_flag_spec='-L$libdir'
12507            hardcode_minus_L=yes
12508        ;;
12509      esac
12510      ;;
12511
12512    beos*)
12513      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12514	allow_undefined_flag=unsupported
12515	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12516	# support --undefined.  This deserves some investigation.  FIXME
12517	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12518      else
12519	ld_shlibs=no
12520      fi
12521      ;;
12522
12523    cygwin* | mingw* | pw32* | cegcc*)
12524      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12525      # as there is no search path for DLLs.
12526      hardcode_libdir_flag_spec='-L$libdir'
12527      export_dynamic_flag_spec='${wl}--export-all-symbols'
12528      allow_undefined_flag=unsupported
12529      always_export_symbols=no
12530      enable_shared_with_static_runtimes=yes
12531      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'
12532      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12533
12534      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12535        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12536	# If the export-symbols file already is a .def file (1st line
12537	# is EXPORTS), use it as is; otherwise, prepend...
12538	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12539	  cp $export_symbols $output_objdir/$soname.def;
12540	else
12541	  echo EXPORTS > $output_objdir/$soname.def;
12542	  cat $export_symbols >> $output_objdir/$soname.def;
12543	fi~
12544	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12545      else
12546	ld_shlibs=no
12547      fi
12548      ;;
12549
12550    haiku*)
12551      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12552      link_all_deplibs=yes
12553      ;;
12554
12555    interix[3-9]*)
12556      hardcode_direct=no
12557      hardcode_shlibpath_var=no
12558      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12559      export_dynamic_flag_spec='${wl}-E'
12560      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12561      # Instead, shared libraries are loaded at an image base (0x10000000 by
12562      # default) and relocated if they conflict, which is a slow very memory
12563      # consuming and fragmenting process.  To avoid this, we pick a random,
12564      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12565      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12566      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12567      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'
12568      ;;
12569
12570    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12571      tmp_diet=no
12572      if test "$host_os" = linux-dietlibc; then
12573	case $cc_basename in
12574	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12575	esac
12576      fi
12577      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12578	 && test "$tmp_diet" = no
12579      then
12580	tmp_addflag=' $pic_flag'
12581	tmp_sharedflag='-shared'
12582	case $cc_basename,$host_cpu in
12583        pgcc*)				# Portland Group C compiler
12584	  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'
12585	  tmp_addflag=' $pic_flag'
12586	  ;;
12587	pgf77* | pgf90* | pgf95* | pgfortran*)
12588					# Portland Group f77 and f90 compilers
12589	  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'
12590	  tmp_addflag=' $pic_flag -Mnomain' ;;
12591	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12592	  tmp_addflag=' -i_dynamic' ;;
12593	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12594	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12595	ifc* | ifort*)			# Intel Fortran compiler
12596	  tmp_addflag=' -nofor_main' ;;
12597	lf95*)				# Lahey Fortran 8.1
12598	  whole_archive_flag_spec=
12599	  tmp_sharedflag='--shared' ;;
12600	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12601	  tmp_sharedflag='-qmkshrobj'
12602	  tmp_addflag= ;;
12603	nvcc*)	# Cuda Compiler Driver 2.2
12604	  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'
12605	  compiler_needs_object=yes
12606	  ;;
12607	esac
12608	case `$CC -V 2>&1 | sed 5q` in
12609	*Sun\ C*)			# Sun C 5.9
12610	  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'
12611	  compiler_needs_object=yes
12612	  tmp_sharedflag='-G' ;;
12613	*Sun\ F*)			# Sun Fortran 8.3
12614	  tmp_sharedflag='-G' ;;
12615	esac
12616	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617
12618        if test "x$supports_anon_versioning" = xyes; then
12619          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12620	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12621	    echo "local: *; };" >> $output_objdir/$libname.ver~
12622	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12623        fi
12624
12625	case $cc_basename in
12626	xlf* | bgf* | bgxlf* | mpixlf*)
12627	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12628	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12629	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12630	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12631	  if test "x$supports_anon_versioning" = xyes; then
12632	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12633	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12634	      echo "local: *; };" >> $output_objdir/$libname.ver~
12635	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12636	  fi
12637	  ;;
12638	esac
12639      else
12640        ld_shlibs=no
12641      fi
12642      ;;
12643
12644    netbsd* | netbsdelf*-gnu)
12645      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12646	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12647	wlarc=
12648      else
12649	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12650	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12651      fi
12652      ;;
12653
12654    solaris*)
12655      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12656	ld_shlibs=no
12657	cat <<_LT_EOF 1>&2
12658
12659*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12660*** create shared libraries on Solaris systems.  Therefore, libtool
12661*** is disabling shared libraries support.  We urge you to upgrade GNU
12662*** binutils to release 2.9.1 or newer.  Another option is to modify
12663*** your PATH or compiler configuration so that the native linker is
12664*** used, and then restart.
12665
12666_LT_EOF
12667      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12668	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12670      else
12671	ld_shlibs=no
12672      fi
12673      ;;
12674
12675    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12676      case `$LD -v 2>&1` in
12677        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12678	ld_shlibs=no
12679	cat <<_LT_EOF 1>&2
12680
12681*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12682*** reliably create shared libraries on SCO systems.  Therefore, libtool
12683*** is disabling shared libraries support.  We urge you to upgrade GNU
12684*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12685*** your PATH or compiler configuration so that the native linker is
12686*** used, and then restart.
12687
12688_LT_EOF
12689	;;
12690	*)
12691	  # For security reasons, it is highly recommended that you always
12692	  # use absolute paths for naming shared libraries, and exclude the
12693	  # DT_RUNPATH tag from executables and libraries.  But doing so
12694	  # requires that you compile everything twice, which is a pain.
12695	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12696	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12697	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12698	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12699	  else
12700	    ld_shlibs=no
12701	  fi
12702	;;
12703      esac
12704      ;;
12705
12706    sunos4*)
12707      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12708      wlarc=
12709      hardcode_direct=yes
12710      hardcode_shlibpath_var=no
12711      ;;
12712
12713    *)
12714      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12715	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12716	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12717      else
12718	ld_shlibs=no
12719      fi
12720      ;;
12721    esac
12722
12723    if test "$ld_shlibs" = no; then
12724      runpath_var=
12725      hardcode_libdir_flag_spec=
12726      export_dynamic_flag_spec=
12727      whole_archive_flag_spec=
12728    fi
12729  else
12730    # PORTME fill in a description of your system's linker (not GNU ld)
12731    case $host_os in
12732    aix3*)
12733      allow_undefined_flag=unsupported
12734      always_export_symbols=yes
12735      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'
12736      # Note: this linker hardcodes the directories in LIBPATH if there
12737      # are no directories specified by -L.
12738      hardcode_minus_L=yes
12739      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12740	# Neither direct hardcoding nor static linking is supported with a
12741	# broken collect2.
12742	hardcode_direct=unsupported
12743      fi
12744      ;;
12745
12746    aix[4-9]*)
12747      if test "$host_cpu" = ia64; then
12748	# On IA64, the linker does run time linking by default, so we don't
12749	# have to do anything special.
12750	aix_use_runtimelinking=no
12751	exp_sym_flag='-Bexport'
12752	no_entry_flag=""
12753      else
12754	# If we're using GNU nm, then we don't want the "-C" option.
12755	# -C means demangle to AIX nm, but means don't demangle with GNU nm
12756	# Also, AIX nm treats weak defined symbols like other global
12757	# defined symbols, whereas GNU nm marks them as "W".
12758	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12759	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12760	else
12761	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12762	fi
12763	aix_use_runtimelinking=no
12764
12765	# Test if we are trying to use run time linking or normal
12766	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12767	# need to do runtime linking.
12768	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12769	  for ld_flag in $LDFLAGS; do
12770	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12771	    aix_use_runtimelinking=yes
12772	    break
12773	  fi
12774	  done
12775	  ;;
12776	esac
12777
12778	exp_sym_flag='-bexport'
12779	no_entry_flag='-bnoentry'
12780      fi
12781
12782      # When large executables or shared objects are built, AIX ld can
12783      # have problems creating the table of contents.  If linking a library
12784      # or program results in "error TOC overflow" add -mminimal-toc to
12785      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12786      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12787
12788      archive_cmds=''
12789      hardcode_direct=yes
12790      hardcode_direct_absolute=yes
12791      hardcode_libdir_separator=':'
12792      link_all_deplibs=yes
12793      file_list_spec='${wl}-f,'
12794
12795      if test "$GCC" = yes; then
12796	case $host_os in aix4.[012]|aix4.[012].*)
12797	# We only want to do this on AIX 4.2 and lower, the check
12798	# below for broken collect2 doesn't work under 4.3+
12799	  collect2name=`${CC} -print-prog-name=collect2`
12800	  if test -f "$collect2name" &&
12801	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12802	  then
12803	  # We have reworked collect2
12804	  :
12805	  else
12806	  # We have old collect2
12807	  hardcode_direct=unsupported
12808	  # It fails to find uninstalled libraries when the uninstalled
12809	  # path is not listed in the libpath.  Setting hardcode_minus_L
12810	  # to unsupported forces relinking
12811	  hardcode_minus_L=yes
12812	  hardcode_libdir_flag_spec='-L$libdir'
12813	  hardcode_libdir_separator=
12814	  fi
12815	  ;;
12816	esac
12817	shared_flag='-shared'
12818	if test "$aix_use_runtimelinking" = yes; then
12819	  shared_flag="$shared_flag "'${wl}-G'
12820	fi
12821	link_all_deplibs=no
12822      else
12823	# not using gcc
12824	if test "$host_cpu" = ia64; then
12825	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12826	# chokes on -Wl,-G. The following line is correct:
12827	  shared_flag='-G'
12828	else
12829	  if test "$aix_use_runtimelinking" = yes; then
12830	    shared_flag='${wl}-G'
12831	  else
12832	    shared_flag='${wl}-bM:SRE'
12833	  fi
12834	fi
12835      fi
12836
12837      export_dynamic_flag_spec='${wl}-bexpall'
12838      # It seems that -bexpall does not export symbols beginning with
12839      # underscore (_), so it is better to generate a list of symbols to export.
12840      always_export_symbols=yes
12841      if test "$aix_use_runtimelinking" = yes; then
12842	# Warning - without using the other runtime loading flags (-brtl),
12843	# -berok will link without error, but may produce a broken library.
12844	allow_undefined_flag='-berok'
12845        # Determine the default libpath from the value encoded in an
12846        # empty executable.
12847        if test "${lt_cv_aix_libpath+set}" = set; then
12848  aix_libpath=$lt_cv_aix_libpath
12849else
12850  if ${lt_cv_aix_libpath_+:} false; then :
12851  $as_echo_n "(cached) " >&6
12852else
12853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12854/* end confdefs.h.  */
12855
12856int main (void)
12857{
12858
12859 ;
12860 return 0;
12861}
12862_ACEOF
12863if ac_fn_c_try_link "$LINENO"; then :
12864
12865  lt_aix_libpath_sed='
12866      /Import File Strings/,/^$/ {
12867	  /^0/ {
12868	      s/^0  *\([^ ]*\) *$/\1/
12869	      p
12870	  }
12871      }'
12872  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12873  # Check for a 64-bit object if we didn't find anything.
12874  if test -z "$lt_cv_aix_libpath_"; then
12875    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12876  fi
12877fi
12878rm -f core conftest.err conftest.$ac_objext \
12879    conftest$ac_exeext conftest.$ac_ext
12880  if test -z "$lt_cv_aix_libpath_"; then
12881    lt_cv_aix_libpath_="/usr/lib:/lib"
12882  fi
12883
12884fi
12885
12886  aix_libpath=$lt_cv_aix_libpath_
12887fi
12888
12889        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12890        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12891      else
12892	if test "$host_cpu" = ia64; then
12893	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12894	  allow_undefined_flag="-z nodefs"
12895	  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"
12896	else
12897	 # Determine the default libpath from the value encoded in an
12898	 # empty executable.
12899	 if test "${lt_cv_aix_libpath+set}" = set; then
12900  aix_libpath=$lt_cv_aix_libpath
12901else
12902  if ${lt_cv_aix_libpath_+:} false; then :
12903  $as_echo_n "(cached) " >&6
12904else
12905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906/* end confdefs.h.  */
12907
12908int main (void)
12909{
12910
12911 ;
12912 return 0;
12913}
12914_ACEOF
12915if ac_fn_c_try_link "$LINENO"; then :
12916
12917  lt_aix_libpath_sed='
12918      /Import File Strings/,/^$/ {
12919	  /^0/ {
12920	      s/^0  *\([^ ]*\) *$/\1/
12921	      p
12922	  }
12923      }'
12924  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12925  # Check for a 64-bit object if we didn't find anything.
12926  if test -z "$lt_cv_aix_libpath_"; then
12927    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12928  fi
12929fi
12930rm -f core conftest.err conftest.$ac_objext \
12931    conftest$ac_exeext conftest.$ac_ext
12932  if test -z "$lt_cv_aix_libpath_"; then
12933    lt_cv_aix_libpath_="/usr/lib:/lib"
12934  fi
12935
12936fi
12937
12938  aix_libpath=$lt_cv_aix_libpath_
12939fi
12940
12941	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12942	  # Warning - without using the other run time loading flags,
12943	  # -berok will link without error, but may produce a broken library.
12944	  no_undefined_flag=' ${wl}-bernotok'
12945	  allow_undefined_flag=' ${wl}-berok'
12946	  if test "$with_gnu_ld" = yes; then
12947	    # We only use this code for GNU lds that support --whole-archive.
12948	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12949	  else
12950	    # Exported symbols can be pulled into shared objects from archives
12951	    whole_archive_flag_spec='$convenience'
12952	  fi
12953	  archive_cmds_need_lc=yes
12954	  # This is similar to how AIX traditionally builds its shared libraries.
12955	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12956	fi
12957      fi
12958      ;;
12959
12960    amigaos*)
12961      case $host_cpu in
12962      powerpc)
12963            # see comment about AmigaOS4 .so support
12964            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965            archive_expsym_cmds=''
12966        ;;
12967      m68k)
12968            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)'
12969            hardcode_libdir_flag_spec='-L$libdir'
12970            hardcode_minus_L=yes
12971        ;;
12972      esac
12973      ;;
12974
12975    bsdi[45]*)
12976      export_dynamic_flag_spec=-rdynamic
12977      ;;
12978
12979    cygwin* | mingw* | pw32* | cegcc*)
12980      # When not using gcc, we currently assume that we are using
12981      # Microsoft Visual C++.
12982      # hardcode_libdir_flag_spec is actually meaningless, as there is
12983      # no search path for DLLs.
12984      case $cc_basename in
12985      cl*)
12986	# Native MSVC
12987	hardcode_libdir_flag_spec=' '
12988	allow_undefined_flag=unsupported
12989	always_export_symbols=yes
12990	file_list_spec='@'
12991	# Tell ltmain to make .lib files, not .a files.
12992	libext=lib
12993	# Tell ltmain to make .dll files, not .so files.
12994	shrext_cmds=".dll"
12995	# FIXME: Setting linknames here is a bad hack.
12996	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12997	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12998	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12999	  else
13000	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13001	  fi~
13002	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13003	  linknames='
13004	# The linker will not automatically build a static lib if we build a DLL.
13005	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13006	enable_shared_with_static_runtimes=yes
13007	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13008	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13009	# Don't use ranlib
13010	old_postinstall_cmds='chmod 644 $oldlib'
13011	postlink_cmds='lt_outputfile="@OUTPUT@"~
13012	  lt_tool_outputfile="@TOOL_OUTPUT@"~
13013	  case $lt_outputfile in
13014	    *.exe|*.EXE) ;;
13015	    *)
13016	      lt_outputfile="$lt_outputfile.exe"
13017	      lt_tool_outputfile="$lt_tool_outputfile.exe"
13018	      ;;
13019	  esac~
13020	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13021	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13022	    $RM "$lt_outputfile.manifest";
13023	  fi'
13024	;;
13025      *)
13026	# Assume MSVC wrapper
13027	hardcode_libdir_flag_spec=' '
13028	allow_undefined_flag=unsupported
13029	# Tell ltmain to make .lib files, not .a files.
13030	libext=lib
13031	# Tell ltmain to make .dll files, not .so files.
13032	shrext_cmds=".dll"
13033	# FIXME: Setting linknames here is a bad hack.
13034	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13035	# The linker will automatically build a .lib file if we build a DLL.
13036	old_archive_from_new_cmds='true'
13037	# FIXME: Should let the user specify the lib program.
13038	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13039	enable_shared_with_static_runtimes=yes
13040	;;
13041      esac
13042      ;;
13043
13044    darwin* | rhapsody*)
13045
13046
13047  archive_cmds_need_lc=no
13048  hardcode_direct=no
13049  hardcode_automatic=yes
13050  hardcode_shlibpath_var=unsupported
13051  if test "$lt_cv_ld_force_load" = "yes"; then
13052    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\"`'
13053
13054  else
13055    whole_archive_flag_spec=''
13056  fi
13057  link_all_deplibs=yes
13058  allow_undefined_flag="$_lt_dar_allow_undefined"
13059  case $cc_basename in
13060     ifort*) _lt_dar_can_shared=yes ;;
13061     *) _lt_dar_can_shared=$GCC ;;
13062  esac
13063  if test "$_lt_dar_can_shared" = "yes"; then
13064    output_verbose_link_cmd=func_echo_all
13065    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13066    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13067    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}"
13068    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}"
13069
13070  else
13071  ld_shlibs=no
13072  fi
13073
13074      ;;
13075
13076    dgux*)
13077      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13078      hardcode_libdir_flag_spec='-L$libdir'
13079      hardcode_shlibpath_var=no
13080      ;;
13081
13082    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13083    # support.  Future versions do this automatically, but an explicit c++rt0.o
13084    # does not break anything, and helps significantly (at the cost of a little
13085    # extra space).
13086    freebsd2.2*)
13087      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13088      hardcode_libdir_flag_spec='-R$libdir'
13089      hardcode_direct=yes
13090      hardcode_shlibpath_var=no
13091      ;;
13092
13093    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13094    freebsd2.*)
13095      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13096      hardcode_direct=yes
13097      hardcode_minus_L=yes
13098      hardcode_shlibpath_var=no
13099      ;;
13100
13101    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13102    freebsd* | dragonfly*)
13103      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13104      hardcode_libdir_flag_spec='-R$libdir'
13105      hardcode_direct=yes
13106      hardcode_shlibpath_var=no
13107      ;;
13108
13109    hpux9*)
13110      if test "$GCC" = yes; then
13111	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13112      else
13113	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13114      fi
13115      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13116      hardcode_libdir_separator=:
13117      hardcode_direct=yes
13118
13119      # hardcode_minus_L: Not really in the search PATH,
13120      # but as the default location of the library.
13121      hardcode_minus_L=yes
13122      export_dynamic_flag_spec='${wl}-E'
13123      ;;
13124
13125    hpux10*)
13126      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13127	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13128      else
13129	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13130      fi
13131      if test "$with_gnu_ld" = no; then
13132	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13133	hardcode_libdir_separator=:
13134	hardcode_direct=yes
13135	hardcode_direct_absolute=yes
13136	export_dynamic_flag_spec='${wl}-E'
13137	# hardcode_minus_L: Not really in the search PATH,
13138	# but as the default location of the library.
13139	hardcode_minus_L=yes
13140      fi
13141      ;;
13142
13143    hpux11*)
13144      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13145	case $host_cpu in
13146	hppa*64*)
13147	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13148	  ;;
13149	ia64*)
13150	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13151	  ;;
13152	*)
13153	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13154	  ;;
13155	esac
13156      else
13157	case $host_cpu in
13158	hppa*64*)
13159	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13160	  ;;
13161	ia64*)
13162	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13163	  ;;
13164	*)
13165
13166	  # Older versions of the 11.00 compiler do not understand -b yet
13167	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13168	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13169$as_echo_n "checking if $CC understands -b... " >&6; }
13170if ${lt_cv_prog_compiler__b+:} false; then :
13171  $as_echo_n "(cached) " >&6
13172else
13173  lt_cv_prog_compiler__b=no
13174   save_LDFLAGS="$LDFLAGS"
13175   LDFLAGS="$LDFLAGS -b"
13176   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13177   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13178     # The linker can only warn and ignore the option if not recognized
13179     # So say no if there are warnings
13180     if test -s conftest.err; then
13181       # Append any errors to the config.log.
13182       cat conftest.err 1>&5
13183       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13184       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13185       if diff conftest.exp conftest.er2 >/dev/null; then
13186         lt_cv_prog_compiler__b=yes
13187       fi
13188     else
13189       lt_cv_prog_compiler__b=yes
13190     fi
13191   fi
13192   $RM -r conftest*
13193   LDFLAGS="$save_LDFLAGS"
13194
13195fi
13196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13197$as_echo "$lt_cv_prog_compiler__b" >&6; }
13198
13199if test x"$lt_cv_prog_compiler__b" = xyes; then
13200    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13201else
13202    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13203fi
13204
13205	  ;;
13206	esac
13207      fi
13208      if test "$with_gnu_ld" = no; then
13209	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13210	hardcode_libdir_separator=:
13211
13212	case $host_cpu in
13213	hppa*64*|ia64*)
13214	  hardcode_direct=no
13215	  hardcode_shlibpath_var=no
13216	  ;;
13217	*)
13218	  hardcode_direct=yes
13219	  hardcode_direct_absolute=yes
13220	  export_dynamic_flag_spec='${wl}-E'
13221
13222	  # hardcode_minus_L: Not really in the search PATH,
13223	  # but as the default location of the library.
13224	  hardcode_minus_L=yes
13225	  ;;
13226	esac
13227      fi
13228      ;;
13229
13230    irix5* | irix6* | nonstopux*)
13231      if test "$GCC" = yes; then
13232	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'
13233	# Try to use the -exported_symbol ld option, if it does not
13234	# work, assume that -exports_file does not work either and
13235	# implicitly export all symbols.
13236	# This should be the same for all languages, so no per-tag cache variable.
13237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13238$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13239if ${lt_cv_irix_exported_symbol+:} false; then :
13240  $as_echo_n "(cached) " >&6
13241else
13242  save_LDFLAGS="$LDFLAGS"
13243	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13244	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13245/* end confdefs.h.  */
13246int foo (void) { return 0; }
13247_ACEOF
13248if ac_fn_c_try_link "$LINENO"; then :
13249  lt_cv_irix_exported_symbol=yes
13250else
13251  lt_cv_irix_exported_symbol=no
13252fi
13253rm -f core conftest.err conftest.$ac_objext \
13254    conftest$ac_exeext conftest.$ac_ext
13255           LDFLAGS="$save_LDFLAGS"
13256fi
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13258$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13259	if test "$lt_cv_irix_exported_symbol" = yes; then
13260          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'
13261	fi
13262      else
13263	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'
13264	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'
13265      fi
13266      archive_cmds_need_lc='no'
13267      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13268      hardcode_libdir_separator=:
13269      inherit_rpath=yes
13270      link_all_deplibs=yes
13271      ;;
13272
13273    netbsd* | netbsdelf*-gnu)
13274      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13275	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13276      else
13277	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13278      fi
13279      hardcode_libdir_flag_spec='-R$libdir'
13280      hardcode_direct=yes
13281      hardcode_shlibpath_var=no
13282      ;;
13283
13284    newsos6)
13285      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13286      hardcode_direct=yes
13287      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13288      hardcode_libdir_separator=:
13289      hardcode_shlibpath_var=no
13290      ;;
13291
13292    *nto* | *qnx*)
13293      ;;
13294
13295    openbsd*)
13296      if test -f /usr/libexec/ld.so; then
13297	hardcode_direct=yes
13298	hardcode_shlibpath_var=no
13299	hardcode_direct_absolute=yes
13300	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13301	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13302	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13303	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13304	  export_dynamic_flag_spec='${wl}-E'
13305	else
13306	  case $host_os in
13307	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13308	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309	     hardcode_libdir_flag_spec='-R$libdir'
13310	     ;;
13311	   *)
13312	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13313	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13314	     ;;
13315	  esac
13316	fi
13317      else
13318	ld_shlibs=no
13319      fi
13320      ;;
13321
13322    os2*)
13323      hardcode_libdir_flag_spec='-L$libdir'
13324      hardcode_minus_L=yes
13325      allow_undefined_flag=unsupported
13326      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13327      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13328      ;;
13329
13330    osf3*)
13331      if test "$GCC" = yes; then
13332	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13333	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'
13334      else
13335	allow_undefined_flag=' -expect_unresolved \*'
13336	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'
13337      fi
13338      archive_cmds_need_lc='no'
13339      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13340      hardcode_libdir_separator=:
13341      ;;
13342
13343    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13344      if test "$GCC" = yes; then
13345	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13346	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'
13347	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13348      else
13349	allow_undefined_flag=' -expect_unresolved \*'
13350	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'
13351	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~
13352	$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'
13353
13354	# Both c and cxx compiler support -rpath directly
13355	hardcode_libdir_flag_spec='-rpath $libdir'
13356      fi
13357      archive_cmds_need_lc='no'
13358      hardcode_libdir_separator=:
13359      ;;
13360
13361    solaris*)
13362      no_undefined_flag=' -z defs'
13363      if test "$GCC" = yes; then
13364	wlarc='${wl}'
13365	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13366	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13367	  $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'
13368      else
13369	case `$CC -V 2>&1` in
13370	*"Compilers 5.0"*)
13371	  wlarc=''
13372	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13373	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13374	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13375	  ;;
13376	*)
13377	  wlarc='${wl}'
13378	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13379	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13380	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13381	  ;;
13382	esac
13383      fi
13384      hardcode_libdir_flag_spec='-R$libdir'
13385      hardcode_shlibpath_var=no
13386      case $host_os in
13387      solaris2.[0-5] | solaris2.[0-5].*) ;;
13388      *)
13389	# The compiler driver will combine and reorder linker options,
13390	# but understands `-z linker_flag'.  GCC discards it without `$wl',
13391	# but is careful enough not to reorder.
13392	# Supported since Solaris 2.6 (maybe 2.5.1?)
13393	if test "$GCC" = yes; then
13394	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13395	else
13396	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13397	fi
13398	;;
13399      esac
13400      link_all_deplibs=yes
13401      ;;
13402
13403    sunos4*)
13404      if test "x$host_vendor" = xsequent; then
13405	# Use $CC to link under sequent, because it throws in some extra .o
13406	# files that make .init and .fini sections work.
13407	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13408      else
13409	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13410      fi
13411      hardcode_libdir_flag_spec='-L$libdir'
13412      hardcode_direct=yes
13413      hardcode_minus_L=yes
13414      hardcode_shlibpath_var=no
13415      ;;
13416
13417    sysv4)
13418      case $host_vendor in
13419	sni)
13420	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13421	  hardcode_direct=yes # is this really true???
13422	;;
13423	siemens)
13424	  ## LD is ld it makes a PLAMLIB
13425	  ## CC just makes a GrossModule.
13426	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13427	  reload_cmds='$CC -r -o $output$reload_objs'
13428	  hardcode_direct=no
13429        ;;
13430	motorola)
13431	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13432	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13433	;;
13434      esac
13435      runpath_var='LD_RUN_PATH'
13436      hardcode_shlibpath_var=no
13437      ;;
13438
13439    sysv4.3*)
13440      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13441      hardcode_shlibpath_var=no
13442      export_dynamic_flag_spec='-Bexport'
13443      ;;
13444
13445    sysv4*MP*)
13446      if test -d /usr/nec; then
13447	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13448	hardcode_shlibpath_var=no
13449	runpath_var=LD_RUN_PATH
13450	hardcode_runpath_var=yes
13451	ld_shlibs=yes
13452      fi
13453      ;;
13454
13455    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13456      no_undefined_flag='${wl}-z,text'
13457      archive_cmds_need_lc=no
13458      hardcode_shlibpath_var=no
13459      runpath_var='LD_RUN_PATH'
13460
13461      if test "$GCC" = yes; then
13462	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464      else
13465	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467      fi
13468      ;;
13469
13470    sysv5* | sco3.2v5* | sco5v6*)
13471      # Note: We can NOT use -z defs as we might desire, because we do not
13472      # link with -lc, and that would cause any symbols used from libc to
13473      # always be unresolved, which means just about no library would
13474      # ever link correctly.  If we're not using GNU ld we use -z text
13475      # though, which does catch some bad symbols but isn't as heavy-handed
13476      # as -z defs.
13477      no_undefined_flag='${wl}-z,text'
13478      allow_undefined_flag='${wl}-z,nodefs'
13479      archive_cmds_need_lc=no
13480      hardcode_shlibpath_var=no
13481      hardcode_libdir_flag_spec='${wl}-R,$libdir'
13482      hardcode_libdir_separator=':'
13483      link_all_deplibs=yes
13484      export_dynamic_flag_spec='${wl}-Bexport'
13485      runpath_var='LD_RUN_PATH'
13486
13487      if test "$GCC" = yes; then
13488	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13490      else
13491	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13492	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13493      fi
13494      ;;
13495
13496    uts4*)
13497      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13498      hardcode_libdir_flag_spec='-L$libdir'
13499      hardcode_shlibpath_var=no
13500      ;;
13501
13502    *)
13503      ld_shlibs=no
13504      ;;
13505    esac
13506
13507    if test x$host_vendor = xsni; then
13508      case $host in
13509      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13510	export_dynamic_flag_spec='${wl}-Blargedynsym'
13511	;;
13512      esac
13513    fi
13514  fi
13515
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13517$as_echo "$ld_shlibs" >&6; }
13518test "$ld_shlibs" = no && can_build_shared=no
13519
13520with_gnu_ld=$with_gnu_ld
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536#
13537# Do we need to explicitly link libc?
13538#
13539case "x$archive_cmds_need_lc" in
13540x|xyes)
13541  # Assume -lc should be added
13542  archive_cmds_need_lc=yes
13543
13544  if test "$enable_shared" = yes && test "$GCC" = yes; then
13545    case $archive_cmds in
13546    *'~'*)
13547      # FIXME: we may have to deal with multi-command sequences.
13548      ;;
13549    '$CC '*)
13550      # Test whether the compiler implicitly links with -lc since on some
13551      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13552      # to ld, don't add -lc before -lgcc.
13553      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13554$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13555if ${lt_cv_archive_cmds_need_lc+:} false; then :
13556  $as_echo_n "(cached) " >&6
13557else
13558  $RM conftest*
13559	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13560
13561	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13562  (eval $ac_compile) 2>&5
13563  ac_status=$?
13564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13565  test $ac_status = 0; } 2>conftest.err; then
13566	  soname=conftest
13567	  lib=conftest
13568	  libobjs=conftest.$ac_objext
13569	  deplibs=
13570	  wl=$lt_prog_compiler_wl
13571	  pic_flag=$lt_prog_compiler_pic
13572	  compiler_flags=-v
13573	  linker_flags=-v
13574	  verstring=
13575	  output_objdir=.
13576	  libname=conftest
13577	  lt_save_allow_undefined_flag=$allow_undefined_flag
13578	  allow_undefined_flag=
13579	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13580  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13581  ac_status=$?
13582  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13583  test $ac_status = 0; }
13584	  then
13585	    lt_cv_archive_cmds_need_lc=no
13586	  else
13587	    lt_cv_archive_cmds_need_lc=yes
13588	  fi
13589	  allow_undefined_flag=$lt_save_allow_undefined_flag
13590	else
13591	  cat conftest.err 1>&5
13592	fi
13593	$RM conftest*
13594
13595fi
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13597$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13598      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13599      ;;
13600    esac
13601  fi
13602  ;;
13603esac
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13757$as_echo_n "checking dynamic linker characteristics... " >&6; }
13758
13759if test "$GCC" = yes; then
13760  case $host_os in
13761    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13762    *) lt_awk_arg="/^libraries:/" ;;
13763  esac
13764  case $host_os in
13765    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13766    *) lt_sed_strip_eq="s,=/,/,g" ;;
13767  esac
13768  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13769  case $lt_search_path_spec in
13770  *\;*)
13771    # if the path contains ";" then we assume it to be the separator
13772    # otherwise default to the standard path separator (i.e. ":") - it is
13773    # assumed that no part of a normal pathname contains ";" but that should
13774    # okay in the real world where ";" in dirpaths is itself problematic.
13775    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13776    ;;
13777  *)
13778    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13779    ;;
13780  esac
13781  # Ok, now we have the path, separated by spaces, we can step through it
13782  # and add multilib dir if necessary.
13783  lt_tmp_lt_search_path_spec=
13784  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13785  for lt_sys_path in $lt_search_path_spec; do
13786    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13787      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13788    else
13789      test -d "$lt_sys_path" && \
13790	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13791    fi
13792  done
13793  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13794BEGIN {RS=" "; FS="/|\n";} {
13795  lt_foo="";
13796  lt_count=0;
13797  for (lt_i = NF; lt_i > 0; lt_i--) {
13798    if ($lt_i != "" && $lt_i != ".") {
13799      if ($lt_i == "..") {
13800        lt_count++;
13801      } else {
13802        if (lt_count == 0) {
13803          lt_foo="/" $lt_i lt_foo;
13804        } else {
13805          lt_count--;
13806        }
13807      }
13808    }
13809  }
13810  if (lt_foo != "") { lt_freq[lt_foo]++; }
13811  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13812}'`
13813  # AWK program above erroneously prepends '/' to C:/dos/paths
13814  # for these hosts.
13815  case $host_os in
13816    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13817      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13818  esac
13819  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13820else
13821  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13822fi
13823library_names_spec=
13824libname_spec='lib$name'
13825soname_spec=
13826shrext_cmds=".so"
13827postinstall_cmds=
13828postuninstall_cmds=
13829finish_cmds=
13830finish_eval=
13831shlibpath_var=
13832shlibpath_overrides_runpath=unknown
13833version_type=none
13834dynamic_linker="$host_os ld.so"
13835sys_lib_dlsearch_path_spec="/lib /usr/lib"
13836need_lib_prefix=unknown
13837hardcode_into_libs=no
13838
13839# when you set need_version to no, make sure it does not cause -set_version
13840# flags to be left without arguments
13841need_version=unknown
13842
13843case $host_os in
13844aix3*)
13845  version_type=linux # correct to gnu/linux during the next big refactor
13846  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13847  shlibpath_var=LIBPATH
13848
13849  # AIX 3 has no versioning support, so we append a major version to the name.
13850  soname_spec='${libname}${release}${shared_ext}$major'
13851  ;;
13852
13853aix[4-9]*)
13854  version_type=linux # correct to gnu/linux during the next big refactor
13855  need_lib_prefix=no
13856  need_version=no
13857  hardcode_into_libs=yes
13858  if test "$host_cpu" = ia64; then
13859    # AIX 5 supports IA64
13860    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13861    shlibpath_var=LD_LIBRARY_PATH
13862  else
13863    # With GCC up to 2.95.x, collect2 would create an import file
13864    # for dependence libraries.  The import file would start with
13865    # the line `#! .'.  This would cause the generated library to
13866    # depend on `.', always an invalid library.  This was fixed in
13867    # development snapshots of GCC prior to 3.0.
13868    case $host_os in
13869      aix4 | aix4.[01] | aix4.[01].*)
13870      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13871	   echo ' yes '
13872	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13873	:
13874      else
13875	can_build_shared=no
13876      fi
13877      ;;
13878    esac
13879    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13880    # soname into executable. Probably we can add versioning support to
13881    # collect2, so additional links can be useful in future.
13882    if test "$aix_use_runtimelinking" = yes; then
13883      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13884      # instead of lib<name>.a to let people know that these are not
13885      # typical AIX shared libraries.
13886      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13887    else
13888      # We preserve .a as extension for shared libraries through AIX4.2
13889      # and later when we are not doing run time linking.
13890      library_names_spec='${libname}${release}.a $libname.a'
13891      soname_spec='${libname}${release}${shared_ext}$major'
13892    fi
13893    shlibpath_var=LIBPATH
13894  fi
13895  ;;
13896
13897amigaos*)
13898  case $host_cpu in
13899  powerpc)
13900    # Since July 2007 AmigaOS4 officially supports .so libraries.
13901    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13902    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13903    ;;
13904  m68k)
13905    library_names_spec='$libname.ixlibrary $libname.a'
13906    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13907    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13908    ;;
13909  esac
13910  ;;
13911
13912beos*)
13913  library_names_spec='${libname}${shared_ext}'
13914  dynamic_linker="$host_os ld.so"
13915  shlibpath_var=LIBRARY_PATH
13916  ;;
13917
13918bsdi[45]*)
13919  version_type=linux # correct to gnu/linux during the next big refactor
13920  need_version=no
13921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922  soname_spec='${libname}${release}${shared_ext}$major'
13923  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13924  shlibpath_var=LD_LIBRARY_PATH
13925  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13926  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13927  # the default ld.so.conf also contains /usr/contrib/lib and
13928  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13929  # libtool to hard-code these into programs
13930  ;;
13931
13932cygwin* | mingw* | pw32* | cegcc*)
13933  version_type=windows
13934  shrext_cmds=".dll"
13935  need_version=no
13936  need_lib_prefix=no
13937
13938  case $GCC,$cc_basename in
13939  yes,*)
13940    # gcc
13941    library_names_spec='$libname.dll.a'
13942    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13943    postinstall_cmds='base_file=`basename \${file}`~
13944      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13945      dldir=$destdir/`dirname \$dlpath`~
13946      test -d \$dldir || mkdir -p \$dldir~
13947      $install_prog $dir/$dlname \$dldir/$dlname~
13948      chmod a+x \$dldir/$dlname~
13949      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13950        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13951      fi'
13952    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13953      dlpath=$dir/\$dldll~
13954       $RM \$dlpath'
13955    shlibpath_overrides_runpath=yes
13956
13957    case $host_os in
13958    cygwin*)
13959      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13960      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13961
13962      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13963      ;;
13964    mingw* | cegcc*)
13965      # MinGW DLLs use traditional 'lib' prefix
13966      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13967      ;;
13968    pw32*)
13969      # pw32 DLLs use 'pw' prefix rather than 'lib'
13970      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13971      ;;
13972    esac
13973    dynamic_linker='Win32 ld.exe'
13974    ;;
13975
13976  *,cl*)
13977    # Native MSVC
13978    libname_spec='$name'
13979    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13980    library_names_spec='${libname}.dll.lib'
13981
13982    case $build_os in
13983    mingw*)
13984      sys_lib_search_path_spec=
13985      lt_save_ifs=$IFS
13986      IFS=';'
13987      for lt_path in $LIB
13988      do
13989        IFS=$lt_save_ifs
13990        # Let DOS variable expansion print the short 8.3 style file name.
13991        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13992        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13993      done
13994      IFS=$lt_save_ifs
13995      # Convert to MSYS style.
13996      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13997      ;;
13998    cygwin*)
13999      # Convert to unix form, then to dos form, then back to unix form
14000      # but this time dos style (no spaces!) so that the unix form looks
14001      # like /cygdrive/c/PROGRA~1:/cygdr...
14002      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14003      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14004      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14005      ;;
14006    *)
14007      sys_lib_search_path_spec="$LIB"
14008      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14009        # It is most probably a Windows format PATH.
14010        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14011      else
14012        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14013      fi
14014      # FIXME: find the short name or the path components, as spaces are
14015      # common. (e.g. "Program Files" -> "PROGRA~1")
14016      ;;
14017    esac
14018
14019    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14020    postinstall_cmds='base_file=`basename \${file}`~
14021      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14022      dldir=$destdir/`dirname \$dlpath`~
14023      test -d \$dldir || mkdir -p \$dldir~
14024      $install_prog $dir/$dlname \$dldir/$dlname'
14025    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14026      dlpath=$dir/\$dldll~
14027       $RM \$dlpath'
14028    shlibpath_overrides_runpath=yes
14029    dynamic_linker='Win32 link.exe'
14030    ;;
14031
14032  *)
14033    # Assume MSVC wrapper
14034    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14035    dynamic_linker='Win32 ld.exe'
14036    ;;
14037  esac
14038  # FIXME: first we should search . and the directory the executable is in
14039  shlibpath_var=PATH
14040  ;;
14041
14042darwin* | rhapsody*)
14043  dynamic_linker="$host_os dyld"
14044  version_type=darwin
14045  need_lib_prefix=no
14046  need_version=no
14047  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14048  soname_spec='${libname}${release}${major}$shared_ext'
14049  shlibpath_overrides_runpath=yes
14050  shlibpath_var=DYLD_LIBRARY_PATH
14051  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14052
14053  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14054  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14055  ;;
14056
14057dgux*)
14058  version_type=linux # correct to gnu/linux during the next big refactor
14059  need_lib_prefix=no
14060  need_version=no
14061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14062  soname_spec='${libname}${release}${shared_ext}$major'
14063  shlibpath_var=LD_LIBRARY_PATH
14064  ;;
14065
14066freebsd* | dragonfly*)
14067  # DragonFly does not have aout.  When/if they implement a new
14068  # versioning mechanism, adjust this.
14069  if test -x /usr/bin/objformat; then
14070    objformat=`/usr/bin/objformat`
14071  else
14072    case $host_os in
14073    freebsd[23].*) objformat=aout ;;
14074    *) objformat=elf ;;
14075    esac
14076  fi
14077  version_type=freebsd-$objformat
14078  case $version_type in
14079    freebsd-elf*)
14080      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14081      need_version=no
14082      need_lib_prefix=no
14083      ;;
14084    freebsd-*)
14085      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14086      need_version=yes
14087      ;;
14088  esac
14089  shlibpath_var=LD_LIBRARY_PATH
14090  case $host_os in
14091  freebsd2.*)
14092    shlibpath_overrides_runpath=yes
14093    ;;
14094  freebsd3.[01]* | freebsdelf3.[01]*)
14095    shlibpath_overrides_runpath=yes
14096    hardcode_into_libs=yes
14097    ;;
14098  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14099  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14100    shlibpath_overrides_runpath=no
14101    hardcode_into_libs=yes
14102    ;;
14103  *) # from 4.6 on, and DragonFly
14104    shlibpath_overrides_runpath=yes
14105    hardcode_into_libs=yes
14106    ;;
14107  esac
14108  ;;
14109
14110haiku*)
14111  version_type=linux # correct to gnu/linux during the next big refactor
14112  need_lib_prefix=no
14113  need_version=no
14114  dynamic_linker="$host_os runtime_loader"
14115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14116  soname_spec='${libname}${release}${shared_ext}$major'
14117  shlibpath_var=LIBRARY_PATH
14118  shlibpath_overrides_runpath=yes
14119  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14120  hardcode_into_libs=yes
14121  ;;
14122
14123hpux9* | hpux10* | hpux11*)
14124  # Give a soname corresponding to the major version so that dld.sl refuses to
14125  # link against other versions.
14126  version_type=sunos
14127  need_lib_prefix=no
14128  need_version=no
14129  case $host_cpu in
14130  ia64*)
14131    shrext_cmds='.so'
14132    hardcode_into_libs=yes
14133    dynamic_linker="$host_os dld.so"
14134    shlibpath_var=LD_LIBRARY_PATH
14135    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14136    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137    soname_spec='${libname}${release}${shared_ext}$major'
14138    if test "X$HPUX_IA64_MODE" = X32; then
14139      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14140    else
14141      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14142    fi
14143    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14144    ;;
14145  hppa*64*)
14146    shrext_cmds='.sl'
14147    hardcode_into_libs=yes
14148    dynamic_linker="$host_os dld.sl"
14149    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14150    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14151    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14152    soname_spec='${libname}${release}${shared_ext}$major'
14153    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14154    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14155    ;;
14156  *)
14157    shrext_cmds='.sl'
14158    dynamic_linker="$host_os dld.sl"
14159    shlibpath_var=SHLIB_PATH
14160    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14161    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14162    soname_spec='${libname}${release}${shared_ext}$major'
14163    ;;
14164  esac
14165  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14166  postinstall_cmds='chmod 555 $lib'
14167  # or fails outright, so override atomically:
14168  install_override_mode=555
14169  ;;
14170
14171interix[3-9]*)
14172  version_type=linux # correct to gnu/linux during the next big refactor
14173  need_lib_prefix=no
14174  need_version=no
14175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14176  soname_spec='${libname}${release}${shared_ext}$major'
14177  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14178  shlibpath_var=LD_LIBRARY_PATH
14179  shlibpath_overrides_runpath=no
14180  hardcode_into_libs=yes
14181  ;;
14182
14183irix5* | irix6* | nonstopux*)
14184  case $host_os in
14185    nonstopux*) version_type=nonstopux ;;
14186    *)
14187	if test "$lt_cv_prog_gnu_ld" = yes; then
14188		version_type=linux # correct to gnu/linux during the next big refactor
14189	else
14190		version_type=irix
14191	fi ;;
14192  esac
14193  need_lib_prefix=no
14194  need_version=no
14195  soname_spec='${libname}${release}${shared_ext}$major'
14196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14197  case $host_os in
14198  irix5* | nonstopux*)
14199    libsuff= shlibsuff=
14200    ;;
14201  *)
14202    case $LD in # libtool.m4 will add one of these switches to LD
14203    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14204      libsuff= shlibsuff= libmagic=32-bit;;
14205    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14206      libsuff=32 shlibsuff=N32 libmagic=N32;;
14207    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14208      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14209    *) libsuff= shlibsuff= libmagic=never-match;;
14210    esac
14211    ;;
14212  esac
14213  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14214  shlibpath_overrides_runpath=no
14215  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14216  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14217  hardcode_into_libs=yes
14218  ;;
14219
14220# No shared lib support for Linux oldld, aout, or coff.
14221linux*oldld* | linux*aout* | linux*coff*)
14222  dynamic_linker=no
14223  ;;
14224
14225# This must be glibc/ELF.
14226linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14227  version_type=linux # correct to gnu/linux during the next big refactor
14228  need_lib_prefix=no
14229  need_version=no
14230  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14231  soname_spec='${libname}${release}${shared_ext}$major'
14232  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14233  shlibpath_var=LD_LIBRARY_PATH
14234  shlibpath_overrides_runpath=no
14235
14236  # Some binutils ld are patched to set DT_RUNPATH
14237  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14238  $as_echo_n "(cached) " >&6
14239else
14240  lt_cv_shlibpath_overrides_runpath=no
14241    save_LDFLAGS=$LDFLAGS
14242    save_libdir=$libdir
14243    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14244	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14245    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246/* end confdefs.h.  */
14247
14248int main (void)
14249{
14250
14251 ;
14252 return 0;
14253}
14254_ACEOF
14255if ac_fn_c_try_link "$LINENO"; then :
14256  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14257  lt_cv_shlibpath_overrides_runpath=yes
14258fi
14259fi
14260rm -f core conftest.err conftest.$ac_objext \
14261    conftest$ac_exeext conftest.$ac_ext
14262    LDFLAGS=$save_LDFLAGS
14263    libdir=$save_libdir
14264
14265fi
14266
14267  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14268
14269  # This implies no fast_install, which is unacceptable.
14270  # Some rework will be needed to allow for fast_install
14271  # before this can be enabled.
14272  hardcode_into_libs=yes
14273
14274  # Append ld.so.conf contents to the search path
14275  if test -f /etc/ld.so.conf; then
14276    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' ' '`
14277    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14278  fi
14279
14280  # We used to test for /lib/ld.so.1 and disable shared libraries on
14281  # powerpc, because MkLinux only supported shared libraries with the
14282  # GNU dynamic linker.  Since this was broken with cross compilers,
14283  # most powerpc-linux boxes support dynamic linking these days and
14284  # people can always --disable-shared, the test was removed, and we
14285  # assume the GNU/Linux dynamic linker is in use.
14286  dynamic_linker='GNU/Linux ld.so'
14287  ;;
14288
14289netbsdelf*-gnu)
14290  version_type=linux
14291  need_lib_prefix=no
14292  need_version=no
14293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14294  soname_spec='${libname}${release}${shared_ext}$major'
14295  shlibpath_var=LD_LIBRARY_PATH
14296  shlibpath_overrides_runpath=no
14297  hardcode_into_libs=yes
14298  dynamic_linker='NetBSD ld.elf_so'
14299  ;;
14300
14301netbsd*)
14302  version_type=sunos
14303  need_lib_prefix=no
14304  need_version=no
14305  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14307    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14308    dynamic_linker='NetBSD (a.out) ld.so'
14309  else
14310    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14311    soname_spec='${libname}${release}${shared_ext}$major'
14312    dynamic_linker='NetBSD ld.elf_so'
14313  fi
14314  shlibpath_var=LD_LIBRARY_PATH
14315  shlibpath_overrides_runpath=yes
14316  hardcode_into_libs=yes
14317  ;;
14318
14319newsos6)
14320  version_type=linux # correct to gnu/linux during the next big refactor
14321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14322  shlibpath_var=LD_LIBRARY_PATH
14323  shlibpath_overrides_runpath=yes
14324  ;;
14325
14326*nto* | *qnx*)
14327  version_type=qnx
14328  need_lib_prefix=no
14329  need_version=no
14330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14331  soname_spec='${libname}${release}${shared_ext}$major'
14332  shlibpath_var=LD_LIBRARY_PATH
14333  shlibpath_overrides_runpath=no
14334  hardcode_into_libs=yes
14335  dynamic_linker='ldqnx.so'
14336  ;;
14337
14338openbsd*)
14339  version_type=sunos
14340  sys_lib_dlsearch_path_spec="/usr/lib"
14341  need_lib_prefix=no
14342  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14343  case $host_os in
14344    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14345    *)				need_version=no  ;;
14346  esac
14347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14348  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14349  shlibpath_var=LD_LIBRARY_PATH
14350  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14351    case $host_os in
14352      openbsd2.[89] | openbsd2.[89].*)
14353	shlibpath_overrides_runpath=no
14354	;;
14355      *)
14356	shlibpath_overrides_runpath=yes
14357	;;
14358      esac
14359  else
14360    shlibpath_overrides_runpath=yes
14361  fi
14362  ;;
14363
14364os2*)
14365  libname_spec='$name'
14366  shrext_cmds=".dll"
14367  need_lib_prefix=no
14368  library_names_spec='$libname${shared_ext} $libname.a'
14369  dynamic_linker='OS/2 ld.exe'
14370  shlibpath_var=LIBPATH
14371  ;;
14372
14373osf3* | osf4* | osf5*)
14374  version_type=osf
14375  need_lib_prefix=no
14376  need_version=no
14377  soname_spec='${libname}${release}${shared_ext}$major'
14378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379  shlibpath_var=LD_LIBRARY_PATH
14380  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14381  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14382  ;;
14383
14384rdos*)
14385  dynamic_linker=no
14386  ;;
14387
14388solaris*)
14389  version_type=linux # correct to gnu/linux during the next big refactor
14390  need_lib_prefix=no
14391  need_version=no
14392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393  soname_spec='${libname}${release}${shared_ext}$major'
14394  shlibpath_var=LD_LIBRARY_PATH
14395  shlibpath_overrides_runpath=yes
14396  hardcode_into_libs=yes
14397  # ldd complains unless libraries are executable
14398  postinstall_cmds='chmod +x $lib'
14399  ;;
14400
14401sunos4*)
14402  version_type=sunos
14403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14404  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14405  shlibpath_var=LD_LIBRARY_PATH
14406  shlibpath_overrides_runpath=yes
14407  if test "$with_gnu_ld" = yes; then
14408    need_lib_prefix=no
14409  fi
14410  need_version=yes
14411  ;;
14412
14413sysv4 | sysv4.3*)
14414  version_type=linux # correct to gnu/linux during the next big refactor
14415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416  soname_spec='${libname}${release}${shared_ext}$major'
14417  shlibpath_var=LD_LIBRARY_PATH
14418  case $host_vendor in
14419    sni)
14420      shlibpath_overrides_runpath=no
14421      need_lib_prefix=no
14422      runpath_var=LD_RUN_PATH
14423      ;;
14424    siemens)
14425      need_lib_prefix=no
14426      ;;
14427    motorola)
14428      need_lib_prefix=no
14429      need_version=no
14430      shlibpath_overrides_runpath=no
14431      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14432      ;;
14433  esac
14434  ;;
14435
14436sysv4*MP*)
14437  if test -d /usr/nec ;then
14438    version_type=linux # correct to gnu/linux during the next big refactor
14439    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14440    soname_spec='$libname${shared_ext}.$major'
14441    shlibpath_var=LD_LIBRARY_PATH
14442  fi
14443  ;;
14444
14445sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14446  version_type=freebsd-elf
14447  need_lib_prefix=no
14448  need_version=no
14449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14450  soname_spec='${libname}${release}${shared_ext}$major'
14451  shlibpath_var=LD_LIBRARY_PATH
14452  shlibpath_overrides_runpath=yes
14453  hardcode_into_libs=yes
14454  if test "$with_gnu_ld" = yes; then
14455    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14456  else
14457    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14458    case $host_os in
14459      sco3.2v5*)
14460        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14461	;;
14462    esac
14463  fi
14464  sys_lib_dlsearch_path_spec='/usr/lib'
14465  ;;
14466
14467tpf*)
14468  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14469  version_type=linux # correct to gnu/linux during the next big refactor
14470  need_lib_prefix=no
14471  need_version=no
14472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473  shlibpath_var=LD_LIBRARY_PATH
14474  shlibpath_overrides_runpath=no
14475  hardcode_into_libs=yes
14476  ;;
14477
14478uts4*)
14479  version_type=linux # correct to gnu/linux during the next big refactor
14480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14481  soname_spec='${libname}${release}${shared_ext}$major'
14482  shlibpath_var=LD_LIBRARY_PATH
14483  ;;
14484
14485*)
14486  dynamic_linker=no
14487  ;;
14488esac
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14490$as_echo "$dynamic_linker" >&6; }
14491test "$dynamic_linker" = no && can_build_shared=no
14492
14493variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14494if test "$GCC" = yes; then
14495  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14496fi
14497
14498if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14499  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14500fi
14501if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14502  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14503fi
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14597$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14598hardcode_action=
14599if test -n "$hardcode_libdir_flag_spec" ||
14600   test -n "$runpath_var" ||
14601   test "X$hardcode_automatic" = "Xyes" ; then
14602
14603  # We can hardcode non-existent directories.
14604  if test "$hardcode_direct" != no &&
14605     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14606     # have to relink, otherwise we might link with an installed library
14607     # when we should be linking with a yet-to-be-installed one
14608     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14609     test "$hardcode_minus_L" != no; then
14610    # Linking always hardcodes the temporary library directory.
14611    hardcode_action=relink
14612  else
14613    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14614    hardcode_action=immediate
14615  fi
14616else
14617  # We cannot hardcode anything, or else we can only hardcode existing
14618  # directories.
14619  hardcode_action=unsupported
14620fi
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14622$as_echo "$hardcode_action" >&6; }
14623
14624if test "$hardcode_action" = relink ||
14625   test "$inherit_rpath" = yes; then
14626  # Fast installation is not supported
14627  enable_fast_install=no
14628elif test "$shlibpath_overrides_runpath" = yes ||
14629     test "$enable_shared" = no; then
14630  # Fast installation is not necessary
14631  enable_fast_install=needless
14632fi
14633
14634
14635
14636
14637
14638
14639  if test "x$enable_dlopen" != xyes; then
14640  enable_dlopen=unknown
14641  enable_dlopen_self=unknown
14642  enable_dlopen_self_static=unknown
14643else
14644  lt_cv_dlopen=no
14645  lt_cv_dlopen_libs=
14646
14647  case $host_os in
14648  beos*)
14649    lt_cv_dlopen="load_add_on"
14650    lt_cv_dlopen_libs=
14651    lt_cv_dlopen_self=yes
14652    ;;
14653
14654  mingw* | pw32* | cegcc*)
14655    lt_cv_dlopen="LoadLibrary"
14656    lt_cv_dlopen_libs=
14657    ;;
14658
14659  cygwin*)
14660    lt_cv_dlopen="dlopen"
14661    lt_cv_dlopen_libs=
14662    ;;
14663
14664  darwin*)
14665  # if libdl is installed we need to link against it
14666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14667$as_echo_n "checking for dlopen in -ldl... " >&6; }
14668if ${ac_cv_lib_dl_dlopen+:} false; then :
14669  $as_echo_n "(cached) " >&6
14670else
14671  ac_check_lib_save_LIBS=$LIBS
14672LIBS="-ldl  $LIBS"
14673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674/* end confdefs.h.  */
14675
14676
14677#ifdef __cplusplus
14678extern "C"
14679#endif
14680char dlopen ();
14681int main (void)
14682{
14683return dlopen ();
14684 ;
14685 return 0;
14686}
14687_ACEOF
14688if ac_fn_c_try_link "$LINENO"; then :
14689  ac_cv_lib_dl_dlopen=yes
14690else
14691  ac_cv_lib_dl_dlopen=no
14692fi
14693rm -f core conftest.err conftest.$ac_objext \
14694    conftest$ac_exeext conftest.$ac_ext
14695LIBS=$ac_check_lib_save_LIBS
14696fi
14697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14698$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14699if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14700  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14701else
14702
14703    lt_cv_dlopen="dyld"
14704    lt_cv_dlopen_libs=
14705    lt_cv_dlopen_self=yes
14706
14707fi
14708
14709    ;;
14710
14711  *)
14712    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14713if test "x$ac_cv_func_shl_load" = xyes; then :
14714  lt_cv_dlopen="shl_load"
14715else
14716  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14717$as_echo_n "checking for shl_load in -ldld... " >&6; }
14718if ${ac_cv_lib_dld_shl_load+:} false; then :
14719  $as_echo_n "(cached) " >&6
14720else
14721  ac_check_lib_save_LIBS=$LIBS
14722LIBS="-ldld  $LIBS"
14723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14724/* end confdefs.h.  */
14725
14726
14727#ifdef __cplusplus
14728extern "C"
14729#endif
14730char shl_load ();
14731int main (void)
14732{
14733return shl_load ();
14734 ;
14735 return 0;
14736}
14737_ACEOF
14738if ac_fn_c_try_link "$LINENO"; then :
14739  ac_cv_lib_dld_shl_load=yes
14740else
14741  ac_cv_lib_dld_shl_load=no
14742fi
14743rm -f core conftest.err conftest.$ac_objext \
14744    conftest$ac_exeext conftest.$ac_ext
14745LIBS=$ac_check_lib_save_LIBS
14746fi
14747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14748$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14749if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14750  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14751else
14752  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14753if test "x$ac_cv_func_dlopen" = xyes; then :
14754  lt_cv_dlopen="dlopen"
14755else
14756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14757$as_echo_n "checking for dlopen in -ldl... " >&6; }
14758if ${ac_cv_lib_dl_dlopen+:} false; then :
14759  $as_echo_n "(cached) " >&6
14760else
14761  ac_check_lib_save_LIBS=$LIBS
14762LIBS="-ldl  $LIBS"
14763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764/* end confdefs.h.  */
14765
14766
14767#ifdef __cplusplus
14768extern "C"
14769#endif
14770char dlopen ();
14771int main (void)
14772{
14773return dlopen ();
14774 ;
14775 return 0;
14776}
14777_ACEOF
14778if ac_fn_c_try_link "$LINENO"; then :
14779  ac_cv_lib_dl_dlopen=yes
14780else
14781  ac_cv_lib_dl_dlopen=no
14782fi
14783rm -f core conftest.err conftest.$ac_objext \
14784    conftest$ac_exeext conftest.$ac_ext
14785LIBS=$ac_check_lib_save_LIBS
14786fi
14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14788$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14789if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14790  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14791else
14792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14793$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14794if ${ac_cv_lib_svld_dlopen+:} false; then :
14795  $as_echo_n "(cached) " >&6
14796else
14797  ac_check_lib_save_LIBS=$LIBS
14798LIBS="-lsvld  $LIBS"
14799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800/* end confdefs.h.  */
14801
14802
14803#ifdef __cplusplus
14804extern "C"
14805#endif
14806char dlopen ();
14807int main (void)
14808{
14809return dlopen ();
14810 ;
14811 return 0;
14812}
14813_ACEOF
14814if ac_fn_c_try_link "$LINENO"; then :
14815  ac_cv_lib_svld_dlopen=yes
14816else
14817  ac_cv_lib_svld_dlopen=no
14818fi
14819rm -f core conftest.err conftest.$ac_objext \
14820    conftest$ac_exeext conftest.$ac_ext
14821LIBS=$ac_check_lib_save_LIBS
14822fi
14823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14824$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14825if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14826  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14827else
14828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14829$as_echo_n "checking for dld_link in -ldld... " >&6; }
14830if ${ac_cv_lib_dld_dld_link+:} false; then :
14831  $as_echo_n "(cached) " >&6
14832else
14833  ac_check_lib_save_LIBS=$LIBS
14834LIBS="-ldld  $LIBS"
14835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14836/* end confdefs.h.  */
14837
14838
14839#ifdef __cplusplus
14840extern "C"
14841#endif
14842char dld_link ();
14843int main (void)
14844{
14845return dld_link ();
14846 ;
14847 return 0;
14848}
14849_ACEOF
14850if ac_fn_c_try_link "$LINENO"; then :
14851  ac_cv_lib_dld_dld_link=yes
14852else
14853  ac_cv_lib_dld_dld_link=no
14854fi
14855rm -f core conftest.err conftest.$ac_objext \
14856    conftest$ac_exeext conftest.$ac_ext
14857LIBS=$ac_check_lib_save_LIBS
14858fi
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14860$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14861if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14862  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14863fi
14864
14865
14866fi
14867
14868
14869fi
14870
14871
14872fi
14873
14874
14875fi
14876
14877
14878fi
14879
14880    ;;
14881  esac
14882
14883  if test "x$lt_cv_dlopen" != xno; then
14884    enable_dlopen=yes
14885  else
14886    enable_dlopen=no
14887  fi
14888
14889  case $lt_cv_dlopen in
14890  dlopen)
14891    save_CPPFLAGS="$CPPFLAGS"
14892    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14893
14894    save_LDFLAGS="$LDFLAGS"
14895    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14896
14897    save_LIBS="$LIBS"
14898    LIBS="$lt_cv_dlopen_libs $LIBS"
14899
14900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14901$as_echo_n "checking whether a program can dlopen itself... " >&6; }
14902if ${lt_cv_dlopen_self+:} false; then :
14903  $as_echo_n "(cached) " >&6
14904else
14905  	  if test "$cross_compiling" = yes; then :
14906  lt_cv_dlopen_self=cross
14907else
14908  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14909  lt_status=$lt_dlunknown
14910  cat > conftest.$ac_ext <<_LT_EOF
14911#line $LINENO "configure"
14912#include "confdefs.h"
14913
14914#if HAVE_DLFCN_H
14915#include <dlfcn.h>
14916#endif
14917
14918#include <stdio.h>
14919
14920#ifdef RTLD_GLOBAL
14921#  define LT_DLGLOBAL		RTLD_GLOBAL
14922#else
14923#  ifdef DL_GLOBAL
14924#    define LT_DLGLOBAL		DL_GLOBAL
14925#  else
14926#    define LT_DLGLOBAL		0
14927#  endif
14928#endif
14929
14930/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14931   find out it does not work in some platform. */
14932#ifndef LT_DLLAZY_OR_NOW
14933#  ifdef RTLD_LAZY
14934#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
14935#  else
14936#    ifdef DL_LAZY
14937#      define LT_DLLAZY_OR_NOW		DL_LAZY
14938#    else
14939#      ifdef RTLD_NOW
14940#        define LT_DLLAZY_OR_NOW	RTLD_NOW
14941#      else
14942#        ifdef DL_NOW
14943#          define LT_DLLAZY_OR_NOW	DL_NOW
14944#        else
14945#          define LT_DLLAZY_OR_NOW	0
14946#        endif
14947#      endif
14948#    endif
14949#  endif
14950#endif
14951
14952/* When -fvisbility=hidden is used, assume the code has been annotated
14953   correspondingly for the symbols needed.  */
14954#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14955int fnord () __attribute__((visibility("default")));
14956#endif
14957
14958int fnord () { return 42; }
14959int main ()
14960{
14961  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14962  int status = $lt_dlunknown;
14963
14964  if (self)
14965    {
14966      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14967      else
14968        {
14969	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14970          else puts (dlerror ());
14971	}
14972      /* dlclose (self); */
14973    }
14974  else
14975    puts (dlerror ());
14976
14977  return status;
14978}
14979_LT_EOF
14980  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14981  (eval $ac_link) 2>&5
14982  ac_status=$?
14983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14984  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14985    (./conftest; exit; ) >&5 2>/dev/null
14986    lt_status=$?
14987    case x$lt_status in
14988      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14989      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14990      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14991    esac
14992  else :
14993    # compilation failed
14994    lt_cv_dlopen_self=no
14995  fi
14996fi
14997rm -fr conftest*
14998
14999
15000fi
15001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15002$as_echo "$lt_cv_dlopen_self" >&6; }
15003
15004    if test "x$lt_cv_dlopen_self" = xyes; then
15005      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15006      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15007$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15008if ${lt_cv_dlopen_self_static+:} false; then :
15009  $as_echo_n "(cached) " >&6
15010else
15011  	  if test "$cross_compiling" = yes; then :
15012  lt_cv_dlopen_self_static=cross
15013else
15014  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15015  lt_status=$lt_dlunknown
15016  cat > conftest.$ac_ext <<_LT_EOF
15017#line $LINENO "configure"
15018#include "confdefs.h"
15019
15020#if HAVE_DLFCN_H
15021#include <dlfcn.h>
15022#endif
15023
15024#include <stdio.h>
15025
15026#ifdef RTLD_GLOBAL
15027#  define LT_DLGLOBAL		RTLD_GLOBAL
15028#else
15029#  ifdef DL_GLOBAL
15030#    define LT_DLGLOBAL		DL_GLOBAL
15031#  else
15032#    define LT_DLGLOBAL		0
15033#  endif
15034#endif
15035
15036/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15037   find out it does not work in some platform. */
15038#ifndef LT_DLLAZY_OR_NOW
15039#  ifdef RTLD_LAZY
15040#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15041#  else
15042#    ifdef DL_LAZY
15043#      define LT_DLLAZY_OR_NOW		DL_LAZY
15044#    else
15045#      ifdef RTLD_NOW
15046#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15047#      else
15048#        ifdef DL_NOW
15049#          define LT_DLLAZY_OR_NOW	DL_NOW
15050#        else
15051#          define LT_DLLAZY_OR_NOW	0
15052#        endif
15053#      endif
15054#    endif
15055#  endif
15056#endif
15057
15058/* When -fvisbility=hidden is used, assume the code has been annotated
15059   correspondingly for the symbols needed.  */
15060#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15061int fnord () __attribute__((visibility("default")));
15062#endif
15063
15064int fnord () { return 42; }
15065int main ()
15066{
15067  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15068  int status = $lt_dlunknown;
15069
15070  if (self)
15071    {
15072      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15073      else
15074        {
15075	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15076          else puts (dlerror ());
15077	}
15078      /* dlclose (self); */
15079    }
15080  else
15081    puts (dlerror ());
15082
15083  return status;
15084}
15085_LT_EOF
15086  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15087  (eval $ac_link) 2>&5
15088  ac_status=$?
15089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15090  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15091    (./conftest; exit; ) >&5 2>/dev/null
15092    lt_status=$?
15093    case x$lt_status in
15094      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15095      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15096      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15097    esac
15098  else :
15099    # compilation failed
15100    lt_cv_dlopen_self_static=no
15101  fi
15102fi
15103rm -fr conftest*
15104
15105
15106fi
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15108$as_echo "$lt_cv_dlopen_self_static" >&6; }
15109    fi
15110
15111    CPPFLAGS="$save_CPPFLAGS"
15112    LDFLAGS="$save_LDFLAGS"
15113    LIBS="$save_LIBS"
15114    ;;
15115  esac
15116
15117  case $lt_cv_dlopen_self in
15118  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15119  *) enable_dlopen_self=unknown ;;
15120  esac
15121
15122  case $lt_cv_dlopen_self_static in
15123  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15124  *) enable_dlopen_self_static=unknown ;;
15125  esac
15126fi
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144striplib=
15145old_striplib=
15146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15147$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15148if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15149  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15150  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15152$as_echo "yes" >&6; }
15153else
15154# FIXME - insert some real tests, host_os isn't really good enough
15155  case $host_os in
15156  darwin*)
15157    if test -n "$STRIP" ; then
15158      striplib="$STRIP -x"
15159      old_striplib="$STRIP -S"
15160      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161$as_echo "yes" >&6; }
15162    else
15163      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164$as_echo "no" >&6; }
15165    fi
15166    ;;
15167  *)
15168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15169$as_echo "no" >&6; }
15170    ;;
15171  esac
15172fi
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185  # Report which library types will actually be built
15186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15187$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15189$as_echo "$can_build_shared" >&6; }
15190
15191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15192$as_echo_n "checking whether to build shared libraries... " >&6; }
15193  test "$can_build_shared" = "no" && enable_shared=no
15194
15195  # On AIX, shared libraries and static libraries use the same namespace, and
15196  # are all built from PIC.
15197  case $host_os in
15198  aix3*)
15199    test "$enable_shared" = yes && enable_static=no
15200    if test -n "$RANLIB"; then
15201      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15202      postinstall_cmds='$RANLIB $lib'
15203    fi
15204    ;;
15205
15206  aix[4-9]*)
15207    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15208      test "$enable_shared" = yes && enable_static=no
15209    fi
15210    ;;
15211  esac
15212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15213$as_echo "$enable_shared" >&6; }
15214
15215  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15216$as_echo_n "checking whether to build static libraries... " >&6; }
15217  # Make sure either enable_shared or enable_static is yes.
15218  test "$enable_shared" = yes || enable_static=yes
15219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15220$as_echo "$enable_static" >&6; }
15221
15222
15223
15224
15225fi
15226ac_ext=c
15227ac_cpp='$CPP $CPPFLAGS'
15228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15230ac_compiler_gnu=$ac_cv_c_compiler_gnu
15231
15232CC="$lt_save_CC"
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248        ac_config_commands="$ac_config_commands libtool"
15249
15250
15251
15252
15253# Only expand once:
15254
15255
15256## --------------------- ##
15257##  End of libtool code  ##
15258## --------------------- ##
15259
15260#
15261# Verify if finally libtool shared libraries will be built
15262#
15263
15264case "x$enable_shared" in # ((
15265  xyes | xno)
15266    xc_lt_build_shared=$enable_shared
15267    ;;
15268  *)
15269    as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15270    ;;
15271esac
15272
15273#
15274# Verify if finally libtool static libraries will be built
15275#
15276
15277case "x$enable_static" in # ((
15278  xyes | xno)
15279    xc_lt_build_static=$enable_static
15280    ;;
15281  *)
15282    as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15283    ;;
15284esac
15285
15286#
15287# Verify if libtool shared libraries should be linked using flag -version-info
15288#
15289
15290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15291$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15292xc_lt_shlib_use_version_info='yes'
15293if test "x$version_type" = 'xnone'; then
15294  xc_lt_shlib_use_version_info='no'
15295fi
15296case $host_os in # (
15297  amigaos*)
15298    xc_lt_shlib_use_version_info='yes'
15299    ;;
15300esac
15301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15302$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15303
15304#
15305# Verify if libtool shared libraries should be linked using flag -no-undefined
15306#
15307
15308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15309$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15310xc_lt_shlib_use_no_undefined='no'
15311if test "x$allow_undefined" = 'xno'; then
15312  xc_lt_shlib_use_no_undefined='yes'
15313elif test "x$allow_undefined_flag" = 'xunsupported'; then
15314  xc_lt_shlib_use_no_undefined='yes'
15315fi
15316case $host_os in # (
15317  cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15318    xc_lt_shlib_use_no_undefined='yes'
15319    ;;
15320esac
15321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15322$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15323
15324#
15325# Verify if libtool shared libraries should be linked using flag -mimpure-text
15326#
15327
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15329$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15330xc_lt_shlib_use_mimpure_text='no'
15331case $host_os in # (
15332  solaris2*)
15333    if test "x$GCC" = 'xyes'; then
15334      xc_lt_shlib_use_mimpure_text='yes'
15335    fi
15336    ;;
15337esac
15338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15339$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15340
15341#
15342# Find out wether libtool libraries would be built wit PIC
15343#
15344
15345case "x$pic_mode" in # ((((
15346  xdefault)
15347    xc_lt_build_shared_with_pic='yes'
15348    xc_lt_build_static_with_pic='no'
15349    ;;
15350  xyes)
15351    xc_lt_build_shared_with_pic='yes'
15352    xc_lt_build_static_with_pic='yes'
15353    ;;
15354  xno)
15355    xc_lt_build_shared_with_pic='no'
15356    xc_lt_build_static_with_pic='no'
15357    ;;
15358  *)
15359    xc_lt_build_shared_with_pic='unknown'
15360    xc_lt_build_static_with_pic='unknown'
15361    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15362$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15363    ;;
15364esac
15365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15366$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15368$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15370$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15372$as_echo "$xc_lt_build_static_with_pic" >&6; }
15373
15374#
15375# Verify if libtool shared libraries will be built while static not built
15376#
15377
15378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15379$as_echo_n "checking whether to build shared libraries only... " >&6; }
15380if test "$xc_lt_build_shared" = 'yes' &&
15381  test "$xc_lt_build_static" = 'no'; then
15382  xc_lt_build_shared_only='yes'
15383else
15384  xc_lt_build_shared_only='no'
15385fi
15386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15387$as_echo "$xc_lt_build_shared_only" >&6; }
15388
15389#
15390# Verify if libtool static libraries will be built while shared not built
15391#
15392
15393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15394$as_echo_n "checking whether to build static libraries only... " >&6; }
15395if test "$xc_lt_build_static" = 'yes' &&
15396  test "$xc_lt_build_shared" = 'no'; then
15397  xc_lt_build_static_only='yes'
15398else
15399  xc_lt_build_static_only='no'
15400fi
15401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15402$as_echo "$xc_lt_build_static_only" >&6; }
15403
15404
15405
15406
15407#
15408# Automake conditionals based on libtool related checks
15409#
15410
15411 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15412  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15413  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15414else
15415  CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15416  CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15417fi
15418
15419 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15420  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15421  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15422else
15423  CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15424  CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15425fi
15426
15427 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15428  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15429  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15430else
15431  CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15432  CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15433fi
15434
15435
15436#
15437# Due to libtool and automake machinery limitations of not allowing
15438# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15439# inclusion of these in shared or static libraries, we are forced to
15440# build using separate configure runs for shared and static libraries
15441# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15442# to compile objects for each kind of library. Notice that relying on
15443# the '-DPIC' CFLAG that libtool provides is not valid given that the
15444# user might for example choose to build static libraries with PIC.
15445#
15446
15447#
15448# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15449# targeting a static library and not building its shared counterpart.
15450#
15451
15452 if test "x$xc_lt_build_static_only" = 'xyes'; then
15453  USE_CPPFLAG_CURL_STATICLIB_TRUE=
15454  USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15455else
15456  USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15457  USE_CPPFLAG_CURL_STATICLIB_FALSE=
15458fi
15459
15460
15461#
15462# Make staticlib CPPFLAG variable and its definition visible in output
15463# files unconditionally, providing an empty definition unless strictly
15464# targeting a static library and not building its shared counterpart.
15465#
15466
15467CPPFLAG_CURL_STATICLIB=
15468if test "x$xc_lt_build_static_only" = 'xyes'; then
15469  CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15470fi
15471
15472
15473
15474# Determine whether all dependent libraries must be specified when linking
15475if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15476then
15477    REQUIRE_LIB_DEPS=no
15478else
15479    REQUIRE_LIB_DEPS=yes
15480fi
15481
15482 if test x$REQUIRE_LIB_DEPS = xyes; then
15483  USE_EXPLICIT_LIB_DEPS_TRUE=
15484  USE_EXPLICIT_LIB_DEPS_FALSE='#'
15485else
15486  USE_EXPLICIT_LIB_DEPS_TRUE='#'
15487  USE_EXPLICIT_LIB_DEPS_FALSE=
15488fi
15489
15490
15491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15492$as_echo_n "checking for inline... " >&6; }
15493if ${ac_cv_c_inline+:} false; then :
15494  $as_echo_n "(cached) " >&6
15495else
15496  ac_cv_c_inline=no
15497for ac_kw in inline __inline__ __inline; do
15498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499/* end confdefs.h.  */
15500#ifndef __cplusplus
15501typedef int foo_t;
15502static $ac_kw foo_t static_foo () {return 0; }
15503$ac_kw foo_t foo () {return 0; }
15504#endif
15505
15506_ACEOF
15507if ac_fn_c_try_compile "$LINENO"; then :
15508  ac_cv_c_inline=$ac_kw
15509fi
15510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511  test "$ac_cv_c_inline" != no && break
15512done
15513
15514fi
15515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15516$as_echo "$ac_cv_c_inline" >&6; }
15517
15518case $ac_cv_c_inline in
15519  inline | yes) ;;
15520  *)
15521    case $ac_cv_c_inline in
15522      no) ac_val=;;
15523      *) ac_val=$ac_cv_c_inline;;
15524    esac
15525    cat >>confdefs.h <<_ACEOF
15526#ifndef __cplusplus
15527#define inline $ac_val
15528#endif
15529_ACEOF
15530    ;;
15531esac
15532
15533
15534
15535
15536  #
15537  compiler_id="unknown"
15538  compiler_num="0"
15539  #
15540  flags_dbg_all="unknown"
15541  flags_dbg_yes="unknown"
15542  flags_dbg_off="unknown"
15543  flags_opt_all="unknown"
15544  flags_opt_yes="unknown"
15545  flags_opt_off="unknown"
15546  #
15547  flags_prefer_cppflags="no"
15548  #
15549
15550  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15551$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15552
15553      if test -z "$SED"; then
15554    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15555  fi
15556  if test -z "$GREP"; then
15557    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15558  fi
15559
15560  tmp_exp=""
15561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562/* end confdefs.h.  */
15563
15564
15565#ifdef __DECC
15566CURL_DEF_TOKEN __DECC
15567#endif
15568
15569
15570_ACEOF
15571if ac_fn_c_try_cpp "$LINENO"; then :
15572
15573    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15574      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15575      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15576      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15577    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15578      tmp_exp=""
15579    fi
15580
15581fi
15582rm -f conftest.err conftest.i conftest.$ac_ext
15583  if test -z "$tmp_exp"; then
15584    curl_cv_have_def___DECC=no
15585
15586  else
15587    curl_cv_have_def___DECC=yes
15588    curl_cv_def___DECC=$tmp_exp
15589
15590  fi
15591
15592
15593      if test -z "$SED"; then
15594    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15595  fi
15596  if test -z "$GREP"; then
15597    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15598  fi
15599
15600  tmp_exp=""
15601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15602/* end confdefs.h.  */
15603
15604
15605#ifdef __DECC_VER
15606CURL_DEF_TOKEN __DECC_VER
15607#endif
15608
15609
15610_ACEOF
15611if ac_fn_c_try_cpp "$LINENO"; then :
15612
15613    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15614      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15615      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15616      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15617    if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15618      tmp_exp=""
15619    fi
15620
15621fi
15622rm -f conftest.err conftest.i conftest.$ac_ext
15623  if test -z "$tmp_exp"; then
15624    curl_cv_have_def___DECC_VER=no
15625
15626  else
15627    curl_cv_have_def___DECC_VER=yes
15628    curl_cv_def___DECC_VER=$tmp_exp
15629
15630  fi
15631
15632  if test "$curl_cv_have_def___DECC" = "yes" &&
15633    test "$curl_cv_have_def___DECC_VER" = "yes"; then
15634    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15635$as_echo "yes" >&6; }
15636    compiler_id="DEC_C"
15637    flags_dbg_all="-g -g0 -g1 -g2 -g3"
15638    flags_dbg_yes="-g2"
15639    flags_dbg_off=""
15640    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15641    flags_opt_yes="-O1"
15642    flags_opt_off="-O0"
15643  else
15644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645$as_echo "no" >&6; }
15646  fi
15647
15648
15649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15650$as_echo_n "checking if compiler is HP-UX C... " >&6; }
15651
15652      if test -z "$SED"; then
15653    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15654  fi
15655  if test -z "$GREP"; then
15656    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15657  fi
15658
15659  tmp_exp=""
15660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661/* end confdefs.h.  */
15662
15663
15664#ifdef __HP_cc
15665CURL_DEF_TOKEN __HP_cc
15666#endif
15667
15668
15669_ACEOF
15670if ac_fn_c_try_cpp "$LINENO"; then :
15671
15672    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15673      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15674      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15675      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15676    if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15677      tmp_exp=""
15678    fi
15679
15680fi
15681rm -f conftest.err conftest.i conftest.$ac_ext
15682  if test -z "$tmp_exp"; then
15683    curl_cv_have_def___HP_cc=no
15684
15685  else
15686    curl_cv_have_def___HP_cc=yes
15687    curl_cv_def___HP_cc=$tmp_exp
15688
15689  fi
15690
15691  if test "$curl_cv_have_def___HP_cc" = "yes"; then
15692    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15693$as_echo "yes" >&6; }
15694    compiler_id="HP_UX_C"
15695    flags_dbg_all="-g -s"
15696    flags_dbg_yes="-g"
15697    flags_dbg_off="-s"
15698    flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15699    flags_opt_yes="+O2"
15700    flags_opt_off="+O0"
15701  else
15702    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15703$as_echo "no" >&6; }
15704  fi
15705
15706
15707  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15708$as_echo_n "checking if compiler is IBM C... " >&6; }
15709
15710      if test -z "$SED"; then
15711    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15712  fi
15713  if test -z "$GREP"; then
15714    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15715  fi
15716
15717  tmp_exp=""
15718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15719/* end confdefs.h.  */
15720
15721
15722#ifdef __IBMC__
15723CURL_DEF_TOKEN __IBMC__
15724#endif
15725
15726
15727_ACEOF
15728if ac_fn_c_try_cpp "$LINENO"; then :
15729
15730    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15731      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15732      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15733      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15734    if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15735      tmp_exp=""
15736    fi
15737
15738fi
15739rm -f conftest.err conftest.i conftest.$ac_ext
15740  if test -z "$tmp_exp"; then
15741    curl_cv_have_def___IBMC__=no
15742
15743  else
15744    curl_cv_have_def___IBMC__=yes
15745    curl_cv_def___IBMC__=$tmp_exp
15746
15747  fi
15748
15749  if test "$curl_cv_have_def___IBMC__" = "yes"; then
15750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15751$as_echo "yes" >&6; }
15752    compiler_id="IBM_C"
15753    flags_dbg_all="-g -g0 -g1 -g2 -g3"
15754    flags_dbg_yes="-g"
15755    flags_dbg_off=""
15756    flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15757    flags_opt_all="$flags_opt_all -qnooptimize"
15758    flags_opt_all="$flags_opt_all -qoptimize=0"
15759    flags_opt_all="$flags_opt_all -qoptimize=1"
15760    flags_opt_all="$flags_opt_all -qoptimize=2"
15761    flags_opt_all="$flags_opt_all -qoptimize=3"
15762    flags_opt_all="$flags_opt_all -qoptimize=4"
15763    flags_opt_all="$flags_opt_all -qoptimize=5"
15764    flags_opt_yes="-O2"
15765    flags_opt_off="-qnooptimize"
15766    flags_prefer_cppflags="yes"
15767  else
15768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15769$as_echo "no" >&6; }
15770  fi
15771
15772
15773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15774$as_echo_n "checking if compiler is Intel C... " >&6; }
15775
15776      if test -z "$SED"; then
15777    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15778  fi
15779  if test -z "$GREP"; then
15780    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15781  fi
15782
15783  tmp_exp=""
15784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785/* end confdefs.h.  */
15786
15787
15788#ifdef __INTEL_COMPILER
15789CURL_DEF_TOKEN __INTEL_COMPILER
15790#endif
15791
15792
15793_ACEOF
15794if ac_fn_c_try_cpp "$LINENO"; then :
15795
15796    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15797      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15798      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15799      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15800    if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15801      tmp_exp=""
15802    fi
15803
15804fi
15805rm -f conftest.err conftest.i conftest.$ac_ext
15806  if test -z "$tmp_exp"; then
15807    curl_cv_have_def___INTEL_COMPILER=no
15808
15809  else
15810    curl_cv_have_def___INTEL_COMPILER=yes
15811    curl_cv_def___INTEL_COMPILER=$tmp_exp
15812
15813  fi
15814
15815  if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15817$as_echo "yes" >&6; }
15818    compiler_num="$curl_cv_def___INTEL_COMPILER"
15819
15820      if test -z "$SED"; then
15821    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15822  fi
15823  if test -z "$GREP"; then
15824    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15825  fi
15826
15827  tmp_exp=""
15828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15829/* end confdefs.h.  */
15830
15831
15832#ifdef __unix__
15833CURL_DEF_TOKEN __unix__
15834#endif
15835
15836
15837_ACEOF
15838if ac_fn_c_try_cpp "$LINENO"; then :
15839
15840    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15841      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15842      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15843      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15844    if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15845      tmp_exp=""
15846    fi
15847
15848fi
15849rm -f conftest.err conftest.i conftest.$ac_ext
15850  if test -z "$tmp_exp"; then
15851    curl_cv_have_def___unix__=no
15852
15853  else
15854    curl_cv_have_def___unix__=yes
15855    curl_cv_def___unix__=$tmp_exp
15856
15857  fi
15858
15859    if test "$curl_cv_have_def___unix__" = "yes"; then
15860      compiler_id="INTEL_UNIX_C"
15861      flags_dbg_all="-g -g0"
15862      flags_dbg_yes="-g"
15863      flags_dbg_off=""
15864      flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15865      flags_opt_yes="-O2"
15866      flags_opt_off="-O0"
15867    else
15868      compiler_id="INTEL_WINDOWS_C"
15869      flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15870      flags_dbg_all="$flags_dbg_all /debug"
15871      flags_dbg_all="$flags_dbg_all /debug:none"
15872      flags_dbg_all="$flags_dbg_all /debug:minimal"
15873      flags_dbg_all="$flags_dbg_all /debug:partial"
15874      flags_dbg_all="$flags_dbg_all /debug:full"
15875      flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15876      flags_dbg_all="$flags_dbg_all /debug:extended"
15877      flags_dbg_yes="/Zi /Oy-"
15878      flags_dbg_off="/debug:none /Oy-"
15879      flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15880      flags_opt_yes="/O2"
15881      flags_opt_off="/Od"
15882    fi
15883  else
15884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885$as_echo "no" >&6; }
15886  fi
15887
15888
15889    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15890$as_echo_n "checking if compiler is clang... " >&6; }
15891
15892      if test -z "$SED"; then
15893    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15894  fi
15895  if test -z "$GREP"; then
15896    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15897  fi
15898
15899  tmp_exp=""
15900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901/* end confdefs.h.  */
15902
15903
15904#ifdef __clang__
15905CURL_DEF_TOKEN __clang__
15906#endif
15907
15908
15909_ACEOF
15910if ac_fn_c_try_cpp "$LINENO"; then :
15911
15912    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15913      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15914      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15915      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15916    if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
15917      tmp_exp=""
15918    fi
15919
15920fi
15921rm -f conftest.err conftest.i conftest.$ac_ext
15922  if test -z "$tmp_exp"; then
15923    curl_cv_have_def___clang__=no
15924
15925  else
15926    curl_cv_have_def___clang__=yes
15927    curl_cv_def___clang__=$tmp_exp
15928
15929  fi
15930
15931  if test "$curl_cv_have_def___clang__" = "yes"; then
15932    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15933$as_echo "yes" >&6; }
15934    compiler_id="CLANG"
15935    clangver=`$CC -dumpversion`
15936    clangvhi=`echo $clangver | cut -d . -f1`
15937    clangvlo=`echo $clangver | cut -d . -f2`
15938    compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
15939    flags_dbg_all="-g -g0 -g1 -g2 -g3"
15940    flags_dbg_all="$flags_dbg_all -ggdb"
15941    flags_dbg_all="$flags_dbg_all -gstabs"
15942    flags_dbg_all="$flags_dbg_all -gstabs+"
15943    flags_dbg_all="$flags_dbg_all -gcoff"
15944    flags_dbg_all="$flags_dbg_all -gxcoff"
15945    flags_dbg_all="$flags_dbg_all -gdwarf-2"
15946    flags_dbg_all="$flags_dbg_all -gvms"
15947    flags_dbg_yes="-g"
15948    flags_dbg_off=""
15949    flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
15950    flags_opt_yes="-Os"
15951    flags_opt_off="-O0"
15952  else
15953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954$as_echo "no" >&6; }
15955  fi
15956
15957
15958      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
15959$as_echo_n "checking if compiler is GNU C... " >&6; }
15960
15961      if test -z "$SED"; then
15962    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15963  fi
15964  if test -z "$GREP"; then
15965    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15966  fi
15967
15968  tmp_exp=""
15969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970/* end confdefs.h.  */
15971
15972
15973#ifdef __GNUC__
15974CURL_DEF_TOKEN __GNUC__
15975#endif
15976
15977
15978_ACEOF
15979if ac_fn_c_try_cpp "$LINENO"; then :
15980
15981    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15982      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15983      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15984      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15985    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
15986      tmp_exp=""
15987    fi
15988
15989fi
15990rm -f conftest.err conftest.i conftest.$ac_ext
15991  if test -z "$tmp_exp"; then
15992    curl_cv_have_def___GNUC__=no
15993
15994  else
15995    curl_cv_have_def___GNUC__=yes
15996    curl_cv_def___GNUC__=$tmp_exp
15997
15998  fi
15999
16000  if test "$curl_cv_have_def___GNUC__" = "yes" &&
16001    test "$compiler_id" = "unknown"; then
16002    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16003$as_echo "yes" >&6; }
16004    compiler_id="GNU_C"
16005    gccver=`$CC -dumpversion`
16006    gccvhi=`echo $gccver | cut -d . -f1`
16007    gccvlo=`echo $gccver | cut -d . -f2`
16008    compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16009    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16010    flags_dbg_all="$flags_dbg_all -ggdb"
16011    flags_dbg_all="$flags_dbg_all -gstabs"
16012    flags_dbg_all="$flags_dbg_all -gstabs+"
16013    flags_dbg_all="$flags_dbg_all -gcoff"
16014    flags_dbg_all="$flags_dbg_all -gxcoff"
16015    flags_dbg_all="$flags_dbg_all -gdwarf-2"
16016    flags_dbg_all="$flags_dbg_all -gvms"
16017    flags_dbg_yes="-g"
16018    flags_dbg_off=""
16019    flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16020    flags_opt_yes="-O2"
16021    flags_opt_off="-O0"
16022
16023      if test -z "$SED"; then
16024    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16025  fi
16026  if test -z "$GREP"; then
16027    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16028  fi
16029
16030  tmp_exp=""
16031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032/* end confdefs.h.  */
16033
16034
16035#ifdef _WIN32
16036CURL_DEF_TOKEN _WIN32
16037#endif
16038
16039
16040_ACEOF
16041if ac_fn_c_try_cpp "$LINENO"; then :
16042
16043    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16044      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16045      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16046      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16047    if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16048      tmp_exp=""
16049    fi
16050
16051fi
16052rm -f conftest.err conftest.i conftest.$ac_ext
16053  if test -z "$tmp_exp"; then
16054    curl_cv_have_def__WIN32=no
16055
16056  else
16057    curl_cv_have_def__WIN32=yes
16058    curl_cv_def__WIN32=$tmp_exp
16059
16060  fi
16061
16062  else
16063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16064$as_echo "no" >&6; }
16065  fi
16066
16067
16068  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16069$as_echo_n "checking if compiler is LCC... " >&6; }
16070
16071      if test -z "$SED"; then
16072    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16073  fi
16074  if test -z "$GREP"; then
16075    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16076  fi
16077
16078  tmp_exp=""
16079  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080/* end confdefs.h.  */
16081
16082
16083#ifdef __LCC__
16084CURL_DEF_TOKEN __LCC__
16085#endif
16086
16087
16088_ACEOF
16089if ac_fn_c_try_cpp "$LINENO"; then :
16090
16091    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16092      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16093      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16094      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16095    if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16096      tmp_exp=""
16097    fi
16098
16099fi
16100rm -f conftest.err conftest.i conftest.$ac_ext
16101  if test -z "$tmp_exp"; then
16102    curl_cv_have_def___LCC__=no
16103
16104  else
16105    curl_cv_have_def___LCC__=yes
16106    curl_cv_def___LCC__=$tmp_exp
16107
16108  fi
16109
16110  if test "$curl_cv_have_def___LCC__" = "yes"; then
16111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16112$as_echo "yes" >&6; }
16113    compiler_id="LCC"
16114    flags_dbg_all="-g"
16115    flags_dbg_yes="-g"
16116    flags_dbg_off=""
16117    flags_opt_all=""
16118    flags_opt_yes=""
16119    flags_opt_off=""
16120  else
16121    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16122$as_echo "no" >&6; }
16123  fi
16124
16125
16126    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16127$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16128
16129      if test -z "$SED"; then
16130    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16131  fi
16132  if test -z "$GREP"; then
16133    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16134  fi
16135
16136  tmp_exp=""
16137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138/* end confdefs.h.  */
16139
16140
16141#ifdef __GNUC__
16142CURL_DEF_TOKEN __GNUC__
16143#endif
16144
16145
16146_ACEOF
16147if ac_fn_c_try_cpp "$LINENO"; then :
16148
16149    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16150      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16151      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16152      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16153    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16154      tmp_exp=""
16155    fi
16156
16157fi
16158rm -f conftest.err conftest.i conftest.$ac_ext
16159  if test -z "$tmp_exp"; then
16160    curl_cv_have_def___GNUC__=no
16161
16162  else
16163    curl_cv_have_def___GNUC__=yes
16164    curl_cv_def___GNUC__=$tmp_exp
16165
16166  fi
16167
16168
16169      if test -z "$SED"; then
16170    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16171  fi
16172  if test -z "$GREP"; then
16173    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16174  fi
16175
16176  tmp_exp=""
16177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h.  */
16179
16180
16181#ifdef _COMPILER_VERSION
16182CURL_DEF_TOKEN _COMPILER_VERSION
16183#endif
16184
16185
16186_ACEOF
16187if ac_fn_c_try_cpp "$LINENO"; then :
16188
16189    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16190      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16191      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16192      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16193    if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16194      tmp_exp=""
16195    fi
16196
16197fi
16198rm -f conftest.err conftest.i conftest.$ac_ext
16199  if test -z "$tmp_exp"; then
16200    curl_cv_have_def__COMPILER_VERSION=no
16201
16202  else
16203    curl_cv_have_def__COMPILER_VERSION=yes
16204    curl_cv_def__COMPILER_VERSION=$tmp_exp
16205
16206  fi
16207
16208
16209      if test -z "$SED"; then
16210    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16211  fi
16212  if test -z "$GREP"; then
16213    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16214  fi
16215
16216  tmp_exp=""
16217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218/* end confdefs.h.  */
16219
16220
16221#ifdef _SGI_COMPILER_VERSION
16222CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16223#endif
16224
16225
16226_ACEOF
16227if ac_fn_c_try_cpp "$LINENO"; then :
16228
16229    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16230      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16231      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16232      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16233    if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16234      tmp_exp=""
16235    fi
16236
16237fi
16238rm -f conftest.err conftest.i conftest.$ac_ext
16239  if test -z "$tmp_exp"; then
16240    curl_cv_have_def__SGI_COMPILER_VERSION=no
16241
16242  else
16243    curl_cv_have_def__SGI_COMPILER_VERSION=yes
16244    curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16245
16246  fi
16247
16248  if test "$curl_cv_have_def___GNUC__" = "no" &&
16249    (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16250     test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16252$as_echo "yes" >&6; }
16253    compiler_id="SGI_MIPSPRO_C"
16254    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16255    flags_dbg_yes="-g"
16256    flags_dbg_off=""
16257    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16258    flags_opt_yes="-O2"
16259    flags_opt_off="-O0"
16260  else
16261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262$as_echo "no" >&6; }
16263  fi
16264
16265
16266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16267$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16268
16269      if test -z "$SED"; then
16270    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16271  fi
16272  if test -z "$GREP"; then
16273    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16274  fi
16275
16276  tmp_exp=""
16277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h.  */
16279
16280
16281#ifdef __GNUC__
16282CURL_DEF_TOKEN __GNUC__
16283#endif
16284
16285
16286_ACEOF
16287if ac_fn_c_try_cpp "$LINENO"; then :
16288
16289    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16290      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16291      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16292      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16293    if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16294      tmp_exp=""
16295    fi
16296
16297fi
16298rm -f conftest.err conftest.i conftest.$ac_ext
16299  if test -z "$tmp_exp"; then
16300    curl_cv_have_def___GNUC__=no
16301
16302  else
16303    curl_cv_have_def___GNUC__=yes
16304    curl_cv_def___GNUC__=$tmp_exp
16305
16306  fi
16307
16308
16309      if test -z "$SED"; then
16310    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16311  fi
16312  if test -z "$GREP"; then
16313    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16314  fi
16315
16316  tmp_exp=""
16317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318/* end confdefs.h.  */
16319
16320
16321#ifdef __sgi
16322CURL_DEF_TOKEN __sgi
16323#endif
16324
16325
16326_ACEOF
16327if ac_fn_c_try_cpp "$LINENO"; then :
16328
16329    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16330      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16331      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16332      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16333    if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16334      tmp_exp=""
16335    fi
16336
16337fi
16338rm -f conftest.err conftest.i conftest.$ac_ext
16339  if test -z "$tmp_exp"; then
16340    curl_cv_have_def___sgi=no
16341
16342  else
16343    curl_cv_have_def___sgi=yes
16344    curl_cv_def___sgi=$tmp_exp
16345
16346  fi
16347
16348  if test "$curl_cv_have_def___GNUC__" = "no" &&
16349    test "$curl_cv_have_def___sgi" = "yes" &&
16350    test "$compiler_id" = "unknown"; then
16351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16352$as_echo "yes" >&6; }
16353    compiler_id="SGI_MIPS_C"
16354    flags_dbg_all="-g -g0 -g1 -g2 -g3"
16355    flags_dbg_yes="-g"
16356    flags_dbg_off=""
16357    flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16358    flags_opt_yes="-O2"
16359    flags_opt_off="-O0"
16360  else
16361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362$as_echo "no" >&6; }
16363  fi
16364
16365
16366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16367$as_echo_n "checking if compiler is SunPro C... " >&6; }
16368
16369      if test -z "$SED"; then
16370    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16371  fi
16372  if test -z "$GREP"; then
16373    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16374  fi
16375
16376  tmp_exp=""
16377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378/* end confdefs.h.  */
16379
16380
16381#ifdef __SUNPRO_C
16382CURL_DEF_TOKEN __SUNPRO_C
16383#endif
16384
16385
16386_ACEOF
16387if ac_fn_c_try_cpp "$LINENO"; then :
16388
16389    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16390      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16391      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16392      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16393    if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16394      tmp_exp=""
16395    fi
16396
16397fi
16398rm -f conftest.err conftest.i conftest.$ac_ext
16399  if test -z "$tmp_exp"; then
16400    curl_cv_have_def___SUNPRO_C=no
16401
16402  else
16403    curl_cv_have_def___SUNPRO_C=yes
16404    curl_cv_def___SUNPRO_C=$tmp_exp
16405
16406  fi
16407
16408  if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16409    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16410$as_echo "yes" >&6; }
16411    compiler_id="SUNPRO_C"
16412    flags_dbg_all="-g -s"
16413    flags_dbg_yes="-g"
16414    flags_dbg_off="-s"
16415    flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16416    flags_opt_yes="-xO2"
16417    flags_opt_off=""
16418  else
16419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16420$as_echo "no" >&6; }
16421  fi
16422
16423
16424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16425$as_echo_n "checking if compiler is Tiny C... " >&6; }
16426
16427      if test -z "$SED"; then
16428    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16429  fi
16430  if test -z "$GREP"; then
16431    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16432  fi
16433
16434  tmp_exp=""
16435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436/* end confdefs.h.  */
16437
16438
16439#ifdef __TINYC__
16440CURL_DEF_TOKEN __TINYC__
16441#endif
16442
16443
16444_ACEOF
16445if ac_fn_c_try_cpp "$LINENO"; then :
16446
16447    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16448      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16449      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16450      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16451    if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16452      tmp_exp=""
16453    fi
16454
16455fi
16456rm -f conftest.err conftest.i conftest.$ac_ext
16457  if test -z "$tmp_exp"; then
16458    curl_cv_have_def___TINYC__=no
16459
16460  else
16461    curl_cv_have_def___TINYC__=yes
16462    curl_cv_def___TINYC__=$tmp_exp
16463
16464  fi
16465
16466  if test "$curl_cv_have_def___TINYC__" = "yes"; then
16467    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16468$as_echo "yes" >&6; }
16469    compiler_id="TINY_C"
16470    flags_dbg_all="-g -b"
16471    flags_dbg_yes="-g"
16472    flags_dbg_off=""
16473    flags_opt_all=""
16474    flags_opt_yes=""
16475    flags_opt_off=""
16476  else
16477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478$as_echo "no" >&6; }
16479  fi
16480
16481
16482  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16483$as_echo_n "checking if compiler is Watcom C... " >&6; }
16484
16485      if test -z "$SED"; then
16486    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16487  fi
16488  if test -z "$GREP"; then
16489    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16490  fi
16491
16492  tmp_exp=""
16493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h.  */
16495
16496
16497#ifdef __WATCOMC__
16498CURL_DEF_TOKEN __WATCOMC__
16499#endif
16500
16501
16502_ACEOF
16503if ac_fn_c_try_cpp "$LINENO"; then :
16504
16505    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16506      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16507      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16508      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16509    if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16510      tmp_exp=""
16511    fi
16512
16513fi
16514rm -f conftest.err conftest.i conftest.$ac_ext
16515  if test -z "$tmp_exp"; then
16516    curl_cv_have_def___WATCOMC__=no
16517
16518  else
16519    curl_cv_have_def___WATCOMC__=yes
16520    curl_cv_def___WATCOMC__=$tmp_exp
16521
16522  fi
16523
16524  if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16525    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16526$as_echo "yes" >&6; }
16527
16528      if test -z "$SED"; then
16529    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16530  fi
16531  if test -z "$GREP"; then
16532    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16533  fi
16534
16535  tmp_exp=""
16536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16537/* end confdefs.h.  */
16538
16539
16540#ifdef __UNIX__
16541CURL_DEF_TOKEN __UNIX__
16542#endif
16543
16544
16545_ACEOF
16546if ac_fn_c_try_cpp "$LINENO"; then :
16547
16548    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16549      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16550      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16551      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16552    if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16553      tmp_exp=""
16554    fi
16555
16556fi
16557rm -f conftest.err conftest.i conftest.$ac_ext
16558  if test -z "$tmp_exp"; then
16559    curl_cv_have_def___UNIX__=no
16560
16561  else
16562    curl_cv_have_def___UNIX__=yes
16563    curl_cv_def___UNIX__=$tmp_exp
16564
16565  fi
16566
16567    if test "$curl_cv_have_def___UNIX__" = "yes"; then
16568      compiler_id="WATCOM_UNIX_C"
16569      flags_dbg_all="-g1 -g1+ -g2 -g3"
16570      flags_dbg_yes="-g2"
16571      flags_dbg_off=""
16572      flags_opt_all="-O0 -O1 -O2 -O3"
16573      flags_opt_yes="-O2"
16574      flags_opt_off="-O0"
16575    else
16576      compiler_id="WATCOM_WINDOWS_C"
16577      flags_dbg_all=""
16578      flags_dbg_yes=""
16579      flags_dbg_off=""
16580      flags_opt_all=""
16581      flags_opt_yes=""
16582      flags_opt_off=""
16583    fi
16584  else
16585    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586$as_echo "no" >&6; }
16587  fi
16588
16589  #
16590  if test "$compiler_id" = "unknown"; then
16591  cat <<_EOF 1>&2
16592***
16593*** Warning: This configure script does not have information about the
16594*** compiler you are using, relative to the flags required to enable or
16595*** disable generation of debug info, optimization options or warnings.
16596***
16597*** Whatever settings are present in CFLAGS will be used for this run.
16598***
16599*** If you wish to help the cURL project to better support your compiler
16600*** you can report this and the required info on the libcurl development
16601*** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16602***
16603_EOF
16604  fi
16605
16606
16607squeeze() {
16608  _sqz_result=""
16609  eval _sqz_input=\$$1
16610  for _sqz_token in $_sqz_input; do
16611    if test -z "$_sqz_result"; then
16612      _sqz_result="$_sqz_token"
16613    else
16614      _sqz_result="$_sqz_result $_sqz_token"
16615    fi
16616  done
16617  eval $1=\$_sqz_result
16618  return 0
16619}
16620
16621
16622      #
16623  if test "$compiler_id" != "unknown"; then
16624    #
16625    if test "$compiler_id" = "GNU_C" ||
16626      test "$compiler_id" = "CLANG"; then
16627
16628      if test "$compiler_id" = "GNU_C" ||
16629    test "$compiler_id" = "CLANG"; then
16630    tmp_has_include="no"
16631    tmp_chg_FLAGS="$CFLAGS"
16632    for word1 in $tmp_chg_FLAGS; do
16633      case "$word1" in
16634        -I*)
16635          tmp_has_include="yes"
16636          ;;
16637      esac
16638    done
16639    if test "$tmp_has_include" = "yes"; then
16640      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16641      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16642      CFLAGS="$tmp_chg_FLAGS"
16643      squeeze CFLAGS
16644    fi
16645    tmp_has_include="no"
16646    tmp_chg_FLAGS="$CPPFLAGS"
16647    for word1 in $tmp_chg_FLAGS; do
16648      case "$word1" in
16649        -I*)
16650          tmp_has_include="yes"
16651          ;;
16652      esac
16653    done
16654    if test "$tmp_has_include" = "yes"; then
16655      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16656      tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16657      CPPFLAGS="$tmp_chg_FLAGS"
16658      squeeze CPPFLAGS
16659    fi
16660  fi
16661
16662    fi
16663    #
16664    tmp_save_CPPFLAGS="$CPPFLAGS"
16665    tmp_save_CFLAGS="$CFLAGS"
16666    tmp_CPPFLAGS=""
16667    tmp_CFLAGS=""
16668    #
16669    case "$compiler_id" in
16670        #
16671      CLANG)
16672        #
16673                                tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16674        ;;
16675        #
16676      DEC_C)
16677        #
16678                tmp_CFLAGS="$tmp_CFLAGS -std1"
16679                tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16680                tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16681                tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16682        ;;
16683        #
16684      GNU_C)
16685        #
16686                tmp_CFLAGS="$tmp_CFLAGS"
16687        ;;
16688        #
16689      HP_UX_C)
16690        #
16691                tmp_CFLAGS="$tmp_CFLAGS -z"
16692                                tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16693        ;;
16694        #
16695      IBM_C)
16696        #
16697                tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16698                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16699                        tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16700        ;;
16701        #
16702      INTEL_UNIX_C)
16703        #
16704                        tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16705                                                tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
16706                                        tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
16707        ;;
16708        #
16709      INTEL_WINDOWS_C)
16710        #
16711                tmp_CFLAGS="$tmp_CFLAGS"
16712        ;;
16713        #
16714      LCC)
16715        #
16716                tmp_CFLAGS="$tmp_CFLAGS -n"
16717        ;;
16718        #
16719      SGI_MIPS_C)
16720        #
16721                tmp_CFLAGS="$tmp_CFLAGS"
16722        ;;
16723        #
16724      SGI_MIPSPRO_C)
16725        #
16726                tmp_CFLAGS="$tmp_CFLAGS"
16727        ;;
16728        #
16729      SUNPRO_C)
16730        #
16731                tmp_CFLAGS="$tmp_CFLAGS"
16732        ;;
16733        #
16734      TINY_C)
16735        #
16736                tmp_CFLAGS="$tmp_CFLAGS"
16737        ;;
16738        #
16739      WATCOM_UNIX_C)
16740        #
16741                tmp_CFLAGS="$tmp_CFLAGS"
16742        ;;
16743        #
16744      WATCOM_WINDOWS_C)
16745        #
16746                tmp_CFLAGS="$tmp_CFLAGS"
16747        ;;
16748        #
16749    esac
16750    #
16751    squeeze tmp_CPPFLAGS
16752    squeeze tmp_CFLAGS
16753    #
16754    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16755      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16756$as_echo_n "checking if compiler accepts some basic options... " >&6; }
16757      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16758      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16759      squeeze CPPFLAGS
16760      squeeze CFLAGS
16761
16762    tmp_compiler_works="unknown"
16763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764/* end confdefs.h.  */
16765
16766
16767
16768int main (void)
16769{
16770
16771      int i = 1;
16772      return i;
16773
16774 ;
16775 return 0;
16776}
16777
16778_ACEOF
16779if ac_fn_c_try_compile "$LINENO"; then :
16780
16781    tmp_compiler_works="yes"
16782
16783else
16784
16785    tmp_compiler_works="no"
16786    echo " " >&6
16787    sed 's/^/cc-fail: /' conftest.err >&6
16788    echo " " >&6
16789
16790fi
16791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16792    if test "$tmp_compiler_works" = "yes"; then
16793    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16794/* end confdefs.h.  */
16795
16796
16797
16798int main (void)
16799{
16800
16801        int i = 1;
16802        return i;
16803
16804 ;
16805 return 0;
16806}
16807
16808_ACEOF
16809if ac_fn_c_try_link "$LINENO"; then :
16810
16811      tmp_compiler_works="yes"
16812
16813else
16814
16815      tmp_compiler_works="no"
16816      echo " " >&6
16817      sed 's/^/link-fail: /' conftest.err >&6
16818      echo " " >&6
16819
16820fi
16821rm -f core conftest.err conftest.$ac_objext \
16822    conftest$ac_exeext conftest.$ac_ext
16823  fi
16824    if test "x$cross_compiling" != "xyes" &&
16825    test "$tmp_compiler_works" = "yes"; then
16826    if test "$cross_compiling" = yes; then :
16827  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16829as_fn_error $? "cannot run test program while cross compiling
16830See \`config.log' for more details" "$LINENO" 5; }
16831else
16832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833/* end confdefs.h.  */
16834
16835
16836#       ifdef __STDC__
16837#         include <stdlib.h>
16838#       endif
16839
16840int main (void)
16841{
16842
16843        int i = 0;
16844        exit(i);
16845
16846 ;
16847 return 0;
16848}
16849
16850_ACEOF
16851if ac_fn_c_try_run "$LINENO"; then :
16852
16853      tmp_compiler_works="yes"
16854
16855else
16856
16857      tmp_compiler_works="no"
16858      echo " " >&6
16859      echo "run-fail: test program exited with status $ac_status" >&6
16860      echo " " >&6
16861
16862fi
16863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16864  conftest.$ac_objext conftest.beam conftest.$ac_ext
16865fi
16866
16867  fi
16868    if test "$tmp_compiler_works" = "yes"; then
16869
16870        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16871$as_echo "yes" >&6; }
16872        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16873$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16874
16875  else
16876
16877        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16878$as_echo "no" >&6; }
16879        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16880$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16881                CPPFLAGS="$tmp_save_CPPFLAGS"
16882        CFLAGS="$tmp_save_CFLAGS"
16883
16884  fi
16885
16886    fi
16887    #
16888  fi
16889
16890
16891        #
16892  if test "$compiler_id" != "unknown"; then
16893    #
16894    tmp_save_CFLAGS="$CFLAGS"
16895    tmp_save_CPPFLAGS="$CPPFLAGS"
16896    #
16897    tmp_options=""
16898    tmp_CFLAGS="$CFLAGS"
16899    tmp_CPPFLAGS="$CPPFLAGS"
16900
16901    ac_var_stripped=""
16902  for word1 in $tmp_CFLAGS; do
16903    ac_var_strip_word="no"
16904    for word2 in $flags_dbg_all; do
16905      if test "$word1" = "$word2"; then
16906        ac_var_strip_word="yes"
16907      fi
16908    done
16909    if test "$ac_var_strip_word" = "no"; then
16910      ac_var_stripped="$ac_var_stripped $word1"
16911    fi
16912  done
16913    tmp_CFLAGS="$ac_var_stripped"
16914  squeeze tmp_CFLAGS
16915
16916
16917    ac_var_stripped=""
16918  for word1 in $tmp_CPPFLAGS; do
16919    ac_var_strip_word="no"
16920    for word2 in $flags_dbg_all; do
16921      if test "$word1" = "$word2"; then
16922        ac_var_strip_word="yes"
16923      fi
16924    done
16925    if test "$ac_var_strip_word" = "no"; then
16926      ac_var_stripped="$ac_var_stripped $word1"
16927    fi
16928  done
16929    tmp_CPPFLAGS="$ac_var_stripped"
16930  squeeze tmp_CPPFLAGS
16931
16932    #
16933    if test "$want_debug" = "yes"; then
16934      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
16935$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
16936      tmp_options="$flags_dbg_yes"
16937    fi
16938    if test "$want_debug" = "no"; then
16939      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
16940$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
16941      tmp_options="$flags_dbg_off"
16942    fi
16943    #
16944    if test "$flags_prefer_cppflags" = "yes"; then
16945      CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
16946      CFLAGS="$tmp_CFLAGS"
16947    else
16948      CPPFLAGS="$tmp_CPPFLAGS"
16949      CFLAGS="$tmp_CFLAGS $tmp_options"
16950    fi
16951    squeeze CPPFLAGS
16952    squeeze CFLAGS
16953
16954    tmp_compiler_works="unknown"
16955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956/* end confdefs.h.  */
16957
16958
16959
16960int main (void)
16961{
16962
16963      int i = 1;
16964      return i;
16965
16966 ;
16967 return 0;
16968}
16969
16970_ACEOF
16971if ac_fn_c_try_compile "$LINENO"; then :
16972
16973    tmp_compiler_works="yes"
16974
16975else
16976
16977    tmp_compiler_works="no"
16978    echo " " >&6
16979    sed 's/^/cc-fail: /' conftest.err >&6
16980    echo " " >&6
16981
16982fi
16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984    if test "$tmp_compiler_works" = "yes"; then
16985    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986/* end confdefs.h.  */
16987
16988
16989
16990int main (void)
16991{
16992
16993        int i = 1;
16994        return i;
16995
16996 ;
16997 return 0;
16998}
16999
17000_ACEOF
17001if ac_fn_c_try_link "$LINENO"; then :
17002
17003      tmp_compiler_works="yes"
17004
17005else
17006
17007      tmp_compiler_works="no"
17008      echo " " >&6
17009      sed 's/^/link-fail: /' conftest.err >&6
17010      echo " " >&6
17011
17012fi
17013rm -f core conftest.err conftest.$ac_objext \
17014    conftest$ac_exeext conftest.$ac_ext
17015  fi
17016    if test "x$cross_compiling" != "xyes" &&
17017    test "$tmp_compiler_works" = "yes"; then
17018    if test "$cross_compiling" = yes; then :
17019  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17021as_fn_error $? "cannot run test program while cross compiling
17022See \`config.log' for more details" "$LINENO" 5; }
17023else
17024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17025/* end confdefs.h.  */
17026
17027
17028#       ifdef __STDC__
17029#         include <stdlib.h>
17030#       endif
17031
17032int main (void)
17033{
17034
17035        int i = 0;
17036        exit(i);
17037
17038 ;
17039 return 0;
17040}
17041
17042_ACEOF
17043if ac_fn_c_try_run "$LINENO"; then :
17044
17045      tmp_compiler_works="yes"
17046
17047else
17048
17049      tmp_compiler_works="no"
17050      echo " " >&6
17051      echo "run-fail: test program exited with status $ac_status" >&6
17052      echo " " >&6
17053
17054fi
17055rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17056  conftest.$ac_objext conftest.beam conftest.$ac_ext
17057fi
17058
17059  fi
17060    if test "$tmp_compiler_works" = "yes"; then
17061
17062      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17063$as_echo "yes" >&6; }
17064      { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17065$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17066
17067  else
17068
17069      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17070$as_echo "no" >&6; }
17071      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17072$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17073            CPPFLAGS="$tmp_save_CPPFLAGS"
17074      CFLAGS="$tmp_save_CFLAGS"
17075
17076  fi
17077
17078    #
17079  fi
17080
17081
17082        #
17083  if test "$compiler_id" != "unknown"; then
17084    #
17085    tmp_save_CFLAGS="$CFLAGS"
17086    tmp_save_CPPFLAGS="$CPPFLAGS"
17087    #
17088    tmp_options=""
17089    tmp_CFLAGS="$CFLAGS"
17090    tmp_CPPFLAGS="$CPPFLAGS"
17091    honor_optimize_option="yes"
17092    #
17093                        #
17094    if test "$want_optimize" = "assume_no" ||
17095       test "$want_optimize" = "assume_yes"; then
17096      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17097$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17098
17099
17100  ac_var_match_word="no"
17101  for word1 in $tmp_CFLAGS; do
17102    for word2 in $flags_opt_all; do
17103      if test "$word1" = "$word2"; then
17104        ac_var_match_word="yes"
17105      fi
17106    done
17107  done
17108
17109  if test "$ac_var_match_word" = "yes"; then
17110
17111        honor_optimize_option="no"
17112
17113
17114  fi
17115
17116
17117
17118  ac_var_match_word="no"
17119  for word1 in $tmp_CPPFLAGS; do
17120    for word2 in $flags_opt_all; do
17121      if test "$word1" = "$word2"; then
17122        ac_var_match_word="yes"
17123      fi
17124    done
17125  done
17126
17127  if test "$ac_var_match_word" = "yes"; then
17128
17129        honor_optimize_option="no"
17130
17131
17132  fi
17133
17134      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17135$as_echo "$honor_optimize_option" >&6; }
17136      if test "$honor_optimize_option" = "yes"; then
17137        if test "$want_optimize" = "assume_yes"; then
17138          want_optimize="yes"
17139        fi
17140        if test "$want_optimize" = "assume_no"; then
17141          want_optimize="no"
17142        fi
17143      fi
17144    fi
17145    #
17146    if test "$honor_optimize_option" = "yes"; then
17147
17148    ac_var_stripped=""
17149  for word1 in $tmp_CFLAGS; do
17150    ac_var_strip_word="no"
17151    for word2 in $flags_opt_all; do
17152      if test "$word1" = "$word2"; then
17153        ac_var_strip_word="yes"
17154      fi
17155    done
17156    if test "$ac_var_strip_word" = "no"; then
17157      ac_var_stripped="$ac_var_stripped $word1"
17158    fi
17159  done
17160    tmp_CFLAGS="$ac_var_stripped"
17161  squeeze tmp_CFLAGS
17162
17163
17164    ac_var_stripped=""
17165  for word1 in $tmp_CPPFLAGS; do
17166    ac_var_strip_word="no"
17167    for word2 in $flags_opt_all; do
17168      if test "$word1" = "$word2"; then
17169        ac_var_strip_word="yes"
17170      fi
17171    done
17172    if test "$ac_var_strip_word" = "no"; then
17173      ac_var_stripped="$ac_var_stripped $word1"
17174    fi
17175  done
17176    tmp_CPPFLAGS="$ac_var_stripped"
17177  squeeze tmp_CPPFLAGS
17178
17179      if test "$want_optimize" = "yes"; then
17180        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17181$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17182        tmp_options="$flags_opt_yes"
17183      fi
17184      if test "$want_optimize" = "no"; then
17185        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17186$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17187        tmp_options="$flags_opt_off"
17188      fi
17189      if test "$flags_prefer_cppflags" = "yes"; then
17190        CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17191        CFLAGS="$tmp_CFLAGS"
17192      else
17193        CPPFLAGS="$tmp_CPPFLAGS"
17194        CFLAGS="$tmp_CFLAGS $tmp_options"
17195      fi
17196      squeeze CPPFLAGS
17197      squeeze CFLAGS
17198
17199    tmp_compiler_works="unknown"
17200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201/* end confdefs.h.  */
17202
17203
17204
17205int main (void)
17206{
17207
17208      int i = 1;
17209      return i;
17210
17211 ;
17212 return 0;
17213}
17214
17215_ACEOF
17216if ac_fn_c_try_compile "$LINENO"; then :
17217
17218    tmp_compiler_works="yes"
17219
17220else
17221
17222    tmp_compiler_works="no"
17223    echo " " >&6
17224    sed 's/^/cc-fail: /' conftest.err >&6
17225    echo " " >&6
17226
17227fi
17228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229    if test "$tmp_compiler_works" = "yes"; then
17230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17231/* end confdefs.h.  */
17232
17233
17234
17235int main (void)
17236{
17237
17238        int i = 1;
17239        return i;
17240
17241 ;
17242 return 0;
17243}
17244
17245_ACEOF
17246if ac_fn_c_try_link "$LINENO"; then :
17247
17248      tmp_compiler_works="yes"
17249
17250else
17251
17252      tmp_compiler_works="no"
17253      echo " " >&6
17254      sed 's/^/link-fail: /' conftest.err >&6
17255      echo " " >&6
17256
17257fi
17258rm -f core conftest.err conftest.$ac_objext \
17259    conftest$ac_exeext conftest.$ac_ext
17260  fi
17261    if test "x$cross_compiling" != "xyes" &&
17262    test "$tmp_compiler_works" = "yes"; then
17263    if test "$cross_compiling" = yes; then :
17264  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17266as_fn_error $? "cannot run test program while cross compiling
17267See \`config.log' for more details" "$LINENO" 5; }
17268else
17269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h.  */
17271
17272
17273#       ifdef __STDC__
17274#         include <stdlib.h>
17275#       endif
17276
17277int main (void)
17278{
17279
17280        int i = 0;
17281        exit(i);
17282
17283 ;
17284 return 0;
17285}
17286
17287_ACEOF
17288if ac_fn_c_try_run "$LINENO"; then :
17289
17290      tmp_compiler_works="yes"
17291
17292else
17293
17294      tmp_compiler_works="no"
17295      echo " " >&6
17296      echo "run-fail: test program exited with status $ac_status" >&6
17297      echo " " >&6
17298
17299fi
17300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17301  conftest.$ac_objext conftest.beam conftest.$ac_ext
17302fi
17303
17304  fi
17305    if test "$tmp_compiler_works" = "yes"; then
17306
17307        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17308$as_echo "yes" >&6; }
17309        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17310$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17311
17312  else
17313
17314        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17315$as_echo "no" >&6; }
17316        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17317$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17318                CPPFLAGS="$tmp_save_CPPFLAGS"
17319        CFLAGS="$tmp_save_CFLAGS"
17320
17321  fi
17322
17323    fi
17324    #
17325  fi
17326
17327
17328        #
17329  if test "$compiler_id" != "unknown"; then
17330    #
17331    tmp_save_CPPFLAGS="$CPPFLAGS"
17332    tmp_save_CFLAGS="$CFLAGS"
17333    tmp_CPPFLAGS=""
17334    tmp_CFLAGS=""
17335    #
17336    case "$compiler_id" in
17337        #
17338      CLANG)
17339        #
17340        if test "$want_warnings" = "yes"; then
17341          tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17342          tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17343          tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17344          tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17345          tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17346          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17347          tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17348          tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17349          tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17350          tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17351          tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17352          tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17353          tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17354          tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17355          tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17356          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17357          tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17358          #
17359                    if test "$compiler_num" -ge "101"; then
17360            tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17361          fi
17362        fi
17363        ;;
17364        #
17365      DEC_C)
17366        #
17367        if test "$want_warnings" = "yes"; then
17368                    tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17369        fi
17370        ;;
17371        #
17372      GNU_C)
17373        #
17374        if test "$want_warnings" = "yes"; then
17375          #
17376                              if test "x$cross_compiling" != "xyes" ||
17377            test "$compiler_num" -ge "300"; then
17378            tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17379          fi
17380          #
17381                    tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17382          #
17383                    if test "$compiler_num" -ge "104"; then
17384            tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17385                        if test "x$cross_compiling" != "xyes" ||
17386              test "$compiler_num" -ge "300"; then
17387              tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17388            fi
17389          fi
17390          #
17391                    if test "$compiler_num" -ge "207"; then
17392            tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17393                        if test "x$cross_compiling" != "xyes" ||
17394              test "$compiler_num" -ge "300"; then
17395              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17396              tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17397            fi
17398          fi
17399          #
17400                    if test "$compiler_num" -ge "295"; then
17401            tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17402          fi
17403          #
17404                    if test "$compiler_num" -ge "296"; then
17405            tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17406            tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17407                                                tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17408          fi
17409          #
17410                    if test "$compiler_num" -ge "297"; then
17411            tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17412          fi
17413          #
17414                    if test "$compiler_num" -ge "300"; then
17415                                                            tmp_CFLAGS="$tmp_CFLAGS"
17416          fi
17417          #
17418                    if test "$compiler_num" -ge "303"; then
17419            tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17420          fi
17421          #
17422                    if test "$compiler_num" -ge "304"; then
17423            tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17424          fi
17425          #
17426                    if test "$compiler_num" -ge "400"; then
17427            tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17428          fi
17429          #
17430                    if test "$compiler_num" -ge "402"; then
17431            tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17432          fi
17433          #
17434                    if test "$compiler_num" -ge "403"; then
17435            tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17436            tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17437            tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17438            tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17439          fi
17440          #
17441                    if test "$compiler_num" -ge "405"; then
17442                        if test "$curl_cv_have_def__WIN32" = "yes"; then
17443              tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17444            fi
17445          fi
17446          #
17447        fi
17448        #
17449                if test "$compiler_num" -ge "300"; then
17450          tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17451        else
17452                              if test "x$cross_compiling" = "xyes"; then
17453            if test "$compiler_num" -ge "104"; then
17454                            tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17455            fi
17456            if test "$compiler_num" -ge "207"; then
17457                            tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17458              tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17459            fi
17460          fi
17461        fi
17462        ;;
17463        #
17464      HP_UX_C)
17465        #
17466        if test "$want_warnings" = "yes"; then
17467                    tmp_CFLAGS="$tmp_CFLAGS +w1"
17468        fi
17469        ;;
17470        #
17471      IBM_C)
17472        #
17473                tmp_CFLAGS="$tmp_CFLAGS"
17474        ;;
17475        #
17476      INTEL_UNIX_C)
17477        #
17478        if test "$want_warnings" = "yes"; then
17479          if test "$compiler_num" -gt "600"; then
17480                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17481                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17482                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17483                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17484                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17485                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17486                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17487                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17488                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17489                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17490                        tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17491          fi
17492        fi
17493                tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17494                tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17495                tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17496                if test "$compiler_num" -ge "1000"; then
17497                    tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17498        fi
17499        ;;
17500        #
17501      INTEL_WINDOWS_C)
17502        #
17503                tmp_CFLAGS="$tmp_CFLAGS"
17504        ;;
17505        #
17506      LCC)
17507        #
17508        if test "$want_warnings" = "yes"; then
17509                                                  tmp_CFLAGS="$tmp_CFLAGS"
17510        fi
17511        ;;
17512        #
17513      SGI_MIPS_C)
17514        #
17515        if test "$want_warnings" = "yes"; then
17516                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17517        fi
17518        ;;
17519        #
17520      SGI_MIPSPRO_C)
17521        #
17522        if test "$want_warnings" = "yes"; then
17523                    tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17524                              tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17525        fi
17526        ;;
17527        #
17528      SUNPRO_C)
17529        #
17530        if test "$want_warnings" = "yes"; then
17531                    tmp_CFLAGS="$tmp_CFLAGS -v"
17532        fi
17533        ;;
17534        #
17535      TINY_C)
17536        #
17537        if test "$want_warnings" = "yes"; then
17538                    tmp_CFLAGS="$tmp_CFLAGS -Wall"
17539                    tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17540                    tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17541        fi
17542        ;;
17543        #
17544      WATCOM_UNIX_C)
17545        #
17546        if test "$want_warnings" = "yes"; then
17547                    tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17548        fi
17549        ;;
17550        #
17551      WATCOM_WINDOWS_C)
17552        #
17553                tmp_CFLAGS="$tmp_CFLAGS"
17554        ;;
17555        #
17556    esac
17557    #
17558    squeeze tmp_CPPFLAGS
17559    squeeze tmp_CFLAGS
17560    #
17561    if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17562      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17563$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17564      CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17565      CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17566      squeeze CPPFLAGS
17567      squeeze CFLAGS
17568
17569    tmp_compiler_works="unknown"
17570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571/* end confdefs.h.  */
17572
17573
17574
17575int main (void)
17576{
17577
17578      int i = 1;
17579      return i;
17580
17581 ;
17582 return 0;
17583}
17584
17585_ACEOF
17586if ac_fn_c_try_compile "$LINENO"; then :
17587
17588    tmp_compiler_works="yes"
17589
17590else
17591
17592    tmp_compiler_works="no"
17593    echo " " >&6
17594    sed 's/^/cc-fail: /' conftest.err >&6
17595    echo " " >&6
17596
17597fi
17598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17599    if test "$tmp_compiler_works" = "yes"; then
17600    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601/* end confdefs.h.  */
17602
17603
17604
17605int main (void)
17606{
17607
17608        int i = 1;
17609        return i;
17610
17611 ;
17612 return 0;
17613}
17614
17615_ACEOF
17616if ac_fn_c_try_link "$LINENO"; then :
17617
17618      tmp_compiler_works="yes"
17619
17620else
17621
17622      tmp_compiler_works="no"
17623      echo " " >&6
17624      sed 's/^/link-fail: /' conftest.err >&6
17625      echo " " >&6
17626
17627fi
17628rm -f core conftest.err conftest.$ac_objext \
17629    conftest$ac_exeext conftest.$ac_ext
17630  fi
17631    if test "x$cross_compiling" != "xyes" &&
17632    test "$tmp_compiler_works" = "yes"; then
17633    if test "$cross_compiling" = yes; then :
17634  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17636as_fn_error $? "cannot run test program while cross compiling
17637See \`config.log' for more details" "$LINENO" 5; }
17638else
17639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17640/* end confdefs.h.  */
17641
17642
17643#       ifdef __STDC__
17644#         include <stdlib.h>
17645#       endif
17646
17647int main (void)
17648{
17649
17650        int i = 0;
17651        exit(i);
17652
17653 ;
17654 return 0;
17655}
17656
17657_ACEOF
17658if ac_fn_c_try_run "$LINENO"; then :
17659
17660      tmp_compiler_works="yes"
17661
17662else
17663
17664      tmp_compiler_works="no"
17665      echo " " >&6
17666      echo "run-fail: test program exited with status $ac_status" >&6
17667      echo " " >&6
17668
17669fi
17670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17671  conftest.$ac_objext conftest.beam conftest.$ac_ext
17672fi
17673
17674  fi
17675    if test "$tmp_compiler_works" = "yes"; then
17676
17677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17678$as_echo "yes" >&6; }
17679        { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17680$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17681
17682  else
17683
17684        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17685$as_echo "no" >&6; }
17686        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17687$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17688                CPPFLAGS="$tmp_save_CPPFLAGS"
17689        CFLAGS="$tmp_save_CFLAGS"
17690
17691  fi
17692
17693    fi
17694    #
17695  fi
17696
17697
17698if test "$compiler_id" = "INTEL_UNIX_C"; then
17699  #
17700  if test "$compiler_num" -ge "1000"; then
17701        CFLAGS="$CFLAGS -shared-intel"
17702  elif test "$compiler_num" -ge "900"; then
17703        CFLAGS="$CFLAGS -i-dynamic"
17704  fi
17705  #
17706fi
17707
17708
17709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17710$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712/* end confdefs.h.  */
17713
17714
17715
17716int main (void)
17717{
17718
17719      force compilation error
17720
17721 ;
17722 return 0;
17723}
17724
17725_ACEOF
17726if ac_fn_c_try_compile "$LINENO"; then :
17727
17728    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17729$as_echo "no" >&6; }
17730    as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17731
17732else
17733
17734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17735$as_echo "yes" >&6; }
17736
17737fi
17738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17739
17740
17741    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17742$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744/* end confdefs.h.  */
17745
17746
17747      typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17748
17749int main (void)
17750{
17751
17752      bad_t dummy;
17753
17754 ;
17755 return 0;
17756}
17757
17758_ACEOF
17759if ac_fn_c_try_compile "$LINENO"; then :
17760
17761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762$as_echo "no" >&6; }
17763    as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17764
17765else
17766
17767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17768$as_echo "yes" >&6; }
17769
17770fi
17771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17772
17773
17774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17775$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17776  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17777/* end confdefs.h.  */
17778
17779
17780#     include <stdlib.h>
17781      int rand(int n);
17782      int rand(int n)
17783      {
17784        if(n)
17785          return ++n;
17786        else
17787          return n;
17788      }
17789
17790int main (void)
17791{
17792
17793      int i[2]={0,0};
17794      int j = rand(i[0]);
17795      if(j)
17796        return j;
17797
17798 ;
17799 return 0;
17800}
17801
17802_ACEOF
17803if ac_fn_c_try_compile "$LINENO"; then :
17804
17805    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17806$as_echo "no" >&6; }
17807    as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17808
17809else
17810
17811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17812$as_echo "yes" >&6; }
17813
17814fi
17815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17816
17817
17818      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17819$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17820  supports_symbol_hiding="no"
17821  symbol_hiding_CFLAGS=""
17822  symbol_hiding_EXTERN=""
17823  tmp_CFLAGS=""
17824  tmp_EXTERN=""
17825  case "$compiler_id" in
17826    CLANG)
17827            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17828      tmp_CFLAGS="-fvisibility=hidden"
17829      supports_symbol_hiding="yes"
17830      ;;
17831    GNU_C)
17832            if test "$compiler_num" -ge "304"; then
17833        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17834          tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17835          tmp_CFLAGS="-fvisibility=hidden"
17836          supports_symbol_hiding="yes"
17837        fi
17838      fi
17839      ;;
17840    INTEL_UNIX_C)
17841            if test "$compiler_num" -ge "900"; then
17842        if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17843          tmp_save_CFLAGS="$CFLAGS"
17844          CFLAGS="$CFLAGS -fvisibility=hidden"
17845          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846/* end confdefs.h.  */
17847
17848
17849#             include <stdio.h>
17850
17851int main (void)
17852{
17853
17854              printf("icc fvisibility bug test");
17855
17856 ;
17857 return 0;
17858}
17859
17860_ACEOF
17861if ac_fn_c_try_link "$LINENO"; then :
17862
17863            tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17864            tmp_CFLAGS="-fvisibility=hidden"
17865            supports_symbol_hiding="yes"
17866
17867fi
17868rm -f core conftest.err conftest.$ac_objext \
17869    conftest$ac_exeext conftest.$ac_ext
17870          CFLAGS="$tmp_save_CFLAGS"
17871        fi
17872      fi
17873      ;;
17874    SUNPRO_C)
17875      if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17876        tmp_EXTERN="__global"
17877        tmp_CFLAGS="-xldscope=hidden"
17878        supports_symbol_hiding="yes"
17879      fi
17880      ;;
17881  esac
17882  if test "$supports_symbol_hiding" = "yes"; then
17883    tmp_save_CFLAGS="$CFLAGS"
17884    CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17885    squeeze CFLAGS
17886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887/* end confdefs.h.  */
17888
17889
17890        $tmp_EXTERN char *dummy(char *buff);
17891        char *dummy(char *buff)
17892        {
17893         if(buff)
17894           return ++buff;
17895         else
17896           return buff;
17897        }
17898
17899int main (void)
17900{
17901
17902        char b[16];
17903        char *r = dummy(&b[0]);
17904        if(r)
17905          return (int)*r;
17906
17907 ;
17908 return 0;
17909}
17910
17911_ACEOF
17912if ac_fn_c_try_compile "$LINENO"; then :
17913
17914      supports_symbol_hiding="yes"
17915      if test -f conftest.err; then
17916        grep 'visibility' conftest.err >/dev/null
17917        if test "$?" -eq "0"; then
17918          supports_symbol_hiding="no"
17919        fi
17920      fi
17921
17922else
17923
17924      supports_symbol_hiding="no"
17925      echo " " >&6
17926      sed 's/^/cc-src: /' conftest.$ac_ext >&6
17927      sed 's/^/cc-err: /' conftest.err >&6
17928      echo " " >&6
17929
17930fi
17931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17932    CFLAGS="$tmp_save_CFLAGS"
17933  fi
17934  if test "$supports_symbol_hiding" = "yes"; then
17935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17936$as_echo "yes" >&6; }
17937    symbol_hiding_CFLAGS="$tmp_CFLAGS"
17938    symbol_hiding_EXTERN="$tmp_EXTERN"
17939  else
17940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17941$as_echo "no" >&6; }
17942  fi
17943
17944
17945
17946      supports_curldebug="unknown"
17947  if test "$want_curldebug" = "yes"; then
17948    if test "x$enable_shared" != "xno" &&
17949      test "x$enable_shared" != "xyes"; then
17950      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
17951$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
17952      supports_curldebug="no"
17953    fi
17954    if test "x$enable_static" != "xno" &&
17955      test "x$enable_static" != "xyes"; then
17956      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
17957$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
17958      supports_curldebug="no"
17959    fi
17960    if test "$supports_curldebug" != "no"; then
17961      if test "$enable_shared" = "yes" &&
17962        test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
17963        supports_curldebug="no"
17964        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
17965$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
17966      fi
17967    fi
17968  fi
17969  #
17970  if test "$want_curldebug" = "yes"; then
17971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
17972$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
17973    test "$supports_curldebug" = "no" || supports_curldebug="yes"
17974    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
17975$as_echo "$supports_curldebug" >&6; }
17976    if test "$supports_curldebug" = "no"; then
17977      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
17978$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
17979      want_curldebug="no"
17980    fi
17981  fi
17982  #
17983  if test "$want_curldebug" = "yes"; then
17984    CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
17985    squeeze CPPFLAGS
17986  fi
17987  if test "$want_debug" = "yes"; then
17988    CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
17989    squeeze CPPFLAGS
17990  fi
17991
17992 if test x$want_curldebug = xyes; then
17993  CURLDEBUG_TRUE=
17994  CURLDEBUG_FALSE='#'
17995else
17996  CURLDEBUG_TRUE='#'
17997  CURLDEBUG_FALSE=
17998fi
17999
18000
18001supports_unittests=yes
18002# cross-compilation of unit tests static library/programs fails when
18003# libcurl shared library is built. This might be due to a libtool or
18004# automake issue. In this case we disable unit tests.
18005if test "x$cross_compiling" != "xno" &&
18006   test "x$enable_shared" != "xno"; then
18007  supports_unittests=no
18008fi
18009
18010# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18011# a problem related with OpenSSL headers and library versions not matching.
18012# Disable unit tests while time to further investigate this is found.
18013case $host in
18014  mips-sgi-irix6.5)
18015    if test "$compiler_id" = "GNU_C"; then
18016      supports_unittests=no
18017    fi
18018    ;;
18019esac
18020
18021# All AIX autobuilds fails unit tests linking against unittests library
18022# due to unittests library being built with no symbols or members. Libtool ?
18023# Disable unit tests while time to further investigate this is found.
18024case $host_os in
18025  aix*)
18026    supports_unittests=no
18027    ;;
18028esac
18029
18030if test "x$want_debug" = "xyes" &&
18031   test "x$supports_unittests" = "xyes"; then
18032  want_unittests=yes
18033else
18034  want_unittests=no
18035fi
18036 if test x$want_unittests = xyes; then
18037  BUILD_UNITTESTS_TRUE=
18038  BUILD_UNITTESTS_FALSE='#'
18039else
18040  BUILD_UNITTESTS_TRUE='#'
18041  BUILD_UNITTESTS_FALSE=
18042fi
18043
18044
18045
18046
18047
18048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18049$as_echo_n "checking for windows.h... " >&6; }
18050if ${ac_cv_header_windows_h+:} false; then :
18051  $as_echo_n "(cached) " >&6
18052else
18053
18054    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055/* end confdefs.h.  */
18056
18057
18058#undef inline
18059#ifndef WIN32_LEAN_AND_MEAN
18060#define WIN32_LEAN_AND_MEAN
18061#endif
18062#include <windows.h>
18063
18064int main (void)
18065{
18066
18067#if defined(__CYGWIN__) || defined(__CEGCC__)
18068        HAVE_WINDOWS_H shall not be defined.
18069#else
18070        int dummy=2*WINVER;
18071#endif
18072
18073 ;
18074 return 0;
18075}
18076
18077_ACEOF
18078if ac_fn_c_try_compile "$LINENO"; then :
18079
18080      ac_cv_header_windows_h="yes"
18081
18082else
18083
18084      ac_cv_header_windows_h="no"
18085
18086fi
18087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088
18089fi
18090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18091$as_echo "$ac_cv_header_windows_h" >&6; }
18092  case "$ac_cv_header_windows_h" in
18093    yes)
18094
18095cat >>confdefs.h <<_ACEOF
18096#define HAVE_WINDOWS_H 1
18097_ACEOF
18098
18099
18100cat >>confdefs.h <<_ACEOF
18101#define WIN32_LEAN_AND_MEAN 1
18102_ACEOF
18103
18104      ;;
18105  esac
18106
18107
18108    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18109$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18110if ${ac_cv_native_windows+:} false; then :
18111  $as_echo_n "(cached) " >&6
18112else
18113
18114    if test "$ac_cv_header_windows_h" = "no"; then
18115      ac_cv_native_windows="no"
18116    else
18117      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118/* end confdefs.h.  */
18119
18120
18121
18122int main (void)
18123{
18124
18125#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18126   (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18127          int dummy=1;
18128#else
18129          Not a native Windows build target.
18130#endif
18131
18132 ;
18133 return 0;
18134}
18135
18136_ACEOF
18137if ac_fn_c_try_compile "$LINENO"; then :
18138
18139        ac_cv_native_windows="yes"
18140
18141else
18142
18143        ac_cv_native_windows="no"
18144
18145fi
18146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147    fi
18148
18149fi
18150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18151$as_echo "$ac_cv_native_windows" >&6; }
18152   if test "x$ac_cv_native_windows" = xyes; then
18153  DOING_NATIVE_WINDOWS_TRUE=
18154  DOING_NATIVE_WINDOWS_FALSE='#'
18155else
18156  DOING_NATIVE_WINDOWS_TRUE='#'
18157  DOING_NATIVE_WINDOWS_FALSE=
18158fi
18159
18160
18161case X-"$ac_cv_native_windows" in
18162  X-yes)
18163
18164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18165$as_echo_n "checking for winsock.h... " >&6; }
18166if ${ac_cv_header_winsock_h+:} false; then :
18167  $as_echo_n "(cached) " >&6
18168else
18169
18170    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171/* end confdefs.h.  */
18172
18173
18174#undef inline
18175#ifndef WIN32_LEAN_AND_MEAN
18176#define WIN32_LEAN_AND_MEAN
18177#endif
18178#include <windows.h>
18179#include <winsock.h>
18180
18181int main (void)
18182{
18183
18184#if defined(__CYGWIN__) || defined(__CEGCC__)
18185        HAVE_WINSOCK_H shall not be defined.
18186#else
18187        int dummy=WSACleanup();
18188#endif
18189
18190 ;
18191 return 0;
18192}
18193
18194_ACEOF
18195if ac_fn_c_try_compile "$LINENO"; then :
18196
18197      ac_cv_header_winsock_h="yes"
18198
18199else
18200
18201      ac_cv_header_winsock_h="no"
18202
18203fi
18204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18205
18206fi
18207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18208$as_echo "$ac_cv_header_winsock_h" >&6; }
18209  case "$ac_cv_header_winsock_h" in
18210    yes)
18211
18212cat >>confdefs.h <<_ACEOF
18213#define HAVE_WINSOCK_H 1
18214_ACEOF
18215
18216      ;;
18217  esac
18218
18219
18220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18221$as_echo_n "checking for winsock2.h... " >&6; }
18222if ${ac_cv_header_winsock2_h+:} false; then :
18223  $as_echo_n "(cached) " >&6
18224else
18225
18226    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227/* end confdefs.h.  */
18228
18229
18230#undef inline
18231#ifndef WIN32_LEAN_AND_MEAN
18232#define WIN32_LEAN_AND_MEAN
18233#endif
18234#include <windows.h>
18235#include <winsock2.h>
18236
18237int main (void)
18238{
18239
18240#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18241        HAVE_WINSOCK2_H shall not be defined.
18242#else
18243        int dummy=2*IPPROTO_ESP;
18244#endif
18245
18246 ;
18247 return 0;
18248}
18249
18250_ACEOF
18251if ac_fn_c_try_compile "$LINENO"; then :
18252
18253      ac_cv_header_winsock2_h="yes"
18254
18255else
18256
18257      ac_cv_header_winsock2_h="no"
18258
18259fi
18260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18261
18262fi
18263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18264$as_echo "$ac_cv_header_winsock2_h" >&6; }
18265  case "$ac_cv_header_winsock2_h" in
18266    yes)
18267
18268cat >>confdefs.h <<_ACEOF
18269#define HAVE_WINSOCK2_H 1
18270_ACEOF
18271
18272      ;;
18273  esac
18274
18275
18276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18277$as_echo_n "checking for ws2tcpip.h... " >&6; }
18278if ${ac_cv_header_ws2tcpip_h+:} false; then :
18279  $as_echo_n "(cached) " >&6
18280else
18281
18282    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283/* end confdefs.h.  */
18284
18285
18286#undef inline
18287#ifndef WIN32_LEAN_AND_MEAN
18288#define WIN32_LEAN_AND_MEAN
18289#endif
18290#include <windows.h>
18291#include <winsock2.h>
18292#include <ws2tcpip.h>
18293
18294int main (void)
18295{
18296
18297#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18298        HAVE_WS2TCPIP_H shall not be defined.
18299#else
18300        int dummy=2*IP_PKTINFO;
18301#endif
18302
18303 ;
18304 return 0;
18305}
18306
18307_ACEOF
18308if ac_fn_c_try_compile "$LINENO"; then :
18309
18310      ac_cv_header_ws2tcpip_h="yes"
18311
18312else
18313
18314      ac_cv_header_ws2tcpip_h="no"
18315
18316fi
18317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18318
18319fi
18320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18321$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18322  case "$ac_cv_header_ws2tcpip_h" in
18323    yes)
18324
18325cat >>confdefs.h <<_ACEOF
18326#define HAVE_WS2TCPIP_H 1
18327_ACEOF
18328
18329      ;;
18330  esac
18331
18332
18333    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18334$as_echo_n "checking for winldap.h... " >&6; }
18335if ${ac_cv_header_winldap_h+:} false; then :
18336  $as_echo_n "(cached) " >&6
18337else
18338
18339    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18340/* end confdefs.h.  */
18341
18342
18343#undef inline
18344#ifdef HAVE_WINDOWS_H
18345#ifndef WIN32_LEAN_AND_MEAN
18346#define WIN32_LEAN_AND_MEAN
18347#endif
18348#include <windows.h>
18349#endif
18350#include <winldap.h>
18351
18352int main (void)
18353{
18354
18355#if defined(__CYGWIN__) || defined(__CEGCC__)
18356        HAVE_WINLDAP_H shall not be defined.
18357#else
18358        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18359        ULONG res = ldap_unbind(ldp);
18360#endif
18361
18362 ;
18363 return 0;
18364}
18365
18366_ACEOF
18367if ac_fn_c_try_compile "$LINENO"; then :
18368
18369      ac_cv_header_winldap_h="yes"
18370
18371else
18372
18373      ac_cv_header_winldap_h="no"
18374
18375fi
18376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18377
18378fi
18379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
18380$as_echo "$ac_cv_header_winldap_h" >&6; }
18381  case "$ac_cv_header_winldap_h" in
18382    yes)
18383
18384cat >>confdefs.h <<_ACEOF
18385#define HAVE_WINLDAP_H 1
18386_ACEOF
18387
18388      ;;
18389  esac
18390
18391
18392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18393$as_echo_n "checking for winber.h... " >&6; }
18394if ${ac_cv_header_winber_h+:} false; then :
18395  $as_echo_n "(cached) " >&6
18396else
18397
18398    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399/* end confdefs.h.  */
18400
18401
18402#undef inline
18403#ifdef HAVE_WINDOWS_H
18404#ifndef WIN32_LEAN_AND_MEAN
18405#define WIN32_LEAN_AND_MEAN
18406#endif
18407#include <windows.h>
18408#endif
18409#include <winldap.h>
18410#include <winber.h>
18411
18412int main (void)
18413{
18414
18415#if defined(__CYGWIN__) || defined(__CEGCC__)
18416        HAVE_WINBER_H shall not be defined.
18417#else
18418        BERVAL *bvp = NULL;
18419        BerElement *bep = ber_init(bvp);
18420        ber_free(bep, 1);
18421#endif
18422
18423 ;
18424 return 0;
18425}
18426
18427_ACEOF
18428if ac_fn_c_try_compile "$LINENO"; then :
18429
18430      ac_cv_header_winber_h="yes"
18431
18432else
18433
18434      ac_cv_header_winber_h="no"
18435
18436fi
18437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18438
18439fi
18440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
18441$as_echo "$ac_cv_header_winber_h" >&6; }
18442  case "$ac_cv_header_winber_h" in
18443    yes)
18444
18445cat >>confdefs.h <<_ACEOF
18446#define HAVE_WINBER_H 1
18447_ACEOF
18448
18449      ;;
18450  esac
18451
18452    ;;
18453  *)
18454    ac_cv_header_winsock_h="no"
18455    ac_cv_header_winsock2_h="no"
18456    ac_cv_header_ws2tcpip_h="no"
18457    ac_cv_header_winldap_h="no"
18458    ac_cv_header_winber_h="no"
18459    ;;
18460esac
18461
18462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18463$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18464  curl_win32_file_api="no"
18465  if test "$ac_cv_header_windows_h" = "yes"; then
18466    if test x"$enable_largefile" != "xno"; then
18467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468/* end confdefs.h.  */
18469
18470
18471
18472int main (void)
18473{
18474
18475#if !defined(_WIN32_WCE) && \
18476    (defined(__MINGW32__) || \
18477    (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18478          int dummy=1;
18479#else
18480          WIN32 large file API not supported.
18481#endif
18482
18483 ;
18484 return 0;
18485}
18486
18487_ACEOF
18488if ac_fn_c_try_compile "$LINENO"; then :
18489
18490        curl_win32_file_api="win32_large_files"
18491
18492fi
18493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18494    fi
18495    if test "$curl_win32_file_api" = "no"; then
18496      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h.  */
18498
18499
18500
18501int main (void)
18502{
18503
18504#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18505          int dummy=1;
18506#else
18507          WIN32 small file API not supported.
18508#endif
18509
18510 ;
18511 return 0;
18512}
18513
18514_ACEOF
18515if ac_fn_c_try_compile "$LINENO"; then :
18516
18517        curl_win32_file_api="win32_small_files"
18518
18519fi
18520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521    fi
18522  fi
18523  case "$curl_win32_file_api" in
18524    win32_large_files)
18525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18526$as_echo "yes (large file enabled)" >&6; }
18527
18528cat >>confdefs.h <<_ACEOF
18529#define USE_WIN32_LARGE_FILES 1
18530_ACEOF
18531
18532      ;;
18533    win32_small_files)
18534      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18535$as_echo "yes (large file disabled)" >&6; }
18536
18537cat >>confdefs.h <<_ACEOF
18538#define USE_WIN32_SMALL_FILES 1
18539_ACEOF
18540
18541      ;;
18542    *)
18543      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18544$as_echo "no" >&6; }
18545      ;;
18546  esac
18547
18548
18549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
18550$as_echo_n "checking whether to support http... " >&6; }
18551# Check whether --enable-http was given.
18552if test "${enable_http+set}" = set; then :
18553  enableval=$enable_http;  case "$enableval" in
18554  no)
18555       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18556$as_echo "no" >&6; }
18557
18558$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
18559
18560       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
18561$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
18562       CURL_DISABLE_HTTP=1
18563
18564
18565$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18566
18567       CURL_DISABLE_RTSP=1
18568
18569       ;;
18570  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18571$as_echo "yes" >&6; }
18572       ;;
18573  esac
18574else
18575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18576$as_echo "yes" >&6; }
18577
18578fi
18579
18580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
18581$as_echo_n "checking whether to support ftp... " >&6; }
18582# Check whether --enable-ftp was given.
18583if test "${enable_ftp+set}" = set; then :
18584  enableval=$enable_ftp;  case "$enableval" in
18585  no)
18586       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18587$as_echo "no" >&6; }
18588
18589$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
18590
18591       CURL_DISABLE_FTP=1
18592
18593       ;;
18594  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18595$as_echo "yes" >&6; }
18596       ;;
18597  esac
18598else
18599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18600$as_echo "yes" >&6; }
18601
18602fi
18603
18604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
18605$as_echo_n "checking whether to support file... " >&6; }
18606# Check whether --enable-file was given.
18607if test "${enable_file+set}" = set; then :
18608  enableval=$enable_file;  case "$enableval" in
18609  no)
18610       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18611$as_echo "no" >&6; }
18612
18613$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
18614
18615       CURL_DISABLE_FILE=1
18616
18617       ;;
18618  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18619$as_echo "yes" >&6; }
18620       ;;
18621  esac
18622else
18623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18624$as_echo "yes" >&6; }
18625
18626fi
18627
18628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
18629$as_echo_n "checking whether to support ldap... " >&6; }
18630# Check whether --enable-ldap was given.
18631if test "${enable_ldap+set}" = set; then :
18632  enableval=$enable_ldap;  case "$enableval" in
18633  no)
18634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635$as_echo "no" >&6; }
18636
18637$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18638
18639       CURL_DISABLE_LDAP=1
18640
18641       ;;
18642  *)
18643       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18644$as_echo "yes" >&6; }
18645       ;;
18646  esac
18647else
18648
18649       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18650$as_echo "yes" >&6; }
18651
18652fi
18653
18654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
18655$as_echo_n "checking whether to support ldaps... " >&6; }
18656# Check whether --enable-ldaps was given.
18657if test "${enable_ldaps+set}" = set; then :
18658  enableval=$enable_ldaps;  case "$enableval" in
18659  no)
18660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661$as_echo "no" >&6; }
18662
18663$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18664
18665       CURL_DISABLE_LDAPS=1
18666
18667       ;;
18668  *)   if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
18670$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
18671
18672$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18673
18674         CURL_DISABLE_LDAPS=1
18675
18676       else
18677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18678$as_echo "yes" >&6; }
18679
18680$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18681
18682         HAVE_LDAP_SSL=1
18683
18684       fi
18685       ;;
18686  esac
18687else
18688
18689       if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18690         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18691$as_echo "no" >&6; }
18692
18693$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18694
18695         CURL_DISABLE_LDAPS=1
18696
18697       else
18698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18699$as_echo "yes" >&6; }
18700
18701$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18702
18703         HAVE_LDAP_SSL=1
18704
18705       fi
18706
18707fi
18708
18709
18710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
18711$as_echo_n "checking whether to support rtsp... " >&6; }
18712# Check whether --enable-rtsp was given.
18713if test "${enable_rtsp+set}" = set; then :
18714  enableval=$enable_rtsp;  case "$enableval" in
18715  no)
18716       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18717$as_echo "no" >&6; }
18718
18719$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18720
18721       CURL_DISABLE_RTSP=1
18722
18723       ;;
18724  *)   if test x$CURL_DISABLE_HTTP = x1 ; then
18725          as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
18726       else
18727          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18728$as_echo "yes" >&6; }
18729          curl_rtsp_msg="enabled"
18730       fi
18731       ;;
18732  esac
18733else
18734  if test "x$CURL_DISABLE_HTTP" != "x1"; then
18735          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18736$as_echo "yes" >&6; }
18737          curl_rtsp_msg="enabled"
18738       else
18739          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18740$as_echo "no" >&6; }
18741       fi
18742
18743fi
18744
18745
18746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
18747$as_echo_n "checking whether to support proxies... " >&6; }
18748# Check whether --enable-proxy was given.
18749if test "${enable_proxy+set}" = set; then :
18750  enableval=$enable_proxy;  case "$enableval" in
18751  no)
18752       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753$as_echo "no" >&6; }
18754
18755$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
18756
18757       CURL_DISABLE_PROXY=1
18758
18759       ;;
18760  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18761$as_echo "yes" >&6; }
18762       ;;
18763  esac
18764else
18765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18766$as_echo "yes" >&6; }
18767
18768fi
18769
18770
18771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
18772$as_echo_n "checking whether to support dict... " >&6; }
18773# Check whether --enable-dict was given.
18774if test "${enable_dict+set}" = set; then :
18775  enableval=$enable_dict;  case "$enableval" in
18776  no)
18777       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18778$as_echo "no" >&6; }
18779
18780$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
18781
18782       CURL_DISABLE_DICT=1
18783
18784       ;;
18785  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18786$as_echo "yes" >&6; }
18787       ;;
18788  esac
18789else
18790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18791$as_echo "yes" >&6; }
18792
18793fi
18794
18795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
18796$as_echo_n "checking whether to support telnet... " >&6; }
18797# Check whether --enable-telnet was given.
18798if test "${enable_telnet+set}" = set; then :
18799  enableval=$enable_telnet;  case "$enableval" in
18800  no)
18801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802$as_echo "no" >&6; }
18803
18804$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
18805
18806       CURL_DISABLE_TELNET=1
18807
18808       ;;
18809  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18810$as_echo "yes" >&6; }
18811       ;;
18812  esac
18813else
18814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18815$as_echo "yes" >&6; }
18816
18817fi
18818
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
18820$as_echo_n "checking whether to support tftp... " >&6; }
18821# Check whether --enable-tftp was given.
18822if test "${enable_tftp+set}" = set; then :
18823  enableval=$enable_tftp;  case "$enableval" in
18824  no)
18825       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826$as_echo "no" >&6; }
18827
18828$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
18829
18830       CURL_DISABLE_TFTP=1
18831
18832       ;;
18833  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18834$as_echo "yes" >&6; }
18835       ;;
18836  esac
18837else
18838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18839$as_echo "yes" >&6; }
18840
18841fi
18842
18843
18844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
18845$as_echo_n "checking whether to support pop3... " >&6; }
18846# Check whether --enable-pop3 was given.
18847if test "${enable_pop3+set}" = set; then :
18848  enableval=$enable_pop3;  case "$enableval" in
18849  no)
18850       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18851$as_echo "no" >&6; }
18852
18853$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
18854
18855       CURL_DISABLE_POP3=1
18856
18857       ;;
18858  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18859$as_echo "yes" >&6; }
18860       ;;
18861  esac
18862else
18863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18864$as_echo "yes" >&6; }
18865
18866fi
18867
18868
18869
18870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
18871$as_echo_n "checking whether to support imap... " >&6; }
18872# Check whether --enable-imap was given.
18873if test "${enable_imap+set}" = set; then :
18874  enableval=$enable_imap;  case "$enableval" in
18875  no)
18876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18877$as_echo "no" >&6; }
18878
18879$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
18880
18881       CURL_DISABLE_IMAP=1
18882
18883       ;;
18884  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18885$as_echo "yes" >&6; }
18886       ;;
18887  esac
18888else
18889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18890$as_echo "yes" >&6; }
18891
18892fi
18893
18894
18895
18896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
18897$as_echo_n "checking whether to support smtp... " >&6; }
18898# Check whether --enable-smtp was given.
18899if test "${enable_smtp+set}" = set; then :
18900  enableval=$enable_smtp;  case "$enableval" in
18901  no)
18902       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18903$as_echo "no" >&6; }
18904
18905$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
18906
18907       CURL_DISABLE_SMTP=1
18908
18909       ;;
18910  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18911$as_echo "yes" >&6; }
18912       ;;
18913  esac
18914else
18915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18916$as_echo "yes" >&6; }
18917
18918fi
18919
18920
18921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
18922$as_echo_n "checking whether to support gopher... " >&6; }
18923# Check whether --enable-gopher was given.
18924if test "${enable_gopher+set}" = set; then :
18925  enableval=$enable_gopher;  case "$enableval" in
18926  no)
18927       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18928$as_echo "no" >&6; }
18929
18930$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
18931
18932       CURL_DISABLE_GOPHER=1
18933
18934       ;;
18935  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18936$as_echo "yes" >&6; }
18937       ;;
18938  esac
18939else
18940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18941$as_echo "yes" >&6; }
18942
18943fi
18944
18945
18946
18947
18948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
18949$as_echo_n "checking whether to provide built-in manual... " >&6; }
18950# Check whether --enable-manual was given.
18951if test "${enable_manual+set}" = set; then :
18952  enableval=$enable_manual;  case "$enableval" in
18953  no)
18954       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18955$as_echo "no" >&6; }
18956       ;;
18957  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18958$as_echo "yes" >&6; }
18959       USE_MANUAL="1"
18960       ;;
18961  esac
18962else
18963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18964$as_echo "yes" >&6; }
18965       USE_MANUAL="1"
18966
18967fi
18968
18969
18970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
18971$as_echo_n "checking whether to enable generation of C code... " >&6; }
18972# Check whether --enable-libcurl_option was given.
18973if test "${enable_libcurl_option+set}" = set; then :
18974  enableval=$enable_libcurl_option;  case "$enableval" in
18975  no)
18976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977$as_echo "no" >&6; }
18978
18979$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
18980
18981       curl_libcurl_msg="no"
18982       ;;
18983  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18984$as_echo "yes" >&6; }
18985       ;;
18986  esac
18987else
18988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18989$as_echo "yes" >&6; }
18990
18991fi
18992
18993
18994
18995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
18996$as_echo_n "checking whether to use libgcc... " >&6; }
18997# Check whether --enable-libgcc was given.
18998if test "${enable_libgcc+set}" = set; then :
18999  enableval=$enable_libgcc;  case "$enableval" in
19000  yes)
19001       LIBS="-lgcc $LIBS"
19002       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19003$as_echo "yes" >&6; }
19004       ;;
19005  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006$as_echo "no" >&6; }
19007       ;;
19008  esac
19009else
19010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011$as_echo "no" >&6; }
19012
19013fi
19014
19015
19016
19017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19018$as_echo_n "checking if X/Open network library is required... " >&6; }
19019  tst_lib_xnet_required="no"
19020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19021/* end confdefs.h.  */
19022
19023
19024int main (void)
19025{
19026#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19027  return 0;
19028#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19029  return 0;
19030#else
19031  force compilation error
19032#endif
19033}
19034
19035
19036_ACEOF
19037if ac_fn_c_try_compile "$LINENO"; then :
19038
19039    tst_lib_xnet_required="yes"
19040    LIBS="-lxnet $LIBS"
19041
19042fi
19043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19045$as_echo "$tst_lib_xnet_required" >&6; }
19046
19047
19048ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19049if test "x$ac_cv_func_gethostbyname" = xyes; then :
19050  HAVE_GETHOSTBYNAME="1"
19051
19052else
19053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19054$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19055if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19056  $as_echo_n "(cached) " >&6
19057else
19058  ac_check_lib_save_LIBS=$LIBS
19059LIBS="-lnsl  $LIBS"
19060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061/* end confdefs.h.  */
19062
19063
19064#ifdef __cplusplus
19065extern "C"
19066#endif
19067char gethostbyname ();
19068int main (void)
19069{
19070return gethostbyname ();
19071 ;
19072 return 0;
19073}
19074_ACEOF
19075if ac_fn_c_try_link "$LINENO"; then :
19076  ac_cv_lib_nsl_gethostbyname=yes
19077else
19078  ac_cv_lib_nsl_gethostbyname=no
19079fi
19080rm -f core conftest.err conftest.$ac_objext \
19081    conftest$ac_exeext conftest.$ac_ext
19082LIBS=$ac_check_lib_save_LIBS
19083fi
19084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19085$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19086if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19087  HAVE_GETHOSTBYNAME="1"
19088                             LIBS="-lnsl $LIBS"
19089
19090fi
19091
19092
19093fi
19094
19095
19096if test "$HAVE_GETHOSTBYNAME" != "1"
19097then
19098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19099$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19100if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19101  $as_echo_n "(cached) " >&6
19102else
19103  ac_check_lib_save_LIBS=$LIBS
19104LIBS="-lsocket  $LIBS"
19105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19106/* end confdefs.h.  */
19107
19108
19109#ifdef __cplusplus
19110extern "C"
19111#endif
19112char gethostbyname ();
19113int main (void)
19114{
19115return gethostbyname ();
19116 ;
19117 return 0;
19118}
19119_ACEOF
19120if ac_fn_c_try_link "$LINENO"; then :
19121  ac_cv_lib_socket_gethostbyname=yes
19122else
19123  ac_cv_lib_socket_gethostbyname=no
19124fi
19125rm -f core conftest.err conftest.$ac_objext \
19126    conftest$ac_exeext conftest.$ac_ext
19127LIBS=$ac_check_lib_save_LIBS
19128fi
19129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19130$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19131if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19132  HAVE_GETHOSTBYNAME="1"
19133               LIBS="-lsocket $LIBS"
19134
19135fi
19136
19137fi
19138
19139if test "$HAVE_GETHOSTBYNAME" != "1"
19140then
19141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19142$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19143if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19144  $as_echo_n "(cached) " >&6
19145else
19146  ac_check_lib_save_LIBS=$LIBS
19147LIBS="-lwatt  $LIBS"
19148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149/* end confdefs.h.  */
19150
19151
19152#ifdef __cplusplus
19153extern "C"
19154#endif
19155char gethostbyname ();
19156int main (void)
19157{
19158return gethostbyname ();
19159 ;
19160 return 0;
19161}
19162_ACEOF
19163if ac_fn_c_try_link "$LINENO"; then :
19164  ac_cv_lib_watt_gethostbyname=yes
19165else
19166  ac_cv_lib_watt_gethostbyname=no
19167fi
19168rm -f core conftest.err conftest.$ac_objext \
19169    conftest$ac_exeext conftest.$ac_ext
19170LIBS=$ac_check_lib_save_LIBS
19171fi
19172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19173$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19174if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19175  HAVE_GETHOSTBYNAME="1"
19176               CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19177               LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19178               LIBS="-lwatt $LIBS"
19179
19180fi
19181
19182fi
19183
19184if test "$HAVE_GETHOSTBYNAME" != "1"
19185then
19186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19187$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19188  my_ac_save_LIBS=$LIBS
19189  LIBS="-lnsl -lsocket $LIBS"
19190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191/* end confdefs.h.  */
19192
19193
19194
19195int main (void)
19196{
19197
19198      gethostbyname();
19199
19200 ;
19201 return 0;
19202}
19203
19204_ACEOF
19205if ac_fn_c_try_link "$LINENO"; then :
19206
19207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19208$as_echo "yes" >&6; }
19209    HAVE_GETHOSTBYNAME="1"
19210
19211else
19212
19213    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19214$as_echo "no" >&6; }
19215    LIBS=$my_ac_save_LIBS
19216
19217fi
19218rm -f core conftest.err conftest.$ac_objext \
19219    conftest$ac_exeext conftest.$ac_ext
19220fi
19221
19222if test "$HAVE_GETHOSTBYNAME" != "1"
19223then
19224    if test "$ac_cv_header_windows_h" = "yes"; then
19225    if test "$ac_cv_header_winsock_h" = "yes"; then
19226      case $host in
19227        *-*-mingw32ce*)
19228          winsock_LIB="-lwinsock"
19229          ;;
19230        *)
19231          winsock_LIB="-lwsock32"
19232          ;;
19233      esac
19234    fi
19235    if test "$ac_cv_header_winsock2_h" = "yes"; then
19236      winsock_LIB="-lws2_32"
19237    fi
19238    if test ! -z "$winsock_LIB"; then
19239      my_ac_save_LIBS=$LIBS
19240      LIBS="$winsock_LIB $LIBS"
19241      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19242$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244/* end confdefs.h.  */
19245
19246
19247#ifdef HAVE_WINDOWS_H
19248#ifndef WIN32_LEAN_AND_MEAN
19249#define WIN32_LEAN_AND_MEAN
19250#endif
19251#include <windows.h>
19252#ifdef HAVE_WINSOCK2_H
19253#include <winsock2.h>
19254#else
19255#ifdef HAVE_WINSOCK_H
19256#include <winsock.h>
19257#endif
19258#endif
19259#endif
19260
19261int main (void)
19262{
19263
19264          gethostbyname("www.dummysite.com");
19265
19266 ;
19267 return 0;
19268}
19269
19270_ACEOF
19271if ac_fn_c_try_link "$LINENO"; then :
19272
19273        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19274$as_echo "yes" >&6; }
19275        HAVE_GETHOSTBYNAME="1"
19276
19277else
19278
19279        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19280$as_echo "no" >&6; }
19281        winsock_LIB=""
19282        LIBS=$my_ac_save_LIBS
19283
19284fi
19285rm -f core conftest.err conftest.$ac_objext \
19286    conftest$ac_exeext conftest.$ac_ext
19287    fi
19288  fi
19289fi
19290
19291if test "$HAVE_GETHOSTBYNAME" != "1"
19292then
19293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19294$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19296/* end confdefs.h.  */
19297
19298
19299/* Older Minix versions may need <net/gen/netdb.h> here instead */
19300#include <netdb.h>
19301
19302int main (void)
19303{
19304
19305      gethostbyname("www.dummysite.com");
19306
19307 ;
19308 return 0;
19309}
19310
19311_ACEOF
19312if ac_fn_c_try_link "$LINENO"; then :
19313
19314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19315$as_echo "yes" >&6; }
19316    HAVE_GETHOSTBYNAME="1"
19317
19318else
19319
19320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321$as_echo "no" >&6; }
19322
19323fi
19324rm -f core conftest.err conftest.$ac_objext \
19325    conftest$ac_exeext conftest.$ac_ext
19326fi
19327
19328if test "$HAVE_GETHOSTBYNAME" != "1"
19329then
19330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19331$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333/* end confdefs.h.  */
19334
19335
19336#include <stdio.h>
19337#include <netdb.h>
19338
19339int main (void)
19340{
19341
19342      gethostbyname("www.dummysite.com");
19343
19344 ;
19345 return 0;
19346}
19347
19348_ACEOF
19349if ac_fn_c_try_link "$LINENO"; then :
19350
19351    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19352$as_echo "yes" >&6; }
19353    HAVE_GETHOSTBYNAME="1"
19354
19355else
19356
19357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19358$as_echo "no" >&6; }
19359
19360fi
19361rm -f core conftest.err conftest.$ac_objext \
19362    conftest$ac_exeext conftest.$ac_ext
19363fi
19364
19365if test "$HAVE_GETHOSTBYNAME" != "1"
19366then
19367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19368$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19369if ${ac_cv_lib_network_gethostbyname+:} false; then :
19370  $as_echo_n "(cached) " >&6
19371else
19372  ac_check_lib_save_LIBS=$LIBS
19373LIBS="-lnetwork  $LIBS"
19374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19375/* end confdefs.h.  */
19376
19377
19378#ifdef __cplusplus
19379extern "C"
19380#endif
19381char gethostbyname ();
19382int main (void)
19383{
19384return gethostbyname ();
19385 ;
19386 return 0;
19387}
19388_ACEOF
19389if ac_fn_c_try_link "$LINENO"; then :
19390  ac_cv_lib_network_gethostbyname=yes
19391else
19392  ac_cv_lib_network_gethostbyname=no
19393fi
19394rm -f core conftest.err conftest.$ac_objext \
19395    conftest$ac_exeext conftest.$ac_ext
19396LIBS=$ac_check_lib_save_LIBS
19397fi
19398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19399$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19400if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19401  HAVE_GETHOSTBYNAME="1"
19402               LIBS="-lnetwork $LIBS"
19403
19404fi
19405
19406fi
19407
19408if test "$HAVE_GETHOSTBYNAME" != "1"
19409then
19410    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19411$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19412if ${ac_cv_lib_net_gethostbyname+:} false; then :
19413  $as_echo_n "(cached) " >&6
19414else
19415  ac_check_lib_save_LIBS=$LIBS
19416LIBS="-lnet  $LIBS"
19417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418/* end confdefs.h.  */
19419
19420
19421#ifdef __cplusplus
19422extern "C"
19423#endif
19424char gethostbyname ();
19425int main (void)
19426{
19427return gethostbyname ();
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432if ac_fn_c_try_link "$LINENO"; then :
19433  ac_cv_lib_net_gethostbyname=yes
19434else
19435  ac_cv_lib_net_gethostbyname=no
19436fi
19437rm -f core conftest.err conftest.$ac_objext \
19438    conftest$ac_exeext conftest.$ac_ext
19439LIBS=$ac_check_lib_save_LIBS
19440fi
19441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19442$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19443if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19444  HAVE_GETHOSTBYNAME="1"
19445               LIBS="-lnet $LIBS"
19446
19447fi
19448
19449fi
19450
19451
19452if test "$HAVE_GETHOSTBYNAME" != "1"; then
19453  as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19454fi
19455
19456ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19457if test "x$ac_cv_func_strcasecmp" = xyes; then :
19458
19459else
19460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19461$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19462if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19463  $as_echo_n "(cached) " >&6
19464else
19465  ac_check_lib_save_LIBS=$LIBS
19466LIBS="-lresolve  $LIBS"
19467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468/* end confdefs.h.  */
19469
19470
19471#ifdef __cplusplus
19472extern "C"
19473#endif
19474char strcasecmp ();
19475int main (void)
19476{
19477return strcasecmp ();
19478 ;
19479 return 0;
19480}
19481_ACEOF
19482if ac_fn_c_try_link "$LINENO"; then :
19483  ac_cv_lib_resolve_strcasecmp=yes
19484else
19485  ac_cv_lib_resolve_strcasecmp=no
19486fi
19487rm -f core conftest.err conftest.$ac_objext \
19488    conftest$ac_exeext conftest.$ac_ext
19489LIBS=$ac_check_lib_save_LIBS
19490fi
19491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19492$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19493if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19494  cat >>confdefs.h <<_ACEOF
19495#define HAVE_LIBRESOLVE 1
19496_ACEOF
19497
19498  LIBS="-lresolve $LIBS"
19499
19500fi
19501
19502fi
19503
19504
19505if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
19506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19507$as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19508if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19509  $as_echo_n "(cached) " >&6
19510else
19511  ac_check_lib_save_LIBS=$LIBS
19512LIBS="-lresolve -lnsl $LIBS"
19513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514/* end confdefs.h.  */
19515
19516
19517#ifdef __cplusplus
19518extern "C"
19519#endif
19520char strcasecmp ();
19521int main (void)
19522{
19523return strcasecmp ();
19524 ;
19525 return 0;
19526}
19527_ACEOF
19528if ac_fn_c_try_link "$LINENO"; then :
19529  ac_cv_lib_resolve_strcasecmp=yes
19530else
19531  ac_cv_lib_resolve_strcasecmp=no
19532fi
19533rm -f core conftest.err conftest.$ac_objext \
19534    conftest$ac_exeext conftest.$ac_ext
19535LIBS=$ac_check_lib_save_LIBS
19536fi
19537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19538$as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19539if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19540  LIBS="-lresolve $LIBS"
19541fi
19542
19543fi
19544ac_cv_func_strcasecmp="no"
19545
19546
19547curl_includes_winsock2="\
19548/* includes start */
19549#ifdef HAVE_WINDOWS_H
19550#  ifndef WIN32_LEAN_AND_MEAN
19551#    define WIN32_LEAN_AND_MEAN
19552#  endif
19553#  include <windows.h>
19554#  ifdef HAVE_WINSOCK2_H
19555#    include <winsock2.h>
19556#  else
19557#    ifdef HAVE_WINSOCK_H
19558#      include <winsock.h>
19559#    endif
19560#  endif
19561#endif
19562/* includes end */"
19563
19564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19565$as_echo_n "checking for windows.h... " >&6; }
19566if ${ac_cv_header_windows_h+:} false; then :
19567  $as_echo_n "(cached) " >&6
19568else
19569
19570    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571/* end confdefs.h.  */
19572
19573
19574#undef inline
19575#ifndef WIN32_LEAN_AND_MEAN
19576#define WIN32_LEAN_AND_MEAN
19577#endif
19578#include <windows.h>
19579
19580int main (void)
19581{
19582
19583#if defined(__CYGWIN__) || defined(__CEGCC__)
19584        HAVE_WINDOWS_H shall not be defined.
19585#else
19586        int dummy=2*WINVER;
19587#endif
19588
19589 ;
19590 return 0;
19591}
19592
19593_ACEOF
19594if ac_fn_c_try_compile "$LINENO"; then :
19595
19596      ac_cv_header_windows_h="yes"
19597
19598else
19599
19600      ac_cv_header_windows_h="no"
19601
19602fi
19603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19604
19605fi
19606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19607$as_echo "$ac_cv_header_windows_h" >&6; }
19608  case "$ac_cv_header_windows_h" in
19609    yes)
19610
19611cat >>confdefs.h <<_ACEOF
19612#define HAVE_WINDOWS_H 1
19613_ACEOF
19614
19615
19616cat >>confdefs.h <<_ACEOF
19617#define WIN32_LEAN_AND_MEAN 1
19618_ACEOF
19619
19620      ;;
19621  esac
19622
19623
19624    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19625$as_echo_n "checking for winsock.h... " >&6; }
19626if ${ac_cv_header_winsock_h+:} false; then :
19627  $as_echo_n "(cached) " >&6
19628else
19629
19630    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19631/* end confdefs.h.  */
19632
19633
19634#undef inline
19635#ifndef WIN32_LEAN_AND_MEAN
19636#define WIN32_LEAN_AND_MEAN
19637#endif
19638#include <windows.h>
19639#include <winsock.h>
19640
19641int main (void)
19642{
19643
19644#if defined(__CYGWIN__) || defined(__CEGCC__)
19645        HAVE_WINSOCK_H shall not be defined.
19646#else
19647        int dummy=WSACleanup();
19648#endif
19649
19650 ;
19651 return 0;
19652}
19653
19654_ACEOF
19655if ac_fn_c_try_compile "$LINENO"; then :
19656
19657      ac_cv_header_winsock_h="yes"
19658
19659else
19660
19661      ac_cv_header_winsock_h="no"
19662
19663fi
19664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19665
19666fi
19667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
19668$as_echo "$ac_cv_header_winsock_h" >&6; }
19669  case "$ac_cv_header_winsock_h" in
19670    yes)
19671
19672cat >>confdefs.h <<_ACEOF
19673#define HAVE_WINSOCK_H 1
19674_ACEOF
19675
19676      ;;
19677  esac
19678
19679
19680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19681$as_echo_n "checking for winsock2.h... " >&6; }
19682if ${ac_cv_header_winsock2_h+:} false; then :
19683  $as_echo_n "(cached) " >&6
19684else
19685
19686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19687/* end confdefs.h.  */
19688
19689
19690#undef inline
19691#ifndef WIN32_LEAN_AND_MEAN
19692#define WIN32_LEAN_AND_MEAN
19693#endif
19694#include <windows.h>
19695#include <winsock2.h>
19696
19697int main (void)
19698{
19699
19700#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19701        HAVE_WINSOCK2_H shall not be defined.
19702#else
19703        int dummy=2*IPPROTO_ESP;
19704#endif
19705
19706 ;
19707 return 0;
19708}
19709
19710_ACEOF
19711if ac_fn_c_try_compile "$LINENO"; then :
19712
19713      ac_cv_header_winsock2_h="yes"
19714
19715else
19716
19717      ac_cv_header_winsock2_h="no"
19718
19719fi
19720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19721
19722fi
19723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19724$as_echo "$ac_cv_header_winsock2_h" >&6; }
19725  case "$ac_cv_header_winsock2_h" in
19726    yes)
19727
19728cat >>confdefs.h <<_ACEOF
19729#define HAVE_WINSOCK2_H 1
19730_ACEOF
19731
19732      ;;
19733  esac
19734
19735
19736
19737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
19738$as_echo_n "checking for connect in libraries... " >&6; }
19739  tst_connect_save_LIBS="$LIBS"
19740  tst_connect_need_LIBS="unknown"
19741  for tst_lib in '' '-lsocket' ; do
19742    if test "$tst_connect_need_LIBS" = "unknown"; then
19743      LIBS="$tst_lib $tst_connect_save_LIBS"
19744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745/* end confdefs.h.  */
19746
19747
19748          $curl_includes_winsock2
19749          #ifndef HAVE_WINDOWS_H
19750            int connect(int, void*, int);
19751          #endif
19752
19753int main (void)
19754{
19755
19756          if(0 != connect(0, 0, 0))
19757            return 1;
19758
19759 ;
19760 return 0;
19761}
19762
19763_ACEOF
19764if ac_fn_c_try_link "$LINENO"; then :
19765
19766        tst_connect_need_LIBS="$tst_lib"
19767
19768fi
19769rm -f core conftest.err conftest.$ac_objext \
19770    conftest$ac_exeext conftest.$ac_ext
19771    fi
19772  done
19773  LIBS="$tst_connect_save_LIBS"
19774  #
19775  case X-"$tst_connect_need_LIBS" in
19776    X-unknown)
19777      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19778$as_echo "cannot find connect" >&6; }
19779      as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19780      ;;
19781    X-)
19782      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19783$as_echo "yes" >&6; }
19784      ;;
19785    *)
19786      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19787$as_echo "$tst_connect_need_LIBS" >&6; }
19788      LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19789      ;;
19790  esac
19791
19792
19793CURL_NETWORK_LIBS=$LIBS
19794
19795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19796$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19797if ${ac_cv_header_time+:} false; then :
19798  $as_echo_n "(cached) " >&6
19799else
19800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19801/* end confdefs.h.  */
19802#include <sys/types.h>
19803#include <sys/time.h>
19804#include <time.h>
19805
19806int main (void)
19807{
19808if ((struct tm *) 0)
19809return 0;
19810 ;
19811 return 0;
19812}
19813_ACEOF
19814if ac_fn_c_try_compile "$LINENO"; then :
19815  ac_cv_header_time=yes
19816else
19817  ac_cv_header_time=no
19818fi
19819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820fi
19821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19822$as_echo "$ac_cv_header_time" >&6; }
19823if test $ac_cv_header_time = yes; then
19824
19825$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19826
19827fi
19828
19829
19830    for ac_header in sys/types.h sys/time.h time.h
19831do :
19832  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19833ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19834if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19835  cat >>confdefs.h <<_ACEOF
19836#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19837_ACEOF
19838
19839fi
19840
19841done
19842
19843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19844$as_echo_n "checking for monotonic clock_gettime... " >&6; }
19845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846/* end confdefs.h.  */
19847
19848
19849#ifdef HAVE_SYS_TYPES_H
19850#include <sys/types.h>
19851#endif
19852#ifdef HAVE_SYS_TIME_H
19853#include <sys/time.h>
19854#ifdef TIME_WITH_SYS_TIME
19855#include <time.h>
19856#endif
19857#else
19858#ifdef HAVE_TIME_H
19859#include <time.h>
19860#endif
19861#endif
19862
19863int main (void)
19864{
19865
19866      struct timespec ts;
19867      (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19868
19869 ;
19870 return 0;
19871}
19872
19873_ACEOF
19874if ac_fn_c_try_compile "$LINENO"; then :
19875
19876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19877$as_echo "yes" >&6; }
19878    ac_cv_func_clock_gettime="yes"
19879
19880else
19881
19882    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19883$as_echo "no" >&6; }
19884    ac_cv_func_clock_gettime="no"
19885
19886fi
19887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19888
19889
19890    #
19891  if test "$ac_cv_func_clock_gettime" = "yes"; then
19892    #
19893    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
19894$as_echo_n "checking for clock_gettime in libraries... " >&6; }
19895    #
19896    curl_cv_save_LIBS="$LIBS"
19897    curl_cv_gclk_LIBS="unknown"
19898    #
19899    for x_xlibs in '' '-lrt' '-lposix4' ; do
19900      if test "$curl_cv_gclk_LIBS" = "unknown"; then
19901        if test -z "$x_xlibs"; then
19902          LIBS="$curl_cv_save_LIBS"
19903        else
19904          LIBS="$x_xlibs $curl_cv_save_LIBS"
19905        fi
19906        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19907/* end confdefs.h.  */
19908
19909
19910#ifdef HAVE_SYS_TYPES_H
19911#include <sys/types.h>
19912#endif
19913#ifdef HAVE_SYS_TIME_H
19914#include <sys/time.h>
19915#ifdef TIME_WITH_SYS_TIME
19916#include <time.h>
19917#endif
19918#else
19919#ifdef HAVE_TIME_H
19920#include <time.h>
19921#endif
19922#endif
19923
19924int main (void)
19925{
19926
19927            struct timespec ts;
19928            (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19929
19930 ;
19931 return 0;
19932}
19933
19934_ACEOF
19935if ac_fn_c_try_link "$LINENO"; then :
19936
19937          curl_cv_gclk_LIBS="$x_xlibs"
19938
19939fi
19940rm -f core conftest.err conftest.$ac_objext \
19941    conftest$ac_exeext conftest.$ac_ext
19942      fi
19943    done
19944    #
19945    LIBS="$curl_cv_save_LIBS"
19946    #
19947    case X-"$curl_cv_gclk_LIBS" in
19948      X-unknown)
19949        { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
19950$as_echo "cannot find clock_gettime" >&6; }
19951        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
19952$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
19953        ac_cv_func_clock_gettime="no"
19954        ;;
19955      X-)
19956        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
19957$as_echo "no additional lib required" >&6; }
19958        ac_cv_func_clock_gettime="yes"
19959        ;;
19960      *)
19961        if test -z "$curl_cv_save_LIBS"; then
19962          LIBS="$curl_cv_gclk_LIBS"
19963        else
19964          LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
19965        fi
19966        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
19967$as_echo "$curl_cv_gclk_LIBS" >&6; }
19968        ac_cv_func_clock_gettime="yes"
19969        ;;
19970    esac
19971    #
19972        if test "x$cross_compiling" != "xyes" &&
19973      test "$ac_cv_func_clock_gettime" = "yes"; then
19974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
19975$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
19976      if test "$cross_compiling" = yes; then :
19977  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19979as_fn_error $? "cannot run test program while cross compiling
19980See \`config.log' for more details" "$LINENO" 5; }
19981else
19982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983/* end confdefs.h.  */
19984
19985
19986#ifdef HAVE_STDLIB_H
19987#include <stdlib.h>
19988#endif
19989#ifdef HAVE_SYS_TYPES_H
19990#include <sys/types.h>
19991#endif
19992#ifdef HAVE_SYS_TIME_H
19993#include <sys/time.h>
19994#ifdef TIME_WITH_SYS_TIME
19995#include <time.h>
19996#endif
19997#else
19998#ifdef HAVE_TIME_H
19999#include <time.h>
20000#endif
20001#endif
20002
20003int main (void)
20004{
20005
20006          struct timespec ts;
20007          if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20008            exit(0);
20009          else
20010            exit(1);
20011
20012 ;
20013 return 0;
20014}
20015
20016_ACEOF
20017if ac_fn_c_try_run "$LINENO"; then :
20018
20019        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20020$as_echo "yes" >&6; }
20021
20022else
20023
20024        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20025$as_echo "no" >&6; }
20026        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20027$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20028        ac_cv_func_clock_gettime="no"
20029        LIBS="$curl_cv_save_LIBS"
20030
20031fi
20032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20033  conftest.$ac_objext conftest.beam conftest.$ac_ext
20034fi
20035
20036    fi
20037    #
20038    case "$ac_cv_func_clock_gettime" in
20039      yes)
20040
20041cat >>confdefs.h <<_ACEOF
20042#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20043_ACEOF
20044
20045        ;;
20046    esac
20047    #
20048  fi
20049  #
20050
20051
20052CURL_NETWORK_AND_TIME_LIBS=$LIBS
20053
20054
20055
20056clean_CPPFLAGS=$CPPFLAGS
20057clean_LDFLAGS=$LDFLAGS
20058clean_LIBS=$LIBS
20059ZLIB_LIBS=""
20060
20061# Check whether --with-zlib was given.
20062if test "${with_zlib+set}" = set; then :
20063  withval=$with_zlib; OPT_ZLIB="$withval"
20064fi
20065
20066
20067if test "$OPT_ZLIB" = "no" ; then
20068    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20069$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20070else
20071  if test "$OPT_ZLIB" = "yes" ; then
20072    OPT_ZLIB=""
20073  fi
20074
20075  if test -z "$OPT_ZLIB" ; then
20076
20077    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20078$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20079if ${ac_cv_lib_z_inflateEnd+:} false; then :
20080  $as_echo_n "(cached) " >&6
20081else
20082  ac_check_lib_save_LIBS=$LIBS
20083LIBS="-lz  $LIBS"
20084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20085/* end confdefs.h.  */
20086
20087
20088#ifdef __cplusplus
20089extern "C"
20090#endif
20091char inflateEnd ();
20092int main (void)
20093{
20094return inflateEnd ();
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099if ac_fn_c_try_link "$LINENO"; then :
20100  ac_cv_lib_z_inflateEnd=yes
20101else
20102  ac_cv_lib_z_inflateEnd=no
20103fi
20104rm -f core conftest.err conftest.$ac_objext \
20105    conftest$ac_exeext conftest.$ac_ext
20106LIBS=$ac_check_lib_save_LIBS
20107fi
20108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20109$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20110if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20111                     HAVE_LIBZ="1"
20112                    LIBS="-lz $LIBS"
20113else
20114                     OPT_ZLIB="/usr/local"
20115fi
20116
20117
20118  fi
20119
20120    if test -n "$OPT_ZLIB"; then
20121     CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20122     LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20123  fi
20124
20125  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20126if test "x$ac_cv_header_zlib_h" = xyes; then :
20127
20128        HAVE_ZLIB_H="1"
20129        if test "$HAVE_LIBZ" != "1"; then
20130      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20131$as_echo_n "checking for gzread in -lz... " >&6; }
20132if ${ac_cv_lib_z_gzread+:} false; then :
20133  $as_echo_n "(cached) " >&6
20134else
20135  ac_check_lib_save_LIBS=$LIBS
20136LIBS="-lz  $LIBS"
20137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138/* end confdefs.h.  */
20139
20140
20141#ifdef __cplusplus
20142extern "C"
20143#endif
20144char gzread ();
20145int main (void)
20146{
20147return gzread ();
20148 ;
20149 return 0;
20150}
20151_ACEOF
20152if ac_fn_c_try_link "$LINENO"; then :
20153  ac_cv_lib_z_gzread=yes
20154else
20155  ac_cv_lib_z_gzread=no
20156fi
20157rm -f core conftest.err conftest.$ac_objext \
20158    conftest$ac_exeext conftest.$ac_ext
20159LIBS=$ac_check_lib_save_LIBS
20160fi
20161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20162$as_echo "$ac_cv_lib_z_gzread" >&6; }
20163if test "x$ac_cv_lib_z_gzread" = xyes; then :
20164
20165                                      HAVE_LIBZ="1"
20166                   LIBS="-lz $LIBS"
20167
20168else
20169   CPPFLAGS=$clean_CPPFLAGS
20170                   LDFLAGS=$clean_LDFLAGS
20171fi
20172
20173    fi
20174
20175else
20176
20177            CPPFLAGS=$clean_CPPFLAGS
20178      LDFLAGS=$clean_LDFLAGS
20179
20180fi
20181
20182
20183
20184  if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20185  then
20186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20187$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20188    HAVE_LIBZ=""
20189    CPPFLAGS=$clean_CPPFLAGS
20190    LDFLAGS=$clean_LDFLAGS
20191    LIBS=$clean_LIBS
20192  elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20193  then
20194    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20195$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20196    CPPFLAGS=$clean_CPPFLAGS
20197    LDFLAGS=$clean_LDFLAGS
20198    LIBS=$clean_LIBS
20199  elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20200  then
20201
20202
20203$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20204
20205
20206$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20207
20208
20209    ZLIB_LIBS="-lz"
20210    LIBS="-lz $clean_LIBS"
20211
20212        AMFIXLIB="1"
20213    { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20214$as_echo "$as_me: found both libz and libz.h header" >&6;}
20215    curl_zlib_msg="enabled"
20216  fi
20217fi
20218
20219 if test x"$AMFIXLIB" = x1; then
20220  HAVE_LIBZ_TRUE=
20221  HAVE_LIBZ_FALSE='#'
20222else
20223  HAVE_LIBZ_TRUE='#'
20224  HAVE_LIBZ_FALSE=
20225fi
20226
20227
20228
20229
20230LDAPLIBNAME=""
20231
20232# Check whether --with-ldap-lib was given.
20233if test "${with_ldap_lib+set}" = set; then :
20234  withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20235fi
20236
20237
20238LBERLIBNAME=""
20239
20240# Check whether --with-lber-lib was given.
20241if test "${with_lber_lib+set}" = set; then :
20242  withval=$with_lber_lib; LBERLIBNAME="$withval"
20243fi
20244
20245
20246if test x$CURL_DISABLE_LDAP != x1 ; then
20247
20248
20249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20250$as_echo_n "checking for lber.h... " >&6; }
20251if ${ac_cv_header_lber_h+:} false; then :
20252  $as_echo_n "(cached) " >&6
20253else
20254
20255    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20256/* end confdefs.h.  */
20257
20258
20259#undef inline
20260#ifdef HAVE_WINDOWS_H
20261#ifndef WIN32_LEAN_AND_MEAN
20262#define WIN32_LEAN_AND_MEAN
20263#endif
20264#include <windows.h>
20265#else
20266#ifdef HAVE_SYS_TYPES_H
20267#include <sys/types.h>
20268#endif
20269#endif
20270#ifndef NULL
20271#define NULL (void *)0
20272#endif
20273#include <lber.h>
20274
20275int main (void)
20276{
20277
20278        BerValue *bvp = NULL;
20279        BerElement *bep = ber_init(bvp);
20280        ber_free(bep, 1);
20281
20282 ;
20283 return 0;
20284}
20285
20286_ACEOF
20287if ac_fn_c_try_compile "$LINENO"; then :
20288
20289      ac_cv_header_lber_h="yes"
20290
20291else
20292
20293      ac_cv_header_lber_h="no"
20294
20295fi
20296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297
20298fi
20299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20300$as_echo "$ac_cv_header_lber_h" >&6; }
20301  if test "$ac_cv_header_lber_h" = "yes"; then
20302
20303cat >>confdefs.h <<_ACEOF
20304#define HAVE_LBER_H 1
20305_ACEOF
20306
20307    #
20308    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20309/* end confdefs.h.  */
20310
20311
20312#undef inline
20313#ifdef HAVE_WINDOWS_H
20314#ifndef WIN32_LEAN_AND_MEAN
20315#define WIN32_LEAN_AND_MEAN
20316#endif
20317#include <windows.h>
20318#else
20319#ifdef HAVE_SYS_TYPES_H
20320#include <sys/types.h>
20321#endif
20322#endif
20323#ifndef NULL
20324#define NULL (void *)0
20325#endif
20326#ifndef LDAP_DEPRECATED
20327#define LDAP_DEPRECATED 1
20328#endif
20329#include <ldap.h>
20330
20331int main (void)
20332{
20333
20334        BerValue *bvp = NULL;
20335        BerElement *bep = ber_init(bvp);
20336        ber_free(bep, 1);
20337
20338 ;
20339 return 0;
20340}
20341
20342_ACEOF
20343if ac_fn_c_try_compile "$LINENO"; then :
20344
20345      curl_cv_need_header_lber_h="no"
20346
20347else
20348
20349      curl_cv_need_header_lber_h="yes"
20350
20351fi
20352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20353    #
20354    case "$curl_cv_need_header_lber_h" in
20355      yes)
20356
20357cat >>confdefs.h <<_ACEOF
20358#define NEED_LBER_H 1
20359_ACEOF
20360
20361        ;;
20362    esac
20363  fi
20364
20365
20366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
20367$as_echo_n "checking for ldap.h... " >&6; }
20368if ${ac_cv_header_ldap_h+:} false; then :
20369  $as_echo_n "(cached) " >&6
20370else
20371
20372    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373/* end confdefs.h.  */
20374
20375
20376#undef inline
20377#ifdef HAVE_WINDOWS_H
20378#ifndef WIN32_LEAN_AND_MEAN
20379#define WIN32_LEAN_AND_MEAN
20380#endif
20381#include <windows.h>
20382#else
20383#ifdef HAVE_SYS_TYPES_H
20384#include <sys/types.h>
20385#endif
20386#endif
20387#ifndef LDAP_DEPRECATED
20388#define LDAP_DEPRECATED 1
20389#endif
20390#ifdef NEED_LBER_H
20391#include <lber.h>
20392#endif
20393#include <ldap.h>
20394
20395int main (void)
20396{
20397
20398        LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20399        int res = ldap_unbind(ldp);
20400
20401 ;
20402 return 0;
20403}
20404
20405_ACEOF
20406if ac_fn_c_try_compile "$LINENO"; then :
20407
20408      ac_cv_header_ldap_h="yes"
20409
20410else
20411
20412      ac_cv_header_ldap_h="no"
20413
20414fi
20415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416
20417fi
20418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
20419$as_echo "$ac_cv_header_ldap_h" >&6; }
20420  case "$ac_cv_header_ldap_h" in
20421    yes)
20422
20423cat >>confdefs.h <<_ACEOF
20424#define HAVE_LDAP_H 1
20425_ACEOF
20426
20427      ;;
20428  esac
20429
20430
20431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
20432$as_echo_n "checking for ldapssl.h... " >&6; }
20433if ${ac_cv_header_ldapssl_h+:} false; then :
20434  $as_echo_n "(cached) " >&6
20435else
20436
20437    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438/* end confdefs.h.  */
20439
20440
20441#undef inline
20442#ifdef HAVE_WINDOWS_H
20443#ifndef WIN32_LEAN_AND_MEAN
20444#define WIN32_LEAN_AND_MEAN
20445#endif
20446#include <windows.h>
20447#else
20448#ifdef HAVE_SYS_TYPES_H
20449#include <sys/types.h>
20450#endif
20451#endif
20452#ifndef NULL
20453#define NULL (void *)0
20454#endif
20455#ifndef LDAP_DEPRECATED
20456#define LDAP_DEPRECATED 1
20457#endif
20458#ifdef NEED_LBER_H
20459#include <lber.h>
20460#endif
20461#ifdef HAVE_LDAP_H
20462#include <ldap.h>
20463#endif
20464#include <ldapssl.h>
20465
20466int main (void)
20467{
20468
20469        char *cert_label = NULL;
20470        LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
20471
20472 ;
20473 return 0;
20474}
20475
20476_ACEOF
20477if ac_fn_c_try_compile "$LINENO"; then :
20478
20479      ac_cv_header_ldapssl_h="yes"
20480
20481else
20482
20483      ac_cv_header_ldapssl_h="no"
20484
20485fi
20486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20487
20488fi
20489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
20490$as_echo "$ac_cv_header_ldapssl_h" >&6; }
20491  case "$ac_cv_header_ldapssl_h" in
20492    yes)
20493
20494cat >>confdefs.h <<_ACEOF
20495#define HAVE_LDAPSSL_H 1
20496_ACEOF
20497
20498      ;;
20499  esac
20500
20501
20502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
20503$as_echo_n "checking for ldap_ssl.h... " >&6; }
20504if ${ac_cv_header_ldap_ssl_h+:} false; then :
20505  $as_echo_n "(cached) " >&6
20506else
20507
20508    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509/* end confdefs.h.  */
20510
20511
20512#undef inline
20513#ifdef HAVE_WINDOWS_H
20514#ifndef WIN32_LEAN_AND_MEAN
20515#define WIN32_LEAN_AND_MEAN
20516#endif
20517#include <windows.h>
20518#else
20519#ifdef HAVE_SYS_TYPES_H
20520#include <sys/types.h>
20521#endif
20522#endif
20523#ifndef LDAP_DEPRECATED
20524#define LDAP_DEPRECATED 1
20525#endif
20526#ifdef NEED_LBER_H
20527#include <lber.h>
20528#endif
20529#ifdef HAVE_LDAP_H
20530#include <ldap.h>
20531#endif
20532#include <ldap_ssl.h>
20533
20534int main (void)
20535{
20536
20537        LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
20538
20539 ;
20540 return 0;
20541}
20542
20543_ACEOF
20544if ac_fn_c_try_compile "$LINENO"; then :
20545
20546      ac_cv_header_ldap_ssl_h="yes"
20547
20548else
20549
20550      ac_cv_header_ldap_ssl_h="no"
20551
20552fi
20553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20554
20555fi
20556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
20557$as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
20558  case "$ac_cv_header_ldap_ssl_h" in
20559    yes)
20560
20561cat >>confdefs.h <<_ACEOF
20562#define HAVE_LDAP_SSL_H 1
20563_ACEOF
20564
20565      ;;
20566  esac
20567
20568
20569  if test -z "$LDAPLIBNAME" ; then
20570    if test "$ac_cv_native_windows" = "yes"; then
20571            LDAPLIBNAME="wldap32"
20572      LBERLIBNAME="no"
20573    fi
20574  fi
20575
20576  if test "$LDAPLIBNAME" ; then
20577    as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
20578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
20579$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
20580if eval \${$as_ac_Lib+:} false; then :
20581  $as_echo_n "(cached) " >&6
20582else
20583  ac_check_lib_save_LIBS=$LIBS
20584LIBS="-l"$LDAPLIBNAME"  $LIBS"
20585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20586/* end confdefs.h.  */
20587
20588
20589#ifdef __cplusplus
20590extern "C"
20591#endif
20592char ldap_init ();
20593int main (void)
20594{
20595return ldap_init ();
20596 ;
20597 return 0;
20598}
20599_ACEOF
20600if ac_fn_c_try_link "$LINENO"; then :
20601  eval "$as_ac_Lib=yes"
20602else
20603  eval "$as_ac_Lib=no"
20604fi
20605rm -f core conftest.err conftest.$ac_objext \
20606    conftest$ac_exeext conftest.$ac_ext
20607LIBS=$ac_check_lib_save_LIBS
20608fi
20609eval ac_res=\$$as_ac_Lib
20610	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20611$as_echo "$ac_res" >&6; }
20612if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20613  cat >>confdefs.h <<_ACEOF
20614#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
20615_ACEOF
20616
20617  LIBS="-l"$LDAPLIBNAME" $LIBS"
20618
20619else
20620
20621      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
20622$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
20623
20624$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20625
20626      CURL_DISABLE_LDAP=1
20627
20628
20629$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20630
20631      CURL_DISABLE_LDAPS=1
20632
20633fi
20634
20635  else
20636
20637    #
20638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
20639$as_echo_n "checking for LDAP libraries... " >&6; }
20640  #
20641  u_libs=""
20642  #
20643
20644  #
20645  curl_cv_save_LIBS="$LIBS"
20646  curl_cv_ldap_LIBS="unknown"
20647  #
20648  for x_nlibs in '' "$u_libs" \
20649    '-lldap' \
20650    '-llber -lldap' \
20651    '-lldap -llber' \
20652    '-lldapssl -lldapx -lldapsdk' \
20653    '-lldapsdk -lldapx -lldapssl' ; do
20654    if test "$curl_cv_ldap_LIBS" = "unknown"; then
20655      if test -z "$x_nlibs"; then
20656        LIBS="$curl_cv_save_LIBS"
20657      else
20658        LIBS="$x_nlibs $curl_cv_save_LIBS"
20659      fi
20660      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661/* end confdefs.h.  */
20662
20663
20664#undef inline
20665#ifdef HAVE_WINDOWS_H
20666#ifndef WIN32_LEAN_AND_MEAN
20667#define WIN32_LEAN_AND_MEAN
20668#endif
20669#include <windows.h>
20670#else
20671#ifdef HAVE_SYS_TYPES_H
20672#include <sys/types.h>
20673#endif
20674#endif
20675#ifndef NULL
20676#define NULL (void *)0
20677#endif
20678#ifndef LDAP_DEPRECATED
20679#define LDAP_DEPRECATED 1
20680#endif
20681#ifdef NEED_LBER_H
20682#include <lber.h>
20683#endif
20684#ifdef HAVE_LDAP_H
20685#include <ldap.h>
20686#endif
20687
20688int main (void)
20689{
20690
20691          BerValue *bvp = NULL;
20692          BerElement *bep = ber_init(bvp);
20693          LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20694          int res = ldap_unbind(ldp);
20695          ber_free(bep, 1);
20696
20697 ;
20698 return 0;
20699}
20700
20701_ACEOF
20702if ac_fn_c_try_link "$LINENO"; then :
20703
20704        curl_cv_ldap_LIBS="$x_nlibs"
20705
20706fi
20707rm -f core conftest.err conftest.$ac_objext \
20708    conftest$ac_exeext conftest.$ac_ext
20709    fi
20710  done
20711  #
20712  LIBS="$curl_cv_save_LIBS"
20713  #
20714  case X-"$curl_cv_ldap_LIBS" in
20715    X-unknown)
20716      { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
20717$as_echo "cannot find LDAP libraries" >&6; }
20718      ;;
20719    X-)
20720      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20721$as_echo "no additional lib required" >&6; }
20722      ;;
20723    *)
20724      if test -z "$curl_cv_save_LIBS"; then
20725        LIBS="$curl_cv_ldap_LIBS"
20726      else
20727        LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
20728      fi
20729      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
20730$as_echo "$curl_cv_ldap_LIBS" >&6; }
20731      ;;
20732  esac
20733  #
20734
20735    case X-"$curl_cv_ldap_LIBS" in
20736      X-unknown)
20737        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
20738$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
20739
20740$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20741
20742        CURL_DISABLE_LDAP=1
20743
20744
20745$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20746
20747        CURL_DISABLE_LDAPS=1
20748
20749        ;;
20750    esac
20751  fi
20752fi
20753
20754if test x$CURL_DISABLE_LDAP != x1 ; then
20755
20756  if test "$LBERLIBNAME" ; then
20757            if test "$LBERLIBNAME" != "no" ; then
20758      as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
20759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
20760$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
20761if eval \${$as_ac_Lib+:} false; then :
20762  $as_echo_n "(cached) " >&6
20763else
20764  ac_check_lib_save_LIBS=$LIBS
20765LIBS="-l"$LBERLIBNAME"  $LIBS"
20766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767/* end confdefs.h.  */
20768
20769
20770#ifdef __cplusplus
20771extern "C"
20772#endif
20773char ber_free ();
20774int main (void)
20775{
20776return ber_free ();
20777 ;
20778 return 0;
20779}
20780_ACEOF
20781if ac_fn_c_try_link "$LINENO"; then :
20782  eval "$as_ac_Lib=yes"
20783else
20784  eval "$as_ac_Lib=no"
20785fi
20786rm -f core conftest.err conftest.$ac_objext \
20787    conftest$ac_exeext conftest.$ac_ext
20788LIBS=$ac_check_lib_save_LIBS
20789fi
20790eval ac_res=\$$as_ac_Lib
20791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20792$as_echo "$ac_res" >&6; }
20793if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20794  cat >>confdefs.h <<_ACEOF
20795#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
20796_ACEOF
20797
20798  LIBS="-l"$LBERLIBNAME" $LIBS"
20799
20800else
20801
20802        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
20803$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
20804
20805$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20806
20807        CURL_DISABLE_LDAP=1
20808
20809
20810$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20811
20812        CURL_DISABLE_LDAPS=1
20813
20814fi
20815
20816    fi
20817  fi
20818fi
20819
20820if test x$CURL_DISABLE_LDAP != x1 ; then
20821  for ac_func in ldap_url_parse ldap_init_fd
20822do :
20823  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20824ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20825if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20826  cat >>confdefs.h <<_ACEOF
20827#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20828_ACEOF
20829
20830fi
20831done
20832
20833
20834  if test "$LDAPLIBNAME" = "wldap32"; then
20835    curl_ldap_msg="enabled (winldap)"
20836
20837$as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
20838
20839  else
20840    curl_ldap_msg="enabled (OpenLDAP)"
20841    if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
20842
20843$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
20844
20845      USE_OPENLDAP=1
20846
20847    fi
20848  fi
20849fi
20850
20851if test x$CURL_DISABLE_LDAPS != x1 ; then
20852    curl_ldaps_msg="enabled"
20853fi
20854
20855
20856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ipv6" >&5
20857$as_echo_n "checking whether to enable ipv6... " >&6; }
20858# Check whether --enable-ipv6 was given.
20859if test "${enable_ipv6+set}" = set; then :
20860  enableval=$enable_ipv6;  case "$enableval" in
20861  no)
20862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20863$as_echo "no" >&6; }
20864       ipv6=no
20865       ;;
20866  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20867$as_echo "yes" >&6; }
20868       ipv6=yes
20869       ;;
20870  esac
20871else
20872  if test "$cross_compiling" = yes; then :
20873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20874$as_echo "no" >&6; }
20875  ipv6=no
20876
20877else
20878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20879/* end confdefs.h.  */
20880 /* is AF_INET6 available? */
20881#include <sys/types.h>
20882#include <sys/socket.h>
20883#include <stdlib.h> /* for exit() */
20884main()
20885{
20886 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
20887   exit(1);
20888 else
20889   exit(0);
20890}
20891
20892_ACEOF
20893if ac_fn_c_try_run "$LINENO"; then :
20894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20895$as_echo "yes" >&6; }
20896  ipv6=yes
20897else
20898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20899$as_echo "no" >&6; }
20900  ipv6=no
20901fi
20902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20903  conftest.$ac_objext conftest.beam conftest.$ac_ext
20904fi
20905
20906fi
20907
20908
20909if test "$ipv6" = "yes"; then
20910  curl_ipv6_msg="enabled"
20911fi
20912
20913# Check if struct sockaddr_in6 have sin6_scope_id member
20914if test "$ipv6" = yes; then
20915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
20916$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
20917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20918/* end confdefs.h.  */
20919
20920#include <sys/types.h>
20921#include <netinet/in.h>
20922int main (void)
20923{
20924struct sockaddr_in6 s; s.sin6_scope_id = 0;
20925 ;
20926 return 0;
20927}
20928_ACEOF
20929if ac_fn_c_try_compile "$LINENO"; then :
20930  have_sin6_scope_id=yes
20931fi
20932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933  if test "$have_sin6_scope_id" = yes; then
20934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20935$as_echo "yes" >&6; }
20936
20937$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
20938
20939  else
20940    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941$as_echo "no" >&6; }
20942  fi
20943fi
20944
20945
20946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
20947$as_echo_n "checking if argv can be written to... " >&6; }
20948if test "$cross_compiling" = yes; then :
20949
20950  curl_cv_writable_argv=cross
20951
20952else
20953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20954/* end confdefs.h.  */
20955
20956
20957int main(int argc, char ** argv) {
20958    argv[0][0] = ' ';
20959    return (argv[0][0] == ' ')?0:1;
20960}
20961
20962
20963_ACEOF
20964if ac_fn_c_try_run "$LINENO"; then :
20965
20966  curl_cv_writable_argv=yes
20967
20968else
20969
20970  curl_cv_writable_argv=no
20971
20972fi
20973rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20974  conftest.$ac_objext conftest.beam conftest.$ac_ext
20975fi
20976
20977case $curl_cv_writable_argv in
20978yes)
20979
20980$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
20981
20982        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20983$as_echo "yes" >&6; }
20984        ;;
20985no)
20986        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20987$as_echo "no" >&6; }
20988        ;;
20989*)
20990        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20991$as_echo "no" >&6; }
20992        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
20993$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
20994        ;;
20995esac
20996
20997
20998
20999# Check whether --with-spnego was given.
21000if test "${with_spnego+set}" = set; then :
21001  withval=$with_spnego;
21002  SPNEGO_ROOT="$withval"
21003  if test x"$SPNEGO_ROOT" != xno; then
21004    want_spnego="yes"
21005  fi
21006
21007fi
21008
21009
21010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if SPNEGO support is requested" >&5
21011$as_echo_n "checking if SPNEGO support is requested... " >&6; }
21012if test x"$want_spnego" = xyes; then
21013
21014  if test X"$SPNEGO_ROOT" = Xyes; then
21015     as_fn_error $? "FBOpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
21016     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017$as_echo "no" >&6; }
21018  else
21019     if test -z "$SPNEGO_LIB_DIR"; then
21020        LDFLAGS="$LDFLAGS -L$SPNEGO_ROOT -lfbopenssl"
21021     else
21022        LDFLAGS="$LDFLAGS $SPNEGO_LIB_DIR"
21023     fi
21024
21025     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21026$as_echo "yes" >&6; }
21027
21028$as_echo "#define HAVE_SPNEGO 1" >>confdefs.h
21029
21030     curl_spnego_msg="enabled"
21031  fi
21032else
21033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21034$as_echo "no" >&6; }
21035fi
21036
21037
21038
21039GSSAPI_ROOT="/usr"
21040
21041# Check whether --with-gssapi-includes was given.
21042if test "${with_gssapi_includes+set}" = set; then :
21043  withval=$with_gssapi_includes;  GSSAPI_INCS="-I$withval"
21044    want_gss="yes"
21045
21046fi
21047
21048
21049
21050# Check whether --with-gssapi-libs was given.
21051if test "${with_gssapi_libs+set}" = set; then :
21052  withval=$with_gssapi_libs;  GSSAPI_LIB_DIR="-L$withval"
21053    want_gss="yes"
21054
21055fi
21056
21057
21058
21059# Check whether --with-gssapi was given.
21060if test "${with_gssapi+set}" = set; then :
21061  withval=$with_gssapi;
21062  GSSAPI_ROOT="$withval"
21063  if test x"$GSSAPI_ROOT" != xno; then
21064    want_gss="yes"
21065    if test x"$GSSAPI_ROOT" = xyes; then
21066            GSSAPI_ROOT="/usr"
21067    fi
21068  fi
21069
21070fi
21071
21072
21073save_CPPFLAGS="$CPPFLAGS"
21074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21075$as_echo_n "checking if GSS-API support is requested... " >&6; }
21076if test x"$want_gss" = xyes; then
21077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21078$as_echo "yes" >&6; }
21079
21080  if test -z "$GSSAPI_INCS"; then
21081     if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21082        GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21083     elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21084        GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
21085     elif test "$GSSAPI_ROOT" != "yes"; then
21086        GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21087     fi
21088  fi
21089
21090  CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21091
21092  ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21093if test "x$ac_cv_header_gss_h" = xyes; then :
21094
21095
21096$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21097
21098      gnu_gss=yes
21099
21100else
21101
21102            for ac_header in gssapi/gssapi.h
21103do :
21104  ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21105if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21106  cat >>confdefs.h <<_ACEOF
21107#define HAVE_GSSAPI_GSSAPI_H 1
21108_ACEOF
21109
21110else
21111  not_mit=1
21112fi
21113
21114done
21115
21116      for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21117do :
21118  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21119ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21120$ac_includes_default
21121#ifdef HAVE_GSSAPI_GSSAPI_H
21122#include <gssapi/gssapi.h>
21123#endif
21124
21125"
21126if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21127  cat >>confdefs.h <<_ACEOF
21128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21129_ACEOF
21130
21131else
21132  not_mit=1
21133fi
21134
21135done
21136
21137      if test "x$not_mit" = "x1"; then
21138                ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21139if test "x$ac_cv_header_gssapi_h" = xyes; then :
21140
21141
21142$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21143
21144
21145else
21146
21147                            want_gss=no
21148              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21149$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21150
21151
21152fi
21153
21154
21155      else
21156
21157$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21158
21159                { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21160$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21161        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162/* end confdefs.h.  */
21163
21164
21165#include <gssapi/gssapi.h>
21166#include <gssapi/gssapi_generic.h>
21167#include <gssapi/gssapi_krb5.h>
21168
21169int main (void)
21170{
21171
21172            gss_import_name(
21173                            (OM_uint32 *)0,
21174                            (gss_buffer_t)0,
21175                            GSS_C_NT_HOSTBASED_SERVICE,
21176                            (gss_name_t *)0);
21177
21178 ;
21179 return 0;
21180}
21181
21182_ACEOF
21183if ac_fn_c_try_compile "$LINENO"; then :
21184
21185          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21186$as_echo "yes" >&6; }
21187
21188else
21189
21190          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21191$as_echo "no" >&6; }
21192
21193$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21194
21195
21196fi
21197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21198      fi
21199
21200
21201fi
21202
21203
21204else
21205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21206$as_echo "no" >&6; }
21207fi
21208if test x"$want_gss" = xyes; then
21209
21210$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21211
21212
21213  curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21214
21215  if test -n "$gnu_gss"; then
21216    curl_gss_msg="enabled (GNU GSS)"
21217    LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21218    LIBS="-lgss $LIBS"
21219  elif test -z "$GSSAPI_LIB_DIR"; then
21220     case $host in
21221     *-*-darwin*)
21222        LIBS="-lgssapi_krb5 -lresolv $LIBS"
21223        ;;
21224     *-hp-hpux*)
21225        if test "$GSSAPI_ROOT" != "yes"; then
21226           LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21227        fi
21228        LIBS="-lgss $LIBS"
21229        ;;
21230     *)
21231        if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21232                                 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21233           LIBS="$gss_libs $LIBS"
21234        elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21235                                 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
21236           LIBS="$gss_libs $LIBS"
21237        elif test "$GSSAPI_ROOT" != "yes"; then
21238           LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21239           LIBS="-lgssapi $LIBS"
21240        else
21241           LIBS="-lgssapi $LIBS"
21242        fi
21243        ;;
21244     esac
21245  else
21246     LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21247     case $host in
21248     *-hp-hpux*)
21249        LIBS="-lgss $LIBS"
21250        ;;
21251     *)
21252        LIBS="-lgssapi $LIBS"
21253        ;;
21254     esac
21255  fi
21256else
21257  CPPFLAGS="$save_CPPFLAGS"
21258fi
21259
21260
21261OPT_WINSSL=no
21262
21263# Check whether --with-winssl was given.
21264if test "${with_winssl+set}" = set; then :
21265  withval=$with_winssl; OPT_WINSSL=$withval
21266fi
21267
21268
21269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21270$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21271if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21272  if test "x$OPT_WINSSL" != "xno"  &&
21273     test "x$ac_cv_native_windows" = "xyes"; then
21274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21275$as_echo "yes" >&6; }
21276
21277$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21278
21279    USE_SCHANNEL=1
21280
21281    curl_ssl_msg="enabled (Windows-native)"
21282    WINSSL_ENABLED=1
21283    # --with-winssl implies --enable-sspi
21284
21285$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21286
21287    USE_WINDOWS_SSPI=1
21288
21289    curl_sspi_msg="enabled"
21290  else
21291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21292$as_echo "no" >&6; }
21293  fi
21294else
21295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21296$as_echo "no" >&6; }
21297fi
21298
21299OPT_DARWINSSL=no
21300
21301# Check whether --with-darwinssl was given.
21302if test "${with_darwinssl+set}" = set; then :
21303  withval=$with_darwinssl; OPT_DARWINSSL=$withval
21304fi
21305
21306
21307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21308$as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21309if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21310  if test "x$OPT_DARWINSSL" != "xno" &&
21311     test -d "/System/Library/Frameworks/Security.framework"; then
21312    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21313$as_echo "yes" >&6; }
21314
21315$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21316
21317    USE_DARWINSSL=1
21318
21319    curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21320    DARWINSSL_ENABLED=1
21321    LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21322  else
21323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21324$as_echo "no" >&6; }
21325  fi
21326else
21327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21328$as_echo "no" >&6; }
21329fi
21330
21331
21332OPT_SSL=off
21333ca="no"
21334
21335# Check whether --with-ssl was given.
21336if test "${with_ssl+set}" = set; then :
21337  withval=$with_ssl; OPT_SSL=$withval
21338fi
21339
21340
21341if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
21342    CLEANLDFLAGS="$LDFLAGS"
21343  CLEANCPPFLAGS="$CPPFLAGS"
21344  CLEANLIBS="$LIBS"
21345
21346  case "$OPT_SSL" in
21347  yes)
21348        if test x$cross_compiling != xyes; then
21349            PKGTEST="yes"
21350    fi
21351    PREFIX_OPENSSL=/usr/local/ssl
21352    LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21353    ;;
21354  off)
21355        if test x$cross_compiling != xyes; then
21356            PKGTEST="yes"
21357    fi
21358    PREFIX_OPENSSL=
21359    ;;
21360  *)
21361        PKGTEST="no"
21362    PREFIX_OPENSSL=$OPT_SSL
21363
21364                OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
21365    { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
21366$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
21367    if test -f "$OPENSSL_PCDIR/openssl.pc"; then
21368      PKGTEST="yes"
21369    fi
21370
21371            LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21372    if test "$PREFIX_OPENSSL" != "/usr" ; then
21373      SSL_LDFLAGS="-L$LIB_OPENSSL"
21374      SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
21375    fi
21376    SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
21377    ;;
21378  esac
21379
21380  if test "$PKGTEST" = "yes"; then
21381
21382
21383
21384    PKGCONFIG="no"
21385
21386    if test -n "$ac_tool_prefix"; then
21387  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21388set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21390$as_echo_n "checking for $ac_word... " >&6; }
21391if ${ac_cv_path_PKGCONFIG+:} false; then :
21392  $as_echo_n "(cached) " >&6
21393else
21394  case $PKGCONFIG in
21395  [\\/]* | ?:[\\/]*)
21396  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21397  ;;
21398  *)
21399  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21400as_dummy="$PATH:/usr/bin:/usr/local/bin"
21401for as_dir in $as_dummy
21402do
21403  IFS=$as_save_IFS
21404  test -z "$as_dir" && as_dir=.
21405    for ac_exec_ext in '' $ac_executable_extensions; do
21406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21407    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21409    break 2
21410  fi
21411done
21412  done
21413IFS=$as_save_IFS
21414
21415  ;;
21416esac
21417fi
21418PKGCONFIG=$ac_cv_path_PKGCONFIG
21419if test -n "$PKGCONFIG"; then
21420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21421$as_echo "$PKGCONFIG" >&6; }
21422else
21423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21424$as_echo "no" >&6; }
21425fi
21426
21427
21428fi
21429if test -z "$ac_cv_path_PKGCONFIG"; then
21430  ac_pt_PKGCONFIG=$PKGCONFIG
21431  # Extract the first word of "pkg-config", so it can be a program name with args.
21432set dummy pkg-config; ac_word=$2
21433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21434$as_echo_n "checking for $ac_word... " >&6; }
21435if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21436  $as_echo_n "(cached) " >&6
21437else
21438  case $ac_pt_PKGCONFIG in
21439  [\\/]* | ?:[\\/]*)
21440  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21441  ;;
21442  *)
21443  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21444as_dummy="$PATH:/usr/bin:/usr/local/bin"
21445for as_dir in $as_dummy
21446do
21447  IFS=$as_save_IFS
21448  test -z "$as_dir" && as_dir=.
21449    for ac_exec_ext in '' $ac_executable_extensions; do
21450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21451    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21453    break 2
21454  fi
21455done
21456  done
21457IFS=$as_save_IFS
21458
21459  ;;
21460esac
21461fi
21462ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21463if test -n "$ac_pt_PKGCONFIG"; then
21464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21465$as_echo "$ac_pt_PKGCONFIG" >&6; }
21466else
21467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21468$as_echo "no" >&6; }
21469fi
21470
21471  if test "x$ac_pt_PKGCONFIG" = x; then
21472    PKGCONFIG="no"
21473  else
21474    case $cross_compiling:$ac_tool_warned in
21475yes:)
21476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21478ac_tool_warned=yes ;;
21479esac
21480    PKGCONFIG=$ac_pt_PKGCONFIG
21481  fi
21482else
21483  PKGCONFIG="$ac_cv_path_PKGCONFIG"
21484fi
21485
21486
21487    if test x$PKGCONFIG != xno; then
21488      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
21489$as_echo_n "checking for openssl options with pkg-config... " >&6; }
21490            itexists=`
21491    if test -n "$OPENSSL_PCDIR"; then
21492      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21493      export PKG_CONFIG_LIBDIR
21494    fi
21495         $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
21496
21497      if test -z "$itexists"; then
21498                        PKGCONFIG="no"
21499        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21500$as_echo "no" >&6; }
21501      else
21502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21503$as_echo "found" >&6; }
21504      fi
21505    fi
21506
21507
21508    if test "$PKGCONFIG" != "no" ; then
21509      SSL_LIBS=`
21510    if test -n "$OPENSSL_PCDIR"; then
21511      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21512      export PKG_CONFIG_LIBDIR
21513    fi
21514         $PKGCONFIG --libs-only-l openssl 2>/dev/null`
21515
21516      SSL_LDFLAGS=`
21517    if test -n "$OPENSSL_PCDIR"; then
21518      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21519      export PKG_CONFIG_LIBDIR
21520    fi
21521         $PKGCONFIG --libs-only-L openssl 2>/dev/null`
21522
21523      SSL_CPPFLAGS=`
21524    if test -n "$OPENSSL_PCDIR"; then
21525      PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21526      export PKG_CONFIG_LIBDIR
21527    fi
21528         $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
21529
21530      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
21531$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
21532      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
21533$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
21534      { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
21535$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
21536
21537      LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
21538
21539                                          LIBS="$SSL_LIBS $LIBS"
21540    fi
21541  fi
21542
21543    CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
21544  LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
21545
21546    case $host in
21547    *-*-msys* | *-*-mingw*)
21548      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
21549$as_echo_n "checking for gdi32... " >&6; }
21550      my_ac_save_LIBS=$LIBS
21551      LIBS="-lgdi32 $LIBS"
21552      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553/* end confdefs.h.  */
21554#include <windef.h>
21555                   #include <wingdi.h>
21556int main (void)
21557{
21558GdiFlush();
21559 ;
21560 return 0;
21561}
21562_ACEOF
21563if ac_fn_c_try_link "$LINENO"; then :
21564                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21565$as_echo "yes" >&6; }
21566else
21567                      LIBS=$my_ac_save_LIBS
21568                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21569$as_echo "no" >&6; }
21570
21571fi
21572rm -f core conftest.err conftest.$ac_objext \
21573    conftest$ac_exeext conftest.$ac_ext
21574      ;;
21575  esac
21576
21577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
21578$as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
21579if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
21580  $as_echo_n "(cached) " >&6
21581else
21582  ac_check_lib_save_LIBS=$LIBS
21583LIBS="-lcrypto  $LIBS"
21584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585/* end confdefs.h.  */
21586
21587
21588#ifdef __cplusplus
21589extern "C"
21590#endif
21591char CRYPTO_lock ();
21592int main (void)
21593{
21594return CRYPTO_lock ();
21595 ;
21596 return 0;
21597}
21598_ACEOF
21599if ac_fn_c_try_link "$LINENO"; then :
21600  ac_cv_lib_crypto_CRYPTO_lock=yes
21601else
21602  ac_cv_lib_crypto_CRYPTO_lock=no
21603fi
21604rm -f core conftest.err conftest.$ac_objext \
21605    conftest$ac_exeext conftest.$ac_ext
21606LIBS=$ac_check_lib_save_LIBS
21607fi
21608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
21609$as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
21610if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
21611
21612     HAVECRYPTO="yes"
21613     LIBS="-lcrypto $LIBS"
21614
21615else
21616
21617     LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
21618     CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
21619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
21620$as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
21621if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
21622  $as_echo_n "(cached) " >&6
21623else
21624  ac_check_lib_save_LIBS=$LIBS
21625LIBS="-lcrypto  $LIBS"
21626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627/* end confdefs.h.  */
21628
21629
21630#ifdef __cplusplus
21631extern "C"
21632#endif
21633char CRYPTO_add_lock ();
21634int main (void)
21635{
21636return CRYPTO_add_lock ();
21637 ;
21638 return 0;
21639}
21640_ACEOF
21641if ac_fn_c_try_link "$LINENO"; then :
21642  ac_cv_lib_crypto_CRYPTO_add_lock=yes
21643else
21644  ac_cv_lib_crypto_CRYPTO_add_lock=no
21645fi
21646rm -f core conftest.err conftest.$ac_objext \
21647    conftest$ac_exeext conftest.$ac_ext
21648LIBS=$ac_check_lib_save_LIBS
21649fi
21650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
21651$as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
21652if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
21653
21654       HAVECRYPTO="yes"
21655       LIBS="-lcrypto $LIBS"
21656else
21657
21658       LDFLAGS="$CLEANLDFLAGS"
21659       CPPFLAGS="$CLEANCPPFLAGS"
21660       LIBS="$CLEANLIBS"
21661
21662fi
21663
21664
21665fi
21666
21667
21668
21669  if test X"$HAVECRYPTO" = X"yes"; then
21670
21671    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21672$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21673if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21674  $as_echo_n "(cached) " >&6
21675else
21676  ac_check_lib_save_LIBS=$LIBS
21677LIBS="-lssl  $LIBS"
21678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21679/* end confdefs.h.  */
21680
21681
21682#ifdef __cplusplus
21683extern "C"
21684#endif
21685char SSL_connect ();
21686int main (void)
21687{
21688return SSL_connect ();
21689 ;
21690 return 0;
21691}
21692_ACEOF
21693if ac_fn_c_try_link "$LINENO"; then :
21694  ac_cv_lib_ssl_SSL_connect=yes
21695else
21696  ac_cv_lib_ssl_SSL_connect=no
21697fi
21698rm -f core conftest.err conftest.$ac_objext \
21699    conftest$ac_exeext conftest.$ac_ext
21700LIBS=$ac_check_lib_save_LIBS
21701fi
21702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21703$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21704if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21705  cat >>confdefs.h <<_ACEOF
21706#define HAVE_LIBSSL 1
21707_ACEOF
21708
21709  LIBS="-lssl $LIBS"
21710
21711fi
21712
21713
21714    if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21715                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
21716$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
21717        OLIBS=$LIBS
21718        LIBS="-lRSAglue -lrsaref $LIBS"
21719        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21720$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21721if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21722  $as_echo_n "(cached) " >&6
21723else
21724  ac_check_lib_save_LIBS=$LIBS
21725LIBS="-lssl  $LIBS"
21726cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727/* end confdefs.h.  */
21728
21729
21730#ifdef __cplusplus
21731extern "C"
21732#endif
21733char SSL_connect ();
21734int main (void)
21735{
21736return SSL_connect ();
21737 ;
21738 return 0;
21739}
21740_ACEOF
21741if ac_fn_c_try_link "$LINENO"; then :
21742  ac_cv_lib_ssl_SSL_connect=yes
21743else
21744  ac_cv_lib_ssl_SSL_connect=no
21745fi
21746rm -f core conftest.err conftest.$ac_objext \
21747    conftest$ac_exeext conftest.$ac_ext
21748LIBS=$ac_check_lib_save_LIBS
21749fi
21750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21751$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21752if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21753  cat >>confdefs.h <<_ACEOF
21754#define HAVE_LIBSSL 1
21755_ACEOF
21756
21757  LIBS="-lssl $LIBS"
21758
21759fi
21760
21761        if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21762                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763$as_echo "no" >&6; }
21764            LIBS=$OLIBS
21765        else
21766            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21767$as_echo "yes" >&6; }
21768        fi
21769
21770    else
21771
21772            for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
21773                       openssl/pem.h openssl/ssl.h openssl/err.h
21774do :
21775  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21776ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21777if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21778  cat >>confdefs.h <<_ACEOF
21779#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21780_ACEOF
21781 curl_ssl_msg="enabled (OpenSSL)"
21782        OPENSSL_ENABLED=1
21783
21784$as_echo "#define USE_OPENSSL 1" >>confdefs.h
21785
21786fi
21787
21788done
21789
21790
21791      if test $ac_cv_header_openssl_x509_h = no; then
21792                                for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
21793do :
21794  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21795ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21796if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21797  cat >>confdefs.h <<_ACEOF
21798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21799_ACEOF
21800
21801fi
21802
21803done
21804
21805
21806        if test $ac_cv_header_x509_h = yes &&
21807           test $ac_cv_header_crypto_h = yes &&
21808           test $ac_cv_header_ssl_h = yes; then
21809                    curl_ssl_msg="enabled (OpenSSL)"
21810          OPENSSL_ENABLED=1
21811        fi
21812      fi
21813    fi
21814
21815    if test X"$OPENSSL_ENABLED" = X"1"; then
21816
21817$as_echo "#define USE_SSLEAY 1" >>confdefs.h
21818
21819
21820              for ac_header in openssl/pkcs12.h
21821do :
21822  ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
21823if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
21824  cat >>confdefs.h <<_ACEOF
21825#define HAVE_OPENSSL_PKCS12_H 1
21826_ACEOF
21827
21828fi
21829
21830done
21831
21832    else
21833       LIBS="$CLEANLIBS"
21834    fi
21835            USE_SSLEAY="$OPENSSL_ENABLED"
21836
21837
21838    if test X"$OPT_SSL" != Xoff &&
21839       test "$OPENSSL_ENABLED" != "1"; then
21840      as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
21841    fi
21842  fi
21843
21844  if test X"$OPENSSL_ENABLED" = X"1"; then
21845            ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
21846if test "x$ac_cv_func_ENGINE_init" = xyes; then :
21847
21848                for ac_header in openssl/engine.h
21849do :
21850  ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
21851if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
21852  cat >>confdefs.h <<_ACEOF
21853#define HAVE_OPENSSL_ENGINE_H 1
21854_ACEOF
21855
21856fi
21857
21858done
21859
21860                for ac_func in ENGINE_load_builtin_engines
21861do :
21862  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21863ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21864if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21865  cat >>confdefs.h <<_ACEOF
21866#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21867_ACEOF
21868
21869fi
21870done
21871
21872
21873fi
21874
21875
21876
21877    for ac_func in RAND_status \
21878                    RAND_screen \
21879                    RAND_egd \
21880                    ENGINE_cleanup \
21881                    CRYPTO_cleanup_all_ex_data \
21882                    SSL_get_shutdown \
21883                    SSLv2_client_method \
21884                    SSL_CTX_set_next_proto_select_cb \
21885                    SSL_CTX_set_alpn_protos \
21886                    SSL_CTX_set_alpn_select_cb
21887do :
21888  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21889ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21890if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21891  cat >>confdefs.h <<_ACEOF
21892#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21893_ACEOF
21894
21895fi
21896done
21897
21898
21899
21900    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
21901$as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
21902    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903/* end confdefs.h.  */
21904
21905
21906#include <openssl/ssl.h>
21907
21908int main (void)
21909{
21910
21911#if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
21912        int dummy = SSL_ERROR_NONE;
21913#else
21914        Not the yaSSL OpenSSL compatibility header.
21915#endif
21916
21917 ;
21918 return 0;
21919}
21920
21921_ACEOF
21922if ac_fn_c_try_compile "$LINENO"; then :
21923
21924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21925$as_echo "yes" >&6; }
21926
21927cat >>confdefs.h <<_ACEOF
21928#define USE_YASSLEMUL 1
21929_ACEOF
21930
21931      curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
21932
21933else
21934
21935      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21936$as_echo "no" >&6; }
21937
21938fi
21939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21940  fi
21941
21942  if test "$OPENSSL_ENABLED" = "1"; then
21943    if test -n "$LIB_OPENSSL"; then
21944                            if test "x$cross_compiling" != "xyes"; then
21945         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
21946         export LD_LIBRARY_PATH
21947         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
21948$as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
21949       fi
21950    fi
21951
21952  #
21953
21954  #
21955  tst_api="unknown"
21956  #
21957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
21958$as_echo_n "checking for OpenSSL headers version... " >&6; }
21959
21960      if test -z "$SED"; then
21961    as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
21962  fi
21963  if test -z "$GREP"; then
21964    as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
21965  fi
21966
21967  tmp_exp=""
21968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21969/* end confdefs.h.  */
21970
21971
21972#   ifdef USE_OPENSSL
21973#     include <openssl/crypto.h>
21974#   else
21975#     include <crypto.h>
21976#   endif
21977
21978#ifdef OPENSSL_VERSION_NUMBER
21979CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
21980#endif
21981
21982
21983_ACEOF
21984if ac_fn_c_try_cpp "$LINENO"; then :
21985
21986    tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
21987      "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
21988      "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
21989      "$SED" 's/["][ ]*["]//g' 2>/dev/null`
21990    if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
21991      tmp_exp=""
21992    fi
21993
21994fi
21995rm -f conftest.err conftest.i conftest.$ac_ext
21996  if test -z "$tmp_exp"; then
21997    curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
21998
21999  else
22000    curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22001    curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22002
22003  fi
22004
22005  if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22006    tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22007    case "x$tst_verlen" in
22008      x6)
22009        tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22010        tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22011        tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22012        tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22013        ;;
22014      x11|x10)
22015        tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22016        tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22017        tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22018        tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22019        ;;
22020      *)
22021        tst_api="unknown"
22022        ;;
22023    esac
22024    case $tst_api in
22025      0x110) tst_show="1.1.0" ;;
22026      0x101) tst_show="1.0.1" ;;
22027      0x100) tst_show="1.0.0" ;;
22028      0x099) tst_show="0.9.9" ;;
22029      0x098) tst_show="0.9.8" ;;
22030      0x097) tst_show="0.9.7" ;;
22031      0x096) tst_show="0.9.6" ;;
22032      0x095) tst_show="0.9.5" ;;
22033      0x094) tst_show="0.9.4" ;;
22034      0x093) tst_show="0.9.3" ;;
22035      0x092) tst_show="0.9.2" ;;
22036      0x091) tst_show="0.9.1" ;;
22037      *)     tst_show="unknown" ;;
22038    esac
22039    tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22040  else
22041    tst_show="unknown"
22042  fi
22043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22044$as_echo "$tst_show" >&6; }
22045  #
22046  curl_openssl_api_headers=$tst_api
22047
22048
22049  #
22050  tst_api="unknown"
22051  #
22052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22053$as_echo_n "checking for OpenSSL library version... " >&6; }
22054  if test "$tst_api" = "unknown"; then
22055    case $host in
22056      *-*-vms*)
22057        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22058/* end confdefs.h.  */
22059
22060
22061#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22062#ifdef __STDC__
22063# include <limits.h>
22064#else
22065# include <assert.h>
22066#endif
22067#undef SSL_CTX_set_not_resumbl_sess_cb
22068#ifdef __cplusplus
22069extern "C"
22070#endif
22071char SSL_CTX_set_not_resumbl_sess_cb ();
22072#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22073choke me
22074#endif
22075
22076int main (void)
22077{
22078return SSL_CTX_set_not_resumbl_sess_cb ();
22079 ;
22080 return 0;
22081}
22082
22083_ACEOF
22084if ac_fn_c_try_link "$LINENO"; then :
22085
22086          tst_api="0x110"
22087
22088fi
22089rm -f core conftest.err conftest.$ac_objext \
22090    conftest$ac_exeext conftest.$ac_ext
22091        ;;
22092      *)
22093        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094/* end confdefs.h.  */
22095
22096
22097#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22098#ifdef __STDC__
22099# include <limits.h>
22100#else
22101# include <assert.h>
22102#endif
22103#undef SSL_CTX_set_not_resumable_session_callback
22104#ifdef __cplusplus
22105extern "C"
22106#endif
22107char SSL_CTX_set_not_resumable_session_callback ();
22108#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22109choke me
22110#endif
22111
22112int main (void)
22113{
22114return SSL_CTX_set_not_resumable_session_callback ();
22115 ;
22116 return 0;
22117}
22118
22119_ACEOF
22120if ac_fn_c_try_link "$LINENO"; then :
22121
22122          tst_api="0x110"
22123
22124fi
22125rm -f core conftest.err conftest.$ac_objext \
22126    conftest$ac_exeext conftest.$ac_ext
22127        ;;
22128    esac
22129  fi
22130  if test "$tst_api" = "unknown"; then
22131    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132/* end confdefs.h.  */
22133
22134
22135#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22136#ifdef __STDC__
22137# include <limits.h>
22138#else
22139# include <assert.h>
22140#endif
22141#undef SSL_renegotiate_abbreviated
22142#ifdef __cplusplus
22143extern "C"
22144#endif
22145char SSL_renegotiate_abbreviated ();
22146#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22147choke me
22148#endif
22149
22150int main (void)
22151{
22152return SSL_renegotiate_abbreviated ();
22153 ;
22154 return 0;
22155}
22156
22157_ACEOF
22158if ac_fn_c_try_link "$LINENO"; then :
22159
22160      tst_api="0x101"
22161
22162fi
22163rm -f core conftest.err conftest.$ac_objext \
22164    conftest$ac_exeext conftest.$ac_ext
22165  fi
22166  if test "$tst_api" = "unknown"; then
22167    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22168/* end confdefs.h.  */
22169
22170
22171#define OBJ_add_sigid innocuous_OBJ_add_sigid
22172#ifdef __STDC__
22173# include <limits.h>
22174#else
22175# include <assert.h>
22176#endif
22177#undef OBJ_add_sigid
22178#ifdef __cplusplus
22179extern "C"
22180#endif
22181char OBJ_add_sigid ();
22182#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22183choke me
22184#endif
22185
22186int main (void)
22187{
22188return OBJ_add_sigid ();
22189 ;
22190 return 0;
22191}
22192
22193_ACEOF
22194if ac_fn_c_try_link "$LINENO"; then :
22195
22196      tst_api="0x100"
22197
22198fi
22199rm -f core conftest.err conftest.$ac_objext \
22200    conftest$ac_exeext conftest.$ac_ext
22201  fi
22202  if test "$tst_api" = "unknown"; then
22203    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204/* end confdefs.h.  */
22205
22206
22207#define ERR_set_mark innocuous_ERR_set_mark
22208#ifdef __STDC__
22209# include <limits.h>
22210#else
22211# include <assert.h>
22212#endif
22213#undef ERR_set_mark
22214#ifdef __cplusplus
22215extern "C"
22216#endif
22217char ERR_set_mark ();
22218#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
22219choke me
22220#endif
22221
22222int main (void)
22223{
22224return ERR_set_mark ();
22225 ;
22226 return 0;
22227}
22228
22229_ACEOF
22230if ac_fn_c_try_link "$LINENO"; then :
22231
22232      tst_api="0x098"
22233
22234fi
22235rm -f core conftest.err conftest.$ac_objext \
22236    conftest$ac_exeext conftest.$ac_ext
22237  fi
22238  if test "$tst_api" = "unknown"; then
22239    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240/* end confdefs.h.  */
22241
22242
22243#define ERR_peek_last_error innocuous_ERR_peek_last_error
22244#ifdef __STDC__
22245# include <limits.h>
22246#else
22247# include <assert.h>
22248#endif
22249#undef ERR_peek_last_error
22250#ifdef __cplusplus
22251extern "C"
22252#endif
22253char ERR_peek_last_error ();
22254#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
22255choke me
22256#endif
22257
22258int main (void)
22259{
22260return ERR_peek_last_error ();
22261 ;
22262 return 0;
22263}
22264
22265_ACEOF
22266if ac_fn_c_try_link "$LINENO"; then :
22267
22268      tst_api="0x097"
22269
22270fi
22271rm -f core conftest.err conftest.$ac_objext \
22272    conftest$ac_exeext conftest.$ac_ext
22273  fi
22274  if test "$tst_api" = "unknown"; then
22275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22276/* end confdefs.h.  */
22277
22278
22279#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
22280#ifdef __STDC__
22281# include <limits.h>
22282#else
22283# include <assert.h>
22284#endif
22285#undef c2i_ASN1_OBJECT
22286#ifdef __cplusplus
22287extern "C"
22288#endif
22289char c2i_ASN1_OBJECT ();
22290#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
22291choke me
22292#endif
22293
22294int main (void)
22295{
22296return c2i_ASN1_OBJECT ();
22297 ;
22298 return 0;
22299}
22300
22301_ACEOF
22302if ac_fn_c_try_link "$LINENO"; then :
22303
22304      tst_api="0x096"
22305
22306fi
22307rm -f core conftest.err conftest.$ac_objext \
22308    conftest$ac_exeext conftest.$ac_ext
22309  fi
22310  if test "$tst_api" = "unknown"; then
22311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22312/* end confdefs.h.  */
22313
22314
22315#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
22316#ifdef __STDC__
22317# include <limits.h>
22318#else
22319# include <assert.h>
22320#endif
22321#undef SSL_CTX_set_purpose
22322#ifdef __cplusplus
22323extern "C"
22324#endif
22325char SSL_CTX_set_purpose ();
22326#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
22327choke me
22328#endif
22329
22330int main (void)
22331{
22332return SSL_CTX_set_purpose ();
22333 ;
22334 return 0;
22335}
22336
22337_ACEOF
22338if ac_fn_c_try_link "$LINENO"; then :
22339
22340      tst_api="0x095"
22341
22342fi
22343rm -f core conftest.err conftest.$ac_objext \
22344    conftest$ac_exeext conftest.$ac_ext
22345  fi
22346  if test "$tst_api" = "unknown"; then
22347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348/* end confdefs.h.  */
22349
22350
22351#define OBJ_obj2txt innocuous_OBJ_obj2txt
22352#ifdef __STDC__
22353# include <limits.h>
22354#else
22355# include <assert.h>
22356#endif
22357#undef OBJ_obj2txt
22358#ifdef __cplusplus
22359extern "C"
22360#endif
22361char OBJ_obj2txt ();
22362#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
22363choke me
22364#endif
22365
22366int main (void)
22367{
22368return OBJ_obj2txt ();
22369 ;
22370 return 0;
22371}
22372
22373_ACEOF
22374if ac_fn_c_try_link "$LINENO"; then :
22375
22376      tst_api="0x094"
22377
22378fi
22379rm -f core conftest.err conftest.$ac_objext \
22380    conftest$ac_exeext conftest.$ac_ext
22381  fi
22382  if test "$tst_api" = "unknown"; then
22383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22384/* end confdefs.h.  */
22385
22386
22387#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
22388#ifdef __STDC__
22389# include <limits.h>
22390#else
22391# include <assert.h>
22392#endif
22393#undef SSL_get_verify_depth
22394#ifdef __cplusplus
22395extern "C"
22396#endif
22397char SSL_get_verify_depth ();
22398#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
22399choke me
22400#endif
22401
22402int main (void)
22403{
22404return SSL_get_verify_depth ();
22405 ;
22406 return 0;
22407}
22408
22409_ACEOF
22410if ac_fn_c_try_link "$LINENO"; then :
22411
22412      tst_api="0x093"
22413
22414fi
22415rm -f core conftest.err conftest.$ac_objext \
22416    conftest$ac_exeext conftest.$ac_ext
22417  fi
22418  if test "$tst_api" = "unknown"; then
22419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22420/* end confdefs.h.  */
22421
22422
22423#define SSL_library_init innocuous_SSL_library_init
22424#ifdef __STDC__
22425# include <limits.h>
22426#else
22427# include <assert.h>
22428#endif
22429#undef SSL_library_init
22430#ifdef __cplusplus
22431extern "C"
22432#endif
22433char SSL_library_init ();
22434#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
22435choke me
22436#endif
22437
22438int main (void)
22439{
22440return SSL_library_init ();
22441 ;
22442 return 0;
22443}
22444
22445_ACEOF
22446if ac_fn_c_try_link "$LINENO"; then :
22447
22448      tst_api="0x092"
22449
22450fi
22451rm -f core conftest.err conftest.$ac_objext \
22452    conftest$ac_exeext conftest.$ac_ext
22453  fi
22454  if test "$tst_api" = "unknown"; then
22455    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22456/* end confdefs.h.  */
22457
22458
22459#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
22460#ifdef __STDC__
22461# include <limits.h>
22462#else
22463# include <assert.h>
22464#endif
22465#undef SSL_CTX_set_cipher_list
22466#ifdef __cplusplus
22467extern "C"
22468#endif
22469char SSL_CTX_set_cipher_list ();
22470#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
22471choke me
22472#endif
22473
22474int main (void)
22475{
22476return SSL_CTX_set_cipher_list ();
22477 ;
22478 return 0;
22479}
22480
22481_ACEOF
22482if ac_fn_c_try_link "$LINENO"; then :
22483
22484      tst_api="0x091"
22485
22486fi
22487rm -f core conftest.err conftest.$ac_objext \
22488    conftest$ac_exeext conftest.$ac_ext
22489  fi
22490  case $tst_api in
22491    0x110) tst_show="1.1.0" ;;
22492    0x101) tst_show="1.0.1" ;;
22493    0x100) tst_show="1.0.0" ;;
22494    0x099) tst_show="0.9.9" ;;
22495    0x098) tst_show="0.9.8" ;;
22496    0x097) tst_show="0.9.7" ;;
22497    0x096) tst_show="0.9.6" ;;
22498    0x095) tst_show="0.9.5" ;;
22499    0x094) tst_show="0.9.4" ;;
22500    0x093) tst_show="0.9.3" ;;
22501    0x092) tst_show="0.9.2" ;;
22502    0x091) tst_show="0.9.1" ;;
22503    *)     tst_show="unknown" ;;
22504  esac
22505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22506$as_echo "$tst_show" >&6; }
22507  #
22508  curl_openssl_api_library=$tst_api
22509
22510  #
22511  tst_match="yes"
22512  #
22513  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
22514$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
22515  if test "$curl_openssl_api_headers" = "unknown" ||
22516    test "$curl_openssl_api_library" = "unknown"; then
22517    tst_match="fail"
22518    tst_warns="Can not compare OpenSSL headers and library versions."
22519  elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
22520    tst_match="no"
22521    tst_warns="OpenSSL headers and library versions do not match."
22522  fi
22523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
22524$as_echo "$tst_match" >&6; }
22525  if test "$tst_match" != "yes"; then
22526    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
22527$as_echo "$as_me: WARNING: $tst_warns" >&2;}
22528  fi
22529
22530  fi
22531
22532fi
22533
22534
22535if test X"$OPENSSL_ENABLED" = X"1"; then
22536
22537# Check whether --with-egd-socket was given.
22538if test "${with_egd_socket+set}" = set; then :
22539  withval=$with_egd_socket;  EGD_SOCKET="$withval"
22540
22541fi
22542
22543  if test -n "$EGD_SOCKET" ; then
22544
22545cat >>confdefs.h <<_ACEOF
22546#define EGD_SOCKET "$EGD_SOCKET"
22547_ACEOF
22548
22549  fi
22550
22551
22552# Check whether --with-random was given.
22553if test "${with_random+set}" = set; then :
22554  withval=$with_random;  RANDOM_FILE="$withval"
22555else
22556
22557          if test x$cross_compiling != xyes; then
22558                        as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
22559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
22560$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
22561if eval \${$as_ac_File+:} false; then :
22562  $as_echo_n "(cached) " >&6
22563else
22564  test "$cross_compiling" = yes &&
22565  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22566if test -r ""/dev/urandom""; then
22567  eval "$as_ac_File=yes"
22568else
22569  eval "$as_ac_File=no"
22570fi
22571fi
22572eval ac_res=\$$as_ac_File
22573	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22574$as_echo "$ac_res" >&6; }
22575if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22576   RANDOM_FILE="/dev/urandom"
22577fi
22578
22579          else
22580            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
22581$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
22582          fi
22583
22584
22585fi
22586
22587  if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
22588
22589
22590cat >>confdefs.h <<_ACEOF
22591#define RANDOM_FILE "$RANDOM_FILE"
22592_ACEOF
22593
22594  fi
22595fi
22596
22597if test "$OPENSSL_ENABLED" = "1"; then
22598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
22599$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
22600if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
22601  $as_echo_n "(cached) " >&6
22602else
22603  ac_check_lib_save_LIBS=$LIBS
22604LIBS="-lcrypto  $LIBS"
22605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22606/* end confdefs.h.  */
22607
22608
22609#ifdef __cplusplus
22610extern "C"
22611#endif
22612char SRP_Calc_client_key ();
22613int main (void)
22614{
22615return SRP_Calc_client_key ();
22616 ;
22617 return 0;
22618}
22619_ACEOF
22620if ac_fn_c_try_link "$LINENO"; then :
22621  ac_cv_lib_crypto_SRP_Calc_client_key=yes
22622else
22623  ac_cv_lib_crypto_SRP_Calc_client_key=no
22624fi
22625rm -f core conftest.err conftest.$ac_objext \
22626    conftest$ac_exeext conftest.$ac_ext
22627LIBS=$ac_check_lib_save_LIBS
22628fi
22629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
22630$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
22631if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
22632
22633
22634$as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h
22635
22636     HAVE_SSLEAY_SRP=1
22637
22638
22639fi
22640
22641fi
22642
22643
22644OPT_GNUTLS=no
22645
22646
22647# Check whether --with-gnutls was given.
22648if test "${with_gnutls+set}" = set; then :
22649  withval=$with_gnutls; OPT_GNUTLS=$withval
22650fi
22651
22652
22653if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22654
22655  if test X"$OPT_GNUTLS" != Xno; then
22656
22657    addld=""
22658    addlib=""
22659    gtlslib=""
22660    version=""
22661    addcflags=""
22662
22663    if test "x$OPT_GNUTLS" = "xyes"; then
22664
22665
22666    PKGCONFIG="no"
22667
22668    if test -n "$ac_tool_prefix"; then
22669  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22670set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22672$as_echo_n "checking for $ac_word... " >&6; }
22673if ${ac_cv_path_PKGCONFIG+:} false; then :
22674  $as_echo_n "(cached) " >&6
22675else
22676  case $PKGCONFIG in
22677  [\\/]* | ?:[\\/]*)
22678  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22679  ;;
22680  *)
22681  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22682as_dummy="$PATH:/usr/bin:/usr/local/bin"
22683for as_dir in $as_dummy
22684do
22685  IFS=$as_save_IFS
22686  test -z "$as_dir" && as_dir=.
22687    for ac_exec_ext in '' $ac_executable_extensions; do
22688  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22689    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22690    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22691    break 2
22692  fi
22693done
22694  done
22695IFS=$as_save_IFS
22696
22697  ;;
22698esac
22699fi
22700PKGCONFIG=$ac_cv_path_PKGCONFIG
22701if test -n "$PKGCONFIG"; then
22702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22703$as_echo "$PKGCONFIG" >&6; }
22704else
22705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22706$as_echo "no" >&6; }
22707fi
22708
22709
22710fi
22711if test -z "$ac_cv_path_PKGCONFIG"; then
22712  ac_pt_PKGCONFIG=$PKGCONFIG
22713  # Extract the first word of "pkg-config", so it can be a program name with args.
22714set dummy pkg-config; ac_word=$2
22715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22716$as_echo_n "checking for $ac_word... " >&6; }
22717if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22718  $as_echo_n "(cached) " >&6
22719else
22720  case $ac_pt_PKGCONFIG in
22721  [\\/]* | ?:[\\/]*)
22722  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22723  ;;
22724  *)
22725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22726as_dummy="$PATH:/usr/bin:/usr/local/bin"
22727for as_dir in $as_dummy
22728do
22729  IFS=$as_save_IFS
22730  test -z "$as_dir" && as_dir=.
22731    for ac_exec_ext in '' $ac_executable_extensions; do
22732  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22733    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22735    break 2
22736  fi
22737done
22738  done
22739IFS=$as_save_IFS
22740
22741  ;;
22742esac
22743fi
22744ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22745if test -n "$ac_pt_PKGCONFIG"; then
22746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22747$as_echo "$ac_pt_PKGCONFIG" >&6; }
22748else
22749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22750$as_echo "no" >&6; }
22751fi
22752
22753  if test "x$ac_pt_PKGCONFIG" = x; then
22754    PKGCONFIG="no"
22755  else
22756    case $cross_compiling:$ac_tool_warned in
22757yes:)
22758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22760ac_tool_warned=yes ;;
22761esac
22762    PKGCONFIG=$ac_pt_PKGCONFIG
22763  fi
22764else
22765  PKGCONFIG="$ac_cv_path_PKGCONFIG"
22766fi
22767
22768
22769    if test x$PKGCONFIG != xno; then
22770      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
22771$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
22772            itexists=`
22773    if test -n ""; then
22774      PKG_CONFIG_LIBDIR=""
22775      export PKG_CONFIG_LIBDIR
22776    fi
22777         $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
22778
22779      if test -z "$itexists"; then
22780                        PKGCONFIG="no"
22781        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782$as_echo "no" >&6; }
22783      else
22784        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22785$as_echo "found" >&6; }
22786      fi
22787    fi
22788
22789
22790      if test "$PKGCONFIG" != "no" ; then
22791        addlib=`$PKGCONFIG --libs-only-l gnutls`
22792        addld=`$PKGCONFIG --libs-only-L gnutls`
22793        addcflags=`$PKGCONFIG --cflags-only-I gnutls`
22794        version=`$PKGCONFIG --modversion gnutls`
22795        gtlslib=`echo $addld | $SED -e 's/-L//'`
22796      else
22797                        check=`libgnutls-config --version 2>/dev/null`
22798        if test -n "$check"; then
22799          addlib=`libgnutls-config --libs`
22800          addcflags=`libgnutls-config --cflags`
22801          version=`libgnutls-config --version`
22802          gtlslib=`libgnutls-config --prefix`/lib$libsuff
22803        fi
22804      fi
22805    else
22806                  cfg=$OPT_GNUTLS/bin/libgnutls-config
22807      check=`$cfg --version 2>/dev/null`
22808      if test -n "$check"; then
22809        addlib=`$cfg --libs`
22810        addcflags=`$cfg --cflags`
22811        version=`$cfg --version`
22812        gtlslib=`$cfg --prefix`/lib$libsuff
22813      else
22814                addlib=-lgnutls
22815        addld=-L$OPT_GNUTLS/lib$libsuff
22816        addcflags=-I$OPT_GNUTLS/include
22817        version="" # we just don't know
22818        gtlslib=$OPT_GNUTLS/lib$libsuff
22819      fi
22820    fi
22821
22822    if test -z "$version"; then
22823            version="unknown"
22824    fi
22825
22826    if test -n "$addlib"; then
22827
22828      CLEANLIBS="$LIBS"
22829      CLEANCPPFLAGS="$CPPFLAGS"
22830      CLEANLDFLAGS="$LDFLAGS"
22831
22832      LIBS="$addlib $LIBS"
22833      LDFLAGS="$LDFLAGS $addld"
22834      if test "$addcflags" != "-I/usr/include"; then
22835         CPPFLAGS="$CPPFLAGS $addcflags"
22836      fi
22837
22838      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
22839$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
22840if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
22841  $as_echo_n "(cached) " >&6
22842else
22843  ac_check_lib_save_LIBS=$LIBS
22844LIBS="-lgnutls  $LIBS"
22845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22846/* end confdefs.h.  */
22847
22848
22849#ifdef __cplusplus
22850extern "C"
22851#endif
22852char gnutls_check_version ();
22853int main (void)
22854{
22855return gnutls_check_version ();
22856 ;
22857 return 0;
22858}
22859_ACEOF
22860if ac_fn_c_try_link "$LINENO"; then :
22861  ac_cv_lib_gnutls_gnutls_check_version=yes
22862else
22863  ac_cv_lib_gnutls_gnutls_check_version=no
22864fi
22865rm -f core conftest.err conftest.$ac_objext \
22866    conftest$ac_exeext conftest.$ac_ext
22867LIBS=$ac_check_lib_save_LIBS
22868fi
22869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
22870$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
22871if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
22872
22873
22874$as_echo "#define USE_GNUTLS 1" >>confdefs.h
22875
22876       USE_GNUTLS=1
22877
22878       GNUTLS_ENABLED=1
22879       USE_GNUTLS="yes"
22880       curl_ssl_msg="enabled (GnuTLS)"
22881
22882else
22883
22884         LIBS="$CLEANLIBS"
22885         CPPFLAGS="$CLEANCPPFLAGS"
22886
22887fi
22888
22889
22890      if test "x$USE_GNUTLS" = "xyes"; then
22891        { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
22892$as_echo "$as_me: detected GnuTLS version $version" >&6;}
22893
22894        if test -n "$gtlslib"; then
22895                                                  if test "x$cross_compiling" != "xyes"; then
22896            LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
22897            export LD_LIBRARY_PATH
22898            { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
22899$as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
22900          fi
22901        fi
22902      fi
22903
22904    fi
22905
22906  fi
22907fi
22908
22909
22910if test "$GNUTLS_ENABLED" = "1"; then
22911  USE_GNUTLS_NETTLE=
22912  # First check if we can detect either crypto library via transitive linking
22913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
22914$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
22915if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
22916  $as_echo_n "(cached) " >&6
22917else
22918  ac_check_lib_save_LIBS=$LIBS
22919LIBS="-lgnutls  $LIBS"
22920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22921/* end confdefs.h.  */
22922
22923
22924#ifdef __cplusplus
22925extern "C"
22926#endif
22927char nettle_MD5Init ();
22928int main (void)
22929{
22930return nettle_MD5Init ();
22931 ;
22932 return 0;
22933}
22934_ACEOF
22935if ac_fn_c_try_link "$LINENO"; then :
22936  ac_cv_lib_gnutls_nettle_MD5Init=yes
22937else
22938  ac_cv_lib_gnutls_nettle_MD5Init=no
22939fi
22940rm -f core conftest.err conftest.$ac_objext \
22941    conftest$ac_exeext conftest.$ac_ext
22942LIBS=$ac_check_lib_save_LIBS
22943fi
22944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
22945$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
22946if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
22947   USE_GNUTLS_NETTLE=1
22948fi
22949
22950  if test "$USE_GNUTLS_NETTLE" = ""; then
22951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
22952$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
22953if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
22954  $as_echo_n "(cached) " >&6
22955else
22956  ac_check_lib_save_LIBS=$LIBS
22957LIBS="-lgnutls  $LIBS"
22958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959/* end confdefs.h.  */
22960
22961
22962#ifdef __cplusplus
22963extern "C"
22964#endif
22965char gcry_control ();
22966int main (void)
22967{
22968return gcry_control ();
22969 ;
22970 return 0;
22971}
22972_ACEOF
22973if ac_fn_c_try_link "$LINENO"; then :
22974  ac_cv_lib_gnutls_gcry_control=yes
22975else
22976  ac_cv_lib_gnutls_gcry_control=no
22977fi
22978rm -f core conftest.err conftest.$ac_objext \
22979    conftest$ac_exeext conftest.$ac_ext
22980LIBS=$ac_check_lib_save_LIBS
22981fi
22982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
22983$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
22984if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
22985   USE_GNUTLS_NETTLE=0
22986fi
22987
22988  fi
22989  # If not, try linking directly to both of them to see if they are available
22990  if test "$USE_GNUTLS_NETTLE" = ""; then
22991    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
22992$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
22993if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
22994  $as_echo_n "(cached) " >&6
22995else
22996  ac_check_lib_save_LIBS=$LIBS
22997LIBS="-lnettle  $LIBS"
22998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999/* end confdefs.h.  */
23000
23001
23002#ifdef __cplusplus
23003extern "C"
23004#endif
23005char nettle_MD5Init ();
23006int main (void)
23007{
23008return nettle_MD5Init ();
23009 ;
23010 return 0;
23011}
23012_ACEOF
23013if ac_fn_c_try_link "$LINENO"; then :
23014  ac_cv_lib_nettle_nettle_MD5Init=yes
23015else
23016  ac_cv_lib_nettle_nettle_MD5Init=no
23017fi
23018rm -f core conftest.err conftest.$ac_objext \
23019    conftest$ac_exeext conftest.$ac_ext
23020LIBS=$ac_check_lib_save_LIBS
23021fi
23022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23023$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23024if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23025   USE_GNUTLS_NETTLE=1
23026fi
23027
23028  fi
23029  if test "$USE_GNUTLS_NETTLE" = ""; then
23030    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23031$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23032if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23033  $as_echo_n "(cached) " >&6
23034else
23035  ac_check_lib_save_LIBS=$LIBS
23036LIBS="-lgcrypt  $LIBS"
23037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23038/* end confdefs.h.  */
23039
23040
23041#ifdef __cplusplus
23042extern "C"
23043#endif
23044char gcry_control ();
23045int main (void)
23046{
23047return gcry_control ();
23048 ;
23049 return 0;
23050}
23051_ACEOF
23052if ac_fn_c_try_link "$LINENO"; then :
23053  ac_cv_lib_gcrypt_gcry_control=yes
23054else
23055  ac_cv_lib_gcrypt_gcry_control=no
23056fi
23057rm -f core conftest.err conftest.$ac_objext \
23058    conftest$ac_exeext conftest.$ac_ext
23059LIBS=$ac_check_lib_save_LIBS
23060fi
23061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23062$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23063if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23064   USE_GNUTLS_NETTLE=0
23065fi
23066
23067  fi
23068  if test "$USE_GNUTLS_NETTLE" = ""; then
23069    as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23070  fi
23071  if test "$USE_GNUTLS_NETTLE" = "1"; then
23072
23073$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23074
23075    USE_GNUTLS_NETTLE=1
23076
23077    LIBS="-lnettle $LIBS"
23078  else
23079    LIBS="-lgcrypt $LIBS"
23080  fi
23081fi
23082
23083if test "$GNUTLS_ENABLED" = "1"; then
23084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23085$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23086if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23087  $as_echo_n "(cached) " >&6
23088else
23089  ac_check_lib_save_LIBS=$LIBS
23090LIBS="-lgnutls  $LIBS"
23091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23092/* end confdefs.h.  */
23093
23094
23095#ifdef __cplusplus
23096extern "C"
23097#endif
23098char gnutls_srp_verifier ();
23099int main (void)
23100{
23101return gnutls_srp_verifier ();
23102 ;
23103 return 0;
23104}
23105_ACEOF
23106if ac_fn_c_try_link "$LINENO"; then :
23107  ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23108else
23109  ac_cv_lib_gnutls_gnutls_srp_verifier=no
23110fi
23111rm -f core conftest.err conftest.$ac_objext \
23112    conftest$ac_exeext conftest.$ac_ext
23113LIBS=$ac_check_lib_save_LIBS
23114fi
23115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23116$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23117if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23118
23119
23120$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23121
23122     HAVE_GNUTLS_SRP=1
23123
23124
23125fi
23126
23127fi
23128
23129
23130OPT_POLARSSL=no
23131
23132_cppflags=$CPPFLAGS
23133_ldflags=$LDFLAGS
23134
23135# Check whether --with-polarssl was given.
23136if test "${with_polarssl+set}" = set; then :
23137  withval=$with_polarssl; OPT_POLARSSL=$withval
23138fi
23139
23140
23141if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23142
23143  if test X"$OPT_POLARSSL" != Xno; then
23144
23145    if test "$OPT_POLARSSL" = "yes"; then
23146      OPT_POLARSSL=""
23147    fi
23148
23149    if test -z "$OPT_POLARSSL" ; then
23150
23151      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23152$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23153if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23154  $as_echo_n "(cached) " >&6
23155else
23156  ac_check_lib_save_LIBS=$LIBS
23157LIBS="-lpolarssl  $LIBS"
23158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23159/* end confdefs.h.  */
23160
23161
23162#ifdef __cplusplus
23163extern "C"
23164#endif
23165char havege_init ();
23166int main (void)
23167{
23168return havege_init ();
23169 ;
23170 return 0;
23171}
23172_ACEOF
23173if ac_fn_c_try_link "$LINENO"; then :
23174  ac_cv_lib_polarssl_havege_init=yes
23175else
23176  ac_cv_lib_polarssl_havege_init=no
23177fi
23178rm -f core conftest.err conftest.$ac_objext \
23179    conftest$ac_exeext conftest.$ac_ext
23180LIBS=$ac_check_lib_save_LIBS
23181fi
23182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23183$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23184if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23185
23186
23187$as_echo "#define USE_POLARSSL 1" >>confdefs.h
23188
23189         USE_POLARSSL=1
23190
23191         POLARSSL_ENABLED=1
23192         USE_POLARSSL="yes"
23193         curl_ssl_msg="enabled (PolarSSL)"
23194
23195fi
23196
23197    fi
23198
23199    addld=""
23200    addlib=""
23201    addcflags=""
23202    polarssllib=""
23203
23204    if test "x$USE_POLARSSL" != "xyes"; then
23205            addld=-L$OPT_POLARSSL/lib$libsuff
23206      addcflags=-I$OPT_POLARSSL/include
23207      polarssllib=$OPT_POLARSSL/lib$libsuff
23208
23209      LDFLAGS="$LDFLAGS $addld"
23210      if test "$addcflags" != "-I/usr/include"; then
23211         CPPFLAGS="$CPPFLAGS $addcflags"
23212      fi
23213
23214      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
23215$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
23216if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
23217  $as_echo_n "(cached) " >&6
23218else
23219  ac_check_lib_save_LIBS=$LIBS
23220LIBS="-lpolarssl  $LIBS"
23221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23222/* end confdefs.h.  */
23223
23224
23225#ifdef __cplusplus
23226extern "C"
23227#endif
23228char ssl_init ();
23229int main (void)
23230{
23231return ssl_init ();
23232 ;
23233 return 0;
23234}
23235_ACEOF
23236if ac_fn_c_try_link "$LINENO"; then :
23237  ac_cv_lib_polarssl_ssl_init=yes
23238else
23239  ac_cv_lib_polarssl_ssl_init=no
23240fi
23241rm -f core conftest.err conftest.$ac_objext \
23242    conftest$ac_exeext conftest.$ac_ext
23243LIBS=$ac_check_lib_save_LIBS
23244fi
23245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
23246$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
23247if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
23248
23249
23250$as_echo "#define USE_POLARSSL 1" >>confdefs.h
23251
23252       USE_POLARSSL=1
23253
23254       POLARSSL_ENABLED=1
23255       USE_POLARSSL="yes"
23256       curl_ssl_msg="enabled (PolarSSL)"
23257
23258else
23259
23260         CPPFLAGS=$_cppflags
23261         LDFLAGS=$_ldflags
23262
23263fi
23264
23265    fi
23266
23267    if test "x$USE_POLARSSL" = "xyes"; then
23268      { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
23269$as_echo "$as_me: detected PolarSSL" >&6;}
23270
23271      LIBS="-lpolarssl $LIBS"
23272
23273      if test -n "$polarssllib"; then
23274                                        if test "x$cross_compiling" != "xyes"; then
23275          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
23276          export LD_LIBRARY_PATH
23277          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
23278$as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
23279        fi
23280      fi
23281    fi
23282
23283  fi
23284fi
23285
23286
23287OPT_CYASSL=no
23288
23289_cppflags=$CPPFLAGS
23290_ldflags=$LDFLAGS
23291
23292# Check whether --with-cyassl was given.
23293if test "${with_cyassl+set}" = set; then :
23294  withval=$with_cyassl; OPT_CYASSL=$withval
23295fi
23296
23297
23298if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23299
23300  if test X"$OPT_CYASSL" != Xno; then
23301
23302    if test "$OPT_CYASSL" = "yes"; then
23303      OPT_CYASSL=""
23304    fi
23305
23306    if test -z "$OPT_CYASSL" ; then
23307
23308      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23309$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23310if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23311  $as_echo_n "(cached) " >&6
23312else
23313  ac_check_lib_save_LIBS=$LIBS
23314LIBS="-lcyassl  $LIBS"
23315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23316/* end confdefs.h.  */
23317
23318
23319#ifdef __cplusplus
23320extern "C"
23321#endif
23322char CyaSSL_Init ();
23323int main (void)
23324{
23325return CyaSSL_Init ();
23326 ;
23327 return 0;
23328}
23329_ACEOF
23330if ac_fn_c_try_link "$LINENO"; then :
23331  ac_cv_lib_cyassl_CyaSSL_Init=yes
23332else
23333  ac_cv_lib_cyassl_CyaSSL_Init=no
23334fi
23335rm -f core conftest.err conftest.$ac_objext \
23336    conftest$ac_exeext conftest.$ac_ext
23337LIBS=$ac_check_lib_save_LIBS
23338fi
23339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23340$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23341if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23342
23343
23344$as_echo "#define USE_CYASSL 1" >>confdefs.h
23345
23346         USE_CYASSL=1
23347
23348         CYASSL_ENABLED=1
23349         USE_CYASSL="yes"
23350         curl_ssl_msg="enabled (CyaSSL)"
23351
23352fi
23353
23354    fi
23355
23356    addld=""
23357    addlib=""
23358    addcflags=""
23359    cyassllib=""
23360
23361    if test "x$USE_CYASSL" != "xyes"; then
23362            addld=-L$OPT_CYASSL/lib$libsuff
23363      addcflags=-I$OPT_CYASSL/include
23364      cyassllib=$OPT_CYASSL/lib$libsuff
23365
23366      LDFLAGS="$LDFLAGS $addld"
23367      if test "$addcflags" != "-I/usr/include"; then
23368         CPPFLAGS="$CPPFLAGS $addcflags"
23369      fi
23370
23371      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23372$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23373if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23374  $as_echo_n "(cached) " >&6
23375else
23376  ac_check_lib_save_LIBS=$LIBS
23377LIBS="-lcyassl  $LIBS"
23378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379/* end confdefs.h.  */
23380
23381
23382#ifdef __cplusplus
23383extern "C"
23384#endif
23385char CyaSSL_Init ();
23386int main (void)
23387{
23388return CyaSSL_Init ();
23389 ;
23390 return 0;
23391}
23392_ACEOF
23393if ac_fn_c_try_link "$LINENO"; then :
23394  ac_cv_lib_cyassl_CyaSSL_Init=yes
23395else
23396  ac_cv_lib_cyassl_CyaSSL_Init=no
23397fi
23398rm -f core conftest.err conftest.$ac_objext \
23399    conftest$ac_exeext conftest.$ac_ext
23400LIBS=$ac_check_lib_save_LIBS
23401fi
23402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23403$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23404if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23405
23406
23407$as_echo "#define USE_CYASSL 1" >>confdefs.h
23408
23409       USE_CYASSL=1
23410
23411       CYASSL_ENABLED=1
23412       USE_CYASSL="yes"
23413       curl_ssl_msg="enabled (CyaSSL)"
23414
23415else
23416
23417         CPPFLAGS=$_cppflags
23418         LDFLAGS=$_ldflags
23419
23420fi
23421
23422    fi
23423
23424    if test "x$USE_CYASSL" = "xyes"; then
23425      { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
23426$as_echo "$as_me: detected CyaSSL" >&6;}
23427
23428            # The cast to long int works around a bug in the HP C Compiler
23429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23431# This bug is HP SR number 8606223364.
23432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23433$as_echo_n "checking size of long long... " >&6; }
23434if ${ac_cv_sizeof_long_long+:} false; then :
23435  $as_echo_n "(cached) " >&6
23436else
23437  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
23438
23439else
23440  if test "$ac_cv_type_long_long" = yes; then
23441     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23443as_fn_error 77 "cannot compute sizeof (long long)
23444See \`config.log' for more details" "$LINENO" 5; }
23445   else
23446     ac_cv_sizeof_long_long=0
23447   fi
23448fi
23449
23450fi
23451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23452$as_echo "$ac_cv_sizeof_long_long" >&6; }
23453
23454
23455
23456cat >>confdefs.h <<_ACEOF
23457#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23458_ACEOF
23459
23460
23461
23462            for ac_header in cyassl/error-ssl.h
23463do :
23464  ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
23465if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
23466  cat >>confdefs.h <<_ACEOF
23467#define HAVE_CYASSL_ERROR_SSL_H 1
23468_ACEOF
23469
23470fi
23471
23472done
23473
23474
23475      LIBS="-lcyassl -lm $LIBS"
23476
23477      if test -n "$cyassllib"; then
23478                                        if test "x$cross_compiling" != "xyes"; then
23479          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
23480          export LD_LIBRARY_PATH
23481          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
23482$as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
23483        fi
23484      fi
23485
23486    fi
23487
23488  fi
23489fi
23490
23491
23492OPT_NSS=no
23493
23494
23495# Check whether --with-nss was given.
23496if test "${with_nss+set}" = set; then :
23497  withval=$with_nss; OPT_NSS=$withval
23498fi
23499
23500
23501if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23502
23503  if test X"$OPT_NSS" != Xno; then
23504
23505    addld=""
23506    addlib=""
23507    addcflags=""
23508    nssprefix=""
23509    version=""
23510
23511    if test "x$OPT_NSS" = "xyes"; then
23512
23513
23514
23515    PKGCONFIG="no"
23516
23517    if test -n "$ac_tool_prefix"; then
23518  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23519set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23521$as_echo_n "checking for $ac_word... " >&6; }
23522if ${ac_cv_path_PKGCONFIG+:} false; then :
23523  $as_echo_n "(cached) " >&6
23524else
23525  case $PKGCONFIG in
23526  [\\/]* | ?:[\\/]*)
23527  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23528  ;;
23529  *)
23530  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23531as_dummy="$PATH:/usr/bin:/usr/local/bin"
23532for as_dir in $as_dummy
23533do
23534  IFS=$as_save_IFS
23535  test -z "$as_dir" && as_dir=.
23536    for ac_exec_ext in '' $ac_executable_extensions; do
23537  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23538    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23539    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23540    break 2
23541  fi
23542done
23543  done
23544IFS=$as_save_IFS
23545
23546  ;;
23547esac
23548fi
23549PKGCONFIG=$ac_cv_path_PKGCONFIG
23550if test -n "$PKGCONFIG"; then
23551  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23552$as_echo "$PKGCONFIG" >&6; }
23553else
23554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23555$as_echo "no" >&6; }
23556fi
23557
23558
23559fi
23560if test -z "$ac_cv_path_PKGCONFIG"; then
23561  ac_pt_PKGCONFIG=$PKGCONFIG
23562  # Extract the first word of "pkg-config", so it can be a program name with args.
23563set dummy pkg-config; ac_word=$2
23564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23565$as_echo_n "checking for $ac_word... " >&6; }
23566if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23567  $as_echo_n "(cached) " >&6
23568else
23569  case $ac_pt_PKGCONFIG in
23570  [\\/]* | ?:[\\/]*)
23571  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23572  ;;
23573  *)
23574  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23575as_dummy="$PATH:/usr/bin:/usr/local/bin"
23576for as_dir in $as_dummy
23577do
23578  IFS=$as_save_IFS
23579  test -z "$as_dir" && as_dir=.
23580    for ac_exec_ext in '' $ac_executable_extensions; do
23581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23582    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23584    break 2
23585  fi
23586done
23587  done
23588IFS=$as_save_IFS
23589
23590  ;;
23591esac
23592fi
23593ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23594if test -n "$ac_pt_PKGCONFIG"; then
23595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23596$as_echo "$ac_pt_PKGCONFIG" >&6; }
23597else
23598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23599$as_echo "no" >&6; }
23600fi
23601
23602  if test "x$ac_pt_PKGCONFIG" = x; then
23603    PKGCONFIG="no"
23604  else
23605    case $cross_compiling:$ac_tool_warned in
23606yes:)
23607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23609ac_tool_warned=yes ;;
23610esac
23611    PKGCONFIG=$ac_pt_PKGCONFIG
23612  fi
23613else
23614  PKGCONFIG="$ac_cv_path_PKGCONFIG"
23615fi
23616
23617
23618    if test x$PKGCONFIG != xno; then
23619      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
23620$as_echo_n "checking for nss options with pkg-config... " >&6; }
23621            itexists=`
23622    if test -n ""; then
23623      PKG_CONFIG_LIBDIR=""
23624      export PKG_CONFIG_LIBDIR
23625    fi
23626         $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
23627
23628      if test -z "$itexists"; then
23629                        PKGCONFIG="no"
23630        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23631$as_echo "no" >&6; }
23632      else
23633        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23634$as_echo "found" >&6; }
23635      fi
23636    fi
23637
23638
23639      if test "$PKGCONFIG" != "no" ; then
23640        addlib=`$PKGCONFIG --libs nss`
23641        addcflags=`$PKGCONFIG --cflags nss`
23642        version=`$PKGCONFIG --modversion nss`
23643        nssprefix=`$PKGCONFIG --variable=prefix nss`
23644      else
23645
23646        check=`nss-config --version 2>/dev/null`
23647        if test -n "$check"; then
23648          addlib=`nss-config --libs`
23649          addcflags=`nss-config --cflags`
23650          version=`nss-config --version`
23651          nssprefix=`nss-config --prefix`
23652        else
23653          addlib="-lnss3"
23654          addcflags=""
23655          version="unknown"
23656        fi
23657      fi
23658    else
23659        # Without pkg-config, we'll kludge in some defaults
23660        addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
23661        addcflags="-I$OPT_NSS/include"
23662        version="unknown"
23663        nssprefix=$OPT_NSS
23664    fi
23665
23666    if test -n "$addlib"; then
23667
23668      CLEANLIBS="$LIBS"
23669      CLEANCPPFLAGS="$CPPFLAGS"
23670
23671      LIBS="$addlib $LIBS"
23672      if test "$addcflags" != "-I/usr/include"; then
23673         CPPFLAGS="$CPPFLAGS $addcflags"
23674      fi
23675
23676            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
23677$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
23678if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
23679  $as_echo_n "(cached) " >&6
23680else
23681  ac_check_lib_save_LIBS=$LIBS
23682LIBS="-lnss3  $LIBS"
23683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23684/* end confdefs.h.  */
23685
23686
23687#ifdef __cplusplus
23688extern "C"
23689#endif
23690char SSL_VersionRangeSet ();
23691int main (void)
23692{
23693return SSL_VersionRangeSet ();
23694 ;
23695 return 0;
23696}
23697_ACEOF
23698if ac_fn_c_try_link "$LINENO"; then :
23699  ac_cv_lib_nss3_SSL_VersionRangeSet=yes
23700else
23701  ac_cv_lib_nss3_SSL_VersionRangeSet=no
23702fi
23703rm -f core conftest.err conftest.$ac_objext \
23704    conftest$ac_exeext conftest.$ac_ext
23705LIBS=$ac_check_lib_save_LIBS
23706fi
23707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
23708$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
23709if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
23710
23711
23712$as_echo "#define USE_NSS 1" >>confdefs.h
23713
23714       USE_NSS=1
23715
23716       USE_NSS="yes"
23717       NSS_ENABLED=1
23718       curl_ssl_msg="enabled (NSS)"
23719
23720else
23721
23722         LIBS="$CLEANLIBS"
23723         CPPFLAGS="$CLEANCPPFLAGS"
23724
23725fi
23726
23727
23728      if test "x$USE_NSS" = "xyes"; then
23729        { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
23730$as_echo "$as_me: detected NSS version $version" >&6;}
23731
23732                                        if test "x$cross_compiling" != "xyes"; then
23733          LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
23734          export LD_LIBRARY_PATH
23735          { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
23736$as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
23737        fi
23738      fi
23739
23740    fi
23741
23742  fi
23743fi
23744OPT_AXTLS=off
23745
23746
23747# Check whether --with-axtls was given.
23748if test "${with_axtls+set}" = set; then :
23749  withval=$with_axtls; OPT_AXTLS=$withval
23750fi
23751
23752
23753if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23754  if test X"$OPT_AXTLS" != Xno; then
23755        CLEANLDFLAGS="$LDFLAGS"
23756    CLEANCPPFLAGS="$CPPFLAGS"
23757    CLEANLIBS="$LIBS"
23758
23759    case "$OPT_AXTLS" in
23760    yes)
23761            PREFIX_AXTLS=/usr/local
23762      LIB_AXTLS="$PREFIX_AXTLS/lib"
23763      LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23764      CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23765      ;;
23766    off)
23767            PREFIX_AXTLS=
23768      ;;
23769    *)
23770            PREFIX_AXTLS=$OPT_AXTLS
23771      LIB_AXTLS="$PREFIX_AXTLS/lib"
23772      LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23773      CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23774      ;;
23775    esac
23776
23777    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
23778$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
23779if ${ac_cv_lib_axtls_ssl_version+:} false; then :
23780  $as_echo_n "(cached) " >&6
23781else
23782  ac_check_lib_save_LIBS=$LIBS
23783LIBS="-laxtls  $LIBS"
23784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785/* end confdefs.h.  */
23786
23787
23788#ifdef __cplusplus
23789extern "C"
23790#endif
23791char ssl_version ();
23792int main (void)
23793{
23794return ssl_version ();
23795 ;
23796 return 0;
23797}
23798_ACEOF
23799if ac_fn_c_try_link "$LINENO"; then :
23800  ac_cv_lib_axtls_ssl_version=yes
23801else
23802  ac_cv_lib_axtls_ssl_version=no
23803fi
23804rm -f core conftest.err conftest.$ac_objext \
23805    conftest$ac_exeext conftest.$ac_ext
23806LIBS=$ac_check_lib_save_LIBS
23807fi
23808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
23809$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
23810if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
23811
23812      LIBS="-laxtls $LIBS"
23813
23814$as_echo "#define USE_AXTLS 1" >>confdefs.h
23815
23816      USE_AXTLS=1
23817
23818      AXTLS_ENABLED=1
23819      USE_AXTLS="yes"
23820      curl_ssl_msg="enabled (axTLS)"
23821
23822      if test "x$cross_compiling" != "xyes"; then
23823        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
23824        export LD_LIBRARY_PATH
23825        { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
23826$as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
23827      fi
23828
23829else
23830
23831      LDFLAGS="$CLEANLDFLAGS"
23832      CPPFLAGS="$CLEANCPPFLAGS"
23833      LIBS="$CLEANLIBS"
23834
23835fi
23836
23837  fi
23838fi
23839
23840if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
23841  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
23842$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
23843  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
23844$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
23845else
23846  # SSL is enabled, genericly
23847
23848  SSL_ENABLED="1"
23849fi
23850
23851
23852
23853
23854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
23855$as_echo_n "checking default CA cert bundle/path... " >&6; }
23856
23857
23858# Check whether --with-ca-bundle was given.
23859if test "${with_ca_bundle+set}" = set; then :
23860  withval=$with_ca_bundle;
23861    want_ca="$withval"
23862    if test "x$want_ca" = "xyes"; then
23863      as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
23864    fi
23865
23866else
23867   want_ca="unset"
23868fi
23869
23870
23871# Check whether --with-ca-path was given.
23872if test "${with_ca_path+set}" = set; then :
23873  withval=$with_ca_path;
23874    want_capath="$withval"
23875    if test "x$want_capath" = "xyes"; then
23876      as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
23877    fi
23878
23879else
23880   want_capath="unset"
23881fi
23882
23883
23884  if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
23885          "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
23886        as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
23887  elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
23888        ca="$want_ca"
23889    capath="no"
23890  elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
23891        if test "x$OPENSSL_ENABLED" != "x1"; then
23892      as_fn_error $? "--with-ca-path only works with openSSL" "$LINENO" 5
23893    fi
23894    capath="$want_capath"
23895    ca="no"
23896  else
23897            ca="no"
23898    capath="no"
23899    if test "x$cross_compiling" != "xyes"; then
23900                  if test "x$want_ca" = "xunset"; then
23901                                if test "x$prefix" != xNONE; then
23902          cac="${prefix}/share/curl/curl-ca-bundle.crt"
23903        else
23904          cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
23905        fi
23906
23907        for a in /etc/ssl/certs/ca-certificates.crt \
23908                 /etc/pki/tls/certs/ca-bundle.crt \
23909                 /usr/share/ssl/certs/ca-bundle.crt \
23910                 /usr/local/share/certs/ca-root.crt \
23911                 /etc/ssl/cert.pem \
23912                 "$cac"; do
23913          if test -f "$a"; then
23914            ca="$a"
23915            break
23916          fi
23917        done
23918      fi
23919      if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
23920              "x$OPENSSL_ENABLED" = "x1"; then
23921        for a in /etc/ssl/certs/; do
23922          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
23923            capath="$a"
23924            break
23925          fi
23926        done
23927      fi
23928    else
23929            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
23930$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
23931    fi
23932  fi
23933
23934  if test "x$ca" != "xno"; then
23935    CURL_CA_BUNDLE='"'$ca'"'
23936
23937cat >>confdefs.h <<_ACEOF
23938#define CURL_CA_BUNDLE "$ca"
23939_ACEOF
23940
23941
23942    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
23943$as_echo "$ca" >&6; }
23944  elif test "x$capath" != "xno"; then
23945    CURL_CA_PATH="\"$capath\""
23946
23947cat >>confdefs.h <<_ACEOF
23948#define CURL_CA_PATH "$capath"
23949_ACEOF
23950
23951    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
23952$as_echo "$capath (capath)" >&6; }
23953  else
23954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23955$as_echo "no" >&6; }
23956  fi
23957
23958
23959
23960OPT_LIBMETALINK=no
23961
23962
23963# Check whether --with-libmetalink was given.
23964if test "${with_libmetalink+set}" = set; then :
23965  withval=$with_libmetalink; OPT_LIBMETALINK=$withval
23966fi
23967
23968
23969if test X"$OPT_LIBMETALINK" != Xno; then
23970
23971  addld=""
23972  addlib=""
23973  addcflags=""
23974  version=""
23975  libmetalinklib=""
23976
23977  PKGTEST="no"
23978  if test "x$OPT_LIBMETALINK" = "xyes"; then
23979        PKGTEST="yes"
23980
23981
23982    PKGCONFIG="no"
23983
23984    if test -n "$ac_tool_prefix"; then
23985  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23986set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23988$as_echo_n "checking for $ac_word... " >&6; }
23989if ${ac_cv_path_PKGCONFIG+:} false; then :
23990  $as_echo_n "(cached) " >&6
23991else
23992  case $PKGCONFIG in
23993  [\\/]* | ?:[\\/]*)
23994  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23995  ;;
23996  *)
23997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23998as_dummy="$PATH:/usr/bin:/usr/local/bin"
23999for as_dir in $as_dummy
24000do
24001  IFS=$as_save_IFS
24002  test -z "$as_dir" && as_dir=.
24003    for ac_exec_ext in '' $ac_executable_extensions; do
24004  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24005    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24007    break 2
24008  fi
24009done
24010  done
24011IFS=$as_save_IFS
24012
24013  ;;
24014esac
24015fi
24016PKGCONFIG=$ac_cv_path_PKGCONFIG
24017if test -n "$PKGCONFIG"; then
24018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24019$as_echo "$PKGCONFIG" >&6; }
24020else
24021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24022$as_echo "no" >&6; }
24023fi
24024
24025
24026fi
24027if test -z "$ac_cv_path_PKGCONFIG"; then
24028  ac_pt_PKGCONFIG=$PKGCONFIG
24029  # Extract the first word of "pkg-config", so it can be a program name with args.
24030set dummy pkg-config; ac_word=$2
24031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24032$as_echo_n "checking for $ac_word... " >&6; }
24033if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24034  $as_echo_n "(cached) " >&6
24035else
24036  case $ac_pt_PKGCONFIG in
24037  [\\/]* | ?:[\\/]*)
24038  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24039  ;;
24040  *)
24041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24042as_dummy="$PATH:/usr/bin:/usr/local/bin"
24043for as_dir in $as_dummy
24044do
24045  IFS=$as_save_IFS
24046  test -z "$as_dir" && as_dir=.
24047    for ac_exec_ext in '' $ac_executable_extensions; do
24048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24049    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24051    break 2
24052  fi
24053done
24054  done
24055IFS=$as_save_IFS
24056
24057  ;;
24058esac
24059fi
24060ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24061if test -n "$ac_pt_PKGCONFIG"; then
24062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24063$as_echo "$ac_pt_PKGCONFIG" >&6; }
24064else
24065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24066$as_echo "no" >&6; }
24067fi
24068
24069  if test "x$ac_pt_PKGCONFIG" = x; then
24070    PKGCONFIG="no"
24071  else
24072    case $cross_compiling:$ac_tool_warned in
24073yes:)
24074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24076ac_tool_warned=yes ;;
24077esac
24078    PKGCONFIG=$ac_pt_PKGCONFIG
24079  fi
24080else
24081  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24082fi
24083
24084
24085    if test x$PKGCONFIG != xno; then
24086      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24087$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24088            itexists=`
24089    if test -n ""; then
24090      PKG_CONFIG_LIBDIR=""
24091      export PKG_CONFIG_LIBDIR
24092    fi
24093         $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24094
24095      if test -z "$itexists"; then
24096                        PKGCONFIG="no"
24097        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24098$as_echo "no" >&6; }
24099      else
24100        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24101$as_echo "found" >&6; }
24102      fi
24103    fi
24104
24105  else
24106        LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
24107    { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
24108$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
24109    if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
24110      PKGTEST="yes"
24111    fi
24112    if test "$PKGTEST" = "yes"; then
24113
24114
24115    PKGCONFIG="no"
24116
24117    if test -n "$ac_tool_prefix"; then
24118  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24119set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24121$as_echo_n "checking for $ac_word... " >&6; }
24122if ${ac_cv_path_PKGCONFIG+:} false; then :
24123  $as_echo_n "(cached) " >&6
24124else
24125  case $PKGCONFIG in
24126  [\\/]* | ?:[\\/]*)
24127  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24128  ;;
24129  *)
24130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24131as_dummy="$PATH:/usr/bin:/usr/local/bin"
24132for as_dir in $as_dummy
24133do
24134  IFS=$as_save_IFS
24135  test -z "$as_dir" && as_dir=.
24136    for ac_exec_ext in '' $ac_executable_extensions; do
24137  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24138    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24140    break 2
24141  fi
24142done
24143  done
24144IFS=$as_save_IFS
24145
24146  ;;
24147esac
24148fi
24149PKGCONFIG=$ac_cv_path_PKGCONFIG
24150if test -n "$PKGCONFIG"; then
24151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24152$as_echo "$PKGCONFIG" >&6; }
24153else
24154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24155$as_echo "no" >&6; }
24156fi
24157
24158
24159fi
24160if test -z "$ac_cv_path_PKGCONFIG"; then
24161  ac_pt_PKGCONFIG=$PKGCONFIG
24162  # Extract the first word of "pkg-config", so it can be a program name with args.
24163set dummy pkg-config; ac_word=$2
24164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24165$as_echo_n "checking for $ac_word... " >&6; }
24166if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24167  $as_echo_n "(cached) " >&6
24168else
24169  case $ac_pt_PKGCONFIG in
24170  [\\/]* | ?:[\\/]*)
24171  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24172  ;;
24173  *)
24174  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24175as_dummy="$PATH:/usr/bin:/usr/local/bin"
24176for as_dir in $as_dummy
24177do
24178  IFS=$as_save_IFS
24179  test -z "$as_dir" && as_dir=.
24180    for ac_exec_ext in '' $ac_executable_extensions; do
24181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24182    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24184    break 2
24185  fi
24186done
24187  done
24188IFS=$as_save_IFS
24189
24190  ;;
24191esac
24192fi
24193ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24194if test -n "$ac_pt_PKGCONFIG"; then
24195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24196$as_echo "$ac_pt_PKGCONFIG" >&6; }
24197else
24198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24199$as_echo "no" >&6; }
24200fi
24201
24202  if test "x$ac_pt_PKGCONFIG" = x; then
24203    PKGCONFIG="no"
24204  else
24205    case $cross_compiling:$ac_tool_warned in
24206yes:)
24207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24209ac_tool_warned=yes ;;
24210esac
24211    PKGCONFIG=$ac_pt_PKGCONFIG
24212  fi
24213else
24214  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24215fi
24216
24217
24218    if test x$PKGCONFIG != xno; then
24219      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24220$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24221            itexists=`
24222    if test -n "$LIBMETALINK_PCDIR"; then
24223      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24224      export PKG_CONFIG_LIBDIR
24225    fi
24226         $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24227
24228      if test -z "$itexists"; then
24229                        PKGCONFIG="no"
24230        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24231$as_echo "no" >&6; }
24232      else
24233        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24234$as_echo "found" >&6; }
24235      fi
24236    fi
24237
24238    fi
24239  fi
24240  if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
24241    addlib=`
24242    if test -n "$LIBMETALINK_PCDIR"; then
24243      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24244      export PKG_CONFIG_LIBDIR
24245    fi
24246       $PKGCONFIG --libs-only-l libmetalink`
24247    addld=`
24248    if test -n "$LIBMETALINK_PCDIR"; then
24249      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24250      export PKG_CONFIG_LIBDIR
24251    fi
24252       $PKGCONFIG --libs-only-L libmetalink`
24253    addcflags=`
24254    if test -n "$LIBMETALINK_PCDIR"; then
24255      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24256      export PKG_CONFIG_LIBDIR
24257    fi
24258       $PKGCONFIG --cflags-only-I libmetalink`
24259    version=`
24260    if test -n "$LIBMETALINK_PCDIR"; then
24261      PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24262      export PKG_CONFIG_LIBDIR
24263    fi
24264       $PKGCONFIG --modversion libmetalink`
24265    libmetalinklib=`echo $addld | $SED -e 's/-L//'`
24266  fi
24267  if test -n "$addlib"; then
24268
24269    clean_CPPFLAGS="$CPPFLAGS"
24270    clean_LDFLAGS="$LDFLAGS"
24271    clean_LIBS="$LIBS"
24272    CPPFLAGS="$addcflags $clean_CPPFLAGS"
24273    LDFLAGS="$addld $clean_LDFLAGS"
24274    LIBS="$addlib $clean_LIBS"
24275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
24276$as_echo_n "checking if libmetalink is recent enough... " >&6; }
24277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24278/* end confdefs.h.  */
24279
24280
24281#       include <metalink/metalink.h>
24282
24283int main (void)
24284{
24285
24286        if(0 != metalink_strerror(0)) /* added in 0.1.0 */
24287          return 1;
24288
24289 ;
24290 return 0;
24291}
24292
24293_ACEOF
24294if ac_fn_c_try_link "$LINENO"; then :
24295
24296      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
24297$as_echo "yes ($version)" >&6; }
24298      want_metalink="yes"
24299
24300else
24301
24302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
24303$as_echo "no ($version)" >&6; }
24304      { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
24305$as_echo "$as_me: libmetalink library defective or too old" >&6;}
24306      want_metalink="no"
24307
24308fi
24309rm -f core conftest.err conftest.$ac_objext \
24310    conftest$ac_exeext conftest.$ac_ext
24311    CPPFLAGS="$clean_CPPFLAGS"
24312    LDFLAGS="$clean_LDFLAGS"
24313    LIBS="$clean_LIBS"
24314    if test "$want_metalink" = "yes"; then
24315
24316$as_echo "#define USE_METALINK 1" >>confdefs.h
24317
24318      LIBMETALINK_LIBS=$addlib
24319      LIBMETALINK_LDFLAGS=$addld
24320      LIBMETALINK_CPPFLAGS=$addcflags
24321
24322
24323
24324      curl_mtlnk_msg="enabled"
24325    fi
24326
24327  fi
24328fi
24329
24330
24331OPT_LIBSSH2=off
24332
24333# Check whether --with-libssh2 was given.
24334if test "${with_libssh2+set}" = set; then :
24335  withval=$with_libssh2; OPT_LIBSSH2=$withval
24336fi
24337
24338
24339if test X"$OPT_LIBSSH2" != Xno; then
24340    CLEANLDFLAGS="$LDFLAGS"
24341  CLEANCPPFLAGS="$CPPFLAGS"
24342  CLEANLIBS="$LIBS"
24343
24344  case "$OPT_LIBSSH2" in
24345  yes)
24346
24347
24348    PKGCONFIG="no"
24349
24350    if test -n "$ac_tool_prefix"; then
24351  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24352set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24354$as_echo_n "checking for $ac_word... " >&6; }
24355if ${ac_cv_path_PKGCONFIG+:} false; then :
24356  $as_echo_n "(cached) " >&6
24357else
24358  case $PKGCONFIG in
24359  [\\/]* | ?:[\\/]*)
24360  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24361  ;;
24362  *)
24363  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24364as_dummy="$PATH:/usr/bin:/usr/local/bin"
24365for as_dir in $as_dummy
24366do
24367  IFS=$as_save_IFS
24368  test -z "$as_dir" && as_dir=.
24369    for ac_exec_ext in '' $ac_executable_extensions; do
24370  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24371    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24372    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24373    break 2
24374  fi
24375done
24376  done
24377IFS=$as_save_IFS
24378
24379  ;;
24380esac
24381fi
24382PKGCONFIG=$ac_cv_path_PKGCONFIG
24383if test -n "$PKGCONFIG"; then
24384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24385$as_echo "$PKGCONFIG" >&6; }
24386else
24387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24388$as_echo "no" >&6; }
24389fi
24390
24391
24392fi
24393if test -z "$ac_cv_path_PKGCONFIG"; then
24394  ac_pt_PKGCONFIG=$PKGCONFIG
24395  # Extract the first word of "pkg-config", so it can be a program name with args.
24396set dummy pkg-config; ac_word=$2
24397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24398$as_echo_n "checking for $ac_word... " >&6; }
24399if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24400  $as_echo_n "(cached) " >&6
24401else
24402  case $ac_pt_PKGCONFIG in
24403  [\\/]* | ?:[\\/]*)
24404  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24405  ;;
24406  *)
24407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24408as_dummy="$PATH:/usr/bin:/usr/local/bin"
24409for as_dir in $as_dummy
24410do
24411  IFS=$as_save_IFS
24412  test -z "$as_dir" && as_dir=.
24413    for ac_exec_ext in '' $ac_executable_extensions; do
24414  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24415    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24416    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24417    break 2
24418  fi
24419done
24420  done
24421IFS=$as_save_IFS
24422
24423  ;;
24424esac
24425fi
24426ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24427if test -n "$ac_pt_PKGCONFIG"; then
24428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24429$as_echo "$ac_pt_PKGCONFIG" >&6; }
24430else
24431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24432$as_echo "no" >&6; }
24433fi
24434
24435  if test "x$ac_pt_PKGCONFIG" = x; then
24436    PKGCONFIG="no"
24437  else
24438    case $cross_compiling:$ac_tool_warned in
24439yes:)
24440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24442ac_tool_warned=yes ;;
24443esac
24444    PKGCONFIG=$ac_pt_PKGCONFIG
24445  fi
24446else
24447  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24448fi
24449
24450
24451    if test x$PKGCONFIG != xno; then
24452      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
24453$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
24454            itexists=`
24455    if test -n ""; then
24456      PKG_CONFIG_LIBDIR=""
24457      export PKG_CONFIG_LIBDIR
24458    fi
24459         $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
24460
24461      if test -z "$itexists"; then
24462                        PKGCONFIG="no"
24463        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24464$as_echo "no" >&6; }
24465      else
24466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24467$as_echo "found" >&6; }
24468      fi
24469    fi
24470
24471
24472    if test "$PKGCONFIG" != "no" ; then
24473      LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
24474      LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
24475      CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
24476      version=`$PKGCONFIG --modversion libssh2`
24477      DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
24478    fi
24479
24480    ;;
24481  off)
24482        ;;
24483  *)
24484        PREFIX_SSH2=$OPT_LIBSSH2
24485    ;;
24486  esac
24487
24488    if test -n "$PREFIX_SSH2"; then
24489    LIB_SSH2="-lssh2"
24490    LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
24491    CPP_SSH2=-I${PREFIX_SSH2}/include
24492    DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
24493  fi
24494
24495  LDFLAGS="$LDFLAGS $LD_SSH2"
24496  CPPFLAGS="$CPPFLAGS $CPP_SSH2"
24497  LIBS="$LIB_SSH2 $LIBS"
24498
24499  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
24500$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
24501if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
24502  $as_echo_n "(cached) " >&6
24503else
24504  ac_check_lib_save_LIBS=$LIBS
24505LIBS="-lssh2  $LIBS"
24506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507/* end confdefs.h.  */
24508
24509
24510#ifdef __cplusplus
24511extern "C"
24512#endif
24513char libssh2_channel_open_ex ();
24514int main (void)
24515{
24516return libssh2_channel_open_ex ();
24517 ;
24518 return 0;
24519}
24520_ACEOF
24521if ac_fn_c_try_link "$LINENO"; then :
24522  ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
24523else
24524  ac_cv_lib_ssh2_libssh2_channel_open_ex=no
24525fi
24526rm -f core conftest.err conftest.$ac_objext \
24527    conftest$ac_exeext conftest.$ac_ext
24528LIBS=$ac_check_lib_save_LIBS
24529fi
24530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
24531$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
24532if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
24533  cat >>confdefs.h <<_ACEOF
24534#define HAVE_LIBSSH2 1
24535_ACEOF
24536
24537  LIBS="-lssh2 $LIBS"
24538
24539fi
24540
24541
24542  for ac_header in libssh2.h
24543do :
24544  ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
24545if test "x$ac_cv_header_libssh2_h" = xyes; then :
24546  cat >>confdefs.h <<_ACEOF
24547#define HAVE_LIBSSH2_H 1
24548_ACEOF
24549 curl_ssh_msg="enabled (libSSH2)"
24550    LIBSSH2_ENABLED=1
24551
24552$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
24553
24554    USE_LIBSSH2=1
24555
24556
24557fi
24558
24559done
24560
24561
24562  if test X"$OPT_LIBSSH2" != Xoff &&
24563     test "$LIBSSH2_ENABLED" != "1"; then
24564    as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
24565  fi
24566
24567  if test "$LIBSSH2_ENABLED" = "1"; then
24568    if test -n "$DIR_SSH2"; then
24569
24570                                   for ac_func in libssh2_version libssh2_init libssh2_exit \
24571                       libssh2_scp_send64 libssh2_session_handshake
24572do :
24573  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24574ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24575if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24576  cat >>confdefs.h <<_ACEOF
24577#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24578_ACEOF
24579
24580fi
24581done
24582
24583       if test "x$cross_compiling" != "xyes"; then
24584         LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
24585         export LD_LIBRARY_PATH
24586         { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
24587$as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
24588       fi
24589    fi
24590  else
24591        LDFLAGS=$CLEANLDFLAGS
24592    CPPFLAGS=$CLEANCPPFLAGS
24593    LIBS=$CLEANLIBS
24594  fi
24595fi
24596
24597
24598OPT_LIBRTMP=off
24599
24600# Check whether --with-librtmp was given.
24601if test "${with_librtmp+set}" = set; then :
24602  withval=$with_librtmp; OPT_LIBRTMP=$withval
24603fi
24604
24605
24606if test X"$OPT_LIBRTMP" != Xno; then
24607    CLEANLDFLAGS="$LDFLAGS"
24608  CLEANCPPFLAGS="$CPPFLAGS"
24609  CLEANLIBS="$LIBS"
24610
24611  case "$OPT_LIBRTMP" in
24612  yes)
24613
24614
24615    PKGCONFIG="no"
24616
24617    if test -n "$ac_tool_prefix"; then
24618  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24619set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24621$as_echo_n "checking for $ac_word... " >&6; }
24622if ${ac_cv_path_PKGCONFIG+:} false; then :
24623  $as_echo_n "(cached) " >&6
24624else
24625  case $PKGCONFIG in
24626  [\\/]* | ?:[\\/]*)
24627  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24628  ;;
24629  *)
24630  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24631as_dummy="$PATH:/usr/bin:/usr/local/bin"
24632for as_dir in $as_dummy
24633do
24634  IFS=$as_save_IFS
24635  test -z "$as_dir" && as_dir=.
24636    for ac_exec_ext in '' $ac_executable_extensions; do
24637  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24638    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24640    break 2
24641  fi
24642done
24643  done
24644IFS=$as_save_IFS
24645
24646  ;;
24647esac
24648fi
24649PKGCONFIG=$ac_cv_path_PKGCONFIG
24650if test -n "$PKGCONFIG"; then
24651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24652$as_echo "$PKGCONFIG" >&6; }
24653else
24654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24655$as_echo "no" >&6; }
24656fi
24657
24658
24659fi
24660if test -z "$ac_cv_path_PKGCONFIG"; then
24661  ac_pt_PKGCONFIG=$PKGCONFIG
24662  # Extract the first word of "pkg-config", so it can be a program name with args.
24663set dummy pkg-config; ac_word=$2
24664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24665$as_echo_n "checking for $ac_word... " >&6; }
24666if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24667  $as_echo_n "(cached) " >&6
24668else
24669  case $ac_pt_PKGCONFIG in
24670  [\\/]* | ?:[\\/]*)
24671  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24672  ;;
24673  *)
24674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24675as_dummy="$PATH:/usr/bin:/usr/local/bin"
24676for as_dir in $as_dummy
24677do
24678  IFS=$as_save_IFS
24679  test -z "$as_dir" && as_dir=.
24680    for ac_exec_ext in '' $ac_executable_extensions; do
24681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24682    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24684    break 2
24685  fi
24686done
24687  done
24688IFS=$as_save_IFS
24689
24690  ;;
24691esac
24692fi
24693ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24694if test -n "$ac_pt_PKGCONFIG"; then
24695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24696$as_echo "$ac_pt_PKGCONFIG" >&6; }
24697else
24698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24699$as_echo "no" >&6; }
24700fi
24701
24702  if test "x$ac_pt_PKGCONFIG" = x; then
24703    PKGCONFIG="no"
24704  else
24705    case $cross_compiling:$ac_tool_warned in
24706yes:)
24707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24709ac_tool_warned=yes ;;
24710esac
24711    PKGCONFIG=$ac_pt_PKGCONFIG
24712  fi
24713else
24714  PKGCONFIG="$ac_cv_path_PKGCONFIG"
24715fi
24716
24717
24718    if test x$PKGCONFIG != xno; then
24719      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
24720$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
24721            itexists=`
24722    if test -n ""; then
24723      PKG_CONFIG_LIBDIR=""
24724      export PKG_CONFIG_LIBDIR
24725    fi
24726         $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
24727
24728      if test -z "$itexists"; then
24729                        PKGCONFIG="no"
24730        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24731$as_echo "no" >&6; }
24732      else
24733        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24734$as_echo "found" >&6; }
24735      fi
24736    fi
24737
24738
24739    if test "$PKGCONFIG" != "no" ; then
24740      LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
24741      LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
24742      CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
24743      version=`$PKGCONFIG --modversion librtmp`
24744      DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
24745    else
24746                  as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
24747    fi
24748
24749    ;;
24750  off)
24751        LIB_RTMP="-lrtmp"
24752    ;;
24753  *)
24754        PREFIX_RTMP=$OPT_LIBRTMP
24755    ;;
24756  esac
24757
24758    if test -n "$PREFIX_RTMP"; then
24759    LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
24760    CPP_RTMP=-I${PREFIX_RTMP}/include
24761    DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
24762  fi
24763
24764  LDFLAGS="$LDFLAGS $LD_RTMP"
24765  CPPFLAGS="$CPPFLAGS $CPP_RTMP"
24766  LIBS="$LIB_RTMP $LIBS"
24767
24768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
24769$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
24770if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
24771  $as_echo_n "(cached) " >&6
24772else
24773  ac_check_lib_save_LIBS=$LIBS
24774LIBS="-lrtmp  $LIBS"
24775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24776/* end confdefs.h.  */
24777
24778
24779#ifdef __cplusplus
24780extern "C"
24781#endif
24782char RTMP_Init ();
24783int main (void)
24784{
24785return RTMP_Init ();
24786 ;
24787 return 0;
24788}
24789_ACEOF
24790if ac_fn_c_try_link "$LINENO"; then :
24791  ac_cv_lib_rtmp_RTMP_Init=yes
24792else
24793  ac_cv_lib_rtmp_RTMP_Init=no
24794fi
24795rm -f core conftest.err conftest.$ac_objext \
24796    conftest$ac_exeext conftest.$ac_ext
24797LIBS=$ac_check_lib_save_LIBS
24798fi
24799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
24800$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
24801if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
24802
24803     for ac_header in librtmp/rtmp.h
24804do :
24805  ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
24806if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
24807  cat >>confdefs.h <<_ACEOF
24808#define HAVE_LIBRTMP_RTMP_H 1
24809_ACEOF
24810 curl_rtmp_msg="enabled (librtmp)"
24811        LIBRTMP_ENABLED=1
24812
24813$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
24814
24815        USE_LIBRTMP=1
24816
24817
24818fi
24819
24820done
24821
24822
24823else
24824        LDFLAGS=$CLEANLDFLAGS
24825      CPPFLAGS=$CLEANCPPFLAGS
24826      LIBS=$CLEANLIBS
24827
24828fi
24829
24830
24831  if test X"$OPT_LIBRTMP" != Xoff &&
24832     test "$LIBRTMP_ENABLED" != "1"; then
24833    as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
24834  fi
24835
24836fi
24837
24838
24839versioned_symbols_flavour=
24840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
24841$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
24842# Check whether --enable-versioned-symbols was given.
24843if test "${enable_versioned_symbols+set}" = set; then :
24844  enableval=$enable_versioned_symbols;  case "$enableval" in
24845  yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24846$as_echo "yes" >&6; }
24847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
24848$as_echo_n "checking if libraries can be versioned... " >&6; }
24849    GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
24850    if test -z "$GLD"; then
24851        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24852$as_echo "no" >&6; }
24853        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
24854$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
24855    else
24856        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24857$as_echo "yes" >&6; }
24858        if test "x$OPENSSL_ENABLED" = "x1"; then
24859          versioned_symbols_flavour="OPENSSL_"
24860        elif test "x$GNUTLS_ENABLED" = "x1"; then
24861          versioned_symbols_flavour="GNUTLS_"
24862        elif test "x$NSS_ENABLED" = "x1"; then
24863          versioned_symbols_flavour="NSS_"
24864        elif test "x$POLARSSL_ENABLED" = "x1"; then
24865          versioned_symbols_flavour="POLARSSL_"
24866        elif test "x$CYASSL_ENABLED" = "x1"; then
24867          versioned_symbols_flavour="CYASSL_"
24868        elif test "x$AXTLS_ENABLED" = "x1"; then
24869          versioned_symbols_flavour="AXTLS_"
24870        elif test "x$WINSSL_ENABLED" = "x1"; then
24871          versioned_symbols_flavour="WINSSL_"
24872        elif test "x$DARWINSSL_ENABLED" = "x1"; then
24873          versioned_symbols_flavour="DARWINSSL_"
24874        else
24875          versioned_symbols_flavour=""
24876        fi
24877        versioned_symbols="yes"
24878    fi
24879    ;;
24880
24881  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24882$as_echo "no" >&6; }
24883    ;;
24884  esac
24885
24886else
24887
24888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24889$as_echo "no" >&6; }
24890
24891
24892fi
24893
24894
24895CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
24896
24897 if test "x$versioned_symbols" = 'xyes'; then
24898  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
24899  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
24900else
24901  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
24902  CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
24903fi
24904
24905
24906
24907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
24908$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
24909OPT_WINIDN="default"
24910
24911# Check whether --with-winidn was given.
24912if test "${with_winidn+set}" = set; then :
24913  withval=$with_winidn; OPT_WINIDN=$withval
24914fi
24915
24916case "$OPT_WINIDN" in
24917  no|default)
24918        want_winidn="no"
24919    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24920$as_echo "no" >&6; }
24921    ;;
24922  yes)
24923        want_winidn="yes"
24924    want_winidn_path="default"
24925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24926$as_echo "yes" >&6; }
24927    ;;
24928  *)
24929        want_winidn="yes"
24930    want_winidn_path="$withval"
24931    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
24932$as_echo "yes ($withval)" >&6; }
24933    ;;
24934esac
24935
24936if test "$want_winidn" = "yes"; then
24937    clean_CPPFLAGS="$CPPFLAGS"
24938  clean_LDFLAGS="$LDFLAGS"
24939  clean_LIBS="$LIBS"
24940  WINIDN_LIBS="-lnormaliz"
24941  #
24942  if test "$want_winidn_path" != "default"; then
24943            WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
24944    WINIDN_CPPFLAGS="-I$want_winidn_path/include"
24945    WINIDN_DIR="$want_winidn_path/lib$libsuff"
24946  fi
24947  #
24948  CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
24949  LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
24950  LIBS="$WINIDN_LIBS $LIBS"
24951  #
24952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
24953$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
24954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24955/* end confdefs.h.  */
24956
24957
24958#define IdnToUnicode innocuous_IdnToUnicode
24959#ifdef __STDC__
24960# include <limits.h>
24961#else
24962# include <assert.h>
24963#endif
24964#undef IdnToUnicode
24965#ifdef __cplusplus
24966extern "C"
24967#endif
24968char IdnToUnicode ();
24969#if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
24970choke me
24971#endif
24972
24973int main (void)
24974{
24975return IdnToUnicode ();
24976 ;
24977 return 0;
24978}
24979
24980_ACEOF
24981if ac_fn_c_try_link "$LINENO"; then :
24982
24983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24984$as_echo "yes" >&6; }
24985    tst_links_winidn="yes"
24986
24987else
24988
24989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24990$as_echo "no" >&6; }
24991    tst_links_winidn="no"
24992
24993fi
24994rm -f core conftest.err conftest.$ac_objext \
24995    conftest$ac_exeext conftest.$ac_ext
24996  #
24997  if test "$tst_links_winidn" = "yes"; then
24998
24999$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
25000
25001
25002$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
25003
25004    IDN_ENABLED=1
25005
25006    curl_idn_msg="enabled (Windows-native)"
25007  else
25008    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25009$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25010    CPPFLAGS="$clean_CPPFLAGS"
25011    LDFLAGS="$clean_LDFLAGS"
25012    LIBS="$clean_LIBS"
25013  fi
25014fi
25015
25016
25017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
25018$as_echo_n "checking whether to build with libidn... " >&6; }
25019OPT_IDN="default"
25020
25021# Check whether --with-libidn was given.
25022if test "${with_libidn+set}" = set; then :
25023  withval=$with_libidn; OPT_IDN=$withval
25024fi
25025
25026case "$OPT_IDN" in
25027  no)
25028        want_idn="no"
25029    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25030$as_echo "no" >&6; }
25031    ;;
25032  default)
25033        want_idn="yes"
25034    want_idn_path="default"
25035    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
25036$as_echo "(assumed) yes" >&6; }
25037    ;;
25038  yes)
25039        want_idn="yes"
25040    want_idn_path="default"
25041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25042$as_echo "yes" >&6; }
25043    ;;
25044  *)
25045        want_idn="yes"
25046    want_idn_path="$withval"
25047    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25048$as_echo "yes ($withval)" >&6; }
25049    ;;
25050esac
25051
25052if test "$want_idn" = "yes"; then
25053    clean_CPPFLAGS="$CPPFLAGS"
25054  clean_LDFLAGS="$LDFLAGS"
25055  clean_LIBS="$LIBS"
25056  PKGCONFIG="no"
25057  #
25058  if test "$want_idn_path" != "default"; then
25059        IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
25060
25061
25062    PKGCONFIG="no"
25063
25064    if test -n "$ac_tool_prefix"; then
25065  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25066set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25068$as_echo_n "checking for $ac_word... " >&6; }
25069if ${ac_cv_path_PKGCONFIG+:} false; then :
25070  $as_echo_n "(cached) " >&6
25071else
25072  case $PKGCONFIG in
25073  [\\/]* | ?:[\\/]*)
25074  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25075  ;;
25076  *)
25077  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25078as_dummy="$PATH:/usr/bin:/usr/local/bin"
25079for as_dir in $as_dummy
25080do
25081  IFS=$as_save_IFS
25082  test -z "$as_dir" && as_dir=.
25083    for ac_exec_ext in '' $ac_executable_extensions; do
25084  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25085    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25087    break 2
25088  fi
25089done
25090  done
25091IFS=$as_save_IFS
25092
25093  ;;
25094esac
25095fi
25096PKGCONFIG=$ac_cv_path_PKGCONFIG
25097if test -n "$PKGCONFIG"; then
25098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25099$as_echo "$PKGCONFIG" >&6; }
25100else
25101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25102$as_echo "no" >&6; }
25103fi
25104
25105
25106fi
25107if test -z "$ac_cv_path_PKGCONFIG"; then
25108  ac_pt_PKGCONFIG=$PKGCONFIG
25109  # Extract the first word of "pkg-config", so it can be a program name with args.
25110set dummy pkg-config; ac_word=$2
25111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25112$as_echo_n "checking for $ac_word... " >&6; }
25113if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25114  $as_echo_n "(cached) " >&6
25115else
25116  case $ac_pt_PKGCONFIG in
25117  [\\/]* | ?:[\\/]*)
25118  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25119  ;;
25120  *)
25121  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25122as_dummy="$PATH:/usr/bin:/usr/local/bin"
25123for as_dir in $as_dummy
25124do
25125  IFS=$as_save_IFS
25126  test -z "$as_dir" && as_dir=.
25127    for ac_exec_ext in '' $ac_executable_extensions; do
25128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25129    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25131    break 2
25132  fi
25133done
25134  done
25135IFS=$as_save_IFS
25136
25137  ;;
25138esac
25139fi
25140ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25141if test -n "$ac_pt_PKGCONFIG"; then
25142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25143$as_echo "$ac_pt_PKGCONFIG" >&6; }
25144else
25145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25146$as_echo "no" >&6; }
25147fi
25148
25149  if test "x$ac_pt_PKGCONFIG" = x; then
25150    PKGCONFIG="no"
25151  else
25152    case $cross_compiling:$ac_tool_warned in
25153yes:)
25154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25156ac_tool_warned=yes ;;
25157esac
25158    PKGCONFIG=$ac_pt_PKGCONFIG
25159  fi
25160else
25161  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25162fi
25163
25164
25165    if test x$PKGCONFIG != xno; then
25166      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25167$as_echo_n "checking for libidn options with pkg-config... " >&6; }
25168            itexists=`
25169    if test -n "$IDN_PCDIR"; then
25170      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25171      export PKG_CONFIG_LIBDIR
25172    fi
25173         $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25174
25175      if test -z "$itexists"; then
25176                        PKGCONFIG="no"
25177        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25178$as_echo "no" >&6; }
25179      else
25180        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25181$as_echo "found" >&6; }
25182      fi
25183    fi
25184
25185    if test "$PKGCONFIG" != "no"; then
25186      IDN_LIBS=`
25187    if test -n "$IDN_PCDIR"; then
25188      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25189      export PKG_CONFIG_LIBDIR
25190    fi
25191         $PKGCONFIG --libs-only-l libidn 2>/dev/null`
25192      IDN_LDFLAGS=`
25193    if test -n "$IDN_PCDIR"; then
25194      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25195      export PKG_CONFIG_LIBDIR
25196    fi
25197         $PKGCONFIG --libs-only-L libidn 2>/dev/null`
25198      IDN_CPPFLAGS=`
25199    if test -n "$IDN_PCDIR"; then
25200      PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25201      export PKG_CONFIG_LIBDIR
25202    fi
25203         $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25204      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25205    else
25206            IDN_LIBS="-lidn"
25207      IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
25208      IDN_CPPFLAGS="-I$want_idn_path/include"
25209      IDN_DIR="$want_idn_path/lib$libsuff"
25210    fi
25211  else
25212
25213
25214    PKGCONFIG="no"
25215
25216    if test -n "$ac_tool_prefix"; then
25217  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25218set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25220$as_echo_n "checking for $ac_word... " >&6; }
25221if ${ac_cv_path_PKGCONFIG+:} false; then :
25222  $as_echo_n "(cached) " >&6
25223else
25224  case $PKGCONFIG in
25225  [\\/]* | ?:[\\/]*)
25226  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25227  ;;
25228  *)
25229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25230as_dummy="$PATH:/usr/bin:/usr/local/bin"
25231for as_dir in $as_dummy
25232do
25233  IFS=$as_save_IFS
25234  test -z "$as_dir" && as_dir=.
25235    for ac_exec_ext in '' $ac_executable_extensions; do
25236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25237    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25239    break 2
25240  fi
25241done
25242  done
25243IFS=$as_save_IFS
25244
25245  ;;
25246esac
25247fi
25248PKGCONFIG=$ac_cv_path_PKGCONFIG
25249if test -n "$PKGCONFIG"; then
25250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25251$as_echo "$PKGCONFIG" >&6; }
25252else
25253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25254$as_echo "no" >&6; }
25255fi
25256
25257
25258fi
25259if test -z "$ac_cv_path_PKGCONFIG"; then
25260  ac_pt_PKGCONFIG=$PKGCONFIG
25261  # Extract the first word of "pkg-config", so it can be a program name with args.
25262set dummy pkg-config; ac_word=$2
25263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25264$as_echo_n "checking for $ac_word... " >&6; }
25265if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25266  $as_echo_n "(cached) " >&6
25267else
25268  case $ac_pt_PKGCONFIG in
25269  [\\/]* | ?:[\\/]*)
25270  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25271  ;;
25272  *)
25273  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25274as_dummy="$PATH:/usr/bin:/usr/local/bin"
25275for as_dir in $as_dummy
25276do
25277  IFS=$as_save_IFS
25278  test -z "$as_dir" && as_dir=.
25279    for ac_exec_ext in '' $ac_executable_extensions; do
25280  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25281    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25283    break 2
25284  fi
25285done
25286  done
25287IFS=$as_save_IFS
25288
25289  ;;
25290esac
25291fi
25292ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25293if test -n "$ac_pt_PKGCONFIG"; then
25294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25295$as_echo "$ac_pt_PKGCONFIG" >&6; }
25296else
25297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25298$as_echo "no" >&6; }
25299fi
25300
25301  if test "x$ac_pt_PKGCONFIG" = x; then
25302    PKGCONFIG="no"
25303  else
25304    case $cross_compiling:$ac_tool_warned in
25305yes:)
25306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25308ac_tool_warned=yes ;;
25309esac
25310    PKGCONFIG=$ac_pt_PKGCONFIG
25311  fi
25312else
25313  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25314fi
25315
25316
25317    if test x$PKGCONFIG != xno; then
25318      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25319$as_echo_n "checking for libidn options with pkg-config... " >&6; }
25320            itexists=`
25321    if test -n ""; then
25322      PKG_CONFIG_LIBDIR=""
25323      export PKG_CONFIG_LIBDIR
25324    fi
25325         $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25326
25327      if test -z "$itexists"; then
25328                        PKGCONFIG="no"
25329        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25330$as_echo "no" >&6; }
25331      else
25332        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25333$as_echo "found" >&6; }
25334      fi
25335    fi
25336
25337    if test "$PKGCONFIG" != "no"; then
25338      IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
25339      IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
25340      IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25341      IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25342    else
25343            IDN_LIBS="-lidn"
25344    fi
25345  fi
25346  #
25347  if test "$PKGCONFIG" != "no"; then
25348    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
25349$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25350    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25351$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25352    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25353$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25354    { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
25355$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
25356  else
25357    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
25358$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25359    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25360$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25361    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25362$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25363    { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
25364$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
25365  fi
25366  #
25367  CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
25368  LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
25369  LIBS="$IDN_LIBS $LIBS"
25370  #
25371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
25372$as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
25373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25374/* end confdefs.h.  */
25375
25376
25377#define idna_to_ascii_4i innocuous_idna_to_ascii_4i
25378#ifdef __STDC__
25379# include <limits.h>
25380#else
25381# include <assert.h>
25382#endif
25383#undef idna_to_ascii_4i
25384#ifdef __cplusplus
25385extern "C"
25386#endif
25387char idna_to_ascii_4i ();
25388#if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
25389choke me
25390#endif
25391
25392int main (void)
25393{
25394return idna_to_ascii_4i ();
25395 ;
25396 return 0;
25397}
25398
25399_ACEOF
25400if ac_fn_c_try_link "$LINENO"; then :
25401
25402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25403$as_echo "yes" >&6; }
25404    tst_links_libidn="yes"
25405
25406else
25407
25408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25409$as_echo "no" >&6; }
25410    tst_links_libidn="no"
25411
25412fi
25413rm -f core conftest.err conftest.$ac_objext \
25414    conftest$ac_exeext conftest.$ac_ext
25415  if test "$tst_links_libidn" = "no"; then
25416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
25417$as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
25418    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25419/* end confdefs.h.  */
25420
25421
25422#define idna_to_ascii_lz innocuous_idna_to_ascii_lz
25423#ifdef __STDC__
25424# include <limits.h>
25425#else
25426# include <assert.h>
25427#endif
25428#undef idna_to_ascii_lz
25429#ifdef __cplusplus
25430extern "C"
25431#endif
25432char idna_to_ascii_lz ();
25433#if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
25434choke me
25435#endif
25436
25437int main (void)
25438{
25439return idna_to_ascii_lz ();
25440 ;
25441 return 0;
25442}
25443
25444_ACEOF
25445if ac_fn_c_try_link "$LINENO"; then :
25446
25447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25448$as_echo "yes" >&6; }
25449      tst_links_libidn="yes"
25450
25451else
25452
25453      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25454$as_echo "no" >&6; }
25455      tst_links_libidn="no"
25456
25457fi
25458rm -f core conftest.err conftest.$ac_objext \
25459    conftest$ac_exeext conftest.$ac_ext
25460  fi
25461  #
25462  if test "$tst_links_libidn" = "yes"; then
25463
25464$as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
25465
25466        for ac_func in idn_free idna_strerror tld_strerror
25467do :
25468  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25469ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25470if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25471  cat >>confdefs.h <<_ACEOF
25472#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25473_ACEOF
25474
25475fi
25476done
25477
25478    for ac_header in idn-free.h tld.h
25479do :
25480  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25482if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25483  cat >>confdefs.h <<_ACEOF
25484#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25485_ACEOF
25486
25487fi
25488
25489done
25490
25491    if test "x$ac_cv_header_tld_h" = "xyes"; then
25492      IDN_ENABLED=1
25493
25494      curl_idn_msg="enabled"
25495      if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
25496        LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
25497        export LD_LIBRARY_PATH
25498        { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
25499$as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
25500      fi
25501    else
25502      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
25503$as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
25504      CPPFLAGS="$clean_CPPFLAGS"
25505      LDFLAGS="$clean_LDFLAGS"
25506      LIBS="$clean_LIBS"
25507    fi
25508  else
25509    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25510$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25511    CPPFLAGS="$clean_CPPFLAGS"
25512    LDFLAGS="$clean_LDFLAGS"
25513    LIBS="$clean_LIBS"
25514  fi
25515fi
25516
25517
25518
25519
25520
25521OPT_H2="yes"
25522
25523# Check whether --with-nghttp2 was given.
25524if test "${with_nghttp2+set}" = set; then :
25525  withval=$with_nghttp2; OPT_H2=$withval
25526fi
25527
25528case "$OPT_H2" in
25529  no)
25530        want_h2="no"
25531    ;;
25532  yes)
25533        want_h2="default"
25534    want_h2_path=""
25535    ;;
25536  *)
25537        want_h2="yes"
25538    want_h2_path="$withval/lib/pkgconfig"
25539    ;;
25540esac
25541
25542curl_h2_msg="disabled (--with-nghttp2)"
25543if test X"$want_h2" != Xno; then
25544    CLEANLDFLAGS="$LDFLAGS"
25545  CLEANCPPFLAGS="$CPPFLAGS"
25546  CLEANLIBS="$LIBS"
25547
25548
25549
25550    PKGCONFIG="no"
25551
25552    if test -n "$ac_tool_prefix"; then
25553  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25554set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25556$as_echo_n "checking for $ac_word... " >&6; }
25557if ${ac_cv_path_PKGCONFIG+:} false; then :
25558  $as_echo_n "(cached) " >&6
25559else
25560  case $PKGCONFIG in
25561  [\\/]* | ?:[\\/]*)
25562  ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25563  ;;
25564  *)
25565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25566as_dummy="$PATH:/usr/bin:/usr/local/bin"
25567for as_dir in $as_dummy
25568do
25569  IFS=$as_save_IFS
25570  test -z "$as_dir" && as_dir=.
25571    for ac_exec_ext in '' $ac_executable_extensions; do
25572  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25573    ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25574    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25575    break 2
25576  fi
25577done
25578  done
25579IFS=$as_save_IFS
25580
25581  ;;
25582esac
25583fi
25584PKGCONFIG=$ac_cv_path_PKGCONFIG
25585if test -n "$PKGCONFIG"; then
25586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25587$as_echo "$PKGCONFIG" >&6; }
25588else
25589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25590$as_echo "no" >&6; }
25591fi
25592
25593
25594fi
25595if test -z "$ac_cv_path_PKGCONFIG"; then
25596  ac_pt_PKGCONFIG=$PKGCONFIG
25597  # Extract the first word of "pkg-config", so it can be a program name with args.
25598set dummy pkg-config; ac_word=$2
25599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25600$as_echo_n "checking for $ac_word... " >&6; }
25601if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25602  $as_echo_n "(cached) " >&6
25603else
25604  case $ac_pt_PKGCONFIG in
25605  [\\/]* | ?:[\\/]*)
25606  ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25607  ;;
25608  *)
25609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610as_dummy="$PATH:/usr/bin:/usr/local/bin"
25611for as_dir in $as_dummy
25612do
25613  IFS=$as_save_IFS
25614  test -z "$as_dir" && as_dir=.
25615    for ac_exec_ext in '' $ac_executable_extensions; do
25616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25617    ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25619    break 2
25620  fi
25621done
25622  done
25623IFS=$as_save_IFS
25624
25625  ;;
25626esac
25627fi
25628ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25629if test -n "$ac_pt_PKGCONFIG"; then
25630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25631$as_echo "$ac_pt_PKGCONFIG" >&6; }
25632else
25633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25634$as_echo "no" >&6; }
25635fi
25636
25637  if test "x$ac_pt_PKGCONFIG" = x; then
25638    PKGCONFIG="no"
25639  else
25640    case $cross_compiling:$ac_tool_warned in
25641yes:)
25642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25644ac_tool_warned=yes ;;
25645esac
25646    PKGCONFIG=$ac_pt_PKGCONFIG
25647  fi
25648else
25649  PKGCONFIG="$ac_cv_path_PKGCONFIG"
25650fi
25651
25652
25653    if test x$PKGCONFIG != xno; then
25654      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
25655$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
25656            itexists=`
25657    if test -n "$want_h2_path"; then
25658      PKG_CONFIG_LIBDIR="$want_h2_path"
25659      export PKG_CONFIG_LIBDIR
25660    fi
25661         $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
25662
25663      if test -z "$itexists"; then
25664                        PKGCONFIG="no"
25665        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25666$as_echo "no" >&6; }
25667      else
25668        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25669$as_echo "found" >&6; }
25670      fi
25671    fi
25672
25673
25674  if test "$PKGCONFIG" != "no" ; then
25675    LIB_H2=`
25676    if test -n "$want_h2_path"; then
25677      PKG_CONFIG_LIBDIR="$want_h2_path"
25678      export PKG_CONFIG_LIBDIR
25679    fi
25680
25681      $PKGCONFIG --libs-only-l libnghttp2`
25682    { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
25683$as_echo "$as_me: -l is $LIB_H2" >&6;}
25684
25685    CPP_H2=`
25686    if test -n "$want_h2_path"; then
25687      PKG_CONFIG_LIBDIR="$want_h2_path"
25688      export PKG_CONFIG_LIBDIR
25689    fi
25690       $PKGCONFIG --cflags-only-I libnghttp2`
25691    { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
25692$as_echo "$as_me: -I is $CPP_H2" >&6;}
25693
25694    LD_H2=`
25695    if test -n "$want_h2_path"; then
25696      PKG_CONFIG_LIBDIR="$want_h2_path"
25697      export PKG_CONFIG_LIBDIR
25698    fi
25699
25700      $PKGCONFIG --libs-only-L libnghttp2`
25701    { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
25702$as_echo "$as_me: -L is $LD_H2" >&6;}
25703
25704    LDFLAGS="$LDFLAGS $LD_H2"
25705    CPPFLAGS="$CPPFLAGS $CPP_H2"
25706    LIBS="$LIB_H2 $LIBS"
25707
25708    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_client_new in -lnghttp2" >&5
25709$as_echo_n "checking for nghttp2_session_client_new in -lnghttp2... " >&6; }
25710if ${ac_cv_lib_nghttp2_nghttp2_session_client_new+:} false; then :
25711  $as_echo_n "(cached) " >&6
25712else
25713  ac_check_lib_save_LIBS=$LIBS
25714LIBS="-lnghttp2  $LIBS"
25715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25716/* end confdefs.h.  */
25717
25718
25719#ifdef __cplusplus
25720extern "C"
25721#endif
25722char nghttp2_session_client_new ();
25723int main (void)
25724{
25725return nghttp2_session_client_new ();
25726 ;
25727 return 0;
25728}
25729_ACEOF
25730if ac_fn_c_try_link "$LINENO"; then :
25731  ac_cv_lib_nghttp2_nghttp2_session_client_new=yes
25732else
25733  ac_cv_lib_nghttp2_nghttp2_session_client_new=no
25734fi
25735rm -f core conftest.err conftest.$ac_objext \
25736    conftest$ac_exeext conftest.$ac_ext
25737LIBS=$ac_check_lib_save_LIBS
25738fi
25739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_client_new" >&5
25740$as_echo "$ac_cv_lib_nghttp2_nghttp2_session_client_new" >&6; }
25741if test "x$ac_cv_lib_nghttp2_nghttp2_session_client_new" = xyes; then :
25742
25743       for ac_header in nghttp2/nghttp2.h
25744do :
25745  ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
25746if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
25747  cat >>confdefs.h <<_ACEOF
25748#define HAVE_NGHTTP2_NGHTTP2_H 1
25749_ACEOF
25750 curl_h2_msg="enabled (nghttp2)"
25751          NGHTTP2_ENABLED=1
25752
25753$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
25754
25755          USE_NGHTTP2=1
25756
25757
25758fi
25759
25760done
25761
25762
25763else
25764          LDFLAGS=$CLEANLDFLAGS
25765        CPPFLAGS=$CLEANCPPFLAGS
25766        LIBS=$CLEANLIBS
25767
25768fi
25769
25770
25771  else
25772        if test X"$want_h2" != Xdefault; then
25773                  as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
25774    fi
25775  fi
25776
25777fi
25778
25779
25780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25781$as_echo_n "checking for ANSI C header files... " >&6; }
25782if ${ac_cv_header_stdc+:} false; then :
25783  $as_echo_n "(cached) " >&6
25784else
25785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786/* end confdefs.h.  */
25787#include <stdlib.h>
25788#include <stdarg.h>
25789#include <string.h>
25790#include <float.h>
25791
25792int main (void)
25793{
25794
25795 ;
25796 return 0;
25797}
25798_ACEOF
25799if ac_fn_c_try_compile "$LINENO"; then :
25800  ac_cv_header_stdc=yes
25801else
25802  ac_cv_header_stdc=no
25803fi
25804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25805
25806if test $ac_cv_header_stdc = yes; then
25807  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25809/* end confdefs.h.  */
25810#include <string.h>
25811
25812_ACEOF
25813if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25814  $EGREP "memchr" >/dev/null 2>&1; then :
25815
25816else
25817  ac_cv_header_stdc=no
25818fi
25819rm -f conftest*
25820
25821fi
25822
25823if test $ac_cv_header_stdc = yes; then
25824  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25826/* end confdefs.h.  */
25827#include <stdlib.h>
25828
25829_ACEOF
25830if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25831  $EGREP "free" >/dev/null 2>&1; then :
25832
25833else
25834  ac_cv_header_stdc=no
25835fi
25836rm -f conftest*
25837
25838fi
25839
25840if test $ac_cv_header_stdc = yes; then
25841  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25842  if test "$cross_compiling" = yes; then :
25843  :
25844else
25845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846/* end confdefs.h.  */
25847#include <ctype.h>
25848#include <stdlib.h>
25849#if ((' ' & 0x0FF) == 0x020)
25850# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25851# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25852#else
25853# define ISLOWER(c) \
25854		   (('a' <= (c) && (c) <= 'i') \
25855		     || ('j' <= (c) && (c) <= 'r') \
25856		     || ('s' <= (c) && (c) <= 'z'))
25857# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25858#endif
25859
25860#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25861int
25862main ()
25863{
25864  int i;
25865  for (i = 0; i < 256; i++)
25866    if (XOR (islower (i), ISLOWER (i))
25867	|| toupper (i) != TOUPPER (i))
25868      return 2;
25869  return 0;
25870}
25871_ACEOF
25872if ac_fn_c_try_run "$LINENO"; then :
25873
25874else
25875  ac_cv_header_stdc=no
25876fi
25877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25878  conftest.$ac_objext conftest.beam conftest.$ac_ext
25879fi
25880
25881fi
25882fi
25883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25884$as_echo "$ac_cv_header_stdc" >&6; }
25885if test $ac_cv_header_stdc = yes; then
25886
25887$as_echo "#define STDC_HEADERS 1" >>confdefs.h
25888
25889fi
25890
25891
25892
25893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
25894$as_echo_n "checking for malloc.h... " >&6; }
25895if ${ac_cv_header_malloc_h+:} false; then :
25896  $as_echo_n "(cached) " >&6
25897else
25898
25899    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25900/* end confdefs.h.  */
25901
25902
25903#include <malloc.h>
25904
25905int main (void)
25906{
25907
25908        void *p = malloc(10);
25909        void *q = calloc(10,10);
25910        free(p);
25911        free(q);
25912
25913 ;
25914 return 0;
25915}
25916
25917_ACEOF
25918if ac_fn_c_try_compile "$LINENO"; then :
25919
25920      ac_cv_header_malloc_h="yes"
25921
25922else
25923
25924      ac_cv_header_malloc_h="no"
25925
25926fi
25927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25928
25929fi
25930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
25931$as_echo "$ac_cv_header_malloc_h" >&6; }
25932  if test "$ac_cv_header_malloc_h" = "yes"; then
25933
25934cat >>confdefs.h <<_ACEOF
25935#define HAVE_MALLOC_H 1
25936_ACEOF
25937
25938    #
25939    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25940/* end confdefs.h.  */
25941
25942
25943#include <stdlib.h>
25944
25945int main (void)
25946{
25947
25948        void *p = malloc(10);
25949        void *q = calloc(10,10);
25950        free(p);
25951        free(q);
25952
25953 ;
25954 return 0;
25955}
25956
25957_ACEOF
25958if ac_fn_c_try_compile "$LINENO"; then :
25959
25960      curl_cv_need_header_malloc_h="no"
25961
25962else
25963
25964      curl_cv_need_header_malloc_h="yes"
25965
25966fi
25967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25968    #
25969    case "$curl_cv_need_header_malloc_h" in
25970      yes)
25971
25972cat >>confdefs.h <<_ACEOF
25973#define NEED_MALLOC_H 1
25974_ACEOF
25975
25976        ;;
25977    esac
25978  fi
25979
25980
25981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
25982$as_echo_n "checking for memory.h... " >&6; }
25983if ${ac_cv_header_memory_h+:} false; then :
25984  $as_echo_n "(cached) " >&6
25985else
25986
25987    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988/* end confdefs.h.  */
25989
25990
25991#include <memory.h>
25992
25993int main (void)
25994{
25995
25996        void *p = malloc(10);
25997        void *q = calloc(10,10);
25998        free(p);
25999        free(q);
26000
26001 ;
26002 return 0;
26003}
26004
26005_ACEOF
26006if ac_fn_c_try_compile "$LINENO"; then :
26007
26008      ac_cv_header_memory_h="yes"
26009
26010else
26011
26012      ac_cv_header_memory_h="no"
26013
26014fi
26015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016
26017fi
26018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
26019$as_echo "$ac_cv_header_memory_h" >&6; }
26020  if test "$ac_cv_header_memory_h" = "yes"; then
26021
26022cat >>confdefs.h <<_ACEOF
26023#define HAVE_MEMORY_H 1
26024_ACEOF
26025
26026    #
26027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26028/* end confdefs.h.  */
26029
26030
26031#include <stdlib.h>
26032
26033int main (void)
26034{
26035
26036        void *p = malloc(10);
26037        void *q = calloc(10,10);
26038        free(p);
26039        free(q);
26040
26041 ;
26042 return 0;
26043}
26044
26045_ACEOF
26046if ac_fn_c_try_compile "$LINENO"; then :
26047
26048      curl_cv_need_header_memory_h="no"
26049
26050else
26051
26052      curl_cv_need_header_memory_h="yes"
26053
26054fi
26055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26056    #
26057    case "$curl_cv_need_header_memory_h" in
26058      yes)
26059
26060cat >>confdefs.h <<_ACEOF
26061#define NEED_MEMORY_H 1
26062_ACEOF
26063
26064        ;;
26065    esac
26066  fi
26067
26068
26069for ac_header in sys/types.h \
26070        sys/time.h \
26071        sys/select.h \
26072        sys/socket.h \
26073        sys/ioctl.h \
26074        sys/uio.h \
26075        assert.h \
26076        unistd.h \
26077        stdlib.h \
26078        limits.h \
26079        arpa/inet.h \
26080        net/if.h \
26081        netinet/in.h \
26082        sys/un.h \
26083        netinet/tcp.h \
26084        netdb.h \
26085        sys/sockio.h \
26086        sys/stat.h \
26087        sys/param.h \
26088        termios.h \
26089        termio.h \
26090        sgtty.h \
26091        fcntl.h \
26092        alloca.h \
26093        time.h \
26094        io.h \
26095        pwd.h \
26096        utime.h \
26097        sys/utime.h \
26098        sys/poll.h \
26099        poll.h \
26100        socket.h \
26101        sys/resource.h \
26102        libgen.h \
26103        locale.h \
26104        errno.h \
26105        stdbool.h \
26106        arpa/tftp.h \
26107        sys/filio.h \
26108        sys/wait.h \
26109        setjmp.h
26110do :
26111  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26112ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
26113#ifdef HAVE_SYS_TYPES_H
26114#include <sys/types.h>
26115#endif
26116#ifdef HAVE_SYS_TIME_H
26117#include <sys/time.h>
26118#endif
26119#ifdef HAVE_SYS_SELECT_H
26120#include <sys/select.h>
26121#endif
26122#ifdef HAVE_SYS_SOCKET_H
26123#include <sys/socket.h>
26124#endif
26125#ifdef HAVE_NETINET_IN_H
26126#include <netinet/in.h>
26127#endif
26128#ifdef HAVE_SYS_UN_H
26129#include <sys/un.h>
26130#endif
26131
26132
26133"
26134if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26135  cat >>confdefs.h <<_ACEOF
26136#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26137_ACEOF
26138
26139fi
26140
26141done
26142
26143
26144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26145$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26146if ${ac_cv_c_const+:} false; then :
26147  $as_echo_n "(cached) " >&6
26148else
26149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26150/* end confdefs.h.  */
26151
26152int main (void)
26153{
26154
26155#ifndef __cplusplus
26156  /* Ultrix mips cc rejects this sort of thing.  */
26157  typedef int charset[2];
26158  const charset cs = { 0, 0 };
26159  /* SunOS 4.1.1 cc rejects this.  */
26160  char const *const *pcpcc;
26161  char **ppc;
26162  /* NEC SVR4.0.2 mips cc rejects this.  */
26163  struct point {int x, y;};
26164  static struct point const zero = {0,0};
26165  /* AIX XL C 1.02.0.0 rejects this.
26166     It does not let you subtract one const X* pointer from another in
26167     an arm of an if-expression whose if-part is not a constant
26168     expression */
26169  const char *g = "string";
26170  pcpcc = &g + (g ? g-g : 0);
26171  /* HPUX 7.0 cc rejects these. */
26172  ++pcpcc;
26173  ppc = (char**) pcpcc;
26174  pcpcc = (char const *const *) ppc;
26175  { /* SCO 3.2v4 cc rejects this sort of thing.  */
26176    char tx;
26177    char *t = &tx;
26178    char const *s = 0 ? (char *) 0 : (char const *) 0;
26179
26180    *t++ = 0;
26181    if (s) return 0;
26182  }
26183  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26184    int x[] = {25, 17};
26185    const int *foo = &x[0];
26186    ++foo;
26187  }
26188  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26189    typedef const int *iptr;
26190    iptr p = 0;
26191    ++p;
26192  }
26193  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26194       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26195    struct s { int j; const int *ap[3]; } bx;
26196    struct s *b = &bx; b->j = 5;
26197  }
26198  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26199    const int foo = 10;
26200    if (!foo) return 0;
26201  }
26202  return !cs[0] && !zero.x;
26203#endif
26204
26205 ;
26206 return 0;
26207}
26208_ACEOF
26209if ac_fn_c_try_compile "$LINENO"; then :
26210  ac_cv_c_const=yes
26211else
26212  ac_cv_c_const=no
26213fi
26214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26215fi
26216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26217$as_echo "$ac_cv_c_const" >&6; }
26218if test $ac_cv_c_const = no; then
26219
26220$as_echo "#define const /**/" >>confdefs.h
26221
26222fi
26223
26224
26225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
26226$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
26227if ${curl_cv_variadic_macros_c99+:} false; then :
26228  $as_echo_n "(cached) " >&6
26229else
26230
26231    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232/* end confdefs.h.  */
26233
26234
26235#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
26236#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
26237        int fun3(int arg1, int arg2, int arg3);
26238        int fun2(int arg1, int arg2);
26239        int fun3(int arg1, int arg2, int arg3)
26240        { return arg1 + arg2 + arg3; }
26241        int fun2(int arg1, int arg2)
26242        { return arg1 + arg2; }
26243
26244int main (void)
26245{
26246
26247        int res3 = c99_vmacro3(1, 2, 3);
26248        int res2 = c99_vmacro2(1, 2);
26249
26250 ;
26251 return 0;
26252}
26253
26254_ACEOF
26255if ac_fn_c_try_compile "$LINENO"; then :
26256
26257      curl_cv_variadic_macros_c99="yes"
26258
26259else
26260
26261      curl_cv_variadic_macros_c99="no"
26262
26263fi
26264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26265
26266fi
26267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
26268$as_echo "$curl_cv_variadic_macros_c99" >&6; }
26269  case "$curl_cv_variadic_macros_c99" in
26270    yes)
26271
26272cat >>confdefs.h <<_ACEOF
26273#define HAVE_VARIADIC_MACROS_C99 1
26274_ACEOF
26275
26276      ;;
26277  esac
26278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
26279$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
26280if ${curl_cv_variadic_macros_gcc+:} false; then :
26281  $as_echo_n "(cached) " >&6
26282else
26283
26284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26285/* end confdefs.h.  */
26286
26287
26288#define gcc_vmacro3(first, args...) fun3(first, args)
26289#define gcc_vmacro2(first, args...) fun2(first, args)
26290        int fun3(int arg1, int arg2, int arg3);
26291        int fun2(int arg1, int arg2);
26292        int fun3(int arg1, int arg2, int arg3)
26293        { return arg1 + arg2 + arg3; }
26294        int fun2(int arg1, int arg2)
26295        { return arg1 + arg2; }
26296
26297int main (void)
26298{
26299
26300        int res3 = gcc_vmacro3(1, 2, 3);
26301        int res2 = gcc_vmacro2(1, 2);
26302
26303 ;
26304 return 0;
26305}
26306
26307_ACEOF
26308if ac_fn_c_try_compile "$LINENO"; then :
26309
26310      curl_cv_variadic_macros_gcc="yes"
26311
26312else
26313
26314      curl_cv_variadic_macros_gcc="no"
26315
26316fi
26317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26318
26319fi
26320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
26321$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
26322  case "$curl_cv_variadic_macros_gcc" in
26323    yes)
26324
26325cat >>confdefs.h <<_ACEOF
26326#define HAVE_VARIADIC_MACROS_GCC 1
26327_ACEOF
26328
26329      ;;
26330  esac
26331
26332ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26333if test "x$ac_cv_type_size_t" = xyes; then :
26334
26335else
26336
26337cat >>confdefs.h <<_ACEOF
26338#define size_t unsigned int
26339_ACEOF
26340
26341fi
26342
26343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26344$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26345if ${ac_cv_header_time+:} false; then :
26346  $as_echo_n "(cached) " >&6
26347else
26348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26349/* end confdefs.h.  */
26350#include <sys/types.h>
26351#include <sys/time.h>
26352#include <time.h>
26353
26354int main (void)
26355{
26356if ((struct tm *) 0)
26357return 0;
26358 ;
26359 return 0;
26360}
26361_ACEOF
26362if ac_fn_c_try_compile "$LINENO"; then :
26363  ac_cv_header_time=yes
26364else
26365  ac_cv_header_time=no
26366fi
26367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26368fi
26369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26370$as_echo "$ac_cv_header_time" >&6; }
26371if test $ac_cv_header_time = yes; then
26372
26373$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26374
26375fi
26376
26377
26378        for ac_header in sys/types.h sys/time.h time.h sys/socket.h
26379do :
26380  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26381ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26382if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26383  cat >>confdefs.h <<_ACEOF
26384#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26385_ACEOF
26386
26387fi
26388
26389done
26390
26391  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
26392$as_echo_n "checking for struct timeval... " >&6; }
26393if ${ac_cv_struct_timeval+:} false; then :
26394  $as_echo_n "(cached) " >&6
26395else
26396
26397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26398/* end confdefs.h.  */
26399
26400
26401#undef inline
26402#ifdef HAVE_WINDOWS_H
26403#ifndef WIN32_LEAN_AND_MEAN
26404#define WIN32_LEAN_AND_MEAN
26405#endif
26406#include <windows.h>
26407#ifdef HAVE_WINSOCK2_H
26408#include <winsock2.h>
26409#else
26410#ifdef HAVE_WINSOCK_H
26411#include <winsock.h>
26412#endif
26413#endif
26414#endif
26415#ifdef HAVE_SYS_TYPES_H
26416#include <sys/types.h>
26417#endif
26418#ifdef HAVE_SYS_TIME_H
26419#include <sys/time.h>
26420#ifdef TIME_WITH_SYS_TIME
26421#include <time.h>
26422#endif
26423#else
26424#ifdef HAVE_TIME_H
26425#include <time.h>
26426#endif
26427#endif
26428#ifdef HAVE_SYS_SOCKET_H
26429#include <sys/socket.h>
26430#endif
26431
26432int main (void)
26433{
26434
26435        struct timeval ts;
26436        ts.tv_sec  = 0;
26437        ts.tv_usec = 0;
26438
26439 ;
26440 return 0;
26441}
26442
26443_ACEOF
26444if ac_fn_c_try_compile "$LINENO"; then :
26445
26446      ac_cv_struct_timeval="yes"
26447
26448else
26449
26450      ac_cv_struct_timeval="no"
26451
26452fi
26453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26454
26455fi
26456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
26457$as_echo "$ac_cv_struct_timeval" >&6; }
26458  case "$ac_cv_struct_timeval" in
26459    yes)
26460
26461cat >>confdefs.h <<_ACEOF
26462#define HAVE_STRUCT_TIMEVAL 1
26463_ACEOF
26464
26465      ;;
26466  esac
26467
26468
26469
26470    if test "x$cross_compiling" != xyes; then
26471
26472            { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
26473$as_echo_n "checking run-time libs availability... " >&6; }
26474    if test "$cross_compiling" = yes; then :
26475  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26477as_fn_error $? "cannot run test program while cross compiling
26478See \`config.log' for more details" "$LINENO" 5; }
26479else
26480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26481/* end confdefs.h.  */
26482
26483main()
26484{
26485  return 0;
26486}
26487
26488_ACEOF
26489if ac_fn_c_try_run "$LINENO"; then :
26490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
26491$as_echo "fine" >&6; }
26492else
26493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
26494$as_echo "failed" >&6; }
26495    as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
26496
26497fi
26498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26499  conftest.$ac_objext conftest.beam conftest.$ac_ext
26500fi
26501
26502
26503      fi
26504
26505
26506# The cast to long int works around a bug in the HP C Compiler
26507# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26508# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26509# This bug is HP SR number 8606223364.
26510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26511$as_echo_n "checking size of size_t... " >&6; }
26512if ${ac_cv_sizeof_size_t+:} false; then :
26513  $as_echo_n "(cached) " >&6
26514else
26515  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
26516
26517else
26518  if test "$ac_cv_type_size_t" = yes; then
26519     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26521as_fn_error 77 "cannot compute sizeof (size_t)
26522See \`config.log' for more details" "$LINENO" 5; }
26523   else
26524     ac_cv_sizeof_size_t=0
26525   fi
26526fi
26527
26528fi
26529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26530$as_echo "$ac_cv_sizeof_size_t" >&6; }
26531
26532
26533
26534cat >>confdefs.h <<_ACEOF
26535#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26536_ACEOF
26537
26538
26539# The cast to long int works around a bug in the HP C Compiler
26540# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26541# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26542# This bug is HP SR number 8606223364.
26543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26544$as_echo_n "checking size of long... " >&6; }
26545if ${ac_cv_sizeof_long+:} false; then :
26546  $as_echo_n "(cached) " >&6
26547else
26548  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
26549
26550else
26551  if test "$ac_cv_type_long" = yes; then
26552     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26554as_fn_error 77 "cannot compute sizeof (long)
26555See \`config.log' for more details" "$LINENO" 5; }
26556   else
26557     ac_cv_sizeof_long=0
26558   fi
26559fi
26560
26561fi
26562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26563$as_echo "$ac_cv_sizeof_long" >&6; }
26564
26565
26566
26567cat >>confdefs.h <<_ACEOF
26568#define SIZEOF_LONG $ac_cv_sizeof_long
26569_ACEOF
26570
26571
26572# The cast to long int works around a bug in the HP C Compiler
26573# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26574# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26575# This bug is HP SR number 8606223364.
26576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26577$as_echo_n "checking size of int... " >&6; }
26578if ${ac_cv_sizeof_int+:} false; then :
26579  $as_echo_n "(cached) " >&6
26580else
26581  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26582
26583else
26584  if test "$ac_cv_type_int" = yes; then
26585     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26587as_fn_error 77 "cannot compute sizeof (int)
26588See \`config.log' for more details" "$LINENO" 5; }
26589   else
26590     ac_cv_sizeof_int=0
26591   fi
26592fi
26593
26594fi
26595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26596$as_echo "$ac_cv_sizeof_int" >&6; }
26597
26598
26599
26600cat >>confdefs.h <<_ACEOF
26601#define SIZEOF_INT $ac_cv_sizeof_int
26602_ACEOF
26603
26604
26605# The cast to long int works around a bug in the HP C Compiler
26606# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26607# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26608# This bug is HP SR number 8606223364.
26609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
26610$as_echo_n "checking size of short... " >&6; }
26611if ${ac_cv_sizeof_short+:} false; then :
26612  $as_echo_n "(cached) " >&6
26613else
26614  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
26615
26616else
26617  if test "$ac_cv_type_short" = yes; then
26618     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26620as_fn_error 77 "cannot compute sizeof (short)
26621See \`config.log' for more details" "$LINENO" 5; }
26622   else
26623     ac_cv_sizeof_short=0
26624   fi
26625fi
26626
26627fi
26628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
26629$as_echo "$ac_cv_sizeof_short" >&6; }
26630
26631
26632
26633cat >>confdefs.h <<_ACEOF
26634#define SIZEOF_SHORT $ac_cv_sizeof_short
26635_ACEOF
26636
26637
26638
26639  if test -z "$ac_cv_sizeof_long" ||
26640    test "$ac_cv_sizeof_long" -eq "0"; then
26641    as_fn_error $? "cannot find out size of long." "$LINENO" 5
26642  fi
26643
26644cat >>confdefs.h <<_EOF
26645#define CURL_SIZEOF_LONG $ac_cv_sizeof_long
26646_EOF
26647
26648
26649# The cast to long int works around a bug in the HP C Compiler
26650# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26651# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26652# This bug is HP SR number 8606223364.
26653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
26654$as_echo_n "checking size of time_t... " >&6; }
26655if ${ac_cv_sizeof_time_t+:} false; then :
26656  $as_echo_n "(cached) " >&6
26657else
26658  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "$ac_includes_default"; then :
26659
26660else
26661  if test "$ac_cv_type_time_t" = yes; then
26662     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26664as_fn_error 77 "cannot compute sizeof (time_t)
26665See \`config.log' for more details" "$LINENO" 5; }
26666   else
26667     ac_cv_sizeof_time_t=0
26668   fi
26669fi
26670
26671fi
26672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
26673$as_echo "$ac_cv_sizeof_time_t" >&6; }
26674
26675
26676
26677cat >>confdefs.h <<_ACEOF
26678#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
26679_ACEOF
26680
26681
26682# The cast to long int works around a bug in the HP C Compiler
26683# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26684# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26685# This bug is HP SR number 8606223364.
26686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
26687$as_echo_n "checking size of off_t... " >&6; }
26688if ${ac_cv_sizeof_off_t+:} false; then :
26689  $as_echo_n "(cached) " >&6
26690else
26691  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
26692
26693else
26694  if test "$ac_cv_type_off_t" = yes; then
26695     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26697as_fn_error 77 "cannot compute sizeof (off_t)
26698See \`config.log' for more details" "$LINENO" 5; }
26699   else
26700     ac_cv_sizeof_off_t=0
26701   fi
26702fi
26703
26704fi
26705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
26706$as_echo "$ac_cv_sizeof_off_t" >&6; }
26707
26708
26709
26710cat >>confdefs.h <<_ACEOF
26711#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26712_ACEOF
26713
26714
26715
26716soname_bump=no
26717if test x"$ac_cv_native_windows" != "xyes" &&
26718   test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
26719  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
26720$as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
26721  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
26722$as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
26723  soname_bump=yes
26724fi
26725
26726
26727ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
26728if test "x$ac_cv_type_long_long" = xyes; then :
26729
26730$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
26731
26732   longlong="yes"
26733
26734fi
26735
26736
26737if test "xyes" = "x$longlong"; then
26738  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
26739$as_echo_n "checking if numberLL works... " >&6; }
26740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26741/* end confdefs.h.  */
26742
26743
26744
26745int main (void)
26746{
26747
26748      long long val = 1000LL;
26749
26750 ;
26751 return 0;
26752}
26753
26754_ACEOF
26755if ac_fn_c_try_compile "$LINENO"; then :
26756
26757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26758$as_echo "yes" >&6; }
26759
26760$as_echo "#define HAVE_LL 1" >>confdefs.h
26761
26762
26763else
26764
26765    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26766$as_echo "no" >&6; }
26767
26768fi
26769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26770fi
26771
26772
26773# check for ssize_t
26774ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26775if test "x$ac_cv_type_ssize_t" = xyes; then :
26776
26777else
26778
26779$as_echo "#define ssize_t int" >>confdefs.h
26780
26781fi
26782
26783
26784# check for bool type
26785ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
26786#ifdef HAVE_SYS_TYPES_H
26787#include <sys/types.h>
26788#endif
26789#ifdef HAVE_STDBOOL_H
26790#include <stdbool.h>
26791#endif
26792
26793"
26794if test "x$ac_cv_type_bool" = xyes; then :
26795
26796
26797$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
26798
26799
26800fi
26801
26802
26803
26804curl_includes_ws2tcpip="\
26805/* includes start */
26806#ifdef HAVE_WINDOWS_H
26807#  ifndef WIN32_LEAN_AND_MEAN
26808#    define WIN32_LEAN_AND_MEAN
26809#  endif
26810#  include <windows.h>
26811#  ifdef HAVE_WINSOCK2_H
26812#    include <winsock2.h>
26813#    ifdef HAVE_WS2TCPIP_H
26814#       include <ws2tcpip.h>
26815#    endif
26816#  endif
26817#endif
26818/* includes end */"
26819
26820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
26821$as_echo_n "checking for windows.h... " >&6; }
26822if ${ac_cv_header_windows_h+:} false; then :
26823  $as_echo_n "(cached) " >&6
26824else
26825
26826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26827/* end confdefs.h.  */
26828
26829
26830#undef inline
26831#ifndef WIN32_LEAN_AND_MEAN
26832#define WIN32_LEAN_AND_MEAN
26833#endif
26834#include <windows.h>
26835
26836int main (void)
26837{
26838
26839#if defined(__CYGWIN__) || defined(__CEGCC__)
26840        HAVE_WINDOWS_H shall not be defined.
26841#else
26842        int dummy=2*WINVER;
26843#endif
26844
26845 ;
26846 return 0;
26847}
26848
26849_ACEOF
26850if ac_fn_c_try_compile "$LINENO"; then :
26851
26852      ac_cv_header_windows_h="yes"
26853
26854else
26855
26856      ac_cv_header_windows_h="no"
26857
26858fi
26859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860
26861fi
26862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
26863$as_echo "$ac_cv_header_windows_h" >&6; }
26864  case "$ac_cv_header_windows_h" in
26865    yes)
26866
26867cat >>confdefs.h <<_ACEOF
26868#define HAVE_WINDOWS_H 1
26869_ACEOF
26870
26871
26872cat >>confdefs.h <<_ACEOF
26873#define WIN32_LEAN_AND_MEAN 1
26874_ACEOF
26875
26876      ;;
26877  esac
26878
26879
26880    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
26881$as_echo_n "checking for winsock2.h... " >&6; }
26882if ${ac_cv_header_winsock2_h+:} false; then :
26883  $as_echo_n "(cached) " >&6
26884else
26885
26886    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887/* end confdefs.h.  */
26888
26889
26890#undef inline
26891#ifndef WIN32_LEAN_AND_MEAN
26892#define WIN32_LEAN_AND_MEAN
26893#endif
26894#include <windows.h>
26895#include <winsock2.h>
26896
26897int main (void)
26898{
26899
26900#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26901        HAVE_WINSOCK2_H shall not be defined.
26902#else
26903        int dummy=2*IPPROTO_ESP;
26904#endif
26905
26906 ;
26907 return 0;
26908}
26909
26910_ACEOF
26911if ac_fn_c_try_compile "$LINENO"; then :
26912
26913      ac_cv_header_winsock2_h="yes"
26914
26915else
26916
26917      ac_cv_header_winsock2_h="no"
26918
26919fi
26920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26921
26922fi
26923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
26924$as_echo "$ac_cv_header_winsock2_h" >&6; }
26925  case "$ac_cv_header_winsock2_h" in
26926    yes)
26927
26928cat >>confdefs.h <<_ACEOF
26929#define HAVE_WINSOCK2_H 1
26930_ACEOF
26931
26932      ;;
26933  esac
26934
26935
26936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
26937$as_echo_n "checking for ws2tcpip.h... " >&6; }
26938if ${ac_cv_header_ws2tcpip_h+:} false; then :
26939  $as_echo_n "(cached) " >&6
26940else
26941
26942    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26943/* end confdefs.h.  */
26944
26945
26946#undef inline
26947#ifndef WIN32_LEAN_AND_MEAN
26948#define WIN32_LEAN_AND_MEAN
26949#endif
26950#include <windows.h>
26951#include <winsock2.h>
26952#include <ws2tcpip.h>
26953
26954int main (void)
26955{
26956
26957#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26958        HAVE_WS2TCPIP_H shall not be defined.
26959#else
26960        int dummy=2*IP_PKTINFO;
26961#endif
26962
26963 ;
26964 return 0;
26965}
26966
26967_ACEOF
26968if ac_fn_c_try_compile "$LINENO"; then :
26969
26970      ac_cv_header_ws2tcpip_h="yes"
26971
26972else
26973
26974      ac_cv_header_ws2tcpip_h="no"
26975
26976fi
26977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26978
26979fi
26980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
26981$as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
26982  case "$ac_cv_header_ws2tcpip_h" in
26983    yes)
26984
26985cat >>confdefs.h <<_ACEOF
26986#define HAVE_WS2TCPIP_H 1
26987_ACEOF
26988
26989      ;;
26990  esac
26991
26992
26993
26994curl_includes_sys_socket="\
26995/* includes start */
26996#ifdef HAVE_SYS_TYPES_H
26997#  include <sys/types.h>
26998#endif
26999#ifdef HAVE_SYS_SOCKET_H
27000#  include <sys/socket.h>
27001#endif
27002/* includes end */"
27003  for ac_header in sys/types.h sys/socket.h
27004do :
27005  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27006ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
27007"
27008if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27009  cat >>confdefs.h <<_ACEOF
27010#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27011_ACEOF
27012
27013fi
27014
27015done
27016
27017
27018
27019curl_preprocess_callconv="\
27020/* preprocess start */
27021#ifdef HAVE_WINDOWS_H
27022#  define FUNCALLCONV __stdcall
27023#else
27024#  define FUNCALLCONV
27025#endif
27026/* preprocess end */"
27027
27028
27029        #
27030    #
27031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
27032$as_echo_n "checking for curl_socklen_t data type... " >&6; }
27033  curl_typeof_curl_socklen_t="unknown"
27034  for arg1 in int SOCKET; do
27035    for arg2 in 'struct sockaddr' void; do
27036      for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
27037        if test "$curl_typeof_curl_socklen_t" = "unknown"; then
27038          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039/* end confdefs.h.  */
27040
27041
27042              $curl_includes_ws2tcpip
27043              $curl_includes_sys_socket
27044              $curl_preprocess_callconv
27045              extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
27046
27047int main (void)
27048{
27049
27050              $t *lenptr = 0;
27051              if(0 != getpeername(0, 0, lenptr))
27052                return 1;
27053
27054 ;
27055 return 0;
27056}
27057
27058_ACEOF
27059if ac_fn_c_try_compile "$LINENO"; then :
27060
27061            curl_typeof_curl_socklen_t="$t"
27062
27063fi
27064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27065        fi
27066      done
27067    done
27068  done
27069  for t in socklen_t int; do
27070    if test "$curl_typeof_curl_socklen_t" = "void"; then
27071      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27072/* end confdefs.h.  */
27073
27074
27075          $curl_includes_sys_socket
27076          typedef $t curl_socklen_t;
27077
27078int main (void)
27079{
27080
27081          curl_socklen_t dummy;
27082
27083 ;
27084 return 0;
27085}
27086
27087_ACEOF
27088if ac_fn_c_try_compile "$LINENO"; then :
27089
27090        curl_typeof_curl_socklen_t="$t"
27091
27092fi
27093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27094    fi
27095  done
27096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
27097$as_echo "$curl_typeof_curl_socklen_t" >&6; }
27098  if test "$curl_typeof_curl_socklen_t" = "void" ||
27099    test "$curl_typeof_curl_socklen_t" = "unknown"; then
27100    as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
27101  fi
27102  #
27103  { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
27104$as_echo_n "checking size of curl_socklen_t... " >&6; }
27105  curl_sizeof_curl_socklen_t="unknown"
27106  curl_pull_headers_socklen_t="unknown"
27107  if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
27108    tst_pull_header_checks='none ws2tcpip'
27109    tst_size_checks='4'
27110  else
27111    tst_pull_header_checks='none systypes syssocket'
27112    tst_size_checks='4 8 2'
27113  fi
27114  for tst_size in $tst_size_checks; do
27115    for tst_pull_headers in $tst_pull_header_checks; do
27116      if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27117        case $tst_pull_headers in
27118          ws2tcpip)
27119            tmp_includes="$curl_includes_ws2tcpip"
27120            ;;
27121          systypes)
27122            tmp_includes="$curl_includes_sys_types"
27123            ;;
27124          syssocket)
27125            tmp_includes="$curl_includes_sys_socket"
27126            ;;
27127          *)
27128            tmp_includes=""
27129            ;;
27130        esac
27131        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27132/* end confdefs.h.  */
27133
27134
27135            $tmp_includes
27136            typedef $curl_typeof_curl_socklen_t curl_socklen_t;
27137            typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
27138
27139int main (void)
27140{
27141
27142            curl_socklen_t dummy;
27143
27144 ;
27145 return 0;
27146}
27147
27148_ACEOF
27149if ac_fn_c_try_compile "$LINENO"; then :
27150
27151          curl_sizeof_curl_socklen_t="$tst_size"
27152          curl_pull_headers_socklen_t="$tst_pull_headers"
27153
27154fi
27155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27156      fi
27157    done
27158  done
27159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
27160$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
27161  if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27162    as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
27163  fi
27164  #
27165  case $curl_pull_headers_socklen_t in
27166    ws2tcpip)
27167
27168cat >>confdefs.h <<_EOF
27169#define CURL_PULL_WS2TCPIP_H 1
27170_EOF
27171
27172      ;;
27173    systypes)
27174
27175cat >>confdefs.h <<_EOF
27176#define CURL_PULL_SYS_TYPES_H 1
27177_EOF
27178
27179      ;;
27180    syssocket)
27181
27182cat >>confdefs.h <<_EOF
27183#define CURL_PULL_SYS_TYPES_H 1
27184_EOF
27185
27186
27187cat >>confdefs.h <<_EOF
27188#define CURL_PULL_SYS_SOCKET_H 1
27189_EOF
27190
27191      ;;
27192  esac
27193
27194cat >>confdefs.h <<_EOF
27195#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
27196_EOF
27197
27198
27199cat >>confdefs.h <<_EOF
27200#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
27201_EOF
27202
27203
27204
27205
27206curl_includes_poll="\
27207/* includes start */
27208#ifdef HAVE_SYS_TYPES_H
27209#  include <sys/types.h>
27210#endif
27211#ifdef HAVE_POLL_H
27212#  include <poll.h>
27213#endif
27214#ifdef HAVE_SYS_POLL_H
27215#  include <sys/poll.h>
27216#endif
27217/* includes end */"
27218  for ac_header in sys/types.h poll.h sys/poll.h
27219do :
27220  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27221ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
27222"
27223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27224  cat >>confdefs.h <<_ACEOF
27225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27226_ACEOF
27227
27228fi
27229
27230done
27231
27232
27233
27234    #
27235  tst_poll_events_macro_defined="unknown"
27236  #
27237  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238/* end confdefs.h.  */
27239
27240
27241      $curl_includes_poll
27242
27243int main (void)
27244{
27245
27246#if defined(events) || defined(revents)
27247      return 0;
27248#else
27249      force compilation error
27250#endif
27251
27252 ;
27253 return 0;
27254}
27255
27256_ACEOF
27257if ac_fn_c_try_compile "$LINENO"; then :
27258
27259    tst_poll_events_macro_defined="yes"
27260
27261else
27262
27263    tst_poll_events_macro_defined="no"
27264
27265fi
27266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267  #
27268  if test "$tst_poll_events_macro_defined" = "yes"; then
27269    if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
27270
27271cat >>confdefs.h <<_EOF
27272#define CURL_PULL_SYS_POLL_H 1
27273_EOF
27274
27275    fi
27276  fi
27277  #
27278
27279
27280
27281  ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
27282#undef inline
27283#ifdef HAVE_WINDOWS_H
27284#ifndef WIN32_LEAN_AND_MEAN
27285#define WIN32_LEAN_AND_MEAN
27286#endif
27287#include <windows.h>
27288#ifdef HAVE_WINSOCK2_H
27289#include <winsock2.h>
27290#else
27291#ifdef HAVE_WINSOCK_H
27292#include <winsock.h>
27293#endif
27294#endif
27295#else
27296#ifdef HAVE_SYS_TYPES_H
27297#include <sys/types.h>
27298#endif
27299#ifdef HAVE_SYS_SOCKET_H
27300#include <sys/socket.h>
27301#endif
27302#ifdef HAVE_NETINET_IN_H
27303#include <netinet/in.h>
27304#endif
27305#ifdef HAVE_ARPA_INET_H
27306#include <arpa/inet.h>
27307#endif
27308#endif
27309
27310"
27311if test "x$ac_cv_type_in_addr_t" = xyes; then :
27312
27313else
27314
27315        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
27316$as_echo_n "checking for in_addr_t equivalent... " >&6; }
27317if ${curl_cv_in_addr_t_equiv+:} false; then :
27318  $as_echo_n "(cached) " >&6
27319else
27320
27321      curl_cv_in_addr_t_equiv="unknown"
27322      for t in "unsigned long" int size_t unsigned long; do
27323        if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
27324          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27325/* end confdefs.h.  */
27326
27327
27328#undef inline
27329#ifdef HAVE_WINDOWS_H
27330#ifndef WIN32_LEAN_AND_MEAN
27331#define WIN32_LEAN_AND_MEAN
27332#endif
27333#include <windows.h>
27334#ifdef HAVE_WINSOCK2_H
27335#include <winsock2.h>
27336#else
27337#ifdef HAVE_WINSOCK_H
27338#include <winsock.h>
27339#endif
27340#endif
27341#else
27342#ifdef HAVE_SYS_TYPES_H
27343#include <sys/types.h>
27344#endif
27345#ifdef HAVE_SYS_SOCKET_H
27346#include <sys/socket.h>
27347#endif
27348#ifdef HAVE_NETINET_IN_H
27349#include <netinet/in.h>
27350#endif
27351#ifdef HAVE_ARPA_INET_H
27352#include <arpa/inet.h>
27353#endif
27354#endif
27355
27356int main (void)
27357{
27358
27359              $t data = inet_addr ("1.2.3.4");
27360
27361 ;
27362 return 0;
27363}
27364
27365_ACEOF
27366if ac_fn_c_try_link "$LINENO"; then :
27367
27368            curl_cv_in_addr_t_equiv="$t"
27369
27370fi
27371rm -f core conftest.err conftest.$ac_objext \
27372    conftest$ac_exeext conftest.$ac_ext
27373        fi
27374      done
27375
27376fi
27377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
27378$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
27379    case "$curl_cv_in_addr_t_equiv" in
27380      unknown)
27381        as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
27382        ;;
27383      *)
27384
27385cat >>confdefs.h <<_ACEOF
27386#define in_addr_t $curl_cv_in_addr_t_equiv
27387_ACEOF
27388
27389        ;;
27390    esac
27391
27392fi
27393
27394
27395
27396
27397   ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27398#undef inline
27399#ifdef HAVE_WINDOWS_H
27400#ifndef WIN32_LEAN_AND_MEAN
27401#define WIN32_LEAN_AND_MEAN
27402#endif
27403#include <windows.h>
27404#ifdef HAVE_WINSOCK2_H
27405#include <winsock2.h>
27406#endif
27407#else
27408#ifdef HAVE_SYS_TYPES_H
27409#include <sys/types.h>
27410#endif
27411#ifdef HAVE_SYS_SOCKET_H
27412#include <sys/socket.h>
27413#endif
27414#ifdef HAVE_NETINET_IN_H
27415#include <netinet/in.h>
27416#endif
27417#ifdef HAVE_ARPA_INET_H
27418#include <arpa/inet.h>
27419#endif
27420#endif
27421
27422"
27423if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
27424
27425$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
27426
27427fi
27428
27429
27430
27431
27432  for ac_header in signal.h
27433do :
27434  ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
27435if test "x$ac_cv_header_signal_h" = xyes; then :
27436  cat >>confdefs.h <<_ACEOF
27437#define HAVE_SIGNAL_H 1
27438_ACEOF
27439
27440fi
27441
27442done
27443
27444  ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
27445#ifdef HAVE_SIGNAL_H
27446#include <signal.h>
27447#endif
27448
27449"
27450if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
27451
27452
27453$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
27454
27455
27456fi
27457
27458  case "$ac_cv_type_sig_atomic_t" in
27459    yes)
27460      #
27461      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
27462$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
27463      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27464/* end confdefs.h.  */
27465
27466
27467#ifdef HAVE_SIGNAL_H
27468#include <signal.h>
27469#endif
27470
27471int main (void)
27472{
27473
27474          static volatile sig_atomic_t dummy = 0;
27475
27476 ;
27477 return 0;
27478}
27479
27480_ACEOF
27481if ac_fn_c_try_link "$LINENO"; then :
27482
27483        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27484$as_echo "no" >&6; }
27485        ac_cv_sig_atomic_t_volatile="no"
27486
27487else
27488
27489        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27490$as_echo "yes" >&6; }
27491        ac_cv_sig_atomic_t_volatile="yes"
27492
27493fi
27494rm -f core conftest.err conftest.$ac_objext \
27495    conftest$ac_exeext conftest.$ac_ext
27496      #
27497      if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
27498
27499$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
27500
27501      fi
27502      ;;
27503  esac
27504
27505
27506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27507$as_echo_n "checking return type of signal handlers... " >&6; }
27508if ${ac_cv_type_signal+:} false; then :
27509  $as_echo_n "(cached) " >&6
27510else
27511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27512/* end confdefs.h.  */
27513#include <sys/types.h>
27514#include <signal.h>
27515
27516int main (void)
27517{
27518return *(signal (0, 0)) (0) == 1;
27519 ;
27520 return 0;
27521}
27522_ACEOF
27523if ac_fn_c_try_compile "$LINENO"; then :
27524  ac_cv_type_signal=int
27525else
27526  ac_cv_type_signal=void
27527fi
27528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27529fi
27530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27531$as_echo "$ac_cv_type_signal" >&6; }
27532
27533cat >>confdefs.h <<_ACEOF
27534#define RETSIGTYPE $ac_cv_type_signal
27535_ACEOF
27536
27537
27538
27539
27540    for ac_header in sys/select.h sys/socket.h
27541do :
27542  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27543ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27544if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27545  cat >>confdefs.h <<_ACEOF
27546#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27547_ACEOF
27548
27549fi
27550
27551done
27552
27553  #
27554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
27555$as_echo_n "checking for select... " >&6; }
27556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27557/* end confdefs.h.  */
27558
27559
27560#undef inline
27561#ifdef HAVE_WINDOWS_H
27562#ifndef WIN32_LEAN_AND_MEAN
27563#define WIN32_LEAN_AND_MEAN
27564#endif
27565#include <windows.h>
27566#ifdef HAVE_WINSOCK2_H
27567#include <winsock2.h>
27568#else
27569#ifdef HAVE_WINSOCK_H
27570#include <winsock.h>
27571#endif
27572#endif
27573#endif
27574#ifdef HAVE_SYS_TYPES_H
27575#include <sys/types.h>
27576#endif
27577#ifdef HAVE_SYS_TIME_H
27578#include <sys/time.h>
27579#ifdef TIME_WITH_SYS_TIME
27580#include <time.h>
27581#endif
27582#else
27583#ifdef HAVE_TIME_H
27584#include <time.h>
27585#endif
27586#endif
27587#ifndef HAVE_WINDOWS_H
27588#ifdef HAVE_SYS_SELECT_H
27589#include <sys/select.h>
27590#endif
27591#ifdef HAVE_SYS_SOCKET_H
27592#include <sys/socket.h>
27593#endif
27594#endif
27595
27596int main (void)
27597{
27598
27599      select(0, 0, 0, 0, 0);
27600
27601 ;
27602 return 0;
27603}
27604
27605_ACEOF
27606if ac_fn_c_try_link "$LINENO"; then :
27607
27608    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27609$as_echo "yes" >&6; }
27610    curl_cv_select="yes"
27611
27612else
27613
27614    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27615$as_echo "no" >&6; }
27616    curl_cv_select="no"
27617
27618fi
27619rm -f core conftest.err conftest.$ac_objext \
27620    conftest$ac_exeext conftest.$ac_ext
27621  #
27622  if test "$curl_cv_select" = "yes"; then
27623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
27624$as_echo_n "checking types of args and return type for select... " >&6; }
27625if ${curl_cv_func_select_args+:} false; then :
27626  $as_echo_n "(cached) " >&6
27627else
27628
27629      curl_cv_func_select_args="unknown"
27630      for sel_retv in 'int' 'ssize_t'; do
27631        for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
27632          for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
27633            for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
27634              if test "$curl_cv_func_select_args" = "unknown"; then
27635                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27636/* end confdefs.h.  */
27637
27638
27639#undef inline
27640#ifdef HAVE_WINDOWS_H
27641#ifndef WIN32_LEAN_AND_MEAN
27642#define WIN32_LEAN_AND_MEAN
27643#endif
27644#include <windows.h>
27645#ifdef HAVE_WINSOCK2_H
27646#include <winsock2.h>
27647#else
27648#ifdef HAVE_WINSOCK_H
27649#include <winsock.h>
27650#endif
27651#endif
27652#define SELECTCALLCONV PASCAL
27653#endif
27654#ifdef HAVE_SYS_TYPES_H
27655#include <sys/types.h>
27656#endif
27657#ifdef HAVE_SYS_TIME_H
27658#include <sys/time.h>
27659#ifdef TIME_WITH_SYS_TIME
27660#include <time.h>
27661#endif
27662#else
27663#ifdef HAVE_TIME_H
27664#include <time.h>
27665#endif
27666#endif
27667#ifndef HAVE_WINDOWS_H
27668#ifdef HAVE_SYS_SELECT_H
27669#include <sys/select.h>
27670#endif
27671#ifdef HAVE_SYS_SOCKET_H
27672#include <sys/socket.h>
27673#endif
27674#define SELECTCALLCONV
27675#endif
27676#ifndef HAVE_STRUCT_TIMEVAL
27677                    struct timeval {
27678                      long tv_sec;
27679                      long tv_usec;
27680                    };
27681#endif
27682                    extern $sel_retv SELECTCALLCONV select($sel_arg1,
27683                                                           $sel_arg234,
27684                                                           $sel_arg234,
27685                                                           $sel_arg234,
27686                                                           $sel_arg5);
27687
27688int main (void)
27689{
27690
27691                    $sel_arg1   nfds=0;
27692                    $sel_arg234 rfds=0;
27693                    $sel_arg234 wfds=0;
27694                    $sel_arg234 efds=0;
27695                    $sel_retv res = select(nfds, rfds, wfds, efds, 0);
27696
27697 ;
27698 return 0;
27699}
27700
27701_ACEOF
27702if ac_fn_c_try_compile "$LINENO"; then :
27703
27704                  curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
27705
27706fi
27707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27708              fi
27709            done
27710          done
27711        done
27712      done
27713
27714fi
27715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
27716$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
27717    if test "$curl_cv_func_select_args" = "unknown"; then
27718      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
27719$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
27720      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
27721$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
27722    else
27723      select_prev_IFS=$IFS; IFS=','
27724      set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
27725      IFS=$select_prev_IFS
27726      shift
27727      #
27728      sel_qual_type_arg5=$3
27729      #
27730
27731cat >>confdefs.h <<_ACEOF
27732#define SELECT_TYPE_ARG1 $1
27733_ACEOF
27734
27735
27736cat >>confdefs.h <<_ACEOF
27737#define SELECT_TYPE_ARG234 $2
27738_ACEOF
27739
27740
27741cat >>confdefs.h <<_ACEOF
27742#define SELECT_TYPE_RETV $4
27743_ACEOF
27744
27745      #
27746      prev_sh_opts=$-
27747      #
27748      case $prev_sh_opts in
27749        *f*)
27750          ;;
27751        *)
27752          set -f
27753          ;;
27754      esac
27755      #
27756      case "$sel_qual_type_arg5" in
27757        const*)
27758          sel_qual_arg5=const
27759          sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
27760        ;;
27761        *)
27762          sel_qual_arg5=
27763          sel_type_arg5=$sel_qual_type_arg5
27764        ;;
27765      esac
27766      #
27767
27768cat >>confdefs.h <<_ACEOF
27769#define SELECT_QUAL_ARG5 $sel_qual_arg5
27770_ACEOF
27771
27772
27773cat >>confdefs.h <<_ACEOF
27774#define SELECT_TYPE_ARG5 $sel_type_arg5
27775_ACEOF
27776
27777      #
27778      case $prev_sh_opts in
27779        *f*)
27780          ;;
27781        *)
27782          set +f
27783          ;;
27784      esac
27785      #
27786
27787cat >>confdefs.h <<_ACEOF
27788#define HAVE_SELECT 1
27789_ACEOF
27790
27791      ac_cv_func_select="yes"
27792    fi
27793  fi
27794
27795
27796
27797      for ac_header in sys/types.h sys/socket.h
27798do :
27799  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27800ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27802  cat >>confdefs.h <<_ACEOF
27803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27804_ACEOF
27805
27806fi
27807
27808done
27809
27810  #
27811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
27812$as_echo_n "checking for recv... " >&6; }
27813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814/* end confdefs.h.  */
27815
27816
27817#undef inline
27818#ifdef HAVE_WINDOWS_H
27819#ifndef WIN32_LEAN_AND_MEAN
27820#define WIN32_LEAN_AND_MEAN
27821#endif
27822#include <windows.h>
27823#ifdef HAVE_WINSOCK2_H
27824#include <winsock2.h>
27825#else
27826#ifdef HAVE_WINSOCK_H
27827#include <winsock.h>
27828#endif
27829#endif
27830#else
27831#ifdef HAVE_SYS_TYPES_H
27832#include <sys/types.h>
27833#endif
27834#ifdef HAVE_SYS_SOCKET_H
27835#include <sys/socket.h>
27836#endif
27837#endif
27838
27839int main (void)
27840{
27841
27842      recv(0, 0, 0, 0);
27843
27844 ;
27845 return 0;
27846}
27847
27848_ACEOF
27849if ac_fn_c_try_link "$LINENO"; then :
27850
27851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27852$as_echo "yes" >&6; }
27853    curl_cv_recv="yes"
27854
27855else
27856
27857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27858$as_echo "no" >&6; }
27859    curl_cv_recv="no"
27860
27861fi
27862rm -f core conftest.err conftest.$ac_objext \
27863    conftest$ac_exeext conftest.$ac_ext
27864  #
27865  if test "$curl_cv_recv" = "yes"; then
27866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
27867$as_echo_n "checking types of args and return type for recv... " >&6; }
27868if ${curl_cv_func_recv_args+:} false; then :
27869  $as_echo_n "(cached) " >&6
27870else
27871
27872      curl_cv_func_recv_args="unknown"
27873      for recv_retv in 'int' 'ssize_t'; do
27874        for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
27875          for recv_arg2 in 'char *' 'void *'; do
27876            for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
27877              for recv_arg4 in 'int' 'unsigned int'; do
27878                if test "$curl_cv_func_recv_args" = "unknown"; then
27879                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27880/* end confdefs.h.  */
27881
27882
27883#undef inline
27884#ifdef HAVE_WINDOWS_H
27885#ifndef WIN32_LEAN_AND_MEAN
27886#define WIN32_LEAN_AND_MEAN
27887#endif
27888#include <windows.h>
27889#ifdef HAVE_WINSOCK2_H
27890#include <winsock2.h>
27891#else
27892#ifdef HAVE_WINSOCK_H
27893#include <winsock.h>
27894#endif
27895#endif
27896#define RECVCALLCONV PASCAL
27897#else
27898#ifdef HAVE_SYS_TYPES_H
27899#include <sys/types.h>
27900#endif
27901#ifdef HAVE_SYS_SOCKET_H
27902#include <sys/socket.h>
27903#endif
27904#define RECVCALLCONV
27905#endif
27906                      extern $recv_retv RECVCALLCONV
27907                      recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
27908
27909int main (void)
27910{
27911
27912                      $recv_arg1 s=0;
27913                      $recv_arg2 buf=0;
27914                      $recv_arg3 len=0;
27915                      $recv_arg4 flags=0;
27916                      $recv_retv res = recv(s, buf, len, flags);
27917
27918 ;
27919 return 0;
27920}
27921
27922_ACEOF
27923if ac_fn_c_try_compile "$LINENO"; then :
27924
27925                    curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
27926
27927fi
27928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27929                fi
27930              done
27931            done
27932          done
27933        done
27934      done
27935
27936fi
27937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
27938$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
27939    if test "$curl_cv_func_recv_args" = "unknown"; then
27940      as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
27941    else
27942      recv_prev_IFS=$IFS; IFS=','
27943      set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
27944      IFS=$recv_prev_IFS
27945      shift
27946      #
27947
27948cat >>confdefs.h <<_ACEOF
27949#define RECV_TYPE_ARG1 $1
27950_ACEOF
27951
27952
27953cat >>confdefs.h <<_ACEOF
27954#define RECV_TYPE_ARG2 $2
27955_ACEOF
27956
27957
27958cat >>confdefs.h <<_ACEOF
27959#define RECV_TYPE_ARG3 $3
27960_ACEOF
27961
27962
27963cat >>confdefs.h <<_ACEOF
27964#define RECV_TYPE_ARG4 $4
27965_ACEOF
27966
27967
27968cat >>confdefs.h <<_ACEOF
27969#define RECV_TYPE_RETV $5
27970_ACEOF
27971
27972      #
27973
27974cat >>confdefs.h <<_ACEOF
27975#define HAVE_RECV 1
27976_ACEOF
27977
27978      ac_cv_func_recv="yes"
27979    fi
27980  else
27981    as_fn_error $? "Unable to link function recv" "$LINENO" 5
27982  fi
27983
27984
27985      for ac_header in sys/types.h sys/socket.h
27986do :
27987  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27988ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27989if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27990  cat >>confdefs.h <<_ACEOF
27991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27992_ACEOF
27993
27994fi
27995
27996done
27997
27998  #
27999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
28000$as_echo_n "checking for send... " >&6; }
28001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002/* end confdefs.h.  */
28003
28004
28005#undef inline
28006#ifdef HAVE_WINDOWS_H
28007#ifndef WIN32_LEAN_AND_MEAN
28008#define WIN32_LEAN_AND_MEAN
28009#endif
28010#include <windows.h>
28011#ifdef HAVE_WINSOCK2_H
28012#include <winsock2.h>
28013#else
28014#ifdef HAVE_WINSOCK_H
28015#include <winsock.h>
28016#endif
28017#endif
28018#else
28019#ifdef HAVE_SYS_TYPES_H
28020#include <sys/types.h>
28021#endif
28022#ifdef HAVE_SYS_SOCKET_H
28023#include <sys/socket.h>
28024#endif
28025#endif
28026
28027int main (void)
28028{
28029
28030      send(0, 0, 0, 0);
28031
28032 ;
28033 return 0;
28034}
28035
28036_ACEOF
28037if ac_fn_c_try_link "$LINENO"; then :
28038
28039    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28040$as_echo "yes" >&6; }
28041    curl_cv_send="yes"
28042
28043else
28044
28045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28046$as_echo "no" >&6; }
28047    curl_cv_send="no"
28048
28049fi
28050rm -f core conftest.err conftest.$ac_objext \
28051    conftest$ac_exeext conftest.$ac_ext
28052  #
28053  if test "$curl_cv_send" = "yes"; then
28054    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
28055$as_echo_n "checking types of args and return type for send... " >&6; }
28056if ${curl_cv_func_send_args+:} false; then :
28057  $as_echo_n "(cached) " >&6
28058else
28059
28060      curl_cv_func_send_args="unknown"
28061      for send_retv in 'int' 'ssize_t'; do
28062        for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28063          for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
28064            for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28065              for send_arg4 in 'int' 'unsigned int'; do
28066                if test "$curl_cv_func_send_args" = "unknown"; then
28067                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28068/* end confdefs.h.  */
28069
28070
28071#undef inline
28072#ifdef HAVE_WINDOWS_H
28073#ifndef WIN32_LEAN_AND_MEAN
28074#define WIN32_LEAN_AND_MEAN
28075#endif
28076#include <windows.h>
28077#ifdef HAVE_WINSOCK2_H
28078#include <winsock2.h>
28079#else
28080#ifdef HAVE_WINSOCK_H
28081#include <winsock.h>
28082#endif
28083#endif
28084#define SENDCALLCONV PASCAL
28085#else
28086#ifdef HAVE_SYS_TYPES_H
28087#include <sys/types.h>
28088#endif
28089#ifdef HAVE_SYS_SOCKET_H
28090#include <sys/socket.h>
28091#endif
28092#define SENDCALLCONV
28093#endif
28094                      extern $send_retv SENDCALLCONV
28095                      send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
28096
28097int main (void)
28098{
28099
28100                      $send_arg1 s=0;
28101                      $send_arg3 len=0;
28102                      $send_arg4 flags=0;
28103                      $send_retv res = send(s, 0, len, flags);
28104
28105 ;
28106 return 0;
28107}
28108
28109_ACEOF
28110if ac_fn_c_try_compile "$LINENO"; then :
28111
28112                    curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
28113
28114fi
28115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28116                fi
28117              done
28118            done
28119          done
28120        done
28121      done
28122
28123fi
28124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
28125$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
28126    if test "$curl_cv_func_send_args" = "unknown"; then
28127      as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
28128    else
28129      send_prev_IFS=$IFS; IFS=','
28130      set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
28131      IFS=$send_prev_IFS
28132      shift
28133      #
28134      send_qual_type_arg2=$2
28135      #
28136
28137cat >>confdefs.h <<_ACEOF
28138#define SEND_TYPE_ARG1 $1
28139_ACEOF
28140
28141
28142cat >>confdefs.h <<_ACEOF
28143#define SEND_TYPE_ARG3 $3
28144_ACEOF
28145
28146
28147cat >>confdefs.h <<_ACEOF
28148#define SEND_TYPE_ARG4 $4
28149_ACEOF
28150
28151
28152cat >>confdefs.h <<_ACEOF
28153#define SEND_TYPE_RETV $5
28154_ACEOF
28155
28156      #
28157      prev_sh_opts=$-
28158      #
28159      case $prev_sh_opts in
28160        *f*)
28161          ;;
28162        *)
28163          set -f
28164          ;;
28165      esac
28166      #
28167      case "$send_qual_type_arg2" in
28168        const*)
28169          send_qual_arg2=const
28170          send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
28171        ;;
28172        *)
28173          send_qual_arg2=
28174          send_type_arg2=$send_qual_type_arg2
28175        ;;
28176      esac
28177      #
28178
28179cat >>confdefs.h <<_ACEOF
28180#define SEND_QUAL_ARG2 $send_qual_arg2
28181_ACEOF
28182
28183
28184cat >>confdefs.h <<_ACEOF
28185#define SEND_TYPE_ARG2 $send_type_arg2
28186_ACEOF
28187
28188      #
28189      case $prev_sh_opts in
28190        *f*)
28191          ;;
28192        *)
28193          set +f
28194          ;;
28195      esac
28196      #
28197
28198cat >>confdefs.h <<_ACEOF
28199#define HAVE_SEND 1
28200_ACEOF
28201
28202      ac_cv_func_send="yes"
28203    fi
28204  else
28205    as_fn_error $? "Unable to link function send" "$LINENO" 5
28206  fi
28207
28208
28209  for ac_header in sys/types.h sys/socket.h
28210do :
28211  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28212ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28213if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28214  cat >>confdefs.h <<_ACEOF
28215#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28216_ACEOF
28217
28218fi
28219
28220done
28221
28222  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
28223$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
28224if ${ac_cv_msg_nosignal+:} false; then :
28225  $as_echo_n "(cached) " >&6
28226else
28227
28228    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229/* end confdefs.h.  */
28230
28231
28232#undef inline
28233#ifdef HAVE_WINDOWS_H
28234#ifndef WIN32_LEAN_AND_MEAN
28235#define WIN32_LEAN_AND_MEAN
28236#endif
28237#include <windows.h>
28238#ifdef HAVE_WINSOCK2_H
28239#include <winsock2.h>
28240#else
28241#ifdef HAVE_WINSOCK_H
28242#include <winsock.h>
28243#endif
28244#endif
28245#else
28246#ifdef HAVE_SYS_TYPES_H
28247#include <sys/types.h>
28248#endif
28249#ifdef HAVE_SYS_SOCKET_H
28250#include <sys/socket.h>
28251#endif
28252#endif
28253
28254int main (void)
28255{
28256
28257        int flag=MSG_NOSIGNAL;
28258
28259 ;
28260 return 0;
28261}
28262
28263_ACEOF
28264if ac_fn_c_try_compile "$LINENO"; then :
28265
28266      ac_cv_msg_nosignal="yes"
28267
28268else
28269
28270      ac_cv_msg_nosignal="no"
28271
28272fi
28273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28274
28275fi
28276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
28277$as_echo "$ac_cv_msg_nosignal" >&6; }
28278  case "$ac_cv_msg_nosignal" in
28279    yes)
28280
28281cat >>confdefs.h <<_ACEOF
28282#define HAVE_MSG_NOSIGNAL 1
28283_ACEOF
28284
28285      ;;
28286  esac
28287
28288
28289
28290curl_includes_unistd="\
28291/* includes start */
28292#ifdef HAVE_SYS_TYPES_H
28293#  include <sys/types.h>
28294#endif
28295#ifdef HAVE_UNISTD_H
28296#  include <unistd.h>
28297#endif
28298/* includes end */"
28299  for ac_header in sys/types.h unistd.h
28300do :
28301  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
28303"
28304if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28305  cat >>confdefs.h <<_ACEOF
28306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28307_ACEOF
28308
28309fi
28310
28311done
28312
28313
28314
28315    #
28316  tst_links_alarm="unknown"
28317  tst_proto_alarm="unknown"
28318  tst_compi_alarm="unknown"
28319  tst_allow_alarm="unknown"
28320  #
28321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
28322$as_echo_n "checking if alarm can be linked... " >&6; }
28323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28324/* end confdefs.h.  */
28325
28326
28327#define alarm innocuous_alarm
28328#ifdef __STDC__
28329# include <limits.h>
28330#else
28331# include <assert.h>
28332#endif
28333#undef alarm
28334#ifdef __cplusplus
28335extern "C"
28336#endif
28337char alarm ();
28338#if defined __stub_alarm || defined __stub___alarm
28339choke me
28340#endif
28341
28342int main (void)
28343{
28344return alarm ();
28345 ;
28346 return 0;
28347}
28348
28349_ACEOF
28350if ac_fn_c_try_link "$LINENO"; then :
28351
28352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28353$as_echo "yes" >&6; }
28354    tst_links_alarm="yes"
28355
28356else
28357
28358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28359$as_echo "no" >&6; }
28360    tst_links_alarm="no"
28361
28362fi
28363rm -f core conftest.err conftest.$ac_objext \
28364    conftest$ac_exeext conftest.$ac_ext
28365  #
28366  if test "$tst_links_alarm" = "yes"; then
28367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
28368$as_echo_n "checking if alarm is prototyped... " >&6; }
28369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28370/* end confdefs.h.  */
28371
28372      $curl_includes_unistd
28373
28374_ACEOF
28375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28376  $EGREP "alarm" >/dev/null 2>&1; then :
28377
28378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28379$as_echo "yes" >&6; }
28380      tst_proto_alarm="yes"
28381
28382else
28383
28384      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28385$as_echo "no" >&6; }
28386      tst_proto_alarm="no"
28387
28388fi
28389rm -f conftest*
28390
28391  fi
28392  #
28393  if test "$tst_proto_alarm" = "yes"; then
28394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
28395$as_echo_n "checking if alarm is compilable... " >&6; }
28396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28397/* end confdefs.h.  */
28398
28399
28400        $curl_includes_unistd
28401
28402int main (void)
28403{
28404
28405        if(0 != alarm(0))
28406          return 1;
28407
28408 ;
28409 return 0;
28410}
28411
28412_ACEOF
28413if ac_fn_c_try_compile "$LINENO"; then :
28414
28415      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28416$as_echo "yes" >&6; }
28417      tst_compi_alarm="yes"
28418
28419else
28420
28421      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28422$as_echo "no" >&6; }
28423      tst_compi_alarm="no"
28424
28425fi
28426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28427  fi
28428  #
28429  if test "$tst_compi_alarm" = "yes"; then
28430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
28431$as_echo_n "checking if alarm usage allowed... " >&6; }
28432    if test "x$curl_disallow_alarm" != "xyes"; then
28433      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28434$as_echo "yes" >&6; }
28435      tst_allow_alarm="yes"
28436    else
28437      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28438$as_echo "no" >&6; }
28439      tst_allow_alarm="no"
28440    fi
28441  fi
28442  #
28443  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
28444$as_echo_n "checking if alarm might be used... " >&6; }
28445  if test "$tst_links_alarm" = "yes" &&
28446     test "$tst_proto_alarm" = "yes" &&
28447     test "$tst_compi_alarm" = "yes" &&
28448     test "$tst_allow_alarm" = "yes"; then
28449    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28450$as_echo "yes" >&6; }
28451
28452cat >>confdefs.h <<_ACEOF
28453#define HAVE_ALARM 1
28454_ACEOF
28455
28456    ac_cv_func_alarm="yes"
28457  else
28458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28459$as_echo "no" >&6; }
28460    ac_cv_func_alarm="no"
28461  fi
28462
28463
28464curl_includes_string="\
28465/* includes start */
28466#ifdef HAVE_SYS_TYPES_H
28467#  include <sys/types.h>
28468#endif
28469#ifdef HAVE_STRING_H
28470#  include <string.h>
28471#endif
28472#ifdef HAVE_STRINGS_H
28473#  include <strings.h>
28474#endif
28475/* includes end */"
28476  for ac_header in sys/types.h string.h strings.h
28477do :
28478  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28479ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
28480"
28481if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28482  cat >>confdefs.h <<_ACEOF
28483#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28484_ACEOF
28485
28486fi
28487
28488done
28489
28490
28491
28492curl_includes_libgen="\
28493/* includes start */
28494#ifdef HAVE_SYS_TYPES_H
28495#  include <sys/types.h>
28496#endif
28497#ifdef HAVE_LIBGEN_H
28498#  include <libgen.h>
28499#endif
28500/* includes end */"
28501  for ac_header in sys/types.h libgen.h
28502do :
28503  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28504ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
28505"
28506if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28507  cat >>confdefs.h <<_ACEOF
28508#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28509_ACEOF
28510
28511fi
28512
28513done
28514
28515
28516
28517        #
28518  tst_links_basename="unknown"
28519  tst_proto_basename="unknown"
28520  tst_compi_basename="unknown"
28521  tst_allow_basename="unknown"
28522  #
28523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
28524$as_echo_n "checking if basename can be linked... " >&6; }
28525  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28526/* end confdefs.h.  */
28527
28528
28529#define basename innocuous_basename
28530#ifdef __STDC__
28531# include <limits.h>
28532#else
28533# include <assert.h>
28534#endif
28535#undef basename
28536#ifdef __cplusplus
28537extern "C"
28538#endif
28539char basename ();
28540#if defined __stub_basename || defined __stub___basename
28541choke me
28542#endif
28543
28544int main (void)
28545{
28546return basename ();
28547 ;
28548 return 0;
28549}
28550
28551_ACEOF
28552if ac_fn_c_try_link "$LINENO"; then :
28553
28554    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28555$as_echo "yes" >&6; }
28556    tst_links_basename="yes"
28557
28558else
28559
28560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28561$as_echo "no" >&6; }
28562    tst_links_basename="no"
28563
28564fi
28565rm -f core conftest.err conftest.$ac_objext \
28566    conftest$ac_exeext conftest.$ac_ext
28567  #
28568  if test "$tst_links_basename" = "yes"; then
28569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
28570$as_echo_n "checking if basename is prototyped... " >&6; }
28571    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28572/* end confdefs.h.  */
28573
28574      $curl_includes_string
28575      $curl_includes_libgen
28576      $curl_includes_unistd
28577
28578_ACEOF
28579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28580  $EGREP "basename" >/dev/null 2>&1; then :
28581
28582      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28583$as_echo "yes" >&6; }
28584      tst_proto_basename="yes"
28585
28586else
28587
28588      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28589$as_echo "no" >&6; }
28590      tst_proto_basename="no"
28591
28592fi
28593rm -f conftest*
28594
28595  fi
28596  #
28597  if test "$tst_proto_basename" = "yes"; then
28598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
28599$as_echo_n "checking if basename is compilable... " >&6; }
28600    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28601/* end confdefs.h.  */
28602
28603
28604        $curl_includes_string
28605        $curl_includes_libgen
28606        $curl_includes_unistd
28607
28608int main (void)
28609{
28610
28611        if(0 != basename(0))
28612          return 1;
28613
28614 ;
28615 return 0;
28616}
28617
28618_ACEOF
28619if ac_fn_c_try_compile "$LINENO"; then :
28620
28621      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622$as_echo "yes" >&6; }
28623      tst_compi_basename="yes"
28624
28625else
28626
28627      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28628$as_echo "no" >&6; }
28629      tst_compi_basename="no"
28630
28631fi
28632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28633  fi
28634  #
28635  if test "$tst_compi_basename" = "yes"; then
28636    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
28637$as_echo_n "checking if basename usage allowed... " >&6; }
28638    if test "x$curl_disallow_basename" != "xyes"; then
28639      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28640$as_echo "yes" >&6; }
28641      tst_allow_basename="yes"
28642    else
28643      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28644$as_echo "no" >&6; }
28645      tst_allow_basename="no"
28646    fi
28647  fi
28648  #
28649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
28650$as_echo_n "checking if basename might be used... " >&6; }
28651  if test "$tst_links_basename" = "yes" &&
28652     test "$tst_proto_basename" = "yes" &&
28653     test "$tst_compi_basename" = "yes" &&
28654     test "$tst_allow_basename" = "yes"; then
28655    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28656$as_echo "yes" >&6; }
28657
28658cat >>confdefs.h <<_ACEOF
28659#define HAVE_BASENAME 1
28660_ACEOF
28661
28662    ac_cv_func_basename="yes"
28663  else
28664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28665$as_echo "no" >&6; }
28666    ac_cv_func_basename="no"
28667  fi
28668
28669
28670curl_includes_socket="\
28671/* includes start */
28672#ifdef HAVE_SYS_TYPES_H
28673#  include <sys/types.h>
28674#endif
28675#ifdef HAVE_SOCKET_H
28676#  include <socket.h>
28677#endif
28678/* includes end */"
28679  for ac_header in sys/types.h socket.h
28680do :
28681  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
28683"
28684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28685  cat >>confdefs.h <<_ACEOF
28686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28687_ACEOF
28688
28689fi
28690
28691done
28692
28693
28694
28695      #
28696  tst_links_closesocket="unknown"
28697  tst_proto_closesocket="unknown"
28698  tst_compi_closesocket="unknown"
28699  tst_allow_closesocket="unknown"
28700  #
28701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
28702$as_echo_n "checking if closesocket can be linked... " >&6; }
28703  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28704/* end confdefs.h.  */
28705
28706
28707      $curl_includes_winsock2
28708      $curl_includes_socket
28709
28710int main (void)
28711{
28712
28713      if(0 != closesocket(0))
28714        return 1;
28715
28716 ;
28717 return 0;
28718}
28719
28720_ACEOF
28721if ac_fn_c_try_link "$LINENO"; then :
28722
28723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28724$as_echo "yes" >&6; }
28725    tst_links_closesocket="yes"
28726
28727else
28728
28729    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28730$as_echo "no" >&6; }
28731    tst_links_closesocket="no"
28732
28733fi
28734rm -f core conftest.err conftest.$ac_objext \
28735    conftest$ac_exeext conftest.$ac_ext
28736  #
28737  if test "$tst_links_closesocket" = "yes"; then
28738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
28739$as_echo_n "checking if closesocket is prototyped... " >&6; }
28740    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28741/* end confdefs.h.  */
28742
28743      $curl_includes_winsock2
28744      $curl_includes_socket
28745
28746_ACEOF
28747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28748  $EGREP "closesocket" >/dev/null 2>&1; then :
28749
28750      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28751$as_echo "yes" >&6; }
28752      tst_proto_closesocket="yes"
28753
28754else
28755
28756      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28757$as_echo "no" >&6; }
28758      tst_proto_closesocket="no"
28759
28760fi
28761rm -f conftest*
28762
28763  fi
28764  #
28765  if test "$tst_proto_closesocket" = "yes"; then
28766    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
28767$as_echo_n "checking if closesocket is compilable... " >&6; }
28768    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28769/* end confdefs.h.  */
28770
28771
28772        $curl_includes_winsock2
28773        $curl_includes_socket
28774
28775int main (void)
28776{
28777
28778        if(0 != closesocket(0))
28779          return 1;
28780
28781 ;
28782 return 0;
28783}
28784
28785_ACEOF
28786if ac_fn_c_try_compile "$LINENO"; then :
28787
28788      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28789$as_echo "yes" >&6; }
28790      tst_compi_closesocket="yes"
28791
28792else
28793
28794      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28795$as_echo "no" >&6; }
28796      tst_compi_closesocket="no"
28797
28798fi
28799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800  fi
28801  #
28802  if test "$tst_compi_closesocket" = "yes"; then
28803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
28804$as_echo_n "checking if closesocket usage allowed... " >&6; }
28805    if test "x$curl_disallow_closesocket" != "xyes"; then
28806      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28807$as_echo "yes" >&6; }
28808      tst_allow_closesocket="yes"
28809    else
28810      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28811$as_echo "no" >&6; }
28812      tst_allow_closesocket="no"
28813    fi
28814  fi
28815  #
28816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
28817$as_echo_n "checking if closesocket might be used... " >&6; }
28818  if test "$tst_links_closesocket" = "yes" &&
28819     test "$tst_proto_closesocket" = "yes" &&
28820     test "$tst_compi_closesocket" = "yes" &&
28821     test "$tst_allow_closesocket" = "yes"; then
28822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28823$as_echo "yes" >&6; }
28824
28825cat >>confdefs.h <<_ACEOF
28826#define HAVE_CLOSESOCKET 1
28827_ACEOF
28828
28829    ac_cv_func_closesocket="yes"
28830  else
28831    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28832$as_echo "no" >&6; }
28833    ac_cv_func_closesocket="no"
28834  fi
28835
28836
28837    #
28838  tst_links_closesocket_camel="unknown"
28839  tst_proto_closesocket_camel="unknown"
28840  tst_compi_closesocket_camel="unknown"
28841  tst_allow_closesocket_camel="unknown"
28842  #
28843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
28844$as_echo_n "checking if CloseSocket can be linked... " >&6; }
28845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846/* end confdefs.h.  */
28847
28848
28849      $curl_includes_sys_socket
28850
28851int main (void)
28852{
28853
28854      if(0 != CloseSocket(0))
28855        return 1;
28856
28857 ;
28858 return 0;
28859}
28860
28861_ACEOF
28862if ac_fn_c_try_link "$LINENO"; then :
28863
28864    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28865$as_echo "yes" >&6; }
28866    tst_links_closesocket_camel="yes"
28867
28868else
28869
28870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28871$as_echo "no" >&6; }
28872    tst_links_closesocket_camel="no"
28873
28874fi
28875rm -f core conftest.err conftest.$ac_objext \
28876    conftest$ac_exeext conftest.$ac_ext
28877  #
28878  if test "$tst_links_closesocket_camel" = "yes"; then
28879    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
28880$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
28881    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28882/* end confdefs.h.  */
28883
28884      $curl_includes_sys_socket
28885
28886_ACEOF
28887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28888  $EGREP "CloseSocket" >/dev/null 2>&1; then :
28889
28890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28891$as_echo "yes" >&6; }
28892      tst_proto_closesocket_camel="yes"
28893
28894else
28895
28896      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28897$as_echo "no" >&6; }
28898      tst_proto_closesocket_camel="no"
28899
28900fi
28901rm -f conftest*
28902
28903  fi
28904  #
28905  if test "$tst_proto_closesocket_camel" = "yes"; then
28906    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
28907$as_echo_n "checking if CloseSocket is compilable... " >&6; }
28908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28909/* end confdefs.h.  */
28910
28911
28912        $curl_includes_sys_socket
28913
28914int main (void)
28915{
28916
28917        if(0 != CloseSocket(0))
28918          return 1;
28919
28920 ;
28921 return 0;
28922}
28923
28924_ACEOF
28925if ac_fn_c_try_compile "$LINENO"; then :
28926
28927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28928$as_echo "yes" >&6; }
28929      tst_compi_closesocket_camel="yes"
28930
28931else
28932
28933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28934$as_echo "no" >&6; }
28935      tst_compi_closesocket_camel="no"
28936
28937fi
28938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28939  fi
28940  #
28941  if test "$tst_compi_closesocket_camel" = "yes"; then
28942    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
28943$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
28944    if test "x$curl_disallow_closesocket_camel" != "xyes"; then
28945      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28946$as_echo "yes" >&6; }
28947      tst_allow_closesocket_camel="yes"
28948    else
28949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28950$as_echo "no" >&6; }
28951      tst_allow_closesocket_camel="no"
28952    fi
28953  fi
28954  #
28955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
28956$as_echo_n "checking if CloseSocket might be used... " >&6; }
28957  if test "$tst_links_closesocket_camel" = "yes" &&
28958     test "$tst_proto_closesocket_camel" = "yes" &&
28959     test "$tst_compi_closesocket_camel" = "yes" &&
28960     test "$tst_allow_closesocket_camel" = "yes"; then
28961    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28962$as_echo "yes" >&6; }
28963
28964cat >>confdefs.h <<_ACEOF
28965#define HAVE_CLOSESOCKET_CAMEL 1
28966_ACEOF
28967
28968    ac_cv_func_closesocket_camel="yes"
28969  else
28970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28971$as_echo "no" >&6; }
28972    ac_cv_func_closesocket_camel="no"
28973  fi
28974
28975
28976        #
28977  tst_links_connect="unknown"
28978  tst_proto_connect="unknown"
28979  tst_compi_connect="unknown"
28980  tst_allow_connect="unknown"
28981  #
28982  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
28983$as_echo_n "checking if connect can be linked... " >&6; }
28984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28985/* end confdefs.h.  */
28986
28987
28988      $curl_includes_winsock2
28989      $curl_includes_sys_socket
28990      $curl_includes_socket
28991
28992int main (void)
28993{
28994
28995      if(0 != connect(0, 0, 0))
28996        return 1;
28997
28998 ;
28999 return 0;
29000}
29001
29002_ACEOF
29003if ac_fn_c_try_link "$LINENO"; then :
29004
29005    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29006$as_echo "yes" >&6; }
29007    tst_links_connect="yes"
29008
29009else
29010
29011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29012$as_echo "no" >&6; }
29013    tst_links_connect="no"
29014
29015fi
29016rm -f core conftest.err conftest.$ac_objext \
29017    conftest$ac_exeext conftest.$ac_ext
29018  #
29019  if test "$tst_links_connect" = "yes"; then
29020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
29021$as_echo_n "checking if connect is prototyped... " >&6; }
29022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29023/* end confdefs.h.  */
29024
29025      $curl_includes_winsock2
29026      $curl_includes_sys_socket
29027      $curl_includes_socket
29028
29029_ACEOF
29030if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29031  $EGREP "connect" >/dev/null 2>&1; then :
29032
29033      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29034$as_echo "yes" >&6; }
29035      tst_proto_connect="yes"
29036
29037else
29038
29039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29040$as_echo "no" >&6; }
29041      tst_proto_connect="no"
29042
29043fi
29044rm -f conftest*
29045
29046  fi
29047  #
29048  if test "$tst_proto_connect" = "yes"; then
29049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
29050$as_echo_n "checking if connect is compilable... " >&6; }
29051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29052/* end confdefs.h.  */
29053
29054
29055        $curl_includes_winsock2
29056        $curl_includes_sys_socket
29057        $curl_includes_socket
29058
29059int main (void)
29060{
29061
29062        if(0 != connect(0, 0, 0))
29063          return 1;
29064
29065 ;
29066 return 0;
29067}
29068
29069_ACEOF
29070if ac_fn_c_try_compile "$LINENO"; then :
29071
29072      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29073$as_echo "yes" >&6; }
29074      tst_compi_connect="yes"
29075
29076else
29077
29078      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29079$as_echo "no" >&6; }
29080      tst_compi_connect="no"
29081
29082fi
29083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29084  fi
29085  #
29086  if test "$tst_compi_connect" = "yes"; then
29087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
29088$as_echo_n "checking if connect usage allowed... " >&6; }
29089    if test "x$curl_disallow_connect" != "xyes"; then
29090      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29091$as_echo "yes" >&6; }
29092      tst_allow_connect="yes"
29093    else
29094      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29095$as_echo "no" >&6; }
29096      tst_allow_connect="no"
29097    fi
29098  fi
29099  #
29100  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
29101$as_echo_n "checking if connect might be used... " >&6; }
29102  if test "$tst_links_connect" = "yes" &&
29103     test "$tst_proto_connect" = "yes" &&
29104     test "$tst_compi_connect" = "yes" &&
29105     test "$tst_allow_connect" = "yes"; then
29106    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29107$as_echo "yes" >&6; }
29108
29109cat >>confdefs.h <<_ACEOF
29110#define HAVE_CONNECT 1
29111_ACEOF
29112
29113    ac_cv_func_connect="yes"
29114  else
29115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29116$as_echo "no" >&6; }
29117    ac_cv_func_connect="no"
29118  fi
29119
29120
29121curl_includes_fcntl="\
29122/* includes start */
29123#ifdef HAVE_SYS_TYPES_H
29124#  include <sys/types.h>
29125#endif
29126#ifdef HAVE_UNISTD_H
29127#  include <unistd.h>
29128#endif
29129#ifdef HAVE_FCNTL_H
29130#  include <fcntl.h>
29131#endif
29132/* includes end */"
29133  for ac_header in sys/types.h unistd.h fcntl.h
29134do :
29135  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29136ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
29137"
29138if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29139  cat >>confdefs.h <<_ACEOF
29140#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29141_ACEOF
29142
29143fi
29144
29145done
29146
29147
29148
29149    #
29150  tst_links_fcntl="unknown"
29151  tst_proto_fcntl="unknown"
29152  tst_compi_fcntl="unknown"
29153  tst_allow_fcntl="unknown"
29154  #
29155  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
29156$as_echo_n "checking if fcntl can be linked... " >&6; }
29157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29158/* end confdefs.h.  */
29159
29160
29161#define fcntl innocuous_fcntl
29162#ifdef __STDC__
29163# include <limits.h>
29164#else
29165# include <assert.h>
29166#endif
29167#undef fcntl
29168#ifdef __cplusplus
29169extern "C"
29170#endif
29171char fcntl ();
29172#if defined __stub_fcntl || defined __stub___fcntl
29173choke me
29174#endif
29175
29176int main (void)
29177{
29178return fcntl ();
29179 ;
29180 return 0;
29181}
29182
29183_ACEOF
29184if ac_fn_c_try_link "$LINENO"; then :
29185
29186    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29187$as_echo "yes" >&6; }
29188    tst_links_fcntl="yes"
29189
29190else
29191
29192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29193$as_echo "no" >&6; }
29194    tst_links_fcntl="no"
29195
29196fi
29197rm -f core conftest.err conftest.$ac_objext \
29198    conftest$ac_exeext conftest.$ac_ext
29199  #
29200  if test "$tst_links_fcntl" = "yes"; then
29201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
29202$as_echo_n "checking if fcntl is prototyped... " >&6; }
29203    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29204/* end confdefs.h.  */
29205
29206      $curl_includes_fcntl
29207
29208_ACEOF
29209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29210  $EGREP "fcntl" >/dev/null 2>&1; then :
29211
29212      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29213$as_echo "yes" >&6; }
29214      tst_proto_fcntl="yes"
29215
29216else
29217
29218      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29219$as_echo "no" >&6; }
29220      tst_proto_fcntl="no"
29221
29222fi
29223rm -f conftest*
29224
29225  fi
29226  #
29227  if test "$tst_proto_fcntl" = "yes"; then
29228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
29229$as_echo_n "checking if fcntl is compilable... " >&6; }
29230    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29231/* end confdefs.h.  */
29232
29233
29234        $curl_includes_fcntl
29235
29236int main (void)
29237{
29238
29239        if(0 != fcntl(0, 0, 0))
29240          return 1;
29241
29242 ;
29243 return 0;
29244}
29245
29246_ACEOF
29247if ac_fn_c_try_compile "$LINENO"; then :
29248
29249      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29250$as_echo "yes" >&6; }
29251      tst_compi_fcntl="yes"
29252
29253else
29254
29255      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29256$as_echo "no" >&6; }
29257      tst_compi_fcntl="no"
29258
29259fi
29260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29261  fi
29262  #
29263  if test "$tst_compi_fcntl" = "yes"; then
29264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
29265$as_echo_n "checking if fcntl usage allowed... " >&6; }
29266    if test "x$curl_disallow_fcntl" != "xyes"; then
29267      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29268$as_echo "yes" >&6; }
29269      tst_allow_fcntl="yes"
29270    else
29271      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29272$as_echo "no" >&6; }
29273      tst_allow_fcntl="no"
29274    fi
29275  fi
29276  #
29277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
29278$as_echo_n "checking if fcntl might be used... " >&6; }
29279  if test "$tst_links_fcntl" = "yes" &&
29280     test "$tst_proto_fcntl" = "yes" &&
29281     test "$tst_compi_fcntl" = "yes" &&
29282     test "$tst_allow_fcntl" = "yes"; then
29283    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29284$as_echo "yes" >&6; }
29285
29286cat >>confdefs.h <<_ACEOF
29287#define HAVE_FCNTL 1
29288_ACEOF
29289
29290    ac_cv_func_fcntl="yes"
29291
29292  #
29293  tst_compi_fcntl_o_nonblock="unknown"
29294  tst_allow_fcntl_o_nonblock="unknown"
29295  #
29296  case $host_os in
29297    sunos4* | aix3* | beos*)
29298            curl_disallow_fcntl_o_nonblock="yes"
29299      ;;
29300  esac
29301  #
29302  if test "$ac_cv_func_fcntl" = "yes"; then
29303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
29304$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
29305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29306/* end confdefs.h.  */
29307
29308
29309        $curl_includes_fcntl
29310
29311int main (void)
29312{
29313
29314        int flags = 0;
29315        if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
29316          return 1;
29317
29318 ;
29319 return 0;
29320}
29321
29322_ACEOF
29323if ac_fn_c_try_compile "$LINENO"; then :
29324
29325      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29326$as_echo "yes" >&6; }
29327      tst_compi_fcntl_o_nonblock="yes"
29328
29329else
29330
29331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29332$as_echo "no" >&6; }
29333      tst_compi_fcntl_o_nonblock="no"
29334
29335fi
29336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29337  fi
29338  #
29339  if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
29340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
29341$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
29342    if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
29343      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29344$as_echo "yes" >&6; }
29345      tst_allow_fcntl_o_nonblock="yes"
29346    else
29347      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29348$as_echo "no" >&6; }
29349      tst_allow_fcntl_o_nonblock="no"
29350    fi
29351  fi
29352  #
29353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
29354$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
29355  if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
29356     test "$tst_allow_fcntl_o_nonblock" = "yes"; then
29357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29358$as_echo "yes" >&6; }
29359
29360cat >>confdefs.h <<_ACEOF
29361#define HAVE_FCNTL_O_NONBLOCK 1
29362_ACEOF
29363
29364    ac_cv_func_fcntl_o_nonblock="yes"
29365  else
29366    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29367$as_echo "no" >&6; }
29368    ac_cv_func_fcntl_o_nonblock="no"
29369  fi
29370
29371  else
29372    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29373$as_echo "no" >&6; }
29374    ac_cv_func_fcntl="no"
29375  fi
29376
29377
29378curl_includes_stdio="\
29379/* includes start */
29380#ifdef HAVE_SYS_TYPES_H
29381#  include <sys/types.h>
29382#endif
29383#ifdef HAVE_STDIO_H
29384#  include <stdio.h>
29385#endif
29386/* includes end */"
29387  for ac_header in sys/types.h stdio.h
29388do :
29389  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29390ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
29391"
29392if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29393  cat >>confdefs.h <<_ACEOF
29394#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29395_ACEOF
29396
29397fi
29398
29399done
29400
29401
29402
29403    #
29404  tst_links_fdopen="unknown"
29405  tst_proto_fdopen="unknown"
29406  tst_compi_fdopen="unknown"
29407  tst_allow_fdopen="unknown"
29408  #
29409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
29410$as_echo_n "checking if fdopen can be linked... " >&6; }
29411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29412/* end confdefs.h.  */
29413
29414
29415#define fdopen innocuous_fdopen
29416#ifdef __STDC__
29417# include <limits.h>
29418#else
29419# include <assert.h>
29420#endif
29421#undef fdopen
29422#ifdef __cplusplus
29423extern "C"
29424#endif
29425char fdopen ();
29426#if defined __stub_fdopen || defined __stub___fdopen
29427choke me
29428#endif
29429
29430int main (void)
29431{
29432return fdopen ();
29433 ;
29434 return 0;
29435}
29436
29437_ACEOF
29438if ac_fn_c_try_link "$LINENO"; then :
29439
29440    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29441$as_echo "yes" >&6; }
29442    tst_links_fdopen="yes"
29443
29444else
29445
29446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29447$as_echo "no" >&6; }
29448    tst_links_fdopen="no"
29449
29450fi
29451rm -f core conftest.err conftest.$ac_objext \
29452    conftest$ac_exeext conftest.$ac_ext
29453  #
29454  if test "$tst_links_fdopen" = "yes"; then
29455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
29456$as_echo_n "checking if fdopen is prototyped... " >&6; }
29457    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29458/* end confdefs.h.  */
29459
29460      $curl_includes_stdio
29461
29462_ACEOF
29463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29464  $EGREP "fdopen" >/dev/null 2>&1; then :
29465
29466      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29467$as_echo "yes" >&6; }
29468      tst_proto_fdopen="yes"
29469
29470else
29471
29472      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29473$as_echo "no" >&6; }
29474      tst_proto_fdopen="no"
29475
29476fi
29477rm -f conftest*
29478
29479  fi
29480  #
29481  if test "$tst_proto_fdopen" = "yes"; then
29482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
29483$as_echo_n "checking if fdopen is compilable... " >&6; }
29484    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29485/* end confdefs.h.  */
29486
29487
29488        $curl_includes_stdio
29489
29490int main (void)
29491{
29492
29493        if(0 != fdopen(0, 0))
29494          return 1;
29495
29496 ;
29497 return 0;
29498}
29499
29500_ACEOF
29501if ac_fn_c_try_compile "$LINENO"; then :
29502
29503      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29504$as_echo "yes" >&6; }
29505      tst_compi_fdopen="yes"
29506
29507else
29508
29509      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29510$as_echo "no" >&6; }
29511      tst_compi_fdopen="no"
29512
29513fi
29514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29515  fi
29516  #
29517  if test "$tst_compi_fdopen" = "yes"; then
29518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
29519$as_echo_n "checking if fdopen usage allowed... " >&6; }
29520    if test "x$curl_disallow_fdopen" != "xyes"; then
29521      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29522$as_echo "yes" >&6; }
29523      tst_allow_fdopen="yes"
29524    else
29525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29526$as_echo "no" >&6; }
29527      tst_allow_fdopen="no"
29528    fi
29529  fi
29530  #
29531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
29532$as_echo_n "checking if fdopen might be used... " >&6; }
29533  if test "$tst_links_fdopen" = "yes" &&
29534     test "$tst_proto_fdopen" = "yes" &&
29535     test "$tst_compi_fdopen" = "yes" &&
29536     test "$tst_allow_fdopen" = "yes"; then
29537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29538$as_echo "yes" >&6; }
29539
29540cat >>confdefs.h <<_ACEOF
29541#define HAVE_FDOPEN 1
29542_ACEOF
29543
29544    ac_cv_func_fdopen="yes"
29545  else
29546    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29547$as_echo "no" >&6; }
29548    ac_cv_func_fdopen="no"
29549  fi
29550
29551
29552curl_includes_netdb="\
29553/* includes start */
29554#ifdef HAVE_SYS_TYPES_H
29555#  include <sys/types.h>
29556#endif
29557#ifdef HAVE_NETDB_H
29558#  include <netdb.h>
29559#endif
29560/* includes end */"
29561  for ac_header in sys/types.h netdb.h
29562do :
29563  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29564ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
29565"
29566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29567  cat >>confdefs.h <<_ACEOF
29568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29569_ACEOF
29570
29571fi
29572
29573done
29574
29575
29576
29577        #
29578  tst_links_freeaddrinfo="unknown"
29579  tst_proto_freeaddrinfo="unknown"
29580  tst_compi_freeaddrinfo="unknown"
29581  tst_allow_freeaddrinfo="unknown"
29582  #
29583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
29584$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
29585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29586/* end confdefs.h.  */
29587
29588
29589      $curl_includes_ws2tcpip
29590      $curl_includes_sys_socket
29591      $curl_includes_netdb
29592
29593int main (void)
29594{
29595
29596      freeaddrinfo(0);
29597
29598 ;
29599 return 0;
29600}
29601
29602_ACEOF
29603if ac_fn_c_try_link "$LINENO"; then :
29604
29605    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29606$as_echo "yes" >&6; }
29607    tst_links_freeaddrinfo="yes"
29608
29609else
29610
29611    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29612$as_echo "no" >&6; }
29613    tst_links_freeaddrinfo="no"
29614
29615fi
29616rm -f core conftest.err conftest.$ac_objext \
29617    conftest$ac_exeext conftest.$ac_ext
29618  #
29619  if test "$tst_links_freeaddrinfo" = "yes"; then
29620    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
29621$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
29622    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29623/* end confdefs.h.  */
29624
29625      $curl_includes_ws2tcpip
29626      $curl_includes_sys_socket
29627      $curl_includes_netdb
29628
29629_ACEOF
29630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29631  $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
29632
29633      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29634$as_echo "yes" >&6; }
29635      tst_proto_freeaddrinfo="yes"
29636
29637else
29638
29639      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29640$as_echo "no" >&6; }
29641      tst_proto_freeaddrinfo="no"
29642
29643fi
29644rm -f conftest*
29645
29646  fi
29647  #
29648  if test "$tst_proto_freeaddrinfo" = "yes"; then
29649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
29650$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
29651    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29652/* end confdefs.h.  */
29653
29654
29655        $curl_includes_ws2tcpip
29656        $curl_includes_sys_socket
29657        $curl_includes_netdb
29658
29659int main (void)
29660{
29661
29662        freeaddrinfo(0);
29663
29664 ;
29665 return 0;
29666}
29667
29668_ACEOF
29669if ac_fn_c_try_compile "$LINENO"; then :
29670
29671      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29672$as_echo "yes" >&6; }
29673      tst_compi_freeaddrinfo="yes"
29674
29675else
29676
29677      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29678$as_echo "no" >&6; }
29679      tst_compi_freeaddrinfo="no"
29680
29681fi
29682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29683  fi
29684  #
29685  if test "$tst_compi_freeaddrinfo" = "yes"; then
29686    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
29687$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
29688    if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
29689      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29690$as_echo "yes" >&6; }
29691      tst_allow_freeaddrinfo="yes"
29692    else
29693      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29694$as_echo "no" >&6; }
29695      tst_allow_freeaddrinfo="no"
29696    fi
29697  fi
29698  #
29699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
29700$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
29701  if test "$tst_links_freeaddrinfo" = "yes" &&
29702     test "$tst_proto_freeaddrinfo" = "yes" &&
29703     test "$tst_compi_freeaddrinfo" = "yes" &&
29704     test "$tst_allow_freeaddrinfo" = "yes"; then
29705    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29706$as_echo "yes" >&6; }
29707
29708cat >>confdefs.h <<_ACEOF
29709#define HAVE_FREEADDRINFO 1
29710_ACEOF
29711
29712    ac_cv_func_freeaddrinfo="yes"
29713  else
29714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29715$as_echo "no" >&6; }
29716    ac_cv_func_freeaddrinfo="no"
29717  fi
29718
29719
29720curl_includes_ifaddrs="\
29721/* includes start */
29722#ifdef HAVE_SYS_TYPES_H
29723#  include <sys/types.h>
29724#endif
29725#ifdef HAVE_SYS_SOCKET_H
29726#  include <sys/socket.h>
29727#endif
29728#ifdef HAVE_NETINET_IN_H
29729#  include <netinet/in.h>
29730#endif
29731#ifdef HAVE_IFADDRS_H
29732#  include <ifaddrs.h>
29733#endif
29734/* includes end */"
29735  for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
29736do :
29737  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29738ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
29739"
29740if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29741  cat >>confdefs.h <<_ACEOF
29742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29743_ACEOF
29744
29745fi
29746
29747done
29748
29749
29750
29751    #
29752  tst_links_freeifaddrs="unknown"
29753  tst_proto_freeifaddrs="unknown"
29754  tst_compi_freeifaddrs="unknown"
29755  tst_allow_freeifaddrs="unknown"
29756  #
29757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
29758$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
29759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29760/* end confdefs.h.  */
29761
29762
29763#define freeifaddrs innocuous_freeifaddrs
29764#ifdef __STDC__
29765# include <limits.h>
29766#else
29767# include <assert.h>
29768#endif
29769#undef freeifaddrs
29770#ifdef __cplusplus
29771extern "C"
29772#endif
29773char freeifaddrs ();
29774#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
29775choke me
29776#endif
29777
29778int main (void)
29779{
29780return freeifaddrs ();
29781 ;
29782 return 0;
29783}
29784
29785_ACEOF
29786if ac_fn_c_try_link "$LINENO"; then :
29787
29788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29789$as_echo "yes" >&6; }
29790    tst_links_freeifaddrs="yes"
29791
29792else
29793
29794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29795$as_echo "no" >&6; }
29796    tst_links_freeifaddrs="no"
29797
29798fi
29799rm -f core conftest.err conftest.$ac_objext \
29800    conftest$ac_exeext conftest.$ac_ext
29801  #
29802  if test "$tst_links_freeifaddrs" = "yes"; then
29803    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
29804$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
29805    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29806/* end confdefs.h.  */
29807
29808      $curl_includes_ifaddrs
29809
29810_ACEOF
29811if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29812  $EGREP "freeifaddrs" >/dev/null 2>&1; then :
29813
29814      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29815$as_echo "yes" >&6; }
29816      tst_proto_freeifaddrs="yes"
29817
29818else
29819
29820      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29821$as_echo "no" >&6; }
29822      tst_proto_freeifaddrs="no"
29823
29824fi
29825rm -f conftest*
29826
29827  fi
29828  #
29829  if test "$tst_proto_freeifaddrs" = "yes"; then
29830    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
29831$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
29832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29833/* end confdefs.h.  */
29834
29835
29836        $curl_includes_ifaddrs
29837
29838int main (void)
29839{
29840
29841        freeifaddrs(0);
29842
29843 ;
29844 return 0;
29845}
29846
29847_ACEOF
29848if ac_fn_c_try_compile "$LINENO"; then :
29849
29850      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29851$as_echo "yes" >&6; }
29852      tst_compi_freeifaddrs="yes"
29853
29854else
29855
29856      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29857$as_echo "no" >&6; }
29858      tst_compi_freeifaddrs="no"
29859
29860fi
29861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29862  fi
29863  #
29864  if test "$tst_compi_freeifaddrs" = "yes"; then
29865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
29866$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
29867    if test "x$curl_disallow_freeifaddrs" != "xyes"; then
29868      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29869$as_echo "yes" >&6; }
29870      tst_allow_freeifaddrs="yes"
29871    else
29872      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29873$as_echo "no" >&6; }
29874      tst_allow_freeifaddrs="no"
29875    fi
29876  fi
29877  #
29878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
29879$as_echo_n "checking if freeifaddrs might be used... " >&6; }
29880  if test "$tst_links_freeifaddrs" = "yes" &&
29881     test "$tst_proto_freeifaddrs" = "yes" &&
29882     test "$tst_compi_freeifaddrs" = "yes" &&
29883     test "$tst_allow_freeifaddrs" = "yes"; then
29884    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29885$as_echo "yes" >&6; }
29886
29887cat >>confdefs.h <<_ACEOF
29888#define HAVE_FREEIFADDRS 1
29889_ACEOF
29890
29891    ac_cv_func_freeifaddrs="yes"
29892  else
29893    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894$as_echo "no" >&6; }
29895    ac_cv_func_freeifaddrs="no"
29896  fi
29897
29898
29899curl_includes_sys_xattr="\
29900/* includes start */
29901#ifdef HAVE_SYS_TYPES_H
29902#  include <sys/types.h>
29903#endif
29904#ifdef HAVE_SYS_XATTR_H
29905#  include <sys/xattr.h>
29906#endif
29907/* includes end */"
29908  for ac_header in sys/types.h sys/xattr.h
29909do :
29910  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29911ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
29912"
29913if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29914  cat >>confdefs.h <<_ACEOF
29915#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29916_ACEOF
29917
29918fi
29919
29920done
29921
29922
29923
29924    #
29925  tst_links_fsetxattr="unknown"
29926  tst_proto_fsetxattr="unknown"
29927  tst_compi_fsetxattr="unknown"
29928  tst_allow_fsetxattr="unknown"
29929  tst_nargs_fsetxattr="unknown"
29930  #
29931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
29932$as_echo_n "checking if fsetxattr can be linked... " >&6; }
29933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29934/* end confdefs.h.  */
29935
29936
29937#define fsetxattr innocuous_fsetxattr
29938#ifdef __STDC__
29939# include <limits.h>
29940#else
29941# include <assert.h>
29942#endif
29943#undef fsetxattr
29944#ifdef __cplusplus
29945extern "C"
29946#endif
29947char fsetxattr ();
29948#if defined __stub_fsetxattr || defined __stub___fsetxattr
29949choke me
29950#endif
29951
29952int main (void)
29953{
29954return fsetxattr ();
29955 ;
29956 return 0;
29957}
29958
29959_ACEOF
29960if ac_fn_c_try_link "$LINENO"; then :
29961
29962    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29963$as_echo "yes" >&6; }
29964    tst_links_fsetxattr="yes"
29965
29966else
29967
29968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29969$as_echo "no" >&6; }
29970    tst_links_fsetxattr="no"
29971
29972fi
29973rm -f core conftest.err conftest.$ac_objext \
29974    conftest$ac_exeext conftest.$ac_ext
29975  #
29976  if test "$tst_links_fsetxattr" = "yes"; then
29977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
29978$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
29979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29980/* end confdefs.h.  */
29981
29982      $curl_includes_sys_xattr
29983
29984_ACEOF
29985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29986  $EGREP "fsetxattr" >/dev/null 2>&1; then :
29987
29988      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29989$as_echo "yes" >&6; }
29990      tst_proto_fsetxattr="yes"
29991
29992else
29993
29994      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29995$as_echo "no" >&6; }
29996      tst_proto_fsetxattr="no"
29997
29998fi
29999rm -f conftest*
30000
30001  fi
30002  #
30003  if test "$tst_proto_fsetxattr" = "yes"; then
30004    if test "$tst_nargs_fsetxattr" = "unknown"; then
30005      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
30006$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
30007      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008/* end confdefs.h.  */
30009
30010
30011          $curl_includes_sys_xattr
30012
30013int main (void)
30014{
30015
30016          if(0 != fsetxattr(0, 0, 0, 0, 0))
30017            return 1;
30018
30019 ;
30020 return 0;
30021}
30022
30023_ACEOF
30024if ac_fn_c_try_compile "$LINENO"; then :
30025
30026        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30027$as_echo "yes" >&6; }
30028        tst_compi_fsetxattr="yes"
30029        tst_nargs_fsetxattr="5"
30030
30031else
30032
30033        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30034$as_echo "no" >&6; }
30035        tst_compi_fsetxattr="no"
30036
30037fi
30038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30039    fi
30040    if test "$tst_nargs_fsetxattr" = "unknown"; then
30041      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
30042$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
30043      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30044/* end confdefs.h.  */
30045
30046
30047          $curl_includes_sys_xattr
30048
30049int main (void)
30050{
30051
30052          if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
30053            return 1;
30054
30055 ;
30056 return 0;
30057}
30058
30059_ACEOF
30060if ac_fn_c_try_compile "$LINENO"; then :
30061
30062        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30063$as_echo "yes" >&6; }
30064        tst_compi_fsetxattr="yes"
30065        tst_nargs_fsetxattr="6"
30066
30067else
30068
30069        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30070$as_echo "no" >&6; }
30071        tst_compi_fsetxattr="no"
30072
30073fi
30074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30075    fi
30076    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
30077$as_echo_n "checking if fsetxattr is compilable... " >&6; }
30078    if test "$tst_compi_fsetxattr" = "yes"; then
30079      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30080$as_echo "yes" >&6; }
30081    else
30082      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30083$as_echo "no" >&6; }
30084    fi
30085  fi
30086  #
30087  if test "$tst_compi_fsetxattr" = "yes"; then
30088    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
30089$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
30090    if test "x$curl_disallow_fsetxattr" != "xyes"; then
30091      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30092$as_echo "yes" >&6; }
30093      tst_allow_fsetxattr="yes"
30094    else
30095      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30096$as_echo "no" >&6; }
30097      tst_allow_fsetxattr="no"
30098    fi
30099  fi
30100  #
30101  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
30102$as_echo_n "checking if fsetxattr might be used... " >&6; }
30103  if test "$tst_links_fsetxattr" = "yes" &&
30104     test "$tst_proto_fsetxattr" = "yes" &&
30105     test "$tst_compi_fsetxattr" = "yes" &&
30106     test "$tst_allow_fsetxattr" = "yes"; then
30107    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30108$as_echo "yes" >&6; }
30109
30110cat >>confdefs.h <<_ACEOF
30111#define HAVE_FSETXATTR 1
30112_ACEOF
30113
30114            #
30115    if test "$tst_nargs_fsetxattr" -eq "5"; then
30116
30117$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
30118
30119    elif test "$tst_nargs_fsetxattr" -eq "6"; then
30120
30121$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
30122
30123    fi
30124    #
30125    ac_cv_func_fsetxattr="yes"
30126  else
30127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30128$as_echo "no" >&6; }
30129    ac_cv_func_fsetxattr="no"
30130  fi
30131
30132
30133    #
30134  tst_links_ftruncate="unknown"
30135  tst_proto_ftruncate="unknown"
30136  tst_compi_ftruncate="unknown"
30137  tst_allow_ftruncate="unknown"
30138  #
30139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
30140$as_echo_n "checking if ftruncate can be linked... " >&6; }
30141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30142/* end confdefs.h.  */
30143
30144
30145#define ftruncate innocuous_ftruncate
30146#ifdef __STDC__
30147# include <limits.h>
30148#else
30149# include <assert.h>
30150#endif
30151#undef ftruncate
30152#ifdef __cplusplus
30153extern "C"
30154#endif
30155char ftruncate ();
30156#if defined __stub_ftruncate || defined __stub___ftruncate
30157choke me
30158#endif
30159
30160int main (void)
30161{
30162return ftruncate ();
30163 ;
30164 return 0;
30165}
30166
30167_ACEOF
30168if ac_fn_c_try_link "$LINENO"; then :
30169
30170    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30171$as_echo "yes" >&6; }
30172    tst_links_ftruncate="yes"
30173
30174else
30175
30176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30177$as_echo "no" >&6; }
30178    tst_links_ftruncate="no"
30179
30180fi
30181rm -f core conftest.err conftest.$ac_objext \
30182    conftest$ac_exeext conftest.$ac_ext
30183  #
30184  if test "$tst_links_ftruncate" = "yes"; then
30185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
30186$as_echo_n "checking if ftruncate is prototyped... " >&6; }
30187    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30188/* end confdefs.h.  */
30189
30190      $curl_includes_unistd
30191
30192_ACEOF
30193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30194  $EGREP "ftruncate" >/dev/null 2>&1; then :
30195
30196      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30197$as_echo "yes" >&6; }
30198      tst_proto_ftruncate="yes"
30199
30200else
30201
30202      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30203$as_echo "no" >&6; }
30204      tst_proto_ftruncate="no"
30205
30206fi
30207rm -f conftest*
30208
30209  fi
30210  #
30211  if test "$tst_proto_ftruncate" = "yes"; then
30212    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
30213$as_echo_n "checking if ftruncate is compilable... " >&6; }
30214    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30215/* end confdefs.h.  */
30216
30217
30218        $curl_includes_unistd
30219
30220int main (void)
30221{
30222
30223        if(0 != ftruncate(0, 0))
30224          return 1;
30225
30226 ;
30227 return 0;
30228}
30229
30230_ACEOF
30231if ac_fn_c_try_compile "$LINENO"; then :
30232
30233      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30234$as_echo "yes" >&6; }
30235      tst_compi_ftruncate="yes"
30236
30237else
30238
30239      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30240$as_echo "no" >&6; }
30241      tst_compi_ftruncate="no"
30242
30243fi
30244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30245  fi
30246  #
30247  if test "$tst_compi_ftruncate" = "yes"; then
30248    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
30249$as_echo_n "checking if ftruncate usage allowed... " >&6; }
30250    if test "x$curl_disallow_ftruncate" != "xyes"; then
30251      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30252$as_echo "yes" >&6; }
30253      tst_allow_ftruncate="yes"
30254    else
30255      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30256$as_echo "no" >&6; }
30257      tst_allow_ftruncate="no"
30258    fi
30259  fi
30260  #
30261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
30262$as_echo_n "checking if ftruncate might be used... " >&6; }
30263  if test "$tst_links_ftruncate" = "yes" &&
30264     test "$tst_proto_ftruncate" = "yes" &&
30265     test "$tst_compi_ftruncate" = "yes" &&
30266     test "$tst_allow_ftruncate" = "yes"; then
30267    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30268$as_echo "yes" >&6; }
30269
30270cat >>confdefs.h <<_ACEOF
30271#define HAVE_FTRUNCATE 1
30272_ACEOF
30273
30274    ac_cv_func_ftruncate="yes"
30275  else
30276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30277$as_echo "no" >&6; }
30278    ac_cv_func_ftruncate="no"
30279  fi
30280
30281
30282curl_includes_stdlib="\
30283/* includes start */
30284#ifdef HAVE_SYS_TYPES_H
30285#  include <sys/types.h>
30286#endif
30287#ifdef HAVE_STDLIB_H
30288#  include <stdlib.h>
30289#endif
30290/* includes end */"
30291  for ac_header in sys/types.h stdlib.h
30292do :
30293  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30294ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
30295"
30296if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30297  cat >>confdefs.h <<_ACEOF
30298#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30299_ACEOF
30300
30301fi
30302
30303done
30304
30305
30306
30307              #
30308  tst_links_getaddrinfo="unknown"
30309  tst_proto_getaddrinfo="unknown"
30310  tst_compi_getaddrinfo="unknown"
30311  tst_works_getaddrinfo="unknown"
30312  tst_allow_getaddrinfo="unknown"
30313  tst_tsafe_getaddrinfo="unknown"
30314  #
30315  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
30316$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
30317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30318/* end confdefs.h.  */
30319
30320
30321      $curl_includes_ws2tcpip
30322      $curl_includes_sys_socket
30323      $curl_includes_netdb
30324
30325int main (void)
30326{
30327
30328      if(0 != getaddrinfo(0, 0, 0, 0))
30329        return 1;
30330
30331 ;
30332 return 0;
30333}
30334
30335_ACEOF
30336if ac_fn_c_try_link "$LINENO"; then :
30337
30338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30339$as_echo "yes" >&6; }
30340    tst_links_getaddrinfo="yes"
30341
30342else
30343
30344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30345$as_echo "no" >&6; }
30346    tst_links_getaddrinfo="no"
30347
30348fi
30349rm -f core conftest.err conftest.$ac_objext \
30350    conftest$ac_exeext conftest.$ac_ext
30351  #
30352  if test "$tst_links_getaddrinfo" = "yes"; then
30353    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
30354$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
30355    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30356/* end confdefs.h.  */
30357
30358      $curl_includes_ws2tcpip
30359      $curl_includes_sys_socket
30360      $curl_includes_netdb
30361
30362_ACEOF
30363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30364  $EGREP "getaddrinfo" >/dev/null 2>&1; then :
30365
30366      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30367$as_echo "yes" >&6; }
30368      tst_proto_getaddrinfo="yes"
30369
30370else
30371
30372      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30373$as_echo "no" >&6; }
30374      tst_proto_getaddrinfo="no"
30375
30376fi
30377rm -f conftest*
30378
30379  fi
30380  #
30381  if test "$tst_proto_getaddrinfo" = "yes"; then
30382    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
30383$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
30384    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30385/* end confdefs.h.  */
30386
30387
30388        $curl_includes_ws2tcpip
30389        $curl_includes_sys_socket
30390        $curl_includes_netdb
30391
30392int main (void)
30393{
30394
30395        if(0 != getaddrinfo(0, 0, 0, 0))
30396          return 1;
30397
30398 ;
30399 return 0;
30400}
30401
30402_ACEOF
30403if ac_fn_c_try_compile "$LINENO"; then :
30404
30405      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30406$as_echo "yes" >&6; }
30407      tst_compi_getaddrinfo="yes"
30408
30409else
30410
30411      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30412$as_echo "no" >&6; }
30413      tst_compi_getaddrinfo="no"
30414
30415fi
30416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30417  fi
30418  #
30419    if test "x$cross_compiling" != "xyes" &&
30420    test "$tst_compi_getaddrinfo" = "yes"; then
30421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
30422$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
30423    if test "$cross_compiling" = yes; then :
30424  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30425$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30426as_fn_error $? "cannot run test program while cross compiling
30427See \`config.log' for more details" "$LINENO" 5; }
30428else
30429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30430/* end confdefs.h.  */
30431
30432
30433        $curl_includes_ws2tcpip
30434        $curl_includes_stdlib
30435        $curl_includes_string
30436        $curl_includes_sys_socket
30437        $curl_includes_netdb
30438
30439int main (void)
30440{
30441
30442        struct addrinfo hints;
30443        struct addrinfo *ai = 0;
30444        int error;
30445
30446        memset(&hints, 0, sizeof(hints));
30447        hints.ai_flags = AI_NUMERICHOST;
30448        hints.ai_family = AF_UNSPEC;
30449        hints.ai_socktype = SOCK_STREAM;
30450        error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
30451        if(error || !ai)
30452          exit(1); /* fail */
30453        else
30454          exit(0);
30455
30456 ;
30457 return 0;
30458}
30459
30460_ACEOF
30461if ac_fn_c_try_run "$LINENO"; then :
30462
30463      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464$as_echo "yes" >&6; }
30465      tst_works_getaddrinfo="yes"
30466
30467else
30468
30469      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30470$as_echo "no" >&6; }
30471      tst_works_getaddrinfo="no"
30472
30473fi
30474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30475  conftest.$ac_objext conftest.beam conftest.$ac_ext
30476fi
30477
30478  fi
30479  #
30480  if test "$tst_compi_getaddrinfo" = "yes" &&
30481    test "$tst_works_getaddrinfo" != "no"; then
30482    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
30483$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
30484    if test "x$curl_disallow_getaddrinfo" != "xyes"; then
30485      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30486$as_echo "yes" >&6; }
30487      tst_allow_getaddrinfo="yes"
30488    else
30489      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30490$as_echo "no" >&6; }
30491      tst_allow_getaddrinfo="no"
30492    fi
30493  fi
30494  #
30495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
30496$as_echo_n "checking if getaddrinfo might be used... " >&6; }
30497  if test "$tst_links_getaddrinfo" = "yes" &&
30498     test "$tst_proto_getaddrinfo" = "yes" &&
30499     test "$tst_compi_getaddrinfo" = "yes" &&
30500     test "$tst_allow_getaddrinfo" = "yes" &&
30501     test "$tst_works_getaddrinfo" != "no"; then
30502    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30503$as_echo "yes" >&6; }
30504
30505cat >>confdefs.h <<_ACEOF
30506#define HAVE_GETADDRINFO 1
30507_ACEOF
30508
30509    ac_cv_func_getaddrinfo="yes"
30510  else
30511    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30512$as_echo "no" >&6; }
30513    ac_cv_func_getaddrinfo="no"
30514    ac_cv_func_getaddrinfo_threadsafe="no"
30515  fi
30516  #
30517  if test "$ac_cv_func_getaddrinfo" = "yes"; then
30518    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
30519$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
30520    case $host_os in
30521      aix[1234].* | aix5.[01].*)
30522                tst_tsafe_getaddrinfo="no"
30523        ;;
30524      aix*)
30525                tst_tsafe_getaddrinfo="yes"
30526        ;;
30527      darwin[12345].*)
30528                tst_tsafe_getaddrinfo="no"
30529        ;;
30530      darwin*)
30531                tst_tsafe_getaddrinfo="yes"
30532        ;;
30533      freebsd[1234].* | freebsd5.[1234]*)
30534                tst_tsafe_getaddrinfo="no"
30535        ;;
30536      freebsd*)
30537                tst_tsafe_getaddrinfo="yes"
30538        ;;
30539      hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
30540                tst_tsafe_getaddrinfo="no"
30541        ;;
30542      hpux*)
30543                tst_tsafe_getaddrinfo="yes"
30544        ;;
30545      netbsd[123].*)
30546                tst_tsafe_getaddrinfo="no"
30547        ;;
30548      netbsd*)
30549                tst_tsafe_getaddrinfo="yes"
30550        ;;
30551      *bsd*)
30552                tst_tsafe_getaddrinfo="no"
30553        ;;
30554      solaris2*)
30555                tst_tsafe_getaddrinfo="yes"
30556        ;;
30557    esac
30558    if test "$tst_tsafe_getaddrinfo" = "unknown" &&
30559       test "$ac_cv_native_windows" = "yes"; then
30560      tst_tsafe_getaddrinfo="yes"
30561    fi
30562    if test "$tst_tsafe_getaddrinfo" = "unknown"; then
30563
30564
30565  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30566/* end confdefs.h.  */
30567
30568
30569        $curl_includes_sys_socket
30570        $curl_includes_netdb
30571
30572int main (void)
30573{
30574#ifdef h_errno
30575  return 0;
30576#else
30577  force compilation error
30578#endif
30579}
30580
30581
30582_ACEOF
30583if ac_fn_c_try_compile "$LINENO"; then :
30584
30585    tst_symbol_defined="yes"
30586
30587else
30588
30589    tst_symbol_defined="no"
30590
30591fi
30592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30593  if test "$tst_symbol_defined" = "yes"; then
30594    curl_cv_have_def_h_errno=yes
30595
30596  else
30597    curl_cv_have_def_h_errno=no
30598
30599  fi
30600
30601      if test "$curl_cv_have_def_h_errno" = "yes"; then
30602        tst_h_errno_macro="yes"
30603      else
30604        tst_h_errno_macro="no"
30605      fi
30606      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30607/* end confdefs.h.  */
30608
30609
30610          $curl_includes_sys_socket
30611          $curl_includes_netdb
30612
30613int main (void)
30614{
30615
30616          h_errno = 2;
30617          if(0 != h_errno)
30618            return 1;
30619
30620 ;
30621 return 0;
30622}
30623
30624_ACEOF
30625if ac_fn_c_try_compile "$LINENO"; then :
30626
30627        tst_h_errno_modifiable_lvalue="yes"
30628
30629else
30630
30631        tst_h_errno_modifiable_lvalue="no"
30632
30633fi
30634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30635      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30636/* end confdefs.h.  */
30637
30638
30639
30640int main (void)
30641{
30642
30643#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
30644          return 0;
30645#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
30646          return 0;
30647#else
30648          force compilation error
30649#endif
30650
30651 ;
30652 return 0;
30653}
30654
30655_ACEOF
30656if ac_fn_c_try_compile "$LINENO"; then :
30657
30658        tst_h_errno_sbs_issue_7="yes"
30659
30660else
30661
30662        tst_h_errno_sbs_issue_7="no"
30663
30664fi
30665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30666      if test "$tst_h_errno_macro" = "no" &&
30667         test "$tst_h_errno_modifiable_lvalue" = "no" &&
30668         test "$tst_h_errno_sbs_issue_7" = "no"; then
30669        tst_tsafe_getaddrinfo="no"
30670      else
30671        tst_tsafe_getaddrinfo="yes"
30672      fi
30673    fi
30674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
30675$as_echo "$tst_tsafe_getaddrinfo" >&6; }
30676    if test "$tst_tsafe_getaddrinfo" = "yes"; then
30677
30678cat >>confdefs.h <<_ACEOF
30679#define HAVE_GETADDRINFO_THREADSAFE 1
30680_ACEOF
30681
30682      ac_cv_func_getaddrinfo_threadsafe="yes"
30683    else
30684      ac_cv_func_getaddrinfo_threadsafe="no"
30685    fi
30686  fi
30687
30688
30689      #
30690  tst_links_gai_strerror="unknown"
30691  tst_proto_gai_strerror="unknown"
30692  tst_compi_gai_strerror="unknown"
30693  tst_allow_gai_strerror="unknown"
30694  #
30695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
30696$as_echo_n "checking if gai_strerror can be linked... " >&6; }
30697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30698/* end confdefs.h.  */
30699
30700
30701      $curl_includes_winsock2
30702      $curl_includes_netdb
30703
30704int main (void)
30705{
30706
30707      if(0 != gai_strerror(0))
30708        return 1;
30709
30710 ;
30711 return 0;
30712}
30713
30714_ACEOF
30715if ac_fn_c_try_link "$LINENO"; then :
30716
30717    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30718$as_echo "yes" >&6; }
30719    tst_links_gai_strerror="yes"
30720
30721else
30722
30723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30724$as_echo "no" >&6; }
30725    tst_links_gai_strerror="no"
30726
30727fi
30728rm -f core conftest.err conftest.$ac_objext \
30729    conftest$ac_exeext conftest.$ac_ext
30730  #
30731  if test "$tst_links_gai_strerror" = "yes"; then
30732    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
30733$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
30734    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30735/* end confdefs.h.  */
30736
30737      $curl_includes_winsock2
30738      $curl_includes_netdb
30739
30740_ACEOF
30741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30742  $EGREP "gai_strerror" >/dev/null 2>&1; then :
30743
30744      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30745$as_echo "yes" >&6; }
30746      tst_proto_gai_strerror="yes"
30747
30748else
30749
30750      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30751$as_echo "no" >&6; }
30752      tst_proto_gai_strerror="no"
30753
30754fi
30755rm -f conftest*
30756
30757  fi
30758  #
30759  if test "$tst_proto_gai_strerror" = "yes"; then
30760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
30761$as_echo_n "checking if gai_strerror is compilable... " >&6; }
30762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30763/* end confdefs.h.  */
30764
30765
30766        $curl_includes_winsock2
30767        $curl_includes_netdb
30768
30769int main (void)
30770{
30771
30772        if(0 != gai_strerror(0))
30773          return 1;
30774
30775 ;
30776 return 0;
30777}
30778
30779_ACEOF
30780if ac_fn_c_try_compile "$LINENO"; then :
30781
30782      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30783$as_echo "yes" >&6; }
30784      tst_compi_gai_strerror="yes"
30785
30786else
30787
30788      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30789$as_echo "no" >&6; }
30790      tst_compi_gai_strerror="no"
30791
30792fi
30793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30794  fi
30795  #
30796  if test "$tst_compi_gai_strerror" = "yes"; then
30797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
30798$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
30799    if test "x$curl_disallow_gai_strerror" != "xyes"; then
30800      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30801$as_echo "yes" >&6; }
30802      tst_allow_gai_strerror="yes"
30803    else
30804      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30805$as_echo "no" >&6; }
30806      tst_allow_gai_strerror="no"
30807    fi
30808  fi
30809  #
30810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
30811$as_echo_n "checking if gai_strerror might be used... " >&6; }
30812  if test "$tst_links_gai_strerror" = "yes" &&
30813     test "$tst_proto_gai_strerror" = "yes" &&
30814     test "$tst_compi_gai_strerror" = "yes" &&
30815     test "$tst_allow_gai_strerror" = "yes"; then
30816    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30817$as_echo "yes" >&6; }
30818
30819cat >>confdefs.h <<_ACEOF
30820#define HAVE_GAI_STRERROR 1
30821_ACEOF
30822
30823    ac_cv_func_gai_strerror="yes"
30824  else
30825    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30826$as_echo "no" >&6; }
30827    ac_cv_func_gai_strerror="no"
30828  fi
30829
30830
30831      #
30832  tst_links_gethostbyaddr="unknown"
30833  tst_proto_gethostbyaddr="unknown"
30834  tst_compi_gethostbyaddr="unknown"
30835  tst_allow_gethostbyaddr="unknown"
30836  #
30837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
30838$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
30839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30840/* end confdefs.h.  */
30841
30842
30843      $curl_includes_winsock2
30844      $curl_includes_netdb
30845
30846int main (void)
30847{
30848
30849      if(0 != gethostbyaddr(0, 0, 0))
30850        return 1;
30851
30852 ;
30853 return 0;
30854}
30855
30856_ACEOF
30857if ac_fn_c_try_link "$LINENO"; then :
30858
30859    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30860$as_echo "yes" >&6; }
30861    tst_links_gethostbyaddr="yes"
30862
30863else
30864
30865    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30866$as_echo "no" >&6; }
30867    tst_links_gethostbyaddr="no"
30868
30869fi
30870rm -f core conftest.err conftest.$ac_objext \
30871    conftest$ac_exeext conftest.$ac_ext
30872  #
30873  if test "$tst_links_gethostbyaddr" = "yes"; then
30874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
30875$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
30876    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30877/* end confdefs.h.  */
30878
30879      $curl_includes_winsock2
30880      $curl_includes_netdb
30881
30882_ACEOF
30883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30884  $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
30885
30886      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30887$as_echo "yes" >&6; }
30888      tst_proto_gethostbyaddr="yes"
30889
30890else
30891
30892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30893$as_echo "no" >&6; }
30894      tst_proto_gethostbyaddr="no"
30895
30896fi
30897rm -f conftest*
30898
30899  fi
30900  #
30901  if test "$tst_proto_gethostbyaddr" = "yes"; then
30902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
30903$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
30904    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30905/* end confdefs.h.  */
30906
30907
30908        $curl_includes_winsock2
30909        $curl_includes_netdb
30910
30911int main (void)
30912{
30913
30914        if(0 != gethostbyaddr(0, 0, 0))
30915          return 1;
30916
30917 ;
30918 return 0;
30919}
30920
30921_ACEOF
30922if ac_fn_c_try_compile "$LINENO"; then :
30923
30924      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30925$as_echo "yes" >&6; }
30926      tst_compi_gethostbyaddr="yes"
30927
30928else
30929
30930      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30931$as_echo "no" >&6; }
30932      tst_compi_gethostbyaddr="no"
30933
30934fi
30935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30936  fi
30937  #
30938  if test "$tst_compi_gethostbyaddr" = "yes"; then
30939    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
30940$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
30941    if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
30942      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30943$as_echo "yes" >&6; }
30944      tst_allow_gethostbyaddr="yes"
30945    else
30946      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30947$as_echo "no" >&6; }
30948      tst_allow_gethostbyaddr="no"
30949    fi
30950  fi
30951  #
30952  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
30953$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
30954  if test "$tst_links_gethostbyaddr" = "yes" &&
30955     test "$tst_proto_gethostbyaddr" = "yes" &&
30956     test "$tst_compi_gethostbyaddr" = "yes" &&
30957     test "$tst_allow_gethostbyaddr" = "yes"; then
30958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30959$as_echo "yes" >&6; }
30960
30961cat >>confdefs.h <<_ACEOF
30962#define HAVE_GETHOSTBYADDR 1
30963_ACEOF
30964
30965    ac_cv_func_gethostbyaddr="yes"
30966  else
30967    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30968$as_echo "no" >&6; }
30969    ac_cv_func_gethostbyaddr="no"
30970  fi
30971
30972
30973    #
30974  tst_links_gethostbyaddr_r="unknown"
30975  tst_proto_gethostbyaddr_r="unknown"
30976  tst_compi_gethostbyaddr_r="unknown"
30977  tst_allow_gethostbyaddr_r="unknown"
30978  tst_nargs_gethostbyaddr_r="unknown"
30979  #
30980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
30981$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
30982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30983/* end confdefs.h.  */
30984
30985
30986#define gethostbyaddr_r innocuous_gethostbyaddr_r
30987#ifdef __STDC__
30988# include <limits.h>
30989#else
30990# include <assert.h>
30991#endif
30992#undef gethostbyaddr_r
30993#ifdef __cplusplus
30994extern "C"
30995#endif
30996char gethostbyaddr_r ();
30997#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
30998choke me
30999#endif
31000
31001int main (void)
31002{
31003return gethostbyaddr_r ();
31004 ;
31005 return 0;
31006}
31007
31008_ACEOF
31009if ac_fn_c_try_link "$LINENO"; then :
31010
31011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31012$as_echo "yes" >&6; }
31013    tst_links_gethostbyaddr_r="yes"
31014
31015else
31016
31017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31018$as_echo "no" >&6; }
31019    tst_links_gethostbyaddr_r="no"
31020
31021fi
31022rm -f core conftest.err conftest.$ac_objext \
31023    conftest$ac_exeext conftest.$ac_ext
31024  #
31025  if test "$tst_links_gethostbyaddr_r" = "yes"; then
31026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
31027$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
31028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31029/* end confdefs.h.  */
31030
31031      $curl_includes_netdb
31032
31033_ACEOF
31034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31035  $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
31036
31037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31038$as_echo "yes" >&6; }
31039      tst_proto_gethostbyaddr_r="yes"
31040
31041else
31042
31043      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31044$as_echo "no" >&6; }
31045      tst_proto_gethostbyaddr_r="no"
31046
31047fi
31048rm -f conftest*
31049
31050  fi
31051  #
31052  if test "$tst_proto_gethostbyaddr_r" = "yes"; then
31053    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31054      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
31055$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
31056      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31057/* end confdefs.h.  */
31058
31059
31060          $curl_includes_netdb
31061
31062int main (void)
31063{
31064
31065          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
31066            return 1;
31067
31068 ;
31069 return 0;
31070}
31071
31072_ACEOF
31073if ac_fn_c_try_compile "$LINENO"; then :
31074
31075        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31076$as_echo "yes" >&6; }
31077        tst_compi_gethostbyaddr_r="yes"
31078        tst_nargs_gethostbyaddr_r="5"
31079
31080else
31081
31082        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31083$as_echo "no" >&6; }
31084        tst_compi_gethostbyaddr_r="no"
31085
31086fi
31087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31088    fi
31089    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31090      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
31091$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
31092      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31093/* end confdefs.h.  */
31094
31095
31096          $curl_includes_netdb
31097
31098int main (void)
31099{
31100
31101          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
31102            return 1;
31103
31104 ;
31105 return 0;
31106}
31107
31108_ACEOF
31109if ac_fn_c_try_compile "$LINENO"; then :
31110
31111        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31112$as_echo "yes" >&6; }
31113        tst_compi_gethostbyaddr_r="yes"
31114        tst_nargs_gethostbyaddr_r="7"
31115
31116else
31117
31118        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31119$as_echo "no" >&6; }
31120        tst_compi_gethostbyaddr_r="no"
31121
31122fi
31123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31124    fi
31125    if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31126      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
31127$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
31128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31129/* end confdefs.h.  */
31130
31131
31132          $curl_includes_netdb
31133
31134int main (void)
31135{
31136
31137          if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
31138            return 1;
31139
31140 ;
31141 return 0;
31142}
31143
31144_ACEOF
31145if ac_fn_c_try_compile "$LINENO"; then :
31146
31147        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31148$as_echo "yes" >&6; }
31149        tst_compi_gethostbyaddr_r="yes"
31150        tst_nargs_gethostbyaddr_r="8"
31151
31152else
31153
31154        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31155$as_echo "no" >&6; }
31156        tst_compi_gethostbyaddr_r="no"
31157
31158fi
31159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31160    fi
31161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
31162$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
31163    if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31164      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31165$as_echo "yes" >&6; }
31166    else
31167      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31168$as_echo "no" >&6; }
31169    fi
31170  fi
31171  #
31172  if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31173    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
31174$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
31175    if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
31176      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31177$as_echo "yes" >&6; }
31178      tst_allow_gethostbyaddr_r="yes"
31179    else
31180      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181$as_echo "no" >&6; }
31182      tst_allow_gethostbyaddr_r="no"
31183    fi
31184  fi
31185  #
31186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
31187$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
31188  if test "$tst_links_gethostbyaddr_r" = "yes" &&
31189     test "$tst_proto_gethostbyaddr_r" = "yes" &&
31190     test "$tst_compi_gethostbyaddr_r" = "yes" &&
31191     test "$tst_allow_gethostbyaddr_r" = "yes"; then
31192    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31193$as_echo "yes" >&6; }
31194
31195cat >>confdefs.h <<_ACEOF
31196#define HAVE_GETHOSTBYADDR_R 1
31197_ACEOF
31198
31199            #
31200    if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
31201
31202$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
31203
31204    elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
31205
31206$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
31207
31208    elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
31209
31210$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
31211
31212    fi
31213    #
31214    ac_cv_func_gethostbyaddr_r="yes"
31215  else
31216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31217$as_echo "no" >&6; }
31218    ac_cv_func_gethostbyaddr_r="no"
31219  fi
31220
31221
31222      #
31223  tst_links_gethostbyname="unknown"
31224  tst_proto_gethostbyname="unknown"
31225  tst_compi_gethostbyname="unknown"
31226  tst_allow_gethostbyname="unknown"
31227  #
31228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
31229$as_echo_n "checking if gethostbyname can be linked... " >&6; }
31230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31231/* end confdefs.h.  */
31232
31233
31234      $curl_includes_winsock2
31235      $curl_includes_netdb
31236
31237int main (void)
31238{
31239
31240      if(0 != gethostbyname(0))
31241        return 1;
31242
31243 ;
31244 return 0;
31245}
31246
31247_ACEOF
31248if ac_fn_c_try_link "$LINENO"; then :
31249
31250    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31251$as_echo "yes" >&6; }
31252    tst_links_gethostbyname="yes"
31253
31254else
31255
31256    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31257$as_echo "no" >&6; }
31258    tst_links_gethostbyname="no"
31259
31260fi
31261rm -f core conftest.err conftest.$ac_objext \
31262    conftest$ac_exeext conftest.$ac_ext
31263  #
31264  if test "$tst_links_gethostbyname" = "yes"; then
31265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
31266$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
31267    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31268/* end confdefs.h.  */
31269
31270      $curl_includes_winsock2
31271      $curl_includes_netdb
31272
31273_ACEOF
31274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31275  $EGREP "gethostbyname" >/dev/null 2>&1; then :
31276
31277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31278$as_echo "yes" >&6; }
31279      tst_proto_gethostbyname="yes"
31280
31281else
31282
31283      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31284$as_echo "no" >&6; }
31285      tst_proto_gethostbyname="no"
31286
31287fi
31288rm -f conftest*
31289
31290  fi
31291  #
31292  if test "$tst_proto_gethostbyname" = "yes"; then
31293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
31294$as_echo_n "checking if gethostbyname is compilable... " >&6; }
31295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31296/* end confdefs.h.  */
31297
31298
31299        $curl_includes_winsock2
31300        $curl_includes_netdb
31301
31302int main (void)
31303{
31304
31305        if(0 != gethostbyname(0))
31306          return 1;
31307
31308 ;
31309 return 0;
31310}
31311
31312_ACEOF
31313if ac_fn_c_try_compile "$LINENO"; then :
31314
31315      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31316$as_echo "yes" >&6; }
31317      tst_compi_gethostbyname="yes"
31318
31319else
31320
31321      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31322$as_echo "no" >&6; }
31323      tst_compi_gethostbyname="no"
31324
31325fi
31326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31327  fi
31328  #
31329  if test "$tst_compi_gethostbyname" = "yes"; then
31330    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
31331$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
31332    if test "x$curl_disallow_gethostbyname" != "xyes"; then
31333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31334$as_echo "yes" >&6; }
31335      tst_allow_gethostbyname="yes"
31336    else
31337      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338$as_echo "no" >&6; }
31339      tst_allow_gethostbyname="no"
31340    fi
31341  fi
31342  #
31343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
31344$as_echo_n "checking if gethostbyname might be used... " >&6; }
31345  if test "$tst_links_gethostbyname" = "yes" &&
31346     test "$tst_proto_gethostbyname" = "yes" &&
31347     test "$tst_compi_gethostbyname" = "yes" &&
31348     test "$tst_allow_gethostbyname" = "yes"; then
31349    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31350$as_echo "yes" >&6; }
31351
31352cat >>confdefs.h <<_ACEOF
31353#define HAVE_GETHOSTBYNAME 1
31354_ACEOF
31355
31356    ac_cv_func_gethostbyname="yes"
31357  else
31358    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31359$as_echo "no" >&6; }
31360    ac_cv_func_gethostbyname="no"
31361  fi
31362
31363
31364    #
31365  tst_links_gethostbyname_r="unknown"
31366  tst_proto_gethostbyname_r="unknown"
31367  tst_compi_gethostbyname_r="unknown"
31368  tst_allow_gethostbyname_r="unknown"
31369  tst_nargs_gethostbyname_r="unknown"
31370  #
31371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
31372$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
31373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31374/* end confdefs.h.  */
31375
31376
31377#define gethostbyname_r innocuous_gethostbyname_r
31378#ifdef __STDC__
31379# include <limits.h>
31380#else
31381# include <assert.h>
31382#endif
31383#undef gethostbyname_r
31384#ifdef __cplusplus
31385extern "C"
31386#endif
31387char gethostbyname_r ();
31388#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31389choke me
31390#endif
31391
31392int main (void)
31393{
31394return gethostbyname_r ();
31395 ;
31396 return 0;
31397}
31398
31399_ACEOF
31400if ac_fn_c_try_link "$LINENO"; then :
31401
31402    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31403$as_echo "yes" >&6; }
31404    tst_links_gethostbyname_r="yes"
31405
31406else
31407
31408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31409$as_echo "no" >&6; }
31410    tst_links_gethostbyname_r="no"
31411
31412fi
31413rm -f core conftest.err conftest.$ac_objext \
31414    conftest$ac_exeext conftest.$ac_ext
31415  #
31416  if test "$tst_links_gethostbyname_r" = "yes"; then
31417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
31418$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
31419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31420/* end confdefs.h.  */
31421
31422      $curl_includes_netdb
31423
31424_ACEOF
31425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31426  $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
31427
31428      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31429$as_echo "yes" >&6; }
31430      tst_proto_gethostbyname_r="yes"
31431
31432else
31433
31434      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31435$as_echo "no" >&6; }
31436      tst_proto_gethostbyname_r="no"
31437
31438fi
31439rm -f conftest*
31440
31441  fi
31442  #
31443  if test "$tst_proto_gethostbyname_r" = "yes"; then
31444    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31445      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
31446$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
31447      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31448/* end confdefs.h.  */
31449
31450
31451          $curl_includes_netdb
31452
31453int main (void)
31454{
31455
31456          if(0 != gethostbyname_r(0, 0, 0))
31457            return 1;
31458
31459 ;
31460 return 0;
31461}
31462
31463_ACEOF
31464if ac_fn_c_try_compile "$LINENO"; then :
31465
31466        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31467$as_echo "yes" >&6; }
31468        tst_compi_gethostbyname_r="yes"
31469        tst_nargs_gethostbyname_r="3"
31470
31471else
31472
31473        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31474$as_echo "no" >&6; }
31475        tst_compi_gethostbyname_r="no"
31476
31477fi
31478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31479    fi
31480    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31481      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
31482$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
31483      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31484/* end confdefs.h.  */
31485
31486
31487          $curl_includes_netdb
31488
31489int main (void)
31490{
31491
31492          if(0 != gethostbyname_r(0, 0, 0, 0, 0))
31493            return 1;
31494
31495 ;
31496 return 0;
31497}
31498
31499_ACEOF
31500if ac_fn_c_try_compile "$LINENO"; then :
31501
31502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31503$as_echo "yes" >&6; }
31504        tst_compi_gethostbyname_r="yes"
31505        tst_nargs_gethostbyname_r="5"
31506
31507else
31508
31509        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31510$as_echo "no" >&6; }
31511        tst_compi_gethostbyname_r="no"
31512
31513fi
31514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31515    fi
31516    if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31517      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
31518$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
31519      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31520/* end confdefs.h.  */
31521
31522
31523          $curl_includes_netdb
31524
31525int main (void)
31526{
31527
31528          if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
31529            return 1;
31530
31531 ;
31532 return 0;
31533}
31534
31535_ACEOF
31536if ac_fn_c_try_compile "$LINENO"; then :
31537
31538        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31539$as_echo "yes" >&6; }
31540        tst_compi_gethostbyname_r="yes"
31541        tst_nargs_gethostbyname_r="6"
31542
31543else
31544
31545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31546$as_echo "no" >&6; }
31547        tst_compi_gethostbyname_r="no"
31548
31549fi
31550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31551    fi
31552    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
31553$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
31554    if test "$tst_compi_gethostbyname_r" = "yes"; then
31555      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31556$as_echo "yes" >&6; }
31557    else
31558      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31559$as_echo "no" >&6; }
31560    fi
31561  fi
31562  #
31563  if test "$tst_compi_gethostbyname_r" = "yes"; then
31564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
31565$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
31566    if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
31567      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31568$as_echo "yes" >&6; }
31569      tst_allow_gethostbyname_r="yes"
31570    else
31571      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31572$as_echo "no" >&6; }
31573      tst_allow_gethostbyname_r="no"
31574    fi
31575  fi
31576  #
31577  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
31578$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
31579  if test "$tst_links_gethostbyname_r" = "yes" &&
31580     test "$tst_proto_gethostbyname_r" = "yes" &&
31581     test "$tst_compi_gethostbyname_r" = "yes" &&
31582     test "$tst_allow_gethostbyname_r" = "yes"; then
31583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31584$as_echo "yes" >&6; }
31585
31586cat >>confdefs.h <<_ACEOF
31587#define HAVE_GETHOSTBYNAME_R 1
31588_ACEOF
31589
31590            #
31591    if test "$tst_nargs_gethostbyname_r" -eq "3"; then
31592
31593$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
31594
31595    elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
31596
31597$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
31598
31599    elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
31600
31601$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
31602
31603    fi
31604    #
31605    ac_cv_func_gethostbyname_r="yes"
31606  else
31607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31608$as_echo "no" >&6; }
31609    ac_cv_func_gethostbyname_r="no"
31610  fi
31611
31612
31613        #
31614  tst_links_gethostname="unknown"
31615  tst_proto_gethostname="unknown"
31616  tst_compi_gethostname="unknown"
31617  tst_allow_gethostname="unknown"
31618  #
31619  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
31620$as_echo_n "checking if gethostname can be linked... " >&6; }
31621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31622/* end confdefs.h.  */
31623
31624
31625      $curl_includes_winsock2
31626      $curl_includes_unistd
31627
31628int main (void)
31629{
31630
31631      if(0 != gethostname(0, 0))
31632        return 1;
31633
31634 ;
31635 return 0;
31636}
31637
31638_ACEOF
31639if ac_fn_c_try_link "$LINENO"; then :
31640
31641    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31642$as_echo "yes" >&6; }
31643    tst_links_gethostname="yes"
31644
31645else
31646
31647    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31648$as_echo "no" >&6; }
31649    tst_links_gethostname="no"
31650
31651fi
31652rm -f core conftest.err conftest.$ac_objext \
31653    conftest$ac_exeext conftest.$ac_ext
31654  #
31655  if test "$tst_links_gethostname" = "yes"; then
31656    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
31657$as_echo_n "checking if gethostname is prototyped... " >&6; }
31658    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31659/* end confdefs.h.  */
31660
31661      $curl_includes_winsock2
31662      $curl_includes_unistd
31663
31664_ACEOF
31665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31666  $EGREP "gethostname" >/dev/null 2>&1; then :
31667
31668      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31669$as_echo "yes" >&6; }
31670      tst_proto_gethostname="yes"
31671
31672else
31673
31674      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31675$as_echo "no" >&6; }
31676      tst_proto_gethostname="no"
31677
31678fi
31679rm -f conftest*
31680
31681  fi
31682  #
31683  if test "$tst_proto_gethostname" = "yes"; then
31684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
31685$as_echo_n "checking if gethostname is compilable... " >&6; }
31686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31687/* end confdefs.h.  */
31688
31689
31690        $curl_includes_winsock2
31691        $curl_includes_unistd
31692
31693int main (void)
31694{
31695
31696        if(0 != gethostname(0, 0))
31697          return 1;
31698
31699 ;
31700 return 0;
31701}
31702
31703_ACEOF
31704if ac_fn_c_try_compile "$LINENO"; then :
31705
31706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31707$as_echo "yes" >&6; }
31708      tst_compi_gethostname="yes"
31709
31710else
31711
31712      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31713$as_echo "no" >&6; }
31714      tst_compi_gethostname="no"
31715
31716fi
31717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31718  fi
31719  #
31720  if test "$tst_compi_gethostname" = "yes"; then
31721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
31722$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
31723    tst_gethostname_type_arg2="unknown"
31724    for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
31725      for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
31726        if test "$tst_gethostname_type_arg2" = "unknown"; then
31727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31728/* end confdefs.h.  */
31729
31730
31731              $curl_includes_winsock2
31732              $curl_includes_unistd
31733              $curl_preprocess_callconv
31734              extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
31735
31736int main (void)
31737{
31738
31739              if(0 != gethostname(0, 0))
31740                return 1;
31741
31742 ;
31743 return 0;
31744}
31745
31746_ACEOF
31747if ac_fn_c_try_compile "$LINENO"; then :
31748
31749            tst_gethostname_type_arg2="$tst_arg2"
31750
31751fi
31752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31753        fi
31754      done
31755    done
31756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
31757$as_echo "$tst_gethostname_type_arg2" >&6; }
31758    if test "$tst_gethostname_type_arg2" != "unknown"; then
31759
31760cat >>confdefs.h <<_ACEOF
31761#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
31762_ACEOF
31763
31764    fi
31765  fi
31766  #
31767  if test "$tst_compi_gethostname" = "yes"; then
31768    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
31769$as_echo_n "checking if gethostname usage allowed... " >&6; }
31770    if test "x$curl_disallow_gethostname" != "xyes"; then
31771      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31772$as_echo "yes" >&6; }
31773      tst_allow_gethostname="yes"
31774    else
31775      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31776$as_echo "no" >&6; }
31777      tst_allow_gethostname="no"
31778    fi
31779  fi
31780  #
31781  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
31782$as_echo_n "checking if gethostname might be used... " >&6; }
31783  if test "$tst_links_gethostname" = "yes" &&
31784     test "$tst_proto_gethostname" = "yes" &&
31785     test "$tst_compi_gethostname" = "yes" &&
31786     test "$tst_allow_gethostname" = "yes"; then
31787    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31788$as_echo "yes" >&6; }
31789
31790cat >>confdefs.h <<_ACEOF
31791#define HAVE_GETHOSTNAME 1
31792_ACEOF
31793
31794    ac_cv_func_gethostname="yes"
31795  else
31796    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31797$as_echo "no" >&6; }
31798    ac_cv_func_gethostname="no"
31799  fi
31800
31801
31802      #
31803  tst_links_getifaddrs="unknown"
31804  tst_proto_getifaddrs="unknown"
31805  tst_compi_getifaddrs="unknown"
31806  tst_works_getifaddrs="unknown"
31807  tst_allow_getifaddrs="unknown"
31808  #
31809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
31810$as_echo_n "checking if getifaddrs can be linked... " >&6; }
31811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31812/* end confdefs.h.  */
31813
31814
31815#define getifaddrs innocuous_getifaddrs
31816#ifdef __STDC__
31817# include <limits.h>
31818#else
31819# include <assert.h>
31820#endif
31821#undef getifaddrs
31822#ifdef __cplusplus
31823extern "C"
31824#endif
31825char getifaddrs ();
31826#if defined __stub_getifaddrs || defined __stub___getifaddrs
31827choke me
31828#endif
31829
31830int main (void)
31831{
31832return getifaddrs ();
31833 ;
31834 return 0;
31835}
31836
31837_ACEOF
31838if ac_fn_c_try_link "$LINENO"; then :
31839
31840    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31841$as_echo "yes" >&6; }
31842    tst_links_getifaddrs="yes"
31843
31844else
31845
31846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31847$as_echo "no" >&6; }
31848    tst_links_getifaddrs="no"
31849
31850fi
31851rm -f core conftest.err conftest.$ac_objext \
31852    conftest$ac_exeext conftest.$ac_ext
31853  #
31854  if test "$tst_links_getifaddrs" = "yes"; then
31855    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
31856$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
31857    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31858/* end confdefs.h.  */
31859
31860      $curl_includes_ifaddrs
31861
31862_ACEOF
31863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31864  $EGREP "getifaddrs" >/dev/null 2>&1; then :
31865
31866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31867$as_echo "yes" >&6; }
31868      tst_proto_getifaddrs="yes"
31869
31870else
31871
31872      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31873$as_echo "no" >&6; }
31874      tst_proto_getifaddrs="no"
31875
31876fi
31877rm -f conftest*
31878
31879  fi
31880  #
31881  if test "$tst_proto_getifaddrs" = "yes"; then
31882    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
31883$as_echo_n "checking if getifaddrs is compilable... " >&6; }
31884    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31885/* end confdefs.h.  */
31886
31887
31888        $curl_includes_ifaddrs
31889
31890int main (void)
31891{
31892
31893        if(0 != getifaddrs(0))
31894          return 1;
31895
31896 ;
31897 return 0;
31898}
31899
31900_ACEOF
31901if ac_fn_c_try_compile "$LINENO"; then :
31902
31903      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31904$as_echo "yes" >&6; }
31905      tst_compi_getifaddrs="yes"
31906
31907else
31908
31909      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31910$as_echo "no" >&6; }
31911      tst_compi_getifaddrs="no"
31912
31913fi
31914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31915  fi
31916  #
31917    if test "x$cross_compiling" != "xyes" &&
31918    test "$tst_compi_getifaddrs" = "yes"; then
31919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
31920$as_echo_n "checking if getifaddrs seems to work... " >&6; }
31921    if test "$cross_compiling" = yes; then :
31922  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31923$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31924as_fn_error $? "cannot run test program while cross compiling
31925See \`config.log' for more details" "$LINENO" 5; }
31926else
31927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31928/* end confdefs.h.  */
31929
31930
31931        $curl_includes_stdlib
31932        $curl_includes_ifaddrs
31933
31934int main (void)
31935{
31936
31937        struct ifaddrs *ifa = 0;
31938        int error;
31939
31940        error = getifaddrs(&ifa);
31941        if(error || !ifa)
31942          exit(1); /* fail */
31943        else
31944          exit(0);
31945
31946 ;
31947 return 0;
31948}
31949
31950_ACEOF
31951if ac_fn_c_try_run "$LINENO"; then :
31952
31953      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31954$as_echo "yes" >&6; }
31955      tst_works_getifaddrs="yes"
31956
31957else
31958
31959      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31960$as_echo "no" >&6; }
31961      tst_works_getifaddrs="no"
31962
31963fi
31964rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31965  conftest.$ac_objext conftest.beam conftest.$ac_ext
31966fi
31967
31968  fi
31969  #
31970  if test "$tst_compi_getifaddrs" = "yes" &&
31971    test "$tst_works_getifaddrs" != "no"; then
31972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
31973$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
31974    if test "x$curl_disallow_getifaddrs" != "xyes"; then
31975      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31976$as_echo "yes" >&6; }
31977      tst_allow_getifaddrs="yes"
31978    else
31979      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31980$as_echo "no" >&6; }
31981      tst_allow_getifaddrs="no"
31982    fi
31983  fi
31984  #
31985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
31986$as_echo_n "checking if getifaddrs might be used... " >&6; }
31987  if test "$tst_links_getifaddrs" = "yes" &&
31988     test "$tst_proto_getifaddrs" = "yes" &&
31989     test "$tst_compi_getifaddrs" = "yes" &&
31990     test "$tst_allow_getifaddrs" = "yes" &&
31991     test "$tst_works_getifaddrs" != "no"; then
31992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993$as_echo "yes" >&6; }
31994
31995cat >>confdefs.h <<_ACEOF
31996#define HAVE_GETIFADDRS 1
31997_ACEOF
31998
31999    ac_cv_func_getifaddrs="yes"
32000  else
32001    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32002$as_echo "no" >&6; }
32003    ac_cv_func_getifaddrs="no"
32004  fi
32005
32006
32007    #
32008  tst_links_getservbyport_r="unknown"
32009  tst_proto_getservbyport_r="unknown"
32010  tst_compi_getservbyport_r="unknown"
32011  tst_allow_getservbyport_r="unknown"
32012  tst_nargs_getservbyport_r="unknown"
32013  #
32014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
32015$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
32016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32017/* end confdefs.h.  */
32018
32019
32020#define getservbyport_r innocuous_getservbyport_r
32021#ifdef __STDC__
32022# include <limits.h>
32023#else
32024# include <assert.h>
32025#endif
32026#undef getservbyport_r
32027#ifdef __cplusplus
32028extern "C"
32029#endif
32030char getservbyport_r ();
32031#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
32032choke me
32033#endif
32034
32035int main (void)
32036{
32037return getservbyport_r ();
32038 ;
32039 return 0;
32040}
32041
32042_ACEOF
32043if ac_fn_c_try_link "$LINENO"; then :
32044
32045    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32046$as_echo "yes" >&6; }
32047    tst_links_getservbyport_r="yes"
32048
32049else
32050
32051    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32052$as_echo "no" >&6; }
32053    tst_links_getservbyport_r="no"
32054
32055fi
32056rm -f core conftest.err conftest.$ac_objext \
32057    conftest$ac_exeext conftest.$ac_ext
32058  #
32059  if test "$tst_links_getservbyport_r" = "yes"; then
32060    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
32061$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
32062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32063/* end confdefs.h.  */
32064
32065      $curl_includes_netdb
32066
32067_ACEOF
32068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32069  $EGREP "getservbyport_r" >/dev/null 2>&1; then :
32070
32071      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32072$as_echo "yes" >&6; }
32073      tst_proto_getservbyport_r="yes"
32074
32075else
32076
32077      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32078$as_echo "no" >&6; }
32079      tst_proto_getservbyport_r="no"
32080
32081fi
32082rm -f conftest*
32083
32084  fi
32085  #
32086  if test "$tst_proto_getservbyport_r" = "yes"; then
32087    if test "$tst_nargs_getservbyport_r" = "unknown"; then
32088      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
32089$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
32090      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32091/* end confdefs.h.  */
32092
32093
32094          $curl_includes_netdb
32095
32096int main (void)
32097{
32098
32099          if(0 != getservbyport_r(0, 0, 0, 0))
32100            return 1;
32101
32102 ;
32103 return 0;
32104}
32105
32106_ACEOF
32107if ac_fn_c_try_compile "$LINENO"; then :
32108
32109        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32110$as_echo "yes" >&6; }
32111        tst_compi_getservbyport_r="yes"
32112        tst_nargs_getservbyport_r="4"
32113
32114else
32115
32116        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117$as_echo "no" >&6; }
32118        tst_compi_getservbyport_r="no"
32119
32120fi
32121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32122    fi
32123    if test "$tst_nargs_getservbyport_r" = "unknown"; then
32124      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
32125$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
32126      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32127/* end confdefs.h.  */
32128
32129
32130          $curl_includes_netdb
32131
32132int main (void)
32133{
32134
32135          if(0 != getservbyport_r(0, 0, 0, 0, 0))
32136            return 1;
32137
32138 ;
32139 return 0;
32140}
32141
32142_ACEOF
32143if ac_fn_c_try_compile "$LINENO"; then :
32144
32145        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32146$as_echo "yes" >&6; }
32147        tst_compi_getservbyport_r="yes"
32148        tst_nargs_getservbyport_r="5"
32149
32150else
32151
32152        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32153$as_echo "no" >&6; }
32154        tst_compi_getservbyport_r="no"
32155
32156fi
32157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32158    fi
32159    if test "$tst_nargs_getservbyport_r" = "unknown"; then
32160      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
32161$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
32162      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32163/* end confdefs.h.  */
32164
32165
32166          $curl_includes_netdb
32167
32168int main (void)
32169{
32170
32171          if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
32172            return 1;
32173
32174 ;
32175 return 0;
32176}
32177
32178_ACEOF
32179if ac_fn_c_try_compile "$LINENO"; then :
32180
32181        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32182$as_echo "yes" >&6; }
32183        tst_compi_getservbyport_r="yes"
32184        tst_nargs_getservbyport_r="6"
32185
32186else
32187
32188        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32189$as_echo "no" >&6; }
32190        tst_compi_getservbyport_r="no"
32191
32192fi
32193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32194    fi
32195    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
32196$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
32197    if test "$tst_compi_getservbyport_r" = "yes"; then
32198      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32199$as_echo "yes" >&6; }
32200    else
32201      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32202$as_echo "no" >&6; }
32203    fi
32204  fi
32205  #
32206  if test "$tst_compi_getservbyport_r" = "yes"; then
32207    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
32208$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
32209    if test "x$curl_disallow_getservbyport_r" != "xyes"; then
32210      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32211$as_echo "yes" >&6; }
32212      tst_allow_getservbyport_r="yes"
32213    else
32214      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32215$as_echo "no" >&6; }
32216      tst_allow_getservbyport_r="no"
32217    fi
32218  fi
32219  #
32220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
32221$as_echo_n "checking if getservbyport_r might be used... " >&6; }
32222  if test "$tst_links_getservbyport_r" = "yes" &&
32223     test "$tst_proto_getservbyport_r" = "yes" &&
32224     test "$tst_compi_getservbyport_r" = "yes" &&
32225     test "$tst_allow_getservbyport_r" = "yes"; then
32226    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32227$as_echo "yes" >&6; }
32228
32229cat >>confdefs.h <<_ACEOF
32230#define HAVE_GETSERVBYPORT_R 1
32231_ACEOF
32232
32233
32234cat >>confdefs.h <<_ACEOF
32235#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
32236_ACEOF
32237
32238    if test "$tst_nargs_getservbyport_r" -eq "4"; then
32239
32240$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
32241
32242    else
32243
32244$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
32245
32246    fi
32247    ac_cv_func_getservbyport_r="yes"
32248  else
32249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32250$as_echo "no" >&6; }
32251    ac_cv_func_getservbyport_r="no"
32252  fi
32253
32254
32255curl_includes_time="\
32256/* includes start */
32257#ifdef HAVE_SYS_TYPES_H
32258#  include <sys/types.h>
32259#endif
32260#ifdef HAVE_SYS_TIME_H
32261#  include <sys/time.h>
32262#  ifdef TIME_WITH_SYS_TIME
32263#    include <time.h>
32264#  endif
32265#else
32266#  ifdef HAVE_TIME_H
32267#    include <time.h>
32268#  endif
32269#endif
32270/* includes end */"
32271  for ac_header in sys/types.h sys/time.h time.h
32272do :
32273  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32274ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
32275"
32276if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32277  cat >>confdefs.h <<_ACEOF
32278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32279_ACEOF
32280
32281fi
32282
32283done
32284
32285
32286
32287      #
32288  tst_links_gmtime_r="unknown"
32289  tst_proto_gmtime_r="unknown"
32290  tst_compi_gmtime_r="unknown"
32291  tst_works_gmtime_r="unknown"
32292  tst_allow_gmtime_r="unknown"
32293  #
32294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
32295$as_echo_n "checking if gmtime_r can be linked... " >&6; }
32296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32297/* end confdefs.h.  */
32298
32299
32300#define gmtime_r innocuous_gmtime_r
32301#ifdef __STDC__
32302# include <limits.h>
32303#else
32304# include <assert.h>
32305#endif
32306#undef gmtime_r
32307#ifdef __cplusplus
32308extern "C"
32309#endif
32310char gmtime_r ();
32311#if defined __stub_gmtime_r || defined __stub___gmtime_r
32312choke me
32313#endif
32314
32315int main (void)
32316{
32317return gmtime_r ();
32318 ;
32319 return 0;
32320}
32321
32322_ACEOF
32323if ac_fn_c_try_link "$LINENO"; then :
32324
32325    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32326$as_echo "yes" >&6; }
32327    tst_links_gmtime_r="yes"
32328
32329else
32330
32331    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32332$as_echo "no" >&6; }
32333    tst_links_gmtime_r="no"
32334
32335fi
32336rm -f core conftest.err conftest.$ac_objext \
32337    conftest$ac_exeext conftest.$ac_ext
32338  #
32339  if test "$tst_links_gmtime_r" = "yes"; then
32340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
32341$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
32342    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32343/* end confdefs.h.  */
32344
32345      $curl_includes_time
32346
32347_ACEOF
32348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32349  $EGREP "gmtime_r" >/dev/null 2>&1; then :
32350
32351      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32352$as_echo "yes" >&6; }
32353      tst_proto_gmtime_r="yes"
32354
32355else
32356
32357      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32358$as_echo "no" >&6; }
32359      tst_proto_gmtime_r="no"
32360
32361fi
32362rm -f conftest*
32363
32364  fi
32365  #
32366  if test "$tst_proto_gmtime_r" = "yes"; then
32367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
32368$as_echo_n "checking if gmtime_r is compilable... " >&6; }
32369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32370/* end confdefs.h.  */
32371
32372
32373        $curl_includes_time
32374
32375int main (void)
32376{
32377
32378        if(0 != gmtime_r(0, 0))
32379          return 1;
32380
32381 ;
32382 return 0;
32383}
32384
32385_ACEOF
32386if ac_fn_c_try_compile "$LINENO"; then :
32387
32388      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32389$as_echo "yes" >&6; }
32390      tst_compi_gmtime_r="yes"
32391
32392else
32393
32394      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32395$as_echo "no" >&6; }
32396      tst_compi_gmtime_r="no"
32397
32398fi
32399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32400  fi
32401  #
32402    if test "x$cross_compiling" != "xyes" &&
32403    test "$tst_compi_gmtime_r" = "yes"; then
32404    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
32405$as_echo_n "checking if gmtime_r seems to work... " >&6; }
32406    if test "$cross_compiling" = yes; then :
32407  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32409as_fn_error $? "cannot run test program while cross compiling
32410See \`config.log' for more details" "$LINENO" 5; }
32411else
32412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32413/* end confdefs.h.  */
32414
32415
32416        $curl_includes_stdlib
32417        $curl_includes_time
32418
32419int main (void)
32420{
32421
32422        time_t local = 1170352587;
32423        struct tm *gmt = 0;
32424        struct tm result;
32425        gmt = gmtime_r(&local, &result);
32426        if(gmt)
32427          exit(0);
32428        else
32429          exit(1);
32430
32431 ;
32432 return 0;
32433}
32434
32435_ACEOF
32436if ac_fn_c_try_run "$LINENO"; then :
32437
32438      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32439$as_echo "yes" >&6; }
32440      tst_works_gmtime_r="yes"
32441
32442else
32443
32444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32445$as_echo "no" >&6; }
32446      tst_works_gmtime_r="no"
32447
32448fi
32449rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32450  conftest.$ac_objext conftest.beam conftest.$ac_ext
32451fi
32452
32453  fi
32454  #
32455  if test "$tst_compi_gmtime_r" = "yes" &&
32456    test "$tst_works_gmtime_r" != "no"; then
32457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
32458$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
32459    if test "x$curl_disallow_gmtime_r" != "xyes"; then
32460      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32461$as_echo "yes" >&6; }
32462      tst_allow_gmtime_r="yes"
32463    else
32464      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32465$as_echo "no" >&6; }
32466      tst_allow_gmtime_r="no"
32467    fi
32468  fi
32469  #
32470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
32471$as_echo_n "checking if gmtime_r might be used... " >&6; }
32472  if test "$tst_links_gmtime_r" = "yes" &&
32473     test "$tst_proto_gmtime_r" = "yes" &&
32474     test "$tst_compi_gmtime_r" = "yes" &&
32475     test "$tst_allow_gmtime_r" = "yes" &&
32476     test "$tst_works_gmtime_r" != "no"; then
32477    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32478$as_echo "yes" >&6; }
32479
32480cat >>confdefs.h <<_ACEOF
32481#define HAVE_GMTIME_R 1
32482_ACEOF
32483
32484    ac_cv_func_gmtime_r="yes"
32485  else
32486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32487$as_echo "no" >&6; }
32488    ac_cv_func_gmtime_r="no"
32489  fi
32490
32491
32492curl_includes_arpa_inet="\
32493/* includes start */
32494#ifdef HAVE_SYS_TYPES_H
32495#  include <sys/types.h>
32496#endif
32497#ifdef HAVE_SYS_SOCKET_H
32498#  include <sys/socket.h>
32499#endif
32500#ifdef HAVE_NETINET_IN_H
32501#  include <netinet/in.h>
32502#endif
32503#ifdef HAVE_ARPA_INET_H
32504#  include <arpa/inet.h>
32505#endif
32506/* includes end */"
32507  for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
32508do :
32509  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32510ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
32511"
32512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32513  cat >>confdefs.h <<_ACEOF
32514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32515_ACEOF
32516
32517fi
32518
32519done
32520
32521
32522
32523    #
32524  tst_links_inet_ntoa_r="unknown"
32525  tst_proto_inet_ntoa_r="unknown"
32526  tst_compi_inet_ntoa_r="unknown"
32527  tst_allow_inet_ntoa_r="unknown"
32528  tst_nargs_inet_ntoa_r="unknown"
32529  #
32530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
32531$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
32532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32533/* end confdefs.h.  */
32534
32535
32536#define inet_ntoa_r innocuous_inet_ntoa_r
32537#ifdef __STDC__
32538# include <limits.h>
32539#else
32540# include <assert.h>
32541#endif
32542#undef inet_ntoa_r
32543#ifdef __cplusplus
32544extern "C"
32545#endif
32546char inet_ntoa_r ();
32547#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
32548choke me
32549#endif
32550
32551int main (void)
32552{
32553return inet_ntoa_r ();
32554 ;
32555 return 0;
32556}
32557
32558_ACEOF
32559if ac_fn_c_try_link "$LINENO"; then :
32560
32561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32562$as_echo "yes" >&6; }
32563    tst_links_inet_ntoa_r="yes"
32564
32565else
32566
32567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32568$as_echo "no" >&6; }
32569    tst_links_inet_ntoa_r="no"
32570
32571fi
32572rm -f core conftest.err conftest.$ac_objext \
32573    conftest$ac_exeext conftest.$ac_ext
32574  #
32575  if test "$tst_links_inet_ntoa_r" = "yes"; then
32576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
32577$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
32578    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32579/* end confdefs.h.  */
32580
32581      $curl_includes_arpa_inet
32582
32583_ACEOF
32584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32585  $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
32586
32587      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32588$as_echo "yes" >&6; }
32589      tst_proto_inet_ntoa_r="yes"
32590
32591else
32592
32593      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32594$as_echo "no" >&6; }
32595      tst_proto_inet_ntoa_r="no"
32596
32597fi
32598rm -f conftest*
32599
32600  fi
32601  #
32602  if test "$tst_proto_inet_ntoa_r" = "yes"; then
32603    if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32604      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
32605$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
32606      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32607/* end confdefs.h.  */
32608
32609
32610          $curl_includes_arpa_inet
32611
32612int main (void)
32613{
32614
32615          struct in_addr addr;
32616          if(0 != inet_ntoa_r(addr, 0))
32617            return 1;
32618
32619 ;
32620 return 0;
32621}
32622
32623_ACEOF
32624if ac_fn_c_try_compile "$LINENO"; then :
32625
32626        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32627$as_echo "yes" >&6; }
32628        tst_compi_inet_ntoa_r="yes"
32629        tst_nargs_inet_ntoa_r="2"
32630
32631else
32632
32633        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32634$as_echo "no" >&6; }
32635        tst_compi_inet_ntoa_r="no"
32636
32637fi
32638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32639    fi
32640    if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32641      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
32642$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
32643      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32644/* end confdefs.h.  */
32645
32646
32647          $curl_includes_arpa_inet
32648
32649int main (void)
32650{
32651
32652          struct in_addr addr;
32653          if(0 != inet_ntoa_r(addr, 0, 0))
32654            return 1;
32655
32656 ;
32657 return 0;
32658}
32659
32660_ACEOF
32661if ac_fn_c_try_compile "$LINENO"; then :
32662
32663        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32664$as_echo "yes" >&6; }
32665        tst_compi_inet_ntoa_r="yes"
32666        tst_nargs_inet_ntoa_r="3"
32667
32668else
32669
32670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32671$as_echo "no" >&6; }
32672        tst_compi_inet_ntoa_r="no"
32673
32674fi
32675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32676    fi
32677    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
32678$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
32679    if test "$tst_compi_inet_ntoa_r" = "yes"; then
32680      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32681$as_echo "yes" >&6; }
32682    else
32683      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32684$as_echo "no" >&6; }
32685    fi
32686  fi
32687  #
32688  if test "$tst_compi_inet_ntoa_r" = "yes"; then
32689    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
32690$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
32691    if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
32692      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32693$as_echo "yes" >&6; }
32694      tst_allow_inet_ntoa_r="yes"
32695    else
32696      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32697$as_echo "no" >&6; }
32698      tst_allow_inet_ntoa_r="no"
32699    fi
32700  fi
32701  #
32702  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
32703$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
32704  if test "$tst_links_inet_ntoa_r" = "yes" &&
32705     test "$tst_proto_inet_ntoa_r" = "yes" &&
32706     test "$tst_compi_inet_ntoa_r" = "yes" &&
32707     test "$tst_allow_inet_ntoa_r" = "yes"; then
32708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32709$as_echo "yes" >&6; }
32710
32711cat >>confdefs.h <<_ACEOF
32712#define HAVE_INET_NTOA_R 1
32713_ACEOF
32714
32715            #
32716    if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
32717
32718$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
32719
32720    elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
32721
32722$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
32723
32724    fi
32725    #
32726    ac_cv_func_inet_ntoa_r="yes"
32727  else
32728    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32729$as_echo "no" >&6; }
32730    ac_cv_func_inet_ntoa_r="no"
32731  fi
32732
32733
32734        #
32735  tst_links_inet_ntop="unknown"
32736  tst_proto_inet_ntop="unknown"
32737  tst_compi_inet_ntop="unknown"
32738  tst_works_inet_ntop="unknown"
32739  tst_allow_inet_ntop="unknown"
32740  #
32741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
32742$as_echo_n "checking if inet_ntop can be linked... " >&6; }
32743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32744/* end confdefs.h.  */
32745
32746
32747#define inet_ntop innocuous_inet_ntop
32748#ifdef __STDC__
32749# include <limits.h>
32750#else
32751# include <assert.h>
32752#endif
32753#undef inet_ntop
32754#ifdef __cplusplus
32755extern "C"
32756#endif
32757char inet_ntop ();
32758#if defined __stub_inet_ntop || defined __stub___inet_ntop
32759choke me
32760#endif
32761
32762int main (void)
32763{
32764return inet_ntop ();
32765 ;
32766 return 0;
32767}
32768
32769_ACEOF
32770if ac_fn_c_try_link "$LINENO"; then :
32771
32772    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32773$as_echo "yes" >&6; }
32774    tst_links_inet_ntop="yes"
32775
32776else
32777
32778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32779$as_echo "no" >&6; }
32780    tst_links_inet_ntop="no"
32781
32782fi
32783rm -f core conftest.err conftest.$ac_objext \
32784    conftest$ac_exeext conftest.$ac_ext
32785  #
32786  if test "$tst_links_inet_ntop" = "yes"; then
32787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
32788$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
32789    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32790/* end confdefs.h.  */
32791
32792      $curl_includes_arpa_inet
32793
32794_ACEOF
32795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32796  $EGREP "inet_ntop" >/dev/null 2>&1; then :
32797
32798      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32799$as_echo "yes" >&6; }
32800      tst_proto_inet_ntop="yes"
32801
32802else
32803
32804      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32805$as_echo "no" >&6; }
32806      tst_proto_inet_ntop="no"
32807
32808fi
32809rm -f conftest*
32810
32811  fi
32812  #
32813  if test "$tst_proto_inet_ntop" = "yes"; then
32814    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
32815$as_echo_n "checking if inet_ntop is compilable... " >&6; }
32816    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32817/* end confdefs.h.  */
32818
32819
32820        $curl_includes_arpa_inet
32821
32822int main (void)
32823{
32824
32825        if(0 != inet_ntop(0, 0, 0, 0))
32826          return 1;
32827
32828 ;
32829 return 0;
32830}
32831
32832_ACEOF
32833if ac_fn_c_try_compile "$LINENO"; then :
32834
32835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32836$as_echo "yes" >&6; }
32837      tst_compi_inet_ntop="yes"
32838
32839else
32840
32841      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32842$as_echo "no" >&6; }
32843      tst_compi_inet_ntop="no"
32844
32845fi
32846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32847  fi
32848  #
32849    if test "x$cross_compiling" != "xyes" &&
32850    test "$tst_compi_inet_ntop" = "yes"; then
32851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
32852$as_echo_n "checking if inet_ntop seems to work... " >&6; }
32853    if test "$cross_compiling" = yes; then :
32854  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32856as_fn_error $? "cannot run test program while cross compiling
32857See \`config.log' for more details" "$LINENO" 5; }
32858else
32859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32860/* end confdefs.h.  */
32861
32862
32863        $curl_includes_stdlib
32864        $curl_includes_arpa_inet
32865        $curl_includes_string
32866
32867int main (void)
32868{
32869
32870        char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
32871        char ipv4res[sizeof "255.255.255.255"];
32872        unsigned char ipv6a[26];
32873        unsigned char ipv4a[5];
32874        char *ipv6ptr = 0;
32875        char *ipv4ptr = 0;
32876        /* - */
32877        ipv4res[0] = '\0';
32878        ipv4a[0] = 0xc0;
32879        ipv4a[1] = 0xa8;
32880        ipv4a[2] = 0x64;
32881        ipv4a[3] = 0x01;
32882        ipv4a[4] = 0x01;
32883        /* - */
32884        ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
32885        if(!ipv4ptr)
32886          exit(1); /* fail */
32887        if(ipv4ptr != ipv4res)
32888          exit(1); /* fail */
32889        if(!ipv4ptr[0])
32890          exit(1); /* fail */
32891        if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
32892          exit(1); /* fail */
32893        /* - */
32894        ipv6res[0] = '\0';
32895        memset(ipv6a, 0, sizeof(ipv6a));
32896        ipv6a[0] = 0xfe;
32897        ipv6a[1] = 0x80;
32898        ipv6a[8] = 0x02;
32899        ipv6a[9] = 0x14;
32900        ipv6a[10] = 0x4f;
32901        ipv6a[11] = 0xff;
32902        ipv6a[12] = 0xfe;
32903        ipv6a[13] = 0x0b;
32904        ipv6a[14] = 0x76;
32905        ipv6a[15] = 0xc8;
32906        ipv6a[25] = 0x01;
32907        /* - */
32908        ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
32909        if(!ipv6ptr)
32910          exit(1); /* fail */
32911        if(ipv6ptr != ipv6res)
32912          exit(1); /* fail */
32913        if(!ipv6ptr[0])
32914          exit(1); /* fail */
32915        if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
32916          exit(1); /* fail */
32917        /* - */
32918        exit(0);
32919
32920 ;
32921 return 0;
32922}
32923
32924_ACEOF
32925if ac_fn_c_try_run "$LINENO"; then :
32926
32927      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32928$as_echo "yes" >&6; }
32929      tst_works_inet_ntop="yes"
32930
32931else
32932
32933      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32934$as_echo "no" >&6; }
32935      tst_works_inet_ntop="no"
32936
32937fi
32938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32939  conftest.$ac_objext conftest.beam conftest.$ac_ext
32940fi
32941
32942  fi
32943  #
32944  if test "$tst_compi_inet_ntop" = "yes" &&
32945    test "$tst_works_inet_ntop" != "no"; then
32946    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
32947$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
32948    if test "x$curl_disallow_inet_ntop" != "xyes"; then
32949      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32950$as_echo "yes" >&6; }
32951      tst_allow_inet_ntop="yes"
32952    else
32953      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32954$as_echo "no" >&6; }
32955      tst_allow_inet_ntop="no"
32956    fi
32957  fi
32958  #
32959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
32960$as_echo_n "checking if inet_ntop might be used... " >&6; }
32961  if test "$tst_links_inet_ntop" = "yes" &&
32962     test "$tst_proto_inet_ntop" = "yes" &&
32963     test "$tst_compi_inet_ntop" = "yes" &&
32964     test "$tst_allow_inet_ntop" = "yes" &&
32965     test "$tst_works_inet_ntop" != "no"; then
32966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32967$as_echo "yes" >&6; }
32968
32969cat >>confdefs.h <<_ACEOF
32970#define HAVE_INET_NTOP 1
32971_ACEOF
32972
32973    ac_cv_func_inet_ntop="yes"
32974  else
32975    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32976$as_echo "no" >&6; }
32977    ac_cv_func_inet_ntop="no"
32978  fi
32979
32980
32981        #
32982  tst_links_inet_pton="unknown"
32983  tst_proto_inet_pton="unknown"
32984  tst_compi_inet_pton="unknown"
32985  tst_works_inet_pton="unknown"
32986  tst_allow_inet_pton="unknown"
32987  #
32988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
32989$as_echo_n "checking if inet_pton can be linked... " >&6; }
32990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32991/* end confdefs.h.  */
32992
32993
32994#define inet_pton innocuous_inet_pton
32995#ifdef __STDC__
32996# include <limits.h>
32997#else
32998# include <assert.h>
32999#endif
33000#undef inet_pton
33001#ifdef __cplusplus
33002extern "C"
33003#endif
33004char inet_pton ();
33005#if defined __stub_inet_pton || defined __stub___inet_pton
33006choke me
33007#endif
33008
33009int main (void)
33010{
33011return inet_pton ();
33012 ;
33013 return 0;
33014}
33015
33016_ACEOF
33017if ac_fn_c_try_link "$LINENO"; then :
33018
33019    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33020$as_echo "yes" >&6; }
33021    tst_links_inet_pton="yes"
33022
33023else
33024
33025    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33026$as_echo "no" >&6; }
33027    tst_links_inet_pton="no"
33028
33029fi
33030rm -f core conftest.err conftest.$ac_objext \
33031    conftest$ac_exeext conftest.$ac_ext
33032  #
33033  if test "$tst_links_inet_pton" = "yes"; then
33034    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
33035$as_echo_n "checking if inet_pton is prototyped... " >&6; }
33036    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33037/* end confdefs.h.  */
33038
33039      $curl_includes_arpa_inet
33040
33041_ACEOF
33042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33043  $EGREP "inet_pton" >/dev/null 2>&1; then :
33044
33045      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33046$as_echo "yes" >&6; }
33047      tst_proto_inet_pton="yes"
33048
33049else
33050
33051      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33052$as_echo "no" >&6; }
33053      tst_proto_inet_pton="no"
33054
33055fi
33056rm -f conftest*
33057
33058  fi
33059  #
33060  if test "$tst_proto_inet_pton" = "yes"; then
33061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
33062$as_echo_n "checking if inet_pton is compilable... " >&6; }
33063    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33064/* end confdefs.h.  */
33065
33066
33067        $curl_includes_arpa_inet
33068
33069int main (void)
33070{
33071
33072        if(0 != inet_pton(0, 0, 0))
33073          return 1;
33074
33075 ;
33076 return 0;
33077}
33078
33079_ACEOF
33080if ac_fn_c_try_compile "$LINENO"; then :
33081
33082      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33083$as_echo "yes" >&6; }
33084      tst_compi_inet_pton="yes"
33085
33086else
33087
33088      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33089$as_echo "no" >&6; }
33090      tst_compi_inet_pton="no"
33091
33092fi
33093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094  fi
33095  #
33096    if test "x$cross_compiling" != "xyes" &&
33097    test "$tst_compi_inet_pton" = "yes"; then
33098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
33099$as_echo_n "checking if inet_pton seems to work... " >&6; }
33100    if test "$cross_compiling" = yes; then :
33101  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33103as_fn_error $? "cannot run test program while cross compiling
33104See \`config.log' for more details" "$LINENO" 5; }
33105else
33106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33107/* end confdefs.h.  */
33108
33109
33110        $curl_includes_stdlib
33111        $curl_includes_arpa_inet
33112        $curl_includes_string
33113
33114int main (void)
33115{
33116
33117        unsigned char ipv6a[16+1];
33118        unsigned char ipv4a[4+1];
33119        const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
33120        const char *ipv4src = "192.168.100.1";
33121        /* - */
33122        memset(ipv4a, 1, sizeof(ipv4a));
33123        if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
33124          exit(1); /* fail */
33125        /* - */
33126        if( (ipv4a[0] != 0xc0) ||
33127            (ipv4a[1] != 0xa8) ||
33128            (ipv4a[2] != 0x64) ||
33129            (ipv4a[3] != 0x01) ||
33130            (ipv4a[4] != 0x01) )
33131          exit(1); /* fail */
33132        /* - */
33133        memset(ipv6a, 1, sizeof(ipv6a));
33134        if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
33135          exit(1); /* fail */
33136        /* - */
33137        if( (ipv6a[0]  != 0xfe) ||
33138            (ipv6a[1]  != 0x80) ||
33139            (ipv6a[8]  != 0x02) ||
33140            (ipv6a[9]  != 0x14) ||
33141            (ipv6a[10] != 0x4f) ||
33142            (ipv6a[11] != 0xff) ||
33143            (ipv6a[12] != 0xfe) ||
33144            (ipv6a[13] != 0x0b) ||
33145            (ipv6a[14] != 0x76) ||
33146            (ipv6a[15] != 0xc8) ||
33147            (ipv6a[16] != 0x01) )
33148          exit(1); /* fail */
33149        /* - */
33150        if( (ipv6a[2]  != 0x0) ||
33151            (ipv6a[3]  != 0x0) ||
33152            (ipv6a[4]  != 0x0) ||
33153            (ipv6a[5]  != 0x0) ||
33154            (ipv6a[6]  != 0x0) ||
33155            (ipv6a[7]  != 0x0) )
33156          exit(1); /* fail */
33157        /* - */
33158        exit(0);
33159
33160 ;
33161 return 0;
33162}
33163
33164_ACEOF
33165if ac_fn_c_try_run "$LINENO"; then :
33166
33167      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33168$as_echo "yes" >&6; }
33169      tst_works_inet_pton="yes"
33170
33171else
33172
33173      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33174$as_echo "no" >&6; }
33175      tst_works_inet_pton="no"
33176
33177fi
33178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33179  conftest.$ac_objext conftest.beam conftest.$ac_ext
33180fi
33181
33182  fi
33183  #
33184  if test "$tst_compi_inet_pton" = "yes" &&
33185    test "$tst_works_inet_pton" != "no"; then
33186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
33187$as_echo_n "checking if inet_pton usage allowed... " >&6; }
33188    if test "x$curl_disallow_inet_pton" != "xyes"; then
33189      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33190$as_echo "yes" >&6; }
33191      tst_allow_inet_pton="yes"
33192    else
33193      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33194$as_echo "no" >&6; }
33195      tst_allow_inet_pton="no"
33196    fi
33197  fi
33198  #
33199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
33200$as_echo_n "checking if inet_pton might be used... " >&6; }
33201  if test "$tst_links_inet_pton" = "yes" &&
33202     test "$tst_proto_inet_pton" = "yes" &&
33203     test "$tst_compi_inet_pton" = "yes" &&
33204     test "$tst_allow_inet_pton" = "yes" &&
33205     test "$tst_works_inet_pton" != "no"; then
33206    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33207$as_echo "yes" >&6; }
33208
33209cat >>confdefs.h <<_ACEOF
33210#define HAVE_INET_PTON 1
33211_ACEOF
33212
33213    ac_cv_func_inet_pton="yes"
33214  else
33215    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33216$as_echo "no" >&6; }
33217    ac_cv_func_inet_pton="no"
33218  fi
33219
33220
33221curl_includes_stropts="\
33222/* includes start */
33223#ifdef HAVE_SYS_TYPES_H
33224#  include <sys/types.h>
33225#endif
33226#ifdef HAVE_UNISTD_H
33227#  include <unistd.h>
33228#endif
33229#ifdef HAVE_SYS_SOCKET_H
33230#  include <sys/socket.h>
33231#endif
33232#ifdef HAVE_SYS_IOCTL_H
33233#  include <sys/ioctl.h>
33234#endif
33235#ifdef HAVE_STROPTS_H
33236#  include <stropts.h>
33237#endif
33238/* includes end */"
33239  for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
33240do :
33241  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33242ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
33243"
33244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33245  cat >>confdefs.h <<_ACEOF
33246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33247_ACEOF
33248
33249fi
33250
33251done
33252
33253
33254
33255    #
33256  tst_links_ioctl="unknown"
33257  tst_proto_ioctl="unknown"
33258  tst_compi_ioctl="unknown"
33259  tst_allow_ioctl="unknown"
33260  #
33261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
33262$as_echo_n "checking if ioctl can be linked... " >&6; }
33263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33264/* end confdefs.h.  */
33265
33266
33267#define ioctl innocuous_ioctl
33268#ifdef __STDC__
33269# include <limits.h>
33270#else
33271# include <assert.h>
33272#endif
33273#undef ioctl
33274#ifdef __cplusplus
33275extern "C"
33276#endif
33277char ioctl ();
33278#if defined __stub_ioctl || defined __stub___ioctl
33279choke me
33280#endif
33281
33282int main (void)
33283{
33284return ioctl ();
33285 ;
33286 return 0;
33287}
33288
33289_ACEOF
33290if ac_fn_c_try_link "$LINENO"; then :
33291
33292    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33293$as_echo "yes" >&6; }
33294    tst_links_ioctl="yes"
33295
33296else
33297
33298    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33299$as_echo "no" >&6; }
33300    tst_links_ioctl="no"
33301
33302fi
33303rm -f core conftest.err conftest.$ac_objext \
33304    conftest$ac_exeext conftest.$ac_ext
33305  #
33306  if test "$tst_links_ioctl" = "yes"; then
33307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
33308$as_echo_n "checking if ioctl is prototyped... " >&6; }
33309    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33310/* end confdefs.h.  */
33311
33312      $curl_includes_stropts
33313
33314_ACEOF
33315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33316  $EGREP "ioctl" >/dev/null 2>&1; then :
33317
33318      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33319$as_echo "yes" >&6; }
33320      tst_proto_ioctl="yes"
33321
33322else
33323
33324      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33325$as_echo "no" >&6; }
33326      tst_proto_ioctl="no"
33327
33328fi
33329rm -f conftest*
33330
33331  fi
33332  #
33333  if test "$tst_proto_ioctl" = "yes"; then
33334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
33335$as_echo_n "checking if ioctl is compilable... " >&6; }
33336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33337/* end confdefs.h.  */
33338
33339
33340        $curl_includes_stropts
33341
33342int main (void)
33343{
33344
33345        if(0 != ioctl(0, 0, 0))
33346          return 1;
33347
33348 ;
33349 return 0;
33350}
33351
33352_ACEOF
33353if ac_fn_c_try_compile "$LINENO"; then :
33354
33355      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33356$as_echo "yes" >&6; }
33357      tst_compi_ioctl="yes"
33358
33359else
33360
33361      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33362$as_echo "no" >&6; }
33363      tst_compi_ioctl="no"
33364
33365fi
33366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33367  fi
33368  #
33369  if test "$tst_compi_ioctl" = "yes"; then
33370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
33371$as_echo_n "checking if ioctl usage allowed... " >&6; }
33372    if test "x$curl_disallow_ioctl" != "xyes"; then
33373      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33374$as_echo "yes" >&6; }
33375      tst_allow_ioctl="yes"
33376    else
33377      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33378$as_echo "no" >&6; }
33379      tst_allow_ioctl="no"
33380    fi
33381  fi
33382  #
33383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
33384$as_echo_n "checking if ioctl might be used... " >&6; }
33385  if test "$tst_links_ioctl" = "yes" &&
33386     test "$tst_proto_ioctl" = "yes" &&
33387     test "$tst_compi_ioctl" = "yes" &&
33388     test "$tst_allow_ioctl" = "yes"; then
33389    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33390$as_echo "yes" >&6; }
33391
33392cat >>confdefs.h <<_ACEOF
33393#define HAVE_IOCTL 1
33394_ACEOF
33395
33396    ac_cv_func_ioctl="yes"
33397
33398  #
33399  tst_compi_ioctl_fionbio="unknown"
33400  tst_allow_ioctl_fionbio="unknown"
33401  #
33402  if test "$ac_cv_func_ioctl" = "yes"; then
33403    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
33404$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
33405    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33406/* end confdefs.h.  */
33407
33408
33409        $curl_includes_stropts
33410
33411int main (void)
33412{
33413
33414        int flags = 0;
33415        if(0 != ioctl(0, FIONBIO, &flags))
33416          return 1;
33417
33418 ;
33419 return 0;
33420}
33421
33422_ACEOF
33423if ac_fn_c_try_compile "$LINENO"; then :
33424
33425      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33426$as_echo "yes" >&6; }
33427      tst_compi_ioctl_fionbio="yes"
33428
33429else
33430
33431      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33432$as_echo "no" >&6; }
33433      tst_compi_ioctl_fionbio="no"
33434
33435fi
33436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33437  fi
33438  #
33439  if test "$tst_compi_ioctl_fionbio" = "yes"; then
33440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
33441$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
33442    if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
33443      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33444$as_echo "yes" >&6; }
33445      tst_allow_ioctl_fionbio="yes"
33446    else
33447      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33448$as_echo "no" >&6; }
33449      tst_allow_ioctl_fionbio="no"
33450    fi
33451  fi
33452  #
33453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
33454$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
33455  if test "$tst_compi_ioctl_fionbio" = "yes" &&
33456     test "$tst_allow_ioctl_fionbio" = "yes"; then
33457    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33458$as_echo "yes" >&6; }
33459
33460cat >>confdefs.h <<_ACEOF
33461#define HAVE_IOCTL_FIONBIO 1
33462_ACEOF
33463
33464    ac_cv_func_ioctl_fionbio="yes"
33465  else
33466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33467$as_echo "no" >&6; }
33468    ac_cv_func_ioctl_fionbio="no"
33469  fi
33470
33471
33472  #
33473  tst_compi_ioctl_siocgifaddr="unknown"
33474  tst_allow_ioctl_siocgifaddr="unknown"
33475  #
33476  if test "$ac_cv_func_ioctl" = "yes"; then
33477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
33478$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
33479    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33480/* end confdefs.h.  */
33481
33482
33483        $curl_includes_stropts
33484        #include <net/if.h>
33485
33486int main (void)
33487{
33488
33489        struct ifreq ifr;
33490        if(0 != ioctl(0, SIOCGIFADDR, &ifr))
33491          return 1;
33492
33493 ;
33494 return 0;
33495}
33496
33497_ACEOF
33498if ac_fn_c_try_compile "$LINENO"; then :
33499
33500      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33501$as_echo "yes" >&6; }
33502      tst_compi_ioctl_siocgifaddr="yes"
33503
33504else
33505
33506      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33507$as_echo "no" >&6; }
33508      tst_compi_ioctl_siocgifaddr="no"
33509
33510fi
33511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33512  fi
33513  #
33514  if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
33515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
33516$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
33517    if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
33518      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33519$as_echo "yes" >&6; }
33520      tst_allow_ioctl_siocgifaddr="yes"
33521    else
33522      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33523$as_echo "no" >&6; }
33524      tst_allow_ioctl_siocgifaddr="no"
33525    fi
33526  fi
33527  #
33528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
33529$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
33530  if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
33531     test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
33532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33533$as_echo "yes" >&6; }
33534
33535cat >>confdefs.h <<_ACEOF
33536#define HAVE_IOCTL_SIOCGIFADDR 1
33537_ACEOF
33538
33539    ac_cv_func_ioctl_siocgifaddr="yes"
33540  else
33541    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33542$as_echo "no" >&6; }
33543    ac_cv_func_ioctl_siocgifaddr="no"
33544  fi
33545
33546  else
33547    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33548$as_echo "no" >&6; }
33549    ac_cv_func_ioctl="no"
33550  fi
33551
33552
33553    #
33554  tst_links_ioctlsocket="unknown"
33555  tst_proto_ioctlsocket="unknown"
33556  tst_compi_ioctlsocket="unknown"
33557  tst_allow_ioctlsocket="unknown"
33558  #
33559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
33560$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
33561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33562/* end confdefs.h.  */
33563
33564
33565      $curl_includes_winsock2
33566
33567int main (void)
33568{
33569
33570      if(0 != ioctlsocket(0, 0, 0))
33571        return 1;
33572
33573 ;
33574 return 0;
33575}
33576
33577_ACEOF
33578if ac_fn_c_try_link "$LINENO"; then :
33579
33580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33581$as_echo "yes" >&6; }
33582    tst_links_ioctlsocket="yes"
33583
33584else
33585
33586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33587$as_echo "no" >&6; }
33588    tst_links_ioctlsocket="no"
33589
33590fi
33591rm -f core conftest.err conftest.$ac_objext \
33592    conftest$ac_exeext conftest.$ac_ext
33593  #
33594  if test "$tst_links_ioctlsocket" = "yes"; then
33595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
33596$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
33597    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33598/* end confdefs.h.  */
33599
33600      $curl_includes_winsock2
33601
33602_ACEOF
33603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33604  $EGREP "ioctlsocket" >/dev/null 2>&1; then :
33605
33606      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33607$as_echo "yes" >&6; }
33608      tst_proto_ioctlsocket="yes"
33609
33610else
33611
33612      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613$as_echo "no" >&6; }
33614      tst_proto_ioctlsocket="no"
33615
33616fi
33617rm -f conftest*
33618
33619  fi
33620  #
33621  if test "$tst_proto_ioctlsocket" = "yes"; then
33622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
33623$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
33624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33625/* end confdefs.h.  */
33626
33627
33628        $curl_includes_winsock2
33629
33630int main (void)
33631{
33632
33633        if(0 != ioctlsocket(0, 0, 0))
33634          return 1;
33635
33636 ;
33637 return 0;
33638}
33639
33640_ACEOF
33641if ac_fn_c_try_compile "$LINENO"; then :
33642
33643      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33644$as_echo "yes" >&6; }
33645      tst_compi_ioctlsocket="yes"
33646
33647else
33648
33649      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33650$as_echo "no" >&6; }
33651      tst_compi_ioctlsocket="no"
33652
33653fi
33654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33655  fi
33656  #
33657  if test "$tst_compi_ioctlsocket" = "yes"; then
33658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
33659$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
33660    if test "x$curl_disallow_ioctlsocket" != "xyes"; then
33661      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33662$as_echo "yes" >&6; }
33663      tst_allow_ioctlsocket="yes"
33664    else
33665      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33666$as_echo "no" >&6; }
33667      tst_allow_ioctlsocket="no"
33668    fi
33669  fi
33670  #
33671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
33672$as_echo_n "checking if ioctlsocket might be used... " >&6; }
33673  if test "$tst_links_ioctlsocket" = "yes" &&
33674     test "$tst_proto_ioctlsocket" = "yes" &&
33675     test "$tst_compi_ioctlsocket" = "yes" &&
33676     test "$tst_allow_ioctlsocket" = "yes"; then
33677    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33678$as_echo "yes" >&6; }
33679
33680cat >>confdefs.h <<_ACEOF
33681#define HAVE_IOCTLSOCKET 1
33682_ACEOF
33683
33684    ac_cv_func_ioctlsocket="yes"
33685
33686  #
33687  tst_compi_ioctlsocket_fionbio="unknown"
33688  tst_allow_ioctlsocket_fionbio="unknown"
33689  #
33690  if test "$ac_cv_func_ioctlsocket" = "yes"; then
33691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
33692$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
33693    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33694/* end confdefs.h.  */
33695
33696
33697        $curl_includes_winsock2
33698
33699int main (void)
33700{
33701
33702        int flags = 0;
33703        if(0 != ioctlsocket(0, FIONBIO, &flags))
33704          return 1;
33705
33706 ;
33707 return 0;
33708}
33709
33710_ACEOF
33711if ac_fn_c_try_compile "$LINENO"; then :
33712
33713      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33714$as_echo "yes" >&6; }
33715      tst_compi_ioctlsocket_fionbio="yes"
33716
33717else
33718
33719      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33720$as_echo "no" >&6; }
33721      tst_compi_ioctlsocket_fionbio="no"
33722
33723fi
33724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33725  fi
33726  #
33727  if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
33728    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
33729$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
33730    if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
33731      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33732$as_echo "yes" >&6; }
33733      tst_allow_ioctlsocket_fionbio="yes"
33734    else
33735      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33736$as_echo "no" >&6; }
33737      tst_allow_ioctlsocket_fionbio="no"
33738    fi
33739  fi
33740  #
33741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
33742$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
33743  if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
33744     test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
33745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33746$as_echo "yes" >&6; }
33747
33748cat >>confdefs.h <<_ACEOF
33749#define HAVE_IOCTLSOCKET_FIONBIO 1
33750_ACEOF
33751
33752    ac_cv_func_ioctlsocket_fionbio="yes"
33753  else
33754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33755$as_echo "no" >&6; }
33756    ac_cv_func_ioctlsocket_fionbio="no"
33757  fi
33758
33759  else
33760    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33761$as_echo "no" >&6; }
33762    ac_cv_func_ioctlsocket="no"
33763  fi
33764
33765
33766    #
33767  tst_links_ioctlsocket_camel="unknown"
33768  tst_proto_ioctlsocket_camel="unknown"
33769  tst_compi_ioctlsocket_camel="unknown"
33770  tst_allow_ioctlsocket_camel="unknown"
33771  #
33772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
33773$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
33774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33775/* end confdefs.h.  */
33776
33777
33778#define IoctlSocket innocuous_IoctlSocket
33779#ifdef __STDC__
33780# include <limits.h>
33781#else
33782# include <assert.h>
33783#endif
33784#undef IoctlSocket
33785#ifdef __cplusplus
33786extern "C"
33787#endif
33788char IoctlSocket ();
33789#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
33790choke me
33791#endif
33792
33793int main (void)
33794{
33795return IoctlSocket ();
33796 ;
33797 return 0;
33798}
33799
33800_ACEOF
33801if ac_fn_c_try_link "$LINENO"; then :
33802
33803    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33804$as_echo "yes" >&6; }
33805    tst_links_ioctlsocket_camel="yes"
33806
33807else
33808
33809    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33810$as_echo "no" >&6; }
33811    tst_links_ioctlsocket_camel="no"
33812
33813fi
33814rm -f core conftest.err conftest.$ac_objext \
33815    conftest$ac_exeext conftest.$ac_ext
33816  #
33817  if test "$tst_links_ioctlsocket_camel" = "yes"; then
33818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
33819$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
33820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33821/* end confdefs.h.  */
33822
33823      $curl_includes_stropts
33824
33825_ACEOF
33826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33827  $EGREP "IoctlSocket" >/dev/null 2>&1; then :
33828
33829      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33830$as_echo "yes" >&6; }
33831      tst_proto_ioctlsocket_camel="yes"
33832
33833else
33834
33835      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33836$as_echo "no" >&6; }
33837      tst_proto_ioctlsocket_camel="no"
33838
33839fi
33840rm -f conftest*
33841
33842  fi
33843  #
33844  if test "$tst_proto_ioctlsocket_camel" = "yes"; then
33845    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
33846$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
33847    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33848/* end confdefs.h.  */
33849
33850
33851        $curl_includes_stropts
33852
33853int main (void)
33854{
33855
33856        if(0 != IoctlSocket(0, 0, 0))
33857          return 1;
33858
33859 ;
33860 return 0;
33861}
33862
33863_ACEOF
33864if ac_fn_c_try_compile "$LINENO"; then :
33865
33866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33867$as_echo "yes" >&6; }
33868      tst_compi_ioctlsocket_camel="yes"
33869
33870else
33871
33872      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33873$as_echo "no" >&6; }
33874      tst_compi_ioctlsocket_camel="no"
33875
33876fi
33877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33878  fi
33879  #
33880  if test "$tst_compi_ioctlsocket_camel" = "yes"; then
33881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
33882$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
33883    if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
33884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33885$as_echo "yes" >&6; }
33886      tst_allow_ioctlsocket_camel="yes"
33887    else
33888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33889$as_echo "no" >&6; }
33890      tst_allow_ioctlsocket_camel="no"
33891    fi
33892  fi
33893  #
33894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
33895$as_echo_n "checking if IoctlSocket might be used... " >&6; }
33896  if test "$tst_links_ioctlsocket_camel" = "yes" &&
33897     test "$tst_proto_ioctlsocket_camel" = "yes" &&
33898     test "$tst_compi_ioctlsocket_camel" = "yes" &&
33899     test "$tst_allow_ioctlsocket_camel" = "yes"; then
33900    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33901$as_echo "yes" >&6; }
33902
33903cat >>confdefs.h <<_ACEOF
33904#define HAVE_IOCTLSOCKET_CAMEL 1
33905_ACEOF
33906
33907    ac_cv_func_ioctlsocket_camel="yes"
33908
33909  #
33910  tst_compi_ioctlsocket_camel_fionbio="unknown"
33911  tst_allow_ioctlsocket_camel_fionbio="unknown"
33912  #
33913  if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
33914    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
33915$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
33916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33917/* end confdefs.h.  */
33918
33919
33920        $curl_includes_stropts
33921
33922int main (void)
33923{
33924
33925        long flags = 0;
33926        if(0 != ioctlsocket(0, FIONBIO, &flags))
33927          return 1;
33928
33929 ;
33930 return 0;
33931}
33932
33933_ACEOF
33934if ac_fn_c_try_compile "$LINENO"; then :
33935
33936      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33937$as_echo "yes" >&6; }
33938      tst_compi_ioctlsocket_camel_fionbio="yes"
33939
33940else
33941
33942      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33943$as_echo "no" >&6; }
33944      tst_compi_ioctlsocket_camel_fionbio="no"
33945
33946fi
33947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33948  fi
33949  #
33950  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
33951    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
33952$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
33953    if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
33954      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33955$as_echo "yes" >&6; }
33956      tst_allow_ioctlsocket_camel_fionbio="yes"
33957    else
33958      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33959$as_echo "no" >&6; }
33960      tst_allow_ioctlsocket_camel_fionbio="no"
33961    fi
33962  fi
33963  #
33964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
33965$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
33966  if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
33967     test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
33968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33969$as_echo "yes" >&6; }
33970
33971cat >>confdefs.h <<_ACEOF
33972#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
33973_ACEOF
33974
33975    ac_cv_func_ioctlsocket_camel_fionbio="yes"
33976  else
33977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33978$as_echo "no" >&6; }
33979    ac_cv_func_ioctlsocket_camel_fionbio="no"
33980  fi
33981
33982  else
33983    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33984$as_echo "no" >&6; }
33985    ac_cv_func_ioctlsocket_camel="no"
33986  fi
33987
33988
33989      #
33990  tst_links_localtime_r="unknown"
33991  tst_proto_localtime_r="unknown"
33992  tst_compi_localtime_r="unknown"
33993  tst_works_localtime_r="unknown"
33994  tst_allow_localtime_r="unknown"
33995  #
33996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
33997$as_echo_n "checking if localtime_r can be linked... " >&6; }
33998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33999/* end confdefs.h.  */
34000
34001
34002#define localtime_r innocuous_localtime_r
34003#ifdef __STDC__
34004# include <limits.h>
34005#else
34006# include <assert.h>
34007#endif
34008#undef localtime_r
34009#ifdef __cplusplus
34010extern "C"
34011#endif
34012char localtime_r ();
34013#if defined __stub_localtime_r || defined __stub___localtime_r
34014choke me
34015#endif
34016
34017int main (void)
34018{
34019return localtime_r ();
34020 ;
34021 return 0;
34022}
34023
34024_ACEOF
34025if ac_fn_c_try_link "$LINENO"; then :
34026
34027    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34028$as_echo "yes" >&6; }
34029    tst_links_localtime_r="yes"
34030
34031else
34032
34033    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34034$as_echo "no" >&6; }
34035    tst_links_localtime_r="no"
34036
34037fi
34038rm -f core conftest.err conftest.$ac_objext \
34039    conftest$ac_exeext conftest.$ac_ext
34040  #
34041  if test "$tst_links_localtime_r" = "yes"; then
34042    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
34043$as_echo_n "checking if localtime_r is prototyped... " >&6; }
34044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34045/* end confdefs.h.  */
34046
34047      $curl_includes_time
34048
34049_ACEOF
34050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34051  $EGREP "localtime_r" >/dev/null 2>&1; then :
34052
34053      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34054$as_echo "yes" >&6; }
34055      tst_proto_localtime_r="yes"
34056
34057else
34058
34059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34060$as_echo "no" >&6; }
34061      tst_proto_localtime_r="no"
34062
34063fi
34064rm -f conftest*
34065
34066  fi
34067  #
34068  if test "$tst_proto_localtime_r" = "yes"; then
34069    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
34070$as_echo_n "checking if localtime_r is compilable... " >&6; }
34071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34072/* end confdefs.h.  */
34073
34074
34075        $curl_includes_time
34076
34077int main (void)
34078{
34079
34080        if(0 != localtime_r(0, 0))
34081          return 1;
34082
34083 ;
34084 return 0;
34085}
34086
34087_ACEOF
34088if ac_fn_c_try_compile "$LINENO"; then :
34089
34090      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34091$as_echo "yes" >&6; }
34092      tst_compi_localtime_r="yes"
34093
34094else
34095
34096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34097$as_echo "no" >&6; }
34098      tst_compi_localtime_r="no"
34099
34100fi
34101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34102  fi
34103  #
34104    if test "x$cross_compiling" != "xyes" &&
34105    test "$tst_compi_localtime_r" = "yes"; then
34106    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
34107$as_echo_n "checking if localtime_r seems to work... " >&6; }
34108    if test "$cross_compiling" = yes; then :
34109  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34111as_fn_error $? "cannot run test program while cross compiling
34112See \`config.log' for more details" "$LINENO" 5; }
34113else
34114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34115/* end confdefs.h.  */
34116
34117
34118        $curl_includes_stdlib
34119        $curl_includes_time
34120
34121int main (void)
34122{
34123
34124        time_t clock = 1170352587;
34125        struct tm *tmp = 0;
34126        struct tm result;
34127        tmp = localtime_r(&clock, &result);
34128        if(tmp)
34129          exit(0);
34130        else
34131          exit(1);
34132
34133 ;
34134 return 0;
34135}
34136
34137_ACEOF
34138if ac_fn_c_try_run "$LINENO"; then :
34139
34140      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34141$as_echo "yes" >&6; }
34142      tst_works_localtime_r="yes"
34143
34144else
34145
34146      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34147$as_echo "no" >&6; }
34148      tst_works_localtime_r="no"
34149
34150fi
34151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34152  conftest.$ac_objext conftest.beam conftest.$ac_ext
34153fi
34154
34155  fi
34156  #
34157  if test "$tst_compi_localtime_r" = "yes" &&
34158    test "$tst_works_localtime_r" != "no"; then
34159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
34160$as_echo_n "checking if localtime_r usage allowed... " >&6; }
34161    if test "x$curl_disallow_localtime_r" != "xyes"; then
34162      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34163$as_echo "yes" >&6; }
34164      tst_allow_localtime_r="yes"
34165    else
34166      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34167$as_echo "no" >&6; }
34168      tst_allow_localtime_r="no"
34169    fi
34170  fi
34171  #
34172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
34173$as_echo_n "checking if localtime_r might be used... " >&6; }
34174  if test "$tst_links_localtime_r" = "yes" &&
34175     test "$tst_proto_localtime_r" = "yes" &&
34176     test "$tst_compi_localtime_r" = "yes" &&
34177     test "$tst_allow_localtime_r" = "yes" &&
34178     test "$tst_works_localtime_r" != "no"; then
34179    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34180$as_echo "yes" >&6; }
34181
34182cat >>confdefs.h <<_ACEOF
34183#define HAVE_LOCALTIME_R 1
34184_ACEOF
34185
34186    ac_cv_func_localtime_r="yes"
34187  else
34188    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34189$as_echo "no" >&6; }
34190    ac_cv_func_localtime_r="no"
34191  fi
34192
34193
34194    #
34195  tst_links_memrchr="unknown"
34196  tst_macro_memrchr="unknown"
34197  tst_proto_memrchr="unknown"
34198  tst_compi_memrchr="unknown"
34199  tst_allow_memrchr="unknown"
34200  #
34201  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
34202$as_echo_n "checking if memrchr can be linked... " >&6; }
34203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34204/* end confdefs.h.  */
34205
34206
34207#define memrchr innocuous_memrchr
34208#ifdef __STDC__
34209# include <limits.h>
34210#else
34211# include <assert.h>
34212#endif
34213#undef memrchr
34214#ifdef __cplusplus
34215extern "C"
34216#endif
34217char memrchr ();
34218#if defined __stub_memrchr || defined __stub___memrchr
34219choke me
34220#endif
34221
34222int main (void)
34223{
34224return memrchr ();
34225 ;
34226 return 0;
34227}
34228
34229_ACEOF
34230if ac_fn_c_try_link "$LINENO"; then :
34231
34232    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34233$as_echo "yes" >&6; }
34234    tst_links_memrchr="yes"
34235
34236else
34237
34238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34239$as_echo "no" >&6; }
34240    tst_links_memrchr="no"
34241
34242fi
34243rm -f core conftest.err conftest.$ac_objext \
34244    conftest$ac_exeext conftest.$ac_ext
34245  #
34246  if test "$tst_links_memrchr" = "no"; then
34247    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
34248$as_echo_n "checking if memrchr seems a macro... " >&6; }
34249    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34250/* end confdefs.h.  */
34251
34252
34253        $curl_includes_string
34254
34255int main (void)
34256{
34257
34258        if(0 != memrchr(0, 0, 0))
34259          return 1;
34260
34261 ;
34262 return 0;
34263}
34264
34265_ACEOF
34266if ac_fn_c_try_link "$LINENO"; then :
34267
34268      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34269$as_echo "yes" >&6; }
34270      tst_macro_memrchr="yes"
34271
34272else
34273
34274      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34275$as_echo "no" >&6; }
34276      tst_macro_memrchr="no"
34277
34278fi
34279rm -f core conftest.err conftest.$ac_objext \
34280    conftest$ac_exeext conftest.$ac_ext
34281  fi
34282  #
34283  if test "$tst_links_memrchr" = "yes"; then
34284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
34285$as_echo_n "checking if memrchr is prototyped... " >&6; }
34286    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34287/* end confdefs.h.  */
34288
34289      $curl_includes_string
34290
34291_ACEOF
34292if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34293  $EGREP "memrchr" >/dev/null 2>&1; then :
34294
34295      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34296$as_echo "yes" >&6; }
34297      tst_proto_memrchr="yes"
34298
34299else
34300
34301      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34302$as_echo "no" >&6; }
34303      tst_proto_memrchr="no"
34304
34305fi
34306rm -f conftest*
34307
34308  fi
34309  #
34310  if test "$tst_proto_memrchr" = "yes" ||
34311     test "$tst_macro_memrchr" = "yes"; then
34312    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
34313$as_echo_n "checking if memrchr is compilable... " >&6; }
34314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34315/* end confdefs.h.  */
34316
34317
34318        $curl_includes_string
34319
34320int main (void)
34321{
34322
34323        if(0 != memrchr(0, 0, 0))
34324          return 1;
34325
34326 ;
34327 return 0;
34328}
34329
34330_ACEOF
34331if ac_fn_c_try_compile "$LINENO"; then :
34332
34333      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34334$as_echo "yes" >&6; }
34335      tst_compi_memrchr="yes"
34336
34337else
34338
34339      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34340$as_echo "no" >&6; }
34341      tst_compi_memrchr="no"
34342
34343fi
34344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34345  fi
34346  #
34347  if test "$tst_compi_memrchr" = "yes"; then
34348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
34349$as_echo_n "checking if memrchr usage allowed... " >&6; }
34350    if test "x$curl_disallow_memrchr" != "xyes"; then
34351      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34352$as_echo "yes" >&6; }
34353      tst_allow_memrchr="yes"
34354    else
34355      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34356$as_echo "no" >&6; }
34357      tst_allow_memrchr="no"
34358    fi
34359  fi
34360  #
34361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
34362$as_echo_n "checking if memrchr might be used... " >&6; }
34363  if (test "$tst_proto_memrchr" = "yes" ||
34364      test "$tst_macro_memrchr" = "yes") &&
34365     test "$tst_compi_memrchr" = "yes" &&
34366     test "$tst_allow_memrchr" = "yes"; then
34367    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34368$as_echo "yes" >&6; }
34369
34370cat >>confdefs.h <<_ACEOF
34371#define HAVE_MEMRCHR 1
34372_ACEOF
34373
34374    ac_cv_func_memrchr="yes"
34375  else
34376    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34377$as_echo "no" >&6; }
34378    ac_cv_func_memrchr="no"
34379  fi
34380
34381
34382      #
34383  tst_links_poll="unknown"
34384  tst_proto_poll="unknown"
34385  tst_compi_poll="unknown"
34386  tst_works_poll="unknown"
34387  tst_allow_poll="unknown"
34388  #
34389  case $host_os in
34390    darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
34391                              curl_disallow_poll="yes"
34392      ;;
34393  esac
34394  #
34395  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
34396$as_echo_n "checking if poll can be linked... " >&6; }
34397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34398/* end confdefs.h.  */
34399
34400
34401      $curl_includes_poll
34402
34403int main (void)
34404{
34405
34406      if(0 != poll(0, 0, 0))
34407        return 1;
34408
34409 ;
34410 return 0;
34411}
34412
34413_ACEOF
34414if ac_fn_c_try_link "$LINENO"; then :
34415
34416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34417$as_echo "yes" >&6; }
34418    tst_links_poll="yes"
34419
34420else
34421
34422    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34423$as_echo "no" >&6; }
34424    tst_links_poll="no"
34425
34426fi
34427rm -f core conftest.err conftest.$ac_objext \
34428    conftest$ac_exeext conftest.$ac_ext
34429  #
34430  if test "$tst_links_poll" = "yes"; then
34431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
34432$as_echo_n "checking if poll is prototyped... " >&6; }
34433    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34434/* end confdefs.h.  */
34435
34436      $curl_includes_poll
34437
34438_ACEOF
34439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34440  $EGREP "poll" >/dev/null 2>&1; then :
34441
34442      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34443$as_echo "yes" >&6; }
34444      tst_proto_poll="yes"
34445
34446else
34447
34448      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34449$as_echo "no" >&6; }
34450      tst_proto_poll="no"
34451
34452fi
34453rm -f conftest*
34454
34455  fi
34456  #
34457  if test "$tst_proto_poll" = "yes"; then
34458    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
34459$as_echo_n "checking if poll is compilable... " >&6; }
34460    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34461/* end confdefs.h.  */
34462
34463
34464        $curl_includes_poll
34465
34466int main (void)
34467{
34468
34469        if(0 != poll(0, 0, 0))
34470          return 1;
34471
34472 ;
34473 return 0;
34474}
34475
34476_ACEOF
34477if ac_fn_c_try_compile "$LINENO"; then :
34478
34479      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34480$as_echo "yes" >&6; }
34481      tst_compi_poll="yes"
34482
34483else
34484
34485      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34486$as_echo "no" >&6; }
34487      tst_compi_poll="no"
34488
34489fi
34490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34491  fi
34492  #
34493    if test "x$cross_compiling" != "xyes" &&
34494    test "$tst_compi_poll" = "yes"; then
34495    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
34496$as_echo_n "checking if poll seems to work... " >&6; }
34497    if test "$cross_compiling" = yes; then :
34498  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34500as_fn_error $? "cannot run test program while cross compiling
34501See \`config.log' for more details" "$LINENO" 5; }
34502else
34503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34504/* end confdefs.h.  */
34505
34506
34507        $curl_includes_stdlib
34508        $curl_includes_poll
34509
34510int main (void)
34511{
34512
34513        if(0 != poll(0, 0, 10))
34514          exit(1); /* fail */
34515        else
34516          exit(0);
34517
34518 ;
34519 return 0;
34520}
34521
34522_ACEOF
34523if ac_fn_c_try_run "$LINENO"; then :
34524
34525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34526$as_echo "yes" >&6; }
34527      tst_works_poll="yes"
34528
34529else
34530
34531      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34532$as_echo "no" >&6; }
34533      tst_works_poll="no"
34534
34535fi
34536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34537  conftest.$ac_objext conftest.beam conftest.$ac_ext
34538fi
34539
34540  fi
34541  #
34542  if test "$tst_compi_poll" = "yes" &&
34543    test "$tst_works_poll" != "no"; then
34544    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
34545$as_echo_n "checking if poll usage allowed... " >&6; }
34546    if test "x$curl_disallow_poll" != "xyes"; then
34547      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34548$as_echo "yes" >&6; }
34549      tst_allow_poll="yes"
34550    else
34551      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34552$as_echo "no" >&6; }
34553      tst_allow_poll="no"
34554    fi
34555  fi
34556  #
34557  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
34558$as_echo_n "checking if poll might be used... " >&6; }
34559  if test "$tst_links_poll" = "yes" &&
34560     test "$tst_proto_poll" = "yes" &&
34561     test "$tst_compi_poll" = "yes" &&
34562     test "$tst_allow_poll" = "yes" &&
34563     test "$tst_works_poll" != "no"; then
34564    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34565$as_echo "yes" >&6; }
34566
34567cat >>confdefs.h <<_ACEOF
34568#define HAVE_POLL 1
34569_ACEOF
34570
34571
34572cat >>confdefs.h <<_ACEOF
34573#define HAVE_POLL_FINE 1
34574_ACEOF
34575
34576    ac_cv_func_poll="yes"
34577  else
34578    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34579$as_echo "no" >&6; }
34580    ac_cv_func_poll="no"
34581  fi
34582
34583
34584      #
34585  tst_links_setsockopt="unknown"
34586  tst_proto_setsockopt="unknown"
34587  tst_compi_setsockopt="unknown"
34588  tst_allow_setsockopt="unknown"
34589  #
34590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
34591$as_echo_n "checking if setsockopt can be linked... " >&6; }
34592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34593/* end confdefs.h.  */
34594
34595
34596      $curl_includes_winsock2
34597      $curl_includes_sys_socket
34598
34599int main (void)
34600{
34601
34602      if(0 != setsockopt(0, 0, 0, 0, 0))
34603        return 1;
34604
34605 ;
34606 return 0;
34607}
34608
34609_ACEOF
34610if ac_fn_c_try_link "$LINENO"; then :
34611
34612    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34613$as_echo "yes" >&6; }
34614    tst_links_setsockopt="yes"
34615
34616else
34617
34618    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34619$as_echo "no" >&6; }
34620    tst_links_setsockopt="no"
34621
34622fi
34623rm -f core conftest.err conftest.$ac_objext \
34624    conftest$ac_exeext conftest.$ac_ext
34625  #
34626  if test "$tst_links_setsockopt" = "yes"; then
34627    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
34628$as_echo_n "checking if setsockopt is prototyped... " >&6; }
34629    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34630/* end confdefs.h.  */
34631
34632      $curl_includes_winsock2
34633      $curl_includes_sys_socket
34634
34635_ACEOF
34636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34637  $EGREP "setsockopt" >/dev/null 2>&1; then :
34638
34639      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34640$as_echo "yes" >&6; }
34641      tst_proto_setsockopt="yes"
34642
34643else
34644
34645      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34646$as_echo "no" >&6; }
34647      tst_proto_setsockopt="no"
34648
34649fi
34650rm -f conftest*
34651
34652  fi
34653  #
34654  if test "$tst_proto_setsockopt" = "yes"; then
34655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
34656$as_echo_n "checking if setsockopt is compilable... " >&6; }
34657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34658/* end confdefs.h.  */
34659
34660
34661        $curl_includes_winsock2
34662        $curl_includes_sys_socket
34663
34664int main (void)
34665{
34666
34667        if(0 != setsockopt(0, 0, 0, 0, 0))
34668          return 1;
34669
34670 ;
34671 return 0;
34672}
34673
34674_ACEOF
34675if ac_fn_c_try_compile "$LINENO"; then :
34676
34677      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34678$as_echo "yes" >&6; }
34679      tst_compi_setsockopt="yes"
34680
34681else
34682
34683      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34684$as_echo "no" >&6; }
34685      tst_compi_setsockopt="no"
34686
34687fi
34688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34689  fi
34690  #
34691  if test "$tst_compi_setsockopt" = "yes"; then
34692    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
34693$as_echo_n "checking if setsockopt usage allowed... " >&6; }
34694    if test "x$curl_disallow_setsockopt" != "xyes"; then
34695      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34696$as_echo "yes" >&6; }
34697      tst_allow_setsockopt="yes"
34698    else
34699      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34700$as_echo "no" >&6; }
34701      tst_allow_setsockopt="no"
34702    fi
34703  fi
34704  #
34705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
34706$as_echo_n "checking if setsockopt might be used... " >&6; }
34707  if test "$tst_links_setsockopt" = "yes" &&
34708     test "$tst_proto_setsockopt" = "yes" &&
34709     test "$tst_compi_setsockopt" = "yes" &&
34710     test "$tst_allow_setsockopt" = "yes"; then
34711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34712$as_echo "yes" >&6; }
34713
34714cat >>confdefs.h <<_ACEOF
34715#define HAVE_SETSOCKOPT 1
34716_ACEOF
34717
34718    ac_cv_func_setsockopt="yes"
34719
34720  #
34721  tst_compi_setsockopt_so_nonblock="unknown"
34722  tst_allow_setsockopt_so_nonblock="unknown"
34723  #
34724  if test "$ac_cv_func_setsockopt" = "yes"; then
34725    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
34726$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
34727    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34728/* end confdefs.h.  */
34729
34730
34731        $curl_includes_winsock2
34732        $curl_includes_sys_socket
34733
34734int main (void)
34735{
34736
34737        if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
34738          return 1;
34739
34740 ;
34741 return 0;
34742}
34743
34744_ACEOF
34745if ac_fn_c_try_compile "$LINENO"; then :
34746
34747      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34748$as_echo "yes" >&6; }
34749      tst_compi_setsockopt_so_nonblock="yes"
34750
34751else
34752
34753      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34754$as_echo "no" >&6; }
34755      tst_compi_setsockopt_so_nonblock="no"
34756
34757fi
34758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34759  fi
34760  #
34761  if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
34762    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
34763$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
34764    if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
34765      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34766$as_echo "yes" >&6; }
34767      tst_allow_setsockopt_so_nonblock="yes"
34768    else
34769      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34770$as_echo "no" >&6; }
34771      tst_allow_setsockopt_so_nonblock="no"
34772    fi
34773  fi
34774  #
34775  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
34776$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
34777  if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
34778     test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
34779    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34780$as_echo "yes" >&6; }
34781
34782cat >>confdefs.h <<_ACEOF
34783#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
34784_ACEOF
34785
34786    ac_cv_func_setsockopt_so_nonblock="yes"
34787  else
34788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34789$as_echo "no" >&6; }
34790    ac_cv_func_setsockopt_so_nonblock="no"
34791  fi
34792
34793  else
34794    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34795$as_echo "no" >&6; }
34796    ac_cv_func_setsockopt="no"
34797  fi
34798
34799
34800curl_includes_signal="\
34801/* includes start */
34802#ifdef HAVE_SYS_TYPES_H
34803#  include <sys/types.h>
34804#endif
34805#ifdef HAVE_SIGNAL_H
34806#  include <signal.h>
34807#endif
34808/* includes end */"
34809  for ac_header in sys/types.h signal.h
34810do :
34811  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34812ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
34813"
34814if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34815  cat >>confdefs.h <<_ACEOF
34816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34817_ACEOF
34818
34819fi
34820
34821done
34822
34823
34824
34825    #
34826  tst_links_sigaction="unknown"
34827  tst_proto_sigaction="unknown"
34828  tst_compi_sigaction="unknown"
34829  tst_allow_sigaction="unknown"
34830  #
34831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
34832$as_echo_n "checking if sigaction can be linked... " >&6; }
34833  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34834/* end confdefs.h.  */
34835
34836
34837#define sigaction innocuous_sigaction
34838#ifdef __STDC__
34839# include <limits.h>
34840#else
34841# include <assert.h>
34842#endif
34843#undef sigaction
34844#ifdef __cplusplus
34845extern "C"
34846#endif
34847char sigaction ();
34848#if defined __stub_sigaction || defined __stub___sigaction
34849choke me
34850#endif
34851
34852int main (void)
34853{
34854return sigaction ();
34855 ;
34856 return 0;
34857}
34858
34859_ACEOF
34860if ac_fn_c_try_link "$LINENO"; then :
34861
34862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34863$as_echo "yes" >&6; }
34864    tst_links_sigaction="yes"
34865
34866else
34867
34868    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34869$as_echo "no" >&6; }
34870    tst_links_sigaction="no"
34871
34872fi
34873rm -f core conftest.err conftest.$ac_objext \
34874    conftest$ac_exeext conftest.$ac_ext
34875  #
34876  if test "$tst_links_sigaction" = "yes"; then
34877    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
34878$as_echo_n "checking if sigaction is prototyped... " >&6; }
34879    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34880/* end confdefs.h.  */
34881
34882      $curl_includes_signal
34883
34884_ACEOF
34885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34886  $EGREP "sigaction" >/dev/null 2>&1; then :
34887
34888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34889$as_echo "yes" >&6; }
34890      tst_proto_sigaction="yes"
34891
34892else
34893
34894      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34895$as_echo "no" >&6; }
34896      tst_proto_sigaction="no"
34897
34898fi
34899rm -f conftest*
34900
34901  fi
34902  #
34903  if test "$tst_proto_sigaction" = "yes"; then
34904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
34905$as_echo_n "checking if sigaction is compilable... " >&6; }
34906    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34907/* end confdefs.h.  */
34908
34909
34910        $curl_includes_signal
34911
34912int main (void)
34913{
34914
34915        if(0 != sigaction(0, 0, 0))
34916          return 1;
34917
34918 ;
34919 return 0;
34920}
34921
34922_ACEOF
34923if ac_fn_c_try_compile "$LINENO"; then :
34924
34925      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34926$as_echo "yes" >&6; }
34927      tst_compi_sigaction="yes"
34928
34929else
34930
34931      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34932$as_echo "no" >&6; }
34933      tst_compi_sigaction="no"
34934
34935fi
34936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34937  fi
34938  #
34939  if test "$tst_compi_sigaction" = "yes"; then
34940    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
34941$as_echo_n "checking if sigaction usage allowed... " >&6; }
34942    if test "x$curl_disallow_sigaction" != "xyes"; then
34943      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34944$as_echo "yes" >&6; }
34945      tst_allow_sigaction="yes"
34946    else
34947      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34948$as_echo "no" >&6; }
34949      tst_allow_sigaction="no"
34950    fi
34951  fi
34952  #
34953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
34954$as_echo_n "checking if sigaction might be used... " >&6; }
34955  if test "$tst_links_sigaction" = "yes" &&
34956     test "$tst_proto_sigaction" = "yes" &&
34957     test "$tst_compi_sigaction" = "yes" &&
34958     test "$tst_allow_sigaction" = "yes"; then
34959    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34960$as_echo "yes" >&6; }
34961
34962cat >>confdefs.h <<_ACEOF
34963#define HAVE_SIGACTION 1
34964_ACEOF
34965
34966    ac_cv_func_sigaction="yes"
34967  else
34968    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34969$as_echo "no" >&6; }
34970    ac_cv_func_sigaction="no"
34971  fi
34972
34973
34974    #
34975  tst_links_siginterrupt="unknown"
34976  tst_proto_siginterrupt="unknown"
34977  tst_compi_siginterrupt="unknown"
34978  tst_allow_siginterrupt="unknown"
34979  #
34980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
34981$as_echo_n "checking if siginterrupt can be linked... " >&6; }
34982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34983/* end confdefs.h.  */
34984
34985
34986#define siginterrupt innocuous_siginterrupt
34987#ifdef __STDC__
34988# include <limits.h>
34989#else
34990# include <assert.h>
34991#endif
34992#undef siginterrupt
34993#ifdef __cplusplus
34994extern "C"
34995#endif
34996char siginterrupt ();
34997#if defined __stub_siginterrupt || defined __stub___siginterrupt
34998choke me
34999#endif
35000
35001int main (void)
35002{
35003return siginterrupt ();
35004 ;
35005 return 0;
35006}
35007
35008_ACEOF
35009if ac_fn_c_try_link "$LINENO"; then :
35010
35011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35012$as_echo "yes" >&6; }
35013    tst_links_siginterrupt="yes"
35014
35015else
35016
35017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35018$as_echo "no" >&6; }
35019    tst_links_siginterrupt="no"
35020
35021fi
35022rm -f core conftest.err conftest.$ac_objext \
35023    conftest$ac_exeext conftest.$ac_ext
35024  #
35025  if test "$tst_links_siginterrupt" = "yes"; then
35026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
35027$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
35028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35029/* end confdefs.h.  */
35030
35031      $curl_includes_signal
35032
35033_ACEOF
35034if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35035  $EGREP "siginterrupt" >/dev/null 2>&1; then :
35036
35037      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35038$as_echo "yes" >&6; }
35039      tst_proto_siginterrupt="yes"
35040
35041else
35042
35043      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35044$as_echo "no" >&6; }
35045      tst_proto_siginterrupt="no"
35046
35047fi
35048rm -f conftest*
35049
35050  fi
35051  #
35052  if test "$tst_proto_siginterrupt" = "yes"; then
35053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
35054$as_echo_n "checking if siginterrupt is compilable... " >&6; }
35055    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35056/* end confdefs.h.  */
35057
35058
35059        $curl_includes_signal
35060
35061int main (void)
35062{
35063
35064        if(0 != siginterrupt(0, 0))
35065          return 1;
35066
35067 ;
35068 return 0;
35069}
35070
35071_ACEOF
35072if ac_fn_c_try_compile "$LINENO"; then :
35073
35074      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35075$as_echo "yes" >&6; }
35076      tst_compi_siginterrupt="yes"
35077
35078else
35079
35080      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35081$as_echo "no" >&6; }
35082      tst_compi_siginterrupt="no"
35083
35084fi
35085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086  fi
35087  #
35088  if test "$tst_compi_siginterrupt" = "yes"; then
35089    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
35090$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
35091    if test "x$curl_disallow_siginterrupt" != "xyes"; then
35092      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35093$as_echo "yes" >&6; }
35094      tst_allow_siginterrupt="yes"
35095    else
35096      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35097$as_echo "no" >&6; }
35098      tst_allow_siginterrupt="no"
35099    fi
35100  fi
35101  #
35102  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
35103$as_echo_n "checking if siginterrupt might be used... " >&6; }
35104  if test "$tst_links_siginterrupt" = "yes" &&
35105     test "$tst_proto_siginterrupt" = "yes" &&
35106     test "$tst_compi_siginterrupt" = "yes" &&
35107     test "$tst_allow_siginterrupt" = "yes"; then
35108    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35109$as_echo "yes" >&6; }
35110
35111cat >>confdefs.h <<_ACEOF
35112#define HAVE_SIGINTERRUPT 1
35113_ACEOF
35114
35115    ac_cv_func_siginterrupt="yes"
35116  else
35117    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35118$as_echo "no" >&6; }
35119    ac_cv_func_siginterrupt="no"
35120  fi
35121
35122
35123    #
35124  tst_links_signal="unknown"
35125  tst_proto_signal="unknown"
35126  tst_compi_signal="unknown"
35127  tst_allow_signal="unknown"
35128  #
35129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
35130$as_echo_n "checking if signal can be linked... " >&6; }
35131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35132/* end confdefs.h.  */
35133
35134
35135#define signal innocuous_signal
35136#ifdef __STDC__
35137# include <limits.h>
35138#else
35139# include <assert.h>
35140#endif
35141#undef signal
35142#ifdef __cplusplus
35143extern "C"
35144#endif
35145char signal ();
35146#if defined __stub_signal || defined __stub___signal
35147choke me
35148#endif
35149
35150int main (void)
35151{
35152return signal ();
35153 ;
35154 return 0;
35155}
35156
35157_ACEOF
35158if ac_fn_c_try_link "$LINENO"; then :
35159
35160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35161$as_echo "yes" >&6; }
35162    tst_links_signal="yes"
35163
35164else
35165
35166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35167$as_echo "no" >&6; }
35168    tst_links_signal="no"
35169
35170fi
35171rm -f core conftest.err conftest.$ac_objext \
35172    conftest$ac_exeext conftest.$ac_ext
35173  #
35174  if test "$tst_links_signal" = "yes"; then
35175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
35176$as_echo_n "checking if signal is prototyped... " >&6; }
35177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35178/* end confdefs.h.  */
35179
35180      $curl_includes_signal
35181
35182_ACEOF
35183if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35184  $EGREP "signal" >/dev/null 2>&1; then :
35185
35186      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35187$as_echo "yes" >&6; }
35188      tst_proto_signal="yes"
35189
35190else
35191
35192      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35193$as_echo "no" >&6; }
35194      tst_proto_signal="no"
35195
35196fi
35197rm -f conftest*
35198
35199  fi
35200  #
35201  if test "$tst_proto_signal" = "yes"; then
35202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
35203$as_echo_n "checking if signal is compilable... " >&6; }
35204    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35205/* end confdefs.h.  */
35206
35207
35208        $curl_includes_signal
35209
35210int main (void)
35211{
35212
35213        if(0 != signal(0, 0))
35214          return 1;
35215
35216 ;
35217 return 0;
35218}
35219
35220_ACEOF
35221if ac_fn_c_try_compile "$LINENO"; then :
35222
35223      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35224$as_echo "yes" >&6; }
35225      tst_compi_signal="yes"
35226
35227else
35228
35229      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35230$as_echo "no" >&6; }
35231      tst_compi_signal="no"
35232
35233fi
35234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35235  fi
35236  #
35237  if test "$tst_compi_signal" = "yes"; then
35238    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
35239$as_echo_n "checking if signal usage allowed... " >&6; }
35240    if test "x$curl_disallow_signal" != "xyes"; then
35241      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242$as_echo "yes" >&6; }
35243      tst_allow_signal="yes"
35244    else
35245      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35246$as_echo "no" >&6; }
35247      tst_allow_signal="no"
35248    fi
35249  fi
35250  #
35251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
35252$as_echo_n "checking if signal might be used... " >&6; }
35253  if test "$tst_links_signal" = "yes" &&
35254     test "$tst_proto_signal" = "yes" &&
35255     test "$tst_compi_signal" = "yes" &&
35256     test "$tst_allow_signal" = "yes"; then
35257    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35258$as_echo "yes" >&6; }
35259
35260cat >>confdefs.h <<_ACEOF
35261#define HAVE_SIGNAL 1
35262_ACEOF
35263
35264    ac_cv_func_signal="yes"
35265  else
35266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35267$as_echo "no" >&6; }
35268    ac_cv_func_signal="no"
35269  fi
35270
35271
35272curl_includes_setjmp="\
35273/* includes start */
35274#ifdef HAVE_SYS_TYPES_H
35275#  include <sys/types.h>
35276#endif
35277#ifdef HAVE_SETJMP_H
35278#  include <setjmp.h>
35279#endif
35280/* includes end */"
35281  for ac_header in sys/types.h setjmp.h
35282do :
35283  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35284ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
35285"
35286if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35287  cat >>confdefs.h <<_ACEOF
35288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35289_ACEOF
35290
35291fi
35292
35293done
35294
35295
35296
35297    #
35298  tst_links_sigsetjmp="unknown"
35299  tst_macro_sigsetjmp="unknown"
35300  tst_proto_sigsetjmp="unknown"
35301  tst_compi_sigsetjmp="unknown"
35302  tst_allow_sigsetjmp="unknown"
35303  #
35304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
35305$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
35306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35307/* end confdefs.h.  */
35308
35309
35310#define sigsetjmp innocuous_sigsetjmp
35311#ifdef __STDC__
35312# include <limits.h>
35313#else
35314# include <assert.h>
35315#endif
35316#undef sigsetjmp
35317#ifdef __cplusplus
35318extern "C"
35319#endif
35320char sigsetjmp ();
35321#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
35322choke me
35323#endif
35324
35325int main (void)
35326{
35327return sigsetjmp ();
35328 ;
35329 return 0;
35330}
35331
35332_ACEOF
35333if ac_fn_c_try_link "$LINENO"; then :
35334
35335    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35336$as_echo "yes" >&6; }
35337    tst_links_sigsetjmp="yes"
35338
35339else
35340
35341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35342$as_echo "no" >&6; }
35343    tst_links_sigsetjmp="no"
35344
35345fi
35346rm -f core conftest.err conftest.$ac_objext \
35347    conftest$ac_exeext conftest.$ac_ext
35348  #
35349  if test "$tst_links_sigsetjmp" = "no"; then
35350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
35351$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
35352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35353/* end confdefs.h.  */
35354
35355
35356        $curl_includes_setjmp
35357
35358int main (void)
35359{
35360
35361        sigjmp_buf env;
35362        if(0 != sigsetjmp(env, 0))
35363          return 1;
35364
35365 ;
35366 return 0;
35367}
35368
35369_ACEOF
35370if ac_fn_c_try_link "$LINENO"; then :
35371
35372      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35373$as_echo "yes" >&6; }
35374      tst_macro_sigsetjmp="yes"
35375
35376else
35377
35378      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35379$as_echo "no" >&6; }
35380      tst_macro_sigsetjmp="no"
35381
35382fi
35383rm -f core conftest.err conftest.$ac_objext \
35384    conftest$ac_exeext conftest.$ac_ext
35385  fi
35386  #
35387  if test "$tst_links_sigsetjmp" = "yes"; then
35388    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
35389$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
35390    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35391/* end confdefs.h.  */
35392
35393      $curl_includes_setjmp
35394
35395_ACEOF
35396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35397  $EGREP "sigsetjmp" >/dev/null 2>&1; then :
35398
35399      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35400$as_echo "yes" >&6; }
35401      tst_proto_sigsetjmp="yes"
35402
35403else
35404
35405      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35406$as_echo "no" >&6; }
35407      tst_proto_sigsetjmp="no"
35408
35409fi
35410rm -f conftest*
35411
35412  fi
35413  #
35414  if test "$tst_proto_sigsetjmp" = "yes" ||
35415     test "$tst_macro_sigsetjmp" = "yes"; then
35416    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
35417$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
35418    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35419/* end confdefs.h.  */
35420
35421
35422        $curl_includes_setjmp
35423
35424int main (void)
35425{
35426
35427        sigjmp_buf env;
35428        if(0 != sigsetjmp(env, 0))
35429          return 1;
35430
35431 ;
35432 return 0;
35433}
35434
35435_ACEOF
35436if ac_fn_c_try_compile "$LINENO"; then :
35437
35438      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35439$as_echo "yes" >&6; }
35440      tst_compi_sigsetjmp="yes"
35441
35442else
35443
35444      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35445$as_echo "no" >&6; }
35446      tst_compi_sigsetjmp="no"
35447
35448fi
35449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35450  fi
35451  #
35452  if test "$tst_compi_sigsetjmp" = "yes"; then
35453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
35454$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
35455    if test "x$curl_disallow_sigsetjmp" != "xyes"; then
35456      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35457$as_echo "yes" >&6; }
35458      tst_allow_sigsetjmp="yes"
35459    else
35460      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35461$as_echo "no" >&6; }
35462      tst_allow_sigsetjmp="no"
35463    fi
35464  fi
35465  #
35466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
35467$as_echo_n "checking if sigsetjmp might be used... " >&6; }
35468  if (test "$tst_proto_sigsetjmp" = "yes" ||
35469      test "$tst_macro_sigsetjmp" = "yes") &&
35470     test "$tst_compi_sigsetjmp" = "yes" &&
35471     test "$tst_allow_sigsetjmp" = "yes"; then
35472    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35473$as_echo "yes" >&6; }
35474
35475cat >>confdefs.h <<_ACEOF
35476#define HAVE_SIGSETJMP 1
35477_ACEOF
35478
35479    ac_cv_func_sigsetjmp="yes"
35480  else
35481    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35482$as_echo "no" >&6; }
35483    ac_cv_func_sigsetjmp="no"
35484  fi
35485
35486
35487        #
35488  tst_links_socket="unknown"
35489  tst_proto_socket="unknown"
35490  tst_compi_socket="unknown"
35491  tst_allow_socket="unknown"
35492  #
35493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
35494$as_echo_n "checking if socket can be linked... " >&6; }
35495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35496/* end confdefs.h.  */
35497
35498
35499      $curl_includes_winsock2
35500      $curl_includes_sys_socket
35501      $curl_includes_socket
35502
35503int main (void)
35504{
35505
35506      if(0 != socket(0, 0, 0))
35507        return 1;
35508
35509 ;
35510 return 0;
35511}
35512
35513_ACEOF
35514if ac_fn_c_try_link "$LINENO"; then :
35515
35516    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35517$as_echo "yes" >&6; }
35518    tst_links_socket="yes"
35519
35520else
35521
35522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35523$as_echo "no" >&6; }
35524    tst_links_socket="no"
35525
35526fi
35527rm -f core conftest.err conftest.$ac_objext \
35528    conftest$ac_exeext conftest.$ac_ext
35529  #
35530  if test "$tst_links_socket" = "yes"; then
35531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
35532$as_echo_n "checking if socket is prototyped... " >&6; }
35533    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35534/* end confdefs.h.  */
35535
35536      $curl_includes_winsock2
35537      $curl_includes_sys_socket
35538      $curl_includes_socket
35539
35540_ACEOF
35541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35542  $EGREP "socket" >/dev/null 2>&1; then :
35543
35544      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35545$as_echo "yes" >&6; }
35546      tst_proto_socket="yes"
35547
35548else
35549
35550      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35551$as_echo "no" >&6; }
35552      tst_proto_socket="no"
35553
35554fi
35555rm -f conftest*
35556
35557  fi
35558  #
35559  if test "$tst_proto_socket" = "yes"; then
35560    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
35561$as_echo_n "checking if socket is compilable... " >&6; }
35562    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35563/* end confdefs.h.  */
35564
35565
35566        $curl_includes_winsock2
35567        $curl_includes_sys_socket
35568        $curl_includes_socket
35569
35570int main (void)
35571{
35572
35573        if(0 != socket(0, 0, 0))
35574          return 1;
35575
35576 ;
35577 return 0;
35578}
35579
35580_ACEOF
35581if ac_fn_c_try_compile "$LINENO"; then :
35582
35583      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35584$as_echo "yes" >&6; }
35585      tst_compi_socket="yes"
35586
35587else
35588
35589      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35590$as_echo "no" >&6; }
35591      tst_compi_socket="no"
35592
35593fi
35594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35595  fi
35596  #
35597  if test "$tst_compi_socket" = "yes"; then
35598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
35599$as_echo_n "checking if socket usage allowed... " >&6; }
35600    if test "x$curl_disallow_socket" != "xyes"; then
35601      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35602$as_echo "yes" >&6; }
35603      tst_allow_socket="yes"
35604    else
35605      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35606$as_echo "no" >&6; }
35607      tst_allow_socket="no"
35608    fi
35609  fi
35610  #
35611  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
35612$as_echo_n "checking if socket might be used... " >&6; }
35613  if test "$tst_links_socket" = "yes" &&
35614     test "$tst_proto_socket" = "yes" &&
35615     test "$tst_compi_socket" = "yes" &&
35616     test "$tst_allow_socket" = "yes"; then
35617    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35618$as_echo "yes" >&6; }
35619
35620cat >>confdefs.h <<_ACEOF
35621#define HAVE_SOCKET 1
35622_ACEOF
35623
35624    ac_cv_func_socket="yes"
35625  else
35626    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35627$as_echo "no" >&6; }
35628    ac_cv_func_socket="no"
35629  fi
35630
35631
35632      #
35633  tst_links_socketpair="unknown"
35634  tst_proto_socketpair="unknown"
35635  tst_compi_socketpair="unknown"
35636  tst_allow_socketpair="unknown"
35637  #
35638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
35639$as_echo_n "checking if socketpair can be linked... " >&6; }
35640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35641/* end confdefs.h.  */
35642
35643
35644#define socketpair innocuous_socketpair
35645#ifdef __STDC__
35646# include <limits.h>
35647#else
35648# include <assert.h>
35649#endif
35650#undef socketpair
35651#ifdef __cplusplus
35652extern "C"
35653#endif
35654char socketpair ();
35655#if defined __stub_socketpair || defined __stub___socketpair
35656choke me
35657#endif
35658
35659int main (void)
35660{
35661return socketpair ();
35662 ;
35663 return 0;
35664}
35665
35666_ACEOF
35667if ac_fn_c_try_link "$LINENO"; then :
35668
35669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35670$as_echo "yes" >&6; }
35671    tst_links_socketpair="yes"
35672
35673else
35674
35675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35676$as_echo "no" >&6; }
35677    tst_links_socketpair="no"
35678
35679fi
35680rm -f core conftest.err conftest.$ac_objext \
35681    conftest$ac_exeext conftest.$ac_ext
35682  #
35683  if test "$tst_links_socketpair" = "yes"; then
35684    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
35685$as_echo_n "checking if socketpair is prototyped... " >&6; }
35686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35687/* end confdefs.h.  */
35688
35689      $curl_includes_sys_socket
35690      $curl_includes_socket
35691
35692_ACEOF
35693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35694  $EGREP "socketpair" >/dev/null 2>&1; then :
35695
35696      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35697$as_echo "yes" >&6; }
35698      tst_proto_socketpair="yes"
35699
35700else
35701
35702      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35703$as_echo "no" >&6; }
35704      tst_proto_socketpair="no"
35705
35706fi
35707rm -f conftest*
35708
35709  fi
35710  #
35711  if test "$tst_proto_socketpair" = "yes"; then
35712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
35713$as_echo_n "checking if socketpair is compilable... " >&6; }
35714    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35715/* end confdefs.h.  */
35716
35717
35718        $curl_includes_sys_socket
35719        $curl_includes_socket
35720
35721int main (void)
35722{
35723
35724        int sv[2];
35725        if(0 != socketpair(0, 0, 0, sv))
35726          return 1;
35727
35728 ;
35729 return 0;
35730}
35731
35732_ACEOF
35733if ac_fn_c_try_compile "$LINENO"; then :
35734
35735      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35736$as_echo "yes" >&6; }
35737      tst_compi_socketpair="yes"
35738
35739else
35740
35741      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35742$as_echo "no" >&6; }
35743      tst_compi_socketpair="no"
35744
35745fi
35746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35747  fi
35748  #
35749  if test "$tst_compi_socketpair" = "yes"; then
35750    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
35751$as_echo_n "checking if socketpair usage allowed... " >&6; }
35752    if test "x$curl_disallow_socketpair" != "xyes"; then
35753      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35754$as_echo "yes" >&6; }
35755      tst_allow_socketpair="yes"
35756    else
35757      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35758$as_echo "no" >&6; }
35759      tst_allow_socketpair="no"
35760    fi
35761  fi
35762  #
35763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
35764$as_echo_n "checking if socketpair might be used... " >&6; }
35765  if test "$tst_links_socketpair" = "yes" &&
35766     test "$tst_proto_socketpair" = "yes" &&
35767     test "$tst_compi_socketpair" = "yes" &&
35768     test "$tst_allow_socketpair" = "yes"; then
35769    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35770$as_echo "yes" >&6; }
35771
35772cat >>confdefs.h <<_ACEOF
35773#define HAVE_SOCKETPAIR 1
35774_ACEOF
35775
35776    ac_cv_func_socketpair="yes"
35777  else
35778    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35779$as_echo "no" >&6; }
35780    ac_cv_func_socketpair="no"
35781  fi
35782
35783
35784    #
35785  tst_links_strcasecmp="unknown"
35786  tst_proto_strcasecmp="unknown"
35787  tst_compi_strcasecmp="unknown"
35788  tst_allow_strcasecmp="unknown"
35789  #
35790  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
35791$as_echo_n "checking if strcasecmp can be linked... " >&6; }
35792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35793/* end confdefs.h.  */
35794
35795
35796#define strcasecmp innocuous_strcasecmp
35797#ifdef __STDC__
35798# include <limits.h>
35799#else
35800# include <assert.h>
35801#endif
35802#undef strcasecmp
35803#ifdef __cplusplus
35804extern "C"
35805#endif
35806char strcasecmp ();
35807#if defined __stub_strcasecmp || defined __stub___strcasecmp
35808choke me
35809#endif
35810
35811int main (void)
35812{
35813return strcasecmp ();
35814 ;
35815 return 0;
35816}
35817
35818_ACEOF
35819if ac_fn_c_try_link "$LINENO"; then :
35820
35821    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822$as_echo "yes" >&6; }
35823    tst_links_strcasecmp="yes"
35824
35825else
35826
35827    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35828$as_echo "no" >&6; }
35829    tst_links_strcasecmp="no"
35830
35831fi
35832rm -f core conftest.err conftest.$ac_objext \
35833    conftest$ac_exeext conftest.$ac_ext
35834  #
35835  if test "$tst_links_strcasecmp" = "yes"; then
35836    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
35837$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
35838    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35839/* end confdefs.h.  */
35840
35841      $curl_includes_string
35842
35843_ACEOF
35844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35845  $EGREP "strcasecmp" >/dev/null 2>&1; then :
35846
35847      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35848$as_echo "yes" >&6; }
35849      tst_proto_strcasecmp="yes"
35850
35851else
35852
35853      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35854$as_echo "no" >&6; }
35855      tst_proto_strcasecmp="no"
35856
35857fi
35858rm -f conftest*
35859
35860  fi
35861  #
35862  if test "$tst_proto_strcasecmp" = "yes"; then
35863    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
35864$as_echo_n "checking if strcasecmp is compilable... " >&6; }
35865    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35866/* end confdefs.h.  */
35867
35868
35869        $curl_includes_string
35870
35871int main (void)
35872{
35873
35874        if(0 != strcasecmp(0, 0))
35875          return 1;
35876
35877 ;
35878 return 0;
35879}
35880
35881_ACEOF
35882if ac_fn_c_try_compile "$LINENO"; then :
35883
35884      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35885$as_echo "yes" >&6; }
35886      tst_compi_strcasecmp="yes"
35887
35888else
35889
35890      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35891$as_echo "no" >&6; }
35892      tst_compi_strcasecmp="no"
35893
35894fi
35895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35896  fi
35897  #
35898  if test "$tst_compi_strcasecmp" = "yes"; then
35899    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
35900$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
35901    if test "x$curl_disallow_strcasecmp" != "xyes"; then
35902      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35903$as_echo "yes" >&6; }
35904      tst_allow_strcasecmp="yes"
35905    else
35906      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35907$as_echo "no" >&6; }
35908      tst_allow_strcasecmp="no"
35909    fi
35910  fi
35911  #
35912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
35913$as_echo_n "checking if strcasecmp might be used... " >&6; }
35914  if test "$tst_links_strcasecmp" = "yes" &&
35915     test "$tst_proto_strcasecmp" = "yes" &&
35916     test "$tst_compi_strcasecmp" = "yes" &&
35917     test "$tst_allow_strcasecmp" = "yes"; then
35918    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35919$as_echo "yes" >&6; }
35920
35921cat >>confdefs.h <<_ACEOF
35922#define HAVE_STRCASECMP 1
35923_ACEOF
35924
35925    ac_cv_func_strcasecmp="yes"
35926  else
35927    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35928$as_echo "no" >&6; }
35929    ac_cv_func_strcasecmp="no"
35930  fi
35931
35932
35933    #
35934  tst_links_strcmpi="unknown"
35935  tst_proto_strcmpi="unknown"
35936  tst_compi_strcmpi="unknown"
35937  tst_allow_strcmpi="unknown"
35938  #
35939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
35940$as_echo_n "checking if strcmpi can be linked... " >&6; }
35941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35942/* end confdefs.h.  */
35943
35944
35945#define strcmpi innocuous_strcmpi
35946#ifdef __STDC__
35947# include <limits.h>
35948#else
35949# include <assert.h>
35950#endif
35951#undef strcmpi
35952#ifdef __cplusplus
35953extern "C"
35954#endif
35955char strcmpi ();
35956#if defined __stub_strcmpi || defined __stub___strcmpi
35957choke me
35958#endif
35959
35960int main (void)
35961{
35962return strcmpi ();
35963 ;
35964 return 0;
35965}
35966
35967_ACEOF
35968if ac_fn_c_try_link "$LINENO"; then :
35969
35970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35971$as_echo "yes" >&6; }
35972    tst_links_strcmpi="yes"
35973
35974else
35975
35976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35977$as_echo "no" >&6; }
35978    tst_links_strcmpi="no"
35979
35980fi
35981rm -f core conftest.err conftest.$ac_objext \
35982    conftest$ac_exeext conftest.$ac_ext
35983  #
35984  if test "$tst_links_strcmpi" = "yes"; then
35985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
35986$as_echo_n "checking if strcmpi is prototyped... " >&6; }
35987    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35988/* end confdefs.h.  */
35989
35990      $curl_includes_string
35991
35992_ACEOF
35993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35994  $EGREP "strcmpi" >/dev/null 2>&1; then :
35995
35996      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35997$as_echo "yes" >&6; }
35998      tst_proto_strcmpi="yes"
35999
36000else
36001
36002      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36003$as_echo "no" >&6; }
36004      tst_proto_strcmpi="no"
36005
36006fi
36007rm -f conftest*
36008
36009  fi
36010  #
36011  if test "$tst_proto_strcmpi" = "yes"; then
36012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
36013$as_echo_n "checking if strcmpi is compilable... " >&6; }
36014    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36015/* end confdefs.h.  */
36016
36017
36018        $curl_includes_string
36019
36020int main (void)
36021{
36022
36023        if(0 != strcmpi(0, 0))
36024          return 1;
36025
36026 ;
36027 return 0;
36028}
36029
36030_ACEOF
36031if ac_fn_c_try_compile "$LINENO"; then :
36032
36033      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36034$as_echo "yes" >&6; }
36035      tst_compi_strcmpi="yes"
36036
36037else
36038
36039      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36040$as_echo "no" >&6; }
36041      tst_compi_strcmpi="no"
36042
36043fi
36044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36045  fi
36046  #
36047  if test "$tst_compi_strcmpi" = "yes"; then
36048    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
36049$as_echo_n "checking if strcmpi usage allowed... " >&6; }
36050    if test "x$curl_disallow_strcmpi" != "xyes"; then
36051      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36052$as_echo "yes" >&6; }
36053      tst_allow_strcmpi="yes"
36054    else
36055      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36056$as_echo "no" >&6; }
36057      tst_allow_strcmpi="no"
36058    fi
36059  fi
36060  #
36061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
36062$as_echo_n "checking if strcmpi might be used... " >&6; }
36063  if test "$tst_links_strcmpi" = "yes" &&
36064     test "$tst_proto_strcmpi" = "yes" &&
36065     test "$tst_compi_strcmpi" = "yes" &&
36066     test "$tst_allow_strcmpi" = "yes"; then
36067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36068$as_echo "yes" >&6; }
36069
36070cat >>confdefs.h <<_ACEOF
36071#define HAVE_STRCMPI 1
36072_ACEOF
36073
36074    ac_cv_func_strcmpi="yes"
36075  else
36076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36077$as_echo "no" >&6; }
36078    ac_cv_func_strcmpi="no"
36079  fi
36080
36081
36082    #
36083  tst_links_strdup="unknown"
36084  tst_proto_strdup="unknown"
36085  tst_compi_strdup="unknown"
36086  tst_allow_strdup="unknown"
36087  #
36088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
36089$as_echo_n "checking if strdup can be linked... " >&6; }
36090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36091/* end confdefs.h.  */
36092
36093
36094#define strdup innocuous_strdup
36095#ifdef __STDC__
36096# include <limits.h>
36097#else
36098# include <assert.h>
36099#endif
36100#undef strdup
36101#ifdef __cplusplus
36102extern "C"
36103#endif
36104char strdup ();
36105#if defined __stub_strdup || defined __stub___strdup
36106choke me
36107#endif
36108
36109int main (void)
36110{
36111return strdup ();
36112 ;
36113 return 0;
36114}
36115
36116_ACEOF
36117if ac_fn_c_try_link "$LINENO"; then :
36118
36119    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36120$as_echo "yes" >&6; }
36121    tst_links_strdup="yes"
36122
36123else
36124
36125    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36126$as_echo "no" >&6; }
36127    tst_links_strdup="no"
36128
36129fi
36130rm -f core conftest.err conftest.$ac_objext \
36131    conftest$ac_exeext conftest.$ac_ext
36132  #
36133  if test "$tst_links_strdup" = "yes"; then
36134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
36135$as_echo_n "checking if strdup is prototyped... " >&6; }
36136    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36137/* end confdefs.h.  */
36138
36139      $curl_includes_string
36140
36141_ACEOF
36142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36143  $EGREP "strdup" >/dev/null 2>&1; then :
36144
36145      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36146$as_echo "yes" >&6; }
36147      tst_proto_strdup="yes"
36148
36149else
36150
36151      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36152$as_echo "no" >&6; }
36153      tst_proto_strdup="no"
36154
36155fi
36156rm -f conftest*
36157
36158  fi
36159  #
36160  if test "$tst_proto_strdup" = "yes"; then
36161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
36162$as_echo_n "checking if strdup is compilable... " >&6; }
36163    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36164/* end confdefs.h.  */
36165
36166
36167        $curl_includes_string
36168
36169int main (void)
36170{
36171
36172        if(0 != strdup(0))
36173          return 1;
36174
36175 ;
36176 return 0;
36177}
36178
36179_ACEOF
36180if ac_fn_c_try_compile "$LINENO"; then :
36181
36182      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36183$as_echo "yes" >&6; }
36184      tst_compi_strdup="yes"
36185
36186else
36187
36188      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36189$as_echo "no" >&6; }
36190      tst_compi_strdup="no"
36191
36192fi
36193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36194  fi
36195  #
36196  if test "$tst_compi_strdup" = "yes"; then
36197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
36198$as_echo_n "checking if strdup usage allowed... " >&6; }
36199    if test "x$curl_disallow_strdup" != "xyes"; then
36200      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36201$as_echo "yes" >&6; }
36202      tst_allow_strdup="yes"
36203    else
36204      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36205$as_echo "no" >&6; }
36206      tst_allow_strdup="no"
36207    fi
36208  fi
36209  #
36210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
36211$as_echo_n "checking if strdup might be used... " >&6; }
36212  if test "$tst_links_strdup" = "yes" &&
36213     test "$tst_proto_strdup" = "yes" &&
36214     test "$tst_compi_strdup" = "yes" &&
36215     test "$tst_allow_strdup" = "yes"; then
36216    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36217$as_echo "yes" >&6; }
36218
36219cat >>confdefs.h <<_ACEOF
36220#define HAVE_STRDUP 1
36221_ACEOF
36222
36223    ac_cv_func_strdup="yes"
36224  else
36225    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36226$as_echo "no" >&6; }
36227    ac_cv_func_strdup="no"
36228  fi
36229
36230
36231      #
36232  tst_links_strerror_r="unknown"
36233  tst_proto_strerror_r="unknown"
36234  tst_compi_strerror_r="unknown"
36235  tst_glibc_strerror_r="unknown"
36236  tst_posix_strerror_r="unknown"
36237  tst_allow_strerror_r="unknown"
36238  tst_works_glibc_strerror_r="unknown"
36239  tst_works_posix_strerror_r="unknown"
36240  tst_glibc_strerror_r_type_arg3="unknown"
36241  tst_posix_strerror_r_type_arg3="unknown"
36242  #
36243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
36244$as_echo_n "checking if strerror_r can be linked... " >&6; }
36245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36246/* end confdefs.h.  */
36247
36248
36249#define strerror_r innocuous_strerror_r
36250#ifdef __STDC__
36251# include <limits.h>
36252#else
36253# include <assert.h>
36254#endif
36255#undef strerror_r
36256#ifdef __cplusplus
36257extern "C"
36258#endif
36259char strerror_r ();
36260#if defined __stub_strerror_r || defined __stub___strerror_r
36261choke me
36262#endif
36263
36264int main (void)
36265{
36266return strerror_r ();
36267 ;
36268 return 0;
36269}
36270
36271_ACEOF
36272if ac_fn_c_try_link "$LINENO"; then :
36273
36274    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36275$as_echo "yes" >&6; }
36276    tst_links_strerror_r="yes"
36277
36278else
36279
36280    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36281$as_echo "no" >&6; }
36282    tst_links_strerror_r="no"
36283
36284fi
36285rm -f core conftest.err conftest.$ac_objext \
36286    conftest$ac_exeext conftest.$ac_ext
36287  #
36288  if test "$tst_links_strerror_r" = "yes"; then
36289    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
36290$as_echo_n "checking if strerror_r is prototyped... " >&6; }
36291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36292/* end confdefs.h.  */
36293
36294      $curl_includes_string
36295
36296_ACEOF
36297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36298  $EGREP "strerror_r" >/dev/null 2>&1; then :
36299
36300      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36301$as_echo "yes" >&6; }
36302      tst_proto_strerror_r="yes"
36303
36304else
36305
36306      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36307$as_echo "no" >&6; }
36308      tst_proto_strerror_r="no"
36309
36310fi
36311rm -f conftest*
36312
36313  fi
36314  #
36315  if test "$tst_proto_strerror_r" = "yes"; then
36316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
36317$as_echo_n "checking if strerror_r is compilable... " >&6; }
36318    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36319/* end confdefs.h.  */
36320
36321
36322        $curl_includes_string
36323
36324int main (void)
36325{
36326
36327        if(0 != strerror_r(0, 0, 0))
36328          return 1;
36329
36330 ;
36331 return 0;
36332}
36333
36334_ACEOF
36335if ac_fn_c_try_compile "$LINENO"; then :
36336
36337      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36338$as_echo "yes" >&6; }
36339      tst_compi_strerror_r="yes"
36340
36341else
36342
36343      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36344$as_echo "no" >&6; }
36345      tst_compi_strerror_r="no"
36346
36347fi
36348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36349  fi
36350  #
36351  if test "$tst_compi_strerror_r" = "yes"; then
36352    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
36353$as_echo_n "checking if strerror_r is glibc like... " >&6; }
36354    tst_glibc_strerror_r_type_arg3="unknown"
36355    for arg3 in 'size_t' 'int' 'unsigned int'; do
36356      if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
36357        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36358/* end confdefs.h.  */
36359
36360
36361            $curl_includes_string
36362            char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
36363
36364int main (void)
36365{
36366
36367            if(0 != strerror_r(0, 0, 0))
36368              return 1;
36369
36370 ;
36371 return 0;
36372}
36373
36374_ACEOF
36375if ac_fn_c_try_compile "$LINENO"; then :
36376
36377          tst_glibc_strerror_r_type_arg3="$arg3"
36378
36379fi
36380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36381      fi
36382    done
36383    case "$tst_glibc_strerror_r_type_arg3" in
36384      unknown)
36385        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36386$as_echo "no" >&6; }
36387        tst_glibc_strerror_r="no"
36388        ;;
36389      *)
36390        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36391$as_echo "yes" >&6; }
36392        tst_glibc_strerror_r="yes"
36393        ;;
36394    esac
36395  fi
36396  #
36397    if test "x$cross_compiling" != "xyes" &&
36398    test "$tst_glibc_strerror_r" = "yes"; then
36399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36400$as_echo_n "checking if strerror_r seems to work... " >&6; }
36401    if test "$cross_compiling" = yes; then :
36402  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36404as_fn_error $? "cannot run test program while cross compiling
36405See \`config.log' for more details" "$LINENO" 5; }
36406else
36407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36408/* end confdefs.h.  */
36409
36410
36411        $curl_includes_stdlib
36412        $curl_includes_string
36413#       include <errno.h>
36414
36415int main (void)
36416{
36417
36418        char buffer[1024];
36419        char *string = 0;
36420        buffer[0] = '\0';
36421        string = strerror_r(EACCES, buffer, sizeof(buffer));
36422        if(!string)
36423          exit(1); /* fail */
36424        if(!string[0])
36425          exit(1); /* fail */
36426        else
36427          exit(0);
36428
36429 ;
36430 return 0;
36431}
36432
36433_ACEOF
36434if ac_fn_c_try_run "$LINENO"; then :
36435
36436      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36437$as_echo "yes" >&6; }
36438      tst_works_glibc_strerror_r="yes"
36439
36440else
36441
36442      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36443$as_echo "no" >&6; }
36444      tst_works_glibc_strerror_r="no"
36445
36446fi
36447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36448  conftest.$ac_objext conftest.beam conftest.$ac_ext
36449fi
36450
36451  fi
36452  #
36453  if test "$tst_compi_strerror_r" = "yes" &&
36454    test "$tst_works_glibc_strerror_r" != "yes"; then
36455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
36456$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
36457    tst_posix_strerror_r_type_arg3="unknown"
36458    for arg3 in 'size_t' 'int' 'unsigned int'; do
36459      if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
36460        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36461/* end confdefs.h.  */
36462
36463
36464            $curl_includes_string
36465            int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
36466
36467int main (void)
36468{
36469
36470            if(0 != strerror_r(0, 0, 0))
36471              return 1;
36472
36473 ;
36474 return 0;
36475}
36476
36477_ACEOF
36478if ac_fn_c_try_compile "$LINENO"; then :
36479
36480          tst_posix_strerror_r_type_arg3="$arg3"
36481
36482fi
36483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36484      fi
36485    done
36486    case "$tst_posix_strerror_r_type_arg3" in
36487      unknown)
36488        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36489$as_echo "no" >&6; }
36490        tst_posix_strerror_r="no"
36491        ;;
36492      *)
36493        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36494$as_echo "yes" >&6; }
36495        tst_posix_strerror_r="yes"
36496        ;;
36497    esac
36498  fi
36499  #
36500    if test "x$cross_compiling" != "xyes" &&
36501    test "$tst_posix_strerror_r" = "yes"; then
36502    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36503$as_echo_n "checking if strerror_r seems to work... " >&6; }
36504    if test "$cross_compiling" = yes; then :
36505  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36507as_fn_error $? "cannot run test program while cross compiling
36508See \`config.log' for more details" "$LINENO" 5; }
36509else
36510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36511/* end confdefs.h.  */
36512
36513
36514        $curl_includes_stdlib
36515        $curl_includes_string
36516#       include <errno.h>
36517
36518int main (void)
36519{
36520
36521        char buffer[1024];
36522        int error = 1;
36523        buffer[0] = '\0';
36524        error = strerror_r(EACCES, buffer, sizeof(buffer));
36525        if(error)
36526          exit(1); /* fail */
36527        if(buffer[0] == '\0')
36528          exit(1); /* fail */
36529        else
36530          exit(0);
36531
36532 ;
36533 return 0;
36534}
36535
36536_ACEOF
36537if ac_fn_c_try_run "$LINENO"; then :
36538
36539      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36540$as_echo "yes" >&6; }
36541      tst_works_posix_strerror_r="yes"
36542
36543else
36544
36545      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36546$as_echo "no" >&6; }
36547      tst_works_posix_strerror_r="no"
36548
36549fi
36550rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36551  conftest.$ac_objext conftest.beam conftest.$ac_ext
36552fi
36553
36554  fi
36555  #
36556  if test "$tst_works_glibc_strerror_r" = "yes"; then
36557    tst_posix_strerror_r="no"
36558  fi
36559  if test "$tst_works_posix_strerror_r" = "yes"; then
36560    tst_glibc_strerror_r="no"
36561  fi
36562  if test "$tst_glibc_strerror_r" = "yes" &&
36563    test "$tst_works_glibc_strerror_r" != "no" &&
36564    test "$tst_posix_strerror_r" != "yes"; then
36565    tst_allow_strerror_r="check"
36566  fi
36567  if test "$tst_posix_strerror_r" = "yes" &&
36568    test "$tst_works_posix_strerror_r" != "no" &&
36569    test "$tst_glibc_strerror_r" != "yes"; then
36570    tst_allow_strerror_r="check"
36571  fi
36572  if test "$tst_allow_strerror_r" = "check"; then
36573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
36574$as_echo_n "checking if strerror_r usage allowed... " >&6; }
36575    if test "x$curl_disallow_strerror_r" != "xyes"; then
36576      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36577$as_echo "yes" >&6; }
36578      tst_allow_strerror_r="yes"
36579    else
36580      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36581$as_echo "no" >&6; }
36582      tst_allow_strerror_r="no"
36583    fi
36584  fi
36585  #
36586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
36587$as_echo_n "checking if strerror_r might be used... " >&6; }
36588  if test "$tst_links_strerror_r" = "yes" &&
36589     test "$tst_proto_strerror_r" = "yes" &&
36590     test "$tst_compi_strerror_r" = "yes" &&
36591     test "$tst_allow_strerror_r" = "yes"; then
36592    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36593$as_echo "yes" >&6; }
36594    if test "$tst_glibc_strerror_r" = "yes"; then
36595
36596cat >>confdefs.h <<_ACEOF
36597#define HAVE_STRERROR_R 1
36598_ACEOF
36599
36600
36601cat >>confdefs.h <<_ACEOF
36602#define HAVE_GLIBC_STRERROR_R 1
36603_ACEOF
36604
36605
36606cat >>confdefs.h <<_ACEOF
36607#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
36608_ACEOF
36609
36610    fi
36611    if test "$tst_posix_strerror_r" = "yes"; then
36612
36613cat >>confdefs.h <<_ACEOF
36614#define HAVE_STRERROR_R 1
36615_ACEOF
36616
36617
36618cat >>confdefs.h <<_ACEOF
36619#define HAVE_POSIX_STRERROR_R 1
36620_ACEOF
36621
36622
36623cat >>confdefs.h <<_ACEOF
36624#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
36625_ACEOF
36626
36627    fi
36628    ac_cv_func_strerror_r="yes"
36629  else
36630    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36631$as_echo "no" >&6; }
36632    ac_cv_func_strerror_r="no"
36633  fi
36634  #
36635  if test "$tst_compi_strerror_r" = "yes" &&
36636     test "$tst_allow_strerror_r" = "unknown"; then
36637    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
36638$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
36639  fi
36640  #
36641
36642
36643    #
36644  tst_links_stricmp="unknown"
36645  tst_proto_stricmp="unknown"
36646  tst_compi_stricmp="unknown"
36647  tst_allow_stricmp="unknown"
36648  #
36649  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
36650$as_echo_n "checking if stricmp can be linked... " >&6; }
36651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36652/* end confdefs.h.  */
36653
36654
36655#define stricmp innocuous_stricmp
36656#ifdef __STDC__
36657# include <limits.h>
36658#else
36659# include <assert.h>
36660#endif
36661#undef stricmp
36662#ifdef __cplusplus
36663extern "C"
36664#endif
36665char stricmp ();
36666#if defined __stub_stricmp || defined __stub___stricmp
36667choke me
36668#endif
36669
36670int main (void)
36671{
36672return stricmp ();
36673 ;
36674 return 0;
36675}
36676
36677_ACEOF
36678if ac_fn_c_try_link "$LINENO"; then :
36679
36680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36681$as_echo "yes" >&6; }
36682    tst_links_stricmp="yes"
36683
36684else
36685
36686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36687$as_echo "no" >&6; }
36688    tst_links_stricmp="no"
36689
36690fi
36691rm -f core conftest.err conftest.$ac_objext \
36692    conftest$ac_exeext conftest.$ac_ext
36693  #
36694  if test "$tst_links_stricmp" = "yes"; then
36695    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
36696$as_echo_n "checking if stricmp is prototyped... " >&6; }
36697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36698/* end confdefs.h.  */
36699
36700      $curl_includes_string
36701
36702_ACEOF
36703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36704  $EGREP "stricmp" >/dev/null 2>&1; then :
36705
36706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36707$as_echo "yes" >&6; }
36708      tst_proto_stricmp="yes"
36709
36710else
36711
36712      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36713$as_echo "no" >&6; }
36714      tst_proto_stricmp="no"
36715
36716fi
36717rm -f conftest*
36718
36719  fi
36720  #
36721  if test "$tst_proto_stricmp" = "yes"; then
36722    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
36723$as_echo_n "checking if stricmp is compilable... " >&6; }
36724    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36725/* end confdefs.h.  */
36726
36727
36728        $curl_includes_string
36729
36730int main (void)
36731{
36732
36733        if(0 != stricmp(0, 0))
36734          return 1;
36735
36736 ;
36737 return 0;
36738}
36739
36740_ACEOF
36741if ac_fn_c_try_compile "$LINENO"; then :
36742
36743      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36744$as_echo "yes" >&6; }
36745      tst_compi_stricmp="yes"
36746
36747else
36748
36749      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36750$as_echo "no" >&6; }
36751      tst_compi_stricmp="no"
36752
36753fi
36754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36755  fi
36756  #
36757  if test "$tst_compi_stricmp" = "yes"; then
36758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
36759$as_echo_n "checking if stricmp usage allowed... " >&6; }
36760    if test "x$curl_disallow_stricmp" != "xyes"; then
36761      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36762$as_echo "yes" >&6; }
36763      tst_allow_stricmp="yes"
36764    else
36765      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36766$as_echo "no" >&6; }
36767      tst_allow_stricmp="no"
36768    fi
36769  fi
36770  #
36771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
36772$as_echo_n "checking if stricmp might be used... " >&6; }
36773  if test "$tst_links_stricmp" = "yes" &&
36774     test "$tst_proto_stricmp" = "yes" &&
36775     test "$tst_compi_stricmp" = "yes" &&
36776     test "$tst_allow_stricmp" = "yes"; then
36777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36778$as_echo "yes" >&6; }
36779
36780cat >>confdefs.h <<_ACEOF
36781#define HAVE_STRICMP 1
36782_ACEOF
36783
36784    ac_cv_func_stricmp="yes"
36785  else
36786    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36787$as_echo "no" >&6; }
36788    ac_cv_func_stricmp="no"
36789  fi
36790
36791
36792    #
36793  tst_links_strncasecmp="unknown"
36794  tst_proto_strncasecmp="unknown"
36795  tst_compi_strncasecmp="unknown"
36796  tst_allow_strncasecmp="unknown"
36797  #
36798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
36799$as_echo_n "checking if strncasecmp can be linked... " >&6; }
36800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36801/* end confdefs.h.  */
36802
36803
36804#define strncasecmp innocuous_strncasecmp
36805#ifdef __STDC__
36806# include <limits.h>
36807#else
36808# include <assert.h>
36809#endif
36810#undef strncasecmp
36811#ifdef __cplusplus
36812extern "C"
36813#endif
36814char strncasecmp ();
36815#if defined __stub_strncasecmp || defined __stub___strncasecmp
36816choke me
36817#endif
36818
36819int main (void)
36820{
36821return strncasecmp ();
36822 ;
36823 return 0;
36824}
36825
36826_ACEOF
36827if ac_fn_c_try_link "$LINENO"; then :
36828
36829    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36830$as_echo "yes" >&6; }
36831    tst_links_strncasecmp="yes"
36832
36833else
36834
36835    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36836$as_echo "no" >&6; }
36837    tst_links_strncasecmp="no"
36838
36839fi
36840rm -f core conftest.err conftest.$ac_objext \
36841    conftest$ac_exeext conftest.$ac_ext
36842  #
36843  if test "$tst_links_strncasecmp" = "yes"; then
36844    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
36845$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
36846    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36847/* end confdefs.h.  */
36848
36849      $curl_includes_string
36850
36851_ACEOF
36852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36853  $EGREP "strncasecmp" >/dev/null 2>&1; then :
36854
36855      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36856$as_echo "yes" >&6; }
36857      tst_proto_strncasecmp="yes"
36858
36859else
36860
36861      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36862$as_echo "no" >&6; }
36863      tst_proto_strncasecmp="no"
36864
36865fi
36866rm -f conftest*
36867
36868  fi
36869  #
36870  if test "$tst_proto_strncasecmp" = "yes"; then
36871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
36872$as_echo_n "checking if strncasecmp is compilable... " >&6; }
36873    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36874/* end confdefs.h.  */
36875
36876
36877        $curl_includes_string
36878
36879int main (void)
36880{
36881
36882        if(0 != strncasecmp(0, 0, 0))
36883          return 1;
36884
36885 ;
36886 return 0;
36887}
36888
36889_ACEOF
36890if ac_fn_c_try_compile "$LINENO"; then :
36891
36892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36893$as_echo "yes" >&6; }
36894      tst_compi_strncasecmp="yes"
36895
36896else
36897
36898      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36899$as_echo "no" >&6; }
36900      tst_compi_strncasecmp="no"
36901
36902fi
36903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36904  fi
36905  #
36906  if test "$tst_compi_strncasecmp" = "yes"; then
36907    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
36908$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
36909    if test "x$curl_disallow_strncasecmp" != "xyes"; then
36910      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36911$as_echo "yes" >&6; }
36912      tst_allow_strncasecmp="yes"
36913    else
36914      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915$as_echo "no" >&6; }
36916      tst_allow_strncasecmp="no"
36917    fi
36918  fi
36919  #
36920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
36921$as_echo_n "checking if strncasecmp might be used... " >&6; }
36922  if test "$tst_links_strncasecmp" = "yes" &&
36923     test "$tst_proto_strncasecmp" = "yes" &&
36924     test "$tst_compi_strncasecmp" = "yes" &&
36925     test "$tst_allow_strncasecmp" = "yes"; then
36926    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36927$as_echo "yes" >&6; }
36928
36929cat >>confdefs.h <<_ACEOF
36930#define HAVE_STRNCASECMP 1
36931_ACEOF
36932
36933    ac_cv_func_strncasecmp="yes"
36934  else
36935    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36936$as_echo "no" >&6; }
36937    ac_cv_func_strncasecmp="no"
36938  fi
36939
36940
36941    #
36942  tst_links_strncmpi="unknown"
36943  tst_proto_strncmpi="unknown"
36944  tst_compi_strncmpi="unknown"
36945  tst_allow_strncmpi="unknown"
36946  #
36947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
36948$as_echo_n "checking if strncmpi can be linked... " >&6; }
36949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36950/* end confdefs.h.  */
36951
36952
36953#define strncmpi innocuous_strncmpi
36954#ifdef __STDC__
36955# include <limits.h>
36956#else
36957# include <assert.h>
36958#endif
36959#undef strncmpi
36960#ifdef __cplusplus
36961extern "C"
36962#endif
36963char strncmpi ();
36964#if defined __stub_strncmpi || defined __stub___strncmpi
36965choke me
36966#endif
36967
36968int main (void)
36969{
36970return strncmpi ();
36971 ;
36972 return 0;
36973}
36974
36975_ACEOF
36976if ac_fn_c_try_link "$LINENO"; then :
36977
36978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36979$as_echo "yes" >&6; }
36980    tst_links_strncmpi="yes"
36981
36982else
36983
36984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36985$as_echo "no" >&6; }
36986    tst_links_strncmpi="no"
36987
36988fi
36989rm -f core conftest.err conftest.$ac_objext \
36990    conftest$ac_exeext conftest.$ac_ext
36991  #
36992  if test "$tst_links_strncmpi" = "yes"; then
36993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
36994$as_echo_n "checking if strncmpi is prototyped... " >&6; }
36995    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36996/* end confdefs.h.  */
36997
36998      $curl_includes_string
36999
37000_ACEOF
37001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37002  $EGREP "strncmpi" >/dev/null 2>&1; then :
37003
37004      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37005$as_echo "yes" >&6; }
37006      tst_proto_strncmpi="yes"
37007
37008else
37009
37010      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37011$as_echo "no" >&6; }
37012      tst_proto_strncmpi="no"
37013
37014fi
37015rm -f conftest*
37016
37017  fi
37018  #
37019  if test "$tst_proto_strncmpi" = "yes"; then
37020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
37021$as_echo_n "checking if strncmpi is compilable... " >&6; }
37022    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37023/* end confdefs.h.  */
37024
37025
37026        $curl_includes_string
37027
37028int main (void)
37029{
37030
37031        if(0 != strncmpi(0, 0))
37032          return 1;
37033
37034 ;
37035 return 0;
37036}
37037
37038_ACEOF
37039if ac_fn_c_try_compile "$LINENO"; then :
37040
37041      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37042$as_echo "yes" >&6; }
37043      tst_compi_strncmpi="yes"
37044
37045else
37046
37047      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37048$as_echo "no" >&6; }
37049      tst_compi_strncmpi="no"
37050
37051fi
37052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37053  fi
37054  #
37055  if test "$tst_compi_strncmpi" = "yes"; then
37056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
37057$as_echo_n "checking if strncmpi usage allowed... " >&6; }
37058    if test "x$curl_disallow_strncmpi" != "xyes"; then
37059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37060$as_echo "yes" >&6; }
37061      tst_allow_strncmpi="yes"
37062    else
37063      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37064$as_echo "no" >&6; }
37065      tst_allow_strncmpi="no"
37066    fi
37067  fi
37068  #
37069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
37070$as_echo_n "checking if strncmpi might be used... " >&6; }
37071  if test "$tst_links_strncmpi" = "yes" &&
37072     test "$tst_proto_strncmpi" = "yes" &&
37073     test "$tst_compi_strncmpi" = "yes" &&
37074     test "$tst_allow_strncmpi" = "yes"; then
37075    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37076$as_echo "yes" >&6; }
37077
37078cat >>confdefs.h <<_ACEOF
37079#define HAVE_STRNCMPI 1
37080_ACEOF
37081
37082    ac_cv_func_strncmpi="yes"
37083  else
37084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37085$as_echo "no" >&6; }
37086    ac_cv_func_strncmpi="no"
37087  fi
37088
37089
37090    #
37091  tst_links_strnicmp="unknown"
37092  tst_proto_strnicmp="unknown"
37093  tst_compi_strnicmp="unknown"
37094  tst_allow_strnicmp="unknown"
37095  #
37096  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
37097$as_echo_n "checking if strnicmp can be linked... " >&6; }
37098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37099/* end confdefs.h.  */
37100
37101
37102#define strnicmp innocuous_strnicmp
37103#ifdef __STDC__
37104# include <limits.h>
37105#else
37106# include <assert.h>
37107#endif
37108#undef strnicmp
37109#ifdef __cplusplus
37110extern "C"
37111#endif
37112char strnicmp ();
37113#if defined __stub_strnicmp || defined __stub___strnicmp
37114choke me
37115#endif
37116
37117int main (void)
37118{
37119return strnicmp ();
37120 ;
37121 return 0;
37122}
37123
37124_ACEOF
37125if ac_fn_c_try_link "$LINENO"; then :
37126
37127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37128$as_echo "yes" >&6; }
37129    tst_links_strnicmp="yes"
37130
37131else
37132
37133    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37134$as_echo "no" >&6; }
37135    tst_links_strnicmp="no"
37136
37137fi
37138rm -f core conftest.err conftest.$ac_objext \
37139    conftest$ac_exeext conftest.$ac_ext
37140  #
37141  if test "$tst_links_strnicmp" = "yes"; then
37142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
37143$as_echo_n "checking if strnicmp is prototyped... " >&6; }
37144    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37145/* end confdefs.h.  */
37146
37147      $curl_includes_string
37148
37149_ACEOF
37150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37151  $EGREP "strnicmp" >/dev/null 2>&1; then :
37152
37153      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37154$as_echo "yes" >&6; }
37155      tst_proto_strnicmp="yes"
37156
37157else
37158
37159      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37160$as_echo "no" >&6; }
37161      tst_proto_strnicmp="no"
37162
37163fi
37164rm -f conftest*
37165
37166  fi
37167  #
37168  if test "$tst_proto_strnicmp" = "yes"; then
37169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
37170$as_echo_n "checking if strnicmp is compilable... " >&6; }
37171    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37172/* end confdefs.h.  */
37173
37174
37175        $curl_includes_string
37176
37177int main (void)
37178{
37179
37180        if(0 != strnicmp(0, 0))
37181          return 1;
37182
37183 ;
37184 return 0;
37185}
37186
37187_ACEOF
37188if ac_fn_c_try_compile "$LINENO"; then :
37189
37190      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37191$as_echo "yes" >&6; }
37192      tst_compi_strnicmp="yes"
37193
37194else
37195
37196      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37197$as_echo "no" >&6; }
37198      tst_compi_strnicmp="no"
37199
37200fi
37201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37202  fi
37203  #
37204  if test "$tst_compi_strnicmp" = "yes"; then
37205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
37206$as_echo_n "checking if strnicmp usage allowed... " >&6; }
37207    if test "x$curl_disallow_strnicmp" != "xyes"; then
37208      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37209$as_echo "yes" >&6; }
37210      tst_allow_strnicmp="yes"
37211    else
37212      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37213$as_echo "no" >&6; }
37214      tst_allow_strnicmp="no"
37215    fi
37216  fi
37217  #
37218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
37219$as_echo_n "checking if strnicmp might be used... " >&6; }
37220  if test "$tst_links_strnicmp" = "yes" &&
37221     test "$tst_proto_strnicmp" = "yes" &&
37222     test "$tst_compi_strnicmp" = "yes" &&
37223     test "$tst_allow_strnicmp" = "yes"; then
37224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37225$as_echo "yes" >&6; }
37226
37227cat >>confdefs.h <<_ACEOF
37228#define HAVE_STRNICMP 1
37229_ACEOF
37230
37231    ac_cv_func_strnicmp="yes"
37232  else
37233    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37234$as_echo "no" >&6; }
37235    ac_cv_func_strnicmp="no"
37236  fi
37237
37238
37239    #
37240  tst_links_strstr="unknown"
37241  tst_proto_strstr="unknown"
37242  tst_compi_strstr="unknown"
37243  tst_allow_strstr="unknown"
37244  #
37245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
37246$as_echo_n "checking if strstr can be linked... " >&6; }
37247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37248/* end confdefs.h.  */
37249
37250
37251#define strstr innocuous_strstr
37252#ifdef __STDC__
37253# include <limits.h>
37254#else
37255# include <assert.h>
37256#endif
37257#undef strstr
37258#ifdef __cplusplus
37259extern "C"
37260#endif
37261char strstr ();
37262#if defined __stub_strstr || defined __stub___strstr
37263choke me
37264#endif
37265
37266int main (void)
37267{
37268return strstr ();
37269 ;
37270 return 0;
37271}
37272
37273_ACEOF
37274if ac_fn_c_try_link "$LINENO"; then :
37275
37276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37277$as_echo "yes" >&6; }
37278    tst_links_strstr="yes"
37279
37280else
37281
37282    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37283$as_echo "no" >&6; }
37284    tst_links_strstr="no"
37285
37286fi
37287rm -f core conftest.err conftest.$ac_objext \
37288    conftest$ac_exeext conftest.$ac_ext
37289  #
37290  if test "$tst_links_strstr" = "yes"; then
37291    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
37292$as_echo_n "checking if strstr is prototyped... " >&6; }
37293    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37294/* end confdefs.h.  */
37295
37296      $curl_includes_string
37297
37298_ACEOF
37299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37300  $EGREP "strstr" >/dev/null 2>&1; then :
37301
37302      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37303$as_echo "yes" >&6; }
37304      tst_proto_strstr="yes"
37305
37306else
37307
37308      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37309$as_echo "no" >&6; }
37310      tst_proto_strstr="no"
37311
37312fi
37313rm -f conftest*
37314
37315  fi
37316  #
37317  if test "$tst_proto_strstr" = "yes"; then
37318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
37319$as_echo_n "checking if strstr is compilable... " >&6; }
37320    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37321/* end confdefs.h.  */
37322
37323
37324        $curl_includes_string
37325
37326int main (void)
37327{
37328
37329        if(0 != strstr(0, 0))
37330          return 1;
37331
37332 ;
37333 return 0;
37334}
37335
37336_ACEOF
37337if ac_fn_c_try_compile "$LINENO"; then :
37338
37339      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340$as_echo "yes" >&6; }
37341      tst_compi_strstr="yes"
37342
37343else
37344
37345      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37346$as_echo "no" >&6; }
37347      tst_compi_strstr="no"
37348
37349fi
37350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37351  fi
37352  #
37353  if test "$tst_compi_strstr" = "yes"; then
37354    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
37355$as_echo_n "checking if strstr usage allowed... " >&6; }
37356    if test "x$curl_disallow_strstr" != "xyes"; then
37357      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37358$as_echo "yes" >&6; }
37359      tst_allow_strstr="yes"
37360    else
37361      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37362$as_echo "no" >&6; }
37363      tst_allow_strstr="no"
37364    fi
37365  fi
37366  #
37367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
37368$as_echo_n "checking if strstr might be used... " >&6; }
37369  if test "$tst_links_strstr" = "yes" &&
37370     test "$tst_proto_strstr" = "yes" &&
37371     test "$tst_compi_strstr" = "yes" &&
37372     test "$tst_allow_strstr" = "yes"; then
37373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37374$as_echo "yes" >&6; }
37375
37376cat >>confdefs.h <<_ACEOF
37377#define HAVE_STRSTR 1
37378_ACEOF
37379
37380    ac_cv_func_strstr="yes"
37381  else
37382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37383$as_echo "no" >&6; }
37384    ac_cv_func_strstr="no"
37385  fi
37386
37387
37388    #
37389  tst_links_strtok_r="unknown"
37390  tst_proto_strtok_r="unknown"
37391  tst_compi_strtok_r="unknown"
37392  tst_allow_strtok_r="unknown"
37393  #
37394  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
37395$as_echo_n "checking if strtok_r can be linked... " >&6; }
37396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37397/* end confdefs.h.  */
37398
37399
37400#define strtok_r innocuous_strtok_r
37401#ifdef __STDC__
37402# include <limits.h>
37403#else
37404# include <assert.h>
37405#endif
37406#undef strtok_r
37407#ifdef __cplusplus
37408extern "C"
37409#endif
37410char strtok_r ();
37411#if defined __stub_strtok_r || defined __stub___strtok_r
37412choke me
37413#endif
37414
37415int main (void)
37416{
37417return strtok_r ();
37418 ;
37419 return 0;
37420}
37421
37422_ACEOF
37423if ac_fn_c_try_link "$LINENO"; then :
37424
37425    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37426$as_echo "yes" >&6; }
37427    tst_links_strtok_r="yes"
37428
37429else
37430
37431    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37432$as_echo "no" >&6; }
37433    tst_links_strtok_r="no"
37434
37435fi
37436rm -f core conftest.err conftest.$ac_objext \
37437    conftest$ac_exeext conftest.$ac_ext
37438  #
37439  if test "$tst_links_strtok_r" = "yes"; then
37440    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
37441$as_echo_n "checking if strtok_r is prototyped... " >&6; }
37442    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37443/* end confdefs.h.  */
37444
37445      $curl_includes_string
37446
37447_ACEOF
37448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37449  $EGREP "strtok_r" >/dev/null 2>&1; then :
37450
37451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37452$as_echo "yes" >&6; }
37453      tst_proto_strtok_r="yes"
37454
37455else
37456
37457      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37458$as_echo "no" >&6; }
37459      tst_proto_strtok_r="no"
37460
37461fi
37462rm -f conftest*
37463
37464  fi
37465  #
37466  if test "$tst_proto_strtok_r" = "yes"; then
37467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
37468$as_echo_n "checking if strtok_r is compilable... " >&6; }
37469    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37470/* end confdefs.h.  */
37471
37472
37473        $curl_includes_string
37474
37475int main (void)
37476{
37477
37478        if(0 != strtok_r(0, 0, 0))
37479          return 1;
37480
37481 ;
37482 return 0;
37483}
37484
37485_ACEOF
37486if ac_fn_c_try_compile "$LINENO"; then :
37487
37488      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37489$as_echo "yes" >&6; }
37490      tst_compi_strtok_r="yes"
37491
37492else
37493
37494      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37495$as_echo "no" >&6; }
37496      tst_compi_strtok_r="no"
37497
37498fi
37499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37500  fi
37501  #
37502  if test "$tst_compi_strtok_r" = "yes"; then
37503    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
37504$as_echo_n "checking if strtok_r usage allowed... " >&6; }
37505    if test "x$curl_disallow_strtok_r" != "xyes"; then
37506      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37507$as_echo "yes" >&6; }
37508      tst_allow_strtok_r="yes"
37509    else
37510      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37511$as_echo "no" >&6; }
37512      tst_allow_strtok_r="no"
37513    fi
37514  fi
37515  #
37516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
37517$as_echo_n "checking if strtok_r might be used... " >&6; }
37518  if test "$tst_links_strtok_r" = "yes" &&
37519     test "$tst_proto_strtok_r" = "yes" &&
37520     test "$tst_compi_strtok_r" = "yes" &&
37521     test "$tst_allow_strtok_r" = "yes"; then
37522    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37523$as_echo "yes" >&6; }
37524
37525cat >>confdefs.h <<_ACEOF
37526#define HAVE_STRTOK_R 1
37527_ACEOF
37528
37529    ac_cv_func_strtok_r="yes"
37530  else
37531    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37532$as_echo "no" >&6; }
37533    ac_cv_func_strtok_r="no"
37534  fi
37535
37536
37537    #
37538  tst_links_strtoll="unknown"
37539  tst_proto_strtoll="unknown"
37540  tst_compi_strtoll="unknown"
37541  tst_allow_strtoll="unknown"
37542  #
37543  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
37544$as_echo_n "checking if strtoll can be linked... " >&6; }
37545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37546/* end confdefs.h.  */
37547
37548
37549#define strtoll innocuous_strtoll
37550#ifdef __STDC__
37551# include <limits.h>
37552#else
37553# include <assert.h>
37554#endif
37555#undef strtoll
37556#ifdef __cplusplus
37557extern "C"
37558#endif
37559char strtoll ();
37560#if defined __stub_strtoll || defined __stub___strtoll
37561choke me
37562#endif
37563
37564int main (void)
37565{
37566return strtoll ();
37567 ;
37568 return 0;
37569}
37570
37571_ACEOF
37572if ac_fn_c_try_link "$LINENO"; then :
37573
37574    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37575$as_echo "yes" >&6; }
37576    tst_links_strtoll="yes"
37577
37578else
37579
37580    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37581$as_echo "no" >&6; }
37582    tst_links_strtoll="no"
37583
37584fi
37585rm -f core conftest.err conftest.$ac_objext \
37586    conftest$ac_exeext conftest.$ac_ext
37587  #
37588  if test "$tst_links_strtoll" = "yes"; then
37589    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
37590$as_echo_n "checking if strtoll is prototyped... " >&6; }
37591    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37592/* end confdefs.h.  */
37593
37594      $curl_includes_stdlib
37595
37596_ACEOF
37597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37598  $EGREP "strtoll" >/dev/null 2>&1; then :
37599
37600      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37601$as_echo "yes" >&6; }
37602      tst_proto_strtoll="yes"
37603
37604else
37605
37606      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37607$as_echo "no" >&6; }
37608      tst_proto_strtoll="no"
37609
37610fi
37611rm -f conftest*
37612
37613  fi
37614  #
37615  if test "$tst_proto_strtoll" = "yes"; then
37616    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
37617$as_echo_n "checking if strtoll is compilable... " >&6; }
37618    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37619/* end confdefs.h.  */
37620
37621
37622        $curl_includes_stdlib
37623
37624int main (void)
37625{
37626
37627        if(0 != strtoll(0, 0, 0))
37628          return 1;
37629
37630 ;
37631 return 0;
37632}
37633
37634_ACEOF
37635if ac_fn_c_try_compile "$LINENO"; then :
37636
37637      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37638$as_echo "yes" >&6; }
37639      tst_compi_strtoll="yes"
37640
37641else
37642
37643      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37644$as_echo "no" >&6; }
37645      tst_compi_strtoll="no"
37646
37647fi
37648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37649  fi
37650  #
37651  if test "$tst_compi_strtoll" = "yes"; then
37652    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
37653$as_echo_n "checking if strtoll usage allowed... " >&6; }
37654    if test "x$curl_disallow_strtoll" != "xyes"; then
37655      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37656$as_echo "yes" >&6; }
37657      tst_allow_strtoll="yes"
37658    else
37659      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37660$as_echo "no" >&6; }
37661      tst_allow_strtoll="no"
37662    fi
37663  fi
37664  #
37665  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
37666$as_echo_n "checking if strtoll might be used... " >&6; }
37667  if test "$tst_links_strtoll" = "yes" &&
37668     test "$tst_proto_strtoll" = "yes" &&
37669     test "$tst_compi_strtoll" = "yes" &&
37670     test "$tst_allow_strtoll" = "yes"; then
37671    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37672$as_echo "yes" >&6; }
37673
37674cat >>confdefs.h <<_ACEOF
37675#define HAVE_STRTOLL 1
37676_ACEOF
37677
37678    ac_cv_func_strtoll="yes"
37679  else
37680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37681$as_echo "no" >&6; }
37682    ac_cv_func_strtoll="no"
37683  fi
37684
37685
37686curl_includes_sys_uio="\
37687/* includes start */
37688#ifdef HAVE_SYS_TYPES_H
37689#  include <sys/types.h>
37690#endif
37691#ifdef HAVE_SYS_UIO_H
37692#  include <sys/uio.h>
37693#endif
37694/* includes end */"
37695  for ac_header in sys/types.h sys/uio.h
37696do :
37697  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
37699"
37700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37701  cat >>confdefs.h <<_ACEOF
37702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37703_ACEOF
37704
37705fi
37706
37707done
37708
37709
37710
37711    #
37712  tst_links_writev="unknown"
37713  tst_proto_writev="unknown"
37714  tst_compi_writev="unknown"
37715  tst_allow_writev="unknown"
37716  #
37717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
37718$as_echo_n "checking if writev can be linked... " >&6; }
37719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37720/* end confdefs.h.  */
37721
37722
37723#define writev innocuous_writev
37724#ifdef __STDC__
37725# include <limits.h>
37726#else
37727# include <assert.h>
37728#endif
37729#undef writev
37730#ifdef __cplusplus
37731extern "C"
37732#endif
37733char writev ();
37734#if defined __stub_writev || defined __stub___writev
37735choke me
37736#endif
37737
37738int main (void)
37739{
37740return writev ();
37741 ;
37742 return 0;
37743}
37744
37745_ACEOF
37746if ac_fn_c_try_link "$LINENO"; then :
37747
37748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37749$as_echo "yes" >&6; }
37750    tst_links_writev="yes"
37751
37752else
37753
37754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37755$as_echo "no" >&6; }
37756    tst_links_writev="no"
37757
37758fi
37759rm -f core conftest.err conftest.$ac_objext \
37760    conftest$ac_exeext conftest.$ac_ext
37761  #
37762  if test "$tst_links_writev" = "yes"; then
37763    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
37764$as_echo_n "checking if writev is prototyped... " >&6; }
37765    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37766/* end confdefs.h.  */
37767
37768      $curl_includes_sys_uio
37769
37770_ACEOF
37771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37772  $EGREP "writev" >/dev/null 2>&1; then :
37773
37774      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37775$as_echo "yes" >&6; }
37776      tst_proto_writev="yes"
37777
37778else
37779
37780      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37781$as_echo "no" >&6; }
37782      tst_proto_writev="no"
37783
37784fi
37785rm -f conftest*
37786
37787  fi
37788  #
37789  if test "$tst_proto_writev" = "yes"; then
37790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
37791$as_echo_n "checking if writev is compilable... " >&6; }
37792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37793/* end confdefs.h.  */
37794
37795
37796        $curl_includes_sys_uio
37797
37798int main (void)
37799{
37800
37801        if(0 != writev(0, 0, 0))
37802          return 1;
37803
37804 ;
37805 return 0;
37806}
37807
37808_ACEOF
37809if ac_fn_c_try_compile "$LINENO"; then :
37810
37811      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37812$as_echo "yes" >&6; }
37813      tst_compi_writev="yes"
37814
37815else
37816
37817      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37818$as_echo "no" >&6; }
37819      tst_compi_writev="no"
37820
37821fi
37822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37823  fi
37824  #
37825  if test "$tst_compi_writev" = "yes"; then
37826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
37827$as_echo_n "checking if writev usage allowed... " >&6; }
37828    if test "x$curl_disallow_writev" != "xyes"; then
37829      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37830$as_echo "yes" >&6; }
37831      tst_allow_writev="yes"
37832    else
37833      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37834$as_echo "no" >&6; }
37835      tst_allow_writev="no"
37836    fi
37837  fi
37838  #
37839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
37840$as_echo_n "checking if writev might be used... " >&6; }
37841  if test "$tst_links_writev" = "yes" &&
37842     test "$tst_proto_writev" = "yes" &&
37843     test "$tst_compi_writev" = "yes" &&
37844     test "$tst_allow_writev" = "yes"; then
37845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37846$as_echo "yes" >&6; }
37847
37848cat >>confdefs.h <<_ACEOF
37849#define HAVE_WRITEV 1
37850_ACEOF
37851
37852    ac_cv_func_writev="yes"
37853  else
37854    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37855$as_echo "no" >&6; }
37856    ac_cv_func_writev="no"
37857  fi
37858
37859
37860case $host in
37861  *msdosdjgpp)
37862     ac_cv_func_pipe=no
37863     skipcheck_pipe=yes
37864     { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
37865$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
37866    ;;
37867esac
37868
37869for ac_func in fork \
37870  geteuid \
37871  getpass_r \
37872  getppid \
37873  getprotobyname \
37874  getpwuid \
37875  getpwuid_r \
37876  getrlimit \
37877  gettimeofday \
37878  if_nametoindex \
37879  inet_addr \
37880  perror \
37881  pipe \
37882  setlocale \
37883  setmode \
37884  setrlimit \
37885  uname \
37886  utime
37887
37888do :
37889  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37890ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37891if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37892  cat >>confdefs.h <<_ACEOF
37893#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37894_ACEOF
37895
37896
37897else
37898
37899  func="$ac_func"
37900  eval skipcheck=\$skipcheck_$func
37901  if test "x$skipcheck" != "xyes"; then
37902    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
37903$as_echo_n "checking deeper for $func... " >&6; }
37904    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37905/* end confdefs.h.  */
37906
37907
37908
37909int main (void)
37910{
37911
37912        $func ();
37913
37914 ;
37915 return 0;
37916}
37917
37918_ACEOF
37919if ac_fn_c_try_link "$LINENO"; then :
37920
37921      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37922$as_echo "yes" >&6; }
37923      eval "ac_cv_func_$func=yes"
37924
37925cat >>confdefs.h <<_ACEOF
37926#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
37927_ACEOF
37928
37929
37930else
37931
37932      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
37933$as_echo "but still no" >&6; }
37934
37935fi
37936rm -f core conftest.err conftest.$ac_objext \
37937    conftest$ac_exeext conftest.$ac_ext
37938  fi
37939
37940fi
37941done
37942
37943
37944
37945    for ac_header in sys/types.h sys/socket.h netdb.h
37946do :
37947  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37948ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37949if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37950  cat >>confdefs.h <<_ACEOF
37951#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37952_ACEOF
37953
37954fi
37955
37956done
37957
37958  #
37959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
37960$as_echo_n "checking for getnameinfo... " >&6; }
37961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37962/* end confdefs.h.  */
37963
37964
37965#define getnameinfo innocuous_getnameinfo
37966#ifdef __STDC__
37967# include <limits.h>
37968#else
37969# include <assert.h>
37970#endif
37971#undef getnameinfo
37972#ifdef __cplusplus
37973extern "C"
37974#endif
37975char getnameinfo ();
37976#if defined __stub_getnameinfo || defined __stub___getnameinfo
37977choke me
37978#endif
37979
37980int main (void)
37981{
37982return getnameinfo ();
37983 ;
37984 return 0;
37985}
37986
37987_ACEOF
37988if ac_fn_c_try_link "$LINENO"; then :
37989
37990    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37991$as_echo "yes" >&6; }
37992    curl_cv_getnameinfo="yes"
37993
37994else
37995
37996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37997$as_echo "no" >&6; }
37998    curl_cv_getnameinfo="no"
37999
38000fi
38001rm -f core conftest.err conftest.$ac_objext \
38002    conftest$ac_exeext conftest.$ac_ext
38003  #
38004  if test "$curl_cv_getnameinfo" != "yes"; then
38005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
38006$as_echo_n "checking deeper for getnameinfo... " >&6; }
38007    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38008/* end confdefs.h.  */
38009
38010
38011
38012int main (void)
38013{
38014
38015        getnameinfo();
38016
38017 ;
38018 return 0;
38019}
38020
38021_ACEOF
38022if ac_fn_c_try_link "$LINENO"; then :
38023
38024      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38025$as_echo "yes" >&6; }
38026      curl_cv_getnameinfo="yes"
38027
38028else
38029
38030      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38031$as_echo "but still no" >&6; }
38032      curl_cv_getnameinfo="no"
38033
38034fi
38035rm -f core conftest.err conftest.$ac_objext \
38036    conftest$ac_exeext conftest.$ac_ext
38037  fi
38038  #
38039  if test "$curl_cv_getnameinfo" != "yes"; then
38040    { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
38041$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
38042    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38043/* end confdefs.h.  */
38044
38045
38046#undef inline
38047#ifdef HAVE_WINDOWS_H
38048#ifndef WIN32_LEAN_AND_MEAN
38049#define WIN32_LEAN_AND_MEAN
38050#endif
38051#include <windows.h>
38052#ifdef HAVE_WINSOCK2_H
38053#include <winsock2.h>
38054#ifdef HAVE_WS2TCPIP_H
38055#include <ws2tcpip.h>
38056#endif
38057#endif
38058#else
38059#ifdef HAVE_SYS_TYPES_H
38060#include <sys/types.h>
38061#endif
38062#ifdef HAVE_SYS_SOCKET_H
38063#include <sys/socket.h>
38064#endif
38065#ifdef HAVE_NETDB_H
38066#include <netdb.h>
38067#endif
38068#endif
38069
38070int main (void)
38071{
38072
38073        getnameinfo(0, 0, 0, 0, 0, 0, 0);
38074
38075 ;
38076 return 0;
38077}
38078
38079_ACEOF
38080if ac_fn_c_try_link "$LINENO"; then :
38081
38082      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38083$as_echo "yes" >&6; }
38084      curl_cv_getnameinfo="yes"
38085
38086else
38087
38088      { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38089$as_echo "but still no" >&6; }
38090      curl_cv_getnameinfo="no"
38091
38092fi
38093rm -f core conftest.err conftest.$ac_objext \
38094    conftest$ac_exeext conftest.$ac_ext
38095  fi
38096  #
38097  if test "$curl_cv_getnameinfo" = "yes"; then
38098    { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
38099$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
38100if ${curl_cv_func_getnameinfo_args+:} false; then :
38101  $as_echo_n "(cached) " >&6
38102else
38103
38104      curl_cv_func_getnameinfo_args="unknown"
38105      for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
38106        for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38107          for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38108            for gni_arg7 in 'int' 'unsigned int'; do
38109              if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38110                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38111/* end confdefs.h.  */
38112
38113
38114#undef inline
38115#ifdef HAVE_WINDOWS_H
38116#ifndef WIN32_LEAN_AND_MEAN
38117#define WIN32_LEAN_AND_MEAN
38118#endif
38119#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
38120#undef _WIN32_WINNT
38121#define _WIN32_WINNT 0x0501
38122#endif
38123#include <windows.h>
38124#ifdef HAVE_WINSOCK2_H
38125#include <winsock2.h>
38126#ifdef HAVE_WS2TCPIP_H
38127#include <ws2tcpip.h>
38128#endif
38129#endif
38130#define GNICALLCONV WSAAPI
38131#else
38132#ifdef HAVE_SYS_TYPES_H
38133#include <sys/types.h>
38134#endif
38135#ifdef HAVE_SYS_SOCKET_H
38136#include <sys/socket.h>
38137#endif
38138#ifdef HAVE_NETDB_H
38139#include <netdb.h>
38140#endif
38141#define GNICALLCONV
38142#endif
38143                    extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38144                                           char *, $gni_arg46,
38145                                           char *, $gni_arg46,
38146                                           $gni_arg7);
38147
38148int main (void)
38149{
38150
38151                    $gni_arg2 salen=0;
38152                    $gni_arg46 hostlen=0;
38153                    $gni_arg46 servlen=0;
38154                    $gni_arg7 flags=0;
38155                    int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38156
38157 ;
38158 return 0;
38159}
38160
38161_ACEOF
38162if ac_fn_c_try_compile "$LINENO"; then :
38163
38164                  curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38165
38166fi
38167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38168              fi
38169            done
38170          done
38171        done
38172      done
38173
38174fi
38175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
38176$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38177    if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38178      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38179$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38180      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
38181$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
38182    else
38183      gni_prev_IFS=$IFS; IFS=','
38184      set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
38185      IFS=$gni_prev_IFS
38186      shift
38187      #
38188      gni_qual_type_arg1=$1
38189      #
38190
38191cat >>confdefs.h <<_ACEOF
38192#define GETNAMEINFO_TYPE_ARG2 $2
38193_ACEOF
38194
38195
38196cat >>confdefs.h <<_ACEOF
38197#define GETNAMEINFO_TYPE_ARG46 $3
38198_ACEOF
38199
38200
38201cat >>confdefs.h <<_ACEOF
38202#define GETNAMEINFO_TYPE_ARG7 $4
38203_ACEOF
38204
38205      #
38206      prev_sh_opts=$-
38207      #
38208      case $prev_sh_opts in
38209        *f*)
38210          ;;
38211        *)
38212          set -f
38213          ;;
38214      esac
38215      #
38216      case "$gni_qual_type_arg1" in
38217        const*)
38218          gni_qual_arg1=const
38219          gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
38220        ;;
38221        *)
38222          gni_qual_arg1=
38223          gni_type_arg1=$gni_qual_type_arg1
38224        ;;
38225      esac
38226      #
38227
38228cat >>confdefs.h <<_ACEOF
38229#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
38230_ACEOF
38231
38232
38233cat >>confdefs.h <<_ACEOF
38234#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
38235_ACEOF
38236
38237      #
38238      case $prev_sh_opts in
38239        *f*)
38240          ;;
38241        *)
38242          set +f
38243          ;;
38244      esac
38245      #
38246
38247cat >>confdefs.h <<_ACEOF
38248#define HAVE_GETNAMEINFO 1
38249_ACEOF
38250
38251      ac_cv_func_getnameinfo="yes"
38252    fi
38253  fi
38254
38255
38256if test "$ipv6" = "yes"; then
38257  if test "$ac_cv_func_getaddrinfo" = "yes"; then
38258
38259$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
38260
38261    IPV6_ENABLED=1
38262
38263  fi
38264
38265      for ac_header in stdio.h sys/types.h sys/socket.h \
38266                   netdb.h netinet/in.h arpa/inet.h
38267do :
38268  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38269ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38270if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38271  cat >>confdefs.h <<_ACEOF
38272#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38273_ACEOF
38274
38275fi
38276
38277done
38278
38279  #
38280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
38281$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
38282if ${ac_cv_working_ni_withscopeid+:} false; then :
38283  $as_echo_n "(cached) " >&6
38284else
38285
38286    if test "$cross_compiling" = yes; then :
38287
38288      # Program is not run when cross-compiling. So we assume
38289      # NI_WITHSCOPEID will work if we are able to compile it.
38290      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38291/* end confdefs.h.  */
38292
38293
38294#include <sys/types.h>
38295#include <sys/socket.h>
38296#include <netdb.h>
38297
38298int main (void)
38299{
38300
38301          unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38302
38303 ;
38304 return 0;
38305}
38306
38307_ACEOF
38308if ac_fn_c_try_compile "$LINENO"; then :
38309
38310        ac_cv_working_ni_withscopeid="yes"
38311
38312else
38313
38314        ac_cv_working_ni_withscopeid="no"
38315
38316fi
38317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38318
38319else
38320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38321/* end confdefs.h.  */
38322
38323
38324#ifdef HAVE_STDLIB_H
38325#include <stdlib.h>
38326#endif
38327#ifdef HAVE_STDIO_H
38328#include <stdio.h>
38329#endif
38330#ifdef HAVE_SYS_TYPES_H
38331#include <sys/types.h>
38332#endif
38333#ifdef HAVE_SYS_SOCKET_H
38334#include <sys/socket.h>
38335#endif
38336#ifdef HAVE_NETDB_H
38337#include <netdb.h>
38338#endif
38339#ifdef HAVE_NETINET_IN_H
38340#include <netinet/in.h>
38341#endif
38342#ifdef HAVE_ARPA_INET_H
38343#include <arpa/inet.h>
38344#endif
38345
38346int main (void)
38347{
38348
38349#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38350#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38351        struct sockaddr_storage sa;
38352#else
38353        unsigned char sa[256];
38354#endif
38355        char hostbuf[NI_MAXHOST];
38356        int rc;
38357        GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38358        GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38359        GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38360        int fd = socket(AF_INET6, SOCK_STREAM, 0);
38361        if(fd < 0) {
38362          perror("socket()");
38363          return 1; /* Error creating socket */
38364        }
38365        rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38366        if(rc) {
38367          perror("getsockname()");
38368          return 2; /* Error retrieving socket name */
38369        }
38370        rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38371        if(rc) {
38372          printf("rc = %s\n", gai_strerror(rc));
38373          return 3; /* Error translating socket address */
38374        }
38375        return 0; /* Ok, NI_WITHSCOPEID works */
38376#else
38377        return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38378#endif
38379
38380 ;
38381 return 0;
38382} # AC-LANG-PROGRAM
38383
38384_ACEOF
38385if ac_fn_c_try_run "$LINENO"; then :
38386
38387      # Exit code == 0. Program worked.
38388      ac_cv_working_ni_withscopeid="yes"
38389
38390else
38391
38392      # Exit code != 0. Program failed.
38393      ac_cv_working_ni_withscopeid="no"
38394
38395fi
38396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38397  conftest.$ac_objext conftest.beam conftest.$ac_ext
38398fi
38399 # AC-RUN-IFELSE
38400
38401fi
38402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
38403$as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38404  case "$ac_cv_working_ni_withscopeid" in
38405    yes)
38406
38407$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
38408
38409      ;;
38410  esac
38411
38412fi
38413
38414
38415            #
38416  tst_method="unknown"
38417
38418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
38419$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
38420  if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
38421    tst_method="fcntl O_NONBLOCK"
38422  elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
38423    tst_method="ioctl FIONBIO"
38424  elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
38425    tst_method="ioctlsocket FIONBIO"
38426  elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
38427    tst_method="IoctlSocket FIONBIO"
38428  elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
38429    tst_method="setsockopt SO_NONBLOCK"
38430  fi
38431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
38432$as_echo "$tst_method" >&6; }
38433  if test "$tst_method" = "unknown"; then
38434    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
38435$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
38436  fi
38437
38438
38439
38440# Extract the first word of "perl", so it can be a program name with args.
38441set dummy perl; ac_word=$2
38442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38443$as_echo_n "checking for $ac_word... " >&6; }
38444if ${ac_cv_path_PERL+:} false; then :
38445  $as_echo_n "(cached) " >&6
38446else
38447  case $PERL in
38448  [\\/]* | ?:[\\/]*)
38449  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38450  ;;
38451  *)
38452  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38453as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
38454for as_dir in $as_dummy
38455do
38456  IFS=$as_save_IFS
38457  test -z "$as_dir" && as_dir=.
38458    for ac_exec_ext in '' $ac_executable_extensions; do
38459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38460    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38462    break 2
38463  fi
38464done
38465  done
38466IFS=$as_save_IFS
38467
38468  ;;
38469esac
38470fi
38471PERL=$ac_cv_path_PERL
38472if test -n "$PERL"; then
38473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
38474$as_echo "$PERL" >&6; }
38475else
38476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38477$as_echo "no" >&6; }
38478fi
38479
38480
38481
38482
38483for ac_prog in gnroff nroff
38484do
38485  # Extract the first word of "$ac_prog", so it can be a program name with args.
38486set dummy $ac_prog; ac_word=$2
38487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38488$as_echo_n "checking for $ac_word... " >&6; }
38489if ${ac_cv_path_NROFF+:} false; then :
38490  $as_echo_n "(cached) " >&6
38491else
38492  case $NROFF in
38493  [\\/]* | ?:[\\/]*)
38494  ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
38495  ;;
38496  *)
38497  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38498as_dummy="$PATH:/usr/bin/:/usr/local/bin "
38499for as_dir in $as_dummy
38500do
38501  IFS=$as_save_IFS
38502  test -z "$as_dir" && as_dir=.
38503    for ac_exec_ext in '' $ac_executable_extensions; do
38504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38505    ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
38506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38507    break 2
38508  fi
38509done
38510  done
38511IFS=$as_save_IFS
38512
38513  ;;
38514esac
38515fi
38516NROFF=$ac_cv_path_NROFF
38517if test -n "$NROFF"; then
38518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
38519$as_echo "$NROFF" >&6; }
38520else
38521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38522$as_echo "no" >&6; }
38523fi
38524
38525
38526  test -n "$NROFF" && break
38527done
38528
38529
38530
38531if test -n "$NROFF"; then
38532
38533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
38534$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
38535  MANOPT="-man"
38536  mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38537  if test -z "$mancheck"; then
38538    MANOPT="-mandoc"
38539   mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38540    if test -z "$mancheck"; then
38541      MANOPT=""
38542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38543$as_echo "failed" >&6; }
38544      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
38545$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
38546    else
38547      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38548$as_echo "$MANOPT" >&6; }
38549    fi
38550  else
38551    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38552$as_echo "$MANOPT" >&6; }
38553  fi
38554
38555fi
38556
38557if test -z "$MANOPT"
38558then
38559      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
38560$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
38561  USE_MANUAL="no";
38562fi
38563
38564
38565if test "$USE_MANUAL" = "1"; then
38566
38567$as_echo "#define USE_MANUAL 1" >>confdefs.h
38568
38569  curl_manual_msg="enabled"
38570fi
38571
38572 if test x"$USE_MANUAL" = x1; then
38573  USE_MANUAL_TRUE=
38574  USE_MANUAL_FALSE='#'
38575else
38576  USE_MANUAL_TRUE='#'
38577  USE_MANUAL_FALSE=
38578fi
38579
38580
38581
38582
38583
38584  #
38585  if test "$want_ares" = "yes"; then
38586        clean_CPPFLAGS="$CPPFLAGS"
38587    clean_LDFLAGS="$LDFLAGS"
38588    clean_LIBS="$LIBS"
38589    embedded_ares="unknown"
38590    configure_runpath=`pwd`
38591    embedded_ares_builddir="$configure_runpath/ares"
38592    if test -n "$want_ares_path"; then
38593            ares_CPPFLAGS="-I$want_ares_path/include"
38594      ares_LDFLAGS="-L$want_ares_path/lib"
38595      ares_LIBS="-lcares"
38596    else
38597            if test -d "$srcdir/ares"; then
38598                embedded_ares="yes"
38599        subdirs="$subdirs ares"
38600
38601                        ares_CPPFLAGS=""
38602        ares_LDFLAGS="-L$embedded_ares_builddir"
38603        ares_LIBS="-lcares"
38604      else
38605                ares_CPPFLAGS=""
38606        ares_LDFLAGS=""
38607        ares_LIBS="-lcares"
38608      fi
38609    fi
38610    #
38611    CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
38612    LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
38613    LIBS="$ares_LIBS $clean_LIBS"
38614    #
38615    if test "$embedded_ares" != "yes"; then
38616                  { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
38617$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
38618      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38619/* end confdefs.h.  */
38620
38621
38622#include <ares.h>
38623          /* set of dummy functions in case c-ares was built with debug */
38624          void curl_dofree() { }
38625          void curl_sclose() { }
38626          void curl_domalloc() { }
38627          void curl_docalloc() { }
38628          void curl_socket() { }
38629
38630int main (void)
38631{
38632
38633          ares_channel channel;
38634          ares_cancel(channel); /* added in 1.2.0 */
38635          ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
38636          ares_dup(&channel, channel); /* added in 1.6.0 */
38637
38638 ;
38639 return 0;
38640}
38641
38642_ACEOF
38643if ac_fn_c_try_link "$LINENO"; then :
38644
38645        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38646$as_echo "yes" >&6; }
38647
38648else
38649
38650        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38651$as_echo "no" >&6; }
38652        as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
38653                CPPFLAGS="$clean_CPPFLAGS"
38654        LDFLAGS="$clean_LDFLAGS"
38655        LIBS="$clean_LIBS"
38656        # prevent usage
38657        want_ares="no"
38658
38659fi
38660rm -f core conftest.err conftest.$ac_objext \
38661    conftest$ac_exeext conftest.$ac_ext
38662    fi
38663    if test "$want_ares" = "yes"; then
38664
38665$as_echo "#define USE_ARES 1" >>confdefs.h
38666
38667      USE_ARES=1
38668
38669      curl_res_msg="c-ares"
38670    fi
38671  fi
38672
38673 if test x$embedded_ares = xyes; then
38674  USE_EMBEDDED_ARES_TRUE=
38675  USE_EMBEDDED_ARES_FALSE='#'
38676else
38677  USE_EMBEDDED_ARES_TRUE='#'
38678  USE_EMBEDDED_ARES_FALSE=
38679fi
38680
38681
38682if test "x$ac_cv_native_windows" != "xyes" &&
38683   test "x$enable_shared" = "xyes"; then
38684  build_libhostname=yes
38685else
38686  build_libhostname=no
38687fi
38688 if test x$build_libhostname = xyes; then
38689  BUILD_LIBHOSTNAME_TRUE=
38690  BUILD_LIBHOSTNAME_FALSE='#'
38691else
38692  BUILD_LIBHOSTNAME_TRUE='#'
38693  BUILD_LIBHOSTNAME_FALSE=
38694fi
38695
38696
38697
38698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
38699$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
38700  OPT_THRES="default"
38701  # Check whether --enable-threaded_resolver was given.
38702if test "${enable_threaded_resolver+set}" = set; then :
38703  enableval=$enable_threaded_resolver; OPT_THRES=$enableval
38704fi
38705
38706  case "$OPT_THRES" in
38707    yes)
38708            want_thres="yes"
38709      ;;
38710    *)
38711            want_thres="no"
38712      ;;
38713  esac
38714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
38715$as_echo "$want_thres" >&6; }
38716
38717
38718if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
38719  as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
38720fi
38721
38722if test "$want_thres" = "yes"; then
38723  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
38724if test "x$ac_cv_header_pthread_h" = xyes; then :
38725
38726$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
38727
38728      save_CFLAGS="$CFLAGS"
38729
38730            ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
38731if test "x$ac_cv_func_pthread_create" = xyes; then :
38732  USE_THREADS_POSIX=1
38733fi
38734
38735
38736            if test "$USE_THREADS_POSIX" != "1"
38737      then
38738        CFLAGS="$CFLAGS -pthread"
38739        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
38740$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
38741if ${ac_cv_lib_pthread_pthread_create+:} false; then :
38742  $as_echo_n "(cached) " >&6
38743else
38744  ac_check_lib_save_LIBS=$LIBS
38745LIBS="-lpthread  $LIBS"
38746cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38747/* end confdefs.h.  */
38748
38749
38750#ifdef __cplusplus
38751extern "C"
38752#endif
38753char pthread_create ();
38754int main (void)
38755{
38756return pthread_create ();
38757 ;
38758 return 0;
38759}
38760_ACEOF
38761if ac_fn_c_try_link "$LINENO"; then :
38762  ac_cv_lib_pthread_pthread_create=yes
38763else
38764  ac_cv_lib_pthread_pthread_create=no
38765fi
38766rm -f core conftest.err conftest.$ac_objext \
38767    conftest$ac_exeext conftest.$ac_ext
38768LIBS=$ac_check_lib_save_LIBS
38769fi
38770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
38771$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
38772if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
38773  USE_THREADS_POSIX=1
38774else
38775   CFLAGS="$save_CFLAGS"
38776fi
38777
38778      fi
38779
38780      if test "x$USE_THREADS_POSIX" = "x1"
38781      then
38782
38783$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
38784
38785        curl_res_msg="POSIX threaded"
38786      fi
38787
38788
38789
38790fi
38791
38792
38793fi
38794
38795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
38796$as_echo_n "checking whether to enable verbose strings... " >&6; }
38797# Check whether --enable-verbose was given.
38798if test "${enable_verbose+set}" = set; then :
38799  enableval=$enable_verbose;  case "$enableval" in
38800  no)
38801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38802$as_echo "no" >&6; }
38803
38804$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
38805
38806       curl_verbose_msg="no"
38807       ;;
38808  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38809$as_echo "yes" >&6; }
38810       ;;
38811  esac
38812else
38813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38814$as_echo "yes" >&6; }
38815
38816fi
38817
38818
38819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
38820$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
38821# Check whether --enable-sspi was given.
38822if test "${enable_sspi+set}" = set; then :
38823  enableval=$enable_sspi;  case "$enableval" in
38824  yes)
38825       if test "$ac_cv_native_windows" = "yes"; then
38826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38827$as_echo "yes" >&6; }
38828
38829$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
38830
38831         USE_WINDOWS_SSPI=1
38832
38833         curl_sspi_msg="enabled"
38834       else
38835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38836$as_echo "no" >&6; }
38837         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
38838$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
38839       fi
38840       ;;
38841  *)
38842       if test "x$WINSSL_ENABLED" = "x1"; then
38843         # --with-winssl implies --enable-sspi
38844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38845$as_echo "yes" >&6; }
38846       else
38847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38848$as_echo "no" >&6; }
38849       fi
38850       ;;
38851  esac
38852else
38853  if test "x$WINSSL_ENABLED" = "x1"; then
38854         # --with-winssl implies --enable-sspi
38855         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38856$as_echo "yes" >&6; }
38857       else
38858         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38859$as_echo "no" >&6; }
38860       fi
38861
38862fi
38863
38864
38865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
38866$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
38867# Check whether --enable-crypto-auth was given.
38868if test "${enable_crypto_auth+set}" = set; then :
38869  enableval=$enable_crypto_auth;  case "$enableval" in
38870  no)
38871       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38872$as_echo "no" >&6; }
38873
38874$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
38875
38876       CURL_DISABLE_CRYPTO_AUTH=1
38877       ;;
38878  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38879$as_echo "yes" >&6; }
38880       ;;
38881  esac
38882else
38883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38884$as_echo "yes" >&6; }
38885
38886fi
38887
38888
38889
38890    OPT_NTLM_WB="default"
38891  # Check whether --enable-ntlm-wb was given.
38892if test "${enable_ntlm_wb+set}" = set; then :
38893  enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
38894fi
38895
38896  want_ntlm_wb_file="/usr/bin/ntlm_auth"
38897  case "$OPT_NTLM_WB" in
38898    no)
38899            want_ntlm_wb="no"
38900      ;;
38901    default)
38902            want_ntlm_wb="yes"
38903      ;;
38904    *)
38905            want_ntlm_wb="yes"
38906      if test -n "$enableval" && test "$enableval" != "yes"; then
38907        want_ntlm_wb_file="$enableval"
38908      fi
38909      ;;
38910  esac
38911
38912
38913
38914      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
38915$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
38916  if test "$ac_cv_native_windows" = "yes" ||
38917    test "x$SSL_ENABLED" = "x"; then
38918    want_ntlm_wb_file=""
38919    want_ntlm_wb="no"
38920  fi
38921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
38922$as_echo "$want_ntlm_wb" >&6; }
38923  if test "$want_ntlm_wb" = "yes"; then
38924
38925$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
38926
38927
38928cat >>confdefs.h <<_ACEOF
38929#define NTLM_WB_FILE "$want_ntlm_wb_file"
38930_ACEOF
38931
38932    NTLM_WB_ENABLED=1
38933  fi
38934
38935
38936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
38937$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
38938# Check whether --enable-tls-srp was given.
38939if test "${enable_tls_srp+set}" = set; then :
38940  enableval=$enable_tls_srp;  case "$enableval" in
38941  no)
38942       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38943$as_echo "no" >&6; }
38944
38945$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
38946
38947       want_tls_srp=no
38948       ;;
38949  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38950$as_echo "yes" >&6; }
38951       want_tls_srp=yes
38952       ;;
38953  esac
38954else
38955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38956$as_echo "yes" >&6; }
38957       want_tls_srp=yes
38958
38959fi
38960
38961
38962if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then
38963
38964$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
38965
38966   USE_TLS_SRP=1
38967   curl_tls_srp_msg="enabled"
38968fi
38969
38970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
38971$as_echo_n "checking whether to enable support for cookies... " >&6; }
38972# Check whether --enable-cookies was given.
38973if test "${enable_cookies+set}" = set; then :
38974  enableval=$enable_cookies;  case "$enableval" in
38975  no)
38976       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38977$as_echo "no" >&6; }
38978
38979$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
38980
38981       ;;
38982  *)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38983$as_echo "yes" >&6; }
38984       ;;
38985  esac
38986else
38987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38988$as_echo "yes" >&6; }
38989
38990fi
38991
38992
38993
38994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
38995$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
38996  CFLAG_CURL_SYMBOL_HIDING=""
38997  doing_symbol_hiding="no"
38998  if test x"$ac_cv_native_windows" != "xyes" &&
38999    test "$want_symbol_hiding" = "yes" &&
39000    test "$supports_symbol_hiding" = "yes"; then
39001    doing_symbol_hiding="yes"
39002    CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
39003
39004cat >>confdefs.h <<_ACEOF
39005#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
39006_ACEOF
39007
39008    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39009$as_echo "yes" >&6; }
39010  else
39011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39012$as_echo "no" >&6; }
39013  fi
39014   if test x$doing_symbol_hiding = xyes; then
39015  DOING_CURL_SYMBOL_HIDING_TRUE=
39016  DOING_CURL_SYMBOL_HIDING_FALSE='#'
39017else
39018  DOING_CURL_SYMBOL_HIDING_TRUE='#'
39019  DOING_CURL_SYMBOL_HIDING_FALSE=
39020fi
39021
39022
39023
39024
39025
39026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
39027$as_echo_n "checking whether to enforce SONAME bump... " >&6; }
39028# Check whether --enable-soname-bump was given.
39029if test "${enable_soname_bump+set}" = set; then :
39030  enableval=$enable_soname_bump;  case "$enableval" in
39031  yes)   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39032$as_echo "yes" >&6; }
39033         soname_bump=yes
39034         ;;
39035  *)
39036         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39037$as_echo "no" >&6; }
39038         ;;
39039  esac
39040else
39041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
39042$as_echo "$soname_bump" >&6; }
39043
39044fi
39045
39046 if test x$soname_bump = xyes; then
39047  SONAME_BUMP_TRUE=
39048  SONAME_BUMP_FALSE='#'
39049else
39050  SONAME_BUMP_TRUE='#'
39051  SONAME_BUMP_FALSE=
39052fi
39053
39054
39055LIBCURL_LIBS=$LIBS
39056
39057
39058
39059
39060
39061BLANK_AT_MAKETIME=
39062
39063
39064 if test x$cross_compiling = xyes; then
39065  CROSSCOMPILING_TRUE=
39066  CROSSCOMPILING_FALSE='#'
39067else
39068  CROSSCOMPILING_TRUE='#'
39069  CROSSCOMPILING_FALSE=
39070fi
39071
39072
39073ENABLE_SHARED="$enable_shared"
39074
39075
39076ENABLE_STATIC="$enable_static"
39077
39078
39079
39080
39081if test "x$USE_SSLEAY" = "x1"; then
39082  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39083elif test -n "$SSL_ENABLED"; then
39084  SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39085fi
39086if test "x$IPV6_ENABLED" = "x1"; then
39087  SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
39088fi
39089if test "x$HAVE_LIBZ" = "x1"; then
39090  SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
39091fi
39092if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
39093  SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
39094fi
39095if test "x$IDN_ENABLED" = "x1"; then
39096  SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
39097fi
39098if test "x$USE_WINDOWS_SSPI" = "x1"; then
39099  SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
39100fi
39101if test "x$CURL_DISABLE_HTTP" != "x1" -a \
39102	"x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
39103  if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39104      -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39105      -o "x$DARWINSSL_ENABLED" = "x1"; then
39106    SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
39107    if test "x$NTLM_WB_ENABLED" = "x1"; then
39108      SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
39109    fi
39110  fi
39111fi
39112if test "x$USE_TLS_SRP" = "x1"; then
39113  SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
39114fi
39115
39116if test "x$USE_NGHTTP2" = "x1"; then
39117  SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
39118fi
39119if test "x$curl_spnego_msg" = "xenabled"; then
39120  SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
39121fi
39122if test "x$want_gss" = "xyes"; then
39123  SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
39124fi
39125
39126
39127
39128if test "x$CURL_DISABLE_HTTP" != "x1"; then
39129  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
39130  if test "x$SSL_ENABLED" = "x1"; then
39131    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
39132  fi
39133fi
39134if test "x$CURL_DISABLE_FTP" != "x1"; then
39135  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
39136  if test "x$SSL_ENABLED" = "x1"; then
39137    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
39138  fi
39139fi
39140if test "x$CURL_DISABLE_FILE" != "x1"; then
39141  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
39142fi
39143if test "x$CURL_DISABLE_TELNET" != "x1"; then
39144  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
39145fi
39146if test "x$CURL_DISABLE_LDAP" != "x1"; then
39147  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
39148  if test "x$CURL_DISABLE_LDAPS" != "x1"; then
39149    if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
39150      (test "x$USE_OPENLDAP" != "x1"  && test "x$HAVE_LDAP_SSL" = "x1"); then
39151      SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
39152    fi
39153  fi
39154fi
39155if test "x$CURL_DISABLE_DICT" != "x1"; then
39156  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
39157fi
39158if test "x$CURL_DISABLE_TFTP" != "x1"; then
39159  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
39160fi
39161if test "x$CURL_DISABLE_GOPHER" != "x1"; then
39162  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
39163fi
39164if test "x$CURL_DISABLE_POP3" != "x1"; then
39165  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
39166  if test "x$SSL_ENABLED" = "x1"; then
39167    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
39168  fi
39169fi
39170if test "x$CURL_DISABLE_IMAP" != "x1"; then
39171  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
39172  if test "x$SSL_ENABLED" = "x1"; then
39173    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
39174  fi
39175fi
39176if test "x$CURL_DISABLE_SMTP" != "x1"; then
39177  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
39178  if test "x$SSL_ENABLED" = "x1"; then
39179    SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
39180  fi
39181fi
39182if test "x$USE_LIBSSH2" = "x1"; then
39183  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
39184  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
39185fi
39186if test "x$CURL_DISABLE_RTSP" != "x1"; then
39187  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
39188fi
39189if test "x$USE_LIBRTMP" = "x1"; then
39190  SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
39191fi
39192
39193SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
39194
39195
39196
39197
39198squeeze CFLAGS
39199squeeze CPPFLAGS
39200squeeze DEFS
39201squeeze LDFLAGS
39202squeeze LIBS
39203
39204squeeze LIBCURL_LIBS
39205squeeze CURL_NETWORK_LIBS
39206squeeze CURL_NETWORK_AND_TIME_LIBS
39207
39208squeeze SUPPORT_FEATURES
39209squeeze SUPPORT_PROTOCOLS
39210
39211
39212
39213  xc_bad_var_libs=no
39214  for xc_word in $LIBS; do
39215    case "$xc_word" in
39216      -l* | --library=*)
39217        :
39218        ;;
39219      *)
39220        xc_bad_var_libs=yes
39221        ;;
39222    esac
39223  done
39224  if test $xc_bad_var_libs = yes; then
39225    { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
39226$as_echo "$as_me: using LIBS: $LIBS" >&6;}
39227    { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
39228$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
39229  fi
39230
39231
39232  xc_bad_var_ldflags=no
39233  for xc_word in $LDFLAGS; do
39234    case "$xc_word" in
39235      -D*)
39236        xc_bad_var_ldflags=yes
39237        ;;
39238      -U*)
39239        xc_bad_var_ldflags=yes
39240        ;;
39241      -I*)
39242        xc_bad_var_ldflags=yes
39243        ;;
39244      -l* | --library=*)
39245        xc_bad_var_ldflags=yes
39246        ;;
39247    esac
39248  done
39249  if test $xc_bad_var_ldflags = yes; then
39250    { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
39251$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
39252    xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
39253    for xc_word in $LDFLAGS; do
39254      case "$xc_word" in
39255        -D*)
39256          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39257$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39258          ;;
39259        -U*)
39260          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39261$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39262          ;;
39263        -I*)
39264          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39265$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39266          ;;
39267        -l* | --library=*)
39268          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39269$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39270          ;;
39271      esac
39272    done
39273  fi
39274
39275
39276  xc_bad_var_cppflags=no
39277  for xc_word in $CPPFLAGS; do
39278    case "$xc_word" in
39279      -rpath*)
39280        xc_bad_var_cppflags=yes
39281        ;;
39282      -L* | --library-path=*)
39283        xc_bad_var_cppflags=yes
39284        ;;
39285      -l* | --library=*)
39286        xc_bad_var_cppflags=yes
39287        ;;
39288    esac
39289  done
39290  if test $xc_bad_var_cppflags = yes; then
39291    { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
39292$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
39293    xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
39294    for xc_word in $CPPFLAGS; do
39295      case "$xc_word" in
39296        -rpath*)
39297          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39298$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39299          ;;
39300        -L* | --library-path=*)
39301          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39302$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39303          ;;
39304        -l* | --library=*)
39305          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39306$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39307          ;;
39308      esac
39309    done
39310  fi
39311
39312
39313  xc_bad_var_cflags=no
39314  for xc_word in $CFLAGS; do
39315    case "$xc_word" in
39316      -D*)
39317        xc_bad_var_cflags=yes
39318        ;;
39319      -U*)
39320        xc_bad_var_cflags=yes
39321        ;;
39322      -I*)
39323        xc_bad_var_cflags=yes
39324        ;;
39325      -rpath*)
39326        xc_bad_var_cflags=yes
39327        ;;
39328      -L* | --library-path=*)
39329        xc_bad_var_cflags=yes
39330        ;;
39331      -l* | --library=*)
39332        xc_bad_var_cflags=yes
39333        ;;
39334    esac
39335  done
39336  if test $xc_bad_var_cflags = yes; then
39337    { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
39338$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
39339    xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
39340    for xc_word in $CFLAGS; do
39341      case "$xc_word" in
39342        -D*)
39343          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39344$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39345          ;;
39346        -U*)
39347          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39348$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39349          ;;
39350        -I*)
39351          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39352$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39353          ;;
39354        -rpath*)
39355          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39356$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39357          ;;
39358        -L* | --library-path=*)
39359          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39360$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39361          ;;
39362        -l* | --library=*)
39363          { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39364$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39365          ;;
39366      esac
39367    done
39368  fi
39369
39370  if test $xc_bad_var_libs = yes ||
39371     test $xc_bad_var_cflags = yes ||
39372     test $xc_bad_var_ldflags = yes ||
39373     test $xc_bad_var_cppflags = yes; then
39374     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
39375$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
39376  fi
39377
39378
39379if test "x$want_curldebug_assumed" = "xyes" &&
39380  test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
39381  ac_configure_args="$ac_configure_args --enable-curldebug"
39382fi
39383
39384ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
39385
39386cat >confcache <<\_ACEOF
39387# This file is a shell script that caches the results of configure
39388# tests run on this system so they can be shared between configure
39389# scripts and configure runs, see configure's option --config-cache.
39390# It is not useful on other systems.  If it contains results you don't
39391# want to keep, you may remove or edit it.
39392#
39393# config.status only pays attention to the cache file if you give it
39394# the --recheck option to rerun configure.
39395#
39396# `ac_cv_env_foo' variables (set or unset) will be overridden when
39397# loading this file, other *unset* `ac_cv_foo' will be assigned the
39398# following values.
39399
39400_ACEOF
39401
39402# The following way of writing the cache mishandles newlines in values,
39403# but we know of no workaround that is simple, portable, and efficient.
39404# So, we kill variables containing newlines.
39405# Ultrix sh set writes to stderr and can't be redirected directly,
39406# and sets the high bit in the cache file unless we assign to the vars.
39407(
39408  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39409    eval ac_val=\$$ac_var
39410    case $ac_val in #(
39411    *${as_nl}*)
39412      case $ac_var in #(
39413      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39414$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39415      esac
39416      case $ac_var in #(
39417      _ | IFS | as_nl) ;; #(
39418      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39419      *) { eval $ac_var=; unset $ac_var;} ;;
39420      esac ;;
39421    esac
39422  done
39423
39424  (set) 2>&1 |
39425    case $as_nl`(ac_space=' '; set) 2>&1` in #(
39426    *${as_nl}ac_space=\ *)
39427      # `set' does not quote correctly, so add quotes: double-quote
39428      # substitution turns \\\\ into \\, and sed turns \\ into \.
39429      sed -n \
39430	"s/'/'\\\\''/g;
39431	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39432      ;; #(
39433    *)
39434      # `set' quotes correctly as required by POSIX, so do not add quotes.
39435      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39436      ;;
39437    esac |
39438    sort
39439) |
39440  sed '
39441     /^ac_cv_env_/b end
39442     t clear
39443     :clear
39444     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39445     t end
39446     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39447     :end' >>confcache
39448if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39449  if test -w "$cache_file"; then
39450    if test "x$cache_file" != "x/dev/null"; then
39451      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39452$as_echo "$as_me: updating cache $cache_file" >&6;}
39453      if test ! -f "$cache_file" || test -h "$cache_file"; then
39454	cat confcache >"$cache_file"
39455      else
39456        case $cache_file in #(
39457        */* | ?:*)
39458	  mv -f confcache "$cache_file"$$ &&
39459	  mv -f "$cache_file"$$ "$cache_file" ;; #(
39460        *)
39461	  mv -f confcache "$cache_file" ;;
39462	esac
39463      fi
39464    fi
39465  else
39466    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39467$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39468  fi
39469fi
39470rm -f confcache
39471
39472test "x$prefix" = xNONE && prefix=$ac_default_prefix
39473# Let make expand exec_prefix.
39474test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39475
39476DEFS=-DHAVE_CONFIG_H
39477
39478ac_libobjs=
39479ac_ltlibobjs=
39480U=
39481for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39482  # 1. Remove the extension, and $U if already installed.
39483  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39484  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
39485  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39486  #    will be set to the directory where LIBOBJS objects are built.
39487  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39488  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
39489done
39490LIBOBJS=$ac_libobjs
39491
39492LTLIBOBJS=$ac_ltlibobjs
39493
39494
39495if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39496  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
39497Usually this means the macro was only invoked conditionally." "$LINENO" 5
39498fi
39499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
39500$as_echo_n "checking that generated files are newer than configure... " >&6; }
39501   if test -n "$am_sleep_pid"; then
39502     # Hide warnings about reused PIDs.
39503     wait $am_sleep_pid 2>/dev/null
39504   fi
39505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
39506$as_echo "done" >&6; }
39507if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39508  as_fn_error $? "conditional \"AMDEP\" was never defined.
39509Usually this means the macro was only invoked conditionally." "$LINENO" 5
39510fi
39511if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39512  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
39513Usually this means the macro was only invoked conditionally." "$LINENO" 5
39514fi
39515 if test -n "$EXEEXT"; then
39516  am__EXEEXT_TRUE=
39517  am__EXEEXT_FALSE='#'
39518else
39519  am__EXEEXT_TRUE='#'
39520  am__EXEEXT_FALSE=
39521fi
39522
39523if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
39524  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
39525Usually this means the macro was only invoked conditionally." "$LINENO" 5
39526fi
39527if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
39528  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
39529Usually this means the macro was only invoked conditionally." "$LINENO" 5
39530fi
39531if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
39532  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
39533Usually this means the macro was only invoked conditionally." "$LINENO" 5
39534fi
39535if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
39536  as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
39537Usually this means the macro was only invoked conditionally." "$LINENO" 5
39538fi
39539if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
39540  as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
39541Usually this means the macro was only invoked conditionally." "$LINENO" 5
39542fi
39543if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
39544  as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
39545Usually this means the macro was only invoked conditionally." "$LINENO" 5
39546fi
39547if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
39548  as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
39549Usually this means the macro was only invoked conditionally." "$LINENO" 5
39550fi
39551if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
39552  as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
39553Usually this means the macro was only invoked conditionally." "$LINENO" 5
39554fi
39555if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
39556  as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
39557Usually this means the macro was only invoked conditionally." "$LINENO" 5
39558fi
39559if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
39560  as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
39561Usually this means the macro was only invoked conditionally." "$LINENO" 5
39562fi
39563if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
39564  as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
39565Usually this means the macro was only invoked conditionally." "$LINENO" 5
39566fi
39567if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
39568  as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
39569Usually this means the macro was only invoked conditionally." "$LINENO" 5
39570fi
39571if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
39572  as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
39573Usually this means the macro was only invoked conditionally." "$LINENO" 5
39574fi
39575if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
39576  as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
39577Usually this means the macro was only invoked conditionally." "$LINENO" 5
39578fi
39579if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
39580  as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
39581Usually this means the macro was only invoked conditionally." "$LINENO" 5
39582fi
39583if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
39584  as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
39585Usually this means the macro was only invoked conditionally." "$LINENO" 5
39586fi
39587
39588: "${CONFIG_STATUS=./config.status}"
39589ac_write_fail=0
39590ac_clean_files_save=$ac_clean_files
39591ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39592{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39593$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
39594as_write_fail=0
39595cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
39596#! $SHELL
39597# Generated by $as_me.
39598# Run this file to recreate the current configuration.
39599# Compiler output produced by configure, useful for debugging
39600# configure, is in config.log if it exists.
39601
39602debug=false
39603ac_cs_recheck=false
39604ac_cs_silent=false
39605
39606SHELL=\${CONFIG_SHELL-$SHELL}
39607export SHELL
39608_ASEOF
39609cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
39610## -------------------- ##
39611## M4sh Initialization. ##
39612## -------------------- ##
39613
39614# Be more Bourne compatible
39615DUALCASE=1; export DUALCASE # for MKS sh
39616if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
39617  emulate sh
39618  NULLCMD=:
39619  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
39620  # is contrary to our usage.  Disable this feature.
39621  alias -g '${1+"$@"}'='"$@"'
39622  setopt NO_GLOB_SUBST
39623else
39624  case `(set -o) 2>/dev/null` in #(
39625  *posix*) :
39626    set -o posix ;; #(
39627  *) :
39628     ;;
39629esac
39630fi
39631
39632
39633as_nl='
39634'
39635export as_nl
39636# Printing a long string crashes Solaris 7 /usr/bin/printf.
39637as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39638as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39639as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
39640# Prefer a ksh shell builtin over an external printf program on Solaris,
39641# but without wasting forks for bash or zsh.
39642if test -z "$BASH_VERSION$ZSH_VERSION" \
39643    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
39644  as_echo='print -r --'
39645  as_echo_n='print -rn --'
39646elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39647  as_echo='printf %s\n'
39648  as_echo_n='printf %s'
39649else
39650  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
39651    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
39652    as_echo_n='/usr/ucb/echo -n'
39653  else
39654    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
39655    as_echo_n_body='eval
39656      arg=$1;
39657      case $arg in #(
39658      *"$as_nl"*)
39659	expr "X$arg" : "X\\(.*\\)$as_nl";
39660	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
39661      esac;
39662      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
39663    '
39664    export as_echo_n_body
39665    as_echo_n='sh -c $as_echo_n_body as_echo'
39666  fi
39667  export as_echo_body
39668  as_echo='sh -c $as_echo_body as_echo'
39669fi
39670
39671
39672
39673# IFS
39674# We need space, tab and new line, in precisely that order.  Quoting is
39675# there to prevent editors from complaining about space-tab.
39676# (If _AS_PATH_WALK were called with IFS unset, it would disable word
39677# splitting by setting IFS to empty value.)
39678IFS=" ""	$as_nl"
39679
39680# Find who we are.  Look in the path if we contain no directory separator.
39681as_myself=
39682case $0 in #((
39683  *[\\/]* ) as_myself=$0 ;;
39684  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39685for as_dir in $PATH
39686do
39687  IFS=$as_save_IFS
39688  test -z "$as_dir" && as_dir=.
39689    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39690  done
39691IFS=$as_save_IFS
39692
39693     ;;
39694esac
39695# We did not find ourselves, most probably we were run as `sh COMMAND'
39696# in which case we are not to be found in the path.
39697if test "x$as_myself" = x; then
39698  as_myself=$0
39699fi
39700if test ! -f "$as_myself"; then
39701  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39702  exit 1
39703fi
39704
39705# Unset variables that we do not need and which cause bugs (e.g. in
39706# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
39707# suppresses any "Segmentation fault" message there.  '((' could
39708# trigger a bug in pdksh 5.2.14.
39709for as_var in BASH_ENV ENV MAIL MAILPATH
39710do eval test x\${$as_var+set} = xset \
39711  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
39712done
39713PS1='$ '
39714PS2='> '
39715PS4='+ '
39716
39717# NLS nuisances.
39718LC_ALL=C
39719export LC_ALL
39720LANGUAGE=C
39721export LANGUAGE
39722
39723# CDPATH.
39724(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39725
39726
39727# as_fn_error STATUS ERROR [LINENO LOG_FD]
39728# ----------------------------------------
39729# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
39730# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
39731# script with STATUS, using 1 if that was 0.
39732as_fn_error ()
39733{
39734  as_status=$1; test $as_status -eq 0 && as_status=1
39735  if test "$4"; then
39736    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
39737    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39738  fi
39739  $as_echo "$as_me: error: $2" >&2
39740  as_fn_exit $as_status
39741} # as_fn_error
39742
39743
39744# as_fn_set_status STATUS
39745# -----------------------
39746# Set $? to STATUS, without forking.
39747as_fn_set_status ()
39748{
39749  return $1
39750} # as_fn_set_status
39751
39752# as_fn_exit STATUS
39753# -----------------
39754# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
39755as_fn_exit ()
39756{
39757  set +e
39758  as_fn_set_status $1
39759  exit $1
39760} # as_fn_exit
39761
39762# as_fn_unset VAR
39763# ---------------
39764# Portably unset VAR.
39765as_fn_unset ()
39766{
39767  { eval $1=; unset $1;}
39768}
39769as_unset=as_fn_unset
39770# as_fn_append VAR VALUE
39771# ----------------------
39772# Append the text in VALUE to the end of the definition contained in VAR. Take
39773# advantage of any shell optimizations that allow amortized linear growth over
39774# repeated appends, instead of the typical quadratic growth present in naive
39775# implementations.
39776if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
39777  eval 'as_fn_append ()
39778  {
39779    eval $1+=\$2
39780  }'
39781else
39782  as_fn_append ()
39783  {
39784    eval $1=\$$1\$2
39785  }
39786fi # as_fn_append
39787
39788# as_fn_arith ARG...
39789# ------------------
39790# Perform arithmetic evaluation on the ARGs, and store the result in the
39791# global $as_val. Take advantage of shells that can avoid forks. The arguments
39792# must be portable across $(()) and expr.
39793if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
39794  eval 'as_fn_arith ()
39795  {
39796    as_val=$(( $* ))
39797  }'
39798else
39799  as_fn_arith ()
39800  {
39801    as_val=`expr "$@" || test $? -eq 1`
39802  }
39803fi # as_fn_arith
39804
39805
39806if expr a : '\(a\)' >/dev/null 2>&1 &&
39807   test "X`expr 00001 : '.*\(...\)'`" = X001; then
39808  as_expr=expr
39809else
39810  as_expr=false
39811fi
39812
39813if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39814  as_basename=basename
39815else
39816  as_basename=false
39817fi
39818
39819if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39820  as_dirname=dirname
39821else
39822  as_dirname=false
39823fi
39824
39825as_me=`$as_basename -- "$0" ||
39826$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39827	 X"$0" : 'X\(//\)$' \| \
39828	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39829$as_echo X/"$0" |
39830    sed '/^.*\/\([^/][^/]*\)\/*$/{
39831	    s//\1/
39832	    q
39833	  }
39834	  /^X\/\(\/\/\)$/{
39835	    s//\1/
39836	    q
39837	  }
39838	  /^X\/\(\/\).*/{
39839	    s//\1/
39840	    q
39841	  }
39842	  s/.*/./; q'`
39843
39844# Avoid depending upon Character Ranges.
39845as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39846as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39847as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39848as_cr_digits='0123456789'
39849as_cr_alnum=$as_cr_Letters$as_cr_digits
39850
39851ECHO_C= ECHO_N= ECHO_T=
39852case `echo -n x` in #(((((
39853-n*)
39854  case `echo 'xy\c'` in
39855  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
39856  xy)  ECHO_C='\c';;
39857  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
39858       ECHO_T='	';;
39859  esac;;
39860*)
39861  ECHO_N='-n';;
39862esac
39863
39864rm -f conf$$ conf$$.exe conf$$.file
39865if test -d conf$$.dir; then
39866  rm -f conf$$.dir/conf$$.file
39867else
39868  rm -f conf$$.dir
39869  mkdir conf$$.dir 2>/dev/null
39870fi
39871if (echo >conf$$.file) 2>/dev/null; then
39872  if ln -s conf$$.file conf$$ 2>/dev/null; then
39873    as_ln_s='ln -s'
39874    # ... but there are two gotchas:
39875    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39876    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39877    # In both cases, we have to default to `cp -pR'.
39878    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39879      as_ln_s='cp -pR'
39880  elif ln conf$$.file conf$$ 2>/dev/null; then
39881    as_ln_s=ln
39882  else
39883    as_ln_s='cp -pR'
39884  fi
39885else
39886  as_ln_s='cp -pR'
39887fi
39888rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39889rmdir conf$$.dir 2>/dev/null
39890
39891
39892# as_fn_mkdir_p
39893# -------------
39894# Create "$as_dir" as a directory, including parents if necessary.
39895as_fn_mkdir_p ()
39896{
39897
39898  case $as_dir in #(
39899  -*) as_dir=./$as_dir;;
39900  esac
39901  test -d "$as_dir" || eval $as_mkdir_p || {
39902    as_dirs=
39903    while :; do
39904      case $as_dir in #(
39905      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
39906      *) as_qdir=$as_dir;;
39907      esac
39908      as_dirs="'$as_qdir' $as_dirs"
39909      as_dir=`$as_dirname -- "$as_dir" ||
39910$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39911	 X"$as_dir" : 'X\(//\)[^/]' \| \
39912	 X"$as_dir" : 'X\(//\)$' \| \
39913	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39914$as_echo X"$as_dir" |
39915    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39916	    s//\1/
39917	    q
39918	  }
39919	  /^X\(\/\/\)[^/].*/{
39920	    s//\1/
39921	    q
39922	  }
39923	  /^X\(\/\/\)$/{
39924	    s//\1/
39925	    q
39926	  }
39927	  /^X\(\/\).*/{
39928	    s//\1/
39929	    q
39930	  }
39931	  s/.*/./; q'`
39932      test -d "$as_dir" && break
39933    done
39934    test -z "$as_dirs" || eval "mkdir $as_dirs"
39935  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
39936
39937
39938} # as_fn_mkdir_p
39939if mkdir -p . 2>/dev/null; then
39940  as_mkdir_p='mkdir -p "$as_dir"'
39941else
39942  test -d ./-p && rmdir ./-p
39943  as_mkdir_p=false
39944fi
39945
39946
39947# as_fn_executable_p FILE
39948# -----------------------
39949# Test if FILE is an executable regular file.
39950as_fn_executable_p ()
39951{
39952  test -f "$1" && test -x "$1"
39953} # as_fn_executable_p
39954as_test_x='test -x'
39955as_executable_p=as_fn_executable_p
39956
39957# Sed expression to map a string onto a valid CPP name.
39958as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39959
39960# Sed expression to map a string onto a valid variable name.
39961as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39962
39963
39964exec 6>&1
39965## ----------------------------------- ##
39966## Main body of $CONFIG_STATUS script. ##
39967## ----------------------------------- ##
39968_ASEOF
39969test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
39970
39971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39972# Save the log message, to keep $0 and so on meaningful, and to
39973# report actual input values of CONFIG_FILES etc. instead of their
39974# values after options handling.
39975ac_log="
39976This file was extended by curl $as_me -, which was
39977generated by GNU Autoconf 2.69.  Invocation command line was
39978
39979  CONFIG_FILES    = $CONFIG_FILES
39980  CONFIG_HEADERS  = $CONFIG_HEADERS
39981  CONFIG_LINKS    = $CONFIG_LINKS
39982  CONFIG_COMMANDS = $CONFIG_COMMANDS
39983  $ $0 $@
39984
39985on `(hostname || uname -n) 2>/dev/null | sed 1q`
39986"
39987
39988_ACEOF
39989
39990case $ac_config_files in *"
39991"*) set x $ac_config_files; shift; ac_config_files=$*;;
39992esac
39993
39994case $ac_config_headers in *"
39995"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
39996esac
39997
39998
39999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40000# Files that config.status was made for.
40001config_files="$ac_config_files"
40002config_headers="$ac_config_headers"
40003config_commands="$ac_config_commands"
40004
40005_ACEOF
40006
40007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40008ac_cs_usage="\
40009\`$as_me' instantiates files and other configuration actions
40010from templates according to the current configuration.  Unless the files
40011and actions are specified as TAGs, all are instantiated by default.
40012
40013Usage: $0 [OPTION]... [TAG]...
40014
40015  -h, --help       print this help, then exit
40016  -V, --version    print version number and configuration settings, then exit
40017      --config     print configuration, then exit
40018  -q, --quiet, --silent
40019                   do not print progress messages
40020  -d, --debug      don't remove temporary files
40021      --recheck    update $as_me by reconfiguring in the same conditions
40022      --file=FILE[:TEMPLATE]
40023                   instantiate the configuration file FILE
40024      --header=FILE[:TEMPLATE]
40025                   instantiate the configuration header FILE
40026
40027Configuration files:
40028$config_files
40029
40030Configuration headers:
40031$config_headers
40032
40033Configuration commands:
40034$config_commands
40035
40036Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
40037
40038_ACEOF
40039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40040ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40041ac_cs_version="\\
40042curl config.status -
40043configured by $0, generated by GNU Autoconf 2.69,
40044  with options \\"\$ac_cs_config\\"
40045
40046Copyright (C) 2012 Free Software Foundation, Inc.
40047This config.status script is free software; the Free Software Foundation
40048gives unlimited permission to copy, distribute and modify it."
40049
40050ac_pwd='$ac_pwd'
40051srcdir='$srcdir'
40052INSTALL='$INSTALL'
40053MKDIR_P='$MKDIR_P'
40054AWK='$AWK'
40055test -n "\$AWK" || AWK=awk
40056_ACEOF
40057
40058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40059# The default lists apply if the user does not specify any file.
40060ac_need_defaults=:
40061while test $# != 0
40062do
40063  case $1 in
40064  --*=?*)
40065    ac_option=`expr "X$1" : 'X\([^=]*\)='`
40066    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40067    ac_shift=:
40068    ;;
40069  --*=)
40070    ac_option=`expr "X$1" : 'X\([^=]*\)='`
40071    ac_optarg=
40072    ac_shift=:
40073    ;;
40074  *)
40075    ac_option=$1
40076    ac_optarg=$2
40077    ac_shift=shift
40078    ;;
40079  esac
40080
40081  case $ac_option in
40082  # Handling of the options.
40083  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40084    ac_cs_recheck=: ;;
40085  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40086    $as_echo "$ac_cs_version"; exit ;;
40087  --config | --confi | --conf | --con | --co | --c )
40088    $as_echo "$ac_cs_config"; exit ;;
40089  --debug | --debu | --deb | --de | --d | -d )
40090    debug=: ;;
40091  --file | --fil | --fi | --f )
40092    $ac_shift
40093    case $ac_optarg in
40094    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40095    '') as_fn_error $? "missing file argument" ;;
40096    esac
40097    as_fn_append CONFIG_FILES " '$ac_optarg'"
40098    ac_need_defaults=false;;
40099  --header | --heade | --head | --hea )
40100    $ac_shift
40101    case $ac_optarg in
40102    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40103    esac
40104    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40105    ac_need_defaults=false;;
40106  --he | --h)
40107    # Conflict between --help and --header
40108    as_fn_error $? "ambiguous option: \`$1'
40109Try \`$0 --help' for more information.";;
40110  --help | --hel | -h )
40111    $as_echo "$ac_cs_usage"; exit ;;
40112  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40113  | -silent | --silent | --silen | --sile | --sil | --si | --s)
40114    ac_cs_silent=: ;;
40115
40116  # This is an error.
40117  -*) as_fn_error $? "unrecognized option: \`$1'
40118Try \`$0 --help' for more information." ;;
40119
40120  *) as_fn_append ac_config_targets " $1"
40121     ac_need_defaults=false ;;
40122
40123  esac
40124  shift
40125done
40126
40127ac_configure_extra_args=
40128
40129if $ac_cs_silent; then
40130  exec 6>/dev/null
40131  ac_configure_extra_args="$ac_configure_extra_args --silent"
40132fi
40133
40134_ACEOF
40135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40136if \$ac_cs_recheck; then
40137  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40138  shift
40139  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40140  CONFIG_SHELL='$SHELL'
40141  export CONFIG_SHELL
40142  exec "\$@"
40143fi
40144
40145_ACEOF
40146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40147exec 5>>config.log
40148{
40149  echo
40150  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40151## Running $as_me. ##
40152_ASBOX
40153  $as_echo "$ac_log"
40154} >&5
40155
40156_ACEOF
40157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40158#
40159# INIT-COMMANDS
40160#
40161AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40162
40163
40164# The HP-UX ksh and POSIX shell print the target directory to stdout
40165# if CDPATH is set.
40166(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40167
40168sed_quote_subst='$sed_quote_subst'
40169double_quote_subst='$double_quote_subst'
40170delay_variable_subst='$delay_variable_subst'
40171macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40172macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40173AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40174DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40175OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40176enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40177enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40178pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40179enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40180SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40181ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40182PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40183host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40184host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40185host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40186build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40187build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40188build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40189SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40190Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40191GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40192EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40193FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40194LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40195NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40196LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40197max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40198ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40199exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40200lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40201lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40202lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40203lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40204lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40205reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40206reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40207deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40208file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40209file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40210want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40211sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40212AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40213AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40214archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40215STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40216RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40217old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40218old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40219old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40220lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40221CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40222CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40223compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40224GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40225lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40226lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40227lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40228lt_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"`'
40229nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40230lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40231objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40232MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40233lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40234lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40235lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40236lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40237lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40238need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40239MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40240DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40241NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40242LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40243OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40244OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40245libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40246shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40247extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40248archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40249enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40250export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40251whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40252compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40253old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40254old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40255archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40256archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40257module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40258module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40259with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40260allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40261no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40262hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40263hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40264hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40265hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40266hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40267hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40268hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40269inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40270link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40271always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40272export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40273exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40274include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40275prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40276postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40277file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40278variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40279need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40280need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40281version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40282runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40283shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40284shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40285libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40286library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40287soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40288install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40289postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40290postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40291finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40292finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40293hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40294sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40295sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40296hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40297enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40298enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40299enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40300old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40301striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40302
40303LTCC='$LTCC'
40304LTCFLAGS='$LTCFLAGS'
40305compiler='$compiler_DEFAULT'
40306
40307# A function that is used when there is no print builtin or printf.
40308func_fallback_echo ()
40309{
40310  eval 'cat <<_LTECHO_EOF
40311\$1
40312_LTECHO_EOF'
40313}
40314
40315# Quote evaled strings.
40316for var in AS \
40317DLLTOOL \
40318OBJDUMP \
40319SHELL \
40320ECHO \
40321PATH_SEPARATOR \
40322SED \
40323GREP \
40324EGREP \
40325FGREP \
40326LD \
40327NM \
40328LN_S \
40329lt_SP2NL \
40330lt_NL2SP \
40331reload_flag \
40332deplibs_check_method \
40333file_magic_cmd \
40334file_magic_glob \
40335want_nocaseglob \
40336sharedlib_from_linklib_cmd \
40337AR \
40338AR_FLAGS \
40339archiver_list_spec \
40340STRIP \
40341RANLIB \
40342CC \
40343CFLAGS \
40344compiler \
40345lt_cv_sys_global_symbol_pipe \
40346lt_cv_sys_global_symbol_to_cdecl \
40347lt_cv_sys_global_symbol_to_c_name_address \
40348lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40349nm_file_list_spec \
40350lt_prog_compiler_no_builtin_flag \
40351lt_prog_compiler_pic \
40352lt_prog_compiler_wl \
40353lt_prog_compiler_static \
40354lt_cv_prog_compiler_c_o \
40355need_locks \
40356MANIFEST_TOOL \
40357DSYMUTIL \
40358NMEDIT \
40359LIPO \
40360OTOOL \
40361OTOOL64 \
40362shrext_cmds \
40363export_dynamic_flag_spec \
40364whole_archive_flag_spec \
40365compiler_needs_object \
40366with_gnu_ld \
40367allow_undefined_flag \
40368no_undefined_flag \
40369hardcode_libdir_flag_spec \
40370hardcode_libdir_separator \
40371exclude_expsyms \
40372include_expsyms \
40373file_list_spec \
40374variables_saved_for_relink \
40375libname_spec \
40376library_names_spec \
40377soname_spec \
40378install_override_mode \
40379finish_eval \
40380old_striplib \
40381striplib; do
40382    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40383    *[\\\\\\\`\\"\\\$]*)
40384      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40385      ;;
40386    *)
40387      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40388      ;;
40389    esac
40390done
40391
40392# Double-quote double-evaled strings.
40393for var in reload_cmds \
40394old_postinstall_cmds \
40395old_postuninstall_cmds \
40396old_archive_cmds \
40397extract_expsyms_cmds \
40398old_archive_from_new_cmds \
40399old_archive_from_expsyms_cmds \
40400archive_cmds \
40401archive_expsym_cmds \
40402module_cmds \
40403module_expsym_cmds \
40404export_symbols_cmds \
40405prelink_cmds \
40406postlink_cmds \
40407postinstall_cmds \
40408postuninstall_cmds \
40409finish_cmds \
40410sys_lib_search_path_spec \
40411sys_lib_dlsearch_path_spec; do
40412    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40413    *[\\\\\\\`\\"\\\$]*)
40414      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40415      ;;
40416    *)
40417      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40418      ;;
40419    esac
40420done
40421
40422ac_aux_dir='$ac_aux_dir'
40423xsi_shell='$xsi_shell'
40424lt_shell_append='$lt_shell_append'
40425
40426# See if we are running on zsh, and set the options which allow our
40427# commands through without removal of \ escapes INIT.
40428if test -n "\${ZSH_VERSION+set}" ; then
40429   setopt NO_GLOB_SUBST
40430fi
40431
40432
40433    PACKAGE='$PACKAGE'
40434    VERSION='$VERSION'
40435    TIMESTAMP='$TIMESTAMP'
40436    RM='$RM'
40437    ofile='$ofile'
40438
40439
40440
40441
40442_ACEOF
40443
40444cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40445
40446# Handling of arguments.
40447for ac_config_target in $ac_config_targets
40448do
40449  case $ac_config_target in
40450    "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
40451    "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40452    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40453    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40454    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40455    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40456    "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40457    "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
40458    "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
40459    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40460    "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
40461    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40462    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40463    "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
40464    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40465    "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
40466    "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
40467    "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
40468    "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
40469    "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
40470    "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
40471    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
40472    "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
40473    "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
40474    "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
40475    "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
40476    "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
40477    "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
40478    "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
40479    "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
40480    "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
40481    "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
40482    "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
40483    "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
40484    "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
40485    "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
40486    "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
40487
40488  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
40489  esac
40490done
40491
40492
40493# If the user did not use the arguments to specify the items to instantiate,
40494# then the envvar interface is used.  Set only those that are not.
40495# We use the long form for the default assignment because of an extremely
40496# bizarre bug on SunOS 4.1.3.
40497if $ac_need_defaults; then
40498  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40499  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40500  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40501fi
40502
40503# Have a temporary directory for convenience.  Make it in the build tree
40504# simply because there is no reason against having it here, and in addition,
40505# creating and moving files from /tmp can sometimes cause problems.
40506# Hook for its removal unless debugging.
40507# Note that there is a small window in which the directory will not be cleaned:
40508# after its creation but before its name has been assigned to `$tmp'.
40509$debug ||
40510{
40511  tmp= ac_tmp=
40512  trap 'exit_status=$?
40513  : "${ac_tmp:=$tmp}"
40514  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
40515' 0
40516  trap 'as_fn_exit 1' 1 2 13 15
40517}
40518# Create a (secure) tmp directory for tmp files.
40519
40520{
40521  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40522  test -d "$tmp"
40523}  ||
40524{
40525  tmp=./conf$$-$RANDOM
40526  (umask 077 && mkdir "$tmp")
40527} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
40528ac_tmp=$tmp
40529
40530# Set up the scripts for CONFIG_FILES section.
40531# No need to generate them if there are no CONFIG_FILES.
40532# This happens for instance with `./config.status config.h'.
40533if test -n "$CONFIG_FILES"; then
40534
40535
40536ac_cr=`echo X | tr X '\015'`
40537# On cygwin, bash can eat \r inside `` if the user requested igncr.
40538# But we know of no other shell where ac_cr would be empty at this
40539# point, so we can use a bashism as a fallback.
40540if test "x$ac_cr" = x; then
40541  eval ac_cr=\$\'\\r\'
40542fi
40543ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
40544if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
40545  ac_cs_awk_cr='\\r'
40546else
40547  ac_cs_awk_cr=$ac_cr
40548fi
40549
40550echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
40551_ACEOF
40552
40553
40554{
40555  echo "cat >conf$$subs.awk <<_ACEOF" &&
40556  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
40557  echo "_ACEOF"
40558} >conf$$subs.sh ||
40559  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40560ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
40561ac_delim='%!_!# '
40562for ac_last_try in false false false false false :; do
40563  . ./conf$$subs.sh ||
40564    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40565
40566  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
40567  if test $ac_delim_n = $ac_delim_num; then
40568    break
40569  elif $ac_last_try; then
40570    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40571  else
40572    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40573  fi
40574done
40575rm -f conf$$subs.sh
40576
40577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40578cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
40579_ACEOF
40580sed -n '
40581h
40582s/^/S["/; s/!.*/"]=/
40583p
40584g
40585s/^[^!]*!//
40586:repl
40587t repl
40588s/'"$ac_delim"'$//
40589t delim
40590:nl
40591h
40592s/\(.\{148\}\)..*/\1/
40593t more1
40594s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
40595p
40596n
40597b repl
40598:more1
40599s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40600p
40601g
40602s/.\{148\}//
40603t nl
40604:delim
40605h
40606s/\(.\{148\}\)..*/\1/
40607t more2
40608s/["\\]/\\&/g; s/^/"/; s/$/"/
40609p
40610b
40611:more2
40612s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40613p
40614g
40615s/.\{148\}//
40616t delim
40617' <conf$$subs.awk | sed '
40618/^[^""]/{
40619  N
40620  s/\n//
40621}
40622' >>$CONFIG_STATUS || ac_write_fail=1
40623rm -f conf$$subs.awk
40624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40625_ACAWK
40626cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
40627  for (key in S) S_is_set[key] = 1
40628  FS = ""
40629
40630}
40631{
40632  line = $ 0
40633  nfields = split(line, field, "@")
40634  substed = 0
40635  len = length(field[1])
40636  for (i = 2; i < nfields; i++) {
40637    key = field[i]
40638    keylen = length(key)
40639    if (S_is_set[key]) {
40640      value = S[key]
40641      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
40642      len += length(value) + length(field[++i])
40643      substed = 1
40644    } else
40645      len += 1 + keylen
40646  }
40647
40648  print line
40649}
40650
40651_ACAWK
40652_ACEOF
40653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40654if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
40655  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
40656else
40657  cat
40658fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
40659  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
40660_ACEOF
40661
40662# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
40663# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
40664# trailing colons and then remove the whole line if VPATH becomes empty
40665# (actually we leave an empty line to preserve line numbers).
40666if test "x$srcdir" = x.; then
40667  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
40668h
40669s///
40670s/^/:/
40671s/[	 ]*$/:/
40672s/:\$(srcdir):/:/g
40673s/:\${srcdir}:/:/g
40674s/:@srcdir@:/:/g
40675s/^:*//
40676s/:*$//
40677x
40678s/\(=[	 ]*\).*/\1/
40679G
40680s/\n//
40681s/^[^=]*=[	 ]*$//
40682}'
40683fi
40684
40685cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40686fi # test -n "$CONFIG_FILES"
40687
40688# Set up the scripts for CONFIG_HEADERS section.
40689# No need to generate them if there are no CONFIG_HEADERS.
40690# This happens for instance with `./config.status Makefile'.
40691if test -n "$CONFIG_HEADERS"; then
40692cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
40693BEGIN {
40694_ACEOF
40695
40696# Transform confdefs.h into an awk script `defines.awk', embedded as
40697# here-document in config.status, that substitutes the proper values into
40698# config.h.in to produce config.h.
40699
40700# Create a delimiter string that does not exist in confdefs.h, to ease
40701# handling of long lines.
40702ac_delim='%!_!# '
40703for ac_last_try in false false :; do
40704  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
40705  if test -z "$ac_tt"; then
40706    break
40707  elif $ac_last_try; then
40708    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
40709  else
40710    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40711  fi
40712done
40713
40714# For the awk script, D is an array of macro values keyed by name,
40715# likewise P contains macro parameters if any.  Preserve backslash
40716# newline sequences.
40717
40718ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40719sed -n '
40720s/.\{148\}/&'"$ac_delim"'/g
40721t rset
40722:rset
40723s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
40724t def
40725d
40726:def
40727s/\\$//
40728t bsnl
40729s/["\\]/\\&/g
40730s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
40731D["\1"]=" \3"/p
40732s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
40733d
40734:bsnl
40735s/["\\]/\\&/g
40736s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
40737D["\1"]=" \3\\\\\\n"\\/p
40738t cont
40739s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
40740t cont
40741d
40742:cont
40743n
40744s/.\{148\}/&'"$ac_delim"'/g
40745t clear
40746:clear
40747s/\\$//
40748t bsnlc
40749s/["\\]/\\&/g; s/^/"/; s/$/"/p
40750d
40751:bsnlc
40752s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
40753b cont
40754' <confdefs.h | sed '
40755s/'"$ac_delim"'/"\\\
40756"/g' >>$CONFIG_STATUS || ac_write_fail=1
40757
40758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40759  for (key in D) D_is_set[key] = 1
40760  FS = ""
40761}
40762/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
40763  line = \$ 0
40764  split(line, arg, " ")
40765  if (arg[1] == "#") {
40766    defundef = arg[2]
40767    mac1 = arg[3]
40768  } else {
40769    defundef = substr(arg[1], 2)
40770    mac1 = arg[2]
40771  }
40772  split(mac1, mac2, "(") #)
40773  macro = mac2[1]
40774  prefix = substr(line, 1, index(line, defundef) - 1)
40775  if (D_is_set[macro]) {
40776    # Preserve the white space surrounding the "#".
40777    print prefix "define", macro P[macro] D[macro]
40778    next
40779  } else {
40780    # Replace #undef with comments.  This is necessary, for example,
40781    # in the case of _POSIX_SOURCE, which is predefined and required
40782    # on some systems where configure will not decide to define it.
40783    if (defundef == "undef") {
40784      print "/*", prefix defundef, macro, "*/"
40785      next
40786    }
40787  }
40788}
40789{ print }
40790_ACAWK
40791_ACEOF
40792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40793  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
40794fi # test -n "$CONFIG_HEADERS"
40795
40796
40797eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
40798shift
40799for ac_tag
40800do
40801  case $ac_tag in
40802  :[FHLC]) ac_mode=$ac_tag; continue;;
40803  esac
40804  case $ac_mode$ac_tag in
40805  :[FHL]*:*);;
40806  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
40807  :[FH]-) ac_tag=-:-;;
40808  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40809  esac
40810  ac_save_IFS=$IFS
40811  IFS=:
40812  set x $ac_tag
40813  IFS=$ac_save_IFS
40814  shift
40815  ac_file=$1
40816  shift
40817
40818  case $ac_mode in
40819  :L) ac_source=$1;;
40820  :[FH])
40821    ac_file_inputs=
40822    for ac_f
40823    do
40824      case $ac_f in
40825      -) ac_f="$ac_tmp/stdin";;
40826      *) # Look for the file first in the build tree, then in the source tree
40827	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
40828	 # because $ac_f cannot contain `:'.
40829	 test -f "$ac_f" ||
40830	   case $ac_f in
40831	   [\\/$]*) false;;
40832	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40833	   esac ||
40834	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
40835      esac
40836      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
40837      as_fn_append ac_file_inputs " '$ac_f'"
40838    done
40839
40840    # Let's still pretend it is `configure' which instantiates (i.e., don't
40841    # use $as_me), people would be surprised to read:
40842    #    /* config.h.  Generated by config.status.  */
40843    configure_input='Generated from '`
40844	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
40845	`' by configure.'
40846    if test x"$ac_file" != x-; then
40847      configure_input="$ac_file.  $configure_input"
40848      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
40849$as_echo "$as_me: creating $ac_file" >&6;}
40850    fi
40851    # Neutralize special characters interpreted by sed in replacement strings.
40852    case $configure_input in #(
40853    *\&* | *\|* | *\\* )
40854       ac_sed_conf_input=`$as_echo "$configure_input" |
40855       sed 's/[\\\\&|]/\\\\&/g'`;; #(
40856    *) ac_sed_conf_input=$configure_input;;
40857    esac
40858
40859    case $ac_tag in
40860    *:-:* | *:-) cat >"$ac_tmp/stdin" \
40861      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
40862    esac
40863    ;;
40864  esac
40865
40866  ac_dir=`$as_dirname -- "$ac_file" ||
40867$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40868	 X"$ac_file" : 'X\(//\)[^/]' \| \
40869	 X"$ac_file" : 'X\(//\)$' \| \
40870	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40871$as_echo X"$ac_file" |
40872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40873	    s//\1/
40874	    q
40875	  }
40876	  /^X\(\/\/\)[^/].*/{
40877	    s//\1/
40878	    q
40879	  }
40880	  /^X\(\/\/\)$/{
40881	    s//\1/
40882	    q
40883	  }
40884	  /^X\(\/\).*/{
40885	    s//\1/
40886	    q
40887	  }
40888	  s/.*/./; q'`
40889  as_dir="$ac_dir"; as_fn_mkdir_p
40890  ac_builddir=.
40891
40892case "$ac_dir" in
40893.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40894*)
40895  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40896  # A ".." for each directory in $ac_dir_suffix.
40897  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40898  case $ac_top_builddir_sub in
40899  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40900  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40901  esac ;;
40902esac
40903ac_abs_top_builddir=$ac_pwd
40904ac_abs_builddir=$ac_pwd$ac_dir_suffix
40905# for backward compatibility:
40906ac_top_builddir=$ac_top_build_prefix
40907
40908case $srcdir in
40909  .)  # We are building in place.
40910    ac_srcdir=.
40911    ac_top_srcdir=$ac_top_builddir_sub
40912    ac_abs_top_srcdir=$ac_pwd ;;
40913  [\\/]* | ?:[\\/]* )  # Absolute name.
40914    ac_srcdir=$srcdir$ac_dir_suffix;
40915    ac_top_srcdir=$srcdir
40916    ac_abs_top_srcdir=$srcdir ;;
40917  *) # Relative name.
40918    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40919    ac_top_srcdir=$ac_top_build_prefix$srcdir
40920    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40921esac
40922ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40923
40924
40925  case $ac_mode in
40926  :F)
40927  #
40928  # CONFIG_FILE
40929  #
40930
40931  case $INSTALL in
40932  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40933  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40934  esac
40935  ac_MKDIR_P=$MKDIR_P
40936  case $MKDIR_P in
40937  [\\/$]* | ?:[\\/]* ) ;;
40938  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40939  esac
40940_ACEOF
40941
40942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40943# If the template does not know about datarootdir, expand it.
40944# FIXME: This hack should be removed a few years after 2.60.
40945ac_datarootdir_hack=; ac_datarootdir_seen=
40946ac_sed_dataroot='
40947/datarootdir/ {
40948  p
40949  q
40950}
40951/@datadir@/p
40952/@docdir@/p
40953/@infodir@/p
40954/@localedir@/p
40955/@mandir@/p'
40956case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
40957*datarootdir*) ac_datarootdir_seen=yes;;
40958*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40960$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40961_ACEOF
40962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40963  ac_datarootdir_hack='
40964  s&@datadir@&$datadir&g
40965  s&@docdir@&$docdir&g
40966  s&@infodir@&$infodir&g
40967  s&@localedir@&$localedir&g
40968  s&@mandir@&$mandir&g
40969  s&\\\${datarootdir}&$datarootdir&g' ;;
40970esac
40971_ACEOF
40972
40973# Neutralize VPATH when `$srcdir' = `.'.
40974# Shell code in configure.ac might set extrasub.
40975# FIXME: do we really want to maintain this feature?
40976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40977ac_sed_extra="$ac_vpsub
40978$extrasub
40979_ACEOF
40980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40981:t
40982/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40983s|@configure_input@|$ac_sed_conf_input|;t t
40984s&@top_builddir@&$ac_top_builddir_sub&;t t
40985s&@top_build_prefix@&$ac_top_build_prefix&;t t
40986s&@srcdir@&$ac_srcdir&;t t
40987s&@abs_srcdir@&$ac_abs_srcdir&;t t
40988s&@top_srcdir@&$ac_top_srcdir&;t t
40989s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40990s&@builddir@&$ac_builddir&;t t
40991s&@abs_builddir@&$ac_abs_builddir&;t t
40992s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40993s&@INSTALL@&$ac_INSTALL&;t t
40994s&@MKDIR_P@&$ac_MKDIR_P&;t t
40995$ac_datarootdir_hack
40996"
40997eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
40998  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
40999
41000test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41001  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
41002  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
41003      "$ac_tmp/out"`; test -z "$ac_out"; } &&
41004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41005which seems to be undefined.  Please make sure it is defined" >&5
41006$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41007which seems to be undefined.  Please make sure it is defined" >&2;}
41008
41009  rm -f "$ac_tmp/stdin"
41010  case $ac_file in
41011  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
41012  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
41013  esac \
41014  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41015 ;;
41016  :H)
41017  #
41018  # CONFIG_HEADER
41019  #
41020  if test x"$ac_file" != x-; then
41021    {
41022      $as_echo "/* $configure_input  */" \
41023      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
41024    } >"$ac_tmp/config.h" \
41025      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41026    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
41027      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
41028$as_echo "$as_me: $ac_file is unchanged" >&6;}
41029    else
41030      rm -f "$ac_file"
41031      mv "$ac_tmp/config.h" "$ac_file" \
41032	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
41033    fi
41034  else
41035    $as_echo "/* $configure_input  */" \
41036      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
41037      || as_fn_error $? "could not create -" "$LINENO" 5
41038  fi
41039# Compute "$ac_file"'s index in $config_headers.
41040_am_arg="$ac_file"
41041_am_stamp_count=1
41042for _am_header in $config_headers :; do
41043  case $_am_header in
41044    $_am_arg | $_am_arg:* )
41045      break ;;
41046    * )
41047      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41048  esac
41049done
41050echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41051$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41052	 X"$_am_arg" : 'X\(//\)[^/]' \| \
41053	 X"$_am_arg" : 'X\(//\)$' \| \
41054	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41055$as_echo X"$_am_arg" |
41056    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41057	    s//\1/
41058	    q
41059	  }
41060	  /^X\(\/\/\)[^/].*/{
41061	    s//\1/
41062	    q
41063	  }
41064	  /^X\(\/\/\)$/{
41065	    s//\1/
41066	    q
41067	  }
41068	  /^X\(\/\).*/{
41069	    s//\1/
41070	    q
41071	  }
41072	  s/.*/./; q'`/stamp-h$_am_stamp_count
41073 ;;
41074
41075  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41076$as_echo "$as_me: executing $ac_file commands" >&6;}
41077 ;;
41078  esac
41079
41080
41081  case $ac_file$ac_mode in
41082    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41083  # Older Autoconf quotes --file arguments for eval, but not when files
41084  # are listed without --file.  Let's play safe and only enable the eval
41085  # if we detect the quoting.
41086  case $CONFIG_FILES in
41087  *\'*) eval set x "$CONFIG_FILES" ;;
41088  *)   set x $CONFIG_FILES ;;
41089  esac
41090  shift
41091  for mf
41092  do
41093    # Strip MF so we end up with the name of the file.
41094    mf=`echo "$mf" | sed -e 's/:.*$//'`
41095    # Check whether this is an Automake generated Makefile or not.
41096    # We used to match only the files named 'Makefile.in', but
41097    # some people rename them; so instead we look at the file content.
41098    # Grep'ing the first line is not enough: some people post-process
41099    # each Makefile.in and add a new line on top of each file to say so.
41100    # Grep'ing the whole file is not good either: AIX grep has a line
41101    # limit of 2048, but all sed's we know have understand at least 4000.
41102    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41103      dirpart=`$as_dirname -- "$mf" ||
41104$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41105	 X"$mf" : 'X\(//\)[^/]' \| \
41106	 X"$mf" : 'X\(//\)$' \| \
41107	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41108$as_echo X"$mf" |
41109    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41110	    s//\1/
41111	    q
41112	  }
41113	  /^X\(\/\/\)[^/].*/{
41114	    s//\1/
41115	    q
41116	  }
41117	  /^X\(\/\/\)$/{
41118	    s//\1/
41119	    q
41120	  }
41121	  /^X\(\/\).*/{
41122	    s//\1/
41123	    q
41124	  }
41125	  s/.*/./; q'`
41126    else
41127      continue
41128    fi
41129    # Extract the definition of DEPDIR, am__include, and am__quote
41130    # from the Makefile without running 'make'.
41131    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41132    test -z "$DEPDIR" && continue
41133    am__include=`sed -n 's/^am__include = //p' < "$mf"`
41134    test -z "$am__include" && continue
41135    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41136    # Find all dependency output files, they are included files with
41137    # $(DEPDIR) in their names.  We invoke sed twice because it is the
41138    # simplest approach to changing $(DEPDIR) to its actual value in the
41139    # expansion.
41140    for file in `sed -n "
41141      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41142	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
41143      # Make sure the directory exists.
41144      test -f "$dirpart/$file" && continue
41145      fdir=`$as_dirname -- "$file" ||
41146$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41147	 X"$file" : 'X\(//\)[^/]' \| \
41148	 X"$file" : 'X\(//\)$' \| \
41149	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41150$as_echo X"$file" |
41151    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41152	    s//\1/
41153	    q
41154	  }
41155	  /^X\(\/\/\)[^/].*/{
41156	    s//\1/
41157	    q
41158	  }
41159	  /^X\(\/\/\)$/{
41160	    s//\1/
41161	    q
41162	  }
41163	  /^X\(\/\).*/{
41164	    s//\1/
41165	    q
41166	  }
41167	  s/.*/./; q'`
41168      as_dir=$dirpart/$fdir; as_fn_mkdir_p
41169      # echo "creating $dirpart/$file"
41170      echo '# dummy' > "$dirpart/$file"
41171    done
41172  done
41173}
41174 ;;
41175    "libtool":C)
41176
41177    # See if we are running on zsh, and set the options which allow our
41178    # commands through without removal of \ escapes.
41179    if test -n "${ZSH_VERSION+set}" ; then
41180      setopt NO_GLOB_SUBST
41181    fi
41182
41183    cfgfile="${ofile}T"
41184    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41185    $RM "$cfgfile"
41186
41187    cat <<_LT_EOF >> "$cfgfile"
41188#! $SHELL
41189
41190# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
41191# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
41192# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41193# NOTE: Changes made to this file will be lost: look at ltmain.sh.
41194#
41195#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41196#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
41197#                 Foundation, Inc.
41198#   Written by Gordon Matzigkeit, 1996
41199#
41200#   This file is part of GNU Libtool.
41201#
41202# GNU Libtool is free software; you can redistribute it and/or
41203# modify it under the terms of the GNU General Public License as
41204# published by the Free Software Foundation; either version 2 of
41205# the License, or (at your option) any later version.
41206#
41207# As a special exception to the GNU General Public License,
41208# if you distribute this file as part of a program or library that
41209# is built using GNU Libtool, you may include this file under the
41210# same distribution terms that you use for the rest of that program.
41211#
41212# GNU Libtool is distributed in the hope that it will be useful,
41213# but WITHOUT ANY WARRANTY; without even the implied warranty of
41214# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
41215# GNU General Public License for more details.
41216#
41217# You should have received a copy of the GNU General Public License
41218# along with GNU Libtool; see the file COPYING.  If not, a copy
41219# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
41220# obtained by writing to the Free Software Foundation, Inc.,
41221# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41222
41223
41224# The names of the tagged configurations supported by this script.
41225available_tags=""
41226
41227# ### BEGIN LIBTOOL CONFIG
41228
41229# Which release of libtool.m4 was used?
41230macro_version=$macro_version
41231macro_revision=$macro_revision
41232
41233# Assembler program.
41234AS=$lt_AS
41235
41236# DLL creation program.
41237DLLTOOL=$lt_DLLTOOL
41238
41239# Object dumper program.
41240OBJDUMP=$lt_OBJDUMP
41241
41242# Whether or not to build shared libraries.
41243build_libtool_libs=$enable_shared
41244
41245# Whether or not to build static libraries.
41246build_old_libs=$enable_static
41247
41248# What type of objects to build.
41249pic_mode=$pic_mode
41250
41251# Whether or not to optimize for fast installation.
41252fast_install=$enable_fast_install
41253
41254# Shell to use when invoking shell scripts.
41255SHELL=$lt_SHELL
41256
41257# An echo program that protects backslashes.
41258ECHO=$lt_ECHO
41259
41260# The PATH separator for the build system.
41261PATH_SEPARATOR=$lt_PATH_SEPARATOR
41262
41263# The host system.
41264host_alias=$host_alias
41265host=$host
41266host_os=$host_os
41267
41268# The build system.
41269build_alias=$build_alias
41270build=$build
41271build_os=$build_os
41272
41273# A sed program that does not truncate output.
41274SED=$lt_SED
41275
41276# Sed that helps us avoid accidentally triggering echo(1) options like -n.
41277Xsed="\$SED -e 1s/^X//"
41278
41279# A grep program that handles long lines.
41280GREP=$lt_GREP
41281
41282# An ERE matcher.
41283EGREP=$lt_EGREP
41284
41285# A literal string matcher.
41286FGREP=$lt_FGREP
41287
41288# A BSD- or MS-compatible name lister.
41289NM=$lt_NM
41290
41291# Whether we need soft or hard links.
41292LN_S=$lt_LN_S
41293
41294# What is the maximum length of a command?
41295max_cmd_len=$max_cmd_len
41296
41297# Object file suffix (normally "o").
41298objext=$ac_objext
41299
41300# Executable file suffix (normally "").
41301exeext=$exeext
41302
41303# whether the shell understands "unset".
41304lt_unset=$lt_unset
41305
41306# turn spaces into newlines.
41307SP2NL=$lt_lt_SP2NL
41308
41309# turn newlines into spaces.
41310NL2SP=$lt_lt_NL2SP
41311
41312# convert \$build file names to \$host format.
41313to_host_file_cmd=$lt_cv_to_host_file_cmd
41314
41315# convert \$build files to toolchain format.
41316to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41317
41318# Method to check whether dependent libraries are shared objects.
41319deplibs_check_method=$lt_deplibs_check_method
41320
41321# Command to use when deplibs_check_method = "file_magic".
41322file_magic_cmd=$lt_file_magic_cmd
41323
41324# How to find potential files when deplibs_check_method = "file_magic".
41325file_magic_glob=$lt_file_magic_glob
41326
41327# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41328want_nocaseglob=$lt_want_nocaseglob
41329
41330# Command to associate shared and link libraries.
41331sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41332
41333# The archiver.
41334AR=$lt_AR
41335
41336# Flags to create an archive.
41337AR_FLAGS=$lt_AR_FLAGS
41338
41339# How to feed a file listing to the archiver.
41340archiver_list_spec=$lt_archiver_list_spec
41341
41342# A symbol stripping program.
41343STRIP=$lt_STRIP
41344
41345# Commands used to install an old-style archive.
41346RANLIB=$lt_RANLIB
41347old_postinstall_cmds=$lt_old_postinstall_cmds
41348old_postuninstall_cmds=$lt_old_postuninstall_cmds
41349
41350# Whether to use a lock for old archive extraction.
41351lock_old_archive_extraction=$lock_old_archive_extraction
41352
41353# A C compiler.
41354LTCC=$lt_CC
41355
41356# LTCC compiler flags.
41357LTCFLAGS=$lt_CFLAGS
41358
41359# Take the output of nm and produce a listing of raw symbols and C names.
41360global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41361
41362# Transform the output of nm in a proper C declaration.
41363global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41364
41365# Transform the output of nm in a C name address pair.
41366global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41367
41368# Transform the output of nm in a C name address pair when lib prefix is needed.
41369global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41370
41371# Specify filename containing input files for \$NM.
41372nm_file_list_spec=$lt_nm_file_list_spec
41373
41374# The root where to search for dependent libraries,and in which our libraries should be installed.
41375lt_sysroot=$lt_sysroot
41376
41377# The name of the directory that contains temporary libtool files.
41378objdir=$objdir
41379
41380# Used to examine libraries when file_magic_cmd begins with "file".
41381MAGIC_CMD=$MAGIC_CMD
41382
41383# Must we lock files when doing compilation?
41384need_locks=$lt_need_locks
41385
41386# Manifest tool.
41387MANIFEST_TOOL=$lt_MANIFEST_TOOL
41388
41389# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41390DSYMUTIL=$lt_DSYMUTIL
41391
41392# Tool to change global to local symbols on Mac OS X.
41393NMEDIT=$lt_NMEDIT
41394
41395# Tool to manipulate fat objects and archives on Mac OS X.
41396LIPO=$lt_LIPO
41397
41398# ldd/readelf like tool for Mach-O binaries on Mac OS X.
41399OTOOL=$lt_OTOOL
41400
41401# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41402OTOOL64=$lt_OTOOL64
41403
41404# Old archive suffix (normally "a").
41405libext=$libext
41406
41407# Shared library suffix (normally ".so").
41408shrext_cmds=$lt_shrext_cmds
41409
41410# The commands to extract the exported symbol list from a shared archive.
41411extract_expsyms_cmds=$lt_extract_expsyms_cmds
41412
41413# Variables whose values should be saved in libtool wrapper scripts and
41414# restored at link time.
41415variables_saved_for_relink=$lt_variables_saved_for_relink
41416
41417# Do we need the "lib" prefix for modules?
41418need_lib_prefix=$need_lib_prefix
41419
41420# Do we need a version for libraries?
41421need_version=$need_version
41422
41423# Library versioning type.
41424version_type=$version_type
41425
41426# Shared library runtime path variable.
41427runpath_var=$runpath_var
41428
41429# Shared library path variable.
41430shlibpath_var=$shlibpath_var
41431
41432# Is shlibpath searched before the hard-coded library search path?
41433shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41434
41435# Format of library name prefix.
41436libname_spec=$lt_libname_spec
41437
41438# List of archive names.  First name is the real one, the rest are links.
41439# The last name is the one that the linker finds with -lNAME
41440library_names_spec=$lt_library_names_spec
41441
41442# The coded name of the library, if different from the real name.
41443soname_spec=$lt_soname_spec
41444
41445# Permission mode override for installation of shared libraries.
41446install_override_mode=$lt_install_override_mode
41447
41448# Command to use after installation of a shared archive.
41449postinstall_cmds=$lt_postinstall_cmds
41450
41451# Command to use after uninstallation of a shared archive.
41452postuninstall_cmds=$lt_postuninstall_cmds
41453
41454# Commands used to finish a libtool library installation in a directory.
41455finish_cmds=$lt_finish_cmds
41456
41457# As "finish_cmds", except a single script fragment to be evaled but
41458# not shown.
41459finish_eval=$lt_finish_eval
41460
41461# Whether we should hardcode library paths into libraries.
41462hardcode_into_libs=$hardcode_into_libs
41463
41464# Compile-time system search path for libraries.
41465sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41466
41467# Run-time system search path for libraries.
41468sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
41469
41470# Whether dlopen is supported.
41471dlopen_support=$enable_dlopen
41472
41473# Whether dlopen of programs is supported.
41474dlopen_self=$enable_dlopen_self
41475
41476# Whether dlopen of statically linked programs is supported.
41477dlopen_self_static=$enable_dlopen_self_static
41478
41479# Commands to strip libraries.
41480old_striplib=$lt_old_striplib
41481striplib=$lt_striplib
41482
41483
41484# The linker used to build libraries.
41485LD=$lt_LD
41486
41487# How to create reloadable object files.
41488reload_flag=$lt_reload_flag
41489reload_cmds=$lt_reload_cmds
41490
41491# Commands used to build an old-style archive.
41492old_archive_cmds=$lt_old_archive_cmds
41493
41494# A language specific compiler.
41495CC=$lt_compiler
41496
41497# Is the compiler the GNU compiler?
41498with_gcc=$GCC
41499
41500# Compiler flag to turn off builtin functions.
41501no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
41502
41503# Additional compiler flags for building library objects.
41504pic_flag=$lt_lt_prog_compiler_pic
41505
41506# How to pass a linker flag through the compiler.
41507wl=$lt_lt_prog_compiler_wl
41508
41509# Compiler flag to prevent dynamic linking.
41510link_static_flag=$lt_lt_prog_compiler_static
41511
41512# Does compiler simultaneously support -c and -o options?
41513compiler_c_o=$lt_lt_cv_prog_compiler_c_o
41514
41515# Whether or not to add -lc for building shared libraries.
41516build_libtool_need_lc=$archive_cmds_need_lc
41517
41518# Whether or not to disallow shared libs when runtime libs are static.
41519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
41520
41521# Compiler flag to allow reflexive dlopens.
41522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
41523
41524# Compiler flag to generate shared objects directly from archives.
41525whole_archive_flag_spec=$lt_whole_archive_flag_spec
41526
41527# Whether the compiler copes with passing no objects directly.
41528compiler_needs_object=$lt_compiler_needs_object
41529
41530# Create an old-style archive from a shared archive.
41531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
41532
41533# Create a temporary old-style archive to link instead of a shared archive.
41534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
41535
41536# Commands used to build a shared archive.
41537archive_cmds=$lt_archive_cmds
41538archive_expsym_cmds=$lt_archive_expsym_cmds
41539
41540# Commands used to build a loadable module if different from building
41541# a shared archive.
41542module_cmds=$lt_module_cmds
41543module_expsym_cmds=$lt_module_expsym_cmds
41544
41545# Whether we are building with GNU ld or not.
41546with_gnu_ld=$lt_with_gnu_ld
41547
41548# Flag that allows shared libraries with undefined symbols to be built.
41549allow_undefined_flag=$lt_allow_undefined_flag
41550
41551# Flag that enforces no undefined symbols.
41552no_undefined_flag=$lt_no_undefined_flag
41553
41554# Flag to hardcode \$libdir into a binary during linking.
41555# This must work even if \$libdir does not exist
41556hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
41557
41558# Whether we need a single "-rpath" flag with a separated argument.
41559hardcode_libdir_separator=$lt_hardcode_libdir_separator
41560
41561# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41562# DIR into the resulting binary.
41563hardcode_direct=$hardcode_direct
41564
41565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41566# DIR into the resulting binary and the resulting library dependency is
41567# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
41568# library is relocated.
41569hardcode_direct_absolute=$hardcode_direct_absolute
41570
41571# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
41572# into the resulting binary.
41573hardcode_minus_L=$hardcode_minus_L
41574
41575# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
41576# into the resulting binary.
41577hardcode_shlibpath_var=$hardcode_shlibpath_var
41578
41579# Set to "yes" if building a shared library automatically hardcodes DIR
41580# into the library and all subsequent libraries and executables linked
41581# against it.
41582hardcode_automatic=$hardcode_automatic
41583
41584# Set to yes if linker adds runtime paths of dependent libraries
41585# to runtime path list.
41586inherit_rpath=$inherit_rpath
41587
41588# Whether libtool must link a program against all its dependency libraries.
41589link_all_deplibs=$link_all_deplibs
41590
41591# Set to "yes" if exported symbols are required.
41592always_export_symbols=$always_export_symbols
41593
41594# The commands to list exported symbols.
41595export_symbols_cmds=$lt_export_symbols_cmds
41596
41597# Symbols that should not be listed in the preloaded symbols.
41598exclude_expsyms=$lt_exclude_expsyms
41599
41600# Symbols that must always be exported.
41601include_expsyms=$lt_include_expsyms
41602
41603# Commands necessary for linking programs (against libraries) with templates.
41604prelink_cmds=$lt_prelink_cmds
41605
41606# Commands necessary for finishing linking programs.
41607postlink_cmds=$lt_postlink_cmds
41608
41609# Specify filename containing input files.
41610file_list_spec=$lt_file_list_spec
41611
41612# How to hardcode a shared library path into an executable.
41613hardcode_action=$hardcode_action
41614
41615# ### END LIBTOOL CONFIG
41616
41617_LT_EOF
41618
41619  case $host_os in
41620  aix3*)
41621    cat <<\_LT_EOF >> "$cfgfile"
41622# AIX sometimes has problems with the GCC collect2 program.  For some
41623# reason, if we set the COLLECT_NAMES environment variable, the problems
41624# vanish in a puff of smoke.
41625if test "X${COLLECT_NAMES+set}" != Xset; then
41626  COLLECT_NAMES=
41627  export COLLECT_NAMES
41628fi
41629_LT_EOF
41630    ;;
41631  esac
41632
41633
41634ltmain="$ac_aux_dir/ltmain.sh"
41635
41636
41637  # We use sed instead of cat because bash on DJGPP gets confused if
41638  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
41639  # text mode, it properly converts lines to CR/LF.  This bash problem
41640  # is reportedly fixed, but why not run on old versions too?
41641  sed '$q' "$ltmain" >> "$cfgfile" \
41642     || (rm -f "$cfgfile"; exit 1)
41643
41644  if test x"$xsi_shell" = xyes; then
41645  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
41646func_dirname ()\
41647{\
41648\    case ${1} in\
41649\      */*) func_dirname_result="${1%/*}${2}" ;;\
41650\      *  ) func_dirname_result="${3}" ;;\
41651\    esac\
41652} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
41653  && mv -f "$cfgfile.tmp" "$cfgfile" \
41654    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41655test 0 -eq $? || _lt_function_replace_fail=:
41656
41657
41658  sed -e '/^func_basename ()$/,/^} # func_basename /c\
41659func_basename ()\
41660{\
41661\    func_basename_result="${1##*/}"\
41662} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
41663  && mv -f "$cfgfile.tmp" "$cfgfile" \
41664    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41665test 0 -eq $? || _lt_function_replace_fail=:
41666
41667
41668  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
41669func_dirname_and_basename ()\
41670{\
41671\    case ${1} in\
41672\      */*) func_dirname_result="${1%/*}${2}" ;;\
41673\      *  ) func_dirname_result="${3}" ;;\
41674\    esac\
41675\    func_basename_result="${1##*/}"\
41676} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
41677  && mv -f "$cfgfile.tmp" "$cfgfile" \
41678    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41679test 0 -eq $? || _lt_function_replace_fail=:
41680
41681
41682  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
41683func_stripname ()\
41684{\
41685\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
41686\    # positional parameters, so assign one to ordinary parameter first.\
41687\    func_stripname_result=${3}\
41688\    func_stripname_result=${func_stripname_result#"${1}"}\
41689\    func_stripname_result=${func_stripname_result%"${2}"}\
41690} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
41691  && mv -f "$cfgfile.tmp" "$cfgfile" \
41692    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41693test 0 -eq $? || _lt_function_replace_fail=:
41694
41695
41696  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
41697func_split_long_opt ()\
41698{\
41699\    func_split_long_opt_name=${1%%=*}\
41700\    func_split_long_opt_arg=${1#*=}\
41701} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
41702  && mv -f "$cfgfile.tmp" "$cfgfile" \
41703    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41704test 0 -eq $? || _lt_function_replace_fail=:
41705
41706
41707  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
41708func_split_short_opt ()\
41709{\
41710\    func_split_short_opt_arg=${1#??}\
41711\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
41712} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
41713  && mv -f "$cfgfile.tmp" "$cfgfile" \
41714    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41715test 0 -eq $? || _lt_function_replace_fail=:
41716
41717
41718  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
41719func_lo2o ()\
41720{\
41721\    case ${1} in\
41722\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
41723\      *)    func_lo2o_result=${1} ;;\
41724\    esac\
41725} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
41726  && mv -f "$cfgfile.tmp" "$cfgfile" \
41727    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41728test 0 -eq $? || _lt_function_replace_fail=:
41729
41730
41731  sed -e '/^func_xform ()$/,/^} # func_xform /c\
41732func_xform ()\
41733{\
41734    func_xform_result=${1%.*}.lo\
41735} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
41736  && mv -f "$cfgfile.tmp" "$cfgfile" \
41737    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41738test 0 -eq $? || _lt_function_replace_fail=:
41739
41740
41741  sed -e '/^func_arith ()$/,/^} # func_arith /c\
41742func_arith ()\
41743{\
41744    func_arith_result=$(( $* ))\
41745} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
41746  && mv -f "$cfgfile.tmp" "$cfgfile" \
41747    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41748test 0 -eq $? || _lt_function_replace_fail=:
41749
41750
41751  sed -e '/^func_len ()$/,/^} # func_len /c\
41752func_len ()\
41753{\
41754    func_len_result=${#1}\
41755} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
41756  && mv -f "$cfgfile.tmp" "$cfgfile" \
41757    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41758test 0 -eq $? || _lt_function_replace_fail=:
41759
41760fi
41761
41762if test x"$lt_shell_append" = xyes; then
41763  sed -e '/^func_append ()$/,/^} # func_append /c\
41764func_append ()\
41765{\
41766    eval "${1}+=\\${2}"\
41767} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
41768  && mv -f "$cfgfile.tmp" "$cfgfile" \
41769    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41770test 0 -eq $? || _lt_function_replace_fail=:
41771
41772
41773  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
41774func_append_quoted ()\
41775{\
41776\    func_quote_for_eval "${2}"\
41777\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
41778} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
41779  && mv -f "$cfgfile.tmp" "$cfgfile" \
41780    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41781test 0 -eq $? || _lt_function_replace_fail=:
41782
41783
41784  # Save a `func_append' function call where possible by direct use of '+='
41785  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
41786    && mv -f "$cfgfile.tmp" "$cfgfile" \
41787      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41788  test 0 -eq $? || _lt_function_replace_fail=:
41789else
41790  # Save a `func_append' function call even when '+=' is not available
41791  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
41792    && mv -f "$cfgfile.tmp" "$cfgfile" \
41793      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41794  test 0 -eq $? || _lt_function_replace_fail=:
41795fi
41796
41797if test x"$_lt_function_replace_fail" = x":"; then
41798  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
41799$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
41800fi
41801
41802
41803   mv -f "$cfgfile" "$ofile" ||
41804    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
41805  chmod +x "$ofile"
41806
41807 ;;
41808
41809  esac
41810done # for ac_tag
41811
41812
41813as_fn_exit 0
41814_ACEOF
41815ac_clean_files=$ac_clean_files_save
41816
41817test $ac_write_fail = 0 ||
41818  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
41819
41820
41821# configure is writing to config.log, and then calls config.status.
41822# config.status does its own redirection, appending to config.log.
41823# Unfortunately, on DOS this fails, as config.log is still kept open
41824# by configure, so config.status won't be able to write to it; its
41825# output is simply discarded.  So we exec the FD to /dev/null,
41826# effectively closing config.log, so it can be properly (re)opened and
41827# appended to by config.status.  When coming back to configure, we
41828# need to make the FD available again.
41829if test "$no_create" != yes; then
41830  ac_cs_success=:
41831  ac_config_status_args=
41832  test "$silent" = yes &&
41833    ac_config_status_args="$ac_config_status_args --quiet"
41834  exec 5>/dev/null
41835  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41836  exec 5>>config.log
41837  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41838  # would make configure fail if this is the last instruction.
41839  $ac_cs_success || as_fn_exit 1
41840fi
41841
41842#
41843# CONFIG_SUBDIRS section.
41844#
41845if test "$no_recursion" != yes; then
41846
41847  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
41848  # so they do not pile up.
41849  ac_sub_configure_args=
41850  ac_prev=
41851  eval "set x $ac_configure_args"
41852  shift
41853  for ac_arg
41854  do
41855    if test -n "$ac_prev"; then
41856      ac_prev=
41857      continue
41858    fi
41859    case $ac_arg in
41860    -cache-file | --cache-file | --cache-fil | --cache-fi \
41861    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41862      ac_prev=cache_file ;;
41863    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41864    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41865    | --c=*)
41866      ;;
41867    --config-cache | -C)
41868      ;;
41869    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41870      ac_prev=srcdir ;;
41871    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41872      ;;
41873    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41874      ac_prev=prefix ;;
41875    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41876      ;;
41877    --disable-option-checking)
41878      ;;
41879    *)
41880      case $ac_arg in
41881      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41882      esac
41883      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
41884    esac
41885  done
41886
41887  # Always prepend --prefix to ensure using the same prefix
41888  # in subdir configurations.
41889  ac_arg="--prefix=$prefix"
41890  case $ac_arg in
41891  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41892  esac
41893  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
41894
41895  # Pass --silent
41896  if test "$silent" = yes; then
41897    ac_sub_configure_args="--silent $ac_sub_configure_args"
41898  fi
41899
41900  # Always prepend --disable-option-checking to silence warnings, since
41901  # different subdirs can have different --enable and --with options.
41902  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
41903
41904  ac_popdir=`pwd`
41905  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41906
41907    # Do not complain, so a configure script can configure whichever
41908    # parts of a large source tree are present.
41909    test -d "$srcdir/$ac_dir" || continue
41910
41911    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
41912    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
41913    $as_echo "$ac_msg" >&6
41914    as_dir="$ac_dir"; as_fn_mkdir_p
41915    ac_builddir=.
41916
41917case "$ac_dir" in
41918.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41919*)
41920  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41921  # A ".." for each directory in $ac_dir_suffix.
41922  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41923  case $ac_top_builddir_sub in
41924  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41925  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41926  esac ;;
41927esac
41928ac_abs_top_builddir=$ac_pwd
41929ac_abs_builddir=$ac_pwd$ac_dir_suffix
41930# for backward compatibility:
41931ac_top_builddir=$ac_top_build_prefix
41932
41933case $srcdir in
41934  .)  # We are building in place.
41935    ac_srcdir=.
41936    ac_top_srcdir=$ac_top_builddir_sub
41937    ac_abs_top_srcdir=$ac_pwd ;;
41938  [\\/]* | ?:[\\/]* )  # Absolute name.
41939    ac_srcdir=$srcdir$ac_dir_suffix;
41940    ac_top_srcdir=$srcdir
41941    ac_abs_top_srcdir=$srcdir ;;
41942  *) # Relative name.
41943    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41944    ac_top_srcdir=$ac_top_build_prefix$srcdir
41945    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41946esac
41947ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41948
41949
41950    cd "$ac_dir"
41951
41952    # Check for guested configure; otherwise get Cygnus style configure.
41953    if test -f "$ac_srcdir/configure.gnu"; then
41954      ac_sub_configure=$ac_srcdir/configure.gnu
41955    elif test -f "$ac_srcdir/configure"; then
41956      ac_sub_configure=$ac_srcdir/configure
41957    elif test -f "$ac_srcdir/configure.in"; then
41958      # This should be Cygnus configure.
41959      ac_sub_configure=$ac_aux_dir/configure
41960    else
41961      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
41962$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41963      ac_sub_configure=
41964    fi
41965
41966    # The recursion is here.
41967    if test -n "$ac_sub_configure"; then
41968      # Make the cache file name correct relative to the subdirectory.
41969      case $cache_file in
41970      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41971      *) # Relative name.
41972	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
41973      esac
41974
41975      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41976$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41977      # The eval makes quoting arguments work.
41978      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
41979	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
41980	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
41981    fi
41982
41983    cd "$ac_popdir"
41984  done
41985fi
41986if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
41987  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
41988$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
41989fi
41990
41991
41992
41993    tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
41994  if test -z "$tmp_cpp"; then
41995    tmp_cpp='cpp'
41996  fi
41997  cat >./tests/configurehelp.pm <<_EOF
41998# This is a generated file.  Do not edit.
41999
42000package configurehelp;
42001
42002use strict;
42003use warnings;
42004use Exporter;
42005
42006use vars qw(
42007    @ISA
42008    @EXPORT_OK
42009    \$Cpreprocessor
42010    );
42011
42012@ISA = qw(Exporter);
42013
42014@EXPORT_OK = qw(
42015    \$Cpreprocessor
42016    );
42017
42018\$Cpreprocessor = '$tmp_cpp';
42019
420201;
42021_EOF
42022
42023
42024
42025## ---------------------------------- ##
42026##  Start of distclean amending code  ##
42027## ---------------------------------- ##
42028
42029for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
42030do
42031
42032if test ! -f "$xc_subdir/Makefile"; then
42033  echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
42034  exit 1
42035fi
42036
42037# Fetch dependency tracking file list from Makefile include lines.
42038
42039xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
42040xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
42041
42042# --disable-dependency-tracking might have been used, consequently
42043# there is nothing to amend without a dependency tracking file list.
42044
42045if test $xc_cnt_words -gt 0; then
42046
42047{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
42048$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
42049
42050# Build Makefile specific patch hunk.
42051
42052xc_p="$xc_subdir/xc_patch.tmp"
42053
42054xc_rm_depfiles=`echo "$xc_inc_lines" \
42055  | $SED 's%include%	-rm -f%' 2>/dev/null`
42056
42057xc_dep_subdirs=`echo "$xc_inc_lines" \
42058  | $SED 's%include[ ][ ]*%%' 2>/dev/null \
42059  | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
42060  | sort | uniq`
42061
42062echo "$xc_rm_depfiles" >$xc_p
42063
42064for xc_dep_dir in $xc_dep_subdirs; do
42065  echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\"            >>$xc_p
42066  echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\"      >>$xc_p
42067  echo "${xc_tab}  rm -rf $xc_dep_dir; \\"                                          >>$xc_p
42068  echo "${xc_tab}fi"                                                                >>$xc_p
42069done
42070
42071# Build Makefile patching sed scripts.
42072
42073xc_s1="$xc_subdir/xc_script_1.tmp"
42074xc_s2="$xc_subdir/xc_script_2.tmp"
42075xc_s3="$xc_subdir/xc_script_3.tmp"
42076
42077cat >$xc_s1 <<\_EOT
42078/^distclean[ ]*:/,/^[^	][^	]*:/{
42079  s/^.*(DEPDIR)/___xc_depdir_line___/
42080}
42081/^maintainer-clean[ ]*:/,/^[^	][^	]*:/{
42082  s/^.*(DEPDIR)/___xc_depdir_line___/
42083}
42084_EOT
42085
42086cat >$xc_s2 <<\_EOT
42087/___xc_depdir_line___$/{
42088  N
42089  /___xc_depdir_line___$/D
42090}
42091_EOT
42092
42093cat >$xc_s3 <<_EOT
42094/^___xc_depdir_line___/{
42095  r $xc_p
42096  d
42097}
42098_EOT
42099
42100# Apply patch to Makefile and cleanup.
42101
42102$SED -f "$xc_s1" "$xc_subdir/Makefile"      >"$xc_subdir/Makefile.tmp1"
42103$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
42104$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
42105
42106if test -f "$xc_subdir/Makefile.tmp3"; then
42107  mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
42108fi
42109
42110test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
42111test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
42112test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
42113
42114test -f "$xc_p"  && rm -f "$xc_p"
42115test -f "$xc_s1" && rm -f "$xc_s1"
42116test -f "$xc_s2" && rm -f "$xc_s2"
42117test -f "$xc_s3" && rm -f "$xc_s3"
42118
42119fi
42120
42121done
42122
42123## -------------------------------- ##
42124##  End of distclean amending code  ##
42125## -------------------------------- ##
42126
42127
42128
42129{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
42130
42131  curl version:     ${CURLVERSION}
42132  Host setup:       ${host}
42133  Install prefix:   ${prefix}
42134  Compiler:         ${CC}
42135  SSL support:      ${curl_ssl_msg}
42136  SSH support:      ${curl_ssh_msg}
42137  zlib support:     ${curl_zlib_msg}
42138  GSS-API support:  ${curl_gss_msg}
42139  SPNEGO support:   ${curl_spnego_msg}
42140  TLS-SRP support:  ${curl_tls_srp_msg}
42141  resolver:         ${curl_res_msg}
42142  ipv6 support:     ${curl_ipv6_msg}
42143  IDN support:      ${curl_idn_msg}
42144  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
42145  Built-in manual:  ${curl_manual_msg}
42146  --libcurl option: ${curl_libcurl_msg}
42147  Verbose errors:   ${curl_verbose_msg}
42148  SSPI support:     ${curl_sspi_msg}
42149  ca cert bundle:   ${ca}
42150  ca cert path:     ${capath}
42151  LDAP support:     ${curl_ldap_msg}
42152  LDAPS support:    ${curl_ldaps_msg}
42153  RTSP support:     ${curl_rtsp_msg}
42154  RTMP support:     ${curl_rtmp_msg}
42155  metalink support: ${curl_mtlnk_msg}
42156  HTTP2 support:    ${curl_h2_msg}
42157  Protocols:        ${SUPPORT_PROTOCOLS}
42158" >&5
42159$as_echo "$as_me: Configured to build curl/libcurl:
42160
42161  curl version:     ${CURLVERSION}
42162  Host setup:       ${host}
42163  Install prefix:   ${prefix}
42164  Compiler:         ${CC}
42165  SSL support:      ${curl_ssl_msg}
42166  SSH support:      ${curl_ssh_msg}
42167  zlib support:     ${curl_zlib_msg}
42168  GSS-API support:  ${curl_gss_msg}
42169  SPNEGO support:   ${curl_spnego_msg}
42170  TLS-SRP support:  ${curl_tls_srp_msg}
42171  resolver:         ${curl_res_msg}
42172  ipv6 support:     ${curl_ipv6_msg}
42173  IDN support:      ${curl_idn_msg}
42174  Build libcurl:    Shared=${enable_shared}, Static=${enable_static}
42175  Built-in manual:  ${curl_manual_msg}
42176  --libcurl option: ${curl_libcurl_msg}
42177  Verbose errors:   ${curl_verbose_msg}
42178  SSPI support:     ${curl_sspi_msg}
42179  ca cert bundle:   ${ca}
42180  ca cert path:     ${capath}
42181  LDAP support:     ${curl_ldap_msg}
42182  LDAPS support:    ${curl_ldaps_msg}
42183  RTSP support:     ${curl_rtsp_msg}
42184  RTMP support:     ${curl_rtmp_msg}
42185  metalink support: ${curl_mtlnk_msg}
42186  HTTP2 support:    ${curl_h2_msg}
42187  Protocols:        ${SUPPORT_PROTOCOLS}
42188" >&6;}
42189
42190if test "x$soname_bump" = "xyes"; then
42191
42192cat <<EOM
42193  SONAME bump:     yes - WARNING: this library will be built with the SONAME
42194                   number bumped due to (a detected) ABI breakage.
42195                   See lib/README.curl_off_t for details on this.
42196EOM
42197
42198fi
42199
42200