blob: fdb652250fa2a9772bfcb8752f10cc8b84b49335 [file] [log] [blame]
Elliott Hughes82be86d2017-09-20 17:00:17 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (c) 1998 - 2017 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
Elliott Hughescac39802018-04-27 16:19:43 -0700236 # User should provide the correct 'PATH_SEPARATOR' definition.
237 # Until then, guess that it is colon!
238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239 PATH_SEPARATOR=':'
Elliott Hughes82be86d2017-09-20 17:00:17 -0700240 fi
241else
242 # Separator with the greater directory count is the auto-detected one.
243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244 xc_tst_auto_separator=';'
245 else
246 xc_tst_auto_separator=':'
247 fi
248 if test -z "$PATH_SEPARATOR"; then
249 # Simply use the auto-detected one when not already set.
250 PATH_SEPARATOR=$xc_tst_auto_separator
251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253 fi
254fi
255xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257xc_configure_preamble_result='yes'
258
259
260## -------------------- ##
261## M4sh Initialization. ##
262## -------------------- ##
263
264# Be more Bourne compatible
265DUALCASE=1; export DUALCASE # for MKS sh
266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267 emulate sh
268 NULLCMD=:
269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273else
274 case `(set -o) 2>/dev/null` in #(
275 *posix*) :
276 set -o posix ;; #(
277 *) :
278 ;;
279esac
280fi
281
282
283as_nl='
284'
285export as_nl
286# Printing a long string crashes Solaris 7 /usr/bin/printf.
287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290# Prefer a ksh shell builtin over an external printf program on Solaris,
291# but without wasting forks for bash or zsh.
292if test -z "$BASH_VERSION$ZSH_VERSION" \
293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294 as_echo='print -r --'
295 as_echo_n='print -rn --'
296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297 as_echo='printf %s\n'
298 as_echo_n='printf %s'
299else
300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302 as_echo_n='/usr/ucb/echo -n'
303 else
304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305 as_echo_n_body='eval
306 arg=$1;
307 case $arg in #(
308 *"$as_nl"*)
309 expr "X$arg" : "X\\(.*\\)$as_nl";
310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 esac;
312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 '
314 export as_echo_n_body
315 as_echo_n='sh -c $as_echo_n_body as_echo'
316 fi
317 export as_echo_body
318 as_echo='sh -c $as_echo_body as_echo'
319fi
320
321
322
323# IFS
324# We need space, tab and new line, in precisely that order. Quoting is
325# there to prevent editors from complaining about space-tab.
326# (If _AS_PATH_WALK were called with IFS unset, it would disable word
327# splitting by setting IFS to empty value.)
328IFS=" "" $as_nl"
329
330# Find who we are. Look in the path if we contain no directory separator.
331as_myself=
332case $0 in #((
333 *[\\/]* ) as_myself=$0 ;;
334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335for as_dir in $PATH
336do
337 IFS=$as_save_IFS
338 test -z "$as_dir" && as_dir=.
339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340 done
341IFS=$as_save_IFS
342
343 ;;
344esac
345# We did not find ourselves, most probably we were run as `sh COMMAND'
346# in which case we are not to be found in the path.
347if test "x$as_myself" = x; then
348 as_myself=$0
349fi
350if test ! -f "$as_myself"; then
351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352 exit 1
353fi
354
355# Unset variables that we do not need and which cause bugs (e.g. in
356# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
357# suppresses any "Segmentation fault" message there. '((' could
358# trigger a bug in pdksh 5.2.14.
359for as_var in BASH_ENV ENV MAIL MAILPATH
360do eval test x\${$as_var+set} = xset \
361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362done
363PS1='$ '
364PS2='> '
365PS4='+ '
366
367# NLS nuisances.
368LC_ALL=C
369export LC_ALL
370LANGUAGE=C
371export LANGUAGE
372
373# CDPATH.
374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376# Use a proper internal environment variable to ensure we don't fall
377 # into an infinite loop, continuously re-executing ourselves.
378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379 _as_can_reexec=no; export _as_can_reexec;
380 # We cannot yet assume a decent shell, so we have to provide a
381# neutralization value for shells without unset; and this also
382# works around shells that cannot unset nonexistent variables.
383# Preserve -v and -x to the replacement shell.
384BASH_ENV=/dev/null
385ENV=/dev/null
386(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387case $- in # ((((
388 *v*x* | *x*v* ) as_opts=-vx ;;
389 *v* ) as_opts=-v ;;
390 *x* ) as_opts=-x ;;
391 * ) as_opts= ;;
392esac
393exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394# Admittedly, this is quite paranoid, since all the known shells bail
395# out after a failed `exec'.
396$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397as_fn_exit 255
398 fi
399 # We don't want this to propagate to other subprocesses.
400 { _as_can_reexec=; unset _as_can_reexec;}
401if test "x$CONFIG_SHELL" = x; then
402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403 emulate sh
404 NULLCMD=:
405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406 # is contrary to our usage. Disable this feature.
407 alias -g '\${1+\"\$@\"}'='\"\$@\"'
408 setopt NO_GLOB_SUBST
409else
410 case \`(set -o) 2>/dev/null\` in #(
411 *posix*) :
412 set -o posix ;; #(
413 *) :
414 ;;
415esac
416fi
417"
418 as_required="as_fn_return () { (exit \$1); }
419as_fn_success () { as_fn_return 0; }
420as_fn_failure () { as_fn_return 1; }
421as_fn_ret_success () { return 0; }
422as_fn_ret_failure () { return 1; }
423
424exitcode=0
425as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431else
432 exitcode=1; echo positional parameters were not saved.
433fi
434test x\$exitcode = x0 || exit 1
435test -x / || exit 1"
436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440test \$(( 1 + 1 )) = 2 || exit 1
441
442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446 PATH=/empty FPATH=/empty; export PATH FPATH
447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449 if (eval "$as_required") 2>/dev/null; then :
450 as_have_required=yes
451else
452 as_have_required=no
453fi
454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456else
457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458as_found=false
459for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460do
461 IFS=$as_save_IFS
462 test -z "$as_dir" && as_dir=.
463 as_found=:
464 case $as_dir in #(
465 /*)
466 for as_base in sh bash ksh sh5; do
467 # Try only shells that exist, to save several forks.
468 as_shell=$as_dir/$as_base
469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471 CONFIG_SHELL=$as_shell as_have_required=yes
472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473 break 2
474fi
475fi
476 done;;
477 esac
478 as_found=false
479done
480$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482 CONFIG_SHELL=$SHELL as_have_required=yes
483fi; }
484IFS=$as_save_IFS
485
486
487 if test "x$CONFIG_SHELL" != x; then :
488 export CONFIG_SHELL
489 # We cannot yet assume a decent shell, so we have to provide a
490# neutralization value for shells without unset; and this also
491# works around shells that cannot unset nonexistent variables.
492# Preserve -v and -x to the replacement shell.
493BASH_ENV=/dev/null
494ENV=/dev/null
495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496case $- in # ((((
497 *v*x* | *x*v* ) as_opts=-vx ;;
498 *v* ) as_opts=-v ;;
499 *x* ) as_opts=-x ;;
500 * ) as_opts= ;;
501esac
502exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503# Admittedly, this is quite paranoid, since all the known shells bail
504# out after a failed `exec'.
505$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509 if test x$as_have_required = xno; then :
510 $as_echo "$0: This script requires a shell more modern than all"
511 $as_echo "$0: the shells that I found on your system."
512 if test x${ZSH_VERSION+set} = xset ; then
513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 else
516 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517$0: mailing list: https://curl.haxx.se/mail/ about your
518$0: system, including any error possibly output before this
519$0: message. Then install a modern shell, or manually run
520$0: the script under such a shell if you do have one."
521 fi
522 exit 1
523fi
524fi
525fi
526SHELL=${CONFIG_SHELL-/bin/sh}
527export SHELL
528# Unset more variables known to interfere with behavior of common tools.
529CLICOLOR_FORCE= GREP_OPTIONS=
530unset CLICOLOR_FORCE GREP_OPTIONS
531
532## --------------------- ##
533## M4sh Shell Functions. ##
534## --------------------- ##
535# as_fn_unset VAR
536# ---------------
537# Portably unset VAR.
538as_fn_unset ()
539{
540 { eval $1=; unset $1;}
541}
542as_unset=as_fn_unset
543
544# as_fn_set_status STATUS
545# -----------------------
546# Set $? to STATUS, without forking.
547as_fn_set_status ()
548{
549 return $1
550} # as_fn_set_status
551
552# as_fn_exit STATUS
553# -----------------
554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555as_fn_exit ()
556{
557 set +e
558 as_fn_set_status $1
559 exit $1
560} # as_fn_exit
561
562# as_fn_mkdir_p
563# -------------
564# Create "$as_dir" as a directory, including parents if necessary.
565as_fn_mkdir_p ()
566{
567
568 case $as_dir in #(
569 -*) as_dir=./$as_dir;;
570 esac
571 test -d "$as_dir" || eval $as_mkdir_p || {
572 as_dirs=
573 while :; do
574 case $as_dir in #(
575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576 *) as_qdir=$as_dir;;
577 esac
578 as_dirs="'$as_qdir' $as_dirs"
579 as_dir=`$as_dirname -- "$as_dir" ||
580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581 X"$as_dir" : 'X\(//\)[^/]' \| \
582 X"$as_dir" : 'X\(//\)$' \| \
583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584$as_echo X"$as_dir" |
585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586 s//\1/
587 q
588 }
589 /^X\(\/\/\)[^/].*/{
590 s//\1/
591 q
592 }
593 /^X\(\/\/\)$/{
594 s//\1/
595 q
596 }
597 /^X\(\/\).*/{
598 s//\1/
599 q
600 }
601 s/.*/./; q'`
602 test -d "$as_dir" && break
603 done
604 test -z "$as_dirs" || eval "mkdir $as_dirs"
605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608} # as_fn_mkdir_p
609
610# as_fn_executable_p FILE
611# -----------------------
612# Test if FILE is an executable regular file.
613as_fn_executable_p ()
614{
615 test -f "$1" && test -x "$1"
616} # as_fn_executable_p
617# as_fn_append VAR VALUE
618# ----------------------
619# Append the text in VALUE to the end of the definition contained in VAR. Take
620# advantage of any shell optimizations that allow amortized linear growth over
621# repeated appends, instead of the typical quadratic growth present in naive
622# implementations.
623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624 eval 'as_fn_append ()
625 {
626 eval $1+=\$2
627 }'
628else
629 as_fn_append ()
630 {
631 eval $1=\$$1\$2
632 }
633fi # as_fn_append
634
635# as_fn_arith ARG...
636# ------------------
637# Perform arithmetic evaluation on the ARGs, and store the result in the
638# global $as_val. Take advantage of shells that can avoid forks. The arguments
639# must be portable across $(()) and expr.
640if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641 eval 'as_fn_arith ()
642 {
643 as_val=$(( $* ))
644 }'
645else
646 as_fn_arith ()
647 {
648 as_val=`expr "$@" || test $? -eq 1`
649 }
650fi # as_fn_arith
651
652
653# as_fn_error STATUS ERROR [LINENO LOG_FD]
654# ----------------------------------------
655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657# script with STATUS, using 1 if that was 0.
658as_fn_error ()
659{
660 as_status=$1; test $as_status -eq 0 && as_status=1
661 if test "$4"; then
662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 fi
665 $as_echo "$as_me: error: $2" >&2
666 as_fn_exit $as_status
667} # as_fn_error
668
669if expr a : '\(a\)' >/dev/null 2>&1 &&
670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
671 as_expr=expr
672else
673 as_expr=false
674fi
675
676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677 as_basename=basename
678else
679 as_basename=false
680fi
681
682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683 as_dirname=dirname
684else
685 as_dirname=false
686fi
687
688as_me=`$as_basename -- "$0" ||
689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690 X"$0" : 'X\(//\)$' \| \
691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692$as_echo X/"$0" |
693 sed '/^.*\/\([^/][^/]*\)\/*$/{
694 s//\1/
695 q
696 }
697 /^X\/\(\/\/\)$/{
698 s//\1/
699 q
700 }
701 /^X\/\(\/\).*/{
702 s//\1/
703 q
704 }
705 s/.*/./; q'`
706
707# Avoid depending upon Character Ranges.
708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711as_cr_digits='0123456789'
712as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715 as_lineno_1=$LINENO as_lineno_1a=$LINENO
716 as_lineno_2=$LINENO as_lineno_2a=$LINENO
717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
720 sed -n '
721 p
722 /[$]LINENO/=
723 ' <$as_myself |
724 sed '
725 s/[$]LINENO.*/&-/
726 t lineno
727 b
728 :lineno
729 N
730 :loop
731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732 t loop
733 s/-\n.*//
734 ' >$as_me.lineno &&
735 chmod +x "$as_me.lineno" ||
736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739 # already done that, so ensure we don't try to do so again and fall
740 # in an infinite loop. This has already happened in practice.
741 _as_can_reexec=no; export _as_can_reexec
742 # Don't try to exec as it changes $[0], causing all sort of problems
743 # (the dirname of $[0] is not the place where we might find the
744 # original and so on. Autoconf is especially sensitive to this).
745 . "./$as_me.lineno"
746 # Exit status is that of the last command.
747 exit
748}
749
750ECHO_C= ECHO_N= ECHO_T=
751case `echo -n x` in #(((((
752-n*)
753 case `echo 'xy\c'` in
754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 xy) ECHO_C='\c';;
756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
757 ECHO_T=' ';;
758 esac;;
759*)
760 ECHO_N='-n';;
761esac
762
763rm -f conf$$ conf$$.exe conf$$.file
764if test -d conf$$.dir; then
765 rm -f conf$$.dir/conf$$.file
766else
767 rm -f conf$$.dir
768 mkdir conf$$.dir 2>/dev/null
769fi
770if (echo >conf$$.file) 2>/dev/null; then
771 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 as_ln_s='ln -s'
773 # ... but there are two gotchas:
774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776 # In both cases, we have to default to `cp -pR'.
777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 as_ln_s='cp -pR'
779 elif ln conf$$.file conf$$ 2>/dev/null; then
780 as_ln_s=ln
781 else
782 as_ln_s='cp -pR'
783 fi
784else
785 as_ln_s='cp -pR'
786fi
787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788rmdir conf$$.dir 2>/dev/null
789
790if mkdir -p . 2>/dev/null; then
791 as_mkdir_p='mkdir -p "$as_dir"'
792else
793 test -d ./-p && rmdir ./-p
794 as_mkdir_p=false
795fi
796
797as_test_x='test -x'
798as_executable_p=as_fn_executable_p
799
800# Sed expression to map a string onto a valid CPP name.
801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803# Sed expression to map a string onto a valid variable name.
804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809test -n "$DJDIR" || exec 7<&0 </dev/null
810exec 6>&1
811
812# Name of the host.
813# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814# so uname gets run too.
815ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817#
818# Initializations.
819#
820ac_default_prefix=/usr/local
821ac_clean_files=
822ac_config_libobj_dir=.
823LIBOBJS=
824cross_compiling=no
825subdirs=
826MFLAGS=
827MAKEFLAGS=
828
829# Identity of this package.
830PACKAGE_NAME='curl'
831PACKAGE_TARNAME='curl'
832PACKAGE_VERSION='-'
833PACKAGE_STRING='curl -'
834PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835PACKAGE_URL=''
836
837ac_unique_file="lib/urldata.h"
838# Factoring default headers for most tests.
839ac_includes_default="\
840#include <stdio.h>
841#ifdef HAVE_SYS_TYPES_H
842# include <sys/types.h>
843#endif
844#ifdef HAVE_SYS_STAT_H
845# include <sys/stat.h>
846#endif
847#ifdef STDC_HEADERS
848# include <stdlib.h>
849# include <stddef.h>
850#else
851# ifdef HAVE_STDLIB_H
852# include <stdlib.h>
853# endif
854#endif
855#ifdef HAVE_STRING_H
856# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857# include <memory.h>
858# endif
859# include <string.h>
860#endif
861#ifdef HAVE_STRINGS_H
862# include <strings.h>
863#endif
864#ifdef HAVE_INTTYPES_H
865# include <inttypes.h>
866#endif
867#ifdef HAVE_STDINT_H
868# include <stdint.h>
869#endif
870#ifdef HAVE_UNISTD_H
871# include <unistd.h>
872#endif"
873
874enable_option_checking=no
875ac_subst_vars='am__EXEEXT_FALSE
876am__EXEEXT_TRUE
877LTLIBOBJS
878LIBOBJS
Elliott Hughes0128fe42018-02-27 14:57:55 -0800879SSL_BACKENDS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700880SUPPORT_PROTOCOLS
881SUPPORT_FEATURES
882ENABLE_STATIC
883ENABLE_SHARED
884CROSSCOMPILING_FALSE
885CROSSCOMPILING_TRUE
886BLANK_AT_MAKETIME
887CURL_NETWORK_AND_TIME_LIBS
888CURL_NETWORK_LIBS
889LIBCURL_LIBS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700890CFLAG_CURL_SYMBOL_HIDING
891DOING_CURL_SYMBOL_HIDING_FALSE
892DOING_CURL_SYMBOL_HIDING_TRUE
893USE_UNIX_SOCKETS
894BUILD_LIBHOSTNAME_FALSE
895BUILD_LIBHOSTNAME_TRUE
896USE_EMBEDDED_ARES_FALSE
897USE_EMBEDDED_ARES_TRUE
898USE_ARES
899subdirs
900USE_MANUAL_FALSE
901USE_MANUAL_TRUE
902MANOPT
903NROFF
904PERL
905IPV6_ENABLED
906ZSH_FUNCTIONS_DIR
907USE_NGHTTP2
908IDN_ENABLED
909CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911CURL_LT_SHLIB_VERSIONED_FLAVOUR
912USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800913USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700914USE_LIBSSH2
915LIBMETALINK_CPPFLAGS
916LIBMETALINK_LDFLAGS
917LIBMETALINK_LIBS
918USE_LIBPSL_FALSE
919USE_LIBPSL_TRUE
920CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100921CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700922SSL_ENABLED
923USE_AXTLS
924NSS_LIBS
925USE_NSS
926USE_CYASSL
927USE_MBEDTLS
928USE_POLARSSL
929HAVE_GNUTLS_SRP
930USE_GNUTLS_NETTLE
931USE_GNUTLS
932HAVE_OPENSSL_SRP
933RANDOM_FILE
934SSL_LIBS
935USE_DARWINSSL
936USE_WINDOWS_SSPI
937USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100938DEFAULT_SSL_BACKEND
939BUILD_STUB_GSS_FALSE
940BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700941USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100942HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700943ZLIB_LIBS
944HAVE_LIBZ_FALSE
945HAVE_LIBZ_TRUE
946HAVE_LIBZ
947PKGCONFIG
948CURL_DISABLE_GOPHER
949CURL_DISABLE_SMTP
950CURL_DISABLE_SMB
951CURL_DISABLE_IMAP
952CURL_DISABLE_POP3
953CURL_DISABLE_TFTP
954CURL_DISABLE_TELNET
955CURL_DISABLE_DICT
956CURL_DISABLE_PROXY
957HAVE_LDAP_SSL
958CURL_DISABLE_LDAPS
959CURL_DISABLE_LDAP
960CURL_DISABLE_FILE
961CURL_DISABLE_FTP
962CURL_DISABLE_RTSP
963CURL_DISABLE_HTTP
964DOING_NATIVE_WINDOWS_FALSE
965DOING_NATIVE_WINDOWS_TRUE
966BUILD_UNITTESTS_FALSE
967BUILD_UNITTESTS_TRUE
968CURLDEBUG_FALSE
969CURLDEBUG_TRUE
970USE_EXPLICIT_LIB_DEPS_FALSE
971USE_EXPLICIT_LIB_DEPS_TRUE
972REQUIRE_LIB_DEPS
973CPPFLAG_CURL_STATICLIB
974USE_CPPFLAG_CURL_STATICLIB_FALSE
975USE_CPPFLAG_CURL_STATICLIB_TRUE
976CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
977CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
978CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
979CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
980CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
981CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
982LT_SYS_LIBRARY_PATH
983OTOOL64
984OTOOL
985LIPO
986NMEDIT
987DSYMUTIL
988MANIFEST_TOOL
989RANLIB
990ac_ct_AR
991LN_S
992NM
993ac_ct_DUMPBIN
994DUMPBIN
995LD
996FGREP
997LIBTOOL
998OBJDUMP
999DLLTOOL
1000AS
1001host_os
1002host_vendor
1003host_cpu
1004host
1005build_os
1006build_vendor
1007build_cpu
1008build
1009PKGADD_VENDOR
1010PKGADD_NAME
1011PKGADD_PKG
1012VERSIONNUM
1013CURLVERSION
1014am__fastdepCC_FALSE
1015am__fastdepCC_TRUE
1016CCDEPMODE
1017am__nodep
1018AMDEPBACKSLASH
1019AMDEP_FALSE
1020AMDEP_TRUE
1021am__quote
1022am__include
1023DEPDIR
1024am__untar
1025am__tar
1026AMTAR
1027am__leading_dot
1028SET_MAKE
1029AWK
1030mkdir_p
1031MKDIR_P
1032INSTALL_STRIP_PROGRAM
1033STRIP
1034install_sh
1035MAKEINFO
1036AUTOHEADER
1037AUTOMAKE
1038AUTOCONF
1039ACLOCAL
1040VERSION
1041PACKAGE
1042CYGPATH_W
1043am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001044CODE_COVERAGE_RULES
1045CODE_COVERAGE_LDFLAGS
1046CODE_COVERAGE_LIBS
1047CODE_COVERAGE_CXXFLAGS
1048CODE_COVERAGE_CFLAGS
1049CODE_COVERAGE_CPPFLAGS
1050GENHTML
1051LCOV
1052GCOV
1053CODE_COVERAGE_ENABLED
1054CODE_COVERAGE_ENABLED_FALSE
1055CODE_COVERAGE_ENABLED_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -07001056CPP
1057OBJEXT
1058EXEEXT
1059ac_ct_CC
1060CPPFLAGS
1061LDFLAGS
1062CFLAGS
1063CC
1064INSTALL_DATA
1065INSTALL_SCRIPT
1066INSTALL_PROGRAM
1067libext
1068AR
1069EGREP
1070GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001071SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001072CURL_CFLAG_EXTRAS
1073CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001074AM_BACKSLASH
1075AM_DEFAULT_VERBOSITY
1076AM_DEFAULT_V
1077AM_V
1078MAINT
1079MAINTAINER_MODE_FALSE
1080MAINTAINER_MODE_TRUE
1081target_alias
1082host_alias
1083build_alias
1084LIBS
1085ECHO_T
1086ECHO_N
1087ECHO_C
1088DEFS
1089mandir
1090localedir
1091libdir
1092psdir
1093pdfdir
1094dvidir
1095htmldir
1096infodir
1097docdir
1098oldincludedir
1099includedir
1100runstatedir
1101localstatedir
1102sharedstatedir
1103sysconfdir
1104datadir
1105datarootdir
1106libexecdir
1107sbindir
1108bindir
1109program_transform_name
1110prefix
1111exec_prefix
1112PACKAGE_URL
1113PACKAGE_BUGREPORT
1114PACKAGE_STRING
1115PACKAGE_VERSION
1116PACKAGE_TARNAME
1117PACKAGE_NAME
1118SHELL
1119PATH_SEPARATOR'
1120ac_subst_files=''
1121ac_user_opts='
1122enable_option_checking
1123enable_maintainer_mode
1124enable_silent_rules
1125enable_debug
1126enable_optimize
1127enable_warnings
1128enable_werror
1129enable_curldebug
1130enable_symbol_hiding
1131enable_hidden_symbols
1132enable_ares
1133enable_rt
1134with_gcov
1135enable_code_coverage
1136enable_dependency_tracking
1137enable_largefile
1138enable_shared
1139enable_static
1140with_pic
1141enable_fast_install
1142with_aix_soname
1143with_gnu_ld
1144with_sysroot
1145enable_libtool_lock
1146enable_http
1147enable_ftp
1148enable_file
1149enable_ldap
1150enable_ldaps
1151enable_rtsp
1152enable_proxy
1153enable_dict
1154enable_telnet
1155enable_tftp
1156enable_pop3
1157enable_imap
1158enable_smb
1159enable_smtp
1160enable_gopher
1161enable_manual
1162enable_libcurl_option
1163enable_libgcc
1164with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001165with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001166with_ldap_lib
1167with_lber_lib
1168enable_ipv6
1169with_gssapi_includes
1170with_gssapi_libs
1171with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001172with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001173with_winssl
1174with_darwinssl
1175with_ssl
1176with_egd_socket
1177with_random
1178with_gnutls
1179with_polarssl
1180with_mbedtls
1181with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001182with_wolfssl
Elliott Hughes82be86d2017-09-20 17:00:17 -07001183with_nss
1184with_axtls
1185with_ca_bundle
1186with_ca_path
1187with_ca_fallback
1188with_libpsl
1189with_libmetalink
1190with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001191with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001192with_librtmp
1193enable_versioned_symbols
1194with_winidn
1195with_libidn2
1196with_nghttp2
1197with_zsh_functions_dir
1198enable_threaded_resolver
1199enable_pthreads
1200enable_verbose
1201enable_sspi
1202enable_crypto_auth
1203enable_ntlm_wb
1204enable_tls_srp
1205enable_unix_sockets
1206enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001207'
1208 ac_precious_vars='build_alias
1209host_alias
1210target_alias
1211CC
1212CFLAGS
1213LDFLAGS
1214LIBS
1215CPPFLAGS
1216CPP
1217LT_SYS_LIBRARY_PATH'
1218ac_subdirs_all='ares'
1219
1220# Initialize some variables set by options.
1221ac_init_help=
1222ac_init_version=false
1223ac_unrecognized_opts=
1224ac_unrecognized_sep=
1225# The variables have the same names as the options, with
1226# dashes changed to underlines.
1227cache_file=/dev/null
1228exec_prefix=NONE
1229no_create=
1230no_recursion=
1231prefix=NONE
1232program_prefix=NONE
1233program_suffix=NONE
1234program_transform_name=s,x,x,
1235silent=
1236site=
1237srcdir=
1238verbose=
1239x_includes=NONE
1240x_libraries=NONE
1241
1242# Installation directory options.
1243# These are left unexpanded so users can "make install exec_prefix=/foo"
1244# and all the variables that are supposed to be based on exec_prefix
1245# by default will actually change.
1246# Use braces instead of parens because sh, perl, etc. also accept them.
1247# (The list follows the same order as the GNU Coding Standards.)
1248bindir='${exec_prefix}/bin'
1249sbindir='${exec_prefix}/sbin'
1250libexecdir='${exec_prefix}/libexec'
1251datarootdir='${prefix}/share'
1252datadir='${datarootdir}'
1253sysconfdir='${prefix}/etc'
1254sharedstatedir='${prefix}/com'
1255localstatedir='${prefix}/var'
1256runstatedir='${localstatedir}/run'
1257includedir='${prefix}/include'
1258oldincludedir='/usr/include'
1259docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1260infodir='${datarootdir}/info'
1261htmldir='${docdir}'
1262dvidir='${docdir}'
1263pdfdir='${docdir}'
1264psdir='${docdir}'
1265libdir='${exec_prefix}/lib'
1266localedir='${datarootdir}/locale'
1267mandir='${datarootdir}/man'
1268
1269ac_prev=
1270ac_dashdash=
1271for ac_option
1272do
1273 # If the previous option needs an argument, assign it.
1274 if test -n "$ac_prev"; then
1275 eval $ac_prev=\$ac_option
1276 ac_prev=
1277 continue
1278 fi
1279
1280 case $ac_option in
1281 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1282 *=) ac_optarg= ;;
1283 *) ac_optarg=yes ;;
1284 esac
1285
1286 # Accept the important Cygnus configure options, so we can diagnose typos.
1287
1288 case $ac_dashdash$ac_option in
1289 --)
1290 ac_dashdash=yes ;;
1291
1292 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1293 ac_prev=bindir ;;
1294 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1295 bindir=$ac_optarg ;;
1296
1297 -build | --build | --buil | --bui | --bu)
1298 ac_prev=build_alias ;;
1299 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1300 build_alias=$ac_optarg ;;
1301
1302 -cache-file | --cache-file | --cache-fil | --cache-fi \
1303 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1304 ac_prev=cache_file ;;
1305 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1306 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1307 cache_file=$ac_optarg ;;
1308
1309 --config-cache | -C)
1310 cache_file=config.cache ;;
1311
1312 -datadir | --datadir | --datadi | --datad)
1313 ac_prev=datadir ;;
1314 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1315 datadir=$ac_optarg ;;
1316
1317 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1318 | --dataroo | --dataro | --datar)
1319 ac_prev=datarootdir ;;
1320 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1321 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1322 datarootdir=$ac_optarg ;;
1323
1324 -disable-* | --disable-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 as_fn_error $? "invalid feature name: $ac_useropt"
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1332 *"
1333"enable_$ac_useropt"
1334"*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval enable_$ac_useropt=no ;;
1339
1340 -docdir | --docdir | --docdi | --doc | --do)
1341 ac_prev=docdir ;;
1342 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1343 docdir=$ac_optarg ;;
1344
1345 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1346 ac_prev=dvidir ;;
1347 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1348 dvidir=$ac_optarg ;;
1349
1350 -enable-* | --enable-*)
1351 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1352 # Reject names that are not valid shell variable names.
1353 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354 as_fn_error $? "invalid feature name: $ac_useropt"
1355 ac_useropt_orig=$ac_useropt
1356 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357 case $ac_user_opts in
1358 *"
1359"enable_$ac_useropt"
1360"*) ;;
1361 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1362 ac_unrecognized_sep=', ';;
1363 esac
1364 eval enable_$ac_useropt=\$ac_optarg ;;
1365
1366 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1367 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1368 | --exec | --exe | --ex)
1369 ac_prev=exec_prefix ;;
1370 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1371 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1372 | --exec=* | --exe=* | --ex=*)
1373 exec_prefix=$ac_optarg ;;
1374
1375 -gas | --gas | --ga | --g)
1376 # Obsolete; use --with-gas.
1377 with_gas=yes ;;
1378
1379 -help | --help | --hel | --he | -h)
1380 ac_init_help=long ;;
1381 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1382 ac_init_help=recursive ;;
1383 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1384 ac_init_help=short ;;
1385
1386 -host | --host | --hos | --ho)
1387 ac_prev=host_alias ;;
1388 -host=* | --host=* | --hos=* | --ho=*)
1389 host_alias=$ac_optarg ;;
1390
1391 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1392 ac_prev=htmldir ;;
1393 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1394 | --ht=*)
1395 htmldir=$ac_optarg ;;
1396
1397 -includedir | --includedir | --includedi | --included | --include \
1398 | --includ | --inclu | --incl | --inc)
1399 ac_prev=includedir ;;
1400 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1401 | --includ=* | --inclu=* | --incl=* | --inc=*)
1402 includedir=$ac_optarg ;;
1403
1404 -infodir | --infodir | --infodi | --infod | --info | --inf)
1405 ac_prev=infodir ;;
1406 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1407 infodir=$ac_optarg ;;
1408
1409 -libdir | --libdir | --libdi | --libd)
1410 ac_prev=libdir ;;
1411 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1412 libdir=$ac_optarg ;;
1413
1414 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1415 | --libexe | --libex | --libe)
1416 ac_prev=libexecdir ;;
1417 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1418 | --libexe=* | --libex=* | --libe=*)
1419 libexecdir=$ac_optarg ;;
1420
1421 -localedir | --localedir | --localedi | --localed | --locale)
1422 ac_prev=localedir ;;
1423 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1424 localedir=$ac_optarg ;;
1425
1426 -localstatedir | --localstatedir | --localstatedi | --localstated \
1427 | --localstate | --localstat | --localsta | --localst | --locals)
1428 ac_prev=localstatedir ;;
1429 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1430 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1431 localstatedir=$ac_optarg ;;
1432
1433 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1434 ac_prev=mandir ;;
1435 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1436 mandir=$ac_optarg ;;
1437
1438 -nfp | --nfp | --nf)
1439 # Obsolete; use --without-fp.
1440 with_fp=no ;;
1441
1442 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1443 | --no-cr | --no-c | -n)
1444 no_create=yes ;;
1445
1446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1448 no_recursion=yes ;;
1449
1450 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1451 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1452 | --oldin | --oldi | --old | --ol | --o)
1453 ac_prev=oldincludedir ;;
1454 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1455 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1456 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1457 oldincludedir=$ac_optarg ;;
1458
1459 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1460 ac_prev=prefix ;;
1461 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1462 prefix=$ac_optarg ;;
1463
1464 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1465 | --program-pre | --program-pr | --program-p)
1466 ac_prev=program_prefix ;;
1467 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1468 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1469 program_prefix=$ac_optarg ;;
1470
1471 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1472 | --program-suf | --program-su | --program-s)
1473 ac_prev=program_suffix ;;
1474 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1475 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1476 program_suffix=$ac_optarg ;;
1477
1478 -program-transform-name | --program-transform-name \
1479 | --program-transform-nam | --program-transform-na \
1480 | --program-transform-n | --program-transform- \
1481 | --program-transform | --program-transfor \
1482 | --program-transfo | --program-transf \
1483 | --program-trans | --program-tran \
1484 | --progr-tra | --program-tr | --program-t)
1485 ac_prev=program_transform_name ;;
1486 -program-transform-name=* | --program-transform-name=* \
1487 | --program-transform-nam=* | --program-transform-na=* \
1488 | --program-transform-n=* | --program-transform-=* \
1489 | --program-transform=* | --program-transfor=* \
1490 | --program-transfo=* | --program-transf=* \
1491 | --program-trans=* | --program-tran=* \
1492 | --progr-tra=* | --program-tr=* | --program-t=*)
1493 program_transform_name=$ac_optarg ;;
1494
1495 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1496 ac_prev=pdfdir ;;
1497 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1498 pdfdir=$ac_optarg ;;
1499
1500 -psdir | --psdir | --psdi | --psd | --ps)
1501 ac_prev=psdir ;;
1502 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1503 psdir=$ac_optarg ;;
1504
1505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1506 | -silent | --silent | --silen | --sile | --sil)
1507 silent=yes ;;
1508
1509 -runstatedir | --runstatedir | --runstatedi | --runstated \
1510 | --runstate | --runstat | --runsta | --runst | --runs \
1511 | --run | --ru | --r)
1512 ac_prev=runstatedir ;;
1513 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1514 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1515 | --run=* | --ru=* | --r=*)
1516 runstatedir=$ac_optarg ;;
1517
1518 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1519 ac_prev=sbindir ;;
1520 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1521 | --sbi=* | --sb=*)
1522 sbindir=$ac_optarg ;;
1523
1524 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1525 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1526 | --sharedst | --shareds | --shared | --share | --shar \
1527 | --sha | --sh)
1528 ac_prev=sharedstatedir ;;
1529 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1530 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1531 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1532 | --sha=* | --sh=*)
1533 sharedstatedir=$ac_optarg ;;
1534
1535 -site | --site | --sit)
1536 ac_prev=site ;;
1537 -site=* | --site=* | --sit=*)
1538 site=$ac_optarg ;;
1539
1540 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1541 ac_prev=srcdir ;;
1542 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1543 srcdir=$ac_optarg ;;
1544
1545 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1546 | --syscon | --sysco | --sysc | --sys | --sy)
1547 ac_prev=sysconfdir ;;
1548 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1549 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1550 sysconfdir=$ac_optarg ;;
1551
1552 -target | --target | --targe | --targ | --tar | --ta | --t)
1553 ac_prev=target_alias ;;
1554 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1555 target_alias=$ac_optarg ;;
1556
1557 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1558 verbose=yes ;;
1559
1560 -version | --version | --versio | --versi | --vers | -V)
1561 ac_init_version=: ;;
1562
1563 -with-* | --with-*)
1564 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1565 # Reject names that are not valid shell variable names.
1566 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1567 as_fn_error $? "invalid package name: $ac_useropt"
1568 ac_useropt_orig=$ac_useropt
1569 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1570 case $ac_user_opts in
1571 *"
1572"with_$ac_useropt"
1573"*) ;;
1574 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1575 ac_unrecognized_sep=', ';;
1576 esac
1577 eval with_$ac_useropt=\$ac_optarg ;;
1578
1579 -without-* | --without-*)
1580 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583 as_fn_error $? "invalid package name: $ac_useropt"
1584 ac_useropt_orig=$ac_useropt
1585 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1587 *"
1588"with_$ac_useropt"
1589"*) ;;
1590 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1591 ac_unrecognized_sep=', ';;
1592 esac
1593 eval with_$ac_useropt=no ;;
1594
1595 --x)
1596 # Obsolete; use --with-x.
1597 with_x=yes ;;
1598
1599 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1600 | --x-incl | --x-inc | --x-in | --x-i)
1601 ac_prev=x_includes ;;
1602 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1603 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1604 x_includes=$ac_optarg ;;
1605
1606 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1607 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1608 ac_prev=x_libraries ;;
1609 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1610 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1611 x_libraries=$ac_optarg ;;
1612
1613 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1614Try \`$0 --help' for more information"
1615 ;;
1616
1617 *=*)
1618 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1619 # Reject names that are not valid shell variable names.
1620 case $ac_envvar in #(
1621 '' | [0-9]* | *[!_$as_cr_alnum]* )
1622 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1623 esac
1624 eval $ac_envvar=\$ac_optarg
1625 export $ac_envvar ;;
1626
1627 *)
1628 # FIXME: should be removed in autoconf 3.0.
1629 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1630 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1631 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1632 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1633 ;;
1634
1635 esac
1636done
1637
1638if test -n "$ac_prev"; then
1639 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1640 as_fn_error $? "missing argument to $ac_option"
1641fi
1642
1643if test -n "$ac_unrecognized_opts"; then
1644 case $enable_option_checking in
1645 no) ;;
1646 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1647 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1648 esac
1649fi
1650
1651# Check all directory arguments for consistency.
1652for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1653 datadir sysconfdir sharedstatedir localstatedir includedir \
1654 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1655 libdir localedir mandir runstatedir
1656do
1657 eval ac_val=\$$ac_var
1658 # Remove trailing slashes.
1659 case $ac_val in
1660 */ )
1661 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1662 eval $ac_var=\$ac_val;;
1663 esac
1664 # Be sure to have absolute directory names.
1665 case $ac_val in
1666 [\\/$]* | ?:[\\/]* ) continue;;
1667 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1668 esac
1669 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1670done
1671
1672# There might be people who depend on the old broken behavior: `$host'
1673# used to hold the argument of --host etc.
1674# FIXME: To remove some day.
1675build=$build_alias
1676host=$host_alias
1677target=$target_alias
1678
1679# FIXME: To remove some day.
1680if test "x$host_alias" != x; then
1681 if test "x$build_alias" = x; then
1682 cross_compiling=maybe
1683 elif test "x$build_alias" != "x$host_alias"; then
1684 cross_compiling=yes
1685 fi
1686fi
1687
1688ac_tool_prefix=
1689test -n "$host_alias" && ac_tool_prefix=$host_alias-
1690
1691test "$silent" = yes && exec 6>/dev/null
1692
1693
1694ac_pwd=`pwd` && test -n "$ac_pwd" &&
1695ac_ls_di=`ls -di .` &&
1696ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1697 as_fn_error $? "working directory cannot be determined"
1698test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1699 as_fn_error $? "pwd does not report name of working directory"
1700
1701
1702# Find the source files, if location was not specified.
1703if test -z "$srcdir"; then
1704 ac_srcdir_defaulted=yes
1705 # Try the directory containing this script, then the parent directory.
1706 ac_confdir=`$as_dirname -- "$as_myself" ||
1707$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1708 X"$as_myself" : 'X\(//\)[^/]' \| \
1709 X"$as_myself" : 'X\(//\)$' \| \
1710 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1711$as_echo X"$as_myself" |
1712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)[^/].*/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\/\)$/{
1721 s//\1/
1722 q
1723 }
1724 /^X\(\/\).*/{
1725 s//\1/
1726 q
1727 }
1728 s/.*/./; q'`
1729 srcdir=$ac_confdir
1730 if test ! -r "$srcdir/$ac_unique_file"; then
1731 srcdir=..
1732 fi
1733else
1734 ac_srcdir_defaulted=no
1735fi
1736if test ! -r "$srcdir/$ac_unique_file"; then
1737 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1738 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1739fi
1740ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1741ac_abs_confdir=`(
1742 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1743 pwd)`
1744# When building in place, set srcdir=.
1745if test "$ac_abs_confdir" = "$ac_pwd"; then
1746 srcdir=.
1747fi
1748# Remove unnecessary trailing slashes from srcdir.
1749# Double slashes in file names in object file debugging info
1750# mess up M-x gdb in Emacs.
1751case $srcdir in
1752*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1753esac
1754for ac_var in $ac_precious_vars; do
1755 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1756 eval ac_env_${ac_var}_value=\$${ac_var}
1757 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1758 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1759done
1760
1761#
1762# Report the --help message.
1763#
1764if test "$ac_init_help" = "long"; then
1765 # Omit some internal or obsolete options to make the list less imposing.
1766 # This message is too long to be a string in the A/UX 3.1 sh.
1767 cat <<_ACEOF
1768\`configure' configures curl - to adapt to many kinds of systems.
1769
1770Usage: $0 [OPTION]... [VAR=VALUE]...
1771
1772To assign environment variables (e.g., CC, CFLAGS...), specify them as
1773VAR=VALUE. See below for descriptions of some of the useful variables.
1774
1775Defaults for the options are specified in brackets.
1776
1777Configuration:
1778 -h, --help display this help and exit
1779 --help=short display options specific to this package
1780 --help=recursive display the short help of all the included packages
1781 -V, --version display version information and exit
1782 -q, --quiet, --silent do not print \`checking ...' messages
1783 --cache-file=FILE cache test results in FILE [disabled]
1784 -C, --config-cache alias for \`--cache-file=config.cache'
1785 -n, --no-create do not create output files
1786 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1787
1788Installation directories:
1789 --prefix=PREFIX install architecture-independent files in PREFIX
1790 [$ac_default_prefix]
1791 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1792 [PREFIX]
1793
1794By default, \`make install' will install all the files in
1795\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1796an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1797for instance \`--prefix=\$HOME'.
1798
1799For better control, use the options below.
1800
1801Fine tuning of the installation directories:
1802 --bindir=DIR user executables [EPREFIX/bin]
1803 --sbindir=DIR system admin executables [EPREFIX/sbin]
1804 --libexecdir=DIR program executables [EPREFIX/libexec]
1805 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1806 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1807 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1808 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1809 --libdir=DIR object code libraries [EPREFIX/lib]
1810 --includedir=DIR C header files [PREFIX/include]
1811 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1812 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1813 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1814 --infodir=DIR info documentation [DATAROOTDIR/info]
1815 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1816 --mandir=DIR man documentation [DATAROOTDIR/man]
1817 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1818 --htmldir=DIR html documentation [DOCDIR]
1819 --dvidir=DIR dvi documentation [DOCDIR]
1820 --pdfdir=DIR pdf documentation [DOCDIR]
1821 --psdir=DIR ps documentation [DOCDIR]
1822_ACEOF
1823
1824 cat <<\_ACEOF
1825
1826Program names:
1827 --program-prefix=PREFIX prepend PREFIX to installed program names
1828 --program-suffix=SUFFIX append SUFFIX to installed program names
1829 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1830
1831System types:
1832 --build=BUILD configure for building on BUILD [guessed]
1833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1834_ACEOF
1835fi
1836
1837if test -n "$ac_init_help"; then
1838 case $ac_init_help in
1839 short | recursive ) echo "Configuration of curl -:";;
1840 esac
1841 cat <<\_ACEOF
1842
1843Optional Features:
1844 --disable-option-checking ignore unrecognized --enable/--with options
1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1847 --enable-maintainer-mode
1848 enable make rules and dependencies not useful (and
1849 sometimes confusing) to the casual installer
1850 --enable-silent-rules less verbose build output (undo: "make V=1")
1851 --disable-silent-rules verbose build output (undo: "make V=0")
1852 --enable-debug Enable debug build options
1853 --disable-debug Disable debug build options
1854 --enable-optimize Enable compiler optimizations
1855 --disable-optimize Disable compiler optimizations
1856 --enable-warnings Enable strict compiler warnings
1857 --disable-warnings Disable strict compiler warnings
1858 --enable-werror Enable compiler warnings as errors
1859 --disable-werror Disable compiler warnings as errors
1860 --enable-curldebug Enable curl debug memory tracking
1861 --disable-curldebug Disable curl debug memory tracking
1862 --enable-symbol-hiding Enable hiding of library internal symbols
1863 --disable-symbol-hiding Disable hiding of library internal symbols
1864 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1865 --disable-hidden-symbols
1866 To be deprecated, use --disable-symbol-hiding
1867 --enable-ares[=PATH] Enable c-ares for DNS lookups
1868 --disable-ares Disable c-ares for DNS lookups
1869 --disable-rt disable dependency on -lrt
1870 --enable-code-coverage Whether to enable code coverage support
1871 --enable-dependency-tracking
1872 do not reject slow dependency extractors
1873 --disable-dependency-tracking
1874 speeds up one-time build
1875 --disable-largefile omit support for large files
1876 --enable-shared[=PKGS] build shared libraries [default=yes]
1877 --enable-static[=PKGS] build static libraries [default=yes]
1878 --enable-fast-install[=PKGS]
1879 optimize for fast installation [default=yes]
1880 --disable-libtool-lock avoid locking (might break parallel builds)
1881 --enable-http Enable HTTP support
1882 --disable-http Disable HTTP support
1883 --enable-ftp Enable FTP support
1884 --disable-ftp Disable FTP support
1885 --enable-file Enable FILE support
1886 --disable-file Disable FILE support
1887 --enable-ldap Enable LDAP support
1888 --disable-ldap Disable LDAP support
1889 --enable-ldaps Enable LDAPS support
1890 --disable-ldaps Disable LDAPS support
1891 --enable-rtsp Enable RTSP support
1892 --disable-rtsp Disable RTSP support
1893 --enable-proxy Enable proxy support
1894 --disable-proxy Disable proxy support
1895 --enable-dict Enable DICT support
1896 --disable-dict Disable DICT support
1897 --enable-telnet Enable TELNET support
1898 --disable-telnet Disable TELNET support
1899 --enable-tftp Enable TFTP support
1900 --disable-tftp Disable TFTP support
1901 --enable-pop3 Enable POP3 support
1902 --disable-pop3 Disable POP3 support
1903 --enable-imap Enable IMAP support
1904 --disable-imap Disable IMAP support
1905 --enable-smb Enable SMB/CIFS support
1906 --disable-smb Disable SMB/CIFS support
1907 --enable-smtp Enable SMTP support
1908 --disable-smtp Disable SMTP support
1909 --enable-gopher Enable Gopher support
1910 --disable-gopher Disable Gopher support
1911 --enable-manual Enable built-in manual
1912 --disable-manual Disable built-in manual
1913 --enable-libcurl-option Enable --libcurl C code generation support
1914 --disable-libcurl-option
1915 Disable --libcurl C code generation support
1916 --enable-libgcc use libgcc when linking
1917 --enable-ipv6 Enable IPv6 (with IPv4) support
1918 --disable-ipv6 Disable IPv6 support
1919 --enable-versioned-symbols
1920 Enable versioned symbols in shared library
1921 --disable-versioned-symbols
1922 Disable versioned symbols in shared library
1923 --enable-threaded-resolver
1924 Enable threaded resolver
1925 --disable-threaded-resolver
1926 Disable threaded resolver
1927 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1928 --disable-pthreads Disable POSIX threads
1929 --enable-verbose Enable verbose strings
1930 --disable-verbose Disable verbose strings
1931 --enable-sspi Enable SSPI
1932 --disable-sspi Disable SSPI
1933 --enable-crypto-auth Enable cryptographic authentication
1934 --disable-crypto-auth Disable cryptographic authentication
1935 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1936 helper, where FILE is ntlm_auth's absolute filename
1937 (default: /usr/bin/ntlm_auth)
1938 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1939 helper
1940 --enable-tls-srp Enable TLS-SRP authentication
1941 --disable-tls-srp Disable TLS-SRP authentication
1942 --enable-unix-sockets Enable Unix domain sockets
1943 --disable-unix-sockets Disable Unix domain sockets
1944 --enable-cookies Enable cookies support
1945 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001946
1947Optional Packages:
1948 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1949 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1950 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1951 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1952 both]
1953 --with-aix-soname=aix|svr4|both
1954 shared library versioning (aka "SONAME") variant to
1955 provide on AIX, [default=aix].
1956 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1957 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1958 compiler's sysroot if not specified).
1959 --with-zlib=PATH search for zlib in PATH
1960 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001961 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1962 installation; when possible, set the PKG_CONFIG_PATH
1963 environment variable instead of using this option
1964 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001965 --with-ldap-lib=libname Specify name of ldap lib file
1966 --with-lber-lib=libname Specify name of lber lib file
1967 --with-gssapi-includes=DIR
1968 Specify location of GSS-API headers
1969 --with-gssapi-libs=DIR Specify location of GSS-API libs
1970 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001971 --with-default-ssl-backend=NAME
1972 Use NAME as default SSL backend
1973 --without-default-ssl-backend
1974 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001975 --with-winssl enable Windows native SSL/TLS
1976 --without-winssl disable Windows native SSL/TLS
1977 --with-darwinssl enable Apple OS native SSL/TLS
1978 --without-darwinssl disable Apple OS native SSL/TLS
1979 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1980 installation (default: /usr/local/ssl); when
1981 possible, set the PKG_CONFIG_PATH environment
1982 variable instead of using this option
1983 --without-ssl disable OpenSSL
1984 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1985 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1986 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1987 installation root
1988 --without-gnutls disable GnuTLS detection
1989 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1990 installation root
1991 --without-polarssl disable PolarSSL detection
1992 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1993 installation root
1994 --without-mbedtls disable mbedTLS detection
1995 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1996 installation root (default: system lib default)
1997 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001998 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
1999 installation root (default: system lib default)
2000 --without-wolfssl disable WolfSSL detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002001 --with-nss=PATH where to look for NSS, PATH points to the
2002 installation root
2003 --without-nss disable NSS detection
2004 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
2005 installation prefix (default: /usr/local). Ignored
2006 if another SSL engine is selected.
2007 --without-axtls disable axTLS
2008 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2009 /etc/ca-bundle.crt)
2010 --without-ca-bundle Don't use a default CA bundle
2011 --with-ca-path=DIRECTORY
2012 Path to a directory containing CA certificates
2013 stored individually, with their filenames in a hash
2014 format. This option can be used with OpenSSL, GnuTLS
2015 and PolarSSL backends. Refer to OpenSSL c_rehash for
2016 details. (example: /etc/certificates)
2017 --without-ca-path Don't use a default CA path
2018 --with-ca-fallback Use the built in CA store of the SSL library
2019 --without-ca-fallback Don't use the built in CA store of the SSL library
2020 --without-libpsl disable support for libpsl cookie checking
2021 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2022 installation root
2023 --without-libmetalink disable libmetalink detection
2024 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2025 LIBSSH2 installation; when possible, set the
2026 PKG_CONFIG_PATH environment variable instead of
2027 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002028 --with-libssh2 enable LIBSSH2
2029 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2030 installation; when possible, set the PKG_CONFIG_PATH
2031 environment variable instead of using this option
2032 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002033 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2034 LIBRTMP installation; when possible, set the
2035 PKG_CONFIG_PATH environment variable instead of
2036 using this option
2037 --without-librtmp disable LIBRTMP
2038 --with-winidn=PATH enable Windows native IDN
2039 --without-winidn disable Windows native IDN
2040 --with-libidn2=PATH Enable libidn2 usage
2041 --without-libidn2 Disable libidn2 usage
2042 --with-nghttp2=PATH Enable nghttp2 usage
2043 --without-nghttp2 Disable nghttp2 usage
2044 --with-zsh-functions-dir=PATH
2045 Install zsh completions to PATH
2046 --without-zsh-functions-dir
2047 Do not install zsh completions
2048
2049Some influential environment variables:
2050 CC C compiler command
2051 CFLAGS C compiler flags
2052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2053 nonstandard directory <lib dir>
2054 LIBS libraries to pass to the linker, e.g. -l<library>
2055 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2056 you have headers in a nonstandard directory <include dir>
2057 CPP C preprocessor
2058 LT_SYS_LIBRARY_PATH
2059 User-defined run-time library search path.
2060
2061Use these variables to override the choices made by `configure' or to help
2062it to find libraries and programs with nonstandard names/locations.
2063
2064Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2065_ACEOF
2066ac_status=$?
2067fi
2068
2069if test "$ac_init_help" = "recursive"; then
2070 # If there are subdirs, report their specific --help.
2071 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2072 test -d "$ac_dir" ||
2073 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2074 continue
2075 ac_builddir=.
2076
2077case "$ac_dir" in
2078.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2079*)
2080 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2081 # A ".." for each directory in $ac_dir_suffix.
2082 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2083 case $ac_top_builddir_sub in
2084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2086 esac ;;
2087esac
2088ac_abs_top_builddir=$ac_pwd
2089ac_abs_builddir=$ac_pwd$ac_dir_suffix
2090# for backward compatibility:
2091ac_top_builddir=$ac_top_build_prefix
2092
2093case $srcdir in
2094 .) # We are building in place.
2095 ac_srcdir=.
2096 ac_top_srcdir=$ac_top_builddir_sub
2097 ac_abs_top_srcdir=$ac_pwd ;;
2098 [\\/]* | ?:[\\/]* ) # Absolute name.
2099 ac_srcdir=$srcdir$ac_dir_suffix;
2100 ac_top_srcdir=$srcdir
2101 ac_abs_top_srcdir=$srcdir ;;
2102 *) # Relative name.
2103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2104 ac_top_srcdir=$ac_top_build_prefix$srcdir
2105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2106esac
2107ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2108
2109 cd "$ac_dir" || { ac_status=$?; continue; }
2110 # Check for guested configure.
2111 if test -f "$ac_srcdir/configure.gnu"; then
2112 echo &&
2113 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2114 elif test -f "$ac_srcdir/configure"; then
2115 echo &&
2116 $SHELL "$ac_srcdir/configure" --help=recursive
2117 else
2118 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2119 fi || ac_status=$?
2120 cd "$ac_pwd" || { ac_status=$?; break; }
2121 done
2122fi
2123
2124test -n "$ac_init_help" && exit $ac_status
2125if $ac_init_version; then
2126 cat <<\_ACEOF
2127curl configure -
2128generated by GNU Autoconf 2.69
2129
2130Copyright (C) 2012 Free Software Foundation, Inc.
2131This configure script is free software; the Free Software Foundation
2132gives unlimited permission to copy, distribute and modify it.
2133
2134Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2135This configure script may be copied, distributed and modified under the
2136terms of the curl license; see COPYING for more details
2137_ACEOF
2138 exit
2139fi
2140
2141## ------------------------ ##
2142## Autoconf initialization. ##
2143## ------------------------ ##
2144
2145# ac_fn_c_try_compile LINENO
2146# --------------------------
2147# Try to compile conftest.$ac_ext, and return whether this succeeded.
2148ac_fn_c_try_compile ()
2149{
2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151 rm -f conftest.$ac_objext
2152 if { { ac_try="$ac_compile"
2153case "(($ac_try" in
2154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155 *) ac_try_echo=$ac_try;;
2156esac
2157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158$as_echo "$ac_try_echo"; } >&5
2159 (eval "$ac_compile") 2>conftest.err
2160 ac_status=$?
2161 if test -s conftest.err; then
2162 grep -v '^ *+' conftest.err >conftest.er1
2163 cat conftest.er1 >&5
2164 mv -f conftest.er1 conftest.err
2165 fi
2166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167 test $ac_status = 0; } && {
2168 test -z "$ac_c_werror_flag" ||
2169 test ! -s conftest.err
2170 } && test -s conftest.$ac_objext; then :
2171 ac_retval=0
2172else
2173 $as_echo "$as_me: failed program was:" >&5
2174sed 's/^/| /' conftest.$ac_ext >&5
2175
2176 ac_retval=1
2177fi
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 as_fn_set_status $ac_retval
2180
2181} # ac_fn_c_try_compile
2182
2183# ac_fn_c_try_cpp LINENO
2184# ----------------------
2185# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2186ac_fn_c_try_cpp ()
2187{
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 if { { ac_try="$ac_cpp conftest.$ac_ext"
2190case "(($ac_try" in
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2193esac
2194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195$as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2197 ac_status=$?
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2202 fi
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } > conftest.i && {
2205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2206 test ! -s conftest.err
2207 }; then :
2208 ac_retval=0
2209else
2210 $as_echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213 ac_retval=1
2214fi
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2217
2218} # ac_fn_c_try_cpp
2219
Alex Deymo486467e2017-12-19 19:04:07 +01002220# ac_fn_c_try_link LINENO
2221# -----------------------
2222# Try to link conftest.$ac_ext, and return whether this succeeded.
2223ac_fn_c_try_link ()
2224{
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext conftest$ac_exeext
2227 if { { ac_try="$ac_link"
2228case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_link") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2240 fi
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest$ac_exeext && {
2246 test "$cross_compiling" = yes ||
2247 test -x conftest$ac_exeext
2248 }; then :
2249 ac_retval=0
2250else
2251 $as_echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 ac_retval=1
2255fi
2256 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2257 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2258 # interfere with the next link command; also delete a directory that is
2259 # left behind by Apple's compiler. We do this before executing the actions.
2260 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2261 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 as_fn_set_status $ac_retval
2263
2264} # ac_fn_c_try_link
2265
Elliott Hughes82be86d2017-09-20 17:00:17 -07002266# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2267# -------------------------------------------------------
2268# Tests whether HEADER exists and can be compiled using the include files in
2269# INCLUDES, setting the cache variable VAR accordingly.
2270ac_fn_c_check_header_compile ()
2271{
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274$as_echo_n "checking for $2... " >&6; }
2275if eval \${$3+:} false; then :
2276 $as_echo_n "(cached) " >&6
2277else
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279/* end confdefs.h. */
2280$4
2281#include <$2>
2282_ACEOF
2283if ac_fn_c_try_compile "$LINENO"; then :
2284 eval "$3=yes"
2285else
2286 eval "$3=no"
2287fi
2288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289fi
2290eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292$as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295} # ac_fn_c_check_header_compile
2296
2297# ac_fn_c_try_run LINENO
2298# ----------------------
2299# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2300# that executables *can* be run.
2301ac_fn_c_try_run ()
2302{
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 if { { ac_try="$ac_link"
2305case "(($ac_try" in
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2308esac
2309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310$as_echo "$ac_try_echo"; } >&5
2311 (eval "$ac_link") 2>&5
2312 ac_status=$?
2313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2314 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2315 { { case "(($ac_try" in
2316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2317 *) ac_try_echo=$ac_try;;
2318esac
2319eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2320$as_echo "$ac_try_echo"; } >&5
2321 (eval "$ac_try") 2>&5
2322 ac_status=$?
2323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324 test $ac_status = 0; }; }; then :
2325 ac_retval=0
2326else
2327 $as_echo "$as_me: program exited with status $ac_status" >&5
2328 $as_echo "$as_me: failed program was:" >&5
2329sed 's/^/| /' conftest.$ac_ext >&5
2330
2331 ac_retval=$ac_status
2332fi
2333 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335 as_fn_set_status $ac_retval
2336
2337} # ac_fn_c_try_run
2338
Alex Deymo486467e2017-12-19 19:04:07 +01002339# ac_fn_c_check_func LINENO FUNC VAR
2340# ----------------------------------
2341# Tests whether FUNC exists, setting the cache variable VAR accordingly
2342ac_fn_c_check_func ()
2343{
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346$as_echo_n "checking for $2... " >&6; }
2347if eval \${$3+:} false; then :
2348 $as_echo_n "(cached) " >&6
2349else
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h. */
2352
2353#define $2 innocuous_$2
2354#ifdef __STDC__
2355# include <limits.h>
2356#else
2357# include <assert.h>
2358#endif
2359#undef $2
2360#ifdef __cplusplus
2361extern "C"
2362#endif
2363char $2 ();
2364#if defined __stub_$2 || defined __stub___$2
2365choke me
2366#endif
2367
2368int main (void)
2369{
2370return $2 ();
2371 ;
2372 return 0;
2373}
2374_ACEOF
2375if ac_fn_c_try_link "$LINENO"; then :
2376 eval "$3=yes"
2377else
2378 eval "$3=no"
2379fi
2380rm -f core conftest.err conftest.$ac_objext \
2381 conftest$ac_exeext conftest.$ac_ext
2382fi
2383eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385$as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387
2388} # ac_fn_c_check_func
2389
2390# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2391# -------------------------------------------------------
2392# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2393# the include files in INCLUDES and setting the cache variable VAR
2394# accordingly.
2395ac_fn_c_check_header_mongrel ()
2396{
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 if eval \${$3+:} false; then :
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2400$as_echo_n "checking for $2... " >&6; }
2401if eval \${$3+:} false; then :
2402 $as_echo_n "(cached) " >&6
2403fi
2404eval ac_res=\$$3
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2406$as_echo "$ac_res" >&6; }
2407else
2408 # Is the header compilable?
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2410$as_echo_n "checking $2 usability... " >&6; }
2411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412/* end confdefs.h. */
2413$4
2414#include <$2>
2415_ACEOF
2416if ac_fn_c_try_compile "$LINENO"; then :
2417 ac_header_compiler=yes
2418else
2419 ac_header_compiler=no
2420fi
2421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2423$as_echo "$ac_header_compiler" >&6; }
2424
2425# Is the header present?
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2427$as_echo_n "checking $2 presence... " >&6; }
2428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429/* end confdefs.h. */
2430#include <$2>
2431_ACEOF
2432if ac_fn_c_try_cpp "$LINENO"; then :
2433 ac_header_preproc=yes
2434else
2435 ac_header_preproc=no
2436fi
2437rm -f conftest.err conftest.i conftest.$ac_ext
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2439$as_echo "$ac_header_preproc" >&6; }
2440
2441# So? What about this header?
2442case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2443 yes:no: )
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2445$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2447$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2448 ;;
2449 no:yes:* )
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2451$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2453$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2455$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2457$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2459$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2460( $as_echo "## ----------------------------------------------------------------------- ##
2461## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2462## ----------------------------------------------------------------------- ##"
2463 ) | sed "s/^/$as_me: WARNING: /" >&2
2464 ;;
2465esac
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2467$as_echo_n "checking for $2... " >&6; }
2468if eval \${$3+:} false; then :
2469 $as_echo_n "(cached) " >&6
2470else
2471 eval "$3=\$ac_header_compiler"
2472fi
2473eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475$as_echo "$ac_res" >&6; }
2476fi
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478
2479} # ac_fn_c_check_header_mongrel
2480
Elliott Hughes82be86d2017-09-20 17:00:17 -07002481# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2482# --------------------------------------------
2483# Tries to find the compile-time value of EXPR in a program that includes
2484# INCLUDES, setting VAR accordingly. Returns whether the value could be
2485# computed
2486ac_fn_c_compute_int ()
2487{
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 if test "$cross_compiling" = yes; then
2490 # Depending upon the size, compute the lo and hi bounds.
2491cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492/* end confdefs.h. */
2493$4
2494int main (void)
2495{
2496static int test_array [1 - 2 * !(($2) >= 0)];
2497test_array [0] = 0;
2498return test_array [0];
2499
2500 ;
2501 return 0;
2502}
2503_ACEOF
2504if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_lo=0 ac_mid=0
2506 while :; do
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int main (void)
2511{
2512static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2513test_array [0] = 0;
2514return test_array [0];
2515
2516 ;
2517 return 0;
2518}
2519_ACEOF
2520if ac_fn_c_try_compile "$LINENO"; then :
2521 ac_hi=$ac_mid; break
2522else
2523 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2524 if test $ac_lo -le $ac_mid; then
2525 ac_lo= ac_hi=
2526 break
2527 fi
2528 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2529fi
2530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531 done
2532else
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534/* end confdefs.h. */
2535$4
2536int main (void)
2537{
2538static int test_array [1 - 2 * !(($2) < 0)];
2539test_array [0] = 0;
2540return test_array [0];
2541
2542 ;
2543 return 0;
2544}
2545_ACEOF
2546if ac_fn_c_try_compile "$LINENO"; then :
2547 ac_hi=-1 ac_mid=-1
2548 while :; do
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int main (void)
2553{
2554static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2555test_array [0] = 0;
2556return test_array [0];
2557
2558 ;
2559 return 0;
2560}
2561_ACEOF
2562if ac_fn_c_try_compile "$LINENO"; then :
2563 ac_lo=$ac_mid; break
2564else
2565 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2566 if test $ac_mid -le $ac_hi; then
2567 ac_lo= ac_hi=
2568 break
2569 fi
2570 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2571fi
2572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 done
2574else
2575 ac_lo= ac_hi=
2576fi
2577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578fi
2579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580# Binary search between lo and hi bounds.
2581while test "x$ac_lo" != "x$ac_hi"; do
2582 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584/* end confdefs.h. */
2585$4
2586int main (void)
2587{
2588static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2589test_array [0] = 0;
2590return test_array [0];
2591
2592 ;
2593 return 0;
2594}
2595_ACEOF
2596if ac_fn_c_try_compile "$LINENO"; then :
2597 ac_hi=$ac_mid
2598else
2599 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2600fi
2601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602done
2603case $ac_lo in #((
2604?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2605'') ac_retval=1 ;;
2606esac
2607 else
2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609/* end confdefs.h. */
2610$4
2611static long int longval () { return $2; }
2612static unsigned long int ulongval () { return $2; }
2613#include <stdio.h>
2614#include <stdlib.h>
2615int main (void)
2616{
2617
2618 FILE *f = fopen ("conftest.val", "w");
2619 if (! f)
2620 return 1;
2621 if (($2) < 0)
2622 {
2623 long int i = longval ();
2624 if (i != ($2))
2625 return 1;
2626 fprintf (f, "%ld", i);
2627 }
2628 else
2629 {
2630 unsigned long int i = ulongval ();
2631 if (i != ($2))
2632 return 1;
2633 fprintf (f, "%lu", i);
2634 }
2635 /* Do not output a trailing newline, as this causes \r\n confusion
2636 on some platforms. */
2637 return ferror (f) || fclose (f) != 0;
2638
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643if ac_fn_c_try_run "$LINENO"; then :
2644 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2645else
2646 ac_retval=1
2647fi
2648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2649 conftest.$ac_objext conftest.beam conftest.$ac_ext
2650rm -f conftest.val
2651
2652 fi
2653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2654 as_fn_set_status $ac_retval
2655
2656} # ac_fn_c_compute_int
2657
Elliott Hughes82be86d2017-09-20 17:00:17 -07002658# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2659# -------------------------------------------
2660# Tests whether TYPE exists after having included INCLUDES, setting cache
2661# variable VAR accordingly.
2662ac_fn_c_check_type ()
2663{
2664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2666$as_echo_n "checking for $2... " >&6; }
2667if eval \${$3+:} false; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 eval "$3=no"
2671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672/* end confdefs.h. */
2673$4
2674int main (void)
2675{
2676if (sizeof ($2))
2677 return 0;
2678 ;
2679 return 0;
2680}
2681_ACEOF
2682if ac_fn_c_try_compile "$LINENO"; then :
2683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2684/* end confdefs.h. */
2685$4
2686int main (void)
2687{
2688if (sizeof (($2)))
2689 return 0;
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694if ac_fn_c_try_compile "$LINENO"; then :
2695
2696else
2697 eval "$3=yes"
2698fi
2699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702fi
2703eval ac_res=\$$3
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705$as_echo "$ac_res" >&6; }
2706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2707
2708} # ac_fn_c_check_type
2709
2710# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2711# ----------------------------------------------------
2712# Tries to find if the field MEMBER exists in type AGGR, after including
2713# INCLUDES, setting cache variable VAR accordingly.
2714ac_fn_c_check_member ()
2715{
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2718$as_echo_n "checking for $2.$3... " >&6; }
2719if eval \${$4+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721else
2722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2723/* end confdefs.h. */
2724$5
2725int main (void)
2726{
2727static $2 ac_aggr;
2728if (ac_aggr.$3)
2729return 0;
2730 ;
2731 return 0;
2732}
2733_ACEOF
2734if ac_fn_c_try_compile "$LINENO"; then :
2735 eval "$4=yes"
2736else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738/* end confdefs.h. */
2739$5
2740int main (void)
2741{
2742static $2 ac_aggr;
2743if (sizeof ac_aggr.$3)
2744return 0;
2745 ;
2746 return 0;
2747}
2748_ACEOF
2749if ac_fn_c_try_compile "$LINENO"; then :
2750 eval "$4=yes"
2751else
2752 eval "$4=no"
2753fi
2754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755fi
2756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757fi
2758eval ac_res=\$$4
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760$as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2762
2763} # ac_fn_c_check_member
2764cat >config.log <<_ACEOF
2765This file contains any messages produced by compilers while
2766running configure, to aid debugging if configure makes a mistake.
2767
2768It was created by curl $as_me -, which was
2769generated by GNU Autoconf 2.69. Invocation command line was
2770
2771 $ $0 $@
2772
2773_ACEOF
2774exec 5>>config.log
2775{
2776cat <<_ASUNAME
2777## --------- ##
2778## Platform. ##
2779## --------- ##
2780
2781hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2782uname -m = `(uname -m) 2>/dev/null || echo unknown`
2783uname -r = `(uname -r) 2>/dev/null || echo unknown`
2784uname -s = `(uname -s) 2>/dev/null || echo unknown`
2785uname -v = `(uname -v) 2>/dev/null || echo unknown`
2786
2787/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2788/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2789
2790/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2791/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2792/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2793/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2794/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2795/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2796/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2797
2798_ASUNAME
2799
2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801for as_dir in $PATH
2802do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 $as_echo "PATH: $as_dir"
2806 done
2807IFS=$as_save_IFS
2808
2809} >&5
2810
2811cat >&5 <<_ACEOF
2812
2813
2814## ----------- ##
2815## Core tests. ##
2816## ----------- ##
2817
2818_ACEOF
2819
2820
2821# Keep a trace of the command line.
2822# Strip out --no-create and --no-recursion so they do not pile up.
2823# Strip out --silent because we don't want to record it for future runs.
2824# Also quote any args containing shell meta-characters.
2825# Make two passes to allow for proper duplicate-argument suppression.
2826ac_configure_args=
2827ac_configure_args0=
2828ac_configure_args1=
2829ac_must_keep_next=false
2830for ac_pass in 1 2
2831do
2832 for ac_arg
2833 do
2834 case $ac_arg in
2835 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2837 | -silent | --silent | --silen | --sile | --sil)
2838 continue ;;
2839 *\'*)
2840 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2841 esac
2842 case $ac_pass in
2843 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2844 2)
2845 as_fn_append ac_configure_args1 " '$ac_arg'"
2846 if test $ac_must_keep_next = true; then
2847 ac_must_keep_next=false # Got value, back to normal.
2848 else
2849 case $ac_arg in
2850 *=* | --config-cache | -C | -disable-* | --disable-* \
2851 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2852 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2853 | -with-* | --with-* | -without-* | --without-* | --x)
2854 case "$ac_configure_args0 " in
2855 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2856 esac
2857 ;;
2858 -* ) ac_must_keep_next=true ;;
2859 esac
2860 fi
2861 as_fn_append ac_configure_args " '$ac_arg'"
2862 ;;
2863 esac
2864 done
2865done
2866{ ac_configure_args0=; unset ac_configure_args0;}
2867{ ac_configure_args1=; unset ac_configure_args1;}
2868
2869# When interrupted or exit'd, cleanup temporary files, and complete
2870# config.log. We remove comments because anyway the quotes in there
2871# would cause problems or look ugly.
2872# WARNING: Use '\'' to represent an apostrophe within the trap.
2873# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2874trap 'exit_status=$?
2875 # Save into config.log some information that might help in debugging.
2876 {
2877 echo
2878
2879 $as_echo "## ---------------- ##
2880## Cache variables. ##
2881## ---------------- ##"
2882 echo
2883 # The following way of writing the cache mishandles newlines in values,
2884(
2885 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2886 eval ac_val=\$$ac_var
2887 case $ac_val in #(
2888 *${as_nl}*)
2889 case $ac_var in #(
2890 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2891$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2892 esac
2893 case $ac_var in #(
2894 _ | IFS | as_nl) ;; #(
2895 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2896 *) { eval $ac_var=; unset $ac_var;} ;;
2897 esac ;;
2898 esac
2899 done
2900 (set) 2>&1 |
2901 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2902 *${as_nl}ac_space=\ *)
2903 sed -n \
2904 "s/'\''/'\''\\\\'\'''\''/g;
2905 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2906 ;; #(
2907 *)
2908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2909 ;;
2910 esac |
2911 sort
2912)
2913 echo
2914
2915 $as_echo "## ----------------- ##
2916## Output variables. ##
2917## ----------------- ##"
2918 echo
2919 for ac_var in $ac_subst_vars
2920 do
2921 eval ac_val=\$$ac_var
2922 case $ac_val in
2923 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2924 esac
2925 $as_echo "$ac_var='\''$ac_val'\''"
2926 done | sort
2927 echo
2928
2929 if test -n "$ac_subst_files"; then
2930 $as_echo "## ------------------- ##
2931## File substitutions. ##
2932## ------------------- ##"
2933 echo
2934 for ac_var in $ac_subst_files
2935 do
2936 eval ac_val=\$$ac_var
2937 case $ac_val in
2938 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2939 esac
2940 $as_echo "$ac_var='\''$ac_val'\''"
2941 done | sort
2942 echo
2943 fi
2944
2945 if test -s confdefs.h; then
2946 $as_echo "## ----------- ##
2947## confdefs.h. ##
2948## ----------- ##"
2949 echo
2950 cat confdefs.h
2951 echo
2952 fi
2953 test "$ac_signal" != 0 &&
2954 $as_echo "$as_me: caught signal $ac_signal"
2955 $as_echo "$as_me: exit $exit_status"
2956 } >&5
2957 rm -f core *.core core.conftest.* &&
2958 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2959 exit $exit_status
2960' 0
2961for ac_signal in 1 2 13 15; do
2962 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2963done
2964ac_signal=0
2965
2966# confdefs.h avoids OS command line length limits that DEFS can exceed.
2967rm -f -r conftest* confdefs.h
2968
2969$as_echo "/* confdefs.h */" > confdefs.h
2970
2971# Predefined preprocessor variables.
2972
2973cat >>confdefs.h <<_ACEOF
2974#define PACKAGE_NAME "$PACKAGE_NAME"
2975_ACEOF
2976
2977cat >>confdefs.h <<_ACEOF
2978#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2979_ACEOF
2980
2981cat >>confdefs.h <<_ACEOF
2982#define PACKAGE_VERSION "$PACKAGE_VERSION"
2983_ACEOF
2984
2985cat >>confdefs.h <<_ACEOF
2986#define PACKAGE_STRING "$PACKAGE_STRING"
2987_ACEOF
2988
2989cat >>confdefs.h <<_ACEOF
2990#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2991_ACEOF
2992
2993cat >>confdefs.h <<_ACEOF
2994#define PACKAGE_URL "$PACKAGE_URL"
2995_ACEOF
2996
2997
2998# Let the site file select an alternate cache file if it wants to.
2999# Prefer an explicitly selected file to automatically selected ones.
3000ac_site_file1=NONE
3001ac_site_file2=NONE
3002if test -n "$CONFIG_SITE"; then
3003 # We do not want a PATH search for config.site.
3004 case $CONFIG_SITE in #((
3005 -*) ac_site_file1=./$CONFIG_SITE;;
3006 */*) ac_site_file1=$CONFIG_SITE;;
3007 *) ac_site_file1=./$CONFIG_SITE;;
3008 esac
3009elif test "x$prefix" != xNONE; then
3010 ac_site_file1=$prefix/share/config.site
3011 ac_site_file2=$prefix/etc/config.site
3012else
3013 ac_site_file1=$ac_default_prefix/share/config.site
3014 ac_site_file2=$ac_default_prefix/etc/config.site
3015fi
3016for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3017do
3018 test "x$ac_site_file" = xNONE && continue
3019 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3021$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3022 sed 's/^/| /' "$ac_site_file" >&5
3023 . "$ac_site_file" \
3024 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3026as_fn_error $? "failed to load site script $ac_site_file
3027See \`config.log' for more details" "$LINENO" 5; }
3028 fi
3029done
3030
3031if test -r "$cache_file"; then
3032 # Some versions of bash will fail to source /dev/null (special files
3033 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3034 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3036$as_echo "$as_me: loading cache $cache_file" >&6;}
3037 case $cache_file in
3038 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3039 *) . "./$cache_file";;
3040 esac
3041 fi
3042else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3044$as_echo "$as_me: creating cache $cache_file" >&6;}
3045 >$cache_file
3046fi
3047
3048# Check that the precious variables saved in the cache have kept the same
3049# value.
3050ac_cache_corrupted=false
3051for ac_var in $ac_precious_vars; do
3052 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3053 eval ac_new_set=\$ac_env_${ac_var}_set
3054 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3055 eval ac_new_val=\$ac_env_${ac_var}_value
3056 case $ac_old_set,$ac_new_set in
3057 set,)
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3059$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3060 ac_cache_corrupted=: ;;
3061 ,set)
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3063$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3064 ac_cache_corrupted=: ;;
3065 ,);;
3066 *)
3067 if test "x$ac_old_val" != "x$ac_new_val"; then
3068 # differences in whitespace do not lead to failure.
3069 ac_old_val_w=`echo x $ac_old_val`
3070 ac_new_val_w=`echo x $ac_new_val`
3071 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3073$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3074 ac_cache_corrupted=:
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3077$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3078 eval $ac_var=\$ac_old_val
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3081$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3083$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3084 fi;;
3085 esac
3086 # Pass precious variables to config.status.
3087 if test "$ac_new_set" = set; then
3088 case $ac_new_val in
3089 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3090 *) ac_arg=$ac_var=$ac_new_val ;;
3091 esac
3092 case " $ac_configure_args " in
3093 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3094 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3095 esac
3096 fi
3097done
3098if $ac_cache_corrupted; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3102$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3103 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3104fi
3105## -------------------- ##
3106## Main body of script. ##
3107## -------------------- ##
3108
3109ac_ext=c
3110ac_cpp='$CPP $CPPFLAGS'
3111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115
3116
3117
3118
3119
3120
3121# using curl-override.m4
3122
3123
3124
3125
3126
3127ac_config_headers="$ac_config_headers lib/curl_config.h"
3128
3129
3130
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3132$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3133 # Check whether --enable-maintainer-mode was given.
3134if test "${enable_maintainer_mode+set}" = set; then :
3135 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3136else
3137 USE_MAINTAINER_MODE=no
3138fi
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3141$as_echo "$USE_MAINTAINER_MODE" >&6; }
3142 if test $USE_MAINTAINER_MODE = yes; then
3143 MAINTAINER_MODE_TRUE=
3144 MAINTAINER_MODE_FALSE='#'
3145else
3146 MAINTAINER_MODE_TRUE='#'
3147 MAINTAINER_MODE_FALSE=
3148fi
3149
3150 MAINT=$MAINTAINER_MODE_TRUE
3151
3152
3153# Check whether --enable-silent-rules was given.
3154if test "${enable_silent_rules+set}" = set; then :
3155 enableval=$enable_silent_rules;
3156fi
3157
3158case $enable_silent_rules in # (((
3159 yes) AM_DEFAULT_VERBOSITY=0;;
3160 no) AM_DEFAULT_VERBOSITY=1;;
3161 *) AM_DEFAULT_VERBOSITY=0;;
3162esac
3163am_make=${MAKE-make}
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3165$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3166if ${am_cv_make_support_nested_variables+:} false; then :
3167 $as_echo_n "(cached) " >&6
3168else
3169 if $as_echo 'TRUE=$(BAR$(V))
3170BAR0=false
3171BAR1=true
3172V=1
3173am__doit:
3174 @$(TRUE)
3175.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3176 am_cv_make_support_nested_variables=yes
3177else
3178 am_cv_make_support_nested_variables=no
3179fi
3180fi
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3182$as_echo "$am_cv_make_support_nested_variables" >&6; }
3183if test $am_cv_make_support_nested_variables = yes; then
3184 AM_V='$(V)'
3185 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3186else
3187 AM_V=$AM_DEFAULT_VERBOSITY
3188 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3189fi
3190AM_BACKSLASH='\'
3191
3192
3193
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3195$as_echo_n "checking whether to enable debug build options... " >&6; }
3196 OPT_DEBUG_BUILD="default"
3197 # Check whether --enable-debug was given.
3198if test "${enable_debug+set}" = set; then :
3199 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3200fi
3201
3202 case "$OPT_DEBUG_BUILD" in
3203 no)
3204 want_debug="no"
3205 ;;
3206 default)
3207 want_debug="no"
3208 ;;
3209 *)
3210 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003211
3212$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3213
Elliott Hughes82be86d2017-09-20 17:00:17 -07003214 ;;
3215 esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3217$as_echo "$want_debug" >&6; }
3218
3219
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3221$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3222 OPT_COMPILER_OPTIMIZE="default"
3223 # Check whether --enable-optimize was given.
3224if test "${enable_optimize+set}" = set; then :
3225 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3226fi
3227
3228 case "$OPT_COMPILER_OPTIMIZE" in
3229 no)
3230 want_optimize="no"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233 ;;
3234 default)
3235 if test "$want_debug" = "yes"; then
3236 want_optimize="assume_no"
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3238$as_echo "(assumed) no" >&6; }
3239 else
3240 want_optimize="assume_yes"
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3242$as_echo "(assumed) yes" >&6; }
3243 fi
3244 ;;
3245 *)
3246 want_optimize="yes"
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248$as_echo "yes" >&6; }
3249 ;;
3250 esac
3251
3252
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3254$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3255 OPT_COMPILER_WARNINGS="default"
3256 # Check whether --enable-warnings was given.
3257if test "${enable_warnings+set}" = set; then :
3258 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3259fi
3260
3261 case "$OPT_COMPILER_WARNINGS" in
3262 no)
3263 want_warnings="no"
3264 ;;
3265 default)
3266 want_warnings="$want_debug"
3267 ;;
3268 *)
3269 want_warnings="yes"
3270 ;;
3271 esac
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3273$as_echo "$want_warnings" >&6; }
3274
3275
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3277$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3278 OPT_COMPILER_WERROR="default"
3279 # Check whether --enable-werror was given.
3280if test "${enable_werror+set}" = set; then :
3281 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3282fi
3283
3284 case "$OPT_COMPILER_WERROR" in
3285 no)
3286 want_werror="no"
3287 ;;
3288 default)
3289 want_werror="no"
3290 ;;
3291 *)
3292 want_werror="yes"
3293 ;;
3294 esac
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3296$as_echo "$want_werror" >&6; }
3297
3298
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3300$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3301 OPT_CURLDEBUG_BUILD="default"
3302 # Check whether --enable-curldebug was given.
3303if test "${enable_curldebug+set}" = set; then :
3304 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3305fi
3306
3307 case "$OPT_CURLDEBUG_BUILD" in
3308 no)
3309 want_curldebug="no"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312 ;;
3313 default)
3314 if test "$want_debug" = "yes"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3316$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003317
3318$as_echo "#define CURLDEBUG 1" >>confdefs.h
3319
Elliott Hughes82be86d2017-09-20 17:00:17 -07003320 else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323 fi
3324 want_curldebug_assumed="yes"
3325 want_curldebug="$want_debug"
3326 ;;
3327 *)
3328 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003329
3330$as_echo "#define CURLDEBUG 1" >>confdefs.h
3331
Elliott Hughes82be86d2017-09-20 17:00:17 -07003332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333$as_echo "yes" >&6; }
3334 ;;
3335 esac
3336
3337
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3339$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3340 OPT_SYMBOL_HIDING="default"
3341 # Check whether --enable-symbol-hiding was given.
3342if test "${enable_symbol_hiding+set}" = set; then :
3343 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3344fi
3345
3346 # Check whether --enable-hidden-symbols was given.
3347if test "${enable_hidden_symbols+set}" = set; then :
3348 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3349fi
3350
3351 case "$OPT_SYMBOL_HIDING" in
3352 no)
3353 want_symbol_hiding="no"
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355$as_echo "no" >&6; }
3356 ;;
3357 default)
3358 want_symbol_hiding="yes"
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
3361 ;;
3362 *)
3363 want_symbol_hiding="yes"
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365$as_echo "yes" >&6; }
3366 ;;
3367 esac
3368
3369
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3371$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3372 OPT_ARES="default"
3373 # Check whether --enable-ares was given.
3374if test "${enable_ares+set}" = set; then :
3375 enableval=$enable_ares; OPT_ARES=$enableval
3376fi
3377
3378 case "$OPT_ARES" in
3379 no)
3380 want_ares="no"
3381 ;;
3382 default)
3383 want_ares="no"
3384 ;;
3385 *)
3386 want_ares="yes"
3387 if test -n "$enableval" && test "$enableval" != "yes"; then
3388 want_ares_path="$enableval"
3389 fi
3390 ;;
3391 esac
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3393$as_echo "$want_ares" >&6; }
3394
3395
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3397$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3398 OPT_RT="default"
3399 # Check whether --enable-rt was given.
3400if test "${enable_rt+set}" = set; then :
3401 enableval=$enable_rt; OPT_RT=$enableval
3402fi
3403
3404 case "$OPT_RT" in
3405 no)
3406 dontwant_rt="yes"
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408$as_echo "yes" >&6; }
3409 ;;
3410 default)
3411 dontwant_rt="no"
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3413$as_echo "(assumed no)" >&6; }
3414 ;;
3415 *)
3416 dontwant_rt="no"
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418$as_echo "no" >&6; }
3419 ;;
3420 esac
3421
3422
3423#
3424# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3425#
3426
3427if test -z "$xc_configure_preamble_result"; then
3428 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3429fi
3430
3431#
3432# Check that 'PATH_SEPARATOR' has already been set.
3433#
3434
3435if test -z "$xc_PATH_SEPARATOR"; then
3436 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3437fi
3438if test -z "$PATH_SEPARATOR"; then
3439 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3440fi
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3442$as_echo_n "checking for path separator... " >&6; }
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3444$as_echo "$PATH_SEPARATOR" >&6; }
3445if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3447$as_echo_n "checking for initial path separator... " >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3449$as_echo "$xc_PATH_SEPARATOR" >&6; }
3450 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3451fi
3452
Elliott Hughes82be86d2017-09-20 17:00:17 -07003453
3454#
3455# save the configure arguments
3456#
3457CONFIGURE_OPTIONS="\"$ac_configure_args\""
3458
3459
3460CURL_CFLAG_EXTRAS=""
3461if test X"$want_werror" = Xyes; then
3462 CURL_CFLAG_EXTRAS="-Werror"
3463fi
3464
3465
3466if test -z "$SED"; then
3467 # Extract the first word of "sed", so it can be a program name with args.
3468set dummy sed; ac_word=$2
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470$as_echo_n "checking for $ac_word... " >&6; }
3471if ${ac_cv_path_SED+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473else
3474 case $SED in
3475 [\\/]* | ?:[\\/]*)
3476 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3477 ;;
3478 *)
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480as_dummy="$PATH:/usr/bin:/usr/local/bin"
3481for as_dir in $as_dummy
3482do
3483 IFS=$as_save_IFS
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491done
3492 done
3493IFS=$as_save_IFS
3494
3495 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3496 ;;
3497esac
3498fi
3499SED=$ac_cv_path_SED
3500if test -n "$SED"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3502$as_echo "$SED" >&6; }
3503else
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505$as_echo "no" >&6; }
3506fi
3507
3508
3509 if test -z "$SED" || test "$SED" = "not_found"; then
3510 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3511 fi
3512fi
3513
3514
3515if test -z "$GREP"; then
3516 # Extract the first word of "grep", so it can be a program name with args.
3517set dummy grep; ac_word=$2
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3519$as_echo_n "checking for $ac_word... " >&6; }
3520if ${ac_cv_path_GREP+:} false; then :
3521 $as_echo_n "(cached) " >&6
3522else
3523 case $GREP in
3524 [\\/]* | ?:[\\/]*)
3525 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3526 ;;
3527 *)
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529as_dummy="$PATH:/usr/bin:/usr/local/bin"
3530for as_dir in $as_dummy
3531do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540done
3541 done
3542IFS=$as_save_IFS
3543
3544 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3545 ;;
3546esac
3547fi
3548GREP=$ac_cv_path_GREP
3549if test -n "$GREP"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3551$as_echo "$GREP" >&6; }
3552else
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3554$as_echo "no" >&6; }
3555fi
3556
3557
3558 if test -z "$GREP" || test "$GREP" = "not_found"; then
3559 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3560 fi
3561fi
3562
3563
3564if test -z "$EGREP"; then
3565 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3567$as_echo_n "checking for egrep... " >&6; }
3568 EGREP="$GREP -E"
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3570$as_echo "$EGREP" >&6; }
3571 else
3572 # Extract the first word of "egrep", so it can be a program name with args.
3573set dummy egrep; ac_word=$2
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575$as_echo_n "checking for $ac_word... " >&6; }
3576if ${ac_cv_path_EGREP+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578else
3579 case $EGREP in
3580 [\\/]* | ?:[\\/]*)
3581 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3582 ;;
3583 *)
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585as_dummy="$PATH:/usr/bin:/usr/local/bin"
3586for as_dir in $as_dummy
3587do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596done
3597 done
3598IFS=$as_save_IFS
3599
3600 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3601 ;;
3602esac
3603fi
3604EGREP=$ac_cv_path_EGREP
3605if test -n "$EGREP"; then
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3607$as_echo "$EGREP" >&6; }
3608else
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
3611fi
3612
3613
3614 fi
3615fi
3616if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3617 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3618fi
3619
3620
3621if test -z "$AR"; then
3622 if test -n "$ac_tool_prefix"; then
3623 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3624set dummy ${ac_tool_prefix}ar; ac_word=$2
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626$as_echo_n "checking for $ac_word... " >&6; }
3627if ${ac_cv_path_AR+:} false; then :
3628 $as_echo_n "(cached) " >&6
3629else
3630 case $AR in
3631 [\\/]* | ?:[\\/]*)
3632 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3633 ;;
3634 *)
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636as_dummy="$PATH:/usr/bin:/usr/local/bin"
3637for as_dir in $as_dummy
3638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647done
3648 done
3649IFS=$as_save_IFS
3650
3651 ;;
3652esac
3653fi
3654AR=$ac_cv_path_AR
3655if test -n "$AR"; then
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3657$as_echo "$AR" >&6; }
3658else
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660$as_echo "no" >&6; }
3661fi
3662
3663
3664fi
3665if test -z "$ac_cv_path_AR"; then
3666 ac_pt_AR=$AR
3667 # Extract the first word of "ar", so it can be a program name with args.
3668set dummy ar; ac_word=$2
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670$as_echo_n "checking for $ac_word... " >&6; }
3671if ${ac_cv_path_ac_pt_AR+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673else
3674 case $ac_pt_AR in
3675 [\\/]* | ?:[\\/]*)
3676 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3677 ;;
3678 *)
3679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680as_dummy="$PATH:/usr/bin:/usr/local/bin"
3681for as_dir in $as_dummy
3682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3689 break 2
3690 fi
3691done
3692 done
3693IFS=$as_save_IFS
3694
3695 ;;
3696esac
3697fi
3698ac_pt_AR=$ac_cv_path_ac_pt_AR
3699if test -n "$ac_pt_AR"; then
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3701$as_echo "$ac_pt_AR" >&6; }
3702else
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704$as_echo "no" >&6; }
3705fi
3706
3707 if test "x$ac_pt_AR" = x; then
3708 AR="not_found"
3709 else
3710 case $cross_compiling:$ac_tool_warned in
3711yes:)
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714ac_tool_warned=yes ;;
3715esac
3716 AR=$ac_pt_AR
3717 fi
3718else
3719 AR="$ac_cv_path_AR"
3720fi
3721
3722 if test -z "$AR" || test "$AR" = "not_found"; then
3723 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3724 fi
3725fi
3726
3727
3728
3729
3730CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3731
3732 xc_prog_cc_prev_IFS=$IFS
3733 xc_prog_cc_prev_LIBS=$LIBS
3734 xc_prog_cc_prev_CFLAGS=$CFLAGS
3735 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3736 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3737
3738
3739
3740 xc_bad_var_libs=no
3741 for xc_word in $LIBS; do
3742 case "$xc_word" in
3743 -l* | --library=*)
3744 :
3745 ;;
3746 *)
3747 xc_bad_var_libs=yes
3748 ;;
3749 esac
3750 done
3751 if test $xc_bad_var_libs = yes; then
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3753$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3755$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3756 fi
3757
3758
3759 xc_bad_var_ldflags=no
3760 for xc_word in $LDFLAGS; do
3761 case "$xc_word" in
3762 -D*)
3763 xc_bad_var_ldflags=yes
3764 ;;
3765 -U*)
3766 xc_bad_var_ldflags=yes
3767 ;;
3768 -I*)
3769 xc_bad_var_ldflags=yes
3770 ;;
3771 -l* | --library=*)
3772 xc_bad_var_ldflags=yes
3773 ;;
3774 esac
3775 done
3776 if test $xc_bad_var_ldflags = yes; then
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3778$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3779 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3780 for xc_word in $LDFLAGS; do
3781 case "$xc_word" in
3782 -D*)
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3784$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3785 ;;
3786 -U*)
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3788$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3789 ;;
3790 -I*)
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3792$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3793 ;;
3794 -l* | --library=*)
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3796$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3797 ;;
3798 esac
3799 done
3800 fi
3801
3802
3803 xc_bad_var_cppflags=no
3804 for xc_word in $CPPFLAGS; do
3805 case "$xc_word" in
3806 -rpath*)
3807 xc_bad_var_cppflags=yes
3808 ;;
3809 -L* | --library-path=*)
3810 xc_bad_var_cppflags=yes
3811 ;;
3812 -l* | --library=*)
3813 xc_bad_var_cppflags=yes
3814 ;;
3815 esac
3816 done
3817 if test $xc_bad_var_cppflags = yes; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3819$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3820 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3821 for xc_word in $CPPFLAGS; do
3822 case "$xc_word" in
3823 -rpath*)
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3825$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3826 ;;
3827 -L* | --library-path=*)
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3829$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3830 ;;
3831 -l* | --library=*)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3833$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3834 ;;
3835 esac
3836 done
3837 fi
3838
3839
3840 xc_bad_var_cflags=no
3841 for xc_word in $CFLAGS; do
3842 case "$xc_word" in
3843 -D*)
3844 xc_bad_var_cflags=yes
3845 ;;
3846 -U*)
3847 xc_bad_var_cflags=yes
3848 ;;
3849 -I*)
3850 xc_bad_var_cflags=yes
3851 ;;
3852 -rpath*)
3853 xc_bad_var_cflags=yes
3854 ;;
3855 -L* | --library-path=*)
3856 xc_bad_var_cflags=yes
3857 ;;
3858 -l* | --library=*)
3859 xc_bad_var_cflags=yes
3860 ;;
3861 esac
3862 done
3863 if test $xc_bad_var_cflags = yes; then
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3865$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3866 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3867 for xc_word in $CFLAGS; do
3868 case "$xc_word" in
3869 -D*)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3871$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3872 ;;
3873 -U*)
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3875$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3876 ;;
3877 -I*)
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3879$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3880 ;;
3881 -rpath*)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3883$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3884 ;;
3885 -L* | --library-path=*)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3887$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3888 ;;
3889 -l* | --library=*)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3891$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3892 ;;
3893 esac
3894 done
3895 fi
3896
3897 if test $xc_bad_var_libs = yes ||
3898 test $xc_bad_var_cflags = yes ||
3899 test $xc_bad_var_ldflags = yes ||
3900 test $xc_bad_var_cppflags = yes; then
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3902$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3903 fi
3904
3905ac_aux_dir=
3906for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3907 if test -f "$ac_dir/install-sh"; then
3908 ac_aux_dir=$ac_dir
3909 ac_install_sh="$ac_aux_dir/install-sh -c"
3910 break
3911 elif test -f "$ac_dir/install.sh"; then
3912 ac_aux_dir=$ac_dir
3913 ac_install_sh="$ac_aux_dir/install.sh -c"
3914 break
3915 elif test -f "$ac_dir/shtool"; then
3916 ac_aux_dir=$ac_dir
3917 ac_install_sh="$ac_aux_dir/shtool install -c"
3918 break
3919 fi
3920done
3921if test -z "$ac_aux_dir"; then
3922 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3923fi
3924
3925# These three variables are undocumented and unsupported,
3926# and are intended to be withdrawn in a future Autoconf release.
3927# They can cause serious problems if a builder's source tree is in a directory
3928# whose full name contains unusual characters.
3929ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3930ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3931ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3932
3933
3934# Find a good install program. We prefer a C program (faster),
3935# so one script is as good as another. But avoid the broken or
3936# incompatible versions:
3937# SysV /etc/install, /usr/sbin/install
3938# SunOS /usr/etc/install
3939# IRIX /sbin/install
3940# AIX /bin/install
3941# AmigaOS /C/install, which installs bootblocks on floppy discs
3942# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3943# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3944# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3945# OS/2's system install, which has a completely different semantic
3946# ./install, which can be erroneously created by make from ./install.sh.
3947# Reject install programs that cannot install multiple files.
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3949$as_echo_n "checking for a BSD-compatible install... " >&6; }
3950if test -z "$INSTALL"; then
3951if ${ac_cv_path_install+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953else
3954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 # Account for people who put trailing slashes in PATH elements.
3960case $as_dir/ in #((
3961 ./ | .// | /[cC]/* | \
3962 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3963 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3964 /usr/ucb/* ) ;;
3965 *)
3966 # OSF1 and SCO ODT 3.0 have their own names for install.
3967 # Don't use installbsd from OSF since it installs stuff as root
3968 # by default.
3969 for ac_prog in ginstall scoinst install; do
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3972 if test $ac_prog = install &&
3973 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3974 # AIX install. It has an incompatible calling convention.
3975 :
3976 elif test $ac_prog = install &&
3977 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3978 # program-specific install script used by HP pwplus--don't use.
3979 :
3980 else
3981 rm -rf conftest.one conftest.two conftest.dir
3982 echo one > conftest.one
3983 echo two > conftest.two
3984 mkdir conftest.dir
3985 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3986 test -s conftest.one && test -s conftest.two &&
3987 test -s conftest.dir/conftest.one &&
3988 test -s conftest.dir/conftest.two
3989 then
3990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3991 break 3
3992 fi
3993 fi
3994 fi
3995 done
3996 done
3997 ;;
3998esac
3999
4000 done
4001IFS=$as_save_IFS
4002
4003rm -rf conftest.one conftest.two conftest.dir
4004
4005fi
4006 if test "${ac_cv_path_install+set}" = set; then
4007 INSTALL=$ac_cv_path_install
4008 else
4009 # As a last resort, use the slow shell script. Don't cache a
4010 # value for INSTALL within a source directory, because that will
4011 # break other packages using the cache if that directory is
4012 # removed, or if the value is a relative name.
4013 INSTALL=$ac_install_sh
4014 fi
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4017$as_echo "$INSTALL" >&6; }
4018
4019# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4020# It thinks the first close brace ends the variable substitution.
4021test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4022
4023test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4024
4025test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4026
4027# Expand $ac_aux_dir to an absolute path.
4028am_aux_dir=`cd "$ac_aux_dir" && pwd`
4029
4030ac_ext=c
4031ac_cpp='$CPP $CPPFLAGS'
4032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4034ac_compiler_gnu=$ac_cv_c_compiler_gnu
4035if test -n "$ac_tool_prefix"; then
4036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4037set dummy ${ac_tool_prefix}gcc; ac_word=$2
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039$as_echo_n "checking for $ac_word... " >&6; }
4040if ${ac_cv_prog_CC+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042else
4043 if test -n "$CC"; then
4044 ac_cv_prog_CC="$CC" # Let the user override the test.
4045else
4046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057done
4058 done
4059IFS=$as_save_IFS
4060
4061fi
4062fi
4063CC=$ac_cv_prog_CC
4064if test -n "$CC"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066$as_echo "$CC" >&6; }
4067else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069$as_echo "no" >&6; }
4070fi
4071
4072
4073fi
4074if test -z "$ac_cv_prog_CC"; then
4075 ac_ct_CC=$CC
4076 # Extract the first word of "gcc", so it can be a program name with args.
4077set dummy gcc; ac_word=$2
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if ${ac_cv_prog_ac_ct_CC+:} false; then :
4081 $as_echo_n "(cached) " >&6
4082else
4083 if test -n "$ac_ct_CC"; then
4084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4093 ac_cv_prog_ac_ct_CC="gcc"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4096 fi
4097done
4098 done
4099IFS=$as_save_IFS
4100
4101fi
4102fi
4103ac_ct_CC=$ac_cv_prog_ac_ct_CC
4104if test -n "$ac_ct_CC"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4106$as_echo "$ac_ct_CC" >&6; }
4107else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
4110fi
4111
4112 if test "x$ac_ct_CC" = x; then
4113 CC=""
4114 else
4115 case $cross_compiling:$ac_tool_warned in
4116yes:)
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4119ac_tool_warned=yes ;;
4120esac
4121 CC=$ac_ct_CC
4122 fi
4123else
4124 CC="$ac_cv_prog_CC"
4125fi
4126
4127if test -z "$CC"; then
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4130set dummy ${ac_tool_prefix}cc; ac_word=$2
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
4133if ${ac_cv_prog_CC+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135else
4136 if test -n "$CC"; then
4137 ac_cv_prog_CC="$CC" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142 IFS=$as_save_IFS
4143 test -z "$as_dir" && as_dir=.
4144 for ac_exec_ext in '' $ac_executable_extensions; do
4145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146 ac_cv_prog_CC="${ac_tool_prefix}cc"
4147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 break 2
4149 fi
4150done
4151 done
4152IFS=$as_save_IFS
4153
4154fi
4155fi
4156CC=$ac_cv_prog_CC
4157if test -n "$CC"; then
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4159$as_echo "$CC" >&6; }
4160else
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
4163fi
4164
4165
4166 fi
4167fi
4168if test -z "$CC"; then
4169 # Extract the first word of "cc", so it can be a program name with args.
4170set dummy cc; ac_word=$2
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
4173if ${ac_cv_prog_CC+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178else
4179 ac_prog_rejected=no
4180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181for as_dir in $PATH
4182do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4188 ac_prog_rejected=yes
4189 continue
4190 fi
4191 ac_cv_prog_CC="cc"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4194 fi
4195done
4196 done
4197IFS=$as_save_IFS
4198
4199if test $ac_prog_rejected = yes; then
4200 # We found a bogon in the path, so make sure we never use it.
4201 set dummy $ac_cv_prog_CC
4202 shift
4203 if test $# != 0; then
4204 # We chose a different compiler from the bogus one.
4205 # However, it has the same basename, so the bogon will be chosen
4206 # first if we set CC to just the basename; use the full file name.
4207 shift
4208 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4209 fi
4210fi
4211fi
4212fi
4213CC=$ac_cv_prog_CC
4214if test -n "$CC"; then
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4216$as_echo "$CC" >&6; }
4217else
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219$as_echo "no" >&6; }
4220fi
4221
4222
4223fi
4224if test -z "$CC"; then
4225 if test -n "$ac_tool_prefix"; then
4226 for ac_prog in cl.exe
4227 do
4228 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231$as_echo_n "checking for $ac_word... " >&6; }
4232if ${ac_cv_prog_CC+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234else
4235 if test -n "$CC"; then
4236 ac_cv_prog_CC="$CC" # Let the user override the test.
4237else
4238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239for as_dir in $PATH
4240do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249done
4250 done
4251IFS=$as_save_IFS
4252
4253fi
4254fi
4255CC=$ac_cv_prog_CC
4256if test -n "$CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258$as_echo "$CC" >&6; }
4259else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261$as_echo "no" >&6; }
4262fi
4263
4264
4265 test -n "$CC" && break
4266 done
4267fi
4268if test -z "$CC"; then
4269 ac_ct_CC=$CC
4270 for ac_prog in cl.exe
4271do
4272 # Extract the first word of "$ac_prog", so it can be a program name with args.
4273set dummy $ac_prog; ac_word=$2
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275$as_echo_n "checking for $ac_word... " >&6; }
4276if ${ac_cv_prog_ac_ct_CC+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278else
4279 if test -n "$ac_ct_CC"; then
4280 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4281else
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_ac_ct_CC="$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293done
4294 done
4295IFS=$as_save_IFS
4296
4297fi
4298fi
4299ac_ct_CC=$ac_cv_prog_ac_ct_CC
4300if test -n "$ac_ct_CC"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4302$as_echo "$ac_ct_CC" >&6; }
4303else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305$as_echo "no" >&6; }
4306fi
4307
4308
4309 test -n "$ac_ct_CC" && break
4310done
4311
4312 if test "x$ac_ct_CC" = x; then
4313 CC=""
4314 else
4315 case $cross_compiling:$ac_tool_warned in
4316yes:)
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319ac_tool_warned=yes ;;
4320esac
4321 CC=$ac_ct_CC
4322 fi
4323fi
4324
4325fi
4326
4327
4328test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330as_fn_error $? "no acceptable C compiler found in \$PATH
4331See \`config.log' for more details" "$LINENO" 5; }
4332
4333# Provide some information about the compiler.
4334$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4335set X $ac_compile
4336ac_compiler=$2
4337for ac_option in --version -v -V -qversion; do
4338 { { ac_try="$ac_compiler $ac_option >&5"
4339case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344$as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4346 ac_status=$?
4347 if test -s conftest.err; then
4348 sed '10a\
4349... rest of stderr output deleted ...
4350 10q' conftest.err >conftest.er1
4351 cat conftest.er1 >&5
4352 fi
4353 rm -f conftest.er1 conftest.err
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }
4356done
4357
4358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359/* end confdefs.h. */
4360
4361int main (void)
4362{
4363
4364 ;
4365 return 0;
4366}
4367_ACEOF
4368ac_clean_files_save=$ac_clean_files
4369ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4370# Try to create an executable without -o first, disregard a.out.
4371# It will help us diagnose broken compilers, and finding out an intuition
4372# of exeext.
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4374$as_echo_n "checking whether the C compiler works... " >&6; }
4375ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4376
4377# The possible output files:
4378ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4379
4380ac_rmfiles=
4381for ac_file in $ac_files
4382do
4383 case $ac_file in
4384 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4385 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4386 esac
4387done
4388rm -f $ac_rmfiles
4389
4390if { { ac_try="$ac_link_default"
4391case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396$as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_link_default") 2>&5
4398 ac_status=$?
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; then :
4401 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4402# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4403# in a Makefile. We should not override ac_cv_exeext if it was cached,
4404# so that the user can short-circuit this test for compilers unknown to
4405# Autoconf.
4406for ac_file in $ac_files ''
4407do
4408 test -f "$ac_file" || continue
4409 case $ac_file in
4410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4411 ;;
4412 [ab].out )
4413 # We found the default executable, but exeext='' is most
4414 # certainly right.
4415 break;;
4416 *.* )
4417 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4418 then :; else
4419 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4420 fi
4421 # We set ac_cv_exeext here because the later test for it is not
4422 # safe: cross compilers may not add the suffix if given an `-o'
4423 # argument, so we may need to know it at that point already.
4424 # Even if this section looks crufty: it has the advantage of
4425 # actually working.
4426 break;;
4427 * )
4428 break;;
4429 esac
4430done
4431test "$ac_cv_exeext" = no && ac_cv_exeext=
4432
4433else
4434 ac_file=''
4435fi
4436if test -z "$ac_file"; then :
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438$as_echo "no" >&6; }
4439$as_echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444as_fn_error 77 "C compiler cannot create executables
4445See \`config.log' for more details" "$LINENO" 5; }
4446else
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4448$as_echo "yes" >&6; }
4449fi
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4451$as_echo_n "checking for C compiler default output file name... " >&6; }
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4453$as_echo "$ac_file" >&6; }
4454ac_exeext=$ac_cv_exeext
4455
4456rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4457ac_clean_files=$ac_clean_files_save
4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4459$as_echo_n "checking for suffix of executables... " >&6; }
4460if { { ac_try="$ac_link"
4461case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464esac
4465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466$as_echo "$ac_try_echo"; } >&5
4467 (eval "$ac_link") 2>&5
4468 ac_status=$?
4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }; then :
4471 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4472# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4473# work properly (i.e., refer to `conftest.exe'), while it won't with
4474# `rm'.
4475for ac_file in conftest.exe conftest conftest.*; do
4476 test -f "$ac_file" || continue
4477 case $ac_file in
4478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4479 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4480 break;;
4481 * ) break;;
4482 esac
4483done
4484else
4485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4487as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4488See \`config.log' for more details" "$LINENO" 5; }
4489fi
4490rm -f conftest conftest$ac_cv_exeext
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4492$as_echo "$ac_cv_exeext" >&6; }
4493
4494rm -f conftest.$ac_ext
4495EXEEXT=$ac_cv_exeext
4496ac_exeext=$EXEEXT
4497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h. */
4499#include <stdio.h>
4500int main (void)
4501{
4502FILE *f = fopen ("conftest.out", "w");
4503 return ferror (f) || fclose (f) != 0;
4504
4505 ;
4506 return 0;
4507}
4508_ACEOF
4509ac_clean_files="$ac_clean_files conftest.out"
4510# Check that the compiler produces executables we can run. If not, either
4511# the compiler is broken, or we cross compile.
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4513$as_echo_n "checking whether we are cross compiling... " >&6; }
4514if test "$cross_compiling" != yes; then
4515 { { ac_try="$ac_link"
4516case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519esac
4520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521$as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_link") 2>&5
4523 ac_status=$?
4524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4525 test $ac_status = 0; }
4526 if { ac_try='./conftest$ac_cv_exeext'
4527 { { case "(($ac_try" in
4528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4529 *) ac_try_echo=$ac_try;;
4530esac
4531eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4532$as_echo "$ac_try_echo"; } >&5
4533 (eval "$ac_try") 2>&5
4534 ac_status=$?
4535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4536 test $ac_status = 0; }; }; then
4537 cross_compiling=no
4538 else
4539 if test "$cross_compiling" = maybe; then
4540 cross_compiling=yes
4541 else
4542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4544as_fn_error $? "cannot run C compiled programs.
4545If you meant to cross compile, use \`--host'.
4546See \`config.log' for more details" "$LINENO" 5; }
4547 fi
4548 fi
4549fi
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4551$as_echo "$cross_compiling" >&6; }
4552
4553rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4554ac_clean_files=$ac_clean_files_save
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4556$as_echo_n "checking for suffix of object files... " >&6; }
4557if ${ac_cv_objext+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559else
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h. */
4562
4563int main (void)
4564{
4565
4566 ;
4567 return 0;
4568}
4569_ACEOF
4570rm -f conftest.o conftest.obj
4571if { { ac_try="$ac_compile"
4572case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575esac
4576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4577$as_echo "$ac_try_echo"; } >&5
4578 (eval "$ac_compile") 2>&5
4579 ac_status=$?
4580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4581 test $ac_status = 0; }; then :
4582 for ac_file in conftest.o conftest.obj conftest.*; do
4583 test -f "$ac_file" || continue;
4584 case $ac_file in
4585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4587 break;;
4588 esac
4589done
4590else
4591 $as_echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4596as_fn_error $? "cannot compute suffix of object files: cannot compile
4597See \`config.log' for more details" "$LINENO" 5; }
4598fi
4599rm -f conftest.$ac_cv_objext conftest.$ac_ext
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4602$as_echo "$ac_cv_objext" >&6; }
4603OBJEXT=$ac_cv_objext
4604ac_objext=$OBJEXT
4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4606$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4607if ${ac_cv_c_compiler_gnu+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609else
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h. */
4612
4613int main (void)
4614{
4615#ifndef __GNUC__
4616 choke me
4617#endif
4618
4619 ;
4620 return 0;
4621}
4622_ACEOF
4623if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_compiler_gnu=yes
4625else
4626 ac_compiler_gnu=no
4627fi
4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629ac_cv_c_compiler_gnu=$ac_compiler_gnu
4630
4631fi
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4633$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4634if test $ac_compiler_gnu = yes; then
4635 GCC=yes
4636else
4637 GCC=
4638fi
4639ac_test_CFLAGS=${CFLAGS+set}
4640ac_save_CFLAGS=$CFLAGS
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4642$as_echo_n "checking whether $CC accepts -g... " >&6; }
4643if ${ac_cv_prog_cc_g+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645else
4646 ac_save_c_werror_flag=$ac_c_werror_flag
4647 ac_c_werror_flag=yes
4648 ac_cv_prog_cc_g=no
4649 CFLAGS="-g"
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h. */
4652
4653int main (void)
4654{
4655
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_cv_prog_cc_g=yes
4662else
4663 CFLAGS=""
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h. */
4666
4667int main (void)
4668{
4669
4670 ;
4671 return 0;
4672}
4673_ACEOF
4674if ac_fn_c_try_compile "$LINENO"; then :
4675
4676else
4677 ac_c_werror_flag=$ac_save_c_werror_flag
4678 CFLAGS="-g"
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680/* end confdefs.h. */
4681
4682int main (void)
4683{
4684
4685 ;
4686 return 0;
4687}
4688_ACEOF
4689if ac_fn_c_try_compile "$LINENO"; then :
4690 ac_cv_prog_cc_g=yes
4691fi
4692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693fi
4694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695fi
4696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 ac_c_werror_flag=$ac_save_c_werror_flag
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4700$as_echo "$ac_cv_prog_cc_g" >&6; }
4701if test "$ac_test_CFLAGS" = set; then
4702 CFLAGS=$ac_save_CFLAGS
4703elif test $ac_cv_prog_cc_g = yes; then
4704 if test "$GCC" = yes; then
4705 CFLAGS="-g -O2"
4706 else
4707 CFLAGS="-g"
4708 fi
4709else
4710 if test "$GCC" = yes; then
4711 CFLAGS="-O2"
4712 else
4713 CFLAGS=
4714 fi
4715fi
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4717$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4718if ${ac_cv_prog_cc_c89+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720else
4721 ac_cv_prog_cc_c89=no
4722ac_save_CC=$CC
4723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724/* end confdefs.h. */
4725#include <stdarg.h>
4726#include <stdio.h>
4727struct stat;
4728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4729struct buf { int x; };
4730FILE * (*rcsopen) (struct buf *, struct stat *, int);
4731static char *e (p, i)
4732 char **p;
4733 int i;
4734{
4735 return p[i];
4736}
4737static char *f (char * (*g) (char **, int), char **p, ...)
4738{
4739 char *s;
4740 va_list v;
4741 va_start (v,p);
4742 s = g (p, va_arg (v,int));
4743 va_end (v);
4744 return s;
4745}
4746
4747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4748 function prototypes and stuff, but not '\xHH' hex character constants.
4749 These don't provoke an error unfortunately, instead are silently treated
4750 as 'x'. The following induces an error, until -std is added to get
4751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4752 array size at least. It's necessary to write '\x00'==0 to get something
4753 that's true only with -std. */
4754int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4755
4756/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4757 inside strings and character constants. */
4758#define FOO(x) 'x'
4759int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4760
4761int test (int i, double x);
4762struct s1 {int (*f) (int a);};
4763struct s2 {int (*f) (double a);};
4764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4765int argc;
4766char **argv;
4767int main (void)
4768{
4769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4770 ;
4771 return 0;
4772}
4773_ACEOF
4774for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4775 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4776do
4777 CC="$ac_save_CC $ac_arg"
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 ac_cv_prog_cc_c89=$ac_arg
4780fi
4781rm -f core conftest.err conftest.$ac_objext
4782 test "x$ac_cv_prog_cc_c89" != "xno" && break
4783done
4784rm -f conftest.$ac_ext
4785CC=$ac_save_CC
4786
4787fi
4788# AC_CACHE_VAL
4789case "x$ac_cv_prog_cc_c89" in
4790 x)
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4792$as_echo "none needed" >&6; } ;;
4793 xno)
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4795$as_echo "unsupported" >&6; } ;;
4796 *)
4797 CC="$CC $ac_cv_prog_cc_c89"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4799$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4800esac
4801if test "x$ac_cv_prog_cc_c89" != xno; then :
4802
4803fi
4804
4805ac_ext=c
4806ac_cpp='$CPP $CPPFLAGS'
4807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811ac_ext=c
4812ac_cpp='$CPP $CPPFLAGS'
4813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4817$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4818if ${am_cv_prog_cc_c_o+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820else
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h. */
4823
4824int main (void)
4825{
4826
4827 ;
4828 return 0;
4829}
4830_ACEOF
4831 # Make sure it works both with $CC and with simple cc.
4832 # Following AC_PROG_CC_C_O, we do the test twice because some
4833 # compilers refuse to overwrite an existing .o file with -o,
4834 # though they will create one.
4835 am_cv_prog_cc_c_o=yes
4836 for am_i in 1 2; do
4837 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4838 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } \
4842 && test -f conftest2.$ac_objext; then
4843 : OK
4844 else
4845 am_cv_prog_cc_c_o=no
4846 break
4847 fi
4848 done
4849 rm -f core conftest*
4850 unset am_i
4851fi
4852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4853$as_echo "$am_cv_prog_cc_c_o" >&6; }
4854if test "$am_cv_prog_cc_c_o" != yes; then
4855 # Losing compiler, so override with the script.
4856 # FIXME: It is wrong to rewrite CC.
4857 # But if we don't then we get into trouble of one sort or another.
4858 # A longer-term fix would be to have automake use am__CC in this case,
4859 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4860 CC="$am_aux_dir/compile $CC"
4861fi
4862ac_ext=c
4863ac_cpp='$CPP $CPPFLAGS'
4864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867
4868
4869
4870ac_ext=c
4871ac_cpp='$CPP $CPPFLAGS'
4872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4876$as_echo_n "checking how to run the C preprocessor... " >&6; }
4877# On Suns, sometimes $CPP names a directory.
4878if test -n "$CPP" && test -d "$CPP"; then
4879 CPP=
4880fi
4881if test -z "$CPP"; then
4882 if ${ac_cv_prog_CPP+:} false; then :
4883 $as_echo_n "(cached) " >&6
4884else
4885 # Double quotes because CPP needs to be expanded
4886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4887 do
4888 ac_preproc_ok=false
4889for ac_c_preproc_warn_flag in '' yes
4890do
4891 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4898/* end confdefs.h. */
4899#ifdef __STDC__
4900# include <limits.h>
4901#else
4902# include <assert.h>
4903#endif
4904 Syntax error
4905_ACEOF
4906if ac_fn_c_try_cpp "$LINENO"; then :
4907
4908else
4909 # Broken: fails on valid input.
4910continue
4911fi
4912rm -f conftest.err conftest.i conftest.$ac_ext
4913
4914 # OK, works on sane cases. Now check whether nonexistent headers
4915 # can be detected and how.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917/* end confdefs.h. */
4918#include <ac_nonexistent.h>
4919_ACEOF
4920if ac_fn_c_try_cpp "$LINENO"; then :
4921 # Broken: success on invalid input.
4922continue
4923else
4924 # Passes both tests.
4925ac_preproc_ok=:
4926break
4927fi
4928rm -f conftest.err conftest.i conftest.$ac_ext
4929
4930done
4931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932rm -f conftest.i conftest.err conftest.$ac_ext
4933if $ac_preproc_ok; then :
4934 break
4935fi
4936
4937 done
4938 ac_cv_prog_CPP=$CPP
4939
4940fi
4941 CPP=$ac_cv_prog_CPP
4942else
4943 ac_cv_prog_CPP=$CPP
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4946$as_echo "$CPP" >&6; }
4947ac_preproc_ok=false
4948for ac_c_preproc_warn_flag in '' yes
4949do
4950 # Use a header file that comes with gcc, so configuring glibc
4951 # with a fresh cross-compiler works.
4952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4953 # <limits.h> exists even on freestanding compilers.
4954 # On the NeXT, cc -E runs the code through the compiler's parser,
4955 # not just through cpp. "Syntax error" is here to catch this case.
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957/* end confdefs.h. */
4958#ifdef __STDC__
4959# include <limits.h>
4960#else
4961# include <assert.h>
4962#endif
4963 Syntax error
4964_ACEOF
4965if ac_fn_c_try_cpp "$LINENO"; then :
4966
4967else
4968 # Broken: fails on valid input.
4969continue
4970fi
4971rm -f conftest.err conftest.i conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h. */
4977#include <ac_nonexistent.h>
4978_ACEOF
4979if ac_fn_c_try_cpp "$LINENO"; then :
4980 # Broken: success on invalid input.
4981continue
4982else
4983 # Passes both tests.
4984ac_preproc_ok=:
4985break
4986fi
4987rm -f conftest.err conftest.i conftest.$ac_ext
4988
4989done
4990# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4991rm -f conftest.i conftest.err conftest.$ac_ext
4992if $ac_preproc_ok; then :
4993
4994else
4995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4997as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4998See \`config.log' for more details" "$LINENO" 5; }
4999fi
5000
5001ac_ext=c
5002ac_cpp='$CPP $CPPFLAGS'
5003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005ac_compiler_gnu=$ac_cv_c_compiler_gnu
5006
5007
5008 IFS=$xc_prog_cc_prev_IFS
5009 LIBS=$xc_prog_cc_prev_LIBS
5010 CFLAGS=$xc_prog_cc_prev_CFLAGS
5011 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5012 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5013
5014
5015
5016
5017
Elliott Hughes0128fe42018-02-27 14:57:55 -08005018
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5020$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5021if ${ac_cv_path_SED+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023else
5024 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5025 for ac_i in 1 2 3 4 5 6 7; do
5026 ac_script="$ac_script$as_nl$ac_script"
5027 done
5028 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5029 { ac_script=; unset ac_script;}
5030 if test -z "$SED"; then
5031 ac_path_SED_found=false
5032 # Loop through the user's path and test for each of PROGNAME-LIST
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_prog in sed gsed; do
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5041 as_fn_executable_p "$ac_path_SED" || continue
5042# Check for GNU ac_path_SED and select it if it is found.
5043 # Check for GNU $ac_path_SED
5044case `"$ac_path_SED" --version 2>&1` in
5045*GNU*)
5046 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5047*)
5048 ac_count=0
5049 $as_echo_n 0123456789 >"conftest.in"
5050 while :
5051 do
5052 cat "conftest.in" "conftest.in" >"conftest.tmp"
5053 mv "conftest.tmp" "conftest.in"
5054 cp "conftest.in" "conftest.nl"
5055 $as_echo '' >> "conftest.nl"
5056 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5058 as_fn_arith $ac_count + 1 && ac_count=$as_val
5059 if test $ac_count -gt ${ac_path_SED_max-0}; then
5060 # Best one so far, save it but keep looking for a better one
5061 ac_cv_path_SED="$ac_path_SED"
5062 ac_path_SED_max=$ac_count
5063 fi
5064 # 10*(2^10) chars as input seems more than enough
5065 test $ac_count -gt 10 && break
5066 done
5067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5068esac
5069
5070 $ac_path_SED_found && break 3
5071 done
5072 done
5073 done
5074IFS=$as_save_IFS
5075 if test -z "$ac_cv_path_SED"; then
5076 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5077 fi
5078else
5079 ac_cv_path_SED=$SED
5080fi
5081
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5084$as_echo "$ac_cv_path_SED" >&6; }
5085 SED="$ac_cv_path_SED"
5086 rm -f conftest.sed
5087
5088if test "$GCC" = "yes" ; then :
5089
5090
5091
5092 # allow to override gcov location
5093
5094# Check whether --with-gcov was given.
5095if test "${with_gcov+set}" = set; then :
5096 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
5097else
5098 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
5099fi
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
5103$as_echo_n "checking whether to build with code coverage support... " >&6; }
5104 # Check whether --enable-code-coverage was given.
5105if test "${enable_code_coverage+set}" = set; then :
5106 enableval=$enable_code_coverage;
5107else
5108 enable_code_coverage=no
5109fi
5110
5111
5112 if test x$enable_code_coverage = xyes; then
5113 CODE_COVERAGE_ENABLED_TRUE=
5114 CODE_COVERAGE_ENABLED_FALSE='#'
5115else
5116 CODE_COVERAGE_ENABLED_TRUE='#'
5117 CODE_COVERAGE_ENABLED_FALSE=
5118fi
5119
5120 CODE_COVERAGE_ENABLED=$enable_code_coverage
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5123$as_echo "$enable_code_coverage" >&6; }
5124
5125 if test "$enable_code_coverage" = "yes" ; then :
5126
5127 # check for gcov
5128 if test -n "$ac_tool_prefix"; then
5129 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5130set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132$as_echo_n "checking for $ac_word... " >&6; }
5133if ${ac_cv_prog_GCOV+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135else
5136 if test -n "$GCOV"; then
5137 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5138else
5139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150done
5151 done
5152IFS=$as_save_IFS
5153
5154fi
5155fi
5156GCOV=$ac_cv_prog_GCOV
5157if test -n "$GCOV"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5159$as_echo "$GCOV" >&6; }
5160else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }
5163fi
5164
5165
5166fi
5167if test -z "$ac_cv_prog_GCOV"; then
5168 ac_ct_GCOV=$GCOV
5169 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5170set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
5173if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175else
5176 if test -n "$ac_ct_GCOV"; then
5177 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5178else
5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191 done
5192IFS=$as_save_IFS
5193
5194fi
5195fi
5196ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5197if test -n "$ac_ct_GCOV"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5199$as_echo "$ac_ct_GCOV" >&6; }
5200else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203fi
5204
5205 if test "x$ac_ct_GCOV" = x; then
5206 GCOV=":"
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209yes:)
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5212ac_tool_warned=yes ;;
5213esac
5214 GCOV=$ac_ct_GCOV
5215 fi
5216else
5217 GCOV="$ac_cv_prog_GCOV"
5218fi
5219
5220 if test "X$GCOV" = "X:"; then :
5221 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5222fi
5223
5224
5225 if test "$GCC" = "no" ; then :
5226
5227 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5228
5229fi
5230
5231 # Extract the first word of "lcov", so it can be a program name with args.
5232set dummy lcov; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; }
5235if ${ac_cv_prog_LCOV+:} false; then :
5236 $as_echo_n "(cached) " >&6
5237else
5238 if test -n "$LCOV"; then
5239 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5240else
5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242for as_dir in $PATH
5243do
5244 IFS=$as_save_IFS
5245 test -z "$as_dir" && as_dir=.
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5248 ac_cv_prog_LCOV="lcov"
5249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5250 break 2
5251 fi
5252done
5253 done
5254IFS=$as_save_IFS
5255
5256fi
5257fi
5258LCOV=$ac_cv_prog_LCOV
5259if test -n "$LCOV"; then
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5261$as_echo "$LCOV" >&6; }
5262else
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5264$as_echo "no" >&6; }
5265fi
5266
5267
5268 # Extract the first word of "genhtml", so it can be a program name with args.
5269set dummy genhtml; ac_word=$2
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271$as_echo_n "checking for $ac_word... " >&6; }
5272if ${ac_cv_prog_GENHTML+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274else
5275 if test -n "$GENHTML"; then
5276 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_GENHTML="genhtml"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290 done
5291IFS=$as_save_IFS
5292
5293fi
5294fi
5295GENHTML=$ac_cv_prog_GENHTML
5296if test -n "$GENHTML"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5298$as_echo "$GENHTML" >&6; }
5299else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301$as_echo "no" >&6; }
5302fi
5303
5304
5305
5306 if test -z "$LCOV" ; then :
5307
5308 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5309
5310fi
5311
5312 if test -z "$GENHTML" ; then :
5313
5314 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5315
5316fi
5317
5318 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5319 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5320 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5321 CODE_COVERAGE_LIBS="-lgcov"
5322 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5323
5324
5325
5326
5327
5328
5329
5330 CODE_COVERAGE_RULES_CHECK='
5331 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5332 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5333'
5334 CODE_COVERAGE_RULES_CAPTURE='
5335 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
5336 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
5337 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5338 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
5339 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5340'
5341 CODE_COVERAGE_RULES_CLEAN='
5342clean: code-coverage-clean
5343distclean: code-coverage-clean
5344code-coverage-clean:
5345 -$(LCOV) --directory $(top_builddir) -z
5346 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5347 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5348'
5349
5350else
5351
5352 CODE_COVERAGE_RULES_CHECK='
5353 @echo "Need to reconfigure with --enable-code-coverage"
5354'
5355 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5356 CODE_COVERAGE_RULES_CLEAN=''
5357
5358fi
5359
5360CODE_COVERAGE_RULES='
5361# Code coverage
5362#
5363# Optional:
5364# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5365# Multiple directories may be specified, separated by whitespace.
5366# (Default: $(top_builddir))
5367# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5368# by lcov for code coverage. (Default:
5369# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5370# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5371# reports to be created. (Default:
5372# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5373# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5374# set to 0 to disable it and leave empty to stay with the default.
5375# (Default: empty)
5376# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5377# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5378# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5379# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5380# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5381# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5382# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5383# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5384# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5385# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5386# lcov instance. (Default: empty)
5387# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5388# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5389# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5390# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5391# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5392# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5393# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5394#
5395# The generated report will be titled using the $(PACKAGE_NAME) and
5396# $(PACKAGE_VERSION). In order to add the current git hash to the title,
5397# use the git-version-gen script, available online.
5398
5399# Optional variables
5400CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5401CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5402CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5403CODE_COVERAGE_BRANCH_COVERAGE ?=
5404CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5405--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5406CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5407CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5408CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5409CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5410CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5411CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5412CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5413$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5414--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5415CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5416CODE_COVERAGE_IGNORE_PATTERN ?=
5417
5418GITIGNOREFILES ?=
5419GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5420
5421code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5422code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5423code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5424 $(CODE_COVERAGE_OUTPUT_FILE);
5425code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5426code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5427code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5428 $(CODE_COVERAGE_IGNORE_PATTERN);
5429code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5430code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5431code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5432code_coverage_quiet = $(code_coverage_quiet_$(V))
5433code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5434code_coverage_quiet_0 = --quiet
5435
5436# sanitizes the test-name: replaces with underscores: dashes and dots
5437code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5438
5439# Use recursive makes in order to ignore errors during check
5440check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5441
5442# Capture code coverage data
5443code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5444
5445# Hook rule executed before code-coverage-capture, overridable by the user
5446code-coverage-capture-hook:
5447
5448'"$CODE_COVERAGE_RULES_CLEAN"'
5449
5450A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5451A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5452
5453.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5454'
5455
5456
5457
5458
5459else
5460 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5461 CODE_COVERAGE_ENABLED_TRUE='#'
5462
5463fi
5464
Elliott Hughes82be86d2017-09-20 17:00:17 -07005465am__api_version='1.15'
5466
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5468$as_echo_n "checking whether build environment is sane... " >&6; }
5469# Reject unsafe characters in $srcdir or the absolute working directory
5470# name. Accept space and tab only in the latter.
5471am_lf='
5472'
5473case `pwd` in
5474 *[\\\"\#\$\&\'\`$am_lf]*)
5475 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5476esac
5477case $srcdir in
5478 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5479 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5480esac
5481
5482# Do 'set' in a subshell so we don't clobber the current shell's
5483# arguments. Must try -L first in case configure is actually a
5484# symlink; some systems play weird games with the mod time of symlinks
5485# (eg FreeBSD returns the mod time of the symlink's containing
5486# directory).
5487if (
5488 am_has_slept=no
5489 for am_try in 1 2; do
5490 echo "timestamp, slept: $am_has_slept" > conftest.file
5491 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5492 if test "$*" = "X"; then
5493 # -L didn't work.
5494 set X `ls -t "$srcdir/configure" conftest.file`
5495 fi
5496 if test "$*" != "X $srcdir/configure conftest.file" \
5497 && test "$*" != "X conftest.file $srcdir/configure"; then
5498
5499 # If neither matched, then we have a broken ls. This can happen
5500 # if, for instance, CONFIG_SHELL is bash and it inherits a
5501 # broken ls alias from the environment. This has actually
5502 # happened. Such a system could not be considered "sane".
5503 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5504 alias in your environment" "$LINENO" 5
5505 fi
5506 if test "$2" = conftest.file || test $am_try -eq 2; then
5507 break
5508 fi
5509 # Just in case.
5510 sleep 1
5511 am_has_slept=yes
5512 done
5513 test "$2" = conftest.file
5514 )
5515then
5516 # Ok.
5517 :
5518else
5519 as_fn_error $? "newly created file is older than distributed files!
5520Check your system clock" "$LINENO" 5
5521fi
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5523$as_echo "yes" >&6; }
5524# If we didn't sleep, we still need to ensure time stamps of config.status and
5525# generated files are strictly newer.
5526am_sleep_pid=
5527if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5528 ( sleep 1 ) &
5529 am_sleep_pid=$!
5530fi
5531
5532rm -f conftest.file
5533
5534test "$program_prefix" != NONE &&
5535 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5536# Use a double $ so make ignores it.
5537test "$program_suffix" != NONE &&
5538 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5539# Double any \ or $.
5540# By default was `s,x,x', remove it if useless.
5541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5543
5544if test x"${MISSING+set}" != xset; then
5545 case $am_aux_dir in
5546 *\ * | *\ *)
5547 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5548 *)
5549 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5550 esac
5551fi
5552# Use eval to expand $SHELL
5553if eval "$MISSING --is-lightweight"; then
5554 am_missing_run="$MISSING "
5555else
5556 am_missing_run=
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5558$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5559fi
5560
5561if test x"${install_sh+set}" != xset; then
5562 case $am_aux_dir in
5563 *\ * | *\ *)
5564 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5565 *)
5566 install_sh="\${SHELL} $am_aux_dir/install-sh"
5567 esac
5568fi
5569
5570# Installed binaries are usually stripped using 'strip' when the user
5571# run "make install-strip". However 'strip' might not be the right
5572# tool to use in cross-compilation environments, therefore Automake
5573# will honor the 'STRIP' environment variable to overrule this program.
5574if test "$cross_compiling" != no; then
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5577set dummy ${ac_tool_prefix}strip; ac_word=$2
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579$as_echo_n "checking for $ac_word... " >&6; }
5580if ${ac_cv_prog_STRIP+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582else
5583 if test -n "$STRIP"; then
5584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597done
5598 done
5599IFS=$as_save_IFS
5600
5601fi
5602fi
5603STRIP=$ac_cv_prog_STRIP
5604if test -n "$STRIP"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5606$as_echo "$STRIP" >&6; }
5607else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609$as_echo "no" >&6; }
5610fi
5611
5612
5613fi
5614if test -z "$ac_cv_prog_STRIP"; then
5615 ac_ct_STRIP=$STRIP
5616 # Extract the first word of "strip", so it can be a program name with args.
5617set dummy strip; ac_word=$2
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619$as_echo_n "checking for $ac_word... " >&6; }
5620if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622else
5623 if test -n "$ac_ct_STRIP"; then
5624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_STRIP="strip"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637done
5638 done
5639IFS=$as_save_IFS
5640
5641fi
5642fi
5643ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5644if test -n "$ac_ct_STRIP"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5646$as_echo "$ac_ct_STRIP" >&6; }
5647else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649$as_echo "no" >&6; }
5650fi
5651
5652 if test "x$ac_ct_STRIP" = x; then
5653 STRIP=":"
5654 else
5655 case $cross_compiling:$ac_tool_warned in
5656yes:)
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659ac_tool_warned=yes ;;
5660esac
5661 STRIP=$ac_ct_STRIP
5662 fi
5663else
5664 STRIP="$ac_cv_prog_STRIP"
5665fi
5666
5667fi
5668INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5669
5670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5671$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5672if test -z "$MKDIR_P"; then
5673 if ${ac_cv_path_mkdir+:} false; then :
5674 $as_echo_n "(cached) " >&6
5675else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5678do
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_prog in mkdir gmkdir; do
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5684 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5685 'mkdir (GNU coreutils) '* | \
5686 'mkdir (coreutils) '* | \
5687 'mkdir (fileutils) '4.1*)
5688 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5689 break 3;;
5690 esac
5691 done
5692 done
5693 done
5694IFS=$as_save_IFS
5695
5696fi
5697
5698 test -d ./--version && rmdir ./--version
5699 if test "${ac_cv_path_mkdir+set}" = set; then
5700 MKDIR_P="$ac_cv_path_mkdir -p"
5701 else
5702 # As a last resort, use the slow shell script. Don't cache a
5703 # value for MKDIR_P within a source directory, because that will
5704 # break other packages using the cache if that directory is
5705 # removed, or if the value is a relative name.
5706 MKDIR_P="$ac_install_sh -d"
5707 fi
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5710$as_echo "$MKDIR_P" >&6; }
5711
5712for ac_prog in gawk mawk nawk awk
5713do
5714 # Extract the first word of "$ac_prog", so it can be a program name with args.
5715set dummy $ac_prog; ac_word=$2
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717$as_echo_n "checking for $ac_word... " >&6; }
5718if ${ac_cv_prog_AWK+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720else
5721 if test -n "$AWK"; then
5722 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_AWK="$ac_prog"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 break 2
5734 fi
5735done
5736 done
5737IFS=$as_save_IFS
5738
5739fi
5740fi
5741AWK=$ac_cv_prog_AWK
5742if test -n "$AWK"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5744$as_echo "$AWK" >&6; }
5745else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }
5748fi
5749
5750
5751 test -n "$AWK" && break
5752done
5753
5754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5755$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5756set x ${MAKE-make}
5757ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5758if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5759 $as_echo_n "(cached) " >&6
5760else
5761 cat >conftest.make <<\_ACEOF
5762SHELL = /bin/sh
5763all:
5764 @echo '@@@%%%=$(MAKE)=@@@%%%'
5765_ACEOF
5766# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5767case `${MAKE-make} -f conftest.make 2>/dev/null` in
5768 *@@@%%%=?*=@@@%%%*)
5769 eval ac_cv_prog_make_${ac_make}_set=yes;;
5770 *)
5771 eval ac_cv_prog_make_${ac_make}_set=no;;
5772esac
5773rm -f conftest.make
5774fi
5775if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5777$as_echo "yes" >&6; }
5778 SET_MAKE=
5779else
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5781$as_echo "no" >&6; }
5782 SET_MAKE="MAKE=${MAKE-make}"
5783fi
5784
5785rm -rf .tst 2>/dev/null
5786mkdir .tst 2>/dev/null
5787if test -d .tst; then
5788 am__leading_dot=.
5789else
5790 am__leading_dot=_
5791fi
5792rmdir .tst 2>/dev/null
5793
5794DEPDIR="${am__leading_dot}deps"
5795
5796ac_config_commands="$ac_config_commands depfiles"
5797
5798
5799am_make=${MAKE-make}
5800cat > confinc << 'END'
5801am__doit:
5802 @echo this is the am__doit target
5803.PHONY: am__doit
5804END
5805# If we don't find an include directive, just comment out the code.
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5807$as_echo_n "checking for style of include used by $am_make... " >&6; }
5808am__include="#"
5809am__quote=
5810_am_result=none
5811# First try GNU make style include.
5812echo "include confinc" > confmf
5813# Ignore all kinds of additional output from 'make'.
5814case `$am_make -s -f confmf 2> /dev/null` in #(
5815*the\ am__doit\ target*)
5816 am__include=include
5817 am__quote=
5818 _am_result=GNU
5819 ;;
5820esac
5821# Now try BSD make style include.
5822if test "$am__include" = "#"; then
5823 echo '.include "confinc"' > confmf
5824 case `$am_make -s -f confmf 2> /dev/null` in #(
5825 *the\ am__doit\ target*)
5826 am__include=.include
5827 am__quote="\""
5828 _am_result=BSD
5829 ;;
5830 esac
5831fi
5832
5833
5834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5835$as_echo "$_am_result" >&6; }
5836rm -f confinc confmf
5837
5838# Check whether --enable-dependency-tracking was given.
5839if test "${enable_dependency_tracking+set}" = set; then :
5840 enableval=$enable_dependency_tracking;
5841fi
5842
5843if test "x$enable_dependency_tracking" != xno; then
5844 am_depcomp="$ac_aux_dir/depcomp"
5845 AMDEPBACKSLASH='\'
5846 am__nodep='_no'
5847fi
5848 if test "x$enable_dependency_tracking" != xno; then
5849 AMDEP_TRUE=
5850 AMDEP_FALSE='#'
5851else
5852 AMDEP_TRUE='#'
5853 AMDEP_FALSE=
5854fi
5855
5856
5857## --------------------------------------- ##
5858## Start of automake initialization code ##
5859## --------------------------------------- ##
5860
5861if test "`cd $srcdir && pwd`" != "`pwd`"; then
5862 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5863 # is not polluted with repeated "-I."
5864 am__isrc=' -I$(srcdir)'
5865 # test to see if srcdir already configured
5866 if test -f $srcdir/config.status; then
5867 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5868 fi
5869fi
5870
5871# test whether we have cygpath
5872if test -z "$CYGPATH_W"; then
5873 if (cygpath --version) >/dev/null 2>/dev/null; then
5874 CYGPATH_W='cygpath -w'
5875 else
5876 CYGPATH_W=echo
5877 fi
5878fi
5879
5880
5881# Define the identity of the package.
5882 PACKAGE='curl'
5883 VERSION='-'
5884
5885
5886cat >>confdefs.h <<_ACEOF
5887#define PACKAGE "$PACKAGE"
5888_ACEOF
5889
5890
5891cat >>confdefs.h <<_ACEOF
5892#define VERSION "$VERSION"
5893_ACEOF
5894
5895# Some tools Automake needs.
5896
5897ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5898
5899
5900AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5901
5902
5903AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5904
5905
5906AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5907
5908
5909MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5910
5911# For better backward compatibility. To be removed once Automake 1.9.x
5912# dies out for good. For more background, see:
5913# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5914# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5915mkdir_p='$(MKDIR_P)'
5916
5917# We need awk for the "check" target (and possibly the TAP driver). The
5918# system "awk" is bad on some platforms.
5919# Always define AMTAR for backward compatibility. Yes, it's still used
5920# in the wild :-( We should find a proper way to deprecate it ...
5921AMTAR='$${TAR-tar}'
5922
5923
5924# We'll loop over all known methods to create a tar archive until one works.
5925_am_tools='gnutar pax cpio none'
5926
5927am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5928
5929
5930
5931
5932
5933depcc="$CC" am_compiler_list=
5934
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5936$as_echo_n "checking dependency style of $depcc... " >&6; }
5937if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5938 $as_echo_n "(cached) " >&6
5939else
5940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5941 # We make a subdir and do the tests there. Otherwise we can end up
5942 # making bogus files that we don't know about and never remove. For
5943 # instance it was reported that on HP-UX the gcc test will end up
5944 # making a dummy file named 'D' -- because '-MD' means "put the output
5945 # in D".
5946 rm -rf conftest.dir
5947 mkdir conftest.dir
5948 # Copy depcomp to subdir because otherwise we won't find it if we're
5949 # using a relative directory.
5950 cp "$am_depcomp" conftest.dir
5951 cd conftest.dir
5952 # We will build objects and dependencies in a subdirectory because
5953 # it helps to detect inapplicable dependency modes. For instance
5954 # both Tru64's cc and ICC support -MD to output dependencies as a
5955 # side effect of compilation, but ICC will put the dependencies in
5956 # the current directory while Tru64 will put them in the object
5957 # directory.
5958 mkdir sub
5959
5960 am_cv_CC_dependencies_compiler_type=none
5961 if test "$am_compiler_list" = ""; then
5962 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5963 fi
5964 am__universal=false
5965 case " $depcc " in #(
5966 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5967 esac
5968
5969 for depmode in $am_compiler_list; do
5970 # Setup a source with many dependencies, because some compilers
5971 # like to wrap large dependency lists on column 80 (with \), and
5972 # we should not choose a depcomp mode which is confused by this.
5973 #
5974 # We need to recreate these files for each test, as the compiler may
5975 # overwrite some of them when testing with obscure command lines.
5976 # This happens at least with the AIX C compiler.
5977 : > sub/conftest.c
5978 for i in 1 2 3 4 5 6; do
5979 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5980 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5981 # Solaris 10 /bin/sh.
5982 echo '/* dummy */' > sub/conftst$i.h
5983 done
5984 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5985
5986 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5987 # mode. It turns out that the SunPro C++ compiler does not properly
5988 # handle '-M -o', and we need to detect this. Also, some Intel
5989 # versions had trouble with output in subdirs.
5990 am__obj=sub/conftest.${OBJEXT-o}
5991 am__minus_obj="-o $am__obj"
5992 case $depmode in
5993 gcc)
5994 # This depmode causes a compiler race in universal mode.
5995 test "$am__universal" = false || continue
5996 ;;
5997 nosideeffect)
5998 # After this tag, mechanisms are not by side-effect, so they'll
5999 # only be used when explicitly requested.
6000 if test "x$enable_dependency_tracking" = xyes; then
6001 continue
6002 else
6003 break
6004 fi
6005 ;;
6006 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6007 # This compiler won't grok '-c -o', but also, the minuso test has
6008 # not run yet. These depmodes are late enough in the game, and
6009 # so weak that their functioning should not be impacted.
6010 am__obj=conftest.${OBJEXT-o}
6011 am__minus_obj=
6012 ;;
6013 none) break ;;
6014 esac
6015 if depmode=$depmode \
6016 source=sub/conftest.c object=$am__obj \
6017 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6018 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6019 >/dev/null 2>conftest.err &&
6020 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6022 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6024 # icc doesn't choke on unknown options, it will just issue warnings
6025 # or remarks (even with -Werror). So we grep stderr for any message
6026 # that says an option was ignored or not supported.
6027 # When given -MP, icc 7.0 and 7.1 complain thusly:
6028 # icc: Command line warning: ignoring option '-M'; no argument required
6029 # The diagnosis changed in icc 8.0:
6030 # icc: Command line remark: option '-MP' not supported
6031 if (grep 'ignoring option' conftest.err ||
6032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6033 am_cv_CC_dependencies_compiler_type=$depmode
6034 break
6035 fi
6036 fi
6037 done
6038
6039 cd ..
6040 rm -rf conftest.dir
6041else
6042 am_cv_CC_dependencies_compiler_type=none
6043fi
6044
6045fi
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6047$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6048CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6049
6050 if
6051 test "x$enable_dependency_tracking" != xno \
6052 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6053 am__fastdepCC_TRUE=
6054 am__fastdepCC_FALSE='#'
6055else
6056 am__fastdepCC_TRUE='#'
6057 am__fastdepCC_FALSE=
6058fi
6059
6060
6061
6062# POSIX will say in a future version that running "rm -f" with no argument
6063# is OK; and we want to be able to make that assumption in our Makefile
6064# recipes. So use an aggressive probe to check that the usage we want is
6065# actually supported "in the wild" to an acceptable degree.
6066# See automake bug#10828.
6067# To make any issue more visible, cause the running configure to be aborted
6068# by default if the 'rm' program in use doesn't match our expectations; the
6069# user can still override this though.
6070if rm -f && rm -fr && rm -rf; then : OK; else
6071 cat >&2 <<'END'
6072Oops!
6073
6074Your 'rm' program seems unable to run without file operands specified
6075on the command line, even when the '-f' option is present. This is contrary
6076to the behaviour of most rm programs out there, and not conforming with
6077the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6078
6079Please tell bug-automake@gnu.org about your system, including the value
6080of your $PATH and any error possibly output before this message. This
6081can help us improve future automake versions.
6082
6083END
6084 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6085 echo 'Configuration will proceed anyway, since you have set the' >&2
6086 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6087 echo >&2
6088 else
6089 cat >&2 <<'END'
6090Aborting the configuration process, to ensure you take notice of the issue.
6091
6092You can download and install GNU coreutils to get an 'rm' implementation
6093that behaves properly: <http://www.gnu.org/software/coreutils/>.
6094
6095If you want to complete the configuration process using your problematic
6096'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6097to "yes", and re-run configure.
6098
6099END
6100 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6101 fi
6102fi
6103
6104## ------------------------------------- ##
6105## End of automake initialization code ##
6106## ------------------------------------- ##
6107
6108
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6110$as_echo_n "checking curl version... " >&6; }
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6112$as_echo "$CURLVERSION" >&6; }
6113
6114
6115
6116VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6117
6118
6119PKGADD_PKG="HAXXcurl"
6120PKGADD_NAME="curl - a client that groks URLs"
6121PKGADD_VENDOR="curl.haxx.se"
6122
6123
6124
6125
6126 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6127 curl_ssh_msg="no (--with-libssh2)"
6128 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01006129 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006130 curl_gss_msg="no (--with-gssapi)"
6131curl_tls_srp_msg="no (--enable-tls-srp)"
6132 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6133 curl_ipv6_msg="no (--enable-ipv6)"
6134curl_unix_sockets_msg="no (--enable-unix-sockets)"
6135 curl_idn_msg="no (--with-{libidn2,winidn})"
6136 curl_manual_msg="no (--enable-manual)"
6137curl_libcurl_msg="enabled (--disable-libcurl-option)"
6138curl_verbose_msg="enabled (--disable-verbose)"
6139 curl_sspi_msg="no (--enable-sspi)"
6140 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6141 curl_ldaps_msg="no (--enable-ldaps)"
6142 curl_rtsp_msg="no (--enable-rtsp)"
6143 curl_rtmp_msg="no (--with-librtmp)"
6144 curl_mtlnk_msg="no (--with-libmetalink)"
6145 curl_psl_msg="no (--with-libpsl)"
6146
Alex Deymo486467e2017-12-19 19:04:07 +01006147 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006148
6149INITIAL_LDFLAGS=$LDFLAGS
6150INITIAL_LIBS=$LIBS
6151
6152
6153# Make sure we can run config.sub.
6154$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6155 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6156
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6158$as_echo_n "checking build system type... " >&6; }
6159if ${ac_cv_build+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161else
6162 ac_build_alias=$build_alias
6163test "x$ac_build_alias" = x &&
6164 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6165test "x$ac_build_alias" = x &&
6166 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6167ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6168 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6169
6170fi
6171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6172$as_echo "$ac_cv_build" >&6; }
6173case $ac_cv_build in
6174*-*-*) ;;
6175*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6176esac
6177build=$ac_cv_build
6178ac_save_IFS=$IFS; IFS='-'
6179set x $ac_cv_build
6180shift
6181build_cpu=$1
6182build_vendor=$2
6183shift; shift
6184# Remember, the first character of IFS is used to create $*,
6185# except with old shells:
6186build_os=$*
6187IFS=$ac_save_IFS
6188case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6189
6190
6191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6192$as_echo_n "checking host system type... " >&6; }
6193if ${ac_cv_host+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195else
6196 if test "x$host_alias" = x; then
6197 ac_cv_host=$ac_cv_build
6198else
6199 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6200 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6201fi
6202
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6205$as_echo "$ac_cv_host" >&6; }
6206case $ac_cv_host in
6207*-*-*) ;;
6208*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6209esac
6210host=$ac_cv_host
6211ac_save_IFS=$IFS; IFS='-'
6212set x $ac_cv_host
6213shift
6214host_cpu=$1
6215host_vendor=$2
6216shift; shift
6217# Remember, the first character of IFS is used to create $*,
6218# except with old shells:
6219host_os=$*
6220IFS=$ac_save_IFS
6221case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6222
6223
6224
6225cat >>confdefs.h <<_ACEOF
6226#define OS "${host}"
6227_ACEOF
6228
6229
6230
6231
6232
Elliott Hughes82be86d2017-09-20 17:00:17 -07006233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6234$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6235if ${ac_cv_path_GREP+:} false; then :
6236 $as_echo_n "(cached) " >&6
6237else
6238 if test -z "$GREP"; then
6239 ac_path_GREP_found=false
6240 # Loop through the user's path and test for each of PROGNAME-LIST
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_prog in grep ggrep; do
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6249 as_fn_executable_p "$ac_path_GREP" || continue
6250# Check for GNU ac_path_GREP and select it if it is found.
6251 # Check for GNU $ac_path_GREP
6252case `"$ac_path_GREP" --version 2>&1` in
6253*GNU*)
6254 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6255*)
6256 ac_count=0
6257 $as_echo_n 0123456789 >"conftest.in"
6258 while :
6259 do
6260 cat "conftest.in" "conftest.in" >"conftest.tmp"
6261 mv "conftest.tmp" "conftest.in"
6262 cp "conftest.in" "conftest.nl"
6263 $as_echo 'GREP' >> "conftest.nl"
6264 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6266 as_fn_arith $ac_count + 1 && ac_count=$as_val
6267 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6268 # Best one so far, save it but keep looking for a better one
6269 ac_cv_path_GREP="$ac_path_GREP"
6270 ac_path_GREP_max=$ac_count
6271 fi
6272 # 10*(2^10) chars as input seems more than enough
6273 test $ac_count -gt 10 && break
6274 done
6275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6276esac
6277
6278 $ac_path_GREP_found && break 3
6279 done
6280 done
6281 done
6282IFS=$as_save_IFS
6283 if test -z "$ac_cv_path_GREP"; then
6284 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6285 fi
6286else
6287 ac_cv_path_GREP=$GREP
6288fi
6289
6290fi
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6292$as_echo "$ac_cv_path_GREP" >&6; }
6293 GREP="$ac_cv_path_GREP"
6294
6295
6296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6297$as_echo_n "checking for egrep... " >&6; }
6298if ${ac_cv_path_EGREP+:} false; then :
6299 $as_echo_n "(cached) " >&6
6300else
6301 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6302 then ac_cv_path_EGREP="$GREP -E"
6303 else
6304 if test -z "$EGREP"; then
6305 ac_path_EGREP_found=false
6306 # Loop through the user's path and test for each of PROGNAME-LIST
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6309do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_prog in egrep; do
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6315 as_fn_executable_p "$ac_path_EGREP" || continue
6316# Check for GNU ac_path_EGREP and select it if it is found.
6317 # Check for GNU $ac_path_EGREP
6318case `"$ac_path_EGREP" --version 2>&1` in
6319*GNU*)
6320 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6321*)
6322 ac_count=0
6323 $as_echo_n 0123456789 >"conftest.in"
6324 while :
6325 do
6326 cat "conftest.in" "conftest.in" >"conftest.tmp"
6327 mv "conftest.tmp" "conftest.in"
6328 cp "conftest.in" "conftest.nl"
6329 $as_echo 'EGREP' >> "conftest.nl"
6330 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6332 as_fn_arith $ac_count + 1 && ac_count=$as_val
6333 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6334 # Best one so far, save it but keep looking for a better one
6335 ac_cv_path_EGREP="$ac_path_EGREP"
6336 ac_path_EGREP_max=$ac_count
6337 fi
6338 # 10*(2^10) chars as input seems more than enough
6339 test $ac_count -gt 10 && break
6340 done
6341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6342esac
6343
6344 $ac_path_EGREP_found && break 3
6345 done
6346 done
6347 done
6348IFS=$as_save_IFS
6349 if test -z "$ac_cv_path_EGREP"; then
6350 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6351 fi
6352else
6353 ac_cv_path_EGREP=$EGREP
6354fi
6355
6356 fi
6357fi
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6359$as_echo "$ac_cv_path_EGREP" >&6; }
6360 EGREP="$ac_cv_path_EGREP"
6361
6362
Elliott Hughes82be86d2017-09-20 17:00:17 -07006363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6366$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h. */
6369
6370#ifdef _AIX
6371 yes_this_is_aix
6372#endif
6373
6374_ACEOF
6375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6376 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6377
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6379$as_echo "yes" >&6; }
6380 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6381
6382
6383else
6384
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386$as_echo "no" >&6; }
6387
6388fi
6389rm -f conftest*
6390
6391
6392
6393
6394 #
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6396$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398/* end confdefs.h. */
6399
6400
6401
6402int main (void)
6403{
6404
6405#ifdef _THREAD_SAFE
6406 int dummy=1;
6407#else
6408 force compilation error
6409#endif
6410
6411 ;
6412 return 0;
6413}
6414
6415_ACEOF
6416if ac_fn_c_try_compile "$LINENO"; then :
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6419$as_echo "yes" >&6; }
6420 tmp_thread_safe_initially_defined="yes"
6421
6422else
6423
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426 tmp_thread_safe_initially_defined="no"
6427
6428fi
6429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 #
6431 if test "$tmp_thread_safe_initially_defined" = "no"; then
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6433$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6434
6435 case $host_os in
6436 aix[123].* | aix4.[012].*)
6437 tmp_need_thread_safe="no"
6438 ;;
6439 aix*)
6440 tmp_need_thread_safe="yes"
6441 ;;
6442 *)
6443 tmp_need_thread_safe="no"
6444 ;;
6445 esac
6446
6447 if test "$tmp_need_thread_safe" = "yes"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6449$as_echo "yes" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453 fi
6454 fi
6455 #
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6457$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6458 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6459 test "$tmp_need_thread_safe" = "yes"; then
6460
6461
6462$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6463
6464cat >>confdefs.h <<_EOF
6465#ifndef _THREAD_SAFE
6466# define _THREAD_SAFE
6467#endif
6468_EOF
6469
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6471$as_echo "yes" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474$as_echo "no" >&6; }
6475 fi
6476 #
6477
6478
6479 #
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6481$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483/* end confdefs.h. */
6484
6485
6486
6487int main (void)
6488{
6489
6490#ifdef _REENTRANT
6491 int dummy=1;
6492#else
6493 force compilation error
6494#endif
6495
6496 ;
6497 return 0;
6498}
6499
6500_ACEOF
6501if ac_fn_c_try_compile "$LINENO"; then :
6502
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6504$as_echo "yes" >&6; }
6505 tmp_reentrant_initially_defined="yes"
6506
6507else
6508
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }
6511 tmp_reentrant_initially_defined="no"
6512
6513fi
6514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515 #
6516 if test "$tmp_reentrant_initially_defined" = "no"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6518$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6519
6520 case $host_os in
6521 solaris*)
6522 tmp_need_reentrant="yes"
6523 ;;
6524 *)
6525 tmp_need_reentrant="no"
6526 ;;
6527 esac
6528
6529 if test "$tmp_need_reentrant" = "no"; then
6530
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532/* end confdefs.h. */
6533
6534
6535#include <errno.h>
6536
6537int main (void)
6538{
6539
6540 if(0 != errno)
6541 return 1;
6542
6543 ;
6544 return 0;
6545}
6546
6547_ACEOF
6548if ac_fn_c_try_compile "$LINENO"; then :
6549
6550 tmp_errno="yes"
6551
6552else
6553
6554 tmp_errno="no"
6555
6556fi
6557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 if test "$tmp_errno" = "yes"; then
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h. */
6561
6562
6563#include <errno.h>
6564
6565int main (void)
6566{
6567
6568#ifdef errno
6569 int dummy=1;
6570#else
6571 force compilation error
6572#endif
6573
6574 ;
6575 return 0;
6576}
6577
6578_ACEOF
6579if ac_fn_c_try_compile "$LINENO"; then :
6580
6581 tmp_errno="errno_macro_defined"
6582
6583else
6584
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h. */
6587
6588
6589#define _REENTRANT
6590#include <errno.h>
6591
6592int main (void)
6593{
6594
6595#ifdef errno
6596 int dummy=1;
6597#else
6598 force compilation error
6599#endif
6600
6601 ;
6602 return 0;
6603}
6604
6605_ACEOF
6606if ac_fn_c_try_compile "$LINENO"; then :
6607
6608 tmp_errno="errno_macro_needs_reentrant"
6609 tmp_need_reentrant="yes"
6610
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613
6614fi
6615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617
6618 fi
6619 if test "$tmp_need_reentrant" = "no"; then
6620
6621 if test "$tmp_need_reentrant" = "no"; then
6622
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624/* end confdefs.h. */
6625
6626
6627#define gmtime_r innocuous_gmtime_r
6628#ifdef __STDC__
6629# include <limits.h>
6630#else
6631# include <assert.h>
6632#endif
6633#undef gmtime_r
6634#ifdef __cplusplus
6635extern "C"
6636#endif
6637char gmtime_r ();
6638#if defined __stub_gmtime_r || defined __stub___gmtime_r
6639choke me
6640#endif
6641
6642int main (void)
6643{
6644return gmtime_r ();
6645 ;
6646 return 0;
6647}
6648
6649_ACEOF
6650if ac_fn_c_try_link "$LINENO"; then :
6651
6652 tmp_gmtime_r="yes"
6653
6654else
6655
6656 tmp_gmtime_r="no"
6657
6658fi
6659rm -f core conftest.err conftest.$ac_objext \
6660 conftest$ac_exeext conftest.$ac_ext
6661 if test "$tmp_gmtime_r" = "yes"; then
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h. */
6664
6665#include <sys/types.h>
6666#include <time.h>
6667
6668_ACEOF
6669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6670 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6671
6672 tmp_gmtime_r="proto_declared"
6673
6674else
6675
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678
6679#define _REENTRANT
6680#include <sys/types.h>
6681#include <time.h>
6682
6683_ACEOF
6684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6685 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6686
6687 tmp_gmtime_r="proto_needs_reentrant"
6688 tmp_need_reentrant="yes"
6689
6690fi
6691rm -f conftest*
6692
6693
6694fi
6695rm -f conftest*
6696
6697 fi
6698
6699 fi
6700 if test "$tmp_need_reentrant" = "no"; then
6701
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703/* end confdefs.h. */
6704
6705
6706#define localtime_r innocuous_localtime_r
6707#ifdef __STDC__
6708# include <limits.h>
6709#else
6710# include <assert.h>
6711#endif
6712#undef localtime_r
6713#ifdef __cplusplus
6714extern "C"
6715#endif
6716char localtime_r ();
6717#if defined __stub_localtime_r || defined __stub___localtime_r
6718choke me
6719#endif
6720
6721int main (void)
6722{
6723return localtime_r ();
6724 ;
6725 return 0;
6726}
6727
6728_ACEOF
6729if ac_fn_c_try_link "$LINENO"; then :
6730
6731 tmp_localtime_r="yes"
6732
6733else
6734
6735 tmp_localtime_r="no"
6736
6737fi
6738rm -f core conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740 if test "$tmp_localtime_r" = "yes"; then
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h. */
6743
6744#include <sys/types.h>
6745#include <time.h>
6746
6747_ACEOF
6748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6749 $EGREP "localtime_r" >/dev/null 2>&1; then :
6750
6751 tmp_localtime_r="proto_declared"
6752
6753else
6754
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h. */
6757
6758#define _REENTRANT
6759#include <sys/types.h>
6760#include <time.h>
6761
6762_ACEOF
6763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 $EGREP "localtime_r" >/dev/null 2>&1; then :
6765
6766 tmp_localtime_r="proto_needs_reentrant"
6767 tmp_need_reentrant="yes"
6768
6769fi
6770rm -f conftest*
6771
6772
6773fi
6774rm -f conftest*
6775
6776 fi
6777
6778 fi
6779 if test "$tmp_need_reentrant" = "no"; then
6780
6781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6782/* end confdefs.h. */
6783
6784
6785#define strerror_r innocuous_strerror_r
6786#ifdef __STDC__
6787# include <limits.h>
6788#else
6789# include <assert.h>
6790#endif
6791#undef strerror_r
6792#ifdef __cplusplus
6793extern "C"
6794#endif
6795char strerror_r ();
6796#if defined __stub_strerror_r || defined __stub___strerror_r
6797choke me
6798#endif
6799
6800int main (void)
6801{
6802return strerror_r ();
6803 ;
6804 return 0;
6805}
6806
6807_ACEOF
6808if ac_fn_c_try_link "$LINENO"; then :
6809
6810 tmp_strerror_r="yes"
6811
6812else
6813
6814 tmp_strerror_r="no"
6815
6816fi
6817rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 if test "$tmp_strerror_r" = "yes"; then
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h. */
6822
6823#include <sys/types.h>
6824#include <string.h>
6825
6826_ACEOF
6827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6828 $EGREP "strerror_r" >/dev/null 2>&1; then :
6829
6830 tmp_strerror_r="proto_declared"
6831
6832else
6833
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835/* end confdefs.h. */
6836
6837#define _REENTRANT
6838#include <sys/types.h>
6839#include <string.h>
6840
6841_ACEOF
6842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "strerror_r" >/dev/null 2>&1; then :
6844
6845 tmp_strerror_r="proto_needs_reentrant"
6846 tmp_need_reentrant="yes"
6847
6848fi
6849rm -f conftest*
6850
6851
6852fi
6853rm -f conftest*
6854
6855 fi
6856
6857 fi
6858 if test "$tmp_need_reentrant" = "no"; then
6859
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h. */
6862
6863
6864#define strtok_r innocuous_strtok_r
6865#ifdef __STDC__
6866# include <limits.h>
6867#else
6868# include <assert.h>
6869#endif
6870#undef strtok_r
6871#ifdef __cplusplus
6872extern "C"
6873#endif
6874char strtok_r ();
6875#if defined __stub_strtok_r || defined __stub___strtok_r
6876choke me
6877#endif
6878
6879int main (void)
6880{
6881return strtok_r ();
6882 ;
6883 return 0;
6884}
6885
6886_ACEOF
6887if ac_fn_c_try_link "$LINENO"; then :
6888
6889 tmp_strtok_r="yes"
6890
6891else
6892
6893 tmp_strtok_r="no"
6894
6895fi
6896rm -f core conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 if test "$tmp_strtok_r" = "yes"; then
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900/* end confdefs.h. */
6901
6902#include <sys/types.h>
6903#include <string.h>
6904
6905_ACEOF
6906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6907 $EGREP "strtok_r" >/dev/null 2>&1; then :
6908
6909 tmp_strtok_r="proto_declared"
6910
6911else
6912
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914/* end confdefs.h. */
6915
6916#define _REENTRANT
6917#include <sys/types.h>
6918#include <string.h>
6919
6920_ACEOF
6921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922 $EGREP "strtok_r" >/dev/null 2>&1; then :
6923
6924 tmp_strtok_r="proto_needs_reentrant"
6925 tmp_need_reentrant="yes"
6926
6927fi
6928rm -f conftest*
6929
6930
6931fi
6932rm -f conftest*
6933
6934 fi
6935
6936 fi
6937 if test "$tmp_need_reentrant" = "no"; then
6938
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940/* end confdefs.h. */
6941
6942
6943#define inet_ntoa_r innocuous_inet_ntoa_r
6944#ifdef __STDC__
6945# include <limits.h>
6946#else
6947# include <assert.h>
6948#endif
6949#undef inet_ntoa_r
6950#ifdef __cplusplus
6951extern "C"
6952#endif
6953char inet_ntoa_r ();
6954#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6955choke me
6956#endif
6957
6958int main (void)
6959{
6960return inet_ntoa_r ();
6961 ;
6962 return 0;
6963}
6964
6965_ACEOF
6966if ac_fn_c_try_link "$LINENO"; then :
6967
6968 tmp_inet_ntoa_r="yes"
6969
6970else
6971
6972 tmp_inet_ntoa_r="no"
6973
6974fi
6975rm -f core conftest.err conftest.$ac_objext \
6976 conftest$ac_exeext conftest.$ac_ext
6977 if test "$tmp_inet_ntoa_r" = "yes"; then
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h. */
6980
6981#include <sys/types.h>
6982#include <sys/socket.h>
6983#include <netinet/in.h>
6984#include <arpa/inet.h>
6985
6986_ACEOF
6987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6988 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6989
6990 tmp_inet_ntoa_r="proto_declared"
6991
6992else
6993
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h. */
6996
6997#define _REENTRANT
6998#include <sys/types.h>
6999#include <sys/socket.h>
7000#include <netinet/in.h>
7001#include <arpa/inet.h>
7002
7003_ACEOF
7004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7005 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7006
7007 tmp_inet_ntoa_r="proto_needs_reentrant"
7008 tmp_need_reentrant="yes"
7009
7010fi
7011rm -f conftest*
7012
7013
7014fi
7015rm -f conftest*
7016
7017 fi
7018
7019 fi
7020 if test "$tmp_need_reentrant" = "no"; then
7021
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h. */
7024
7025
7026#define gethostbyaddr_r innocuous_gethostbyaddr_r
7027#ifdef __STDC__
7028# include <limits.h>
7029#else
7030# include <assert.h>
7031#endif
7032#undef gethostbyaddr_r
7033#ifdef __cplusplus
7034extern "C"
7035#endif
7036char gethostbyaddr_r ();
7037#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7038choke me
7039#endif
7040
7041int main (void)
7042{
7043return gethostbyaddr_r ();
7044 ;
7045 return 0;
7046}
7047
7048_ACEOF
7049if ac_fn_c_try_link "$LINENO"; then :
7050
7051 tmp_gethostbyaddr_r="yes"
7052
7053else
7054
7055 tmp_gethostbyaddr_r="no"
7056
7057fi
7058rm -f core conftest.err conftest.$ac_objext \
7059 conftest$ac_exeext conftest.$ac_ext
7060 if test "$tmp_gethostbyaddr_r" = "yes"; then
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h. */
7063
7064#include <sys/types.h>
7065#include <netdb.h>
7066
7067_ACEOF
7068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7070
7071 tmp_gethostbyaddr_r="proto_declared"
7072
7073else
7074
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076/* end confdefs.h. */
7077
7078#define _REENTRANT
7079#include <sys/types.h>
7080#include <netdb.h>
7081
7082_ACEOF
7083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7084 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7085
7086 tmp_gethostbyaddr_r="proto_needs_reentrant"
7087 tmp_need_reentrant="yes"
7088
7089fi
7090rm -f conftest*
7091
7092
7093fi
7094rm -f conftest*
7095
7096 fi
7097
7098 fi
7099 if test "$tmp_need_reentrant" = "no"; then
7100
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102/* end confdefs.h. */
7103
7104
7105#define gethostbyname_r innocuous_gethostbyname_r
7106#ifdef __STDC__
7107# include <limits.h>
7108#else
7109# include <assert.h>
7110#endif
7111#undef gethostbyname_r
7112#ifdef __cplusplus
7113extern "C"
7114#endif
7115char gethostbyname_r ();
7116#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7117choke me
7118#endif
7119
7120int main (void)
7121{
7122return gethostbyname_r ();
7123 ;
7124 return 0;
7125}
7126
7127_ACEOF
7128if ac_fn_c_try_link "$LINENO"; then :
7129
7130 tmp_gethostbyname_r="yes"
7131
7132else
7133
7134 tmp_gethostbyname_r="no"
7135
7136fi
7137rm -f core conftest.err conftest.$ac_objext \
7138 conftest$ac_exeext conftest.$ac_ext
7139 if test "$tmp_gethostbyname_r" = "yes"; then
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h. */
7142
7143#include <sys/types.h>
7144#include <netdb.h>
7145
7146_ACEOF
7147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7148 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7149
7150 tmp_gethostbyname_r="proto_declared"
7151
7152else
7153
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155/* end confdefs.h. */
7156
7157#define _REENTRANT
7158#include <sys/types.h>
7159#include <netdb.h>
7160
7161_ACEOF
7162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7163 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7164
7165 tmp_gethostbyname_r="proto_needs_reentrant"
7166 tmp_need_reentrant="yes"
7167
7168fi
7169rm -f conftest*
7170
7171
7172fi
7173rm -f conftest*
7174
7175 fi
7176
7177 fi
7178 if test "$tmp_need_reentrant" = "no"; then
7179
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h. */
7182
7183
7184#define getprotobyname_r innocuous_getprotobyname_r
7185#ifdef __STDC__
7186# include <limits.h>
7187#else
7188# include <assert.h>
7189#endif
7190#undef getprotobyname_r
7191#ifdef __cplusplus
7192extern "C"
7193#endif
7194char getprotobyname_r ();
7195#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7196choke me
7197#endif
7198
7199int main (void)
7200{
7201return getprotobyname_r ();
7202 ;
7203 return 0;
7204}
7205
7206_ACEOF
7207if ac_fn_c_try_link "$LINENO"; then :
7208
7209 tmp_getprotobyname_r="yes"
7210
7211else
7212
7213 tmp_getprotobyname_r="no"
7214
7215fi
7216rm -f core conftest.err conftest.$ac_objext \
7217 conftest$ac_exeext conftest.$ac_ext
7218 if test "$tmp_getprotobyname_r" = "yes"; then
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220/* end confdefs.h. */
7221
7222#include <sys/types.h>
7223#include <netdb.h>
7224
7225_ACEOF
7226if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7227 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7228
7229 tmp_getprotobyname_r="proto_declared"
7230
7231else
7232
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h. */
7235
7236#define _REENTRANT
7237#include <sys/types.h>
7238#include <netdb.h>
7239
7240_ACEOF
7241if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7243
7244 tmp_getprotobyname_r="proto_needs_reentrant"
7245 tmp_need_reentrant="yes"
7246
7247fi
7248rm -f conftest*
7249
7250
7251fi
7252rm -f conftest*
7253
7254 fi
7255
7256 fi
7257 if test "$tmp_need_reentrant" = "no"; then
7258
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260/* end confdefs.h. */
7261
7262
7263#define getservbyport_r innocuous_getservbyport_r
7264#ifdef __STDC__
7265# include <limits.h>
7266#else
7267# include <assert.h>
7268#endif
7269#undef getservbyport_r
7270#ifdef __cplusplus
7271extern "C"
7272#endif
7273char getservbyport_r ();
7274#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7275choke me
7276#endif
7277
7278int main (void)
7279{
7280return getservbyport_r ();
7281 ;
7282 return 0;
7283}
7284
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287
7288 tmp_getservbyport_r="yes"
7289
7290else
7291
7292 tmp_getservbyport_r="no"
7293
7294fi
7295rm -f core conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
7297 if test "$tmp_getservbyport_r" = "yes"; then
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299/* end confdefs.h. */
7300
7301#include <sys/types.h>
7302#include <netdb.h>
7303
7304_ACEOF
7305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7306 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7307
7308 tmp_getservbyport_r="proto_declared"
7309
7310else
7311
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313/* end confdefs.h. */
7314
7315#define _REENTRANT
7316#include <sys/types.h>
7317#include <netdb.h>
7318
7319_ACEOF
7320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7321 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7322
7323 tmp_getservbyport_r="proto_needs_reentrant"
7324 tmp_need_reentrant="yes"
7325
7326fi
7327rm -f conftest*
7328
7329
7330fi
7331rm -f conftest*
7332
7333 fi
7334
7335 fi
7336
7337 fi
7338 if test "$tmp_need_reentrant" = "yes"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7340$as_echo "yes" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343$as_echo "no" >&6; }
7344 fi
7345 fi
7346 #
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7348$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7349 if test "$tmp_reentrant_initially_defined" = "yes" ||
7350 test "$tmp_need_reentrant" = "yes"; then
7351
7352
7353$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7354
7355cat >>confdefs.h <<_EOF
7356#ifndef _REENTRANT
7357# define _REENTRANT
7358#endif
7359_EOF
7360
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7362$as_echo "yes" >&6; }
7363 else
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366 fi
7367 #
7368
7369
7370# Check whether --enable-largefile was given.
7371if test "${enable_largefile+set}" = set; then :
7372 enableval=$enable_largefile;
7373fi
7374
7375if test "$enable_largefile" != no; then
7376
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7378$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7379if ${ac_cv_sys_largefile_CC+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381else
7382 ac_cv_sys_largefile_CC=no
7383 if test "$GCC" != yes; then
7384 ac_save_CC=$CC
7385 while :; do
7386 # IRIX 6.2 and later do not support large files by default,
7387 # so use the C compiler's -n32 option if that helps.
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390#include <sys/types.h>
7391 /* Check that off_t can represent 2**63 - 1 correctly.
7392 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7393 since some C++ compilers masquerading as C compilers
7394 incorrectly reject 9223372036854775807. */
7395#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7396 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7397 && LARGE_OFF_T % 2147483647 == 1)
7398 ? 1 : -1];
7399int main (void)
7400{
7401
7402 ;
7403 return 0;
7404}
7405_ACEOF
7406 if ac_fn_c_try_compile "$LINENO"; then :
7407 break
7408fi
7409rm -f core conftest.err conftest.$ac_objext
7410 CC="$CC -n32"
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 ac_cv_sys_largefile_CC=' -n32'; break
7413fi
7414rm -f core conftest.err conftest.$ac_objext
7415 break
7416 done
7417 CC=$ac_save_CC
7418 rm -f conftest.$ac_ext
7419 fi
7420fi
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7422$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7423 if test "$ac_cv_sys_largefile_CC" != no; then
7424 CC=$CC$ac_cv_sys_largefile_CC
7425 fi
7426
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7428$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7429if ${ac_cv_sys_file_offset_bits+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431else
7432 while :; do
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434/* end confdefs.h. */
7435#include <sys/types.h>
7436 /* Check that off_t can represent 2**63 - 1 correctly.
7437 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7438 since some C++ compilers masquerading as C compilers
7439 incorrectly reject 9223372036854775807. */
7440#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7441 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7442 && LARGE_OFF_T % 2147483647 == 1)
7443 ? 1 : -1];
7444int main (void)
7445{
7446
7447 ;
7448 return 0;
7449}
7450_ACEOF
7451if ac_fn_c_try_compile "$LINENO"; then :
7452 ac_cv_sys_file_offset_bits=no; break
7453fi
7454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456/* end confdefs.h. */
7457#define _FILE_OFFSET_BITS 64
7458#include <sys/types.h>
7459 /* Check that off_t can represent 2**63 - 1 correctly.
7460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7461 since some C++ compilers masquerading as C compilers
7462 incorrectly reject 9223372036854775807. */
7463#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7465 && LARGE_OFF_T % 2147483647 == 1)
7466 ? 1 : -1];
7467int main (void)
7468{
7469
7470 ;
7471 return 0;
7472}
7473_ACEOF
7474if ac_fn_c_try_compile "$LINENO"; then :
7475 ac_cv_sys_file_offset_bits=64; break
7476fi
7477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 ac_cv_sys_file_offset_bits=unknown
7479 break
7480done
7481fi
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7483$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7484case $ac_cv_sys_file_offset_bits in #(
7485 no | unknown) ;;
7486 *)
7487cat >>confdefs.h <<_ACEOF
7488#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7489_ACEOF
7490;;
7491esac
7492rm -rf conftest*
7493 if test $ac_cv_sys_file_offset_bits = unknown; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7495$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7496if ${ac_cv_sys_large_files+:} false; then :
7497 $as_echo_n "(cached) " >&6
7498else
7499 while :; do
7500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501/* end confdefs.h. */
7502#include <sys/types.h>
7503 /* Check that off_t can represent 2**63 - 1 correctly.
7504 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7505 since some C++ compilers masquerading as C compilers
7506 incorrectly reject 9223372036854775807. */
7507#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7508 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7509 && LARGE_OFF_T % 2147483647 == 1)
7510 ? 1 : -1];
7511int main (void)
7512{
7513
7514 ;
7515 return 0;
7516}
7517_ACEOF
7518if ac_fn_c_try_compile "$LINENO"; then :
7519 ac_cv_sys_large_files=no; break
7520fi
7521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h. */
7524#define _LARGE_FILES 1
7525#include <sys/types.h>
7526 /* Check that off_t can represent 2**63 - 1 correctly.
7527 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7528 since some C++ compilers masquerading as C compilers
7529 incorrectly reject 9223372036854775807. */
7530#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7531 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7532 && LARGE_OFF_T % 2147483647 == 1)
7533 ? 1 : -1];
7534int main (void)
7535{
7536
7537 ;
7538 return 0;
7539}
7540_ACEOF
7541if ac_fn_c_try_compile "$LINENO"; then :
7542 ac_cv_sys_large_files=1; break
7543fi
7544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 ac_cv_sys_large_files=unknown
7546 break
7547done
7548fi
7549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7550$as_echo "$ac_cv_sys_large_files" >&6; }
7551case $ac_cv_sys_large_files in #(
7552 no | unknown) ;;
7553 *)
7554cat >>confdefs.h <<_ACEOF
7555#define _LARGE_FILES $ac_cv_sys_large_files
7556_ACEOF
7557;;
7558esac
7559rm -rf conftest*
7560 fi
7561
7562
7563fi
7564
7565
7566case `pwd` in
7567 *\ * | *\ *)
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7569$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7570esac
7571
7572
7573
7574macro_version='2.4.6'
7575macro_revision='2.4.6'
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589ltmain=$ac_aux_dir/ltmain.sh
7590
7591# Backslashify metacharacters that are still active within
7592# double-quoted strings.
7593sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7594
7595# Same as above, but do not quote variable references.
7596double_quote_subst='s/\(["`\\]\)/\\\1/g'
7597
7598# Sed substitution to delay expansion of an escaped shell variable in a
7599# double_quote_subst'ed string.
7600delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7601
7602# Sed substitution to delay expansion of an escaped single quote.
7603delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7604
7605# Sed substitution to avoid accidental globbing in evaled expressions
7606no_glob_subst='s/\*/\\\*/g'
7607
7608ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7609ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7610ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7611
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7613$as_echo_n "checking how to print strings... " >&6; }
7614# Test print first, because it will be a builtin if present.
7615if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7616 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7617 ECHO='print -r --'
7618elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7619 ECHO='printf %s\n'
7620else
7621 # Use this function as a fallback that always works.
7622 func_fallback_echo ()
7623 {
7624 eval 'cat <<_LTECHO_EOF
7625$1
7626_LTECHO_EOF'
7627 }
7628 ECHO='func_fallback_echo'
7629fi
7630
7631# func_echo_all arg...
7632# Invoke $ECHO with all args, space-separated.
7633func_echo_all ()
7634{
7635 $ECHO ""
7636}
7637
7638case $ECHO in
7639 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7640$as_echo "printf" >&6; } ;;
7641 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7642$as_echo "print -r" >&6; } ;;
7643 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7644$as_echo "cat" >&6; } ;;
7645esac
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7661$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7662if ${ac_cv_path_SED+:} false; then :
7663 $as_echo_n "(cached) " >&6
7664else
7665 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7666 for ac_i in 1 2 3 4 5 6 7; do
7667 ac_script="$ac_script$as_nl$ac_script"
7668 done
7669 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7670 { ac_script=; unset ac_script;}
7671 if test -z "$SED"; then
7672 ac_path_SED_found=false
7673 # Loop through the user's path and test for each of PROGNAME-LIST
7674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
7679 for ac_prog in sed gsed; do
7680 for ac_exec_ext in '' $ac_executable_extensions; do
7681 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7682 as_fn_executable_p "$ac_path_SED" || continue
7683# Check for GNU ac_path_SED and select it if it is found.
7684 # Check for GNU $ac_path_SED
7685case `"$ac_path_SED" --version 2>&1` in
7686*GNU*)
7687 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7688*)
7689 ac_count=0
7690 $as_echo_n 0123456789 >"conftest.in"
7691 while :
7692 do
7693 cat "conftest.in" "conftest.in" >"conftest.tmp"
7694 mv "conftest.tmp" "conftest.in"
7695 cp "conftest.in" "conftest.nl"
7696 $as_echo '' >> "conftest.nl"
7697 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7698 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7699 as_fn_arith $ac_count + 1 && ac_count=$as_val
7700 if test $ac_count -gt ${ac_path_SED_max-0}; then
7701 # Best one so far, save it but keep looking for a better one
7702 ac_cv_path_SED="$ac_path_SED"
7703 ac_path_SED_max=$ac_count
7704 fi
7705 # 10*(2^10) chars as input seems more than enough
7706 test $ac_count -gt 10 && break
7707 done
7708 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7709esac
7710
7711 $ac_path_SED_found && break 3
7712 done
7713 done
7714 done
7715IFS=$as_save_IFS
7716 if test -z "$ac_cv_path_SED"; then
7717 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7718 fi
7719else
7720 ac_cv_path_SED=$SED
7721fi
7722
7723fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7725$as_echo "$ac_cv_path_SED" >&6; }
7726 SED="$ac_cv_path_SED"
7727 rm -f conftest.sed
7728
7729test -z "$SED" && SED=sed
7730Xsed="$SED -e 1s/^X//"
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7743$as_echo_n "checking for fgrep... " >&6; }
7744if ${ac_cv_path_FGREP+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746else
7747 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7748 then ac_cv_path_FGREP="$GREP -F"
7749 else
7750 if test -z "$FGREP"; then
7751 ac_path_FGREP_found=false
7752 # Loop through the user's path and test for each of PROGNAME-LIST
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_prog in fgrep; do
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7761 as_fn_executable_p "$ac_path_FGREP" || continue
7762# Check for GNU ac_path_FGREP and select it if it is found.
7763 # Check for GNU $ac_path_FGREP
7764case `"$ac_path_FGREP" --version 2>&1` in
7765*GNU*)
7766 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7767*)
7768 ac_count=0
7769 $as_echo_n 0123456789 >"conftest.in"
7770 while :
7771 do
7772 cat "conftest.in" "conftest.in" >"conftest.tmp"
7773 mv "conftest.tmp" "conftest.in"
7774 cp "conftest.in" "conftest.nl"
7775 $as_echo 'FGREP' >> "conftest.nl"
7776 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7778 as_fn_arith $ac_count + 1 && ac_count=$as_val
7779 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7780 # Best one so far, save it but keep looking for a better one
7781 ac_cv_path_FGREP="$ac_path_FGREP"
7782 ac_path_FGREP_max=$ac_count
7783 fi
7784 # 10*(2^10) chars as input seems more than enough
7785 test $ac_count -gt 10 && break
7786 done
7787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7788esac
7789
7790 $ac_path_FGREP_found && break 3
7791 done
7792 done
7793 done
7794IFS=$as_save_IFS
7795 if test -z "$ac_cv_path_FGREP"; then
7796 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7797 fi
7798else
7799 ac_cv_path_FGREP=$FGREP
7800fi
7801
7802 fi
7803fi
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7805$as_echo "$ac_cv_path_FGREP" >&6; }
7806 FGREP="$ac_cv_path_FGREP"
7807
7808
7809test -z "$GREP" && GREP=grep
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829# Check whether --with-gnu-ld was given.
7830if test "${with_gnu_ld+set}" = set; then :
7831 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7832else
7833 with_gnu_ld=no
7834fi
7835
7836ac_prog=ld
7837if test yes = "$GCC"; then
7838 # Check if gcc -print-prog-name=ld gives a path.
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7840$as_echo_n "checking for ld used by $CC... " >&6; }
7841 case $host in
7842 *-*-mingw*)
7843 # gcc leaves a trailing carriage return, which upsets mingw
7844 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7845 *)
7846 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7847 esac
7848 case $ac_prog in
7849 # Accept absolute paths.
7850 [\\/]* | ?:[\\/]*)
7851 re_direlt='/[^/][^/]*/\.\./'
7852 # Canonicalize the pathname of ld
7853 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7854 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7855 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7856 done
7857 test -z "$LD" && LD=$ac_prog
7858 ;;
7859 "")
7860 # If it fails, then pretend we aren't using GCC.
7861 ac_prog=ld
7862 ;;
7863 *)
7864 # If it is relative, then search for the first ld in PATH.
7865 with_gnu_ld=unknown
7866 ;;
7867 esac
7868elif test yes = "$with_gnu_ld"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7870$as_echo_n "checking for GNU ld... " >&6; }
7871else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7873$as_echo_n "checking for non-GNU ld... " >&6; }
7874fi
7875if ${lt_cv_path_LD+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877else
7878 if test -z "$LD"; then
7879 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7880 for ac_dir in $PATH; do
7881 IFS=$lt_save_ifs
7882 test -z "$ac_dir" && ac_dir=.
7883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7884 lt_cv_path_LD=$ac_dir/$ac_prog
7885 # Check to see if the program is GNU ld. I'd rather use --version,
7886 # but apparently some variants of GNU ld only accept -v.
7887 # Break only if it was the GNU/non-GNU ld that we prefer.
7888 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7889 *GNU* | *'with BFD'*)
7890 test no != "$with_gnu_ld" && break
7891 ;;
7892 *)
7893 test yes != "$with_gnu_ld" && break
7894 ;;
7895 esac
7896 fi
7897 done
7898 IFS=$lt_save_ifs
7899else
7900 lt_cv_path_LD=$LD # Let the user override the test with a path.
7901fi
7902fi
7903
7904LD=$lt_cv_path_LD
7905if test -n "$LD"; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7907$as_echo "$LD" >&6; }
7908else
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910$as_echo "no" >&6; }
7911fi
7912test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7914$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7915if ${lt_cv_prog_gnu_ld+:} false; then :
7916 $as_echo_n "(cached) " >&6
7917else
7918 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7919case `$LD -v 2>&1 </dev/null` in
7920*GNU* | *'with BFD'*)
7921 lt_cv_prog_gnu_ld=yes
7922 ;;
7923*)
7924 lt_cv_prog_gnu_ld=no
7925 ;;
7926esac
7927fi
7928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7929$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7930with_gnu_ld=$lt_cv_prog_gnu_ld
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7941$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7942if ${lt_cv_path_NM+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944else
7945 if test -n "$NM"; then
7946 # Let the user override the test.
7947 lt_cv_path_NM=$NM
7948else
7949 lt_nm_to_check=${ac_tool_prefix}nm
7950 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7951 lt_nm_to_check="$lt_nm_to_check nm"
7952 fi
7953 for lt_tmp_nm in $lt_nm_to_check; do
7954 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7955 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7956 IFS=$lt_save_ifs
7957 test -z "$ac_dir" && ac_dir=.
7958 tmp_nm=$ac_dir/$lt_tmp_nm
7959 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7960 # Check to see if the nm accepts a BSD-compat flag.
7961 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7962 # nm: unknown option "B" ignored
7963 # Tru64's nm complains that /dev/null is an invalid object file
7964 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7965 case $build_os in
7966 mingw*) lt_bad_file=conftest.nm/nofile ;;
7967 *) lt_bad_file=/dev/null ;;
7968 esac
7969 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7970 *$lt_bad_file* | *'Invalid file or object type'*)
7971 lt_cv_path_NM="$tmp_nm -B"
7972 break 2
7973 ;;
7974 *)
7975 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7976 */dev/null*)
7977 lt_cv_path_NM="$tmp_nm -p"
7978 break 2
7979 ;;
7980 *)
7981 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7982 continue # so that we can try to find one that supports BSD flags
7983 ;;
7984 esac
7985 ;;
7986 esac
7987 fi
7988 done
7989 IFS=$lt_save_ifs
7990 done
7991 : ${lt_cv_path_NM=no}
7992fi
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7995$as_echo "$lt_cv_path_NM" >&6; }
7996if test no != "$lt_cv_path_NM"; then
7997 NM=$lt_cv_path_NM
7998else
7999 # Didn't find any BSD compatible name lister, look for dumpbin.
8000 if test -n "$DUMPBIN"; then :
8001 # Let the user override the test.
8002 else
8003 if test -n "$ac_tool_prefix"; then
8004 for ac_prog in dumpbin "link -dump"
8005 do
8006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009$as_echo_n "checking for $ac_word... " >&6; }
8010if ${ac_cv_prog_DUMPBIN+:} false; then :
8011 $as_echo_n "(cached) " >&6
8012else
8013 if test -n "$DUMPBIN"; then
8014 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8026 fi
8027done
8028 done
8029IFS=$as_save_IFS
8030
8031fi
8032fi
8033DUMPBIN=$ac_cv_prog_DUMPBIN
8034if test -n "$DUMPBIN"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8036$as_echo "$DUMPBIN" >&6; }
8037else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039$as_echo "no" >&6; }
8040fi
8041
8042
8043 test -n "$DUMPBIN" && break
8044 done
8045fi
8046if test -z "$DUMPBIN"; then
8047 ac_ct_DUMPBIN=$DUMPBIN
8048 for ac_prog in dumpbin "link -dump"
8049do
8050 # Extract the first word of "$ac_prog", so it can be a program name with args.
8051set dummy $ac_prog; ac_word=$2
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053$as_echo_n "checking for $ac_word... " >&6; }
8054if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056else
8057 if test -n "$ac_ct_DUMPBIN"; then
8058 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8059else
8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8067 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8070 fi
8071done
8072 done
8073IFS=$as_save_IFS
8074
8075fi
8076fi
8077ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8078if test -n "$ac_ct_DUMPBIN"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8080$as_echo "$ac_ct_DUMPBIN" >&6; }
8081else
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083$as_echo "no" >&6; }
8084fi
8085
8086
8087 test -n "$ac_ct_DUMPBIN" && break
8088done
8089
8090 if test "x$ac_ct_DUMPBIN" = x; then
8091 DUMPBIN=":"
8092 else
8093 case $cross_compiling:$ac_tool_warned in
8094yes:)
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8097ac_tool_warned=yes ;;
8098esac
8099 DUMPBIN=$ac_ct_DUMPBIN
8100 fi
8101fi
8102
8103 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8104 *COFF*)
8105 DUMPBIN="$DUMPBIN -symbols -headers"
8106 ;;
8107 *)
8108 DUMPBIN=:
8109 ;;
8110 esac
8111 fi
8112
8113 if test : != "$DUMPBIN"; then
8114 NM=$DUMPBIN
8115 fi
8116fi
8117test -z "$NM" && NM=nm
8118
8119
8120
8121
8122
8123
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8125$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8126if ${lt_cv_nm_interface+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128else
8129 lt_cv_nm_interface="BSD nm"
8130 echo "int some_variable = 0;" > conftest.$ac_ext
8131 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8132 (eval "$ac_compile" 2>conftest.err)
8133 cat conftest.err >&5
8134 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8135 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8136 cat conftest.err >&5
8137 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8138 cat conftest.out >&5
8139 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8140 lt_cv_nm_interface="MS dumpbin"
8141 fi
8142 rm -f conftest*
8143fi
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8145$as_echo "$lt_cv_nm_interface" >&6; }
8146
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8148$as_echo_n "checking whether ln -s works... " >&6; }
8149LN_S=$as_ln_s
8150if test "$LN_S" = "ln -s"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8152$as_echo "yes" >&6; }
8153else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8155$as_echo "no, using $LN_S" >&6; }
8156fi
8157
8158# find the maximum length of command line arguments
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8160$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8161if ${lt_cv_sys_max_cmd_len+:} false; then :
8162 $as_echo_n "(cached) " >&6
8163else
8164 i=0
8165 teststring=ABCD
8166
8167 case $build_os in
8168 msdosdjgpp*)
8169 # On DJGPP, this test can blow up pretty badly due to problems in libc
8170 # (any single argument exceeding 2000 bytes causes a buffer overrun
8171 # during glob expansion). Even if it were fixed, the result of this
8172 # check would be larger than it should be.
8173 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8174 ;;
8175
8176 gnu*)
8177 # Under GNU Hurd, this test is not required because there is
8178 # no limit to the length of command line arguments.
8179 # Libtool will interpret -1 as no limit whatsoever
8180 lt_cv_sys_max_cmd_len=-1;
8181 ;;
8182
8183 cygwin* | mingw* | cegcc*)
8184 # On Win9x/ME, this test blows up -- it succeeds, but takes
8185 # about 5 minutes as the teststring grows exponentially.
8186 # Worse, since 9x/ME are not pre-emptively multitasking,
8187 # you end up with a "frozen" computer, even though with patience
8188 # the test eventually succeeds (with a max line length of 256k).
8189 # Instead, let's just punt: use the minimum linelength reported by
8190 # all of the supported platforms: 8192 (on NT/2K/XP).
8191 lt_cv_sys_max_cmd_len=8192;
8192 ;;
8193
8194 mint*)
8195 # On MiNT this can take a long time and run out of memory.
8196 lt_cv_sys_max_cmd_len=8192;
8197 ;;
8198
8199 amigaos*)
8200 # On AmigaOS with pdksh, this test takes hours, literally.
8201 # So we just punt and use a minimum line length of 8192.
8202 lt_cv_sys_max_cmd_len=8192;
8203 ;;
8204
8205 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8206 # This has been around since 386BSD, at least. Likely further.
8207 if test -x /sbin/sysctl; then
8208 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8209 elif test -x /usr/sbin/sysctl; then
8210 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8211 else
8212 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8213 fi
8214 # And add a safety zone
8215 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8216 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8217 ;;
8218
8219 interix*)
8220 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8221 lt_cv_sys_max_cmd_len=196608
8222 ;;
8223
8224 os2*)
8225 # The test takes a long time on OS/2.
8226 lt_cv_sys_max_cmd_len=8192
8227 ;;
8228
8229 osf*)
8230 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8231 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8232 # nice to cause kernel panics so lets avoid the loop below.
8233 # First set a reasonable default.
8234 lt_cv_sys_max_cmd_len=16384
8235 #
8236 if test -x /sbin/sysconfig; then
8237 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8238 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8239 esac
8240 fi
8241 ;;
8242 sco3.2v5*)
8243 lt_cv_sys_max_cmd_len=102400
8244 ;;
8245 sysv5* | sco5v6* | sysv4.2uw2*)
8246 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8247 if test -n "$kargmax"; then
8248 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8249 else
8250 lt_cv_sys_max_cmd_len=32768
8251 fi
8252 ;;
8253 *)
8254 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8255 if test -n "$lt_cv_sys_max_cmd_len" && \
8256 test undefined != "$lt_cv_sys_max_cmd_len"; then
8257 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8258 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8259 else
8260 # Make teststring a little bigger before we do anything with it.
8261 # a 1K string should be a reasonable start.
8262 for i in 1 2 3 4 5 6 7 8; do
8263 teststring=$teststring$teststring
8264 done
8265 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8266 # If test is not a shell built-in, we'll probably end up computing a
8267 # maximum length that is only half of the actual maximum length, but
8268 # we can't tell.
8269 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8270 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8271 test 17 != "$i" # 1/2 MB should be enough
8272 do
8273 i=`expr $i + 1`
8274 teststring=$teststring$teststring
8275 done
8276 # Only check the string length outside the loop.
8277 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8278 teststring=
8279 # Add a significant safety factor because C++ compilers can tack on
8280 # massive amounts of additional arguments before passing them to the
8281 # linker. It appears as though 1/2 is a usable value.
8282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8283 fi
8284 ;;
8285 esac
8286
8287fi
8288
8289if test -n "$lt_cv_sys_max_cmd_len"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8291$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8292else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8294$as_echo "none" >&6; }
8295fi
8296max_cmd_len=$lt_cv_sys_max_cmd_len
8297
8298
8299
8300
8301
8302
8303: ${CP="cp -f"}
8304: ${MV="mv -f"}
8305: ${RM="rm -f"}
8306
8307if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8308 lt_unset=unset
8309else
8310 lt_unset=false
8311fi
8312
8313
8314
8315
8316
8317# test EBCDIC or ASCII
8318case `echo X|tr X '\101'` in
8319 A) # ASCII based system
8320 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8321 lt_SP2NL='tr \040 \012'
8322 lt_NL2SP='tr \015\012 \040\040'
8323 ;;
8324 *) # EBCDIC based system
8325 lt_SP2NL='tr \100 \n'
8326 lt_NL2SP='tr \r\n \100\100'
8327 ;;
8328esac
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8339$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8340if ${lt_cv_to_host_file_cmd+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342else
8343 case $host in
8344 *-*-mingw* )
8345 case $build in
8346 *-*-mingw* ) # actually msys
8347 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8348 ;;
8349 *-*-cygwin* )
8350 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8351 ;;
8352 * ) # otherwise, assume *nix
8353 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8354 ;;
8355 esac
8356 ;;
8357 *-*-cygwin* )
8358 case $build in
8359 *-*-mingw* ) # actually msys
8360 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8361 ;;
8362 *-*-cygwin* )
8363 lt_cv_to_host_file_cmd=func_convert_file_noop
8364 ;;
8365 * ) # otherwise, assume *nix
8366 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8367 ;;
8368 esac
8369 ;;
8370 * ) # unhandled hosts (and "normal" native builds)
8371 lt_cv_to_host_file_cmd=func_convert_file_noop
8372 ;;
8373esac
8374
8375fi
8376
8377to_host_file_cmd=$lt_cv_to_host_file_cmd
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8379$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8380
8381
8382
8383
8384
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8386$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8387if ${lt_cv_to_tool_file_cmd+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389else
8390 #assume ordinary cross tools, or native build.
8391lt_cv_to_tool_file_cmd=func_convert_file_noop
8392case $host in
8393 *-*-mingw* )
8394 case $build in
8395 *-*-mingw* ) # actually msys
8396 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8397 ;;
8398 esac
8399 ;;
8400esac
8401
8402fi
8403
8404to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8406$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8407
8408
8409
8410
8411
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8413$as_echo_n "checking for $LD option to reload object files... " >&6; }
8414if ${lt_cv_ld_reload_flag+:} false; then :
8415 $as_echo_n "(cached) " >&6
8416else
8417 lt_cv_ld_reload_flag='-r'
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8420$as_echo "$lt_cv_ld_reload_flag" >&6; }
8421reload_flag=$lt_cv_ld_reload_flag
8422case $reload_flag in
8423"" | " "*) ;;
8424*) reload_flag=" $reload_flag" ;;
8425esac
8426reload_cmds='$LD$reload_flag -o $output$reload_objs'
8427case $host_os in
8428 cygwin* | mingw* | pw32* | cegcc*)
8429 if test yes != "$GCC"; then
8430 reload_cmds=false
8431 fi
8432 ;;
8433 darwin*)
8434 if test yes = "$GCC"; then
8435 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8436 else
8437 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8438 fi
8439 ;;
8440esac
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450if test -n "$ac_tool_prefix"; then
8451 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8452set dummy ${ac_tool_prefix}objdump; ac_word=$2
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if ${ac_cv_prog_OBJDUMP+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458 if test -n "$OBJDUMP"; then
8459 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8460else
8461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462for as_dir in $PATH
8463do
8464 IFS=$as_save_IFS
8465 test -z "$as_dir" && as_dir=.
8466 for ac_exec_ext in '' $ac_executable_extensions; do
8467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8468 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470 break 2
8471 fi
8472done
8473 done
8474IFS=$as_save_IFS
8475
8476fi
8477fi
8478OBJDUMP=$ac_cv_prog_OBJDUMP
8479if test -n "$OBJDUMP"; then
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8481$as_echo "$OBJDUMP" >&6; }
8482else
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484$as_echo "no" >&6; }
8485fi
8486
8487
8488fi
8489if test -z "$ac_cv_prog_OBJDUMP"; then
8490 ac_ct_OBJDUMP=$OBJDUMP
8491 # Extract the first word of "objdump", so it can be a program name with args.
8492set dummy objdump; ac_word=$2
8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8494$as_echo_n "checking for $ac_word... " >&6; }
8495if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8496 $as_echo_n "(cached) " >&6
8497else
8498 if test -n "$ac_ct_OBJDUMP"; then
8499 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8500else
8501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502for as_dir in $PATH
8503do
8504 IFS=$as_save_IFS
8505 test -z "$as_dir" && as_dir=.
8506 for ac_exec_ext in '' $ac_executable_extensions; do
8507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 break 2
8511 fi
8512done
8513 done
8514IFS=$as_save_IFS
8515
8516fi
8517fi
8518ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8519if test -n "$ac_ct_OBJDUMP"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8521$as_echo "$ac_ct_OBJDUMP" >&6; }
8522else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524$as_echo "no" >&6; }
8525fi
8526
8527 if test "x$ac_ct_OBJDUMP" = x; then
8528 OBJDUMP="false"
8529 else
8530 case $cross_compiling:$ac_tool_warned in
8531yes:)
8532{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534ac_tool_warned=yes ;;
8535esac
8536 OBJDUMP=$ac_ct_OBJDUMP
8537 fi
8538else
8539 OBJDUMP="$ac_cv_prog_OBJDUMP"
8540fi
8541
8542test -z "$OBJDUMP" && OBJDUMP=objdump
8543
8544
8545
8546
8547
8548
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8550$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8551if ${lt_cv_deplibs_check_method+:} false; then :
8552 $as_echo_n "(cached) " >&6
8553else
8554 lt_cv_file_magic_cmd='$MAGIC_CMD'
8555lt_cv_file_magic_test_file=
8556lt_cv_deplibs_check_method='unknown'
8557# Need to set the preceding variable on all platforms that support
8558# interlibrary dependencies.
8559# 'none' -- dependencies not supported.
8560# 'unknown' -- same as none, but documents that we really don't know.
8561# 'pass_all' -- all dependencies passed with no checks.
8562# 'test_compile' -- check by making test program.
8563# 'file_magic [[regex]]' -- check by looking for files in library path
8564# that responds to the $file_magic_cmd with a given extended regex.
8565# If you have 'file' or equivalent on your system and you're not sure
8566# whether 'pass_all' will *always* work, you probably want this one.
8567
8568case $host_os in
8569aix[4-9]*)
8570 lt_cv_deplibs_check_method=pass_all
8571 ;;
8572
8573beos*)
8574 lt_cv_deplibs_check_method=pass_all
8575 ;;
8576
8577bsdi[45]*)
8578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8579 lt_cv_file_magic_cmd='/usr/bin/file -L'
8580 lt_cv_file_magic_test_file=/shlib/libc.so
8581 ;;
8582
8583cygwin*)
8584 # func_win32_libid is a shell function defined in ltmain.sh
8585 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8586 lt_cv_file_magic_cmd='func_win32_libid'
8587 ;;
8588
8589mingw* | pw32*)
8590 # Base MSYS/MinGW do not provide the 'file' command needed by
8591 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8592 # unless we find 'file', for example because we are cross-compiling.
8593 if ( file / ) >/dev/null 2>&1; then
8594 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8595 lt_cv_file_magic_cmd='func_win32_libid'
8596 else
8597 # Keep this pattern in sync with the one in func_win32_libid.
8598 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8599 lt_cv_file_magic_cmd='$OBJDUMP -f'
8600 fi
8601 ;;
8602
8603cegcc*)
8604 # use the weaker test based on 'objdump'. See mingw*.
8605 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8606 lt_cv_file_magic_cmd='$OBJDUMP -f'
8607 ;;
8608
8609darwin* | rhapsody*)
8610 lt_cv_deplibs_check_method=pass_all
8611 ;;
8612
8613freebsd* | dragonfly*)
8614 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8615 case $host_cpu in
8616 i*86 )
8617 # Not sure whether the presence of OpenBSD here was a mistake.
8618 # Let's accept both of them until this is cleared up.
8619 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8620 lt_cv_file_magic_cmd=/usr/bin/file
8621 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8622 ;;
8623 esac
8624 else
8625 lt_cv_deplibs_check_method=pass_all
8626 fi
8627 ;;
8628
8629haiku*)
8630 lt_cv_deplibs_check_method=pass_all
8631 ;;
8632
8633hpux10.20* | hpux11*)
8634 lt_cv_file_magic_cmd=/usr/bin/file
8635 case $host_cpu in
8636 ia64*)
8637 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8638 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8639 ;;
8640 hppa*64*)
8641 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]'
8642 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8643 ;;
8644 *)
8645 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8646 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8647 ;;
8648 esac
8649 ;;
8650
8651interix[3-9]*)
8652 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8654 ;;
8655
8656irix5* | irix6* | nonstopux*)
8657 case $LD in
8658 *-32|*"-32 ") libmagic=32-bit;;
8659 *-n32|*"-n32 ") libmagic=N32;;
8660 *-64|*"-64 ") libmagic=64-bit;;
8661 *) libmagic=never-match;;
8662 esac
8663 lt_cv_deplibs_check_method=pass_all
8664 ;;
8665
8666# This must be glibc/ELF.
8667linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8668 lt_cv_deplibs_check_method=pass_all
8669 ;;
8670
8671netbsd* | netbsdelf*-gnu)
8672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8673 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8674 else
8675 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8676 fi
8677 ;;
8678
8679newos6*)
8680 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8681 lt_cv_file_magic_cmd=/usr/bin/file
8682 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8683 ;;
8684
8685*nto* | *qnx*)
8686 lt_cv_deplibs_check_method=pass_all
8687 ;;
8688
8689openbsd* | bitrig*)
8690 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8691 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8692 else
8693 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8694 fi
8695 ;;
8696
8697osf3* | osf4* | osf5*)
8698 lt_cv_deplibs_check_method=pass_all
8699 ;;
8700
8701rdos*)
8702 lt_cv_deplibs_check_method=pass_all
8703 ;;
8704
8705solaris*)
8706 lt_cv_deplibs_check_method=pass_all
8707 ;;
8708
8709sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8710 lt_cv_deplibs_check_method=pass_all
8711 ;;
8712
8713sysv4 | sysv4.3*)
8714 case $host_vendor in
8715 motorola)
8716 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]'
8717 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8718 ;;
8719 ncr)
8720 lt_cv_deplibs_check_method=pass_all
8721 ;;
8722 sequent)
8723 lt_cv_file_magic_cmd='/bin/file'
8724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8725 ;;
8726 sni)
8727 lt_cv_file_magic_cmd='/bin/file'
8728 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8729 lt_cv_file_magic_test_file=/lib/libc.so
8730 ;;
8731 siemens)
8732 lt_cv_deplibs_check_method=pass_all
8733 ;;
8734 pc)
8735 lt_cv_deplibs_check_method=pass_all
8736 ;;
8737 esac
8738 ;;
8739
8740tpf*)
8741 lt_cv_deplibs_check_method=pass_all
8742 ;;
8743os2*)
8744 lt_cv_deplibs_check_method=pass_all
8745 ;;
8746esac
8747
8748fi
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8750$as_echo "$lt_cv_deplibs_check_method" >&6; }
8751
8752file_magic_glob=
8753want_nocaseglob=no
8754if test "$build" = "$host"; then
8755 case $host_os in
8756 mingw* | pw32*)
8757 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8758 want_nocaseglob=yes
8759 else
8760 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8761 fi
8762 ;;
8763 esac
8764fi
8765
8766file_magic_cmd=$lt_cv_file_magic_cmd
8767deplibs_check_method=$lt_cv_deplibs_check_method
8768test -z "$deplibs_check_method" && deplibs_check_method=unknown
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791if test -n "$ac_tool_prefix"; then
8792 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8793set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795$as_echo_n "checking for $ac_word... " >&6; }
8796if ${ac_cv_prog_DLLTOOL+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798else
8799 if test -n "$DLLTOOL"; then
8800 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811 break 2
8812 fi
8813done
8814 done
8815IFS=$as_save_IFS
8816
8817fi
8818fi
8819DLLTOOL=$ac_cv_prog_DLLTOOL
8820if test -n "$DLLTOOL"; then
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8822$as_echo "$DLLTOOL" >&6; }
8823else
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825$as_echo "no" >&6; }
8826fi
8827
8828
8829fi
8830if test -z "$ac_cv_prog_DLLTOOL"; then
8831 ac_ct_DLLTOOL=$DLLTOOL
8832 # Extract the first word of "dlltool", so it can be a program name with args.
8833set dummy dlltool; ac_word=$2
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838else
8839 if test -n "$ac_ct_DLLTOOL"; then
8840 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8841else
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8849 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8852 fi
8853done
8854 done
8855IFS=$as_save_IFS
8856
8857fi
8858fi
8859ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8860if test -n "$ac_ct_DLLTOOL"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8862$as_echo "$ac_ct_DLLTOOL" >&6; }
8863else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
8866fi
8867
8868 if test "x$ac_ct_DLLTOOL" = x; then
8869 DLLTOOL="false"
8870 else
8871 case $cross_compiling:$ac_tool_warned in
8872yes:)
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8875ac_tool_warned=yes ;;
8876esac
8877 DLLTOOL=$ac_ct_DLLTOOL
8878 fi
8879else
8880 DLLTOOL="$ac_cv_prog_DLLTOOL"
8881fi
8882
8883test -z "$DLLTOOL" && DLLTOOL=dlltool
8884
8885
8886
8887
8888
8889
8890
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8892$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8893if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8894 $as_echo_n "(cached) " >&6
8895else
8896 lt_cv_sharedlib_from_linklib_cmd='unknown'
8897
8898case $host_os in
8899cygwin* | mingw* | pw32* | cegcc*)
8900 # two different shell functions defined in ltmain.sh;
8901 # decide which one to use based on capabilities of $DLLTOOL
8902 case `$DLLTOOL --help 2>&1` in
8903 *--identify-strict*)
8904 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8905 ;;
8906 *)
8907 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8908 ;;
8909 esac
8910 ;;
8911*)
8912 # fallback: assume linklib IS sharedlib
8913 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8914 ;;
8915esac
8916
8917fi
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8919$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8920sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8921test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8922
8923
8924
8925
8926
8927
8928
8929if test -n "$ac_tool_prefix"; then
8930 for ac_prog in ar
8931 do
8932 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8933set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935$as_echo_n "checking for $ac_word... " >&6; }
8936if ${ac_cv_prog_AR+:} false; then :
8937 $as_echo_n "(cached) " >&6
8938else
8939 if test -n "$AR"; then
8940 ac_cv_prog_AR="$AR" # Let the user override the test.
8941else
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8949 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951 break 2
8952 fi
8953done
8954 done
8955IFS=$as_save_IFS
8956
8957fi
8958fi
8959AR=$ac_cv_prog_AR
8960if test -n "$AR"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8962$as_echo "$AR" >&6; }
8963else
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965$as_echo "no" >&6; }
8966fi
8967
8968
8969 test -n "$AR" && break
8970 done
8971fi
8972if test -z "$AR"; then
8973 ac_ct_AR=$AR
8974 for ac_prog in ar
8975do
8976 # Extract the first word of "$ac_prog", so it can be a program name with args.
8977set dummy $ac_prog; ac_word=$2
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979$as_echo_n "checking for $ac_word... " >&6; }
8980if ${ac_cv_prog_ac_ct_AR+:} false; then :
8981 $as_echo_n "(cached) " >&6
8982else
8983 if test -n "$ac_ct_AR"; then
8984 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_ac_ct_AR="$ac_prog"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8996 fi
8997done
8998 done
8999IFS=$as_save_IFS
9000
9001fi
9002fi
9003ac_ct_AR=$ac_cv_prog_ac_ct_AR
9004if test -n "$ac_ct_AR"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9006$as_echo "$ac_ct_AR" >&6; }
9007else
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
9010fi
9011
9012
9013 test -n "$ac_ct_AR" && break
9014done
9015
9016 if test "x$ac_ct_AR" = x; then
9017 AR="false"
9018 else
9019 case $cross_compiling:$ac_tool_warned in
9020yes:)
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9022$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9023ac_tool_warned=yes ;;
9024esac
9025 AR=$ac_ct_AR
9026 fi
9027fi
9028
9029: ${AR=ar}
9030: ${AR_FLAGS=cru}
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9043$as_echo_n "checking for archiver @FILE support... " >&6; }
9044if ${lt_cv_ar_at_file+:} false; then :
9045 $as_echo_n "(cached) " >&6
9046else
9047 lt_cv_ar_at_file=no
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049/* end confdefs.h. */
9050
9051int main (void)
9052{
9053
9054 ;
9055 return 0;
9056}
9057_ACEOF
9058if ac_fn_c_try_compile "$LINENO"; then :
9059 echo conftest.$ac_objext > conftest.lst
9060 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9062 (eval $lt_ar_try) 2>&5
9063 ac_status=$?
9064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9065 test $ac_status = 0; }
9066 if test 0 -eq "$ac_status"; then
9067 # Ensure the archiver fails upon bogus file names.
9068 rm -f conftest.$ac_objext libconftest.a
9069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9070 (eval $lt_ar_try) 2>&5
9071 ac_status=$?
9072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9073 test $ac_status = 0; }
9074 if test 0 -ne "$ac_status"; then
9075 lt_cv_ar_at_file=@
9076 fi
9077 fi
9078 rm -f conftest.* libconftest.a
9079
9080fi
9081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082
9083fi
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9085$as_echo "$lt_cv_ar_at_file" >&6; }
9086
9087if test no = "$lt_cv_ar_at_file"; then
9088 archiver_list_spec=
9089else
9090 archiver_list_spec=$lt_cv_ar_at_file
9091fi
9092
9093
9094
9095
9096
9097
9098
9099if test -n "$ac_tool_prefix"; then
9100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9101set dummy ${ac_tool_prefix}strip; ac_word=$2
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if ${ac_cv_prog_STRIP+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106else
9107 if test -n "$STRIP"; then
9108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9109else
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9117 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9119 break 2
9120 fi
9121done
9122 done
9123IFS=$as_save_IFS
9124
9125fi
9126fi
9127STRIP=$ac_cv_prog_STRIP
9128if test -n "$STRIP"; then
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9130$as_echo "$STRIP" >&6; }
9131else
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
9134fi
9135
9136
9137fi
9138if test -z "$ac_cv_prog_STRIP"; then
9139 ac_ct_STRIP=$STRIP
9140 # Extract the first word of "strip", so it can be a program name with args.
9141set dummy strip; ac_word=$2
9142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9143$as_echo_n "checking for $ac_word... " >&6; }
9144if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9145 $as_echo_n "(cached) " >&6
9146else
9147 if test -n "$ac_ct_STRIP"; then
9148 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9149else
9150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9151for as_dir in $PATH
9152do
9153 IFS=$as_save_IFS
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157 ac_cv_prog_ac_ct_STRIP="strip"
9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9159 break 2
9160 fi
9161done
9162 done
9163IFS=$as_save_IFS
9164
9165fi
9166fi
9167ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9168if test -n "$ac_ct_STRIP"; then
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9170$as_echo "$ac_ct_STRIP" >&6; }
9171else
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9173$as_echo "no" >&6; }
9174fi
9175
9176 if test "x$ac_ct_STRIP" = x; then
9177 STRIP=":"
9178 else
9179 case $cross_compiling:$ac_tool_warned in
9180yes:)
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9183ac_tool_warned=yes ;;
9184esac
9185 STRIP=$ac_ct_STRIP
9186 fi
9187else
9188 STRIP="$ac_cv_prog_STRIP"
9189fi
9190
9191test -z "$STRIP" && STRIP=:
9192
9193
9194
9195
9196
9197
9198if test -n "$ac_tool_prefix"; then
9199 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9200set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9202$as_echo_n "checking for $ac_word... " >&6; }
9203if ${ac_cv_prog_RANLIB+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205else
9206 if test -n "$RANLIB"; then
9207 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9208else
9209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210for as_dir in $PATH
9211do
9212 IFS=$as_save_IFS
9213 test -z "$as_dir" && as_dir=.
9214 for ac_exec_ext in '' $ac_executable_extensions; do
9215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218 break 2
9219 fi
9220done
9221 done
9222IFS=$as_save_IFS
9223
9224fi
9225fi
9226RANLIB=$ac_cv_prog_RANLIB
9227if test -n "$RANLIB"; then
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9229$as_echo "$RANLIB" >&6; }
9230else
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9232$as_echo "no" >&6; }
9233fi
9234
9235
9236fi
9237if test -z "$ac_cv_prog_RANLIB"; then
9238 ac_ct_RANLIB=$RANLIB
9239 # Extract the first word of "ranlib", so it can be a program name with args.
9240set dummy ranlib; ac_word=$2
9241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242$as_echo_n "checking for $ac_word... " >&6; }
9243if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9244 $as_echo_n "(cached) " >&6
9245else
9246 if test -n "$ac_ct_RANLIB"; then
9247 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9248else
9249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9250for as_dir in $PATH
9251do
9252 IFS=$as_save_IFS
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_ac_ct_RANLIB="ranlib"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9258 break 2
9259 fi
9260done
9261 done
9262IFS=$as_save_IFS
9263
9264fi
9265fi
9266ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9267if test -n "$ac_ct_RANLIB"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9269$as_echo "$ac_ct_RANLIB" >&6; }
9270else
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272$as_echo "no" >&6; }
9273fi
9274
9275 if test "x$ac_ct_RANLIB" = x; then
9276 RANLIB=":"
9277 else
9278 case $cross_compiling:$ac_tool_warned in
9279yes:)
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9281$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9282ac_tool_warned=yes ;;
9283esac
9284 RANLIB=$ac_ct_RANLIB
9285 fi
9286else
9287 RANLIB="$ac_cv_prog_RANLIB"
9288fi
9289
9290test -z "$RANLIB" && RANLIB=:
9291
9292
9293
9294
9295
9296
9297# Determine commands to create old-style static archives.
9298old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9299old_postinstall_cmds='chmod 644 $oldlib'
9300old_postuninstall_cmds=
9301
9302if test -n "$RANLIB"; then
9303 case $host_os in
9304 bitrig* | openbsd*)
9305 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9306 ;;
9307 *)
9308 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9309 ;;
9310 esac
9311 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9312fi
9313
9314case $host_os in
9315 darwin*)
9316 lock_old_archive_extraction=yes ;;
9317 *)
9318 lock_old_archive_extraction=no ;;
9319esac
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359# If no C compiler was specified, use CC.
9360LTCC=${LTCC-"$CC"}
9361
9362# If no C compiler flags were specified, use CFLAGS.
9363LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9364
9365# Allow CC to be a program name with arguments.
9366compiler=$CC
9367
9368
9369# Check for command to grab the raw symbol name followed by C symbol from nm.
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9371$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9372if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374else
9375
9376# These are sane defaults that work on at least a few old systems.
9377# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9378
9379# Character class describing NM global symbol codes.
9380symcode='[BCDEGRST]'
9381
9382# Regexp to match symbols that can be accessed directly from C.
9383sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9384
9385# Define system-specific variables.
9386case $host_os in
9387aix*)
9388 symcode='[BCDT]'
9389 ;;
9390cygwin* | mingw* | pw32* | cegcc*)
9391 symcode='[ABCDGISTW]'
9392 ;;
9393hpux*)
9394 if test ia64 = "$host_cpu"; then
9395 symcode='[ABCDEGRST]'
9396 fi
9397 ;;
9398irix* | nonstopux*)
9399 symcode='[BCDEGRST]'
9400 ;;
9401osf*)
9402 symcode='[BCDEGQRST]'
9403 ;;
9404solaris*)
9405 symcode='[BDRT]'
9406 ;;
9407sco3.2v5*)
9408 symcode='[DT]'
9409 ;;
9410sysv4.2uw2*)
9411 symcode='[DT]'
9412 ;;
9413sysv5* | sco5v6* | unixware* | OpenUNIX*)
9414 symcode='[ABDT]'
9415 ;;
9416sysv4)
9417 symcode='[DFNSTU]'
9418 ;;
9419esac
9420
9421# If we're using GNU nm, then use its standard symbol codes.
9422case `$NM -V 2>&1` in
9423*GNU* | *'with BFD'*)
9424 symcode='[ABCDGIRSTW]' ;;
9425esac
9426
9427if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9428 # Gets list of data symbols to import.
9429 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9430 # Adjust the below global symbol transforms to fixup imported variables.
9431 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9432 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9433 lt_c_name_lib_hook="\
9434 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9435 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9436else
9437 # Disable hooks by default.
9438 lt_cv_sys_global_symbol_to_import=
9439 lt_cdecl_hook=
9440 lt_c_name_hook=
9441 lt_c_name_lib_hook=
9442fi
9443
9444# Transform an extracted symbol line into a proper C declaration.
9445# Some systems (esp. on ia64) link data and code symbols differently,
9446# so use this general approach.
9447lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9448$lt_cdecl_hook\
9449" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9450" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9451
9452# Transform an extracted symbol line into symbol name and symbol address
9453lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9454$lt_c_name_hook\
9455" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9456" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9457
9458# Transform an extracted symbol line into symbol name with lib prefix and
9459# symbol address.
9460lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9461$lt_c_name_lib_hook\
9462" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9463" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9464" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9465
9466# Handle CRLF in mingw tool chain
9467opt_cr=
9468case $build_os in
9469mingw*)
9470 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9471 ;;
9472esac
9473
9474# Try without a prefix underscore, then with it.
9475for ac_symprfx in "" "_"; do
9476
9477 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9478 symxfrm="\\1 $ac_symprfx\\2 \\2"
9479
9480 # Write the raw and C identifiers.
9481 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9482 # Fake it for dumpbin and say T for any non-static function,
9483 # D for any global variable and I for any imported variable.
9484 # Also find C++ and __fastcall symbols from MSVC++,
9485 # which start with @ or ?.
9486 lt_cv_sys_global_symbol_pipe="$AWK '"\
9487" {last_section=section; section=\$ 3};"\
9488" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9489" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9490" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9491" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9492" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9493" \$ 0!~/External *\|/{next};"\
9494" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9495" {if(hide[section]) next};"\
9496" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9497" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9498" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9499" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9500" ' prfx=^$ac_symprfx"
9501 else
9502 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9503 fi
9504 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9505
9506 # Check to see that the pipe works correctly.
9507 pipe_works=no
9508
9509 rm -f conftest*
9510 cat > conftest.$ac_ext <<_LT_EOF
9511#ifdef __cplusplus
9512extern "C" {
9513#endif
9514char nm_test_var;
9515void nm_test_func(void);
9516void nm_test_func(void){}
9517#ifdef __cplusplus
9518}
9519#endif
9520int main(){nm_test_var='a';nm_test_func();return(0);}
9521_LT_EOF
9522
9523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9524 (eval $ac_compile) 2>&5
9525 ac_status=$?
9526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9527 test $ac_status = 0; }; then
9528 # Now try to grab the symbols.
9529 nlist=conftest.nm
9530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9531 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9532 ac_status=$?
9533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9534 test $ac_status = 0; } && test -s "$nlist"; then
9535 # Try sorting and uniquifying the output.
9536 if sort "$nlist" | uniq > "$nlist"T; then
9537 mv -f "$nlist"T "$nlist"
9538 else
9539 rm -f "$nlist"T
9540 fi
9541
9542 # Make sure that we snagged all the symbols we need.
9543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9545 cat <<_LT_EOF > conftest.$ac_ext
9546/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9547#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9548/* DATA imports from DLLs on WIN32 can't be const, because runtime
9549 relocations are performed -- see ld's documentation on pseudo-relocs. */
9550# define LT_DLSYM_CONST
9551#elif defined __osf__
9552/* This system does not cope well with relocations in const data. */
9553# define LT_DLSYM_CONST
9554#else
9555# define LT_DLSYM_CONST const
9556#endif
9557
9558#ifdef __cplusplus
9559extern "C" {
9560#endif
9561
9562_LT_EOF
9563 # Now generate the symbol file.
9564 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9565
9566 cat <<_LT_EOF >> conftest.$ac_ext
9567
9568/* The mapping between symbol names and symbols. */
9569LT_DLSYM_CONST struct {
9570 const char *name;
9571 void *address;
9572}
9573lt__PROGRAM__LTX_preloaded_symbols[] =
9574{
9575 { "@PROGRAM@", (void *) 0 },
9576_LT_EOF
9577 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9578 cat <<\_LT_EOF >> conftest.$ac_ext
9579 {0, (void *) 0}
9580};
9581
9582/* This works around a problem in FreeBSD linker */
9583#ifdef FREEBSD_WORKAROUND
9584static const void *lt_preloaded_setup() {
9585 return lt__PROGRAM__LTX_preloaded_symbols;
9586}
9587#endif
9588
9589#ifdef __cplusplus
9590}
9591#endif
9592_LT_EOF
9593 # Now try linking the two files.
9594 mv -f conftest.$ac_objext conftstm.$ac_objext
9595 lt_globsym_save_LIBS=$LIBS
9596 lt_globsym_save_CFLAGS=$CFLAGS
9597 LIBS=conftstm.$ac_objext
9598 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9600 (eval $ac_link) 2>&5
9601 ac_status=$?
9602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9603 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9604 pipe_works=yes
9605 fi
9606 LIBS=$lt_globsym_save_LIBS
9607 CFLAGS=$lt_globsym_save_CFLAGS
9608 else
9609 echo "cannot find nm_test_func in $nlist" >&5
9610 fi
9611 else
9612 echo "cannot find nm_test_var in $nlist" >&5
9613 fi
9614 else
9615 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9616 fi
9617 else
9618 echo "$progname: failed program was:" >&5
9619 cat conftest.$ac_ext >&5
9620 fi
9621 rm -rf conftest* conftst*
9622
9623 # Do not use the global_symbol_pipe unless it works.
9624 if test yes = "$pipe_works"; then
9625 break
9626 else
9627 lt_cv_sys_global_symbol_pipe=
9628 fi
9629done
9630
9631fi
9632
9633if test -z "$lt_cv_sys_global_symbol_pipe"; then
9634 lt_cv_sys_global_symbol_to_cdecl=
9635fi
9636if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9638$as_echo "failed" >&6; }
9639else
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9641$as_echo "ok" >&6; }
9642fi
9643
9644# Response file support.
9645if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9646 nm_file_list_spec='@'
9647elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9648 nm_file_list_spec='@'
9649fi
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9688$as_echo_n "checking for sysroot... " >&6; }
9689
9690# Check whether --with-sysroot was given.
9691if test "${with_sysroot+set}" = set; then :
9692 withval=$with_sysroot;
9693else
9694 with_sysroot=no
9695fi
9696
9697
9698lt_sysroot=
9699case $with_sysroot in #(
9700 yes)
9701 if test yes = "$GCC"; then
9702 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9703 fi
9704 ;; #(
9705 /*)
9706 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9707 ;; #(
9708 no|'')
9709 ;; #(
9710 *)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9712$as_echo "$with_sysroot" >&6; }
9713 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9714 ;;
9715esac
9716
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9718$as_echo "${lt_sysroot:-no}" >&6; }
9719
9720
9721
9722
9723
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9725$as_echo_n "checking for a working dd... " >&6; }
9726if ${ac_cv_path_lt_DD+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728else
9729 printf 0123456789abcdef0123456789abcdef >conftest.i
9730cat conftest.i conftest.i >conftest2.i
9731: ${lt_DD:=$DD}
9732if test -z "$lt_DD"; then
9733 ac_path_lt_DD_found=false
9734 # Loop through the user's path and test for each of PROGNAME-LIST
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736for as_dir in $PATH
9737do
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
9740 for ac_prog in dd; do
9741 for ac_exec_ext in '' $ac_executable_extensions; do
9742 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9743 as_fn_executable_p "$ac_path_lt_DD" || continue
9744if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9745 cmp -s conftest.i conftest.out \
9746 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9747fi
9748 $ac_path_lt_DD_found && break 3
9749 done
9750 done
9751 done
9752IFS=$as_save_IFS
9753 if test -z "$ac_cv_path_lt_DD"; then
9754 :
9755 fi
9756else
9757 ac_cv_path_lt_DD=$lt_DD
9758fi
9759
9760rm -f conftest.i conftest2.i conftest.out
9761fi
9762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9763$as_echo "$ac_cv_path_lt_DD" >&6; }
9764
9765
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9767$as_echo_n "checking how to truncate binary pipes... " >&6; }
9768if ${lt_cv_truncate_bin+:} false; then :
9769 $as_echo_n "(cached) " >&6
9770else
9771 printf 0123456789abcdef0123456789abcdef >conftest.i
9772cat conftest.i conftest.i >conftest2.i
9773lt_cv_truncate_bin=
9774if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9775 cmp -s conftest.i conftest.out \
9776 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9777fi
9778rm -f conftest.i conftest2.i conftest.out
9779test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9780fi
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9782$as_echo "$lt_cv_truncate_bin" >&6; }
9783
9784
9785
9786
9787
9788
9789
9790# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9791func_cc_basename ()
9792{
9793 for cc_temp in $*""; do
9794 case $cc_temp in
9795 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9796 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9797 \-*) ;;
9798 *) break;;
9799 esac
9800 done
9801 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9802}
9803
9804# Check whether --enable-libtool-lock was given.
9805if test "${enable_libtool_lock+set}" = set; then :
9806 enableval=$enable_libtool_lock;
9807fi
9808
9809test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9810
9811# Some flags need to be propagated to the compiler or linker for good
9812# libtool support.
9813case $host in
9814ia64-*-hpux*)
9815 # Find out what ABI is being produced by ac_compile, and set mode
9816 # options accordingly.
9817 echo 'int i;' > conftest.$ac_ext
9818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9819 (eval $ac_compile) 2>&5
9820 ac_status=$?
9821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9822 test $ac_status = 0; }; then
9823 case `/usr/bin/file conftest.$ac_objext` in
9824 *ELF-32*)
9825 HPUX_IA64_MODE=32
9826 ;;
9827 *ELF-64*)
9828 HPUX_IA64_MODE=64
9829 ;;
9830 esac
9831 fi
9832 rm -rf conftest*
9833 ;;
9834*-*-irix6*)
9835 # Find out what ABI is being produced by ac_compile, and set linker
9836 # options accordingly.
9837 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9839 (eval $ac_compile) 2>&5
9840 ac_status=$?
9841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9842 test $ac_status = 0; }; then
9843 if test yes = "$lt_cv_prog_gnu_ld"; then
9844 case `/usr/bin/file conftest.$ac_objext` in
9845 *32-bit*)
9846 LD="${LD-ld} -melf32bsmip"
9847 ;;
9848 *N32*)
9849 LD="${LD-ld} -melf32bmipn32"
9850 ;;
9851 *64-bit*)
9852 LD="${LD-ld} -melf64bmip"
9853 ;;
9854 esac
9855 else
9856 case `/usr/bin/file conftest.$ac_objext` in
9857 *32-bit*)
9858 LD="${LD-ld} -32"
9859 ;;
9860 *N32*)
9861 LD="${LD-ld} -n32"
9862 ;;
9863 *64-bit*)
9864 LD="${LD-ld} -64"
9865 ;;
9866 esac
9867 fi
9868 fi
9869 rm -rf conftest*
9870 ;;
9871
9872mips64*-*linux*)
9873 # Find out what ABI is being produced by ac_compile, and set linker
9874 # options accordingly.
9875 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9877 (eval $ac_compile) 2>&5
9878 ac_status=$?
9879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9880 test $ac_status = 0; }; then
9881 emul=elf
9882 case `/usr/bin/file conftest.$ac_objext` in
9883 *32-bit*)
9884 emul="${emul}32"
9885 ;;
9886 *64-bit*)
9887 emul="${emul}64"
9888 ;;
9889 esac
9890 case `/usr/bin/file conftest.$ac_objext` in
9891 *MSB*)
9892 emul="${emul}btsmip"
9893 ;;
9894 *LSB*)
9895 emul="${emul}ltsmip"
9896 ;;
9897 esac
9898 case `/usr/bin/file conftest.$ac_objext` in
9899 *N32*)
9900 emul="${emul}n32"
9901 ;;
9902 esac
9903 LD="${LD-ld} -m $emul"
9904 fi
9905 rm -rf conftest*
9906 ;;
9907
9908x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9909s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9910 # Find out what ABI is being produced by ac_compile, and set linker
9911 # options accordingly. Note that the listed cases only cover the
9912 # situations where additional linker options are needed (such as when
9913 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9914 # vice versa); the common cases where no linker options are needed do
9915 # not appear in the list.
9916 echo 'int i;' > conftest.$ac_ext
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9918 (eval $ac_compile) 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; }; then
9922 case `/usr/bin/file conftest.o` in
9923 *32-bit*)
9924 case $host in
9925 x86_64-*kfreebsd*-gnu)
9926 LD="${LD-ld} -m elf_i386_fbsd"
9927 ;;
9928 x86_64-*linux*)
9929 case `/usr/bin/file conftest.o` in
9930 *x86-64*)
9931 LD="${LD-ld} -m elf32_x86_64"
9932 ;;
9933 *)
9934 LD="${LD-ld} -m elf_i386"
9935 ;;
9936 esac
9937 ;;
9938 powerpc64le-*linux*)
9939 LD="${LD-ld} -m elf32lppclinux"
9940 ;;
9941 powerpc64-*linux*)
9942 LD="${LD-ld} -m elf32ppclinux"
9943 ;;
9944 s390x-*linux*)
9945 LD="${LD-ld} -m elf_s390"
9946 ;;
9947 sparc64-*linux*)
9948 LD="${LD-ld} -m elf32_sparc"
9949 ;;
9950 esac
9951 ;;
9952 *64-bit*)
9953 case $host in
9954 x86_64-*kfreebsd*-gnu)
9955 LD="${LD-ld} -m elf_x86_64_fbsd"
9956 ;;
9957 x86_64-*linux*)
9958 LD="${LD-ld} -m elf_x86_64"
9959 ;;
9960 powerpcle-*linux*)
9961 LD="${LD-ld} -m elf64lppc"
9962 ;;
9963 powerpc-*linux*)
9964 LD="${LD-ld} -m elf64ppc"
9965 ;;
9966 s390*-*linux*|s390*-*tpf*)
9967 LD="${LD-ld} -m elf64_s390"
9968 ;;
9969 sparc*-*linux*)
9970 LD="${LD-ld} -m elf64_sparc"
9971 ;;
9972 esac
9973 ;;
9974 esac
9975 fi
9976 rm -rf conftest*
9977 ;;
9978
9979*-*-sco3.2v5*)
9980 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9981 SAVE_CFLAGS=$CFLAGS
9982 CFLAGS="$CFLAGS -belf"
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9984$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9985if ${lt_cv_cc_needs_belf+:} false; then :
9986 $as_echo_n "(cached) " >&6
9987else
9988 ac_ext=c
9989ac_cpp='$CPP $CPPFLAGS'
9990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9992ac_compiler_gnu=$ac_cv_c_compiler_gnu
9993
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h. */
9996
9997int main (void)
9998{
9999
10000 ;
10001 return 0;
10002}
10003_ACEOF
10004if ac_fn_c_try_link "$LINENO"; then :
10005 lt_cv_cc_needs_belf=yes
10006else
10007 lt_cv_cc_needs_belf=no
10008fi
10009rm -f core conftest.err conftest.$ac_objext \
10010 conftest$ac_exeext conftest.$ac_ext
10011 ac_ext=c
10012ac_cpp='$CPP $CPPFLAGS'
10013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10015ac_compiler_gnu=$ac_cv_c_compiler_gnu
10016
10017fi
10018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10019$as_echo "$lt_cv_cc_needs_belf" >&6; }
10020 if test yes != "$lt_cv_cc_needs_belf"; then
10021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10022 CFLAGS=$SAVE_CFLAGS
10023 fi
10024 ;;
10025*-*solaris*)
10026 # Find out what ABI is being produced by ac_compile, and set linker
10027 # options accordingly.
10028 echo 'int i;' > conftest.$ac_ext
10029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10030 (eval $ac_compile) 2>&5
10031 ac_status=$?
10032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10033 test $ac_status = 0; }; then
10034 case `/usr/bin/file conftest.o` in
10035 *64-bit*)
10036 case $lt_cv_prog_gnu_ld in
10037 yes*)
10038 case $host in
10039 i?86-*-solaris*|x86_64-*-solaris*)
10040 LD="${LD-ld} -m elf_x86_64"
10041 ;;
10042 sparc*-*-solaris*)
10043 LD="${LD-ld} -m elf64_sparc"
10044 ;;
10045 esac
10046 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10047 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10048 LD=${LD-ld}_sol2
10049 fi
10050 ;;
10051 *)
10052 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10053 LD="${LD-ld} -64"
10054 fi
10055 ;;
10056 esac
10057 ;;
10058 esac
10059 fi
10060 rm -rf conftest*
10061 ;;
10062esac
10063
10064need_locks=$enable_libtool_lock
10065
10066if test -n "$ac_tool_prefix"; then
10067 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10068set dummy ${ac_tool_prefix}mt; ac_word=$2
10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10070$as_echo_n "checking for $ac_word... " >&6; }
10071if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10072 $as_echo_n "(cached) " >&6
10073else
10074 if test -n "$MANIFEST_TOOL"; then
10075 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10076else
10077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078for as_dir in $PATH
10079do
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10084 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10087 fi
10088done
10089 done
10090IFS=$as_save_IFS
10091
10092fi
10093fi
10094MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10095if test -n "$MANIFEST_TOOL"; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10097$as_echo "$MANIFEST_TOOL" >&6; }
10098else
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100$as_echo "no" >&6; }
10101fi
10102
10103
10104fi
10105if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10106 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10107 # Extract the first word of "mt", so it can be a program name with args.
10108set dummy mt; ac_word=$2
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10110$as_echo_n "checking for $ac_word... " >&6; }
10111if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10112 $as_echo_n "(cached) " >&6
10113else
10114 if test -n "$ac_ct_MANIFEST_TOOL"; then
10115 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10116else
10117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10118for as_dir in $PATH
10119do
10120 IFS=$as_save_IFS
10121 test -z "$as_dir" && as_dir=.
10122 for ac_exec_ext in '' $ac_executable_extensions; do
10123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10124 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10126 break 2
10127 fi
10128done
10129 done
10130IFS=$as_save_IFS
10131
10132fi
10133fi
10134ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10135if test -n "$ac_ct_MANIFEST_TOOL"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10137$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10138else
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140$as_echo "no" >&6; }
10141fi
10142
10143 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10144 MANIFEST_TOOL=":"
10145 else
10146 case $cross_compiling:$ac_tool_warned in
10147yes:)
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10150ac_tool_warned=yes ;;
10151esac
10152 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10153 fi
10154else
10155 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10156fi
10157
10158test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10160$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10161if ${lt_cv_path_mainfest_tool+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163else
10164 lt_cv_path_mainfest_tool=no
10165 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10166 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10167 cat conftest.err >&5
10168 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10169 lt_cv_path_mainfest_tool=yes
10170 fi
10171 rm -f conftest*
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10174$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10175if test yes != "$lt_cv_path_mainfest_tool"; then
10176 MANIFEST_TOOL=:
10177fi
10178
10179
10180
10181
10182
10183
10184 case $host_os in
10185 rhapsody* | darwin*)
10186 if test -n "$ac_tool_prefix"; then
10187 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10188set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190$as_echo_n "checking for $ac_word... " >&6; }
10191if ${ac_cv_prog_DSYMUTIL+:} false; then :
10192 $as_echo_n "(cached) " >&6
10193else
10194 if test -n "$DSYMUTIL"; then
10195 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10196else
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10204 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209 done
10210IFS=$as_save_IFS
10211
10212fi
10213fi
10214DSYMUTIL=$ac_cv_prog_DSYMUTIL
10215if test -n "$DSYMUTIL"; then
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10217$as_echo "$DSYMUTIL" >&6; }
10218else
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
10221fi
10222
10223
10224fi
10225if test -z "$ac_cv_prog_DSYMUTIL"; then
10226 ac_ct_DSYMUTIL=$DSYMUTIL
10227 # Extract the first word of "dsymutil", so it can be a program name with args.
10228set dummy dsymutil; ac_word=$2
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230$as_echo_n "checking for $ac_word... " >&6; }
10231if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233else
10234 if test -n "$ac_ct_DSYMUTIL"; then
10235 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10236else
10237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10244 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246 break 2
10247 fi
10248done
10249 done
10250IFS=$as_save_IFS
10251
10252fi
10253fi
10254ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10255if test -n "$ac_ct_DSYMUTIL"; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10257$as_echo "$ac_ct_DSYMUTIL" >&6; }
10258else
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260$as_echo "no" >&6; }
10261fi
10262
10263 if test "x$ac_ct_DSYMUTIL" = x; then
10264 DSYMUTIL=":"
10265 else
10266 case $cross_compiling:$ac_tool_warned in
10267yes:)
10268{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10269$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10270ac_tool_warned=yes ;;
10271esac
10272 DSYMUTIL=$ac_ct_DSYMUTIL
10273 fi
10274else
10275 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10276fi
10277
10278 if test -n "$ac_tool_prefix"; then
10279 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10280set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282$as_echo_n "checking for $ac_word... " >&6; }
10283if ${ac_cv_prog_NMEDIT+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285else
10286 if test -n "$NMEDIT"; then
10287 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10288else
10289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290for as_dir in $PATH
10291do
10292 IFS=$as_save_IFS
10293 test -z "$as_dir" && as_dir=.
10294 for ac_exec_ext in '' $ac_executable_extensions; do
10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10296 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298 break 2
10299 fi
10300done
10301 done
10302IFS=$as_save_IFS
10303
10304fi
10305fi
10306NMEDIT=$ac_cv_prog_NMEDIT
10307if test -n "$NMEDIT"; then
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10309$as_echo "$NMEDIT" >&6; }
10310else
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312$as_echo "no" >&6; }
10313fi
10314
10315
10316fi
10317if test -z "$ac_cv_prog_NMEDIT"; then
10318 ac_ct_NMEDIT=$NMEDIT
10319 # Extract the first word of "nmedit", so it can be a program name with args.
10320set dummy nmedit; ac_word=$2
10321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322$as_echo_n "checking for $ac_word... " >&6; }
10323if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10324 $as_echo_n "(cached) " >&6
10325else
10326 if test -n "$ac_ct_NMEDIT"; then
10327 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10328else
10329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330for as_dir in $PATH
10331do
10332 IFS=$as_save_IFS
10333 test -z "$as_dir" && as_dir=.
10334 for ac_exec_ext in '' $ac_executable_extensions; do
10335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10336 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338 break 2
10339 fi
10340done
10341 done
10342IFS=$as_save_IFS
10343
10344fi
10345fi
10346ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10347if test -n "$ac_ct_NMEDIT"; then
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10349$as_echo "$ac_ct_NMEDIT" >&6; }
10350else
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352$as_echo "no" >&6; }
10353fi
10354
10355 if test "x$ac_ct_NMEDIT" = x; then
10356 NMEDIT=":"
10357 else
10358 case $cross_compiling:$ac_tool_warned in
10359yes:)
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10362ac_tool_warned=yes ;;
10363esac
10364 NMEDIT=$ac_ct_NMEDIT
10365 fi
10366else
10367 NMEDIT="$ac_cv_prog_NMEDIT"
10368fi
10369
10370 if test -n "$ac_tool_prefix"; then
10371 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10372set dummy ${ac_tool_prefix}lipo; ac_word=$2
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374$as_echo_n "checking for $ac_word... " >&6; }
10375if ${ac_cv_prog_LIPO+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377else
10378 if test -n "$LIPO"; then
10379 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10380else
10381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382for as_dir in $PATH
10383do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
10386 for ac_exec_ext in '' $ac_executable_extensions; do
10387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10388 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390 break 2
10391 fi
10392done
10393 done
10394IFS=$as_save_IFS
10395
10396fi
10397fi
10398LIPO=$ac_cv_prog_LIPO
10399if test -n "$LIPO"; then
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10401$as_echo "$LIPO" >&6; }
10402else
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404$as_echo "no" >&6; }
10405fi
10406
10407
10408fi
10409if test -z "$ac_cv_prog_LIPO"; then
10410 ac_ct_LIPO=$LIPO
10411 # Extract the first word of "lipo", so it can be a program name with args.
10412set dummy lipo; ac_word=$2
10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414$as_echo_n "checking for $ac_word... " >&6; }
10415if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417else
10418 if test -n "$ac_ct_LIPO"; then
10419 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10420else
10421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422for as_dir in $PATH
10423do
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10428 ac_cv_prog_ac_ct_LIPO="lipo"
10429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430 break 2
10431 fi
10432done
10433 done
10434IFS=$as_save_IFS
10435
10436fi
10437fi
10438ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10439if test -n "$ac_ct_LIPO"; then
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10441$as_echo "$ac_ct_LIPO" >&6; }
10442else
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444$as_echo "no" >&6; }
10445fi
10446
10447 if test "x$ac_ct_LIPO" = x; then
10448 LIPO=":"
10449 else
10450 case $cross_compiling:$ac_tool_warned in
10451yes:)
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10453$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10454ac_tool_warned=yes ;;
10455esac
10456 LIPO=$ac_ct_LIPO
10457 fi
10458else
10459 LIPO="$ac_cv_prog_LIPO"
10460fi
10461
10462 if test -n "$ac_tool_prefix"; then
10463 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10464set dummy ${ac_tool_prefix}otool; ac_word=$2
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466$as_echo_n "checking for $ac_word... " >&6; }
10467if ${ac_cv_prog_OTOOL+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469else
10470 if test -n "$OTOOL"; then
10471 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10472else
10473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10480 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10483 fi
10484done
10485 done
10486IFS=$as_save_IFS
10487
10488fi
10489fi
10490OTOOL=$ac_cv_prog_OTOOL
10491if test -n "$OTOOL"; then
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10493$as_echo "$OTOOL" >&6; }
10494else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496$as_echo "no" >&6; }
10497fi
10498
10499
10500fi
10501if test -z "$ac_cv_prog_OTOOL"; then
10502 ac_ct_OTOOL=$OTOOL
10503 # Extract the first word of "otool", so it can be a program name with args.
10504set dummy otool; ac_word=$2
10505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506$as_echo_n "checking for $ac_word... " >&6; }
10507if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10508 $as_echo_n "(cached) " >&6
10509else
10510 if test -n "$ac_ct_OTOOL"; then
10511 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10512else
10513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514for as_dir in $PATH
10515do
10516 IFS=$as_save_IFS
10517 test -z "$as_dir" && as_dir=.
10518 for ac_exec_ext in '' $ac_executable_extensions; do
10519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10520 ac_cv_prog_ac_ct_OTOOL="otool"
10521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522 break 2
10523 fi
10524done
10525 done
10526IFS=$as_save_IFS
10527
10528fi
10529fi
10530ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10531if test -n "$ac_ct_OTOOL"; then
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10533$as_echo "$ac_ct_OTOOL" >&6; }
10534else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536$as_echo "no" >&6; }
10537fi
10538
10539 if test "x$ac_ct_OTOOL" = x; then
10540 OTOOL=":"
10541 else
10542 case $cross_compiling:$ac_tool_warned in
10543yes:)
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10546ac_tool_warned=yes ;;
10547esac
10548 OTOOL=$ac_ct_OTOOL
10549 fi
10550else
10551 OTOOL="$ac_cv_prog_OTOOL"
10552fi
10553
10554 if test -n "$ac_tool_prefix"; then
10555 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10556set dummy ${ac_tool_prefix}otool64; ac_word=$2
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558$as_echo_n "checking for $ac_word... " >&6; }
10559if ${ac_cv_prog_OTOOL64+:} false; then :
10560 $as_echo_n "(cached) " >&6
10561else
10562 if test -n "$OTOOL64"; then
10563 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10564else
10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566for as_dir in $PATH
10567do
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
10570 for ac_exec_ext in '' $ac_executable_extensions; do
10571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10574 break 2
10575 fi
10576done
10577 done
10578IFS=$as_save_IFS
10579
10580fi
10581fi
10582OTOOL64=$ac_cv_prog_OTOOL64
10583if test -n "$OTOOL64"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10585$as_echo "$OTOOL64" >&6; }
10586else
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588$as_echo "no" >&6; }
10589fi
10590
10591
10592fi
10593if test -z "$ac_cv_prog_OTOOL64"; then
10594 ac_ct_OTOOL64=$OTOOL64
10595 # Extract the first word of "otool64", so it can be a program name with args.
10596set dummy otool64; ac_word=$2
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10598$as_echo_n "checking for $ac_word... " >&6; }
10599if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10600 $as_echo_n "(cached) " >&6
10601else
10602 if test -n "$ac_ct_OTOOL64"; then
10603 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10604else
10605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606for as_dir in $PATH
10607do
10608 IFS=$as_save_IFS
10609 test -z "$as_dir" && as_dir=.
10610 for ac_exec_ext in '' $ac_executable_extensions; do
10611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10612 ac_cv_prog_ac_ct_OTOOL64="otool64"
10613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10614 break 2
10615 fi
10616done
10617 done
10618IFS=$as_save_IFS
10619
10620fi
10621fi
10622ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10623if test -n "$ac_ct_OTOOL64"; then
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10625$as_echo "$ac_ct_OTOOL64" >&6; }
10626else
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10628$as_echo "no" >&6; }
10629fi
10630
10631 if test "x$ac_ct_OTOOL64" = x; then
10632 OTOOL64=":"
10633 else
10634 case $cross_compiling:$ac_tool_warned in
10635yes:)
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10638ac_tool_warned=yes ;;
10639esac
10640 OTOOL64=$ac_ct_OTOOL64
10641 fi
10642else
10643 OTOOL64="$ac_cv_prog_OTOOL64"
10644fi
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10673$as_echo_n "checking for -single_module linker flag... " >&6; }
10674if ${lt_cv_apple_cc_single_mod+:} false; then :
10675 $as_echo_n "(cached) " >&6
10676else
10677 lt_cv_apple_cc_single_mod=no
10678 if test -z "$LT_MULTI_MODULE"; then
10679 # By default we will add the -single_module flag. You can override
10680 # by either setting the environment variable LT_MULTI_MODULE
10681 # non-empty at configure time, or by adding -multi_module to the
10682 # link flags.
10683 rm -rf libconftest.dylib*
10684 echo "int foo(void){return 1;}" > conftest.c
10685 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10686-dynamiclib -Wl,-single_module conftest.c" >&5
10687 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10688 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10689 _lt_result=$?
10690 # If there is a non-empty error log, and "single_module"
10691 # appears in it, assume the flag caused a linker warning
10692 if test -s conftest.err && $GREP single_module conftest.err; then
10693 cat conftest.err >&5
10694 # Otherwise, if the output was created with a 0 exit code from
10695 # the compiler, it worked.
10696 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10697 lt_cv_apple_cc_single_mod=yes
10698 else
10699 cat conftest.err >&5
10700 fi
10701 rm -rf libconftest.dylib*
10702 rm -f conftest.*
10703 fi
10704fi
10705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10706$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10707
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10709$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10710if ${lt_cv_ld_exported_symbols_list+:} false; then :
10711 $as_echo_n "(cached) " >&6
10712else
10713 lt_cv_ld_exported_symbols_list=no
10714 save_LDFLAGS=$LDFLAGS
10715 echo "_main" > conftest.sym
10716 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10718/* end confdefs.h. */
10719
10720int main (void)
10721{
10722
10723 ;
10724 return 0;
10725}
10726_ACEOF
10727if ac_fn_c_try_link "$LINENO"; then :
10728 lt_cv_ld_exported_symbols_list=yes
10729else
10730 lt_cv_ld_exported_symbols_list=no
10731fi
10732rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LDFLAGS=$save_LDFLAGS
10735
10736fi
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10738$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10739
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10741$as_echo_n "checking for -force_load linker flag... " >&6; }
10742if ${lt_cv_ld_force_load+:} false; then :
10743 $as_echo_n "(cached) " >&6
10744else
10745 lt_cv_ld_force_load=no
10746 cat > conftest.c << _LT_EOF
10747int forced_loaded() { return 2;}
10748_LT_EOF
10749 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10750 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10751 echo "$AR cru libconftest.a conftest.o" >&5
10752 $AR cru libconftest.a conftest.o 2>&5
10753 echo "$RANLIB libconftest.a" >&5
10754 $RANLIB libconftest.a 2>&5
10755 cat > conftest.c << _LT_EOF
10756int main() { return 0;}
10757_LT_EOF
10758 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10759 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10760 _lt_result=$?
10761 if test -s conftest.err && $GREP force_load conftest.err; then
10762 cat conftest.err >&5
10763 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10764 lt_cv_ld_force_load=yes
10765 else
10766 cat conftest.err >&5
10767 fi
10768 rm -f conftest.err libconftest.a conftest conftest.c
10769 rm -rf conftest.dSYM
10770
10771fi
10772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10773$as_echo "$lt_cv_ld_force_load" >&6; }
10774 case $host_os in
10775 rhapsody* | darwin1.[012])
10776 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10777 darwin1.*)
10778 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10779 darwin*) # darwin 5.x on
10780 # if running on 10.5 or later, the deployment target defaults
10781 # to the OS version, if on x86, and 10.4, the deployment
10782 # target defaults to 10.4. Don't you love it?
10783 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10784 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10785 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10786 10.[012][,.]*)
10787 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10788 10.*)
10789 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10790 esac
10791 ;;
10792 esac
10793 if test yes = "$lt_cv_apple_cc_single_mod"; then
10794 _lt_dar_single_mod='$single_module'
10795 fi
10796 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10797 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10798 else
10799 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10800 fi
10801 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10802 _lt_dsymutil='~$DSYMUTIL $lib || :'
10803 else
10804 _lt_dsymutil=
10805 fi
10806 ;;
10807 esac
10808
10809# func_munge_path_list VARIABLE PATH
10810# -----------------------------------
10811# VARIABLE is name of variable containing _space_ separated list of
10812# directories to be munged by the contents of PATH, which is string
10813# having a format:
10814# "DIR[:DIR]:"
10815# string "DIR[ DIR]" will be prepended to VARIABLE
10816# ":DIR[:DIR]"
10817# string "DIR[ DIR]" will be appended to VARIABLE
10818# "DIRP[:DIRP]::[DIRA:]DIRA"
10819# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10820# "DIRA[ DIRA]" will be appended to VARIABLE
10821# "DIR[:DIR]"
10822# VARIABLE will be replaced by "DIR[ DIR]"
10823func_munge_path_list ()
10824{
10825 case x$2 in
10826 x)
10827 ;;
10828 *:)
10829 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10830 ;;
10831 x:*)
10832 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10833 ;;
10834 *::*)
10835 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10836 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10837 ;;
10838 *)
10839 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10840 ;;
10841 esac
10842}
10843
Alex Deymo486467e2017-12-19 19:04:07 +010010844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10845$as_echo_n "checking for ANSI C header files... " >&6; }
10846if ${ac_cv_header_stdc+:} false; then :
10847 $as_echo_n "(cached) " >&6
10848else
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850/* end confdefs.h. */
10851#include <stdlib.h>
10852#include <stdarg.h>
10853#include <string.h>
10854#include <float.h>
10855
10856int main (void)
10857{
10858
10859 ;
10860 return 0;
10861}
10862_ACEOF
10863if ac_fn_c_try_compile "$LINENO"; then :
10864 ac_cv_header_stdc=yes
10865else
10866 ac_cv_header_stdc=no
10867fi
10868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869
10870if test $ac_cv_header_stdc = yes; then
10871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10873/* end confdefs.h. */
10874#include <string.h>
10875
10876_ACEOF
10877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10878 $EGREP "memchr" >/dev/null 2>&1; then :
10879
10880else
10881 ac_cv_header_stdc=no
10882fi
10883rm -f conftest*
10884
10885fi
10886
10887if test $ac_cv_header_stdc = yes; then
10888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890/* end confdefs.h. */
10891#include <stdlib.h>
10892
10893_ACEOF
10894if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10895 $EGREP "free" >/dev/null 2>&1; then :
10896
10897else
10898 ac_cv_header_stdc=no
10899fi
10900rm -f conftest*
10901
10902fi
10903
10904if test $ac_cv_header_stdc = yes; then
10905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10906 if test "$cross_compiling" = yes; then :
10907 :
10908else
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910/* end confdefs.h. */
10911#include <ctype.h>
10912#include <stdlib.h>
10913#if ((' ' & 0x0FF) == 0x020)
10914# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10915# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10916#else
10917# define ISLOWER(c) \
10918 (('a' <= (c) && (c) <= 'i') \
10919 || ('j' <= (c) && (c) <= 'r') \
10920 || ('s' <= (c) && (c) <= 'z'))
10921# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10922#endif
10923
10924#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10925int
10926main ()
10927{
10928 int i;
10929 for (i = 0; i < 256; i++)
10930 if (XOR (islower (i), ISLOWER (i))
10931 || toupper (i) != TOUPPER (i))
10932 return 2;
10933 return 0;
10934}
10935_ACEOF
10936if ac_fn_c_try_run "$LINENO"; then :
10937
10938else
10939 ac_cv_header_stdc=no
10940fi
10941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10942 conftest.$ac_objext conftest.beam conftest.$ac_ext
10943fi
10944
10945fi
10946fi
10947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10948$as_echo "$ac_cv_header_stdc" >&6; }
10949if test $ac_cv_header_stdc = yes; then
10950
10951$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10952
10953fi
10954
10955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10956for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10957 inttypes.h stdint.h unistd.h
10958do :
10959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10960ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10961"
10962if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10963 cat >>confdefs.h <<_ACEOF
10964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10965_ACEOF
10966
10967fi
10968
10969done
10970
10971
Elliott Hughes82be86d2017-09-20 17:00:17 -070010972for ac_header in dlfcn.h
10973do :
10974 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10975"
10976if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10977 cat >>confdefs.h <<_ACEOF
10978#define HAVE_DLFCN_H 1
10979_ACEOF
10980
10981fi
10982
10983done
10984
10985# ------------------------------------ #
10986# Determine libtool default behavior #
10987# ------------------------------------ #
10988
10989#
10990# Default behavior is to enable shared and static libraries on systems
10991# where libtool knows how to build both library versions, and does not
10992# require separate configuration and build runs for each flavor.
10993#
10994
10995xc_lt_want_enable_shared='yes'
10996xc_lt_want_enable_static='yes'
10997
10998#
10999# User may have disabled shared or static libraries.
11000#
11001case "x$enable_shared" in # (
11002 xno)
11003 xc_lt_want_enable_shared='no'
11004 ;;
11005esac
11006case "x$enable_static" in # (
11007 xno)
11008 xc_lt_want_enable_static='no'
11009 ;;
11010esac
11011if test "x$xc_lt_want_enable_shared" = 'xno' &&
11012 test "x$xc_lt_want_enable_static" = 'xno'; then
11013 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11014fi
11015
11016#
11017# Default behavior on systems that require independent configuration
11018# and build runs for shared and static is to enable shared libraries
11019# and disable static ones. On these systems option '--disable-shared'
11020# must be used in order to build a proper static library.
11021#
11022
11023if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11024 test "x$xc_lt_want_enable_static" = 'xyes'; then
11025 case $host_os in # (
11026 pw32* | cegcc* | os2* | aix*)
11027 xc_lt_want_enable_static='no'
11028 ;;
11029 esac
11030fi
11031
11032#
11033# Make libtool aware of current shared and static library preferences
11034# taking in account that, depending on host characteristics, libtool
11035# may modify these option preferences later in this configure script.
11036#
11037
11038enable_shared=$xc_lt_want_enable_shared
11039enable_static=$xc_lt_want_enable_static
11040
11041#
11042# Default behavior is to build PIC objects for shared libraries and
11043# non-PIC objects for static libraries.
11044#
11045
11046xc_lt_want_with_pic='default'
11047
11048#
11049# User may have specified PIC preference.
11050#
11051
11052case "x$with_pic" in # ((
11053 xno)
11054 xc_lt_want_with_pic='no'
11055 ;;
11056 xyes)
11057 xc_lt_want_with_pic='yes'
11058 ;;
11059esac
11060
11061#
11062# Default behavior on some systems where building a shared library out
11063# of non-PIC compiled objects will fail with following linker error
11064# "relocation R_X86_64_32 can not be used when making a shared object"
11065# is to build PIC objects even for static libraries. This behavior may
11066# be overridden using 'configure --disable-shared --without-pic'.
11067#
11068
11069if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11070 case $host_cpu in # (
11071 x86_64 | amd64 | ia64)
11072 case $host_os in # (
11073 linux* | freebsd*)
11074 xc_lt_want_with_pic='yes'
11075 ;;
11076 esac
11077 ;;
11078 esac
11079fi
11080
11081#
11082# Make libtool aware of current PIC preference taking in account that,
11083# depending on host characteristics, libtool may modify PIC default
11084# behavior to fit host system idiosyncrasies later in this script.
11085#
11086
11087with_pic=$xc_lt_want_with_pic
11088
11089## ----------------------- ##
11090## Start of libtool code ##
11091## ----------------------- ##
11092
11093
11094
11095
11096# Set options
11097enable_win32_dll=yes
11098
11099case $host in
11100*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11101 if test -n "$ac_tool_prefix"; then
11102 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11103set dummy ${ac_tool_prefix}as; ac_word=$2
11104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11105$as_echo_n "checking for $ac_word... " >&6; }
11106if ${ac_cv_prog_AS+:} false; then :
11107 $as_echo_n "(cached) " >&6
11108else
11109 if test -n "$AS"; then
11110 ac_cv_prog_AS="$AS" # Let the user override the test.
11111else
11112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11113for as_dir in $PATH
11114do
11115 IFS=$as_save_IFS
11116 test -z "$as_dir" && as_dir=.
11117 for ac_exec_ext in '' $ac_executable_extensions; do
11118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11119 ac_cv_prog_AS="${ac_tool_prefix}as"
11120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11121 break 2
11122 fi
11123done
11124 done
11125IFS=$as_save_IFS
11126
11127fi
11128fi
11129AS=$ac_cv_prog_AS
11130if test -n "$AS"; then
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11132$as_echo "$AS" >&6; }
11133else
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
11136fi
11137
11138
11139fi
11140if test -z "$ac_cv_prog_AS"; then
11141 ac_ct_AS=$AS
11142 # Extract the first word of "as", so it can be a program name with args.
11143set dummy as; ac_word=$2
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145$as_echo_n "checking for $ac_word... " >&6; }
11146if ${ac_cv_prog_ac_ct_AS+:} false; then :
11147 $as_echo_n "(cached) " >&6
11148else
11149 if test -n "$ac_ct_AS"; then
11150 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11151else
11152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $PATH
11154do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11159 ac_cv_prog_ac_ct_AS="as"
11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 break 2
11162 fi
11163done
11164 done
11165IFS=$as_save_IFS
11166
11167fi
11168fi
11169ac_ct_AS=$ac_cv_prog_ac_ct_AS
11170if test -n "$ac_ct_AS"; then
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11172$as_echo "$ac_ct_AS" >&6; }
11173else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175$as_echo "no" >&6; }
11176fi
11177
11178 if test "x$ac_ct_AS" = x; then
11179 AS="false"
11180 else
11181 case $cross_compiling:$ac_tool_warned in
11182yes:)
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11185ac_tool_warned=yes ;;
11186esac
11187 AS=$ac_ct_AS
11188 fi
11189else
11190 AS="$ac_cv_prog_AS"
11191fi
11192
11193 if test -n "$ac_tool_prefix"; then
11194 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11195set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
11198if ${ac_cv_prog_DLLTOOL+:} false; then :
11199 $as_echo_n "(cached) " >&6
11200else
11201 if test -n "$DLLTOOL"; then
11202 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11203else
11204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $PATH
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11211 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11213 break 2
11214 fi
11215done
11216 done
11217IFS=$as_save_IFS
11218
11219fi
11220fi
11221DLLTOOL=$ac_cv_prog_DLLTOOL
11222if test -n "$DLLTOOL"; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11224$as_echo "$DLLTOOL" >&6; }
11225else
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227$as_echo "no" >&6; }
11228fi
11229
11230
11231fi
11232if test -z "$ac_cv_prog_DLLTOOL"; then
11233 ac_ct_DLLTOOL=$DLLTOOL
11234 # Extract the first word of "dlltool", so it can be a program name with args.
11235set dummy dlltool; ac_word=$2
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237$as_echo_n "checking for $ac_word... " >&6; }
11238if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11239 $as_echo_n "(cached) " >&6
11240else
11241 if test -n "$ac_ct_DLLTOOL"; then
11242 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11243else
11244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245for as_dir in $PATH
11246do
11247 IFS=$as_save_IFS
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11253 break 2
11254 fi
11255done
11256 done
11257IFS=$as_save_IFS
11258
11259fi
11260fi
11261ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11262if test -n "$ac_ct_DLLTOOL"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11264$as_echo "$ac_ct_DLLTOOL" >&6; }
11265else
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11267$as_echo "no" >&6; }
11268fi
11269
11270 if test "x$ac_ct_DLLTOOL" = x; then
11271 DLLTOOL="false"
11272 else
11273 case $cross_compiling:$ac_tool_warned in
11274yes:)
11275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11277ac_tool_warned=yes ;;
11278esac
11279 DLLTOOL=$ac_ct_DLLTOOL
11280 fi
11281else
11282 DLLTOOL="$ac_cv_prog_DLLTOOL"
11283fi
11284
11285 if test -n "$ac_tool_prefix"; then
11286 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11287set dummy ${ac_tool_prefix}objdump; ac_word=$2
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289$as_echo_n "checking for $ac_word... " >&6; }
11290if ${ac_cv_prog_OBJDUMP+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292else
11293 if test -n "$OBJDUMP"; then
11294 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307done
11308 done
11309IFS=$as_save_IFS
11310
11311fi
11312fi
11313OBJDUMP=$ac_cv_prog_OBJDUMP
11314if test -n "$OBJDUMP"; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11316$as_echo "$OBJDUMP" >&6; }
11317else
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
11320fi
11321
11322
11323fi
11324if test -z "$ac_cv_prog_OBJDUMP"; then
11325 ac_ct_OBJDUMP=$OBJDUMP
11326 # Extract the first word of "objdump", so it can be a program name with args.
11327set dummy objdump; ac_word=$2
11328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329$as_echo_n "checking for $ac_word... " >&6; }
11330if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11331 $as_echo_n "(cached) " >&6
11332else
11333 if test -n "$ac_ct_OBJDUMP"; then
11334 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11335else
11336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337for as_dir in $PATH
11338do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
11342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11343 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11346 fi
11347done
11348 done
11349IFS=$as_save_IFS
11350
11351fi
11352fi
11353ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11354if test -n "$ac_ct_OBJDUMP"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11356$as_echo "$ac_ct_OBJDUMP" >&6; }
11357else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
11360fi
11361
11362 if test "x$ac_ct_OBJDUMP" = x; then
11363 OBJDUMP="false"
11364 else
11365 case $cross_compiling:$ac_tool_warned in
11366yes:)
11367{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11368$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11369ac_tool_warned=yes ;;
11370esac
11371 OBJDUMP=$ac_ct_OBJDUMP
11372 fi
11373else
11374 OBJDUMP="$ac_cv_prog_OBJDUMP"
11375fi
11376
11377 ;;
11378esac
11379
11380test -z "$AS" && AS=as
11381
11382
11383
11384
11385
11386test -z "$DLLTOOL" && DLLTOOL=dlltool
11387
11388
11389
11390
11391
11392test -z "$OBJDUMP" && OBJDUMP=objdump
11393
11394
11395
11396
11397
11398
11399
11400 enable_dlopen=no
11401
11402
11403
11404 # Check whether --enable-shared was given.
11405if test "${enable_shared+set}" = set; then :
11406 enableval=$enable_shared; p=${PACKAGE-default}
11407 case $enableval in
11408 yes) enable_shared=yes ;;
11409 no) enable_shared=no ;;
11410 *)
11411 enable_shared=no
11412 # Look at the argument we got. We use all the common list separators.
11413 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11414 for pkg in $enableval; do
11415 IFS=$lt_save_ifs
11416 if test "X$pkg" = "X$p"; then
11417 enable_shared=yes
11418 fi
11419 done
11420 IFS=$lt_save_ifs
11421 ;;
11422 esac
11423else
11424 enable_shared=yes
11425fi
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435 # Check whether --enable-static was given.
11436if test "${enable_static+set}" = set; then :
11437 enableval=$enable_static; p=${PACKAGE-default}
11438 case $enableval in
11439 yes) enable_static=yes ;;
11440 no) enable_static=no ;;
11441 *)
11442 enable_static=no
11443 # Look at the argument we got. We use all the common list separators.
11444 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11445 for pkg in $enableval; do
11446 IFS=$lt_save_ifs
11447 if test "X$pkg" = "X$p"; then
11448 enable_static=yes
11449 fi
11450 done
11451 IFS=$lt_save_ifs
11452 ;;
11453 esac
11454else
11455 enable_static=yes
11456fi
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467# Check whether --with-pic was given.
11468if test "${with_pic+set}" = set; then :
11469 withval=$with_pic; lt_p=${PACKAGE-default}
11470 case $withval in
11471 yes|no) pic_mode=$withval ;;
11472 *)
11473 pic_mode=default
11474 # Look at the argument we got. We use all the common list separators.
11475 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11476 for lt_pkg in $withval; do
11477 IFS=$lt_save_ifs
11478 if test "X$lt_pkg" = "X$lt_p"; then
11479 pic_mode=yes
11480 fi
11481 done
11482 IFS=$lt_save_ifs
11483 ;;
11484 esac
11485else
11486 pic_mode=default
11487fi
11488
11489
11490
11491
11492
11493
11494
11495
11496 # Check whether --enable-fast-install was given.
11497if test "${enable_fast_install+set}" = set; then :
11498 enableval=$enable_fast_install; p=${PACKAGE-default}
11499 case $enableval in
11500 yes) enable_fast_install=yes ;;
11501 no) enable_fast_install=no ;;
11502 *)
11503 enable_fast_install=no
11504 # Look at the argument we got. We use all the common list separators.
11505 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11506 for pkg in $enableval; do
11507 IFS=$lt_save_ifs
11508 if test "X$pkg" = "X$p"; then
11509 enable_fast_install=yes
11510 fi
11511 done
11512 IFS=$lt_save_ifs
11513 ;;
11514 esac
11515else
11516 enable_fast_install=yes
11517fi
11518
11519
11520
11521
11522
11523
11524
11525
11526 shared_archive_member_spec=
11527case $host,$enable_shared in
11528power*-*-aix[5-9]*,yes)
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11530$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11531
11532# Check whether --with-aix-soname was given.
11533if test "${with_aix_soname+set}" = set; then :
11534 withval=$with_aix_soname; case $withval in
11535 aix|svr4|both)
11536 ;;
11537 *)
11538 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11539 ;;
11540 esac
11541 lt_cv_with_aix_soname=$with_aix_soname
11542else
11543 if ${lt_cv_with_aix_soname+:} false; then :
11544 $as_echo_n "(cached) " >&6
11545else
11546 lt_cv_with_aix_soname=aix
11547fi
11548
11549 with_aix_soname=$lt_cv_with_aix_soname
11550fi
11551
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11553$as_echo "$with_aix_soname" >&6; }
11554 if test aix != "$with_aix_soname"; then
11555 # For the AIX way of multilib, we name the shared archive member
11556 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11557 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11558 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11559 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11560 if test 64 = "${OBJECT_MODE-32}"; then
11561 shared_archive_member_spec=shr_64
11562 else
11563 shared_archive_member_spec=shr
11564 fi
11565 fi
11566 ;;
11567*)
11568 with_aix_soname=aix
11569 ;;
11570esac
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581# This can be used to rebuild libtool when needed
11582LIBTOOL_DEPS=$ltmain
11583
11584# Always use our own libtool.
11585LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616test -z "$LN_S" && LN_S="ln -s"
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631if test -n "${ZSH_VERSION+set}"; then
11632 setopt NO_GLOB_SUBST
11633fi
11634
11635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11636$as_echo_n "checking for objdir... " >&6; }
11637if ${lt_cv_objdir+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639else
11640 rm -f .libs 2>/dev/null
11641mkdir .libs 2>/dev/null
11642if test -d .libs; then
11643 lt_cv_objdir=.libs
11644else
11645 # MS-DOS does not allow filenames that begin with a dot.
11646 lt_cv_objdir=_libs
11647fi
11648rmdir .libs 2>/dev/null
11649fi
11650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11651$as_echo "$lt_cv_objdir" >&6; }
11652objdir=$lt_cv_objdir
11653
11654
11655
11656
11657
11658cat >>confdefs.h <<_ACEOF
11659#define LT_OBJDIR "$lt_cv_objdir/"
11660_ACEOF
11661
11662
11663
11664
11665case $host_os in
11666aix3*)
11667 # AIX sometimes has problems with the GCC collect2 program. For some
11668 # reason, if we set the COLLECT_NAMES environment variable, the problems
11669 # vanish in a puff of smoke.
11670 if test set != "${COLLECT_NAMES+set}"; then
11671 COLLECT_NAMES=
11672 export COLLECT_NAMES
11673 fi
11674 ;;
11675esac
11676
11677# Global variables:
11678ofile=libtool
11679can_build_shared=yes
11680
11681# All known linkers require a '.a' archive for static linking (except MSVC,
11682# which needs '.lib').
11683libext=a
11684
11685with_gnu_ld=$lt_cv_prog_gnu_ld
11686
11687old_CC=$CC
11688old_CFLAGS=$CFLAGS
11689
11690# Set sane defaults for various variables
11691test -z "$CC" && CC=cc
11692test -z "$LTCC" && LTCC=$CC
11693test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11694test -z "$LD" && LD=ld
11695test -z "$ac_objext" && ac_objext=o
11696
11697func_cc_basename $compiler
11698cc_basename=$func_cc_basename_result
11699
11700
11701# Only perform the check for file, if the check method requires it
11702test -z "$MAGIC_CMD" && MAGIC_CMD=file
11703case $deplibs_check_method in
11704file_magic*)
11705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11707$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11708if ${lt_cv_path_MAGIC_CMD+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710else
11711 case $MAGIC_CMD in
11712[\\/*] | ?:[\\/]*)
11713 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11714 ;;
11715*)
11716 lt_save_MAGIC_CMD=$MAGIC_CMD
11717 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11719 for ac_dir in $ac_dummy; do
11720 IFS=$lt_save_ifs
11721 test -z "$ac_dir" && ac_dir=.
11722 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11723 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11724 if test -n "$file_magic_test_file"; then
11725 case $deplibs_check_method in
11726 "file_magic "*)
11727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11728 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11730 $EGREP "$file_magic_regex" > /dev/null; then
11731 :
11732 else
11733 cat <<_LT_EOF 1>&2
11734
11735*** Warning: the command libtool uses to detect shared libraries,
11736*** $file_magic_cmd, produces output that libtool cannot recognize.
11737*** The result is that libtool may fail to recognize shared libraries
11738*** as such. This will affect the creation of libtool libraries that
11739*** depend on shared libraries, but programs linked with such libtool
11740*** libraries will work regardless of this problem. Nevertheless, you
11741*** may want to report the problem to your system manager and/or to
11742*** bug-libtool@gnu.org
11743
11744_LT_EOF
11745 fi ;;
11746 esac
11747 fi
11748 break
11749 fi
11750 done
11751 IFS=$lt_save_ifs
11752 MAGIC_CMD=$lt_save_MAGIC_CMD
11753 ;;
11754esac
11755fi
11756
11757MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11758if test -n "$MAGIC_CMD"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11760$as_echo "$MAGIC_CMD" >&6; }
11761else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763$as_echo "no" >&6; }
11764fi
11765
11766
11767
11768
11769
11770if test -z "$lt_cv_path_MAGIC_CMD"; then
11771 if test -n "$ac_tool_prefix"; then
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11773$as_echo_n "checking for file... " >&6; }
11774if ${lt_cv_path_MAGIC_CMD+:} false; then :
11775 $as_echo_n "(cached) " >&6
11776else
11777 case $MAGIC_CMD in
11778[\\/*] | ?:[\\/]*)
11779 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11780 ;;
11781*)
11782 lt_save_MAGIC_CMD=$MAGIC_CMD
11783 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11785 for ac_dir in $ac_dummy; do
11786 IFS=$lt_save_ifs
11787 test -z "$ac_dir" && ac_dir=.
11788 if test -f "$ac_dir/file"; then
11789 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11790 if test -n "$file_magic_test_file"; then
11791 case $deplibs_check_method in
11792 "file_magic "*)
11793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11794 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11796 $EGREP "$file_magic_regex" > /dev/null; then
11797 :
11798 else
11799 cat <<_LT_EOF 1>&2
11800
11801*** Warning: the command libtool uses to detect shared libraries,
11802*** $file_magic_cmd, produces output that libtool cannot recognize.
11803*** The result is that libtool may fail to recognize shared libraries
11804*** as such. This will affect the creation of libtool libraries that
11805*** depend on shared libraries, but programs linked with such libtool
11806*** libraries will work regardless of this problem. Nevertheless, you
11807*** may want to report the problem to your system manager and/or to
11808*** bug-libtool@gnu.org
11809
11810_LT_EOF
11811 fi ;;
11812 esac
11813 fi
11814 break
11815 fi
11816 done
11817 IFS=$lt_save_ifs
11818 MAGIC_CMD=$lt_save_MAGIC_CMD
11819 ;;
11820esac
11821fi
11822
11823MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11824if test -n "$MAGIC_CMD"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11826$as_echo "$MAGIC_CMD" >&6; }
11827else
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
11830fi
11831
11832
11833 else
11834 MAGIC_CMD=:
11835 fi
11836fi
11837
11838 fi
11839 ;;
11840esac
11841
11842# Use C for the default configuration in the libtool script
11843
11844lt_save_CC=$CC
11845ac_ext=c
11846ac_cpp='$CPP $CPPFLAGS'
11847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11849ac_compiler_gnu=$ac_cv_c_compiler_gnu
11850
11851
11852# Source file extension for C test sources.
11853ac_ext=c
11854
11855# Object file extension for compiled C test sources.
11856objext=o
11857objext=$objext
11858
11859# Code to be used in simple compile tests
11860lt_simple_compile_test_code="int some_variable = 0;"
11861
11862# Code to be used in simple link tests
11863lt_simple_link_test_code='int main(){return(0);}'
11864
11865
11866
11867
11868
11869
11870
11871# If no C compiler was specified, use CC.
11872LTCC=${LTCC-"$CC"}
11873
11874# If no C compiler flags were specified, use CFLAGS.
11875LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11876
11877# Allow CC to be a program name with arguments.
11878compiler=$CC
11879
11880# Save the default compiler, since it gets overwritten when the other
11881# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11882compiler_DEFAULT=$CC
11883
11884# save warnings/boilerplate of simple test code
11885ac_outfile=conftest.$ac_objext
11886echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11887eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11888_lt_compiler_boilerplate=`cat conftest.err`
11889$RM conftest*
11890
11891ac_outfile=conftest.$ac_objext
11892echo "$lt_simple_link_test_code" >conftest.$ac_ext
11893eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11894_lt_linker_boilerplate=`cat conftest.err`
11895$RM -r conftest*
11896
11897
11898## CAVEAT EMPTOR:
11899## There is no encapsulation within the following macros, do not change
11900## the running order or otherwise move them around unless you know exactly
11901## what you are doing...
11902if test -n "$compiler"; then
11903
11904lt_prog_compiler_no_builtin_flag=
11905
11906if test yes = "$GCC"; then
11907 case $cc_basename in
11908 nvcc*)
11909 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11910 *)
11911 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11912 esac
11913
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11915$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11916if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11917 $as_echo_n "(cached) " >&6
11918else
11919 lt_cv_prog_compiler_rtti_exceptions=no
11920 ac_outfile=conftest.$ac_objext
11921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11922 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11923 # Insert the option either (1) after the last *FLAGS variable, or
11924 # (2) before a word containing "conftest.", or (3) at the end.
11925 # Note that $ac_compile itself does not contain backslashes and begins
11926 # with a dollar sign (not a hyphen), so the echo should work correctly.
11927 # The option is referenced via a variable to avoid confusing sed.
11928 lt_compile=`echo "$ac_compile" | $SED \
11929 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11931 -e 's:$: $lt_compiler_flag:'`
11932 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11933 (eval "$lt_compile" 2>conftest.err)
11934 ac_status=$?
11935 cat conftest.err >&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 if (exit $ac_status) && test -s "$ac_outfile"; then
11938 # The compiler can only warn and ignore the option if not recognized
11939 # So say no if there are warnings other than the usual output.
11940 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11942 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11943 lt_cv_prog_compiler_rtti_exceptions=yes
11944 fi
11945 fi
11946 $RM conftest*
11947
11948fi
11949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11950$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11951
11952if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11953 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11954else
11955 :
11956fi
11957
11958fi
11959
11960
11961
11962
11963
11964
11965 lt_prog_compiler_wl=
11966lt_prog_compiler_pic=
11967lt_prog_compiler_static=
11968
11969
11970 if test yes = "$GCC"; then
11971 lt_prog_compiler_wl='-Wl,'
11972 lt_prog_compiler_static='-static'
11973
11974 case $host_os in
11975 aix*)
11976 # All AIX code is PIC.
11977 if test ia64 = "$host_cpu"; then
11978 # AIX 5 now supports IA64 processor
11979 lt_prog_compiler_static='-Bstatic'
11980 fi
11981 lt_prog_compiler_pic='-fPIC'
11982 ;;
11983
11984 amigaos*)
11985 case $host_cpu in
11986 powerpc)
11987 # see comment about AmigaOS4 .so support
11988 lt_prog_compiler_pic='-fPIC'
11989 ;;
11990 m68k)
11991 # FIXME: we need at least 68020 code to build shared libraries, but
11992 # adding the '-m68020' flag to GCC prevents building anything better,
11993 # like '-m68040'.
11994 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11995 ;;
11996 esac
11997 ;;
11998
11999 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12000 # PIC is the default for these OSes.
12001 ;;
12002
12003 mingw* | cygwin* | pw32* | os2* | cegcc*)
12004 # This hack is so that the source file can tell whether it is being
12005 # built for inclusion in a dll (and should export symbols for example).
12006 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12007 # (--disable-auto-import) libraries
12008 lt_prog_compiler_pic='-DDLL_EXPORT'
12009 case $host_os in
12010 os2*)
12011 lt_prog_compiler_static='$wl-static'
12012 ;;
12013 esac
12014 ;;
12015
12016 darwin* | rhapsody*)
12017 # PIC is the default on this platform
12018 # Common symbols not allowed in MH_DYLIB files
12019 lt_prog_compiler_pic='-fno-common'
12020 ;;
12021
12022 haiku*)
12023 # PIC is the default for Haiku.
12024 # The "-static" flag exists, but is broken.
12025 lt_prog_compiler_static=
12026 ;;
12027
12028 hpux*)
12029 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12030 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12031 # sets the default TLS model and affects inlining.
12032 case $host_cpu in
12033 hppa*64*)
12034 # +Z the default
12035 ;;
12036 *)
12037 lt_prog_compiler_pic='-fPIC'
12038 ;;
12039 esac
12040 ;;
12041
12042 interix[3-9]*)
12043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12044 # Instead, we relocate shared libraries at runtime.
12045 ;;
12046
12047 msdosdjgpp*)
12048 # Just because we use GCC doesn't mean we suddenly get shared libraries
12049 # on systems that don't support them.
12050 lt_prog_compiler_can_build_shared=no
12051 enable_shared=no
12052 ;;
12053
12054 *nto* | *qnx*)
12055 # QNX uses GNU C++, but need to define -shared option too, otherwise
12056 # it will coredump.
12057 lt_prog_compiler_pic='-fPIC -shared'
12058 ;;
12059
12060 sysv4*MP*)
12061 if test -d /usr/nec; then
12062 lt_prog_compiler_pic=-Kconform_pic
12063 fi
12064 ;;
12065
12066 *)
12067 lt_prog_compiler_pic='-fPIC'
12068 ;;
12069 esac
12070
12071 case $cc_basename in
12072 nvcc*) # Cuda Compiler Driver 2.2
12073 lt_prog_compiler_wl='-Xlinker '
12074 if test -n "$lt_prog_compiler_pic"; then
12075 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12076 fi
12077 ;;
12078 esac
12079 else
12080 # PORTME Check for flag to pass linker flags through the system compiler.
12081 case $host_os in
12082 aix*)
12083 lt_prog_compiler_wl='-Wl,'
12084 if test ia64 = "$host_cpu"; then
12085 # AIX 5 now supports IA64 processor
12086 lt_prog_compiler_static='-Bstatic'
12087 else
12088 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12089 fi
12090 ;;
12091
12092 darwin* | rhapsody*)
12093 # PIC is the default on this platform
12094 # Common symbols not allowed in MH_DYLIB files
12095 lt_prog_compiler_pic='-fno-common'
12096 case $cc_basename in
12097 nagfor*)
12098 # NAG Fortran compiler
12099 lt_prog_compiler_wl='-Wl,-Wl,,'
12100 lt_prog_compiler_pic='-PIC'
12101 lt_prog_compiler_static='-Bstatic'
12102 ;;
12103 esac
12104 ;;
12105
12106 mingw* | cygwin* | pw32* | os2* | cegcc*)
12107 # This hack is so that the source file can tell whether it is being
12108 # built for inclusion in a dll (and should export symbols for example).
12109 lt_prog_compiler_pic='-DDLL_EXPORT'
12110 case $host_os in
12111 os2*)
12112 lt_prog_compiler_static='$wl-static'
12113 ;;
12114 esac
12115 ;;
12116
12117 hpux9* | hpux10* | hpux11*)
12118 lt_prog_compiler_wl='-Wl,'
12119 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12120 # not for PA HP-UX.
12121 case $host_cpu in
12122 hppa*64*|ia64*)
12123 # +Z the default
12124 ;;
12125 *)
12126 lt_prog_compiler_pic='+Z'
12127 ;;
12128 esac
12129 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12130 lt_prog_compiler_static='$wl-a ${wl}archive'
12131 ;;
12132
12133 irix5* | irix6* | nonstopux*)
12134 lt_prog_compiler_wl='-Wl,'
12135 # PIC (with -KPIC) is the default.
12136 lt_prog_compiler_static='-non_shared'
12137 ;;
12138
12139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12140 case $cc_basename in
12141 # old Intel for x86_64, which still supported -KPIC.
12142 ecc*)
12143 lt_prog_compiler_wl='-Wl,'
12144 lt_prog_compiler_pic='-KPIC'
12145 lt_prog_compiler_static='-static'
12146 ;;
12147 # icc used to be incompatible with GCC.
12148 # ICC 10 doesn't accept -KPIC any more.
12149 icc* | ifort*)
12150 lt_prog_compiler_wl='-Wl,'
12151 lt_prog_compiler_pic='-fPIC'
12152 lt_prog_compiler_static='-static'
12153 ;;
12154 # Lahey Fortran 8.1.
12155 lf95*)
12156 lt_prog_compiler_wl='-Wl,'
12157 lt_prog_compiler_pic='--shared'
12158 lt_prog_compiler_static='--static'
12159 ;;
12160 nagfor*)
12161 # NAG Fortran compiler
12162 lt_prog_compiler_wl='-Wl,-Wl,,'
12163 lt_prog_compiler_pic='-PIC'
12164 lt_prog_compiler_static='-Bstatic'
12165 ;;
12166 tcc*)
12167 # Fabrice Bellard et al's Tiny C Compiler
12168 lt_prog_compiler_wl='-Wl,'
12169 lt_prog_compiler_pic='-fPIC'
12170 lt_prog_compiler_static='-static'
12171 ;;
12172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12173 # Portland Group compilers (*not* the Pentium gcc compiler,
12174 # which looks to be a dead project)
12175 lt_prog_compiler_wl='-Wl,'
12176 lt_prog_compiler_pic='-fpic'
12177 lt_prog_compiler_static='-Bstatic'
12178 ;;
12179 ccc*)
12180 lt_prog_compiler_wl='-Wl,'
12181 # All Alpha code is PIC.
12182 lt_prog_compiler_static='-non_shared'
12183 ;;
12184 xl* | bgxl* | bgf* | mpixl*)
12185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12186 lt_prog_compiler_wl='-Wl,'
12187 lt_prog_compiler_pic='-qpic'
12188 lt_prog_compiler_static='-qstaticlink'
12189 ;;
12190 *)
12191 case `$CC -V 2>&1 | sed 5q` in
12192 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12194 lt_prog_compiler_pic='-KPIC'
12195 lt_prog_compiler_static='-Bstatic'
12196 lt_prog_compiler_wl=''
12197 ;;
12198 *Sun\ F* | *Sun*Fortran*)
12199 lt_prog_compiler_pic='-KPIC'
12200 lt_prog_compiler_static='-Bstatic'
12201 lt_prog_compiler_wl='-Qoption ld '
12202 ;;
12203 *Sun\ C*)
12204 # Sun C 5.9
12205 lt_prog_compiler_pic='-KPIC'
12206 lt_prog_compiler_static='-Bstatic'
12207 lt_prog_compiler_wl='-Wl,'
12208 ;;
12209 *Intel*\ [CF]*Compiler*)
12210 lt_prog_compiler_wl='-Wl,'
12211 lt_prog_compiler_pic='-fPIC'
12212 lt_prog_compiler_static='-static'
12213 ;;
12214 *Portland\ Group*)
12215 lt_prog_compiler_wl='-Wl,'
12216 lt_prog_compiler_pic='-fpic'
12217 lt_prog_compiler_static='-Bstatic'
12218 ;;
12219 esac
12220 ;;
12221 esac
12222 ;;
12223
12224 newsos6)
12225 lt_prog_compiler_pic='-KPIC'
12226 lt_prog_compiler_static='-Bstatic'
12227 ;;
12228
12229 *nto* | *qnx*)
12230 # QNX uses GNU C++, but need to define -shared option too, otherwise
12231 # it will coredump.
12232 lt_prog_compiler_pic='-fPIC -shared'
12233 ;;
12234
12235 osf3* | osf4* | osf5*)
12236 lt_prog_compiler_wl='-Wl,'
12237 # All OSF/1 code is PIC.
12238 lt_prog_compiler_static='-non_shared'
12239 ;;
12240
12241 rdos*)
12242 lt_prog_compiler_static='-non_shared'
12243 ;;
12244
12245 solaris*)
12246 lt_prog_compiler_pic='-KPIC'
12247 lt_prog_compiler_static='-Bstatic'
12248 case $cc_basename in
12249 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12250 lt_prog_compiler_wl='-Qoption ld ';;
12251 *)
12252 lt_prog_compiler_wl='-Wl,';;
12253 esac
12254 ;;
12255
12256 sunos4*)
12257 lt_prog_compiler_wl='-Qoption ld '
12258 lt_prog_compiler_pic='-PIC'
12259 lt_prog_compiler_static='-Bstatic'
12260 ;;
12261
12262 sysv4 | sysv4.2uw2* | sysv4.3*)
12263 lt_prog_compiler_wl='-Wl,'
12264 lt_prog_compiler_pic='-KPIC'
12265 lt_prog_compiler_static='-Bstatic'
12266 ;;
12267
12268 sysv4*MP*)
12269 if test -d /usr/nec; then
12270 lt_prog_compiler_pic='-Kconform_pic'
12271 lt_prog_compiler_static='-Bstatic'
12272 fi
12273 ;;
12274
12275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12276 lt_prog_compiler_wl='-Wl,'
12277 lt_prog_compiler_pic='-KPIC'
12278 lt_prog_compiler_static='-Bstatic'
12279 ;;
12280
12281 unicos*)
12282 lt_prog_compiler_wl='-Wl,'
12283 lt_prog_compiler_can_build_shared=no
12284 ;;
12285
12286 uts4*)
12287 lt_prog_compiler_pic='-pic'
12288 lt_prog_compiler_static='-Bstatic'
12289 ;;
12290
12291 *)
12292 lt_prog_compiler_can_build_shared=no
12293 ;;
12294 esac
12295 fi
12296
12297case $host_os in
12298 # For platforms that do not support PIC, -DPIC is meaningless:
12299 *djgpp*)
12300 lt_prog_compiler_pic=
12301 ;;
12302 *)
12303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12304 ;;
12305esac
12306
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12308$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12309if ${lt_cv_prog_compiler_pic+:} false; then :
12310 $as_echo_n "(cached) " >&6
12311else
12312 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12313fi
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12315$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12316lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12317
12318#
12319# Check to make sure the PIC flag actually works.
12320#
12321if test -n "$lt_prog_compiler_pic"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12323$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12324if ${lt_cv_prog_compiler_pic_works+:} false; then :
12325 $as_echo_n "(cached) " >&6
12326else
12327 lt_cv_prog_compiler_pic_works=no
12328 ac_outfile=conftest.$ac_objext
12329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12330 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12331 # Insert the option either (1) after the last *FLAGS variable, or
12332 # (2) before a word containing "conftest.", or (3) at the end.
12333 # Note that $ac_compile itself does not contain backslashes and begins
12334 # with a dollar sign (not a hyphen), so the echo should work correctly.
12335 # The option is referenced via a variable to avoid confusing sed.
12336 lt_compile=`echo "$ac_compile" | $SED \
12337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12339 -e 's:$: $lt_compiler_flag:'`
12340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12341 (eval "$lt_compile" 2>conftest.err)
12342 ac_status=$?
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 if (exit $ac_status) && test -s "$ac_outfile"; then
12346 # The compiler can only warn and ignore the option if not recognized
12347 # So say no if there are warnings other than the usual output.
12348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12351 lt_cv_prog_compiler_pic_works=yes
12352 fi
12353 fi
12354 $RM conftest*
12355
12356fi
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12358$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12359
12360if test yes = "$lt_cv_prog_compiler_pic_works"; then
12361 case $lt_prog_compiler_pic in
12362 "" | " "*) ;;
12363 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12364 esac
12365else
12366 lt_prog_compiler_pic=
12367 lt_prog_compiler_can_build_shared=no
12368fi
12369
12370fi
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382#
12383# Check to make sure the static flag actually works.
12384#
12385wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12387$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12388if ${lt_cv_prog_compiler_static_works+:} false; then :
12389 $as_echo_n "(cached) " >&6
12390else
12391 lt_cv_prog_compiler_static_works=no
12392 save_LDFLAGS=$LDFLAGS
12393 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12394 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12395 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12396 # The linker can only warn and ignore the option if not recognized
12397 # So say no if there are warnings
12398 if test -s conftest.err; then
12399 # Append any errors to the config.log.
12400 cat conftest.err 1>&5
12401 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12402 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12403 if diff conftest.exp conftest.er2 >/dev/null; then
12404 lt_cv_prog_compiler_static_works=yes
12405 fi
12406 else
12407 lt_cv_prog_compiler_static_works=yes
12408 fi
12409 fi
12410 $RM -r conftest*
12411 LDFLAGS=$save_LDFLAGS
12412
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12415$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12416
12417if test yes = "$lt_cv_prog_compiler_static_works"; then
12418 :
12419else
12420 lt_prog_compiler_static=
12421fi
12422
12423
12424
12425
12426
12427
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12430$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12431if ${lt_cv_prog_compiler_c_o+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433else
12434 lt_cv_prog_compiler_c_o=no
12435 $RM -r conftest 2>/dev/null
12436 mkdir conftest
12437 cd conftest
12438 mkdir out
12439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12440
12441 lt_compiler_flag="-o out/conftest2.$ac_objext"
12442 # Insert the option either (1) after the last *FLAGS variable, or
12443 # (2) before a word containing "conftest.", or (3) at the end.
12444 # Note that $ac_compile itself does not contain backslashes and begins
12445 # with a dollar sign (not a hyphen), so the echo should work correctly.
12446 lt_compile=`echo "$ac_compile" | $SED \
12447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12449 -e 's:$: $lt_compiler_flag:'`
12450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12451 (eval "$lt_compile" 2>out/conftest.err)
12452 ac_status=$?
12453 cat out/conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12456 then
12457 # The compiler can only warn and ignore the option if not recognized
12458 # So say no if there are warnings
12459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12462 lt_cv_prog_compiler_c_o=yes
12463 fi
12464 fi
12465 chmod u+w . 2>&5
12466 $RM conftest*
12467 # SGI C++ compiler will create directory out/ii_files/ for
12468 # template instantiation
12469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12470 $RM out/* && rmdir out
12471 cd ..
12472 $RM -r conftest
12473 $RM conftest*
12474
12475fi
12476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12477$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12478
12479
12480
12481
12482
12483
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12485$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12486if ${lt_cv_prog_compiler_c_o+:} false; then :
12487 $as_echo_n "(cached) " >&6
12488else
12489 lt_cv_prog_compiler_c_o=no
12490 $RM -r conftest 2>/dev/null
12491 mkdir conftest
12492 cd conftest
12493 mkdir out
12494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12495
12496 lt_compiler_flag="-o out/conftest2.$ac_objext"
12497 # Insert the option either (1) after the last *FLAGS variable, or
12498 # (2) before a word containing "conftest.", or (3) at the end.
12499 # Note that $ac_compile itself does not contain backslashes and begins
12500 # with a dollar sign (not a hyphen), so the echo should work correctly.
12501 lt_compile=`echo "$ac_compile" | $SED \
12502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12504 -e 's:$: $lt_compiler_flag:'`
12505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12506 (eval "$lt_compile" 2>out/conftest.err)
12507 ac_status=$?
12508 cat out/conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12511 then
12512 # The compiler can only warn and ignore the option if not recognized
12513 # So say no if there are warnings
12514 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12515 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12516 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12517 lt_cv_prog_compiler_c_o=yes
12518 fi
12519 fi
12520 chmod u+w . 2>&5
12521 $RM conftest*
12522 # SGI C++ compiler will create directory out/ii_files/ for
12523 # template instantiation
12524 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12525 $RM out/* && rmdir out
12526 cd ..
12527 $RM -r conftest
12528 $RM conftest*
12529
12530fi
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12532$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12533
12534
12535
12536
12537hard_links=nottested
12538if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12539 # do not overwrite the value of need_locks provided by the user
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12541$as_echo_n "checking if we can lock with hard links... " >&6; }
12542 hard_links=yes
12543 $RM conftest*
12544 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12545 touch conftest.a
12546 ln conftest.a conftest.b 2>&5 || hard_links=no
12547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12549$as_echo "$hard_links" >&6; }
12550 if test no = "$hard_links"; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12552$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12553 need_locks=warn
12554 fi
12555else
12556 need_locks=no
12557fi
12558
12559
12560
12561
12562
12563
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12565$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12566
12567 runpath_var=
12568 allow_undefined_flag=
12569 always_export_symbols=no
12570 archive_cmds=
12571 archive_expsym_cmds=
12572 compiler_needs_object=no
12573 enable_shared_with_static_runtimes=no
12574 export_dynamic_flag_spec=
12575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12576 hardcode_automatic=no
12577 hardcode_direct=no
12578 hardcode_direct_absolute=no
12579 hardcode_libdir_flag_spec=
12580 hardcode_libdir_separator=
12581 hardcode_minus_L=no
12582 hardcode_shlibpath_var=unsupported
12583 inherit_rpath=no
12584 link_all_deplibs=unknown
12585 module_cmds=
12586 module_expsym_cmds=
12587 old_archive_from_new_cmds=
12588 old_archive_from_expsyms_cmds=
12589 thread_safe_flag_spec=
12590 whole_archive_flag_spec=
12591 # include_expsyms should be a list of space-separated symbols to be *always*
12592 # included in the symbol list
12593 include_expsyms=
12594 # exclude_expsyms can be an extended regexp of symbols to exclude
12595 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12596 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12597 # as well as any symbol that contains 'd'.
12598 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12599 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12600 # platforms (ab)use it in PIC code, but their linkers get confused if
12601 # the symbol is explicitly referenced. Since portable code cannot
12602 # rely on this symbol name, it's probably fine to never include it in
12603 # preloaded symbol tables.
12604 # Exclude shared library initialization/finalization symbols.
12605 extract_expsyms_cmds=
12606
12607 case $host_os in
12608 cygwin* | mingw* | pw32* | cegcc*)
12609 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12610 # When not using gcc, we currently assume that we are using
12611 # Microsoft Visual C++.
12612 if test yes != "$GCC"; then
12613 with_gnu_ld=no
12614 fi
12615 ;;
12616 interix*)
12617 # we just hope/assume this is gcc and not c89 (= MSVC++)
12618 with_gnu_ld=yes
12619 ;;
12620 openbsd* | bitrig*)
12621 with_gnu_ld=no
12622 ;;
12623 linux* | k*bsd*-gnu | gnu*)
12624 link_all_deplibs=no
12625 ;;
12626 esac
12627
12628 ld_shlibs=yes
12629
12630 # On some targets, GNU ld is compatible enough with the native linker
12631 # that we're better off using the native interface for both.
12632 lt_use_gnu_ld_interface=no
12633 if test yes = "$with_gnu_ld"; then
12634 case $host_os in
12635 aix*)
12636 # The AIX port of GNU ld has always aspired to compatibility
12637 # with the native linker. However, as the warning in the GNU ld
12638 # block says, versions before 2.19.5* couldn't really create working
12639 # shared libraries, regardless of the interface used.
12640 case `$LD -v 2>&1` in
12641 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12642 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12643 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12644 *)
12645 lt_use_gnu_ld_interface=yes
12646 ;;
12647 esac
12648 ;;
12649 *)
12650 lt_use_gnu_ld_interface=yes
12651 ;;
12652 esac
12653 fi
12654
12655 if test yes = "$lt_use_gnu_ld_interface"; then
12656 # If archive_cmds runs LD, not CC, wlarc should be empty
12657 wlarc='$wl'
12658
12659 # Set some defaults for GNU ld with shared library support. These
12660 # are reset later if shared libraries are not supported. Putting them
12661 # here allows them to be overridden if necessary.
12662 runpath_var=LD_RUN_PATH
12663 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12664 export_dynamic_flag_spec='$wl--export-dynamic'
12665 # ancient GNU ld didn't support --whole-archive et. al.
12666 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12667 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12668 else
12669 whole_archive_flag_spec=
12670 fi
12671 supports_anon_versioning=no
12672 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12673 *GNU\ gold*) supports_anon_versioning=yes ;;
12674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12677 *\ 2.11.*) ;; # other 2.11 versions
12678 *) supports_anon_versioning=yes ;;
12679 esac
12680
12681 # See if GNU ld supports shared libraries.
12682 case $host_os in
12683 aix[3-9]*)
12684 # On AIX/PPC, the GNU linker is very broken
12685 if test ia64 != "$host_cpu"; then
12686 ld_shlibs=no
12687 cat <<_LT_EOF 1>&2
12688
12689*** Warning: the GNU linker, at least up to release 2.19, is reported
12690*** to be unable to reliably create shared libraries on AIX.
12691*** Therefore, libtool is disabling shared libraries support. If you
12692*** really care for shared libraries, you may want to install binutils
12693*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12694*** You will then need to restart the configuration process.
12695
12696_LT_EOF
12697 fi
12698 ;;
12699
12700 amigaos*)
12701 case $host_cpu in
12702 powerpc)
12703 # see comment about AmigaOS4 .so support
12704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12705 archive_expsym_cmds=''
12706 ;;
12707 m68k)
12708 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)'
12709 hardcode_libdir_flag_spec='-L$libdir'
12710 hardcode_minus_L=yes
12711 ;;
12712 esac
12713 ;;
12714
12715 beos*)
12716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12717 allow_undefined_flag=unsupported
12718 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12719 # support --undefined. This deserves some investigation. FIXME
12720 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12721 else
12722 ld_shlibs=no
12723 fi
12724 ;;
12725
12726 cygwin* | mingw* | pw32* | cegcc*)
12727 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12728 # as there is no search path for DLLs.
12729 hardcode_libdir_flag_spec='-L$libdir'
12730 export_dynamic_flag_spec='$wl--export-all-symbols'
12731 allow_undefined_flag=unsupported
12732 always_export_symbols=no
12733 enable_shared_with_static_runtimes=yes
12734 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'
12735 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12736
12737 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12738 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12739 # If the export-symbols file already is a .def file, use it as
12740 # is; otherwise, prepend EXPORTS...
12741 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12742 cp $export_symbols $output_objdir/$soname.def;
12743 else
12744 echo EXPORTS > $output_objdir/$soname.def;
12745 cat $export_symbols >> $output_objdir/$soname.def;
12746 fi~
12747 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12748 else
12749 ld_shlibs=no
12750 fi
12751 ;;
12752
12753 haiku*)
12754 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12755 link_all_deplibs=yes
12756 ;;
12757
12758 os2*)
12759 hardcode_libdir_flag_spec='-L$libdir'
12760 hardcode_minus_L=yes
12761 allow_undefined_flag=unsupported
12762 shrext_cmds=.dll
12763 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12764 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12765 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12766 $ECHO EXPORTS >> $output_objdir/$libname.def~
12767 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12768 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12769 emximp -o $lib $output_objdir/$libname.def'
12770 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12771 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12772 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12773 $ECHO EXPORTS >> $output_objdir/$libname.def~
12774 prefix_cmds="$SED"~
12775 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12776 prefix_cmds="$prefix_cmds -e 1d";
12777 fi~
12778 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12779 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12780 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12781 emximp -o $lib $output_objdir/$libname.def'
12782 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12783 enable_shared_with_static_runtimes=yes
12784 ;;
12785
12786 interix[3-9]*)
12787 hardcode_direct=no
12788 hardcode_shlibpath_var=no
12789 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12790 export_dynamic_flag_spec='$wl-E'
12791 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12792 # Instead, shared libraries are loaded at an image base (0x10000000 by
12793 # default) and relocated if they conflict, which is a slow very memory
12794 # consuming and fragmenting process. To avoid this, we pick a random,
12795 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12796 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12797 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12798 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'
12799 ;;
12800
12801 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12802 tmp_diet=no
12803 if test linux-dietlibc = "$host_os"; then
12804 case $cc_basename in
12805 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12806 esac
12807 fi
12808 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12809 && test no = "$tmp_diet"
12810 then
12811 tmp_addflag=' $pic_flag'
12812 tmp_sharedflag='-shared'
12813 case $cc_basename,$host_cpu in
12814 pgcc*) # Portland Group C compiler
12815 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'
12816 tmp_addflag=' $pic_flag'
12817 ;;
12818 pgf77* | pgf90* | pgf95* | pgfortran*)
12819 # Portland Group f77 and f90 compilers
12820 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'
12821 tmp_addflag=' $pic_flag -Mnomain' ;;
12822 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12823 tmp_addflag=' -i_dynamic' ;;
12824 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12825 tmp_addflag=' -i_dynamic -nofor_main' ;;
12826 ifc* | ifort*) # Intel Fortran compiler
12827 tmp_addflag=' -nofor_main' ;;
12828 lf95*) # Lahey Fortran 8.1
12829 whole_archive_flag_spec=
12830 tmp_sharedflag='--shared' ;;
12831 nagfor*) # NAGFOR 5.3
12832 tmp_sharedflag='-Wl,-shared' ;;
12833 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12834 tmp_sharedflag='-qmkshrobj'
12835 tmp_addflag= ;;
12836 nvcc*) # Cuda Compiler Driver 2.2
12837 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'
12838 compiler_needs_object=yes
12839 ;;
12840 esac
12841 case `$CC -V 2>&1 | sed 5q` in
12842 *Sun\ C*) # Sun C 5.9
12843 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'
12844 compiler_needs_object=yes
12845 tmp_sharedflag='-G' ;;
12846 *Sun\ F*) # Sun Fortran 8.3
12847 tmp_sharedflag='-G' ;;
12848 esac
12849 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12850
12851 if test yes = "$supports_anon_versioning"; then
12852 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12854 echo "local: *; };" >> $output_objdir/$libname.ver~
12855 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12856 fi
12857
12858 case $cc_basename in
12859 tcc*)
12860 export_dynamic_flag_spec='-rdynamic'
12861 ;;
12862 xlf* | bgf* | bgxlf* | mpixlf*)
12863 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12864 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12865 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12866 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12867 if test yes = "$supports_anon_versioning"; then
12868 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12869 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12870 echo "local: *; };" >> $output_objdir/$libname.ver~
12871 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12872 fi
12873 ;;
12874 esac
12875 else
12876 ld_shlibs=no
12877 fi
12878 ;;
12879
12880 netbsd* | netbsdelf*-gnu)
12881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12882 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12883 wlarc=
12884 else
12885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12886 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12887 fi
12888 ;;
12889
12890 solaris*)
12891 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12892 ld_shlibs=no
12893 cat <<_LT_EOF 1>&2
12894
12895*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12896*** create shared libraries on Solaris systems. Therefore, libtool
12897*** is disabling shared libraries support. We urge you to upgrade GNU
12898*** binutils to release 2.9.1 or newer. Another option is to modify
12899*** your PATH or compiler configuration so that the native linker is
12900*** used, and then restart.
12901
12902_LT_EOF
12903 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12904 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12905 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12906 else
12907 ld_shlibs=no
12908 fi
12909 ;;
12910
12911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12912 case `$LD -v 2>&1` in
12913 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12914 ld_shlibs=no
12915 cat <<_LT_EOF 1>&2
12916
12917*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12918*** reliably create shared libraries on SCO systems. Therefore, libtool
12919*** is disabling shared libraries support. We urge you to upgrade GNU
12920*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12921*** your PATH or compiler configuration so that the native linker is
12922*** used, and then restart.
12923
12924_LT_EOF
12925 ;;
12926 *)
12927 # For security reasons, it is highly recommended that you always
12928 # use absolute paths for naming shared libraries, and exclude the
12929 # DT_RUNPATH tag from executables and libraries. But doing so
12930 # requires that you compile everything twice, which is a pain.
12931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12932 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12935 else
12936 ld_shlibs=no
12937 fi
12938 ;;
12939 esac
12940 ;;
12941
12942 sunos4*)
12943 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12944 wlarc=
12945 hardcode_direct=yes
12946 hardcode_shlibpath_var=no
12947 ;;
12948
12949 *)
12950 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12951 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12952 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12953 else
12954 ld_shlibs=no
12955 fi
12956 ;;
12957 esac
12958
12959 if test no = "$ld_shlibs"; then
12960 runpath_var=
12961 hardcode_libdir_flag_spec=
12962 export_dynamic_flag_spec=
12963 whole_archive_flag_spec=
12964 fi
12965 else
12966 # PORTME fill in a description of your system's linker (not GNU ld)
12967 case $host_os in
12968 aix3*)
12969 allow_undefined_flag=unsupported
12970 always_export_symbols=yes
12971 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'
12972 # Note: this linker hardcodes the directories in LIBPATH if there
12973 # are no directories specified by -L.
12974 hardcode_minus_L=yes
12975 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12976 # Neither direct hardcoding nor static linking is supported with a
12977 # broken collect2.
12978 hardcode_direct=unsupported
12979 fi
12980 ;;
12981
12982 aix[4-9]*)
12983 if test ia64 = "$host_cpu"; then
12984 # On IA64, the linker does run time linking by default, so we don't
12985 # have to do anything special.
12986 aix_use_runtimelinking=no
12987 exp_sym_flag='-Bexport'
12988 no_entry_flag=
12989 else
12990 # If we're using GNU nm, then we don't want the "-C" option.
12991 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12992 # Without the "-l" option, or with the "-B" option, AIX nm treats
12993 # weak defined symbols like other global defined symbols, whereas
12994 # GNU nm marks them as "W".
12995 # While the 'weak' keyword is ignored in the Export File, we need
12996 # it in the Import File for the 'aix-soname' feature, so we have
12997 # to replace the "-B" option with "-P" for AIX nm.
12998 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12999 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
13000 else
13001 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13002 fi
13003 aix_use_runtimelinking=no
13004
13005 # Test if we are trying to use run time linking or normal
13006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13007 # have runtime linking enabled, and use it for executables.
13008 # For shared libraries, we enable/disable runtime linking
13009 # depending on the kind of the shared library created -
13010 # when "with_aix_soname,aix_use_runtimelinking" is:
13011 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13012 # "aix,yes" lib.so shared, rtl:yes, for executables
13013 # lib.a static archive
13014 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13015 # lib.a(lib.so.V) shared, rtl:no, for executables
13016 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13017 # lib.a(lib.so.V) shared, rtl:no
13018 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13019 # lib.a static archive
13020 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13021 for ld_flag in $LDFLAGS; do
13022 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13023 aix_use_runtimelinking=yes
13024 break
13025 fi
13026 done
13027 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13028 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13029 # so we don't have lib.a shared libs to link our executables.
13030 # We have to force runtime linking in this case.
13031 aix_use_runtimelinking=yes
13032 LDFLAGS="$LDFLAGS -Wl,-brtl"
13033 fi
13034 ;;
13035 esac
13036
13037 exp_sym_flag='-bexport'
13038 no_entry_flag='-bnoentry'
13039 fi
13040
13041 # When large executables or shared objects are built, AIX ld can
13042 # have problems creating the table of contents. If linking a library
13043 # or program results in "error TOC overflow" add -mminimal-toc to
13044 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13045 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13046
13047 archive_cmds=''
13048 hardcode_direct=yes
13049 hardcode_direct_absolute=yes
13050 hardcode_libdir_separator=':'
13051 link_all_deplibs=yes
13052 file_list_spec='$wl-f,'
13053 case $with_aix_soname,$aix_use_runtimelinking in
13054 aix,*) ;; # traditional, no import file
13055 svr4,* | *,yes) # use import file
13056 # The Import File defines what to hardcode.
13057 hardcode_direct=no
13058 hardcode_direct_absolute=no
13059 ;;
13060 esac
13061
13062 if test yes = "$GCC"; then
13063 case $host_os in aix4.[012]|aix4.[012].*)
13064 # We only want to do this on AIX 4.2 and lower, the check
13065 # below for broken collect2 doesn't work under 4.3+
13066 collect2name=`$CC -print-prog-name=collect2`
13067 if test -f "$collect2name" &&
13068 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13069 then
13070 # We have reworked collect2
13071 :
13072 else
13073 # We have old collect2
13074 hardcode_direct=unsupported
13075 # It fails to find uninstalled libraries when the uninstalled
13076 # path is not listed in the libpath. Setting hardcode_minus_L
13077 # to unsupported forces relinking
13078 hardcode_minus_L=yes
13079 hardcode_libdir_flag_spec='-L$libdir'
13080 hardcode_libdir_separator=
13081 fi
13082 ;;
13083 esac
13084 shared_flag='-shared'
13085 if test yes = "$aix_use_runtimelinking"; then
13086 shared_flag="$shared_flag "'$wl-G'
13087 fi
13088 # Need to ensure runtime linking is disabled for the traditional
13089 # shared library, or the linker may eventually find shared libraries
13090 # /with/ Import File - we do not want to mix them.
13091 shared_flag_aix='-shared'
13092 shared_flag_svr4='-shared $wl-G'
13093 else
13094 # not using gcc
13095 if test ia64 = "$host_cpu"; then
13096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13097 # chokes on -Wl,-G. The following line is correct:
13098 shared_flag='-G'
13099 else
13100 if test yes = "$aix_use_runtimelinking"; then
13101 shared_flag='$wl-G'
13102 else
13103 shared_flag='$wl-bM:SRE'
13104 fi
13105 shared_flag_aix='$wl-bM:SRE'
13106 shared_flag_svr4='$wl-G'
13107 fi
13108 fi
13109
13110 export_dynamic_flag_spec='$wl-bexpall'
13111 # It seems that -bexpall does not export symbols beginning with
13112 # underscore (_), so it is better to generate a list of symbols to export.
13113 always_export_symbols=yes
13114 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13115 # Warning - without using the other runtime loading flags (-brtl),
13116 # -berok will link without error, but may produce a broken library.
13117 allow_undefined_flag='-berok'
13118 # Determine the default libpath from the value encoded in an
13119 # empty executable.
13120 if test set = "${lt_cv_aix_libpath+set}"; then
13121 aix_libpath=$lt_cv_aix_libpath
13122else
13123 if ${lt_cv_aix_libpath_+:} false; then :
13124 $as_echo_n "(cached) " >&6
13125else
13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13127/* end confdefs.h. */
13128
13129int main (void)
13130{
13131
13132 ;
13133 return 0;
13134}
13135_ACEOF
13136if ac_fn_c_try_link "$LINENO"; then :
13137
13138 lt_aix_libpath_sed='
13139 /Import File Strings/,/^$/ {
13140 /^0/ {
13141 s/^0 *\([^ ]*\) *$/\1/
13142 p
13143 }
13144 }'
13145 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13146 # Check for a 64-bit object if we didn't find anything.
13147 if test -z "$lt_cv_aix_libpath_"; then
13148 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13149 fi
13150fi
13151rm -f core conftest.err conftest.$ac_objext \
13152 conftest$ac_exeext conftest.$ac_ext
13153 if test -z "$lt_cv_aix_libpath_"; then
13154 lt_cv_aix_libpath_=/usr/lib:/lib
13155 fi
13156
13157fi
13158
13159 aix_libpath=$lt_cv_aix_libpath_
13160fi
13161
13162 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13163 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13164 else
13165 if test ia64 = "$host_cpu"; then
13166 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13167 allow_undefined_flag="-z nodefs"
13168 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"
13169 else
13170 # Determine the default libpath from the value encoded in an
13171 # empty executable.
13172 if test set = "${lt_cv_aix_libpath+set}"; then
13173 aix_libpath=$lt_cv_aix_libpath
13174else
13175 if ${lt_cv_aix_libpath_+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177else
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h. */
13180
13181int main (void)
13182{
13183
13184 ;
13185 return 0;
13186}
13187_ACEOF
13188if ac_fn_c_try_link "$LINENO"; then :
13189
13190 lt_aix_libpath_sed='
13191 /Import File Strings/,/^$/ {
13192 /^0/ {
13193 s/^0 *\([^ ]*\) *$/\1/
13194 p
13195 }
13196 }'
13197 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13198 # Check for a 64-bit object if we didn't find anything.
13199 if test -z "$lt_cv_aix_libpath_"; then
13200 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13201 fi
13202fi
13203rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205 if test -z "$lt_cv_aix_libpath_"; then
13206 lt_cv_aix_libpath_=/usr/lib:/lib
13207 fi
13208
13209fi
13210
13211 aix_libpath=$lt_cv_aix_libpath_
13212fi
13213
13214 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13215 # Warning - without using the other run time loading flags,
13216 # -berok will link without error, but may produce a broken library.
13217 no_undefined_flag=' $wl-bernotok'
13218 allow_undefined_flag=' $wl-berok'
13219 if test yes = "$with_gnu_ld"; then
13220 # We only use this code for GNU lds that support --whole-archive.
13221 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13222 else
13223 # Exported symbols can be pulled into shared objects from archives
13224 whole_archive_flag_spec='$convenience'
13225 fi
13226 archive_cmds_need_lc=yes
13227 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13228 # -brtl affects multiple linker settings, -berok does not and is overridden later
13229 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13230 if test svr4 != "$with_aix_soname"; then
13231 # This is similar to how AIX traditionally builds its shared libraries.
13232 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13233 fi
13234 if test aix != "$with_aix_soname"; then
13235 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13236 else
13237 # used by -dlpreopen to get the symbols
13238 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13239 fi
13240 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13241 fi
13242 fi
13243 ;;
13244
13245 amigaos*)
13246 case $host_cpu in
13247 powerpc)
13248 # see comment about AmigaOS4 .so support
13249 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13250 archive_expsym_cmds=''
13251 ;;
13252 m68k)
13253 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)'
13254 hardcode_libdir_flag_spec='-L$libdir'
13255 hardcode_minus_L=yes
13256 ;;
13257 esac
13258 ;;
13259
13260 bsdi[45]*)
13261 export_dynamic_flag_spec=-rdynamic
13262 ;;
13263
13264 cygwin* | mingw* | pw32* | cegcc*)
13265 # When not using gcc, we currently assume that we are using
13266 # Microsoft Visual C++.
13267 # hardcode_libdir_flag_spec is actually meaningless, as there is
13268 # no search path for DLLs.
13269 case $cc_basename in
13270 cl*)
13271 # Native MSVC
13272 hardcode_libdir_flag_spec=' '
13273 allow_undefined_flag=unsupported
13274 always_export_symbols=yes
13275 file_list_spec='@'
13276 # Tell ltmain to make .lib files, not .a files.
13277 libext=lib
13278 # Tell ltmain to make .dll files, not .so files.
13279 shrext_cmds=.dll
13280 # FIXME: Setting linknames here is a bad hack.
13281 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13282 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13283 cp "$export_symbols" "$output_objdir/$soname.def";
13284 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13285 else
13286 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13287 fi~
13288 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13289 linknames='
13290 # The linker will not automatically build a static lib if we build a DLL.
13291 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13292 enable_shared_with_static_runtimes=yes
13293 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13294 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13295 # Don't use ranlib
13296 old_postinstall_cmds='chmod 644 $oldlib'
13297 postlink_cmds='lt_outputfile="@OUTPUT@"~
13298 lt_tool_outputfile="@TOOL_OUTPUT@"~
13299 case $lt_outputfile in
13300 *.exe|*.EXE) ;;
13301 *)
13302 lt_outputfile=$lt_outputfile.exe
13303 lt_tool_outputfile=$lt_tool_outputfile.exe
13304 ;;
13305 esac~
13306 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13307 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13308 $RM "$lt_outputfile.manifest";
13309 fi'
13310 ;;
13311 *)
13312 # Assume MSVC wrapper
13313 hardcode_libdir_flag_spec=' '
13314 allow_undefined_flag=unsupported
13315 # Tell ltmain to make .lib files, not .a files.
13316 libext=lib
13317 # Tell ltmain to make .dll files, not .so files.
13318 shrext_cmds=.dll
13319 # FIXME: Setting linknames here is a bad hack.
13320 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13321 # The linker will automatically build a .lib file if we build a DLL.
13322 old_archive_from_new_cmds='true'
13323 # FIXME: Should let the user specify the lib program.
13324 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13325 enable_shared_with_static_runtimes=yes
13326 ;;
13327 esac
13328 ;;
13329
13330 darwin* | rhapsody*)
13331
13332
13333 archive_cmds_need_lc=no
13334 hardcode_direct=no
13335 hardcode_automatic=yes
13336 hardcode_shlibpath_var=unsupported
13337 if test yes = "$lt_cv_ld_force_load"; then
13338 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\"`'
13339
13340 else
13341 whole_archive_flag_spec=''
13342 fi
13343 link_all_deplibs=yes
13344 allow_undefined_flag=$_lt_dar_allow_undefined
13345 case $cc_basename in
13346 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13347 *) _lt_dar_can_shared=$GCC ;;
13348 esac
13349 if test yes = "$_lt_dar_can_shared"; then
13350 output_verbose_link_cmd=func_echo_all
13351 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13352 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13353 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"
13354 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"
13355
13356 else
13357 ld_shlibs=no
13358 fi
13359
13360 ;;
13361
13362 dgux*)
13363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13364 hardcode_libdir_flag_spec='-L$libdir'
13365 hardcode_shlibpath_var=no
13366 ;;
13367
13368 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13369 # support. Future versions do this automatically, but an explicit c++rt0.o
13370 # does not break anything, and helps significantly (at the cost of a little
13371 # extra space).
13372 freebsd2.2*)
13373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13374 hardcode_libdir_flag_spec='-R$libdir'
13375 hardcode_direct=yes
13376 hardcode_shlibpath_var=no
13377 ;;
13378
13379 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13380 freebsd2.*)
13381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13382 hardcode_direct=yes
13383 hardcode_minus_L=yes
13384 hardcode_shlibpath_var=no
13385 ;;
13386
13387 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13388 freebsd* | dragonfly*)
13389 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13390 hardcode_libdir_flag_spec='-R$libdir'
13391 hardcode_direct=yes
13392 hardcode_shlibpath_var=no
13393 ;;
13394
13395 hpux9*)
13396 if test yes = "$GCC"; then
13397 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13398 else
13399 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13400 fi
13401 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13402 hardcode_libdir_separator=:
13403 hardcode_direct=yes
13404
13405 # hardcode_minus_L: Not really in the search PATH,
13406 # but as the default location of the library.
13407 hardcode_minus_L=yes
13408 export_dynamic_flag_spec='$wl-E'
13409 ;;
13410
13411 hpux10*)
13412 if test yes,no = "$GCC,$with_gnu_ld"; then
13413 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13414 else
13415 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13416 fi
13417 if test no = "$with_gnu_ld"; then
13418 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13419 hardcode_libdir_separator=:
13420 hardcode_direct=yes
13421 hardcode_direct_absolute=yes
13422 export_dynamic_flag_spec='$wl-E'
13423 # hardcode_minus_L: Not really in the search PATH,
13424 # but as the default location of the library.
13425 hardcode_minus_L=yes
13426 fi
13427 ;;
13428
13429 hpux11*)
13430 if test yes,no = "$GCC,$with_gnu_ld"; then
13431 case $host_cpu in
13432 hppa*64*)
13433 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13434 ;;
13435 ia64*)
13436 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13437 ;;
13438 *)
13439 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13440 ;;
13441 esac
13442 else
13443 case $host_cpu in
13444 hppa*64*)
13445 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13446 ;;
13447 ia64*)
13448 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13449 ;;
13450 *)
13451
13452 # Older versions of the 11.00 compiler do not understand -b yet
13453 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13455$as_echo_n "checking if $CC understands -b... " >&6; }
13456if ${lt_cv_prog_compiler__b+:} false; then :
13457 $as_echo_n "(cached) " >&6
13458else
13459 lt_cv_prog_compiler__b=no
13460 save_LDFLAGS=$LDFLAGS
13461 LDFLAGS="$LDFLAGS -b"
13462 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13463 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13464 # The linker can only warn and ignore the option if not recognized
13465 # So say no if there are warnings
13466 if test -s conftest.err; then
13467 # Append any errors to the config.log.
13468 cat conftest.err 1>&5
13469 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13471 if diff conftest.exp conftest.er2 >/dev/null; then
13472 lt_cv_prog_compiler__b=yes
13473 fi
13474 else
13475 lt_cv_prog_compiler__b=yes
13476 fi
13477 fi
13478 $RM -r conftest*
13479 LDFLAGS=$save_LDFLAGS
13480
13481fi
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13483$as_echo "$lt_cv_prog_compiler__b" >&6; }
13484
13485if test yes = "$lt_cv_prog_compiler__b"; then
13486 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13487else
13488 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13489fi
13490
13491 ;;
13492 esac
13493 fi
13494 if test no = "$with_gnu_ld"; then
13495 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13496 hardcode_libdir_separator=:
13497
13498 case $host_cpu in
13499 hppa*64*|ia64*)
13500 hardcode_direct=no
13501 hardcode_shlibpath_var=no
13502 ;;
13503 *)
13504 hardcode_direct=yes
13505 hardcode_direct_absolute=yes
13506 export_dynamic_flag_spec='$wl-E'
13507
13508 # hardcode_minus_L: Not really in the search PATH,
13509 # but as the default location of the library.
13510 hardcode_minus_L=yes
13511 ;;
13512 esac
13513 fi
13514 ;;
13515
13516 irix5* | irix6* | nonstopux*)
13517 if test yes = "$GCC"; then
13518 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'
13519 # Try to use the -exported_symbol ld option, if it does not
13520 # work, assume that -exports_file does not work either and
13521 # implicitly export all symbols.
13522 # This should be the same for all languages, so no per-tag cache variable.
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13524$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13525if ${lt_cv_irix_exported_symbol+:} false; then :
13526 $as_echo_n "(cached) " >&6
13527else
13528 save_LDFLAGS=$LDFLAGS
13529 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531/* end confdefs.h. */
13532int foo (void) { return 0; }
13533_ACEOF
13534if ac_fn_c_try_link "$LINENO"; then :
13535 lt_cv_irix_exported_symbol=yes
13536else
13537 lt_cv_irix_exported_symbol=no
13538fi
13539rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LDFLAGS=$save_LDFLAGS
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13544$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13545 if test yes = "$lt_cv_irix_exported_symbol"; then
13546 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'
13547 fi
13548 link_all_deplibs=no
13549 else
13550 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'
13551 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'
13552 fi
13553 archive_cmds_need_lc='no'
13554 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13555 hardcode_libdir_separator=:
13556 inherit_rpath=yes
13557 link_all_deplibs=yes
13558 ;;
13559
13560 linux*)
13561 case $cc_basename in
13562 tcc*)
13563 # Fabrice Bellard et al's Tiny C Compiler
13564 ld_shlibs=yes
13565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13566 ;;
13567 esac
13568 ;;
13569
13570 netbsd* | netbsdelf*-gnu)
13571 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13573 else
13574 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13575 fi
13576 hardcode_libdir_flag_spec='-R$libdir'
13577 hardcode_direct=yes
13578 hardcode_shlibpath_var=no
13579 ;;
13580
13581 newsos6)
13582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13583 hardcode_direct=yes
13584 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13585 hardcode_libdir_separator=:
13586 hardcode_shlibpath_var=no
13587 ;;
13588
13589 *nto* | *qnx*)
13590 ;;
13591
13592 openbsd* | bitrig*)
13593 if test -f /usr/libexec/ld.so; then
13594 hardcode_direct=yes
13595 hardcode_shlibpath_var=no
13596 hardcode_direct_absolute=yes
13597 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13598 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13599 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13600 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13601 export_dynamic_flag_spec='$wl-E'
13602 else
13603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13604 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13605 fi
13606 else
13607 ld_shlibs=no
13608 fi
13609 ;;
13610
13611 os2*)
13612 hardcode_libdir_flag_spec='-L$libdir'
13613 hardcode_minus_L=yes
13614 allow_undefined_flag=unsupported
13615 shrext_cmds=.dll
13616 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13617 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13618 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13619 $ECHO EXPORTS >> $output_objdir/$libname.def~
13620 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13621 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13622 emximp -o $lib $output_objdir/$libname.def'
13623 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13624 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13625 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13626 $ECHO EXPORTS >> $output_objdir/$libname.def~
13627 prefix_cmds="$SED"~
13628 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13629 prefix_cmds="$prefix_cmds -e 1d";
13630 fi~
13631 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13632 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13633 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13634 emximp -o $lib $output_objdir/$libname.def'
13635 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13636 enable_shared_with_static_runtimes=yes
13637 ;;
13638
13639 osf3*)
13640 if test yes = "$GCC"; then
13641 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13642 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'
13643 else
13644 allow_undefined_flag=' -expect_unresolved \*'
13645 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'
13646 fi
13647 archive_cmds_need_lc='no'
13648 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13649 hardcode_libdir_separator=:
13650 ;;
13651
13652 osf4* | osf5*) # as osf3* with the addition of -msym flag
13653 if test yes = "$GCC"; then
13654 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13655 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'
13656 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13657 else
13658 allow_undefined_flag=' -expect_unresolved \*'
13659 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'
13660 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~
13661 $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'
13662
13663 # Both c and cxx compiler support -rpath directly
13664 hardcode_libdir_flag_spec='-rpath $libdir'
13665 fi
13666 archive_cmds_need_lc='no'
13667 hardcode_libdir_separator=:
13668 ;;
13669
13670 solaris*)
13671 no_undefined_flag=' -z defs'
13672 if test yes = "$GCC"; then
13673 wlarc='$wl'
13674 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676 $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'
13677 else
13678 case `$CC -V 2>&1` in
13679 *"Compilers 5.0"*)
13680 wlarc=''
13681 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13682 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13683 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13684 ;;
13685 *)
13686 wlarc='$wl'
13687 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13689 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13690 ;;
13691 esac
13692 fi
13693 hardcode_libdir_flag_spec='-R$libdir'
13694 hardcode_shlibpath_var=no
13695 case $host_os in
13696 solaris2.[0-5] | solaris2.[0-5].*) ;;
13697 *)
13698 # The compiler driver will combine and reorder linker options,
13699 # but understands '-z linker_flag'. GCC discards it without '$wl',
13700 # but is careful enough not to reorder.
13701 # Supported since Solaris 2.6 (maybe 2.5.1?)
13702 if test yes = "$GCC"; then
13703 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13704 else
13705 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13706 fi
13707 ;;
13708 esac
13709 link_all_deplibs=yes
13710 ;;
13711
13712 sunos4*)
13713 if test sequent = "$host_vendor"; then
13714 # Use $CC to link under sequent, because it throws in some extra .o
13715 # files that make .init and .fini sections work.
13716 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13717 else
13718 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13719 fi
13720 hardcode_libdir_flag_spec='-L$libdir'
13721 hardcode_direct=yes
13722 hardcode_minus_L=yes
13723 hardcode_shlibpath_var=no
13724 ;;
13725
13726 sysv4)
13727 case $host_vendor in
13728 sni)
13729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13730 hardcode_direct=yes # is this really true???
13731 ;;
13732 siemens)
13733 ## LD is ld it makes a PLAMLIB
13734 ## CC just makes a GrossModule.
13735 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13736 reload_cmds='$CC -r -o $output$reload_objs'
13737 hardcode_direct=no
13738 ;;
13739 motorola)
13740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13741 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13742 ;;
13743 esac
13744 runpath_var='LD_RUN_PATH'
13745 hardcode_shlibpath_var=no
13746 ;;
13747
13748 sysv4.3*)
13749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13750 hardcode_shlibpath_var=no
13751 export_dynamic_flag_spec='-Bexport'
13752 ;;
13753
13754 sysv4*MP*)
13755 if test -d /usr/nec; then
13756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13757 hardcode_shlibpath_var=no
13758 runpath_var=LD_RUN_PATH
13759 hardcode_runpath_var=yes
13760 ld_shlibs=yes
13761 fi
13762 ;;
13763
13764 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13765 no_undefined_flag='$wl-z,text'
13766 archive_cmds_need_lc=no
13767 hardcode_shlibpath_var=no
13768 runpath_var='LD_RUN_PATH'
13769
13770 if test yes = "$GCC"; then
13771 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13772 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773 else
13774 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13775 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13776 fi
13777 ;;
13778
13779 sysv5* | sco3.2v5* | sco5v6*)
13780 # Note: We CANNOT use -z defs as we might desire, because we do not
13781 # link with -lc, and that would cause any symbols used from libc to
13782 # always be unresolved, which means just about no library would
13783 # ever link correctly. If we're not using GNU ld we use -z text
13784 # though, which does catch some bad symbols but isn't as heavy-handed
13785 # as -z defs.
13786 no_undefined_flag='$wl-z,text'
13787 allow_undefined_flag='$wl-z,nodefs'
13788 archive_cmds_need_lc=no
13789 hardcode_shlibpath_var=no
13790 hardcode_libdir_flag_spec='$wl-R,$libdir'
13791 hardcode_libdir_separator=':'
13792 link_all_deplibs=yes
13793 export_dynamic_flag_spec='$wl-Bexport'
13794 runpath_var='LD_RUN_PATH'
13795
13796 if test yes = "$GCC"; then
13797 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 else
13800 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 fi
13803 ;;
13804
13805 uts4*)
13806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13807 hardcode_libdir_flag_spec='-L$libdir'
13808 hardcode_shlibpath_var=no
13809 ;;
13810
13811 *)
13812 ld_shlibs=no
13813 ;;
13814 esac
13815
13816 if test sni = "$host_vendor"; then
13817 case $host in
13818 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13819 export_dynamic_flag_spec='$wl-Blargedynsym'
13820 ;;
13821 esac
13822 fi
13823 fi
13824
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13826$as_echo "$ld_shlibs" >&6; }
13827test no = "$ld_shlibs" && can_build_shared=no
13828
13829with_gnu_ld=$with_gnu_ld
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845#
13846# Do we need to explicitly link libc?
13847#
13848case "x$archive_cmds_need_lc" in
13849x|xyes)
13850 # Assume -lc should be added
13851 archive_cmds_need_lc=yes
13852
13853 if test yes,yes = "$GCC,$enable_shared"; then
13854 case $archive_cmds in
13855 *'~'*)
13856 # FIXME: we may have to deal with multi-command sequences.
13857 ;;
13858 '$CC '*)
13859 # Test whether the compiler implicitly links with -lc since on some
13860 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13861 # to ld, don't add -lc before -lgcc.
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13863$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13864if ${lt_cv_archive_cmds_need_lc+:} false; then :
13865 $as_echo_n "(cached) " >&6
13866else
13867 $RM conftest*
13868 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13869
13870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13871 (eval $ac_compile) 2>&5
13872 ac_status=$?
13873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13874 test $ac_status = 0; } 2>conftest.err; then
13875 soname=conftest
13876 lib=conftest
13877 libobjs=conftest.$ac_objext
13878 deplibs=
13879 wl=$lt_prog_compiler_wl
13880 pic_flag=$lt_prog_compiler_pic
13881 compiler_flags=-v
13882 linker_flags=-v
13883 verstring=
13884 output_objdir=.
13885 libname=conftest
13886 lt_save_allow_undefined_flag=$allow_undefined_flag
13887 allow_undefined_flag=
13888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13889 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13890 ac_status=$?
13891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13892 test $ac_status = 0; }
13893 then
13894 lt_cv_archive_cmds_need_lc=no
13895 else
13896 lt_cv_archive_cmds_need_lc=yes
13897 fi
13898 allow_undefined_flag=$lt_save_allow_undefined_flag
13899 else
13900 cat conftest.err 1>&5
13901 fi
13902 $RM conftest*
13903
13904fi
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13906$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13907 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13908 ;;
13909 esac
13910 fi
13911 ;;
13912esac
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14066$as_echo_n "checking dynamic linker characteristics... " >&6; }
14067
14068if test yes = "$GCC"; then
14069 case $host_os in
14070 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14071 *) lt_awk_arg='/^libraries:/' ;;
14072 esac
14073 case $host_os in
14074 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14075 *) lt_sed_strip_eq='s|=/|/|g' ;;
14076 esac
14077 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14078 case $lt_search_path_spec in
14079 *\;*)
14080 # if the path contains ";" then we assume it to be the separator
14081 # otherwise default to the standard path separator (i.e. ":") - it is
14082 # assumed that no part of a normal pathname contains ";" but that should
14083 # okay in the real world where ";" in dirpaths is itself problematic.
14084 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14085 ;;
14086 *)
14087 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14088 ;;
14089 esac
14090 # Ok, now we have the path, separated by spaces, we can step through it
14091 # and add multilib dir if necessary...
14092 lt_tmp_lt_search_path_spec=
14093 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14094 # ...but if some path component already ends with the multilib dir we assume
14095 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14096 case "$lt_multi_os_dir; $lt_search_path_spec " in
14097 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14098 lt_multi_os_dir=
14099 ;;
14100 esac
14101 for lt_sys_path in $lt_search_path_spec; do
14102 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14103 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14104 elif test -n "$lt_multi_os_dir"; then
14105 test -d "$lt_sys_path" && \
14106 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14107 fi
14108 done
14109 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14110BEGIN {RS = " "; FS = "/|\n";} {
14111 lt_foo = "";
14112 lt_count = 0;
14113 for (lt_i = NF; lt_i > 0; lt_i--) {
14114 if ($lt_i != "" && $lt_i != ".") {
14115 if ($lt_i == "..") {
14116 lt_count++;
14117 } else {
14118 if (lt_count == 0) {
14119 lt_foo = "/" $lt_i lt_foo;
14120 } else {
14121 lt_count--;
14122 }
14123 }
14124 }
14125 }
14126 if (lt_foo != "") { lt_freq[lt_foo]++; }
14127 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14128}'`
14129 # AWK program above erroneously prepends '/' to C:/dos/paths
14130 # for these hosts.
14131 case $host_os in
14132 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14133 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14134 esac
14135 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14136else
14137 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14138fi
14139library_names_spec=
14140libname_spec='lib$name'
14141soname_spec=
14142shrext_cmds=.so
14143postinstall_cmds=
14144postuninstall_cmds=
14145finish_cmds=
14146finish_eval=
14147shlibpath_var=
14148shlibpath_overrides_runpath=unknown
14149version_type=none
14150dynamic_linker="$host_os ld.so"
14151sys_lib_dlsearch_path_spec="/lib /usr/lib"
14152need_lib_prefix=unknown
14153hardcode_into_libs=no
14154
14155# when you set need_version to no, make sure it does not cause -set_version
14156# flags to be left without arguments
14157need_version=unknown
14158
14159
14160
14161case $host_os in
14162aix3*)
14163 version_type=linux # correct to gnu/linux during the next big refactor
14164 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14165 shlibpath_var=LIBPATH
14166
14167 # AIX 3 has no versioning support, so we append a major version to the name.
14168 soname_spec='$libname$release$shared_ext$major'
14169 ;;
14170
14171aix[4-9]*)
14172 version_type=linux # correct to gnu/linux during the next big refactor
14173 need_lib_prefix=no
14174 need_version=no
14175 hardcode_into_libs=yes
14176 if test ia64 = "$host_cpu"; then
14177 # AIX 5 supports IA64
14178 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14179 shlibpath_var=LD_LIBRARY_PATH
14180 else
14181 # With GCC up to 2.95.x, collect2 would create an import file
14182 # for dependence libraries. The import file would start with
14183 # the line '#! .'. This would cause the generated library to
14184 # depend on '.', always an invalid library. This was fixed in
14185 # development snapshots of GCC prior to 3.0.
14186 case $host_os in
14187 aix4 | aix4.[01] | aix4.[01].*)
14188 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14189 echo ' yes '
14190 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14191 :
14192 else
14193 can_build_shared=no
14194 fi
14195 ;;
14196 esac
14197 # Using Import Files as archive members, it is possible to support
14198 # filename-based versioning of shared library archives on AIX. While
14199 # this would work for both with and without runtime linking, it will
14200 # prevent static linking of such archives. So we do filename-based
14201 # shared library versioning with .so extension only, which is used
14202 # when both runtime linking and shared linking is enabled.
14203 # Unfortunately, runtime linking may impact performance, so we do
14204 # not want this to be the default eventually. Also, we use the
14205 # versioned .so libs for executables only if there is the -brtl
14206 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14207 # To allow for filename-based versioning support, we need to create
14208 # libNAME.so.V as an archive file, containing:
14209 # *) an Import File, referring to the versioned filename of the
14210 # archive as well as the shared archive member, telling the
14211 # bitwidth (32 or 64) of that shared object, and providing the
14212 # list of exported symbols of that shared object, eventually
14213 # decorated with the 'weak' keyword
14214 # *) the shared object with the F_LOADONLY flag set, to really avoid
14215 # it being seen by the linker.
14216 # At run time we better use the real file rather than another symlink,
14217 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14218
14219 case $with_aix_soname,$aix_use_runtimelinking in
14220 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14221 # soname into executable. Probably we can add versioning support to
14222 # collect2, so additional links can be useful in future.
14223 aix,yes) # traditional libtool
14224 dynamic_linker='AIX unversionable lib.so'
14225 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14226 # instead of lib<name>.a to let people know that these are not
14227 # typical AIX shared libraries.
14228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14229 ;;
14230 aix,no) # traditional AIX only
14231 dynamic_linker='AIX lib.a(lib.so.V)'
14232 # We preserve .a as extension for shared libraries through AIX4.2
14233 # and later when we are not doing run time linking.
14234 library_names_spec='$libname$release.a $libname.a'
14235 soname_spec='$libname$release$shared_ext$major'
14236 ;;
14237 svr4,*) # full svr4 only
14238 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14239 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14240 # We do not specify a path in Import Files, so LIBPATH fires.
14241 shlibpath_overrides_runpath=yes
14242 ;;
14243 *,yes) # both, prefer svr4
14244 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14245 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14246 # unpreferred sharedlib libNAME.a needs extra handling
14247 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14248 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14249 # We do not specify a path in Import Files, so LIBPATH fires.
14250 shlibpath_overrides_runpath=yes
14251 ;;
14252 *,no) # both, prefer aix
14253 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14254 library_names_spec='$libname$release.a $libname.a'
14255 soname_spec='$libname$release$shared_ext$major'
14256 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14257 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14258 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14259 ;;
14260 esac
14261 shlibpath_var=LIBPATH
14262 fi
14263 ;;
14264
14265amigaos*)
14266 case $host_cpu in
14267 powerpc)
14268 # Since July 2007 AmigaOS4 officially supports .so libraries.
14269 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14270 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14271 ;;
14272 m68k)
14273 library_names_spec='$libname.ixlibrary $libname.a'
14274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14275 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14276 ;;
14277 esac
14278 ;;
14279
14280beos*)
14281 library_names_spec='$libname$shared_ext'
14282 dynamic_linker="$host_os ld.so"
14283 shlibpath_var=LIBRARY_PATH
14284 ;;
14285
14286bsdi[45]*)
14287 version_type=linux # correct to gnu/linux during the next big refactor
14288 need_version=no
14289 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14290 soname_spec='$libname$release$shared_ext$major'
14291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14292 shlibpath_var=LD_LIBRARY_PATH
14293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14295 # the default ld.so.conf also contains /usr/contrib/lib and
14296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14297 # libtool to hard-code these into programs
14298 ;;
14299
14300cygwin* | mingw* | pw32* | cegcc*)
14301 version_type=windows
14302 shrext_cmds=.dll
14303 need_version=no
14304 need_lib_prefix=no
14305
14306 case $GCC,$cc_basename in
14307 yes,*)
14308 # gcc
14309 library_names_spec='$libname.dll.a'
14310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14311 postinstall_cmds='base_file=`basename \$file`~
14312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14313 dldir=$destdir/`dirname \$dlpath`~
14314 test -d \$dldir || mkdir -p \$dldir~
14315 $install_prog $dir/$dlname \$dldir/$dlname~
14316 chmod a+x \$dldir/$dlname~
14317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14319 fi'
14320 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14321 dlpath=$dir/\$dldll~
14322 $RM \$dlpath'
14323 shlibpath_overrides_runpath=yes
14324
14325 case $host_os in
14326 cygwin*)
14327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14328 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14329
14330 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14331 ;;
14332 mingw* | cegcc*)
14333 # MinGW DLLs use traditional 'lib' prefix
14334 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14335 ;;
14336 pw32*)
14337 # pw32 DLLs use 'pw' prefix rather than 'lib'
14338 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14339 ;;
14340 esac
14341 dynamic_linker='Win32 ld.exe'
14342 ;;
14343
14344 *,cl*)
14345 # Native MSVC
14346 libname_spec='$name'
14347 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14348 library_names_spec='$libname.dll.lib'
14349
14350 case $build_os in
14351 mingw*)
14352 sys_lib_search_path_spec=
14353 lt_save_ifs=$IFS
14354 IFS=';'
14355 for lt_path in $LIB
14356 do
14357 IFS=$lt_save_ifs
14358 # Let DOS variable expansion print the short 8.3 style file name.
14359 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14360 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14361 done
14362 IFS=$lt_save_ifs
14363 # Convert to MSYS style.
14364 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14365 ;;
14366 cygwin*)
14367 # Convert to unix form, then to dos form, then back to unix form
14368 # but this time dos style (no spaces!) so that the unix form looks
14369 # like /cygdrive/c/PROGRA~1:/cygdr...
14370 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14371 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14372 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14373 ;;
14374 *)
14375 sys_lib_search_path_spec=$LIB
14376 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14377 # It is most probably a Windows format PATH.
14378 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14379 else
14380 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14381 fi
14382 # FIXME: find the short name or the path components, as spaces are
14383 # common. (e.g. "Program Files" -> "PROGRA~1")
14384 ;;
14385 esac
14386
14387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14388 postinstall_cmds='base_file=`basename \$file`~
14389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14390 dldir=$destdir/`dirname \$dlpath`~
14391 test -d \$dldir || mkdir -p \$dldir~
14392 $install_prog $dir/$dlname \$dldir/$dlname'
14393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14394 dlpath=$dir/\$dldll~
14395 $RM \$dlpath'
14396 shlibpath_overrides_runpath=yes
14397 dynamic_linker='Win32 link.exe'
14398 ;;
14399
14400 *)
14401 # Assume MSVC wrapper
14402 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14403 dynamic_linker='Win32 ld.exe'
14404 ;;
14405 esac
14406 # FIXME: first we should search . and the directory the executable is in
14407 shlibpath_var=PATH
14408 ;;
14409
14410darwin* | rhapsody*)
14411 dynamic_linker="$host_os dyld"
14412 version_type=darwin
14413 need_lib_prefix=no
14414 need_version=no
14415 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14416 soname_spec='$libname$release$major$shared_ext'
14417 shlibpath_overrides_runpath=yes
14418 shlibpath_var=DYLD_LIBRARY_PATH
14419 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14420
14421 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14423 ;;
14424
14425dgux*)
14426 version_type=linux # correct to gnu/linux during the next big refactor
14427 need_lib_prefix=no
14428 need_version=no
14429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14430 soname_spec='$libname$release$shared_ext$major'
14431 shlibpath_var=LD_LIBRARY_PATH
14432 ;;
14433
14434freebsd* | dragonfly*)
14435 # DragonFly does not have aout. When/if they implement a new
14436 # versioning mechanism, adjust this.
14437 if test -x /usr/bin/objformat; then
14438 objformat=`/usr/bin/objformat`
14439 else
14440 case $host_os in
14441 freebsd[23].*) objformat=aout ;;
14442 *) objformat=elf ;;
14443 esac
14444 fi
14445 version_type=freebsd-$objformat
14446 case $version_type in
14447 freebsd-elf*)
14448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14449 soname_spec='$libname$release$shared_ext$major'
14450 need_version=no
14451 need_lib_prefix=no
14452 ;;
14453 freebsd-*)
14454 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14455 need_version=yes
14456 ;;
14457 esac
14458 shlibpath_var=LD_LIBRARY_PATH
14459 case $host_os in
14460 freebsd2.*)
14461 shlibpath_overrides_runpath=yes
14462 ;;
14463 freebsd3.[01]* | freebsdelf3.[01]*)
14464 shlibpath_overrides_runpath=yes
14465 hardcode_into_libs=yes
14466 ;;
14467 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14468 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14469 shlibpath_overrides_runpath=no
14470 hardcode_into_libs=yes
14471 ;;
14472 *) # from 4.6 on, and DragonFly
14473 shlibpath_overrides_runpath=yes
14474 hardcode_into_libs=yes
14475 ;;
14476 esac
14477 ;;
14478
14479haiku*)
14480 version_type=linux # correct to gnu/linux during the next big refactor
14481 need_lib_prefix=no
14482 need_version=no
14483 dynamic_linker="$host_os runtime_loader"
14484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14485 soname_spec='$libname$release$shared_ext$major'
14486 shlibpath_var=LIBRARY_PATH
14487 shlibpath_overrides_runpath=no
14488 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14489 hardcode_into_libs=yes
14490 ;;
14491
14492hpux9* | hpux10* | hpux11*)
14493 # Give a soname corresponding to the major version so that dld.sl refuses to
14494 # link against other versions.
14495 version_type=sunos
14496 need_lib_prefix=no
14497 need_version=no
14498 case $host_cpu in
14499 ia64*)
14500 shrext_cmds='.so'
14501 hardcode_into_libs=yes
14502 dynamic_linker="$host_os dld.so"
14503 shlibpath_var=LD_LIBRARY_PATH
14504 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14506 soname_spec='$libname$release$shared_ext$major'
14507 if test 32 = "$HPUX_IA64_MODE"; then
14508 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14509 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14510 else
14511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14512 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14513 fi
14514 ;;
14515 hppa*64*)
14516 shrext_cmds='.sl'
14517 hardcode_into_libs=yes
14518 dynamic_linker="$host_os dld.sl"
14519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14522 soname_spec='$libname$release$shared_ext$major'
14523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525 ;;
14526 *)
14527 shrext_cmds='.sl'
14528 dynamic_linker="$host_os dld.sl"
14529 shlibpath_var=SHLIB_PATH
14530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14532 soname_spec='$libname$release$shared_ext$major'
14533 ;;
14534 esac
14535 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14536 postinstall_cmds='chmod 555 $lib'
14537 # or fails outright, so override atomically:
14538 install_override_mode=555
14539 ;;
14540
14541interix[3-9]*)
14542 version_type=linux # correct to gnu/linux during the next big refactor
14543 need_lib_prefix=no
14544 need_version=no
14545 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14546 soname_spec='$libname$release$shared_ext$major'
14547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14548 shlibpath_var=LD_LIBRARY_PATH
14549 shlibpath_overrides_runpath=no
14550 hardcode_into_libs=yes
14551 ;;
14552
14553irix5* | irix6* | nonstopux*)
14554 case $host_os in
14555 nonstopux*) version_type=nonstopux ;;
14556 *)
14557 if test yes = "$lt_cv_prog_gnu_ld"; then
14558 version_type=linux # correct to gnu/linux during the next big refactor
14559 else
14560 version_type=irix
14561 fi ;;
14562 esac
14563 need_lib_prefix=no
14564 need_version=no
14565 soname_spec='$libname$release$shared_ext$major'
14566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14567 case $host_os in
14568 irix5* | nonstopux*)
14569 libsuff= shlibsuff=
14570 ;;
14571 *)
14572 case $LD in # libtool.m4 will add one of these switches to LD
14573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14574 libsuff= shlibsuff= libmagic=32-bit;;
14575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14576 libsuff=32 shlibsuff=N32 libmagic=N32;;
14577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14578 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14579 *) libsuff= shlibsuff= libmagic=never-match;;
14580 esac
14581 ;;
14582 esac
14583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14584 shlibpath_overrides_runpath=no
14585 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14586 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14587 hardcode_into_libs=yes
14588 ;;
14589
14590# No shared lib support for Linux oldld, aout, or coff.
14591linux*oldld* | linux*aout* | linux*coff*)
14592 dynamic_linker=no
14593 ;;
14594
14595linux*android*)
14596 version_type=none # Android doesn't support versioned libraries.
14597 need_lib_prefix=no
14598 need_version=no
14599 library_names_spec='$libname$release$shared_ext'
14600 soname_spec='$libname$release$shared_ext'
14601 finish_cmds=
14602 shlibpath_var=LD_LIBRARY_PATH
14603 shlibpath_overrides_runpath=yes
14604
14605 # This implies no fast_install, which is unacceptable.
14606 # Some rework will be needed to allow for fast_install
14607 # before this can be enabled.
14608 hardcode_into_libs=yes
14609
14610 dynamic_linker='Android linker'
14611 # Don't embed -rpath directories since the linker doesn't support them.
14612 hardcode_libdir_flag_spec='-L$libdir'
14613 ;;
14614
14615# This must be glibc/ELF.
14616linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14617 version_type=linux # correct to gnu/linux during the next big refactor
14618 need_lib_prefix=no
14619 need_version=no
14620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14621 soname_spec='$libname$release$shared_ext$major'
14622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=no
14625
14626 # Some binutils ld are patched to set DT_RUNPATH
14627 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14628 $as_echo_n "(cached) " >&6
14629else
14630 lt_cv_shlibpath_overrides_runpath=no
14631 save_LDFLAGS=$LDFLAGS
14632 save_libdir=$libdir
14633 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14634 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636/* end confdefs.h. */
14637
14638int main (void)
14639{
14640
14641 ;
14642 return 0;
14643}
14644_ACEOF
14645if ac_fn_c_try_link "$LINENO"; then :
14646 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14647 lt_cv_shlibpath_overrides_runpath=yes
14648fi
14649fi
14650rm -f core conftest.err conftest.$ac_objext \
14651 conftest$ac_exeext conftest.$ac_ext
14652 LDFLAGS=$save_LDFLAGS
14653 libdir=$save_libdir
14654
14655fi
14656
14657 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14658
14659 # This implies no fast_install, which is unacceptable.
14660 # Some rework will be needed to allow for fast_install
14661 # before this can be enabled.
14662 hardcode_into_libs=yes
14663
14664 # Ideally, we could use ldconfig to report *all* directores which are
14665 # searched for libraries, however this is still not possible. Aside from not
14666 # being certain /sbin/ldconfig is available, command
14667 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14668 # even though it is searched at run-time. Try to do the best guess by
14669 # appending ld.so.conf contents (and includes) to the search path.
14670 if test -f /etc/ld.so.conf; then
14671 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' ' '`
14672 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14673 fi
14674
14675 # We used to test for /lib/ld.so.1 and disable shared libraries on
14676 # powerpc, because MkLinux only supported shared libraries with the
14677 # GNU dynamic linker. Since this was broken with cross compilers,
14678 # most powerpc-linux boxes support dynamic linking these days and
14679 # people can always --disable-shared, the test was removed, and we
14680 # assume the GNU/Linux dynamic linker is in use.
14681 dynamic_linker='GNU/Linux ld.so'
14682 ;;
14683
14684netbsdelf*-gnu)
14685 version_type=linux
14686 need_lib_prefix=no
14687 need_version=no
14688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14689 soname_spec='${libname}${release}${shared_ext}$major'
14690 shlibpath_var=LD_LIBRARY_PATH
14691 shlibpath_overrides_runpath=no
14692 hardcode_into_libs=yes
14693 dynamic_linker='NetBSD ld.elf_so'
14694 ;;
14695
14696netbsd*)
14697 version_type=sunos
14698 need_lib_prefix=no
14699 need_version=no
14700 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14701 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14703 dynamic_linker='NetBSD (a.out) ld.so'
14704 else
14705 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14706 soname_spec='$libname$release$shared_ext$major'
14707 dynamic_linker='NetBSD ld.elf_so'
14708 fi
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=yes
14711 hardcode_into_libs=yes
14712 ;;
14713
14714newsos6)
14715 version_type=linux # correct to gnu/linux during the next big refactor
14716 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14717 shlibpath_var=LD_LIBRARY_PATH
14718 shlibpath_overrides_runpath=yes
14719 ;;
14720
14721*nto* | *qnx*)
14722 version_type=qnx
14723 need_lib_prefix=no
14724 need_version=no
14725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14726 soname_spec='$libname$release$shared_ext$major'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=no
14729 hardcode_into_libs=yes
14730 dynamic_linker='ldqnx.so'
14731 ;;
14732
14733openbsd* | bitrig*)
14734 version_type=sunos
14735 sys_lib_dlsearch_path_spec=/usr/lib
14736 need_lib_prefix=no
14737 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14738 need_version=no
14739 else
14740 need_version=yes
14741 fi
14742 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 shlibpath_overrides_runpath=yes
14746 ;;
14747
14748os2*)
14749 libname_spec='$name'
14750 version_type=windows
14751 shrext_cmds=.dll
14752 need_version=no
14753 need_lib_prefix=no
14754 # OS/2 can only load a DLL with a base name of 8 characters or less.
14755 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14756 v=$($ECHO $release$versuffix | tr -d .-);
14757 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14758 $ECHO $n$v`$shared_ext'
14759 library_names_spec='${libname}_dll.$libext'
14760 dynamic_linker='OS/2 ld.exe'
14761 shlibpath_var=BEGINLIBPATH
14762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14764 postinstall_cmds='base_file=`basename \$file`~
14765 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14766 dldir=$destdir/`dirname \$dlpath`~
14767 test -d \$dldir || mkdir -p \$dldir~
14768 $install_prog $dir/$dlname \$dldir/$dlname~
14769 chmod a+x \$dldir/$dlname~
14770 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14771 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14772 fi'
14773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14774 dlpath=$dir/\$dldll~
14775 $RM \$dlpath'
14776 ;;
14777
14778osf3* | osf4* | osf5*)
14779 version_type=osf
14780 need_lib_prefix=no
14781 need_version=no
14782 soname_spec='$libname$release$shared_ext$major'
14783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14787 ;;
14788
14789rdos*)
14790 dynamic_linker=no
14791 ;;
14792
14793solaris*)
14794 version_type=linux # correct to gnu/linux during the next big refactor
14795 need_lib_prefix=no
14796 need_version=no
14797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14798 soname_spec='$libname$release$shared_ext$major'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 shlibpath_overrides_runpath=yes
14801 hardcode_into_libs=yes
14802 # ldd complains unless libraries are executable
14803 postinstall_cmds='chmod +x $lib'
14804 ;;
14805
14806sunos4*)
14807 version_type=sunos
14808 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 if test yes = "$with_gnu_ld"; then
14813 need_lib_prefix=no
14814 fi
14815 need_version=yes
14816 ;;
14817
14818sysv4 | sysv4.3*)
14819 version_type=linux # correct to gnu/linux during the next big refactor
14820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14821 soname_spec='$libname$release$shared_ext$major'
14822 shlibpath_var=LD_LIBRARY_PATH
14823 case $host_vendor in
14824 sni)
14825 shlibpath_overrides_runpath=no
14826 need_lib_prefix=no
14827 runpath_var=LD_RUN_PATH
14828 ;;
14829 siemens)
14830 need_lib_prefix=no
14831 ;;
14832 motorola)
14833 need_lib_prefix=no
14834 need_version=no
14835 shlibpath_overrides_runpath=no
14836 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14837 ;;
14838 esac
14839 ;;
14840
14841sysv4*MP*)
14842 if test -d /usr/nec; then
14843 version_type=linux # correct to gnu/linux during the next big refactor
14844 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14845 soname_spec='$libname$shared_ext.$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14847 fi
14848 ;;
14849
14850sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14851 version_type=sco
14852 need_lib_prefix=no
14853 need_version=no
14854 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14855 soname_spec='$libname$release$shared_ext$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 hardcode_into_libs=yes
14859 if test yes = "$with_gnu_ld"; then
14860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14861 else
14862 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14863 case $host_os in
14864 sco3.2v5*)
14865 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14866 ;;
14867 esac
14868 fi
14869 sys_lib_dlsearch_path_spec='/usr/lib'
14870 ;;
14871
14872tpf*)
14873 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14874 version_type=linux # correct to gnu/linux during the next big refactor
14875 need_lib_prefix=no
14876 need_version=no
14877 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=no
14880 hardcode_into_libs=yes
14881 ;;
14882
14883uts4*)
14884 version_type=linux # correct to gnu/linux during the next big refactor
14885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14886 soname_spec='$libname$release$shared_ext$major'
14887 shlibpath_var=LD_LIBRARY_PATH
14888 ;;
14889
14890*)
14891 dynamic_linker=no
14892 ;;
14893esac
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14895$as_echo "$dynamic_linker" >&6; }
14896test no = "$dynamic_linker" && can_build_shared=no
14897
14898variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14899if test yes = "$GCC"; then
14900 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14901fi
14902
14903if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14904 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14905fi
14906
14907if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14908 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14909fi
14910
14911# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14912configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14913
14914# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14915func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14916
14917# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14918configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15017$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15018hardcode_action=
15019if test -n "$hardcode_libdir_flag_spec" ||
15020 test -n "$runpath_var" ||
15021 test yes = "$hardcode_automatic"; then
15022
15023 # We can hardcode non-existent directories.
15024 if test no != "$hardcode_direct" &&
15025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15026 # have to relink, otherwise we might link with an installed library
15027 # when we should be linking with a yet-to-be-installed one
15028 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15029 test no != "$hardcode_minus_L"; then
15030 # Linking always hardcodes the temporary library directory.
15031 hardcode_action=relink
15032 else
15033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15034 hardcode_action=immediate
15035 fi
15036else
15037 # We cannot hardcode anything, or else we can only hardcode existing
15038 # directories.
15039 hardcode_action=unsupported
15040fi
15041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15042$as_echo "$hardcode_action" >&6; }
15043
15044if test relink = "$hardcode_action" ||
15045 test yes = "$inherit_rpath"; then
15046 # Fast installation is not supported
15047 enable_fast_install=no
15048elif test yes = "$shlibpath_overrides_runpath" ||
15049 test no = "$enable_shared"; then
15050 # Fast installation is not necessary
15051 enable_fast_install=needless
15052fi
15053
15054
15055
15056
15057
15058
15059 if test yes != "$enable_dlopen"; then
15060 enable_dlopen=unknown
15061 enable_dlopen_self=unknown
15062 enable_dlopen_self_static=unknown
15063else
15064 lt_cv_dlopen=no
15065 lt_cv_dlopen_libs=
15066
15067 case $host_os in
15068 beos*)
15069 lt_cv_dlopen=load_add_on
15070 lt_cv_dlopen_libs=
15071 lt_cv_dlopen_self=yes
15072 ;;
15073
15074 mingw* | pw32* | cegcc*)
15075 lt_cv_dlopen=LoadLibrary
15076 lt_cv_dlopen_libs=
15077 ;;
15078
15079 cygwin*)
15080 lt_cv_dlopen=dlopen
15081 lt_cv_dlopen_libs=
15082 ;;
15083
15084 darwin*)
15085 # if libdl is installed we need to link against it
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15087$as_echo_n "checking for dlopen in -ldl... " >&6; }
15088if ${ac_cv_lib_dl_dlopen+:} false; then :
15089 $as_echo_n "(cached) " >&6
15090else
15091 ac_check_lib_save_LIBS=$LIBS
15092LIBS="-ldl $LIBS"
15093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094/* end confdefs.h. */
15095
15096
15097#ifdef __cplusplus
15098extern "C"
15099#endif
15100char dlopen ();
15101int main (void)
15102{
15103return dlopen ();
15104 ;
15105 return 0;
15106}
15107_ACEOF
15108if ac_fn_c_try_link "$LINENO"; then :
15109 ac_cv_lib_dl_dlopen=yes
15110else
15111 ac_cv_lib_dl_dlopen=no
15112fi
15113rm -f core conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
15115LIBS=$ac_check_lib_save_LIBS
15116fi
15117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15118$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15119if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15120 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15121else
15122
15123 lt_cv_dlopen=dyld
15124 lt_cv_dlopen_libs=
15125 lt_cv_dlopen_self=yes
15126
15127fi
15128
15129 ;;
15130
15131 tpf*)
15132 # Don't try to run any link tests for TPF. We know it's impossible
15133 # because TPF is a cross-compiler, and we know how we open DSOs.
15134 lt_cv_dlopen=dlopen
15135 lt_cv_dlopen_libs=
15136 lt_cv_dlopen_self=no
15137 ;;
15138
15139 *)
15140 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15141if test "x$ac_cv_func_shl_load" = xyes; then :
15142 lt_cv_dlopen=shl_load
15143else
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15145$as_echo_n "checking for shl_load in -ldld... " >&6; }
15146if ${ac_cv_lib_dld_shl_load+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148else
15149 ac_check_lib_save_LIBS=$LIBS
15150LIBS="-ldld $LIBS"
15151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152/* end confdefs.h. */
15153
15154
15155#ifdef __cplusplus
15156extern "C"
15157#endif
15158char shl_load ();
15159int main (void)
15160{
15161return shl_load ();
15162 ;
15163 return 0;
15164}
15165_ACEOF
15166if ac_fn_c_try_link "$LINENO"; then :
15167 ac_cv_lib_dld_shl_load=yes
15168else
15169 ac_cv_lib_dld_shl_load=no
15170fi
15171rm -f core conftest.err conftest.$ac_objext \
15172 conftest$ac_exeext conftest.$ac_ext
15173LIBS=$ac_check_lib_save_LIBS
15174fi
15175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15176$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15177if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15178 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15179else
15180 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15181if test "x$ac_cv_func_dlopen" = xyes; then :
15182 lt_cv_dlopen=dlopen
15183else
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15185$as_echo_n "checking for dlopen in -ldl... " >&6; }
15186if ${ac_cv_lib_dl_dlopen+:} false; then :
15187 $as_echo_n "(cached) " >&6
15188else
15189 ac_check_lib_save_LIBS=$LIBS
15190LIBS="-ldl $LIBS"
15191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192/* end confdefs.h. */
15193
15194
15195#ifdef __cplusplus
15196extern "C"
15197#endif
15198char dlopen ();
15199int main (void)
15200{
15201return dlopen ();
15202 ;
15203 return 0;
15204}
15205_ACEOF
15206if ac_fn_c_try_link "$LINENO"; then :
15207 ac_cv_lib_dl_dlopen=yes
15208else
15209 ac_cv_lib_dl_dlopen=no
15210fi
15211rm -f core conftest.err conftest.$ac_objext \
15212 conftest$ac_exeext conftest.$ac_ext
15213LIBS=$ac_check_lib_save_LIBS
15214fi
15215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15216$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15217if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15218 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15219else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15221$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15222if ${ac_cv_lib_svld_dlopen+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224else
15225 ac_check_lib_save_LIBS=$LIBS
15226LIBS="-lsvld $LIBS"
15227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15228/* end confdefs.h. */
15229
15230
15231#ifdef __cplusplus
15232extern "C"
15233#endif
15234char dlopen ();
15235int main (void)
15236{
15237return dlopen ();
15238 ;
15239 return 0;
15240}
15241_ACEOF
15242if ac_fn_c_try_link "$LINENO"; then :
15243 ac_cv_lib_svld_dlopen=yes
15244else
15245 ac_cv_lib_svld_dlopen=no
15246fi
15247rm -f core conftest.err conftest.$ac_objext \
15248 conftest$ac_exeext conftest.$ac_ext
15249LIBS=$ac_check_lib_save_LIBS
15250fi
15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15252$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15253if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15254 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15255else
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15257$as_echo_n "checking for dld_link in -ldld... " >&6; }
15258if ${ac_cv_lib_dld_dld_link+:} false; then :
15259 $as_echo_n "(cached) " >&6
15260else
15261 ac_check_lib_save_LIBS=$LIBS
15262LIBS="-ldld $LIBS"
15263cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264/* end confdefs.h. */
15265
15266
15267#ifdef __cplusplus
15268extern "C"
15269#endif
15270char dld_link ();
15271int main (void)
15272{
15273return dld_link ();
15274 ;
15275 return 0;
15276}
15277_ACEOF
15278if ac_fn_c_try_link "$LINENO"; then :
15279 ac_cv_lib_dld_dld_link=yes
15280else
15281 ac_cv_lib_dld_dld_link=no
15282fi
15283rm -f core conftest.err conftest.$ac_objext \
15284 conftest$ac_exeext conftest.$ac_ext
15285LIBS=$ac_check_lib_save_LIBS
15286fi
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15288$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15289if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15290 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15291fi
15292
15293
15294fi
15295
15296
15297fi
15298
15299
15300fi
15301
15302
15303fi
15304
15305
15306fi
15307
15308 ;;
15309 esac
15310
15311 if test no = "$lt_cv_dlopen"; then
15312 enable_dlopen=no
15313 else
15314 enable_dlopen=yes
15315 fi
15316
15317 case $lt_cv_dlopen in
15318 dlopen)
15319 save_CPPFLAGS=$CPPFLAGS
15320 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15321
15322 save_LDFLAGS=$LDFLAGS
15323 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15324
15325 save_LIBS=$LIBS
15326 LIBS="$lt_cv_dlopen_libs $LIBS"
15327
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15329$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15330if ${lt_cv_dlopen_self+:} false; then :
15331 $as_echo_n "(cached) " >&6
15332else
15333 if test yes = "$cross_compiling"; then :
15334 lt_cv_dlopen_self=cross
15335else
15336 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15337 lt_status=$lt_dlunknown
15338 cat > conftest.$ac_ext <<_LT_EOF
15339#line $LINENO "configure"
15340#include "confdefs.h"
15341
15342#if HAVE_DLFCN_H
15343#include <dlfcn.h>
15344#endif
15345
15346#include <stdio.h>
15347
15348#ifdef RTLD_GLOBAL
15349# define LT_DLGLOBAL RTLD_GLOBAL
15350#else
15351# ifdef DL_GLOBAL
15352# define LT_DLGLOBAL DL_GLOBAL
15353# else
15354# define LT_DLGLOBAL 0
15355# endif
15356#endif
15357
15358/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15359 find out it does not work in some platform. */
15360#ifndef LT_DLLAZY_OR_NOW
15361# ifdef RTLD_LAZY
15362# define LT_DLLAZY_OR_NOW RTLD_LAZY
15363# else
15364# ifdef DL_LAZY
15365# define LT_DLLAZY_OR_NOW DL_LAZY
15366# else
15367# ifdef RTLD_NOW
15368# define LT_DLLAZY_OR_NOW RTLD_NOW
15369# else
15370# ifdef DL_NOW
15371# define LT_DLLAZY_OR_NOW DL_NOW
15372# else
15373# define LT_DLLAZY_OR_NOW 0
15374# endif
15375# endif
15376# endif
15377# endif
15378#endif
15379
15380/* When -fvisibility=hidden is used, assume the code has been annotated
15381 correspondingly for the symbols needed. */
15382#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15383int fnord () __attribute__((visibility("default")));
15384#endif
15385
15386int fnord () { return 42; }
15387int main ()
15388{
15389 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15390 int status = $lt_dlunknown;
15391
15392 if (self)
15393 {
15394 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15395 else
15396 {
15397 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15398 else puts (dlerror ());
15399 }
15400 /* dlclose (self); */
15401 }
15402 else
15403 puts (dlerror ());
15404
15405 return status;
15406}
15407_LT_EOF
15408 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15409 (eval $ac_link) 2>&5
15410 ac_status=$?
15411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15412 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15413 (./conftest; exit; ) >&5 2>/dev/null
15414 lt_status=$?
15415 case x$lt_status in
15416 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15417 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15418 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15419 esac
15420 else :
15421 # compilation failed
15422 lt_cv_dlopen_self=no
15423 fi
15424fi
15425rm -fr conftest*
15426
15427
15428fi
15429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15430$as_echo "$lt_cv_dlopen_self" >&6; }
15431
15432 if test yes = "$lt_cv_dlopen_self"; then
15433 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15435$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15436if ${lt_cv_dlopen_self_static+:} false; then :
15437 $as_echo_n "(cached) " >&6
15438else
15439 if test yes = "$cross_compiling"; then :
15440 lt_cv_dlopen_self_static=cross
15441else
15442 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15443 lt_status=$lt_dlunknown
15444 cat > conftest.$ac_ext <<_LT_EOF
15445#line $LINENO "configure"
15446#include "confdefs.h"
15447
15448#if HAVE_DLFCN_H
15449#include <dlfcn.h>
15450#endif
15451
15452#include <stdio.h>
15453
15454#ifdef RTLD_GLOBAL
15455# define LT_DLGLOBAL RTLD_GLOBAL
15456#else
15457# ifdef DL_GLOBAL
15458# define LT_DLGLOBAL DL_GLOBAL
15459# else
15460# define LT_DLGLOBAL 0
15461# endif
15462#endif
15463
15464/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15465 find out it does not work in some platform. */
15466#ifndef LT_DLLAZY_OR_NOW
15467# ifdef RTLD_LAZY
15468# define LT_DLLAZY_OR_NOW RTLD_LAZY
15469# else
15470# ifdef DL_LAZY
15471# define LT_DLLAZY_OR_NOW DL_LAZY
15472# else
15473# ifdef RTLD_NOW
15474# define LT_DLLAZY_OR_NOW RTLD_NOW
15475# else
15476# ifdef DL_NOW
15477# define LT_DLLAZY_OR_NOW DL_NOW
15478# else
15479# define LT_DLLAZY_OR_NOW 0
15480# endif
15481# endif
15482# endif
15483# endif
15484#endif
15485
15486/* When -fvisibility=hidden is used, assume the code has been annotated
15487 correspondingly for the symbols needed. */
15488#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15489int fnord () __attribute__((visibility("default")));
15490#endif
15491
15492int fnord () { return 42; }
15493int main ()
15494{
15495 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15496 int status = $lt_dlunknown;
15497
15498 if (self)
15499 {
15500 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15501 else
15502 {
15503 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15504 else puts (dlerror ());
15505 }
15506 /* dlclose (self); */
15507 }
15508 else
15509 puts (dlerror ());
15510
15511 return status;
15512}
15513_LT_EOF
15514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15515 (eval $ac_link) 2>&5
15516 ac_status=$?
15517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15518 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15519 (./conftest; exit; ) >&5 2>/dev/null
15520 lt_status=$?
15521 case x$lt_status in
15522 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15523 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15524 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15525 esac
15526 else :
15527 # compilation failed
15528 lt_cv_dlopen_self_static=no
15529 fi
15530fi
15531rm -fr conftest*
15532
15533
15534fi
15535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15536$as_echo "$lt_cv_dlopen_self_static" >&6; }
15537 fi
15538
15539 CPPFLAGS=$save_CPPFLAGS
15540 LDFLAGS=$save_LDFLAGS
15541 LIBS=$save_LIBS
15542 ;;
15543 esac
15544
15545 case $lt_cv_dlopen_self in
15546 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15547 *) enable_dlopen_self=unknown ;;
15548 esac
15549
15550 case $lt_cv_dlopen_self_static in
15551 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15552 *) enable_dlopen_self_static=unknown ;;
15553 esac
15554fi
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572striplib=
15573old_striplib=
15574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15575$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15576if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15577 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15578 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15580$as_echo "yes" >&6; }
15581else
15582# FIXME - insert some real tests, host_os isn't really good enough
15583 case $host_os in
15584 darwin*)
15585 if test -n "$STRIP"; then
15586 striplib="$STRIP -x"
15587 old_striplib="$STRIP -S"
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15589$as_echo "yes" >&6; }
15590 else
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592$as_echo "no" >&6; }
15593 fi
15594 ;;
15595 *)
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15597$as_echo "no" >&6; }
15598 ;;
15599 esac
15600fi
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613 # Report what library types will actually be built
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15615$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15617$as_echo "$can_build_shared" >&6; }
15618
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15620$as_echo_n "checking whether to build shared libraries... " >&6; }
15621 test no = "$can_build_shared" && enable_shared=no
15622
15623 # On AIX, shared libraries and static libraries use the same namespace, and
15624 # are all built from PIC.
15625 case $host_os in
15626 aix3*)
15627 test yes = "$enable_shared" && enable_static=no
15628 if test -n "$RANLIB"; then
15629 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15630 postinstall_cmds='$RANLIB $lib'
15631 fi
15632 ;;
15633
15634 aix[4-9]*)
15635 if test ia64 != "$host_cpu"; then
15636 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15637 yes,aix,yes) ;; # shared object as lib.so file only
15638 yes,svr4,*) ;; # shared object as lib.so archive member only
15639 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15640 esac
15641 fi
15642 ;;
15643 esac
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15645$as_echo "$enable_shared" >&6; }
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15648$as_echo_n "checking whether to build static libraries... " >&6; }
15649 # Make sure either enable_shared or enable_static is yes.
15650 test yes = "$enable_shared" || enable_static=yes
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15652$as_echo "$enable_static" >&6; }
15653
15654
15655
15656
15657fi
15658ac_ext=c
15659ac_cpp='$CPP $CPPFLAGS'
15660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15662ac_compiler_gnu=$ac_cv_c_compiler_gnu
15663
15664CC=$lt_save_CC
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680 ac_config_commands="$ac_config_commands libtool"
15681
15682
15683
15684
15685# Only expand once:
15686
15687
15688## --------------------- ##
15689## End of libtool code ##
15690## --------------------- ##
15691
15692#
15693# Verify if finally libtool shared libraries will be built
15694#
15695
15696case "x$enable_shared" in # ((
15697 xyes | xno)
15698 xc_lt_build_shared=$enable_shared
15699 ;;
15700 *)
15701 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15702 ;;
15703esac
15704
15705#
15706# Verify if finally libtool static libraries will be built
15707#
15708
15709case "x$enable_static" in # ((
15710 xyes | xno)
15711 xc_lt_build_static=$enable_static
15712 ;;
15713 *)
15714 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15715 ;;
15716esac
15717
15718#
15719# Verify if libtool shared libraries should be linked using flag -version-info
15720#
15721
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15723$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15724xc_lt_shlib_use_version_info='yes'
15725if test "x$version_type" = 'xnone'; then
15726 xc_lt_shlib_use_version_info='no'
15727fi
15728case $host_os in # (
15729 amigaos*)
15730 xc_lt_shlib_use_version_info='yes'
15731 ;;
15732esac
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15734$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15735
15736#
15737# Verify if libtool shared libraries should be linked using flag -no-undefined
15738#
15739
15740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15741$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15742xc_lt_shlib_use_no_undefined='no'
15743if test "x$allow_undefined" = 'xno'; then
15744 xc_lt_shlib_use_no_undefined='yes'
15745elif test "x$allow_undefined_flag" = 'xunsupported'; then
15746 xc_lt_shlib_use_no_undefined='yes'
15747fi
15748case $host_os in # (
15749 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15750 xc_lt_shlib_use_no_undefined='yes'
15751 ;;
15752esac
15753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15754$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15755
15756#
15757# Verify if libtool shared libraries should be linked using flag -mimpure-text
15758#
15759
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15761$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15762xc_lt_shlib_use_mimpure_text='no'
15763case $host_os in # (
15764 solaris2*)
15765 if test "x$GCC" = 'xyes'; then
15766 xc_lt_shlib_use_mimpure_text='yes'
15767 fi
15768 ;;
15769esac
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15771$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15772
15773#
15774# Find out whether libtool libraries would be built wit PIC
15775#
15776
15777case "x$pic_mode" in # ((((
15778 xdefault)
15779 xc_lt_build_shared_with_pic='yes'
15780 xc_lt_build_static_with_pic='no'
15781 ;;
15782 xyes)
15783 xc_lt_build_shared_with_pic='yes'
15784 xc_lt_build_static_with_pic='yes'
15785 ;;
15786 xno)
15787 xc_lt_build_shared_with_pic='no'
15788 xc_lt_build_static_with_pic='no'
15789 ;;
15790 *)
15791 xc_lt_build_shared_with_pic='unknown'
15792 xc_lt_build_static_with_pic='unknown'
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15794$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15795 ;;
15796esac
15797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15798$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15800$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15802$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15804$as_echo "$xc_lt_build_static_with_pic" >&6; }
15805
15806#
15807# Verify if libtool shared libraries will be built while static not built
15808#
15809
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15811$as_echo_n "checking whether to build shared libraries only... " >&6; }
15812if test "$xc_lt_build_shared" = 'yes' &&
15813 test "$xc_lt_build_static" = 'no'; then
15814 xc_lt_build_shared_only='yes'
15815else
15816 xc_lt_build_shared_only='no'
15817fi
15818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15819$as_echo "$xc_lt_build_shared_only" >&6; }
15820
15821#
15822# Verify if libtool static libraries will be built while shared not built
15823#
15824
15825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15826$as_echo_n "checking whether to build static libraries only... " >&6; }
15827if test "$xc_lt_build_static" = 'yes' &&
15828 test "$xc_lt_build_shared" = 'no'; then
15829 xc_lt_build_static_only='yes'
15830else
15831 xc_lt_build_static_only='no'
15832fi
15833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15834$as_echo "$xc_lt_build_static_only" >&6; }
15835
15836
15837
15838
15839#
15840# Automake conditionals based on libtool related checks
15841#
15842
15843 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15844 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15845 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15846else
15847 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15848 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15849fi
15850
15851 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15852 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15853 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15854else
15855 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15856 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15857fi
15858
15859 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15860 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15861 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15862else
15863 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15864 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15865fi
15866
15867
15868#
15869# Due to libtool and automake machinery limitations of not allowing
15870# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15871# inclusion of these in shared or static libraries, we are forced to
15872# build using separate configure runs for shared and static libraries
15873# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15874# to compile objects for each kind of library. Notice that relying on
15875# the '-DPIC' CFLAG that libtool provides is not valid given that the
15876# user might for example choose to build static libraries with PIC.
15877#
15878
15879#
15880# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15881# targeting a static library and not building its shared counterpart.
15882#
15883
15884 if test "x$xc_lt_build_static_only" = 'xyes'; then
15885 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15886 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15887else
15888 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15889 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15890fi
15891
15892
15893#
15894# Make staticlib CPPFLAG variable and its definition visible in output
15895# files unconditionally, providing an empty definition unless strictly
15896# targeting a static library and not building its shared counterpart.
15897#
15898
15899CPPFLAG_CURL_STATICLIB=
15900if test "x$xc_lt_build_static_only" = 'xyes'; then
15901 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15902fi
15903
15904
15905
15906# Determine whether all dependent libraries must be specified when linking
15907if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15908then
15909 REQUIRE_LIB_DEPS=no
15910else
15911 REQUIRE_LIB_DEPS=yes
15912fi
15913
15914 if test x$REQUIRE_LIB_DEPS = xyes; then
15915 USE_EXPLICIT_LIB_DEPS_TRUE=
15916 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15917else
15918 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15919 USE_EXPLICIT_LIB_DEPS_FALSE=
15920fi
15921
15922
15923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15924$as_echo_n "checking for inline... " >&6; }
15925if ${ac_cv_c_inline+:} false; then :
15926 $as_echo_n "(cached) " >&6
15927else
15928 ac_cv_c_inline=no
15929for ac_kw in inline __inline__ __inline; do
15930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15931/* end confdefs.h. */
15932#ifndef __cplusplus
15933typedef int foo_t;
15934static $ac_kw foo_t static_foo () {return 0; }
15935$ac_kw foo_t foo () {return 0; }
15936#endif
15937
15938_ACEOF
15939if ac_fn_c_try_compile "$LINENO"; then :
15940 ac_cv_c_inline=$ac_kw
15941fi
15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 test "$ac_cv_c_inline" != no && break
15944done
15945
15946fi
15947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15948$as_echo "$ac_cv_c_inline" >&6; }
15949
15950case $ac_cv_c_inline in
15951 inline | yes) ;;
15952 *)
15953 case $ac_cv_c_inline in
15954 no) ac_val=;;
15955 *) ac_val=$ac_cv_c_inline;;
15956 esac
15957 cat >>confdefs.h <<_ACEOF
15958#ifndef __cplusplus
15959#define inline $ac_val
15960#endif
15961_ACEOF
15962 ;;
15963esac
15964
15965
15966
15967
Alex Deymo486467e2017-12-19 19:04:07 +010015968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15969$as_echo_n "checking if cpp -P is needed... " >&6; }
15970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15971/* end confdefs.h. */
15972
15973 #include <errno.h>
15974TEST EINVAL TEST
15975
15976_ACEOF
15977if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15978 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15979 cpp=no
15980else
15981 cpp=yes
15982fi
15983rm -f conftest*
15984
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15986$as_echo "$cpp" >&6; }
15987
15988 if test "x$cpp" = "xyes"; then
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15990$as_echo_n "checking if cpp -P works... " >&6; }
15991 OLDCPPFLAGS=$CPPFLAGS
15992 CPPFLAGS="$CPPFLAGS -P"
15993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15994/* end confdefs.h. */
15995
15996 #include <errno.h>
15997TEST EINVAL TEST
15998
15999_ACEOF
16000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16001 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
16002 cpp_p=yes
16003else
16004 cpp_p=no
16005fi
16006rm -f conftest*
16007
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
16009$as_echo "$cpp_p" >&6; }
16010
16011 if test "x$cpp_p" = "xno"; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16013$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16014 # without -P
16015 CPPPFLAG=""
16016 else
16017 # with -P
16018 CPPPFLAG="-P"
16019 fi
16020 CPPFLAGS=$OLDCPPFLAGS
16021 else
16022 # without -P
16023 CPPPFLAG=""
16024 fi
16025
16026
Elliott Hughes82be86d2017-09-20 17:00:17 -070016027 #
16028 compiler_id="unknown"
16029 compiler_num="0"
16030 #
16031 flags_dbg_all="unknown"
16032 flags_dbg_yes="unknown"
16033 flags_dbg_off="unknown"
16034 flags_opt_all="unknown"
16035 flags_opt_yes="unknown"
16036 flags_opt_off="unknown"
16037 #
16038 flags_prefer_cppflags="no"
16039 #
16040
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16042$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16043
16044 OLDCPPFLAGS=$CPPFLAGS
16045 # CPPPFLAG comes from CURL_CPP_P
16046 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16047 if test -z "$SED"; then
16048 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16049 fi
16050 if test -z "$GREP"; then
16051 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16052 fi
16053
16054 tmp_exp=""
16055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16056/* end confdefs.h. */
16057
16058
16059#ifdef __DECC
16060CURL_DEF_TOKEN __DECC
16061#endif
16062
16063
16064_ACEOF
16065if ac_fn_c_try_cpp "$LINENO"; then :
16066
16067 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16068 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16069 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16070 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16071 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16072 tmp_exp=""
16073 fi
16074
16075fi
16076rm -f conftest.err conftest.i conftest.$ac_ext
16077 if test -z "$tmp_exp"; then
16078 curl_cv_have_def___DECC=no
16079
16080 else
16081 curl_cv_have_def___DECC=yes
16082 curl_cv_def___DECC=$tmp_exp
16083
16084 fi
16085 CPPFLAGS=$OLDCPPFLAGS
16086
16087
16088 OLDCPPFLAGS=$CPPFLAGS
16089 # CPPPFLAG comes from CURL_CPP_P
16090 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16091 if test -z "$SED"; then
16092 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16093 fi
16094 if test -z "$GREP"; then
16095 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16096 fi
16097
16098 tmp_exp=""
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100/* end confdefs.h. */
16101
16102
16103#ifdef __DECC_VER
16104CURL_DEF_TOKEN __DECC_VER
16105#endif
16106
16107
16108_ACEOF
16109if ac_fn_c_try_cpp "$LINENO"; then :
16110
16111 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16112 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16113 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16114 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16115 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16116 tmp_exp=""
16117 fi
16118
16119fi
16120rm -f conftest.err conftest.i conftest.$ac_ext
16121 if test -z "$tmp_exp"; then
16122 curl_cv_have_def___DECC_VER=no
16123
16124 else
16125 curl_cv_have_def___DECC_VER=yes
16126 curl_cv_def___DECC_VER=$tmp_exp
16127
16128 fi
16129 CPPFLAGS=$OLDCPPFLAGS
16130
16131 if test "$curl_cv_have_def___DECC" = "yes" &&
16132 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16134$as_echo "yes" >&6; }
16135 compiler_id="DEC_C"
16136 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16137 flags_dbg_yes="-g2"
16138 flags_dbg_off=""
16139 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16140 flags_opt_yes="-O1"
16141 flags_opt_off="-O0"
16142 else
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144$as_echo "no" >&6; }
16145 fi
16146
16147
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16149$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16150
16151 OLDCPPFLAGS=$CPPFLAGS
16152 # CPPPFLAG comes from CURL_CPP_P
16153 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16154 if test -z "$SED"; then
16155 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16156 fi
16157 if test -z "$GREP"; then
16158 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16159 fi
16160
16161 tmp_exp=""
16162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16163/* end confdefs.h. */
16164
16165
16166#ifdef __HP_cc
16167CURL_DEF_TOKEN __HP_cc
16168#endif
16169
16170
16171_ACEOF
16172if ac_fn_c_try_cpp "$LINENO"; then :
16173
16174 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16175 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16176 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16177 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16178 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16179 tmp_exp=""
16180 fi
16181
16182fi
16183rm -f conftest.err conftest.i conftest.$ac_ext
16184 if test -z "$tmp_exp"; then
16185 curl_cv_have_def___HP_cc=no
16186
16187 else
16188 curl_cv_have_def___HP_cc=yes
16189 curl_cv_def___HP_cc=$tmp_exp
16190
16191 fi
16192 CPPFLAGS=$OLDCPPFLAGS
16193
16194 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16196$as_echo "yes" >&6; }
16197 compiler_id="HP_UX_C"
16198 flags_dbg_all="-g -s"
16199 flags_dbg_yes="-g"
16200 flags_dbg_off="-s"
16201 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16202 flags_opt_yes="+O2"
16203 flags_opt_off="+O0"
16204 else
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206$as_echo "no" >&6; }
16207 fi
16208
16209
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16211$as_echo_n "checking if compiler is IBM C... " >&6; }
16212
16213 OLDCPPFLAGS=$CPPFLAGS
16214 # CPPPFLAG comes from CURL_CPP_P
16215 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16216 if test -z "$SED"; then
16217 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16218 fi
16219 if test -z "$GREP"; then
16220 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16221 fi
16222
16223 tmp_exp=""
16224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16225/* end confdefs.h. */
16226
16227
16228#ifdef __IBMC__
16229CURL_DEF_TOKEN __IBMC__
16230#endif
16231
16232
16233_ACEOF
16234if ac_fn_c_try_cpp "$LINENO"; then :
16235
16236 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16237 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16238 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16239 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16240 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16241 tmp_exp=""
16242 fi
16243
16244fi
16245rm -f conftest.err conftest.i conftest.$ac_ext
16246 if test -z "$tmp_exp"; then
16247 curl_cv_have_def___IBMC__=no
16248
16249 else
16250 curl_cv_have_def___IBMC__=yes
16251 curl_cv_def___IBMC__=$tmp_exp
16252
16253 fi
16254 CPPFLAGS=$OLDCPPFLAGS
16255
16256 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16258$as_echo "yes" >&6; }
16259 compiler_id="IBM_C"
16260 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16261 flags_dbg_yes="-g"
16262 flags_dbg_off=""
16263 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16264 flags_opt_all="$flags_opt_all -qnooptimize"
16265 flags_opt_all="$flags_opt_all -qoptimize=0"
16266 flags_opt_all="$flags_opt_all -qoptimize=1"
16267 flags_opt_all="$flags_opt_all -qoptimize=2"
16268 flags_opt_all="$flags_opt_all -qoptimize=3"
16269 flags_opt_all="$flags_opt_all -qoptimize=4"
16270 flags_opt_all="$flags_opt_all -qoptimize=5"
16271 flags_opt_yes="-O2"
16272 flags_opt_off="-qnooptimize"
16273 flags_prefer_cppflags="yes"
16274 else
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16276$as_echo "no" >&6; }
16277 fi
16278
16279
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16281$as_echo_n "checking if compiler is Intel C... " >&6; }
16282
16283 OLDCPPFLAGS=$CPPFLAGS
16284 # CPPPFLAG comes from CURL_CPP_P
16285 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16286 if test -z "$SED"; then
16287 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16288 fi
16289 if test -z "$GREP"; then
16290 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16291 fi
16292
16293 tmp_exp=""
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295/* end confdefs.h. */
16296
16297
16298#ifdef __INTEL_COMPILER
16299CURL_DEF_TOKEN __INTEL_COMPILER
16300#endif
16301
16302
16303_ACEOF
16304if ac_fn_c_try_cpp "$LINENO"; then :
16305
16306 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16307 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16308 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16309 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16310 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16311 tmp_exp=""
16312 fi
16313
16314fi
16315rm -f conftest.err conftest.i conftest.$ac_ext
16316 if test -z "$tmp_exp"; then
16317 curl_cv_have_def___INTEL_COMPILER=no
16318
16319 else
16320 curl_cv_have_def___INTEL_COMPILER=yes
16321 curl_cv_def___INTEL_COMPILER=$tmp_exp
16322
16323 fi
16324 CPPFLAGS=$OLDCPPFLAGS
16325
16326 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16328$as_echo "yes" >&6; }
16329 compiler_num="$curl_cv_def___INTEL_COMPILER"
16330
16331 OLDCPPFLAGS=$CPPFLAGS
16332 # CPPPFLAG comes from CURL_CPP_P
16333 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16334 if test -z "$SED"; then
16335 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16336 fi
16337 if test -z "$GREP"; then
16338 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16339 fi
16340
16341 tmp_exp=""
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343/* end confdefs.h. */
16344
16345
16346#ifdef __unix__
16347CURL_DEF_TOKEN __unix__
16348#endif
16349
16350
16351_ACEOF
16352if ac_fn_c_try_cpp "$LINENO"; then :
16353
16354 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16355 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16356 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16357 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16358 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16359 tmp_exp=""
16360 fi
16361
16362fi
16363rm -f conftest.err conftest.i conftest.$ac_ext
16364 if test -z "$tmp_exp"; then
16365 curl_cv_have_def___unix__=no
16366
16367 else
16368 curl_cv_have_def___unix__=yes
16369 curl_cv_def___unix__=$tmp_exp
16370
16371 fi
16372 CPPFLAGS=$OLDCPPFLAGS
16373
16374 if test "$curl_cv_have_def___unix__" = "yes"; then
16375 compiler_id="INTEL_UNIX_C"
16376 flags_dbg_all="-g -g0"
16377 flags_dbg_yes="-g"
16378 flags_dbg_off=""
16379 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16380 flags_opt_yes="-O2"
16381 flags_opt_off="-O0"
16382 else
16383 compiler_id="INTEL_WINDOWS_C"
16384 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16385 flags_dbg_all="$flags_dbg_all /debug"
16386 flags_dbg_all="$flags_dbg_all /debug:none"
16387 flags_dbg_all="$flags_dbg_all /debug:minimal"
16388 flags_dbg_all="$flags_dbg_all /debug:partial"
16389 flags_dbg_all="$flags_dbg_all /debug:full"
16390 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16391 flags_dbg_all="$flags_dbg_all /debug:extended"
16392 flags_dbg_yes="/Zi /Oy-"
16393 flags_dbg_off="/debug:none /Oy-"
16394 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16395 flags_opt_yes="/O2"
16396 flags_opt_off="/Od"
16397 fi
16398 else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400$as_echo "no" >&6; }
16401 fi
16402
16403
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16405$as_echo_n "checking if compiler is clang... " >&6; }
16406
16407 OLDCPPFLAGS=$CPPFLAGS
16408 # CPPPFLAG comes from CURL_CPP_P
16409 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16410 if test -z "$SED"; then
16411 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16412 fi
16413 if test -z "$GREP"; then
16414 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16415 fi
16416
16417 tmp_exp=""
16418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16419/* end confdefs.h. */
16420
16421
16422#ifdef __clang__
16423CURL_DEF_TOKEN __clang__
16424#endif
16425
16426
16427_ACEOF
16428if ac_fn_c_try_cpp "$LINENO"; then :
16429
16430 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16431 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16432 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16433 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16434 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16435 tmp_exp=""
16436 fi
16437
16438fi
16439rm -f conftest.err conftest.i conftest.$ac_ext
16440 if test -z "$tmp_exp"; then
16441 curl_cv_have_def___clang__=no
16442
16443 else
16444 curl_cv_have_def___clang__=yes
16445 curl_cv_def___clang__=$tmp_exp
16446
16447 fi
16448 CPPFLAGS=$OLDCPPFLAGS
16449
16450 if test "$curl_cv_have_def___clang__" = "yes"; then
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16452$as_echo "yes" >&6; }
16453 compiler_id="CLANG"
16454 fullclangver=`$CC -v 2>&1 | grep version`
16455 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16456 if test -z "$clangver"; then
16457 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016458 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016459 else
16460 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16461 fi
16462 fi
16463 clangvhi=`echo $clangver | cut -d . -f1`
16464 clangvlo=`echo $clangver | cut -d . -f2`
16465 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16466 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16467 flags_dbg_all="$flags_dbg_all -ggdb"
16468 flags_dbg_all="$flags_dbg_all -gstabs"
16469 flags_dbg_all="$flags_dbg_all -gstabs+"
16470 flags_dbg_all="$flags_dbg_all -gcoff"
16471 flags_dbg_all="$flags_dbg_all -gxcoff"
16472 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16473 flags_dbg_all="$flags_dbg_all -gvms"
16474 flags_dbg_yes="-g"
16475 flags_dbg_off=""
16476 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16477 flags_opt_yes="-Os"
16478 flags_opt_off="-O0"
16479 else
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481$as_echo "no" >&6; }
16482 fi
16483
16484
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16486$as_echo_n "checking if compiler is GNU C... " >&6; }
16487
16488 OLDCPPFLAGS=$CPPFLAGS
16489 # CPPPFLAG comes from CURL_CPP_P
16490 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16491 if test -z "$SED"; then
16492 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16493 fi
16494 if test -z "$GREP"; then
16495 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16496 fi
16497
16498 tmp_exp=""
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500/* end confdefs.h. */
16501
16502
16503#ifdef __GNUC__
16504CURL_DEF_TOKEN __GNUC__
16505#endif
16506
16507
16508_ACEOF
16509if ac_fn_c_try_cpp "$LINENO"; then :
16510
16511 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16512 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16513 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16514 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16515 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16516 tmp_exp=""
16517 fi
16518
16519fi
16520rm -f conftest.err conftest.i conftest.$ac_ext
16521 if test -z "$tmp_exp"; then
16522 curl_cv_have_def___GNUC__=no
16523
16524 else
16525 curl_cv_have_def___GNUC__=yes
16526 curl_cv_def___GNUC__=$tmp_exp
16527
16528 fi
16529 CPPFLAGS=$OLDCPPFLAGS
16530
16531 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16532 test "$compiler_id" = "unknown"; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16534$as_echo "yes" >&6; }
16535 compiler_id="GNU_C"
16536 gccver=`$CC -dumpversion`
16537 gccvhi=`echo $gccver | cut -d . -f1`
16538 gccvlo=`echo $gccver | cut -d . -f2`
16539 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16540 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16541 flags_dbg_all="$flags_dbg_all -ggdb"
16542 flags_dbg_all="$flags_dbg_all -gstabs"
16543 flags_dbg_all="$flags_dbg_all -gstabs+"
16544 flags_dbg_all="$flags_dbg_all -gcoff"
16545 flags_dbg_all="$flags_dbg_all -gxcoff"
16546 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16547 flags_dbg_all="$flags_dbg_all -gvms"
16548 flags_dbg_yes="-g"
16549 flags_dbg_off=""
16550 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16551 flags_opt_yes="-O2"
16552 flags_opt_off="-O0"
16553
16554 OLDCPPFLAGS=$CPPFLAGS
16555 # CPPPFLAG comes from CURL_CPP_P
16556 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16557 if test -z "$SED"; then
16558 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16559 fi
16560 if test -z "$GREP"; then
16561 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16562 fi
16563
16564 tmp_exp=""
16565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566/* end confdefs.h. */
16567
16568
16569#ifdef _WIN32
16570CURL_DEF_TOKEN _WIN32
16571#endif
16572
16573
16574_ACEOF
16575if ac_fn_c_try_cpp "$LINENO"; then :
16576
16577 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16578 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16579 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16580 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16581 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16582 tmp_exp=""
16583 fi
16584
16585fi
16586rm -f conftest.err conftest.i conftest.$ac_ext
16587 if test -z "$tmp_exp"; then
16588 curl_cv_have_def__WIN32=no
16589
16590 else
16591 curl_cv_have_def__WIN32=yes
16592 curl_cv_def__WIN32=$tmp_exp
16593
16594 fi
16595 CPPFLAGS=$OLDCPPFLAGS
16596
16597 else
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599$as_echo "no" >&6; }
16600 fi
16601
16602
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16604$as_echo_n "checking if compiler is LCC... " >&6; }
16605
16606 OLDCPPFLAGS=$CPPFLAGS
16607 # CPPPFLAG comes from CURL_CPP_P
16608 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16609 if test -z "$SED"; then
16610 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16611 fi
16612 if test -z "$GREP"; then
16613 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16614 fi
16615
16616 tmp_exp=""
16617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16618/* end confdefs.h. */
16619
16620
16621#ifdef __LCC__
16622CURL_DEF_TOKEN __LCC__
16623#endif
16624
16625
16626_ACEOF
16627if ac_fn_c_try_cpp "$LINENO"; then :
16628
16629 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16630 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16631 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16632 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16633 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16634 tmp_exp=""
16635 fi
16636
16637fi
16638rm -f conftest.err conftest.i conftest.$ac_ext
16639 if test -z "$tmp_exp"; then
16640 curl_cv_have_def___LCC__=no
16641
16642 else
16643 curl_cv_have_def___LCC__=yes
16644 curl_cv_def___LCC__=$tmp_exp
16645
16646 fi
16647 CPPFLAGS=$OLDCPPFLAGS
16648
16649 if test "$curl_cv_have_def___LCC__" = "yes"; then
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16651$as_echo "yes" >&6; }
16652 compiler_id="LCC"
16653 flags_dbg_all="-g"
16654 flags_dbg_yes="-g"
16655 flags_dbg_off=""
16656 flags_opt_all=""
16657 flags_opt_yes=""
16658 flags_opt_off=""
16659 else
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661$as_echo "no" >&6; }
16662 fi
16663
16664
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16666$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16667
16668 OLDCPPFLAGS=$CPPFLAGS
16669 # CPPPFLAG comes from CURL_CPP_P
16670 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16671 if test -z "$SED"; then
16672 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16673 fi
16674 if test -z "$GREP"; then
16675 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16676 fi
16677
16678 tmp_exp=""
16679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680/* end confdefs.h. */
16681
16682
16683#ifdef __GNUC__
16684CURL_DEF_TOKEN __GNUC__
16685#endif
16686
16687
16688_ACEOF
16689if ac_fn_c_try_cpp "$LINENO"; then :
16690
16691 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16692 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16693 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16694 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16695 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16696 tmp_exp=""
16697 fi
16698
16699fi
16700rm -f conftest.err conftest.i conftest.$ac_ext
16701 if test -z "$tmp_exp"; then
16702 curl_cv_have_def___GNUC__=no
16703
16704 else
16705 curl_cv_have_def___GNUC__=yes
16706 curl_cv_def___GNUC__=$tmp_exp
16707
16708 fi
16709 CPPFLAGS=$OLDCPPFLAGS
16710
16711
16712 OLDCPPFLAGS=$CPPFLAGS
16713 # CPPPFLAG comes from CURL_CPP_P
16714 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16715 if test -z "$SED"; then
16716 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16717 fi
16718 if test -z "$GREP"; then
16719 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16720 fi
16721
16722 tmp_exp=""
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724/* end confdefs.h. */
16725
16726
16727#ifdef _COMPILER_VERSION
16728CURL_DEF_TOKEN _COMPILER_VERSION
16729#endif
16730
16731
16732_ACEOF
16733if ac_fn_c_try_cpp "$LINENO"; then :
16734
16735 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16736 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16737 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16738 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16739 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16740 tmp_exp=""
16741 fi
16742
16743fi
16744rm -f conftest.err conftest.i conftest.$ac_ext
16745 if test -z "$tmp_exp"; then
16746 curl_cv_have_def__COMPILER_VERSION=no
16747
16748 else
16749 curl_cv_have_def__COMPILER_VERSION=yes
16750 curl_cv_def__COMPILER_VERSION=$tmp_exp
16751
16752 fi
16753 CPPFLAGS=$OLDCPPFLAGS
16754
16755
16756 OLDCPPFLAGS=$CPPFLAGS
16757 # CPPPFLAG comes from CURL_CPP_P
16758 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16759 if test -z "$SED"; then
16760 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16761 fi
16762 if test -z "$GREP"; then
16763 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16764 fi
16765
16766 tmp_exp=""
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768/* end confdefs.h. */
16769
16770
16771#ifdef _SGI_COMPILER_VERSION
16772CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16773#endif
16774
16775
16776_ACEOF
16777if ac_fn_c_try_cpp "$LINENO"; then :
16778
16779 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16780 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16781 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16782 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16783 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16784 tmp_exp=""
16785 fi
16786
16787fi
16788rm -f conftest.err conftest.i conftest.$ac_ext
16789 if test -z "$tmp_exp"; then
16790 curl_cv_have_def__SGI_COMPILER_VERSION=no
16791
16792 else
16793 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16794 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16795
16796 fi
16797 CPPFLAGS=$OLDCPPFLAGS
16798
16799 if test "$curl_cv_have_def___GNUC__" = "no" &&
16800 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16801 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16803$as_echo "yes" >&6; }
16804 compiler_id="SGI_MIPSPRO_C"
16805 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16806 flags_dbg_yes="-g"
16807 flags_dbg_off=""
16808 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16809 flags_opt_yes="-O2"
16810 flags_opt_off="-O0"
16811 else
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16813$as_echo "no" >&6; }
16814 fi
16815
16816
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16818$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16819
16820 OLDCPPFLAGS=$CPPFLAGS
16821 # CPPPFLAG comes from CURL_CPP_P
16822 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16823 if test -z "$SED"; then
16824 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16825 fi
16826 if test -z "$GREP"; then
16827 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16828 fi
16829
16830 tmp_exp=""
16831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16832/* end confdefs.h. */
16833
16834
16835#ifdef __GNUC__
16836CURL_DEF_TOKEN __GNUC__
16837#endif
16838
16839
16840_ACEOF
16841if ac_fn_c_try_cpp "$LINENO"; then :
16842
16843 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16844 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16845 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16846 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16847 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16848 tmp_exp=""
16849 fi
16850
16851fi
16852rm -f conftest.err conftest.i conftest.$ac_ext
16853 if test -z "$tmp_exp"; then
16854 curl_cv_have_def___GNUC__=no
16855
16856 else
16857 curl_cv_have_def___GNUC__=yes
16858 curl_cv_def___GNUC__=$tmp_exp
16859
16860 fi
16861 CPPFLAGS=$OLDCPPFLAGS
16862
16863
16864 OLDCPPFLAGS=$CPPFLAGS
16865 # CPPPFLAG comes from CURL_CPP_P
16866 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16867 if test -z "$SED"; then
16868 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16869 fi
16870 if test -z "$GREP"; then
16871 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16872 fi
16873
16874 tmp_exp=""
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876/* end confdefs.h. */
16877
16878
16879#ifdef __sgi
16880CURL_DEF_TOKEN __sgi
16881#endif
16882
16883
16884_ACEOF
16885if ac_fn_c_try_cpp "$LINENO"; then :
16886
16887 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16888 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16889 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16890 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16891 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16892 tmp_exp=""
16893 fi
16894
16895fi
16896rm -f conftest.err conftest.i conftest.$ac_ext
16897 if test -z "$tmp_exp"; then
16898 curl_cv_have_def___sgi=no
16899
16900 else
16901 curl_cv_have_def___sgi=yes
16902 curl_cv_def___sgi=$tmp_exp
16903
16904 fi
16905 CPPFLAGS=$OLDCPPFLAGS
16906
16907 if test "$curl_cv_have_def___GNUC__" = "no" &&
16908 test "$curl_cv_have_def___sgi" = "yes" &&
16909 test "$compiler_id" = "unknown"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16911$as_echo "yes" >&6; }
16912 compiler_id="SGI_MIPS_C"
16913 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16914 flags_dbg_yes="-g"
16915 flags_dbg_off=""
16916 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16917 flags_opt_yes="-O2"
16918 flags_opt_off="-O0"
16919 else
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921$as_echo "no" >&6; }
16922 fi
16923
16924
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16926$as_echo_n "checking if compiler is SunPro C... " >&6; }
16927
16928 OLDCPPFLAGS=$CPPFLAGS
16929 # CPPPFLAG comes from CURL_CPP_P
16930 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16931 if test -z "$SED"; then
16932 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16933 fi
16934 if test -z "$GREP"; then
16935 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16936 fi
16937
16938 tmp_exp=""
16939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940/* end confdefs.h. */
16941
16942
16943#ifdef __SUNPRO_C
16944CURL_DEF_TOKEN __SUNPRO_C
16945#endif
16946
16947
16948_ACEOF
16949if ac_fn_c_try_cpp "$LINENO"; then :
16950
16951 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16952 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16953 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16954 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16955 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16956 tmp_exp=""
16957 fi
16958
16959fi
16960rm -f conftest.err conftest.i conftest.$ac_ext
16961 if test -z "$tmp_exp"; then
16962 curl_cv_have_def___SUNPRO_C=no
16963
16964 else
16965 curl_cv_have_def___SUNPRO_C=yes
16966 curl_cv_def___SUNPRO_C=$tmp_exp
16967
16968 fi
16969 CPPFLAGS=$OLDCPPFLAGS
16970
16971 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16973$as_echo "yes" >&6; }
16974 compiler_id="SUNPRO_C"
16975 flags_dbg_all="-g -s"
16976 flags_dbg_yes="-g"
16977 flags_dbg_off="-s"
16978 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16979 flags_opt_yes="-xO2"
16980 flags_opt_off=""
16981 else
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16983$as_echo "no" >&6; }
16984 fi
16985
16986
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16988$as_echo_n "checking if compiler is Tiny C... " >&6; }
16989
16990 OLDCPPFLAGS=$CPPFLAGS
16991 # CPPPFLAG comes from CURL_CPP_P
16992 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16993 if test -z "$SED"; then
16994 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16995 fi
16996 if test -z "$GREP"; then
16997 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16998 fi
16999
17000 tmp_exp=""
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002/* end confdefs.h. */
17003
17004
17005#ifdef __TINYC__
17006CURL_DEF_TOKEN __TINYC__
17007#endif
17008
17009
17010_ACEOF
17011if ac_fn_c_try_cpp "$LINENO"; then :
17012
17013 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17014 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17015 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17016 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17017 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17018 tmp_exp=""
17019 fi
17020
17021fi
17022rm -f conftest.err conftest.i conftest.$ac_ext
17023 if test -z "$tmp_exp"; then
17024 curl_cv_have_def___TINYC__=no
17025
17026 else
17027 curl_cv_have_def___TINYC__=yes
17028 curl_cv_def___TINYC__=$tmp_exp
17029
17030 fi
17031 CPPFLAGS=$OLDCPPFLAGS
17032
17033 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17035$as_echo "yes" >&6; }
17036 compiler_id="TINY_C"
17037 flags_dbg_all="-g -b"
17038 flags_dbg_yes="-g"
17039 flags_dbg_off=""
17040 flags_opt_all=""
17041 flags_opt_yes=""
17042 flags_opt_off=""
17043 else
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17045$as_echo "no" >&6; }
17046 fi
17047
17048
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17050$as_echo_n "checking if compiler is Watcom C... " >&6; }
17051
17052 OLDCPPFLAGS=$CPPFLAGS
17053 # CPPPFLAG comes from CURL_CPP_P
17054 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17055 if test -z "$SED"; then
17056 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17057 fi
17058 if test -z "$GREP"; then
17059 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17060 fi
17061
17062 tmp_exp=""
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064/* end confdefs.h. */
17065
17066
17067#ifdef __WATCOMC__
17068CURL_DEF_TOKEN __WATCOMC__
17069#endif
17070
17071
17072_ACEOF
17073if ac_fn_c_try_cpp "$LINENO"; then :
17074
17075 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17076 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17077 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17078 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17079 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17080 tmp_exp=""
17081 fi
17082
17083fi
17084rm -f conftest.err conftest.i conftest.$ac_ext
17085 if test -z "$tmp_exp"; then
17086 curl_cv_have_def___WATCOMC__=no
17087
17088 else
17089 curl_cv_have_def___WATCOMC__=yes
17090 curl_cv_def___WATCOMC__=$tmp_exp
17091
17092 fi
17093 CPPFLAGS=$OLDCPPFLAGS
17094
17095 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17097$as_echo "yes" >&6; }
17098
17099 OLDCPPFLAGS=$CPPFLAGS
17100 # CPPPFLAG comes from CURL_CPP_P
17101 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17102 if test -z "$SED"; then
17103 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17104 fi
17105 if test -z "$GREP"; then
17106 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17107 fi
17108
17109 tmp_exp=""
17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111/* end confdefs.h. */
17112
17113
17114#ifdef __UNIX__
17115CURL_DEF_TOKEN __UNIX__
17116#endif
17117
17118
17119_ACEOF
17120if ac_fn_c_try_cpp "$LINENO"; then :
17121
17122 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17123 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17124 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17125 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17126 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17127 tmp_exp=""
17128 fi
17129
17130fi
17131rm -f conftest.err conftest.i conftest.$ac_ext
17132 if test -z "$tmp_exp"; then
17133 curl_cv_have_def___UNIX__=no
17134
17135 else
17136 curl_cv_have_def___UNIX__=yes
17137 curl_cv_def___UNIX__=$tmp_exp
17138
17139 fi
17140 CPPFLAGS=$OLDCPPFLAGS
17141
17142 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17143 compiler_id="WATCOM_UNIX_C"
17144 flags_dbg_all="-g1 -g1+ -g2 -g3"
17145 flags_dbg_yes="-g2"
17146 flags_dbg_off=""
17147 flags_opt_all="-O0 -O1 -O2 -O3"
17148 flags_opt_yes="-O2"
17149 flags_opt_off="-O0"
17150 else
17151 compiler_id="WATCOM_WINDOWS_C"
17152 flags_dbg_all=""
17153 flags_dbg_yes=""
17154 flags_dbg_off=""
17155 flags_opt_all=""
17156 flags_opt_yes=""
17157 flags_opt_off=""
17158 fi
17159 else
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17161$as_echo "no" >&6; }
17162 fi
17163
17164 #
17165 if test "$compiler_id" = "unknown"; then
17166 cat <<_EOF 1>&2
17167***
17168*** Warning: This configure script does not have information about the
17169*** compiler you are using, relative to the flags required to enable or
17170*** disable generation of debug info, optimization options or warnings.
17171***
17172*** Whatever settings are present in CFLAGS will be used for this run.
17173***
17174*** If you wish to help the curl project to better support your compiler
17175*** you can report this and the required info on the libcurl development
17176*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17177***
17178_EOF
17179 fi
17180
17181
17182squeeze() {
17183 _sqz_result=""
17184 eval _sqz_input=\$$1
17185 for _sqz_token in $_sqz_input; do
17186 if test -z "$_sqz_result"; then
17187 _sqz_result="$_sqz_token"
17188 else
17189 _sqz_result="$_sqz_result $_sqz_token"
17190 fi
17191 done
17192 eval $1=\$_sqz_result
17193 return 0
17194}
17195
17196
17197 #
17198 if test "$compiler_id" != "unknown"; then
17199 #
17200 if test "$compiler_id" = "GNU_C" ||
17201 test "$compiler_id" = "CLANG"; then
17202
17203 if test "$compiler_id" = "GNU_C" ||
17204 test "$compiler_id" = "CLANG"; then
17205 tmp_has_include="no"
17206 tmp_chg_FLAGS="$CFLAGS"
17207 for word1 in $tmp_chg_FLAGS; do
17208 case "$word1" in
17209 -I*)
17210 tmp_has_include="yes"
17211 ;;
17212 esac
17213 done
17214 if test "$tmp_has_include" = "yes"; then
17215 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17216 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17217 CFLAGS="$tmp_chg_FLAGS"
17218 squeeze CFLAGS
17219 fi
17220 tmp_has_include="no"
17221 tmp_chg_FLAGS="$CPPFLAGS"
17222 for word1 in $tmp_chg_FLAGS; do
17223 case "$word1" in
17224 -I*)
17225 tmp_has_include="yes"
17226 ;;
17227 esac
17228 done
17229 if test "$tmp_has_include" = "yes"; then
17230 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17231 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17232 CPPFLAGS="$tmp_chg_FLAGS"
17233 squeeze CPPFLAGS
17234 fi
17235 fi
17236
17237 fi
17238 #
17239 tmp_save_CPPFLAGS="$CPPFLAGS"
17240 tmp_save_CFLAGS="$CFLAGS"
17241 tmp_CPPFLAGS=""
17242 tmp_CFLAGS=""
17243 #
17244 case "$compiler_id" in
17245 #
17246 CLANG)
17247 #
17248 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17249 ;;
17250 #
17251 DEC_C)
17252 #
17253 tmp_CFLAGS="$tmp_CFLAGS -std1"
17254 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17255 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17256 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17257 ;;
17258 #
17259 GNU_C)
17260 #
17261 if test "$compiler_num" -ge "295"; then
17262 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17263 fi
17264 ;;
17265 #
17266 HP_UX_C)
17267 #
17268 tmp_CFLAGS="$tmp_CFLAGS -z"
17269 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17270 ;;
17271 #
17272 IBM_C)
17273 #
17274 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17275 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17276 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17277 ;;
17278 #
17279 INTEL_UNIX_C)
17280 #
17281 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17282 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17283 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17284 ;;
17285 #
17286 INTEL_WINDOWS_C)
17287 #
17288 tmp_CFLAGS="$tmp_CFLAGS"
17289 ;;
17290 #
17291 LCC)
17292 #
17293 tmp_CFLAGS="$tmp_CFLAGS -n"
17294 ;;
17295 #
17296 SGI_MIPS_C)
17297 #
17298 tmp_CFLAGS="$tmp_CFLAGS"
17299 ;;
17300 #
17301 SGI_MIPSPRO_C)
17302 #
17303 tmp_CFLAGS="$tmp_CFLAGS"
17304 ;;
17305 #
17306 SUNPRO_C)
17307 #
17308 tmp_CFLAGS="$tmp_CFLAGS"
17309 ;;
17310 #
17311 TINY_C)
17312 #
17313 tmp_CFLAGS="$tmp_CFLAGS"
17314 ;;
17315 #
17316 WATCOM_UNIX_C)
17317 #
17318 tmp_CFLAGS="$tmp_CFLAGS"
17319 ;;
17320 #
17321 WATCOM_WINDOWS_C)
17322 #
17323 tmp_CFLAGS="$tmp_CFLAGS"
17324 ;;
17325 #
17326 esac
17327 #
17328 squeeze tmp_CPPFLAGS
17329 squeeze tmp_CFLAGS
17330 #
17331 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17333$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17334 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17335 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17336 squeeze CPPFLAGS
17337 squeeze CFLAGS
17338
17339 tmp_compiler_works="unknown"
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341/* end confdefs.h. */
17342
17343
17344
17345int main (void)
17346{
17347
17348 int i = 1;
17349 return i;
17350
17351 ;
17352 return 0;
17353}
17354
17355_ACEOF
17356if ac_fn_c_try_compile "$LINENO"; then :
17357
17358 tmp_compiler_works="yes"
17359
17360else
17361
17362 tmp_compiler_works="no"
17363 echo " " >&6
17364 sed 's/^/cc-fail: /' conftest.err >&6
17365 echo " " >&6
17366
17367fi
17368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17369 if test "$tmp_compiler_works" = "yes"; then
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371/* end confdefs.h. */
17372
17373
17374
17375int main (void)
17376{
17377
17378 int i = 1;
17379 return i;
17380
17381 ;
17382 return 0;
17383}
17384
17385_ACEOF
17386if ac_fn_c_try_link "$LINENO"; then :
17387
17388 tmp_compiler_works="yes"
17389
17390else
17391
17392 tmp_compiler_works="no"
17393 echo " " >&6
17394 sed 's/^/link-fail: /' conftest.err >&6
17395 echo " " >&6
17396
17397fi
17398rm -f core conftest.err conftest.$ac_objext \
17399 conftest$ac_exeext conftest.$ac_ext
17400 fi
17401 if test "x$cross_compiling" != "xyes" &&
17402 test "$tmp_compiler_works" = "yes"; then
17403 if test "$cross_compiling" = yes; then :
17404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17406as_fn_error $? "cannot run test program while cross compiling
17407See \`config.log' for more details" "$LINENO" 5; }
17408else
17409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h. */
17411
17412
17413# ifdef __STDC__
17414# include <stdlib.h>
17415# endif
17416
17417int main (void)
17418{
17419
17420 int i = 0;
17421 exit(i);
17422
17423 ;
17424 return 0;
17425}
17426
17427_ACEOF
17428if ac_fn_c_try_run "$LINENO"; then :
17429
17430 tmp_compiler_works="yes"
17431
17432else
17433
17434 tmp_compiler_works="no"
17435 echo " " >&6
17436 echo "run-fail: test program exited with status $ac_status" >&6
17437 echo " " >&6
17438
17439fi
17440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17441 conftest.$ac_objext conftest.beam conftest.$ac_ext
17442fi
17443
17444 fi
17445 if test "$tmp_compiler_works" = "yes"; then
17446
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17448$as_echo "yes" >&6; }
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17450$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17451
17452 else
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455$as_echo "no" >&6; }
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17457$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17458 CPPFLAGS="$tmp_save_CPPFLAGS"
17459 CFLAGS="$tmp_save_CFLAGS"
17460
17461 fi
17462
17463 fi
17464 #
17465 fi
17466
17467
17468 #
17469 if test "$compiler_id" != "unknown"; then
17470 #
17471 tmp_save_CFLAGS="$CFLAGS"
17472 tmp_save_CPPFLAGS="$CPPFLAGS"
17473 #
17474 tmp_options=""
17475 tmp_CFLAGS="$CFLAGS"
17476 tmp_CPPFLAGS="$CPPFLAGS"
17477
17478 ac_var_stripped=""
17479 for word1 in $tmp_CFLAGS; do
17480 ac_var_strip_word="no"
17481 for word2 in $flags_dbg_all; do
17482 if test "$word1" = "$word2"; then
17483 ac_var_strip_word="yes"
17484 fi
17485 done
17486 if test "$ac_var_strip_word" = "no"; then
17487 ac_var_stripped="$ac_var_stripped $word1"
17488 fi
17489 done
17490 tmp_CFLAGS="$ac_var_stripped"
17491 squeeze tmp_CFLAGS
17492
17493
17494 ac_var_stripped=""
17495 for word1 in $tmp_CPPFLAGS; do
17496 ac_var_strip_word="no"
17497 for word2 in $flags_dbg_all; do
17498 if test "$word1" = "$word2"; then
17499 ac_var_strip_word="yes"
17500 fi
17501 done
17502 if test "$ac_var_strip_word" = "no"; then
17503 ac_var_stripped="$ac_var_stripped $word1"
17504 fi
17505 done
17506 tmp_CPPFLAGS="$ac_var_stripped"
17507 squeeze tmp_CPPFLAGS
17508
17509 #
17510 if test "$want_debug" = "yes"; then
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17512$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17513 tmp_options="$flags_dbg_yes"
17514 fi
17515 if test "$want_debug" = "no"; then
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17517$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17518 tmp_options="$flags_dbg_off"
17519 fi
17520 #
17521 if test "$flags_prefer_cppflags" = "yes"; then
17522 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17523 CFLAGS="$tmp_CFLAGS"
17524 else
17525 CPPFLAGS="$tmp_CPPFLAGS"
17526 CFLAGS="$tmp_CFLAGS $tmp_options"
17527 fi
17528 squeeze CPPFLAGS
17529 squeeze CFLAGS
17530
17531 tmp_compiler_works="unknown"
17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h. */
17534
17535
17536
17537int main (void)
17538{
17539
17540 int i = 1;
17541 return i;
17542
17543 ;
17544 return 0;
17545}
17546
17547_ACEOF
17548if ac_fn_c_try_compile "$LINENO"; then :
17549
17550 tmp_compiler_works="yes"
17551
17552else
17553
17554 tmp_compiler_works="no"
17555 echo " " >&6
17556 sed 's/^/cc-fail: /' conftest.err >&6
17557 echo " " >&6
17558
17559fi
17560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 if test "$tmp_compiler_works" = "yes"; then
17562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17563/* end confdefs.h. */
17564
17565
17566
17567int main (void)
17568{
17569
17570 int i = 1;
17571 return i;
17572
17573 ;
17574 return 0;
17575}
17576
17577_ACEOF
17578if ac_fn_c_try_link "$LINENO"; then :
17579
17580 tmp_compiler_works="yes"
17581
17582else
17583
17584 tmp_compiler_works="no"
17585 echo " " >&6
17586 sed 's/^/link-fail: /' conftest.err >&6
17587 echo " " >&6
17588
17589fi
17590rm -f core conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
17592 fi
17593 if test "x$cross_compiling" != "xyes" &&
17594 test "$tmp_compiler_works" = "yes"; then
17595 if test "$cross_compiling" = yes; then :
17596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17598as_fn_error $? "cannot run test program while cross compiling
17599See \`config.log' for more details" "$LINENO" 5; }
17600else
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602/* end confdefs.h. */
17603
17604
17605# ifdef __STDC__
17606# include <stdlib.h>
17607# endif
17608
17609int main (void)
17610{
17611
17612 int i = 0;
17613 exit(i);
17614
17615 ;
17616 return 0;
17617}
17618
17619_ACEOF
17620if ac_fn_c_try_run "$LINENO"; then :
17621
17622 tmp_compiler_works="yes"
17623
17624else
17625
17626 tmp_compiler_works="no"
17627 echo " " >&6
17628 echo "run-fail: test program exited with status $ac_status" >&6
17629 echo " " >&6
17630
17631fi
17632rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17633 conftest.$ac_objext conftest.beam conftest.$ac_ext
17634fi
17635
17636 fi
17637 if test "$tmp_compiler_works" = "yes"; then
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17640$as_echo "yes" >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17642$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17643
17644 else
17645
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17647$as_echo "no" >&6; }
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17649$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17650 CPPFLAGS="$tmp_save_CPPFLAGS"
17651 CFLAGS="$tmp_save_CFLAGS"
17652
17653 fi
17654
17655 #
17656 fi
17657
17658
17659 #
17660 if test "$compiler_id" != "unknown"; then
17661 #
17662 tmp_save_CFLAGS="$CFLAGS"
17663 tmp_save_CPPFLAGS="$CPPFLAGS"
17664 #
17665 tmp_options=""
17666 tmp_CFLAGS="$CFLAGS"
17667 tmp_CPPFLAGS="$CPPFLAGS"
17668 honor_optimize_option="yes"
17669 #
17670 #
17671 if test "$want_optimize" = "assume_no" ||
17672 test "$want_optimize" = "assume_yes"; then
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17674$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17675
17676
17677 ac_var_match_word="no"
17678 for word1 in $tmp_CFLAGS; do
17679 for word2 in $flags_opt_all; do
17680 if test "$word1" = "$word2"; then
17681 ac_var_match_word="yes"
17682 fi
17683 done
17684 done
17685
17686 if test "$ac_var_match_word" = "yes"; then
17687
17688 honor_optimize_option="no"
17689
17690
17691 fi
17692
17693
17694
17695 ac_var_match_word="no"
17696 for word1 in $tmp_CPPFLAGS; do
17697 for word2 in $flags_opt_all; do
17698 if test "$word1" = "$word2"; then
17699 ac_var_match_word="yes"
17700 fi
17701 done
17702 done
17703
17704 if test "$ac_var_match_word" = "yes"; then
17705
17706 honor_optimize_option="no"
17707
17708
17709 fi
17710
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17712$as_echo "$honor_optimize_option" >&6; }
17713 if test "$honor_optimize_option" = "yes"; then
17714 if test "$want_optimize" = "assume_yes"; then
17715 want_optimize="yes"
17716 fi
17717 if test "$want_optimize" = "assume_no"; then
17718 want_optimize="no"
17719 fi
17720 fi
17721 fi
17722 #
17723 if test "$honor_optimize_option" = "yes"; then
17724
17725 ac_var_stripped=""
17726 for word1 in $tmp_CFLAGS; do
17727 ac_var_strip_word="no"
17728 for word2 in $flags_opt_all; do
17729 if test "$word1" = "$word2"; then
17730 ac_var_strip_word="yes"
17731 fi
17732 done
17733 if test "$ac_var_strip_word" = "no"; then
17734 ac_var_stripped="$ac_var_stripped $word1"
17735 fi
17736 done
17737 tmp_CFLAGS="$ac_var_stripped"
17738 squeeze tmp_CFLAGS
17739
17740
17741 ac_var_stripped=""
17742 for word1 in $tmp_CPPFLAGS; do
17743 ac_var_strip_word="no"
17744 for word2 in $flags_opt_all; do
17745 if test "$word1" = "$word2"; then
17746 ac_var_strip_word="yes"
17747 fi
17748 done
17749 if test "$ac_var_strip_word" = "no"; then
17750 ac_var_stripped="$ac_var_stripped $word1"
17751 fi
17752 done
17753 tmp_CPPFLAGS="$ac_var_stripped"
17754 squeeze tmp_CPPFLAGS
17755
17756 if test "$want_optimize" = "yes"; then
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17758$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17759 tmp_options="$flags_opt_yes"
17760 fi
17761 if test "$want_optimize" = "no"; then
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17763$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17764 tmp_options="$flags_opt_off"
17765 fi
17766 if test "$flags_prefer_cppflags" = "yes"; then
17767 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17768 CFLAGS="$tmp_CFLAGS"
17769 else
17770 CPPFLAGS="$tmp_CPPFLAGS"
17771 CFLAGS="$tmp_CFLAGS $tmp_options"
17772 fi
17773 squeeze CPPFLAGS
17774 squeeze CFLAGS
17775
17776 tmp_compiler_works="unknown"
17777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778/* end confdefs.h. */
17779
17780
17781
17782int main (void)
17783{
17784
17785 int i = 1;
17786 return i;
17787
17788 ;
17789 return 0;
17790}
17791
17792_ACEOF
17793if ac_fn_c_try_compile "$LINENO"; then :
17794
17795 tmp_compiler_works="yes"
17796
17797else
17798
17799 tmp_compiler_works="no"
17800 echo " " >&6
17801 sed 's/^/cc-fail: /' conftest.err >&6
17802 echo " " >&6
17803
17804fi
17805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 if test "$tmp_compiler_works" = "yes"; then
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808/* end confdefs.h. */
17809
17810
17811
17812int main (void)
17813{
17814
17815 int i = 1;
17816 return i;
17817
17818 ;
17819 return 0;
17820}
17821
17822_ACEOF
17823if ac_fn_c_try_link "$LINENO"; then :
17824
17825 tmp_compiler_works="yes"
17826
17827else
17828
17829 tmp_compiler_works="no"
17830 echo " " >&6
17831 sed 's/^/link-fail: /' conftest.err >&6
17832 echo " " >&6
17833
17834fi
17835rm -f core conftest.err conftest.$ac_objext \
17836 conftest$ac_exeext conftest.$ac_ext
17837 fi
17838 if test "x$cross_compiling" != "xyes" &&
17839 test "$tmp_compiler_works" = "yes"; then
17840 if test "$cross_compiling" = yes; then :
17841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17843as_fn_error $? "cannot run test program while cross compiling
17844See \`config.log' for more details" "$LINENO" 5; }
17845else
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847/* end confdefs.h. */
17848
17849
17850# ifdef __STDC__
17851# include <stdlib.h>
17852# endif
17853
17854int main (void)
17855{
17856
17857 int i = 0;
17858 exit(i);
17859
17860 ;
17861 return 0;
17862}
17863
17864_ACEOF
17865if ac_fn_c_try_run "$LINENO"; then :
17866
17867 tmp_compiler_works="yes"
17868
17869else
17870
17871 tmp_compiler_works="no"
17872 echo " " >&6
17873 echo "run-fail: test program exited with status $ac_status" >&6
17874 echo " " >&6
17875
17876fi
17877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17878 conftest.$ac_objext conftest.beam conftest.$ac_ext
17879fi
17880
17881 fi
17882 if test "$tmp_compiler_works" = "yes"; then
17883
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17885$as_echo "yes" >&6; }
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17887$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17888
17889 else
17890
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17892$as_echo "no" >&6; }
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17894$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17895 CPPFLAGS="$tmp_save_CPPFLAGS"
17896 CFLAGS="$tmp_save_CFLAGS"
17897
17898 fi
17899
17900 fi
17901 #
17902 fi
17903
17904
17905 #
17906 if test "$compiler_id" != "unknown"; then
17907 #
17908 tmp_save_CPPFLAGS="$CPPFLAGS"
17909 tmp_save_CFLAGS="$CFLAGS"
17910 tmp_CPPFLAGS=""
17911 tmp_CFLAGS=""
17912 #
17913 case "$compiler_id" in
17914 #
17915 CLANG)
17916 #
17917 if test "$want_warnings" = "yes"; then
17918 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17919 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17920 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17921 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17922 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17923 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17924 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17925 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17926 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17927 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17928 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17929 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17930 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17931 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17932 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17933 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17934 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17935 #
17936 if test "$compiler_num" -ge "101"; then
17937 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17938 fi
17939 #
17940 if test "$compiler_num" -ge "208"; then
17941 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17942 fi
17943 #
17944 if test "$compiler_num" -ge "209"; then
17945 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17946 fi
17947 #
17948 if test "$compiler_num" -ge "302"; then
17949 case $host_os in
17950 cygwin* | mingw*)
17951 ;;
17952 *)
17953 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17954 ;;
17955 esac
17956 fi
17957 #
17958 if test "$compiler_num" -ge "306"; then
17959 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17960 fi
17961 #
17962 if test "$compiler_num" -ge "309"; then
17963 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017964 # avoid the varargs warning, fixed in 4.0
17965 # https://bugs.llvm.org/show_bug.cgi?id=29140
17966 if test "$compiler_num" -lt "400"; then
17967 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17968 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017969 fi
17970 fi
17971 ;;
17972 #
17973 DEC_C)
17974 #
17975 if test "$want_warnings" = "yes"; then
17976 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17977 fi
17978 ;;
17979 #
17980 GNU_C)
17981 #
17982 if test "$want_warnings" = "yes"; then
17983 #
17984 if test "x$cross_compiling" != "xyes" ||
17985 test "$compiler_num" -ge "300"; then
17986 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17987 fi
17988 #
17989 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17990 #
17991 if test "$compiler_num" -ge "104"; then
17992 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17993 if test "x$cross_compiling" != "xyes" ||
17994 test "$compiler_num" -ge "300"; then
17995 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17996 fi
17997 fi
17998 #
17999 if test "$compiler_num" -ge "207"; then
18000 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
18001 if test "x$cross_compiling" != "xyes" ||
18002 test "$compiler_num" -ge "300"; then
18003 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
18004 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
18005 fi
18006 fi
18007 #
18008 if test "$compiler_num" -ge "295"; then
18009 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18010 fi
18011 #
18012 if test "$compiler_num" -ge "296"; then
18013 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18014 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18015 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18016 fi
18017 #
18018 if test "$compiler_num" -ge "297"; then
18019 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18020 fi
18021 #
18022 if test "$compiler_num" -ge "300"; then
18023 tmp_CFLAGS="$tmp_CFLAGS"
18024 fi
18025 #
18026 if test "$compiler_num" -ge "303"; then
18027 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18028 fi
18029 #
18030 if test "$compiler_num" -ge "304"; then
18031 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18032 fi
18033 #
18034 if test "$compiler_num" -ge "400"; then
18035 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18036 fi
18037 #
18038 if test "$compiler_num" -ge "402"; then
18039 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18040 fi
18041 #
18042 if test "$compiler_num" -ge "403"; then
18043 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18044 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18045 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18046 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18047 fi
18048 #
18049 if test "$compiler_num" -ge "405"; then
18050 if test "$curl_cv_have_def__WIN32" = "yes"; then
18051 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18052 fi
18053 fi
18054 #
18055 if test "$compiler_num" -ge "406"; then
18056 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18057 fi
18058 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070018059 if test "$compiler_num" -ge "600"; then
18060 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
18061 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
18062 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference"
18063 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
18064 fi
18065 #
18066 if test "$compiler_num" -ge "700"; then
18067 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
18068 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
18069 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
18070 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
18071 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
18072 fi
18073 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070018074 fi
18075 #
18076 if test "$compiler_num" -ge "300"; then
18077 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18078 else
18079 if test "x$cross_compiling" = "xyes"; then
18080 if test "$compiler_num" -ge "104"; then
18081 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18082 fi
18083 if test "$compiler_num" -ge "207"; then
18084 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18085 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18086 fi
18087 fi
18088 fi
18089 ;;
18090 #
18091 HP_UX_C)
18092 #
18093 if test "$want_warnings" = "yes"; then
18094 tmp_CFLAGS="$tmp_CFLAGS +w1"
18095 fi
18096 ;;
18097 #
18098 IBM_C)
18099 #
18100 tmp_CFLAGS="$tmp_CFLAGS"
18101 ;;
18102 #
18103 INTEL_UNIX_C)
18104 #
18105 if test "$want_warnings" = "yes"; then
18106 if test "$compiler_num" -gt "600"; then
18107 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18108 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18109 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18110 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18111 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18112 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18113 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18114 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18115 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18116 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18117 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18118 fi
18119 fi
18120 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18121 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18122 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18123 if test "$compiler_num" -ge "1000"; then
18124 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18125 fi
18126 ;;
18127 #
18128 INTEL_WINDOWS_C)
18129 #
18130 tmp_CFLAGS="$tmp_CFLAGS"
18131 ;;
18132 #
18133 LCC)
18134 #
18135 if test "$want_warnings" = "yes"; then
18136 tmp_CFLAGS="$tmp_CFLAGS"
18137 fi
18138 ;;
18139 #
18140 SGI_MIPS_C)
18141 #
18142 if test "$want_warnings" = "yes"; then
18143 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18144 fi
18145 ;;
18146 #
18147 SGI_MIPSPRO_C)
18148 #
18149 if test "$want_warnings" = "yes"; then
18150 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18151 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18152 fi
18153 ;;
18154 #
18155 SUNPRO_C)
18156 #
18157 if test "$want_warnings" = "yes"; then
18158 tmp_CFLAGS="$tmp_CFLAGS -v"
18159 fi
18160 ;;
18161 #
18162 TINY_C)
18163 #
18164 if test "$want_warnings" = "yes"; then
18165 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18166 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18167 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18168 fi
18169 ;;
18170 #
18171 WATCOM_UNIX_C)
18172 #
18173 if test "$want_warnings" = "yes"; then
18174 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18175 fi
18176 ;;
18177 #
18178 WATCOM_WINDOWS_C)
18179 #
18180 tmp_CFLAGS="$tmp_CFLAGS"
18181 ;;
18182 #
18183 esac
18184 #
18185 squeeze tmp_CPPFLAGS
18186 squeeze tmp_CFLAGS
18187 #
18188 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18190$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18191 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18192 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18193 squeeze CPPFLAGS
18194 squeeze CFLAGS
18195
18196 tmp_compiler_works="unknown"
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198/* end confdefs.h. */
18199
18200
18201
18202int main (void)
18203{
18204
18205 int i = 1;
18206 return i;
18207
18208 ;
18209 return 0;
18210}
18211
18212_ACEOF
18213if ac_fn_c_try_compile "$LINENO"; then :
18214
18215 tmp_compiler_works="yes"
18216
18217else
18218
18219 tmp_compiler_works="no"
18220 echo " " >&6
18221 sed 's/^/cc-fail: /' conftest.err >&6
18222 echo " " >&6
18223
18224fi
18225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18226 if test "$tmp_compiler_works" = "yes"; then
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228/* end confdefs.h. */
18229
18230
18231
18232int main (void)
18233{
18234
18235 int i = 1;
18236 return i;
18237
18238 ;
18239 return 0;
18240}
18241
18242_ACEOF
18243if ac_fn_c_try_link "$LINENO"; then :
18244
18245 tmp_compiler_works="yes"
18246
18247else
18248
18249 tmp_compiler_works="no"
18250 echo " " >&6
18251 sed 's/^/link-fail: /' conftest.err >&6
18252 echo " " >&6
18253
18254fi
18255rm -f core conftest.err conftest.$ac_objext \
18256 conftest$ac_exeext conftest.$ac_ext
18257 fi
18258 if test "x$cross_compiling" != "xyes" &&
18259 test "$tmp_compiler_works" = "yes"; then
18260 if test "$cross_compiling" = yes; then :
18261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18263as_fn_error $? "cannot run test program while cross compiling
18264See \`config.log' for more details" "$LINENO" 5; }
18265else
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267/* end confdefs.h. */
18268
18269
18270# ifdef __STDC__
18271# include <stdlib.h>
18272# endif
18273
18274int main (void)
18275{
18276
18277 int i = 0;
18278 exit(i);
18279
18280 ;
18281 return 0;
18282}
18283
18284_ACEOF
18285if ac_fn_c_try_run "$LINENO"; then :
18286
18287 tmp_compiler_works="yes"
18288
18289else
18290
18291 tmp_compiler_works="no"
18292 echo " " >&6
18293 echo "run-fail: test program exited with status $ac_status" >&6
18294 echo " " >&6
18295
18296fi
18297rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18298 conftest.$ac_objext conftest.beam conftest.$ac_ext
18299fi
18300
18301 fi
18302 if test "$tmp_compiler_works" = "yes"; then
18303
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18305$as_echo "yes" >&6; }
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18307$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18308
18309 else
18310
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18312$as_echo "no" >&6; }
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18314$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18315 CPPFLAGS="$tmp_save_CPPFLAGS"
18316 CFLAGS="$tmp_save_CFLAGS"
18317
18318 fi
18319
18320 fi
18321 #
18322 fi
18323
18324
18325if test "$compiler_id" = "INTEL_UNIX_C"; then
18326 #
18327 if test "$compiler_num" -ge "1000"; then
18328 CFLAGS="$CFLAGS -shared-intel"
18329 elif test "$compiler_num" -ge "900"; then
18330 CFLAGS="$CFLAGS -i-dynamic"
18331 fi
18332 #
18333fi
18334
18335
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18337$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339/* end confdefs.h. */
18340
18341
18342
18343int main (void)
18344{
18345
18346 force compilation error
18347
18348 ;
18349 return 0;
18350}
18351
18352_ACEOF
18353if ac_fn_c_try_compile "$LINENO"; then :
18354
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18356$as_echo "no" >&6; }
18357 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18358
18359else
18360
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18362$as_echo "yes" >&6; }
18363
18364fi
18365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18366
18367
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18369$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371/* end confdefs.h. */
18372
18373
18374 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18375
18376int main (void)
18377{
18378
18379 bad_t dummy;
18380
18381 ;
18382 return 0;
18383}
18384
18385_ACEOF
18386if ac_fn_c_try_compile "$LINENO"; then :
18387
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18389$as_echo "no" >&6; }
18390 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18391
18392else
18393
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18395$as_echo "yes" >&6; }
18396
18397fi
18398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399
18400
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18402$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18404/* end confdefs.h. */
18405
18406
18407# include <stdlib.h>
18408 int rand(int n);
18409 int rand(int n)
18410 {
18411 if(n)
18412 return ++n;
18413 else
18414 return n;
18415 }
18416
18417int main (void)
18418{
18419
18420 int i[2]={0,0};
18421 int j = rand(i[0]);
18422 if(j)
18423 return j;
18424
18425 ;
18426 return 0;
18427}
18428
18429_ACEOF
18430if ac_fn_c_try_compile "$LINENO"; then :
18431
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18433$as_echo "no" >&6; }
18434 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18435
18436else
18437
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18439$as_echo "yes" >&6; }
18440
18441fi
18442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18443
18444
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18446$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18447 supports_symbol_hiding="no"
18448 symbol_hiding_CFLAGS=""
18449 symbol_hiding_EXTERN=""
18450 tmp_CFLAGS=""
18451 tmp_EXTERN=""
18452 case "$compiler_id" in
18453 CLANG)
18454 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18455 tmp_CFLAGS="-fvisibility=hidden"
18456 supports_symbol_hiding="yes"
18457 ;;
18458 GNU_C)
18459 if test "$compiler_num" -ge "304"; then
18460 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18461 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18462 tmp_CFLAGS="-fvisibility=hidden"
18463 supports_symbol_hiding="yes"
18464 fi
18465 fi
18466 ;;
18467 INTEL_UNIX_C)
18468 if test "$compiler_num" -ge "900"; then
18469 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18470 tmp_save_CFLAGS="$CFLAGS"
18471 CFLAGS="$CFLAGS -fvisibility=hidden"
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473/* end confdefs.h. */
18474
18475
18476# include <stdio.h>
18477
18478int main (void)
18479{
18480
18481 printf("icc fvisibility bug test");
18482
18483 ;
18484 return 0;
18485}
18486
18487_ACEOF
18488if ac_fn_c_try_link "$LINENO"; then :
18489
18490 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18491 tmp_CFLAGS="-fvisibility=hidden"
18492 supports_symbol_hiding="yes"
18493
18494fi
18495rm -f core conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18497 CFLAGS="$tmp_save_CFLAGS"
18498 fi
18499 fi
18500 ;;
18501 SUNPRO_C)
18502 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18503 tmp_EXTERN="__global"
18504 tmp_CFLAGS="-xldscope=hidden"
18505 supports_symbol_hiding="yes"
18506 fi
18507 ;;
18508 esac
18509 if test "$supports_symbol_hiding" = "yes"; then
18510 tmp_save_CFLAGS="$CFLAGS"
18511 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18512 squeeze CFLAGS
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514/* end confdefs.h. */
18515
18516
18517 $tmp_EXTERN char *dummy(char *buff);
18518 char *dummy(char *buff)
18519 {
18520 if(buff)
18521 return ++buff;
18522 else
18523 return buff;
18524 }
18525
18526int main (void)
18527{
18528
18529 char b[16];
18530 char *r = dummy(&b[0]);
18531 if(r)
18532 return (int)*r;
18533
18534 ;
18535 return 0;
18536}
18537
18538_ACEOF
18539if ac_fn_c_try_compile "$LINENO"; then :
18540
18541 supports_symbol_hiding="yes"
18542 if test -f conftest.err; then
18543 grep 'visibility' conftest.err >/dev/null
18544 if test "$?" -eq "0"; then
18545 supports_symbol_hiding="no"
18546 fi
18547 fi
18548
18549else
18550
18551 supports_symbol_hiding="no"
18552 echo " " >&6
18553 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18554 sed 's/^/cc-err: /' conftest.err >&6
18555 echo " " >&6
18556
18557fi
18558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18559 CFLAGS="$tmp_save_CFLAGS"
18560 fi
18561 if test "$supports_symbol_hiding" = "yes"; then
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18563$as_echo "yes" >&6; }
18564 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18565 symbol_hiding_EXTERN="$tmp_EXTERN"
18566 else
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18568$as_echo "no" >&6; }
18569 fi
18570
18571
18572
18573 supports_curldebug="unknown"
18574 if test "$want_curldebug" = "yes"; then
18575 if test "x$enable_shared" != "xno" &&
18576 test "x$enable_shared" != "xyes"; then
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18578$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18579 supports_curldebug="no"
18580 fi
18581 if test "x$enable_static" != "xno" &&
18582 test "x$enable_static" != "xyes"; then
18583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18584$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18585 supports_curldebug="no"
18586 fi
18587 if test "$supports_curldebug" != "no"; then
18588 if test "$enable_shared" = "yes" &&
18589 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18590 supports_curldebug="no"
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18592$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18593 fi
18594 fi
18595 fi
18596 #
18597 if test "$want_curldebug" = "yes"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18599$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18600 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18602$as_echo "$supports_curldebug" >&6; }
18603 if test "$supports_curldebug" = "no"; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18605$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18606 want_curldebug="no"
18607 fi
18608 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018609
18610 if test x$want_curldebug = xyes; then
18611 CURLDEBUG_TRUE=
18612 CURLDEBUG_FALSE='#'
18613else
18614 CURLDEBUG_TRUE='#'
18615 CURLDEBUG_FALSE=
18616fi
18617
18618
18619supports_unittests=yes
18620# cross-compilation of unit tests static library/programs fails when
18621# libcurl shared library is built. This might be due to a libtool or
18622# automake issue. In this case we disable unit tests.
18623if test "x$cross_compiling" != "xno" &&
18624 test "x$enable_shared" != "xno"; then
18625 supports_unittests=no
18626fi
18627
18628# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18629# a problem related with OpenSSL headers and library versions not matching.
18630# Disable unit tests while time to further investigate this is found.
18631case $host in
18632 mips-sgi-irix6.5)
18633 if test "$compiler_id" = "GNU_C"; then
18634 supports_unittests=no
18635 fi
18636 ;;
18637esac
18638
18639# All AIX autobuilds fails unit tests linking against unittests library
18640# due to unittests library being built with no symbols or members. Libtool ?
18641# Disable unit tests while time to further investigate this is found.
18642case $host_os in
18643 aix*)
18644 supports_unittests=no
18645 ;;
18646esac
18647
18648if test "x$want_debug" = "xyes" &&
18649 test "x$supports_unittests" = "xyes"; then
18650 want_unittests=yes
18651else
18652 want_unittests=no
18653fi
18654 if test x$want_unittests = xyes; then
18655 BUILD_UNITTESTS_TRUE=
18656 BUILD_UNITTESTS_FALSE='#'
18657else
18658 BUILD_UNITTESTS_TRUE='#'
18659 BUILD_UNITTESTS_FALSE=
18660fi
18661
18662
18663
18664
18665
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18667$as_echo_n "checking for windows.h... " >&6; }
18668if ${curl_cv_header_windows_h+:} false; then :
18669 $as_echo_n "(cached) " >&6
18670else
18671
18672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18673/* end confdefs.h. */
18674
18675
18676#undef inline
18677#ifndef WIN32_LEAN_AND_MEAN
18678#define WIN32_LEAN_AND_MEAN
18679#endif
18680#include <windows.h>
18681
18682int main (void)
18683{
18684
18685#if defined(__CYGWIN__) || defined(__CEGCC__)
18686 HAVE_WINDOWS_H shall not be defined.
18687#else
18688 int dummy=2*WINVER;
18689#endif
18690
18691 ;
18692 return 0;
18693}
18694
18695_ACEOF
18696if ac_fn_c_try_compile "$LINENO"; then :
18697
18698 curl_cv_header_windows_h="yes"
18699
18700else
18701
18702 curl_cv_header_windows_h="no"
18703
18704fi
18705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18706
18707fi
18708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18709$as_echo "$curl_cv_header_windows_h" >&6; }
18710 case "$curl_cv_header_windows_h" in
18711 yes)
18712
18713cat >>confdefs.h <<_ACEOF
18714#define HAVE_WINDOWS_H 1
18715_ACEOF
18716
18717 ;;
18718 esac
18719
18720
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18722$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18723if ${curl_cv_native_windows+:} false; then :
18724 $as_echo_n "(cached) " >&6
18725else
18726
18727 if test "$curl_cv_header_windows_h" = "no"; then
18728 curl_cv_native_windows="no"
18729 else
18730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18731/* end confdefs.h. */
18732
18733
18734
18735int main (void)
18736{
18737
18738#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18739 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18740 int dummy=1;
18741#else
18742 Not a native Windows build target.
18743#endif
18744
18745 ;
18746 return 0;
18747}
18748
18749_ACEOF
18750if ac_fn_c_try_compile "$LINENO"; then :
18751
18752 curl_cv_native_windows="yes"
18753
18754else
18755
18756 curl_cv_native_windows="no"
18757
18758fi
18759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18760 fi
18761
18762fi
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18764$as_echo "$curl_cv_native_windows" >&6; }
18765 if test "x$curl_cv_native_windows" = xyes; then
18766 DOING_NATIVE_WINDOWS_TRUE=
18767 DOING_NATIVE_WINDOWS_FALSE='#'
18768else
18769 DOING_NATIVE_WINDOWS_TRUE='#'
18770 DOING_NATIVE_WINDOWS_FALSE=
18771fi
18772
18773
18774case X-"$curl_cv_native_windows" in
18775 X-yes)
18776
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18778$as_echo_n "checking for winsock.h... " >&6; }
18779if ${curl_cv_header_winsock_h+:} false; then :
18780 $as_echo_n "(cached) " >&6
18781else
18782
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784/* end confdefs.h. */
18785
18786
18787#undef inline
18788#ifndef WIN32_LEAN_AND_MEAN
18789#define WIN32_LEAN_AND_MEAN
18790#endif
18791#include <windows.h>
18792#include <winsock.h>
18793
18794int main (void)
18795{
18796
18797#if defined(__CYGWIN__) || defined(__CEGCC__)
18798 HAVE_WINSOCK_H shall not be defined.
18799#else
18800 int dummy=WSACleanup();
18801#endif
18802
18803 ;
18804 return 0;
18805}
18806
18807_ACEOF
18808if ac_fn_c_try_compile "$LINENO"; then :
18809
18810 curl_cv_header_winsock_h="yes"
18811
18812else
18813
18814 curl_cv_header_winsock_h="no"
18815
18816fi
18817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18818
18819fi
18820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18821$as_echo "$curl_cv_header_winsock_h" >&6; }
18822 case "$curl_cv_header_winsock_h" in
18823 yes)
18824
18825cat >>confdefs.h <<_ACEOF
18826#define HAVE_WINSOCK_H 1
18827_ACEOF
18828
18829 ;;
18830 esac
18831
18832
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18834$as_echo_n "checking for winsock2.h... " >&6; }
18835if ${curl_cv_header_winsock2_h+:} false; then :
18836 $as_echo_n "(cached) " >&6
18837else
18838
18839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18840/* end confdefs.h. */
18841
18842
18843#undef inline
18844#ifndef WIN32_LEAN_AND_MEAN
18845#define WIN32_LEAN_AND_MEAN
18846#endif
18847#include <windows.h>
18848#include <winsock2.h>
18849
18850int main (void)
18851{
18852
18853#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18854 HAVE_WINSOCK2_H shall not be defined.
18855#else
18856 int dummy=2*IPPROTO_ESP;
18857#endif
18858
18859 ;
18860 return 0;
18861}
18862
18863_ACEOF
18864if ac_fn_c_try_compile "$LINENO"; then :
18865
18866 curl_cv_header_winsock2_h="yes"
18867
18868else
18869
18870 curl_cv_header_winsock2_h="no"
18871
18872fi
18873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18874
18875fi
18876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18877$as_echo "$curl_cv_header_winsock2_h" >&6; }
18878 case "$curl_cv_header_winsock2_h" in
18879 yes)
18880
18881cat >>confdefs.h <<_ACEOF
18882#define HAVE_WINSOCK2_H 1
18883_ACEOF
18884
18885 ;;
18886 esac
18887
18888
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18890$as_echo_n "checking for ws2tcpip.h... " >&6; }
18891if ${curl_cv_header_ws2tcpip_h+:} false; then :
18892 $as_echo_n "(cached) " >&6
18893else
18894
18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896/* end confdefs.h. */
18897
18898
18899#undef inline
18900#ifndef WIN32_LEAN_AND_MEAN
18901#define WIN32_LEAN_AND_MEAN
18902#endif
18903#include <windows.h>
18904#include <winsock2.h>
18905#include <ws2tcpip.h>
18906
18907int main (void)
18908{
18909
18910#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18911 HAVE_WS2TCPIP_H shall not be defined.
18912#else
18913 int dummy=2*IP_PKTINFO;
18914#endif
18915
18916 ;
18917 return 0;
18918}
18919
18920_ACEOF
18921if ac_fn_c_try_compile "$LINENO"; then :
18922
18923 curl_cv_header_ws2tcpip_h="yes"
18924
18925else
18926
18927 curl_cv_header_ws2tcpip_h="no"
18928
18929fi
18930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18931
18932fi
18933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18934$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18935 case "$curl_cv_header_ws2tcpip_h" in
18936 yes)
18937
18938cat >>confdefs.h <<_ACEOF
18939#define HAVE_WS2TCPIP_H 1
18940_ACEOF
18941
18942 ;;
18943 esac
18944
18945
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18947$as_echo_n "checking for winldap.h... " >&6; }
18948if ${curl_cv_header_winldap_h+:} false; then :
18949 $as_echo_n "(cached) " >&6
18950else
18951
18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953/* end confdefs.h. */
18954
18955
18956#undef inline
18957#ifdef HAVE_WINDOWS_H
18958#ifndef WIN32_LEAN_AND_MEAN
18959#define WIN32_LEAN_AND_MEAN
18960#endif
18961#include <windows.h>
18962#endif
18963#include <winldap.h>
18964
18965int main (void)
18966{
18967
18968#if defined(__CYGWIN__) || defined(__CEGCC__)
18969 HAVE_WINLDAP_H shall not be defined.
18970#else
18971 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18972 ULONG res = ldap_unbind(ldp);
18973#endif
18974
18975 ;
18976 return 0;
18977}
18978
18979_ACEOF
18980if ac_fn_c_try_compile "$LINENO"; then :
18981
18982 curl_cv_header_winldap_h="yes"
18983
18984else
18985
18986 curl_cv_header_winldap_h="no"
18987
18988fi
18989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18990
18991fi
18992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18993$as_echo "$curl_cv_header_winldap_h" >&6; }
18994 case "$curl_cv_header_winldap_h" in
18995 yes)
18996
18997cat >>confdefs.h <<_ACEOF
18998#define HAVE_WINLDAP_H 1
18999_ACEOF
19000
19001 ;;
19002 esac
19003
19004
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19006$as_echo_n "checking for winber.h... " >&6; }
19007if ${curl_cv_header_winber_h+:} false; then :
19008 $as_echo_n "(cached) " >&6
19009else
19010
19011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19012/* end confdefs.h. */
19013
19014
19015#undef inline
19016#ifdef HAVE_WINDOWS_H
19017#ifndef WIN32_LEAN_AND_MEAN
19018#define WIN32_LEAN_AND_MEAN
19019#endif
19020#include <windows.h>
19021#endif
19022#include <winldap.h>
19023#include <winber.h>
19024
19025int main (void)
19026{
19027
19028#if defined(__CYGWIN__) || defined(__CEGCC__)
19029 HAVE_WINBER_H shall not be defined.
19030#else
19031 BERVAL *bvp = NULL;
19032 BerElement *bep = ber_init(bvp);
19033 ber_free(bep, 1);
19034#endif
19035
19036 ;
19037 return 0;
19038}
19039
19040_ACEOF
19041if ac_fn_c_try_compile "$LINENO"; then :
19042
19043 curl_cv_header_winber_h="yes"
19044
19045else
19046
19047 curl_cv_header_winber_h="no"
19048
19049fi
19050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19051
19052fi
19053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19054$as_echo "$curl_cv_header_winber_h" >&6; }
19055 case "$curl_cv_header_winber_h" in
19056 yes)
19057
19058cat >>confdefs.h <<_ACEOF
19059#define HAVE_WINBER_H 1
19060_ACEOF
19061
19062 ;;
19063 esac
19064
19065 ;;
19066 *)
19067 curl_cv_header_winsock_h="no"
19068 curl_cv_header_winsock2_h="no"
19069 curl_cv_header_ws2tcpip_h="no"
19070 curl_cv_header_winldap_h="no"
19071 curl_cv_header_winber_h="no"
19072 ;;
19073esac
19074
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19076$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19077 curl_win32_file_api="no"
19078 if test "$curl_cv_header_windows_h" = "yes"; then
19079 if test x"$enable_largefile" != "xno"; then
19080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081/* end confdefs.h. */
19082
19083
19084
19085int main (void)
19086{
19087
19088#if !defined(_WIN32_WCE) && \
19089 (defined(__MINGW32__) || \
19090 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19091 int dummy=1;
19092#else
19093 WIN32 large file API not supported.
19094#endif
19095
19096 ;
19097 return 0;
19098}
19099
19100_ACEOF
19101if ac_fn_c_try_compile "$LINENO"; then :
19102
19103 curl_win32_file_api="win32_large_files"
19104
19105fi
19106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 fi
19108 if test "$curl_win32_file_api" = "no"; then
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110/* end confdefs.h. */
19111
19112
19113
19114int main (void)
19115{
19116
19117#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19118 int dummy=1;
19119#else
19120 WIN32 small file API not supported.
19121#endif
19122
19123 ;
19124 return 0;
19125}
19126
19127_ACEOF
19128if ac_fn_c_try_compile "$LINENO"; then :
19129
19130 curl_win32_file_api="win32_small_files"
19131
19132fi
19133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19134 fi
19135 fi
19136 case "$curl_win32_file_api" in
19137 win32_large_files)
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19139$as_echo "yes (large file enabled)" >&6; }
19140
19141cat >>confdefs.h <<_ACEOF
19142#define USE_WIN32_LARGE_FILES 1
19143_ACEOF
19144
19145 ;;
19146 win32_small_files)
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19148$as_echo "yes (large file disabled)" >&6; }
19149
19150cat >>confdefs.h <<_ACEOF
19151#define USE_WIN32_SMALL_FILES 1
19152_ACEOF
19153
19154 ;;
19155 *)
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19157$as_echo "no" >&6; }
19158 ;;
19159 esac
19160
19161
19162
19163
19164 tst_cflags="no"
19165 case $host_os in
19166 darwin*)
19167 tst_cflags="yes"
19168 ;;
19169 esac
19170
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19172$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19174$as_echo "$tst_cflags" >&6; };
19175
19176 if test "$tst_cflags" = "yes"; then
19177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19178$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19179 min=""
19180 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19181 min="-mmacosx-version-min=10.8"
19182 CFLAGS="$CFLAGS $min"
19183 fi
19184 if test -z "$min"; then
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19186$as_echo "set by user" >&6; }
19187 else
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19189$as_echo "$min set" >&6; }
19190 fi
19191
19192 old_CFLAGS=$CFLAGS
19193 CFLAGS="$CFLAGS -Werror=partial-availability"
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19195$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197/* end confdefs.h. */
19198
19199int main (void)
19200{
19201
19202 ;
19203 return 0;
19204}
19205_ACEOF
19206if ac_fn_c_try_compile "$LINENO"; then :
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19208$as_echo "yes" >&6; }
19209else
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211$as_echo "no" >&6; }
19212 CFLAGS=$old_CFLAGS
19213fi
19214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19215 fi
19216
19217
19218
Alex Deymo486467e2017-12-19 19:04:07 +010019219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19220$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222/* end confdefs.h. */
19223
19224
19225#include <stdlib.h>
19226
19227int main (void)
19228{
19229
19230 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19231
19232 ;
19233 return 0;
19234}
19235
19236_ACEOF
19237if ac_fn_c_try_compile "$LINENO"; then :
19238
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19240$as_echo "yes" >&6; }
19241
19242cat >>confdefs.h <<_ACEOF
19243#define HAVE_BUILTIN_AVAILABLE 1
19244_ACEOF
19245
19246
19247else
19248
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19250$as_echo "no" >&6; }
19251
19252fi
19253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19254
19255
Elliott Hughes82be86d2017-09-20 17:00:17 -070019256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19257$as_echo_n "checking whether to support http... " >&6; }
19258# Check whether --enable-http was given.
19259if test "${enable_http+set}" = set; then :
19260 enableval=$enable_http; case "$enableval" in
19261 no)
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19263$as_echo "no" >&6; }
19264
19265$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19266
19267 disable_http="yes"
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19269$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19270 CURL_DISABLE_HTTP=1
19271
19272
19273$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19274
19275 CURL_DISABLE_RTSP=1
19276
19277 ;;
19278 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19279$as_echo "yes" >&6; }
19280 ;;
19281 esac
19282else
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19284$as_echo "yes" >&6; }
19285
19286fi
19287
19288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19289$as_echo_n "checking whether to support ftp... " >&6; }
19290# Check whether --enable-ftp was given.
19291if test "${enable_ftp+set}" = set; then :
19292 enableval=$enable_ftp; case "$enableval" in
19293 no)
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19295$as_echo "no" >&6; }
19296
19297$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19298
19299 CURL_DISABLE_FTP=1
19300
19301 ;;
19302 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19303$as_echo "yes" >&6; }
19304 ;;
19305 esac
19306else
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308$as_echo "yes" >&6; }
19309
19310fi
19311
19312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19313$as_echo_n "checking whether to support file... " >&6; }
19314# Check whether --enable-file was given.
19315if test "${enable_file+set}" = set; then :
19316 enableval=$enable_file; case "$enableval" in
19317 no)
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319$as_echo "no" >&6; }
19320
19321$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19322
19323 CURL_DISABLE_FILE=1
19324
19325 ;;
19326 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327$as_echo "yes" >&6; }
19328 ;;
19329 esac
19330else
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332$as_echo "yes" >&6; }
19333
19334fi
19335
19336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19337$as_echo_n "checking whether to support ldap... " >&6; }
19338# Check whether --enable-ldap was given.
19339if test "${enable_ldap+set}" = set; then :
19340 enableval=$enable_ldap; case "$enableval" in
19341 no)
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19343$as_echo "no" >&6; }
19344
19345$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19346
19347 CURL_DISABLE_LDAP=1
19348
19349 ;;
19350 *)
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19352$as_echo "yes" >&6; }
19353 ;;
19354 esac
19355else
19356
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19358$as_echo "yes" >&6; }
19359
19360fi
19361
19362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19363$as_echo_n "checking whether to support ldaps... " >&6; }
19364# Check whether --enable-ldaps was given.
19365if test "${enable_ldaps+set}" = set; then :
19366 enableval=$enable_ldaps; case "$enableval" in
19367 no)
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19369$as_echo "no" >&6; }
19370
19371$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19372
19373 CURL_DISABLE_LDAPS=1
19374
19375 ;;
19376 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19378$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19379
19380$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19381
19382 CURL_DISABLE_LDAPS=1
19383
19384 else
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386$as_echo "yes" >&6; }
19387
19388$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19389
19390 HAVE_LDAP_SSL=1
19391
19392 fi
19393 ;;
19394 esac
19395else
19396
19397 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399$as_echo "no" >&6; }
19400
19401$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19402
19403 CURL_DISABLE_LDAPS=1
19404
19405 else
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19407$as_echo "yes" >&6; }
19408
19409$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19410
19411 HAVE_LDAP_SSL=1
19412
19413 fi
19414
19415fi
19416
19417
19418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19419$as_echo_n "checking whether to support rtsp... " >&6; }
19420# Check whether --enable-rtsp was given.
19421if test "${enable_rtsp+set}" = set; then :
19422 enableval=$enable_rtsp; case "$enableval" in
19423 no)
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425$as_echo "no" >&6; }
19426
19427$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19428
19429 CURL_DISABLE_RTSP=1
19430
19431 ;;
19432 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19433 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19434 else
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436$as_echo "yes" >&6; }
19437 curl_rtsp_msg="enabled"
19438 fi
19439 ;;
19440 esac
19441else
19442 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19444$as_echo "yes" >&6; }
19445 curl_rtsp_msg="enabled"
19446 else
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448$as_echo "no" >&6; }
19449 fi
19450
19451fi
19452
19453
19454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19455$as_echo_n "checking whether to support proxies... " >&6; }
19456# Check whether --enable-proxy was given.
19457if test "${enable_proxy+set}" = set; then :
19458 enableval=$enable_proxy; case "$enableval" in
19459 no)
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19461$as_echo "no" >&6; }
19462
19463$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19464
19465 CURL_DISABLE_PROXY=1
19466
19467 ;;
19468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19469$as_echo "yes" >&6; }
19470 ;;
19471 esac
19472else
19473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19474$as_echo "yes" >&6; }
19475
19476fi
19477
19478
19479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19480$as_echo_n "checking whether to support dict... " >&6; }
19481# Check whether --enable-dict was given.
19482if test "${enable_dict+set}" = set; then :
19483 enableval=$enable_dict; case "$enableval" in
19484 no)
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486$as_echo "no" >&6; }
19487
19488$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19489
19490 CURL_DISABLE_DICT=1
19491
19492 ;;
19493 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19494$as_echo "yes" >&6; }
19495 ;;
19496 esac
19497else
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19499$as_echo "yes" >&6; }
19500
19501fi
19502
19503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19504$as_echo_n "checking whether to support telnet... " >&6; }
19505# Check whether --enable-telnet was given.
19506if test "${enable_telnet+set}" = set; then :
19507 enableval=$enable_telnet; case "$enableval" in
19508 no)
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19510$as_echo "no" >&6; }
19511
19512$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19513
19514 CURL_DISABLE_TELNET=1
19515
19516 ;;
19517 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19518$as_echo "yes" >&6; }
19519 ;;
19520 esac
19521else
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19523$as_echo "yes" >&6; }
19524
19525fi
19526
19527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19528$as_echo_n "checking whether to support tftp... " >&6; }
19529# Check whether --enable-tftp was given.
19530if test "${enable_tftp+set}" = set; then :
19531 enableval=$enable_tftp; case "$enableval" in
19532 no)
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19534$as_echo "no" >&6; }
19535
19536$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19537
19538 CURL_DISABLE_TFTP=1
19539
19540 ;;
19541 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19542$as_echo "yes" >&6; }
19543 ;;
19544 esac
19545else
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19547$as_echo "yes" >&6; }
19548
19549fi
19550
19551
19552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19553$as_echo_n "checking whether to support pop3... " >&6; }
19554# Check whether --enable-pop3 was given.
19555if test "${enable_pop3+set}" = set; then :
19556 enableval=$enable_pop3; case "$enableval" in
19557 no)
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19559$as_echo "no" >&6; }
19560
19561$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19562
19563 CURL_DISABLE_POP3=1
19564
19565 ;;
19566 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19567$as_echo "yes" >&6; }
19568 ;;
19569 esac
19570else
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19572$as_echo "yes" >&6; }
19573
19574fi
19575
19576
19577
19578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19579$as_echo_n "checking whether to support imap... " >&6; }
19580# Check whether --enable-imap was given.
19581if test "${enable_imap+set}" = set; then :
19582 enableval=$enable_imap; case "$enableval" in
19583 no)
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585$as_echo "no" >&6; }
19586
19587$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19588
19589 CURL_DISABLE_IMAP=1
19590
19591 ;;
19592 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19593$as_echo "yes" >&6; }
19594 ;;
19595 esac
19596else
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19598$as_echo "yes" >&6; }
19599
19600fi
19601
19602
19603
19604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19605$as_echo_n "checking whether to support smb... " >&6; }
19606# Check whether --enable-smb was given.
19607if test "${enable_smb+set}" = set; then :
19608 enableval=$enable_smb; case "$enableval" in
19609 no)
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611$as_echo "no" >&6; }
19612
19613$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19614
19615 CURL_DISABLE_SMB=1
19616
19617 ;;
19618 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19619$as_echo "yes" >&6; }
19620 ;;
19621 esac
19622else
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19624$as_echo "yes" >&6; }
19625
19626fi
19627
19628
19629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19630$as_echo_n "checking whether to support smtp... " >&6; }
19631# Check whether --enable-smtp was given.
19632if test "${enable_smtp+set}" = set; then :
19633 enableval=$enable_smtp; case "$enableval" in
19634 no)
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19636$as_echo "no" >&6; }
19637
19638$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19639
19640 CURL_DISABLE_SMTP=1
19641
19642 ;;
19643 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19644$as_echo "yes" >&6; }
19645 ;;
19646 esac
19647else
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19649$as_echo "yes" >&6; }
19650
19651fi
19652
19653
19654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19655$as_echo_n "checking whether to support gopher... " >&6; }
19656# Check whether --enable-gopher was given.
19657if test "${enable_gopher+set}" = set; then :
19658 enableval=$enable_gopher; case "$enableval" in
19659 no)
19660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661$as_echo "no" >&6; }
19662
19663$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19664
19665 CURL_DISABLE_GOPHER=1
19666
19667 ;;
19668 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19669$as_echo "yes" >&6; }
19670 ;;
19671 esac
19672else
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19674$as_echo "yes" >&6; }
19675
19676fi
19677
19678
19679
19680
19681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19682$as_echo_n "checking whether to provide built-in manual... " >&6; }
19683# Check whether --enable-manual was given.
19684if test "${enable_manual+set}" = set; then :
19685 enableval=$enable_manual; case "$enableval" in
19686 no)
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19688$as_echo "no" >&6; }
19689 ;;
19690 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19691$as_echo "yes" >&6; }
19692 USE_MANUAL="1"
19693 ;;
19694 esac
19695else
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19697$as_echo "yes" >&6; }
19698 USE_MANUAL="1"
19699
19700fi
19701
19702
19703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19704$as_echo_n "checking whether to enable generation of C code... " >&6; }
19705# Check whether --enable-libcurl_option was given.
19706if test "${enable_libcurl_option+set}" = set; then :
19707 enableval=$enable_libcurl_option; case "$enableval" in
19708 no)
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19710$as_echo "no" >&6; }
19711
19712$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19713
19714 curl_libcurl_msg="no"
19715 ;;
19716 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717$as_echo "yes" >&6; }
19718 ;;
19719 esac
19720else
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19722$as_echo "yes" >&6; }
19723
19724fi
19725
19726
19727
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19729$as_echo_n "checking whether to use libgcc... " >&6; }
19730# Check whether --enable-libgcc was given.
19731if test "${enable_libgcc+set}" = set; then :
19732 enableval=$enable_libgcc; case "$enableval" in
19733 yes)
19734 LIBS="-lgcc $LIBS"
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19736$as_echo "yes" >&6; }
19737 ;;
19738 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19739$as_echo "no" >&6; }
19740 ;;
19741 esac
19742else
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19744$as_echo "no" >&6; }
19745
19746fi
19747
19748
19749
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19751$as_echo_n "checking if X/Open network library is required... " >&6; }
19752 tst_lib_xnet_required="no"
19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19754/* end confdefs.h. */
19755
19756
19757int main (void)
19758{
19759#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19760 return 0;
19761#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19762 return 0;
19763#else
19764 force compilation error
19765#endif
19766}
19767
19768
19769_ACEOF
19770if ac_fn_c_try_compile "$LINENO"; then :
19771
19772 tst_lib_xnet_required="yes"
19773 LIBS="-lxnet $LIBS"
19774
19775fi
19776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19778$as_echo "$tst_lib_xnet_required" >&6; }
19779
19780
19781ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19782if test "x$ac_cv_func_gethostbyname" = xyes; then :
19783 HAVE_GETHOSTBYNAME="1"
19784
19785else
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19787$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19788if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19789 $as_echo_n "(cached) " >&6
19790else
19791 ac_check_lib_save_LIBS=$LIBS
19792LIBS="-lnsl $LIBS"
19793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19794/* end confdefs.h. */
19795
19796
19797#ifdef __cplusplus
19798extern "C"
19799#endif
19800char gethostbyname ();
19801int main (void)
19802{
19803return gethostbyname ();
19804 ;
19805 return 0;
19806}
19807_ACEOF
19808if ac_fn_c_try_link "$LINENO"; then :
19809 ac_cv_lib_nsl_gethostbyname=yes
19810else
19811 ac_cv_lib_nsl_gethostbyname=no
19812fi
19813rm -f core conftest.err conftest.$ac_objext \
19814 conftest$ac_exeext conftest.$ac_ext
19815LIBS=$ac_check_lib_save_LIBS
19816fi
19817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19818$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19819if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19820 HAVE_GETHOSTBYNAME="1"
19821 LIBS="-lnsl $LIBS"
19822
19823fi
19824
19825
19826fi
19827
19828
19829if test "$HAVE_GETHOSTBYNAME" != "1"
19830then
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19832$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19833if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19834 $as_echo_n "(cached) " >&6
19835else
19836 ac_check_lib_save_LIBS=$LIBS
19837LIBS="-lsocket $LIBS"
19838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19839/* end confdefs.h. */
19840
19841
19842#ifdef __cplusplus
19843extern "C"
19844#endif
19845char gethostbyname ();
19846int main (void)
19847{
19848return gethostbyname ();
19849 ;
19850 return 0;
19851}
19852_ACEOF
19853if ac_fn_c_try_link "$LINENO"; then :
19854 ac_cv_lib_socket_gethostbyname=yes
19855else
19856 ac_cv_lib_socket_gethostbyname=no
19857fi
19858rm -f core conftest.err conftest.$ac_objext \
19859 conftest$ac_exeext conftest.$ac_ext
19860LIBS=$ac_check_lib_save_LIBS
19861fi
19862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19863$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19864if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19865 HAVE_GETHOSTBYNAME="1"
19866 LIBS="-lsocket $LIBS"
19867
19868fi
19869
19870fi
19871
19872if test "$HAVE_GETHOSTBYNAME" != "1"
19873then
19874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19875$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19876if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19877 $as_echo_n "(cached) " >&6
19878else
19879 ac_check_lib_save_LIBS=$LIBS
19880LIBS="-lwatt $LIBS"
19881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882/* end confdefs.h. */
19883
19884
19885#ifdef __cplusplus
19886extern "C"
19887#endif
19888char gethostbyname ();
19889int main (void)
19890{
19891return gethostbyname ();
19892 ;
19893 return 0;
19894}
19895_ACEOF
19896if ac_fn_c_try_link "$LINENO"; then :
19897 ac_cv_lib_watt_gethostbyname=yes
19898else
19899 ac_cv_lib_watt_gethostbyname=no
19900fi
19901rm -f core conftest.err conftest.$ac_objext \
19902 conftest$ac_exeext conftest.$ac_ext
19903LIBS=$ac_check_lib_save_LIBS
19904fi
19905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19906$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19907if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19908 HAVE_GETHOSTBYNAME="1"
19909 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19910 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19911 LIBS="-lwatt $LIBS"
19912
19913fi
19914
19915fi
19916
19917if test "$HAVE_GETHOSTBYNAME" != "1"
19918then
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19920$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19921 my_ac_save_LIBS=$LIBS
19922 LIBS="-lnsl -lsocket $LIBS"
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924/* end confdefs.h. */
19925
19926
19927
19928int main (void)
19929{
19930
19931 gethostbyname();
19932
19933 ;
19934 return 0;
19935}
19936
19937_ACEOF
19938if ac_fn_c_try_link "$LINENO"; then :
19939
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19941$as_echo "yes" >&6; }
19942 HAVE_GETHOSTBYNAME="1"
19943
19944else
19945
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19947$as_echo "no" >&6; }
19948 LIBS=$my_ac_save_LIBS
19949
19950fi
19951rm -f core conftest.err conftest.$ac_objext \
19952 conftest$ac_exeext conftest.$ac_ext
19953fi
19954
19955if test "$HAVE_GETHOSTBYNAME" != "1"
19956then
19957 if test "$curl_cv_header_windows_h" = "yes"; then
19958 if test "$curl_cv_header_winsock_h" = "yes"; then
19959 case $host in
19960 *-*-mingw32ce*)
19961 winsock_LIB="-lwinsock"
19962 ;;
19963 *)
19964 winsock_LIB="-lwsock32"
19965 ;;
19966 esac
19967 fi
19968 if test "$curl_cv_header_winsock2_h" = "yes"; then
19969 winsock_LIB="-lws2_32"
19970 fi
19971 if test ! -z "$winsock_LIB"; then
19972 my_ac_save_LIBS=$LIBS
19973 LIBS="$winsock_LIB $LIBS"
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19975$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19977/* end confdefs.h. */
19978
19979
19980#ifdef HAVE_WINDOWS_H
19981#ifndef WIN32_LEAN_AND_MEAN
19982#define WIN32_LEAN_AND_MEAN
19983#endif
19984#include <windows.h>
19985#ifdef HAVE_WINSOCK2_H
19986#include <winsock2.h>
19987#else
19988#ifdef HAVE_WINSOCK_H
19989#include <winsock.h>
19990#endif
19991#endif
19992#endif
19993
19994int main (void)
19995{
19996
19997 gethostbyname("www.dummysite.com");
19998
19999 ;
20000 return 0;
20001}
20002
20003_ACEOF
20004if ac_fn_c_try_link "$LINENO"; then :
20005
20006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20007$as_echo "yes" >&6; }
20008 HAVE_GETHOSTBYNAME="1"
20009
20010else
20011
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20013$as_echo "no" >&6; }
20014 winsock_LIB=""
20015 LIBS=$my_ac_save_LIBS
20016
20017fi
20018rm -f core conftest.err conftest.$ac_objext \
20019 conftest$ac_exeext conftest.$ac_ext
20020 fi
20021 fi
20022fi
20023
20024if test "$HAVE_GETHOSTBYNAME" != "1"
20025then
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20027$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029/* end confdefs.h. */
20030
20031
20032/* Older Minix versions may need <net/gen/netdb.h> here instead */
20033#include <netdb.h>
20034
20035int main (void)
20036{
20037
20038 gethostbyname("www.dummysite.com");
20039
20040 ;
20041 return 0;
20042}
20043
20044_ACEOF
20045if ac_fn_c_try_link "$LINENO"; then :
20046
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20048$as_echo "yes" >&6; }
20049 HAVE_GETHOSTBYNAME="1"
20050
20051else
20052
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20054$as_echo "no" >&6; }
20055
20056fi
20057rm -f core conftest.err conftest.$ac_objext \
20058 conftest$ac_exeext conftest.$ac_ext
20059fi
20060
20061if test "$HAVE_GETHOSTBYNAME" != "1"
20062then
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20064$as_echo_n "checking for gethostbyname for eCos... " >&6; }
20065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20066/* end confdefs.h. */
20067
20068
20069#include <stdio.h>
20070#include <netdb.h>
20071
20072int main (void)
20073{
20074
20075 gethostbyname("www.dummysite.com");
20076
20077 ;
20078 return 0;
20079}
20080
20081_ACEOF
20082if ac_fn_c_try_link "$LINENO"; then :
20083
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20085$as_echo "yes" >&6; }
20086 HAVE_GETHOSTBYNAME="1"
20087
20088else
20089
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20091$as_echo "no" >&6; }
20092
20093fi
20094rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20096fi
20097
20098if test "$HAVE_GETHOSTBYNAME" != "1"
20099then
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20101$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20102if ${ac_cv_lib_network_gethostbyname+:} false; then :
20103 $as_echo_n "(cached) " >&6
20104else
20105 ac_check_lib_save_LIBS=$LIBS
20106LIBS="-lnetwork $LIBS"
20107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108/* end confdefs.h. */
20109
20110
20111#ifdef __cplusplus
20112extern "C"
20113#endif
20114char gethostbyname ();
20115int main (void)
20116{
20117return gethostbyname ();
20118 ;
20119 return 0;
20120}
20121_ACEOF
20122if ac_fn_c_try_link "$LINENO"; then :
20123 ac_cv_lib_network_gethostbyname=yes
20124else
20125 ac_cv_lib_network_gethostbyname=no
20126fi
20127rm -f core conftest.err conftest.$ac_objext \
20128 conftest$ac_exeext conftest.$ac_ext
20129LIBS=$ac_check_lib_save_LIBS
20130fi
20131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20132$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20133if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20134 HAVE_GETHOSTBYNAME="1"
20135 LIBS="-lnetwork $LIBS"
20136
20137fi
20138
20139fi
20140
20141if test "$HAVE_GETHOSTBYNAME" != "1"
20142then
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20144$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20145if ${ac_cv_lib_net_gethostbyname+:} false; then :
20146 $as_echo_n "(cached) " >&6
20147else
20148 ac_check_lib_save_LIBS=$LIBS
20149LIBS="-lnet $LIBS"
20150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20151/* end confdefs.h. */
20152
20153
20154#ifdef __cplusplus
20155extern "C"
20156#endif
20157char gethostbyname ();
20158int main (void)
20159{
20160return gethostbyname ();
20161 ;
20162 return 0;
20163}
20164_ACEOF
20165if ac_fn_c_try_link "$LINENO"; then :
20166 ac_cv_lib_net_gethostbyname=yes
20167else
20168 ac_cv_lib_net_gethostbyname=no
20169fi
20170rm -f core conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20172LIBS=$ac_check_lib_save_LIBS
20173fi
20174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20175$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20176if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20177 HAVE_GETHOSTBYNAME="1"
20178 LIBS="-lnet $LIBS"
20179
20180fi
20181
20182fi
20183
20184
20185if test "$HAVE_GETHOSTBYNAME" != "1"; then
20186 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20187fi
20188
20189
20190curl_includes_winsock2="\
20191/* includes start */
20192#ifdef HAVE_WINDOWS_H
20193# ifndef WIN32_LEAN_AND_MEAN
20194# define WIN32_LEAN_AND_MEAN
20195# endif
20196# include <windows.h>
20197# ifdef HAVE_WINSOCK2_H
20198# include <winsock2.h>
20199# else
20200# ifdef HAVE_WINSOCK_H
20201# include <winsock.h>
20202# endif
20203# endif
20204#endif
20205/* includes end */"
20206
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20208$as_echo_n "checking for windows.h... " >&6; }
20209if ${curl_cv_header_windows_h+:} false; then :
20210 $as_echo_n "(cached) " >&6
20211else
20212
20213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214/* end confdefs.h. */
20215
20216
20217#undef inline
20218#ifndef WIN32_LEAN_AND_MEAN
20219#define WIN32_LEAN_AND_MEAN
20220#endif
20221#include <windows.h>
20222
20223int main (void)
20224{
20225
20226#if defined(__CYGWIN__) || defined(__CEGCC__)
20227 HAVE_WINDOWS_H shall not be defined.
20228#else
20229 int dummy=2*WINVER;
20230#endif
20231
20232 ;
20233 return 0;
20234}
20235
20236_ACEOF
20237if ac_fn_c_try_compile "$LINENO"; then :
20238
20239 curl_cv_header_windows_h="yes"
20240
20241else
20242
20243 curl_cv_header_windows_h="no"
20244
20245fi
20246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20247
20248fi
20249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20250$as_echo "$curl_cv_header_windows_h" >&6; }
20251 case "$curl_cv_header_windows_h" in
20252 yes)
20253
20254cat >>confdefs.h <<_ACEOF
20255#define HAVE_WINDOWS_H 1
20256_ACEOF
20257
20258 ;;
20259 esac
20260
20261
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20263$as_echo_n "checking for winsock.h... " >&6; }
20264if ${curl_cv_header_winsock_h+:} false; then :
20265 $as_echo_n "(cached) " >&6
20266else
20267
20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269/* end confdefs.h. */
20270
20271
20272#undef inline
20273#ifndef WIN32_LEAN_AND_MEAN
20274#define WIN32_LEAN_AND_MEAN
20275#endif
20276#include <windows.h>
20277#include <winsock.h>
20278
20279int main (void)
20280{
20281
20282#if defined(__CYGWIN__) || defined(__CEGCC__)
20283 HAVE_WINSOCK_H shall not be defined.
20284#else
20285 int dummy=WSACleanup();
20286#endif
20287
20288 ;
20289 return 0;
20290}
20291
20292_ACEOF
20293if ac_fn_c_try_compile "$LINENO"; then :
20294
20295 curl_cv_header_winsock_h="yes"
20296
20297else
20298
20299 curl_cv_header_winsock_h="no"
20300
20301fi
20302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20303
20304fi
20305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20306$as_echo "$curl_cv_header_winsock_h" >&6; }
20307 case "$curl_cv_header_winsock_h" in
20308 yes)
20309
20310cat >>confdefs.h <<_ACEOF
20311#define HAVE_WINSOCK_H 1
20312_ACEOF
20313
20314 ;;
20315 esac
20316
20317
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20319$as_echo_n "checking for winsock2.h... " >&6; }
20320if ${curl_cv_header_winsock2_h+:} false; then :
20321 $as_echo_n "(cached) " >&6
20322else
20323
20324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20325/* end confdefs.h. */
20326
20327
20328#undef inline
20329#ifndef WIN32_LEAN_AND_MEAN
20330#define WIN32_LEAN_AND_MEAN
20331#endif
20332#include <windows.h>
20333#include <winsock2.h>
20334
20335int main (void)
20336{
20337
20338#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20339 HAVE_WINSOCK2_H shall not be defined.
20340#else
20341 int dummy=2*IPPROTO_ESP;
20342#endif
20343
20344 ;
20345 return 0;
20346}
20347
20348_ACEOF
20349if ac_fn_c_try_compile "$LINENO"; then :
20350
20351 curl_cv_header_winsock2_h="yes"
20352
20353else
20354
20355 curl_cv_header_winsock2_h="no"
20356
20357fi
20358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20359
20360fi
20361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20362$as_echo "$curl_cv_header_winsock2_h" >&6; }
20363 case "$curl_cv_header_winsock2_h" in
20364 yes)
20365
20366cat >>confdefs.h <<_ACEOF
20367#define HAVE_WINSOCK2_H 1
20368_ACEOF
20369
20370 ;;
20371 esac
20372
20373
20374
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20376$as_echo_n "checking for connect in libraries... " >&6; }
20377 tst_connect_save_LIBS="$LIBS"
20378 tst_connect_need_LIBS="unknown"
20379 for tst_lib in '' '-lsocket' ; do
20380 if test "$tst_connect_need_LIBS" = "unknown"; then
20381 LIBS="$tst_lib $tst_connect_save_LIBS"
20382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20383/* end confdefs.h. */
20384
20385
20386 $curl_includes_winsock2
20387 #ifndef HAVE_WINDOWS_H
20388 int connect(int, void*, int);
20389 #endif
20390
20391int main (void)
20392{
20393
20394 if(0 != connect(0, 0, 0))
20395 return 1;
20396
20397 ;
20398 return 0;
20399}
20400
20401_ACEOF
20402if ac_fn_c_try_link "$LINENO"; then :
20403
20404 tst_connect_need_LIBS="$tst_lib"
20405
20406fi
20407rm -f core conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20409 fi
20410 done
20411 LIBS="$tst_connect_save_LIBS"
20412 #
20413 case X-"$tst_connect_need_LIBS" in
20414 X-unknown)
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20416$as_echo "cannot find connect" >&6; }
20417 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20418 ;;
20419 X-)
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20421$as_echo "yes" >&6; }
20422 ;;
20423 *)
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20425$as_echo "$tst_connect_need_LIBS" >&6; }
20426 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20427 ;;
20428 esac
20429
20430
20431CURL_NETWORK_LIBS=$LIBS
20432
20433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20434$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20435if ${ac_cv_header_time+:} false; then :
20436 $as_echo_n "(cached) " >&6
20437else
20438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20439/* end confdefs.h. */
20440#include <sys/types.h>
20441#include <sys/time.h>
20442#include <time.h>
20443
20444int main (void)
20445{
20446if ((struct tm *) 0)
20447return 0;
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452if ac_fn_c_try_compile "$LINENO"; then :
20453 ac_cv_header_time=yes
20454else
20455 ac_cv_header_time=no
20456fi
20457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20458fi
20459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20460$as_echo "$ac_cv_header_time" >&6; }
20461if test $ac_cv_header_time = yes; then
20462
20463$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20464
20465fi
20466
20467
20468 for ac_header in sys/types.h sys/time.h time.h
20469do :
20470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20471ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20472if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20473 cat >>confdefs.h <<_ACEOF
20474#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20475_ACEOF
20476
20477fi
20478
20479done
20480
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20482$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20483 #
20484 if test "x$dontwant_rt" = "xno" ; then
20485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20486/* end confdefs.h. */
20487
20488
20489#ifdef HAVE_SYS_TYPES_H
20490#include <sys/types.h>
20491#endif
20492#ifdef HAVE_SYS_TIME_H
20493#include <sys/time.h>
20494#ifdef TIME_WITH_SYS_TIME
20495#include <time.h>
20496#endif
20497#else
20498#ifdef HAVE_TIME_H
20499#include <time.h>
20500#endif
20501#endif
20502
20503int main (void)
20504{
20505
20506 struct timespec ts;
20507 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20508
20509 ;
20510 return 0;
20511}
20512
20513_ACEOF
20514if ac_fn_c_try_compile "$LINENO"; then :
20515
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20517$as_echo "yes" >&6; }
20518 curl_func_clock_gettime="yes"
20519
20520else
20521
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523$as_echo "no" >&6; }
20524 curl_func_clock_gettime="no"
20525
20526fi
20527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20528 fi
20529
20530
20531 #
20532 if test "$curl_func_clock_gettime" = "yes"; then
20533 #
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20535$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20536 #
20537 curl_cv_save_LIBS="$LIBS"
20538 curl_cv_gclk_LIBS="unknown"
20539 #
20540 for x_xlibs in '' '-lrt' '-lposix4' ; do
20541 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20542 if test -z "$x_xlibs"; then
20543 LIBS="$curl_cv_save_LIBS"
20544 else
20545 LIBS="$x_xlibs $curl_cv_save_LIBS"
20546 fi
20547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20548/* end confdefs.h. */
20549
20550
20551#ifdef HAVE_SYS_TYPES_H
20552#include <sys/types.h>
20553#endif
20554#ifdef HAVE_SYS_TIME_H
20555#include <sys/time.h>
20556#ifdef TIME_WITH_SYS_TIME
20557#include <time.h>
20558#endif
20559#else
20560#ifdef HAVE_TIME_H
20561#include <time.h>
20562#endif
20563#endif
20564
20565int main (void)
20566{
20567
20568 struct timespec ts;
20569 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20570
20571 ;
20572 return 0;
20573}
20574
20575_ACEOF
20576if ac_fn_c_try_link "$LINENO"; then :
20577
20578 curl_cv_gclk_LIBS="$x_xlibs"
20579
20580fi
20581rm -f core conftest.err conftest.$ac_objext \
20582 conftest$ac_exeext conftest.$ac_ext
20583 fi
20584 done
20585 #
20586 LIBS="$curl_cv_save_LIBS"
20587 #
20588 case X-"$curl_cv_gclk_LIBS" in
20589 X-unknown)
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20591$as_echo "cannot find clock_gettime" >&6; }
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20593$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20594 curl_func_clock_gettime="no"
20595 ;;
20596 X-)
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20598$as_echo "no additional lib required" >&6; }
20599 curl_func_clock_gettime="yes"
20600 ;;
20601 *)
20602 if test -z "$curl_cv_save_LIBS"; then
20603 LIBS="$curl_cv_gclk_LIBS"
20604 else
20605 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20606 fi
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20608$as_echo "$curl_cv_gclk_LIBS" >&6; }
20609 curl_func_clock_gettime="yes"
20610 ;;
20611 esac
20612 #
20613 if test "x$cross_compiling" != "xyes" &&
20614 test "$curl_func_clock_gettime" = "yes"; then
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20616$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20617 if test "$cross_compiling" = yes; then :
20618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20620as_fn_error $? "cannot run test program while cross compiling
20621See \`config.log' for more details" "$LINENO" 5; }
20622else
20623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20624/* end confdefs.h. */
20625
20626
20627#ifdef HAVE_STDLIB_H
20628#include <stdlib.h>
20629#endif
20630#ifdef HAVE_SYS_TYPES_H
20631#include <sys/types.h>
20632#endif
20633#ifdef HAVE_SYS_TIME_H
20634#include <sys/time.h>
20635#ifdef TIME_WITH_SYS_TIME
20636#include <time.h>
20637#endif
20638#else
20639#ifdef HAVE_TIME_H
20640#include <time.h>
20641#endif
20642#endif
20643
20644int main (void)
20645{
20646
20647 struct timespec ts;
20648 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20649 exit(0);
20650 else
20651 exit(1);
20652
20653 ;
20654 return 0;
20655}
20656
20657_ACEOF
20658if ac_fn_c_try_run "$LINENO"; then :
20659
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20661$as_echo "yes" >&6; }
20662
20663else
20664
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20666$as_echo "no" >&6; }
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20668$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20669 curl_func_clock_gettime="no"
20670 LIBS="$curl_cv_save_LIBS"
20671
20672fi
20673rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20674 conftest.$ac_objext conftest.beam conftest.$ac_ext
20675fi
20676
20677 fi
20678 #
20679 case "$curl_func_clock_gettime" in
20680 yes)
20681
20682cat >>confdefs.h <<_ACEOF
20683#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20684_ACEOF
20685
20686 ;;
20687 esac
20688 #
20689 fi
20690 #
20691
20692
20693CURL_NETWORK_AND_TIME_LIBS=$LIBS
20694
20695
20696
20697clean_CPPFLAGS=$CPPFLAGS
20698clean_LDFLAGS=$LDFLAGS
20699clean_LIBS=$LIBS
20700ZLIB_LIBS=""
20701
20702# Check whether --with-zlib was given.
20703if test "${with_zlib+set}" = set; then :
20704 withval=$with_zlib; OPT_ZLIB="$withval"
20705fi
20706
20707
20708if test "$OPT_ZLIB" = "no" ; then
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20710$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20711else
20712 if test "$OPT_ZLIB" = "yes" ; then
20713 OPT_ZLIB=""
20714 fi
20715
20716 if test -z "$OPT_ZLIB" ; then
20717
20718 if test -n "$PKG_CONFIG"; then
20719 PKGCONFIG="$PKG_CONFIG"
20720 else
20721 if test -n "$ac_tool_prefix"; then
20722 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20723set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20725$as_echo_n "checking for $ac_word... " >&6; }
20726if ${ac_cv_path_PKGCONFIG+:} false; then :
20727 $as_echo_n "(cached) " >&6
20728else
20729 case $PKGCONFIG in
20730 [\\/]* | ?:[\\/]*)
20731 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20732 ;;
20733 *)
20734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20735as_dummy="$PATH:/usr/bin:/usr/local/bin"
20736for as_dir in $as_dummy
20737do
20738 IFS=$as_save_IFS
20739 test -z "$as_dir" && as_dir=.
20740 for ac_exec_ext in '' $ac_executable_extensions; do
20741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20742 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20744 break 2
20745 fi
20746done
20747 done
20748IFS=$as_save_IFS
20749
20750 ;;
20751esac
20752fi
20753PKGCONFIG=$ac_cv_path_PKGCONFIG
20754if test -n "$PKGCONFIG"; then
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20756$as_echo "$PKGCONFIG" >&6; }
20757else
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20759$as_echo "no" >&6; }
20760fi
20761
20762
20763fi
20764if test -z "$ac_cv_path_PKGCONFIG"; then
20765 ac_pt_PKGCONFIG=$PKGCONFIG
20766 # Extract the first word of "pkg-config", so it can be a program name with args.
20767set dummy pkg-config; ac_word=$2
20768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20769$as_echo_n "checking for $ac_word... " >&6; }
20770if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20771 $as_echo_n "(cached) " >&6
20772else
20773 case $ac_pt_PKGCONFIG in
20774 [\\/]* | ?:[\\/]*)
20775 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20776 ;;
20777 *)
20778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20779as_dummy="$PATH:/usr/bin:/usr/local/bin"
20780for as_dir in $as_dummy
20781do
20782 IFS=$as_save_IFS
20783 test -z "$as_dir" && as_dir=.
20784 for ac_exec_ext in '' $ac_executable_extensions; do
20785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20786 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20788 break 2
20789 fi
20790done
20791 done
20792IFS=$as_save_IFS
20793
20794 ;;
20795esac
20796fi
20797ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20798if test -n "$ac_pt_PKGCONFIG"; then
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20800$as_echo "$ac_pt_PKGCONFIG" >&6; }
20801else
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20803$as_echo "no" >&6; }
20804fi
20805
20806 if test "x$ac_pt_PKGCONFIG" = x; then
20807 PKGCONFIG="no"
20808 else
20809 case $cross_compiling:$ac_tool_warned in
20810yes:)
20811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20813ac_tool_warned=yes ;;
20814esac
20815 PKGCONFIG=$ac_pt_PKGCONFIG
20816 fi
20817else
20818 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20819fi
20820
20821 fi
20822
20823 if test "x$PKGCONFIG" != "xno"; then
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20825$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20826 itexists=`
20827 if test -n ""; then
20828 PKG_CONFIG_LIBDIR=""
20829 export PKG_CONFIG_LIBDIR
20830 fi
20831 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20832
20833 if test -z "$itexists"; then
20834 PKGCONFIG="no"
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20836$as_echo "no" >&6; }
20837 else
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20839$as_echo "found" >&6; }
20840 fi
20841 fi
20842
20843
20844 if test "$PKGCONFIG" != "no" ; then
20845 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20846 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20847 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20848 OPT_ZLIB=""
20849 HAVE_LIBZ="1"
20850 fi
20851
20852 if test -z "$HAVE_LIBZ"; then
20853
20854
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20856$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20857if ${ac_cv_lib_z_inflateEnd+:} false; then :
20858 $as_echo_n "(cached) " >&6
20859else
20860 ac_check_lib_save_LIBS=$LIBS
20861LIBS="-lz $LIBS"
20862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20863/* end confdefs.h. */
20864
20865
20866#ifdef __cplusplus
20867extern "C"
20868#endif
20869char inflateEnd ();
20870int main (void)
20871{
20872return inflateEnd ();
20873 ;
20874 return 0;
20875}
20876_ACEOF
20877if ac_fn_c_try_link "$LINENO"; then :
20878 ac_cv_lib_z_inflateEnd=yes
20879else
20880 ac_cv_lib_z_inflateEnd=no
20881fi
20882rm -f core conftest.err conftest.$ac_objext \
20883 conftest$ac_exeext conftest.$ac_ext
20884LIBS=$ac_check_lib_save_LIBS
20885fi
20886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20887$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20888if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20889 HAVE_LIBZ="1"
20890 LIBS="-lz $LIBS"
20891else
20892 OPT_ZLIB="/usr/local"
20893fi
20894
20895 fi
20896 fi
20897
20898 if test -n "$OPT_ZLIB"; then
20899 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20900 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20901 fi
20902
20903 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20904if test "x$ac_cv_header_zlib_h" = xyes; then :
20905
20906 HAVE_ZLIB_H="1"
20907 if test "$HAVE_LIBZ" != "1"; then
20908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20909$as_echo_n "checking for gzread in -lz... " >&6; }
20910if ${ac_cv_lib_z_gzread+:} false; then :
20911 $as_echo_n "(cached) " >&6
20912else
20913 ac_check_lib_save_LIBS=$LIBS
20914LIBS="-lz $LIBS"
20915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20916/* end confdefs.h. */
20917
20918
20919#ifdef __cplusplus
20920extern "C"
20921#endif
20922char gzread ();
20923int main (void)
20924{
20925return gzread ();
20926 ;
20927 return 0;
20928}
20929_ACEOF
20930if ac_fn_c_try_link "$LINENO"; then :
20931 ac_cv_lib_z_gzread=yes
20932else
20933 ac_cv_lib_z_gzread=no
20934fi
20935rm -f core conftest.err conftest.$ac_objext \
20936 conftest$ac_exeext conftest.$ac_ext
20937LIBS=$ac_check_lib_save_LIBS
20938fi
20939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20940$as_echo "$ac_cv_lib_z_gzread" >&6; }
20941if test "x$ac_cv_lib_z_gzread" = xyes; then :
20942
20943 HAVE_LIBZ="1"
20944 LIBS="-lz $LIBS"
20945
20946else
20947 CPPFLAGS=$clean_CPPFLAGS
20948 LDFLAGS=$clean_LDFLAGS
20949fi
20950
20951 fi
20952
20953else
20954
20955 CPPFLAGS=$clean_CPPFLAGS
20956 LDFLAGS=$clean_LDFLAGS
20957
20958fi
20959
20960
20961
20962 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20963 then
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20965$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20966 HAVE_LIBZ=""
20967 CPPFLAGS=$clean_CPPFLAGS
20968 LDFLAGS=$clean_LDFLAGS
20969 LIBS=$clean_LIBS
20970 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20971 then
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20973$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20974 CPPFLAGS=$clean_CPPFLAGS
20975 LDFLAGS=$clean_LDFLAGS
20976 LIBS=$clean_LIBS
20977 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20978 then
20979
20980
20981$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20982
20983
20984$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20985
20986
20987 ZLIB_LIBS="-lz"
20988 LIBS="-lz $clean_LIBS"
20989
20990 AMFIXLIB="1"
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20992$as_echo "$as_me: found both libz and libz.h header" >&6;}
20993 curl_zlib_msg="enabled"
20994 fi
20995fi
20996
20997 if test x"$AMFIXLIB" = x1; then
20998 HAVE_LIBZ_TRUE=
20999 HAVE_LIBZ_FALSE='#'
21000else
21001 HAVE_LIBZ_TRUE='#'
21002 HAVE_LIBZ_FALSE=
21003fi
21004
21005
21006
21007
Alex Deymo486467e2017-12-19 19:04:07 +010021008
21009OPT_BROTLI=off
21010
21011# Check whether --with-brotli was given.
21012if test "${with_brotli+set}" = set; then :
21013 withval=$with_brotli; OPT_BROTLI=$withval
21014fi
21015
21016
21017if test X"$OPT_BROTLI" != Xno; then
21018 CLEANLDFLAGS="$LDFLAGS"
21019 CLEANCPPFLAGS="$CPPFLAGS"
21020 CLEANLIBS="$LIBS"
21021
21022 case "$OPT_BROTLI" in
21023 yes)
21024
21025 if test -n "$PKG_CONFIG"; then
21026 PKGCONFIG="$PKG_CONFIG"
21027 else
21028 if test -n "$ac_tool_prefix"; then
21029 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21030set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21032$as_echo_n "checking for $ac_word... " >&6; }
21033if ${ac_cv_path_PKGCONFIG+:} false; then :
21034 $as_echo_n "(cached) " >&6
21035else
21036 case $PKGCONFIG in
21037 [\\/]* | ?:[\\/]*)
21038 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21039 ;;
21040 *)
21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042as_dummy="$PATH:/usr/bin:/usr/local/bin"
21043for as_dir in $as_dummy
21044do
21045 IFS=$as_save_IFS
21046 test -z "$as_dir" && as_dir=.
21047 for ac_exec_ext in '' $ac_executable_extensions; do
21048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21049 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21051 break 2
21052 fi
21053done
21054 done
21055IFS=$as_save_IFS
21056
21057 ;;
21058esac
21059fi
21060PKGCONFIG=$ac_cv_path_PKGCONFIG
21061if test -n "$PKGCONFIG"; then
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21063$as_echo "$PKGCONFIG" >&6; }
21064else
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21066$as_echo "no" >&6; }
21067fi
21068
21069
21070fi
21071if test -z "$ac_cv_path_PKGCONFIG"; then
21072 ac_pt_PKGCONFIG=$PKGCONFIG
21073 # Extract the first word of "pkg-config", so it can be a program name with args.
21074set dummy pkg-config; ac_word=$2
21075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21076$as_echo_n "checking for $ac_word... " >&6; }
21077if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21078 $as_echo_n "(cached) " >&6
21079else
21080 case $ac_pt_PKGCONFIG in
21081 [\\/]* | ?:[\\/]*)
21082 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21083 ;;
21084 *)
21085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21086as_dummy="$PATH:/usr/bin:/usr/local/bin"
21087for as_dir in $as_dummy
21088do
21089 IFS=$as_save_IFS
21090 test -z "$as_dir" && as_dir=.
21091 for ac_exec_ext in '' $ac_executable_extensions; do
21092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21093 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21095 break 2
21096 fi
21097done
21098 done
21099IFS=$as_save_IFS
21100
21101 ;;
21102esac
21103fi
21104ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21105if test -n "$ac_pt_PKGCONFIG"; then
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21107$as_echo "$ac_pt_PKGCONFIG" >&6; }
21108else
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21110$as_echo "no" >&6; }
21111fi
21112
21113 if test "x$ac_pt_PKGCONFIG" = x; then
21114 PKGCONFIG="no"
21115 else
21116 case $cross_compiling:$ac_tool_warned in
21117yes:)
21118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21120ac_tool_warned=yes ;;
21121esac
21122 PKGCONFIG=$ac_pt_PKGCONFIG
21123 fi
21124else
21125 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21126fi
21127
21128 fi
21129
21130 if test "x$PKGCONFIG" != "xno"; then
21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21132$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21133 itexists=`
21134 if test -n ""; then
21135 PKG_CONFIG_LIBDIR=""
21136 export PKG_CONFIG_LIBDIR
21137 fi
21138 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21139
21140 if test -z "$itexists"; then
21141 PKGCONFIG="no"
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21143$as_echo "no" >&6; }
21144 else
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21146$as_echo "found" >&6; }
21147 fi
21148 fi
21149
21150
21151 if test "$PKGCONFIG" != "no" ; then
21152 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21153 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21154 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21155 version=`$PKGCONFIG --modversion libbrotlidec`
21156 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21157 fi
21158
21159 ;;
21160 off)
21161 ;;
21162 *)
21163 PREFIX_BROTLI=$OPT_BROTLI
21164 ;;
21165 esac
21166
21167 if test -n "$PREFIX_BROTLI"; then
21168 LIB_BROTLI="-lbrotlidec"
21169 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21170 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21171 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21172 fi
21173
21174 LDFLAGS="$LDFLAGS $LD_BROTLI"
21175 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21176 LIBS="$LIB_BROTLI $LIBS"
21177
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21179$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21180if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21181 $as_echo_n "(cached) " >&6
21182else
21183 ac_check_lib_save_LIBS=$LIBS
21184LIBS="-lbrotlidec $LIBS"
21185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186/* end confdefs.h. */
21187
21188
21189#ifdef __cplusplus
21190extern "C"
21191#endif
21192char BrotliDecoderDecompress ();
21193int main (void)
21194{
21195return BrotliDecoderDecompress ();
21196 ;
21197 return 0;
21198}
21199_ACEOF
21200if ac_fn_c_try_link "$LINENO"; then :
21201 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21202else
21203 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21204fi
21205rm -f core conftest.err conftest.$ac_objext \
21206 conftest$ac_exeext conftest.$ac_ext
21207LIBS=$ac_check_lib_save_LIBS
21208fi
21209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21210$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21211if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21212 cat >>confdefs.h <<_ACEOF
21213#define HAVE_LIBBROTLIDEC 1
21214_ACEOF
21215
21216 LIBS="-lbrotlidec $LIBS"
21217
21218fi
21219
21220
21221 for ac_header in brotli/decode.h
21222do :
21223 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21224if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21225 cat >>confdefs.h <<_ACEOF
21226#define HAVE_BROTLI_DECODE_H 1
21227_ACEOF
21228 curl_brotli_msg="enabled (libbrotlidec)"
21229 HAVE_BROTLI=1
21230
21231$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21232
21233 HAVE_BROTLI=1
21234
21235
21236fi
21237
21238done
21239
21240
21241 if test X"$OPT_BROTLI" != Xoff &&
21242 test "$HAVE_BROTLI" != "1"; then
21243 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21244 fi
21245
21246 if test "$HAVE_BROTLI" = "1"; then
21247 if test -n "$DIR_BROTLI"; then
21248
21249 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021250 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21251 export CURL_LIBRARY_PATH
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21253$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021254 fi
21255 fi
21256 else
21257 LDFLAGS=$CLEANLDFLAGS
21258 CPPFLAGS=$CLEANCPPFLAGS
21259 LIBS=$CLEANLIBS
21260 fi
21261fi
21262
21263
Elliott Hughes82be86d2017-09-20 17:00:17 -070021264LDAPLIBNAME=""
21265
21266# Check whether --with-ldap-lib was given.
21267if test "${with_ldap_lib+set}" = set; then :
21268 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21269fi
21270
21271
21272LBERLIBNAME=""
21273
21274# Check whether --with-lber-lib was given.
21275if test "${with_lber_lib+set}" = set; then :
21276 withval=$with_lber_lib; LBERLIBNAME="$withval"
21277fi
21278
21279
21280if test x$CURL_DISABLE_LDAP != x1 ; then
21281
21282
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21284$as_echo_n "checking for lber.h... " >&6; }
21285if ${curl_cv_header_lber_h+:} false; then :
21286 $as_echo_n "(cached) " >&6
21287else
21288
21289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21290/* end confdefs.h. */
21291
21292
21293#undef inline
21294#ifdef HAVE_WINDOWS_H
21295#ifndef WIN32_LEAN_AND_MEAN
21296#define WIN32_LEAN_AND_MEAN
21297#endif
21298#include <windows.h>
21299#else
21300#ifdef HAVE_SYS_TYPES_H
21301#include <sys/types.h>
21302#endif
21303#endif
21304#ifndef NULL
21305#define NULL (void *)0
21306#endif
21307#include <lber.h>
21308
21309int main (void)
21310{
21311
21312 BerValue *bvp = NULL;
21313 BerElement *bep = ber_init(bvp);
21314 ber_free(bep, 1);
21315
21316 ;
21317 return 0;
21318}
21319
21320_ACEOF
21321if ac_fn_c_try_compile "$LINENO"; then :
21322
21323 curl_cv_header_lber_h="yes"
21324
21325else
21326
21327 curl_cv_header_lber_h="no"
21328
21329fi
21330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331
21332fi
21333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21334$as_echo "$curl_cv_header_lber_h" >&6; }
21335 if test "$curl_cv_header_lber_h" = "yes"; then
21336
21337cat >>confdefs.h <<_ACEOF
21338#define HAVE_LBER_H 1
21339_ACEOF
21340
21341 #
21342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21343/* end confdefs.h. */
21344
21345
21346#undef inline
21347#ifdef HAVE_WINDOWS_H
21348#ifndef WIN32_LEAN_AND_MEAN
21349#define WIN32_LEAN_AND_MEAN
21350#endif
21351#include <windows.h>
21352#else
21353#ifdef HAVE_SYS_TYPES_H
21354#include <sys/types.h>
21355#endif
21356#endif
21357#ifndef NULL
21358#define NULL (void *)0
21359#endif
21360#ifndef LDAP_DEPRECATED
21361#define LDAP_DEPRECATED 1
21362#endif
21363#include <ldap.h>
21364
21365int main (void)
21366{
21367
21368 BerValue *bvp = NULL;
21369 BerElement *bep = ber_init(bvp);
21370 ber_free(bep, 1);
21371
21372 ;
21373 return 0;
21374}
21375
21376_ACEOF
21377if ac_fn_c_try_compile "$LINENO"; then :
21378
21379 curl_cv_need_header_lber_h="no"
21380
21381else
21382
21383 curl_cv_need_header_lber_h="yes"
21384
21385fi
21386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 #
21388 case "$curl_cv_need_header_lber_h" in
21389 yes)
21390
21391cat >>confdefs.h <<_ACEOF
21392#define NEED_LBER_H 1
21393_ACEOF
21394
21395 ;;
21396 esac
21397 fi
21398
21399
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21401$as_echo_n "checking for ldap.h... " >&6; }
21402if ${curl_cv_header_ldap_h+:} false; then :
21403 $as_echo_n "(cached) " >&6
21404else
21405
21406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21407/* end confdefs.h. */
21408
21409
21410#undef inline
21411#ifdef HAVE_WINDOWS_H
21412#ifndef WIN32_LEAN_AND_MEAN
21413#define WIN32_LEAN_AND_MEAN
21414#endif
21415#include <windows.h>
21416#else
21417#ifdef HAVE_SYS_TYPES_H
21418#include <sys/types.h>
21419#endif
21420#endif
21421#ifndef LDAP_DEPRECATED
21422#define LDAP_DEPRECATED 1
21423#endif
21424#ifdef NEED_LBER_H
21425#include <lber.h>
21426#endif
21427#include <ldap.h>
21428
21429int main (void)
21430{
21431
21432 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21433 int res = ldap_unbind(ldp);
21434
21435 ;
21436 return 0;
21437}
21438
21439_ACEOF
21440if ac_fn_c_try_compile "$LINENO"; then :
21441
21442 curl_cv_header_ldap_h="yes"
21443
21444else
21445
21446 curl_cv_header_ldap_h="no"
21447
21448fi
21449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450
21451fi
21452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21453$as_echo "$curl_cv_header_ldap_h" >&6; }
21454 case "$curl_cv_header_ldap_h" in
21455 yes)
21456
21457cat >>confdefs.h <<_ACEOF
21458#define HAVE_LDAP_H 1
21459_ACEOF
21460
21461 ;;
21462 esac
21463
21464
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21466$as_echo_n "checking for ldapssl.h... " >&6; }
21467if ${curl_cv_header_ldapssl_h+:} false; then :
21468 $as_echo_n "(cached) " >&6
21469else
21470
21471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472/* end confdefs.h. */
21473
21474
21475#undef inline
21476#ifdef HAVE_WINDOWS_H
21477#ifndef WIN32_LEAN_AND_MEAN
21478#define WIN32_LEAN_AND_MEAN
21479#endif
21480#include <windows.h>
21481#else
21482#ifdef HAVE_SYS_TYPES_H
21483#include <sys/types.h>
21484#endif
21485#endif
21486#ifndef NULL
21487#define NULL (void *)0
21488#endif
21489#ifndef LDAP_DEPRECATED
21490#define LDAP_DEPRECATED 1
21491#endif
21492#ifdef NEED_LBER_H
21493#include <lber.h>
21494#endif
21495#ifdef HAVE_LDAP_H
21496#include <ldap.h>
21497#endif
21498#include <ldapssl.h>
21499
21500int main (void)
21501{
21502
21503 char *cert_label = NULL;
21504 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21505
21506 ;
21507 return 0;
21508}
21509
21510_ACEOF
21511if ac_fn_c_try_compile "$LINENO"; then :
21512
21513 curl_cv_header_ldapssl_h="yes"
21514
21515else
21516
21517 curl_cv_header_ldapssl_h="no"
21518
21519fi
21520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521
21522fi
21523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21524$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21525 case "$curl_cv_header_ldapssl_h" in
21526 yes)
21527
21528cat >>confdefs.h <<_ACEOF
21529#define HAVE_LDAPSSL_H 1
21530_ACEOF
21531
21532 ;;
21533 esac
21534
21535
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21537$as_echo_n "checking for ldap_ssl.h... " >&6; }
21538if ${curl_cv_header_ldap_ssl_h+:} false; then :
21539 $as_echo_n "(cached) " >&6
21540else
21541
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543/* end confdefs.h. */
21544
21545
21546#undef inline
21547#ifdef HAVE_WINDOWS_H
21548#ifndef WIN32_LEAN_AND_MEAN
21549#define WIN32_LEAN_AND_MEAN
21550#endif
21551#include <windows.h>
21552#else
21553#ifdef HAVE_SYS_TYPES_H
21554#include <sys/types.h>
21555#endif
21556#endif
21557#ifndef LDAP_DEPRECATED
21558#define LDAP_DEPRECATED 1
21559#endif
21560#ifdef NEED_LBER_H
21561#include <lber.h>
21562#endif
21563#ifdef HAVE_LDAP_H
21564#include <ldap.h>
21565#endif
21566#include <ldap_ssl.h>
21567
21568int main (void)
21569{
21570
21571 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21572
21573 ;
21574 return 0;
21575}
21576
21577_ACEOF
21578if ac_fn_c_try_compile "$LINENO"; then :
21579
21580 curl_cv_header_ldap_ssl_h="yes"
21581
21582else
21583
21584 curl_cv_header_ldap_ssl_h="no"
21585
21586fi
21587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588
21589fi
21590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21591$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21592 case "$curl_cv_header_ldap_ssl_h" in
21593 yes)
21594
21595cat >>confdefs.h <<_ACEOF
21596#define HAVE_LDAP_SSL_H 1
21597_ACEOF
21598
21599 ;;
21600 esac
21601
21602
21603 if test -z "$LDAPLIBNAME" ; then
21604 if test "$curl_cv_native_windows" = "yes"; then
21605 LDAPLIBNAME="wldap32"
21606 LBERLIBNAME="no"
21607 fi
21608 fi
21609
21610 if test "$LDAPLIBNAME" ; then
21611 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21613$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21614if eval \${$as_ac_Lib+:} false; then :
21615 $as_echo_n "(cached) " >&6
21616else
21617 ac_check_lib_save_LIBS=$LIBS
21618LIBS="-l"$LDAPLIBNAME" $LIBS"
21619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620/* end confdefs.h. */
21621
21622
21623#ifdef __cplusplus
21624extern "C"
21625#endif
21626char ldap_init ();
21627int main (void)
21628{
21629return ldap_init ();
21630 ;
21631 return 0;
21632}
21633_ACEOF
21634if ac_fn_c_try_link "$LINENO"; then :
21635 eval "$as_ac_Lib=yes"
21636else
21637 eval "$as_ac_Lib=no"
21638fi
21639rm -f core conftest.err conftest.$ac_objext \
21640 conftest$ac_exeext conftest.$ac_ext
21641LIBS=$ac_check_lib_save_LIBS
21642fi
21643eval ac_res=\$$as_ac_Lib
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21645$as_echo "$ac_res" >&6; }
21646if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21647 cat >>confdefs.h <<_ACEOF
21648#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21649_ACEOF
21650
21651 LIBS="-l"$LDAPLIBNAME" $LIBS"
21652
21653else
21654
21655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21656$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21657
21658$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21659
21660 CURL_DISABLE_LDAP=1
21661
21662
21663$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21664
21665 CURL_DISABLE_LDAPS=1
21666
21667fi
21668
21669 else
21670
21671 #
21672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21673$as_echo_n "checking for LDAP libraries... " >&6; }
21674 #
21675 u_libs=""
21676 #
21677
21678 #
21679 curl_cv_save_LIBS="$LIBS"
21680 curl_cv_ldap_LIBS="unknown"
21681 #
21682 for x_nlibs in '' "$u_libs" \
21683 '-lldap' \
21684 '-lldap -llber' \
21685 '-llber -lldap' \
21686 '-lldapssl -lldapx -lldapsdk' \
21687 '-lldapsdk -lldapx -lldapssl' ; do
21688 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21689 if test -z "$x_nlibs"; then
21690 LIBS="$curl_cv_save_LIBS"
21691 else
21692 LIBS="$x_nlibs $curl_cv_save_LIBS"
21693 fi
21694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21695/* end confdefs.h. */
21696
21697
21698#undef inline
21699#ifdef HAVE_WINDOWS_H
21700#ifndef WIN32_LEAN_AND_MEAN
21701#define WIN32_LEAN_AND_MEAN
21702#endif
21703#include <windows.h>
21704#else
21705#ifdef HAVE_SYS_TYPES_H
21706#include <sys/types.h>
21707#endif
21708#endif
21709#ifndef NULL
21710#define NULL (void *)0
21711#endif
21712#ifndef LDAP_DEPRECATED
21713#define LDAP_DEPRECATED 1
21714#endif
21715#ifdef NEED_LBER_H
21716#include <lber.h>
21717#endif
21718#ifdef HAVE_LDAP_H
21719#include <ldap.h>
21720#endif
21721
21722int main (void)
21723{
21724
21725 BerValue *bvp = NULL;
21726 BerElement *bep = ber_init(bvp);
21727 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21728 int res = ldap_unbind(ldp);
21729 ber_free(bep, 1);
21730
21731 ;
21732 return 0;
21733}
21734
21735_ACEOF
21736if ac_fn_c_try_link "$LINENO"; then :
21737
21738 curl_cv_ldap_LIBS="$x_nlibs"
21739
21740fi
21741rm -f core conftest.err conftest.$ac_objext \
21742 conftest$ac_exeext conftest.$ac_ext
21743 fi
21744 done
21745 #
21746 LIBS="$curl_cv_save_LIBS"
21747 #
21748 case X-"$curl_cv_ldap_LIBS" in
21749 X-unknown)
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21751$as_echo "cannot find LDAP libraries" >&6; }
21752 ;;
21753 X-)
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21755$as_echo "no additional lib required" >&6; }
21756 ;;
21757 *)
21758 if test -z "$curl_cv_save_LIBS"; then
21759 LIBS="$curl_cv_ldap_LIBS"
21760 else
21761 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21762 fi
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21764$as_echo "$curl_cv_ldap_LIBS" >&6; }
21765 ;;
21766 esac
21767 #
21768
21769 case X-"$curl_cv_ldap_LIBS" in
21770 X-unknown)
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21772$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21773
21774$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21775
21776 CURL_DISABLE_LDAP=1
21777
21778
21779$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21780
21781 CURL_DISABLE_LDAPS=1
21782
21783 ;;
21784 esac
21785 fi
21786fi
21787
21788if test x$CURL_DISABLE_LDAP != x1 ; then
21789
21790 if test "$LBERLIBNAME" ; then
21791 if test "$LBERLIBNAME" != "no" ; then
21792 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21794$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21795if eval \${$as_ac_Lib+:} false; then :
21796 $as_echo_n "(cached) " >&6
21797else
21798 ac_check_lib_save_LIBS=$LIBS
21799LIBS="-l"$LBERLIBNAME" $LIBS"
21800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21801/* end confdefs.h. */
21802
21803
21804#ifdef __cplusplus
21805extern "C"
21806#endif
21807char ber_free ();
21808int main (void)
21809{
21810return ber_free ();
21811 ;
21812 return 0;
21813}
21814_ACEOF
21815if ac_fn_c_try_link "$LINENO"; then :
21816 eval "$as_ac_Lib=yes"
21817else
21818 eval "$as_ac_Lib=no"
21819fi
21820rm -f core conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
21822LIBS=$ac_check_lib_save_LIBS
21823fi
21824eval ac_res=\$$as_ac_Lib
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21826$as_echo "$ac_res" >&6; }
21827if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21828 cat >>confdefs.h <<_ACEOF
21829#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21830_ACEOF
21831
21832 LIBS="-l"$LBERLIBNAME" $LIBS"
21833
21834else
21835
21836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21837$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21838
21839$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21840
21841 CURL_DISABLE_LDAP=1
21842
21843
21844$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21845
21846 CURL_DISABLE_LDAPS=1
21847
21848fi
21849
21850 fi
21851 fi
21852fi
21853
21854if test x$CURL_DISABLE_LDAP != x1 ; then
21855 for ac_func in ldap_url_parse ldap_init_fd
21856do :
21857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21858ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21859if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21860 cat >>confdefs.h <<_ACEOF
21861#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21862_ACEOF
21863
21864fi
21865done
21866
21867
21868 if test "$LDAPLIBNAME" = "wldap32"; then
21869 curl_ldap_msg="enabled (winldap)"
21870
21871$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21872
21873 else
21874 curl_ldap_msg="enabled (OpenLDAP)"
21875 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21876
21877$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21878
21879 USE_OPENLDAP=1
21880
21881 fi
21882 fi
21883fi
21884
21885if test x$CURL_DISABLE_LDAPS != x1 ; then
21886 curl_ldaps_msg="enabled"
21887fi
21888
21889
21890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21891$as_echo_n "checking whether to enable IPv6... " >&6; }
21892# Check whether --enable-ipv6 was given.
21893if test "${enable_ipv6+set}" = set; then :
21894 enableval=$enable_ipv6; case "$enableval" in
21895 no)
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21897$as_echo "no" >&6; }
21898 ipv6=no
21899 ;;
21900 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21901$as_echo "yes" >&6; }
21902 ipv6=yes
21903 ;;
21904 esac
21905else
21906 if test "$cross_compiling" = yes; then :
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21908$as_echo "yes" >&6; }
21909 ipv6=yes
21910
21911else
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913/* end confdefs.h. */
21914 /* is AF_INET6 available? */
21915#include <sys/types.h>
21916#ifdef HAVE_WINSOCK2_H
21917#include <winsock2.h>
21918#else
21919#include <sys/socket.h>
21920#endif
21921#include <stdlib.h> /* for exit() */
21922main()
21923{
21924 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21925 exit(1);
21926 else
21927 exit(0);
21928}
21929
21930_ACEOF
21931if ac_fn_c_try_run "$LINENO"; then :
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21933$as_echo "yes" >&6; }
21934 ipv6=yes
21935else
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21937$as_echo "no" >&6; }
21938 ipv6=no
21939fi
21940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21941 conftest.$ac_objext conftest.beam conftest.$ac_ext
21942fi
21943
21944fi
21945
21946
21947if test "$ipv6" = "yes"; then
21948 curl_ipv6_msg="enabled"
21949fi
21950
21951# Check if struct sockaddr_in6 have sin6_scope_id member
21952if test "$ipv6" = yes; then
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21954$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956/* end confdefs.h. */
21957
21958#include <sys/types.h>
21959#ifdef HAVE_WINSOCK2_H
21960#include <winsock2.h>
21961#include <ws2tcpip.h>
21962#else
21963#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021964#if defined (__TANDEM)
21965# include <netinet/in6.h>
21966#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021967#endif
21968int main (void)
21969{
21970struct sockaddr_in6 s; s.sin6_scope_id = 0;
21971 ;
21972 return 0;
21973}
21974_ACEOF
21975if ac_fn_c_try_compile "$LINENO"; then :
21976 have_sin6_scope_id=yes
21977fi
21978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21979 if test "$have_sin6_scope_id" = yes; then
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21981$as_echo "yes" >&6; }
21982
21983$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21984
21985 else
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21987$as_echo "no" >&6; }
21988 fi
21989fi
21990
21991
21992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21993$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021994
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021995
21996 old=$LD_LIBRARY_PATH
21997 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH
21998 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021999 curl_cv_writable_argv=cross
22000
22001else
22002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22003/* end confdefs.h. */
22004
Elliott Hughes82be86d2017-09-20 17:00:17 -070022005int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022006 argv00 = ' ';
22007 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070022008}
22009
Elliott Hughes82be86d2017-09-20 17:00:17 -070022010_ACEOF
22011if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070022012 curl_cv_writable_argv=yes
22013
22014else
Elliott Hughes82be86d2017-09-20 17:00:17 -070022015 curl_cv_writable_argv=no
22016
22017fi
22018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22019 conftest.$ac_objext conftest.beam conftest.$ac_ext
22020fi
22021
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022022 LD_LIBRARY_PATH=$old # restore
22023
Elliott Hughes82be86d2017-09-20 17:00:17 -070022024case $curl_cv_writable_argv in
22025yes)
22026
22027$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
22028
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22030$as_echo "yes" >&6; }
22031 ;;
22032no)
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034$as_echo "no" >&6; }
22035 ;;
22036*)
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038$as_echo "no" >&6; }
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
22040$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
22041 ;;
22042esac
22043
22044
22045
22046GSSAPI_ROOT="/usr"
22047
22048# Check whether --with-gssapi-includes was given.
22049if test "${with_gssapi_includes+set}" = set; then :
22050 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
22051 want_gss="yes"
22052
22053fi
22054
22055
22056
22057# Check whether --with-gssapi-libs was given.
22058if test "${with_gssapi_libs+set}" = set; then :
22059 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
22060 want_gss="yes"
22061
22062fi
22063
22064
22065
22066# Check whether --with-gssapi was given.
22067if test "${with_gssapi+set}" = set; then :
22068 withval=$with_gssapi;
22069 GSSAPI_ROOT="$withval"
22070 if test x"$GSSAPI_ROOT" != xno; then
22071 want_gss="yes"
22072 if test x"$GSSAPI_ROOT" = xyes; then
22073 GSSAPI_ROOT="/usr"
22074 fi
22075 fi
22076
22077fi
22078
22079
22080: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22081
22082save_CPPFLAGS="$CPPFLAGS"
22083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22084$as_echo_n "checking if GSS-API support is requested... " >&6; }
22085if test x"$want_gss" = xyes; then
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22087$as_echo "yes" >&6; }
22088
22089 if test -z "$GSSAPI_INCS"; then
22090 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22091 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22092 elif test -f "$KRB5CONFIG"; then
22093 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22094 elif test "$GSSAPI_ROOT" != "yes"; then
22095 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22096 fi
22097 fi
22098
22099 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22100
22101 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22102if test "x$ac_cv_header_gss_h" = xyes; then :
22103
22104
22105$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22106
22107 gnu_gss=yes
22108
22109else
22110
22111 for ac_header in gssapi/gssapi.h
22112do :
22113 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22114if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22115 cat >>confdefs.h <<_ACEOF
22116#define HAVE_GSSAPI_GSSAPI_H 1
22117_ACEOF
22118
22119else
22120 not_mit=1
22121fi
22122
22123done
22124
22125 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22126do :
22127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22128ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22129$ac_includes_default
22130#ifdef HAVE_GSSAPI_GSSAPI_H
22131#include <gssapi/gssapi.h>
22132#endif
22133
22134"
22135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22136 cat >>confdefs.h <<_ACEOF
22137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22138_ACEOF
22139
22140else
22141 not_mit=1
22142fi
22143
22144done
22145
22146 if test "x$not_mit" = "x1"; then
22147 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22148if test "x$ac_cv_header_gssapi_h" = xyes; then :
22149
22150
22151$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22152
22153
22154else
22155
22156 want_gss=no
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22158$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22159
22160
22161fi
22162
22163
22164 else
22165
22166$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22167
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22169$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171/* end confdefs.h. */
22172
22173
22174#include <gssapi/gssapi.h>
22175#include <gssapi/gssapi_generic.h>
22176#include <gssapi/gssapi_krb5.h>
22177
22178int main (void)
22179{
22180
22181 gss_import_name(
22182 (OM_uint32 *)0,
22183 (gss_buffer_t)0,
22184 GSS_C_NT_HOSTBASED_SERVICE,
22185 (gss_name_t *)0);
22186
22187 ;
22188 return 0;
22189}
22190
22191_ACEOF
22192if ac_fn_c_try_compile "$LINENO"; then :
22193
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22195$as_echo "yes" >&6; }
22196
22197else
22198
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22200$as_echo "no" >&6; }
22201
22202$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22203
22204
22205fi
22206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22207 fi
22208
22209
22210fi
22211
22212
22213else
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22215$as_echo "no" >&6; }
22216fi
22217if test x"$want_gss" = xyes; then
22218
22219$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22220
22221 HAVE_GSSAPI=1
22222 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22223
22224 if test -n "$gnu_gss"; then
22225 curl_gss_msg="enabled (GNU GSS)"
22226 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22227 LIBS="-lgss $LIBS"
22228 elif test -z "$GSSAPI_LIB_DIR"; then
22229 case $host in
22230 *-*-darwin*)
22231 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22232 ;;
22233 *)
22234 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22235 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22236 LIBS="$gss_libs $LIBS"
22237 elif test -f "$KRB5CONFIG"; then
22238 gss_libs=`$KRB5CONFIG --libs gssapi`
22239 LIBS="$gss_libs $LIBS"
22240 else
22241 case $host in
22242 *-hp-hpux*)
22243 gss_libname="gss"
22244 ;;
22245 *)
22246 gss_libname="gssapi"
22247 ;;
22248 esac
22249
22250 if test "$GSSAPI_ROOT" != "yes"; then
22251 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22252 LIBS="-l$gss_libname $LIBS"
22253 else
22254 LIBS="-l$gss_libname $LIBS"
22255 fi
22256 fi
22257 ;;
22258 esac
22259 else
22260 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22261 case $host in
22262 *-hp-hpux*)
22263 LIBS="-lgss $LIBS"
22264 ;;
22265 *)
22266 LIBS="-lgssapi $LIBS"
22267 ;;
22268 esac
22269 fi
22270else
22271 CPPFLAGS="$save_CPPFLAGS"
22272fi
22273
Alex Deymo486467e2017-12-19 19:04:07 +010022274build_libstubgss=no
22275if test x"$want_gss" = "xyes"; then
22276 build_libstubgss=yes
22277fi
22278
22279 if test "x$build_libstubgss" = "xyes"; then
22280 BUILD_STUB_GSS_TRUE=
22281 BUILD_STUB_GSS_FALSE='#'
22282else
22283 BUILD_STUB_GSS_TRUE='#'
22284 BUILD_STUB_GSS_FALSE=
22285fi
22286
22287
22288
22289DEFAULT_SSL_BACKEND=no
22290VALID_DEFAULT_SSL_BACKEND=
22291
22292# Check whether --with-default-ssl-backend was given.
22293if test "${with_default_ssl_backend+set}" = set; then :
22294 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22295fi
22296
22297case "$DEFAULT_SSL_BACKEND" in
22298 no)
22299 ;;
22300 default|yes)
22301 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22302 ;;
22303 *)
22304
22305 VALID_DEFAULT_SSL_BACKEND=no
22306 ;;
22307esac
22308
22309
Elliott Hughes82be86d2017-09-20 17:00:17 -070022310
22311OPT_WINSSL=no
22312
22313# Check whether --with-winssl was given.
22314if test "${with_winssl+set}" = set; then :
22315 withval=$with_winssl; OPT_WINSSL=$withval
22316fi
22317
22318
22319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22320$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022321if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22322 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022323 if test "x$OPT_WINSSL" != "xno" &&
22324 test "x$curl_cv_native_windows" = "xyes"; then
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22326$as_echo "yes" >&6; }
22327
22328$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22329
22330 USE_SCHANNEL=1
22331
Alex Deymo486467e2017-12-19 19:04:07 +010022332 ssl_msg="Windows-native"
22333 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022334 WINSSL_ENABLED=1
22335 # --with-winssl implies --enable-sspi
22336
22337$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22338
22339 USE_WINDOWS_SSPI=1
22340
22341 curl_sspi_msg="enabled"
22342 LIBS="-lcrypt32 $LIBS"
22343 else
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345$as_echo "no" >&6; }
22346 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022347 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022348else
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350$as_echo "no" >&6; }
22351fi
22352
22353OPT_DARWINSSL=no
22354
22355# Check whether --with-darwinssl was given.
22356if test "${with_darwinssl+set}" = set; then :
22357 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22358fi
22359
22360
22361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22362$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022363if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022364 if test "x$OPT_DARWINSSL" != "xno" &&
22365 test -d "/System/Library/Frameworks/Security.framework"; then
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22367$as_echo "yes" >&6; }
22368
22369$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22370
22371 USE_DARWINSSL=1
22372
Alex Deymo486467e2017-12-19 19:04:07 +010022373 ssl_msg="Apple OS-native"
22374 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022375 DARWINSSL_ENABLED=1
22376 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22377 else
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22379$as_echo "no" >&6; }
22380 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022381 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022382else
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22384$as_echo "no" >&6; }
22385fi
22386
22387
22388OPT_SSL=off
22389ca="no"
22390
22391# Check whether --with-ssl was given.
22392if test "${with_ssl+set}" = set; then :
22393 withval=$with_ssl; OPT_SSL=$withval
22394fi
22395
22396
Alex Deymo486467e2017-12-19 19:04:07 +010022397if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22398 test X"$OPT_SSL" != Xno; then
22399 ssl_msg=
22400
Elliott Hughes82be86d2017-09-20 17:00:17 -070022401 CLEANLDFLAGS="$LDFLAGS"
22402 CLEANCPPFLAGS="$CPPFLAGS"
22403 CLEANLIBS="$LIBS"
22404
22405 case $host in
22406 *-*-msys* | *-*-mingw*)
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22408$as_echo_n "checking for gdi32... " >&6; }
22409 my_ac_save_LIBS=$LIBS
22410 LIBS="-lgdi32 $LIBS"
22411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22412/* end confdefs.h. */
22413#include <windef.h>
22414 #include <wingdi.h>
22415int main (void)
22416{
22417GdiFlush();
22418 ;
22419 return 0;
22420}
22421_ACEOF
22422if ac_fn_c_try_link "$LINENO"; then :
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22424$as_echo "yes" >&6; }
22425else
22426 LIBS=$my_ac_save_LIBS
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428$as_echo "no" >&6; }
22429
22430fi
22431rm -f core conftest.err conftest.$ac_objext \
22432 conftest$ac_exeext conftest.$ac_ext
22433 ;;
22434 esac
22435
22436 case "$OPT_SSL" in
22437 yes)
22438 if test x$cross_compiling != xyes; then
22439 PKGTEST="yes"
22440 fi
22441 PREFIX_OPENSSL=/usr/local/ssl
22442 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22443 ;;
22444 off)
22445 if test x$cross_compiling != xyes; then
22446 PKGTEST="yes"
22447 fi
22448 PREFIX_OPENSSL=
22449 ;;
22450 *)
22451 PKGTEST="no"
22452 PREFIX_OPENSSL=$OPT_SSL
22453
22454 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22456$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22457 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22458 PKGTEST="yes"
22459 fi
22460
22461 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22462 if test "$PREFIX_OPENSSL" != "/usr" ; then
22463 SSL_LDFLAGS="-L$LIB_OPENSSL"
22464 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22465 fi
22466 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22467 ;;
22468 esac
22469
22470 if test "$PKGTEST" = "yes"; then
22471
22472
22473 if test -n "$PKG_CONFIG"; then
22474 PKGCONFIG="$PKG_CONFIG"
22475 else
22476 if test -n "$ac_tool_prefix"; then
22477 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22478set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22480$as_echo_n "checking for $ac_word... " >&6; }
22481if ${ac_cv_path_PKGCONFIG+:} false; then :
22482 $as_echo_n "(cached) " >&6
22483else
22484 case $PKGCONFIG in
22485 [\\/]* | ?:[\\/]*)
22486 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22487 ;;
22488 *)
22489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22490as_dummy="$PATH:/usr/bin:/usr/local/bin"
22491for as_dir in $as_dummy
22492do
22493 IFS=$as_save_IFS
22494 test -z "$as_dir" && as_dir=.
22495 for ac_exec_ext in '' $ac_executable_extensions; do
22496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22497 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22499 break 2
22500 fi
22501done
22502 done
22503IFS=$as_save_IFS
22504
22505 ;;
22506esac
22507fi
22508PKGCONFIG=$ac_cv_path_PKGCONFIG
22509if test -n "$PKGCONFIG"; then
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22511$as_echo "$PKGCONFIG" >&6; }
22512else
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22514$as_echo "no" >&6; }
22515fi
22516
22517
22518fi
22519if test -z "$ac_cv_path_PKGCONFIG"; then
22520 ac_pt_PKGCONFIG=$PKGCONFIG
22521 # Extract the first word of "pkg-config", so it can be a program name with args.
22522set dummy pkg-config; ac_word=$2
22523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22524$as_echo_n "checking for $ac_word... " >&6; }
22525if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22526 $as_echo_n "(cached) " >&6
22527else
22528 case $ac_pt_PKGCONFIG in
22529 [\\/]* | ?:[\\/]*)
22530 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22531 ;;
22532 *)
22533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22534as_dummy="$PATH:/usr/bin:/usr/local/bin"
22535for as_dir in $as_dummy
22536do
22537 IFS=$as_save_IFS
22538 test -z "$as_dir" && as_dir=.
22539 for ac_exec_ext in '' $ac_executable_extensions; do
22540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22541 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22543 break 2
22544 fi
22545done
22546 done
22547IFS=$as_save_IFS
22548
22549 ;;
22550esac
22551fi
22552ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22553if test -n "$ac_pt_PKGCONFIG"; then
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22555$as_echo "$ac_pt_PKGCONFIG" >&6; }
22556else
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22558$as_echo "no" >&6; }
22559fi
22560
22561 if test "x$ac_pt_PKGCONFIG" = x; then
22562 PKGCONFIG="no"
22563 else
22564 case $cross_compiling:$ac_tool_warned in
22565yes:)
22566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22568ac_tool_warned=yes ;;
22569esac
22570 PKGCONFIG=$ac_pt_PKGCONFIG
22571 fi
22572else
22573 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22574fi
22575
22576 fi
22577
22578 if test "x$PKGCONFIG" != "xno"; then
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22580$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22581 itexists=`
22582 if test -n "$OPENSSL_PCDIR"; then
22583 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22584 export PKG_CONFIG_LIBDIR
22585 fi
22586 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22587
22588 if test -z "$itexists"; then
22589 PKGCONFIG="no"
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22591$as_echo "no" >&6; }
22592 else
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22594$as_echo "found" >&6; }
22595 fi
22596 fi
22597
22598
22599 if test "$PKGCONFIG" != "no" ; then
22600 SSL_LIBS=`
22601 if test -n "$OPENSSL_PCDIR"; then
22602 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22603 export PKG_CONFIG_LIBDIR
22604 fi
22605 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22606
22607 SSL_LDFLAGS=`
22608 if test -n "$OPENSSL_PCDIR"; then
22609 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22610 export PKG_CONFIG_LIBDIR
22611 fi
22612 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22613
22614 SSL_CPPFLAGS=`
22615 if test -n "$OPENSSL_PCDIR"; then
22616 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22617 export PKG_CONFIG_LIBDIR
22618 fi
22619 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22620
22621
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22623$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22625$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22627$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22628
22629 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22630
22631 LIBS="$SSL_LIBS $LIBS"
22632 fi
22633 fi
22634
22635 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22636 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22637
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22639$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22640if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22641 $as_echo_n "(cached) " >&6
22642else
22643 ac_check_lib_save_LIBS=$LIBS
22644LIBS="-lcrypto $LIBS"
22645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22646/* end confdefs.h. */
22647
22648
22649#ifdef __cplusplus
22650extern "C"
22651#endif
22652char HMAC_Update ();
22653int main (void)
22654{
22655return HMAC_Update ();
22656 ;
22657 return 0;
22658}
22659_ACEOF
22660if ac_fn_c_try_link "$LINENO"; then :
22661 ac_cv_lib_crypto_HMAC_Update=yes
22662else
22663 ac_cv_lib_crypto_HMAC_Update=no
22664fi
22665rm -f core conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext conftest.$ac_ext
22667LIBS=$ac_check_lib_save_LIBS
22668fi
22669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22670$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22671if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22672
22673 HAVECRYPTO="yes"
22674 LIBS="-lcrypto $LIBS"
22675
22676else
22677
22678 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22679 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22681$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22682if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22683 $as_echo_n "(cached) " >&6
22684else
22685 ac_check_lib_save_LIBS=$LIBS
22686LIBS="-lcrypto $LIBS"
22687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22688/* end confdefs.h. */
22689
22690
22691#ifdef __cplusplus
22692extern "C"
22693#endif
22694char HMAC_Init_ex ();
22695int main (void)
22696{
22697return HMAC_Init_ex ();
22698 ;
22699 return 0;
22700}
22701_ACEOF
22702if ac_fn_c_try_link "$LINENO"; then :
22703 ac_cv_lib_crypto_HMAC_Init_ex=yes
22704else
22705 ac_cv_lib_crypto_HMAC_Init_ex=no
22706fi
22707rm -f core conftest.err conftest.$ac_objext \
22708 conftest$ac_exeext conftest.$ac_ext
22709LIBS=$ac_check_lib_save_LIBS
22710fi
22711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22712$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22713if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22714
22715 HAVECRYPTO="yes"
22716 LIBS="-lcrypto $LIBS"
22717else
22718
22719
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22721$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -080022722 LIBS="$LIBS -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22724/* end confdefs.h. */
22725
22726 #include <openssl/err.h>
22727
22728int main (void)
22729{
22730
22731 ERR_clear_error();
22732
22733 ;
22734 return 0;
22735}
22736_ACEOF
22737if ac_fn_c_try_link "$LINENO"; then :
22738
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22740$as_echo "yes" >&6; }
22741 HAVECRYPTO="yes"
22742
22743else
22744
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22746$as_echo "no" >&6; }
22747
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22749$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -080022750 LIBS="$LIBS -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22752/* end confdefs.h. */
22753
22754 #include <openssl/err.h>
22755
22756int main (void)
22757{
22758
22759 ERR_clear_error();
22760
22761 ;
22762 return 0;
22763}
22764_ACEOF
22765if ac_fn_c_try_link "$LINENO"; then :
22766
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22768$as_echo "yes" >&6; }
22769 HAVECRYPTO="yes"
22770
22771else
22772
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22774$as_echo "no" >&6; }
22775 LDFLAGS="$CLEANLDFLAGS"
22776 CPPFLAGS="$CLEANCPPFLAGS"
22777 LIBS="$CLEANLIBS"
22778
22779
22780fi
22781rm -f core conftest.err conftest.$ac_objext \
22782 conftest$ac_exeext conftest.$ac_ext
22783
22784
22785fi
22786rm -f core conftest.err conftest.$ac_objext \
22787 conftest$ac_exeext conftest.$ac_ext
22788
22789
22790fi
22791
22792
22793fi
22794
22795
22796 if test X"$HAVECRYPTO" = X"yes"; then
22797
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22799$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22800if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22801 $as_echo_n "(cached) " >&6
22802else
22803 ac_check_lib_save_LIBS=$LIBS
22804LIBS="-lssl $LIBS"
22805cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22806/* end confdefs.h. */
22807
22808
22809#ifdef __cplusplus
22810extern "C"
22811#endif
22812char SSL_connect ();
22813int main (void)
22814{
22815return SSL_connect ();
22816 ;
22817 return 0;
22818}
22819_ACEOF
22820if ac_fn_c_try_link "$LINENO"; then :
22821 ac_cv_lib_ssl_SSL_connect=yes
22822else
22823 ac_cv_lib_ssl_SSL_connect=no
22824fi
22825rm -f core conftest.err conftest.$ac_objext \
22826 conftest$ac_exeext conftest.$ac_ext
22827LIBS=$ac_check_lib_save_LIBS
22828fi
22829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22830$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22831if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22832 cat >>confdefs.h <<_ACEOF
22833#define HAVE_LIBSSL 1
22834_ACEOF
22835
22836 LIBS="-lssl $LIBS"
22837
22838fi
22839
22840
22841 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22843$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22844 OLIBS=$LIBS
22845 LIBS="-lRSAglue -lrsaref $LIBS"
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22847$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22848if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22849 $as_echo_n "(cached) " >&6
22850else
22851 ac_check_lib_save_LIBS=$LIBS
22852LIBS="-lssl $LIBS"
22853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22854/* end confdefs.h. */
22855
22856
22857#ifdef __cplusplus
22858extern "C"
22859#endif
22860char SSL_connect ();
22861int main (void)
22862{
22863return SSL_connect ();
22864 ;
22865 return 0;
22866}
22867_ACEOF
22868if ac_fn_c_try_link "$LINENO"; then :
22869 ac_cv_lib_ssl_SSL_connect=yes
22870else
22871 ac_cv_lib_ssl_SSL_connect=no
22872fi
22873rm -f core conftest.err conftest.$ac_objext \
22874 conftest$ac_exeext conftest.$ac_ext
22875LIBS=$ac_check_lib_save_LIBS
22876fi
22877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22878$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22879if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22880 cat >>confdefs.h <<_ACEOF
22881#define HAVE_LIBSSL 1
22882_ACEOF
22883
22884 LIBS="-lssl $LIBS"
22885
22886fi
22887
22888 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890$as_echo "no" >&6; }
22891 LIBS=$OLIBS
22892 else
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22894$as_echo "yes" >&6; }
22895 fi
22896
22897 else
22898
22899 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22900 openssl/pem.h openssl/ssl.h openssl/err.h
22901do :
22902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22903ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22904if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22905 cat >>confdefs.h <<_ACEOF
22906#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22907_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022908 ssl_msg="OpenSSL"
22909 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022910 OPENSSL_ENABLED=1
22911
22912$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22913
22914fi
22915
22916done
22917
22918
22919 if test $ac_cv_header_openssl_x509_h = no; then
22920 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22921do :
22922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22923ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22925 cat >>confdefs.h <<_ACEOF
22926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22927_ACEOF
22928
22929fi
22930
22931done
22932
22933
22934 if test $ac_cv_header_x509_h = yes &&
22935 test $ac_cv_header_crypto_h = yes &&
22936 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022937 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022938 OPENSSL_ENABLED=1
22939 fi
22940 fi
22941 fi
22942
Alex Deymo486467e2017-12-19 19:04:07 +010022943 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022944 LIBS="$CLEANLIBS"
22945 fi
22946
22947 if test X"$OPT_SSL" != Xoff &&
22948 test "$OPENSSL_ENABLED" != "1"; then
22949 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22950 fi
22951 fi
22952
22953 if test X"$OPENSSL_ENABLED" = X"1"; then
22954 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22955if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22956
22957 for ac_header in openssl/engine.h
22958do :
22959 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22960if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22961 cat >>confdefs.h <<_ACEOF
22962#define HAVE_OPENSSL_ENGINE_H 1
22963_ACEOF
22964
22965fi
22966
22967done
22968
22969 for ac_func in ENGINE_load_builtin_engines
22970do :
22971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22972ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22973if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22974 cat >>confdefs.h <<_ACEOF
22975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22976_ACEOF
22977
22978fi
22979done
22980
22981
22982fi
22983
22984
22985
22986 for ac_func in RAND_egd \
22987 ENGINE_cleanup \
22988 SSL_get_shutdown \
22989 SSLv2_client_method
22990do :
22991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22992ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22993if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22994 cat >>confdefs.h <<_ACEOF
22995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22996_ACEOF
22997
22998fi
22999done
23000
23001
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
23003$as_echo_n "checking for BoringSSL... " >&6; }
23004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23005/* end confdefs.h. */
23006
23007
23008 #include <openssl/base.h>
23009
23010int main (void)
23011{
23012
23013 #ifndef OPENSSL_IS_BORINGSSL
23014 #error not boringssl
23015 #endif
23016
23017 ;
23018 return 0;
23019}
23020
23021_ACEOF
23022if ac_fn_c_try_compile "$LINENO"; then :
23023
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23025$as_echo "yes" >&6; }
23026
23027cat >>confdefs.h <<_ACEOF
23028#define HAVE_BORINGSSL 1
23029_ACEOF
23030
Alex Deymo486467e2017-12-19 19:04:07 +010023031 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023032
23033else
23034
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23036$as_echo "no" >&6; }
23037
23038fi
23039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
23042$as_echo_n "checking for libressl... " >&6; }
23043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23044/* end confdefs.h. */
23045
23046
23047#include <openssl/opensslv.h>
23048
23049int main (void)
23050{
23051
23052 int dummy = LIBRESSL_VERSION_NUMBER;
23053
23054 ;
23055 return 0;
23056}
23057
23058_ACEOF
23059if ac_fn_c_try_compile "$LINENO"; then :
23060
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23062$as_echo "yes" >&6; }
23063
23064cat >>confdefs.h <<_ACEOF
23065#define HAVE_LIBRESSL 1
23066_ACEOF
23067
Alex Deymo486467e2017-12-19 19:04:07 +010023068 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023069
23070else
23071
23072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23073$as_echo "no" >&6; }
23074
23075fi
23076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 fi
23078
23079 if test "$OPENSSL_ENABLED" = "1"; then
23080 if test -n "$LIB_OPENSSL"; then
23081 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023082 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
23083 export CURL_LIBRARY_PATH
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
23085$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070023086 fi
23087 fi
23088
23089 #
23090
23091 #
23092 tst_api="unknown"
23093 #
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23095$as_echo_n "checking for OpenSSL headers version... " >&6; }
23096
23097 OLDCPPFLAGS=$CPPFLAGS
23098 # CPPPFLAG comes from CURL_CPP_P
23099 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23100 if test -z "$SED"; then
23101 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23102 fi
23103 if test -z "$GREP"; then
23104 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23105 fi
23106
23107 tmp_exp=""
23108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109/* end confdefs.h. */
23110
23111
23112# ifdef USE_OPENSSL
23113# include <openssl/crypto.h>
23114# else
23115# include <crypto.h>
23116# endif
23117
23118#ifdef OPENSSL_VERSION_NUMBER
23119CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23120#endif
23121
23122
23123_ACEOF
23124if ac_fn_c_try_cpp "$LINENO"; then :
23125
23126 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23127 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23128 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23129 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23130 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23131 tmp_exp=""
23132 fi
23133
23134fi
23135rm -f conftest.err conftest.i conftest.$ac_ext
23136 if test -z "$tmp_exp"; then
23137 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23138
23139 else
23140 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23141 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23142
23143 fi
23144 CPPFLAGS=$OLDCPPFLAGS
23145
23146 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23147 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23148 case "x$tst_verlen" in
23149 x6)
23150 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23151 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23152 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23153 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23154 ;;
23155 x11|x10)
23156 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23157 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23158 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23159 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23160 ;;
23161 *)
23162 tst_api="unknown"
23163 ;;
23164 esac
23165 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023166 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023167 0x110) tst_show="1.1.0" ;;
23168 0x102) tst_show="1.0.2" ;;
23169 0x101) tst_show="1.0.1" ;;
23170 0x100) tst_show="1.0.0" ;;
23171 0x099) tst_show="0.9.9" ;;
23172 0x098) tst_show="0.9.8" ;;
23173 0x097) tst_show="0.9.7" ;;
23174 0x096) tst_show="0.9.6" ;;
23175 0x095) tst_show="0.9.5" ;;
23176 0x094) tst_show="0.9.4" ;;
23177 0x093) tst_show="0.9.3" ;;
23178 0x092) tst_show="0.9.2" ;;
23179 0x091) tst_show="0.9.1" ;;
23180 *) tst_show="unknown" ;;
23181 esac
23182 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23183 else
23184 tst_show="unknown"
23185 fi
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23187$as_echo "$tst_show" >&6; }
23188 #
23189 curl_openssl_api_headers=$tst_api
23190
23191
23192 #
23193 tst_api="unknown"
23194 #
23195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23196$as_echo_n "checking for OpenSSL library version... " >&6; }
23197 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23199/* end confdefs.h. */
23200
23201
23202#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23203#ifdef __STDC__
23204# include <limits.h>
23205#else
23206# include <assert.h>
23207#endif
23208#undef ERR_clear_last_mark
23209#ifdef __cplusplus
23210extern "C"
23211#endif
23212char ERR_clear_last_mark ();
23213#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23214choke me
23215#endif
23216
23217int main (void)
23218{
23219return ERR_clear_last_mark ();
23220 ;
23221 return 0;
23222}
23223
23224_ACEOF
23225if ac_fn_c_try_link "$LINENO"; then :
23226
23227 tst_api="0x111"
23228
23229fi
23230rm -f core conftest.err conftest.$ac_objext \
23231 conftest$ac_exeext conftest.$ac_ext
23232 fi
23233 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023234 case $host in
23235 *-*-vms*)
23236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23237/* end confdefs.h. */
23238
23239
23240#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23241#ifdef __STDC__
23242# include <limits.h>
23243#else
23244# include <assert.h>
23245#endif
23246#undef SSL_CTX_set_not_resumbl_sess_cb
23247#ifdef __cplusplus
23248extern "C"
23249#endif
23250char SSL_CTX_set_not_resumbl_sess_cb ();
23251#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23252choke me
23253#endif
23254
23255int main (void)
23256{
23257return SSL_CTX_set_not_resumbl_sess_cb ();
23258 ;
23259 return 0;
23260}
23261
23262_ACEOF
23263if ac_fn_c_try_link "$LINENO"; then :
23264
23265 tst_api="0x110"
23266
23267fi
23268rm -f core conftest.err conftest.$ac_objext \
23269 conftest$ac_exeext conftest.$ac_ext
23270 ;;
23271 *)
23272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23273/* end confdefs.h. */
23274
23275
23276#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23277#ifdef __STDC__
23278# include <limits.h>
23279#else
23280# include <assert.h>
23281#endif
23282#undef SSL_CTX_set_not_resumable_session_callback
23283#ifdef __cplusplus
23284extern "C"
23285#endif
23286char SSL_CTX_set_not_resumable_session_callback ();
23287#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23288choke me
23289#endif
23290
23291int main (void)
23292{
23293return SSL_CTX_set_not_resumable_session_callback ();
23294 ;
23295 return 0;
23296}
23297
23298_ACEOF
23299if ac_fn_c_try_link "$LINENO"; then :
23300
23301 tst_api="0x110"
23302
23303fi
23304rm -f core conftest.err conftest.$ac_objext \
23305 conftest$ac_exeext conftest.$ac_ext
23306 ;;
23307 esac
23308 fi
23309 if test "$tst_api" = "unknown"; then
23310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23311/* end confdefs.h. */
23312
23313
23314#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23315#ifdef __STDC__
23316# include <limits.h>
23317#else
23318# include <assert.h>
23319#endif
23320#undef SSL_CONF_CTX_new
23321#ifdef __cplusplus
23322extern "C"
23323#endif
23324char SSL_CONF_CTX_new ();
23325#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23326choke me
23327#endif
23328
23329int main (void)
23330{
23331return SSL_CONF_CTX_new ();
23332 ;
23333 return 0;
23334}
23335
23336_ACEOF
23337if ac_fn_c_try_link "$LINENO"; then :
23338
23339 tst_api="0x102"
23340
23341fi
23342rm -f core conftest.err conftest.$ac_objext \
23343 conftest$ac_exeext conftest.$ac_ext
23344 fi
23345 if test "$tst_api" = "unknown"; then
23346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23347/* end confdefs.h. */
23348
23349
23350#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23351#ifdef __STDC__
23352# include <limits.h>
23353#else
23354# include <assert.h>
23355#endif
23356#undef SSL_renegotiate_abbreviated
23357#ifdef __cplusplus
23358extern "C"
23359#endif
23360char SSL_renegotiate_abbreviated ();
23361#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23362choke me
23363#endif
23364
23365int main (void)
23366{
23367return SSL_renegotiate_abbreviated ();
23368 ;
23369 return 0;
23370}
23371
23372_ACEOF
23373if ac_fn_c_try_link "$LINENO"; then :
23374
23375 tst_api="0x101"
23376
23377fi
23378rm -f core conftest.err conftest.$ac_objext \
23379 conftest$ac_exeext conftest.$ac_ext
23380 fi
23381 if test "$tst_api" = "unknown"; then
23382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23383/* end confdefs.h. */
23384
23385
23386#define OBJ_add_sigid innocuous_OBJ_add_sigid
23387#ifdef __STDC__
23388# include <limits.h>
23389#else
23390# include <assert.h>
23391#endif
23392#undef OBJ_add_sigid
23393#ifdef __cplusplus
23394extern "C"
23395#endif
23396char OBJ_add_sigid ();
23397#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23398choke me
23399#endif
23400
23401int main (void)
23402{
23403return OBJ_add_sigid ();
23404 ;
23405 return 0;
23406}
23407
23408_ACEOF
23409if ac_fn_c_try_link "$LINENO"; then :
23410
23411 tst_api="0x100"
23412
23413fi
23414rm -f core conftest.err conftest.$ac_objext \
23415 conftest$ac_exeext conftest.$ac_ext
23416 fi
23417 if test "$tst_api" = "unknown"; then
23418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23419/* end confdefs.h. */
23420
23421
23422#define ERR_set_mark innocuous_ERR_set_mark
23423#ifdef __STDC__
23424# include <limits.h>
23425#else
23426# include <assert.h>
23427#endif
23428#undef ERR_set_mark
23429#ifdef __cplusplus
23430extern "C"
23431#endif
23432char ERR_set_mark ();
23433#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23434choke me
23435#endif
23436
23437int main (void)
23438{
23439return ERR_set_mark ();
23440 ;
23441 return 0;
23442}
23443
23444_ACEOF
23445if ac_fn_c_try_link "$LINENO"; then :
23446
23447 tst_api="0x098"
23448
23449fi
23450rm -f core conftest.err conftest.$ac_objext \
23451 conftest$ac_exeext conftest.$ac_ext
23452 fi
23453 if test "$tst_api" = "unknown"; then
23454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23455/* end confdefs.h. */
23456
23457
23458#define ERR_peek_last_error innocuous_ERR_peek_last_error
23459#ifdef __STDC__
23460# include <limits.h>
23461#else
23462# include <assert.h>
23463#endif
23464#undef ERR_peek_last_error
23465#ifdef __cplusplus
23466extern "C"
23467#endif
23468char ERR_peek_last_error ();
23469#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23470choke me
23471#endif
23472
23473int main (void)
23474{
23475return ERR_peek_last_error ();
23476 ;
23477 return 0;
23478}
23479
23480_ACEOF
23481if ac_fn_c_try_link "$LINENO"; then :
23482
23483 tst_api="0x097"
23484
23485fi
23486rm -f core conftest.err conftest.$ac_objext \
23487 conftest$ac_exeext conftest.$ac_ext
23488 fi
23489 if test "$tst_api" = "unknown"; then
23490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23491/* end confdefs.h. */
23492
23493
23494#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23495#ifdef __STDC__
23496# include <limits.h>
23497#else
23498# include <assert.h>
23499#endif
23500#undef c2i_ASN1_OBJECT
23501#ifdef __cplusplus
23502extern "C"
23503#endif
23504char c2i_ASN1_OBJECT ();
23505#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23506choke me
23507#endif
23508
23509int main (void)
23510{
23511return c2i_ASN1_OBJECT ();
23512 ;
23513 return 0;
23514}
23515
23516_ACEOF
23517if ac_fn_c_try_link "$LINENO"; then :
23518
23519 tst_api="0x096"
23520
23521fi
23522rm -f core conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
23524 fi
23525 if test "$tst_api" = "unknown"; then
23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527/* end confdefs.h. */
23528
23529
23530#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23531#ifdef __STDC__
23532# include <limits.h>
23533#else
23534# include <assert.h>
23535#endif
23536#undef SSL_CTX_set_purpose
23537#ifdef __cplusplus
23538extern "C"
23539#endif
23540char SSL_CTX_set_purpose ();
23541#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23542choke me
23543#endif
23544
23545int main (void)
23546{
23547return SSL_CTX_set_purpose ();
23548 ;
23549 return 0;
23550}
23551
23552_ACEOF
23553if ac_fn_c_try_link "$LINENO"; then :
23554
23555 tst_api="0x095"
23556
23557fi
23558rm -f core conftest.err conftest.$ac_objext \
23559 conftest$ac_exeext conftest.$ac_ext
23560 fi
23561 if test "$tst_api" = "unknown"; then
23562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23563/* end confdefs.h. */
23564
23565
23566#define OBJ_obj2txt innocuous_OBJ_obj2txt
23567#ifdef __STDC__
23568# include <limits.h>
23569#else
23570# include <assert.h>
23571#endif
23572#undef OBJ_obj2txt
23573#ifdef __cplusplus
23574extern "C"
23575#endif
23576char OBJ_obj2txt ();
23577#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23578choke me
23579#endif
23580
23581int main (void)
23582{
23583return OBJ_obj2txt ();
23584 ;
23585 return 0;
23586}
23587
23588_ACEOF
23589if ac_fn_c_try_link "$LINENO"; then :
23590
23591 tst_api="0x094"
23592
23593fi
23594rm -f core conftest.err conftest.$ac_objext \
23595 conftest$ac_exeext conftest.$ac_ext
23596 fi
23597 if test "$tst_api" = "unknown"; then
23598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23599/* end confdefs.h. */
23600
23601
23602#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23603#ifdef __STDC__
23604# include <limits.h>
23605#else
23606# include <assert.h>
23607#endif
23608#undef SSL_get_verify_depth
23609#ifdef __cplusplus
23610extern "C"
23611#endif
23612char SSL_get_verify_depth ();
23613#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23614choke me
23615#endif
23616
23617int main (void)
23618{
23619return SSL_get_verify_depth ();
23620 ;
23621 return 0;
23622}
23623
23624_ACEOF
23625if ac_fn_c_try_link "$LINENO"; then :
23626
23627 tst_api="0x093"
23628
23629fi
23630rm -f core conftest.err conftest.$ac_objext \
23631 conftest$ac_exeext conftest.$ac_ext
23632 fi
23633 if test "$tst_api" = "unknown"; then
23634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23635/* end confdefs.h. */
23636
23637
23638#define SSL_library_init innocuous_SSL_library_init
23639#ifdef __STDC__
23640# include <limits.h>
23641#else
23642# include <assert.h>
23643#endif
23644#undef SSL_library_init
23645#ifdef __cplusplus
23646extern "C"
23647#endif
23648char SSL_library_init ();
23649#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23650choke me
23651#endif
23652
23653int main (void)
23654{
23655return SSL_library_init ();
23656 ;
23657 return 0;
23658}
23659
23660_ACEOF
23661if ac_fn_c_try_link "$LINENO"; then :
23662
23663 tst_api="0x092"
23664
23665fi
23666rm -f core conftest.err conftest.$ac_objext \
23667 conftest$ac_exeext conftest.$ac_ext
23668 fi
23669 if test "$tst_api" = "unknown"; then
23670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671/* end confdefs.h. */
23672
23673
23674#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23675#ifdef __STDC__
23676# include <limits.h>
23677#else
23678# include <assert.h>
23679#endif
23680#undef SSL_CTX_set_cipher_list
23681#ifdef __cplusplus
23682extern "C"
23683#endif
23684char SSL_CTX_set_cipher_list ();
23685#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23686choke me
23687#endif
23688
23689int main (void)
23690{
23691return SSL_CTX_set_cipher_list ();
23692 ;
23693 return 0;
23694}
23695
23696_ACEOF
23697if ac_fn_c_try_link "$LINENO"; then :
23698
23699 tst_api="0x091"
23700
23701fi
23702rm -f core conftest.err conftest.$ac_objext \
23703 conftest$ac_exeext conftest.$ac_ext
23704 fi
23705 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023706 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023707 0x110) tst_show="1.1.0" ;;
23708 0x102) tst_show="1.0.2" ;;
23709 0x101) tst_show="1.0.1" ;;
23710 0x100) tst_show="1.0.0" ;;
23711 0x099) tst_show="0.9.9" ;;
23712 0x098) tst_show="0.9.8" ;;
23713 0x097) tst_show="0.9.7" ;;
23714 0x096) tst_show="0.9.6" ;;
23715 0x095) tst_show="0.9.5" ;;
23716 0x094) tst_show="0.9.4" ;;
23717 0x093) tst_show="0.9.3" ;;
23718 0x092) tst_show="0.9.2" ;;
23719 0x091) tst_show="0.9.1" ;;
23720 *) tst_show="unknown" ;;
23721 esac
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23723$as_echo "$tst_show" >&6; }
23724 #
23725 curl_openssl_api_library=$tst_api
23726
23727 #
23728 tst_match="yes"
23729 #
23730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23731$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23732 if test "$curl_openssl_api_headers" = "unknown" ||
23733 test "$curl_openssl_api_library" = "unknown"; then
23734 tst_match="fail"
23735 tst_warns="Can not compare OpenSSL headers and library versions."
23736 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23737 tst_match="no"
23738 tst_warns="OpenSSL headers and library versions do not match."
23739 fi
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23741$as_echo "$tst_match" >&6; }
23742 if test "$tst_match" != "yes"; then
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23744$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23745 fi
23746
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023747 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023748 fi
23749
Alex Deymo486467e2017-12-19 19:04:07 +010023750 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023751fi
23752
23753
23754if test X"$OPENSSL_ENABLED" = X"1"; then
23755
23756# Check whether --with-egd-socket was given.
23757if test "${with_egd_socket+set}" = set; then :
23758 withval=$with_egd_socket; EGD_SOCKET="$withval"
23759
23760fi
23761
23762 if test -n "$EGD_SOCKET" ; then
23763
23764cat >>confdefs.h <<_ACEOF
23765#define EGD_SOCKET "$EGD_SOCKET"
23766_ACEOF
23767
23768 fi
23769
23770
23771# Check whether --with-random was given.
23772if test "${with_random+set}" = set; then :
23773 withval=$with_random; RANDOM_FILE="$withval"
23774else
23775
23776 if test x$cross_compiling != xyes; then
23777 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23779$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23780if eval \${$as_ac_File+:} false; then :
23781 $as_echo_n "(cached) " >&6
23782else
23783 test "$cross_compiling" = yes &&
23784 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23785if test -r ""/dev/urandom""; then
23786 eval "$as_ac_File=yes"
23787else
23788 eval "$as_ac_File=no"
23789fi
23790fi
23791eval ac_res=\$$as_ac_File
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23793$as_echo "$ac_res" >&6; }
23794if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23795 RANDOM_FILE="/dev/urandom"
23796fi
23797
23798 else
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23800$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23801 fi
23802
23803
23804fi
23805
23806 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23807
23808
23809cat >>confdefs.h <<_ACEOF
23810#define RANDOM_FILE "$RANDOM_FILE"
23811_ACEOF
23812
23813 fi
23814fi
23815
23816if test "$OPENSSL_ENABLED" = "1"; then
23817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23818$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23819if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23820 $as_echo_n "(cached) " >&6
23821else
23822 ac_check_lib_save_LIBS=$LIBS
23823LIBS="-lcrypto $LIBS"
23824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23825/* end confdefs.h. */
23826
23827
23828#ifdef __cplusplus
23829extern "C"
23830#endif
23831char SRP_Calc_client_key ();
23832int main (void)
23833{
23834return SRP_Calc_client_key ();
23835 ;
23836 return 0;
23837}
23838_ACEOF
23839if ac_fn_c_try_link "$LINENO"; then :
23840 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23841else
23842 ac_cv_lib_crypto_SRP_Calc_client_key=no
23843fi
23844rm -f core conftest.err conftest.$ac_objext \
23845 conftest$ac_exeext conftest.$ac_ext
23846LIBS=$ac_check_lib_save_LIBS
23847fi
23848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23849$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23850if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23851
23852
23853$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23854
23855 HAVE_OPENSSL_SRP=1
23856
23857
23858fi
23859
23860fi
23861
23862
23863OPT_GNUTLS=no
23864
23865
23866# Check whether --with-gnutls was given.
23867if test "${with_gnutls+set}" = set; then :
23868 withval=$with_gnutls; OPT_GNUTLS=$withval
23869fi
23870
23871
Alex Deymo486467e2017-12-19 19:04:07 +010023872if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23873 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023874
23875 if test X"$OPT_GNUTLS" != Xno; then
23876
23877 addld=""
23878 addlib=""
23879 gtlslib=""
23880 version=""
23881 addcflags=""
23882
23883 if test "x$OPT_GNUTLS" = "xyes"; then
23884
23885 if test -n "$PKG_CONFIG"; then
23886 PKGCONFIG="$PKG_CONFIG"
23887 else
23888 if test -n "$ac_tool_prefix"; then
23889 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23890set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23892$as_echo_n "checking for $ac_word... " >&6; }
23893if ${ac_cv_path_PKGCONFIG+:} false; then :
23894 $as_echo_n "(cached) " >&6
23895else
23896 case $PKGCONFIG in
23897 [\\/]* | ?:[\\/]*)
23898 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23899 ;;
23900 *)
23901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23902as_dummy="$PATH:/usr/bin:/usr/local/bin"
23903for as_dir in $as_dummy
23904do
23905 IFS=$as_save_IFS
23906 test -z "$as_dir" && as_dir=.
23907 for ac_exec_ext in '' $ac_executable_extensions; do
23908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23909 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23911 break 2
23912 fi
23913done
23914 done
23915IFS=$as_save_IFS
23916
23917 ;;
23918esac
23919fi
23920PKGCONFIG=$ac_cv_path_PKGCONFIG
23921if test -n "$PKGCONFIG"; then
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23923$as_echo "$PKGCONFIG" >&6; }
23924else
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23926$as_echo "no" >&6; }
23927fi
23928
23929
23930fi
23931if test -z "$ac_cv_path_PKGCONFIG"; then
23932 ac_pt_PKGCONFIG=$PKGCONFIG
23933 # Extract the first word of "pkg-config", so it can be a program name with args.
23934set dummy pkg-config; ac_word=$2
23935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23936$as_echo_n "checking for $ac_word... " >&6; }
23937if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23938 $as_echo_n "(cached) " >&6
23939else
23940 case $ac_pt_PKGCONFIG in
23941 [\\/]* | ?:[\\/]*)
23942 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23943 ;;
23944 *)
23945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23946as_dummy="$PATH:/usr/bin:/usr/local/bin"
23947for as_dir in $as_dummy
23948do
23949 IFS=$as_save_IFS
23950 test -z "$as_dir" && as_dir=.
23951 for ac_exec_ext in '' $ac_executable_extensions; do
23952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23953 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23955 break 2
23956 fi
23957done
23958 done
23959IFS=$as_save_IFS
23960
23961 ;;
23962esac
23963fi
23964ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23965if test -n "$ac_pt_PKGCONFIG"; then
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23967$as_echo "$ac_pt_PKGCONFIG" >&6; }
23968else
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23970$as_echo "no" >&6; }
23971fi
23972
23973 if test "x$ac_pt_PKGCONFIG" = x; then
23974 PKGCONFIG="no"
23975 else
23976 case $cross_compiling:$ac_tool_warned in
23977yes:)
23978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23980ac_tool_warned=yes ;;
23981esac
23982 PKGCONFIG=$ac_pt_PKGCONFIG
23983 fi
23984else
23985 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23986fi
23987
23988 fi
23989
23990 if test "x$PKGCONFIG" != "xno"; then
23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23992$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23993 itexists=`
23994 if test -n ""; then
23995 PKG_CONFIG_LIBDIR=""
23996 export PKG_CONFIG_LIBDIR
23997 fi
23998 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23999
24000 if test -z "$itexists"; then
24001 PKGCONFIG="no"
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24003$as_echo "no" >&6; }
24004 else
24005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24006$as_echo "found" >&6; }
24007 fi
24008 fi
24009
24010
24011 if test "$PKGCONFIG" != "no" ; then
24012 addlib=`$PKGCONFIG --libs-only-l gnutls`
24013 addld=`$PKGCONFIG --libs-only-L gnutls`
24014 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
24015 version=`$PKGCONFIG --modversion gnutls`
24016 gtlslib=`echo $addld | $SED -e 's/-L//'`
24017 else
24018 check=`libgnutls-config --version 2>/dev/null`
24019 if test -n "$check"; then
24020 addlib=`libgnutls-config --libs`
24021 addcflags=`libgnutls-config --cflags`
24022 version=`libgnutls-config --version`
24023 gtlslib=`libgnutls-config --prefix`/lib$libsuff
24024 fi
24025 fi
24026 else
24027 cfg=$OPT_GNUTLS/bin/libgnutls-config
24028 check=`$cfg --version 2>/dev/null`
24029 if test -n "$check"; then
24030 addlib=`$cfg --libs`
24031 addcflags=`$cfg --cflags`
24032 version=`$cfg --version`
24033 gtlslib=`$cfg --prefix`/lib$libsuff
24034 else
24035 addlib=-lgnutls
24036 addld=-L$OPT_GNUTLS/lib$libsuff
24037 addcflags=-I$OPT_GNUTLS/include
24038 version="" # we just don't know
24039 gtlslib=$OPT_GNUTLS/lib$libsuff
24040 fi
24041 fi
24042
24043 if test -z "$version"; then
24044 version="unknown"
24045 fi
24046
24047 if test -n "$addlib"; then
24048
24049 CLEANLIBS="$LIBS"
24050 CLEANCPPFLAGS="$CPPFLAGS"
24051 CLEANLDFLAGS="$LDFLAGS"
24052
24053 LIBS="$addlib $LIBS"
24054 LDFLAGS="$LDFLAGS $addld"
24055 if test "$addcflags" != "-I/usr/include"; then
24056 CPPFLAGS="$CPPFLAGS $addcflags"
24057 fi
24058
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24060$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24061if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24062 $as_echo_n "(cached) " >&6
24063else
24064 ac_check_lib_save_LIBS=$LIBS
24065LIBS="-lgnutls $LIBS"
24066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067/* end confdefs.h. */
24068
24069
24070#ifdef __cplusplus
24071extern "C"
24072#endif
24073char gnutls_check_version ();
24074int main (void)
24075{
24076return gnutls_check_version ();
24077 ;
24078 return 0;
24079}
24080_ACEOF
24081if ac_fn_c_try_link "$LINENO"; then :
24082 ac_cv_lib_gnutls_gnutls_check_version=yes
24083else
24084 ac_cv_lib_gnutls_gnutls_check_version=no
24085fi
24086rm -f core conftest.err conftest.$ac_objext \
24087 conftest$ac_exeext conftest.$ac_ext
24088LIBS=$ac_check_lib_save_LIBS
24089fi
24090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24091$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24092if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24093
24094
24095$as_echo "#define USE_GNUTLS 1" >>confdefs.h
24096
24097 USE_GNUTLS=1
24098
24099 GNUTLS_ENABLED=1
24100 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024101 ssl_msg="GnuTLS"
24102 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024103
24104else
24105
24106 LIBS="$CLEANLIBS"
24107 CPPFLAGS="$CLEANCPPFLAGS"
24108
24109fi
24110
24111
24112 if test "x$USE_GNUTLS" = "xyes"; then
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24114$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024115 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024116 if test -n "$gtlslib"; then
24117 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024118 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24119 export CURL_LIBRARY_PATH
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24121$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024122 fi
24123 fi
24124 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24125do :
24126 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24127ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24128if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24129 cat >>confdefs.h <<_ACEOF
24130#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24131_ACEOF
24132
24133fi
24134done
24135
24136 fi
24137
24138 fi
24139
24140 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024141 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024142fi
24143
24144
24145if test "$GNUTLS_ENABLED" = "1"; then
24146 USE_GNUTLS_NETTLE=
24147 # First check if we can detect either crypto library via transitive linking
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24149$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24150if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24151 $as_echo_n "(cached) " >&6
24152else
24153 ac_check_lib_save_LIBS=$LIBS
24154LIBS="-lgnutls $LIBS"
24155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24156/* end confdefs.h. */
24157
24158
24159#ifdef __cplusplus
24160extern "C"
24161#endif
24162char nettle_MD5Init ();
24163int main (void)
24164{
24165return nettle_MD5Init ();
24166 ;
24167 return 0;
24168}
24169_ACEOF
24170if ac_fn_c_try_link "$LINENO"; then :
24171 ac_cv_lib_gnutls_nettle_MD5Init=yes
24172else
24173 ac_cv_lib_gnutls_nettle_MD5Init=no
24174fi
24175rm -f core conftest.err conftest.$ac_objext \
24176 conftest$ac_exeext conftest.$ac_ext
24177LIBS=$ac_check_lib_save_LIBS
24178fi
24179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24180$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24181if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24182 USE_GNUTLS_NETTLE=1
24183fi
24184
24185 if test "$USE_GNUTLS_NETTLE" = ""; then
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24187$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24188if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24189 $as_echo_n "(cached) " >&6
24190else
24191 ac_check_lib_save_LIBS=$LIBS
24192LIBS="-lgnutls $LIBS"
24193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24194/* end confdefs.h. */
24195
24196
24197#ifdef __cplusplus
24198extern "C"
24199#endif
24200char gcry_control ();
24201int main (void)
24202{
24203return gcry_control ();
24204 ;
24205 return 0;
24206}
24207_ACEOF
24208if ac_fn_c_try_link "$LINENO"; then :
24209 ac_cv_lib_gnutls_gcry_control=yes
24210else
24211 ac_cv_lib_gnutls_gcry_control=no
24212fi
24213rm -f core conftest.err conftest.$ac_objext \
24214 conftest$ac_exeext conftest.$ac_ext
24215LIBS=$ac_check_lib_save_LIBS
24216fi
24217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24218$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24219if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24220 USE_GNUTLS_NETTLE=0
24221fi
24222
24223 fi
24224 # If not, try linking directly to both of them to see if they are available
24225 if test "$USE_GNUTLS_NETTLE" = ""; then
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24227$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24228if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24229 $as_echo_n "(cached) " >&6
24230else
24231 ac_check_lib_save_LIBS=$LIBS
24232LIBS="-lnettle $LIBS"
24233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24234/* end confdefs.h. */
24235
24236
24237#ifdef __cplusplus
24238extern "C"
24239#endif
24240char nettle_MD5Init ();
24241int main (void)
24242{
24243return nettle_MD5Init ();
24244 ;
24245 return 0;
24246}
24247_ACEOF
24248if ac_fn_c_try_link "$LINENO"; then :
24249 ac_cv_lib_nettle_nettle_MD5Init=yes
24250else
24251 ac_cv_lib_nettle_nettle_MD5Init=no
24252fi
24253rm -f core conftest.err conftest.$ac_objext \
24254 conftest$ac_exeext conftest.$ac_ext
24255LIBS=$ac_check_lib_save_LIBS
24256fi
24257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24258$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24259if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24260 USE_GNUTLS_NETTLE=1
24261fi
24262
24263 fi
24264 if test "$USE_GNUTLS_NETTLE" = ""; then
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24266$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24267if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24268 $as_echo_n "(cached) " >&6
24269else
24270 ac_check_lib_save_LIBS=$LIBS
24271LIBS="-lgcrypt $LIBS"
24272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273/* end confdefs.h. */
24274
24275
24276#ifdef __cplusplus
24277extern "C"
24278#endif
24279char gcry_control ();
24280int main (void)
24281{
24282return gcry_control ();
24283 ;
24284 return 0;
24285}
24286_ACEOF
24287if ac_fn_c_try_link "$LINENO"; then :
24288 ac_cv_lib_gcrypt_gcry_control=yes
24289else
24290 ac_cv_lib_gcrypt_gcry_control=no
24291fi
24292rm -f core conftest.err conftest.$ac_objext \
24293 conftest$ac_exeext conftest.$ac_ext
24294LIBS=$ac_check_lib_save_LIBS
24295fi
24296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24297$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24298if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24299 USE_GNUTLS_NETTLE=0
24300fi
24301
24302 fi
24303 if test "$USE_GNUTLS_NETTLE" = ""; then
24304 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24305 fi
24306 if test "$USE_GNUTLS_NETTLE" = "1"; then
24307
24308$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24309
24310 USE_GNUTLS_NETTLE=1
24311
24312 LIBS="-lnettle $LIBS"
24313 else
24314 LIBS="-lgcrypt $LIBS"
24315 fi
24316fi
24317
24318if test "$GNUTLS_ENABLED" = "1"; then
24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24320$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24321if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24322 $as_echo_n "(cached) " >&6
24323else
24324 ac_check_lib_save_LIBS=$LIBS
24325LIBS="-lgnutls $LIBS"
24326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24327/* end confdefs.h. */
24328
24329
24330#ifdef __cplusplus
24331extern "C"
24332#endif
24333char gnutls_srp_verifier ();
24334int main (void)
24335{
24336return gnutls_srp_verifier ();
24337 ;
24338 return 0;
24339}
24340_ACEOF
24341if ac_fn_c_try_link "$LINENO"; then :
24342 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24343else
24344 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24345fi
24346rm -f core conftest.err conftest.$ac_objext \
24347 conftest$ac_exeext conftest.$ac_ext
24348LIBS=$ac_check_lib_save_LIBS
24349fi
24350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24351$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24352if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24353
24354
24355$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24356
24357 HAVE_GNUTLS_SRP=1
24358
24359
24360fi
24361
24362fi
24363
24364
24365OPT_POLARSSL=no
24366
24367_cppflags=$CPPFLAGS
24368_ldflags=$LDFLAGS
24369
24370# Check whether --with-polarssl was given.
24371if test "${with_polarssl+set}" = set; then :
24372 withval=$with_polarssl; OPT_POLARSSL=$withval
24373fi
24374
24375
Alex Deymo486467e2017-12-19 19:04:07 +010024376if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24377 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024378
24379 if test X"$OPT_POLARSSL" != Xno; then
24380
24381 if test "$OPT_POLARSSL" = "yes"; then
24382 OPT_POLARSSL=""
24383 fi
24384
24385 if test -z "$OPT_POLARSSL" ; then
24386
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24388$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24389if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24390 $as_echo_n "(cached) " >&6
24391else
24392 ac_check_lib_save_LIBS=$LIBS
24393LIBS="-lpolarssl $LIBS"
24394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24395/* end confdefs.h. */
24396
24397
24398#ifdef __cplusplus
24399extern "C"
24400#endif
24401char havege_init ();
24402int main (void)
24403{
24404return havege_init ();
24405 ;
24406 return 0;
24407}
24408_ACEOF
24409if ac_fn_c_try_link "$LINENO"; then :
24410 ac_cv_lib_polarssl_havege_init=yes
24411else
24412 ac_cv_lib_polarssl_havege_init=no
24413fi
24414rm -f core conftest.err conftest.$ac_objext \
24415 conftest$ac_exeext conftest.$ac_ext
24416LIBS=$ac_check_lib_save_LIBS
24417fi
24418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24419$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24420if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24421
24422
24423$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24424
24425 USE_POLARSSL=1
24426
24427 POLARSSL_ENABLED=1
24428 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024429 ssl_msg="PolarSSL"
24430 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024431
24432fi
24433
24434 fi
24435
24436 addld=""
24437 addlib=""
24438 addcflags=""
24439 polarssllib=""
24440
24441 if test "x$USE_POLARSSL" != "xyes"; then
24442 addld=-L$OPT_POLARSSL/lib$libsuff
24443 addcflags=-I$OPT_POLARSSL/include
24444 polarssllib=$OPT_POLARSSL/lib$libsuff
24445
24446 LDFLAGS="$LDFLAGS $addld"
24447 if test "$addcflags" != "-I/usr/include"; then
24448 CPPFLAGS="$CPPFLAGS $addcflags"
24449 fi
24450
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24452$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24453if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24454 $as_echo_n "(cached) " >&6
24455else
24456 ac_check_lib_save_LIBS=$LIBS
24457LIBS="-lpolarssl $LIBS"
24458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459/* end confdefs.h. */
24460
24461
24462#ifdef __cplusplus
24463extern "C"
24464#endif
24465char ssl_init ();
24466int main (void)
24467{
24468return ssl_init ();
24469 ;
24470 return 0;
24471}
24472_ACEOF
24473if ac_fn_c_try_link "$LINENO"; then :
24474 ac_cv_lib_polarssl_ssl_init=yes
24475else
24476 ac_cv_lib_polarssl_ssl_init=no
24477fi
24478rm -f core conftest.err conftest.$ac_objext \
24479 conftest$ac_exeext conftest.$ac_ext
24480LIBS=$ac_check_lib_save_LIBS
24481fi
24482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24483$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24484if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24485
24486
24487$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24488
24489 USE_POLARSSL=1
24490
24491 POLARSSL_ENABLED=1
24492 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024493 ssl_msg="PolarSSL"
24494 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024495
24496else
24497
24498 CPPFLAGS=$_cppflags
24499 LDFLAGS=$_ldflags
24500
24501fi
24502
24503 fi
24504
24505 if test "x$USE_POLARSSL" = "xyes"; then
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24507$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024508 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024509 LIBS="-lpolarssl $LIBS"
24510
24511 if test -n "$polarssllib"; then
24512 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024513 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24514 export CURL_LIBRARY_PATH
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24516$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024517 fi
24518 fi
24519 fi
24520
24521 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024522 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024523fi
24524
24525
24526OPT_MBEDTLS=no
24527
24528_cppflags=$CPPFLAGS
24529_ldflags=$LDFLAGS
24530
24531# Check whether --with-mbedtls was given.
24532if test "${with_mbedtls+set}" = set; then :
24533 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24534fi
24535
24536
Alex Deymo486467e2017-12-19 19:04:07 +010024537if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24538 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024539
24540 if test X"$OPT_MBEDTLS" != Xno; then
24541
24542 if test "$OPT_MBEDTLS" = "yes"; then
24543 OPT_MBEDTLS=""
24544 fi
24545
24546 if test -z "$OPT_MBEDTLS" ; then
24547
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24549$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24550if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24551 $as_echo_n "(cached) " >&6
24552else
24553 ac_check_lib_save_LIBS=$LIBS
24554LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24556/* end confdefs.h. */
24557
24558
24559#ifdef __cplusplus
24560extern "C"
24561#endif
24562char mbedtls_havege_init ();
24563int main (void)
24564{
24565return mbedtls_havege_init ();
24566 ;
24567 return 0;
24568}
24569_ACEOF
24570if ac_fn_c_try_link "$LINENO"; then :
24571 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24572else
24573 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24574fi
24575rm -f core conftest.err conftest.$ac_objext \
24576 conftest$ac_exeext conftest.$ac_ext
24577LIBS=$ac_check_lib_save_LIBS
24578fi
24579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24580$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24581if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24582
24583
24584$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24585
24586 USE_MBEDTLS=1
24587
24588 MBEDTLS_ENABLED=1
24589 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024590 ssl_msg="mbedTLS"
24591 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024592
24593fi
24594
24595 fi
24596
24597 addld=""
24598 addlib=""
24599 addcflags=""
24600 mbedtlslib=""
24601
24602 if test "x$USE_MBEDTLS" != "xyes"; then
24603 addld=-L$OPT_MBEDTLS/lib$libsuff
24604 addcflags=-I$OPT_MBEDTLS/include
24605 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24606
24607 LDFLAGS="$LDFLAGS $addld"
24608 if test "$addcflags" != "-I/usr/include"; then
24609 CPPFLAGS="$CPPFLAGS $addcflags"
24610 fi
24611
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24613$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24614if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24615 $as_echo_n "(cached) " >&6
24616else
24617 ac_check_lib_save_LIBS=$LIBS
24618LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24620/* end confdefs.h. */
24621
24622
24623#ifdef __cplusplus
24624extern "C"
24625#endif
24626char mbedtls_ssl_init ();
24627int main (void)
24628{
24629return mbedtls_ssl_init ();
24630 ;
24631 return 0;
24632}
24633_ACEOF
24634if ac_fn_c_try_link "$LINENO"; then :
24635 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24636else
24637 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24638fi
24639rm -f core conftest.err conftest.$ac_objext \
24640 conftest$ac_exeext conftest.$ac_ext
24641LIBS=$ac_check_lib_save_LIBS
24642fi
24643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24644$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24645if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24646
24647
24648$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24649
24650 USE_MBEDTLS=1
24651
24652 MBEDTLS_ENABLED=1
24653 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024654 ssl_msg="mbedTLS"
24655 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024656
24657else
24658
24659 CPPFLAGS=$_cppflags
24660 LDFLAGS=$_ldflags
24661
24662fi
24663
24664 fi
24665
24666 if test "x$USE_MBEDTLS" = "xyes"; then
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24668$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024669 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024670
24671 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24672
24673 if test -n "$mbedtlslib"; then
24674 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024675 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24676 export CURL_LIBRARY_PATH
24677 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24678$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024679 fi
24680 fi
24681 fi
24682
24683 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024684 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024685fi
24686
24687
24688OPT_CYASSL=no
24689
24690_cppflags=$CPPFLAGS
24691_ldflags=$LDFLAGS
24692
24693# Check whether --with-cyassl was given.
24694if test "${with_cyassl+set}" = set; then :
24695 withval=$with_cyassl; OPT_CYASSL=$withval
24696fi
24697
24698
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024699
24700# Check whether --with-wolfssl was given.
24701if test "${with_wolfssl+set}" = set; then :
24702 withval=$with_wolfssl; OPT_CYASSL=$withval
24703fi
24704
24705
Alex Deymo486467e2017-12-19 19:04:07 +010024706if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24707 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024708
24709 if test X"$OPT_CYASSL" != Xno; then
24710
24711 if test "$OPT_CYASSL" = "yes"; then
24712 OPT_CYASSL=""
24713 fi
24714
24715
24716 cyassllibname=cyassl
24717
24718 if test -z "$OPT_CYASSL" ; then
24719
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24721$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24722if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24723 $as_echo_n "(cached) " >&6
24724else
24725 ac_check_lib_save_LIBS=$LIBS
24726LIBS="-lcyassl $LIBS"
24727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24728/* end confdefs.h. */
24729
24730
24731#ifdef __cplusplus
24732extern "C"
24733#endif
24734char CyaSSL_Init ();
24735int main (void)
24736{
24737return CyaSSL_Init ();
24738 ;
24739 return 0;
24740}
24741_ACEOF
24742if ac_fn_c_try_link "$LINENO"; then :
24743 ac_cv_lib_cyassl_CyaSSL_Init=yes
24744else
24745 ac_cv_lib_cyassl_CyaSSL_Init=no
24746fi
24747rm -f core conftest.err conftest.$ac_objext \
24748 conftest$ac_exeext conftest.$ac_ext
24749LIBS=$ac_check_lib_save_LIBS
24750fi
24751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24752$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24753if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24754
24755
24756$as_echo "#define USE_CYASSL 1" >>confdefs.h
24757
24758 USE_CYASSL=1
24759
24760 CYASSL_ENABLED=1
24761 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024762 ssl_msg="CyaSSL"
24763 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024764
24765fi
24766
24767 fi
24768
24769 addld=""
24770 addlib=""
24771 addcflags=""
24772 cyassllib=""
24773
24774 if test "x$USE_CYASSL" != "xyes"; then
24775 addld=-L$OPT_CYASSL/lib$libsuff
24776 addcflags=-I$OPT_CYASSL/include
24777 cyassllib=$OPT_CYASSL/lib$libsuff
24778
24779 LDFLAGS="$LDFLAGS $addld"
24780 if test "$addcflags" != "-I/usr/include"; then
24781 CPPFLAGS="$CPPFLAGS $addcflags"
24782 fi
24783
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24785$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24786if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24787 $as_echo_n "(cached) " >&6
24788else
24789 ac_check_lib_save_LIBS=$LIBS
24790LIBS="-lcyassl $LIBS"
24791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24792/* end confdefs.h. */
24793
24794
24795#ifdef __cplusplus
24796extern "C"
24797#endif
24798char CyaSSL_Init ();
24799int main (void)
24800{
24801return CyaSSL_Init ();
24802 ;
24803 return 0;
24804}
24805_ACEOF
24806if ac_fn_c_try_link "$LINENO"; then :
24807 ac_cv_lib_cyassl_CyaSSL_Init=yes
24808else
24809 ac_cv_lib_cyassl_CyaSSL_Init=no
24810fi
24811rm -f core conftest.err conftest.$ac_objext \
24812 conftest$ac_exeext conftest.$ac_ext
24813LIBS=$ac_check_lib_save_LIBS
24814fi
24815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24816$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24817if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24818
24819
24820$as_echo "#define USE_CYASSL 1" >>confdefs.h
24821
24822 USE_CYASSL=1
24823
24824 CYASSL_ENABLED=1
24825 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024826 ssl_msg="CyaSSL"
24827 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024828
24829else
24830
24831 CPPFLAGS=$_cppflags
24832 LDFLAGS=$_ldflags
24833 cyassllib=""
24834
24835fi
24836
24837 fi
24838
24839 addld=""
24840 addlib=""
24841 addcflags=""
24842
24843 if test "x$USE_CYASSL" != "xyes"; then
24844 addld=-L$OPT_CYASSL/lib$libsuff
24845 addcflags=-I$OPT_CYASSL/include
24846 cyassllib=$OPT_CYASSL/lib$libsuff
24847
24848 LDFLAGS="$LDFLAGS $addld"
24849 if test "$addcflags" != "-I/usr/include"; then
24850 CPPFLAGS="$CPPFLAGS $addcflags"
24851 fi
24852
24853 cyassllibname=wolfssl
24854 my_ac_save_LIBS="$LIBS"
24855 LIBS="-l$cyassllibname -lm $LIBS"
24856
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24858$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24860/* end confdefs.h. */
24861
24862
24863/* These aren't needed for detection and confuse WolfSSL.
24864 They are set up properly later if it is detected. */
24865#undef SIZEOF_LONG
24866#undef SIZEOF_LONG_LONG
24867#include <cyassl/ssl.h>
24868
24869int main (void)
24870{
24871
24872 return CyaSSL_Init();
24873
24874 ;
24875 return 0;
24876}
24877
24878_ACEOF
24879if ac_fn_c_try_link "$LINENO"; then :
24880
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24882$as_echo "yes" >&6; }
24883
24884$as_echo "#define USE_CYASSL 1" >>confdefs.h
24885
24886 USE_CYASSL=1
24887
24888 CYASSL_ENABLED=1
24889 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024890 ssl_msg="WolfSSL"
24891 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024892
24893else
24894
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24896$as_echo "no" >&6; }
24897 CPPFLAGS=$_cppflags
24898 LDFLAGS=$_ldflags
24899 cyassllib=""
24900
24901fi
24902rm -f core conftest.err conftest.$ac_objext \
24903 conftest$ac_exeext conftest.$ac_ext
24904 LIBS="$my_ac_save_LIBS"
24905 fi
24906
24907 if test "x$USE_CYASSL" = "xyes"; then
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24909$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024910 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024911
24912 # The cast to long int works around a bug in the HP C Compiler
24913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24915# This bug is HP SR number 8606223364.
24916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24917$as_echo_n "checking size of long long... " >&6; }
24918if ${ac_cv_sizeof_long_long+:} false; then :
24919 $as_echo_n "(cached) " >&6
24920else
24921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24922
24923else
24924 if test "$ac_cv_type_long_long" = yes; then
24925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24927as_fn_error 77 "cannot compute sizeof (long long)
24928See \`config.log' for more details" "$LINENO" 5; }
24929 else
24930 ac_cv_sizeof_long_long=0
24931 fi
24932fi
24933
24934fi
24935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24936$as_echo "$ac_cv_sizeof_long_long" >&6; }
24937
24938
24939
24940cat >>confdefs.h <<_ACEOF
24941#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24942_ACEOF
24943
24944
24945
24946 for ac_header in cyassl/options.h
24947do :
24948 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24949if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24950 cat >>confdefs.h <<_ACEOF
24951#define HAVE_CYASSL_OPTIONS_H 1
24952_ACEOF
24953
24954fi
24955
24956done
24957
24958
24959 for ac_header in cyassl/error-ssl.h
24960do :
24961 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24962if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24963 cat >>confdefs.h <<_ACEOF
24964#define HAVE_CYASSL_ERROR_SSL_H 1
24965_ACEOF
24966
24967fi
24968
24969done
24970
24971
24972 LIBS="-l$cyassllibname -lm $LIBS"
24973
24974 if test "x$cyassllibname" = "xwolfssl"; then
24975 for ac_func in wolfSSLv3_client_method \
24976 wolfSSL_CTX_UseSupportedCurve \
24977 wolfSSL_get_peer_certificate \
24978 wolfSSL_UseALPN
24979do :
24980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24981ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24982if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24983 cat >>confdefs.h <<_ACEOF
24984#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24985_ACEOF
24986
24987fi
24988done
24989
24990 else
24991 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24992 CyaSSL_get_peer_certificate
24993do :
24994 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24995ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24996if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24997 cat >>confdefs.h <<_ACEOF
24998#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24999_ACEOF
25000
25001fi
25002done
25003
25004 fi
25005
25006 if test -n "$cyassllib"; then
25007 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025008 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
25009 export CURL_LIBRARY_PATH
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
25011$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025012 fi
25013 fi
25014
25015 fi
25016
25017 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025018 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025019fi
25020
25021
25022OPT_NSS=no
25023
25024
25025# Check whether --with-nss was given.
25026if test "${with_nss+set}" = set; then :
25027 withval=$with_nss; OPT_NSS=$withval
25028fi
25029
25030
Alex Deymo486467e2017-12-19 19:04:07 +010025031if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25032 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025033
25034 if test X"$OPT_NSS" != Xno; then
25035
25036 addld=""
25037 addlib=""
25038 addcflags=""
25039 nssprefix=""
25040 version=""
25041
25042 if test "x$OPT_NSS" = "xyes"; then
25043
25044
25045 if test -n "$PKG_CONFIG"; then
25046 PKGCONFIG="$PKG_CONFIG"
25047 else
25048 if test -n "$ac_tool_prefix"; then
25049 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25050set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25052$as_echo_n "checking for $ac_word... " >&6; }
25053if ${ac_cv_path_PKGCONFIG+:} false; then :
25054 $as_echo_n "(cached) " >&6
25055else
25056 case $PKGCONFIG in
25057 [\\/]* | ?:[\\/]*)
25058 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25059 ;;
25060 *)
25061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25062as_dummy="$PATH:/usr/bin:/usr/local/bin"
25063for as_dir in $as_dummy
25064do
25065 IFS=$as_save_IFS
25066 test -z "$as_dir" && as_dir=.
25067 for ac_exec_ext in '' $ac_executable_extensions; do
25068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25069 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25071 break 2
25072 fi
25073done
25074 done
25075IFS=$as_save_IFS
25076
25077 ;;
25078esac
25079fi
25080PKGCONFIG=$ac_cv_path_PKGCONFIG
25081if test -n "$PKGCONFIG"; then
25082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25083$as_echo "$PKGCONFIG" >&6; }
25084else
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25086$as_echo "no" >&6; }
25087fi
25088
25089
25090fi
25091if test -z "$ac_cv_path_PKGCONFIG"; then
25092 ac_pt_PKGCONFIG=$PKGCONFIG
25093 # Extract the first word of "pkg-config", so it can be a program name with args.
25094set dummy pkg-config; ac_word=$2
25095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25096$as_echo_n "checking for $ac_word... " >&6; }
25097if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25098 $as_echo_n "(cached) " >&6
25099else
25100 case $ac_pt_PKGCONFIG in
25101 [\\/]* | ?:[\\/]*)
25102 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25103 ;;
25104 *)
25105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25106as_dummy="$PATH:/usr/bin:/usr/local/bin"
25107for as_dir in $as_dummy
25108do
25109 IFS=$as_save_IFS
25110 test -z "$as_dir" && as_dir=.
25111 for ac_exec_ext in '' $ac_executable_extensions; do
25112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25113 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25115 break 2
25116 fi
25117done
25118 done
25119IFS=$as_save_IFS
25120
25121 ;;
25122esac
25123fi
25124ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25125if test -n "$ac_pt_PKGCONFIG"; then
25126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25127$as_echo "$ac_pt_PKGCONFIG" >&6; }
25128else
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25130$as_echo "no" >&6; }
25131fi
25132
25133 if test "x$ac_pt_PKGCONFIG" = x; then
25134 PKGCONFIG="no"
25135 else
25136 case $cross_compiling:$ac_tool_warned in
25137yes:)
25138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25140ac_tool_warned=yes ;;
25141esac
25142 PKGCONFIG=$ac_pt_PKGCONFIG
25143 fi
25144else
25145 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25146fi
25147
25148 fi
25149
25150 if test "x$PKGCONFIG" != "xno"; then
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25152$as_echo_n "checking for nss options with pkg-config... " >&6; }
25153 itexists=`
25154 if test -n ""; then
25155 PKG_CONFIG_LIBDIR=""
25156 export PKG_CONFIG_LIBDIR
25157 fi
25158 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25159
25160 if test -z "$itexists"; then
25161 PKGCONFIG="no"
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25163$as_echo "no" >&6; }
25164 else
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25166$as_echo "found" >&6; }
25167 fi
25168 fi
25169
25170
25171 if test "$PKGCONFIG" != "no" ; then
25172 addlib=`$PKGCONFIG --libs nss`
25173 addcflags=`$PKGCONFIG --cflags nss`
25174 version=`$PKGCONFIG --modversion nss`
25175 nssprefix=`$PKGCONFIG --variable=prefix nss`
25176 else
25177
25178 check=`nss-config --version 2>/dev/null`
25179 if test -n "$check"; then
25180 addlib=`nss-config --libs`
25181 addcflags=`nss-config --cflags`
25182 version=`nss-config --version`
25183 nssprefix=`nss-config --prefix`
25184 else
25185 addlib="-lnss3"
25186 addcflags=""
25187 version="unknown"
25188 fi
25189 fi
25190 else
25191 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25192 if test -f "$NSS_PCDIR/nss.pc"; then
25193
25194 if test -n "$PKG_CONFIG"; then
25195 PKGCONFIG="$PKG_CONFIG"
25196 else
25197 if test -n "$ac_tool_prefix"; then
25198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25199set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25201$as_echo_n "checking for $ac_word... " >&6; }
25202if ${ac_cv_path_PKGCONFIG+:} false; then :
25203 $as_echo_n "(cached) " >&6
25204else
25205 case $PKGCONFIG in
25206 [\\/]* | ?:[\\/]*)
25207 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25208 ;;
25209 *)
25210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25211as_dummy="$PATH:/usr/bin:/usr/local/bin"
25212for as_dir in $as_dummy
25213do
25214 IFS=$as_save_IFS
25215 test -z "$as_dir" && as_dir=.
25216 for ac_exec_ext in '' $ac_executable_extensions; do
25217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25218 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25220 break 2
25221 fi
25222done
25223 done
25224IFS=$as_save_IFS
25225
25226 ;;
25227esac
25228fi
25229PKGCONFIG=$ac_cv_path_PKGCONFIG
25230if test -n "$PKGCONFIG"; then
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25232$as_echo "$PKGCONFIG" >&6; }
25233else
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25235$as_echo "no" >&6; }
25236fi
25237
25238
25239fi
25240if test -z "$ac_cv_path_PKGCONFIG"; then
25241 ac_pt_PKGCONFIG=$PKGCONFIG
25242 # Extract the first word of "pkg-config", so it can be a program name with args.
25243set dummy pkg-config; ac_word=$2
25244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25245$as_echo_n "checking for $ac_word... " >&6; }
25246if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25247 $as_echo_n "(cached) " >&6
25248else
25249 case $ac_pt_PKGCONFIG in
25250 [\\/]* | ?:[\\/]*)
25251 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25252 ;;
25253 *)
25254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25255as_dummy="$PATH:/usr/bin:/usr/local/bin"
25256for as_dir in $as_dummy
25257do
25258 IFS=$as_save_IFS
25259 test -z "$as_dir" && as_dir=.
25260 for ac_exec_ext in '' $ac_executable_extensions; do
25261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25262 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25264 break 2
25265 fi
25266done
25267 done
25268IFS=$as_save_IFS
25269
25270 ;;
25271esac
25272fi
25273ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25274if test -n "$ac_pt_PKGCONFIG"; then
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25276$as_echo "$ac_pt_PKGCONFIG" >&6; }
25277else
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25279$as_echo "no" >&6; }
25280fi
25281
25282 if test "x$ac_pt_PKGCONFIG" = x; then
25283 PKGCONFIG="no"
25284 else
25285 case $cross_compiling:$ac_tool_warned in
25286yes:)
25287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25289ac_tool_warned=yes ;;
25290esac
25291 PKGCONFIG=$ac_pt_PKGCONFIG
25292 fi
25293else
25294 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25295fi
25296
25297 fi
25298
25299 if test "x$PKGCONFIG" != "xno"; then
25300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25301$as_echo_n "checking for nss options with pkg-config... " >&6; }
25302 itexists=`
25303 if test -n "$NSS_PCDIR"; then
25304 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25305 export PKG_CONFIG_LIBDIR
25306 fi
25307 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25308
25309 if test -z "$itexists"; then
25310 PKGCONFIG="no"
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25312$as_echo "no" >&6; }
25313 else
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25315$as_echo "found" >&6; }
25316 fi
25317 fi
25318
25319 if test "$PKGCONFIG" != "no" ; then
25320 addld=`
25321 if test -n "$NSS_PCDIR"; then
25322 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25323 export PKG_CONFIG_LIBDIR
25324 fi
25325 $PKGCONFIG --libs-only-L nss`
25326 addlib=`
25327 if test -n "$NSS_PCDIR"; then
25328 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25329 export PKG_CONFIG_LIBDIR
25330 fi
25331 $PKGCONFIG --libs-only-l nss`
25332 addcflags=`
25333 if test -n "$NSS_PCDIR"; then
25334 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25335 export PKG_CONFIG_LIBDIR
25336 fi
25337 $PKGCONFIG --cflags nss`
25338 version=`
25339 if test -n "$NSS_PCDIR"; then
25340 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25341 export PKG_CONFIG_LIBDIR
25342 fi
25343 $PKGCONFIG --modversion nss`
25344 nssprefix=`
25345 if test -n "$NSS_PCDIR"; then
25346 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25347 export PKG_CONFIG_LIBDIR
25348 fi
25349 $PKGCONFIG --variable=prefix nss`
25350 fi
25351 fi
25352 fi
25353
25354 if test -z "$addlib"; then
25355 # Without pkg-config, we'll kludge in some defaults
25356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25357$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25358 addld="-L$OPT_NSS/lib"
25359 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25360 addcflags="-I$OPT_NSS/include"
25361 version="unknown"
25362 nssprefix=$OPT_NSS
25363 fi
25364
25365 CLEANLDFLAGS="$LDFLAGS"
25366 CLEANLIBS="$LIBS"
25367 CLEANCPPFLAGS="$CPPFLAGS"
25368
25369 LDFLAGS="$addld $LDFLAGS"
25370 LIBS="$addlib $LIBS"
25371 if test "$addcflags" != "-I/usr/include"; then
25372 CPPFLAGS="$CPPFLAGS $addcflags"
25373 fi
25374
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25376$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25377if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25378 $as_echo_n "(cached) " >&6
25379else
25380 ac_check_lib_save_LIBS=$LIBS
25381LIBS="-lnss3 $LIBS"
25382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25383/* end confdefs.h. */
25384
25385
25386#ifdef __cplusplus
25387extern "C"
25388#endif
25389char SSL_VersionRangeSet ();
25390int main (void)
25391{
25392return SSL_VersionRangeSet ();
25393 ;
25394 return 0;
25395}
25396_ACEOF
25397if ac_fn_c_try_link "$LINENO"; then :
25398 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25399else
25400 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25401fi
25402rm -f core conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
25404LIBS=$ac_check_lib_save_LIBS
25405fi
25406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25407$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25408if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25409
25410
25411$as_echo "#define USE_NSS 1" >>confdefs.h
25412
25413 USE_NSS=1
25414
25415 USE_NSS="yes"
25416 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025417 ssl_msg="NSS"
25418 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025419
25420else
25421
25422 LDFLAGS="$CLEANLDFLAGS"
25423 LIBS="$CLEANLIBS"
25424 CPPFLAGS="$CLEANCPPFLAGS"
25425
25426fi
25427
25428
25429 if test "x$USE_NSS" = "xyes"; then
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25431$as_echo "$as_me: detected NSS version $version" >&6;}
25432
Elliott Hughescac39802018-04-27 16:19:43 -070025433 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25434if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25435
25436
25437$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25438
25439
25440fi
25441
25442
Elliott Hughes82be86d2017-09-20 17:00:17 -070025443 NSS_LIBS=$addlib
25444
25445
25446 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025447 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25448 export CURL_LIBRARY_PATH
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25450$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025451 fi
25452
25453 fi
25454 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025455 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025456fi
Alex Deymo486467e2017-12-19 19:04:07 +010025457
Elliott Hughes82be86d2017-09-20 17:00:17 -070025458OPT_AXTLS=off
25459
25460
25461# Check whether --with-axtls was given.
25462if test "${with_axtls+set}" = set; then :
25463 withval=$with_axtls; OPT_AXTLS=$withval
25464fi
25465
25466
Alex Deymo486467e2017-12-19 19:04:07 +010025467if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25468 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025469 if test X"$OPT_AXTLS" != Xno; then
25470 CLEANLDFLAGS="$LDFLAGS"
25471 CLEANCPPFLAGS="$CPPFLAGS"
25472 CLEANLIBS="$LIBS"
25473
25474 case "$OPT_AXTLS" in
25475 yes)
25476 PREFIX_AXTLS=/usr/local
25477 LIB_AXTLS="$PREFIX_AXTLS/lib"
25478 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25479 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25480 ;;
25481 off)
25482 PREFIX_AXTLS=
25483 ;;
25484 *)
25485 PREFIX_AXTLS=$OPT_AXTLS
25486 LIB_AXTLS="$PREFIX_AXTLS/lib"
25487 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25488 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25489 ;;
25490 esac
25491
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25493$as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25494if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25495 $as_echo_n "(cached) " >&6
25496else
25497 ac_check_lib_save_LIBS=$LIBS
25498LIBS="-laxtls $LIBS"
25499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25500/* end confdefs.h. */
25501
25502
25503#ifdef __cplusplus
25504extern "C"
25505#endif
25506char ssl_version ();
25507int main (void)
25508{
25509return ssl_version ();
25510 ;
25511 return 0;
25512}
25513_ACEOF
25514if ac_fn_c_try_link "$LINENO"; then :
25515 ac_cv_lib_axtls_ssl_version=yes
25516else
25517 ac_cv_lib_axtls_ssl_version=no
25518fi
25519rm -f core conftest.err conftest.$ac_objext \
25520 conftest$ac_exeext conftest.$ac_ext
25521LIBS=$ac_check_lib_save_LIBS
25522fi
25523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25524$as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25525if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25526
25527 LIBS="-laxtls $LIBS"
25528
25529$as_echo "#define USE_AXTLS 1" >>confdefs.h
25530
25531 USE_AXTLS=1
25532
25533 AXTLS_ENABLED=1
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025534 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070025535 USE_AXTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010025536 ssl_msg="axTLS"
25537 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025538
25539 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025540 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_AXTLS"
25541 export CURL_LIBRARY_PATH
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&5
25543$as_echo "$as_me: Added $LIB_AXTLS to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025544 fi
25545
25546else
25547
25548 LDFLAGS="$CLEANLDFLAGS"
25549 CPPFLAGS="$CLEANCPPFLAGS"
25550 LIBS="$CLEANLIBS"
25551
25552fi
25553
25554 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025555 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025556fi
25557
Alex Deymo486467e2017-12-19 19:04:07 +010025558case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25559x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25561$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25562 { $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
25563$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;}
Alex Deymo486467e2017-12-19 19:04:07 +010025564 ;;
25565x1)
25566 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025567
25568 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025569 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25570$as_echo "$as_me: built with one SSL backend" >&6;}
25571 ;;
25572*)
25573 # more than one SSL backend is enabled
25574
25575 SSL_ENABLED="1"
25576
25577 CURL_WITH_MULTI_SSL="1"
25578
25579$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25580
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25582$as_echo "$as_me: built with multiple SSL backends" >&6;}
25583 ;;
25584esac
25585
25586if test -n "$ssl_backends"; then
25587 curl_ssl_msg="enabled ($ssl_backends)"
25588fi
25589
25590if test no = "$VALID_DEFAULT_SSL_BACKEND"
25591then
25592 if test -n "$SSL_ENABLED"
25593 then
25594 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25595 else
25596 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25597 fi
25598elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25599then
25600
25601cat >>confdefs.h <<_ACEOF
25602#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25603_ACEOF
25604
Elliott Hughes82be86d2017-09-20 17:00:17 -070025605fi
25606
25607
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025608if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025609
25610
25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25612$as_echo_n "checking default CA cert bundle/path... " >&6; }
25613
25614
25615# Check whether --with-ca-bundle was given.
25616if test "${with_ca_bundle+set}" = set; then :
25617 withval=$with_ca_bundle;
25618 want_ca="$withval"
25619 if test "x$want_ca" = "xyes"; then
25620 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25621 fi
25622
25623else
25624 want_ca="unset"
25625fi
25626
25627
25628# Check whether --with-ca-path was given.
25629if test "${with_ca_path+set}" = set; then :
25630 withval=$with_ca_path;
25631 want_capath="$withval"
25632 if test "x$want_capath" = "xyes"; then
25633 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25634 fi
25635
25636else
25637 want_capath="unset"
25638fi
25639
25640
25641 ca_warning=" (warning: certs not found)"
25642 capath_warning=" (warning: certs not found)"
25643 check_capath=""
25644
25645 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25646 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25647 ca="$want_ca"
25648 capath="$want_capath"
25649 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25650 ca="$want_ca"
25651 capath="no"
25652 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25653 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25654 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25655 fi
25656 capath="$want_capath"
25657 ca="no"
25658 else
25659 ca="no"
25660 capath="no"
25661 if test "x$cross_compiling" != "xyes"; then
25662 if test "x$want_ca" = "xunset"; then
25663 if test "x$prefix" != xNONE; then
25664 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25665 else
25666 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25667 fi
25668
25669 for a in /etc/ssl/certs/ca-certificates.crt \
25670 /etc/pki/tls/certs/ca-bundle.crt \
25671 /usr/share/ssl/certs/ca-bundle.crt \
25672 /usr/local/share/certs/ca-root-nss.crt \
25673 /etc/ssl/cert.pem \
25674 "$cac"; do
25675 if test -f "$a"; then
25676 ca="$a"
25677 break
25678 fi
25679 done
25680 fi
25681 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25682 "x$OPENSSL_ENABLED" = "x1"; then
25683 check_capath="/etc/ssl/certs/"
25684 fi
25685 else
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25687$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25688 fi
25689 fi
25690
25691 if test "x$ca" = "xno" || test -f "$ca"; then
25692 ca_warning=""
25693 fi
25694
25695 if test "x$capath" != "xno"; then
25696 check_capath="$capath"
25697 fi
25698
25699 if test ! -z "$check_capath"; then
25700 for a in "$check_capath"; do
25701 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
25702 if test "x$capath" = "xno"; then
25703 capath="$a"
25704 fi
25705 capath_warning=""
25706 break
25707 fi
25708 done
25709 fi
25710
25711 if test "x$capath" = "xno"; then
25712 capath_warning=""
25713 fi
25714
25715 if test "x$ca" != "xno"; then
25716 CURL_CA_BUNDLE='"'$ca'"'
25717
25718cat >>confdefs.h <<_ACEOF
25719#define CURL_CA_BUNDLE "$ca"
25720_ACEOF
25721
25722
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25724$as_echo "$ca" >&6; }
25725 fi
25726 if test "x$capath" != "xno"; then
25727 CURL_CA_PATH="\"$capath\""
25728
25729cat >>confdefs.h <<_ACEOF
25730#define CURL_CA_PATH "$capath"
25731_ACEOF
25732
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25734$as_echo "$capath (capath)" >&6; }
25735 fi
25736 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25738$as_echo "no" >&6; }
25739 fi
25740
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25742$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25743
25744# Check whether --with-ca-fallback was given.
25745if test "${with_ca_fallback+set}" = set; then :
25746 withval=$with_ca_fallback;
25747 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25748 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25749 fi
25750
25751else
25752 with_ca_fallback="no"
25753fi
25754
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25756$as_echo "$with_ca_fallback" >&6; }
25757 if test "x$with_ca_fallback" = "xyes"; then
25758 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25759 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25760 fi
25761
25762cat >>confdefs.h <<_ACEOF
25763#define CURL_CA_FALLBACK 1
25764_ACEOF
25765
25766 fi
25767
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025768fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025769
25770
25771
25772# Check whether --with-libpsl was given.
25773if test "${with_libpsl+set}" = set; then :
25774 withval=$with_libpsl; with_libpsl=$withval
25775else
25776 with_libpsl=yes
25777fi
25778
25779if test $with_libpsl != "no"; then
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25781$as_echo_n "checking for library containing psl_builtin... " >&6; }
25782if ${ac_cv_search_psl_builtin+:} false; then :
25783 $as_echo_n "(cached) " >&6
25784else
25785 ac_func_search_save_LIBS=$LIBS
25786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787/* end confdefs.h. */
25788
25789
25790#ifdef __cplusplus
25791extern "C"
25792#endif
25793char psl_builtin ();
25794int main (void)
25795{
25796return psl_builtin ();
25797 ;
25798 return 0;
25799}
25800_ACEOF
25801for ac_lib in '' psl; do
25802 if test -z "$ac_lib"; then
25803 ac_res="none required"
25804 else
25805 ac_res=-l$ac_lib
25806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25807 fi
25808 if ac_fn_c_try_link "$LINENO"; then :
25809 ac_cv_search_psl_builtin=$ac_res
25810fi
25811rm -f core conftest.err conftest.$ac_objext \
25812 conftest$ac_exeext
25813 if ${ac_cv_search_psl_builtin+:} false; then :
25814 break
25815fi
25816done
25817if ${ac_cv_search_psl_builtin+:} false; then :
25818
25819else
25820 ac_cv_search_psl_builtin=no
25821fi
25822rm conftest.$ac_ext
25823LIBS=$ac_func_search_save_LIBS
25824fi
25825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25826$as_echo "$ac_cv_search_psl_builtin" >&6; }
25827ac_res=$ac_cv_search_psl_builtin
25828if test "$ac_res" != no; then :
25829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25830 curl_psl_msg="yes";
25831
25832$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25833
25834
25835else
25836 curl_psl_msg="no (libpsl not found)";
25837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25838$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25839
25840
25841fi
25842
25843fi
25844 if test "$curl_psl_msg" = "yes"; then
25845 USE_LIBPSL_TRUE=
25846 USE_LIBPSL_FALSE='#'
25847else
25848 USE_LIBPSL_TRUE='#'
25849 USE_LIBPSL_FALSE=
25850fi
25851
25852
25853
25854OPT_LIBMETALINK=no
25855
25856
25857# Check whether --with-libmetalink was given.
25858if test "${with_libmetalink+set}" = set; then :
25859 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25860fi
25861
25862
25863if test X"$OPT_LIBMETALINK" != Xno; then
25864
25865 addld=""
25866 addlib=""
25867 addcflags=""
25868 version=""
25869 libmetalinklib=""
25870
25871 PKGTEST="no"
25872 if test "x$OPT_LIBMETALINK" = "xyes"; then
25873 PKGTEST="yes"
25874
25875 if test -n "$PKG_CONFIG"; then
25876 PKGCONFIG="$PKG_CONFIG"
25877 else
25878 if test -n "$ac_tool_prefix"; then
25879 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25880set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25882$as_echo_n "checking for $ac_word... " >&6; }
25883if ${ac_cv_path_PKGCONFIG+:} false; then :
25884 $as_echo_n "(cached) " >&6
25885else
25886 case $PKGCONFIG in
25887 [\\/]* | ?:[\\/]*)
25888 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25889 ;;
25890 *)
25891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25892as_dummy="$PATH:/usr/bin:/usr/local/bin"
25893for as_dir in $as_dummy
25894do
25895 IFS=$as_save_IFS
25896 test -z "$as_dir" && as_dir=.
25897 for ac_exec_ext in '' $ac_executable_extensions; do
25898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25899 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25901 break 2
25902 fi
25903done
25904 done
25905IFS=$as_save_IFS
25906
25907 ;;
25908esac
25909fi
25910PKGCONFIG=$ac_cv_path_PKGCONFIG
25911if test -n "$PKGCONFIG"; then
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25913$as_echo "$PKGCONFIG" >&6; }
25914else
25915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25916$as_echo "no" >&6; }
25917fi
25918
25919
25920fi
25921if test -z "$ac_cv_path_PKGCONFIG"; then
25922 ac_pt_PKGCONFIG=$PKGCONFIG
25923 # Extract the first word of "pkg-config", so it can be a program name with args.
25924set dummy pkg-config; ac_word=$2
25925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25926$as_echo_n "checking for $ac_word... " >&6; }
25927if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25928 $as_echo_n "(cached) " >&6
25929else
25930 case $ac_pt_PKGCONFIG in
25931 [\\/]* | ?:[\\/]*)
25932 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25933 ;;
25934 *)
25935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25936as_dummy="$PATH:/usr/bin:/usr/local/bin"
25937for as_dir in $as_dummy
25938do
25939 IFS=$as_save_IFS
25940 test -z "$as_dir" && as_dir=.
25941 for ac_exec_ext in '' $ac_executable_extensions; do
25942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25943 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25945 break 2
25946 fi
25947done
25948 done
25949IFS=$as_save_IFS
25950
25951 ;;
25952esac
25953fi
25954ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25955if test -n "$ac_pt_PKGCONFIG"; then
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25957$as_echo "$ac_pt_PKGCONFIG" >&6; }
25958else
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25960$as_echo "no" >&6; }
25961fi
25962
25963 if test "x$ac_pt_PKGCONFIG" = x; then
25964 PKGCONFIG="no"
25965 else
25966 case $cross_compiling:$ac_tool_warned in
25967yes:)
25968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25970ac_tool_warned=yes ;;
25971esac
25972 PKGCONFIG=$ac_pt_PKGCONFIG
25973 fi
25974else
25975 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25976fi
25977
25978 fi
25979
25980 if test "x$PKGCONFIG" != "xno"; then
25981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25982$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25983 itexists=`
25984 if test -n ""; then
25985 PKG_CONFIG_LIBDIR=""
25986 export PKG_CONFIG_LIBDIR
25987 fi
25988 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25989
25990 if test -z "$itexists"; then
25991 PKGCONFIG="no"
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25993$as_echo "no" >&6; }
25994 else
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25996$as_echo "found" >&6; }
25997 fi
25998 fi
25999
26000 else
26001 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
26003$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
26004 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
26005 PKGTEST="yes"
26006 fi
26007 if test "$PKGTEST" = "yes"; then
26008
26009 if test -n "$PKG_CONFIG"; then
26010 PKGCONFIG="$PKG_CONFIG"
26011 else
26012 if test -n "$ac_tool_prefix"; then
26013 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26014set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26016$as_echo_n "checking for $ac_word... " >&6; }
26017if ${ac_cv_path_PKGCONFIG+:} false; then :
26018 $as_echo_n "(cached) " >&6
26019else
26020 case $PKGCONFIG in
26021 [\\/]* | ?:[\\/]*)
26022 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26023 ;;
26024 *)
26025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26026as_dummy="$PATH:/usr/bin:/usr/local/bin"
26027for as_dir in $as_dummy
26028do
26029 IFS=$as_save_IFS
26030 test -z "$as_dir" && as_dir=.
26031 for ac_exec_ext in '' $ac_executable_extensions; do
26032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26033 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26035 break 2
26036 fi
26037done
26038 done
26039IFS=$as_save_IFS
26040
26041 ;;
26042esac
26043fi
26044PKGCONFIG=$ac_cv_path_PKGCONFIG
26045if test -n "$PKGCONFIG"; then
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26047$as_echo "$PKGCONFIG" >&6; }
26048else
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26050$as_echo "no" >&6; }
26051fi
26052
26053
26054fi
26055if test -z "$ac_cv_path_PKGCONFIG"; then
26056 ac_pt_PKGCONFIG=$PKGCONFIG
26057 # Extract the first word of "pkg-config", so it can be a program name with args.
26058set dummy pkg-config; ac_word=$2
26059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26060$as_echo_n "checking for $ac_word... " >&6; }
26061if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26062 $as_echo_n "(cached) " >&6
26063else
26064 case $ac_pt_PKGCONFIG in
26065 [\\/]* | ?:[\\/]*)
26066 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26067 ;;
26068 *)
26069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26070as_dummy="$PATH:/usr/bin:/usr/local/bin"
26071for as_dir in $as_dummy
26072do
26073 IFS=$as_save_IFS
26074 test -z "$as_dir" && as_dir=.
26075 for ac_exec_ext in '' $ac_executable_extensions; do
26076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26077 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26079 break 2
26080 fi
26081done
26082 done
26083IFS=$as_save_IFS
26084
26085 ;;
26086esac
26087fi
26088ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26089if test -n "$ac_pt_PKGCONFIG"; then
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26091$as_echo "$ac_pt_PKGCONFIG" >&6; }
26092else
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26094$as_echo "no" >&6; }
26095fi
26096
26097 if test "x$ac_pt_PKGCONFIG" = x; then
26098 PKGCONFIG="no"
26099 else
26100 case $cross_compiling:$ac_tool_warned in
26101yes:)
26102{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26103$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26104ac_tool_warned=yes ;;
26105esac
26106 PKGCONFIG=$ac_pt_PKGCONFIG
26107 fi
26108else
26109 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26110fi
26111
26112 fi
26113
26114 if test "x$PKGCONFIG" != "xno"; then
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26116$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26117 itexists=`
26118 if test -n "$LIBMETALINK_PCDIR"; then
26119 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26120 export PKG_CONFIG_LIBDIR
26121 fi
26122 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26123
26124 if test -z "$itexists"; then
26125 PKGCONFIG="no"
26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26127$as_echo "no" >&6; }
26128 else
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26130$as_echo "found" >&6; }
26131 fi
26132 fi
26133
26134 fi
26135 fi
26136 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26137 addlib=`
26138 if test -n "$LIBMETALINK_PCDIR"; then
26139 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26140 export PKG_CONFIG_LIBDIR
26141 fi
26142 $PKGCONFIG --libs-only-l libmetalink`
26143 addld=`
26144 if test -n "$LIBMETALINK_PCDIR"; then
26145 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26146 export PKG_CONFIG_LIBDIR
26147 fi
26148 $PKGCONFIG --libs-only-L libmetalink`
26149 addcflags=`
26150 if test -n "$LIBMETALINK_PCDIR"; then
26151 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26152 export PKG_CONFIG_LIBDIR
26153 fi
26154 $PKGCONFIG --cflags-only-I libmetalink`
26155 version=`
26156 if test -n "$LIBMETALINK_PCDIR"; then
26157 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26158 export PKG_CONFIG_LIBDIR
26159 fi
26160 $PKGCONFIG --modversion libmetalink`
26161 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26162 fi
26163 if test -n "$addlib"; then
26164
26165 clean_CPPFLAGS="$CPPFLAGS"
26166 clean_LDFLAGS="$LDFLAGS"
26167 clean_LIBS="$LIBS"
26168 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26169 LDFLAGS="$clean_LDFLAGS $addld"
26170 LIBS="$addlib $clean_LIBS"
26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26172$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26174/* end confdefs.h. */
26175
26176
26177# include <metalink/metalink.h>
26178
26179int main (void)
26180{
26181
26182 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26183 return 1;
26184
26185 ;
26186 return 0;
26187}
26188
26189_ACEOF
26190if ac_fn_c_try_link "$LINENO"; then :
26191
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26193$as_echo "yes ($version)" >&6; }
26194 want_metalink="yes"
26195
26196else
26197
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26199$as_echo "no ($version)" >&6; }
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26201$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26202 want_metalink="no"
26203
26204fi
26205rm -f core conftest.err conftest.$ac_objext \
26206 conftest$ac_exeext conftest.$ac_ext
26207 CPPFLAGS="$clean_CPPFLAGS"
26208 LDFLAGS="$clean_LDFLAGS"
26209 LIBS="$clean_LIBS"
26210 if test "$want_metalink" = "yes"; then
26211
26212$as_echo "#define USE_METALINK 1" >>confdefs.h
26213
26214 LIBMETALINK_LIBS=$addlib
26215 LIBMETALINK_LDFLAGS=$addld
26216 LIBMETALINK_CPPFLAGS=$addcflags
26217
26218
26219
26220 curl_mtlnk_msg="enabled"
26221 fi
26222
26223 fi
26224fi
26225
26226
26227OPT_LIBSSH2=off
26228
26229# Check whether --with-libssh2 was given.
26230if test "${with_libssh2+set}" = set; then :
26231 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026232else
26233 OPT_LIBSSH2=no
26234fi
26235
26236
26237
26238OPT_LIBSSH=off
26239
26240# Check whether --with-libssh was given.
26241if test "${with_libssh+set}" = set; then :
26242 withval=$with_libssh; OPT_LIBSSH=$withval
26243else
26244 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026245fi
26246
26247
26248if test X"$OPT_LIBSSH2" != Xno; then
26249 CLEANLDFLAGS="$LDFLAGS"
26250 CLEANCPPFLAGS="$CPPFLAGS"
26251 CLEANLIBS="$LIBS"
26252
26253 case "$OPT_LIBSSH2" in
26254 yes)
26255
26256 if test -n "$PKG_CONFIG"; then
26257 PKGCONFIG="$PKG_CONFIG"
26258 else
26259 if test -n "$ac_tool_prefix"; then
26260 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26261set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26263$as_echo_n "checking for $ac_word... " >&6; }
26264if ${ac_cv_path_PKGCONFIG+:} false; then :
26265 $as_echo_n "(cached) " >&6
26266else
26267 case $PKGCONFIG in
26268 [\\/]* | ?:[\\/]*)
26269 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26270 ;;
26271 *)
26272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26273as_dummy="$PATH:/usr/bin:/usr/local/bin"
26274for as_dir in $as_dummy
26275do
26276 IFS=$as_save_IFS
26277 test -z "$as_dir" && as_dir=.
26278 for ac_exec_ext in '' $ac_executable_extensions; do
26279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26280 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26282 break 2
26283 fi
26284done
26285 done
26286IFS=$as_save_IFS
26287
26288 ;;
26289esac
26290fi
26291PKGCONFIG=$ac_cv_path_PKGCONFIG
26292if test -n "$PKGCONFIG"; then
26293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26294$as_echo "$PKGCONFIG" >&6; }
26295else
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26297$as_echo "no" >&6; }
26298fi
26299
26300
26301fi
26302if test -z "$ac_cv_path_PKGCONFIG"; then
26303 ac_pt_PKGCONFIG=$PKGCONFIG
26304 # Extract the first word of "pkg-config", so it can be a program name with args.
26305set dummy pkg-config; ac_word=$2
26306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26307$as_echo_n "checking for $ac_word... " >&6; }
26308if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26309 $as_echo_n "(cached) " >&6
26310else
26311 case $ac_pt_PKGCONFIG in
26312 [\\/]* | ?:[\\/]*)
26313 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26314 ;;
26315 *)
26316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26317as_dummy="$PATH:/usr/bin:/usr/local/bin"
26318for as_dir in $as_dummy
26319do
26320 IFS=$as_save_IFS
26321 test -z "$as_dir" && as_dir=.
26322 for ac_exec_ext in '' $ac_executable_extensions; do
26323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26324 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26326 break 2
26327 fi
26328done
26329 done
26330IFS=$as_save_IFS
26331
26332 ;;
26333esac
26334fi
26335ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26336if test -n "$ac_pt_PKGCONFIG"; then
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26338$as_echo "$ac_pt_PKGCONFIG" >&6; }
26339else
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26341$as_echo "no" >&6; }
26342fi
26343
26344 if test "x$ac_pt_PKGCONFIG" = x; then
26345 PKGCONFIG="no"
26346 else
26347 case $cross_compiling:$ac_tool_warned in
26348yes:)
26349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26351ac_tool_warned=yes ;;
26352esac
26353 PKGCONFIG=$ac_pt_PKGCONFIG
26354 fi
26355else
26356 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26357fi
26358
26359 fi
26360
26361 if test "x$PKGCONFIG" != "xno"; then
26362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26363$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26364 itexists=`
26365 if test -n ""; then
26366 PKG_CONFIG_LIBDIR=""
26367 export PKG_CONFIG_LIBDIR
26368 fi
26369 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26370
26371 if test -z "$itexists"; then
26372 PKGCONFIG="no"
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26374$as_echo "no" >&6; }
26375 else
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26377$as_echo "found" >&6; }
26378 fi
26379 fi
26380
26381
26382 if test "$PKGCONFIG" != "no" ; then
26383 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26384 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26385 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26386 version=`$PKGCONFIG --modversion libssh2`
26387 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26388 fi
26389
26390 ;;
26391 off)
26392 ;;
26393 *)
26394 PREFIX_SSH2=$OPT_LIBSSH2
26395 ;;
26396 esac
26397
26398 if test -n "$PREFIX_SSH2"; then
26399 LIB_SSH2="-lssh2"
26400 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26401 CPP_SSH2=-I${PREFIX_SSH2}/include
26402 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26403 fi
26404
26405 LDFLAGS="$LDFLAGS $LD_SSH2"
26406 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26407 LIBS="$LIB_SSH2 $LIBS"
26408
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26410$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26411if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26412 $as_echo_n "(cached) " >&6
26413else
26414 ac_check_lib_save_LIBS=$LIBS
26415LIBS="-lssh2 $LIBS"
26416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26417/* end confdefs.h. */
26418
26419
26420#ifdef __cplusplus
26421extern "C"
26422#endif
26423char libssh2_channel_open_ex ();
26424int main (void)
26425{
26426return libssh2_channel_open_ex ();
26427 ;
26428 return 0;
26429}
26430_ACEOF
26431if ac_fn_c_try_link "$LINENO"; then :
26432 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26433else
26434 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26435fi
26436rm -f core conftest.err conftest.$ac_objext \
26437 conftest$ac_exeext conftest.$ac_ext
26438LIBS=$ac_check_lib_save_LIBS
26439fi
26440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26441$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26442if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26443 cat >>confdefs.h <<_ACEOF
26444#define HAVE_LIBSSH2 1
26445_ACEOF
26446
26447 LIBS="-lssh2 $LIBS"
26448
26449fi
26450
26451
26452 for ac_header in libssh2.h
26453do :
26454 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26455if test "x$ac_cv_header_libssh2_h" = xyes; then :
26456 cat >>confdefs.h <<_ACEOF
26457#define HAVE_LIBSSH2_H 1
26458_ACEOF
26459 curl_ssh_msg="enabled (libSSH2)"
26460 LIBSSH2_ENABLED=1
26461
26462$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26463
26464 USE_LIBSSH2=1
26465
26466
26467fi
26468
26469done
26470
26471
26472 if test X"$OPT_LIBSSH2" != Xoff &&
26473 test "$LIBSSH2_ENABLED" != "1"; then
26474 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26475 fi
26476
26477 if test "$LIBSSH2_ENABLED" = "1"; then
26478 if test -n "$DIR_SSH2"; then
26479
26480 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026481 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26482 export CURL_LIBRARY_PATH
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26484$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026485 fi
26486 fi
26487 else
26488 LDFLAGS=$CLEANLDFLAGS
26489 CPPFLAGS=$CLEANCPPFLAGS
26490 LIBS=$CLEANLIBS
26491 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026492elif test X"$OPT_LIBSSH" != Xno; then
26493 CLEANLDFLAGS="$LDFLAGS"
26494 CLEANCPPFLAGS="$CPPFLAGS"
26495 CLEANLIBS="$LIBS"
26496
26497 case "$OPT_LIBSSH" in
26498 yes)
26499
26500 if test -n "$PKG_CONFIG"; then
26501 PKGCONFIG="$PKG_CONFIG"
26502 else
26503 if test -n "$ac_tool_prefix"; then
26504 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26505set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26507$as_echo_n "checking for $ac_word... " >&6; }
26508if ${ac_cv_path_PKGCONFIG+:} false; then :
26509 $as_echo_n "(cached) " >&6
26510else
26511 case $PKGCONFIG in
26512 [\\/]* | ?:[\\/]*)
26513 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26514 ;;
26515 *)
26516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26517as_dummy="$PATH:/usr/bin:/usr/local/bin"
26518for as_dir in $as_dummy
26519do
26520 IFS=$as_save_IFS
26521 test -z "$as_dir" && as_dir=.
26522 for ac_exec_ext in '' $ac_executable_extensions; do
26523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26524 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26526 break 2
26527 fi
26528done
26529 done
26530IFS=$as_save_IFS
26531
26532 ;;
26533esac
26534fi
26535PKGCONFIG=$ac_cv_path_PKGCONFIG
26536if test -n "$PKGCONFIG"; then
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26538$as_echo "$PKGCONFIG" >&6; }
26539else
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26541$as_echo "no" >&6; }
26542fi
26543
26544
26545fi
26546if test -z "$ac_cv_path_PKGCONFIG"; then
26547 ac_pt_PKGCONFIG=$PKGCONFIG
26548 # Extract the first word of "pkg-config", so it can be a program name with args.
26549set dummy pkg-config; ac_word=$2
26550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26551$as_echo_n "checking for $ac_word... " >&6; }
26552if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26553 $as_echo_n "(cached) " >&6
26554else
26555 case $ac_pt_PKGCONFIG in
26556 [\\/]* | ?:[\\/]*)
26557 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26558 ;;
26559 *)
26560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26561as_dummy="$PATH:/usr/bin:/usr/local/bin"
26562for as_dir in $as_dummy
26563do
26564 IFS=$as_save_IFS
26565 test -z "$as_dir" && as_dir=.
26566 for ac_exec_ext in '' $ac_executable_extensions; do
26567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26568 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26570 break 2
26571 fi
26572done
26573 done
26574IFS=$as_save_IFS
26575
26576 ;;
26577esac
26578fi
26579ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26580if test -n "$ac_pt_PKGCONFIG"; then
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26582$as_echo "$ac_pt_PKGCONFIG" >&6; }
26583else
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26585$as_echo "no" >&6; }
26586fi
26587
26588 if test "x$ac_pt_PKGCONFIG" = x; then
26589 PKGCONFIG="no"
26590 else
26591 case $cross_compiling:$ac_tool_warned in
26592yes:)
26593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26595ac_tool_warned=yes ;;
26596esac
26597 PKGCONFIG=$ac_pt_PKGCONFIG
26598 fi
26599else
26600 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26601fi
26602
26603 fi
26604
26605 if test "x$PKGCONFIG" != "xno"; then
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26607$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26608 itexists=`
26609 if test -n ""; then
26610 PKG_CONFIG_LIBDIR=""
26611 export PKG_CONFIG_LIBDIR
26612 fi
26613 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26614
26615 if test -z "$itexists"; then
26616 PKGCONFIG="no"
26617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26618$as_echo "no" >&6; }
26619 else
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26621$as_echo "found" >&6; }
26622 fi
26623 fi
26624
26625
26626 if test "$PKGCONFIG" != "no" ; then
26627 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26628 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26629 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26630 version=`$PKGCONFIG --modversion libssh`
26631 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26632 fi
26633
26634 ;;
26635 off)
26636 ;;
26637 *)
26638 PREFIX_SSH=$OPT_LIBSSH
26639 ;;
26640 esac
26641
26642 if test -n "$PREFIX_SSH"; then
26643 LIB_SSH="-lssh"
26644 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26645 CPP_SSH=-I${PREFIX_SSH}/include
26646 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26647 fi
26648
26649 LDFLAGS="$LDFLAGS $LD_SSH"
26650 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26651 LIBS="$LIB_SSH $LIBS"
26652
26653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26654$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26655if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26656 $as_echo_n "(cached) " >&6
26657else
26658 ac_check_lib_save_LIBS=$LIBS
26659LIBS="-lssh $LIBS"
26660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26661/* end confdefs.h. */
26662
26663
26664#ifdef __cplusplus
26665extern "C"
26666#endif
26667char ssh_new ();
26668int main (void)
26669{
26670return ssh_new ();
26671 ;
26672 return 0;
26673}
26674_ACEOF
26675if ac_fn_c_try_link "$LINENO"; then :
26676 ac_cv_lib_ssh_ssh_new=yes
26677else
26678 ac_cv_lib_ssh_ssh_new=no
26679fi
26680rm -f core conftest.err conftest.$ac_objext \
26681 conftest$ac_exeext conftest.$ac_ext
26682LIBS=$ac_check_lib_save_LIBS
26683fi
26684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26685$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26686if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26687 cat >>confdefs.h <<_ACEOF
26688#define HAVE_LIBSSH 1
26689_ACEOF
26690
26691 LIBS="-lssh $LIBS"
26692
26693fi
26694
26695
26696 for ac_header in libssh/libssh.h
26697do :
26698 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26699if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26700 cat >>confdefs.h <<_ACEOF
26701#define HAVE_LIBSSH_LIBSSH_H 1
26702_ACEOF
26703 curl_ssh_msg="enabled (libSSH)"
26704 LIBSSH_ENABLED=1
26705
26706$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26707
26708 USE_LIBSSH=1
26709
26710
26711fi
26712
26713done
26714
26715
26716 if test X"$OPT_LIBSSH" != Xoff &&
26717 test "$LIBSSH_ENABLED" != "1"; then
26718 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26719 fi
26720
26721 if test "$LIBSSH_ENABLED" = "1"; then
26722 if test -n "$DIR_SSH"; then
26723
26724 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026725 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26726 export CURL_LIBRARY_PATH
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26728$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026729 fi
26730 fi
26731 else
26732 LDFLAGS=$CLEANLDFLAGS
26733 CPPFLAGS=$CLEANCPPFLAGS
26734 LIBS=$CLEANLIBS
26735 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026736fi
26737
26738
26739OPT_LIBRTMP=off
26740
26741# Check whether --with-librtmp was given.
26742if test "${with_librtmp+set}" = set; then :
26743 withval=$with_librtmp; OPT_LIBRTMP=$withval
26744fi
26745
26746
26747if test X"$OPT_LIBRTMP" != Xno; then
26748 CLEANLDFLAGS="$LDFLAGS"
26749 CLEANCPPFLAGS="$CPPFLAGS"
26750 CLEANLIBS="$LIBS"
26751
26752 case "$OPT_LIBRTMP" in
26753 yes)
26754
26755 if test -n "$PKG_CONFIG"; then
26756 PKGCONFIG="$PKG_CONFIG"
26757 else
26758 if test -n "$ac_tool_prefix"; then
26759 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26760set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26762$as_echo_n "checking for $ac_word... " >&6; }
26763if ${ac_cv_path_PKGCONFIG+:} false; then :
26764 $as_echo_n "(cached) " >&6
26765else
26766 case $PKGCONFIG in
26767 [\\/]* | ?:[\\/]*)
26768 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26769 ;;
26770 *)
26771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26772as_dummy="$PATH:/usr/bin:/usr/local/bin"
26773for as_dir in $as_dummy
26774do
26775 IFS=$as_save_IFS
26776 test -z "$as_dir" && as_dir=.
26777 for ac_exec_ext in '' $ac_executable_extensions; do
26778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26779 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26781 break 2
26782 fi
26783done
26784 done
26785IFS=$as_save_IFS
26786
26787 ;;
26788esac
26789fi
26790PKGCONFIG=$ac_cv_path_PKGCONFIG
26791if test -n "$PKGCONFIG"; then
26792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26793$as_echo "$PKGCONFIG" >&6; }
26794else
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26796$as_echo "no" >&6; }
26797fi
26798
26799
26800fi
26801if test -z "$ac_cv_path_PKGCONFIG"; then
26802 ac_pt_PKGCONFIG=$PKGCONFIG
26803 # Extract the first word of "pkg-config", so it can be a program name with args.
26804set dummy pkg-config; ac_word=$2
26805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26806$as_echo_n "checking for $ac_word... " >&6; }
26807if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26808 $as_echo_n "(cached) " >&6
26809else
26810 case $ac_pt_PKGCONFIG in
26811 [\\/]* | ?:[\\/]*)
26812 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26813 ;;
26814 *)
26815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26816as_dummy="$PATH:/usr/bin:/usr/local/bin"
26817for as_dir in $as_dummy
26818do
26819 IFS=$as_save_IFS
26820 test -z "$as_dir" && as_dir=.
26821 for ac_exec_ext in '' $ac_executable_extensions; do
26822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26823 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26825 break 2
26826 fi
26827done
26828 done
26829IFS=$as_save_IFS
26830
26831 ;;
26832esac
26833fi
26834ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26835if test -n "$ac_pt_PKGCONFIG"; then
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26837$as_echo "$ac_pt_PKGCONFIG" >&6; }
26838else
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26840$as_echo "no" >&6; }
26841fi
26842
26843 if test "x$ac_pt_PKGCONFIG" = x; then
26844 PKGCONFIG="no"
26845 else
26846 case $cross_compiling:$ac_tool_warned in
26847yes:)
26848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26850ac_tool_warned=yes ;;
26851esac
26852 PKGCONFIG=$ac_pt_PKGCONFIG
26853 fi
26854else
26855 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26856fi
26857
26858 fi
26859
26860 if test "x$PKGCONFIG" != "xno"; then
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26862$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26863 itexists=`
26864 if test -n ""; then
26865 PKG_CONFIG_LIBDIR=""
26866 export PKG_CONFIG_LIBDIR
26867 fi
26868 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26869
26870 if test -z "$itexists"; then
26871 PKGCONFIG="no"
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26873$as_echo "no" >&6; }
26874 else
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26876$as_echo "found" >&6; }
26877 fi
26878 fi
26879
26880
26881 if test "$PKGCONFIG" != "no" ; then
26882 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26883 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26884 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26885 version=`$PKGCONFIG --modversion librtmp`
26886 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26887 else
26888 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26889 fi
26890
26891 ;;
26892 off)
26893 LIB_RTMP="-lrtmp"
26894 ;;
26895 *)
26896 LIB_RTMP="-lrtmp"
26897 PREFIX_RTMP=$OPT_LIBRTMP
26898 ;;
26899 esac
26900
26901 if test -n "$PREFIX_RTMP"; then
26902 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26903 CPP_RTMP=-I${PREFIX_RTMP}/include
26904 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26905 fi
26906
26907 LDFLAGS="$LDFLAGS $LD_RTMP"
26908 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26909 LIBS="$LIB_RTMP $LIBS"
26910
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26912$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26913if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26914 $as_echo_n "(cached) " >&6
26915else
26916 ac_check_lib_save_LIBS=$LIBS
26917LIBS="-lrtmp $LIBS"
26918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26919/* end confdefs.h. */
26920
26921
26922#ifdef __cplusplus
26923extern "C"
26924#endif
26925char RTMP_Init ();
26926int main (void)
26927{
26928return RTMP_Init ();
26929 ;
26930 return 0;
26931}
26932_ACEOF
26933if ac_fn_c_try_link "$LINENO"; then :
26934 ac_cv_lib_rtmp_RTMP_Init=yes
26935else
26936 ac_cv_lib_rtmp_RTMP_Init=no
26937fi
26938rm -f core conftest.err conftest.$ac_objext \
26939 conftest$ac_exeext conftest.$ac_ext
26940LIBS=$ac_check_lib_save_LIBS
26941fi
26942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26943$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26944if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26945
26946 for ac_header in librtmp/rtmp.h
26947do :
26948 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26949if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26950 cat >>confdefs.h <<_ACEOF
26951#define HAVE_LIBRTMP_RTMP_H 1
26952_ACEOF
26953 curl_rtmp_msg="enabled (librtmp)"
26954 LIBRTMP_ENABLED=1
26955
26956$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26957
26958 USE_LIBRTMP=1
26959
26960
26961fi
26962
26963done
26964
26965
26966else
26967 LDFLAGS=$CLEANLDFLAGS
26968 CPPFLAGS=$CLEANCPPFLAGS
26969 LIBS=$CLEANLIBS
26970
26971fi
26972
26973
26974 if test X"$OPT_LIBRTMP" != Xoff &&
26975 test "$LIBRTMP_ENABLED" != "1"; then
26976 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26977 fi
26978
26979fi
26980
26981
26982versioned_symbols_flavour=
26983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26984$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26985# Check whether --enable-versioned-symbols was given.
26986if test "${enable_versioned_symbols+set}" = set; then :
26987 enableval=$enable_versioned_symbols; case "$enableval" in
26988 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26989$as_echo "yes" >&6; }
26990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26991$as_echo_n "checking if libraries can be versioned... " >&6; }
26992 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26993 if test -z "$GLD"; then
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26995$as_echo "no" >&6; }
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26997$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26998 else
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27000$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010027001 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
27002 versioned_symbols_flavour="MULTISSL_"
27003 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070027004 versioned_symbols_flavour="OPENSSL_"
27005 elif test "x$GNUTLS_ENABLED" = "x1"; then
27006 versioned_symbols_flavour="GNUTLS_"
27007 elif test "x$NSS_ENABLED" = "x1"; then
27008 versioned_symbols_flavour="NSS_"
27009 elif test "x$POLARSSL_ENABLED" = "x1"; then
27010 versioned_symbols_flavour="POLARSSL_"
27011 elif test "x$CYASSL_ENABLED" = "x1"; then
27012 versioned_symbols_flavour="CYASSL_"
27013 elif test "x$AXTLS_ENABLED" = "x1"; then
27014 versioned_symbols_flavour="AXTLS_"
27015 elif test "x$WINSSL_ENABLED" = "x1"; then
27016 versioned_symbols_flavour="WINSSL_"
27017 elif test "x$DARWINSSL_ENABLED" = "x1"; then
27018 versioned_symbols_flavour="DARWINSSL_"
27019 else
27020 versioned_symbols_flavour=""
27021 fi
27022 versioned_symbols="yes"
27023 fi
27024 ;;
27025
27026 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27027$as_echo "no" >&6; }
27028 ;;
27029 esac
27030
27031else
27032
27033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27034$as_echo "no" >&6; }
27035
27036
27037fi
27038
27039
27040CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27041
27042 if test "x$versioned_symbols" = 'xyes'; then
27043 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27044 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27045else
27046 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27047 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27048fi
27049
27050
27051
27052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27053$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27054OPT_WINIDN="default"
27055
27056# Check whether --with-winidn was given.
27057if test "${with_winidn+set}" = set; then :
27058 withval=$with_winidn; OPT_WINIDN=$withval
27059fi
27060
27061case "$OPT_WINIDN" in
27062 no|default)
27063 want_winidn="no"
27064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27065$as_echo "no" >&6; }
27066 ;;
27067 yes)
27068 want_winidn="yes"
27069 want_winidn_path="default"
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27071$as_echo "yes" >&6; }
27072 ;;
27073 *)
27074 want_winidn="yes"
27075 want_winidn_path="$withval"
27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27077$as_echo "yes ($withval)" >&6; }
27078 ;;
27079esac
27080
27081if test "$want_winidn" = "yes"; then
27082 clean_CPPFLAGS="$CPPFLAGS"
27083 clean_LDFLAGS="$LDFLAGS"
27084 clean_LIBS="$LIBS"
27085 WINIDN_LIBS="-lnormaliz"
27086 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27087 #
27088 if test "$want_winidn_path" != "default"; then
27089 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27090 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27091 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27092 fi
27093 #
27094 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27095 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27096 LIBS="$WINIDN_LIBS $LIBS"
27097 #
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27099$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27101/* end confdefs.h. */
27102
27103
27104 #include <windows.h>
27105
27106int main (void)
27107{
27108
27109 IdnToUnicode(0, NULL, 0, NULL, 0);
27110
27111 ;
27112 return 0;
27113}
27114
27115_ACEOF
27116if ac_fn_c_try_link "$LINENO"; then :
27117
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27119$as_echo "yes" >&6; }
27120 tst_links_winidn="yes"
27121
27122else
27123
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27125$as_echo "no" >&6; }
27126 tst_links_winidn="no"
27127
27128fi
27129rm -f core conftest.err conftest.$ac_objext \
27130 conftest$ac_exeext conftest.$ac_ext
27131 #
27132 if test "$tst_links_winidn" = "yes"; then
27133
27134$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27135
27136
27137$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27138
27139 IDN_ENABLED=1
27140
27141 curl_idn_msg="enabled (Windows-native)"
27142 else
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27144$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27145 CPPFLAGS="$clean_CPPFLAGS"
27146 LDFLAGS="$clean_LDFLAGS"
27147 LIBS="$clean_LIBS"
27148 fi
27149fi
27150
27151
27152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27153$as_echo_n "checking whether to build with libidn2... " >&6; }
27154OPT_IDN="default"
27155
27156# Check whether --with-libidn2 was given.
27157if test "${with_libidn2+set}" = set; then :
27158 withval=$with_libidn2; OPT_IDN=$withval
27159fi
27160
27161case "$OPT_IDN" in
27162 no)
27163 want_idn="no"
27164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27165$as_echo "no" >&6; }
27166 ;;
27167 default)
27168 want_idn="yes"
27169 want_idn_path="default"
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27171$as_echo "(assumed) yes" >&6; }
27172 ;;
27173 yes)
27174 want_idn="yes"
27175 want_idn_path="default"
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27177$as_echo "yes" >&6; }
27178 ;;
27179 *)
27180 want_idn="yes"
27181 want_idn_path="$withval"
27182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27183$as_echo "yes ($withval)" >&6; }
27184 ;;
27185esac
27186
27187if test "$want_idn" = "yes"; then
27188 clean_CPPFLAGS="$CPPFLAGS"
27189 clean_LDFLAGS="$LDFLAGS"
27190 clean_LIBS="$LIBS"
27191 PKGCONFIG="no"
27192 #
27193 if test "$want_idn_path" != "default"; then
27194 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27195
27196 if test -n "$PKG_CONFIG"; then
27197 PKGCONFIG="$PKG_CONFIG"
27198 else
27199 if test -n "$ac_tool_prefix"; then
27200 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27201set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27203$as_echo_n "checking for $ac_word... " >&6; }
27204if ${ac_cv_path_PKGCONFIG+:} false; then :
27205 $as_echo_n "(cached) " >&6
27206else
27207 case $PKGCONFIG in
27208 [\\/]* | ?:[\\/]*)
27209 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27210 ;;
27211 *)
27212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27213as_dummy="$PATH:/usr/bin:/usr/local/bin"
27214for as_dir in $as_dummy
27215do
27216 IFS=$as_save_IFS
27217 test -z "$as_dir" && as_dir=.
27218 for ac_exec_ext in '' $ac_executable_extensions; do
27219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27220 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27222 break 2
27223 fi
27224done
27225 done
27226IFS=$as_save_IFS
27227
27228 ;;
27229esac
27230fi
27231PKGCONFIG=$ac_cv_path_PKGCONFIG
27232if test -n "$PKGCONFIG"; then
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27234$as_echo "$PKGCONFIG" >&6; }
27235else
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27237$as_echo "no" >&6; }
27238fi
27239
27240
27241fi
27242if test -z "$ac_cv_path_PKGCONFIG"; then
27243 ac_pt_PKGCONFIG=$PKGCONFIG
27244 # Extract the first word of "pkg-config", so it can be a program name with args.
27245set dummy pkg-config; ac_word=$2
27246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27247$as_echo_n "checking for $ac_word... " >&6; }
27248if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27249 $as_echo_n "(cached) " >&6
27250else
27251 case $ac_pt_PKGCONFIG in
27252 [\\/]* | ?:[\\/]*)
27253 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27254 ;;
27255 *)
27256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27257as_dummy="$PATH:/usr/bin:/usr/local/bin"
27258for as_dir in $as_dummy
27259do
27260 IFS=$as_save_IFS
27261 test -z "$as_dir" && as_dir=.
27262 for ac_exec_ext in '' $ac_executable_extensions; do
27263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27264 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27266 break 2
27267 fi
27268done
27269 done
27270IFS=$as_save_IFS
27271
27272 ;;
27273esac
27274fi
27275ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27276if test -n "$ac_pt_PKGCONFIG"; then
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27278$as_echo "$ac_pt_PKGCONFIG" >&6; }
27279else
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27281$as_echo "no" >&6; }
27282fi
27283
27284 if test "x$ac_pt_PKGCONFIG" = x; then
27285 PKGCONFIG="no"
27286 else
27287 case $cross_compiling:$ac_tool_warned in
27288yes:)
27289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27291ac_tool_warned=yes ;;
27292esac
27293 PKGCONFIG=$ac_pt_PKGCONFIG
27294 fi
27295else
27296 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27297fi
27298
27299 fi
27300
27301 if test "x$PKGCONFIG" != "xno"; then
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27303$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27304 itexists=`
27305 if test -n "$IDN_PCDIR"; then
27306 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27307 export PKG_CONFIG_LIBDIR
27308 fi
27309 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27310
27311 if test -z "$itexists"; then
27312 PKGCONFIG="no"
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27314$as_echo "no" >&6; }
27315 else
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27317$as_echo "found" >&6; }
27318 fi
27319 fi
27320
27321 if test "$PKGCONFIG" != "no"; then
27322 IDN_LIBS=`
27323 if test -n "$IDN_PCDIR"; then
27324 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27325 export PKG_CONFIG_LIBDIR
27326 fi
27327 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27328 IDN_LDFLAGS=`
27329 if test -n "$IDN_PCDIR"; then
27330 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27331 export PKG_CONFIG_LIBDIR
27332 fi
27333 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27334 IDN_CPPFLAGS=`
27335 if test -n "$IDN_PCDIR"; then
27336 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27337 export PKG_CONFIG_LIBDIR
27338 fi
27339 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27340 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27341 else
27342 IDN_LIBS="-lidn2"
27343 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27344 IDN_CPPFLAGS="-I$want_idn_path/include"
27345 IDN_DIR="$want_idn_path/lib$libsuff"
27346 fi
27347 else
27348
27349 if test -n "$PKG_CONFIG"; then
27350 PKGCONFIG="$PKG_CONFIG"
27351 else
27352 if test -n "$ac_tool_prefix"; then
27353 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27354set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27356$as_echo_n "checking for $ac_word... " >&6; }
27357if ${ac_cv_path_PKGCONFIG+:} false; then :
27358 $as_echo_n "(cached) " >&6
27359else
27360 case $PKGCONFIG in
27361 [\\/]* | ?:[\\/]*)
27362 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27363 ;;
27364 *)
27365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27366as_dummy="$PATH:/usr/bin:/usr/local/bin"
27367for as_dir in $as_dummy
27368do
27369 IFS=$as_save_IFS
27370 test -z "$as_dir" && as_dir=.
27371 for ac_exec_ext in '' $ac_executable_extensions; do
27372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27373 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27375 break 2
27376 fi
27377done
27378 done
27379IFS=$as_save_IFS
27380
27381 ;;
27382esac
27383fi
27384PKGCONFIG=$ac_cv_path_PKGCONFIG
27385if test -n "$PKGCONFIG"; then
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27387$as_echo "$PKGCONFIG" >&6; }
27388else
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27390$as_echo "no" >&6; }
27391fi
27392
27393
27394fi
27395if test -z "$ac_cv_path_PKGCONFIG"; then
27396 ac_pt_PKGCONFIG=$PKGCONFIG
27397 # Extract the first word of "pkg-config", so it can be a program name with args.
27398set dummy pkg-config; ac_word=$2
27399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27400$as_echo_n "checking for $ac_word... " >&6; }
27401if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27402 $as_echo_n "(cached) " >&6
27403else
27404 case $ac_pt_PKGCONFIG in
27405 [\\/]* | ?:[\\/]*)
27406 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27407 ;;
27408 *)
27409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27410as_dummy="$PATH:/usr/bin:/usr/local/bin"
27411for as_dir in $as_dummy
27412do
27413 IFS=$as_save_IFS
27414 test -z "$as_dir" && as_dir=.
27415 for ac_exec_ext in '' $ac_executable_extensions; do
27416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27417 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27419 break 2
27420 fi
27421done
27422 done
27423IFS=$as_save_IFS
27424
27425 ;;
27426esac
27427fi
27428ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27429if test -n "$ac_pt_PKGCONFIG"; then
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27431$as_echo "$ac_pt_PKGCONFIG" >&6; }
27432else
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434$as_echo "no" >&6; }
27435fi
27436
27437 if test "x$ac_pt_PKGCONFIG" = x; then
27438 PKGCONFIG="no"
27439 else
27440 case $cross_compiling:$ac_tool_warned in
27441yes:)
27442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27444ac_tool_warned=yes ;;
27445esac
27446 PKGCONFIG=$ac_pt_PKGCONFIG
27447 fi
27448else
27449 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27450fi
27451
27452 fi
27453
27454 if test "x$PKGCONFIG" != "xno"; then
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27456$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27457 itexists=`
27458 if test -n ""; then
27459 PKG_CONFIG_LIBDIR=""
27460 export PKG_CONFIG_LIBDIR
27461 fi
27462 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27463
27464 if test -z "$itexists"; then
27465 PKGCONFIG="no"
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27467$as_echo "no" >&6; }
27468 else
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27470$as_echo "found" >&6; }
27471 fi
27472 fi
27473
27474 if test "$PKGCONFIG" != "no"; then
27475 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27476 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27477 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27478 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27479 else
27480 IDN_LIBS="-lidn2"
27481 fi
27482 fi
27483 #
27484 if test "$PKGCONFIG" != "no"; then
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27486$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27488$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27490$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27491 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27492$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27493 else
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27495$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27497$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27499$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27501$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27502 fi
27503 #
27504 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27505 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27506 LIBS="$IDN_LIBS $LIBS"
27507 #
27508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27509$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27511/* end confdefs.h. */
27512
27513
27514#define idn2_lookup_ul innocuous_idn2_lookup_ul
27515#ifdef __STDC__
27516# include <limits.h>
27517#else
27518# include <assert.h>
27519#endif
27520#undef idn2_lookup_ul
27521#ifdef __cplusplus
27522extern "C"
27523#endif
27524char idn2_lookup_ul ();
27525#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27526choke me
27527#endif
27528
27529int main (void)
27530{
27531return idn2_lookup_ul ();
27532 ;
27533 return 0;
27534}
27535
27536_ACEOF
27537if ac_fn_c_try_link "$LINENO"; then :
27538
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27540$as_echo "yes" >&6; }
27541 tst_links_libidn="yes"
27542
27543else
27544
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27546$as_echo "no" >&6; }
27547 tst_links_libidn="no"
27548
27549fi
27550rm -f core conftest.err conftest.$ac_objext \
27551 conftest$ac_exeext conftest.$ac_ext
27552 #
27553 for ac_header in idn2.h
27554do :
27555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27556ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27558 cat >>confdefs.h <<_ACEOF
27559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27560_ACEOF
27561
27562fi
27563
27564done
27565
27566
27567 if test "$tst_links_libidn" = "yes"; then
27568
27569$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27570
27571
27572 IDN_ENABLED=1
27573
27574 curl_idn_msg="enabled (libidn2)"
27575 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027576 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27577 export CURL_LIBRARY_PATH
27578 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27579$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027580 fi
27581 else
27582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27583$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27584 CPPFLAGS="$clean_CPPFLAGS"
27585 LDFLAGS="$clean_LDFLAGS"
27586 LIBS="$clean_LIBS"
27587 fi
27588fi
27589
27590
27591
27592
27593
27594OPT_H2="yes"
27595
27596if test "x$disable_http" = "xyes"; then
27597 # without HTTP, nghttp2 is no use
27598 OPT_H2="no"
27599fi
27600
27601
27602# Check whether --with-nghttp2 was given.
27603if test "${with_nghttp2+set}" = set; then :
27604 withval=$with_nghttp2; OPT_H2=$withval
27605fi
27606
27607case "$OPT_H2" in
27608 no)
27609 want_h2="no"
27610 ;;
27611 yes)
27612 want_h2="default"
27613 want_h2_path=""
27614 ;;
27615 *)
27616 want_h2="yes"
27617 want_h2_path="$withval/lib/pkgconfig"
27618 ;;
27619esac
27620
27621curl_h2_msg="disabled (--with-nghttp2)"
27622if test X"$want_h2" != Xno; then
27623 CLEANLDFLAGS="$LDFLAGS"
27624 CLEANCPPFLAGS="$CPPFLAGS"
27625 CLEANLIBS="$LIBS"
27626
27627
27628 if test -n "$PKG_CONFIG"; then
27629 PKGCONFIG="$PKG_CONFIG"
27630 else
27631 if test -n "$ac_tool_prefix"; then
27632 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27633set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27635$as_echo_n "checking for $ac_word... " >&6; }
27636if ${ac_cv_path_PKGCONFIG+:} false; then :
27637 $as_echo_n "(cached) " >&6
27638else
27639 case $PKGCONFIG in
27640 [\\/]* | ?:[\\/]*)
27641 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27642 ;;
27643 *)
27644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27645as_dummy="$PATH:/usr/bin:/usr/local/bin"
27646for as_dir in $as_dummy
27647do
27648 IFS=$as_save_IFS
27649 test -z "$as_dir" && as_dir=.
27650 for ac_exec_ext in '' $ac_executable_extensions; do
27651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27652 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27654 break 2
27655 fi
27656done
27657 done
27658IFS=$as_save_IFS
27659
27660 ;;
27661esac
27662fi
27663PKGCONFIG=$ac_cv_path_PKGCONFIG
27664if test -n "$PKGCONFIG"; then
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27666$as_echo "$PKGCONFIG" >&6; }
27667else
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27669$as_echo "no" >&6; }
27670fi
27671
27672
27673fi
27674if test -z "$ac_cv_path_PKGCONFIG"; then
27675 ac_pt_PKGCONFIG=$PKGCONFIG
27676 # Extract the first word of "pkg-config", so it can be a program name with args.
27677set dummy pkg-config; ac_word=$2
27678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27679$as_echo_n "checking for $ac_word... " >&6; }
27680if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27681 $as_echo_n "(cached) " >&6
27682else
27683 case $ac_pt_PKGCONFIG in
27684 [\\/]* | ?:[\\/]*)
27685 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27686 ;;
27687 *)
27688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27689as_dummy="$PATH:/usr/bin:/usr/local/bin"
27690for as_dir in $as_dummy
27691do
27692 IFS=$as_save_IFS
27693 test -z "$as_dir" && as_dir=.
27694 for ac_exec_ext in '' $ac_executable_extensions; do
27695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27696 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27698 break 2
27699 fi
27700done
27701 done
27702IFS=$as_save_IFS
27703
27704 ;;
27705esac
27706fi
27707ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27708if test -n "$ac_pt_PKGCONFIG"; then
27709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27710$as_echo "$ac_pt_PKGCONFIG" >&6; }
27711else
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713$as_echo "no" >&6; }
27714fi
27715
27716 if test "x$ac_pt_PKGCONFIG" = x; then
27717 PKGCONFIG="no"
27718 else
27719 case $cross_compiling:$ac_tool_warned in
27720yes:)
27721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27723ac_tool_warned=yes ;;
27724esac
27725 PKGCONFIG=$ac_pt_PKGCONFIG
27726 fi
27727else
27728 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27729fi
27730
27731 fi
27732
27733 if test "x$PKGCONFIG" != "xno"; then
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27735$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27736 itexists=`
27737 if test -n "$want_h2_path"; then
27738 PKG_CONFIG_LIBDIR="$want_h2_path"
27739 export PKG_CONFIG_LIBDIR
27740 fi
27741 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27742
27743 if test -z "$itexists"; then
27744 PKGCONFIG="no"
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27746$as_echo "no" >&6; }
27747 else
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27749$as_echo "found" >&6; }
27750 fi
27751 fi
27752
27753
27754 if test "$PKGCONFIG" != "no" ; then
27755 LIB_H2=`
27756 if test -n "$want_h2_path"; then
27757 PKG_CONFIG_LIBDIR="$want_h2_path"
27758 export PKG_CONFIG_LIBDIR
27759 fi
27760
27761 $PKGCONFIG --libs-only-l libnghttp2`
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27763$as_echo "$as_me: -l is $LIB_H2" >&6;}
27764
27765 CPP_H2=`
27766 if test -n "$want_h2_path"; then
27767 PKG_CONFIG_LIBDIR="$want_h2_path"
27768 export PKG_CONFIG_LIBDIR
27769 fi
27770 $PKGCONFIG --cflags-only-I libnghttp2`
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27772$as_echo "$as_me: -I is $CPP_H2" >&6;}
27773
27774 LD_H2=`
27775 if test -n "$want_h2_path"; then
27776 PKG_CONFIG_LIBDIR="$want_h2_path"
27777 export PKG_CONFIG_LIBDIR
27778 fi
27779
27780 $PKGCONFIG --libs-only-L libnghttp2`
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27782$as_echo "$as_me: -L is $LD_H2" >&6;}
27783
27784 LDFLAGS="$LDFLAGS $LD_H2"
27785 CPPFLAGS="$CPPFLAGS $CPP_H2"
27786 LIBS="$LIB_H2 $LIBS"
27787
27788 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27789 # >= 1.0.0
27790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27791$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27792if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27793 $as_echo_n "(cached) " >&6
27794else
27795 ac_check_lib_save_LIBS=$LIBS
27796LIBS="-lnghttp2 $LIBS"
27797cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27798/* end confdefs.h. */
27799
27800
27801#ifdef __cplusplus
27802extern "C"
27803#endif
27804char nghttp2_option_set_no_recv_client_magic ();
27805int main (void)
27806{
27807return nghttp2_option_set_no_recv_client_magic ();
27808 ;
27809 return 0;
27810}
27811_ACEOF
27812if ac_fn_c_try_link "$LINENO"; then :
27813 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27814else
27815 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27816fi
27817rm -f core conftest.err conftest.$ac_objext \
27818 conftest$ac_exeext conftest.$ac_ext
27819LIBS=$ac_check_lib_save_LIBS
27820fi
27821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27822$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27823if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27824
27825 for ac_header in nghttp2/nghttp2.h
27826do :
27827 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27828if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27829 cat >>confdefs.h <<_ACEOF
27830#define HAVE_NGHTTP2_NGHTTP2_H 1
27831_ACEOF
27832 curl_h2_msg="enabled (nghttp2)"
27833 NGHTTP2_ENABLED=1
27834
27835$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27836
27837 USE_NGHTTP2=1
27838
27839
27840fi
27841
27842done
27843
27844
27845else
27846 LDFLAGS=$CLEANLDFLAGS
27847 CPPFLAGS=$CLEANCPPFLAGS
27848 LIBS=$CLEANLIBS
27849
27850fi
27851
27852
27853 else
27854 if test X"$want_h2" != Xdefault; then
27855 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27856 fi
27857 fi
27858
27859fi
27860
27861
27862OPT_ZSH_FPATH=default
27863
27864# Check whether --with-zsh-functions-dir was given.
27865if test "${with_zsh_functions_dir+set}" = set; then :
27866 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27867fi
27868
27869case "$OPT_ZSH_FPATH" in
27870 no)
27871 ;;
27872 default|yes)
27873 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27874
27875 ;;
27876 *)
27877 ZSH_FUNCTIONS_DIR="$withval"
27878
27879 ;;
27880esac
27881
27882
27883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27884$as_echo_n "checking for ANSI C header files... " >&6; }
27885if ${ac_cv_header_stdc+:} false; then :
27886 $as_echo_n "(cached) " >&6
27887else
27888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27889/* end confdefs.h. */
27890#include <stdlib.h>
27891#include <stdarg.h>
27892#include <string.h>
27893#include <float.h>
27894
27895int main (void)
27896{
27897
27898 ;
27899 return 0;
27900}
27901_ACEOF
27902if ac_fn_c_try_compile "$LINENO"; then :
27903 ac_cv_header_stdc=yes
27904else
27905 ac_cv_header_stdc=no
27906fi
27907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27908
27909if test $ac_cv_header_stdc = yes; then
27910 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27912/* end confdefs.h. */
27913#include <string.h>
27914
27915_ACEOF
27916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27917 $EGREP "memchr" >/dev/null 2>&1; then :
27918
27919else
27920 ac_cv_header_stdc=no
27921fi
27922rm -f conftest*
27923
27924fi
27925
27926if test $ac_cv_header_stdc = yes; then
27927 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27929/* end confdefs.h. */
27930#include <stdlib.h>
27931
27932_ACEOF
27933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27934 $EGREP "free" >/dev/null 2>&1; then :
27935
27936else
27937 ac_cv_header_stdc=no
27938fi
27939rm -f conftest*
27940
27941fi
27942
27943if test $ac_cv_header_stdc = yes; then
27944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27945 if test "$cross_compiling" = yes; then :
27946 :
27947else
27948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27949/* end confdefs.h. */
27950#include <ctype.h>
27951#include <stdlib.h>
27952#if ((' ' & 0x0FF) == 0x020)
27953# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27954# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27955#else
27956# define ISLOWER(c) \
27957 (('a' <= (c) && (c) <= 'i') \
27958 || ('j' <= (c) && (c) <= 'r') \
27959 || ('s' <= (c) && (c) <= 'z'))
27960# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27961#endif
27962
27963#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27964int
27965main ()
27966{
27967 int i;
27968 for (i = 0; i < 256; i++)
27969 if (XOR (islower (i), ISLOWER (i))
27970 || toupper (i) != TOUPPER (i))
27971 return 2;
27972 return 0;
27973}
27974_ACEOF
27975if ac_fn_c_try_run "$LINENO"; then :
27976
27977else
27978 ac_cv_header_stdc=no
27979fi
27980rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27981 conftest.$ac_objext conftest.beam conftest.$ac_ext
27982fi
27983
27984fi
27985fi
27986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27987$as_echo "$ac_cv_header_stdc" >&6; }
27988if test $ac_cv_header_stdc = yes; then
27989
27990$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27991
27992fi
27993
27994
27995
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27997$as_echo_n "checking for malloc.h... " >&6; }
27998if ${curl_cv_header_malloc_h+:} false; then :
27999 $as_echo_n "(cached) " >&6
28000else
28001
28002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28003/* end confdefs.h. */
28004
28005
28006#include <malloc.h>
28007
28008int main (void)
28009{
28010
28011 void *p = malloc(10);
28012 void *q = calloc(10,10);
28013 free(p);
28014 free(q);
28015
28016 ;
28017 return 0;
28018}
28019
28020_ACEOF
28021if ac_fn_c_try_compile "$LINENO"; then :
28022
28023 curl_cv_header_malloc_h="yes"
28024
28025else
28026
28027 curl_cv_header_malloc_h="no"
28028
28029fi
28030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28031
28032fi
28033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28034$as_echo "$curl_cv_header_malloc_h" >&6; }
28035 if test "$curl_cv_header_malloc_h" = "yes"; then
28036
28037cat >>confdefs.h <<_ACEOF
28038#define HAVE_MALLOC_H 1
28039_ACEOF
28040
28041 #
28042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28043/* end confdefs.h. */
28044
28045
28046#include <stdlib.h>
28047
28048int main (void)
28049{
28050
28051 void *p = malloc(10);
28052 void *q = calloc(10,10);
28053 free(p);
28054 free(q);
28055
28056 ;
28057 return 0;
28058}
28059
28060_ACEOF
28061if ac_fn_c_try_compile "$LINENO"; then :
28062
28063 curl_cv_need_header_malloc_h="no"
28064
28065else
28066
28067 curl_cv_need_header_malloc_h="yes"
28068
28069fi
28070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28071 #
28072 case "$curl_cv_need_header_malloc_h" in
28073 yes)
28074
28075cat >>confdefs.h <<_ACEOF
28076#define NEED_MALLOC_H 1
28077_ACEOF
28078
28079 ;;
28080 esac
28081 fi
28082
28083
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28085$as_echo_n "checking for memory.h... " >&6; }
28086if ${curl_cv_header_memory_h+:} false; then :
28087 $as_echo_n "(cached) " >&6
28088else
28089
28090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28091/* end confdefs.h. */
28092
28093
28094#include <memory.h>
28095
28096int main (void)
28097{
28098
28099 void *p = malloc(10);
28100 void *q = calloc(10,10);
28101 free(p);
28102 free(q);
28103
28104 ;
28105 return 0;
28106}
28107
28108_ACEOF
28109if ac_fn_c_try_compile "$LINENO"; then :
28110
28111 curl_cv_header_memory_h="yes"
28112
28113else
28114
28115 curl_cv_header_memory_h="no"
28116
28117fi
28118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28119
28120fi
28121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28122$as_echo "$curl_cv_header_memory_h" >&6; }
28123 if test "$curl_cv_header_memory_h" = "yes"; then
28124
28125cat >>confdefs.h <<_ACEOF
28126#define HAVE_MEMORY_H 1
28127_ACEOF
28128
28129 #
28130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28131/* end confdefs.h. */
28132
28133
28134#include <stdlib.h>
28135
28136int main (void)
28137{
28138
28139 void *p = malloc(10);
28140 void *q = calloc(10,10);
28141 free(p);
28142 free(q);
28143
28144 ;
28145 return 0;
28146}
28147
28148_ACEOF
28149if ac_fn_c_try_compile "$LINENO"; then :
28150
28151 curl_cv_need_header_memory_h="no"
28152
28153else
28154
28155 curl_cv_need_header_memory_h="yes"
28156
28157fi
28158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28159 #
28160 case "$curl_cv_need_header_memory_h" in
28161 yes)
28162
28163cat >>confdefs.h <<_ACEOF
28164#define NEED_MEMORY_H 1
28165_ACEOF
28166
28167 ;;
28168 esac
28169 fi
28170
28171
28172for ac_header in sys/types.h \
28173 sys/time.h \
28174 sys/select.h \
28175 sys/socket.h \
28176 sys/ioctl.h \
28177 sys/uio.h \
28178 assert.h \
28179 unistd.h \
28180 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028181 arpa/inet.h \
28182 net/if.h \
28183 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028184 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028185 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028186 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028187 netinet/tcp.h \
28188 netdb.h \
28189 sys/sockio.h \
28190 sys/stat.h \
28191 sys/param.h \
28192 termios.h \
28193 termio.h \
28194 sgtty.h \
28195 fcntl.h \
28196 alloca.h \
28197 time.h \
28198 io.h \
28199 pwd.h \
28200 utime.h \
28201 sys/utime.h \
28202 sys/poll.h \
28203 poll.h \
28204 socket.h \
28205 sys/resource.h \
28206 libgen.h \
28207 locale.h \
28208 errno.h \
28209 stdbool.h \
28210 arpa/tftp.h \
28211 sys/filio.h \
28212 sys/wait.h \
28213 setjmp.h
28214do :
28215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28216ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28217#ifdef HAVE_SYS_TYPES_H
28218#include <sys/types.h>
28219#endif
28220#ifdef HAVE_SYS_TIME_H
28221#include <sys/time.h>
28222#endif
28223#ifdef HAVE_SYS_SELECT_H
28224#include <sys/select.h>
28225#endif
28226#ifdef HAVE_SYS_SOCKET_H
28227#include <sys/socket.h>
28228#endif
28229#ifdef HAVE_NETINET_IN_H
28230#include <netinet/in.h>
28231#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028232#ifdef HAVE_NETINET_IN6_H
28233#include <netinet/in6.h>
28234#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028235#ifdef HAVE_SYS_UN_H
28236#include <sys/un.h>
28237#endif
28238
28239
28240"
28241if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28242 cat >>confdefs.h <<_ACEOF
28243#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28244_ACEOF
28245
28246fi
28247
28248done
28249
28250
28251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28252$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28253if ${ac_cv_c_const+:} false; then :
28254 $as_echo_n "(cached) " >&6
28255else
28256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28257/* end confdefs.h. */
28258
28259int main (void)
28260{
28261
28262#ifndef __cplusplus
28263 /* Ultrix mips cc rejects this sort of thing. */
28264 typedef int charset[2];
28265 const charset cs = { 0, 0 };
28266 /* SunOS 4.1.1 cc rejects this. */
28267 char const *const *pcpcc;
28268 char **ppc;
28269 /* NEC SVR4.0.2 mips cc rejects this. */
28270 struct point {int x, y;};
28271 static struct point const zero = {0,0};
28272 /* AIX XL C 1.02.0.0 rejects this.
28273 It does not let you subtract one const X* pointer from another in
28274 an arm of an if-expression whose if-part is not a constant
28275 expression */
28276 const char *g = "string";
28277 pcpcc = &g + (g ? g-g : 0);
28278 /* HPUX 7.0 cc rejects these. */
28279 ++pcpcc;
28280 ppc = (char**) pcpcc;
28281 pcpcc = (char const *const *) ppc;
28282 { /* SCO 3.2v4 cc rejects this sort of thing. */
28283 char tx;
28284 char *t = &tx;
28285 char const *s = 0 ? (char *) 0 : (char const *) 0;
28286
28287 *t++ = 0;
28288 if (s) return 0;
28289 }
28290 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28291 int x[] = {25, 17};
28292 const int *foo = &x[0];
28293 ++foo;
28294 }
28295 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28296 typedef const int *iptr;
28297 iptr p = 0;
28298 ++p;
28299 }
28300 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28301 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28302 struct s { int j; const int *ap[3]; } bx;
28303 struct s *b = &bx; b->j = 5;
28304 }
28305 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28306 const int foo = 10;
28307 if (!foo) return 0;
28308 }
28309 return !cs[0] && !zero.x;
28310#endif
28311
28312 ;
28313 return 0;
28314}
28315_ACEOF
28316if ac_fn_c_try_compile "$LINENO"; then :
28317 ac_cv_c_const=yes
28318else
28319 ac_cv_c_const=no
28320fi
28321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28322fi
28323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28324$as_echo "$ac_cv_c_const" >&6; }
28325if test $ac_cv_c_const = no; then
28326
28327$as_echo "#define const /**/" >>confdefs.h
28328
28329fi
28330
28331
28332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28333$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28334if ${curl_cv_variadic_macros_c99+:} false; then :
28335 $as_echo_n "(cached) " >&6
28336else
28337
28338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28339/* end confdefs.h. */
28340
28341
28342#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28343#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28344 int fun3(int arg1, int arg2, int arg3);
28345 int fun2(int arg1, int arg2);
28346 int fun3(int arg1, int arg2, int arg3)
28347 { return arg1 + arg2 + arg3; }
28348 int fun2(int arg1, int arg2)
28349 { return arg1 + arg2; }
28350
28351int main (void)
28352{
28353
28354 int res3 = c99_vmacro3(1, 2, 3);
28355 int res2 = c99_vmacro2(1, 2);
28356
28357 ;
28358 return 0;
28359}
28360
28361_ACEOF
28362if ac_fn_c_try_compile "$LINENO"; then :
28363
28364 curl_cv_variadic_macros_c99="yes"
28365
28366else
28367
28368 curl_cv_variadic_macros_c99="no"
28369
28370fi
28371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28372
28373fi
28374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28375$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28376 case "$curl_cv_variadic_macros_c99" in
28377 yes)
28378
28379cat >>confdefs.h <<_ACEOF
28380#define HAVE_VARIADIC_MACROS_C99 1
28381_ACEOF
28382
28383 ;;
28384 esac
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28386$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28387if ${curl_cv_variadic_macros_gcc+:} false; then :
28388 $as_echo_n "(cached) " >&6
28389else
28390
28391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28392/* end confdefs.h. */
28393
28394
28395#define gcc_vmacro3(first, args...) fun3(first, args)
28396#define gcc_vmacro2(first, args...) fun2(first, args)
28397 int fun3(int arg1, int arg2, int arg3);
28398 int fun2(int arg1, int arg2);
28399 int fun3(int arg1, int arg2, int arg3)
28400 { return arg1 + arg2 + arg3; }
28401 int fun2(int arg1, int arg2)
28402 { return arg1 + arg2; }
28403
28404int main (void)
28405{
28406
28407 int res3 = gcc_vmacro3(1, 2, 3);
28408 int res2 = gcc_vmacro2(1, 2);
28409
28410 ;
28411 return 0;
28412}
28413
28414_ACEOF
28415if ac_fn_c_try_compile "$LINENO"; then :
28416
28417 curl_cv_variadic_macros_gcc="yes"
28418
28419else
28420
28421 curl_cv_variadic_macros_gcc="no"
28422
28423fi
28424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28425
28426fi
28427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28428$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28429 case "$curl_cv_variadic_macros_gcc" in
28430 yes)
28431
28432cat >>confdefs.h <<_ACEOF
28433#define HAVE_VARIADIC_MACROS_GCC 1
28434_ACEOF
28435
28436 ;;
28437 esac
28438
28439ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28440if test "x$ac_cv_type_size_t" = xyes; then :
28441
28442else
28443
28444cat >>confdefs.h <<_ACEOF
28445#define size_t unsigned int
28446_ACEOF
28447
28448fi
28449
28450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28451$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28452if ${ac_cv_header_time+:} false; then :
28453 $as_echo_n "(cached) " >&6
28454else
28455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28456/* end confdefs.h. */
28457#include <sys/types.h>
28458#include <sys/time.h>
28459#include <time.h>
28460
28461int main (void)
28462{
28463if ((struct tm *) 0)
28464return 0;
28465 ;
28466 return 0;
28467}
28468_ACEOF
28469if ac_fn_c_try_compile "$LINENO"; then :
28470 ac_cv_header_time=yes
28471else
28472 ac_cv_header_time=no
28473fi
28474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28475fi
28476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28477$as_echo "$ac_cv_header_time" >&6; }
28478if test $ac_cv_header_time = yes; then
28479
28480$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28481
28482fi
28483
28484
28485 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28486do :
28487 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28488ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28489if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28490 cat >>confdefs.h <<_ACEOF
28491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28492_ACEOF
28493
28494fi
28495
28496done
28497
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28499$as_echo_n "checking for struct timeval... " >&6; }
28500if ${curl_cv_struct_timeval+:} false; then :
28501 $as_echo_n "(cached) " >&6
28502else
28503
28504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28505/* end confdefs.h. */
28506
28507
28508#undef inline
28509#ifdef HAVE_WINDOWS_H
28510#ifndef WIN32_LEAN_AND_MEAN
28511#define WIN32_LEAN_AND_MEAN
28512#endif
28513#include <windows.h>
28514#ifdef HAVE_WINSOCK2_H
28515#include <winsock2.h>
28516#else
28517#ifdef HAVE_WINSOCK_H
28518#include <winsock.h>
28519#endif
28520#endif
28521#endif
28522#ifdef HAVE_SYS_TYPES_H
28523#include <sys/types.h>
28524#endif
28525#ifdef HAVE_SYS_TIME_H
28526#include <sys/time.h>
28527#ifdef TIME_WITH_SYS_TIME
28528#include <time.h>
28529#endif
28530#else
28531#ifdef HAVE_TIME_H
28532#include <time.h>
28533#endif
28534#endif
28535#ifdef HAVE_SYS_SOCKET_H
28536#include <sys/socket.h>
28537#endif
28538
28539int main (void)
28540{
28541
28542 struct timeval ts;
28543 ts.tv_sec = 0;
28544 ts.tv_usec = 0;
28545
28546 ;
28547 return 0;
28548}
28549
28550_ACEOF
28551if ac_fn_c_try_compile "$LINENO"; then :
28552
28553 curl_cv_struct_timeval="yes"
28554
28555else
28556
28557 curl_cv_struct_timeval="no"
28558
28559fi
28560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28561
28562fi
28563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28564$as_echo "$curl_cv_struct_timeval" >&6; }
28565 case "$curl_cv_struct_timeval" in
28566 yes)
28567
28568cat >>confdefs.h <<_ACEOF
28569#define HAVE_STRUCT_TIMEVAL 1
28570_ACEOF
28571
28572 ;;
28573 esac
28574
28575
28576
28577 if test "x$cross_compiling" != xyes; then
28578
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28580$as_echo_n "checking run-time libs availability... " >&6; }
28581 if test "$cross_compiling" = yes; then :
28582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28584as_fn_error $? "cannot run test program while cross compiling
28585See \`config.log' for more details" "$LINENO" 5; }
28586else
28587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28588/* end confdefs.h. */
28589
28590main()
28591{
28592 return 0;
28593}
28594
28595_ACEOF
28596if ac_fn_c_try_run "$LINENO"; then :
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28598$as_echo "fine" >&6; }
28599else
28600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28601$as_echo "failed" >&6; }
28602 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28603
28604fi
28605rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28606 conftest.$ac_objext conftest.beam conftest.$ac_ext
28607fi
28608
28609
28610 fi
28611
28612
28613# The cast to long int works around a bug in the HP C Compiler
28614# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28615# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28616# This bug is HP SR number 8606223364.
28617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28618$as_echo_n "checking size of size_t... " >&6; }
28619if ${ac_cv_sizeof_size_t+:} false; then :
28620 $as_echo_n "(cached) " >&6
28621else
28622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
28623
28624else
28625 if test "$ac_cv_type_size_t" = yes; then
28626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28628as_fn_error 77 "cannot compute sizeof (size_t)
28629See \`config.log' for more details" "$LINENO" 5; }
28630 else
28631 ac_cv_sizeof_size_t=0
28632 fi
28633fi
28634
28635fi
28636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28637$as_echo "$ac_cv_sizeof_size_t" >&6; }
28638
28639
28640
28641cat >>confdefs.h <<_ACEOF
28642#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28643_ACEOF
28644
28645
28646# The cast to long int works around a bug in the HP C Compiler
28647# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28648# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28649# This bug is HP SR number 8606223364.
28650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28651$as_echo_n "checking size of long... " >&6; }
28652if ${ac_cv_sizeof_long+:} false; then :
28653 $as_echo_n "(cached) " >&6
28654else
28655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28656
28657else
28658 if test "$ac_cv_type_long" = yes; then
28659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28661as_fn_error 77 "cannot compute sizeof (long)
28662See \`config.log' for more details" "$LINENO" 5; }
28663 else
28664 ac_cv_sizeof_long=0
28665 fi
28666fi
28667
28668fi
28669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28670$as_echo "$ac_cv_sizeof_long" >&6; }
28671
28672
28673
28674cat >>confdefs.h <<_ACEOF
28675#define SIZEOF_LONG $ac_cv_sizeof_long
28676_ACEOF
28677
28678
28679# The cast to long int works around a bug in the HP C Compiler
28680# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28681# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28682# This bug is HP SR number 8606223364.
28683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28684$as_echo_n "checking size of int... " >&6; }
28685if ${ac_cv_sizeof_int+:} false; then :
28686 $as_echo_n "(cached) " >&6
28687else
28688 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28689
28690else
28691 if test "$ac_cv_type_int" = yes; then
28692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28694as_fn_error 77 "cannot compute sizeof (int)
28695See \`config.log' for more details" "$LINENO" 5; }
28696 else
28697 ac_cv_sizeof_int=0
28698 fi
28699fi
28700
28701fi
28702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28703$as_echo "$ac_cv_sizeof_int" >&6; }
28704
28705
28706
28707cat >>confdefs.h <<_ACEOF
28708#define SIZEOF_INT $ac_cv_sizeof_int
28709_ACEOF
28710
28711
28712# The cast to long int works around a bug in the HP C Compiler
28713# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28714# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28715# This bug is HP SR number 8606223364.
28716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28717$as_echo_n "checking size of short... " >&6; }
28718if ${ac_cv_sizeof_short+:} false; then :
28719 $as_echo_n "(cached) " >&6
28720else
28721 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28722
28723else
28724 if test "$ac_cv_type_short" = yes; then
28725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28727as_fn_error 77 "cannot compute sizeof (short)
28728See \`config.log' for more details" "$LINENO" 5; }
28729 else
28730 ac_cv_sizeof_short=0
28731 fi
28732fi
28733
28734fi
28735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28736$as_echo "$ac_cv_sizeof_short" >&6; }
28737
28738
28739
28740cat >>confdefs.h <<_ACEOF
28741#define SIZEOF_SHORT $ac_cv_sizeof_short
28742_ACEOF
28743
28744
Elliott Hughes82be86d2017-09-20 17:00:17 -070028745# The cast to long int works around a bug in the HP C Compiler
28746# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28747# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28748# This bug is HP SR number 8606223364.
28749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28750$as_echo_n "checking size of time_t... " >&6; }
28751if ${ac_cv_sizeof_time_t+:} false; then :
28752 $as_echo_n "(cached) " >&6
28753else
28754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28755
28756else
28757 if test "$ac_cv_type_time_t" = yes; then
28758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28759$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28760as_fn_error 77 "cannot compute sizeof (time_t)
28761See \`config.log' for more details" "$LINENO" 5; }
28762 else
28763 ac_cv_sizeof_time_t=0
28764 fi
28765fi
28766
28767fi
28768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28769$as_echo "$ac_cv_sizeof_time_t" >&6; }
28770
28771
28772
28773cat >>confdefs.h <<_ACEOF
28774#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28775_ACEOF
28776
28777
28778# The cast to long int works around a bug in the HP C Compiler
28779# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28780# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28781# This bug is HP SR number 8606223364.
28782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28783$as_echo_n "checking size of off_t... " >&6; }
28784if ${ac_cv_sizeof_off_t+:} false; then :
28785 $as_echo_n "(cached) " >&6
28786else
28787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28788
28789else
28790 if test "$ac_cv_type_off_t" = yes; then
28791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28793as_fn_error 77 "cannot compute sizeof (off_t)
28794See \`config.log' for more details" "$LINENO" 5; }
28795 else
28796 ac_cv_sizeof_off_t=0
28797 fi
28798fi
28799
28800fi
28801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28802$as_echo "$ac_cv_sizeof_off_t" >&6; }
28803
28804
28805
28806cat >>confdefs.h <<_ACEOF
28807#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28808_ACEOF
28809
28810
28811
Alex Deymo486467e2017-12-19 19:04:07 +010028812o=$CPPFLAGS
28813CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28814# The cast to long int works around a bug in the HP C Compiler
28815# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28816# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28817# This bug is HP SR number 8606223364.
28818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28819$as_echo_n "checking size of curl_off_t... " >&6; }
28820if ${ac_cv_sizeof_curl_off_t+:} false; then :
28821 $as_echo_n "(cached) " >&6
28822else
28823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t" "
28824#include <curl/system.h>
28825
28826"; then :
28827
28828else
28829 if test "$ac_cv_type_curl_off_t" = yes; then
28830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28832as_fn_error 77 "cannot compute sizeof (curl_off_t)
28833See \`config.log' for more details" "$LINENO" 5; }
28834 else
28835 ac_cv_sizeof_curl_off_t=0
28836 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070028837fi
28838
Alex Deymo486467e2017-12-19 19:04:07 +010028839fi
28840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28841$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28842
28843
28844
28845cat >>confdefs.h <<_ACEOF
28846#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28847_ACEOF
28848
28849
28850CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028851
28852ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28853if test "x$ac_cv_type_long_long" = xyes; then :
28854
28855$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28856
28857 longlong="yes"
28858
28859fi
28860
28861
28862if test "xyes" = "x$longlong"; then
28863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28864$as_echo_n "checking if numberLL works... " >&6; }
28865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866/* end confdefs.h. */
28867
28868
28869
28870int main (void)
28871{
28872
28873 long long val = 1000LL;
28874
28875 ;
28876 return 0;
28877}
28878
28879_ACEOF
28880if ac_fn_c_try_compile "$LINENO"; then :
28881
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28883$as_echo "yes" >&6; }
28884
28885$as_echo "#define HAVE_LL 1" >>confdefs.h
28886
28887
28888else
28889
28890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28891$as_echo "no" >&6; }
28892
28893fi
28894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28895fi
28896
28897
28898# check for ssize_t
28899ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28900if test "x$ac_cv_type_ssize_t" = xyes; then :
28901
28902else
28903
28904$as_echo "#define ssize_t int" >>confdefs.h
28905
28906fi
28907
28908
28909# check for bool type
28910ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28911#ifdef HAVE_SYS_TYPES_H
28912#include <sys/types.h>
28913#endif
28914#ifdef HAVE_STDBOOL_H
28915#include <stdbool.h>
28916#endif
28917
28918"
28919if test "x$ac_cv_type_bool" = xyes; then :
28920
28921
28922$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28923
28924
28925fi
28926
28927
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028928# check for sa_family_t
28929ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
28930#ifdef HAVE_SYS_SOCKET_H
28931#include <sys/socket.h>
28932#endif
28933
28934"
28935if test "x$ac_cv_type_sa_family_t" = xyes; then :
28936
28937$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
28938
28939else
28940
28941 # The windows name?
28942 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
28943#ifdef HAVE_SYS_SOCKET_H
28944#include <sys/socket.h>
28945#endif
28946
28947"
28948if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
28949
28950$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
28951
28952else
28953
28954$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
28955
28956fi
28957
28958
28959fi
28960
28961
Elliott Hughescac39802018-04-27 16:19:43 -070028962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28963$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070028964
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028965
28966 old=$LD_LIBRARY_PATH
28967 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH
28968 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28970$as_echo "no" >&6; }
28971
28972else
28973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28974/* end confdefs.h. */
28975
Elliott Hughescac39802018-04-27 16:19:43 -070028976 #include <time.h>
28977 #include <limits.h>
28978 time_t t = -1;
28979 return (t > 0);
28980
28981_ACEOF
28982if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28984$as_echo "yes" >&6; }
28985
28986$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28987
28988
28989else
Elliott Hughescac39802018-04-27 16:19:43 -070028990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28991$as_echo "no" >&6; }
28992
28993fi
28994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28995 conftest.$ac_objext conftest.beam conftest.$ac_ext
28996fi
28997
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028998 LD_LIBRARY_PATH=$old # restore
28999
Elliott Hughescac39802018-04-27 16:19:43 -070029000
Elliott Hughes82be86d2017-09-20 17:00:17 -070029001
29002curl_includes_ws2tcpip="\
29003/* includes start */
29004#ifdef HAVE_WINDOWS_H
29005# ifndef WIN32_LEAN_AND_MEAN
29006# define WIN32_LEAN_AND_MEAN
29007# endif
29008# include <windows.h>
29009# ifdef HAVE_WINSOCK2_H
29010# include <winsock2.h>
29011# ifdef HAVE_WS2TCPIP_H
29012# include <ws2tcpip.h>
29013# endif
29014# endif
29015#endif
29016/* includes end */"
29017
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
29019$as_echo_n "checking for windows.h... " >&6; }
29020if ${curl_cv_header_windows_h+:} false; then :
29021 $as_echo_n "(cached) " >&6
29022else
29023
29024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29025/* end confdefs.h. */
29026
29027
29028#undef inline
29029#ifndef WIN32_LEAN_AND_MEAN
29030#define WIN32_LEAN_AND_MEAN
29031#endif
29032#include <windows.h>
29033
29034int main (void)
29035{
29036
29037#if defined(__CYGWIN__) || defined(__CEGCC__)
29038 HAVE_WINDOWS_H shall not be defined.
29039#else
29040 int dummy=2*WINVER;
29041#endif
29042
29043 ;
29044 return 0;
29045}
29046
29047_ACEOF
29048if ac_fn_c_try_compile "$LINENO"; then :
29049
29050 curl_cv_header_windows_h="yes"
29051
29052else
29053
29054 curl_cv_header_windows_h="no"
29055
29056fi
29057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29058
29059fi
29060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
29061$as_echo "$curl_cv_header_windows_h" >&6; }
29062 case "$curl_cv_header_windows_h" in
29063 yes)
29064
29065cat >>confdefs.h <<_ACEOF
29066#define HAVE_WINDOWS_H 1
29067_ACEOF
29068
29069 ;;
29070 esac
29071
29072
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
29074$as_echo_n "checking for winsock2.h... " >&6; }
29075if ${curl_cv_header_winsock2_h+:} false; then :
29076 $as_echo_n "(cached) " >&6
29077else
29078
29079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29080/* end confdefs.h. */
29081
29082
29083#undef inline
29084#ifndef WIN32_LEAN_AND_MEAN
29085#define WIN32_LEAN_AND_MEAN
29086#endif
29087#include <windows.h>
29088#include <winsock2.h>
29089
29090int main (void)
29091{
29092
29093#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29094 HAVE_WINSOCK2_H shall not be defined.
29095#else
29096 int dummy=2*IPPROTO_ESP;
29097#endif
29098
29099 ;
29100 return 0;
29101}
29102
29103_ACEOF
29104if ac_fn_c_try_compile "$LINENO"; then :
29105
29106 curl_cv_header_winsock2_h="yes"
29107
29108else
29109
29110 curl_cv_header_winsock2_h="no"
29111
29112fi
29113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29114
29115fi
29116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
29117$as_echo "$curl_cv_header_winsock2_h" >&6; }
29118 case "$curl_cv_header_winsock2_h" in
29119 yes)
29120
29121cat >>confdefs.h <<_ACEOF
29122#define HAVE_WINSOCK2_H 1
29123_ACEOF
29124
29125 ;;
29126 esac
29127
29128
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
29130$as_echo_n "checking for ws2tcpip.h... " >&6; }
29131if ${curl_cv_header_ws2tcpip_h+:} false; then :
29132 $as_echo_n "(cached) " >&6
29133else
29134
29135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29136/* end confdefs.h. */
29137
29138
29139#undef inline
29140#ifndef WIN32_LEAN_AND_MEAN
29141#define WIN32_LEAN_AND_MEAN
29142#endif
29143#include <windows.h>
29144#include <winsock2.h>
29145#include <ws2tcpip.h>
29146
29147int main (void)
29148{
29149
29150#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29151 HAVE_WS2TCPIP_H shall not be defined.
29152#else
29153 int dummy=2*IP_PKTINFO;
29154#endif
29155
29156 ;
29157 return 0;
29158}
29159
29160_ACEOF
29161if ac_fn_c_try_compile "$LINENO"; then :
29162
29163 curl_cv_header_ws2tcpip_h="yes"
29164
29165else
29166
29167 curl_cv_header_ws2tcpip_h="no"
29168
29169fi
29170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29171
29172fi
29173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
29174$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
29175 case "$curl_cv_header_ws2tcpip_h" in
29176 yes)
29177
29178cat >>confdefs.h <<_ACEOF
29179#define HAVE_WS2TCPIP_H 1
29180_ACEOF
29181
29182 ;;
29183 esac
29184
29185
29186
29187curl_includes_sys_socket="\
29188/* includes start */
29189#ifdef HAVE_SYS_TYPES_H
29190# include <sys/types.h>
29191#endif
29192#ifdef HAVE_SYS_SOCKET_H
29193# include <sys/socket.h>
29194#endif
29195/* includes end */"
29196 for ac_header in sys/types.h sys/socket.h
29197do :
29198 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29199ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
29200"
29201if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29202 cat >>confdefs.h <<_ACEOF
29203#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29204_ACEOF
29205
29206fi
29207
29208done
29209
29210
29211
29212curl_preprocess_callconv="\
29213/* preprocess start */
29214#ifdef HAVE_WINDOWS_H
29215# define FUNCALLCONV __stdcall
29216#else
29217# define FUNCALLCONV
29218#endif
29219/* preprocess end */"
29220
29221
29222 #
29223 #
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
29225$as_echo_n "checking for curl_socklen_t data type... " >&6; }
29226 curl_typeof_curl_socklen_t="unknown"
29227 for arg1 in int SOCKET; do
29228 for arg2 in 'struct sockaddr' void; do
29229 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
29230 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
29231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29232/* end confdefs.h. */
29233
29234
29235 $curl_includes_ws2tcpip
29236 $curl_includes_sys_socket
29237 $curl_preprocess_callconv
29238 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
29239
29240int main (void)
29241{
29242
29243 $t *lenptr = 0;
29244 if(0 != getpeername(0, 0, lenptr))
29245 return 1;
29246
29247 ;
29248 return 0;
29249}
29250
29251_ACEOF
29252if ac_fn_c_try_compile "$LINENO"; then :
29253
29254 curl_typeof_curl_socklen_t="$t"
29255
29256fi
29257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29258 fi
29259 done
29260 done
29261 done
29262 for t in socklen_t int; do
29263 if test "$curl_typeof_curl_socklen_t" = "void"; then
29264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29265/* end confdefs.h. */
29266
29267
29268 $curl_includes_sys_socket
29269 typedef $t curl_socklen_t;
29270
29271int main (void)
29272{
29273
29274 curl_socklen_t dummy;
29275
29276 ;
29277 return 0;
29278}
29279
29280_ACEOF
29281if ac_fn_c_try_compile "$LINENO"; then :
29282
29283 curl_typeof_curl_socklen_t="$t"
29284
29285fi
29286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29287 fi
29288 done
29289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29290$as_echo "$curl_typeof_curl_socklen_t" >&6; }
29291 if test "$curl_typeof_curl_socklen_t" = "void" ||
29292 test "$curl_typeof_curl_socklen_t" = "unknown"; then
29293 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29294 fi
29295 #
29296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29297$as_echo_n "checking size of curl_socklen_t... " >&6; }
29298 curl_sizeof_curl_socklen_t="unknown"
29299 curl_pull_headers_socklen_t="unknown"
29300 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29301 tst_pull_header_checks='none ws2tcpip'
29302 tst_size_checks='4'
29303 else
29304 tst_pull_header_checks='none systypes syssocket'
29305 tst_size_checks='4 8 2'
29306 fi
29307 for tst_size in $tst_size_checks; do
29308 for tst_pull_headers in $tst_pull_header_checks; do
29309 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29310 case $tst_pull_headers in
29311 ws2tcpip)
29312 tmp_includes="$curl_includes_ws2tcpip"
29313 ;;
29314 systypes)
29315 tmp_includes="$curl_includes_sys_types"
29316 ;;
29317 syssocket)
29318 tmp_includes="$curl_includes_sys_socket"
29319 ;;
29320 *)
29321 tmp_includes=""
29322 ;;
29323 esac
29324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29325/* end confdefs.h. */
29326
29327
29328 $tmp_includes
29329 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29330 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29331
29332int main (void)
29333{
29334
29335 curl_socklen_t dummy;
29336
29337 ;
29338 return 0;
29339}
29340
29341_ACEOF
29342if ac_fn_c_try_compile "$LINENO"; then :
29343
29344 curl_sizeof_curl_socklen_t="$tst_size"
29345 curl_pull_headers_socklen_t="$tst_pull_headers"
29346
29347fi
29348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29349 fi
29350 done
29351 done
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29353$as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29354 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29355 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29356 fi
29357 #
29358 case $curl_pull_headers_socklen_t in
29359 ws2tcpip)
29360
29361cat >>confdefs.h <<_EOF
29362#define CURL_PULL_WS2TCPIP_H 1
29363_EOF
29364
29365 ;;
29366 systypes)
29367
29368cat >>confdefs.h <<_EOF
29369#define CURL_PULL_SYS_TYPES_H 1
29370_EOF
29371
29372 ;;
29373 syssocket)
29374
29375cat >>confdefs.h <<_EOF
29376#define CURL_PULL_SYS_TYPES_H 1
29377_EOF
29378
29379
29380cat >>confdefs.h <<_EOF
29381#define CURL_PULL_SYS_SOCKET_H 1
29382_EOF
29383
29384 ;;
29385 esac
29386
29387cat >>confdefs.h <<_EOF
29388#define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29389_EOF
29390
29391
29392cat >>confdefs.h <<_EOF
29393#define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29394_EOF
29395
29396
29397
29398
29399curl_includes_poll="\
29400/* includes start */
29401#ifdef HAVE_SYS_TYPES_H
29402# include <sys/types.h>
29403#endif
29404#ifdef HAVE_POLL_H
29405# include <poll.h>
29406#endif
29407#ifdef HAVE_SYS_POLL_H
29408# include <sys/poll.h>
29409#endif
29410/* includes end */"
29411 for ac_header in sys/types.h poll.h sys/poll.h
29412do :
29413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29414ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29415"
29416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29417 cat >>confdefs.h <<_ACEOF
29418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29419_ACEOF
29420
29421fi
29422
29423done
29424
29425
29426
29427 #
29428 tst_poll_events_macro_defined="unknown"
29429 #
29430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29431/* end confdefs.h. */
29432
29433
29434 $curl_includes_poll
29435
29436int main (void)
29437{
29438
29439#if defined(events) || defined(revents)
29440 return 0;
29441#else
29442 force compilation error
29443#endif
29444
29445 ;
29446 return 0;
29447}
29448
29449_ACEOF
29450if ac_fn_c_try_compile "$LINENO"; then :
29451
29452 tst_poll_events_macro_defined="yes"
29453
29454else
29455
29456 tst_poll_events_macro_defined="no"
29457
29458fi
29459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29460 #
29461 if test "$tst_poll_events_macro_defined" = "yes"; then
29462 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29463
29464cat >>confdefs.h <<_EOF
29465#define CURL_PULL_SYS_POLL_H 1
29466_EOF
29467
29468 fi
29469 fi
29470 #
29471
29472
29473
29474 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29475#undef inline
29476#ifdef HAVE_WINDOWS_H
29477#ifndef WIN32_LEAN_AND_MEAN
29478#define WIN32_LEAN_AND_MEAN
29479#endif
29480#include <windows.h>
29481#ifdef HAVE_WINSOCK2_H
29482#include <winsock2.h>
29483#else
29484#ifdef HAVE_WINSOCK_H
29485#include <winsock.h>
29486#endif
29487#endif
29488#else
29489#ifdef HAVE_SYS_TYPES_H
29490#include <sys/types.h>
29491#endif
29492#ifdef HAVE_SYS_SOCKET_H
29493#include <sys/socket.h>
29494#endif
29495#ifdef HAVE_NETINET_IN_H
29496#include <netinet/in.h>
29497#endif
29498#ifdef HAVE_ARPA_INET_H
29499#include <arpa/inet.h>
29500#endif
29501#endif
29502
29503"
29504if test "x$ac_cv_type_in_addr_t" = xyes; then :
29505
29506else
29507
29508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29509$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29510if ${curl_cv_in_addr_t_equiv+:} false; then :
29511 $as_echo_n "(cached) " >&6
29512else
29513
29514 curl_cv_in_addr_t_equiv="unknown"
29515 for t in "unsigned long" int size_t unsigned long; do
29516 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29518/* end confdefs.h. */
29519
29520
29521#undef inline
29522#ifdef HAVE_WINDOWS_H
29523#ifndef WIN32_LEAN_AND_MEAN
29524#define WIN32_LEAN_AND_MEAN
29525#endif
29526#include <windows.h>
29527#ifdef HAVE_WINSOCK2_H
29528#include <winsock2.h>
29529#else
29530#ifdef HAVE_WINSOCK_H
29531#include <winsock.h>
29532#endif
29533#endif
29534#else
29535#ifdef HAVE_SYS_TYPES_H
29536#include <sys/types.h>
29537#endif
29538#ifdef HAVE_SYS_SOCKET_H
29539#include <sys/socket.h>
29540#endif
29541#ifdef HAVE_NETINET_IN_H
29542#include <netinet/in.h>
29543#endif
29544#ifdef HAVE_ARPA_INET_H
29545#include <arpa/inet.h>
29546#endif
29547#endif
29548
29549int main (void)
29550{
29551
29552 $t data = inet_addr ("1.2.3.4");
29553
29554 ;
29555 return 0;
29556}
29557
29558_ACEOF
29559if ac_fn_c_try_link "$LINENO"; then :
29560
29561 curl_cv_in_addr_t_equiv="$t"
29562
29563fi
29564rm -f core conftest.err conftest.$ac_objext \
29565 conftest$ac_exeext conftest.$ac_ext
29566 fi
29567 done
29568
29569fi
29570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29571$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29572 case "$curl_cv_in_addr_t_equiv" in
29573 unknown)
29574 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29575 ;;
29576 *)
29577
29578cat >>confdefs.h <<_ACEOF
29579#define in_addr_t $curl_cv_in_addr_t_equiv
29580_ACEOF
29581
29582 ;;
29583 esac
29584
29585fi
29586
29587
29588
29589
29590 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29591#undef inline
29592#ifdef HAVE_WINDOWS_H
29593#ifndef WIN32_LEAN_AND_MEAN
29594#define WIN32_LEAN_AND_MEAN
29595#endif
29596#include <windows.h>
29597#ifdef HAVE_WINSOCK2_H
29598#include <winsock2.h>
29599#endif
29600#else
29601#ifdef HAVE_SYS_TYPES_H
29602#include <sys/types.h>
29603#endif
29604#ifdef HAVE_SYS_SOCKET_H
29605#include <sys/socket.h>
29606#endif
29607#ifdef HAVE_NETINET_IN_H
29608#include <netinet/in.h>
29609#endif
29610#ifdef HAVE_ARPA_INET_H
29611#include <arpa/inet.h>
29612#endif
29613#endif
29614
29615"
29616if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29617
29618$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29619
29620fi
29621
29622
29623
29624
29625 for ac_header in signal.h
29626do :
29627 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29628if test "x$ac_cv_header_signal_h" = xyes; then :
29629 cat >>confdefs.h <<_ACEOF
29630#define HAVE_SIGNAL_H 1
29631_ACEOF
29632
29633fi
29634
29635done
29636
29637 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29638#ifdef HAVE_SIGNAL_H
29639#include <signal.h>
29640#endif
29641
29642"
29643if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29644
29645
29646$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29647
29648
29649fi
29650
29651 case "$ac_cv_type_sig_atomic_t" in
29652 yes)
29653 #
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29655$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29657/* end confdefs.h. */
29658
29659
29660#ifdef HAVE_SIGNAL_H
29661#include <signal.h>
29662#endif
29663
29664int main (void)
29665{
29666
29667 static volatile sig_atomic_t dummy = 0;
29668
29669 ;
29670 return 0;
29671}
29672
29673_ACEOF
29674if ac_fn_c_try_link "$LINENO"; then :
29675
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29677$as_echo "no" >&6; }
29678 curl_cv_sig_atomic_t_volatile="no"
29679
29680else
29681
29682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29683$as_echo "yes" >&6; }
29684 curl_cv_sig_atomic_t_volatile="yes"
29685
29686fi
29687rm -f core conftest.err conftest.$ac_objext \
29688 conftest$ac_exeext conftest.$ac_ext
29689 #
29690 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29691
29692$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29693
29694 fi
29695 ;;
29696 esac
29697
29698
29699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29700$as_echo_n "checking return type of signal handlers... " >&6; }
29701if ${ac_cv_type_signal+:} false; then :
29702 $as_echo_n "(cached) " >&6
29703else
29704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29705/* end confdefs.h. */
29706#include <sys/types.h>
29707#include <signal.h>
29708
29709int main (void)
29710{
29711return *(signal (0, 0)) (0) == 1;
29712 ;
29713 return 0;
29714}
29715_ACEOF
29716if ac_fn_c_try_compile "$LINENO"; then :
29717 ac_cv_type_signal=int
29718else
29719 ac_cv_type_signal=void
29720fi
29721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29722fi
29723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29724$as_echo "$ac_cv_type_signal" >&6; }
29725
29726cat >>confdefs.h <<_ACEOF
29727#define RETSIGTYPE $ac_cv_type_signal
29728_ACEOF
29729
29730
29731
29732
29733 for ac_header in sys/select.h sys/socket.h
29734do :
29735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29736ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29737if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29738 cat >>confdefs.h <<_ACEOF
29739#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29740_ACEOF
29741
29742fi
29743
29744done
29745
29746 #
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29748$as_echo_n "checking for select... " >&6; }
29749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29750/* end confdefs.h. */
29751
29752
29753#undef inline
29754#ifdef HAVE_WINDOWS_H
29755#ifndef WIN32_LEAN_AND_MEAN
29756#define WIN32_LEAN_AND_MEAN
29757#endif
29758#include <windows.h>
29759#ifdef HAVE_WINSOCK2_H
29760#include <winsock2.h>
29761#else
29762#ifdef HAVE_WINSOCK_H
29763#include <winsock.h>
29764#endif
29765#endif
29766#endif
29767#ifdef HAVE_SYS_TYPES_H
29768#include <sys/types.h>
29769#endif
29770#ifdef HAVE_SYS_TIME_H
29771#include <sys/time.h>
29772#ifdef TIME_WITH_SYS_TIME
29773#include <time.h>
29774#endif
29775#else
29776#ifdef HAVE_TIME_H
29777#include <time.h>
29778#endif
29779#endif
29780#ifndef HAVE_WINDOWS_H
29781#ifdef HAVE_SYS_SELECT_H
29782#include <sys/select.h>
29783#endif
29784#ifdef HAVE_SYS_SOCKET_H
29785#include <sys/socket.h>
29786#endif
29787#endif
29788
29789int main (void)
29790{
29791
29792 select(0, 0, 0, 0, 0);
29793
29794 ;
29795 return 0;
29796}
29797
29798_ACEOF
29799if ac_fn_c_try_link "$LINENO"; then :
29800
29801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29802$as_echo "yes" >&6; }
29803 curl_cv_select="yes"
29804
29805else
29806
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29808$as_echo "no" >&6; }
29809 curl_cv_select="no"
29810
29811fi
29812rm -f core conftest.err conftest.$ac_objext \
29813 conftest$ac_exeext conftest.$ac_ext
29814 #
29815 if test "$curl_cv_select" = "yes"; then
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29817$as_echo_n "checking types of args and return type for select... " >&6; }
29818if ${curl_cv_func_select_args+:} false; then :
29819 $as_echo_n "(cached) " >&6
29820else
29821
29822 curl_cv_func_select_args="unknown"
29823 for sel_retv in 'int' 'ssize_t'; do
29824 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29825 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29826 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29827 if test "$curl_cv_func_select_args" = "unknown"; then
29828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29829/* end confdefs.h. */
29830
29831
29832#undef inline
29833#ifdef HAVE_WINDOWS_H
29834#ifndef WIN32_LEAN_AND_MEAN
29835#define WIN32_LEAN_AND_MEAN
29836#endif
29837#include <windows.h>
29838#ifdef HAVE_WINSOCK2_H
29839#include <winsock2.h>
29840#else
29841#ifdef HAVE_WINSOCK_H
29842#include <winsock.h>
29843#endif
29844#endif
29845#define SELECTCALLCONV PASCAL
29846#endif
29847#ifdef HAVE_SYS_TYPES_H
29848#include <sys/types.h>
29849#endif
29850#ifdef HAVE_SYS_TIME_H
29851#include <sys/time.h>
29852#ifdef TIME_WITH_SYS_TIME
29853#include <time.h>
29854#endif
29855#else
29856#ifdef HAVE_TIME_H
29857#include <time.h>
29858#endif
29859#endif
29860#ifndef HAVE_WINDOWS_H
29861#ifdef HAVE_SYS_SELECT_H
29862#include <sys/select.h>
29863#endif
29864#ifdef HAVE_SYS_SOCKET_H
29865#include <sys/socket.h>
29866#endif
29867#define SELECTCALLCONV
29868#endif
29869#ifndef HAVE_STRUCT_TIMEVAL
29870 struct timeval {
29871 long tv_sec;
29872 long tv_usec;
29873 };
29874#endif
29875 extern $sel_retv SELECTCALLCONV
29876#ifdef __ANDROID__
29877__attribute__((overloadable))
29878#endif
29879 select($sel_arg1,
29880 $sel_arg234,
29881 $sel_arg234,
29882 $sel_arg234,
29883 $sel_arg5);
29884
29885int main (void)
29886{
29887
29888 $sel_arg1 nfds=0;
29889 $sel_arg234 rfds=0;
29890 $sel_arg234 wfds=0;
29891 $sel_arg234 efds=0;
29892 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29893
29894 ;
29895 return 0;
29896}
29897
29898_ACEOF
29899if ac_fn_c_try_compile "$LINENO"; then :
29900
29901 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29902
29903fi
29904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29905 fi
29906 done
29907 done
29908 done
29909 done
29910
29911fi
29912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29913$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29914 if test "$curl_cv_func_select_args" = "unknown"; then
29915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29916$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29918$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29919 else
29920 select_prev_IFS=$IFS; IFS=','
29921 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29922 IFS=$select_prev_IFS
29923 shift
29924 #
29925 sel_qual_type_arg5=$3
29926 #
29927
29928cat >>confdefs.h <<_ACEOF
29929#define SELECT_TYPE_ARG1 $1
29930_ACEOF
29931
29932
29933cat >>confdefs.h <<_ACEOF
29934#define SELECT_TYPE_ARG234 $2
29935_ACEOF
29936
29937
29938cat >>confdefs.h <<_ACEOF
29939#define SELECT_TYPE_RETV $4
29940_ACEOF
29941
29942 #
29943 prev_sh_opts=$-
29944 #
29945 case $prev_sh_opts in
29946 *f*)
29947 ;;
29948 *)
29949 set -f
29950 ;;
29951 esac
29952 #
29953 case "$sel_qual_type_arg5" in
29954 const*)
29955 sel_qual_arg5=const
29956 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29957 ;;
29958 *)
29959 sel_qual_arg5=
29960 sel_type_arg5=$sel_qual_type_arg5
29961 ;;
29962 esac
29963 #
29964
29965cat >>confdefs.h <<_ACEOF
29966#define SELECT_QUAL_ARG5 $sel_qual_arg5
29967_ACEOF
29968
29969
29970cat >>confdefs.h <<_ACEOF
29971#define SELECT_TYPE_ARG5 $sel_type_arg5
29972_ACEOF
29973
29974 #
29975 case $prev_sh_opts in
29976 *f*)
29977 ;;
29978 *)
29979 set +f
29980 ;;
29981 esac
29982 #
29983
29984cat >>confdefs.h <<_ACEOF
29985#define HAVE_SELECT 1
29986_ACEOF
29987
29988 curl_cv_func_select="yes"
29989 fi
29990 fi
29991
29992
29993
29994 for ac_header in sys/types.h sys/socket.h
29995do :
29996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29997ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29999 cat >>confdefs.h <<_ACEOF
30000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30001_ACEOF
30002
30003fi
30004
30005done
30006
30007 #
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
30009$as_echo_n "checking for recv... " >&6; }
30010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30011/* end confdefs.h. */
30012
30013
30014#undef inline
30015#ifdef HAVE_WINDOWS_H
30016#ifndef WIN32_LEAN_AND_MEAN
30017#define WIN32_LEAN_AND_MEAN
30018#endif
30019#include <windows.h>
30020#ifdef HAVE_WINSOCK2_H
30021#include <winsock2.h>
30022#else
30023#ifdef HAVE_WINSOCK_H
30024#include <winsock.h>
30025#endif
30026#endif
30027#else
30028#ifdef HAVE_SYS_TYPES_H
30029#include <sys/types.h>
30030#endif
30031#ifdef HAVE_SYS_SOCKET_H
30032#include <sys/socket.h>
30033#endif
30034#endif
30035
30036int main (void)
30037{
30038
30039 recv(0, 0, 0, 0);
30040
30041 ;
30042 return 0;
30043}
30044
30045_ACEOF
30046if ac_fn_c_try_link "$LINENO"; then :
30047
30048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30049$as_echo "yes" >&6; }
30050 curl_cv_recv="yes"
30051
30052else
30053
30054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30055$as_echo "no" >&6; }
30056 curl_cv_recv="no"
30057
30058fi
30059rm -f core conftest.err conftest.$ac_objext \
30060 conftest$ac_exeext conftest.$ac_ext
30061 #
30062 if test "$curl_cv_recv" = "yes"; then
30063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
30064$as_echo_n "checking types of args and return type for recv... " >&6; }
30065if ${curl_cv_func_recv_args+:} false; then :
30066 $as_echo_n "(cached) " >&6
30067else
30068
30069 curl_cv_func_recv_args="unknown"
30070 for recv_retv in 'int' 'ssize_t'; do
30071 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30072 for recv_arg2 in 'char *' 'void *'; do
30073 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30074 for recv_arg4 in 'int' 'unsigned int'; do
30075 if test "$curl_cv_func_recv_args" = "unknown"; then
30076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30077/* end confdefs.h. */
30078
30079
30080#undef inline
30081#ifdef HAVE_WINDOWS_H
30082#ifndef WIN32_LEAN_AND_MEAN
30083#define WIN32_LEAN_AND_MEAN
30084#endif
30085#include <windows.h>
30086#ifdef HAVE_WINSOCK2_H
30087#include <winsock2.h>
30088#else
30089#ifdef HAVE_WINSOCK_H
30090#include <winsock.h>
30091#endif
30092#endif
30093#define RECVCALLCONV PASCAL
30094#else
30095#ifdef HAVE_SYS_TYPES_H
30096#include <sys/types.h>
30097#endif
30098#ifdef HAVE_SYS_SOCKET_H
30099#include <sys/socket.h>
30100#endif
30101#define RECVCALLCONV
30102#endif
30103 extern $recv_retv RECVCALLCONV
30104#ifdef __ANDROID__
30105__attribute__((overloadable))
30106#endif
30107 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30108
30109int main (void)
30110{
30111
30112 $recv_arg1 s=0;
30113 $recv_arg2 buf=0;
30114 $recv_arg3 len=0;
30115 $recv_arg4 flags=0;
30116 $recv_retv res = recv(s, buf, len, flags);
30117
30118 ;
30119 return 0;
30120}
30121
30122_ACEOF
30123if ac_fn_c_try_compile "$LINENO"; then :
30124
30125 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30126
30127fi
30128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30129 fi
30130 done
30131 done
30132 done
30133 done
30134 done
30135
30136fi
30137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30138$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30139 if test "$curl_cv_func_recv_args" = "unknown"; then
30140 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30141 else
30142 recv_prev_IFS=$IFS; IFS=','
30143 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30144 IFS=$recv_prev_IFS
30145 shift
30146 #
30147
30148cat >>confdefs.h <<_ACEOF
30149#define RECV_TYPE_ARG1 $1
30150_ACEOF
30151
30152
30153cat >>confdefs.h <<_ACEOF
30154#define RECV_TYPE_ARG2 $2
30155_ACEOF
30156
30157
30158cat >>confdefs.h <<_ACEOF
30159#define RECV_TYPE_ARG3 $3
30160_ACEOF
30161
30162
30163cat >>confdefs.h <<_ACEOF
30164#define RECV_TYPE_ARG4 $4
30165_ACEOF
30166
30167
30168cat >>confdefs.h <<_ACEOF
30169#define RECV_TYPE_RETV $5
30170_ACEOF
30171
30172 #
30173
30174cat >>confdefs.h <<_ACEOF
30175#define HAVE_RECV 1
30176_ACEOF
30177
30178 curl_cv_func_recv="yes"
30179 fi
30180 else
30181 as_fn_error $? "Unable to link function recv" "$LINENO" 5
30182 fi
30183
30184
30185 for ac_header in sys/types.h sys/socket.h
30186do :
30187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30188ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30189if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30190 cat >>confdefs.h <<_ACEOF
30191#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30192_ACEOF
30193
30194fi
30195
30196done
30197
30198 #
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30200$as_echo_n "checking for send... " >&6; }
30201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30202/* end confdefs.h. */
30203
30204
30205#undef inline
30206#ifdef HAVE_WINDOWS_H
30207#ifndef WIN32_LEAN_AND_MEAN
30208#define WIN32_LEAN_AND_MEAN
30209#endif
30210#include <windows.h>
30211#ifdef HAVE_WINSOCK2_H
30212#include <winsock2.h>
30213#else
30214#ifdef HAVE_WINSOCK_H
30215#include <winsock.h>
30216#endif
30217#endif
30218#else
30219#ifdef HAVE_SYS_TYPES_H
30220#include <sys/types.h>
30221#endif
30222#ifdef HAVE_SYS_SOCKET_H
30223#include <sys/socket.h>
30224#endif
30225#endif
30226
30227int main (void)
30228{
30229
30230 send(0, 0, 0, 0);
30231
30232 ;
30233 return 0;
30234}
30235
30236_ACEOF
30237if ac_fn_c_try_link "$LINENO"; then :
30238
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30240$as_echo "yes" >&6; }
30241 curl_cv_send="yes"
30242
30243else
30244
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30246$as_echo "no" >&6; }
30247 curl_cv_send="no"
30248
30249fi
30250rm -f core conftest.err conftest.$ac_objext \
30251 conftest$ac_exeext conftest.$ac_ext
30252 #
30253 if test "$curl_cv_send" = "yes"; then
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30255$as_echo_n "checking types of args and return type for send... " >&6; }
30256if ${curl_cv_func_send_args+:} false; then :
30257 $as_echo_n "(cached) " >&6
30258else
30259
30260 curl_cv_func_send_args="unknown"
30261 for send_retv in 'int' 'ssize_t'; do
30262 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30263 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30264 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30265 for send_arg4 in 'int' 'unsigned int'; do
30266 if test "$curl_cv_func_send_args" = "unknown"; then
30267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30268/* end confdefs.h. */
30269
30270
30271#undef inline
30272#ifdef HAVE_WINDOWS_H
30273#ifndef WIN32_LEAN_AND_MEAN
30274#define WIN32_LEAN_AND_MEAN
30275#endif
30276#include <windows.h>
30277#ifdef HAVE_WINSOCK2_H
30278#include <winsock2.h>
30279#else
30280#ifdef HAVE_WINSOCK_H
30281#include <winsock.h>
30282#endif
30283#endif
30284#define SENDCALLCONV PASCAL
30285#else
30286#ifdef HAVE_SYS_TYPES_H
30287#include <sys/types.h>
30288#endif
30289#ifdef HAVE_SYS_SOCKET_H
30290#include <sys/socket.h>
30291#endif
30292#define SENDCALLCONV
30293#endif
30294 extern $send_retv SENDCALLCONV
30295#ifdef __ANDROID__
30296__attribute__((overloadable))
30297#endif
30298 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30299
30300int main (void)
30301{
30302
30303 $send_arg1 s=0;
30304 $send_arg3 len=0;
30305 $send_arg4 flags=0;
30306 $send_retv res = send(s, 0, len, flags);
30307
30308 ;
30309 return 0;
30310}
30311
30312_ACEOF
30313if ac_fn_c_try_compile "$LINENO"; then :
30314
30315 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30316
30317fi
30318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30319 fi
30320 done
30321 done
30322 done
30323 done
30324 done
30325
30326fi
30327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30328$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30329 if test "$curl_cv_func_send_args" = "unknown"; then
30330 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30331 else
30332 send_prev_IFS=$IFS; IFS=','
30333 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30334 IFS=$send_prev_IFS
30335 shift
30336 #
30337 send_qual_type_arg2=$2
30338 #
30339
30340cat >>confdefs.h <<_ACEOF
30341#define SEND_TYPE_ARG1 $1
30342_ACEOF
30343
30344
30345cat >>confdefs.h <<_ACEOF
30346#define SEND_TYPE_ARG3 $3
30347_ACEOF
30348
30349
30350cat >>confdefs.h <<_ACEOF
30351#define SEND_TYPE_ARG4 $4
30352_ACEOF
30353
30354
30355cat >>confdefs.h <<_ACEOF
30356#define SEND_TYPE_RETV $5
30357_ACEOF
30358
30359 #
30360 prev_sh_opts=$-
30361 #
30362 case $prev_sh_opts in
30363 *f*)
30364 ;;
30365 *)
30366 set -f
30367 ;;
30368 esac
30369 #
30370 case "$send_qual_type_arg2" in
30371 const*)
30372 send_qual_arg2=const
30373 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30374 ;;
30375 *)
30376 send_qual_arg2=
30377 send_type_arg2=$send_qual_type_arg2
30378 ;;
30379 esac
30380 #
30381
30382cat >>confdefs.h <<_ACEOF
30383#define SEND_QUAL_ARG2 $send_qual_arg2
30384_ACEOF
30385
30386
30387cat >>confdefs.h <<_ACEOF
30388#define SEND_TYPE_ARG2 $send_type_arg2
30389_ACEOF
30390
30391 #
30392 case $prev_sh_opts in
30393 *f*)
30394 ;;
30395 *)
30396 set +f
30397 ;;
30398 esac
30399 #
30400
30401cat >>confdefs.h <<_ACEOF
30402#define HAVE_SEND 1
30403_ACEOF
30404
30405 curl_cv_func_send="yes"
30406 fi
30407 else
30408 as_fn_error $? "Unable to link function send" "$LINENO" 5
30409 fi
30410
30411
30412 for ac_header in sys/types.h sys/socket.h
30413do :
30414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30415ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30417 cat >>confdefs.h <<_ACEOF
30418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30419_ACEOF
30420
30421fi
30422
30423done
30424
30425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30426$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30427if ${curl_cv_msg_nosignal+:} false; then :
30428 $as_echo_n "(cached) " >&6
30429else
30430
30431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30432/* end confdefs.h. */
30433
30434
30435#undef inline
30436#ifdef HAVE_WINDOWS_H
30437#ifndef WIN32_LEAN_AND_MEAN
30438#define WIN32_LEAN_AND_MEAN
30439#endif
30440#include <windows.h>
30441#ifdef HAVE_WINSOCK2_H
30442#include <winsock2.h>
30443#else
30444#ifdef HAVE_WINSOCK_H
30445#include <winsock.h>
30446#endif
30447#endif
30448#else
30449#ifdef HAVE_SYS_TYPES_H
30450#include <sys/types.h>
30451#endif
30452#ifdef HAVE_SYS_SOCKET_H
30453#include <sys/socket.h>
30454#endif
30455#endif
30456
30457int main (void)
30458{
30459
30460 int flag=MSG_NOSIGNAL;
30461
30462 ;
30463 return 0;
30464}
30465
30466_ACEOF
30467if ac_fn_c_try_compile "$LINENO"; then :
30468
30469 curl_cv_msg_nosignal="yes"
30470
30471else
30472
30473 curl_cv_msg_nosignal="no"
30474
30475fi
30476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30477
30478fi
30479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30480$as_echo "$curl_cv_msg_nosignal" >&6; }
30481 case "$curl_cv_msg_nosignal" in
30482 yes)
30483
30484cat >>confdefs.h <<_ACEOF
30485#define HAVE_MSG_NOSIGNAL 1
30486_ACEOF
30487
30488 ;;
30489 esac
30490
30491
30492
30493curl_includes_unistd="\
30494/* includes start */
30495#ifdef HAVE_SYS_TYPES_H
30496# include <sys/types.h>
30497#endif
30498#ifdef HAVE_UNISTD_H
30499# include <unistd.h>
30500#endif
30501/* includes end */"
30502 for ac_header in sys/types.h unistd.h
30503do :
30504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30505ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30506"
30507if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30508 cat >>confdefs.h <<_ACEOF
30509#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30510_ACEOF
30511
30512fi
30513
30514done
30515
30516
30517
30518 #
30519 tst_links_alarm="unknown"
30520 tst_proto_alarm="unknown"
30521 tst_compi_alarm="unknown"
30522 tst_allow_alarm="unknown"
30523 #
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30525$as_echo_n "checking if alarm can be linked... " >&6; }
30526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30527/* end confdefs.h. */
30528
30529
30530#define alarm innocuous_alarm
30531#ifdef __STDC__
30532# include <limits.h>
30533#else
30534# include <assert.h>
30535#endif
30536#undef alarm
30537#ifdef __cplusplus
30538extern "C"
30539#endif
30540char alarm ();
30541#if defined __stub_alarm || defined __stub___alarm
30542choke me
30543#endif
30544
30545int main (void)
30546{
30547return alarm ();
30548 ;
30549 return 0;
30550}
30551
30552_ACEOF
30553if ac_fn_c_try_link "$LINENO"; then :
30554
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30556$as_echo "yes" >&6; }
30557 tst_links_alarm="yes"
30558
30559else
30560
30561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30562$as_echo "no" >&6; }
30563 tst_links_alarm="no"
30564
30565fi
30566rm -f core conftest.err conftest.$ac_objext \
30567 conftest$ac_exeext conftest.$ac_ext
30568 #
30569 if test "$tst_links_alarm" = "yes"; then
30570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30571$as_echo_n "checking if alarm is prototyped... " >&6; }
30572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30573/* end confdefs.h. */
30574
30575 $curl_includes_unistd
30576
30577_ACEOF
30578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30579 $EGREP "alarm" >/dev/null 2>&1; then :
30580
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30582$as_echo "yes" >&6; }
30583 tst_proto_alarm="yes"
30584
30585else
30586
30587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30588$as_echo "no" >&6; }
30589 tst_proto_alarm="no"
30590
30591fi
30592rm -f conftest*
30593
30594 fi
30595 #
30596 if test "$tst_proto_alarm" = "yes"; then
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30598$as_echo_n "checking if alarm is compilable... " >&6; }
30599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30600/* end confdefs.h. */
30601
30602
30603 $curl_includes_unistd
30604
30605int main (void)
30606{
30607
30608 if(0 != alarm(0))
30609 return 1;
30610
30611 ;
30612 return 0;
30613}
30614
30615_ACEOF
30616if ac_fn_c_try_compile "$LINENO"; then :
30617
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30619$as_echo "yes" >&6; }
30620 tst_compi_alarm="yes"
30621
30622else
30623
30624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30625$as_echo "no" >&6; }
30626 tst_compi_alarm="no"
30627
30628fi
30629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30630 fi
30631 #
30632 if test "$tst_compi_alarm" = "yes"; then
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30634$as_echo_n "checking if alarm usage allowed... " >&6; }
30635 if test "x$curl_disallow_alarm" != "xyes"; then
30636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30637$as_echo "yes" >&6; }
30638 tst_allow_alarm="yes"
30639 else
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30641$as_echo "no" >&6; }
30642 tst_allow_alarm="no"
30643 fi
30644 fi
30645 #
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30647$as_echo_n "checking if alarm might be used... " >&6; }
30648 if test "$tst_links_alarm" = "yes" &&
30649 test "$tst_proto_alarm" = "yes" &&
30650 test "$tst_compi_alarm" = "yes" &&
30651 test "$tst_allow_alarm" = "yes"; then
30652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30653$as_echo "yes" >&6; }
30654
30655cat >>confdefs.h <<_ACEOF
30656#define HAVE_ALARM 1
30657_ACEOF
30658
30659 curl_cv_func_alarm="yes"
30660 else
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30662$as_echo "no" >&6; }
30663 curl_cv_func_alarm="no"
30664 fi
30665
30666
30667curl_includes_string="\
30668/* includes start */
30669#ifdef HAVE_SYS_TYPES_H
30670# include <sys/types.h>
30671#endif
30672#ifdef HAVE_STRING_H
30673# include <string.h>
30674#endif
30675#ifdef HAVE_STRINGS_H
30676# include <strings.h>
30677#endif
30678/* includes end */"
30679 for ac_header in sys/types.h string.h strings.h
30680do :
30681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30683"
30684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30685 cat >>confdefs.h <<_ACEOF
30686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30687_ACEOF
30688
30689fi
30690
30691done
30692
30693
30694
30695curl_includes_libgen="\
30696/* includes start */
30697#ifdef HAVE_SYS_TYPES_H
30698# include <sys/types.h>
30699#endif
30700#ifdef HAVE_LIBGEN_H
30701# include <libgen.h>
30702#endif
30703/* includes end */"
30704 for ac_header in sys/types.h libgen.h
30705do :
30706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30707ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30708"
30709if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30710 cat >>confdefs.h <<_ACEOF
30711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30712_ACEOF
30713
30714fi
30715
30716done
30717
30718
30719
30720 #
30721 tst_links_basename="unknown"
30722 tst_proto_basename="unknown"
30723 tst_compi_basename="unknown"
30724 tst_allow_basename="unknown"
30725 #
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30727$as_echo_n "checking if basename can be linked... " >&6; }
30728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30729/* end confdefs.h. */
30730
30731
30732#define basename innocuous_basename
30733#ifdef __STDC__
30734# include <limits.h>
30735#else
30736# include <assert.h>
30737#endif
30738#undef basename
30739#ifdef __cplusplus
30740extern "C"
30741#endif
30742char basename ();
30743#if defined __stub_basename || defined __stub___basename
30744choke me
30745#endif
30746
30747int main (void)
30748{
30749return basename ();
30750 ;
30751 return 0;
30752}
30753
30754_ACEOF
30755if ac_fn_c_try_link "$LINENO"; then :
30756
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30758$as_echo "yes" >&6; }
30759 tst_links_basename="yes"
30760
30761else
30762
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30764$as_echo "no" >&6; }
30765 tst_links_basename="no"
30766
30767fi
30768rm -f core conftest.err conftest.$ac_objext \
30769 conftest$ac_exeext conftest.$ac_ext
30770 #
30771 if test "$tst_links_basename" = "yes"; then
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30773$as_echo_n "checking if basename is prototyped... " >&6; }
30774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30775/* end confdefs.h. */
30776
30777 $curl_includes_string
30778 $curl_includes_libgen
30779 $curl_includes_unistd
30780
30781_ACEOF
30782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30783 $EGREP "basename" >/dev/null 2>&1; then :
30784
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30786$as_echo "yes" >&6; }
30787 tst_proto_basename="yes"
30788
30789else
30790
30791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30792$as_echo "no" >&6; }
30793 tst_proto_basename="no"
30794
30795fi
30796rm -f conftest*
30797
30798 fi
30799 #
30800 if test "$tst_proto_basename" = "yes"; then
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30802$as_echo_n "checking if basename is compilable... " >&6; }
30803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30804/* end confdefs.h. */
30805
30806
30807 $curl_includes_string
30808 $curl_includes_libgen
30809 $curl_includes_unistd
30810
30811int main (void)
30812{
30813
30814 if(0 != basename(0))
30815 return 1;
30816
30817 ;
30818 return 0;
30819}
30820
30821_ACEOF
30822if ac_fn_c_try_compile "$LINENO"; then :
30823
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30825$as_echo "yes" >&6; }
30826 tst_compi_basename="yes"
30827
30828else
30829
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30831$as_echo "no" >&6; }
30832 tst_compi_basename="no"
30833
30834fi
30835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30836 fi
30837 #
30838 if test "$tst_compi_basename" = "yes"; then
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30840$as_echo_n "checking if basename usage allowed... " >&6; }
30841 if test "x$curl_disallow_basename" != "xyes"; then
30842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30843$as_echo "yes" >&6; }
30844 tst_allow_basename="yes"
30845 else
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30847$as_echo "no" >&6; }
30848 tst_allow_basename="no"
30849 fi
30850 fi
30851 #
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30853$as_echo_n "checking if basename might be used... " >&6; }
30854 if test "$tst_links_basename" = "yes" &&
30855 test "$tst_proto_basename" = "yes" &&
30856 test "$tst_compi_basename" = "yes" &&
30857 test "$tst_allow_basename" = "yes"; then
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30859$as_echo "yes" >&6; }
30860
30861cat >>confdefs.h <<_ACEOF
30862#define HAVE_BASENAME 1
30863_ACEOF
30864
30865 curl_cv_func_basename="yes"
30866 else
30867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30868$as_echo "no" >&6; }
30869 curl_cv_func_basename="no"
30870 fi
30871
30872
30873curl_includes_socket="\
30874/* includes start */
30875#ifdef HAVE_SYS_TYPES_H
30876# include <sys/types.h>
30877#endif
30878#ifdef HAVE_SOCKET_H
30879# include <socket.h>
30880#endif
30881/* includes end */"
30882 for ac_header in sys/types.h socket.h
30883do :
30884 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30885ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30886"
30887if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30888 cat >>confdefs.h <<_ACEOF
30889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30890_ACEOF
30891
30892fi
30893
30894done
30895
30896
30897
30898 #
30899 tst_links_closesocket="unknown"
30900 tst_proto_closesocket="unknown"
30901 tst_compi_closesocket="unknown"
30902 tst_allow_closesocket="unknown"
30903 #
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30905$as_echo_n "checking if closesocket can be linked... " >&6; }
30906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30907/* end confdefs.h. */
30908
30909
30910 $curl_includes_winsock2
30911 $curl_includes_socket
30912
30913int main (void)
30914{
30915
30916 if(0 != closesocket(0))
30917 return 1;
30918
30919 ;
30920 return 0;
30921}
30922
30923_ACEOF
30924if ac_fn_c_try_link "$LINENO"; then :
30925
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30927$as_echo "yes" >&6; }
30928 tst_links_closesocket="yes"
30929
30930else
30931
30932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30933$as_echo "no" >&6; }
30934 tst_links_closesocket="no"
30935
30936fi
30937rm -f core conftest.err conftest.$ac_objext \
30938 conftest$ac_exeext conftest.$ac_ext
30939 #
30940 if test "$tst_links_closesocket" = "yes"; then
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30942$as_echo_n "checking if closesocket is prototyped... " >&6; }
30943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30944/* end confdefs.h. */
30945
30946 $curl_includes_winsock2
30947 $curl_includes_socket
30948
30949_ACEOF
30950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30951 $EGREP "closesocket" >/dev/null 2>&1; then :
30952
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30954$as_echo "yes" >&6; }
30955 tst_proto_closesocket="yes"
30956
30957else
30958
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30960$as_echo "no" >&6; }
30961 tst_proto_closesocket="no"
30962
30963fi
30964rm -f conftest*
30965
30966 fi
30967 #
30968 if test "$tst_proto_closesocket" = "yes"; then
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30970$as_echo_n "checking if closesocket is compilable... " >&6; }
30971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30972/* end confdefs.h. */
30973
30974
30975 $curl_includes_winsock2
30976 $curl_includes_socket
30977
30978int main (void)
30979{
30980
30981 if(0 != closesocket(0))
30982 return 1;
30983
30984 ;
30985 return 0;
30986}
30987
30988_ACEOF
30989if ac_fn_c_try_compile "$LINENO"; then :
30990
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30992$as_echo "yes" >&6; }
30993 tst_compi_closesocket="yes"
30994
30995else
30996
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30998$as_echo "no" >&6; }
30999 tst_compi_closesocket="no"
31000
31001fi
31002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31003 fi
31004 #
31005 if test "$tst_compi_closesocket" = "yes"; then
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
31007$as_echo_n "checking if closesocket usage allowed... " >&6; }
31008 if test "x$curl_disallow_closesocket" != "xyes"; then
31009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31010$as_echo "yes" >&6; }
31011 tst_allow_closesocket="yes"
31012 else
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31014$as_echo "no" >&6; }
31015 tst_allow_closesocket="no"
31016 fi
31017 fi
31018 #
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
31020$as_echo_n "checking if closesocket might be used... " >&6; }
31021 if test "$tst_links_closesocket" = "yes" &&
31022 test "$tst_proto_closesocket" = "yes" &&
31023 test "$tst_compi_closesocket" = "yes" &&
31024 test "$tst_allow_closesocket" = "yes"; then
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31026$as_echo "yes" >&6; }
31027
31028cat >>confdefs.h <<_ACEOF
31029#define HAVE_CLOSESOCKET 1
31030_ACEOF
31031
31032 curl_cv_func_closesocket="yes"
31033 else
31034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31035$as_echo "no" >&6; }
31036 curl_cv_func_closesocket="no"
31037 fi
31038
31039
31040 #
31041 tst_links_closesocket_camel="unknown"
31042 tst_proto_closesocket_camel="unknown"
31043 tst_compi_closesocket_camel="unknown"
31044 tst_allow_closesocket_camel="unknown"
31045 #
31046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
31047$as_echo_n "checking if CloseSocket can be linked... " >&6; }
31048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31049/* end confdefs.h. */
31050
31051
31052 $curl_includes_sys_socket
31053
31054int main (void)
31055{
31056
31057 if(0 != CloseSocket(0))
31058 return 1;
31059
31060 ;
31061 return 0;
31062}
31063
31064_ACEOF
31065if ac_fn_c_try_link "$LINENO"; then :
31066
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31068$as_echo "yes" >&6; }
31069 tst_links_closesocket_camel="yes"
31070
31071else
31072
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31074$as_echo "no" >&6; }
31075 tst_links_closesocket_camel="no"
31076
31077fi
31078rm -f core conftest.err conftest.$ac_objext \
31079 conftest$ac_exeext conftest.$ac_ext
31080 #
31081 if test "$tst_links_closesocket_camel" = "yes"; then
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
31083$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
31084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31085/* end confdefs.h. */
31086
31087 $curl_includes_sys_socket
31088
31089_ACEOF
31090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31091 $EGREP "CloseSocket" >/dev/null 2>&1; then :
31092
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31094$as_echo "yes" >&6; }
31095 tst_proto_closesocket_camel="yes"
31096
31097else
31098
31099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31100$as_echo "no" >&6; }
31101 tst_proto_closesocket_camel="no"
31102
31103fi
31104rm -f conftest*
31105
31106 fi
31107 #
31108 if test "$tst_proto_closesocket_camel" = "yes"; then
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31110$as_echo_n "checking if CloseSocket is compilable... " >&6; }
31111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31112/* end confdefs.h. */
31113
31114
31115 $curl_includes_sys_socket
31116
31117int main (void)
31118{
31119
31120 if(0 != CloseSocket(0))
31121 return 1;
31122
31123 ;
31124 return 0;
31125}
31126
31127_ACEOF
31128if ac_fn_c_try_compile "$LINENO"; then :
31129
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31131$as_echo "yes" >&6; }
31132 tst_compi_closesocket_camel="yes"
31133
31134else
31135
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137$as_echo "no" >&6; }
31138 tst_compi_closesocket_camel="no"
31139
31140fi
31141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31142 fi
31143 #
31144 if test "$tst_compi_closesocket_camel" = "yes"; then
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31146$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31147 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31149$as_echo "yes" >&6; }
31150 tst_allow_closesocket_camel="yes"
31151 else
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31153$as_echo "no" >&6; }
31154 tst_allow_closesocket_camel="no"
31155 fi
31156 fi
31157 #
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31159$as_echo_n "checking if CloseSocket might be used... " >&6; }
31160 if test "$tst_links_closesocket_camel" = "yes" &&
31161 test "$tst_proto_closesocket_camel" = "yes" &&
31162 test "$tst_compi_closesocket_camel" = "yes" &&
31163 test "$tst_allow_closesocket_camel" = "yes"; then
31164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31165$as_echo "yes" >&6; }
31166
31167cat >>confdefs.h <<_ACEOF
31168#define HAVE_CLOSESOCKET_CAMEL 1
31169_ACEOF
31170
31171 curl_cv_func_closesocket_camel="yes"
31172 else
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174$as_echo "no" >&6; }
31175 curl_cv_func_closesocket_camel="no"
31176 fi
31177
31178
31179 #
31180 tst_links_connect="unknown"
31181 tst_proto_connect="unknown"
31182 tst_compi_connect="unknown"
31183 tst_allow_connect="unknown"
31184 #
31185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31186$as_echo_n "checking if connect can be linked... " >&6; }
31187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31188/* end confdefs.h. */
31189
31190
31191 $curl_includes_winsock2
31192 $curl_includes_sys_socket
31193 $curl_includes_socket
31194
31195int main (void)
31196{
31197
31198 if(0 != connect(0, 0, 0))
31199 return 1;
31200
31201 ;
31202 return 0;
31203}
31204
31205_ACEOF
31206if ac_fn_c_try_link "$LINENO"; then :
31207
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209$as_echo "yes" >&6; }
31210 tst_links_connect="yes"
31211
31212else
31213
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215$as_echo "no" >&6; }
31216 tst_links_connect="no"
31217
31218fi
31219rm -f core conftest.err conftest.$ac_objext \
31220 conftest$ac_exeext conftest.$ac_ext
31221 #
31222 if test "$tst_links_connect" = "yes"; then
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31224$as_echo_n "checking if connect is prototyped... " >&6; }
31225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31226/* end confdefs.h. */
31227
31228 $curl_includes_winsock2
31229 $curl_includes_sys_socket
31230 $curl_includes_socket
31231
31232_ACEOF
31233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31234 $EGREP "connect" >/dev/null 2>&1; then :
31235
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31237$as_echo "yes" >&6; }
31238 tst_proto_connect="yes"
31239
31240else
31241
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31243$as_echo "no" >&6; }
31244 tst_proto_connect="no"
31245
31246fi
31247rm -f conftest*
31248
31249 fi
31250 #
31251 if test "$tst_proto_connect" = "yes"; then
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31253$as_echo_n "checking if connect is compilable... " >&6; }
31254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31255/* end confdefs.h. */
31256
31257
31258 $curl_includes_winsock2
31259 $curl_includes_sys_socket
31260 $curl_includes_socket
31261
31262int main (void)
31263{
31264
31265 if(0 != connect(0, 0, 0))
31266 return 1;
31267
31268 ;
31269 return 0;
31270}
31271
31272_ACEOF
31273if ac_fn_c_try_compile "$LINENO"; then :
31274
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31276$as_echo "yes" >&6; }
31277 tst_compi_connect="yes"
31278
31279else
31280
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31282$as_echo "no" >&6; }
31283 tst_compi_connect="no"
31284
31285fi
31286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31287 fi
31288 #
31289 if test "$tst_compi_connect" = "yes"; then
31290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31291$as_echo_n "checking if connect usage allowed... " >&6; }
31292 if test "x$curl_disallow_connect" != "xyes"; then
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31294$as_echo "yes" >&6; }
31295 tst_allow_connect="yes"
31296 else
31297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31298$as_echo "no" >&6; }
31299 tst_allow_connect="no"
31300 fi
31301 fi
31302 #
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31304$as_echo_n "checking if connect might be used... " >&6; }
31305 if test "$tst_links_connect" = "yes" &&
31306 test "$tst_proto_connect" = "yes" &&
31307 test "$tst_compi_connect" = "yes" &&
31308 test "$tst_allow_connect" = "yes"; then
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31310$as_echo "yes" >&6; }
31311
31312cat >>confdefs.h <<_ACEOF
31313#define HAVE_CONNECT 1
31314_ACEOF
31315
31316 curl_cv_func_connect="yes"
31317 else
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31319$as_echo "no" >&6; }
31320 curl_cv_func_connect="no"
31321 fi
31322
31323
31324curl_includes_fcntl="\
31325/* includes start */
31326#ifdef HAVE_SYS_TYPES_H
31327# include <sys/types.h>
31328#endif
31329#ifdef HAVE_UNISTD_H
31330# include <unistd.h>
31331#endif
31332#ifdef HAVE_FCNTL_H
31333# include <fcntl.h>
31334#endif
31335/* includes end */"
31336 for ac_header in sys/types.h unistd.h fcntl.h
31337do :
31338 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31339ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31340"
31341if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31342 cat >>confdefs.h <<_ACEOF
31343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31344_ACEOF
31345
31346fi
31347
31348done
31349
31350
31351
31352 #
31353 tst_links_fcntl="unknown"
31354 tst_proto_fcntl="unknown"
31355 tst_compi_fcntl="unknown"
31356 tst_allow_fcntl="unknown"
31357 #
31358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31359$as_echo_n "checking if fcntl can be linked... " >&6; }
31360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31361/* end confdefs.h. */
31362
31363
31364#define fcntl innocuous_fcntl
31365#ifdef __STDC__
31366# include <limits.h>
31367#else
31368# include <assert.h>
31369#endif
31370#undef fcntl
31371#ifdef __cplusplus
31372extern "C"
31373#endif
31374char fcntl ();
31375#if defined __stub_fcntl || defined __stub___fcntl
31376choke me
31377#endif
31378
31379int main (void)
31380{
31381return fcntl ();
31382 ;
31383 return 0;
31384}
31385
31386_ACEOF
31387if ac_fn_c_try_link "$LINENO"; then :
31388
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31390$as_echo "yes" >&6; }
31391 tst_links_fcntl="yes"
31392
31393else
31394
31395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31396$as_echo "no" >&6; }
31397 tst_links_fcntl="no"
31398
31399fi
31400rm -f core conftest.err conftest.$ac_objext \
31401 conftest$ac_exeext conftest.$ac_ext
31402 #
31403 if test "$tst_links_fcntl" = "yes"; then
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31405$as_echo_n "checking if fcntl is prototyped... " >&6; }
31406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31407/* end confdefs.h. */
31408
31409 $curl_includes_fcntl
31410
31411_ACEOF
31412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31413 $EGREP "fcntl" >/dev/null 2>&1; then :
31414
31415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31416$as_echo "yes" >&6; }
31417 tst_proto_fcntl="yes"
31418
31419else
31420
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31422$as_echo "no" >&6; }
31423 tst_proto_fcntl="no"
31424
31425fi
31426rm -f conftest*
31427
31428 fi
31429 #
31430 if test "$tst_proto_fcntl" = "yes"; then
31431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31432$as_echo_n "checking if fcntl is compilable... " >&6; }
31433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31434/* end confdefs.h. */
31435
31436
31437 $curl_includes_fcntl
31438
31439int main (void)
31440{
31441
31442 if(0 != fcntl(0, 0, 0))
31443 return 1;
31444
31445 ;
31446 return 0;
31447}
31448
31449_ACEOF
31450if ac_fn_c_try_compile "$LINENO"; then :
31451
31452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31453$as_echo "yes" >&6; }
31454 tst_compi_fcntl="yes"
31455
31456else
31457
31458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31459$as_echo "no" >&6; }
31460 tst_compi_fcntl="no"
31461
31462fi
31463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31464 fi
31465 #
31466 if test "$tst_compi_fcntl" = "yes"; then
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31468$as_echo_n "checking if fcntl usage allowed... " >&6; }
31469 if test "x$curl_disallow_fcntl" != "xyes"; then
31470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31471$as_echo "yes" >&6; }
31472 tst_allow_fcntl="yes"
31473 else
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31475$as_echo "no" >&6; }
31476 tst_allow_fcntl="no"
31477 fi
31478 fi
31479 #
31480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31481$as_echo_n "checking if fcntl might be used... " >&6; }
31482 if test "$tst_links_fcntl" = "yes" &&
31483 test "$tst_proto_fcntl" = "yes" &&
31484 test "$tst_compi_fcntl" = "yes" &&
31485 test "$tst_allow_fcntl" = "yes"; then
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31487$as_echo "yes" >&6; }
31488
31489cat >>confdefs.h <<_ACEOF
31490#define HAVE_FCNTL 1
31491_ACEOF
31492
31493 curl_cv_func_fcntl="yes"
31494
31495 #
31496 tst_compi_fcntl_o_nonblock="unknown"
31497 tst_allow_fcntl_o_nonblock="unknown"
31498 #
31499 case $host_os in
31500 sunos4* | aix3* | beos*)
31501 curl_disallow_fcntl_o_nonblock="yes"
31502 ;;
31503 esac
31504 #
31505 if test "$curl_cv_func_fcntl" = "yes"; then
31506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31507$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31509/* end confdefs.h. */
31510
31511
31512 $curl_includes_fcntl
31513
31514int main (void)
31515{
31516
31517 int flags = 0;
31518 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31519 return 1;
31520
31521 ;
31522 return 0;
31523}
31524
31525_ACEOF
31526if ac_fn_c_try_compile "$LINENO"; then :
31527
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31529$as_echo "yes" >&6; }
31530 tst_compi_fcntl_o_nonblock="yes"
31531
31532else
31533
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31535$as_echo "no" >&6; }
31536 tst_compi_fcntl_o_nonblock="no"
31537
31538fi
31539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31540 fi
31541 #
31542 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31544$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31545 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31547$as_echo "yes" >&6; }
31548 tst_allow_fcntl_o_nonblock="yes"
31549 else
31550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31551$as_echo "no" >&6; }
31552 tst_allow_fcntl_o_nonblock="no"
31553 fi
31554 fi
31555 #
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31557$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31558 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31559 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31561$as_echo "yes" >&6; }
31562
31563cat >>confdefs.h <<_ACEOF
31564#define HAVE_FCNTL_O_NONBLOCK 1
31565_ACEOF
31566
31567 curl_cv_func_fcntl_o_nonblock="yes"
31568 else
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31570$as_echo "no" >&6; }
31571 curl_cv_func_fcntl_o_nonblock="no"
31572 fi
31573
31574 else
31575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31576$as_echo "no" >&6; }
31577 curl_cv_func_fcntl="no"
31578 fi
31579
31580
31581curl_includes_stdio="\
31582/* includes start */
31583#ifdef HAVE_SYS_TYPES_H
31584# include <sys/types.h>
31585#endif
31586#ifdef HAVE_STDIO_H
31587# include <stdio.h>
31588#endif
31589/* includes end */"
31590 for ac_header in sys/types.h stdio.h
31591do :
31592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31593ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31594"
31595if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31596 cat >>confdefs.h <<_ACEOF
31597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31598_ACEOF
31599
31600fi
31601
31602done
31603
31604
31605
31606 #
31607 tst_links_fdopen="unknown"
31608 tst_proto_fdopen="unknown"
31609 tst_compi_fdopen="unknown"
31610 tst_allow_fdopen="unknown"
31611 #
31612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31613$as_echo_n "checking if fdopen can be linked... " >&6; }
31614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31615/* end confdefs.h. */
31616
31617
31618#define fdopen innocuous_fdopen
31619#ifdef __STDC__
31620# include <limits.h>
31621#else
31622# include <assert.h>
31623#endif
31624#undef fdopen
31625#ifdef __cplusplus
31626extern "C"
31627#endif
31628char fdopen ();
31629#if defined __stub_fdopen || defined __stub___fdopen
31630choke me
31631#endif
31632
31633int main (void)
31634{
31635return fdopen ();
31636 ;
31637 return 0;
31638}
31639
31640_ACEOF
31641if ac_fn_c_try_link "$LINENO"; then :
31642
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31644$as_echo "yes" >&6; }
31645 tst_links_fdopen="yes"
31646
31647else
31648
31649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31650$as_echo "no" >&6; }
31651 tst_links_fdopen="no"
31652
31653fi
31654rm -f core conftest.err conftest.$ac_objext \
31655 conftest$ac_exeext conftest.$ac_ext
31656 #
31657 if test "$tst_links_fdopen" = "yes"; then
31658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31659$as_echo_n "checking if fdopen is prototyped... " >&6; }
31660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31661/* end confdefs.h. */
31662
31663 $curl_includes_stdio
31664
31665_ACEOF
31666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31667 $EGREP "fdopen" >/dev/null 2>&1; then :
31668
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31670$as_echo "yes" >&6; }
31671 tst_proto_fdopen="yes"
31672
31673else
31674
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31676$as_echo "no" >&6; }
31677 tst_proto_fdopen="no"
31678
31679fi
31680rm -f conftest*
31681
31682 fi
31683 #
31684 if test "$tst_proto_fdopen" = "yes"; then
31685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31686$as_echo_n "checking if fdopen is compilable... " >&6; }
31687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31688/* end confdefs.h. */
31689
31690
31691 $curl_includes_stdio
31692
31693int main (void)
31694{
31695
31696 if(0 != fdopen(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_fdopen="yes"
31709
31710else
31711
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31713$as_echo "no" >&6; }
31714 tst_compi_fdopen="no"
31715
31716fi
31717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31718 fi
31719 #
31720 if test "$tst_compi_fdopen" = "yes"; then
31721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31722$as_echo_n "checking if fdopen usage allowed... " >&6; }
31723 if test "x$curl_disallow_fdopen" != "xyes"; then
31724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31725$as_echo "yes" >&6; }
31726 tst_allow_fdopen="yes"
31727 else
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729$as_echo "no" >&6; }
31730 tst_allow_fdopen="no"
31731 fi
31732 fi
31733 #
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31735$as_echo_n "checking if fdopen might be used... " >&6; }
31736 if test "$tst_links_fdopen" = "yes" &&
31737 test "$tst_proto_fdopen" = "yes" &&
31738 test "$tst_compi_fdopen" = "yes" &&
31739 test "$tst_allow_fdopen" = "yes"; then
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31741$as_echo "yes" >&6; }
31742
31743cat >>confdefs.h <<_ACEOF
31744#define HAVE_FDOPEN 1
31745_ACEOF
31746
31747 curl_cv_func_fdopen="yes"
31748 else
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31750$as_echo "no" >&6; }
31751 curl_cv_func_fdopen="no"
31752 fi
31753
31754
31755curl_includes_netdb="\
31756/* includes start */
31757#ifdef HAVE_SYS_TYPES_H
31758# include <sys/types.h>
31759#endif
31760#ifdef HAVE_NETDB_H
31761# include <netdb.h>
31762#endif
31763/* includes end */"
31764 for ac_header in sys/types.h netdb.h
31765do :
31766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31767ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31768"
31769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31770 cat >>confdefs.h <<_ACEOF
31771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31772_ACEOF
31773
31774fi
31775
31776done
31777
31778
31779
31780 #
31781 tst_links_freeaddrinfo="unknown"
31782 tst_proto_freeaddrinfo="unknown"
31783 tst_compi_freeaddrinfo="unknown"
31784 tst_allow_freeaddrinfo="unknown"
31785 #
31786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31787$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31789/* end confdefs.h. */
31790
31791
31792 $curl_includes_ws2tcpip
31793 $curl_includes_sys_socket
31794 $curl_includes_netdb
31795
31796int main (void)
31797{
31798
31799 freeaddrinfo(0);
31800
31801 ;
31802 return 0;
31803}
31804
31805_ACEOF
31806if ac_fn_c_try_link "$LINENO"; then :
31807
31808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31809$as_echo "yes" >&6; }
31810 tst_links_freeaddrinfo="yes"
31811
31812else
31813
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31815$as_echo "no" >&6; }
31816 tst_links_freeaddrinfo="no"
31817
31818fi
31819rm -f core conftest.err conftest.$ac_objext \
31820 conftest$ac_exeext conftest.$ac_ext
31821 #
31822 if test "$tst_links_freeaddrinfo" = "yes"; then
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31824$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31826/* end confdefs.h. */
31827
31828 $curl_includes_ws2tcpip
31829 $curl_includes_sys_socket
31830 $curl_includes_netdb
31831
31832_ACEOF
31833if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31834 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31835
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31837$as_echo "yes" >&6; }
31838 tst_proto_freeaddrinfo="yes"
31839
31840else
31841
31842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31843$as_echo "no" >&6; }
31844 tst_proto_freeaddrinfo="no"
31845
31846fi
31847rm -f conftest*
31848
31849 fi
31850 #
31851 if test "$tst_proto_freeaddrinfo" = "yes"; then
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31853$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31855/* end confdefs.h. */
31856
31857
31858 $curl_includes_ws2tcpip
31859 $curl_includes_sys_socket
31860 $curl_includes_netdb
31861
31862int main (void)
31863{
31864
31865 freeaddrinfo(0);
31866
31867 ;
31868 return 0;
31869}
31870
31871_ACEOF
31872if ac_fn_c_try_compile "$LINENO"; then :
31873
31874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31875$as_echo "yes" >&6; }
31876 tst_compi_freeaddrinfo="yes"
31877
31878else
31879
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881$as_echo "no" >&6; }
31882 tst_compi_freeaddrinfo="no"
31883
31884fi
31885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31886 fi
31887 #
31888 if test "$tst_compi_freeaddrinfo" = "yes"; then
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31890$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31891 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31893$as_echo "yes" >&6; }
31894 tst_allow_freeaddrinfo="yes"
31895 else
31896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31897$as_echo "no" >&6; }
31898 tst_allow_freeaddrinfo="no"
31899 fi
31900 fi
31901 #
31902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31903$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31904 if test "$tst_links_freeaddrinfo" = "yes" &&
31905 test "$tst_proto_freeaddrinfo" = "yes" &&
31906 test "$tst_compi_freeaddrinfo" = "yes" &&
31907 test "$tst_allow_freeaddrinfo" = "yes"; then
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31909$as_echo "yes" >&6; }
31910
31911cat >>confdefs.h <<_ACEOF
31912#define HAVE_FREEADDRINFO 1
31913_ACEOF
31914
31915 curl_cv_func_freeaddrinfo="yes"
31916 else
31917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31918$as_echo "no" >&6; }
31919 curl_cv_func_freeaddrinfo="no"
31920 fi
31921
31922
31923curl_includes_ifaddrs="\
31924/* includes start */
31925#ifdef HAVE_SYS_TYPES_H
31926# include <sys/types.h>
31927#endif
31928#ifdef HAVE_SYS_SOCKET_H
31929# include <sys/socket.h>
31930#endif
31931#ifdef HAVE_NETINET_IN_H
31932# include <netinet/in.h>
31933#endif
31934#ifdef HAVE_IFADDRS_H
31935# include <ifaddrs.h>
31936#endif
31937/* includes end */"
31938 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31939do :
31940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31941ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31942"
31943if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31944 cat >>confdefs.h <<_ACEOF
31945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31946_ACEOF
31947
31948fi
31949
31950done
31951
31952
31953
31954 #
31955 tst_links_freeifaddrs="unknown"
31956 tst_proto_freeifaddrs="unknown"
31957 tst_compi_freeifaddrs="unknown"
31958 tst_allow_freeifaddrs="unknown"
31959 #
31960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31961$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31963/* end confdefs.h. */
31964
31965
31966#define freeifaddrs innocuous_freeifaddrs
31967#ifdef __STDC__
31968# include <limits.h>
31969#else
31970# include <assert.h>
31971#endif
31972#undef freeifaddrs
31973#ifdef __cplusplus
31974extern "C"
31975#endif
31976char freeifaddrs ();
31977#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31978choke me
31979#endif
31980
31981int main (void)
31982{
31983return freeifaddrs ();
31984 ;
31985 return 0;
31986}
31987
31988_ACEOF
31989if ac_fn_c_try_link "$LINENO"; then :
31990
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31992$as_echo "yes" >&6; }
31993 tst_links_freeifaddrs="yes"
31994
31995else
31996
31997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31998$as_echo "no" >&6; }
31999 tst_links_freeifaddrs="no"
32000
32001fi
32002rm -f core conftest.err conftest.$ac_objext \
32003 conftest$ac_exeext conftest.$ac_ext
32004 #
32005 if test "$tst_links_freeifaddrs" = "yes"; then
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
32007$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
32008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32009/* end confdefs.h. */
32010
32011 $curl_includes_ifaddrs
32012
32013_ACEOF
32014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32015 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
32016
32017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32018$as_echo "yes" >&6; }
32019 tst_proto_freeifaddrs="yes"
32020
32021else
32022
32023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32024$as_echo "no" >&6; }
32025 tst_proto_freeifaddrs="no"
32026
32027fi
32028rm -f conftest*
32029
32030 fi
32031 #
32032 if test "$tst_proto_freeifaddrs" = "yes"; then
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
32034$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
32035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32036/* end confdefs.h. */
32037
32038
32039 $curl_includes_ifaddrs
32040
32041int main (void)
32042{
32043
32044 freeifaddrs(0);
32045
32046 ;
32047 return 0;
32048}
32049
32050_ACEOF
32051if ac_fn_c_try_compile "$LINENO"; then :
32052
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32054$as_echo "yes" >&6; }
32055 tst_compi_freeifaddrs="yes"
32056
32057else
32058
32059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32060$as_echo "no" >&6; }
32061 tst_compi_freeifaddrs="no"
32062
32063fi
32064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32065 fi
32066 #
32067 if test "$tst_compi_freeifaddrs" = "yes"; then
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32069$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32070 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32072$as_echo "yes" >&6; }
32073 tst_allow_freeifaddrs="yes"
32074 else
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32076$as_echo "no" >&6; }
32077 tst_allow_freeifaddrs="no"
32078 fi
32079 fi
32080 #
32081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32082$as_echo_n "checking if freeifaddrs might be used... " >&6; }
32083 if test "$tst_links_freeifaddrs" = "yes" &&
32084 test "$tst_proto_freeifaddrs" = "yes" &&
32085 test "$tst_compi_freeifaddrs" = "yes" &&
32086 test "$tst_allow_freeifaddrs" = "yes"; then
32087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32088$as_echo "yes" >&6; }
32089
32090cat >>confdefs.h <<_ACEOF
32091#define HAVE_FREEIFADDRS 1
32092_ACEOF
32093
32094 curl_cv_func_freeifaddrs="yes"
32095 else
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32097$as_echo "no" >&6; }
32098 curl_cv_func_freeifaddrs="no"
32099 fi
32100
32101
32102curl_includes_sys_xattr="\
32103/* includes start */
32104#ifdef HAVE_SYS_TYPES_H
32105# include <sys/types.h>
32106#endif
32107#ifdef HAVE_SYS_XATTR_H
32108# include <sys/xattr.h>
32109#endif
32110/* includes end */"
32111 for ac_header in sys/types.h sys/xattr.h
32112do :
32113 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32114ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32115"
32116if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32117 cat >>confdefs.h <<_ACEOF
32118#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32119_ACEOF
32120
32121fi
32122
32123done
32124
32125
32126
32127 #
32128 tst_links_fsetxattr="unknown"
32129 tst_proto_fsetxattr="unknown"
32130 tst_compi_fsetxattr="unknown"
32131 tst_allow_fsetxattr="unknown"
32132 tst_nargs_fsetxattr="unknown"
32133 #
32134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32135$as_echo_n "checking if fsetxattr can be linked... " >&6; }
32136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32137/* end confdefs.h. */
32138
32139
32140#define fsetxattr innocuous_fsetxattr
32141#ifdef __STDC__
32142# include <limits.h>
32143#else
32144# include <assert.h>
32145#endif
32146#undef fsetxattr
32147#ifdef __cplusplus
32148extern "C"
32149#endif
32150char fsetxattr ();
32151#if defined __stub_fsetxattr || defined __stub___fsetxattr
32152choke me
32153#endif
32154
32155int main (void)
32156{
32157return fsetxattr ();
32158 ;
32159 return 0;
32160}
32161
32162_ACEOF
32163if ac_fn_c_try_link "$LINENO"; then :
32164
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32166$as_echo "yes" >&6; }
32167 tst_links_fsetxattr="yes"
32168
32169else
32170
32171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32172$as_echo "no" >&6; }
32173 tst_links_fsetxattr="no"
32174
32175fi
32176rm -f core conftest.err conftest.$ac_objext \
32177 conftest$ac_exeext conftest.$ac_ext
32178 #
32179 if test "$tst_links_fsetxattr" = "yes"; then
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32181$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32183/* end confdefs.h. */
32184
32185 $curl_includes_sys_xattr
32186
32187_ACEOF
32188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32189 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32190
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32192$as_echo "yes" >&6; }
32193 tst_proto_fsetxattr="yes"
32194
32195else
32196
32197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32198$as_echo "no" >&6; }
32199 tst_proto_fsetxattr="no"
32200
32201fi
32202rm -f conftest*
32203
32204 fi
32205 #
32206 if test "$tst_proto_fsetxattr" = "yes"; then
32207 if test "$tst_nargs_fsetxattr" = "unknown"; then
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32209$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32211/* end confdefs.h. */
32212
32213
32214 $curl_includes_sys_xattr
32215
32216int main (void)
32217{
32218
32219 if(0 != fsetxattr(0, 0, 0, 0, 0))
32220 return 1;
32221
32222 ;
32223 return 0;
32224}
32225
32226_ACEOF
32227if ac_fn_c_try_compile "$LINENO"; then :
32228
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32230$as_echo "yes" >&6; }
32231 tst_compi_fsetxattr="yes"
32232 tst_nargs_fsetxattr="5"
32233
32234else
32235
32236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32237$as_echo "no" >&6; }
32238 tst_compi_fsetxattr="no"
32239
32240fi
32241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32242 fi
32243 if test "$tst_nargs_fsetxattr" = "unknown"; then
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32245$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32247/* end confdefs.h. */
32248
32249
32250 $curl_includes_sys_xattr
32251
32252int main (void)
32253{
32254
32255 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32256 return 1;
32257
32258 ;
32259 return 0;
32260}
32261
32262_ACEOF
32263if ac_fn_c_try_compile "$LINENO"; then :
32264
32265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32266$as_echo "yes" >&6; }
32267 tst_compi_fsetxattr="yes"
32268 tst_nargs_fsetxattr="6"
32269
32270else
32271
32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32273$as_echo "no" >&6; }
32274 tst_compi_fsetxattr="no"
32275
32276fi
32277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32278 fi
32279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32280$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32281 if test "$tst_compi_fsetxattr" = "yes"; then
32282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32283$as_echo "yes" >&6; }
32284 else
32285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32286$as_echo "no" >&6; }
32287 fi
32288 fi
32289 #
32290 if test "$tst_compi_fsetxattr" = "yes"; then
32291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32292$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32293 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32295$as_echo "yes" >&6; }
32296 tst_allow_fsetxattr="yes"
32297 else
32298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32299$as_echo "no" >&6; }
32300 tst_allow_fsetxattr="no"
32301 fi
32302 fi
32303 #
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32305$as_echo_n "checking if fsetxattr might be used... " >&6; }
32306 if test "$tst_links_fsetxattr" = "yes" &&
32307 test "$tst_proto_fsetxattr" = "yes" &&
32308 test "$tst_compi_fsetxattr" = "yes" &&
32309 test "$tst_allow_fsetxattr" = "yes"; then
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32311$as_echo "yes" >&6; }
32312
32313cat >>confdefs.h <<_ACEOF
32314#define HAVE_FSETXATTR 1
32315_ACEOF
32316
32317 #
32318 if test "$tst_nargs_fsetxattr" -eq "5"; then
32319
32320$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32321
32322 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32323
32324$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32325
32326 fi
32327 #
32328 curl_cv_func_fsetxattr="yes"
32329 else
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32331$as_echo "no" >&6; }
32332 curl_cv_func_fsetxattr="no"
32333 fi
32334
32335
32336 #
32337 tst_links_ftruncate="unknown"
32338 tst_proto_ftruncate="unknown"
32339 tst_compi_ftruncate="unknown"
32340 tst_allow_ftruncate="unknown"
32341 #
32342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32343$as_echo_n "checking if ftruncate can be linked... " >&6; }
32344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32345/* end confdefs.h. */
32346
32347
32348#define ftruncate innocuous_ftruncate
32349#ifdef __STDC__
32350# include <limits.h>
32351#else
32352# include <assert.h>
32353#endif
32354#undef ftruncate
32355#ifdef __cplusplus
32356extern "C"
32357#endif
32358char ftruncate ();
32359#if defined __stub_ftruncate || defined __stub___ftruncate
32360choke me
32361#endif
32362
32363int main (void)
32364{
32365return ftruncate ();
32366 ;
32367 return 0;
32368}
32369
32370_ACEOF
32371if ac_fn_c_try_link "$LINENO"; then :
32372
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32374$as_echo "yes" >&6; }
32375 tst_links_ftruncate="yes"
32376
32377else
32378
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32380$as_echo "no" >&6; }
32381 tst_links_ftruncate="no"
32382
32383fi
32384rm -f core conftest.err conftest.$ac_objext \
32385 conftest$ac_exeext conftest.$ac_ext
32386 #
32387 if test "$tst_links_ftruncate" = "yes"; then
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32389$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32391/* end confdefs.h. */
32392
32393 $curl_includes_unistd
32394
32395_ACEOF
32396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32397 $EGREP "ftruncate" >/dev/null 2>&1; then :
32398
32399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32400$as_echo "yes" >&6; }
32401 tst_proto_ftruncate="yes"
32402
32403else
32404
32405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32406$as_echo "no" >&6; }
32407 tst_proto_ftruncate="no"
32408
32409fi
32410rm -f conftest*
32411
32412 fi
32413 #
32414 if test "$tst_proto_ftruncate" = "yes"; then
32415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32416$as_echo_n "checking if ftruncate is compilable... " >&6; }
32417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32418/* end confdefs.h. */
32419
32420
32421 $curl_includes_unistd
32422
32423int main (void)
32424{
32425
32426 if(0 != ftruncate(0, 0))
32427 return 1;
32428
32429 ;
32430 return 0;
32431}
32432
32433_ACEOF
32434if ac_fn_c_try_compile "$LINENO"; then :
32435
32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32437$as_echo "yes" >&6; }
32438 tst_compi_ftruncate="yes"
32439
32440else
32441
32442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32443$as_echo "no" >&6; }
32444 tst_compi_ftruncate="no"
32445
32446fi
32447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32448 fi
32449 #
32450 if test "$tst_compi_ftruncate" = "yes"; then
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32452$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32453 if test "x$curl_disallow_ftruncate" != "xyes"; then
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32455$as_echo "yes" >&6; }
32456 tst_allow_ftruncate="yes"
32457 else
32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32459$as_echo "no" >&6; }
32460 tst_allow_ftruncate="no"
32461 fi
32462 fi
32463 #
32464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32465$as_echo_n "checking if ftruncate might be used... " >&6; }
32466 if test "$tst_links_ftruncate" = "yes" &&
32467 test "$tst_proto_ftruncate" = "yes" &&
32468 test "$tst_compi_ftruncate" = "yes" &&
32469 test "$tst_allow_ftruncate" = "yes"; then
32470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32471$as_echo "yes" >&6; }
32472
32473cat >>confdefs.h <<_ACEOF
32474#define HAVE_FTRUNCATE 1
32475_ACEOF
32476
32477 curl_cv_func_ftruncate="yes"
32478 else
32479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32480$as_echo "no" >&6; }
32481 curl_cv_func_ftruncate="no"
32482 fi
32483
32484
32485curl_includes_stdlib="\
32486/* includes start */
32487#ifdef HAVE_SYS_TYPES_H
32488# include <sys/types.h>
32489#endif
32490#ifdef HAVE_STDLIB_H
32491# include <stdlib.h>
32492#endif
32493/* includes end */"
32494 for ac_header in sys/types.h stdlib.h
32495do :
32496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32497ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32498"
32499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32500 cat >>confdefs.h <<_ACEOF
32501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32502_ACEOF
32503
32504fi
32505
32506done
32507
32508
32509
32510 #
32511 tst_links_getaddrinfo="unknown"
32512 tst_proto_getaddrinfo="unknown"
32513 tst_compi_getaddrinfo="unknown"
32514 tst_works_getaddrinfo="unknown"
32515 tst_allow_getaddrinfo="unknown"
32516 tst_tsafe_getaddrinfo="unknown"
32517 #
32518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32519$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32521/* end confdefs.h. */
32522
32523
32524 $curl_includes_ws2tcpip
32525 $curl_includes_sys_socket
32526 $curl_includes_netdb
32527
32528int main (void)
32529{
32530
32531 if(0 != getaddrinfo(0, 0, 0, 0))
32532 return 1;
32533
32534 ;
32535 return 0;
32536}
32537
32538_ACEOF
32539if ac_fn_c_try_link "$LINENO"; then :
32540
32541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32542$as_echo "yes" >&6; }
32543 tst_links_getaddrinfo="yes"
32544
32545else
32546
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32548$as_echo "no" >&6; }
32549 tst_links_getaddrinfo="no"
32550
32551fi
32552rm -f core conftest.err conftest.$ac_objext \
32553 conftest$ac_exeext conftest.$ac_ext
32554 #
32555 if test "$tst_links_getaddrinfo" = "yes"; then
32556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32557$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32559/* end confdefs.h. */
32560
32561 $curl_includes_ws2tcpip
32562 $curl_includes_sys_socket
32563 $curl_includes_netdb
32564
32565_ACEOF
32566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32567 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32568
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32570$as_echo "yes" >&6; }
32571 tst_proto_getaddrinfo="yes"
32572
32573else
32574
32575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32576$as_echo "no" >&6; }
32577 tst_proto_getaddrinfo="no"
32578
32579fi
32580rm -f conftest*
32581
32582 fi
32583 #
32584 if test "$tst_proto_getaddrinfo" = "yes"; then
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32586$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32588/* end confdefs.h. */
32589
32590
32591 $curl_includes_ws2tcpip
32592 $curl_includes_sys_socket
32593 $curl_includes_netdb
32594
32595int main (void)
32596{
32597
32598 if(0 != getaddrinfo(0, 0, 0, 0))
32599 return 1;
32600
32601 ;
32602 return 0;
32603}
32604
32605_ACEOF
32606if ac_fn_c_try_compile "$LINENO"; then :
32607
32608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32609$as_echo "yes" >&6; }
32610 tst_compi_getaddrinfo="yes"
32611
32612else
32613
32614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32615$as_echo "no" >&6; }
32616 tst_compi_getaddrinfo="no"
32617
32618fi
32619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32620 fi
32621 #
32622 if test "x$cross_compiling" != "xyes" &&
32623 test "$tst_compi_getaddrinfo" = "yes"; then
32624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32625$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32626 if test "$cross_compiling" = yes; then :
32627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32629as_fn_error $? "cannot run test program while cross compiling
32630See \`config.log' for more details" "$LINENO" 5; }
32631else
32632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32633/* end confdefs.h. */
32634
32635
32636 $curl_includes_ws2tcpip
32637 $curl_includes_stdlib
32638 $curl_includes_string
32639 $curl_includes_sys_socket
32640 $curl_includes_netdb
32641
32642int main (void)
32643{
32644
32645 struct addrinfo hints;
32646 struct addrinfo *ai = 0;
32647 int error;
32648
32649 #ifdef HAVE_WINSOCK2_H
32650 WSADATA wsa;
32651 if (WSAStartup(MAKEWORD(2,2), &wsa))
32652 exit(2);
32653 #endif
32654
32655 memset(&hints, 0, sizeof(hints));
32656 hints.ai_flags = AI_NUMERICHOST;
32657 hints.ai_family = AF_UNSPEC;
32658 hints.ai_socktype = SOCK_STREAM;
32659 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32660 if(error || !ai)
32661 exit(1); /* fail */
32662 else
32663 exit(0);
32664
32665 ;
32666 return 0;
32667}
32668
32669_ACEOF
32670if ac_fn_c_try_run "$LINENO"; then :
32671
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32673$as_echo "yes" >&6; }
32674 tst_works_getaddrinfo="yes"
32675
32676else
32677
32678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32679$as_echo "no" >&6; }
32680 tst_works_getaddrinfo="no"
32681
32682fi
32683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32684 conftest.$ac_objext conftest.beam conftest.$ac_ext
32685fi
32686
32687 fi
32688 #
32689 if test "$tst_compi_getaddrinfo" = "yes" &&
32690 test "$tst_works_getaddrinfo" != "no"; then
32691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32692$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32693 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32695$as_echo "yes" >&6; }
32696 tst_allow_getaddrinfo="yes"
32697 else
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32699$as_echo "no" >&6; }
32700 tst_allow_getaddrinfo="no"
32701 fi
32702 fi
32703 #
32704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32705$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32706 if test "$tst_links_getaddrinfo" = "yes" &&
32707 test "$tst_proto_getaddrinfo" = "yes" &&
32708 test "$tst_compi_getaddrinfo" = "yes" &&
32709 test "$tst_allow_getaddrinfo" = "yes" &&
32710 test "$tst_works_getaddrinfo" != "no"; then
32711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32712$as_echo "yes" >&6; }
32713
32714cat >>confdefs.h <<_ACEOF
32715#define HAVE_GETADDRINFO 1
32716_ACEOF
32717
32718 curl_cv_func_getaddrinfo="yes"
32719 else
32720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32721$as_echo "no" >&6; }
32722 curl_cv_func_getaddrinfo="no"
32723 curl_cv_func_getaddrinfo_threadsafe="no"
32724 fi
32725 #
32726 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32728$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32729 case $host_os in
32730 aix[1234].* | aix5.[01].*)
32731 tst_tsafe_getaddrinfo="no"
32732 ;;
32733 aix*)
32734 tst_tsafe_getaddrinfo="yes"
32735 ;;
32736 darwin[12345].*)
32737 tst_tsafe_getaddrinfo="no"
32738 ;;
32739 darwin*)
32740 tst_tsafe_getaddrinfo="yes"
32741 ;;
32742 freebsd[1234].* | freebsd5.[1234]*)
32743 tst_tsafe_getaddrinfo="no"
32744 ;;
32745 freebsd*)
32746 tst_tsafe_getaddrinfo="yes"
32747 ;;
32748 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32749 tst_tsafe_getaddrinfo="no"
32750 ;;
32751 hpux*)
32752 tst_tsafe_getaddrinfo="yes"
32753 ;;
32754 netbsd[123].*)
32755 tst_tsafe_getaddrinfo="no"
32756 ;;
32757 netbsd*)
32758 tst_tsafe_getaddrinfo="yes"
32759 ;;
32760 *bsd*)
32761 tst_tsafe_getaddrinfo="no"
32762 ;;
32763 solaris2*)
32764 tst_tsafe_getaddrinfo="yes"
32765 ;;
32766 esac
32767 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32768 test "$curl_cv_native_windows" = "yes"; then
32769 tst_tsafe_getaddrinfo="yes"
32770 fi
32771 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32772
32773
32774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32775/* end confdefs.h. */
32776
32777
32778 $curl_includes_sys_socket
32779 $curl_includes_netdb
32780
32781int main (void)
32782{
32783#ifdef h_errno
32784 return 0;
32785#else
32786 force compilation error
32787#endif
32788}
32789
32790
32791_ACEOF
32792if ac_fn_c_try_compile "$LINENO"; then :
32793
32794 tst_symbol_defined="yes"
32795
32796else
32797
32798 tst_symbol_defined="no"
32799
32800fi
32801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32802 if test "$tst_symbol_defined" = "yes"; then
32803 curl_cv_have_def_h_errno=yes
32804
32805 else
32806 curl_cv_have_def_h_errno=no
32807
32808 fi
32809
32810 if test "$curl_cv_have_def_h_errno" = "yes"; then
32811 tst_h_errno_macro="yes"
32812 else
32813 tst_h_errno_macro="no"
32814 fi
32815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32816/* end confdefs.h. */
32817
32818
32819 $curl_includes_sys_socket
32820 $curl_includes_netdb
32821
32822int main (void)
32823{
32824
32825 h_errno = 2;
32826 if(0 != h_errno)
32827 return 1;
32828
32829 ;
32830 return 0;
32831}
32832
32833_ACEOF
32834if ac_fn_c_try_compile "$LINENO"; then :
32835
32836 tst_h_errno_modifiable_lvalue="yes"
32837
32838else
32839
32840 tst_h_errno_modifiable_lvalue="no"
32841
32842fi
32843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32845/* end confdefs.h. */
32846
32847
32848
32849int main (void)
32850{
32851
32852#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32853 return 0;
32854#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32855 return 0;
32856#else
32857 force compilation error
32858#endif
32859
32860 ;
32861 return 0;
32862}
32863
32864_ACEOF
32865if ac_fn_c_try_compile "$LINENO"; then :
32866
32867 tst_h_errno_sbs_issue_7="yes"
32868
32869else
32870
32871 tst_h_errno_sbs_issue_7="no"
32872
32873fi
32874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32875 if test "$tst_h_errno_macro" = "no" &&
32876 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32877 test "$tst_h_errno_sbs_issue_7" = "no"; then
32878 tst_tsafe_getaddrinfo="no"
32879 else
32880 tst_tsafe_getaddrinfo="yes"
32881 fi
32882 fi
32883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32884$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32885 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32886
32887cat >>confdefs.h <<_ACEOF
32888#define HAVE_GETADDRINFO_THREADSAFE 1
32889_ACEOF
32890
32891 curl_cv_func_getaddrinfo_threadsafe="yes"
32892 else
32893 curl_cv_func_getaddrinfo_threadsafe="no"
32894 fi
32895 fi
32896
32897
32898 #
32899 tst_links_gai_strerror="unknown"
32900 tst_proto_gai_strerror="unknown"
32901 tst_compi_gai_strerror="unknown"
32902 tst_allow_gai_strerror="unknown"
32903 #
32904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32905$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32907/* end confdefs.h. */
32908
32909
32910 $curl_includes_winsock2
32911 $curl_includes_netdb
32912
32913int main (void)
32914{
32915
32916 if(0 != gai_strerror(0))
32917 return 1;
32918
32919 ;
32920 return 0;
32921}
32922
32923_ACEOF
32924if ac_fn_c_try_link "$LINENO"; then :
32925
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32927$as_echo "yes" >&6; }
32928 tst_links_gai_strerror="yes"
32929
32930else
32931
32932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32933$as_echo "no" >&6; }
32934 tst_links_gai_strerror="no"
32935
32936fi
32937rm -f core conftest.err conftest.$ac_objext \
32938 conftest$ac_exeext conftest.$ac_ext
32939 #
32940 if test "$tst_links_gai_strerror" = "yes"; then
32941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32942$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32944/* end confdefs.h. */
32945
32946 $curl_includes_winsock2
32947 $curl_includes_netdb
32948
32949_ACEOF
32950if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32951 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32952
32953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32954$as_echo "yes" >&6; }
32955 tst_proto_gai_strerror="yes"
32956
32957else
32958
32959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32960$as_echo "no" >&6; }
32961 tst_proto_gai_strerror="no"
32962
32963fi
32964rm -f conftest*
32965
32966 fi
32967 #
32968 if test "$tst_proto_gai_strerror" = "yes"; then
32969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32970$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32972/* end confdefs.h. */
32973
32974
32975 $curl_includes_winsock2
32976 $curl_includes_netdb
32977
32978int main (void)
32979{
32980
32981 if(0 != gai_strerror(0))
32982 return 1;
32983
32984 ;
32985 return 0;
32986}
32987
32988_ACEOF
32989if ac_fn_c_try_compile "$LINENO"; then :
32990
32991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32992$as_echo "yes" >&6; }
32993 tst_compi_gai_strerror="yes"
32994
32995else
32996
32997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32998$as_echo "no" >&6; }
32999 tst_compi_gai_strerror="no"
33000
33001fi
33002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33003 fi
33004 #
33005 if test "$tst_compi_gai_strerror" = "yes"; then
33006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
33007$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
33008 if test "x$curl_disallow_gai_strerror" != "xyes"; then
33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33010$as_echo "yes" >&6; }
33011 tst_allow_gai_strerror="yes"
33012 else
33013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33014$as_echo "no" >&6; }
33015 tst_allow_gai_strerror="no"
33016 fi
33017 fi
33018 #
33019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
33020$as_echo_n "checking if gai_strerror might be used... " >&6; }
33021 if test "$tst_links_gai_strerror" = "yes" &&
33022 test "$tst_proto_gai_strerror" = "yes" &&
33023 test "$tst_compi_gai_strerror" = "yes" &&
33024 test "$tst_allow_gai_strerror" = "yes"; then
33025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33026$as_echo "yes" >&6; }
33027
33028cat >>confdefs.h <<_ACEOF
33029#define HAVE_GAI_STRERROR 1
33030_ACEOF
33031
33032 curl_cv_func_gai_strerror="yes"
33033 else
33034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33035$as_echo "no" >&6; }
33036 curl_cv_func_gai_strerror="no"
33037 fi
33038
33039
33040 #
33041 tst_links_gethostbyaddr="unknown"
33042 tst_proto_gethostbyaddr="unknown"
33043 tst_compi_gethostbyaddr="unknown"
33044 tst_allow_gethostbyaddr="unknown"
33045 #
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
33047$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
33048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33049/* end confdefs.h. */
33050
33051
33052 $curl_includes_winsock2
33053 $curl_includes_netdb
33054
33055int main (void)
33056{
33057
33058 if(0 != gethostbyaddr(0, 0, 0))
33059 return 1;
33060
33061 ;
33062 return 0;
33063}
33064
33065_ACEOF
33066if ac_fn_c_try_link "$LINENO"; then :
33067
33068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33069$as_echo "yes" >&6; }
33070 tst_links_gethostbyaddr="yes"
33071
33072else
33073
33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33075$as_echo "no" >&6; }
33076 tst_links_gethostbyaddr="no"
33077
33078fi
33079rm -f core conftest.err conftest.$ac_objext \
33080 conftest$ac_exeext conftest.$ac_ext
33081 #
33082 if test "$tst_links_gethostbyaddr" = "yes"; then
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33084$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33086/* end confdefs.h. */
33087
33088 $curl_includes_winsock2
33089 $curl_includes_netdb
33090
33091_ACEOF
33092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33093 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33094
33095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33096$as_echo "yes" >&6; }
33097 tst_proto_gethostbyaddr="yes"
33098
33099else
33100
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33102$as_echo "no" >&6; }
33103 tst_proto_gethostbyaddr="no"
33104
33105fi
33106rm -f conftest*
33107
33108 fi
33109 #
33110 if test "$tst_proto_gethostbyaddr" = "yes"; then
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33112$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33114/* end confdefs.h. */
33115
33116
33117 $curl_includes_winsock2
33118 $curl_includes_netdb
33119
33120int main (void)
33121{
33122
33123 if(0 != gethostbyaddr(0, 0, 0))
33124 return 1;
33125
33126 ;
33127 return 0;
33128}
33129
33130_ACEOF
33131if ac_fn_c_try_compile "$LINENO"; then :
33132
33133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33134$as_echo "yes" >&6; }
33135 tst_compi_gethostbyaddr="yes"
33136
33137else
33138
33139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33140$as_echo "no" >&6; }
33141 tst_compi_gethostbyaddr="no"
33142
33143fi
33144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33145 fi
33146 #
33147 if test "$tst_compi_gethostbyaddr" = "yes"; then
33148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33149$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33150 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33152$as_echo "yes" >&6; }
33153 tst_allow_gethostbyaddr="yes"
33154 else
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33156$as_echo "no" >&6; }
33157 tst_allow_gethostbyaddr="no"
33158 fi
33159 fi
33160 #
33161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33162$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33163 if test "$tst_links_gethostbyaddr" = "yes" &&
33164 test "$tst_proto_gethostbyaddr" = "yes" &&
33165 test "$tst_compi_gethostbyaddr" = "yes" &&
33166 test "$tst_allow_gethostbyaddr" = "yes"; then
33167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33168$as_echo "yes" >&6; }
33169
33170cat >>confdefs.h <<_ACEOF
33171#define HAVE_GETHOSTBYADDR 1
33172_ACEOF
33173
33174 curl_cv_func_gethostbyaddr="yes"
33175 else
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33177$as_echo "no" >&6; }
33178 curl_cv_func_gethostbyaddr="no"
33179 fi
33180
33181
33182 #
33183 tst_links_gethostbyaddr_r="unknown"
33184 tst_proto_gethostbyaddr_r="unknown"
33185 tst_compi_gethostbyaddr_r="unknown"
33186 tst_allow_gethostbyaddr_r="unknown"
33187 tst_nargs_gethostbyaddr_r="unknown"
33188 #
33189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33190$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33192/* end confdefs.h. */
33193
33194
33195#define gethostbyaddr_r innocuous_gethostbyaddr_r
33196#ifdef __STDC__
33197# include <limits.h>
33198#else
33199# include <assert.h>
33200#endif
33201#undef gethostbyaddr_r
33202#ifdef __cplusplus
33203extern "C"
33204#endif
33205char gethostbyaddr_r ();
33206#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33207choke me
33208#endif
33209
33210int main (void)
33211{
33212return gethostbyaddr_r ();
33213 ;
33214 return 0;
33215}
33216
33217_ACEOF
33218if ac_fn_c_try_link "$LINENO"; then :
33219
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33221$as_echo "yes" >&6; }
33222 tst_links_gethostbyaddr_r="yes"
33223
33224else
33225
33226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33227$as_echo "no" >&6; }
33228 tst_links_gethostbyaddr_r="no"
33229
33230fi
33231rm -f core conftest.err conftest.$ac_objext \
33232 conftest$ac_exeext conftest.$ac_ext
33233 #
33234 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33236$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33238/* end confdefs.h. */
33239
33240 $curl_includes_netdb
33241
33242_ACEOF
33243if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33244 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33245
33246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33247$as_echo "yes" >&6; }
33248 tst_proto_gethostbyaddr_r="yes"
33249
33250else
33251
33252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33253$as_echo "no" >&6; }
33254 tst_proto_gethostbyaddr_r="no"
33255
33256fi
33257rm -f conftest*
33258
33259 fi
33260 #
33261 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33262 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33264$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33266/* end confdefs.h. */
33267
33268
33269 $curl_includes_netdb
33270
33271int main (void)
33272{
33273
33274 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33275 return 1;
33276
33277 ;
33278 return 0;
33279}
33280
33281_ACEOF
33282if ac_fn_c_try_compile "$LINENO"; then :
33283
33284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33285$as_echo "yes" >&6; }
33286 tst_compi_gethostbyaddr_r="yes"
33287 tst_nargs_gethostbyaddr_r="5"
33288
33289else
33290
33291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33292$as_echo "no" >&6; }
33293 tst_compi_gethostbyaddr_r="no"
33294
33295fi
33296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33297 fi
33298 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33300$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33302/* end confdefs.h. */
33303
33304
33305 $curl_includes_netdb
33306
33307int main (void)
33308{
33309
33310 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33311 return 1;
33312
33313 ;
33314 return 0;
33315}
33316
33317_ACEOF
33318if ac_fn_c_try_compile "$LINENO"; then :
33319
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33321$as_echo "yes" >&6; }
33322 tst_compi_gethostbyaddr_r="yes"
33323 tst_nargs_gethostbyaddr_r="7"
33324
33325else
33326
33327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33328$as_echo "no" >&6; }
33329 tst_compi_gethostbyaddr_r="no"
33330
33331fi
33332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33333 fi
33334 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33336$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33338/* end confdefs.h. */
33339
33340
33341 $curl_includes_netdb
33342
33343int main (void)
33344{
33345
33346 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33347 return 1;
33348
33349 ;
33350 return 0;
33351}
33352
33353_ACEOF
33354if ac_fn_c_try_compile "$LINENO"; then :
33355
33356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33357$as_echo "yes" >&6; }
33358 tst_compi_gethostbyaddr_r="yes"
33359 tst_nargs_gethostbyaddr_r="8"
33360
33361else
33362
33363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33364$as_echo "no" >&6; }
33365 tst_compi_gethostbyaddr_r="no"
33366
33367fi
33368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33369 fi
33370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33371$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33372 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33374$as_echo "yes" >&6; }
33375 else
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33377$as_echo "no" >&6; }
33378 fi
33379 fi
33380 #
33381 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33383$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33384 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33386$as_echo "yes" >&6; }
33387 tst_allow_gethostbyaddr_r="yes"
33388 else
33389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33390$as_echo "no" >&6; }
33391 tst_allow_gethostbyaddr_r="no"
33392 fi
33393 fi
33394 #
33395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33396$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33397 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33398 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33399 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33400 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33402$as_echo "yes" >&6; }
33403
33404cat >>confdefs.h <<_ACEOF
33405#define HAVE_GETHOSTBYADDR_R 1
33406_ACEOF
33407
33408 #
33409 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33410
33411$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33412
33413 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33414
33415$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33416
33417 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33418
33419$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33420
33421 fi
33422 #
33423 curl_cv_func_gethostbyaddr_r="yes"
33424 else
33425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33426$as_echo "no" >&6; }
33427 curl_cv_func_gethostbyaddr_r="no"
33428 fi
33429
33430
33431 #
33432 tst_links_gethostbyname="unknown"
33433 tst_proto_gethostbyname="unknown"
33434 tst_compi_gethostbyname="unknown"
33435 tst_allow_gethostbyname="unknown"
33436 #
33437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33438$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33440/* end confdefs.h. */
33441
33442
33443 $curl_includes_winsock2
33444 $curl_includes_netdb
33445
33446int main (void)
33447{
33448
33449 if(0 != gethostbyname(0))
33450 return 1;
33451
33452 ;
33453 return 0;
33454}
33455
33456_ACEOF
33457if ac_fn_c_try_link "$LINENO"; then :
33458
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33460$as_echo "yes" >&6; }
33461 tst_links_gethostbyname="yes"
33462
33463else
33464
33465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33466$as_echo "no" >&6; }
33467 tst_links_gethostbyname="no"
33468
33469fi
33470rm -f core conftest.err conftest.$ac_objext \
33471 conftest$ac_exeext conftest.$ac_ext
33472 #
33473 if test "$tst_links_gethostbyname" = "yes"; then
33474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33475$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33477/* end confdefs.h. */
33478
33479 $curl_includes_winsock2
33480 $curl_includes_netdb
33481
33482_ACEOF
33483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33484 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33485
33486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33487$as_echo "yes" >&6; }
33488 tst_proto_gethostbyname="yes"
33489
33490else
33491
33492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33493$as_echo "no" >&6; }
33494 tst_proto_gethostbyname="no"
33495
33496fi
33497rm -f conftest*
33498
33499 fi
33500 #
33501 if test "$tst_proto_gethostbyname" = "yes"; then
33502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33503$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33505/* end confdefs.h. */
33506
33507
33508 $curl_includes_winsock2
33509 $curl_includes_netdb
33510
33511int main (void)
33512{
33513
33514 if(0 != gethostbyname(0))
33515 return 1;
33516
33517 ;
33518 return 0;
33519}
33520
33521_ACEOF
33522if ac_fn_c_try_compile "$LINENO"; then :
33523
33524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33525$as_echo "yes" >&6; }
33526 tst_compi_gethostbyname="yes"
33527
33528else
33529
33530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33531$as_echo "no" >&6; }
33532 tst_compi_gethostbyname="no"
33533
33534fi
33535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33536 fi
33537 #
33538 if test "$tst_compi_gethostbyname" = "yes"; then
33539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33540$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33541 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33543$as_echo "yes" >&6; }
33544 tst_allow_gethostbyname="yes"
33545 else
33546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33547$as_echo "no" >&6; }
33548 tst_allow_gethostbyname="no"
33549 fi
33550 fi
33551 #
33552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33553$as_echo_n "checking if gethostbyname might be used... " >&6; }
33554 if test "$tst_links_gethostbyname" = "yes" &&
33555 test "$tst_proto_gethostbyname" = "yes" &&
33556 test "$tst_compi_gethostbyname" = "yes" &&
33557 test "$tst_allow_gethostbyname" = "yes"; then
33558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33559$as_echo "yes" >&6; }
33560
33561cat >>confdefs.h <<_ACEOF
33562#define HAVE_GETHOSTBYNAME 1
33563_ACEOF
33564
33565 curl_cv_func_gethostbyname="yes"
33566 else
33567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33568$as_echo "no" >&6; }
33569 curl_cv_func_gethostbyname="no"
33570 fi
33571
33572
33573 #
33574 tst_links_gethostbyname_r="unknown"
33575 tst_proto_gethostbyname_r="unknown"
33576 tst_compi_gethostbyname_r="unknown"
33577 tst_allow_gethostbyname_r="unknown"
33578 tst_nargs_gethostbyname_r="unknown"
33579 #
33580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33581$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33583/* end confdefs.h. */
33584
33585
33586#define gethostbyname_r innocuous_gethostbyname_r
33587#ifdef __STDC__
33588# include <limits.h>
33589#else
33590# include <assert.h>
33591#endif
33592#undef gethostbyname_r
33593#ifdef __cplusplus
33594extern "C"
33595#endif
33596char gethostbyname_r ();
33597#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33598choke me
33599#endif
33600
33601int main (void)
33602{
33603return gethostbyname_r ();
33604 ;
33605 return 0;
33606}
33607
33608_ACEOF
33609if ac_fn_c_try_link "$LINENO"; then :
33610
33611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33612$as_echo "yes" >&6; }
33613 tst_links_gethostbyname_r="yes"
33614
33615else
33616
33617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33618$as_echo "no" >&6; }
33619 tst_links_gethostbyname_r="no"
33620
33621fi
33622rm -f core conftest.err conftest.$ac_objext \
33623 conftest$ac_exeext conftest.$ac_ext
33624 #
33625 if test "$tst_links_gethostbyname_r" = "yes"; then
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33627$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33629/* end confdefs.h. */
33630
33631 $curl_includes_netdb
33632
33633_ACEOF
33634if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33635 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33636
33637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33638$as_echo "yes" >&6; }
33639 tst_proto_gethostbyname_r="yes"
33640
33641else
33642
33643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33644$as_echo "no" >&6; }
33645 tst_proto_gethostbyname_r="no"
33646
33647fi
33648rm -f conftest*
33649
33650 fi
33651 #
33652 if test "$tst_proto_gethostbyname_r" = "yes"; then
33653 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33655$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33657/* end confdefs.h. */
33658
33659
33660 $curl_includes_netdb
33661
33662int main (void)
33663{
33664
33665 if(0 != gethostbyname_r(0, 0, 0))
33666 return 1;
33667
33668 ;
33669 return 0;
33670}
33671
33672_ACEOF
33673if ac_fn_c_try_compile "$LINENO"; then :
33674
33675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33676$as_echo "yes" >&6; }
33677 tst_compi_gethostbyname_r="yes"
33678 tst_nargs_gethostbyname_r="3"
33679
33680else
33681
33682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33683$as_echo "no" >&6; }
33684 tst_compi_gethostbyname_r="no"
33685
33686fi
33687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33688 fi
33689 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33691$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33693/* end confdefs.h. */
33694
33695
33696 $curl_includes_netdb
33697
33698int main (void)
33699{
33700
33701 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33702 return 1;
33703
33704 ;
33705 return 0;
33706}
33707
33708_ACEOF
33709if ac_fn_c_try_compile "$LINENO"; then :
33710
33711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33712$as_echo "yes" >&6; }
33713 tst_compi_gethostbyname_r="yes"
33714 tst_nargs_gethostbyname_r="5"
33715
33716else
33717
33718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33719$as_echo "no" >&6; }
33720 tst_compi_gethostbyname_r="no"
33721
33722fi
33723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33724 fi
33725 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33727$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33729/* end confdefs.h. */
33730
33731
33732 $curl_includes_netdb
33733
33734int main (void)
33735{
33736
33737 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33738 return 1;
33739
33740 ;
33741 return 0;
33742}
33743
33744_ACEOF
33745if ac_fn_c_try_compile "$LINENO"; then :
33746
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33748$as_echo "yes" >&6; }
33749 tst_compi_gethostbyname_r="yes"
33750 tst_nargs_gethostbyname_r="6"
33751
33752else
33753
33754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33755$as_echo "no" >&6; }
33756 tst_compi_gethostbyname_r="no"
33757
33758fi
33759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33760 fi
33761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33762$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33763 if test "$tst_compi_gethostbyname_r" = "yes"; then
33764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33765$as_echo "yes" >&6; }
33766 else
33767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33768$as_echo "no" >&6; }
33769 fi
33770 fi
33771 #
33772 if test "$tst_compi_gethostbyname_r" = "yes"; then
33773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33774$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33775 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33777$as_echo "yes" >&6; }
33778 tst_allow_gethostbyname_r="yes"
33779 else
33780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33781$as_echo "no" >&6; }
33782 tst_allow_gethostbyname_r="no"
33783 fi
33784 fi
33785 #
33786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33787$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33788 if test "$tst_links_gethostbyname_r" = "yes" &&
33789 test "$tst_proto_gethostbyname_r" = "yes" &&
33790 test "$tst_compi_gethostbyname_r" = "yes" &&
33791 test "$tst_allow_gethostbyname_r" = "yes"; then
33792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33793$as_echo "yes" >&6; }
33794
33795cat >>confdefs.h <<_ACEOF
33796#define HAVE_GETHOSTBYNAME_R 1
33797_ACEOF
33798
33799 #
33800 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33801
33802$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33803
33804 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33805
33806$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33807
33808 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33809
33810$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33811
33812 fi
33813 #
33814 curl_cv_func_gethostbyname_r="yes"
33815 else
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33817$as_echo "no" >&6; }
33818 curl_cv_func_gethostbyname_r="no"
33819 fi
33820
33821
33822 #
33823 tst_links_gethostname="unknown"
33824 tst_proto_gethostname="unknown"
33825 tst_compi_gethostname="unknown"
33826 tst_allow_gethostname="unknown"
33827 #
33828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33829$as_echo_n "checking if gethostname can be linked... " >&6; }
33830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33831/* end confdefs.h. */
33832
33833
33834 $curl_includes_winsock2
33835 $curl_includes_unistd
33836
33837int main (void)
33838{
33839
33840 if(0 != gethostname(0, 0))
33841 return 1;
33842
33843 ;
33844 return 0;
33845}
33846
33847_ACEOF
33848if ac_fn_c_try_link "$LINENO"; then :
33849
33850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33851$as_echo "yes" >&6; }
33852 tst_links_gethostname="yes"
33853
33854else
33855
33856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33857$as_echo "no" >&6; }
33858 tst_links_gethostname="no"
33859
33860fi
33861rm -f core conftest.err conftest.$ac_objext \
33862 conftest$ac_exeext conftest.$ac_ext
33863 #
33864 if test "$tst_links_gethostname" = "yes"; then
33865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33866$as_echo_n "checking if gethostname is prototyped... " >&6; }
33867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33868/* end confdefs.h. */
33869
33870 $curl_includes_winsock2
33871 $curl_includes_unistd
33872
33873_ACEOF
33874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33875 $EGREP "gethostname" >/dev/null 2>&1; then :
33876
33877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33878$as_echo "yes" >&6; }
33879 tst_proto_gethostname="yes"
33880
33881else
33882
33883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33884$as_echo "no" >&6; }
33885 tst_proto_gethostname="no"
33886
33887fi
33888rm -f conftest*
33889
33890 fi
33891 #
33892 if test "$tst_proto_gethostname" = "yes"; then
33893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33894$as_echo_n "checking if gethostname is compilable... " >&6; }
33895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33896/* end confdefs.h. */
33897
33898
33899 $curl_includes_winsock2
33900 $curl_includes_unistd
33901
33902int main (void)
33903{
33904
33905 if(0 != gethostname(0, 0))
33906 return 1;
33907
33908 ;
33909 return 0;
33910}
33911
33912_ACEOF
33913if ac_fn_c_try_compile "$LINENO"; then :
33914
33915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33916$as_echo "yes" >&6; }
33917 tst_compi_gethostname="yes"
33918
33919else
33920
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33922$as_echo "no" >&6; }
33923 tst_compi_gethostname="no"
33924
33925fi
33926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33927 fi
33928 #
33929 if test "$tst_compi_gethostname" = "yes"; then
33930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33931$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33932 tst_gethostname_type_arg2="unknown"
33933 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33934 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33935 if test "$tst_gethostname_type_arg2" = "unknown"; then
33936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33937/* end confdefs.h. */
33938
33939
33940 $curl_includes_winsock2
33941 $curl_includes_unistd
33942 $curl_preprocess_callconv
33943 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33944
33945int main (void)
33946{
33947
33948 if(0 != gethostname(0, 0))
33949 return 1;
33950
33951 ;
33952 return 0;
33953}
33954
33955_ACEOF
33956if ac_fn_c_try_compile "$LINENO"; then :
33957
33958 tst_gethostname_type_arg2="$tst_arg2"
33959
33960fi
33961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33962 fi
33963 done
33964 done
33965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33966$as_echo "$tst_gethostname_type_arg2" >&6; }
33967 if test "$tst_gethostname_type_arg2" != "unknown"; then
33968
33969cat >>confdefs.h <<_ACEOF
33970#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33971_ACEOF
33972
33973 fi
33974 fi
33975 #
33976 if test "$tst_compi_gethostname" = "yes"; then
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33978$as_echo_n "checking if gethostname usage allowed... " >&6; }
33979 if test "x$curl_disallow_gethostname" != "xyes"; then
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33981$as_echo "yes" >&6; }
33982 tst_allow_gethostname="yes"
33983 else
33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33985$as_echo "no" >&6; }
33986 tst_allow_gethostname="no"
33987 fi
33988 fi
33989 #
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33991$as_echo_n "checking if gethostname might be used... " >&6; }
33992 if test "$tst_links_gethostname" = "yes" &&
33993 test "$tst_proto_gethostname" = "yes" &&
33994 test "$tst_compi_gethostname" = "yes" &&
33995 test "$tst_allow_gethostname" = "yes"; then
33996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33997$as_echo "yes" >&6; }
33998
33999cat >>confdefs.h <<_ACEOF
34000#define HAVE_GETHOSTNAME 1
34001_ACEOF
34002
34003 curl_cv_func_gethostname="yes"
34004 else
34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34006$as_echo "no" >&6; }
34007 curl_cv_func_gethostname="no"
34008 fi
34009
34010
34011 #
34012 tst_links_getifaddrs="unknown"
34013 tst_proto_getifaddrs="unknown"
34014 tst_compi_getifaddrs="unknown"
34015 tst_works_getifaddrs="unknown"
34016 tst_allow_getifaddrs="unknown"
34017 #
34018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
34019$as_echo_n "checking if getifaddrs can be linked... " >&6; }
34020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34021/* end confdefs.h. */
34022
34023
34024#define getifaddrs innocuous_getifaddrs
34025#ifdef __STDC__
34026# include <limits.h>
34027#else
34028# include <assert.h>
34029#endif
34030#undef getifaddrs
34031#ifdef __cplusplus
34032extern "C"
34033#endif
34034char getifaddrs ();
34035#if defined __stub_getifaddrs || defined __stub___getifaddrs
34036choke me
34037#endif
34038
34039int main (void)
34040{
34041return getifaddrs ();
34042 ;
34043 return 0;
34044}
34045
34046_ACEOF
34047if ac_fn_c_try_link "$LINENO"; then :
34048
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34050$as_echo "yes" >&6; }
34051 tst_links_getifaddrs="yes"
34052
34053else
34054
34055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34056$as_echo "no" >&6; }
34057 tst_links_getifaddrs="no"
34058
34059fi
34060rm -f core conftest.err conftest.$ac_objext \
34061 conftest$ac_exeext conftest.$ac_ext
34062 #
34063 if test "$tst_links_getifaddrs" = "yes"; then
34064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
34065$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
34066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34067/* end confdefs.h. */
34068
34069 $curl_includes_ifaddrs
34070
34071_ACEOF
34072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34073 $EGREP "getifaddrs" >/dev/null 2>&1; then :
34074
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34076$as_echo "yes" >&6; }
34077 tst_proto_getifaddrs="yes"
34078
34079else
34080
34081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34082$as_echo "no" >&6; }
34083 tst_proto_getifaddrs="no"
34084
34085fi
34086rm -f conftest*
34087
34088 fi
34089 #
34090 if test "$tst_proto_getifaddrs" = "yes"; then
34091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34092$as_echo_n "checking if getifaddrs is compilable... " >&6; }
34093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34094/* end confdefs.h. */
34095
34096
34097 $curl_includes_ifaddrs
34098
34099int main (void)
34100{
34101
34102 if(0 != getifaddrs(0))
34103 return 1;
34104
34105 ;
34106 return 0;
34107}
34108
34109_ACEOF
34110if ac_fn_c_try_compile "$LINENO"; then :
34111
34112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34113$as_echo "yes" >&6; }
34114 tst_compi_getifaddrs="yes"
34115
34116else
34117
34118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34119$as_echo "no" >&6; }
34120 tst_compi_getifaddrs="no"
34121
34122fi
34123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34124 fi
34125 #
34126 if test "x$cross_compiling" != "xyes" &&
34127 test "$tst_compi_getifaddrs" = "yes"; then
34128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34129$as_echo_n "checking if getifaddrs seems to work... " >&6; }
34130 if test "$cross_compiling" = yes; then :
34131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34133as_fn_error $? "cannot run test program while cross compiling
34134See \`config.log' for more details" "$LINENO" 5; }
34135else
34136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34137/* end confdefs.h. */
34138
34139
34140 $curl_includes_stdlib
34141 $curl_includes_ifaddrs
34142
34143int main (void)
34144{
34145
34146 struct ifaddrs *ifa = 0;
34147 int error;
34148
34149 error = getifaddrs(&ifa);
34150 if(error || !ifa)
34151 exit(1); /* fail */
34152 else
34153 exit(0);
34154
34155 ;
34156 return 0;
34157}
34158
34159_ACEOF
34160if ac_fn_c_try_run "$LINENO"; then :
34161
34162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34163$as_echo "yes" >&6; }
34164 tst_works_getifaddrs="yes"
34165
34166else
34167
34168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34169$as_echo "no" >&6; }
34170 tst_works_getifaddrs="no"
34171
34172fi
34173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34174 conftest.$ac_objext conftest.beam conftest.$ac_ext
34175fi
34176
34177 fi
34178 #
34179 if test "$tst_compi_getifaddrs" = "yes" &&
34180 test "$tst_works_getifaddrs" != "no"; then
34181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34182$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34183 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34185$as_echo "yes" >&6; }
34186 tst_allow_getifaddrs="yes"
34187 else
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34189$as_echo "no" >&6; }
34190 tst_allow_getifaddrs="no"
34191 fi
34192 fi
34193 #
34194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34195$as_echo_n "checking if getifaddrs might be used... " >&6; }
34196 if test "$tst_links_getifaddrs" = "yes" &&
34197 test "$tst_proto_getifaddrs" = "yes" &&
34198 test "$tst_compi_getifaddrs" = "yes" &&
34199 test "$tst_allow_getifaddrs" = "yes" &&
34200 test "$tst_works_getifaddrs" != "no"; then
34201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34202$as_echo "yes" >&6; }
34203
34204cat >>confdefs.h <<_ACEOF
34205#define HAVE_GETIFADDRS 1
34206_ACEOF
34207
34208 curl_cv_func_getifaddrs="yes"
34209 else
34210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34211$as_echo "no" >&6; }
34212 curl_cv_func_getifaddrs="no"
34213 fi
34214
34215
34216 #
34217 tst_links_getservbyport_r="unknown"
34218 tst_proto_getservbyport_r="unknown"
34219 tst_compi_getservbyport_r="unknown"
34220 tst_allow_getservbyport_r="unknown"
34221 tst_nargs_getservbyport_r="unknown"
34222 #
34223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34224$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34226/* end confdefs.h. */
34227
34228
34229#define getservbyport_r innocuous_getservbyport_r
34230#ifdef __STDC__
34231# include <limits.h>
34232#else
34233# include <assert.h>
34234#endif
34235#undef getservbyport_r
34236#ifdef __cplusplus
34237extern "C"
34238#endif
34239char getservbyport_r ();
34240#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34241choke me
34242#endif
34243
34244int main (void)
34245{
34246return getservbyport_r ();
34247 ;
34248 return 0;
34249}
34250
34251_ACEOF
34252if ac_fn_c_try_link "$LINENO"; then :
34253
34254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34255$as_echo "yes" >&6; }
34256 tst_links_getservbyport_r="yes"
34257
34258else
34259
34260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34261$as_echo "no" >&6; }
34262 tst_links_getservbyport_r="no"
34263
34264fi
34265rm -f core conftest.err conftest.$ac_objext \
34266 conftest$ac_exeext conftest.$ac_ext
34267 #
34268 if test "$tst_links_getservbyport_r" = "yes"; then
34269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34270$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34272/* end confdefs.h. */
34273
34274 $curl_includes_netdb
34275
34276_ACEOF
34277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34278 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34279
34280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34281$as_echo "yes" >&6; }
34282 tst_proto_getservbyport_r="yes"
34283
34284else
34285
34286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34287$as_echo "no" >&6; }
34288 tst_proto_getservbyport_r="no"
34289
34290fi
34291rm -f conftest*
34292
34293 fi
34294 #
34295 if test "$tst_proto_getservbyport_r" = "yes"; then
34296 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34298$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34300/* end confdefs.h. */
34301
34302
34303 $curl_includes_netdb
34304
34305int main (void)
34306{
34307
34308 if(0 != getservbyport_r(0, 0, 0, 0))
34309 return 1;
34310
34311 ;
34312 return 0;
34313}
34314
34315_ACEOF
34316if ac_fn_c_try_compile "$LINENO"; then :
34317
34318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34319$as_echo "yes" >&6; }
34320 tst_compi_getservbyport_r="yes"
34321 tst_nargs_getservbyport_r="4"
34322
34323else
34324
34325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34326$as_echo "no" >&6; }
34327 tst_compi_getservbyport_r="no"
34328
34329fi
34330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34331 fi
34332 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34334$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34336/* end confdefs.h. */
34337
34338
34339 $curl_includes_netdb
34340
34341int main (void)
34342{
34343
34344 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34345 return 1;
34346
34347 ;
34348 return 0;
34349}
34350
34351_ACEOF
34352if ac_fn_c_try_compile "$LINENO"; then :
34353
34354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34355$as_echo "yes" >&6; }
34356 tst_compi_getservbyport_r="yes"
34357 tst_nargs_getservbyport_r="5"
34358
34359else
34360
34361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34362$as_echo "no" >&6; }
34363 tst_compi_getservbyport_r="no"
34364
34365fi
34366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34367 fi
34368 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34370$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34372/* end confdefs.h. */
34373
34374
34375 $curl_includes_netdb
34376
34377int main (void)
34378{
34379
34380 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34381 return 1;
34382
34383 ;
34384 return 0;
34385}
34386
34387_ACEOF
34388if ac_fn_c_try_compile "$LINENO"; then :
34389
34390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34391$as_echo "yes" >&6; }
34392 tst_compi_getservbyport_r="yes"
34393 tst_nargs_getservbyport_r="6"
34394
34395else
34396
34397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34398$as_echo "no" >&6; }
34399 tst_compi_getservbyport_r="no"
34400
34401fi
34402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 fi
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34405$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34406 if test "$tst_compi_getservbyport_r" = "yes"; then
34407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34408$as_echo "yes" >&6; }
34409 else
34410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34411$as_echo "no" >&6; }
34412 fi
34413 fi
34414 #
34415 if test "$tst_compi_getservbyport_r" = "yes"; then
34416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34417$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34418 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34420$as_echo "yes" >&6; }
34421 tst_allow_getservbyport_r="yes"
34422 else
34423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34424$as_echo "no" >&6; }
34425 tst_allow_getservbyport_r="no"
34426 fi
34427 fi
34428 #
34429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34430$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34431 if test "$tst_links_getservbyport_r" = "yes" &&
34432 test "$tst_proto_getservbyport_r" = "yes" &&
34433 test "$tst_compi_getservbyport_r" = "yes" &&
34434 test "$tst_allow_getservbyport_r" = "yes"; then
34435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34436$as_echo "yes" >&6; }
34437
34438cat >>confdefs.h <<_ACEOF
34439#define HAVE_GETSERVBYPORT_R 1
34440_ACEOF
34441
34442
34443cat >>confdefs.h <<_ACEOF
34444#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34445_ACEOF
34446
34447 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34448
34449$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34450
34451 else
34452
34453$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34454
34455 fi
34456 curl_cv_func_getservbyport_r="yes"
34457 else
34458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34459$as_echo "no" >&6; }
34460 curl_cv_func_getservbyport_r="no"
34461 fi
34462
34463
34464curl_includes_time="\
34465/* includes start */
34466#ifdef HAVE_SYS_TYPES_H
34467# include <sys/types.h>
34468#endif
34469#ifdef HAVE_SYS_TIME_H
34470# include <sys/time.h>
34471# ifdef TIME_WITH_SYS_TIME
34472# include <time.h>
34473# endif
34474#else
34475# ifdef HAVE_TIME_H
34476# include <time.h>
34477# endif
34478#endif
34479/* includes end */"
34480 for ac_header in sys/types.h sys/time.h time.h
34481do :
34482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34483ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34484"
34485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34486 cat >>confdefs.h <<_ACEOF
34487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34488_ACEOF
34489
34490fi
34491
34492done
34493
34494
34495
34496 #
34497 tst_links_gmtime_r="unknown"
34498 tst_proto_gmtime_r="unknown"
34499 tst_compi_gmtime_r="unknown"
34500 tst_works_gmtime_r="unknown"
34501 tst_allow_gmtime_r="unknown"
34502 #
34503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34504$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34506/* end confdefs.h. */
34507
34508
34509#define gmtime_r innocuous_gmtime_r
34510#ifdef __STDC__
34511# include <limits.h>
34512#else
34513# include <assert.h>
34514#endif
34515#undef gmtime_r
34516#ifdef __cplusplus
34517extern "C"
34518#endif
34519char gmtime_r ();
34520#if defined __stub_gmtime_r || defined __stub___gmtime_r
34521choke me
34522#endif
34523
34524int main (void)
34525{
34526return gmtime_r ();
34527 ;
34528 return 0;
34529}
34530
34531_ACEOF
34532if ac_fn_c_try_link "$LINENO"; then :
34533
34534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34535$as_echo "yes" >&6; }
34536 tst_links_gmtime_r="yes"
34537
34538else
34539
34540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34541$as_echo "no" >&6; }
34542 tst_links_gmtime_r="no"
34543
34544fi
34545rm -f core conftest.err conftest.$ac_objext \
34546 conftest$ac_exeext conftest.$ac_ext
34547 #
34548 if test "$tst_links_gmtime_r" = "yes"; then
34549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34550$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34552/* end confdefs.h. */
34553
34554 $curl_includes_time
34555
34556_ACEOF
34557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34558 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34559
34560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34561$as_echo "yes" >&6; }
34562 tst_proto_gmtime_r="yes"
34563
34564else
34565
34566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34567$as_echo "no" >&6; }
34568 tst_proto_gmtime_r="no"
34569
34570fi
34571rm -f conftest*
34572
34573 fi
34574 #
34575 if test "$tst_proto_gmtime_r" = "yes"; then
34576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34577$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34579/* end confdefs.h. */
34580
34581
34582 $curl_includes_time
34583
34584int main (void)
34585{
34586
34587 if(0 != gmtime_r(0, 0))
34588 return 1;
34589
34590 ;
34591 return 0;
34592}
34593
34594_ACEOF
34595if ac_fn_c_try_compile "$LINENO"; then :
34596
34597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34598$as_echo "yes" >&6; }
34599 tst_compi_gmtime_r="yes"
34600
34601else
34602
34603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34604$as_echo "no" >&6; }
34605 tst_compi_gmtime_r="no"
34606
34607fi
34608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34609 fi
34610 #
34611 if test "x$cross_compiling" != "xyes" &&
34612 test "$tst_compi_gmtime_r" = "yes"; then
34613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34614$as_echo_n "checking if gmtime_r seems to work... " >&6; }
34615 if test "$cross_compiling" = yes; then :
34616 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34617$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34618as_fn_error $? "cannot run test program while cross compiling
34619See \`config.log' for more details" "$LINENO" 5; }
34620else
34621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34622/* end confdefs.h. */
34623
34624
34625 $curl_includes_stdlib
34626 $curl_includes_time
34627
34628int main (void)
34629{
34630
34631 time_t local = 1170352587;
34632 struct tm *gmt = 0;
34633 struct tm result;
34634 gmt = gmtime_r(&local, &result);
34635 if(gmt)
34636 exit(0);
34637 else
34638 exit(1);
34639
34640 ;
34641 return 0;
34642}
34643
34644_ACEOF
34645if ac_fn_c_try_run "$LINENO"; then :
34646
34647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34648$as_echo "yes" >&6; }
34649 tst_works_gmtime_r="yes"
34650
34651else
34652
34653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34654$as_echo "no" >&6; }
34655 tst_works_gmtime_r="no"
34656
34657fi
34658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34659 conftest.$ac_objext conftest.beam conftest.$ac_ext
34660fi
34661
34662 fi
34663 #
34664 if test "$tst_compi_gmtime_r" = "yes" &&
34665 test "$tst_works_gmtime_r" != "no"; then
34666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34667$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34668 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34670$as_echo "yes" >&6; }
34671 tst_allow_gmtime_r="yes"
34672 else
34673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34674$as_echo "no" >&6; }
34675 tst_allow_gmtime_r="no"
34676 fi
34677 fi
34678 #
34679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34680$as_echo_n "checking if gmtime_r might be used... " >&6; }
34681 if test "$tst_links_gmtime_r" = "yes" &&
34682 test "$tst_proto_gmtime_r" = "yes" &&
34683 test "$tst_compi_gmtime_r" = "yes" &&
34684 test "$tst_allow_gmtime_r" = "yes" &&
34685 test "$tst_works_gmtime_r" != "no"; then
34686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34687$as_echo "yes" >&6; }
34688
34689cat >>confdefs.h <<_ACEOF
34690#define HAVE_GMTIME_R 1
34691_ACEOF
34692
34693 curl_cv_func_gmtime_r="yes"
34694 else
34695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34696$as_echo "no" >&6; }
34697 curl_cv_func_gmtime_r="no"
34698 fi
34699
34700
34701curl_includes_arpa_inet="\
34702/* includes start */
34703#ifdef HAVE_SYS_TYPES_H
34704# include <sys/types.h>
34705#endif
34706#ifdef HAVE_SYS_SOCKET_H
34707# include <sys/socket.h>
34708#endif
34709#ifdef HAVE_NETINET_IN_H
34710# include <netinet/in.h>
34711#endif
34712#ifdef HAVE_ARPA_INET_H
34713# include <arpa/inet.h>
34714#endif
34715#ifdef HAVE_WINSOCK2_H
34716#include <winsock2.h>
34717#include <ws2tcpip.h>
34718#endif
34719/* includes end */"
34720 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34721do :
34722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34723ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34724"
34725if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34726 cat >>confdefs.h <<_ACEOF
34727#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34728_ACEOF
34729
34730fi
34731
34732done
34733
34734
34735
34736 #
34737 tst_links_inet_ntoa_r="unknown"
34738 tst_proto_inet_ntoa_r="unknown"
34739 tst_compi_inet_ntoa_r="unknown"
34740 tst_allow_inet_ntoa_r="unknown"
34741 tst_nargs_inet_ntoa_r="unknown"
34742 #
34743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34744$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34746/* end confdefs.h. */
34747
34748
34749#define inet_ntoa_r innocuous_inet_ntoa_r
34750#ifdef __STDC__
34751# include <limits.h>
34752#else
34753# include <assert.h>
34754#endif
34755#undef inet_ntoa_r
34756#ifdef __cplusplus
34757extern "C"
34758#endif
34759char inet_ntoa_r ();
34760#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34761choke me
34762#endif
34763
34764int main (void)
34765{
34766return inet_ntoa_r ();
34767 ;
34768 return 0;
34769}
34770
34771_ACEOF
34772if ac_fn_c_try_link "$LINENO"; then :
34773
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34775$as_echo "yes" >&6; }
34776 tst_links_inet_ntoa_r="yes"
34777
34778else
34779
34780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34781$as_echo "no" >&6; }
34782 tst_links_inet_ntoa_r="no"
34783
34784fi
34785rm -f core conftest.err conftest.$ac_objext \
34786 conftest$ac_exeext conftest.$ac_ext
34787 #
34788 if test "$tst_links_inet_ntoa_r" = "yes"; then
34789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34790$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34792/* end confdefs.h. */
34793
34794 $curl_includes_arpa_inet
34795
34796_ACEOF
34797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34798 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34799
34800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34801$as_echo "yes" >&6; }
34802 tst_proto_inet_ntoa_r="yes"
34803
34804else
34805
34806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34807$as_echo "no" >&6; }
34808 tst_proto_inet_ntoa_r="no"
34809
34810fi
34811rm -f conftest*
34812
34813 fi
34814 #
34815 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34816 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34818$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34820/* end confdefs.h. */
34821
34822
34823 $curl_includes_arpa_inet
34824
34825int main (void)
34826{
34827
34828 struct in_addr addr;
34829 if(0 != inet_ntoa_r(addr, 0))
34830 return 1;
34831
34832 ;
34833 return 0;
34834}
34835
34836_ACEOF
34837if ac_fn_c_try_compile "$LINENO"; then :
34838
34839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34840$as_echo "yes" >&6; }
34841 tst_compi_inet_ntoa_r="yes"
34842 tst_nargs_inet_ntoa_r="2"
34843
34844else
34845
34846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34847$as_echo "no" >&6; }
34848 tst_compi_inet_ntoa_r="no"
34849
34850fi
34851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34852 fi
34853 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34855$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34857/* end confdefs.h. */
34858
34859
34860 $curl_includes_arpa_inet
34861
34862int main (void)
34863{
34864
34865 struct in_addr addr;
34866 if(0 != inet_ntoa_r(addr, 0, 0))
34867 return 1;
34868
34869 ;
34870 return 0;
34871}
34872
34873_ACEOF
34874if ac_fn_c_try_compile "$LINENO"; then :
34875
34876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34877$as_echo "yes" >&6; }
34878 tst_compi_inet_ntoa_r="yes"
34879 tst_nargs_inet_ntoa_r="3"
34880
34881else
34882
34883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34884$as_echo "no" >&6; }
34885 tst_compi_inet_ntoa_r="no"
34886
34887fi
34888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34889 fi
34890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34891$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34892 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34894$as_echo "yes" >&6; }
34895 else
34896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34897$as_echo "no" >&6; }
34898 fi
34899 fi
34900 #
34901 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34903$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34904 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34906$as_echo "yes" >&6; }
34907 tst_allow_inet_ntoa_r="yes"
34908 else
34909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34910$as_echo "no" >&6; }
34911 tst_allow_inet_ntoa_r="no"
34912 fi
34913 fi
34914 #
34915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34916$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34917 if test "$tst_links_inet_ntoa_r" = "yes" &&
34918 test "$tst_proto_inet_ntoa_r" = "yes" &&
34919 test "$tst_compi_inet_ntoa_r" = "yes" &&
34920 test "$tst_allow_inet_ntoa_r" = "yes"; then
34921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34922$as_echo "yes" >&6; }
34923
34924cat >>confdefs.h <<_ACEOF
34925#define HAVE_INET_NTOA_R 1
34926_ACEOF
34927
34928 #
34929 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34930
34931$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34932
34933 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34934
34935$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34936
34937 fi
34938 #
34939 curl_cv_func_inet_ntoa_r="yes"
34940 else
34941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34942$as_echo "no" >&6; }
34943 curl_cv_func_inet_ntoa_r="no"
34944 fi
34945
34946
34947 #
34948 tst_links_inet_ntop="unknown"
34949 tst_proto_inet_ntop="unknown"
34950 tst_compi_inet_ntop="unknown"
34951 tst_works_inet_ntop="unknown"
34952 tst_allow_inet_ntop="unknown"
34953 #
34954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34955$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34957/* end confdefs.h. */
34958
34959
34960#define inet_ntop innocuous_inet_ntop
34961#ifdef __STDC__
34962# include <limits.h>
34963#else
34964# include <assert.h>
34965#endif
34966#undef inet_ntop
34967#ifdef __cplusplus
34968extern "C"
34969#endif
34970char inet_ntop ();
34971#if defined __stub_inet_ntop || defined __stub___inet_ntop
34972choke me
34973#endif
34974
34975int main (void)
34976{
34977return inet_ntop ();
34978 ;
34979 return 0;
34980}
34981
34982_ACEOF
34983if ac_fn_c_try_link "$LINENO"; then :
34984
34985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34986$as_echo "yes" >&6; }
34987 tst_links_inet_ntop="yes"
34988
34989else
34990
34991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34992$as_echo "no" >&6; }
34993 tst_links_inet_ntop="no"
34994
34995fi
34996rm -f core conftest.err conftest.$ac_objext \
34997 conftest$ac_exeext conftest.$ac_ext
34998 #
34999 if test "$tst_links_inet_ntop" = "yes"; then
35000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
35001$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
35002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35003/* end confdefs.h. */
35004
35005 $curl_includes_arpa_inet
35006
35007_ACEOF
35008if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35009 $EGREP "inet_ntop" >/dev/null 2>&1; then :
35010
35011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35012$as_echo "yes" >&6; }
35013 tst_proto_inet_ntop="yes"
35014
35015else
35016
35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35018$as_echo "no" >&6; }
35019 tst_proto_inet_ntop="no"
35020
35021fi
35022rm -f conftest*
35023
35024 fi
35025 #
35026 if test "$tst_proto_inet_ntop" = "yes"; then
35027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
35028$as_echo_n "checking if inet_ntop is compilable... " >&6; }
35029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35030/* end confdefs.h. */
35031
35032
35033 $curl_includes_arpa_inet
35034
35035int main (void)
35036{
35037
35038 if(0 != inet_ntop(0, 0, 0, 0))
35039 return 1;
35040
35041 ;
35042 return 0;
35043}
35044
35045_ACEOF
35046if ac_fn_c_try_compile "$LINENO"; then :
35047
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35049$as_echo "yes" >&6; }
35050 tst_compi_inet_ntop="yes"
35051
35052else
35053
35054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35055$as_echo "no" >&6; }
35056 tst_compi_inet_ntop="no"
35057
35058fi
35059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35060 fi
35061 #
35062 if test "x$cross_compiling" != "xyes" &&
35063 test "$tst_compi_inet_ntop" = "yes"; then
35064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
35065$as_echo_n "checking if inet_ntop seems to work... " >&6; }
35066 if test "$cross_compiling" = yes; then :
35067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35069as_fn_error $? "cannot run test program while cross compiling
35070See \`config.log' for more details" "$LINENO" 5; }
35071else
35072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35073/* end confdefs.h. */
35074
35075
35076 $curl_includes_stdlib
35077 $curl_includes_arpa_inet
35078 $curl_includes_string
35079
35080int main (void)
35081{
35082
35083 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35084 char ipv4res[sizeof "255.255.255.255"];
35085 unsigned char ipv6a[26];
35086 unsigned char ipv4a[5];
35087 char *ipv6ptr = 0;
35088 char *ipv4ptr = 0;
35089 /* - */
35090 ipv4res[0] = '\0';
35091 ipv4a[0] = 0xc0;
35092 ipv4a[1] = 0xa8;
35093 ipv4a[2] = 0x64;
35094 ipv4a[3] = 0x01;
35095 ipv4a[4] = 0x01;
35096 /* - */
35097 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35098 if(!ipv4ptr)
35099 exit(1); /* fail */
35100 if(ipv4ptr != ipv4res)
35101 exit(1); /* fail */
35102 if(!ipv4ptr[0])
35103 exit(1); /* fail */
35104 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35105 exit(1); /* fail */
35106 /* - */
35107 ipv6res[0] = '\0';
35108 memset(ipv6a, 0, sizeof(ipv6a));
35109 ipv6a[0] = 0xfe;
35110 ipv6a[1] = 0x80;
35111 ipv6a[8] = 0x02;
35112 ipv6a[9] = 0x14;
35113 ipv6a[10] = 0x4f;
35114 ipv6a[11] = 0xff;
35115 ipv6a[12] = 0xfe;
35116 ipv6a[13] = 0x0b;
35117 ipv6a[14] = 0x76;
35118 ipv6a[15] = 0xc8;
35119 ipv6a[25] = 0x01;
35120 /* - */
35121 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35122 if(!ipv6ptr)
35123 exit(1); /* fail */
35124 if(ipv6ptr != ipv6res)
35125 exit(1); /* fail */
35126 if(!ipv6ptr[0])
35127 exit(1); /* fail */
35128 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35129 exit(1); /* fail */
35130 /* - */
35131 exit(0);
35132
35133 ;
35134 return 0;
35135}
35136
35137_ACEOF
35138if ac_fn_c_try_run "$LINENO"; then :
35139
35140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35141$as_echo "yes" >&6; }
35142 tst_works_inet_ntop="yes"
35143
35144else
35145
35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35147$as_echo "no" >&6; }
35148 tst_works_inet_ntop="no"
35149
35150fi
35151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35152 conftest.$ac_objext conftest.beam conftest.$ac_ext
35153fi
35154
35155 fi
35156 #
35157 if test "$tst_compi_inet_ntop" = "yes" &&
35158 test "$tst_works_inet_ntop" != "no"; then
35159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35160$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35161 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35163$as_echo "yes" >&6; }
35164 tst_allow_inet_ntop="yes"
35165 else
35166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35167$as_echo "no" >&6; }
35168 tst_allow_inet_ntop="no"
35169 fi
35170 fi
35171 #
35172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35173$as_echo_n "checking if inet_ntop might be used... " >&6; }
35174 if test "$tst_links_inet_ntop" = "yes" &&
35175 test "$tst_proto_inet_ntop" = "yes" &&
35176 test "$tst_compi_inet_ntop" = "yes" &&
35177 test "$tst_allow_inet_ntop" = "yes" &&
35178 test "$tst_works_inet_ntop" != "no"; then
35179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35180$as_echo "yes" >&6; }
35181
35182cat >>confdefs.h <<_ACEOF
35183#define HAVE_INET_NTOP 1
35184_ACEOF
35185
35186 curl_cv_func_inet_ntop="yes"
35187 else
35188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35189$as_echo "no" >&6; }
35190 curl_cv_func_inet_ntop="no"
35191 fi
35192
35193
35194 #
35195 tst_links_inet_pton="unknown"
35196 tst_proto_inet_pton="unknown"
35197 tst_compi_inet_pton="unknown"
35198 tst_works_inet_pton="unknown"
35199 tst_allow_inet_pton="unknown"
35200 #
35201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35202$as_echo_n "checking if inet_pton can be linked... " >&6; }
35203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35204/* end confdefs.h. */
35205
35206
35207#define inet_pton innocuous_inet_pton
35208#ifdef __STDC__
35209# include <limits.h>
35210#else
35211# include <assert.h>
35212#endif
35213#undef inet_pton
35214#ifdef __cplusplus
35215extern "C"
35216#endif
35217char inet_pton ();
35218#if defined __stub_inet_pton || defined __stub___inet_pton
35219choke me
35220#endif
35221
35222int main (void)
35223{
35224return inet_pton ();
35225 ;
35226 return 0;
35227}
35228
35229_ACEOF
35230if ac_fn_c_try_link "$LINENO"; then :
35231
35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35233$as_echo "yes" >&6; }
35234 tst_links_inet_pton="yes"
35235
35236else
35237
35238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35239$as_echo "no" >&6; }
35240 tst_links_inet_pton="no"
35241
35242fi
35243rm -f core conftest.err conftest.$ac_objext \
35244 conftest$ac_exeext conftest.$ac_ext
35245 #
35246 if test "$tst_links_inet_pton" = "yes"; then
35247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35248$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35250/* end confdefs.h. */
35251
35252 $curl_includes_arpa_inet
35253
35254_ACEOF
35255if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35256 $EGREP "inet_pton" >/dev/null 2>&1; then :
35257
35258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35259$as_echo "yes" >&6; }
35260 tst_proto_inet_pton="yes"
35261
35262else
35263
35264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35265$as_echo "no" >&6; }
35266 tst_proto_inet_pton="no"
35267
35268fi
35269rm -f conftest*
35270
35271 fi
35272 #
35273 if test "$tst_proto_inet_pton" = "yes"; then
35274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35275$as_echo_n "checking if inet_pton is compilable... " >&6; }
35276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35277/* end confdefs.h. */
35278
35279
35280 $curl_includes_arpa_inet
35281
35282int main (void)
35283{
35284
35285 if(0 != inet_pton(0, 0, 0))
35286 return 1;
35287
35288 ;
35289 return 0;
35290}
35291
35292_ACEOF
35293if ac_fn_c_try_compile "$LINENO"; then :
35294
35295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35296$as_echo "yes" >&6; }
35297 tst_compi_inet_pton="yes"
35298
35299else
35300
35301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35302$as_echo "no" >&6; }
35303 tst_compi_inet_pton="no"
35304
35305fi
35306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35307 fi
35308 #
35309 if test "x$cross_compiling" != "xyes" &&
35310 test "$tst_compi_inet_pton" = "yes"; then
35311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35312$as_echo_n "checking if inet_pton seems to work... " >&6; }
35313 if test "$cross_compiling" = yes; then :
35314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35316as_fn_error $? "cannot run test program while cross compiling
35317See \`config.log' for more details" "$LINENO" 5; }
35318else
35319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35320/* end confdefs.h. */
35321
35322
35323 $curl_includes_stdlib
35324 $curl_includes_arpa_inet
35325 $curl_includes_string
35326
35327int main (void)
35328{
35329
35330 unsigned char ipv6a[16+1];
35331 unsigned char ipv4a[4+1];
35332 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35333 const char *ipv4src = "192.168.100.1";
35334 /* - */
35335 memset(ipv4a, 1, sizeof(ipv4a));
35336 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35337 exit(1); /* fail */
35338 /* - */
35339 if( (ipv4a[0] != 0xc0) ||
35340 (ipv4a[1] != 0xa8) ||
35341 (ipv4a[2] != 0x64) ||
35342 (ipv4a[3] != 0x01) ||
35343 (ipv4a[4] != 0x01) )
35344 exit(1); /* fail */
35345 /* - */
35346 memset(ipv6a, 1, sizeof(ipv6a));
35347 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35348 exit(1); /* fail */
35349 /* - */
35350 if( (ipv6a[0] != 0xfe) ||
35351 (ipv6a[1] != 0x80) ||
35352 (ipv6a[8] != 0x02) ||
35353 (ipv6a[9] != 0x14) ||
35354 (ipv6a[10] != 0x4f) ||
35355 (ipv6a[11] != 0xff) ||
35356 (ipv6a[12] != 0xfe) ||
35357 (ipv6a[13] != 0x0b) ||
35358 (ipv6a[14] != 0x76) ||
35359 (ipv6a[15] != 0xc8) ||
35360 (ipv6a[16] != 0x01) )
35361 exit(1); /* fail */
35362 /* - */
35363 if( (ipv6a[2] != 0x0) ||
35364 (ipv6a[3] != 0x0) ||
35365 (ipv6a[4] != 0x0) ||
35366 (ipv6a[5] != 0x0) ||
35367 (ipv6a[6] != 0x0) ||
35368 (ipv6a[7] != 0x0) )
35369 exit(1); /* fail */
35370 /* - */
35371 exit(0);
35372
35373 ;
35374 return 0;
35375}
35376
35377_ACEOF
35378if ac_fn_c_try_run "$LINENO"; then :
35379
35380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35381$as_echo "yes" >&6; }
35382 tst_works_inet_pton="yes"
35383
35384else
35385
35386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35387$as_echo "no" >&6; }
35388 tst_works_inet_pton="no"
35389
35390fi
35391rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35392 conftest.$ac_objext conftest.beam conftest.$ac_ext
35393fi
35394
35395 fi
35396 #
35397 if test "$tst_compi_inet_pton" = "yes" &&
35398 test "$tst_works_inet_pton" != "no"; then
35399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35400$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35401 if test "x$curl_disallow_inet_pton" != "xyes"; then
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35403$as_echo "yes" >&6; }
35404 tst_allow_inet_pton="yes"
35405 else
35406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35407$as_echo "no" >&6; }
35408 tst_allow_inet_pton="no"
35409 fi
35410 fi
35411 #
35412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35413$as_echo_n "checking if inet_pton might be used... " >&6; }
35414 if test "$tst_links_inet_pton" = "yes" &&
35415 test "$tst_proto_inet_pton" = "yes" &&
35416 test "$tst_compi_inet_pton" = "yes" &&
35417 test "$tst_allow_inet_pton" = "yes" &&
35418 test "$tst_works_inet_pton" != "no"; then
35419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35420$as_echo "yes" >&6; }
35421
35422cat >>confdefs.h <<_ACEOF
35423#define HAVE_INET_PTON 1
35424_ACEOF
35425
35426 curl_cv_func_inet_pton="yes"
35427 else
35428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35429$as_echo "no" >&6; }
35430 curl_cv_func_inet_pton="no"
35431 fi
35432
35433
35434curl_includes_stropts="\
35435/* includes start */
35436#ifdef HAVE_SYS_TYPES_H
35437# include <sys/types.h>
35438#endif
35439#ifdef HAVE_UNISTD_H
35440# include <unistd.h>
35441#endif
35442#ifdef HAVE_SYS_SOCKET_H
35443# include <sys/socket.h>
35444#endif
35445#ifdef HAVE_SYS_IOCTL_H
35446# include <sys/ioctl.h>
35447#endif
35448#ifdef HAVE_STROPTS_H
35449# include <stropts.h>
35450#endif
35451/* includes end */"
35452 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35453do :
35454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35455ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35456"
35457if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35458 cat >>confdefs.h <<_ACEOF
35459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35460_ACEOF
35461
35462fi
35463
35464done
35465
35466
35467
35468 #
35469 tst_links_ioctl="unknown"
35470 tst_proto_ioctl="unknown"
35471 tst_compi_ioctl="unknown"
35472 tst_allow_ioctl="unknown"
35473 #
35474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35475$as_echo_n "checking if ioctl can be linked... " >&6; }
35476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35477/* end confdefs.h. */
35478
35479
35480#define ioctl innocuous_ioctl
35481#ifdef __STDC__
35482# include <limits.h>
35483#else
35484# include <assert.h>
35485#endif
35486#undef ioctl
35487#ifdef __cplusplus
35488extern "C"
35489#endif
35490char ioctl ();
35491#if defined __stub_ioctl || defined __stub___ioctl
35492choke me
35493#endif
35494
35495int main (void)
35496{
35497return ioctl ();
35498 ;
35499 return 0;
35500}
35501
35502_ACEOF
35503if ac_fn_c_try_link "$LINENO"; then :
35504
35505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35506$as_echo "yes" >&6; }
35507 tst_links_ioctl="yes"
35508
35509else
35510
35511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35512$as_echo "no" >&6; }
35513 tst_links_ioctl="no"
35514
35515fi
35516rm -f core conftest.err conftest.$ac_objext \
35517 conftest$ac_exeext conftest.$ac_ext
35518 #
35519 if test "$tst_links_ioctl" = "yes"; then
35520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35521$as_echo_n "checking if ioctl is prototyped... " >&6; }
35522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35523/* end confdefs.h. */
35524
35525 $curl_includes_stropts
35526
35527_ACEOF
35528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35529 $EGREP "ioctl" >/dev/null 2>&1; then :
35530
35531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35532$as_echo "yes" >&6; }
35533 tst_proto_ioctl="yes"
35534
35535else
35536
35537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35538$as_echo "no" >&6; }
35539 tst_proto_ioctl="no"
35540
35541fi
35542rm -f conftest*
35543
35544 fi
35545 #
35546 if test "$tst_proto_ioctl" = "yes"; then
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35548$as_echo_n "checking if ioctl is compilable... " >&6; }
35549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35550/* end confdefs.h. */
35551
35552
35553 $curl_includes_stropts
35554
35555int main (void)
35556{
35557
35558 if(0 != ioctl(0, 0, 0))
35559 return 1;
35560
35561 ;
35562 return 0;
35563}
35564
35565_ACEOF
35566if ac_fn_c_try_compile "$LINENO"; then :
35567
35568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35569$as_echo "yes" >&6; }
35570 tst_compi_ioctl="yes"
35571
35572else
35573
35574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35575$as_echo "no" >&6; }
35576 tst_compi_ioctl="no"
35577
35578fi
35579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35580 fi
35581 #
35582 if test "$tst_compi_ioctl" = "yes"; then
35583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35584$as_echo_n "checking if ioctl usage allowed... " >&6; }
35585 if test "x$curl_disallow_ioctl" != "xyes"; then
35586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35587$as_echo "yes" >&6; }
35588 tst_allow_ioctl="yes"
35589 else
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35591$as_echo "no" >&6; }
35592 tst_allow_ioctl="no"
35593 fi
35594 fi
35595 #
35596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35597$as_echo_n "checking if ioctl might be used... " >&6; }
35598 if test "$tst_links_ioctl" = "yes" &&
35599 test "$tst_proto_ioctl" = "yes" &&
35600 test "$tst_compi_ioctl" = "yes" &&
35601 test "$tst_allow_ioctl" = "yes"; then
35602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35603$as_echo "yes" >&6; }
35604
35605cat >>confdefs.h <<_ACEOF
35606#define HAVE_IOCTL 1
35607_ACEOF
35608
35609 curl_cv_func_ioctl="yes"
35610
35611 #
35612 tst_compi_ioctl_fionbio="unknown"
35613 tst_allow_ioctl_fionbio="unknown"
35614 #
35615 if test "$curl_cv_func_ioctl" = "yes"; then
35616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35617$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35619/* end confdefs.h. */
35620
35621
35622 $curl_includes_stropts
35623
35624int main (void)
35625{
35626
35627 int flags = 0;
35628 if(0 != ioctl(0, FIONBIO, &flags))
35629 return 1;
35630
35631 ;
35632 return 0;
35633}
35634
35635_ACEOF
35636if ac_fn_c_try_compile "$LINENO"; then :
35637
35638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35639$as_echo "yes" >&6; }
35640 tst_compi_ioctl_fionbio="yes"
35641
35642else
35643
35644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35645$as_echo "no" >&6; }
35646 tst_compi_ioctl_fionbio="no"
35647
35648fi
35649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35650 fi
35651 #
35652 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35654$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35655 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35657$as_echo "yes" >&6; }
35658 tst_allow_ioctl_fionbio="yes"
35659 else
35660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35661$as_echo "no" >&6; }
35662 tst_allow_ioctl_fionbio="no"
35663 fi
35664 fi
35665 #
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35667$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35668 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35669 test "$tst_allow_ioctl_fionbio" = "yes"; then
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35671$as_echo "yes" >&6; }
35672
35673cat >>confdefs.h <<_ACEOF
35674#define HAVE_IOCTL_FIONBIO 1
35675_ACEOF
35676
35677 curl_cv_func_ioctl_fionbio="yes"
35678 else
35679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35680$as_echo "no" >&6; }
35681 curl_cv_func_ioctl_fionbio="no"
35682 fi
35683
35684
35685 #
35686 tst_compi_ioctl_siocgifaddr="unknown"
35687 tst_allow_ioctl_siocgifaddr="unknown"
35688 #
35689 if test "$curl_cv_func_ioctl" = "yes"; then
35690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35691$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35693/* end confdefs.h. */
35694
35695
35696 $curl_includes_stropts
35697 #include <net/if.h>
35698
35699int main (void)
35700{
35701
35702 struct ifreq ifr;
35703 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35704 return 1;
35705
35706 ;
35707 return 0;
35708}
35709
35710_ACEOF
35711if ac_fn_c_try_compile "$LINENO"; then :
35712
35713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35714$as_echo "yes" >&6; }
35715 tst_compi_ioctl_siocgifaddr="yes"
35716
35717else
35718
35719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35720$as_echo "no" >&6; }
35721 tst_compi_ioctl_siocgifaddr="no"
35722
35723fi
35724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35725 fi
35726 #
35727 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35729$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35730 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35732$as_echo "yes" >&6; }
35733 tst_allow_ioctl_siocgifaddr="yes"
35734 else
35735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35736$as_echo "no" >&6; }
35737 tst_allow_ioctl_siocgifaddr="no"
35738 fi
35739 fi
35740 #
35741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35742$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35743 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35744 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35746$as_echo "yes" >&6; }
35747
35748cat >>confdefs.h <<_ACEOF
35749#define HAVE_IOCTL_SIOCGIFADDR 1
35750_ACEOF
35751
35752 curl_cv_func_ioctl_siocgifaddr="yes"
35753 else
35754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35755$as_echo "no" >&6; }
35756 curl_cv_func_ioctl_siocgifaddr="no"
35757 fi
35758
35759 else
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35761$as_echo "no" >&6; }
35762 curl_cv_func_ioctl="no"
35763 fi
35764
35765
35766 #
35767 tst_links_ioctlsocket="unknown"
35768 tst_proto_ioctlsocket="unknown"
35769 tst_compi_ioctlsocket="unknown"
35770 tst_allow_ioctlsocket="unknown"
35771 #
35772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35773$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35775/* end confdefs.h. */
35776
35777
35778 $curl_includes_winsock2
35779
35780int main (void)
35781{
35782
35783 if(0 != ioctlsocket(0, 0, 0))
35784 return 1;
35785
35786 ;
35787 return 0;
35788}
35789
35790_ACEOF
35791if ac_fn_c_try_link "$LINENO"; then :
35792
35793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35794$as_echo "yes" >&6; }
35795 tst_links_ioctlsocket="yes"
35796
35797else
35798
35799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35800$as_echo "no" >&6; }
35801 tst_links_ioctlsocket="no"
35802
35803fi
35804rm -f core conftest.err conftest.$ac_objext \
35805 conftest$ac_exeext conftest.$ac_ext
35806 #
35807 if test "$tst_links_ioctlsocket" = "yes"; then
35808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35809$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35811/* end confdefs.h. */
35812
35813 $curl_includes_winsock2
35814
35815_ACEOF
35816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35817 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35818
35819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35820$as_echo "yes" >&6; }
35821 tst_proto_ioctlsocket="yes"
35822
35823else
35824
35825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35826$as_echo "no" >&6; }
35827 tst_proto_ioctlsocket="no"
35828
35829fi
35830rm -f conftest*
35831
35832 fi
35833 #
35834 if test "$tst_proto_ioctlsocket" = "yes"; then
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35836$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35838/* end confdefs.h. */
35839
35840
35841 $curl_includes_winsock2
35842
35843int main (void)
35844{
35845
35846 if(0 != ioctlsocket(0, 0, 0))
35847 return 1;
35848
35849 ;
35850 return 0;
35851}
35852
35853_ACEOF
35854if ac_fn_c_try_compile "$LINENO"; then :
35855
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35857$as_echo "yes" >&6; }
35858 tst_compi_ioctlsocket="yes"
35859
35860else
35861
35862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35863$as_echo "no" >&6; }
35864 tst_compi_ioctlsocket="no"
35865
35866fi
35867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35868 fi
35869 #
35870 if test "$tst_compi_ioctlsocket" = "yes"; then
35871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35872$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35873 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35875$as_echo "yes" >&6; }
35876 tst_allow_ioctlsocket="yes"
35877 else
35878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35879$as_echo "no" >&6; }
35880 tst_allow_ioctlsocket="no"
35881 fi
35882 fi
35883 #
35884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35885$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35886 if test "$tst_links_ioctlsocket" = "yes" &&
35887 test "$tst_proto_ioctlsocket" = "yes" &&
35888 test "$tst_compi_ioctlsocket" = "yes" &&
35889 test "$tst_allow_ioctlsocket" = "yes"; then
35890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35891$as_echo "yes" >&6; }
35892
35893cat >>confdefs.h <<_ACEOF
35894#define HAVE_IOCTLSOCKET 1
35895_ACEOF
35896
35897 curl_cv_func_ioctlsocket="yes"
35898
35899 #
35900 tst_compi_ioctlsocket_fionbio="unknown"
35901 tst_allow_ioctlsocket_fionbio="unknown"
35902 #
35903 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35905$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35907/* end confdefs.h. */
35908
35909
35910 $curl_includes_winsock2
35911
35912int main (void)
35913{
35914
35915 int flags = 0;
35916 if(0 != ioctlsocket(0, FIONBIO, &flags))
35917 return 1;
35918
35919 ;
35920 return 0;
35921}
35922
35923_ACEOF
35924if ac_fn_c_try_compile "$LINENO"; then :
35925
35926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35927$as_echo "yes" >&6; }
35928 tst_compi_ioctlsocket_fionbio="yes"
35929
35930else
35931
35932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35933$as_echo "no" >&6; }
35934 tst_compi_ioctlsocket_fionbio="no"
35935
35936fi
35937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35938 fi
35939 #
35940 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35942$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35943 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35945$as_echo "yes" >&6; }
35946 tst_allow_ioctlsocket_fionbio="yes"
35947 else
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35949$as_echo "no" >&6; }
35950 tst_allow_ioctlsocket_fionbio="no"
35951 fi
35952 fi
35953 #
35954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35955$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35956 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35957 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35959$as_echo "yes" >&6; }
35960
35961cat >>confdefs.h <<_ACEOF
35962#define HAVE_IOCTLSOCKET_FIONBIO 1
35963_ACEOF
35964
35965 curl_cv_func_ioctlsocket_fionbio="yes"
35966 else
35967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35968$as_echo "no" >&6; }
35969 curl_cv_func_ioctlsocket_fionbio="no"
35970 fi
35971
35972 else
35973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35974$as_echo "no" >&6; }
35975 curl_cv_func_ioctlsocket="no"
35976 fi
35977
35978
35979 #
35980 tst_links_ioctlsocket_camel="unknown"
35981 tst_proto_ioctlsocket_camel="unknown"
35982 tst_compi_ioctlsocket_camel="unknown"
35983 tst_allow_ioctlsocket_camel="unknown"
35984 #
35985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35986$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35988/* end confdefs.h. */
35989
35990
35991#define IoctlSocket innocuous_IoctlSocket
35992#ifdef __STDC__
35993# include <limits.h>
35994#else
35995# include <assert.h>
35996#endif
35997#undef IoctlSocket
35998#ifdef __cplusplus
35999extern "C"
36000#endif
36001char IoctlSocket ();
36002#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
36003choke me
36004#endif
36005
36006int main (void)
36007{
36008return IoctlSocket ();
36009 ;
36010 return 0;
36011}
36012
36013_ACEOF
36014if ac_fn_c_try_link "$LINENO"; then :
36015
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36017$as_echo "yes" >&6; }
36018 tst_links_ioctlsocket_camel="yes"
36019
36020else
36021
36022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36023$as_echo "no" >&6; }
36024 tst_links_ioctlsocket_camel="no"
36025
36026fi
36027rm -f core conftest.err conftest.$ac_objext \
36028 conftest$ac_exeext conftest.$ac_ext
36029 #
36030 if test "$tst_links_ioctlsocket_camel" = "yes"; then
36031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
36032$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
36033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36034/* end confdefs.h. */
36035
36036 $curl_includes_stropts
36037
36038_ACEOF
36039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36040 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
36041
36042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36043$as_echo "yes" >&6; }
36044 tst_proto_ioctlsocket_camel="yes"
36045
36046else
36047
36048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36049$as_echo "no" >&6; }
36050 tst_proto_ioctlsocket_camel="no"
36051
36052fi
36053rm -f conftest*
36054
36055 fi
36056 #
36057 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
36059$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
36060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36061/* end confdefs.h. */
36062
36063
36064 $curl_includes_stropts
36065
36066int main (void)
36067{
36068
36069 if(0 != IoctlSocket(0, 0, 0))
36070 return 1;
36071
36072 ;
36073 return 0;
36074}
36075
36076_ACEOF
36077if ac_fn_c_try_compile "$LINENO"; then :
36078
36079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36080$as_echo "yes" >&6; }
36081 tst_compi_ioctlsocket_camel="yes"
36082
36083else
36084
36085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36086$as_echo "no" >&6; }
36087 tst_compi_ioctlsocket_camel="no"
36088
36089fi
36090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36091 fi
36092 #
36093 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36095$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36096 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36098$as_echo "yes" >&6; }
36099 tst_allow_ioctlsocket_camel="yes"
36100 else
36101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36102$as_echo "no" >&6; }
36103 tst_allow_ioctlsocket_camel="no"
36104 fi
36105 fi
36106 #
36107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36108$as_echo_n "checking if IoctlSocket might be used... " >&6; }
36109 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36110 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36111 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36112 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36114$as_echo "yes" >&6; }
36115
36116cat >>confdefs.h <<_ACEOF
36117#define HAVE_IOCTLSOCKET_CAMEL 1
36118_ACEOF
36119
36120 curl_cv_func_ioctlsocket_camel="yes"
36121
36122 #
36123 tst_compi_ioctlsocket_camel_fionbio="unknown"
36124 tst_allow_ioctlsocket_camel_fionbio="unknown"
36125 #
36126 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36128$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36130/* end confdefs.h. */
36131
36132
36133 $curl_includes_stropts
36134
36135int main (void)
36136{
36137
36138 long flags = 0;
36139 if(0 != ioctlsocket(0, FIONBIO, &flags))
36140 return 1;
36141
36142 ;
36143 return 0;
36144}
36145
36146_ACEOF
36147if ac_fn_c_try_compile "$LINENO"; then :
36148
36149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36150$as_echo "yes" >&6; }
36151 tst_compi_ioctlsocket_camel_fionbio="yes"
36152
36153else
36154
36155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36156$as_echo "no" >&6; }
36157 tst_compi_ioctlsocket_camel_fionbio="no"
36158
36159fi
36160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36161 fi
36162 #
36163 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36165$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36166 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36168$as_echo "yes" >&6; }
36169 tst_allow_ioctlsocket_camel_fionbio="yes"
36170 else
36171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36172$as_echo "no" >&6; }
36173 tst_allow_ioctlsocket_camel_fionbio="no"
36174 fi
36175 fi
36176 #
36177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36178$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36179 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36180 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36182$as_echo "yes" >&6; }
36183
36184cat >>confdefs.h <<_ACEOF
36185#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36186_ACEOF
36187
36188 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36189 else
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36191$as_echo "no" >&6; }
36192 curl_cv_func_ioctlsocket_camel_fionbio="no"
36193 fi
36194
36195 else
36196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36197$as_echo "no" >&6; }
36198 curl_cv_func_ioctlsocket_camel="no"
36199 fi
36200
36201
36202 #
36203 tst_links_localtime_r="unknown"
36204 tst_proto_localtime_r="unknown"
36205 tst_compi_localtime_r="unknown"
36206 tst_works_localtime_r="unknown"
36207 tst_allow_localtime_r="unknown"
36208 #
36209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36210$as_echo_n "checking if localtime_r can be linked... " >&6; }
36211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36212/* end confdefs.h. */
36213
36214
36215#define localtime_r innocuous_localtime_r
36216#ifdef __STDC__
36217# include <limits.h>
36218#else
36219# include <assert.h>
36220#endif
36221#undef localtime_r
36222#ifdef __cplusplus
36223extern "C"
36224#endif
36225char localtime_r ();
36226#if defined __stub_localtime_r || defined __stub___localtime_r
36227choke me
36228#endif
36229
36230int main (void)
36231{
36232return localtime_r ();
36233 ;
36234 return 0;
36235}
36236
36237_ACEOF
36238if ac_fn_c_try_link "$LINENO"; then :
36239
36240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36241$as_echo "yes" >&6; }
36242 tst_links_localtime_r="yes"
36243
36244else
36245
36246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36247$as_echo "no" >&6; }
36248 tst_links_localtime_r="no"
36249
36250fi
36251rm -f core conftest.err conftest.$ac_objext \
36252 conftest$ac_exeext conftest.$ac_ext
36253 #
36254 if test "$tst_links_localtime_r" = "yes"; then
36255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36256$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36258/* end confdefs.h. */
36259
36260 $curl_includes_time
36261
36262_ACEOF
36263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36264 $EGREP "localtime_r" >/dev/null 2>&1; then :
36265
36266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36267$as_echo "yes" >&6; }
36268 tst_proto_localtime_r="yes"
36269
36270else
36271
36272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36273$as_echo "no" >&6; }
36274 tst_proto_localtime_r="no"
36275
36276fi
36277rm -f conftest*
36278
36279 fi
36280 #
36281 if test "$tst_proto_localtime_r" = "yes"; then
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36283$as_echo_n "checking if localtime_r is compilable... " >&6; }
36284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36285/* end confdefs.h. */
36286
36287
36288 $curl_includes_time
36289
36290int main (void)
36291{
36292
36293 if(0 != localtime_r(0, 0))
36294 return 1;
36295
36296 ;
36297 return 0;
36298}
36299
36300_ACEOF
36301if ac_fn_c_try_compile "$LINENO"; then :
36302
36303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36304$as_echo "yes" >&6; }
36305 tst_compi_localtime_r="yes"
36306
36307else
36308
36309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36310$as_echo "no" >&6; }
36311 tst_compi_localtime_r="no"
36312
36313fi
36314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36315 fi
36316 #
36317 if test "x$cross_compiling" != "xyes" &&
36318 test "$tst_compi_localtime_r" = "yes"; then
36319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36320$as_echo_n "checking if localtime_r seems to work... " >&6; }
36321 if test "$cross_compiling" = yes; then :
36322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36324as_fn_error $? "cannot run test program while cross compiling
36325See \`config.log' for more details" "$LINENO" 5; }
36326else
36327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36328/* end confdefs.h. */
36329
36330
36331 $curl_includes_stdlib
36332 $curl_includes_time
36333
36334int main (void)
36335{
36336
36337 time_t clock = 1170352587;
36338 struct tm *tmp = 0;
36339 struct tm result;
36340 tmp = localtime_r(&clock, &result);
36341 if(tmp)
36342 exit(0);
36343 else
36344 exit(1);
36345
36346 ;
36347 return 0;
36348}
36349
36350_ACEOF
36351if ac_fn_c_try_run "$LINENO"; then :
36352
36353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36354$as_echo "yes" >&6; }
36355 tst_works_localtime_r="yes"
36356
36357else
36358
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360$as_echo "no" >&6; }
36361 tst_works_localtime_r="no"
36362
36363fi
36364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36365 conftest.$ac_objext conftest.beam conftest.$ac_ext
36366fi
36367
36368 fi
36369 #
36370 if test "$tst_compi_localtime_r" = "yes" &&
36371 test "$tst_works_localtime_r" != "no"; then
36372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36373$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36374 if test "x$curl_disallow_localtime_r" != "xyes"; then
36375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36376$as_echo "yes" >&6; }
36377 tst_allow_localtime_r="yes"
36378 else
36379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36380$as_echo "no" >&6; }
36381 tst_allow_localtime_r="no"
36382 fi
36383 fi
36384 #
36385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36386$as_echo_n "checking if localtime_r might be used... " >&6; }
36387 if test "$tst_links_localtime_r" = "yes" &&
36388 test "$tst_proto_localtime_r" = "yes" &&
36389 test "$tst_compi_localtime_r" = "yes" &&
36390 test "$tst_allow_localtime_r" = "yes" &&
36391 test "$tst_works_localtime_r" != "no"; then
36392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36393$as_echo "yes" >&6; }
36394
36395cat >>confdefs.h <<_ACEOF
36396#define HAVE_LOCALTIME_R 1
36397_ACEOF
36398
36399 curl_cv_func_localtime_r="yes"
36400 else
36401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36402$as_echo "no" >&6; }
36403 curl_cv_func_localtime_r="no"
36404 fi
36405
36406
36407 #
36408 tst_links_memrchr="unknown"
36409 tst_macro_memrchr="unknown"
36410 tst_proto_memrchr="unknown"
36411 tst_compi_memrchr="unknown"
36412 tst_allow_memrchr="unknown"
36413 #
36414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36415$as_echo_n "checking if memrchr can be linked... " >&6; }
36416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36417/* end confdefs.h. */
36418
36419
36420#define memrchr innocuous_memrchr
36421#ifdef __STDC__
36422# include <limits.h>
36423#else
36424# include <assert.h>
36425#endif
36426#undef memrchr
36427#ifdef __cplusplus
36428extern "C"
36429#endif
36430char memrchr ();
36431#if defined __stub_memrchr || defined __stub___memrchr
36432choke me
36433#endif
36434
36435int main (void)
36436{
36437return memrchr ();
36438 ;
36439 return 0;
36440}
36441
36442_ACEOF
36443if ac_fn_c_try_link "$LINENO"; then :
36444
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36446$as_echo "yes" >&6; }
36447 tst_links_memrchr="yes"
36448
36449else
36450
36451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36452$as_echo "no" >&6; }
36453 tst_links_memrchr="no"
36454
36455fi
36456rm -f core conftest.err conftest.$ac_objext \
36457 conftest$ac_exeext conftest.$ac_ext
36458 #
36459 if test "$tst_links_memrchr" = "no"; then
36460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36461$as_echo_n "checking if memrchr seems a macro... " >&6; }
36462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36463/* end confdefs.h. */
36464
36465
36466 $curl_includes_string
36467
36468int main (void)
36469{
36470
36471 if(0 != memrchr(0, 0, 0))
36472 return 1;
36473
36474 ;
36475 return 0;
36476}
36477
36478_ACEOF
36479if ac_fn_c_try_link "$LINENO"; then :
36480
36481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36482$as_echo "yes" >&6; }
36483 tst_macro_memrchr="yes"
36484
36485else
36486
36487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36488$as_echo "no" >&6; }
36489 tst_macro_memrchr="no"
36490
36491fi
36492rm -f core conftest.err conftest.$ac_objext \
36493 conftest$ac_exeext conftest.$ac_ext
36494 fi
36495 #
36496 if test "$tst_links_memrchr" = "yes"; then
36497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36498$as_echo_n "checking if memrchr is prototyped... " >&6; }
36499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36500/* end confdefs.h. */
36501
36502 $curl_includes_string
36503
36504_ACEOF
36505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36506 $EGREP "memrchr" >/dev/null 2>&1; then :
36507
36508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36509$as_echo "yes" >&6; }
36510 tst_proto_memrchr="yes"
36511
36512else
36513
36514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36515$as_echo "no" >&6; }
36516 tst_proto_memrchr="no"
36517
36518fi
36519rm -f conftest*
36520
36521 fi
36522 #
36523 if test "$tst_proto_memrchr" = "yes" ||
36524 test "$tst_macro_memrchr" = "yes"; then
36525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36526$as_echo_n "checking if memrchr is compilable... " >&6; }
36527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36528/* end confdefs.h. */
36529
36530
36531 $curl_includes_string
36532
36533int main (void)
36534{
36535
36536 if(0 != memrchr(0, 0, 0))
36537 return 1;
36538
36539 ;
36540 return 0;
36541}
36542
36543_ACEOF
36544if ac_fn_c_try_compile "$LINENO"; then :
36545
36546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36547$as_echo "yes" >&6; }
36548 tst_compi_memrchr="yes"
36549
36550else
36551
36552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36553$as_echo "no" >&6; }
36554 tst_compi_memrchr="no"
36555
36556fi
36557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36558 fi
36559 #
36560 if test "$tst_compi_memrchr" = "yes"; then
36561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36562$as_echo_n "checking if memrchr usage allowed... " >&6; }
36563 if test "x$curl_disallow_memrchr" != "xyes"; then
36564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36565$as_echo "yes" >&6; }
36566 tst_allow_memrchr="yes"
36567 else
36568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36569$as_echo "no" >&6; }
36570 tst_allow_memrchr="no"
36571 fi
36572 fi
36573 #
36574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36575$as_echo_n "checking if memrchr might be used... " >&6; }
36576 if (test "$tst_proto_memrchr" = "yes" ||
36577 test "$tst_macro_memrchr" = "yes") &&
36578 test "$tst_compi_memrchr" = "yes" &&
36579 test "$tst_allow_memrchr" = "yes"; then
36580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36581$as_echo "yes" >&6; }
36582
36583cat >>confdefs.h <<_ACEOF
36584#define HAVE_MEMRCHR 1
36585_ACEOF
36586
36587 curl_cv_func_memrchr="yes"
36588 else
36589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36590$as_echo "no" >&6; }
36591 curl_cv_func_memrchr="no"
36592 fi
36593
36594
36595 #
36596 tst_links_poll="unknown"
36597 tst_proto_poll="unknown"
36598 tst_compi_poll="unknown"
36599 tst_works_poll="unknown"
36600 tst_allow_poll="unknown"
36601 #
36602 case $host_os in
36603 darwin*|interix*)
36604 curl_disallow_poll="yes"
36605 tst_compi_poll="no"
36606 ;;
36607 esac
36608 #
36609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36610$as_echo_n "checking if poll can be linked... " >&6; }
36611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36612/* end confdefs.h. */
36613
36614
36615 $curl_includes_poll
36616
36617int main (void)
36618{
36619
36620 if(0 != poll(0, 0, 0))
36621 return 1;
36622
36623 ;
36624 return 0;
36625}
36626
36627_ACEOF
36628if ac_fn_c_try_link "$LINENO"; then :
36629
36630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36631$as_echo "yes" >&6; }
36632 tst_links_poll="yes"
36633
36634else
36635
36636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36637$as_echo "no" >&6; }
36638 tst_links_poll="no"
36639
36640fi
36641rm -f core conftest.err conftest.$ac_objext \
36642 conftest$ac_exeext conftest.$ac_ext
36643 #
36644 if test "$tst_links_poll" = "yes"; then
36645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36646$as_echo_n "checking if poll is prototyped... " >&6; }
36647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36648/* end confdefs.h. */
36649
36650 $curl_includes_poll
36651
36652_ACEOF
36653if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36654 $EGREP "poll" >/dev/null 2>&1; then :
36655
36656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36657$as_echo "yes" >&6; }
36658 tst_proto_poll="yes"
36659
36660else
36661
36662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36663$as_echo "no" >&6; }
36664 tst_proto_poll="no"
36665
36666fi
36667rm -f conftest*
36668
36669 fi
36670 #
36671 if test "$tst_proto_poll" = "yes"; then
36672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36673$as_echo_n "checking if poll is compilable... " >&6; }
36674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36675/* end confdefs.h. */
36676
36677
36678 $curl_includes_poll
36679
36680int main (void)
36681{
36682
36683 if(0 != poll(0, 0, 0))
36684 return 1;
36685
36686 ;
36687 return 0;
36688}
36689
36690_ACEOF
36691if ac_fn_c_try_compile "$LINENO"; then :
36692
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36694$as_echo "yes" >&6; }
36695 tst_compi_poll="yes"
36696
36697else
36698
36699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36700$as_echo "no" >&6; }
36701 tst_compi_poll="no"
36702
36703fi
36704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36705 fi
36706 #
36707 if test "x$cross_compiling" != "xyes" &&
36708 test "$tst_compi_poll" = "yes"; then
36709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36710$as_echo_n "checking if poll seems to work... " >&6; }
36711 if test "$cross_compiling" = yes; then :
36712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36714as_fn_error $? "cannot run test program while cross compiling
36715See \`config.log' for more details" "$LINENO" 5; }
36716else
36717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36718/* end confdefs.h. */
36719
36720
36721 $curl_includes_stdlib
36722 $curl_includes_poll
36723 $curl_includes_time
36724
36725int main (void)
36726{
36727
36728 /* detect the original poll() breakage */
36729 if(0 != poll(0, 0, 10))
36730 exit(1); /* fail */
36731 else {
36732 /* detect the 10.12 poll() breakage */
36733 struct timeval before, after;
36734 int rc;
36735 size_t us;
36736
36737 gettimeofday(&before, NULL);
36738 rc = poll(NULL, 0, 500);
36739 gettimeofday(&after, NULL);
36740
36741 us = (after.tv_sec - before.tv_sec) * 1000000 +
36742 (after.tv_usec - before.tv_usec);
36743
36744 if(us < 400000)
36745 exit(1);
36746 }
36747
36748 ;
36749 return 0;
36750}
36751
36752_ACEOF
36753if ac_fn_c_try_run "$LINENO"; then :
36754
36755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36756$as_echo "yes" >&6; }
36757 tst_works_poll="yes"
36758
36759else
36760
36761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36762$as_echo "no" >&6; }
36763 tst_works_poll="no"
36764
36765fi
36766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36767 conftest.$ac_objext conftest.beam conftest.$ac_ext
36768fi
36769
36770 fi
36771 #
36772 if test "$tst_compi_poll" = "yes" &&
36773 test "$tst_works_poll" != "no"; then
36774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36775$as_echo_n "checking if poll usage allowed... " >&6; }
36776 if test "x$curl_disallow_poll" != "xyes"; then
36777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36778$as_echo "yes" >&6; }
36779 tst_allow_poll="yes"
36780 else
36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36782$as_echo "no" >&6; }
36783 tst_allow_poll="no"
36784 fi
36785 fi
36786 #
36787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36788$as_echo_n "checking if poll might be used... " >&6; }
36789 if test "$tst_links_poll" = "yes" &&
36790 test "$tst_proto_poll" = "yes" &&
36791 test "$tst_compi_poll" = "yes" &&
36792 test "$tst_allow_poll" = "yes" &&
36793 test "$tst_works_poll" != "no"; then
36794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36795$as_echo "yes" >&6; }
36796
36797cat >>confdefs.h <<_ACEOF
36798#define HAVE_POLL 1
36799_ACEOF
36800
36801
36802cat >>confdefs.h <<_ACEOF
36803#define HAVE_POLL_FINE 1
36804_ACEOF
36805
36806 curl_cv_func_poll="yes"
36807 else
36808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36809$as_echo "no" >&6; }
36810 curl_cv_func_poll="no"
36811 fi
36812
36813
36814 #
36815 tst_links_setsockopt="unknown"
36816 tst_proto_setsockopt="unknown"
36817 tst_compi_setsockopt="unknown"
36818 tst_allow_setsockopt="unknown"
36819 #
36820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36821$as_echo_n "checking if setsockopt can be linked... " >&6; }
36822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36823/* end confdefs.h. */
36824
36825
36826 $curl_includes_winsock2
36827 $curl_includes_sys_socket
36828
36829int main (void)
36830{
36831
36832 if(0 != setsockopt(0, 0, 0, 0, 0))
36833 return 1;
36834
36835 ;
36836 return 0;
36837}
36838
36839_ACEOF
36840if ac_fn_c_try_link "$LINENO"; then :
36841
36842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36843$as_echo "yes" >&6; }
36844 tst_links_setsockopt="yes"
36845
36846else
36847
36848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36849$as_echo "no" >&6; }
36850 tst_links_setsockopt="no"
36851
36852fi
36853rm -f core conftest.err conftest.$ac_objext \
36854 conftest$ac_exeext conftest.$ac_ext
36855 #
36856 if test "$tst_links_setsockopt" = "yes"; then
36857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36858$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36860/* end confdefs.h. */
36861
36862 $curl_includes_winsock2
36863 $curl_includes_sys_socket
36864
36865_ACEOF
36866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36867 $EGREP "setsockopt" >/dev/null 2>&1; then :
36868
36869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36870$as_echo "yes" >&6; }
36871 tst_proto_setsockopt="yes"
36872
36873else
36874
36875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36876$as_echo "no" >&6; }
36877 tst_proto_setsockopt="no"
36878
36879fi
36880rm -f conftest*
36881
36882 fi
36883 #
36884 if test "$tst_proto_setsockopt" = "yes"; then
36885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36886$as_echo_n "checking if setsockopt is compilable... " >&6; }
36887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36888/* end confdefs.h. */
36889
36890
36891 $curl_includes_winsock2
36892 $curl_includes_sys_socket
36893
36894int main (void)
36895{
36896
36897 if(0 != setsockopt(0, 0, 0, 0, 0))
36898 return 1;
36899
36900 ;
36901 return 0;
36902}
36903
36904_ACEOF
36905if ac_fn_c_try_compile "$LINENO"; then :
36906
36907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36908$as_echo "yes" >&6; }
36909 tst_compi_setsockopt="yes"
36910
36911else
36912
36913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36914$as_echo "no" >&6; }
36915 tst_compi_setsockopt="no"
36916
36917fi
36918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36919 fi
36920 #
36921 if test "$tst_compi_setsockopt" = "yes"; then
36922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36923$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36924 if test "x$curl_disallow_setsockopt" != "xyes"; then
36925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36926$as_echo "yes" >&6; }
36927 tst_allow_setsockopt="yes"
36928 else
36929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36930$as_echo "no" >&6; }
36931 tst_allow_setsockopt="no"
36932 fi
36933 fi
36934 #
36935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36936$as_echo_n "checking if setsockopt might be used... " >&6; }
36937 if test "$tst_links_setsockopt" = "yes" &&
36938 test "$tst_proto_setsockopt" = "yes" &&
36939 test "$tst_compi_setsockopt" = "yes" &&
36940 test "$tst_allow_setsockopt" = "yes"; then
36941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36942$as_echo "yes" >&6; }
36943
36944cat >>confdefs.h <<_ACEOF
36945#define HAVE_SETSOCKOPT 1
36946_ACEOF
36947
36948 curl_cv_func_setsockopt="yes"
36949
36950 #
36951 tst_compi_setsockopt_so_nonblock="unknown"
36952 tst_allow_setsockopt_so_nonblock="unknown"
36953 #
36954 if test "$curl_cv_func_setsockopt" = "yes"; then
36955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36956$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36958/* end confdefs.h. */
36959
36960
36961 $curl_includes_winsock2
36962 $curl_includes_sys_socket
36963
36964int main (void)
36965{
36966
36967 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36968 return 1;
36969
36970 ;
36971 return 0;
36972}
36973
36974_ACEOF
36975if ac_fn_c_try_compile "$LINENO"; then :
36976
36977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36978$as_echo "yes" >&6; }
36979 tst_compi_setsockopt_so_nonblock="yes"
36980
36981else
36982
36983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36984$as_echo "no" >&6; }
36985 tst_compi_setsockopt_so_nonblock="no"
36986
36987fi
36988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36989 fi
36990 #
36991 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36993$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36994 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36996$as_echo "yes" >&6; }
36997 tst_allow_setsockopt_so_nonblock="yes"
36998 else
36999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37000$as_echo "no" >&6; }
37001 tst_allow_setsockopt_so_nonblock="no"
37002 fi
37003 fi
37004 #
37005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
37006$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
37007 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
37008 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
37009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37010$as_echo "yes" >&6; }
37011
37012cat >>confdefs.h <<_ACEOF
37013#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
37014_ACEOF
37015
37016 curl_cv_func_setsockopt_so_nonblock="yes"
37017 else
37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37019$as_echo "no" >&6; }
37020 curl_cv_func_setsockopt_so_nonblock="no"
37021 fi
37022
37023 else
37024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37025$as_echo "no" >&6; }
37026 curl_cv_func_setsockopt="no"
37027 fi
37028
37029
37030curl_includes_signal="\
37031/* includes start */
37032#ifdef HAVE_SYS_TYPES_H
37033# include <sys/types.h>
37034#endif
37035#ifdef HAVE_SIGNAL_H
37036# include <signal.h>
37037#endif
37038/* includes end */"
37039 for ac_header in sys/types.h signal.h
37040do :
37041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37042ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
37043"
37044if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37045 cat >>confdefs.h <<_ACEOF
37046#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37047_ACEOF
37048
37049fi
37050
37051done
37052
37053
37054
37055 #
37056 tst_links_sigaction="unknown"
37057 tst_proto_sigaction="unknown"
37058 tst_compi_sigaction="unknown"
37059 tst_allow_sigaction="unknown"
37060 #
37061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
37062$as_echo_n "checking if sigaction can be linked... " >&6; }
37063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37064/* end confdefs.h. */
37065
37066
37067#define sigaction innocuous_sigaction
37068#ifdef __STDC__
37069# include <limits.h>
37070#else
37071# include <assert.h>
37072#endif
37073#undef sigaction
37074#ifdef __cplusplus
37075extern "C"
37076#endif
37077char sigaction ();
37078#if defined __stub_sigaction || defined __stub___sigaction
37079choke me
37080#endif
37081
37082int main (void)
37083{
37084return sigaction ();
37085 ;
37086 return 0;
37087}
37088
37089_ACEOF
37090if ac_fn_c_try_link "$LINENO"; then :
37091
37092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37093$as_echo "yes" >&6; }
37094 tst_links_sigaction="yes"
37095
37096else
37097
37098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37099$as_echo "no" >&6; }
37100 tst_links_sigaction="no"
37101
37102fi
37103rm -f core conftest.err conftest.$ac_objext \
37104 conftest$ac_exeext conftest.$ac_ext
37105 #
37106 if test "$tst_links_sigaction" = "yes"; then
37107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37108$as_echo_n "checking if sigaction is prototyped... " >&6; }
37109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37110/* end confdefs.h. */
37111
37112 $curl_includes_signal
37113
37114_ACEOF
37115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37116 $EGREP "sigaction" >/dev/null 2>&1; then :
37117
37118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37119$as_echo "yes" >&6; }
37120 tst_proto_sigaction="yes"
37121
37122else
37123
37124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37125$as_echo "no" >&6; }
37126 tst_proto_sigaction="no"
37127
37128fi
37129rm -f conftest*
37130
37131 fi
37132 #
37133 if test "$tst_proto_sigaction" = "yes"; then
37134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37135$as_echo_n "checking if sigaction is compilable... " >&6; }
37136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37137/* end confdefs.h. */
37138
37139
37140 $curl_includes_signal
37141
37142int main (void)
37143{
37144
37145 if(0 != sigaction(0, 0, 0))
37146 return 1;
37147
37148 ;
37149 return 0;
37150}
37151
37152_ACEOF
37153if ac_fn_c_try_compile "$LINENO"; then :
37154
37155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37156$as_echo "yes" >&6; }
37157 tst_compi_sigaction="yes"
37158
37159else
37160
37161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37162$as_echo "no" >&6; }
37163 tst_compi_sigaction="no"
37164
37165fi
37166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37167 fi
37168 #
37169 if test "$tst_compi_sigaction" = "yes"; then
37170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37171$as_echo_n "checking if sigaction usage allowed... " >&6; }
37172 if test "x$curl_disallow_sigaction" != "xyes"; then
37173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37174$as_echo "yes" >&6; }
37175 tst_allow_sigaction="yes"
37176 else
37177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37178$as_echo "no" >&6; }
37179 tst_allow_sigaction="no"
37180 fi
37181 fi
37182 #
37183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37184$as_echo_n "checking if sigaction might be used... " >&6; }
37185 if test "$tst_links_sigaction" = "yes" &&
37186 test "$tst_proto_sigaction" = "yes" &&
37187 test "$tst_compi_sigaction" = "yes" &&
37188 test "$tst_allow_sigaction" = "yes"; then
37189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37190$as_echo "yes" >&6; }
37191
37192cat >>confdefs.h <<_ACEOF
37193#define HAVE_SIGACTION 1
37194_ACEOF
37195
37196 curl_cv_func_sigaction="yes"
37197 else
37198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37199$as_echo "no" >&6; }
37200 curl_cv_func_sigaction="no"
37201 fi
37202
37203
37204 #
37205 tst_links_siginterrupt="unknown"
37206 tst_proto_siginterrupt="unknown"
37207 tst_compi_siginterrupt="unknown"
37208 tst_allow_siginterrupt="unknown"
37209 #
37210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37211$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37213/* end confdefs.h. */
37214
37215
37216#define siginterrupt innocuous_siginterrupt
37217#ifdef __STDC__
37218# include <limits.h>
37219#else
37220# include <assert.h>
37221#endif
37222#undef siginterrupt
37223#ifdef __cplusplus
37224extern "C"
37225#endif
37226char siginterrupt ();
37227#if defined __stub_siginterrupt || defined __stub___siginterrupt
37228choke me
37229#endif
37230
37231int main (void)
37232{
37233return siginterrupt ();
37234 ;
37235 return 0;
37236}
37237
37238_ACEOF
37239if ac_fn_c_try_link "$LINENO"; then :
37240
37241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37242$as_echo "yes" >&6; }
37243 tst_links_siginterrupt="yes"
37244
37245else
37246
37247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37248$as_echo "no" >&6; }
37249 tst_links_siginterrupt="no"
37250
37251fi
37252rm -f core conftest.err conftest.$ac_objext \
37253 conftest$ac_exeext conftest.$ac_ext
37254 #
37255 if test "$tst_links_siginterrupt" = "yes"; then
37256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37257$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37259/* end confdefs.h. */
37260
37261 $curl_includes_signal
37262
37263_ACEOF
37264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37265 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37266
37267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37268$as_echo "yes" >&6; }
37269 tst_proto_siginterrupt="yes"
37270
37271else
37272
37273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37274$as_echo "no" >&6; }
37275 tst_proto_siginterrupt="no"
37276
37277fi
37278rm -f conftest*
37279
37280 fi
37281 #
37282 if test "$tst_proto_siginterrupt" = "yes"; then
37283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37284$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37286/* end confdefs.h. */
37287
37288
37289 $curl_includes_signal
37290
37291int main (void)
37292{
37293
37294 if(0 != siginterrupt(0, 0))
37295 return 1;
37296
37297 ;
37298 return 0;
37299}
37300
37301_ACEOF
37302if ac_fn_c_try_compile "$LINENO"; then :
37303
37304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37305$as_echo "yes" >&6; }
37306 tst_compi_siginterrupt="yes"
37307
37308else
37309
37310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37311$as_echo "no" >&6; }
37312 tst_compi_siginterrupt="no"
37313
37314fi
37315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37316 fi
37317 #
37318 if test "$tst_compi_siginterrupt" = "yes"; then
37319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37320$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37321 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37323$as_echo "yes" >&6; }
37324 tst_allow_siginterrupt="yes"
37325 else
37326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37327$as_echo "no" >&6; }
37328 tst_allow_siginterrupt="no"
37329 fi
37330 fi
37331 #
37332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37333$as_echo_n "checking if siginterrupt might be used... " >&6; }
37334 if test "$tst_links_siginterrupt" = "yes" &&
37335 test "$tst_proto_siginterrupt" = "yes" &&
37336 test "$tst_compi_siginterrupt" = "yes" &&
37337 test "$tst_allow_siginterrupt" = "yes"; then
37338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37339$as_echo "yes" >&6; }
37340
37341cat >>confdefs.h <<_ACEOF
37342#define HAVE_SIGINTERRUPT 1
37343_ACEOF
37344
37345 curl_cv_func_siginterrupt="yes"
37346 else
37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37348$as_echo "no" >&6; }
37349 curl_cv_func_siginterrupt="no"
37350 fi
37351
37352
37353 #
37354 tst_links_signal="unknown"
37355 tst_proto_signal="unknown"
37356 tst_compi_signal="unknown"
37357 tst_allow_signal="unknown"
37358 #
37359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37360$as_echo_n "checking if signal can be linked... " >&6; }
37361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37362/* end confdefs.h. */
37363
37364
37365#define signal innocuous_signal
37366#ifdef __STDC__
37367# include <limits.h>
37368#else
37369# include <assert.h>
37370#endif
37371#undef signal
37372#ifdef __cplusplus
37373extern "C"
37374#endif
37375char signal ();
37376#if defined __stub_signal || defined __stub___signal
37377choke me
37378#endif
37379
37380int main (void)
37381{
37382return signal ();
37383 ;
37384 return 0;
37385}
37386
37387_ACEOF
37388if ac_fn_c_try_link "$LINENO"; then :
37389
37390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37391$as_echo "yes" >&6; }
37392 tst_links_signal="yes"
37393
37394else
37395
37396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37397$as_echo "no" >&6; }
37398 tst_links_signal="no"
37399
37400fi
37401rm -f core conftest.err conftest.$ac_objext \
37402 conftest$ac_exeext conftest.$ac_ext
37403 #
37404 if test "$tst_links_signal" = "yes"; then
37405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37406$as_echo_n "checking if signal is prototyped... " >&6; }
37407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37408/* end confdefs.h. */
37409
37410 $curl_includes_signal
37411
37412_ACEOF
37413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37414 $EGREP "signal" >/dev/null 2>&1; then :
37415
37416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37417$as_echo "yes" >&6; }
37418 tst_proto_signal="yes"
37419
37420else
37421
37422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37423$as_echo "no" >&6; }
37424 tst_proto_signal="no"
37425
37426fi
37427rm -f conftest*
37428
37429 fi
37430 #
37431 if test "$tst_proto_signal" = "yes"; then
37432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37433$as_echo_n "checking if signal is compilable... " >&6; }
37434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37435/* end confdefs.h. */
37436
37437
37438 $curl_includes_signal
37439
37440int main (void)
37441{
37442
37443 if(0 != signal(0, 0))
37444 return 1;
37445
37446 ;
37447 return 0;
37448}
37449
37450_ACEOF
37451if ac_fn_c_try_compile "$LINENO"; then :
37452
37453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37454$as_echo "yes" >&6; }
37455 tst_compi_signal="yes"
37456
37457else
37458
37459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37460$as_echo "no" >&6; }
37461 tst_compi_signal="no"
37462
37463fi
37464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37465 fi
37466 #
37467 if test "$tst_compi_signal" = "yes"; then
37468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37469$as_echo_n "checking if signal usage allowed... " >&6; }
37470 if test "x$curl_disallow_signal" != "xyes"; then
37471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37472$as_echo "yes" >&6; }
37473 tst_allow_signal="yes"
37474 else
37475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37476$as_echo "no" >&6; }
37477 tst_allow_signal="no"
37478 fi
37479 fi
37480 #
37481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37482$as_echo_n "checking if signal might be used... " >&6; }
37483 if test "$tst_links_signal" = "yes" &&
37484 test "$tst_proto_signal" = "yes" &&
37485 test "$tst_compi_signal" = "yes" &&
37486 test "$tst_allow_signal" = "yes"; then
37487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37488$as_echo "yes" >&6; }
37489
37490cat >>confdefs.h <<_ACEOF
37491#define HAVE_SIGNAL 1
37492_ACEOF
37493
37494 curl_cv_func_signal="yes"
37495 else
37496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37497$as_echo "no" >&6; }
37498 curl_cv_func_signal="no"
37499 fi
37500
37501
37502curl_includes_setjmp="\
37503/* includes start */
37504#ifdef HAVE_SYS_TYPES_H
37505# include <sys/types.h>
37506#endif
37507#ifdef HAVE_SETJMP_H
37508# include <setjmp.h>
37509#endif
37510/* includes end */"
37511 for ac_header in sys/types.h setjmp.h
37512do :
37513 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37514ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37515"
37516if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37517 cat >>confdefs.h <<_ACEOF
37518#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37519_ACEOF
37520
37521fi
37522
37523done
37524
37525
37526
37527 #
37528 tst_links_sigsetjmp="unknown"
37529 tst_macro_sigsetjmp="unknown"
37530 tst_proto_sigsetjmp="unknown"
37531 tst_compi_sigsetjmp="unknown"
37532 tst_allow_sigsetjmp="unknown"
37533 #
37534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37535$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37537/* end confdefs.h. */
37538
37539
37540#define sigsetjmp innocuous_sigsetjmp
37541#ifdef __STDC__
37542# include <limits.h>
37543#else
37544# include <assert.h>
37545#endif
37546#undef sigsetjmp
37547#ifdef __cplusplus
37548extern "C"
37549#endif
37550char sigsetjmp ();
37551#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37552choke me
37553#endif
37554
37555int main (void)
37556{
37557return sigsetjmp ();
37558 ;
37559 return 0;
37560}
37561
37562_ACEOF
37563if ac_fn_c_try_link "$LINENO"; then :
37564
37565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37566$as_echo "yes" >&6; }
37567 tst_links_sigsetjmp="yes"
37568
37569else
37570
37571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37572$as_echo "no" >&6; }
37573 tst_links_sigsetjmp="no"
37574
37575fi
37576rm -f core conftest.err conftest.$ac_objext \
37577 conftest$ac_exeext conftest.$ac_ext
37578 #
37579 if test "$tst_links_sigsetjmp" = "no"; then
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37581$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37583/* end confdefs.h. */
37584
37585
37586 $curl_includes_setjmp
37587
37588int main (void)
37589{
37590
37591 sigjmp_buf env;
37592 if(0 != sigsetjmp(env, 0))
37593 return 1;
37594
37595 ;
37596 return 0;
37597}
37598
37599_ACEOF
37600if ac_fn_c_try_link "$LINENO"; then :
37601
37602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37603$as_echo "yes" >&6; }
37604 tst_macro_sigsetjmp="yes"
37605
37606else
37607
37608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37609$as_echo "no" >&6; }
37610 tst_macro_sigsetjmp="no"
37611
37612fi
37613rm -f core conftest.err conftest.$ac_objext \
37614 conftest$ac_exeext conftest.$ac_ext
37615 fi
37616 #
37617 if test "$tst_links_sigsetjmp" = "yes"; then
37618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37619$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37621/* end confdefs.h. */
37622
37623 $curl_includes_setjmp
37624
37625_ACEOF
37626if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37627 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37628
37629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37630$as_echo "yes" >&6; }
37631 tst_proto_sigsetjmp="yes"
37632
37633else
37634
37635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37636$as_echo "no" >&6; }
37637 tst_proto_sigsetjmp="no"
37638
37639fi
37640rm -f conftest*
37641
37642 fi
37643 #
37644 if test "$tst_proto_sigsetjmp" = "yes" ||
37645 test "$tst_macro_sigsetjmp" = "yes"; then
37646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37647$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37649/* end confdefs.h. */
37650
37651
37652 $curl_includes_setjmp
37653
37654int main (void)
37655{
37656
37657 sigjmp_buf env;
37658 if(0 != sigsetjmp(env, 0))
37659 return 1;
37660
37661 ;
37662 return 0;
37663}
37664
37665_ACEOF
37666if ac_fn_c_try_compile "$LINENO"; then :
37667
37668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37669$as_echo "yes" >&6; }
37670 tst_compi_sigsetjmp="yes"
37671
37672else
37673
37674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37675$as_echo "no" >&6; }
37676 tst_compi_sigsetjmp="no"
37677
37678fi
37679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37680 fi
37681 #
37682 if test "$tst_compi_sigsetjmp" = "yes"; then
37683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37684$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37685 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37687$as_echo "yes" >&6; }
37688 tst_allow_sigsetjmp="yes"
37689 else
37690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37691$as_echo "no" >&6; }
37692 tst_allow_sigsetjmp="no"
37693 fi
37694 fi
37695 #
37696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37697$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37698 if (test "$tst_proto_sigsetjmp" = "yes" ||
37699 test "$tst_macro_sigsetjmp" = "yes") &&
37700 test "$tst_compi_sigsetjmp" = "yes" &&
37701 test "$tst_allow_sigsetjmp" = "yes"; then
37702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37703$as_echo "yes" >&6; }
37704
37705cat >>confdefs.h <<_ACEOF
37706#define HAVE_SIGSETJMP 1
37707_ACEOF
37708
37709 curl_cv_func_sigsetjmp="yes"
37710 else
37711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37712$as_echo "no" >&6; }
37713 curl_cv_func_sigsetjmp="no"
37714 fi
37715
37716
37717 #
37718 tst_links_socket="unknown"
37719 tst_proto_socket="unknown"
37720 tst_compi_socket="unknown"
37721 tst_allow_socket="unknown"
37722 #
37723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37724$as_echo_n "checking if socket can be linked... " >&6; }
37725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37726/* end confdefs.h. */
37727
37728
37729 $curl_includes_winsock2
37730 $curl_includes_sys_socket
37731 $curl_includes_socket
37732
37733int main (void)
37734{
37735
37736 if(0 != socket(0, 0, 0))
37737 return 1;
37738
37739 ;
37740 return 0;
37741}
37742
37743_ACEOF
37744if ac_fn_c_try_link "$LINENO"; then :
37745
37746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37747$as_echo "yes" >&6; }
37748 tst_links_socket="yes"
37749
37750else
37751
37752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37753$as_echo "no" >&6; }
37754 tst_links_socket="no"
37755
37756fi
37757rm -f core conftest.err conftest.$ac_objext \
37758 conftest$ac_exeext conftest.$ac_ext
37759 #
37760 if test "$tst_links_socket" = "yes"; then
37761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37762$as_echo_n "checking if socket is prototyped... " >&6; }
37763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37764/* end confdefs.h. */
37765
37766 $curl_includes_winsock2
37767 $curl_includes_sys_socket
37768 $curl_includes_socket
37769
37770_ACEOF
37771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37772 $EGREP "socket" >/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_socket="yes"
37777
37778else
37779
37780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37781$as_echo "no" >&6; }
37782 tst_proto_socket="no"
37783
37784fi
37785rm -f conftest*
37786
37787 fi
37788 #
37789 if test "$tst_proto_socket" = "yes"; then
37790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37791$as_echo_n "checking if socket is compilable... " >&6; }
37792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37793/* end confdefs.h. */
37794
37795
37796 $curl_includes_winsock2
37797 $curl_includes_sys_socket
37798 $curl_includes_socket
37799
37800int main (void)
37801{
37802
37803 if(0 != socket(0, 0, 0))
37804 return 1;
37805
37806 ;
37807 return 0;
37808}
37809
37810_ACEOF
37811if ac_fn_c_try_compile "$LINENO"; then :
37812
37813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37814$as_echo "yes" >&6; }
37815 tst_compi_socket="yes"
37816
37817else
37818
37819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37820$as_echo "no" >&6; }
37821 tst_compi_socket="no"
37822
37823fi
37824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37825 fi
37826 #
37827 if test "$tst_compi_socket" = "yes"; then
37828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37829$as_echo_n "checking if socket usage allowed... " >&6; }
37830 if test "x$curl_disallow_socket" != "xyes"; then
37831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37832$as_echo "yes" >&6; }
37833 tst_allow_socket="yes"
37834 else
37835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37836$as_echo "no" >&6; }
37837 tst_allow_socket="no"
37838 fi
37839 fi
37840 #
37841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37842$as_echo_n "checking if socket might be used... " >&6; }
37843 if test "$tst_links_socket" = "yes" &&
37844 test "$tst_proto_socket" = "yes" &&
37845 test "$tst_compi_socket" = "yes" &&
37846 test "$tst_allow_socket" = "yes"; then
37847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37848$as_echo "yes" >&6; }
37849
37850cat >>confdefs.h <<_ACEOF
37851#define HAVE_SOCKET 1
37852_ACEOF
37853
37854 curl_cv_func_socket="yes"
37855 else
37856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37857$as_echo "no" >&6; }
37858 curl_cv_func_socket="no"
37859 fi
37860
37861
37862 #
37863 tst_links_socketpair="unknown"
37864 tst_proto_socketpair="unknown"
37865 tst_compi_socketpair="unknown"
37866 tst_allow_socketpair="unknown"
37867 #
37868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37869$as_echo_n "checking if socketpair can be linked... " >&6; }
37870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37871/* end confdefs.h. */
37872
37873
37874#define socketpair innocuous_socketpair
37875#ifdef __STDC__
37876# include <limits.h>
37877#else
37878# include <assert.h>
37879#endif
37880#undef socketpair
37881#ifdef __cplusplus
37882extern "C"
37883#endif
37884char socketpair ();
37885#if defined __stub_socketpair || defined __stub___socketpair
37886choke me
37887#endif
37888
37889int main (void)
37890{
37891return socketpair ();
37892 ;
37893 return 0;
37894}
37895
37896_ACEOF
37897if ac_fn_c_try_link "$LINENO"; then :
37898
37899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37900$as_echo "yes" >&6; }
37901 tst_links_socketpair="yes"
37902
37903else
37904
37905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37906$as_echo "no" >&6; }
37907 tst_links_socketpair="no"
37908
37909fi
37910rm -f core conftest.err conftest.$ac_objext \
37911 conftest$ac_exeext conftest.$ac_ext
37912 #
37913 if test "$tst_links_socketpair" = "yes"; then
37914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37915$as_echo_n "checking if socketpair is prototyped... " >&6; }
37916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37917/* end confdefs.h. */
37918
37919 $curl_includes_sys_socket
37920 $curl_includes_socket
37921
37922_ACEOF
37923if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37924 $EGREP "socketpair" >/dev/null 2>&1; then :
37925
37926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37927$as_echo "yes" >&6; }
37928 tst_proto_socketpair="yes"
37929
37930else
37931
37932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37933$as_echo "no" >&6; }
37934 tst_proto_socketpair="no"
37935
37936fi
37937rm -f conftest*
37938
37939 fi
37940 #
37941 if test "$tst_proto_socketpair" = "yes"; then
37942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37943$as_echo_n "checking if socketpair is compilable... " >&6; }
37944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37945/* end confdefs.h. */
37946
37947
37948 $curl_includes_sys_socket
37949 $curl_includes_socket
37950
37951int main (void)
37952{
37953
37954 int sv[2];
37955 if(0 != socketpair(0, 0, 0, sv))
37956 return 1;
37957
37958 ;
37959 return 0;
37960}
37961
37962_ACEOF
37963if ac_fn_c_try_compile "$LINENO"; then :
37964
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37966$as_echo "yes" >&6; }
37967 tst_compi_socketpair="yes"
37968
37969else
37970
37971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37972$as_echo "no" >&6; }
37973 tst_compi_socketpair="no"
37974
37975fi
37976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37977 fi
37978 #
37979 if test "$tst_compi_socketpair" = "yes"; then
37980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37981$as_echo_n "checking if socketpair usage allowed... " >&6; }
37982 if test "x$curl_disallow_socketpair" != "xyes"; then
37983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37984$as_echo "yes" >&6; }
37985 tst_allow_socketpair="yes"
37986 else
37987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37988$as_echo "no" >&6; }
37989 tst_allow_socketpair="no"
37990 fi
37991 fi
37992 #
37993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37994$as_echo_n "checking if socketpair might be used... " >&6; }
37995 if test "$tst_links_socketpair" = "yes" &&
37996 test "$tst_proto_socketpair" = "yes" &&
37997 test "$tst_compi_socketpair" = "yes" &&
37998 test "$tst_allow_socketpair" = "yes"; then
37999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38000$as_echo "yes" >&6; }
38001
38002cat >>confdefs.h <<_ACEOF
38003#define HAVE_SOCKETPAIR 1
38004_ACEOF
38005
38006 curl_cv_func_socketpair="yes"
38007 else
38008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38009$as_echo "no" >&6; }
38010 curl_cv_func_socketpair="no"
38011 fi
38012
38013
38014 #
38015 tst_links_strcasecmp="unknown"
38016 tst_proto_strcasecmp="unknown"
38017 tst_compi_strcasecmp="unknown"
38018 tst_allow_strcasecmp="unknown"
38019 #
38020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
38021$as_echo_n "checking if strcasecmp can be linked... " >&6; }
38022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38023/* end confdefs.h. */
38024
38025
38026#define strcasecmp innocuous_strcasecmp
38027#ifdef __STDC__
38028# include <limits.h>
38029#else
38030# include <assert.h>
38031#endif
38032#undef strcasecmp
38033#ifdef __cplusplus
38034extern "C"
38035#endif
38036char strcasecmp ();
38037#if defined __stub_strcasecmp || defined __stub___strcasecmp
38038choke me
38039#endif
38040
38041int main (void)
38042{
38043return strcasecmp ();
38044 ;
38045 return 0;
38046}
38047
38048_ACEOF
38049if ac_fn_c_try_link "$LINENO"; then :
38050
38051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38052$as_echo "yes" >&6; }
38053 tst_links_strcasecmp="yes"
38054
38055else
38056
38057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38058$as_echo "no" >&6; }
38059 tst_links_strcasecmp="no"
38060
38061fi
38062rm -f core conftest.err conftest.$ac_objext \
38063 conftest$ac_exeext conftest.$ac_ext
38064 #
38065 if test "$tst_links_strcasecmp" = "yes"; then
38066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
38067$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
38068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38069/* end confdefs.h. */
38070
38071 $curl_includes_string
38072
38073_ACEOF
38074if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38075 $EGREP "strcasecmp" >/dev/null 2>&1; then :
38076
38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38078$as_echo "yes" >&6; }
38079 tst_proto_strcasecmp="yes"
38080
38081else
38082
38083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38084$as_echo "no" >&6; }
38085 tst_proto_strcasecmp="no"
38086
38087fi
38088rm -f conftest*
38089
38090 fi
38091 #
38092 if test "$tst_proto_strcasecmp" = "yes"; then
38093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38094$as_echo_n "checking if strcasecmp is compilable... " >&6; }
38095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38096/* end confdefs.h. */
38097
38098
38099 $curl_includes_string
38100
38101int main (void)
38102{
38103
38104 if(0 != strcasecmp(0, 0))
38105 return 1;
38106
38107 ;
38108 return 0;
38109}
38110
38111_ACEOF
38112if ac_fn_c_try_compile "$LINENO"; then :
38113
38114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38115$as_echo "yes" >&6; }
38116 tst_compi_strcasecmp="yes"
38117
38118else
38119
38120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38121$as_echo "no" >&6; }
38122 tst_compi_strcasecmp="no"
38123
38124fi
38125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38126 fi
38127 #
38128 if test "$tst_compi_strcasecmp" = "yes"; then
38129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38130$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38131 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38133$as_echo "yes" >&6; }
38134 tst_allow_strcasecmp="yes"
38135 else
38136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38137$as_echo "no" >&6; }
38138 tst_allow_strcasecmp="no"
38139 fi
38140 fi
38141 #
38142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38143$as_echo_n "checking if strcasecmp might be used... " >&6; }
38144 if test "$tst_links_strcasecmp" = "yes" &&
38145 test "$tst_proto_strcasecmp" = "yes" &&
38146 test "$tst_compi_strcasecmp" = "yes" &&
38147 test "$tst_allow_strcasecmp" = "yes"; then
38148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38149$as_echo "yes" >&6; }
38150
38151cat >>confdefs.h <<_ACEOF
38152#define HAVE_STRCASECMP 1
38153_ACEOF
38154
38155 curl_cv_func_strcasecmp="yes"
38156 else
38157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38158$as_echo "no" >&6; }
38159 curl_cv_func_strcasecmp="no"
38160 fi
38161
38162
38163 #
38164 tst_links_strcmpi="unknown"
38165 tst_proto_strcmpi="unknown"
38166 tst_compi_strcmpi="unknown"
38167 tst_allow_strcmpi="unknown"
38168 #
38169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38170$as_echo_n "checking if strcmpi can be linked... " >&6; }
38171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38172/* end confdefs.h. */
38173
38174
38175#define strcmpi innocuous_strcmpi
38176#ifdef __STDC__
38177# include <limits.h>
38178#else
38179# include <assert.h>
38180#endif
38181#undef strcmpi
38182#ifdef __cplusplus
38183extern "C"
38184#endif
38185char strcmpi ();
38186#if defined __stub_strcmpi || defined __stub___strcmpi
38187choke me
38188#endif
38189
38190int main (void)
38191{
38192return strcmpi ();
38193 ;
38194 return 0;
38195}
38196
38197_ACEOF
38198if ac_fn_c_try_link "$LINENO"; then :
38199
38200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38201$as_echo "yes" >&6; }
38202 tst_links_strcmpi="yes"
38203
38204else
38205
38206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38207$as_echo "no" >&6; }
38208 tst_links_strcmpi="no"
38209
38210fi
38211rm -f core conftest.err conftest.$ac_objext \
38212 conftest$ac_exeext conftest.$ac_ext
38213 #
38214 if test "$tst_links_strcmpi" = "yes"; then
38215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38216$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38218/* end confdefs.h. */
38219
38220 $curl_includes_string
38221
38222_ACEOF
38223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38224 $EGREP "strcmpi" >/dev/null 2>&1; then :
38225
38226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38227$as_echo "yes" >&6; }
38228 tst_proto_strcmpi="yes"
38229
38230else
38231
38232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38233$as_echo "no" >&6; }
38234 tst_proto_strcmpi="no"
38235
38236fi
38237rm -f conftest*
38238
38239 fi
38240 #
38241 if test "$tst_proto_strcmpi" = "yes"; then
38242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38243$as_echo_n "checking if strcmpi is compilable... " >&6; }
38244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38245/* end confdefs.h. */
38246
38247
38248 $curl_includes_string
38249
38250int main (void)
38251{
38252
38253 if(0 != strcmpi(0, 0))
38254 return 1;
38255
38256 ;
38257 return 0;
38258}
38259
38260_ACEOF
38261if ac_fn_c_try_compile "$LINENO"; then :
38262
38263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38264$as_echo "yes" >&6; }
38265 tst_compi_strcmpi="yes"
38266
38267else
38268
38269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38270$as_echo "no" >&6; }
38271 tst_compi_strcmpi="no"
38272
38273fi
38274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38275 fi
38276 #
38277 if test "$tst_compi_strcmpi" = "yes"; then
38278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38279$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38280 if test "x$curl_disallow_strcmpi" != "xyes"; then
38281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38282$as_echo "yes" >&6; }
38283 tst_allow_strcmpi="yes"
38284 else
38285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38286$as_echo "no" >&6; }
38287 tst_allow_strcmpi="no"
38288 fi
38289 fi
38290 #
38291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38292$as_echo_n "checking if strcmpi might be used... " >&6; }
38293 if test "$tst_links_strcmpi" = "yes" &&
38294 test "$tst_proto_strcmpi" = "yes" &&
38295 test "$tst_compi_strcmpi" = "yes" &&
38296 test "$tst_allow_strcmpi" = "yes"; then
38297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38298$as_echo "yes" >&6; }
38299
38300cat >>confdefs.h <<_ACEOF
38301#define HAVE_STRCMPI 1
38302_ACEOF
38303
38304 curl_cv_func_strcmpi="yes"
38305 else
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38307$as_echo "no" >&6; }
38308 curl_cv_func_strcmpi="no"
38309 fi
38310
38311
38312 #
38313 tst_links_strdup="unknown"
38314 tst_proto_strdup="unknown"
38315 tst_compi_strdup="unknown"
38316 tst_allow_strdup="unknown"
38317 #
38318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38319$as_echo_n "checking if strdup can be linked... " >&6; }
38320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38321/* end confdefs.h. */
38322
38323
38324#define strdup innocuous_strdup
38325#ifdef __STDC__
38326# include <limits.h>
38327#else
38328# include <assert.h>
38329#endif
38330#undef strdup
38331#ifdef __cplusplus
38332extern "C"
38333#endif
38334char strdup ();
38335#if defined __stub_strdup || defined __stub___strdup
38336choke me
38337#endif
38338
38339int main (void)
38340{
38341return strdup ();
38342 ;
38343 return 0;
38344}
38345
38346_ACEOF
38347if ac_fn_c_try_link "$LINENO"; then :
38348
38349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38350$as_echo "yes" >&6; }
38351 tst_links_strdup="yes"
38352
38353else
38354
38355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38356$as_echo "no" >&6; }
38357 tst_links_strdup="no"
38358
38359fi
38360rm -f core conftest.err conftest.$ac_objext \
38361 conftest$ac_exeext conftest.$ac_ext
38362 #
38363 if test "$tst_links_strdup" = "yes"; then
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38365$as_echo_n "checking if strdup is prototyped... " >&6; }
38366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38367/* end confdefs.h. */
38368
38369 $curl_includes_string
38370
38371_ACEOF
38372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38373 $EGREP "strdup" >/dev/null 2>&1; then :
38374
38375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38376$as_echo "yes" >&6; }
38377 tst_proto_strdup="yes"
38378
38379else
38380
38381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38382$as_echo "no" >&6; }
38383 tst_proto_strdup="no"
38384
38385fi
38386rm -f conftest*
38387
38388 fi
38389 #
38390 if test "$tst_proto_strdup" = "yes"; then
38391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38392$as_echo_n "checking if strdup is compilable... " >&6; }
38393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38394/* end confdefs.h. */
38395
38396
38397 $curl_includes_string
38398
38399int main (void)
38400{
38401
38402 if(0 != strdup(0))
38403 return 1;
38404
38405 ;
38406 return 0;
38407}
38408
38409_ACEOF
38410if ac_fn_c_try_compile "$LINENO"; then :
38411
38412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38413$as_echo "yes" >&6; }
38414 tst_compi_strdup="yes"
38415
38416else
38417
38418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38419$as_echo "no" >&6; }
38420 tst_compi_strdup="no"
38421
38422fi
38423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38424 fi
38425 #
38426 if test "$tst_compi_strdup" = "yes"; then
38427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38428$as_echo_n "checking if strdup usage allowed... " >&6; }
38429 if test "x$curl_disallow_strdup" != "xyes"; then
38430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38431$as_echo "yes" >&6; }
38432 tst_allow_strdup="yes"
38433 else
38434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38435$as_echo "no" >&6; }
38436 tst_allow_strdup="no"
38437 fi
38438 fi
38439 #
38440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38441$as_echo_n "checking if strdup might be used... " >&6; }
38442 if test "$tst_links_strdup" = "yes" &&
38443 test "$tst_proto_strdup" = "yes" &&
38444 test "$tst_compi_strdup" = "yes" &&
38445 test "$tst_allow_strdup" = "yes"; then
38446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38447$as_echo "yes" >&6; }
38448
38449cat >>confdefs.h <<_ACEOF
38450#define HAVE_STRDUP 1
38451_ACEOF
38452
38453 curl_cv_func_strdup="yes"
38454 else
38455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38456$as_echo "no" >&6; }
38457 curl_cv_func_strdup="no"
38458 fi
38459
38460
38461 #
38462 tst_links_strerror_r="unknown"
38463 tst_proto_strerror_r="unknown"
38464 tst_compi_strerror_r="unknown"
38465 tst_glibc_strerror_r="unknown"
38466 tst_posix_strerror_r="unknown"
38467 tst_allow_strerror_r="unknown"
38468 tst_works_glibc_strerror_r="unknown"
38469 tst_works_posix_strerror_r="unknown"
38470 tst_glibc_strerror_r_type_arg3="unknown"
38471 tst_posix_strerror_r_type_arg3="unknown"
38472 #
38473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38474$as_echo_n "checking if strerror_r can be linked... " >&6; }
38475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38476/* end confdefs.h. */
38477
38478
38479#define strerror_r innocuous_strerror_r
38480#ifdef __STDC__
38481# include <limits.h>
38482#else
38483# include <assert.h>
38484#endif
38485#undef strerror_r
38486#ifdef __cplusplus
38487extern "C"
38488#endif
38489char strerror_r ();
38490#if defined __stub_strerror_r || defined __stub___strerror_r
38491choke me
38492#endif
38493
38494int main (void)
38495{
38496return strerror_r ();
38497 ;
38498 return 0;
38499}
38500
38501_ACEOF
38502if ac_fn_c_try_link "$LINENO"; then :
38503
38504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38505$as_echo "yes" >&6; }
38506 tst_links_strerror_r="yes"
38507
38508else
38509
38510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38511$as_echo "no" >&6; }
38512 tst_links_strerror_r="no"
38513
38514fi
38515rm -f core conftest.err conftest.$ac_objext \
38516 conftest$ac_exeext conftest.$ac_ext
38517 #
38518 if test "$tst_links_strerror_r" = "yes"; then
38519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38520$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38522/* end confdefs.h. */
38523
38524 $curl_includes_string
38525
38526_ACEOF
38527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38528 $EGREP "strerror_r" >/dev/null 2>&1; then :
38529
38530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38531$as_echo "yes" >&6; }
38532 tst_proto_strerror_r="yes"
38533
38534else
38535
38536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38537$as_echo "no" >&6; }
38538 tst_proto_strerror_r="no"
38539
38540fi
38541rm -f conftest*
38542
38543 fi
38544 #
38545 if test "$tst_proto_strerror_r" = "yes"; then
38546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38547$as_echo_n "checking if strerror_r is compilable... " >&6; }
38548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38549/* end confdefs.h. */
38550
38551
38552 $curl_includes_string
38553
38554int main (void)
38555{
38556
38557 if(0 != strerror_r(0, 0, 0))
38558 return 1;
38559
38560 ;
38561 return 0;
38562}
38563
38564_ACEOF
38565if ac_fn_c_try_compile "$LINENO"; then :
38566
38567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38568$as_echo "yes" >&6; }
38569 tst_compi_strerror_r="yes"
38570
38571else
38572
38573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38574$as_echo "no" >&6; }
38575 tst_compi_strerror_r="no"
38576
38577fi
38578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38579 fi
38580 #
38581 if test "$tst_compi_strerror_r" = "yes"; then
38582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38583$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38584 tst_glibc_strerror_r_type_arg3="unknown"
38585 for arg3 in 'size_t' 'int' 'unsigned int'; do
38586 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38588/* end confdefs.h. */
38589
38590
38591 $curl_includes_string
38592 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38593
38594int main (void)
38595{
38596
38597 if(0 != strerror_r(0, 0, 0))
38598 return 1;
38599
38600 ;
38601 return 0;
38602}
38603
38604_ACEOF
38605if ac_fn_c_try_compile "$LINENO"; then :
38606
38607 tst_glibc_strerror_r_type_arg3="$arg3"
38608
38609fi
38610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38611 fi
38612 done
38613 case "$tst_glibc_strerror_r_type_arg3" in
38614 unknown)
38615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38616$as_echo "no" >&6; }
38617 tst_glibc_strerror_r="no"
38618 ;;
38619 *)
38620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38621$as_echo "yes" >&6; }
38622 tst_glibc_strerror_r="yes"
38623 ;;
38624 esac
38625 fi
38626 #
38627 if test "x$cross_compiling" != "xyes" &&
38628 test "$tst_glibc_strerror_r" = "yes"; then
38629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38630$as_echo_n "checking if strerror_r seems to work... " >&6; }
38631 if test "$cross_compiling" = yes; then :
38632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38634as_fn_error $? "cannot run test program while cross compiling
38635See \`config.log' for more details" "$LINENO" 5; }
38636else
38637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38638/* end confdefs.h. */
38639
38640
38641 $curl_includes_stdlib
38642 $curl_includes_string
38643# include <errno.h>
38644
38645int main (void)
38646{
38647
38648 char buffer[1024];
38649 char *string = 0;
38650 buffer[0] = '\0';
38651 string = strerror_r(EACCES, buffer, sizeof(buffer));
38652 if(!string)
38653 exit(1); /* fail */
38654 if(!string[0])
38655 exit(1); /* fail */
38656 else
38657 exit(0);
38658
38659 ;
38660 return 0;
38661}
38662
38663_ACEOF
38664if ac_fn_c_try_run "$LINENO"; then :
38665
38666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38667$as_echo "yes" >&6; }
38668 tst_works_glibc_strerror_r="yes"
38669
38670else
38671
38672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38673$as_echo "no" >&6; }
38674 tst_works_glibc_strerror_r="no"
38675
38676fi
38677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38678 conftest.$ac_objext conftest.beam conftest.$ac_ext
38679fi
38680
38681 fi
38682 #
38683 if test "$tst_compi_strerror_r" = "yes" &&
38684 test "$tst_works_glibc_strerror_r" != "yes"; then
38685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38686$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38687 tst_posix_strerror_r_type_arg3="unknown"
38688 for arg3 in 'size_t' 'int' 'unsigned int'; do
38689 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38691/* end confdefs.h. */
38692
38693
38694 $curl_includes_string
38695 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38696
38697int main (void)
38698{
38699
38700 if(0 != strerror_r(0, 0, 0))
38701 return 1;
38702
38703 ;
38704 return 0;
38705}
38706
38707_ACEOF
38708if ac_fn_c_try_compile "$LINENO"; then :
38709
38710 tst_posix_strerror_r_type_arg3="$arg3"
38711
38712fi
38713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38714 fi
38715 done
38716 case "$tst_posix_strerror_r_type_arg3" in
38717 unknown)
38718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38719$as_echo "no" >&6; }
38720 tst_posix_strerror_r="no"
38721 ;;
38722 *)
38723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38724$as_echo "yes" >&6; }
38725 tst_posix_strerror_r="yes"
38726 ;;
38727 esac
38728 fi
38729 #
38730 if test "x$cross_compiling" != "xyes" &&
38731 test "$tst_posix_strerror_r" = "yes"; then
38732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38733$as_echo_n "checking if strerror_r seems to work... " >&6; }
38734 if test "$cross_compiling" = yes; then :
38735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38736$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38737as_fn_error $? "cannot run test program while cross compiling
38738See \`config.log' for more details" "$LINENO" 5; }
38739else
38740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38741/* end confdefs.h. */
38742
38743
38744 $curl_includes_stdlib
38745 $curl_includes_string
38746# include <errno.h>
38747
38748int main (void)
38749{
38750
38751 char buffer[1024];
38752 int error = 1;
38753 buffer[0] = '\0';
38754 error = strerror_r(EACCES, buffer, sizeof(buffer));
38755 if(error)
38756 exit(1); /* fail */
38757 if(buffer[0] == '\0')
38758 exit(1); /* fail */
38759 else
38760 exit(0);
38761
38762 ;
38763 return 0;
38764}
38765
38766_ACEOF
38767if ac_fn_c_try_run "$LINENO"; then :
38768
38769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38770$as_echo "yes" >&6; }
38771 tst_works_posix_strerror_r="yes"
38772
38773else
38774
38775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38776$as_echo "no" >&6; }
38777 tst_works_posix_strerror_r="no"
38778
38779fi
38780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38781 conftest.$ac_objext conftest.beam conftest.$ac_ext
38782fi
38783
38784 fi
38785 #
38786 if test "$tst_works_glibc_strerror_r" = "yes"; then
38787 tst_posix_strerror_r="no"
38788 fi
38789 if test "$tst_works_posix_strerror_r" = "yes"; then
38790 tst_glibc_strerror_r="no"
38791 fi
38792 if test "$tst_glibc_strerror_r" = "yes" &&
38793 test "$tst_works_glibc_strerror_r" != "no" &&
38794 test "$tst_posix_strerror_r" != "yes"; then
38795 tst_allow_strerror_r="check"
38796 fi
38797 if test "$tst_posix_strerror_r" = "yes" &&
38798 test "$tst_works_posix_strerror_r" != "no" &&
38799 test "$tst_glibc_strerror_r" != "yes"; then
38800 tst_allow_strerror_r="check"
38801 fi
38802 if test "$tst_allow_strerror_r" = "check"; then
38803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38804$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38805 if test "x$curl_disallow_strerror_r" != "xyes"; then
38806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38807$as_echo "yes" >&6; }
38808 tst_allow_strerror_r="yes"
38809 else
38810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38811$as_echo "no" >&6; }
38812 tst_allow_strerror_r="no"
38813 fi
38814 fi
38815 #
38816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38817$as_echo_n "checking if strerror_r might be used... " >&6; }
38818 if test "$tst_links_strerror_r" = "yes" &&
38819 test "$tst_proto_strerror_r" = "yes" &&
38820 test "$tst_compi_strerror_r" = "yes" &&
38821 test "$tst_allow_strerror_r" = "yes"; then
38822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38823$as_echo "yes" >&6; }
38824 if test "$tst_glibc_strerror_r" = "yes"; then
38825
38826cat >>confdefs.h <<_ACEOF
38827#define HAVE_STRERROR_R 1
38828_ACEOF
38829
38830
38831cat >>confdefs.h <<_ACEOF
38832#define HAVE_GLIBC_STRERROR_R 1
38833_ACEOF
38834
38835
38836cat >>confdefs.h <<_ACEOF
38837#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38838_ACEOF
38839
38840 fi
38841 if test "$tst_posix_strerror_r" = "yes"; then
38842
38843cat >>confdefs.h <<_ACEOF
38844#define HAVE_STRERROR_R 1
38845_ACEOF
38846
38847
38848cat >>confdefs.h <<_ACEOF
38849#define HAVE_POSIX_STRERROR_R 1
38850_ACEOF
38851
38852
38853cat >>confdefs.h <<_ACEOF
38854#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38855_ACEOF
38856
38857 fi
38858 curl_cv_func_strerror_r="yes"
38859 else
38860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38861$as_echo "no" >&6; }
38862 curl_cv_func_strerror_r="no"
38863 fi
38864 #
38865 if test "$tst_compi_strerror_r" = "yes" &&
38866 test "$tst_allow_strerror_r" = "unknown"; then
38867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38868$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38869 fi
38870 #
38871
38872
38873 #
38874 tst_links_stricmp="unknown"
38875 tst_proto_stricmp="unknown"
38876 tst_compi_stricmp="unknown"
38877 tst_allow_stricmp="unknown"
38878 #
38879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38880$as_echo_n "checking if stricmp can be linked... " >&6; }
38881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38882/* end confdefs.h. */
38883
38884
38885#define stricmp innocuous_stricmp
38886#ifdef __STDC__
38887# include <limits.h>
38888#else
38889# include <assert.h>
38890#endif
38891#undef stricmp
38892#ifdef __cplusplus
38893extern "C"
38894#endif
38895char stricmp ();
38896#if defined __stub_stricmp || defined __stub___stricmp
38897choke me
38898#endif
38899
38900int main (void)
38901{
38902return stricmp ();
38903 ;
38904 return 0;
38905}
38906
38907_ACEOF
38908if ac_fn_c_try_link "$LINENO"; then :
38909
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38911$as_echo "yes" >&6; }
38912 tst_links_stricmp="yes"
38913
38914else
38915
38916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38917$as_echo "no" >&6; }
38918 tst_links_stricmp="no"
38919
38920fi
38921rm -f core conftest.err conftest.$ac_objext \
38922 conftest$ac_exeext conftest.$ac_ext
38923 #
38924 if test "$tst_links_stricmp" = "yes"; then
38925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38926$as_echo_n "checking if stricmp is prototyped... " >&6; }
38927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38928/* end confdefs.h. */
38929
38930 $curl_includes_string
38931
38932_ACEOF
38933if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38934 $EGREP "stricmp" >/dev/null 2>&1; then :
38935
38936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38937$as_echo "yes" >&6; }
38938 tst_proto_stricmp="yes"
38939
38940else
38941
38942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38943$as_echo "no" >&6; }
38944 tst_proto_stricmp="no"
38945
38946fi
38947rm -f conftest*
38948
38949 fi
38950 #
38951 if test "$tst_proto_stricmp" = "yes"; then
38952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38953$as_echo_n "checking if stricmp is compilable... " >&6; }
38954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38955/* end confdefs.h. */
38956
38957
38958 $curl_includes_string
38959
38960int main (void)
38961{
38962
38963 if(0 != stricmp(0, 0))
38964 return 1;
38965
38966 ;
38967 return 0;
38968}
38969
38970_ACEOF
38971if ac_fn_c_try_compile "$LINENO"; then :
38972
38973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38974$as_echo "yes" >&6; }
38975 tst_compi_stricmp="yes"
38976
38977else
38978
38979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38980$as_echo "no" >&6; }
38981 tst_compi_stricmp="no"
38982
38983fi
38984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38985 fi
38986 #
38987 if test "$tst_compi_stricmp" = "yes"; then
38988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38989$as_echo_n "checking if stricmp usage allowed... " >&6; }
38990 if test "x$curl_disallow_stricmp" != "xyes"; then
38991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38992$as_echo "yes" >&6; }
38993 tst_allow_stricmp="yes"
38994 else
38995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38996$as_echo "no" >&6; }
38997 tst_allow_stricmp="no"
38998 fi
38999 fi
39000 #
39001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
39002$as_echo_n "checking if stricmp might be used... " >&6; }
39003 if test "$tst_links_stricmp" = "yes" &&
39004 test "$tst_proto_stricmp" = "yes" &&
39005 test "$tst_compi_stricmp" = "yes" &&
39006 test "$tst_allow_stricmp" = "yes"; then
39007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39008$as_echo "yes" >&6; }
39009
39010cat >>confdefs.h <<_ACEOF
39011#define HAVE_STRICMP 1
39012_ACEOF
39013
39014 curl_cv_func_stricmp="yes"
39015 else
39016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39017$as_echo "no" >&6; }
39018 curl_cv_func_stricmp="no"
39019 fi
39020
39021
39022 #
39023 tst_links_strncasecmp="unknown"
39024 tst_proto_strncasecmp="unknown"
39025 tst_compi_strncasecmp="unknown"
39026 tst_allow_strncasecmp="unknown"
39027 #
39028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
39029$as_echo_n "checking if strncasecmp can be linked... " >&6; }
39030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39031/* end confdefs.h. */
39032
39033
39034#define strncasecmp innocuous_strncasecmp
39035#ifdef __STDC__
39036# include <limits.h>
39037#else
39038# include <assert.h>
39039#endif
39040#undef strncasecmp
39041#ifdef __cplusplus
39042extern "C"
39043#endif
39044char strncasecmp ();
39045#if defined __stub_strncasecmp || defined __stub___strncasecmp
39046choke me
39047#endif
39048
39049int main (void)
39050{
39051return strncasecmp ();
39052 ;
39053 return 0;
39054}
39055
39056_ACEOF
39057if ac_fn_c_try_link "$LINENO"; then :
39058
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39060$as_echo "yes" >&6; }
39061 tst_links_strncasecmp="yes"
39062
39063else
39064
39065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39066$as_echo "no" >&6; }
39067 tst_links_strncasecmp="no"
39068
39069fi
39070rm -f core conftest.err conftest.$ac_objext \
39071 conftest$ac_exeext conftest.$ac_ext
39072 #
39073 if test "$tst_links_strncasecmp" = "yes"; then
39074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39075$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39077/* end confdefs.h. */
39078
39079 $curl_includes_string
39080
39081_ACEOF
39082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39083 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39084
39085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39086$as_echo "yes" >&6; }
39087 tst_proto_strncasecmp="yes"
39088
39089else
39090
39091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39092$as_echo "no" >&6; }
39093 tst_proto_strncasecmp="no"
39094
39095fi
39096rm -f conftest*
39097
39098 fi
39099 #
39100 if test "$tst_proto_strncasecmp" = "yes"; then
39101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39102$as_echo_n "checking if strncasecmp is compilable... " >&6; }
39103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39104/* end confdefs.h. */
39105
39106
39107 $curl_includes_string
39108
39109int main (void)
39110{
39111
39112 if(0 != strncasecmp(0, 0, 0))
39113 return 1;
39114
39115 ;
39116 return 0;
39117}
39118
39119_ACEOF
39120if ac_fn_c_try_compile "$LINENO"; then :
39121
39122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39123$as_echo "yes" >&6; }
39124 tst_compi_strncasecmp="yes"
39125
39126else
39127
39128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39129$as_echo "no" >&6; }
39130 tst_compi_strncasecmp="no"
39131
39132fi
39133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39134 fi
39135 #
39136 if test "$tst_compi_strncasecmp" = "yes"; then
39137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39138$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39139 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39141$as_echo "yes" >&6; }
39142 tst_allow_strncasecmp="yes"
39143 else
39144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39145$as_echo "no" >&6; }
39146 tst_allow_strncasecmp="no"
39147 fi
39148 fi
39149 #
39150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39151$as_echo_n "checking if strncasecmp might be used... " >&6; }
39152 if test "$tst_links_strncasecmp" = "yes" &&
39153 test "$tst_proto_strncasecmp" = "yes" &&
39154 test "$tst_compi_strncasecmp" = "yes" &&
39155 test "$tst_allow_strncasecmp" = "yes"; then
39156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39157$as_echo "yes" >&6; }
39158
39159cat >>confdefs.h <<_ACEOF
39160#define HAVE_STRNCASECMP 1
39161_ACEOF
39162
39163 curl_cv_func_strncasecmp="yes"
39164 else
39165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39166$as_echo "no" >&6; }
39167 curl_cv_func_strncasecmp="no"
39168 fi
39169
39170
39171 #
39172 tst_links_strncmpi="unknown"
39173 tst_proto_strncmpi="unknown"
39174 tst_compi_strncmpi="unknown"
39175 tst_allow_strncmpi="unknown"
39176 #
39177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39178$as_echo_n "checking if strncmpi can be linked... " >&6; }
39179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39180/* end confdefs.h. */
39181
39182
39183#define strncmpi innocuous_strncmpi
39184#ifdef __STDC__
39185# include <limits.h>
39186#else
39187# include <assert.h>
39188#endif
39189#undef strncmpi
39190#ifdef __cplusplus
39191extern "C"
39192#endif
39193char strncmpi ();
39194#if defined __stub_strncmpi || defined __stub___strncmpi
39195choke me
39196#endif
39197
39198int main (void)
39199{
39200return strncmpi ();
39201 ;
39202 return 0;
39203}
39204
39205_ACEOF
39206if ac_fn_c_try_link "$LINENO"; then :
39207
39208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39209$as_echo "yes" >&6; }
39210 tst_links_strncmpi="yes"
39211
39212else
39213
39214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39215$as_echo "no" >&6; }
39216 tst_links_strncmpi="no"
39217
39218fi
39219rm -f core conftest.err conftest.$ac_objext \
39220 conftest$ac_exeext conftest.$ac_ext
39221 #
39222 if test "$tst_links_strncmpi" = "yes"; then
39223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39224$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39226/* end confdefs.h. */
39227
39228 $curl_includes_string
39229
39230_ACEOF
39231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39232 $EGREP "strncmpi" >/dev/null 2>&1; then :
39233
39234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39235$as_echo "yes" >&6; }
39236 tst_proto_strncmpi="yes"
39237
39238else
39239
39240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39241$as_echo "no" >&6; }
39242 tst_proto_strncmpi="no"
39243
39244fi
39245rm -f conftest*
39246
39247 fi
39248 #
39249 if test "$tst_proto_strncmpi" = "yes"; then
39250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39251$as_echo_n "checking if strncmpi is compilable... " >&6; }
39252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39253/* end confdefs.h. */
39254
39255
39256 $curl_includes_string
39257
39258int main (void)
39259{
39260
39261 if(0 != strncmpi(0, 0))
39262 return 1;
39263
39264 ;
39265 return 0;
39266}
39267
39268_ACEOF
39269if ac_fn_c_try_compile "$LINENO"; then :
39270
39271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39272$as_echo "yes" >&6; }
39273 tst_compi_strncmpi="yes"
39274
39275else
39276
39277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39278$as_echo "no" >&6; }
39279 tst_compi_strncmpi="no"
39280
39281fi
39282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39283 fi
39284 #
39285 if test "$tst_compi_strncmpi" = "yes"; then
39286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39287$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39288 if test "x$curl_disallow_strncmpi" != "xyes"; then
39289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39290$as_echo "yes" >&6; }
39291 tst_allow_strncmpi="yes"
39292 else
39293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39294$as_echo "no" >&6; }
39295 tst_allow_strncmpi="no"
39296 fi
39297 fi
39298 #
39299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39300$as_echo_n "checking if strncmpi might be used... " >&6; }
39301 if test "$tst_links_strncmpi" = "yes" &&
39302 test "$tst_proto_strncmpi" = "yes" &&
39303 test "$tst_compi_strncmpi" = "yes" &&
39304 test "$tst_allow_strncmpi" = "yes"; then
39305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39306$as_echo "yes" >&6; }
39307
39308cat >>confdefs.h <<_ACEOF
39309#define HAVE_STRNCMPI 1
39310_ACEOF
39311
39312 curl_cv_func_strncmpi="yes"
39313 else
39314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39315$as_echo "no" >&6; }
39316 curl_cv_func_strncmpi="no"
39317 fi
39318
39319
39320 #
39321 tst_links_strnicmp="unknown"
39322 tst_proto_strnicmp="unknown"
39323 tst_compi_strnicmp="unknown"
39324 tst_allow_strnicmp="unknown"
39325 #
39326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39327$as_echo_n "checking if strnicmp can be linked... " >&6; }
39328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39329/* end confdefs.h. */
39330
39331
39332#define strnicmp innocuous_strnicmp
39333#ifdef __STDC__
39334# include <limits.h>
39335#else
39336# include <assert.h>
39337#endif
39338#undef strnicmp
39339#ifdef __cplusplus
39340extern "C"
39341#endif
39342char strnicmp ();
39343#if defined __stub_strnicmp || defined __stub___strnicmp
39344choke me
39345#endif
39346
39347int main (void)
39348{
39349return strnicmp ();
39350 ;
39351 return 0;
39352}
39353
39354_ACEOF
39355if ac_fn_c_try_link "$LINENO"; then :
39356
39357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39358$as_echo "yes" >&6; }
39359 tst_links_strnicmp="yes"
39360
39361else
39362
39363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39364$as_echo "no" >&6; }
39365 tst_links_strnicmp="no"
39366
39367fi
39368rm -f core conftest.err conftest.$ac_objext \
39369 conftest$ac_exeext conftest.$ac_ext
39370 #
39371 if test "$tst_links_strnicmp" = "yes"; then
39372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39373$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39375/* end confdefs.h. */
39376
39377 $curl_includes_string
39378
39379_ACEOF
39380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39381 $EGREP "strnicmp" >/dev/null 2>&1; then :
39382
39383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39384$as_echo "yes" >&6; }
39385 tst_proto_strnicmp="yes"
39386
39387else
39388
39389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39390$as_echo "no" >&6; }
39391 tst_proto_strnicmp="no"
39392
39393fi
39394rm -f conftest*
39395
39396 fi
39397 #
39398 if test "$tst_proto_strnicmp" = "yes"; then
39399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39400$as_echo_n "checking if strnicmp is compilable... " >&6; }
39401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39402/* end confdefs.h. */
39403
39404
39405 $curl_includes_string
39406
39407int main (void)
39408{
39409
39410 if(0 != strnicmp(0, 0))
39411 return 1;
39412
39413 ;
39414 return 0;
39415}
39416
39417_ACEOF
39418if ac_fn_c_try_compile "$LINENO"; then :
39419
39420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39421$as_echo "yes" >&6; }
39422 tst_compi_strnicmp="yes"
39423
39424else
39425
39426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39427$as_echo "no" >&6; }
39428 tst_compi_strnicmp="no"
39429
39430fi
39431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39432 fi
39433 #
39434 if test "$tst_compi_strnicmp" = "yes"; then
39435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39436$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39437 if test "x$curl_disallow_strnicmp" != "xyes"; then
39438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39439$as_echo "yes" >&6; }
39440 tst_allow_strnicmp="yes"
39441 else
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39443$as_echo "no" >&6; }
39444 tst_allow_strnicmp="no"
39445 fi
39446 fi
39447 #
39448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39449$as_echo_n "checking if strnicmp might be used... " >&6; }
39450 if test "$tst_links_strnicmp" = "yes" &&
39451 test "$tst_proto_strnicmp" = "yes" &&
39452 test "$tst_compi_strnicmp" = "yes" &&
39453 test "$tst_allow_strnicmp" = "yes"; then
39454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39455$as_echo "yes" >&6; }
39456
39457cat >>confdefs.h <<_ACEOF
39458#define HAVE_STRNICMP 1
39459_ACEOF
39460
39461 curl_cv_func_strnicmp="yes"
39462 else
39463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39464$as_echo "no" >&6; }
39465 curl_cv_func_strnicmp="no"
39466 fi
39467
39468
39469 #
39470 tst_links_strstr="unknown"
39471 tst_proto_strstr="unknown"
39472 tst_compi_strstr="unknown"
39473 tst_allow_strstr="unknown"
39474 #
39475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39476$as_echo_n "checking if strstr can be linked... " >&6; }
39477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39478/* end confdefs.h. */
39479
39480
39481#define strstr innocuous_strstr
39482#ifdef __STDC__
39483# include <limits.h>
39484#else
39485# include <assert.h>
39486#endif
39487#undef strstr
39488#ifdef __cplusplus
39489extern "C"
39490#endif
39491char strstr ();
39492#if defined __stub_strstr || defined __stub___strstr
39493choke me
39494#endif
39495
39496int main (void)
39497{
39498return strstr ();
39499 ;
39500 return 0;
39501}
39502
39503_ACEOF
39504if ac_fn_c_try_link "$LINENO"; then :
39505
39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39507$as_echo "yes" >&6; }
39508 tst_links_strstr="yes"
39509
39510else
39511
39512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39513$as_echo "no" >&6; }
39514 tst_links_strstr="no"
39515
39516fi
39517rm -f core conftest.err conftest.$ac_objext \
39518 conftest$ac_exeext conftest.$ac_ext
39519 #
39520 if test "$tst_links_strstr" = "yes"; then
39521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39522$as_echo_n "checking if strstr is prototyped... " >&6; }
39523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39524/* end confdefs.h. */
39525
39526 $curl_includes_string
39527
39528_ACEOF
39529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39530 $EGREP "strstr" >/dev/null 2>&1; then :
39531
39532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39533$as_echo "yes" >&6; }
39534 tst_proto_strstr="yes"
39535
39536else
39537
39538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39539$as_echo "no" >&6; }
39540 tst_proto_strstr="no"
39541
39542fi
39543rm -f conftest*
39544
39545 fi
39546 #
39547 if test "$tst_proto_strstr" = "yes"; then
39548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39549$as_echo_n "checking if strstr is compilable... " >&6; }
39550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39551/* end confdefs.h. */
39552
39553
39554 $curl_includes_string
39555
39556int main (void)
39557{
39558
39559 if(0 != strstr(0, 0))
39560 return 1;
39561
39562 ;
39563 return 0;
39564}
39565
39566_ACEOF
39567if ac_fn_c_try_compile "$LINENO"; then :
39568
39569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39570$as_echo "yes" >&6; }
39571 tst_compi_strstr="yes"
39572
39573else
39574
39575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39576$as_echo "no" >&6; }
39577 tst_compi_strstr="no"
39578
39579fi
39580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39581 fi
39582 #
39583 if test "$tst_compi_strstr" = "yes"; then
39584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39585$as_echo_n "checking if strstr usage allowed... " >&6; }
39586 if test "x$curl_disallow_strstr" != "xyes"; then
39587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39588$as_echo "yes" >&6; }
39589 tst_allow_strstr="yes"
39590 else
39591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39592$as_echo "no" >&6; }
39593 tst_allow_strstr="no"
39594 fi
39595 fi
39596 #
39597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39598$as_echo_n "checking if strstr might be used... " >&6; }
39599 if test "$tst_links_strstr" = "yes" &&
39600 test "$tst_proto_strstr" = "yes" &&
39601 test "$tst_compi_strstr" = "yes" &&
39602 test "$tst_allow_strstr" = "yes"; then
39603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39604$as_echo "yes" >&6; }
39605
39606cat >>confdefs.h <<_ACEOF
39607#define HAVE_STRSTR 1
39608_ACEOF
39609
39610 curl_cv_func_strstr="yes"
39611 else
39612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39613$as_echo "no" >&6; }
39614 curl_cv_func_strstr="no"
39615 fi
39616
39617
39618 #
39619 tst_links_strtok_r="unknown"
39620 tst_proto_strtok_r="unknown"
39621 tst_compi_strtok_r="unknown"
39622 tst_allow_strtok_r="unknown"
39623 #
39624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39625$as_echo_n "checking if strtok_r can be linked... " >&6; }
39626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39627/* end confdefs.h. */
39628
39629
39630#define strtok_r innocuous_strtok_r
39631#ifdef __STDC__
39632# include <limits.h>
39633#else
39634# include <assert.h>
39635#endif
39636#undef strtok_r
39637#ifdef __cplusplus
39638extern "C"
39639#endif
39640char strtok_r ();
39641#if defined __stub_strtok_r || defined __stub___strtok_r
39642choke me
39643#endif
39644
39645int main (void)
39646{
39647return strtok_r ();
39648 ;
39649 return 0;
39650}
39651
39652_ACEOF
39653if ac_fn_c_try_link "$LINENO"; then :
39654
39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39656$as_echo "yes" >&6; }
39657 tst_links_strtok_r="yes"
39658
39659else
39660
39661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39662$as_echo "no" >&6; }
39663 tst_links_strtok_r="no"
39664
39665fi
39666rm -f core conftest.err conftest.$ac_objext \
39667 conftest$ac_exeext conftest.$ac_ext
39668 #
39669 if test "$tst_links_strtok_r" = "yes"; then
39670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39671$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39673/* end confdefs.h. */
39674
39675 $curl_includes_string
39676
39677_ACEOF
39678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39679 $EGREP "strtok_r" >/dev/null 2>&1; then :
39680
39681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39682$as_echo "yes" >&6; }
39683 tst_proto_strtok_r="yes"
39684
39685else
39686
39687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39688$as_echo "no" >&6; }
39689 tst_proto_strtok_r="no"
39690
39691fi
39692rm -f conftest*
39693
39694 fi
39695 #
39696 if test "$tst_proto_strtok_r" = "yes"; then
39697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39698$as_echo_n "checking if strtok_r is compilable... " >&6; }
39699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39700/* end confdefs.h. */
39701
39702
39703 $curl_includes_string
39704
39705int main (void)
39706{
39707
39708 if(0 != strtok_r(0, 0, 0))
39709 return 1;
39710
39711 ;
39712 return 0;
39713}
39714
39715_ACEOF
39716if ac_fn_c_try_compile "$LINENO"; then :
39717
39718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39719$as_echo "yes" >&6; }
39720 tst_compi_strtok_r="yes"
39721
39722else
39723
39724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39725$as_echo "no" >&6; }
39726 tst_compi_strtok_r="no"
39727
39728fi
39729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39730 fi
39731 #
39732 if test "$tst_compi_strtok_r" = "yes"; then
39733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39734$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39735 if test "x$curl_disallow_strtok_r" != "xyes"; then
39736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39737$as_echo "yes" >&6; }
39738 tst_allow_strtok_r="yes"
39739 else
39740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39741$as_echo "no" >&6; }
39742 tst_allow_strtok_r="no"
39743 fi
39744 fi
39745 #
39746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39747$as_echo_n "checking if strtok_r might be used... " >&6; }
39748 if test "$tst_links_strtok_r" = "yes" &&
39749 test "$tst_proto_strtok_r" = "yes" &&
39750 test "$tst_compi_strtok_r" = "yes" &&
39751 test "$tst_allow_strtok_r" = "yes"; then
39752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39753$as_echo "yes" >&6; }
39754
39755cat >>confdefs.h <<_ACEOF
39756#define HAVE_STRTOK_R 1
39757_ACEOF
39758
39759 curl_cv_func_strtok_r="yes"
39760 else
39761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39762$as_echo "no" >&6; }
39763 curl_cv_func_strtok_r="no"
39764 fi
39765
39766
39767 #
39768 tst_links_strtoll="unknown"
39769 tst_proto_strtoll="unknown"
39770 tst_compi_strtoll="unknown"
39771 tst_allow_strtoll="unknown"
39772 #
39773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39774$as_echo_n "checking if strtoll can be linked... " >&6; }
39775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39776/* end confdefs.h. */
39777
39778
39779#define strtoll innocuous_strtoll
39780#ifdef __STDC__
39781# include <limits.h>
39782#else
39783# include <assert.h>
39784#endif
39785#undef strtoll
39786#ifdef __cplusplus
39787extern "C"
39788#endif
39789char strtoll ();
39790#if defined __stub_strtoll || defined __stub___strtoll
39791choke me
39792#endif
39793
39794int main (void)
39795{
39796return strtoll ();
39797 ;
39798 return 0;
39799}
39800
39801_ACEOF
39802if ac_fn_c_try_link "$LINENO"; then :
39803
39804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39805$as_echo "yes" >&6; }
39806 tst_links_strtoll="yes"
39807
39808else
39809
39810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39811$as_echo "no" >&6; }
39812 tst_links_strtoll="no"
39813
39814fi
39815rm -f core conftest.err conftest.$ac_objext \
39816 conftest$ac_exeext conftest.$ac_ext
39817 #
39818 if test "$tst_links_strtoll" = "yes"; then
39819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39820$as_echo_n "checking if strtoll is prototyped... " >&6; }
39821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39822/* end confdefs.h. */
39823
39824 $curl_includes_stdlib
39825
39826_ACEOF
39827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39828 $EGREP "strtoll" >/dev/null 2>&1; then :
39829
39830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39831$as_echo "yes" >&6; }
39832 tst_proto_strtoll="yes"
39833
39834else
39835
39836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39837$as_echo "no" >&6; }
39838 tst_proto_strtoll="no"
39839
39840fi
39841rm -f conftest*
39842
39843 fi
39844 #
39845 if test "$tst_proto_strtoll" = "yes"; then
39846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39847$as_echo_n "checking if strtoll is compilable... " >&6; }
39848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39849/* end confdefs.h. */
39850
39851
39852 $curl_includes_stdlib
39853
39854int main (void)
39855{
39856
39857 if(0 != strtoll(0, 0, 0))
39858 return 1;
39859
39860 ;
39861 return 0;
39862}
39863
39864_ACEOF
39865if ac_fn_c_try_compile "$LINENO"; then :
39866
39867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39868$as_echo "yes" >&6; }
39869 tst_compi_strtoll="yes"
39870
39871else
39872
39873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39874$as_echo "no" >&6; }
39875 tst_compi_strtoll="no"
39876
39877fi
39878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39879 fi
39880 #
39881 if test "$tst_compi_strtoll" = "yes"; then
39882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39883$as_echo_n "checking if strtoll usage allowed... " >&6; }
39884 if test "x$curl_disallow_strtoll" != "xyes"; then
39885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39886$as_echo "yes" >&6; }
39887 tst_allow_strtoll="yes"
39888 else
39889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39890$as_echo "no" >&6; }
39891 tst_allow_strtoll="no"
39892 fi
39893 fi
39894 #
39895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39896$as_echo_n "checking if strtoll might be used... " >&6; }
39897 if test "$tst_links_strtoll" = "yes" &&
39898 test "$tst_proto_strtoll" = "yes" &&
39899 test "$tst_compi_strtoll" = "yes" &&
39900 test "$tst_allow_strtoll" = "yes"; then
39901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39902$as_echo "yes" >&6; }
39903
39904cat >>confdefs.h <<_ACEOF
39905#define HAVE_STRTOLL 1
39906_ACEOF
39907
39908 curl_cv_func_strtoll="yes"
39909 else
39910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39911$as_echo "no" >&6; }
39912 curl_cv_func_strtoll="no"
39913 fi
39914
39915
39916curl_includes_sys_uio="\
39917/* includes start */
39918#ifdef HAVE_SYS_TYPES_H
39919# include <sys/types.h>
39920#endif
39921#ifdef HAVE_SYS_UIO_H
39922# include <sys/uio.h>
39923#endif
39924/* includes end */"
39925 for ac_header in sys/types.h sys/uio.h
39926do :
39927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39928ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39929"
39930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39931 cat >>confdefs.h <<_ACEOF
39932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39933_ACEOF
39934
39935fi
39936
39937done
39938
39939
39940
39941 #
39942 tst_links_writev="unknown"
39943 tst_proto_writev="unknown"
39944 tst_compi_writev="unknown"
39945 tst_allow_writev="unknown"
39946 #
39947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39948$as_echo_n "checking if writev can be linked... " >&6; }
39949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39950/* end confdefs.h. */
39951
39952
39953#define writev innocuous_writev
39954#ifdef __STDC__
39955# include <limits.h>
39956#else
39957# include <assert.h>
39958#endif
39959#undef writev
39960#ifdef __cplusplus
39961extern "C"
39962#endif
39963char writev ();
39964#if defined __stub_writev || defined __stub___writev
39965choke me
39966#endif
39967
39968int main (void)
39969{
39970return writev ();
39971 ;
39972 return 0;
39973}
39974
39975_ACEOF
39976if ac_fn_c_try_link "$LINENO"; then :
39977
39978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39979$as_echo "yes" >&6; }
39980 tst_links_writev="yes"
39981
39982else
39983
39984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39985$as_echo "no" >&6; }
39986 tst_links_writev="no"
39987
39988fi
39989rm -f core conftest.err conftest.$ac_objext \
39990 conftest$ac_exeext conftest.$ac_ext
39991 #
39992 if test "$tst_links_writev" = "yes"; then
39993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39994$as_echo_n "checking if writev is prototyped... " >&6; }
39995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39996/* end confdefs.h. */
39997
39998 $curl_includes_sys_uio
39999
40000_ACEOF
40001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40002 $EGREP "writev" >/dev/null 2>&1; then :
40003
40004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40005$as_echo "yes" >&6; }
40006 tst_proto_writev="yes"
40007
40008else
40009
40010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40011$as_echo "no" >&6; }
40012 tst_proto_writev="no"
40013
40014fi
40015rm -f conftest*
40016
40017 fi
40018 #
40019 if test "$tst_proto_writev" = "yes"; then
40020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
40021$as_echo_n "checking if writev is compilable... " >&6; }
40022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40023/* end confdefs.h. */
40024
40025
40026 $curl_includes_sys_uio
40027
40028int main (void)
40029{
40030
40031 if(0 != writev(0, 0, 0))
40032 return 1;
40033
40034 ;
40035 return 0;
40036}
40037
40038_ACEOF
40039if ac_fn_c_try_compile "$LINENO"; then :
40040
40041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40042$as_echo "yes" >&6; }
40043 tst_compi_writev="yes"
40044
40045else
40046
40047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40048$as_echo "no" >&6; }
40049 tst_compi_writev="no"
40050
40051fi
40052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40053 fi
40054 #
40055 if test "$tst_compi_writev" = "yes"; then
40056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
40057$as_echo_n "checking if writev usage allowed... " >&6; }
40058 if test "x$curl_disallow_writev" != "xyes"; then
40059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40060$as_echo "yes" >&6; }
40061 tst_allow_writev="yes"
40062 else
40063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40064$as_echo "no" >&6; }
40065 tst_allow_writev="no"
40066 fi
40067 fi
40068 #
40069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40070$as_echo_n "checking if writev might be used... " >&6; }
40071 if test "$tst_links_writev" = "yes" &&
40072 test "$tst_proto_writev" = "yes" &&
40073 test "$tst_compi_writev" = "yes" &&
40074 test "$tst_allow_writev" = "yes"; then
40075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40076$as_echo "yes" >&6; }
40077
40078cat >>confdefs.h <<_ACEOF
40079#define HAVE_WRITEV 1
40080_ACEOF
40081
40082 curl_cv_func_writev="yes"
40083 else
40084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40085$as_echo "no" >&6; }
40086 curl_cv_func_writev="no"
40087 fi
40088
40089
40090case $host in
40091 *msdosdjgpp)
40092 ac_cv_func_pipe=no
40093 skipcheck_pipe=yes
40094 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40095$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40096 ;;
40097esac
40098
40099for ac_func in geteuid \
40100 getpass_r \
40101 getppid \
40102 getpwuid \
40103 getpwuid_r \
40104 getrlimit \
40105 gettimeofday \
40106 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040107 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040108 pipe \
40109 setlocale \
40110 setmode \
40111 setrlimit \
40112 utime \
40113 utimes
40114
40115do :
40116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40117ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40118if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40119 cat >>confdefs.h <<_ACEOF
40120#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40121_ACEOF
40122
40123
40124else
40125
40126 func="$ac_func"
40127 eval skipcheck=\$skipcheck_$func
40128 if test "x$skipcheck" != "xyes"; then
40129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40130$as_echo_n "checking deeper for $func... " >&6; }
40131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40132/* end confdefs.h. */
40133
40134
40135
40136int main (void)
40137{
40138
40139 $func ();
40140
40141 ;
40142 return 0;
40143}
40144
40145_ACEOF
40146if ac_fn_c_try_link "$LINENO"; then :
40147
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40149$as_echo "yes" >&6; }
40150 eval "ac_cv_func_$func=yes"
40151
40152cat >>confdefs.h <<_ACEOF
40153#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40154_ACEOF
40155
40156
40157else
40158
40159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40160$as_echo "but still no" >&6; }
40161
40162fi
40163rm -f core conftest.err conftest.$ac_objext \
40164 conftest$ac_exeext conftest.$ac_ext
40165 fi
40166
40167fi
40168done
40169
40170
40171
40172 for ac_header in sys/types.h sys/socket.h netdb.h
40173do :
40174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40175ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40176if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40177 cat >>confdefs.h <<_ACEOF
40178#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40179_ACEOF
40180
40181fi
40182
40183done
40184
40185 #
40186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
40187$as_echo_n "checking for getnameinfo... " >&6; }
40188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40189/* end confdefs.h. */
40190
40191
40192#define getnameinfo innocuous_getnameinfo
40193#ifdef __STDC__
40194# include <limits.h>
40195#else
40196# include <assert.h>
40197#endif
40198#undef getnameinfo
40199#ifdef __cplusplus
40200extern "C"
40201#endif
40202char getnameinfo ();
40203#if defined __stub_getnameinfo || defined __stub___getnameinfo
40204choke me
40205#endif
40206
40207int main (void)
40208{
40209return getnameinfo ();
40210 ;
40211 return 0;
40212}
40213
40214_ACEOF
40215if ac_fn_c_try_link "$LINENO"; then :
40216
40217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40218$as_echo "yes" >&6; }
40219 curl_cv_getnameinfo="yes"
40220
40221else
40222
40223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40224$as_echo "no" >&6; }
40225 curl_cv_getnameinfo="no"
40226
40227fi
40228rm -f core conftest.err conftest.$ac_objext \
40229 conftest$ac_exeext conftest.$ac_ext
40230 #
40231 if test "$curl_cv_getnameinfo" != "yes"; then
40232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
40233$as_echo_n "checking deeper for getnameinfo... " >&6; }
40234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40235/* end confdefs.h. */
40236
40237
40238
40239int main (void)
40240{
40241
40242 getnameinfo();
40243
40244 ;
40245 return 0;
40246}
40247
40248_ACEOF
40249if ac_fn_c_try_link "$LINENO"; then :
40250
40251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40252$as_echo "yes" >&6; }
40253 curl_cv_getnameinfo="yes"
40254
40255else
40256
40257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40258$as_echo "but still no" >&6; }
40259 curl_cv_getnameinfo="no"
40260
40261fi
40262rm -f core conftest.err conftest.$ac_objext \
40263 conftest$ac_exeext conftest.$ac_ext
40264 fi
40265 #
40266 if test "$curl_cv_getnameinfo" != "yes"; then
40267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
40268$as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
40269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40270/* end confdefs.h. */
40271
40272
40273#undef inline
40274#ifdef HAVE_WINDOWS_H
40275#ifndef WIN32_LEAN_AND_MEAN
40276#define WIN32_LEAN_AND_MEAN
40277#endif
40278#include <windows.h>
40279#ifdef HAVE_WINSOCK2_H
40280#include <winsock2.h>
40281#ifdef HAVE_WS2TCPIP_H
40282#include <ws2tcpip.h>
40283#endif
40284#endif
40285#else
40286#ifdef HAVE_SYS_TYPES_H
40287#include <sys/types.h>
40288#endif
40289#ifdef HAVE_SYS_SOCKET_H
40290#include <sys/socket.h>
40291#endif
40292#ifdef HAVE_NETDB_H
40293#include <netdb.h>
40294#endif
40295#endif
40296
40297int main (void)
40298{
40299
40300 getnameinfo(0, 0, 0, 0, 0, 0, 0);
40301
40302 ;
40303 return 0;
40304}
40305
40306_ACEOF
40307if ac_fn_c_try_link "$LINENO"; then :
40308
40309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40310$as_echo "yes" >&6; }
40311 curl_cv_getnameinfo="yes"
40312
40313else
40314
40315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40316$as_echo "but still no" >&6; }
40317 curl_cv_getnameinfo="no"
40318
40319fi
40320rm -f core conftest.err conftest.$ac_objext \
40321 conftest$ac_exeext conftest.$ac_ext
40322 fi
40323 #
40324 if test "$curl_cv_getnameinfo" = "yes"; then
40325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
40326$as_echo_n "checking types of arguments for getnameinfo... " >&6; }
40327if ${curl_cv_func_getnameinfo_args+:} false; then :
40328 $as_echo_n "(cached) " >&6
40329else
40330
40331 curl_cv_func_getnameinfo_args="unknown"
40332 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
40333 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
40334 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
40335 for gni_arg7 in 'int' 'unsigned int'; do
40336 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40338/* end confdefs.h. */
40339
40340
40341#undef inline
40342#ifdef HAVE_WINDOWS_H
40343#ifndef WIN32_LEAN_AND_MEAN
40344#define WIN32_LEAN_AND_MEAN
40345#endif
40346#if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
40347#undef _WIN32_WINNT
40348#define _WIN32_WINNT 0x0501
40349#endif
40350#include <windows.h>
40351#ifdef HAVE_WINSOCK2_H
40352#include <winsock2.h>
40353#ifdef HAVE_WS2TCPIP_H
40354#include <ws2tcpip.h>
40355#endif
40356#endif
40357#define GNICALLCONV WSAAPI
40358#else
40359#ifdef HAVE_SYS_TYPES_H
40360#include <sys/types.h>
40361#endif
40362#ifdef HAVE_SYS_SOCKET_H
40363#include <sys/socket.h>
40364#endif
40365#ifdef HAVE_NETDB_H
40366#include <netdb.h>
40367#endif
40368#define GNICALLCONV
40369#endif
40370 extern int GNICALLCONV
40371#ifdef __ANDROID__
40372__attribute__((overloadable))
40373#endif
40374 getnameinfo($gni_arg1, $gni_arg2,
40375 char *, $gni_arg46,
40376 char *, $gni_arg46,
40377 $gni_arg7);
40378
40379int main (void)
40380{
40381
40382 $gni_arg2 salen=0;
40383 $gni_arg46 hostlen=0;
40384 $gni_arg46 servlen=0;
40385 $gni_arg7 flags=0;
40386 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
40387
40388 ;
40389 return 0;
40390}
40391
40392_ACEOF
40393if ac_fn_c_try_compile "$LINENO"; then :
40394
40395 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
40396
40397fi
40398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40399 fi
40400 done
40401 done
40402 done
40403 done
40404
40405fi
40406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
40407$as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
40408 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
40410$as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
40411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
40412$as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
40413 else
40414 gni_prev_IFS=$IFS; IFS=','
40415 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
40416 IFS=$gni_prev_IFS
40417 shift
40418 #
40419 gni_qual_type_arg1=$1
40420 #
40421
40422cat >>confdefs.h <<_ACEOF
40423#define GETNAMEINFO_TYPE_ARG2 $2
40424_ACEOF
40425
40426
40427cat >>confdefs.h <<_ACEOF
40428#define GETNAMEINFO_TYPE_ARG46 $3
40429_ACEOF
40430
40431
40432cat >>confdefs.h <<_ACEOF
40433#define GETNAMEINFO_TYPE_ARG7 $4
40434_ACEOF
40435
40436 #
40437 prev_sh_opts=$-
40438 #
40439 case $prev_sh_opts in
40440 *f*)
40441 ;;
40442 *)
40443 set -f
40444 ;;
40445 esac
40446 #
40447 case "$gni_qual_type_arg1" in
40448 const*)
40449 gni_qual_arg1=const
40450 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
40451 ;;
40452 *)
40453 gni_qual_arg1=
40454 gni_type_arg1=$gni_qual_type_arg1
40455 ;;
40456 esac
40457 #
40458
40459cat >>confdefs.h <<_ACEOF
40460#define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
40461_ACEOF
40462
40463
40464cat >>confdefs.h <<_ACEOF
40465#define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
40466_ACEOF
40467
40468 #
40469 case $prev_sh_opts in
40470 *f*)
40471 ;;
40472 *)
40473 set +f
40474 ;;
40475 esac
40476 #
40477
40478cat >>confdefs.h <<_ACEOF
40479#define HAVE_GETNAMEINFO 1
40480_ACEOF
40481
40482 curl_cv_func_getnameinfo="yes"
40483 fi
40484 fi
40485
40486
40487if test "$ipv6" = "yes"; then
40488 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40489
40490$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40491
40492 IPV6_ENABLED=1
40493
40494 fi
40495
40496 for ac_header in stdio.h sys/types.h sys/socket.h \
40497 netdb.h netinet/in.h arpa/inet.h
40498do :
40499 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40500ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40501if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40502 cat >>confdefs.h <<_ACEOF
40503#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40504_ACEOF
40505
40506fi
40507
40508done
40509
40510 #
40511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
40512$as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
40513if ${curl_cv_working_ni_withscopeid+:} false; then :
40514 $as_echo_n "(cached) " >&6
40515else
40516
40517 if test "$cross_compiling" = yes; then :
40518
40519 # Program is not run when cross-compiling. So we assume
40520 # NI_WITHSCOPEID will work if we are able to compile it.
40521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40522/* end confdefs.h. */
40523
40524
40525#include <sys/types.h>
40526#include <sys/socket.h>
40527#include <netdb.h>
40528
40529int main (void)
40530{
40531
40532 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40533
40534 ;
40535 return 0;
40536}
40537
40538_ACEOF
40539if ac_fn_c_try_compile "$LINENO"; then :
40540
40541 curl_cv_working_ni_withscopeid="yes"
40542
40543else
40544
40545 curl_cv_working_ni_withscopeid="no"
40546
40547fi
40548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
40549
40550else
40551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40552/* end confdefs.h. */
40553
40554
40555#ifdef HAVE_STDLIB_H
40556#include <stdlib.h>
40557#endif
40558#ifdef HAVE_STDIO_H
40559#include <stdio.h>
40560#endif
40561#ifdef HAVE_SYS_TYPES_H
40562#include <sys/types.h>
40563#endif
40564#ifdef HAVE_SYS_SOCKET_H
40565#include <sys/socket.h>
40566#endif
40567#ifdef HAVE_NETDB_H
40568#include <netdb.h>
40569#endif
40570#ifdef HAVE_NETINET_IN_H
40571#include <netinet/in.h>
40572#endif
40573#ifdef HAVE_ARPA_INET_H
40574#include <arpa/inet.h>
40575#endif
40576
40577int main (void)
40578{
40579
40580#if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
40581#ifdef HAVE_STRUCT_SOCKADDR_STORAGE
40582 struct sockaddr_storage sa;
40583#else
40584 unsigned char sa[256];
40585#endif
40586 char hostbuf[NI_MAXHOST];
40587 int rc;
40588 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
40589 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
40590 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40591 int fd = socket(AF_INET6, SOCK_STREAM, 0);
40592 if(fd < 0) {
40593 perror("socket()");
40594 return 1; /* Error creating socket */
40595 }
40596 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
40597 if(rc) {
40598 perror("getsockname()");
40599 return 2; /* Error retrieving socket name */
40600 }
40601 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
40602 if(rc) {
40603 printf("rc = %s\n", gai_strerror(rc));
40604 return 3; /* Error translating socket address */
40605 }
40606 return 0; /* Ok, NI_WITHSCOPEID works */
40607#else
40608 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
40609#endif
40610
40611 ;
40612 return 0;
40613} # AC-LANG-PROGRAM
40614
40615_ACEOF
40616if ac_fn_c_try_run "$LINENO"; then :
40617
40618 # Exit code == 0. Program worked.
40619 curl_cv_working_ni_withscopeid="yes"
40620
40621else
40622
40623 # Exit code != 0. Program failed.
40624 curl_cv_working_ni_withscopeid="no"
40625
40626fi
40627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40628 conftest.$ac_objext conftest.beam conftest.$ac_ext
40629fi
40630 # AC-RUN-IFELSE
40631
40632fi
40633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
40634$as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
40635 case "$curl_cv_working_ni_withscopeid" in
40636 yes)
40637
40638$as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
40639
40640 ;;
40641 esac
40642
40643fi
40644
40645
40646 #
40647 tst_method="unknown"
40648
40649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40650$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40651 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40652 tst_method="fcntl O_NONBLOCK"
40653 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40654 tst_method="ioctl FIONBIO"
40655 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40656 tst_method="ioctlsocket FIONBIO"
40657 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40658 tst_method="IoctlSocket FIONBIO"
40659 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40660 tst_method="setsockopt SO_NONBLOCK"
40661 fi
40662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40663$as_echo "$tst_method" >&6; }
40664 if test "$tst_method" = "unknown"; then
40665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40666$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40667 fi
40668
40669
40670
40671# Extract the first word of "perl", so it can be a program name with args.
40672set dummy perl; ac_word=$2
40673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40674$as_echo_n "checking for $ac_word... " >&6; }
40675if ${ac_cv_path_PERL+:} false; then :
40676 $as_echo_n "(cached) " >&6
40677else
40678 case $PERL in
40679 [\\/]* | ?:[\\/]*)
40680 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40681 ;;
40682 *)
40683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40684as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40685for as_dir in $as_dummy
40686do
40687 IFS=$as_save_IFS
40688 test -z "$as_dir" && as_dir=.
40689 for ac_exec_ext in '' $ac_executable_extensions; do
40690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40691 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40693 break 2
40694 fi
40695done
40696 done
40697IFS=$as_save_IFS
40698
40699 ;;
40700esac
40701fi
40702PERL=$ac_cv_path_PERL
40703if test -n "$PERL"; then
40704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40705$as_echo "$PERL" >&6; }
40706else
40707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40708$as_echo "no" >&6; }
40709fi
40710
40711
40712
40713
40714for ac_prog in gnroff nroff
40715do
40716 # Extract the first word of "$ac_prog", so it can be a program name with args.
40717set dummy $ac_prog; ac_word=$2
40718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40719$as_echo_n "checking for $ac_word... " >&6; }
40720if ${ac_cv_path_NROFF+:} false; then :
40721 $as_echo_n "(cached) " >&6
40722else
40723 case $NROFF in
40724 [\\/]* | ?:[\\/]*)
40725 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40726 ;;
40727 *)
40728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40729as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40730for as_dir in $as_dummy
40731do
40732 IFS=$as_save_IFS
40733 test -z "$as_dir" && as_dir=.
40734 for ac_exec_ext in '' $ac_executable_extensions; do
40735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40736 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40738 break 2
40739 fi
40740done
40741 done
40742IFS=$as_save_IFS
40743
40744 ;;
40745esac
40746fi
40747NROFF=$ac_cv_path_NROFF
40748if test -n "$NROFF"; then
40749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40750$as_echo "$NROFF" >&6; }
40751else
40752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40753$as_echo "no" >&6; }
40754fi
40755
40756
40757 test -n "$NROFF" && break
40758done
40759
40760
40761
40762if test -n "$NROFF"; then
40763
40764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40765$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40766 MANOPT="-man"
40767 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40768 if test -z "$mancheck"; then
40769 MANOPT="-mandoc"
40770 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40771 if test -z "$mancheck"; then
40772 MANOPT=""
40773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40774$as_echo "failed" >&6; }
40775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40776$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40777 else
40778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40779$as_echo "$MANOPT" >&6; }
40780 fi
40781 else
40782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40783$as_echo "$MANOPT" >&6; }
40784 fi
40785
40786fi
40787
40788if test -z "$MANOPT"
40789then
40790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40791$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40792 USE_MANUAL="no";
40793fi
40794
40795
40796if test "$USE_MANUAL" = "1"; then
40797
40798$as_echo "#define USE_MANUAL 1" >>confdefs.h
40799
40800 curl_manual_msg="enabled"
40801fi
40802
40803 if test x"$USE_MANUAL" = x1; then
40804 USE_MANUAL_TRUE=
40805 USE_MANUAL_FALSE='#'
40806else
40807 USE_MANUAL_TRUE='#'
40808 USE_MANUAL_FALSE=
40809fi
40810
40811
40812
40813
40814
40815 #
40816 if test "$want_ares" = "yes"; then
40817 clean_CPPFLAGS="$CPPFLAGS"
40818 clean_LDFLAGS="$LDFLAGS"
40819 clean_LIBS="$LIBS"
40820 embedded_ares="unknown"
40821 configure_runpath=`pwd`
40822 embedded_ares_builddir="$configure_runpath/ares"
40823 if test -n "$want_ares_path"; then
40824 ares_CPPFLAGS="-I$want_ares_path/include"
40825 ares_LDFLAGS="-L$want_ares_path/lib"
40826 ares_LIBS="-lcares"
40827 else
40828 if test -d "$srcdir/ares"; then
40829 embedded_ares="yes"
40830 subdirs="$subdirs ares"
40831
40832 ares_CPPFLAGS=""
40833 ares_LDFLAGS="-L$embedded_ares_builddir"
40834 ares_LIBS="-lcares"
40835 else
40836 ares_CPPFLAGS=""
40837 ares_LDFLAGS=""
40838 ares_LIBS="-lcares"
40839 fi
40840 fi
40841 #
40842 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40843 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40844 LIBS="$ares_LIBS $clean_LIBS"
40845 #
40846 if test "$embedded_ares" != "yes"; then
40847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40848$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40850/* end confdefs.h. */
40851
40852
40853#include <ares.h>
40854 /* set of dummy functions in case c-ares was built with debug */
40855 void curl_dofree() { }
40856 void curl_sclose() { }
40857 void curl_domalloc() { }
40858 void curl_docalloc() { }
40859 void curl_socket() { }
40860
40861int main (void)
40862{
40863
40864 ares_channel channel;
40865 ares_cancel(channel); /* added in 1.2.0 */
40866 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40867 ares_dup(&channel, channel); /* added in 1.6.0 */
40868
40869 ;
40870 return 0;
40871}
40872
40873_ACEOF
40874if ac_fn_c_try_link "$LINENO"; then :
40875
40876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40877$as_echo "yes" >&6; }
40878
40879else
40880
40881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40882$as_echo "no" >&6; }
40883 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40884 CPPFLAGS="$clean_CPPFLAGS"
40885 LDFLAGS="$clean_LDFLAGS"
40886 LIBS="$clean_LIBS"
40887 # prevent usage
40888 want_ares="no"
40889
40890fi
40891rm -f core conftest.err conftest.$ac_objext \
40892 conftest$ac_exeext conftest.$ac_ext
40893 fi
40894 if test "$want_ares" = "yes"; then
40895
40896$as_echo "#define USE_ARES 1" >>confdefs.h
40897
40898 USE_ARES=1
40899
40900 curl_res_msg="c-ares"
40901 fi
40902 fi
40903
40904 if test x$embedded_ares = xyes; then
40905 USE_EMBEDDED_ARES_TRUE=
40906 USE_EMBEDDED_ARES_FALSE='#'
40907else
40908 USE_EMBEDDED_ARES_TRUE='#'
40909 USE_EMBEDDED_ARES_FALSE=
40910fi
40911
40912
40913if test "x$curl_cv_native_windows" != "xyes" &&
40914 test "x$enable_shared" = "xyes"; then
40915 build_libhostname=yes
40916else
40917 build_libhostname=no
40918fi
40919 if test x$build_libhostname = xyes; then
40920 BUILD_LIBHOSTNAME_TRUE=
40921 BUILD_LIBHOSTNAME_FALSE='#'
40922else
40923 BUILD_LIBHOSTNAME_TRUE='#'
40924 BUILD_LIBHOSTNAME_FALSE=
40925fi
40926
40927
40928if test "x$want_ares" != xyes; then
40929
40930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40931$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40932 OPT_THRES="default"
40933 # Check whether --enable-threaded_resolver was given.
40934if test "${enable_threaded_resolver+set}" = set; then :
40935 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40936fi
40937
40938 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040939 no)
40940 want_thres="no"
40941 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040942 *)
40943 want_thres="yes"
40944 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040945 esac
40946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40947$as_echo "$want_thres" >&6; }
40948
40949fi
40950
40951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40952$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40953# Check whether --enable-pthreads was given.
40954if test "${enable_pthreads+set}" = set; then :
40955 enableval=$enable_pthreads; case "$enableval" in
40956 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40957$as_echo "no" >&6; }
40958 want_pthreads=no
40959 ;;
40960 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40961$as_echo "yes" >&6; }
40962 want_pthreads=yes
40963 ;;
40964 esac
40965else
40966
40967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40968$as_echo "auto" >&6; }
40969 want_pthreads=auto
40970
40971
40972fi
40973
40974
40975if test "$want_pthreads" != "no"; then
40976 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40977 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40978 fi
40979 if test "$dontwant_rt" != "no"; then
40980 if test "$want_pthreads" = "yes"; then
40981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40982$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40983 fi
40984 want_pthreads=no
40985 fi
40986fi
40987
40988if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40989 want_pthreads=no
40990fi
40991
40992if test "$want_pthreads" != "no"; then
40993 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40994if test "x$ac_cv_header_pthread_h" = xyes; then :
40995
40996$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40997
40998 save_CFLAGS="$CFLAGS"
40999
41000 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
41001if test "x$ac_cv_func_pthread_create" = xyes; then :
41002 USE_THREADS_POSIX=1
41003fi
41004
41005
41006 if test "$USE_THREADS_POSIX" != "1"
41007 then
41008 CFLAGS="$CFLAGS -pthread"
41009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
41010$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
41011if ${ac_cv_lib_pthread_pthread_create+:} false; then :
41012 $as_echo_n "(cached) " >&6
41013else
41014 ac_check_lib_save_LIBS=$LIBS
41015LIBS="-lpthread $LIBS"
41016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41017/* end confdefs.h. */
41018
41019
41020#ifdef __cplusplus
41021extern "C"
41022#endif
41023char pthread_create ();
41024int main (void)
41025{
41026return pthread_create ();
41027 ;
41028 return 0;
41029}
41030_ACEOF
41031if ac_fn_c_try_link "$LINENO"; then :
41032 ac_cv_lib_pthread_pthread_create=yes
41033else
41034 ac_cv_lib_pthread_pthread_create=no
41035fi
41036rm -f core conftest.err conftest.$ac_objext \
41037 conftest$ac_exeext conftest.$ac_ext
41038LIBS=$ac_check_lib_save_LIBS
41039fi
41040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
41041$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
41042if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
41043 USE_THREADS_POSIX=1
41044else
41045 CFLAGS="$save_CFLAGS"
41046fi
41047
41048 fi
41049
41050 if test "x$USE_THREADS_POSIX" = "x1"
41051 then
41052
41053$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
41054
41055 curl_res_msg="POSIX threaded"
41056 fi
41057
41058fi
41059
41060
41061fi
41062
41063if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
41064 if test "$want_pthreads" = "yes"; then
41065 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
41066 fi
41067 if test "$curl_cv_native_windows" = "yes"; then
41068 USE_THREADS_WIN32=1
41069
41070$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
41071
41072 curl_res_msg="Win32 threaded"
41073 else
41074 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
41075 fi
41076fi
41077
41078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
41079$as_echo_n "checking whether to enable verbose strings... " >&6; }
41080# Check whether --enable-verbose was given.
41081if test "${enable_verbose+set}" = set; then :
41082 enableval=$enable_verbose; case "$enableval" in
41083 no)
41084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41085$as_echo "no" >&6; }
41086
41087$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
41088
41089 curl_verbose_msg="no"
41090 ;;
41091 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41092$as_echo "yes" >&6; }
41093 ;;
41094 esac
41095else
41096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41097$as_echo "yes" >&6; }
41098
41099fi
41100
41101
41102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
41103$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
41104# Check whether --enable-sspi was given.
41105if test "${enable_sspi+set}" = set; then :
41106 enableval=$enable_sspi; case "$enableval" in
41107 yes)
41108 if test "$curl_cv_native_windows" = "yes"; then
41109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41110$as_echo "yes" >&6; }
41111
41112$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
41113
41114 USE_WINDOWS_SSPI=1
41115
41116 curl_sspi_msg="enabled"
41117 else
41118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41119$as_echo "no" >&6; }
41120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
41121$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
41122 fi
41123 ;;
41124 *)
41125 if test "x$WINSSL_ENABLED" = "x1"; then
41126 # --with-winssl implies --enable-sspi
41127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41128$as_echo "yes" >&6; }
41129 else
41130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41131$as_echo "no" >&6; }
41132 fi
41133 ;;
41134 esac
41135else
41136 if test "x$WINSSL_ENABLED" = "x1"; then
41137 # --with-winssl implies --enable-sspi
41138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41139$as_echo "yes" >&6; }
41140 else
41141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41142$as_echo "no" >&6; }
41143 fi
41144
41145fi
41146
41147
41148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41149$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41150# Check whether --enable-crypto-auth was given.
41151if test "${enable_crypto_auth+set}" = set; then :
41152 enableval=$enable_crypto_auth; case "$enableval" in
41153 no)
41154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41155$as_echo "no" >&6; }
41156
41157$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41158
41159 CURL_DISABLE_CRYPTO_AUTH=1
41160 ;;
41161 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41162$as_echo "yes" >&6; }
41163 ;;
41164 esac
41165else
41166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41167$as_echo "yes" >&6; }
41168
41169fi
41170
41171
41172
41173 OPT_NTLM_WB="default"
41174 # Check whether --enable-ntlm-wb was given.
41175if test "${enable_ntlm_wb+set}" = set; then :
41176 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41177fi
41178
41179 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41180 case "$OPT_NTLM_WB" in
41181 no)
41182 want_ntlm_wb="no"
41183 ;;
41184 default)
41185 want_ntlm_wb="yes"
41186 ;;
41187 *)
41188 want_ntlm_wb="yes"
41189 if test -n "$enableval" && test "$enableval" != "yes"; then
41190 want_ntlm_wb_file="$enableval"
41191 fi
41192 ;;
41193 esac
41194
41195
41196
41197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41198$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41199 if test "$curl_cv_native_windows" = "yes" ||
41200 test "x$SSL_ENABLED" = "x"; then
41201 want_ntlm_wb_file=""
41202 want_ntlm_wb="no"
41203 fi
41204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41205$as_echo "$want_ntlm_wb" >&6; }
41206 if test "$want_ntlm_wb" = "yes"; then
41207
41208$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41209
41210
41211cat >>confdefs.h <<_ACEOF
41212#define NTLM_WB_FILE "$want_ntlm_wb_file"
41213_ACEOF
41214
41215 NTLM_WB_ENABLED=1
41216 fi
41217
41218
41219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41220$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41221# Check whether --enable-tls-srp was given.
41222if test "${enable_tls_srp+set}" = set; then :
41223 enableval=$enable_tls_srp; case "$enableval" in
41224 no)
41225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41226$as_echo "no" >&6; }
41227
41228$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41229
41230 want_tls_srp=no
41231 ;;
41232 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41233$as_echo "yes" >&6; }
41234 want_tls_srp=yes
41235 ;;
41236 esac
41237else
41238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41239$as_echo "yes" >&6; }
41240 want_tls_srp=yes
41241
41242fi
41243
41244
41245if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41246
41247$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41248
41249 USE_TLS_SRP=1
41250 curl_tls_srp_msg="enabled"
41251fi
41252
41253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41254$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41255# Check whether --enable-unix-sockets was given.
41256if test "${enable_unix_sockets+set}" = set; then :
41257 enableval=$enable_unix_sockets; case "$enableval" in
41258 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41259$as_echo "no" >&6; }
41260 want_unix_sockets=no
41261 ;;
41262 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41263$as_echo "yes" >&6; }
41264 want_unix_sockets=yes
41265 ;;
41266 esac
41267else
41268
41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41270$as_echo "auto" >&6; }
41271 want_unix_sockets=auto
41272
41273
41274fi
41275
41276if test "x$want_unix_sockets" != "xno"; then
41277 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41278 #include <sys/un.h>
41279
41280"
41281if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41282
41283
41284$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41285
41286 USE_UNIX_SOCKETS=1
41287
41288 curl_unix_sockets_msg="enabled"
41289
41290else
41291
41292 if test "x$want_unix_sockets" = "xyes"; then
41293 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41294 fi
41295
41296fi
41297
41298fi
41299
41300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41301$as_echo_n "checking whether to enable support for cookies... " >&6; }
41302# Check whether --enable-cookies was given.
41303if test "${enable_cookies+set}" = set; then :
41304 enableval=$enable_cookies; case "$enableval" in
41305 no)
41306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41307$as_echo "no" >&6; }
41308
41309$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41310
41311 ;;
41312 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41313$as_echo "yes" >&6; }
41314 ;;
41315 esac
41316else
41317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41318$as_echo "yes" >&6; }
41319
41320fi
41321
41322
41323
41324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41325$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41326 CFLAG_CURL_SYMBOL_HIDING=""
41327 doing_symbol_hiding="no"
41328 if test x"$curl_cv_native_windows" != "xyes" &&
41329 test "$want_symbol_hiding" = "yes" &&
41330 test "$supports_symbol_hiding" = "yes"; then
41331 doing_symbol_hiding="yes"
41332 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41333
41334cat >>confdefs.h <<_ACEOF
41335#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41336_ACEOF
41337
41338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41339$as_echo "yes" >&6; }
41340 else
41341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41342$as_echo "no" >&6; }
41343 fi
41344 if test x$doing_symbol_hiding = xyes; then
41345 DOING_CURL_SYMBOL_HIDING_TRUE=
41346 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41347else
41348 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41349 DOING_CURL_SYMBOL_HIDING_FALSE=
41350fi
41351
41352
41353
41354
Elliott Hughes82be86d2017-09-20 17:00:17 -070041355LIBCURL_LIBS=$LIBS
41356
41357
41358
41359
41360
41361BLANK_AT_MAKETIME=
41362
41363
41364 if test x$cross_compiling = xyes; then
41365 CROSSCOMPILING_TRUE=
41366 CROSSCOMPILING_FALSE='#'
41367else
41368 CROSSCOMPILING_TRUE='#'
41369 CROSSCOMPILING_FALSE=
41370fi
41371
41372
41373ENABLE_SHARED="$enable_shared"
41374
41375
41376ENABLE_STATIC="$enable_static"
41377
41378
41379
41380
41381if test "x$OPENSSL_ENABLED" = "x1"; then
41382 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41383elif test -n "$SSL_ENABLED"; then
41384 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41385fi
41386if test "x$IPV6_ENABLED" = "x1"; then
41387 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41388fi
41389if test "x$USE_UNIX_SOCKETS" = "x1"; then
41390 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41391fi
41392if test "x$HAVE_LIBZ" = "x1"; then
41393 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41394fi
Alex Deymo486467e2017-12-19 19:04:07 +010041395if test "x$HAVE_BROTLI" = "x1"; then
41396 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41397fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041398if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41399 -o "x$USE_THREADS_WIN32" = "x1"; then
41400 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41401fi
41402if test "x$IDN_ENABLED" = "x1"; then
41403 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41404fi
41405if test "x$USE_WINDOWS_SSPI" = "x1"; then
41406 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41407fi
41408
41409if test "x$HAVE_GSSAPI" = "x1"; then
41410 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41411fi
41412
41413if test "x$curl_psl_msg" = "xyes"; then
41414 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41415fi
41416
41417if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41418 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41419 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41420fi
41421
41422if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41423 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41424 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41425fi
41426
41427if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41428 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41429 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41430 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41431 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41432
41433 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41434 "x$NTLM_WB_ENABLED" = "x1"; then
41435 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41436 fi
41437 fi
41438fi
41439
41440if test "x$USE_TLS_SRP" = "x1"; then
41441 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41442fi
41443
41444if test "x$USE_NGHTTP2" = "x1"; then
41445 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41446fi
41447
Alex Deymo486467e2017-12-19 19:04:07 +010041448if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41449 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41450fi
41451
Elliott Hughes82be86d2017-09-20 17:00:17 -070041452if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41453 -o "x$NSS_ENABLED" = "x1"; then
41454 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41455fi
41456
41457
41458
41459if test "x$CURL_DISABLE_HTTP" != "x1"; then
41460 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41461 if test "x$SSL_ENABLED" = "x1"; then
41462 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41463 fi
41464fi
41465if test "x$CURL_DISABLE_FTP" != "x1"; then
41466 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41467 if test "x$SSL_ENABLED" = "x1"; then
41468 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41469 fi
41470fi
41471if test "x$CURL_DISABLE_FILE" != "x1"; then
41472 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41473fi
41474if test "x$CURL_DISABLE_TELNET" != "x1"; then
41475 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41476fi
41477if test "x$CURL_DISABLE_LDAP" != "x1"; then
41478 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41479 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41480 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41481 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41482 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41483 fi
41484 fi
41485fi
41486if test "x$CURL_DISABLE_DICT" != "x1"; then
41487 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41488fi
41489if test "x$CURL_DISABLE_TFTP" != "x1"; then
41490 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41491fi
41492if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41493 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41494fi
41495if test "x$CURL_DISABLE_POP3" != "x1"; then
41496 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41497 if test "x$SSL_ENABLED" = "x1"; then
41498 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41499 fi
41500fi
41501if test "x$CURL_DISABLE_IMAP" != "x1"; then
41502 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41503 if test "x$SSL_ENABLED" = "x1"; then
41504 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41505 fi
41506fi
41507if test "x$CURL_DISABLE_SMB" != "x1" \
41508 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41509 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41510 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41511 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41512 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41513 if test "x$SSL_ENABLED" = "x1"; then
41514 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41515 fi
41516fi
41517if test "x$CURL_DISABLE_SMTP" != "x1"; then
41518 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41519 if test "x$SSL_ENABLED" = "x1"; then
41520 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41521 fi
41522fi
41523if test "x$USE_LIBSSH2" = "x1"; then
41524 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41525 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41526fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041527if test "x$USE_LIBSSH" = "x1"; then
41528 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41529 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41530fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041531if test "x$CURL_DISABLE_RTSP" != "x1"; then
41532 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41533fi
41534if test "x$USE_LIBRTMP" = "x1"; then
41535 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41536fi
41537
41538SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41539
41540
41541
41542
41543squeeze CFLAGS
41544squeeze CPPFLAGS
41545squeeze DEFS
41546squeeze LDFLAGS
41547squeeze LIBS
41548
41549squeeze LIBCURL_LIBS
41550squeeze CURL_NETWORK_LIBS
41551squeeze CURL_NETWORK_AND_TIME_LIBS
41552
41553squeeze SUPPORT_FEATURES
41554squeeze SUPPORT_PROTOCOLS
41555
41556
41557
41558 xc_bad_var_libs=no
41559 for xc_word in $LIBS; do
41560 case "$xc_word" in
41561 -l* | --library=*)
41562 :
41563 ;;
41564 *)
41565 xc_bad_var_libs=yes
41566 ;;
41567 esac
41568 done
41569 if test $xc_bad_var_libs = yes; then
41570 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41571$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41572 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41573$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41574 fi
41575
41576
41577 xc_bad_var_ldflags=no
41578 for xc_word in $LDFLAGS; do
41579 case "$xc_word" in
41580 -D*)
41581 xc_bad_var_ldflags=yes
41582 ;;
41583 -U*)
41584 xc_bad_var_ldflags=yes
41585 ;;
41586 -I*)
41587 xc_bad_var_ldflags=yes
41588 ;;
41589 -l* | --library=*)
41590 xc_bad_var_ldflags=yes
41591 ;;
41592 esac
41593 done
41594 if test $xc_bad_var_ldflags = yes; then
41595 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41596$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41597 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41598 for xc_word in $LDFLAGS; do
41599 case "$xc_word" in
41600 -D*)
41601 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41602$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41603 ;;
41604 -U*)
41605 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41606$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41607 ;;
41608 -I*)
41609 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41610$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41611 ;;
41612 -l* | --library=*)
41613 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41614$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41615 ;;
41616 esac
41617 done
41618 fi
41619
41620
41621 xc_bad_var_cppflags=no
41622 for xc_word in $CPPFLAGS; do
41623 case "$xc_word" in
41624 -rpath*)
41625 xc_bad_var_cppflags=yes
41626 ;;
41627 -L* | --library-path=*)
41628 xc_bad_var_cppflags=yes
41629 ;;
41630 -l* | --library=*)
41631 xc_bad_var_cppflags=yes
41632 ;;
41633 esac
41634 done
41635 if test $xc_bad_var_cppflags = yes; then
41636 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41637$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41638 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41639 for xc_word in $CPPFLAGS; do
41640 case "$xc_word" in
41641 -rpath*)
41642 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41643$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41644 ;;
41645 -L* | --library-path=*)
41646 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41647$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41648 ;;
41649 -l* | --library=*)
41650 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41651$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41652 ;;
41653 esac
41654 done
41655 fi
41656
41657
41658 xc_bad_var_cflags=no
41659 for xc_word in $CFLAGS; do
41660 case "$xc_word" in
41661 -D*)
41662 xc_bad_var_cflags=yes
41663 ;;
41664 -U*)
41665 xc_bad_var_cflags=yes
41666 ;;
41667 -I*)
41668 xc_bad_var_cflags=yes
41669 ;;
41670 -rpath*)
41671 xc_bad_var_cflags=yes
41672 ;;
41673 -L* | --library-path=*)
41674 xc_bad_var_cflags=yes
41675 ;;
41676 -l* | --library=*)
41677 xc_bad_var_cflags=yes
41678 ;;
41679 esac
41680 done
41681 if test $xc_bad_var_cflags = yes; then
41682 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41683$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41684 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41685 for xc_word in $CFLAGS; do
41686 case "$xc_word" in
41687 -D*)
41688 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41689$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41690 ;;
41691 -U*)
41692 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41693$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41694 ;;
41695 -I*)
41696 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41697$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41698 ;;
41699 -rpath*)
41700 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41701$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41702 ;;
41703 -L* | --library-path=*)
41704 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41705$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41706 ;;
41707 -l* | --library=*)
41708 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41709$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41710 ;;
41711 esac
41712 done
41713 fi
41714
41715 if test $xc_bad_var_libs = yes ||
41716 test $xc_bad_var_cflags = yes ||
41717 test $xc_bad_var_ldflags = yes ||
41718 test $xc_bad_var_cppflags = yes; then
41719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41720$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41721 fi
41722
41723
Elliott Hughes0128fe42018-02-27 14:57:55 -080041724SSL_BACKENDS=${ssl_backends}
41725
41726
Elliott Hughes82be86d2017-09-20 17:00:17 -070041727if test "x$want_curldebug_assumed" = "xyes" &&
41728 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41729 ac_configure_args="$ac_configure_args --enable-curldebug"
41730fi
41731
Alex Deymo486467e2017-12-19 19:04:07 +010041732ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
Elliott Hughes82be86d2017-09-20 17:00:17 -070041733
41734cat >confcache <<\_ACEOF
41735# This file is a shell script that caches the results of configure
41736# tests run on this system so they can be shared between configure
41737# scripts and configure runs, see configure's option --config-cache.
41738# It is not useful on other systems. If it contains results you don't
41739# want to keep, you may remove or edit it.
41740#
41741# config.status only pays attention to the cache file if you give it
41742# the --recheck option to rerun configure.
41743#
41744# `ac_cv_env_foo' variables (set or unset) will be overridden when
41745# loading this file, other *unset* `ac_cv_foo' will be assigned the
41746# following values.
41747
41748_ACEOF
41749
41750# The following way of writing the cache mishandles newlines in values,
41751# but we know of no workaround that is simple, portable, and efficient.
41752# So, we kill variables containing newlines.
41753# Ultrix sh set writes to stderr and can't be redirected directly,
41754# and sets the high bit in the cache file unless we assign to the vars.
41755(
41756 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41757 eval ac_val=\$$ac_var
41758 case $ac_val in #(
41759 *${as_nl}*)
41760 case $ac_var in #(
41761 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41762$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41763 esac
41764 case $ac_var in #(
41765 _ | IFS | as_nl) ;; #(
41766 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41767 *) { eval $ac_var=; unset $ac_var;} ;;
41768 esac ;;
41769 esac
41770 done
41771
41772 (set) 2>&1 |
41773 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41774 *${as_nl}ac_space=\ *)
41775 # `set' does not quote correctly, so add quotes: double-quote
41776 # substitution turns \\\\ into \\, and sed turns \\ into \.
41777 sed -n \
41778 "s/'/'\\\\''/g;
41779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41780 ;; #(
41781 *)
41782 # `set' quotes correctly as required by POSIX, so do not add quotes.
41783 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41784 ;;
41785 esac |
41786 sort
41787) |
41788 sed '
41789 /^ac_cv_env_/b end
41790 t clear
41791 :clear
41792 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41793 t end
41794 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41795 :end' >>confcache
41796if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41797 if test -w "$cache_file"; then
41798 if test "x$cache_file" != "x/dev/null"; then
41799 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41800$as_echo "$as_me: updating cache $cache_file" >&6;}
41801 if test ! -f "$cache_file" || test -h "$cache_file"; then
41802 cat confcache >"$cache_file"
41803 else
41804 case $cache_file in #(
41805 */* | ?:*)
41806 mv -f confcache "$cache_file"$$ &&
41807 mv -f "$cache_file"$$ "$cache_file" ;; #(
41808 *)
41809 mv -f confcache "$cache_file" ;;
41810 esac
41811 fi
41812 fi
41813 else
41814 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41815$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41816 fi
41817fi
41818rm -f confcache
41819
41820test "x$prefix" = xNONE && prefix=$ac_default_prefix
41821# Let make expand exec_prefix.
41822test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41823
41824DEFS=-DHAVE_CONFIG_H
41825
41826ac_libobjs=
41827ac_ltlibobjs=
41828U=
41829for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41830 # 1. Remove the extension, and $U if already installed.
41831 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41832 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41833 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41834 # will be set to the directory where LIBOBJS objects are built.
41835 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41836 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41837done
41838LIBOBJS=$ac_libobjs
41839
41840LTLIBOBJS=$ac_ltlibobjs
41841
41842
41843if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41844 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41845Usually this means the macro was only invoked conditionally." "$LINENO" 5
41846fi
41847if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41848 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41849Usually this means the macro was only invoked conditionally." "$LINENO" 5
41850fi
41851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41852$as_echo_n "checking that generated files are newer than configure... " >&6; }
41853 if test -n "$am_sleep_pid"; then
41854 # Hide warnings about reused PIDs.
41855 wait $am_sleep_pid 2>/dev/null
41856 fi
41857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41858$as_echo "done" >&6; }
41859if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41860 as_fn_error $? "conditional \"AMDEP\" was never defined.
41861Usually this means the macro was only invoked conditionally." "$LINENO" 5
41862fi
41863if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41864 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41865Usually this means the macro was only invoked conditionally." "$LINENO" 5
41866fi
41867 if test -n "$EXEEXT"; then
41868 am__EXEEXT_TRUE=
41869 am__EXEEXT_FALSE='#'
41870else
41871 am__EXEEXT_TRUE='#'
41872 am__EXEEXT_FALSE=
41873fi
41874
41875if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41876 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41877Usually this means the macro was only invoked conditionally." "$LINENO" 5
41878fi
41879if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41880 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41881Usually this means the macro was only invoked conditionally." "$LINENO" 5
41882fi
41883if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41884 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41885Usually this means the macro was only invoked conditionally." "$LINENO" 5
41886fi
41887if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41888 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41889Usually this means the macro was only invoked conditionally." "$LINENO" 5
41890fi
41891if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41892 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41893Usually this means the macro was only invoked conditionally." "$LINENO" 5
41894fi
41895if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41896 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41897Usually this means the macro was only invoked conditionally." "$LINENO" 5
41898fi
41899if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41900 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41901Usually this means the macro was only invoked conditionally." "$LINENO" 5
41902fi
41903if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41904 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41905Usually this means the macro was only invoked conditionally." "$LINENO" 5
41906fi
41907if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41908 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41909Usually this means the macro was only invoked conditionally." "$LINENO" 5
41910fi
Alex Deymo486467e2017-12-19 19:04:07 +010041911if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41912 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41913Usually this means the macro was only invoked conditionally." "$LINENO" 5
41914fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041915if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41916 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41917Usually this means the macro was only invoked conditionally." "$LINENO" 5
41918fi
41919if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41920 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41921Usually this means the macro was only invoked conditionally." "$LINENO" 5
41922fi
41923if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41924 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41925Usually this means the macro was only invoked conditionally." "$LINENO" 5
41926fi
41927if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41928 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41929Usually this means the macro was only invoked conditionally." "$LINENO" 5
41930fi
41931if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41932 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41933Usually this means the macro was only invoked conditionally." "$LINENO" 5
41934fi
41935if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41936 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41937Usually this means the macro was only invoked conditionally." "$LINENO" 5
41938fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041939if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41940 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41941Usually this means the macro was only invoked conditionally." "$LINENO" 5
41942fi
41943
41944: "${CONFIG_STATUS=./config.status}"
41945ac_write_fail=0
41946ac_clean_files_save=$ac_clean_files
41947ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41948{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41949$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41950as_write_fail=0
41951cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41952#! $SHELL
41953# Generated by $as_me.
41954# Run this file to recreate the current configuration.
41955# Compiler output produced by configure, useful for debugging
41956# configure, is in config.log if it exists.
41957
41958debug=false
41959ac_cs_recheck=false
41960ac_cs_silent=false
41961
41962SHELL=\${CONFIG_SHELL-$SHELL}
41963export SHELL
41964_ASEOF
41965cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41966## -------------------- ##
41967## M4sh Initialization. ##
41968## -------------------- ##
41969
41970# Be more Bourne compatible
41971DUALCASE=1; export DUALCASE # for MKS sh
41972if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41973 emulate sh
41974 NULLCMD=:
41975 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41976 # is contrary to our usage. Disable this feature.
41977 alias -g '${1+"$@"}'='"$@"'
41978 setopt NO_GLOB_SUBST
41979else
41980 case `(set -o) 2>/dev/null` in #(
41981 *posix*) :
41982 set -o posix ;; #(
41983 *) :
41984 ;;
41985esac
41986fi
41987
41988
41989as_nl='
41990'
41991export as_nl
41992# Printing a long string crashes Solaris 7 /usr/bin/printf.
41993as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41994as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41995as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41996# Prefer a ksh shell builtin over an external printf program on Solaris,
41997# but without wasting forks for bash or zsh.
41998if test -z "$BASH_VERSION$ZSH_VERSION" \
41999 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
42000 as_echo='print -r --'
42001 as_echo_n='print -rn --'
42002elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
42003 as_echo='printf %s\n'
42004 as_echo_n='printf %s'
42005else
42006 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
42007 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
42008 as_echo_n='/usr/ucb/echo -n'
42009 else
42010 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
42011 as_echo_n_body='eval
42012 arg=$1;
42013 case $arg in #(
42014 *"$as_nl"*)
42015 expr "X$arg" : "X\\(.*\\)$as_nl";
42016 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
42017 esac;
42018 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
42019 '
42020 export as_echo_n_body
42021 as_echo_n='sh -c $as_echo_n_body as_echo'
42022 fi
42023 export as_echo_body
42024 as_echo='sh -c $as_echo_body as_echo'
42025fi
42026
42027
42028
42029# IFS
42030# We need space, tab and new line, in precisely that order. Quoting is
42031# there to prevent editors from complaining about space-tab.
42032# (If _AS_PATH_WALK were called with IFS unset, it would disable word
42033# splitting by setting IFS to empty value.)
42034IFS=" "" $as_nl"
42035
42036# Find who we are. Look in the path if we contain no directory separator.
42037as_myself=
42038case $0 in #((
42039 *[\\/]* ) as_myself=$0 ;;
42040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42041for as_dir in $PATH
42042do
42043 IFS=$as_save_IFS
42044 test -z "$as_dir" && as_dir=.
42045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42046 done
42047IFS=$as_save_IFS
42048
42049 ;;
42050esac
42051# We did not find ourselves, most probably we were run as `sh COMMAND'
42052# in which case we are not to be found in the path.
42053if test "x$as_myself" = x; then
42054 as_myself=$0
42055fi
42056if test ! -f "$as_myself"; then
42057 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42058 exit 1
42059fi
42060
42061# Unset variables that we do not need and which cause bugs (e.g. in
42062# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
42063# suppresses any "Segmentation fault" message there. '((' could
42064# trigger a bug in pdksh 5.2.14.
42065for as_var in BASH_ENV ENV MAIL MAILPATH
42066do eval test x\${$as_var+set} = xset \
42067 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
42068done
42069PS1='$ '
42070PS2='> '
42071PS4='+ '
42072
42073# NLS nuisances.
42074LC_ALL=C
42075export LC_ALL
42076LANGUAGE=C
42077export LANGUAGE
42078
42079# CDPATH.
42080(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42081
42082
42083# as_fn_error STATUS ERROR [LINENO LOG_FD]
42084# ----------------------------------------
42085# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42086# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42087# script with STATUS, using 1 if that was 0.
42088as_fn_error ()
42089{
42090 as_status=$1; test $as_status -eq 0 && as_status=1
42091 if test "$4"; then
42092 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
42093 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42094 fi
42095 $as_echo "$as_me: error: $2" >&2
42096 as_fn_exit $as_status
42097} # as_fn_error
42098
42099
42100# as_fn_set_status STATUS
42101# -----------------------
42102# Set $? to STATUS, without forking.
42103as_fn_set_status ()
42104{
42105 return $1
42106} # as_fn_set_status
42107
42108# as_fn_exit STATUS
42109# -----------------
42110# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
42111as_fn_exit ()
42112{
42113 set +e
42114 as_fn_set_status $1
42115 exit $1
42116} # as_fn_exit
42117
42118# as_fn_unset VAR
42119# ---------------
42120# Portably unset VAR.
42121as_fn_unset ()
42122{
42123 { eval $1=; unset $1;}
42124}
42125as_unset=as_fn_unset
42126# as_fn_append VAR VALUE
42127# ----------------------
42128# Append the text in VALUE to the end of the definition contained in VAR. Take
42129# advantage of any shell optimizations that allow amortized linear growth over
42130# repeated appends, instead of the typical quadratic growth present in naive
42131# implementations.
42132if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
42133 eval 'as_fn_append ()
42134 {
42135 eval $1+=\$2
42136 }'
42137else
42138 as_fn_append ()
42139 {
42140 eval $1=\$$1\$2
42141 }
42142fi # as_fn_append
42143
42144# as_fn_arith ARG...
42145# ------------------
42146# Perform arithmetic evaluation on the ARGs, and store the result in the
42147# global $as_val. Take advantage of shells that can avoid forks. The arguments
42148# must be portable across $(()) and expr.
42149if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42150 eval 'as_fn_arith ()
42151 {
42152 as_val=$(( $* ))
42153 }'
42154else
42155 as_fn_arith ()
42156 {
42157 as_val=`expr "$@" || test $? -eq 1`
42158 }
42159fi # as_fn_arith
42160
42161
42162if expr a : '\(a\)' >/dev/null 2>&1 &&
42163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42164 as_expr=expr
42165else
42166 as_expr=false
42167fi
42168
42169if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42170 as_basename=basename
42171else
42172 as_basename=false
42173fi
42174
42175if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42176 as_dirname=dirname
42177else
42178 as_dirname=false
42179fi
42180
42181as_me=`$as_basename -- "$0" ||
42182$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42183 X"$0" : 'X\(//\)$' \| \
42184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42185$as_echo X/"$0" |
42186 sed '/^.*\/\([^/][^/]*\)\/*$/{
42187 s//\1/
42188 q
42189 }
42190 /^X\/\(\/\/\)$/{
42191 s//\1/
42192 q
42193 }
42194 /^X\/\(\/\).*/{
42195 s//\1/
42196 q
42197 }
42198 s/.*/./; q'`
42199
42200# Avoid depending upon Character Ranges.
42201as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42202as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42203as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42204as_cr_digits='0123456789'
42205as_cr_alnum=$as_cr_Letters$as_cr_digits
42206
42207ECHO_C= ECHO_N= ECHO_T=
42208case `echo -n x` in #(((((
42209-n*)
42210 case `echo 'xy\c'` in
42211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42212 xy) ECHO_C='\c';;
42213 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42214 ECHO_T=' ';;
42215 esac;;
42216*)
42217 ECHO_N='-n';;
42218esac
42219
42220rm -f conf$$ conf$$.exe conf$$.file
42221if test -d conf$$.dir; then
42222 rm -f conf$$.dir/conf$$.file
42223else
42224 rm -f conf$$.dir
42225 mkdir conf$$.dir 2>/dev/null
42226fi
42227if (echo >conf$$.file) 2>/dev/null; then
42228 if ln -s conf$$.file conf$$ 2>/dev/null; then
42229 as_ln_s='ln -s'
42230 # ... but there are two gotchas:
42231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42233 # In both cases, we have to default to `cp -pR'.
42234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42235 as_ln_s='cp -pR'
42236 elif ln conf$$.file conf$$ 2>/dev/null; then
42237 as_ln_s=ln
42238 else
42239 as_ln_s='cp -pR'
42240 fi
42241else
42242 as_ln_s='cp -pR'
42243fi
42244rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42245rmdir conf$$.dir 2>/dev/null
42246
42247
42248# as_fn_mkdir_p
42249# -------------
42250# Create "$as_dir" as a directory, including parents if necessary.
42251as_fn_mkdir_p ()
42252{
42253
42254 case $as_dir in #(
42255 -*) as_dir=./$as_dir;;
42256 esac
42257 test -d "$as_dir" || eval $as_mkdir_p || {
42258 as_dirs=
42259 while :; do
42260 case $as_dir in #(
42261 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42262 *) as_qdir=$as_dir;;
42263 esac
42264 as_dirs="'$as_qdir' $as_dirs"
42265 as_dir=`$as_dirname -- "$as_dir" ||
42266$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42267 X"$as_dir" : 'X\(//\)[^/]' \| \
42268 X"$as_dir" : 'X\(//\)$' \| \
42269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42270$as_echo X"$as_dir" |
42271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42272 s//\1/
42273 q
42274 }
42275 /^X\(\/\/\)[^/].*/{
42276 s//\1/
42277 q
42278 }
42279 /^X\(\/\/\)$/{
42280 s//\1/
42281 q
42282 }
42283 /^X\(\/\).*/{
42284 s//\1/
42285 q
42286 }
42287 s/.*/./; q'`
42288 test -d "$as_dir" && break
42289 done
42290 test -z "$as_dirs" || eval "mkdir $as_dirs"
42291 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42292
42293
42294} # as_fn_mkdir_p
42295if mkdir -p . 2>/dev/null; then
42296 as_mkdir_p='mkdir -p "$as_dir"'
42297else
42298 test -d ./-p && rmdir ./-p
42299 as_mkdir_p=false
42300fi
42301
42302
42303# as_fn_executable_p FILE
42304# -----------------------
42305# Test if FILE is an executable regular file.
42306as_fn_executable_p ()
42307{
42308 test -f "$1" && test -x "$1"
42309} # as_fn_executable_p
42310as_test_x='test -x'
42311as_executable_p=as_fn_executable_p
42312
42313# Sed expression to map a string onto a valid CPP name.
42314as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42315
42316# Sed expression to map a string onto a valid variable name.
42317as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42318
42319
42320exec 6>&1
42321## ----------------------------------- ##
42322## Main body of $CONFIG_STATUS script. ##
42323## ----------------------------------- ##
42324_ASEOF
42325test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42326
42327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42328# Save the log message, to keep $0 and so on meaningful, and to
42329# report actual input values of CONFIG_FILES etc. instead of their
42330# values after options handling.
42331ac_log="
42332This file was extended by curl $as_me -, which was
42333generated by GNU Autoconf 2.69. Invocation command line was
42334
42335 CONFIG_FILES = $CONFIG_FILES
42336 CONFIG_HEADERS = $CONFIG_HEADERS
42337 CONFIG_LINKS = $CONFIG_LINKS
42338 CONFIG_COMMANDS = $CONFIG_COMMANDS
42339 $ $0 $@
42340
42341on `(hostname || uname -n) 2>/dev/null | sed 1q`
42342"
42343
42344_ACEOF
42345
42346case $ac_config_files in *"
42347"*) set x $ac_config_files; shift; ac_config_files=$*;;
42348esac
42349
42350case $ac_config_headers in *"
42351"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42352esac
42353
42354
42355cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42356# Files that config.status was made for.
42357config_files="$ac_config_files"
42358config_headers="$ac_config_headers"
42359config_commands="$ac_config_commands"
42360
42361_ACEOF
42362
42363cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42364ac_cs_usage="\
42365\`$as_me' instantiates files and other configuration actions
42366from templates according to the current configuration. Unless the files
42367and actions are specified as TAGs, all are instantiated by default.
42368
42369Usage: $0 [OPTION]... [TAG]...
42370
42371 -h, --help print this help, then exit
42372 -V, --version print version number and configuration settings, then exit
42373 --config print configuration, then exit
42374 -q, --quiet, --silent
42375 do not print progress messages
42376 -d, --debug don't remove temporary files
42377 --recheck update $as_me by reconfiguring in the same conditions
42378 --file=FILE[:TEMPLATE]
42379 instantiate the configuration file FILE
42380 --header=FILE[:TEMPLATE]
42381 instantiate the configuration header FILE
42382
42383Configuration files:
42384$config_files
42385
42386Configuration headers:
42387$config_headers
42388
42389Configuration commands:
42390$config_commands
42391
42392Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42393
42394_ACEOF
42395cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42396ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42397ac_cs_version="\\
42398curl config.status -
42399configured by $0, generated by GNU Autoconf 2.69,
42400 with options \\"\$ac_cs_config\\"
42401
42402Copyright (C) 2012 Free Software Foundation, Inc.
42403This config.status script is free software; the Free Software Foundation
42404gives unlimited permission to copy, distribute and modify it."
42405
42406ac_pwd='$ac_pwd'
42407srcdir='$srcdir'
42408INSTALL='$INSTALL'
42409MKDIR_P='$MKDIR_P'
42410AWK='$AWK'
42411test -n "\$AWK" || AWK=awk
42412_ACEOF
42413
42414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42415# The default lists apply if the user does not specify any file.
42416ac_need_defaults=:
42417while test $# != 0
42418do
42419 case $1 in
42420 --*=?*)
42421 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42423 ac_shift=:
42424 ;;
42425 --*=)
42426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42427 ac_optarg=
42428 ac_shift=:
42429 ;;
42430 *)
42431 ac_option=$1
42432 ac_optarg=$2
42433 ac_shift=shift
42434 ;;
42435 esac
42436
42437 case $ac_option in
42438 # Handling of the options.
42439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42440 ac_cs_recheck=: ;;
42441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42442 $as_echo "$ac_cs_version"; exit ;;
42443 --config | --confi | --conf | --con | --co | --c )
42444 $as_echo "$ac_cs_config"; exit ;;
42445 --debug | --debu | --deb | --de | --d | -d )
42446 debug=: ;;
42447 --file | --fil | --fi | --f )
42448 $ac_shift
42449 case $ac_optarg in
42450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42451 '') as_fn_error $? "missing file argument" ;;
42452 esac
42453 as_fn_append CONFIG_FILES " '$ac_optarg'"
42454 ac_need_defaults=false;;
42455 --header | --heade | --head | --hea )
42456 $ac_shift
42457 case $ac_optarg in
42458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42459 esac
42460 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42461 ac_need_defaults=false;;
42462 --he | --h)
42463 # Conflict between --help and --header
42464 as_fn_error $? "ambiguous option: \`$1'
42465Try \`$0 --help' for more information.";;
42466 --help | --hel | -h )
42467 $as_echo "$ac_cs_usage"; exit ;;
42468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42470 ac_cs_silent=: ;;
42471
42472 # This is an error.
42473 -*) as_fn_error $? "unrecognized option: \`$1'
42474Try \`$0 --help' for more information." ;;
42475
42476 *) as_fn_append ac_config_targets " $1"
42477 ac_need_defaults=false ;;
42478
42479 esac
42480 shift
42481done
42482
42483ac_configure_extra_args=
42484
42485if $ac_cs_silent; then
42486 exec 6>/dev/null
42487 ac_configure_extra_args="$ac_configure_extra_args --silent"
42488fi
42489
42490_ACEOF
42491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42492if \$ac_cs_recheck; then
42493 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42494 shift
42495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42496 CONFIG_SHELL='$SHELL'
42497 export CONFIG_SHELL
42498 exec "\$@"
42499fi
42500
42501_ACEOF
42502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42503exec 5>>config.log
42504{
42505 echo
42506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42507## Running $as_me. ##
42508_ASBOX
42509 $as_echo "$ac_log"
42510} >&5
42511
42512_ACEOF
42513cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42514#
42515# INIT-COMMANDS
42516#
42517AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42518
42519
42520# The HP-UX ksh and POSIX shell print the target directory to stdout
42521# if CDPATH is set.
42522(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42523
42524sed_quote_subst='$sed_quote_subst'
42525double_quote_subst='$double_quote_subst'
42526delay_variable_subst='$delay_variable_subst'
42527macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42528macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42529AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42530DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42531OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42532enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42533enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42534pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42535enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42536shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42537SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42538ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42539PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42540host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42541host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42542host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42543build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42544build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42545build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42546SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42547Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42548GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42549EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42550FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42551LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42552NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42553LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42554max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42555ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42556exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42557lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42558lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42559lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42560lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42561lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42562reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42563reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42564deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42565file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42566file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42567want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42568sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42569AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42570AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42571archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42572STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42573RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42574old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42575old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42576old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42577lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42578CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42579CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42580compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42581GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42582lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42583lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42584lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42585lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42586lt_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"`'
42587lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42588nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42589lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42590lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42591objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42592MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42593lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42594lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42595lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42596lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42597lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42598need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42599MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42600DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42601NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42602LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42603OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42604OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42605libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42606shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42607extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42608archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42609enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42610export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42611whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42612compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42613old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42614old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42615archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42616archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42617module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42618module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42619with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42620allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42621no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42622hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42623hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42624hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42625hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42626hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42627hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42628hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42629inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42630link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42631always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42632export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42633exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42634include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42635prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42636postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42637file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42638variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42639need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42640need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42641version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42642runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42643shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42644shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42645libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42646library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42647soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42648install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42649postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42650postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42651finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42652finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42653hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42654sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42655configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42656configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42657hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42658enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42659enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42660enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42661old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42662striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42663
42664LTCC='$LTCC'
42665LTCFLAGS='$LTCFLAGS'
42666compiler='$compiler_DEFAULT'
42667
42668# A function that is used when there is no print builtin or printf.
42669func_fallback_echo ()
42670{
42671 eval 'cat <<_LTECHO_EOF
42672\$1
42673_LTECHO_EOF'
42674}
42675
42676# Quote evaled strings.
42677for var in AS \
42678DLLTOOL \
42679OBJDUMP \
42680SHELL \
42681ECHO \
42682PATH_SEPARATOR \
42683SED \
42684GREP \
42685EGREP \
42686FGREP \
42687LD \
42688NM \
42689LN_S \
42690lt_SP2NL \
42691lt_NL2SP \
42692reload_flag \
42693deplibs_check_method \
42694file_magic_cmd \
42695file_magic_glob \
42696want_nocaseglob \
42697sharedlib_from_linklib_cmd \
42698AR \
42699AR_FLAGS \
42700archiver_list_spec \
42701STRIP \
42702RANLIB \
42703CC \
42704CFLAGS \
42705compiler \
42706lt_cv_sys_global_symbol_pipe \
42707lt_cv_sys_global_symbol_to_cdecl \
42708lt_cv_sys_global_symbol_to_import \
42709lt_cv_sys_global_symbol_to_c_name_address \
42710lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42711lt_cv_nm_interface \
42712nm_file_list_spec \
42713lt_cv_truncate_bin \
42714lt_prog_compiler_no_builtin_flag \
42715lt_prog_compiler_pic \
42716lt_prog_compiler_wl \
42717lt_prog_compiler_static \
42718lt_cv_prog_compiler_c_o \
42719need_locks \
42720MANIFEST_TOOL \
42721DSYMUTIL \
42722NMEDIT \
42723LIPO \
42724OTOOL \
42725OTOOL64 \
42726shrext_cmds \
42727export_dynamic_flag_spec \
42728whole_archive_flag_spec \
42729compiler_needs_object \
42730with_gnu_ld \
42731allow_undefined_flag \
42732no_undefined_flag \
42733hardcode_libdir_flag_spec \
42734hardcode_libdir_separator \
42735exclude_expsyms \
42736include_expsyms \
42737file_list_spec \
42738variables_saved_for_relink \
42739libname_spec \
42740library_names_spec \
42741soname_spec \
42742install_override_mode \
42743finish_eval \
42744old_striplib \
42745striplib; do
42746 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42747 *[\\\\\\\`\\"\\\$]*)
42748 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42749 ;;
42750 *)
42751 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42752 ;;
42753 esac
42754done
42755
42756# Double-quote double-evaled strings.
42757for var in reload_cmds \
42758old_postinstall_cmds \
42759old_postuninstall_cmds \
42760old_archive_cmds \
42761extract_expsyms_cmds \
42762old_archive_from_new_cmds \
42763old_archive_from_expsyms_cmds \
42764archive_cmds \
42765archive_expsym_cmds \
42766module_cmds \
42767module_expsym_cmds \
42768export_symbols_cmds \
42769prelink_cmds \
42770postlink_cmds \
42771postinstall_cmds \
42772postuninstall_cmds \
42773finish_cmds \
42774sys_lib_search_path_spec \
42775configure_time_dlsearch_path \
42776configure_time_lt_sys_library_path; do
42777 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42778 *[\\\\\\\`\\"\\\$]*)
42779 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42780 ;;
42781 *)
42782 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42783 ;;
42784 esac
42785done
42786
42787ac_aux_dir='$ac_aux_dir'
42788
42789# See if we are running on zsh, and set the options that allow our
42790# commands through without removal of \ escapes INIT.
42791if test -n "\${ZSH_VERSION+set}"; then
42792 setopt NO_GLOB_SUBST
42793fi
42794
42795
42796 PACKAGE='$PACKAGE'
42797 VERSION='$VERSION'
42798 RM='$RM'
42799 ofile='$ofile'
42800
42801
42802
42803
42804_ACEOF
42805
42806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42807
42808# Handling of arguments.
42809for ac_config_target in $ac_config_targets
42810do
42811 case $ac_config_target in
42812 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42813 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42814 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42815 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42816 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42817 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42818 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42819 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42820 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42821 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42822 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42823 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42824 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42825 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42826 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42827 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42828 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42829 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42830 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42831 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42832 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42833 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042834 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42835 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42836 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42837 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42838 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42839 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42840 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42841 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42842 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42843 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42844 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42845 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42846 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42847 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42848 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42849 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42850
42851 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42852 esac
42853done
42854
42855
42856# If the user did not use the arguments to specify the items to instantiate,
42857# then the envvar interface is used. Set only those that are not.
42858# We use the long form for the default assignment because of an extremely
42859# bizarre bug on SunOS 4.1.3.
42860if $ac_need_defaults; then
42861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42864fi
42865
42866# Have a temporary directory for convenience. Make it in the build tree
42867# simply because there is no reason against having it here, and in addition,
42868# creating and moving files from /tmp can sometimes cause problems.
42869# Hook for its removal unless debugging.
42870# Note that there is a small window in which the directory will not be cleaned:
42871# after its creation but before its name has been assigned to `$tmp'.
42872$debug ||
42873{
42874 tmp= ac_tmp=
42875 trap 'exit_status=$?
42876 : "${ac_tmp:=$tmp}"
42877 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42878' 0
42879 trap 'as_fn_exit 1' 1 2 13 15
42880}
42881# Create a (secure) tmp directory for tmp files.
42882
42883{
42884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42885 test -d "$tmp"
42886} ||
42887{
42888 tmp=./conf$$-$RANDOM
42889 (umask 077 && mkdir "$tmp")
42890} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42891ac_tmp=$tmp
42892
42893# Set up the scripts for CONFIG_FILES section.
42894# No need to generate them if there are no CONFIG_FILES.
42895# This happens for instance with `./config.status config.h'.
42896if test -n "$CONFIG_FILES"; then
42897
42898
42899ac_cr=`echo X | tr X '\015'`
42900# On cygwin, bash can eat \r inside `` if the user requested igncr.
42901# But we know of no other shell where ac_cr would be empty at this
42902# point, so we can use a bashism as a fallback.
42903if test "x$ac_cr" = x; then
42904 eval ac_cr=\$\'\\r\'
42905fi
42906ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42907if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42908 ac_cs_awk_cr='\\r'
42909else
42910 ac_cs_awk_cr=$ac_cr
42911fi
42912
42913echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42914_ACEOF
42915
42916
42917{
42918 echo "cat >conf$$subs.awk <<_ACEOF" &&
42919 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42920 echo "_ACEOF"
42921} >conf$$subs.sh ||
42922 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42923ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42924ac_delim='%!_!# '
42925for ac_last_try in false false false false false :; do
42926 . ./conf$$subs.sh ||
42927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42928
42929 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42930 if test $ac_delim_n = $ac_delim_num; then
42931 break
42932 elif $ac_last_try; then
42933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42934 else
42935 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42936 fi
42937done
42938rm -f conf$$subs.sh
42939
42940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42941cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42942_ACEOF
42943sed -n '
42944h
42945s/^/S["/; s/!.*/"]=/
42946p
42947g
42948s/^[^!]*!//
42949:repl
42950t repl
42951s/'"$ac_delim"'$//
42952t delim
42953:nl
42954h
42955s/\(.\{148\}\)..*/\1/
42956t more1
42957s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42958p
42959n
42960b repl
42961:more1
42962s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42963p
42964g
42965s/.\{148\}//
42966t nl
42967:delim
42968h
42969s/\(.\{148\}\)..*/\1/
42970t more2
42971s/["\\]/\\&/g; s/^/"/; s/$/"/
42972p
42973b
42974:more2
42975s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42976p
42977g
42978s/.\{148\}//
42979t delim
42980' <conf$$subs.awk | sed '
42981/^[^""]/{
42982 N
42983 s/\n//
42984}
42985' >>$CONFIG_STATUS || ac_write_fail=1
42986rm -f conf$$subs.awk
42987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42988_ACAWK
42989cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42990 for (key in S) S_is_set[key] = 1
42991 FS = ""
42992
42993}
42994{
42995 line = $ 0
42996 nfields = split(line, field, "@")
42997 substed = 0
42998 len = length(field[1])
42999 for (i = 2; i < nfields; i++) {
43000 key = field[i]
43001 keylen = length(key)
43002 if (S_is_set[key]) {
43003 value = S[key]
43004 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
43005 len += length(value) + length(field[++i])
43006 substed = 1
43007 } else
43008 len += 1 + keylen
43009 }
43010
43011 print line
43012}
43013
43014_ACAWK
43015_ACEOF
43016cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43017if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
43018 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
43019else
43020 cat
43021fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
43022 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
43023_ACEOF
43024
43025# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
43026# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
43027# trailing colons and then remove the whole line if VPATH becomes empty
43028# (actually we leave an empty line to preserve line numbers).
43029if test "x$srcdir" = x.; then
43030 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
43031h
43032s///
43033s/^/:/
43034s/[ ]*$/:/
43035s/:\$(srcdir):/:/g
43036s/:\${srcdir}:/:/g
43037s/:@srcdir@:/:/g
43038s/^:*//
43039s/:*$//
43040x
43041s/\(=[ ]*\).*/\1/
43042G
43043s/\n//
43044s/^[^=]*=[ ]*$//
43045}'
43046fi
43047
43048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43049fi # test -n "$CONFIG_FILES"
43050
43051# Set up the scripts for CONFIG_HEADERS section.
43052# No need to generate them if there are no CONFIG_HEADERS.
43053# This happens for instance with `./config.status Makefile'.
43054if test -n "$CONFIG_HEADERS"; then
43055cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
43056BEGIN {
43057_ACEOF
43058
43059# Transform confdefs.h into an awk script `defines.awk', embedded as
43060# here-document in config.status, that substitutes the proper values into
43061# config.h.in to produce config.h.
43062
43063# Create a delimiter string that does not exist in confdefs.h, to ease
43064# handling of long lines.
43065ac_delim='%!_!# '
43066for ac_last_try in false false :; do
43067 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
43068 if test -z "$ac_tt"; then
43069 break
43070 elif $ac_last_try; then
43071 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
43072 else
43073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43074 fi
43075done
43076
43077# For the awk script, D is an array of macro values keyed by name,
43078# likewise P contains macro parameters if any. Preserve backslash
43079# newline sequences.
43080
43081ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43082sed -n '
43083s/.\{148\}/&'"$ac_delim"'/g
43084t rset
43085:rset
43086s/^[ ]*#[ ]*define[ ][ ]*/ /
43087t def
43088d
43089:def
43090s/\\$//
43091t bsnl
43092s/["\\]/\\&/g
43093s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43094D["\1"]=" \3"/p
43095s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
43096d
43097:bsnl
43098s/["\\]/\\&/g
43099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43100D["\1"]=" \3\\\\\\n"\\/p
43101t cont
43102s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
43103t cont
43104d
43105:cont
43106n
43107s/.\{148\}/&'"$ac_delim"'/g
43108t clear
43109:clear
43110s/\\$//
43111t bsnlc
43112s/["\\]/\\&/g; s/^/"/; s/$/"/p
43113d
43114:bsnlc
43115s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
43116b cont
43117' <confdefs.h | sed '
43118s/'"$ac_delim"'/"\\\
43119"/g' >>$CONFIG_STATUS || ac_write_fail=1
43120
43121cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43122 for (key in D) D_is_set[key] = 1
43123 FS = ""
43124}
43125/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43126 line = \$ 0
43127 split(line, arg, " ")
43128 if (arg[1] == "#") {
43129 defundef = arg[2]
43130 mac1 = arg[3]
43131 } else {
43132 defundef = substr(arg[1], 2)
43133 mac1 = arg[2]
43134 }
43135 split(mac1, mac2, "(") #)
43136 macro = mac2[1]
43137 prefix = substr(line, 1, index(line, defundef) - 1)
43138 if (D_is_set[macro]) {
43139 # Preserve the white space surrounding the "#".
43140 print prefix "define", macro P[macro] D[macro]
43141 next
43142 } else {
43143 # Replace #undef with comments. This is necessary, for example,
43144 # in the case of _POSIX_SOURCE, which is predefined and required
43145 # on some systems where configure will not decide to define it.
43146 if (defundef == "undef") {
43147 print "/*", prefix defundef, macro, "*/"
43148 next
43149 }
43150 }
43151}
43152{ print }
43153_ACAWK
43154_ACEOF
43155cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43156 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43157fi # test -n "$CONFIG_HEADERS"
43158
43159
43160eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43161shift
43162for ac_tag
43163do
43164 case $ac_tag in
43165 :[FHLC]) ac_mode=$ac_tag; continue;;
43166 esac
43167 case $ac_mode$ac_tag in
43168 :[FHL]*:*);;
43169 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43170 :[FH]-) ac_tag=-:-;;
43171 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43172 esac
43173 ac_save_IFS=$IFS
43174 IFS=:
43175 set x $ac_tag
43176 IFS=$ac_save_IFS
43177 shift
43178 ac_file=$1
43179 shift
43180
43181 case $ac_mode in
43182 :L) ac_source=$1;;
43183 :[FH])
43184 ac_file_inputs=
43185 for ac_f
43186 do
43187 case $ac_f in
43188 -) ac_f="$ac_tmp/stdin";;
43189 *) # Look for the file first in the build tree, then in the source tree
43190 # (if the path is not absolute). The absolute path cannot be DOS-style,
43191 # because $ac_f cannot contain `:'.
43192 test -f "$ac_f" ||
43193 case $ac_f in
43194 [\\/$]*) false;;
43195 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43196 esac ||
43197 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43198 esac
43199 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43200 as_fn_append ac_file_inputs " '$ac_f'"
43201 done
43202
43203 # Let's still pretend it is `configure' which instantiates (i.e., don't
43204 # use $as_me), people would be surprised to read:
43205 # /* config.h. Generated by config.status. */
43206 configure_input='Generated from '`
43207 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43208 `' by configure.'
43209 if test x"$ac_file" != x-; then
43210 configure_input="$ac_file. $configure_input"
43211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43212$as_echo "$as_me: creating $ac_file" >&6;}
43213 fi
43214 # Neutralize special characters interpreted by sed in replacement strings.
43215 case $configure_input in #(
43216 *\&* | *\|* | *\\* )
43217 ac_sed_conf_input=`$as_echo "$configure_input" |
43218 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43219 *) ac_sed_conf_input=$configure_input;;
43220 esac
43221
43222 case $ac_tag in
43223 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43225 esac
43226 ;;
43227 esac
43228
43229 ac_dir=`$as_dirname -- "$ac_file" ||
43230$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43231 X"$ac_file" : 'X\(//\)[^/]' \| \
43232 X"$ac_file" : 'X\(//\)$' \| \
43233 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43234$as_echo X"$ac_file" |
43235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43236 s//\1/
43237 q
43238 }
43239 /^X\(\/\/\)[^/].*/{
43240 s//\1/
43241 q
43242 }
43243 /^X\(\/\/\)$/{
43244 s//\1/
43245 q
43246 }
43247 /^X\(\/\).*/{
43248 s//\1/
43249 q
43250 }
43251 s/.*/./; q'`
43252 as_dir="$ac_dir"; as_fn_mkdir_p
43253 ac_builddir=.
43254
43255case "$ac_dir" in
43256.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43257*)
43258 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43259 # A ".." for each directory in $ac_dir_suffix.
43260 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43261 case $ac_top_builddir_sub in
43262 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43263 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43264 esac ;;
43265esac
43266ac_abs_top_builddir=$ac_pwd
43267ac_abs_builddir=$ac_pwd$ac_dir_suffix
43268# for backward compatibility:
43269ac_top_builddir=$ac_top_build_prefix
43270
43271case $srcdir in
43272 .) # We are building in place.
43273 ac_srcdir=.
43274 ac_top_srcdir=$ac_top_builddir_sub
43275 ac_abs_top_srcdir=$ac_pwd ;;
43276 [\\/]* | ?:[\\/]* ) # Absolute name.
43277 ac_srcdir=$srcdir$ac_dir_suffix;
43278 ac_top_srcdir=$srcdir
43279 ac_abs_top_srcdir=$srcdir ;;
43280 *) # Relative name.
43281 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43282 ac_top_srcdir=$ac_top_build_prefix$srcdir
43283 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43284esac
43285ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43286
43287
43288 case $ac_mode in
43289 :F)
43290 #
43291 # CONFIG_FILE
43292 #
43293
43294 case $INSTALL in
43295 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43296 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43297 esac
43298 ac_MKDIR_P=$MKDIR_P
43299 case $MKDIR_P in
43300 [\\/$]* | ?:[\\/]* ) ;;
43301 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43302 esac
43303_ACEOF
43304
43305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43306# If the template does not know about datarootdir, expand it.
43307# FIXME: This hack should be removed a few years after 2.60.
43308ac_datarootdir_hack=; ac_datarootdir_seen=
43309ac_sed_dataroot='
43310/datarootdir/ {
43311 p
43312 q
43313}
43314/@datadir@/p
43315/@docdir@/p
43316/@infodir@/p
43317/@localedir@/p
43318/@mandir@/p'
43319case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43320*datarootdir*) ac_datarootdir_seen=yes;;
43321*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43323$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43324_ACEOF
43325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43326 ac_datarootdir_hack='
43327 s&@datadir@&$datadir&g
43328 s&@docdir@&$docdir&g
43329 s&@infodir@&$infodir&g
43330 s&@localedir@&$localedir&g
43331 s&@mandir@&$mandir&g
43332 s&\\\${datarootdir}&$datarootdir&g' ;;
43333esac
43334_ACEOF
43335
43336# Neutralize VPATH when `$srcdir' = `.'.
43337# Shell code in configure.ac might set extrasub.
43338# FIXME: do we really want to maintain this feature?
43339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43340ac_sed_extra="$ac_vpsub
43341$extrasub
43342_ACEOF
43343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43344:t
43345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43346s|@configure_input@|$ac_sed_conf_input|;t t
43347s&@top_builddir@&$ac_top_builddir_sub&;t t
43348s&@top_build_prefix@&$ac_top_build_prefix&;t t
43349s&@srcdir@&$ac_srcdir&;t t
43350s&@abs_srcdir@&$ac_abs_srcdir&;t t
43351s&@top_srcdir@&$ac_top_srcdir&;t t
43352s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43353s&@builddir@&$ac_builddir&;t t
43354s&@abs_builddir@&$ac_abs_builddir&;t t
43355s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43356s&@INSTALL@&$ac_INSTALL&;t t
43357s&@MKDIR_P@&$ac_MKDIR_P&;t t
43358$ac_datarootdir_hack
43359"
43360eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43361 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43362
43363test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43364 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43365 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43366 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43368which seems to be undefined. Please make sure it is defined" >&5
43369$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43370which seems to be undefined. Please make sure it is defined" >&2;}
43371
43372 rm -f "$ac_tmp/stdin"
43373 case $ac_file in
43374 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43375 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43376 esac \
43377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43378 ;;
43379 :H)
43380 #
43381 # CONFIG_HEADER
43382 #
43383 if test x"$ac_file" != x-; then
43384 {
43385 $as_echo "/* $configure_input */" \
43386 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43387 } >"$ac_tmp/config.h" \
43388 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43389 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43390 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43391$as_echo "$as_me: $ac_file is unchanged" >&6;}
43392 else
43393 rm -f "$ac_file"
43394 mv "$ac_tmp/config.h" "$ac_file" \
43395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43396 fi
43397 else
43398 $as_echo "/* $configure_input */" \
43399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43400 || as_fn_error $? "could not create -" "$LINENO" 5
43401 fi
43402# Compute "$ac_file"'s index in $config_headers.
43403_am_arg="$ac_file"
43404_am_stamp_count=1
43405for _am_header in $config_headers :; do
43406 case $_am_header in
43407 $_am_arg | $_am_arg:* )
43408 break ;;
43409 * )
43410 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43411 esac
43412done
43413echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43414$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43415 X"$_am_arg" : 'X\(//\)[^/]' \| \
43416 X"$_am_arg" : 'X\(//\)$' \| \
43417 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43418$as_echo X"$_am_arg" |
43419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43420 s//\1/
43421 q
43422 }
43423 /^X\(\/\/\)[^/].*/{
43424 s//\1/
43425 q
43426 }
43427 /^X\(\/\/\)$/{
43428 s//\1/
43429 q
43430 }
43431 /^X\(\/\).*/{
43432 s//\1/
43433 q
43434 }
43435 s/.*/./; q'`/stamp-h$_am_stamp_count
43436 ;;
43437
43438 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43439$as_echo "$as_me: executing $ac_file commands" >&6;}
43440 ;;
43441 esac
43442
43443
43444 case $ac_file$ac_mode in
43445 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43446 # Older Autoconf quotes --file arguments for eval, but not when files
43447 # are listed without --file. Let's play safe and only enable the eval
43448 # if we detect the quoting.
43449 case $CONFIG_FILES in
43450 *\'*) eval set x "$CONFIG_FILES" ;;
43451 *) set x $CONFIG_FILES ;;
43452 esac
43453 shift
43454 for mf
43455 do
43456 # Strip MF so we end up with the name of the file.
43457 mf=`echo "$mf" | sed -e 's/:.*$//'`
43458 # Check whether this is an Automake generated Makefile or not.
43459 # We used to match only the files named 'Makefile.in', but
43460 # some people rename them; so instead we look at the file content.
43461 # Grep'ing the first line is not enough: some people post-process
43462 # each Makefile.in and add a new line on top of each file to say so.
43463 # Grep'ing the whole file is not good either: AIX grep has a line
43464 # limit of 2048, but all sed's we know have understand at least 4000.
43465 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43466 dirpart=`$as_dirname -- "$mf" ||
43467$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43468 X"$mf" : 'X\(//\)[^/]' \| \
43469 X"$mf" : 'X\(//\)$' \| \
43470 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43471$as_echo X"$mf" |
43472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43473 s//\1/
43474 q
43475 }
43476 /^X\(\/\/\)[^/].*/{
43477 s//\1/
43478 q
43479 }
43480 /^X\(\/\/\)$/{
43481 s//\1/
43482 q
43483 }
43484 /^X\(\/\).*/{
43485 s//\1/
43486 q
43487 }
43488 s/.*/./; q'`
43489 else
43490 continue
43491 fi
43492 # Extract the definition of DEPDIR, am__include, and am__quote
43493 # from the Makefile without running 'make'.
43494 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43495 test -z "$DEPDIR" && continue
43496 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43497 test -z "$am__include" && continue
43498 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43499 # Find all dependency output files, they are included files with
43500 # $(DEPDIR) in their names. We invoke sed twice because it is the
43501 # simplest approach to changing $(DEPDIR) to its actual value in the
43502 # expansion.
43503 for file in `sed -n "
43504 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43505 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43506 # Make sure the directory exists.
43507 test -f "$dirpart/$file" && continue
43508 fdir=`$as_dirname -- "$file" ||
43509$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43510 X"$file" : 'X\(//\)[^/]' \| \
43511 X"$file" : 'X\(//\)$' \| \
43512 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43513$as_echo X"$file" |
43514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43515 s//\1/
43516 q
43517 }
43518 /^X\(\/\/\)[^/].*/{
43519 s//\1/
43520 q
43521 }
43522 /^X\(\/\/\)$/{
43523 s//\1/
43524 q
43525 }
43526 /^X\(\/\).*/{
43527 s//\1/
43528 q
43529 }
43530 s/.*/./; q'`
43531 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43532 # echo "creating $dirpart/$file"
43533 echo '# dummy' > "$dirpart/$file"
43534 done
43535 done
43536}
43537 ;;
43538 "libtool":C)
43539
43540 # See if we are running on zsh, and set the options that allow our
43541 # commands through without removal of \ escapes.
43542 if test -n "${ZSH_VERSION+set}"; then
43543 setopt NO_GLOB_SUBST
43544 fi
43545
43546 cfgfile=${ofile}T
43547 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43548 $RM "$cfgfile"
43549
43550 cat <<_LT_EOF >> "$cfgfile"
43551#! $SHELL
43552# Generated automatically by $as_me ($PACKAGE) $VERSION
43553# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43554
43555# Provide generalized library-building support services.
43556# Written by Gordon Matzigkeit, 1996
43557
43558# Copyright (C) 2014 Free Software Foundation, Inc.
43559# This is free software; see the source for copying conditions. There is NO
43560# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43561
43562# GNU Libtool is free software; you can redistribute it and/or modify
43563# it under the terms of the GNU General Public License as published by
43564# the Free Software Foundation; either version 2 of of the License, or
43565# (at your option) any later version.
43566#
43567# As a special exception to the GNU General Public License, if you
43568# distribute this file as part of a program or library that is built
43569# using GNU Libtool, you may include this file under the same
43570# distribution terms that you use for the rest of that program.
43571#
43572# GNU Libtool is distributed in the hope that it will be useful, but
43573# WITHOUT ANY WARRANTY; without even the implied warranty of
43574# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43575# GNU General Public License for more details.
43576#
43577# You should have received a copy of the GNU General Public License
43578# along with this program. If not, see <http://www.gnu.org/licenses/>.
43579
43580
43581# The names of the tagged configurations supported by this script.
43582available_tags=''
43583
43584# Configured defaults for sys_lib_dlsearch_path munging.
43585: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43586
43587# ### BEGIN LIBTOOL CONFIG
43588
43589# Which release of libtool.m4 was used?
43590macro_version=$macro_version
43591macro_revision=$macro_revision
43592
43593# Assembler program.
43594AS=$lt_AS
43595
43596# DLL creation program.
43597DLLTOOL=$lt_DLLTOOL
43598
43599# Object dumper program.
43600OBJDUMP=$lt_OBJDUMP
43601
43602# Whether or not to build shared libraries.
43603build_libtool_libs=$enable_shared
43604
43605# Whether or not to build static libraries.
43606build_old_libs=$enable_static
43607
43608# What type of objects to build.
43609pic_mode=$pic_mode
43610
43611# Whether or not to optimize for fast installation.
43612fast_install=$enable_fast_install
43613
43614# Shared archive member basename,for filename based shared library versioning on AIX.
43615shared_archive_member_spec=$shared_archive_member_spec
43616
43617# Shell to use when invoking shell scripts.
43618SHELL=$lt_SHELL
43619
43620# An echo program that protects backslashes.
43621ECHO=$lt_ECHO
43622
43623# The PATH separator for the build system.
43624PATH_SEPARATOR=$lt_PATH_SEPARATOR
43625
43626# The host system.
43627host_alias=$host_alias
43628host=$host
43629host_os=$host_os
43630
43631# The build system.
43632build_alias=$build_alias
43633build=$build
43634build_os=$build_os
43635
43636# A sed program that does not truncate output.
43637SED=$lt_SED
43638
43639# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43640Xsed="\$SED -e 1s/^X//"
43641
43642# A grep program that handles long lines.
43643GREP=$lt_GREP
43644
43645# An ERE matcher.
43646EGREP=$lt_EGREP
43647
43648# A literal string matcher.
43649FGREP=$lt_FGREP
43650
43651# A BSD- or MS-compatible name lister.
43652NM=$lt_NM
43653
43654# Whether we need soft or hard links.
43655LN_S=$lt_LN_S
43656
43657# What is the maximum length of a command?
43658max_cmd_len=$max_cmd_len
43659
43660# Object file suffix (normally "o").
43661objext=$ac_objext
43662
43663# Executable file suffix (normally "").
43664exeext=$exeext
43665
43666# whether the shell understands "unset".
43667lt_unset=$lt_unset
43668
43669# turn spaces into newlines.
43670SP2NL=$lt_lt_SP2NL
43671
43672# turn newlines into spaces.
43673NL2SP=$lt_lt_NL2SP
43674
43675# convert \$build file names to \$host format.
43676to_host_file_cmd=$lt_cv_to_host_file_cmd
43677
43678# convert \$build files to toolchain format.
43679to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43680
43681# Method to check whether dependent libraries are shared objects.
43682deplibs_check_method=$lt_deplibs_check_method
43683
43684# Command to use when deplibs_check_method = "file_magic".
43685file_magic_cmd=$lt_file_magic_cmd
43686
43687# How to find potential files when deplibs_check_method = "file_magic".
43688file_magic_glob=$lt_file_magic_glob
43689
43690# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43691want_nocaseglob=$lt_want_nocaseglob
43692
43693# Command to associate shared and link libraries.
43694sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43695
43696# The archiver.
43697AR=$lt_AR
43698
43699# Flags to create an archive.
43700AR_FLAGS=$lt_AR_FLAGS
43701
43702# How to feed a file listing to the archiver.
43703archiver_list_spec=$lt_archiver_list_spec
43704
43705# A symbol stripping program.
43706STRIP=$lt_STRIP
43707
43708# Commands used to install an old-style archive.
43709RANLIB=$lt_RANLIB
43710old_postinstall_cmds=$lt_old_postinstall_cmds
43711old_postuninstall_cmds=$lt_old_postuninstall_cmds
43712
43713# Whether to use a lock for old archive extraction.
43714lock_old_archive_extraction=$lock_old_archive_extraction
43715
43716# A C compiler.
43717LTCC=$lt_CC
43718
43719# LTCC compiler flags.
43720LTCFLAGS=$lt_CFLAGS
43721
43722# Take the output of nm and produce a listing of raw symbols and C names.
43723global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43724
43725# Transform the output of nm in a proper C declaration.
43726global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43727
43728# Transform the output of nm into a list of symbols to manually relocate.
43729global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43730
43731# Transform the output of nm in a C name address pair.
43732global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43733
43734# Transform the output of nm in a C name address pair when lib prefix is needed.
43735global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43736
43737# The name lister interface.
43738nm_interface=$lt_lt_cv_nm_interface
43739
43740# Specify filename containing input files for \$NM.
43741nm_file_list_spec=$lt_nm_file_list_spec
43742
43743# The root where to search for dependent libraries,and where our libraries should be installed.
43744lt_sysroot=$lt_sysroot
43745
43746# Command to truncate a binary pipe.
43747lt_truncate_bin=$lt_lt_cv_truncate_bin
43748
43749# The name of the directory that contains temporary libtool files.
43750objdir=$objdir
43751
43752# Used to examine libraries when file_magic_cmd begins with "file".
43753MAGIC_CMD=$MAGIC_CMD
43754
43755# Must we lock files when doing compilation?
43756need_locks=$lt_need_locks
43757
43758# Manifest tool.
43759MANIFEST_TOOL=$lt_MANIFEST_TOOL
43760
43761# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43762DSYMUTIL=$lt_DSYMUTIL
43763
43764# Tool to change global to local symbols on Mac OS X.
43765NMEDIT=$lt_NMEDIT
43766
43767# Tool to manipulate fat objects and archives on Mac OS X.
43768LIPO=$lt_LIPO
43769
43770# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43771OTOOL=$lt_OTOOL
43772
43773# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43774OTOOL64=$lt_OTOOL64
43775
43776# Old archive suffix (normally "a").
43777libext=$libext
43778
43779# Shared library suffix (normally ".so").
43780shrext_cmds=$lt_shrext_cmds
43781
43782# The commands to extract the exported symbol list from a shared archive.
43783extract_expsyms_cmds=$lt_extract_expsyms_cmds
43784
43785# Variables whose values should be saved in libtool wrapper scripts and
43786# restored at link time.
43787variables_saved_for_relink=$lt_variables_saved_for_relink
43788
43789# Do we need the "lib" prefix for modules?
43790need_lib_prefix=$need_lib_prefix
43791
43792# Do we need a version for libraries?
43793need_version=$need_version
43794
43795# Library versioning type.
43796version_type=$version_type
43797
43798# Shared library runtime path variable.
43799runpath_var=$runpath_var
43800
43801# Shared library path variable.
43802shlibpath_var=$shlibpath_var
43803
43804# Is shlibpath searched before the hard-coded library search path?
43805shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43806
43807# Format of library name prefix.
43808libname_spec=$lt_libname_spec
43809
43810# List of archive names. First name is the real one, the rest are links.
43811# The last name is the one that the linker finds with -lNAME
43812library_names_spec=$lt_library_names_spec
43813
43814# The coded name of the library, if different from the real name.
43815soname_spec=$lt_soname_spec
43816
43817# Permission mode override for installation of shared libraries.
43818install_override_mode=$lt_install_override_mode
43819
43820# Command to use after installation of a shared archive.
43821postinstall_cmds=$lt_postinstall_cmds
43822
43823# Command to use after uninstallation of a shared archive.
43824postuninstall_cmds=$lt_postuninstall_cmds
43825
43826# Commands used to finish a libtool library installation in a directory.
43827finish_cmds=$lt_finish_cmds
43828
43829# As "finish_cmds", except a single script fragment to be evaled but
43830# not shown.
43831finish_eval=$lt_finish_eval
43832
43833# Whether we should hardcode library paths into libraries.
43834hardcode_into_libs=$hardcode_into_libs
43835
43836# Compile-time system search path for libraries.
43837sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43838
43839# Detected run-time system search path for libraries.
43840sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43841
43842# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43843configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43844
43845# Whether dlopen is supported.
43846dlopen_support=$enable_dlopen
43847
43848# Whether dlopen of programs is supported.
43849dlopen_self=$enable_dlopen_self
43850
43851# Whether dlopen of statically linked programs is supported.
43852dlopen_self_static=$enable_dlopen_self_static
43853
43854# Commands to strip libraries.
43855old_striplib=$lt_old_striplib
43856striplib=$lt_striplib
43857
43858
43859# The linker used to build libraries.
43860LD=$lt_LD
43861
43862# How to create reloadable object files.
43863reload_flag=$lt_reload_flag
43864reload_cmds=$lt_reload_cmds
43865
43866# Commands used to build an old-style archive.
43867old_archive_cmds=$lt_old_archive_cmds
43868
43869# A language specific compiler.
43870CC=$lt_compiler
43871
43872# Is the compiler the GNU compiler?
43873with_gcc=$GCC
43874
43875# Compiler flag to turn off builtin functions.
43876no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43877
43878# Additional compiler flags for building library objects.
43879pic_flag=$lt_lt_prog_compiler_pic
43880
43881# How to pass a linker flag through the compiler.
43882wl=$lt_lt_prog_compiler_wl
43883
43884# Compiler flag to prevent dynamic linking.
43885link_static_flag=$lt_lt_prog_compiler_static
43886
43887# Does compiler simultaneously support -c and -o options?
43888compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43889
43890# Whether or not to add -lc for building shared libraries.
43891build_libtool_need_lc=$archive_cmds_need_lc
43892
43893# Whether or not to disallow shared libs when runtime libs are static.
43894allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43895
43896# Compiler flag to allow reflexive dlopens.
43897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43898
43899# Compiler flag to generate shared objects directly from archives.
43900whole_archive_flag_spec=$lt_whole_archive_flag_spec
43901
43902# Whether the compiler copes with passing no objects directly.
43903compiler_needs_object=$lt_compiler_needs_object
43904
43905# Create an old-style archive from a shared archive.
43906old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43907
43908# Create a temporary old-style archive to link instead of a shared archive.
43909old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43910
43911# Commands used to build a shared archive.
43912archive_cmds=$lt_archive_cmds
43913archive_expsym_cmds=$lt_archive_expsym_cmds
43914
43915# Commands used to build a loadable module if different from building
43916# a shared archive.
43917module_cmds=$lt_module_cmds
43918module_expsym_cmds=$lt_module_expsym_cmds
43919
43920# Whether we are building with GNU ld or not.
43921with_gnu_ld=$lt_with_gnu_ld
43922
43923# Flag that allows shared libraries with undefined symbols to be built.
43924allow_undefined_flag=$lt_allow_undefined_flag
43925
43926# Flag that enforces no undefined symbols.
43927no_undefined_flag=$lt_no_undefined_flag
43928
43929# Flag to hardcode \$libdir into a binary during linking.
43930# This must work even if \$libdir does not exist
43931hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43932
43933# Whether we need a single "-rpath" flag with a separated argument.
43934hardcode_libdir_separator=$lt_hardcode_libdir_separator
43935
43936# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43937# DIR into the resulting binary.
43938hardcode_direct=$hardcode_direct
43939
43940# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43941# DIR into the resulting binary and the resulting library dependency is
43942# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43943# library is relocated.
43944hardcode_direct_absolute=$hardcode_direct_absolute
43945
43946# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43947# into the resulting binary.
43948hardcode_minus_L=$hardcode_minus_L
43949
43950# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43951# into the resulting binary.
43952hardcode_shlibpath_var=$hardcode_shlibpath_var
43953
43954# Set to "yes" if building a shared library automatically hardcodes DIR
43955# into the library and all subsequent libraries and executables linked
43956# against it.
43957hardcode_automatic=$hardcode_automatic
43958
43959# Set to yes if linker adds runtime paths of dependent libraries
43960# to runtime path list.
43961inherit_rpath=$inherit_rpath
43962
43963# Whether libtool must link a program against all its dependency libraries.
43964link_all_deplibs=$link_all_deplibs
43965
43966# Set to "yes" if exported symbols are required.
43967always_export_symbols=$always_export_symbols
43968
43969# The commands to list exported symbols.
43970export_symbols_cmds=$lt_export_symbols_cmds
43971
43972# Symbols that should not be listed in the preloaded symbols.
43973exclude_expsyms=$lt_exclude_expsyms
43974
43975# Symbols that must always be exported.
43976include_expsyms=$lt_include_expsyms
43977
43978# Commands necessary for linking programs (against libraries) with templates.
43979prelink_cmds=$lt_prelink_cmds
43980
43981# Commands necessary for finishing linking programs.
43982postlink_cmds=$lt_postlink_cmds
43983
43984# Specify filename containing input files.
43985file_list_spec=$lt_file_list_spec
43986
43987# How to hardcode a shared library path into an executable.
43988hardcode_action=$hardcode_action
43989
43990# ### END LIBTOOL CONFIG
43991
43992_LT_EOF
43993
43994 cat <<'_LT_EOF' >> "$cfgfile"
43995
43996# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43997
43998# func_munge_path_list VARIABLE PATH
43999# -----------------------------------
44000# VARIABLE is name of variable containing _space_ separated list of
44001# directories to be munged by the contents of PATH, which is string
44002# having a format:
44003# "DIR[:DIR]:"
44004# string "DIR[ DIR]" will be prepended to VARIABLE
44005# ":DIR[:DIR]"
44006# string "DIR[ DIR]" will be appended to VARIABLE
44007# "DIRP[:DIRP]::[DIRA:]DIRA"
44008# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
44009# "DIRA[ DIRA]" will be appended to VARIABLE
44010# "DIR[:DIR]"
44011# VARIABLE will be replaced by "DIR[ DIR]"
44012func_munge_path_list ()
44013{
44014 case x$2 in
44015 x)
44016 ;;
44017 *:)
44018 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
44019 ;;
44020 x:*)
44021 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
44022 ;;
44023 *::*)
44024 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
44025 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
44026 ;;
44027 *)
44028 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
44029 ;;
44030 esac
44031}
44032
44033
44034# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
44035func_cc_basename ()
44036{
44037 for cc_temp in $*""; do
44038 case $cc_temp in
44039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44041 \-*) ;;
44042 *) break;;
44043 esac
44044 done
44045 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
44046}
44047
44048
44049# ### END FUNCTIONS SHARED WITH CONFIGURE
44050
44051_LT_EOF
44052
44053 case $host_os in
44054 aix3*)
44055 cat <<\_LT_EOF >> "$cfgfile"
44056# AIX sometimes has problems with the GCC collect2 program. For some
44057# reason, if we set the COLLECT_NAMES environment variable, the problems
44058# vanish in a puff of smoke.
44059if test set != "${COLLECT_NAMES+set}"; then
44060 COLLECT_NAMES=
44061 export COLLECT_NAMES
44062fi
44063_LT_EOF
44064 ;;
44065 esac
44066
44067
44068ltmain=$ac_aux_dir/ltmain.sh
44069
44070
44071 # We use sed instead of cat because bash on DJGPP gets confused if
44072 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44073 # text mode, it properly converts lines to CR/LF. This bash problem
44074 # is reportedly fixed, but why not run on old versions too?
44075 sed '$q' "$ltmain" >> "$cfgfile" \
44076 || (rm -f "$cfgfile"; exit 1)
44077
44078 mv -f "$cfgfile" "$ofile" ||
44079 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44080 chmod +x "$ofile"
44081
44082 ;;
44083
44084 esac
44085done # for ac_tag
44086
44087
44088as_fn_exit 0
44089_ACEOF
44090ac_clean_files=$ac_clean_files_save
44091
44092test $ac_write_fail = 0 ||
44093 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
44094
44095
44096# configure is writing to config.log, and then calls config.status.
44097# config.status does its own redirection, appending to config.log.
44098# Unfortunately, on DOS this fails, as config.log is still kept open
44099# by configure, so config.status won't be able to write to it; its
44100# output is simply discarded. So we exec the FD to /dev/null,
44101# effectively closing config.log, so it can be properly (re)opened and
44102# appended to by config.status. When coming back to configure, we
44103# need to make the FD available again.
44104if test "$no_create" != yes; then
44105 ac_cs_success=:
44106 ac_config_status_args=
44107 test "$silent" = yes &&
44108 ac_config_status_args="$ac_config_status_args --quiet"
44109 exec 5>/dev/null
44110 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44111 exec 5>>config.log
44112 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44113 # would make configure fail if this is the last instruction.
44114 $ac_cs_success || as_fn_exit 1
44115fi
44116
44117#
44118# CONFIG_SUBDIRS section.
44119#
44120if test "$no_recursion" != yes; then
44121
44122 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
44123 # so they do not pile up.
44124 ac_sub_configure_args=
44125 ac_prev=
44126 eval "set x $ac_configure_args"
44127 shift
44128 for ac_arg
44129 do
44130 if test -n "$ac_prev"; then
44131 ac_prev=
44132 continue
44133 fi
44134 case $ac_arg in
44135 -cache-file | --cache-file | --cache-fil | --cache-fi \
44136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44137 ac_prev=cache_file ;;
44138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44140 | --c=*)
44141 ;;
44142 --config-cache | -C)
44143 ;;
44144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44145 ac_prev=srcdir ;;
44146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44147 ;;
44148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44149 ac_prev=prefix ;;
44150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44151 ;;
44152 --disable-option-checking)
44153 ;;
44154 *)
44155 case $ac_arg in
44156 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44157 esac
44158 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44159 esac
44160 done
44161
44162 # Always prepend --prefix to ensure using the same prefix
44163 # in subdir configurations.
44164 ac_arg="--prefix=$prefix"
44165 case $ac_arg in
44166 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44167 esac
44168 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44169
44170 # Pass --silent
44171 if test "$silent" = yes; then
44172 ac_sub_configure_args="--silent $ac_sub_configure_args"
44173 fi
44174
44175 # Always prepend --disable-option-checking to silence warnings, since
44176 # different subdirs can have different --enable and --with options.
44177 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44178
44179 ac_popdir=`pwd`
44180 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44181
44182 # Do not complain, so a configure script can configure whichever
44183 # parts of a large source tree are present.
44184 test -d "$srcdir/$ac_dir" || continue
44185
44186 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44187 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44188 $as_echo "$ac_msg" >&6
44189 as_dir="$ac_dir"; as_fn_mkdir_p
44190 ac_builddir=.
44191
44192case "$ac_dir" in
44193.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44194*)
44195 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44196 # A ".." for each directory in $ac_dir_suffix.
44197 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44198 case $ac_top_builddir_sub in
44199 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44200 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44201 esac ;;
44202esac
44203ac_abs_top_builddir=$ac_pwd
44204ac_abs_builddir=$ac_pwd$ac_dir_suffix
44205# for backward compatibility:
44206ac_top_builddir=$ac_top_build_prefix
44207
44208case $srcdir in
44209 .) # We are building in place.
44210 ac_srcdir=.
44211 ac_top_srcdir=$ac_top_builddir_sub
44212 ac_abs_top_srcdir=$ac_pwd ;;
44213 [\\/]* | ?:[\\/]* ) # Absolute name.
44214 ac_srcdir=$srcdir$ac_dir_suffix;
44215 ac_top_srcdir=$srcdir
44216 ac_abs_top_srcdir=$srcdir ;;
44217 *) # Relative name.
44218 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44219 ac_top_srcdir=$ac_top_build_prefix$srcdir
44220 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44221esac
44222ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44223
44224
44225 cd "$ac_dir"
44226
44227 # Check for guested configure; otherwise get Cygnus style configure.
44228 if test -f "$ac_srcdir/configure.gnu"; then
44229 ac_sub_configure=$ac_srcdir/configure.gnu
44230 elif test -f "$ac_srcdir/configure"; then
44231 ac_sub_configure=$ac_srcdir/configure
44232 elif test -f "$ac_srcdir/configure.in"; then
44233 # This should be Cygnus configure.
44234 ac_sub_configure=$ac_aux_dir/configure
44235 else
44236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44237$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44238 ac_sub_configure=
44239 fi
44240
44241 # The recursion is here.
44242 if test -n "$ac_sub_configure"; then
44243 # Make the cache file name correct relative to the subdirectory.
44244 case $cache_file in
44245 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44246 *) # Relative name.
44247 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44248 esac
44249
44250 { $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
44251$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44252 # The eval makes quoting arguments work.
44253 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44254 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44255 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44256 fi
44257
44258 cd "$ac_popdir"
44259 done
44260fi
44261if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44263$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44264fi
44265
44266
44267
44268 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44269 if test -z "$tmp_cpp"; then
44270 tmp_cpp='cpp'
44271 fi
44272 cat >./tests/configurehelp.pm <<_EOF
44273# This is a generated file. Do not edit.
44274
44275package configurehelp;
44276
44277use strict;
44278use warnings;
44279use Exporter;
44280
44281use vars qw(
44282 @ISA
44283 @EXPORT_OK
44284 \$Cpreprocessor
44285 );
44286
44287@ISA = qw(Exporter);
44288
44289@EXPORT_OK = qw(
44290 \$Cpreprocessor
44291 );
44292
44293\$Cpreprocessor = '$tmp_cpp';
44294
442951;
44296_EOF
44297
44298
44299
44300## ---------------------------------- ##
44301## Start of distclean amending code ##
44302## ---------------------------------- ##
44303
44304for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44305do
44306
44307if test ! -f "$xc_subdir/Makefile"; then
44308 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44309 exit 1
44310fi
44311
44312# Fetch dependency tracking file list from Makefile include lines.
44313
44314xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44315xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44316
44317# --disable-dependency-tracking might have been used, consequently
44318# there is nothing to amend without a dependency tracking file list.
44319
44320if test $xc_cnt_words -gt 0; then
44321
44322{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44323$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44324
44325# Build Makefile specific patch hunk.
44326
44327xc_p="$xc_subdir/xc_patch.tmp"
44328
44329xc_rm_depfiles=`echo "$xc_inc_lines" \
44330 | $SED 's%include% -rm -f%' 2>/dev/null`
44331
44332xc_dep_subdirs=`echo "$xc_inc_lines" \
44333 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44334 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44335 | sort | uniq`
44336
44337echo "$xc_rm_depfiles" >$xc_p
44338
44339for xc_dep_dir in $xc_dep_subdirs; do
44340 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44341 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44342 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44343 echo "${xc_tab}fi" >>$xc_p
44344done
44345
44346# Build Makefile patching sed scripts.
44347
44348xc_s1="$xc_subdir/xc_script_1.tmp"
44349xc_s2="$xc_subdir/xc_script_2.tmp"
44350xc_s3="$xc_subdir/xc_script_3.tmp"
44351
44352cat >$xc_s1 <<\_EOT
44353/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44354 s/^.*(DEPDIR)/___xc_depdir_line___/
44355}
44356/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44357 s/^.*(DEPDIR)/___xc_depdir_line___/
44358}
44359_EOT
44360
44361cat >$xc_s2 <<\_EOT
44362/___xc_depdir_line___$/{
44363 N
44364 /___xc_depdir_line___$/D
44365}
44366_EOT
44367
44368cat >$xc_s3 <<_EOT
44369/^___xc_depdir_line___/{
44370 r $xc_p
44371 d
44372}
44373_EOT
44374
44375# Apply patch to Makefile and cleanup.
44376
44377$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44378$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44379$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44380
44381if test -f "$xc_subdir/Makefile.tmp3"; then
44382 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44383fi
44384
44385test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44386test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44387test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44388
44389test -f "$xc_p" && rm -f "$xc_p"
44390test -f "$xc_s1" && rm -f "$xc_s1"
44391test -f "$xc_s2" && rm -f "$xc_s2"
44392test -f "$xc_s3" && rm -f "$xc_s3"
44393
44394fi
44395
44396done
44397
44398## -------------------------------- ##
44399## End of distclean amending code ##
44400## -------------------------------- ##
44401
44402
44403
44404{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44405
44406 curl version: ${CURLVERSION}
44407 Host setup: ${host}
44408 Install prefix: ${prefix}
44409 Compiler: ${CC}
44410 SSL support: ${curl_ssl_msg}
44411 SSH support: ${curl_ssh_msg}
44412 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044413 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044414 GSS-API support: ${curl_gss_msg}
44415 TLS-SRP support: ${curl_tls_srp_msg}
44416 resolver: ${curl_res_msg}
44417 IPv6 support: ${curl_ipv6_msg}
44418 Unix sockets support: ${curl_unix_sockets_msg}
44419 IDN support: ${curl_idn_msg}
44420 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44421 Built-in manual: ${curl_manual_msg}
44422 --libcurl option: ${curl_libcurl_msg}
44423 Verbose errors: ${curl_verbose_msg}
44424 SSPI support: ${curl_sspi_msg}
44425 ca cert bundle: ${ca}${ca_warning}
44426 ca cert path: ${capath}${capath_warning}
44427 ca fallback: ${with_ca_fallback}
44428 LDAP support: ${curl_ldap_msg}
44429 LDAPS support: ${curl_ldaps_msg}
44430 RTSP support: ${curl_rtsp_msg}
44431 RTMP support: ${curl_rtmp_msg}
44432 metalink support: ${curl_mtlnk_msg}
44433 PSL support: ${curl_psl_msg}
44434 HTTP2 support: ${curl_h2_msg}
44435 Protocols: ${SUPPORT_PROTOCOLS}
44436" >&5
44437$as_echo "$as_me: Configured to build curl/libcurl:
44438
44439 curl version: ${CURLVERSION}
44440 Host setup: ${host}
44441 Install prefix: ${prefix}
44442 Compiler: ${CC}
44443 SSL support: ${curl_ssl_msg}
44444 SSH support: ${curl_ssh_msg}
44445 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044446 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044447 GSS-API support: ${curl_gss_msg}
44448 TLS-SRP support: ${curl_tls_srp_msg}
44449 resolver: ${curl_res_msg}
44450 IPv6 support: ${curl_ipv6_msg}
44451 Unix sockets support: ${curl_unix_sockets_msg}
44452 IDN support: ${curl_idn_msg}
44453 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44454 Built-in manual: ${curl_manual_msg}
44455 --libcurl option: ${curl_libcurl_msg}
44456 Verbose errors: ${curl_verbose_msg}
44457 SSPI support: ${curl_sspi_msg}
44458 ca cert bundle: ${ca}${ca_warning}
44459 ca cert path: ${capath}${capath_warning}
44460 ca fallback: ${with_ca_fallback}
44461 LDAP support: ${curl_ldap_msg}
44462 LDAPS support: ${curl_ldaps_msg}
44463 RTSP support: ${curl_rtsp_msg}
44464 RTMP support: ${curl_rtmp_msg}
44465 metalink support: ${curl_mtlnk_msg}
44466 PSL support: ${curl_psl_msg}
44467 HTTP2 support: ${curl_h2_msg}
44468 Protocols: ${SUPPORT_PROTOCOLS}
44469" >&6;}