blob: 11689d6701d4a68352f37f70e48c4645dc7a3619 [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#
Haibo Huang51d9d882019-02-06 01:36:06 -080014# Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
Elliott Hughes82be86d2017-09-20 17:00:17 -070015# 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
Haibo Huang65021c72019-03-27 15:37:23 -0700906FISH_FUNCTIONS_DIR
Elliott Hughes82be86d2017-09-20 17:00:17 -0700907ZSH_FUNCTIONS_DIR
908USE_NGHTTP2
909IDN_ENABLED
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
911CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
912CURL_LT_SHLIB_VERSIONED_FLAVOUR
913USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800914USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700915USE_LIBSSH2
916LIBMETALINK_CPPFLAGS
917LIBMETALINK_LDFLAGS
918LIBMETALINK_LIBS
919USE_LIBPSL_FALSE
920USE_LIBPSL_TRUE
921CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100922CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700923SSL_ENABLED
Elliott Hughes82be86d2017-09-20 17:00:17 -0700924NSS_LIBS
925USE_NSS
Elliott Hughesa93fb052018-12-12 14:22:48 -0800926USE_MESALINK
Elliott Hughes82be86d2017-09-20 17:00:17 -0700927USE_CYASSL
928USE_MBEDTLS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700929HAVE_GNUTLS_SRP
930USE_GNUTLS_NETTLE
931USE_GNUTLS
932HAVE_OPENSSL_SRP
933RANDOM_FILE
934SSL_LIBS
Haibo Huang65021c72019-03-27 15:37:23 -0700935USE_SECTRANSP
Elliott Hughes82be86d2017-09-20 17:00:17 -0700936USE_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
Haibo Huang65021c72019-03-27 15:37:23 -0700948HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -0700949CURL_DISABLE_GOPHER
950CURL_DISABLE_SMTP
951CURL_DISABLE_SMB
952CURL_DISABLE_IMAP
953CURL_DISABLE_POP3
954CURL_DISABLE_TFTP
955CURL_DISABLE_TELNET
956CURL_DISABLE_DICT
957CURL_DISABLE_PROXY
958HAVE_LDAP_SSL
959CURL_DISABLE_LDAPS
960CURL_DISABLE_LDAP
961CURL_DISABLE_FILE
962CURL_DISABLE_FTP
963CURL_DISABLE_RTSP
964CURL_DISABLE_HTTP
965DOING_NATIVE_WINDOWS_FALSE
966DOING_NATIVE_WINDOWS_TRUE
967BUILD_UNITTESTS_FALSE
968BUILD_UNITTESTS_TRUE
969CURLDEBUG_FALSE
970CURLDEBUG_TRUE
971USE_EXPLICIT_LIB_DEPS_FALSE
972USE_EXPLICIT_LIB_DEPS_TRUE
973REQUIRE_LIB_DEPS
974CPPFLAG_CURL_STATICLIB
975USE_CPPFLAG_CURL_STATICLIB_FALSE
976USE_CPPFLAG_CURL_STATICLIB_TRUE
977CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
978CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
979CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
980CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
981CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
982CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
983LT_SYS_LIBRARY_PATH
984OTOOL64
985OTOOL
986LIPO
987NMEDIT
988DSYMUTIL
989MANIFEST_TOOL
990RANLIB
991ac_ct_AR
992LN_S
993NM
994ac_ct_DUMPBIN
995DUMPBIN
996LD
997FGREP
998LIBTOOL
999OBJDUMP
1000DLLTOOL
1001AS
Elliott Hughes72d948d2018-08-03 14:37:21 -07001002AR_FLAGS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001003host_os
1004host_vendor
1005host_cpu
1006host
1007build_os
1008build_vendor
1009build_cpu
1010build
1011PKGADD_VENDOR
1012PKGADD_NAME
1013PKGADD_PKG
1014VERSIONNUM
1015CURLVERSION
1016am__fastdepCC_FALSE
1017am__fastdepCC_TRUE
1018CCDEPMODE
1019am__nodep
1020AMDEPBACKSLASH
1021AMDEP_FALSE
1022AMDEP_TRUE
1023am__quote
1024am__include
1025DEPDIR
1026am__untar
1027am__tar
1028AMTAR
1029am__leading_dot
1030SET_MAKE
1031AWK
1032mkdir_p
1033MKDIR_P
1034INSTALL_STRIP_PROGRAM
1035STRIP
1036install_sh
1037MAKEINFO
1038AUTOHEADER
1039AUTOMAKE
1040AUTOCONF
1041ACLOCAL
1042VERSION
1043PACKAGE
1044CYGPATH_W
1045am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001046LCOV
1047GCOV
Elliott Hughes82be86d2017-09-20 17:00:17 -07001048CPP
1049OBJEXT
1050EXEEXT
1051ac_ct_CC
1052CPPFLAGS
1053LDFLAGS
1054CFLAGS
1055CC
1056INSTALL_DATA
1057INSTALL_SCRIPT
1058INSTALL_PROGRAM
1059libext
1060AR
1061EGREP
1062GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001063SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001064CURL_CFLAG_EXTRAS
1065CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001066AM_BACKSLASH
1067AM_DEFAULT_VERBOSITY
1068AM_DEFAULT_V
1069AM_V
1070MAINT
1071MAINTAINER_MODE_FALSE
1072MAINTAINER_MODE_TRUE
1073target_alias
1074host_alias
1075build_alias
1076LIBS
1077ECHO_T
1078ECHO_N
1079ECHO_C
1080DEFS
1081mandir
1082localedir
1083libdir
1084psdir
1085pdfdir
1086dvidir
1087htmldir
1088infodir
1089docdir
1090oldincludedir
1091includedir
1092runstatedir
1093localstatedir
1094sharedstatedir
1095sysconfdir
1096datadir
1097datarootdir
1098libexecdir
1099sbindir
1100bindir
1101program_transform_name
1102prefix
1103exec_prefix
1104PACKAGE_URL
1105PACKAGE_BUGREPORT
1106PACKAGE_STRING
1107PACKAGE_VERSION
1108PACKAGE_TARNAME
1109PACKAGE_NAME
1110SHELL
1111PATH_SEPARATOR'
1112ac_subst_files=''
1113ac_user_opts='
1114enable_option_checking
1115enable_maintainer_mode
1116enable_silent_rules
1117enable_debug
1118enable_optimize
1119enable_warnings
1120enable_werror
1121enable_curldebug
1122enable_symbol_hiding
1123enable_hidden_symbols
1124enable_ares
1125enable_rt
Elliott Hughes82be86d2017-09-20 17:00:17 -07001126enable_code_coverage
1127enable_dependency_tracking
1128enable_largefile
1129enable_shared
1130enable_static
1131with_pic
1132enable_fast_install
1133with_aix_soname
1134with_gnu_ld
1135with_sysroot
1136enable_libtool_lock
1137enable_http
1138enable_ftp
1139enable_file
1140enable_ldap
1141enable_ldaps
1142enable_rtsp
1143enable_proxy
1144enable_dict
1145enable_telnet
1146enable_tftp
1147enable_pop3
1148enable_imap
1149enable_smb
1150enable_smtp
1151enable_gopher
1152enable_manual
1153enable_libcurl_option
1154enable_libgcc
1155with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001156with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001157with_ldap_lib
1158with_lber_lib
1159enable_ipv6
1160with_gssapi_includes
1161with_gssapi_libs
1162with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001163with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001164with_winssl
Haibo Huang51d9d882019-02-06 01:36:06 -08001165with_schannel
Elliott Hughes82be86d2017-09-20 17:00:17 -07001166with_darwinssl
Haibo Huang65021c72019-03-27 15:37:23 -07001167with_secure_transport
1168with_amissl
Elliott Hughes82be86d2017-09-20 17:00:17 -07001169with_ssl
1170with_egd_socket
1171with_random
Elliott Hughesa93fb052018-12-12 14:22:48 -08001172enable_openssl_auto_load_config
Elliott Hughes82be86d2017-09-20 17:00:17 -07001173with_gnutls
Elliott Hughes82be86d2017-09-20 17:00:17 -07001174with_mbedtls
1175with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001176with_wolfssl
Elliott Hughesa93fb052018-12-12 14:22:48 -08001177with_mesalink
Elliott Hughes82be86d2017-09-20 17:00:17 -07001178with_nss
Elliott Hughes82be86d2017-09-20 17:00:17 -07001179with_ca_bundle
1180with_ca_path
1181with_ca_fallback
1182with_libpsl
1183with_libmetalink
1184with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001185with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001186with_librtmp
1187enable_versioned_symbols
1188with_winidn
1189with_libidn2
1190with_nghttp2
1191with_zsh_functions_dir
Haibo Huang65021c72019-03-27 15:37:23 -07001192with_fish_functions_dir
Elliott Hughes82be86d2017-09-20 17:00:17 -07001193enable_threaded_resolver
1194enable_pthreads
1195enable_verbose
1196enable_sspi
1197enable_crypto_auth
1198enable_ntlm_wb
1199enable_tls_srp
1200enable_unix_sockets
1201enable_cookies
Haibo Huang65021c72019-03-27 15:37:23 -07001202enable_alt_svc
Elliott Hughes82be86d2017-09-20 17:00:17 -07001203'
1204 ac_precious_vars='build_alias
1205host_alias
1206target_alias
1207CC
1208CFLAGS
1209LDFLAGS
1210LIBS
1211CPPFLAGS
1212CPP
1213LT_SYS_LIBRARY_PATH'
1214ac_subdirs_all='ares'
1215
1216# Initialize some variables set by options.
1217ac_init_help=
1218ac_init_version=false
1219ac_unrecognized_opts=
1220ac_unrecognized_sep=
1221# The variables have the same names as the options, with
1222# dashes changed to underlines.
1223cache_file=/dev/null
1224exec_prefix=NONE
1225no_create=
1226no_recursion=
1227prefix=NONE
1228program_prefix=NONE
1229program_suffix=NONE
1230program_transform_name=s,x,x,
1231silent=
1232site=
1233srcdir=
1234verbose=
1235x_includes=NONE
1236x_libraries=NONE
1237
1238# Installation directory options.
1239# These are left unexpanded so users can "make install exec_prefix=/foo"
1240# and all the variables that are supposed to be based on exec_prefix
1241# by default will actually change.
1242# Use braces instead of parens because sh, perl, etc. also accept them.
1243# (The list follows the same order as the GNU Coding Standards.)
1244bindir='${exec_prefix}/bin'
1245sbindir='${exec_prefix}/sbin'
1246libexecdir='${exec_prefix}/libexec'
1247datarootdir='${prefix}/share'
1248datadir='${datarootdir}'
1249sysconfdir='${prefix}/etc'
1250sharedstatedir='${prefix}/com'
1251localstatedir='${prefix}/var'
1252runstatedir='${localstatedir}/run'
1253includedir='${prefix}/include'
1254oldincludedir='/usr/include'
1255docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1256infodir='${datarootdir}/info'
1257htmldir='${docdir}'
1258dvidir='${docdir}'
1259pdfdir='${docdir}'
1260psdir='${docdir}'
1261libdir='${exec_prefix}/lib'
1262localedir='${datarootdir}/locale'
1263mandir='${datarootdir}/man'
1264
1265ac_prev=
1266ac_dashdash=
1267for ac_option
1268do
1269 # If the previous option needs an argument, assign it.
1270 if test -n "$ac_prev"; then
1271 eval $ac_prev=\$ac_option
1272 ac_prev=
1273 continue
1274 fi
1275
1276 case $ac_option in
1277 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1278 *=) ac_optarg= ;;
1279 *) ac_optarg=yes ;;
1280 esac
1281
1282 # Accept the important Cygnus configure options, so we can diagnose typos.
1283
1284 case $ac_dashdash$ac_option in
1285 --)
1286 ac_dashdash=yes ;;
1287
1288 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1289 ac_prev=bindir ;;
1290 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1291 bindir=$ac_optarg ;;
1292
1293 -build | --build | --buil | --bui | --bu)
1294 ac_prev=build_alias ;;
1295 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1296 build_alias=$ac_optarg ;;
1297
1298 -cache-file | --cache-file | --cache-fil | --cache-fi \
1299 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1300 ac_prev=cache_file ;;
1301 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1302 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1303 cache_file=$ac_optarg ;;
1304
1305 --config-cache | -C)
1306 cache_file=config.cache ;;
1307
1308 -datadir | --datadir | --datadi | --datad)
1309 ac_prev=datadir ;;
1310 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1311 datadir=$ac_optarg ;;
1312
1313 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1314 | --dataroo | --dataro | --datar)
1315 ac_prev=datarootdir ;;
1316 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1317 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1318 datarootdir=$ac_optarg ;;
1319
1320 -disable-* | --disable-*)
1321 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324 as_fn_error $? "invalid feature name: $ac_useropt"
1325 ac_useropt_orig=$ac_useropt
1326 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327 case $ac_user_opts in
1328 *"
1329"enable_$ac_useropt"
1330"*) ;;
1331 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1332 ac_unrecognized_sep=', ';;
1333 esac
1334 eval enable_$ac_useropt=no ;;
1335
1336 -docdir | --docdir | --docdi | --doc | --do)
1337 ac_prev=docdir ;;
1338 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1339 docdir=$ac_optarg ;;
1340
1341 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1342 ac_prev=dvidir ;;
1343 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1344 dvidir=$ac_optarg ;;
1345
1346 -enable-* | --enable-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid feature name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1354 *"
1355"enable_$ac_useropt"
1356"*) ;;
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1359 esac
1360 eval enable_$ac_useropt=\$ac_optarg ;;
1361
1362 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1363 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1364 | --exec | --exe | --ex)
1365 ac_prev=exec_prefix ;;
1366 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1367 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1368 | --exec=* | --exe=* | --ex=*)
1369 exec_prefix=$ac_optarg ;;
1370
1371 -gas | --gas | --ga | --g)
1372 # Obsolete; use --with-gas.
1373 with_gas=yes ;;
1374
1375 -help | --help | --hel | --he | -h)
1376 ac_init_help=long ;;
1377 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1378 ac_init_help=recursive ;;
1379 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1380 ac_init_help=short ;;
1381
1382 -host | --host | --hos | --ho)
1383 ac_prev=host_alias ;;
1384 -host=* | --host=* | --hos=* | --ho=*)
1385 host_alias=$ac_optarg ;;
1386
1387 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1388 ac_prev=htmldir ;;
1389 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1390 | --ht=*)
1391 htmldir=$ac_optarg ;;
1392
1393 -includedir | --includedir | --includedi | --included | --include \
1394 | --includ | --inclu | --incl | --inc)
1395 ac_prev=includedir ;;
1396 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1397 | --includ=* | --inclu=* | --incl=* | --inc=*)
1398 includedir=$ac_optarg ;;
1399
1400 -infodir | --infodir | --infodi | --infod | --info | --inf)
1401 ac_prev=infodir ;;
1402 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1403 infodir=$ac_optarg ;;
1404
1405 -libdir | --libdir | --libdi | --libd)
1406 ac_prev=libdir ;;
1407 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1408 libdir=$ac_optarg ;;
1409
1410 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1411 | --libexe | --libex | --libe)
1412 ac_prev=libexecdir ;;
1413 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1414 | --libexe=* | --libex=* | --libe=*)
1415 libexecdir=$ac_optarg ;;
1416
1417 -localedir | --localedir | --localedi | --localed | --locale)
1418 ac_prev=localedir ;;
1419 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1420 localedir=$ac_optarg ;;
1421
1422 -localstatedir | --localstatedir | --localstatedi | --localstated \
1423 | --localstate | --localstat | --localsta | --localst | --locals)
1424 ac_prev=localstatedir ;;
1425 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1426 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1427 localstatedir=$ac_optarg ;;
1428
1429 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1430 ac_prev=mandir ;;
1431 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1432 mandir=$ac_optarg ;;
1433
1434 -nfp | --nfp | --nf)
1435 # Obsolete; use --without-fp.
1436 with_fp=no ;;
1437
1438 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1439 | --no-cr | --no-c | -n)
1440 no_create=yes ;;
1441
1442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1444 no_recursion=yes ;;
1445
1446 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1447 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1448 | --oldin | --oldi | --old | --ol | --o)
1449 ac_prev=oldincludedir ;;
1450 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1451 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1452 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1453 oldincludedir=$ac_optarg ;;
1454
1455 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1456 ac_prev=prefix ;;
1457 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1458 prefix=$ac_optarg ;;
1459
1460 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1461 | --program-pre | --program-pr | --program-p)
1462 ac_prev=program_prefix ;;
1463 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1464 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1465 program_prefix=$ac_optarg ;;
1466
1467 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1468 | --program-suf | --program-su | --program-s)
1469 ac_prev=program_suffix ;;
1470 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1471 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1472 program_suffix=$ac_optarg ;;
1473
1474 -program-transform-name | --program-transform-name \
1475 | --program-transform-nam | --program-transform-na \
1476 | --program-transform-n | --program-transform- \
1477 | --program-transform | --program-transfor \
1478 | --program-transfo | --program-transf \
1479 | --program-trans | --program-tran \
1480 | --progr-tra | --program-tr | --program-t)
1481 ac_prev=program_transform_name ;;
1482 -program-transform-name=* | --program-transform-name=* \
1483 | --program-transform-nam=* | --program-transform-na=* \
1484 | --program-transform-n=* | --program-transform-=* \
1485 | --program-transform=* | --program-transfor=* \
1486 | --program-transfo=* | --program-transf=* \
1487 | --program-trans=* | --program-tran=* \
1488 | --progr-tra=* | --program-tr=* | --program-t=*)
1489 program_transform_name=$ac_optarg ;;
1490
1491 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1492 ac_prev=pdfdir ;;
1493 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1494 pdfdir=$ac_optarg ;;
1495
1496 -psdir | --psdir | --psdi | --psd | --ps)
1497 ac_prev=psdir ;;
1498 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1499 psdir=$ac_optarg ;;
1500
1501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1502 | -silent | --silent | --silen | --sile | --sil)
1503 silent=yes ;;
1504
1505 -runstatedir | --runstatedir | --runstatedi | --runstated \
1506 | --runstate | --runstat | --runsta | --runst | --runs \
1507 | --run | --ru | --r)
1508 ac_prev=runstatedir ;;
1509 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1510 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1511 | --run=* | --ru=* | --r=*)
1512 runstatedir=$ac_optarg ;;
1513
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1515 ac_prev=sbindir ;;
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1517 | --sbi=* | --sb=*)
1518 sbindir=$ac_optarg ;;
1519
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1523 | --sha | --sh)
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1528 | --sha=* | --sh=*)
1529 sharedstatedir=$ac_optarg ;;
1530
1531 -site | --site | --sit)
1532 ac_prev=site ;;
1533 -site=* | --site=* | --sit=*)
1534 site=$ac_optarg ;;
1535
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537 ac_prev=srcdir ;;
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1540
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1547
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1552
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1554 verbose=yes ;;
1555
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1558
1559 -with-* | --with-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1563 as_fn_error $? "invalid package name: $ac_useropt"
1564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1567 *"
1568"with_$ac_useropt"
1569"*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval with_$ac_useropt=\$ac_optarg ;;
1574
1575 -without-* | --without-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1579 as_fn_error $? "invalid package name: $ac_useropt"
1580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=no ;;
1590
1591 --x)
1592 # Obsolete; use --with-x.
1593 with_x=yes ;;
1594
1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1596 | --x-incl | --x-inc | --x-in | --x-i)
1597 ac_prev=x_includes ;;
1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1600 x_includes=$ac_optarg ;;
1601
1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1604 ac_prev=x_libraries ;;
1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1607 x_libraries=$ac_optarg ;;
1608
1609 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1610Try \`$0 --help' for more information"
1611 ;;
1612
1613 *=*)
1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1615 # Reject names that are not valid shell variable names.
1616 case $ac_envvar in #(
1617 '' | [0-9]* | *[!_$as_cr_alnum]* )
1618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1619 esac
1620 eval $ac_envvar=\$ac_optarg
1621 export $ac_envvar ;;
1622
1623 *)
1624 # FIXME: should be removed in autoconf 3.0.
1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1629 ;;
1630
1631 esac
1632done
1633
1634if test -n "$ac_prev"; then
1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1636 as_fn_error $? "missing argument to $ac_option"
1637fi
1638
1639if test -n "$ac_unrecognized_opts"; then
1640 case $enable_option_checking in
1641 no) ;;
1642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 esac
1645fi
1646
1647# Check all directory arguments for consistency.
1648for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1649 datadir sysconfdir sharedstatedir localstatedir includedir \
1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1651 libdir localedir mandir runstatedir
1652do
1653 eval ac_val=\$$ac_var
1654 # Remove trailing slashes.
1655 case $ac_val in
1656 */ )
1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1658 eval $ac_var=\$ac_val;;
1659 esac
1660 # Be sure to have absolute directory names.
1661 case $ac_val in
1662 [\\/$]* | ?:[\\/]* ) continue;;
1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1664 esac
1665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1666done
1667
1668# There might be people who depend on the old broken behavior: `$host'
1669# used to hold the argument of --host etc.
1670# FIXME: To remove some day.
1671build=$build_alias
1672host=$host_alias
1673target=$target_alias
1674
1675# FIXME: To remove some day.
1676if test "x$host_alias" != x; then
1677 if test "x$build_alias" = x; then
1678 cross_compiling=maybe
1679 elif test "x$build_alias" != "x$host_alias"; then
1680 cross_compiling=yes
1681 fi
1682fi
1683
1684ac_tool_prefix=
1685test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686
1687test "$silent" = yes && exec 6>/dev/null
1688
1689
1690ac_pwd=`pwd` && test -n "$ac_pwd" &&
1691ac_ls_di=`ls -di .` &&
1692ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1693 as_fn_error $? "working directory cannot be determined"
1694test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1695 as_fn_error $? "pwd does not report name of working directory"
1696
1697
1698# Find the source files, if location was not specified.
1699if test -z "$srcdir"; then
1700 ac_srcdir_defaulted=yes
1701 # Try the directory containing this script, then the parent directory.
1702 ac_confdir=`$as_dirname -- "$as_myself" ||
1703$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1704 X"$as_myself" : 'X\(//\)[^/]' \| \
1705 X"$as_myself" : 'X\(//\)$' \| \
1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1707$as_echo X"$as_myself" |
1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)[^/].*/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\).*/{
1721 s//\1/
1722 q
1723 }
1724 s/.*/./; q'`
1725 srcdir=$ac_confdir
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727 srcdir=..
1728 fi
1729else
1730 ac_srcdir_defaulted=no
1731fi
1732if test ! -r "$srcdir/$ac_unique_file"; then
1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1735fi
1736ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737ac_abs_confdir=`(
1738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1739 pwd)`
1740# When building in place, set srcdir=.
1741if test "$ac_abs_confdir" = "$ac_pwd"; then
1742 srcdir=.
1743fi
1744# Remove unnecessary trailing slashes from srcdir.
1745# Double slashes in file names in object file debugging info
1746# mess up M-x gdb in Emacs.
1747case $srcdir in
1748*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1749esac
1750for ac_var in $ac_precious_vars; do
1751 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1752 eval ac_env_${ac_var}_value=\$${ac_var}
1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755done
1756
1757#
1758# Report the --help message.
1759#
1760if test "$ac_init_help" = "long"; then
1761 # Omit some internal or obsolete options to make the list less imposing.
1762 # This message is too long to be a string in the A/UX 3.1 sh.
1763 cat <<_ACEOF
1764\`configure' configures curl - to adapt to many kinds of systems.
1765
1766Usage: $0 [OPTION]... [VAR=VALUE]...
1767
1768To assign environment variables (e.g., CC, CFLAGS...), specify them as
1769VAR=VALUE. See below for descriptions of some of the useful variables.
1770
1771Defaults for the options are specified in brackets.
1772
1773Configuration:
1774 -h, --help display this help and exit
1775 --help=short display options specific to this package
1776 --help=recursive display the short help of all the included packages
1777 -V, --version display version information and exit
1778 -q, --quiet, --silent do not print \`checking ...' messages
1779 --cache-file=FILE cache test results in FILE [disabled]
1780 -C, --config-cache alias for \`--cache-file=config.cache'
1781 -n, --no-create do not create output files
1782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1783
1784Installation directories:
1785 --prefix=PREFIX install architecture-independent files in PREFIX
1786 [$ac_default_prefix]
1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1788 [PREFIX]
1789
1790By default, \`make install' will install all the files in
1791\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1792an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1793for instance \`--prefix=\$HOME'.
1794
1795For better control, use the options below.
1796
1797Fine tuning of the installation directories:
1798 --bindir=DIR user executables [EPREFIX/bin]
1799 --sbindir=DIR system admin executables [EPREFIX/sbin]
1800 --libexecdir=DIR program executables [EPREFIX/libexec]
1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1804 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1805 --libdir=DIR object code libraries [EPREFIX/lib]
1806 --includedir=DIR C header files [PREFIX/include]
1807 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1808 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1809 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1810 --infodir=DIR info documentation [DATAROOTDIR/info]
1811 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1812 --mandir=DIR man documentation [DATAROOTDIR/man]
1813 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1814 --htmldir=DIR html documentation [DOCDIR]
1815 --dvidir=DIR dvi documentation [DOCDIR]
1816 --pdfdir=DIR pdf documentation [DOCDIR]
1817 --psdir=DIR ps documentation [DOCDIR]
1818_ACEOF
1819
1820 cat <<\_ACEOF
1821
1822Program names:
1823 --program-prefix=PREFIX prepend PREFIX to installed program names
1824 --program-suffix=SUFFIX append SUFFIX to installed program names
1825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1826
1827System types:
1828 --build=BUILD configure for building on BUILD [guessed]
1829 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1830_ACEOF
1831fi
1832
1833if test -n "$ac_init_help"; then
1834 case $ac_init_help in
1835 short | recursive ) echo "Configuration of curl -:";;
1836 esac
1837 cat <<\_ACEOF
1838
1839Optional Features:
1840 --disable-option-checking ignore unrecognized --enable/--with options
1841 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1842 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1843 --enable-maintainer-mode
1844 enable make rules and dependencies not useful (and
1845 sometimes confusing) to the casual installer
1846 --enable-silent-rules less verbose build output (undo: "make V=1")
1847 --disable-silent-rules verbose build output (undo: "make V=0")
1848 --enable-debug Enable debug build options
1849 --disable-debug Disable debug build options
1850 --enable-optimize Enable compiler optimizations
1851 --disable-optimize Disable compiler optimizations
1852 --enable-warnings Enable strict compiler warnings
1853 --disable-warnings Disable strict compiler warnings
1854 --enable-werror Enable compiler warnings as errors
1855 --disable-werror Disable compiler warnings as errors
1856 --enable-curldebug Enable curl debug memory tracking
1857 --disable-curldebug Disable curl debug memory tracking
1858 --enable-symbol-hiding Enable hiding of library internal symbols
1859 --disable-symbol-hiding Disable hiding of library internal symbols
1860 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1861 --disable-hidden-symbols
1862 To be deprecated, use --disable-symbol-hiding
1863 --enable-ares[=PATH] Enable c-ares for DNS lookups
1864 --disable-ares Disable c-ares for DNS lookups
1865 --disable-rt disable dependency on -lrt
Haibo Huang51d9d882019-02-06 01:36:06 -08001866 --enable-code-coverage Provide code coverage
Elliott Hughes82be86d2017-09-20 17:00:17 -07001867 --enable-dependency-tracking
1868 do not reject slow dependency extractors
1869 --disable-dependency-tracking
1870 speeds up one-time build
1871 --disable-largefile omit support for large files
1872 --enable-shared[=PKGS] build shared libraries [default=yes]
1873 --enable-static[=PKGS] build static libraries [default=yes]
1874 --enable-fast-install[=PKGS]
1875 optimize for fast installation [default=yes]
1876 --disable-libtool-lock avoid locking (might break parallel builds)
1877 --enable-http Enable HTTP support
1878 --disable-http Disable HTTP support
1879 --enable-ftp Enable FTP support
1880 --disable-ftp Disable FTP support
1881 --enable-file Enable FILE support
1882 --disable-file Disable FILE support
1883 --enable-ldap Enable LDAP support
1884 --disable-ldap Disable LDAP support
1885 --enable-ldaps Enable LDAPS support
1886 --disable-ldaps Disable LDAPS support
1887 --enable-rtsp Enable RTSP support
1888 --disable-rtsp Disable RTSP support
1889 --enable-proxy Enable proxy support
1890 --disable-proxy Disable proxy support
1891 --enable-dict Enable DICT support
1892 --disable-dict Disable DICT support
1893 --enable-telnet Enable TELNET support
1894 --disable-telnet Disable TELNET support
1895 --enable-tftp Enable TFTP support
1896 --disable-tftp Disable TFTP support
1897 --enable-pop3 Enable POP3 support
1898 --disable-pop3 Disable POP3 support
1899 --enable-imap Enable IMAP support
1900 --disable-imap Disable IMAP support
1901 --enable-smb Enable SMB/CIFS support
1902 --disable-smb Disable SMB/CIFS support
1903 --enable-smtp Enable SMTP support
1904 --disable-smtp Disable SMTP support
1905 --enable-gopher Enable Gopher support
1906 --disable-gopher Disable Gopher support
1907 --enable-manual Enable built-in manual
1908 --disable-manual Disable built-in manual
1909 --enable-libcurl-option Enable --libcurl C code generation support
1910 --disable-libcurl-option
1911 Disable --libcurl C code generation support
1912 --enable-libgcc use libgcc when linking
1913 --enable-ipv6 Enable IPv6 (with IPv4) support
1914 --disable-ipv6 Disable IPv6 support
Elliott Hughesa93fb052018-12-12 14:22:48 -08001915 --enable-openssl-auto-load-config
1916 Enable automatic loading of OpenSSL configuration
1917 --disable-openssl-auto-load-config
1918 Disable automatic loading of OpenSSL configuration
Elliott Hughes82be86d2017-09-20 17:00:17 -07001919 --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
Haibo Huang65021c72019-03-27 15:37:23 -07001946 --enable-alt-svc Enable alt-svc support
1947 --disable-alt-svc Disable alt-svc support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001948
1949Optional Packages:
1950 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1951 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Elliott Hughes82be86d2017-09-20 17:00:17 -07001952 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1953 both]
1954 --with-aix-soname=aix|svr4|both
1955 shared library versioning (aka "SONAME") variant to
1956 provide on AIX, [default=aix].
1957 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1958 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1959 compiler's sysroot if not specified).
1960 --with-zlib=PATH search for zlib in PATH
1961 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001962 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1963 installation; when possible, set the PKG_CONFIG_PATH
1964 environment variable instead of using this option
1965 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001966 --with-ldap-lib=libname Specify name of ldap lib file
1967 --with-lber-lib=libname Specify name of lber lib file
1968 --with-gssapi-includes=DIR
1969 Specify location of GSS-API headers
1970 --with-gssapi-libs=DIR Specify location of GSS-API libs
1971 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001972 --with-default-ssl-backend=NAME
1973 Use NAME as default SSL backend
1974 --without-default-ssl-backend
1975 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001976 --with-winssl enable Windows native SSL/TLS
1977 --without-winssl disable Windows native SSL/TLS
Haibo Huang51d9d882019-02-06 01:36:06 -08001978 --with-schannel enable Windows native SSL/TLS
1979 --without-schannel disable Windows native SSL/TLS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001980 --with-darwinssl enable Apple OS native SSL/TLS
1981 --without-darwinssl disable Apple OS native SSL/TLS
Haibo Huang65021c72019-03-27 15:37:23 -07001982 --with-secure-transport enable Apple OS native SSL/TLS
1983 --without-secure-transport
1984 disable Apple OS native SSL/TLS
1985 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
1986 --without-amissl disable Amiga native SSL/TLS (AmiSSL)
Elliott Hughes82be86d2017-09-20 17:00:17 -07001987 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1988 installation (default: /usr/local/ssl); when
1989 possible, set the PKG_CONFIG_PATH environment
1990 variable instead of using this option
1991 --without-ssl disable OpenSSL
1992 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1993 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1994 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1995 installation root
1996 --without-gnutls disable GnuTLS detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07001997 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1998 installation root
1999 --without-mbedtls disable mbedTLS detection
2000 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
2001 installation root (default: system lib default)
2002 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07002003 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2004 installation root (default: system lib default)
2005 --without-wolfssl disable WolfSSL detection
Elliott Hughesa93fb052018-12-12 14:22:48 -08002006 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2007 installation root
2008 --without-mesalink disable MesaLink detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002009 --with-nss=PATH where to look for NSS, PATH points to the
2010 installation root
2011 --without-nss disable NSS detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002012 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2013 /etc/ca-bundle.crt)
2014 --without-ca-bundle Don't use a default CA bundle
2015 --with-ca-path=DIRECTORY
2016 Path to a directory containing CA certificates
2017 stored individually, with their filenames in a hash
2018 format. This option can be used with OpenSSL, GnuTLS
2019 and PolarSSL backends. Refer to OpenSSL c_rehash for
2020 details. (example: /etc/certificates)
2021 --without-ca-path Don't use a default CA path
2022 --with-ca-fallback Use the built in CA store of the SSL library
2023 --without-ca-fallback Don't use the built in CA store of the SSL library
2024 --without-libpsl disable support for libpsl cookie checking
2025 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2026 installation root
2027 --without-libmetalink disable libmetalink detection
2028 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2029 LIBSSH2 installation; when possible, set the
2030 PKG_CONFIG_PATH environment variable instead of
2031 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002032 --with-libssh2 enable LIBSSH2
2033 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2034 installation; when possible, set the PKG_CONFIG_PATH
2035 environment variable instead of using this option
2036 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002037 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2038 LIBRTMP installation; when possible, set the
2039 PKG_CONFIG_PATH environment variable instead of
2040 using this option
2041 --without-librtmp disable LIBRTMP
2042 --with-winidn=PATH enable Windows native IDN
2043 --without-winidn disable Windows native IDN
2044 --with-libidn2=PATH Enable libidn2 usage
2045 --without-libidn2 Disable libidn2 usage
2046 --with-nghttp2=PATH Enable nghttp2 usage
2047 --without-nghttp2 Disable nghttp2 usage
2048 --with-zsh-functions-dir=PATH
2049 Install zsh completions to PATH
2050 --without-zsh-functions-dir
2051 Do not install zsh completions
Haibo Huang65021c72019-03-27 15:37:23 -07002052 --with-fish-functions-dir=PATH
2053 Install fish completions to PATH
2054 --without-fish-functions-dir
2055 Do not install fish completions
Elliott Hughes82be86d2017-09-20 17:00:17 -07002056
2057Some influential environment variables:
2058 CC C compiler command
2059 CFLAGS C compiler flags
2060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2061 nonstandard directory <lib dir>
2062 LIBS libraries to pass to the linker, e.g. -l<library>
2063 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2064 you have headers in a nonstandard directory <include dir>
2065 CPP C preprocessor
2066 LT_SYS_LIBRARY_PATH
2067 User-defined run-time library search path.
2068
2069Use these variables to override the choices made by `configure' or to help
2070it to find libraries and programs with nonstandard names/locations.
2071
2072Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2073_ACEOF
2074ac_status=$?
2075fi
2076
2077if test "$ac_init_help" = "recursive"; then
2078 # If there are subdirs, report their specific --help.
2079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2080 test -d "$ac_dir" ||
2081 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2082 continue
2083 ac_builddir=.
2084
2085case "$ac_dir" in
2086.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2087*)
2088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2089 # A ".." for each directory in $ac_dir_suffix.
2090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2091 case $ac_top_builddir_sub in
2092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2094 esac ;;
2095esac
2096ac_abs_top_builddir=$ac_pwd
2097ac_abs_builddir=$ac_pwd$ac_dir_suffix
2098# for backward compatibility:
2099ac_top_builddir=$ac_top_build_prefix
2100
2101case $srcdir in
2102 .) # We are building in place.
2103 ac_srcdir=.
2104 ac_top_srcdir=$ac_top_builddir_sub
2105 ac_abs_top_srcdir=$ac_pwd ;;
2106 [\\/]* | ?:[\\/]* ) # Absolute name.
2107 ac_srcdir=$srcdir$ac_dir_suffix;
2108 ac_top_srcdir=$srcdir
2109 ac_abs_top_srcdir=$srcdir ;;
2110 *) # Relative name.
2111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2112 ac_top_srcdir=$ac_top_build_prefix$srcdir
2113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2114esac
2115ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2116
2117 cd "$ac_dir" || { ac_status=$?; continue; }
2118 # Check for guested configure.
2119 if test -f "$ac_srcdir/configure.gnu"; then
2120 echo &&
2121 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2122 elif test -f "$ac_srcdir/configure"; then
2123 echo &&
2124 $SHELL "$ac_srcdir/configure" --help=recursive
2125 else
2126 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2127 fi || ac_status=$?
2128 cd "$ac_pwd" || { ac_status=$?; break; }
2129 done
2130fi
2131
2132test -n "$ac_init_help" && exit $ac_status
2133if $ac_init_version; then
2134 cat <<\_ACEOF
2135curl configure -
2136generated by GNU Autoconf 2.69
2137
2138Copyright (C) 2012 Free Software Foundation, Inc.
2139This configure script is free software; the Free Software Foundation
2140gives unlimited permission to copy, distribute and modify it.
2141
Haibo Huang51d9d882019-02-06 01:36:06 -08002142Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
Elliott Hughes82be86d2017-09-20 17:00:17 -07002143This configure script may be copied, distributed and modified under the
2144terms of the curl license; see COPYING for more details
2145_ACEOF
2146 exit
2147fi
2148
2149## ------------------------ ##
2150## Autoconf initialization. ##
2151## ------------------------ ##
2152
2153# ac_fn_c_try_compile LINENO
2154# --------------------------
2155# Try to compile conftest.$ac_ext, and return whether this succeeded.
2156ac_fn_c_try_compile ()
2157{
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 rm -f conftest.$ac_objext
2160 if { { ac_try="$ac_compile"
2161case "(($ac_try" in
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2164esac
2165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166$as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_compile") 2>conftest.err
2168 ac_status=$?
2169 if test -s conftest.err; then
2170 grep -v '^ *+' conftest.err >conftest.er1
2171 cat conftest.er1 >&5
2172 mv -f conftest.er1 conftest.err
2173 fi
2174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2175 test $ac_status = 0; } && {
2176 test -z "$ac_c_werror_flag" ||
2177 test ! -s conftest.err
2178 } && test -s conftest.$ac_objext; then :
2179 ac_retval=0
2180else
2181 $as_echo "$as_me: failed program was:" >&5
2182sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 ac_retval=1
2185fi
2186 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 as_fn_set_status $ac_retval
2188
2189} # ac_fn_c_try_compile
2190
2191# ac_fn_c_try_cpp LINENO
2192# ----------------------
2193# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2194ac_fn_c_try_cpp ()
2195{
2196 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2197 if { { ac_try="$ac_cpp conftest.$ac_ext"
2198case "(($ac_try" in
2199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2200 *) ac_try_echo=$ac_try;;
2201esac
2202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2203$as_echo "$ac_try_echo"; } >&5
2204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2205 ac_status=$?
2206 if test -s conftest.err; then
2207 grep -v '^ *+' conftest.err >conftest.er1
2208 cat conftest.er1 >&5
2209 mv -f conftest.er1 conftest.err
2210 fi
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; } > conftest.i && {
2213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2214 test ! -s conftest.err
2215 }; then :
2216 ac_retval=0
2217else
2218 $as_echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221 ac_retval=1
2222fi
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224 as_fn_set_status $ac_retval
2225
2226} # ac_fn_c_try_cpp
2227
Alex Deymo486467e2017-12-19 19:04:07 +01002228# ac_fn_c_try_link LINENO
2229# -----------------------
2230# Try to link conftest.$ac_ext, and return whether this succeeded.
2231ac_fn_c_try_link ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 rm -f conftest.$ac_objext conftest$ac_exeext
2235 if { { ac_try="$ac_link"
2236case "(($ac_try" in
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2239esac
2240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241$as_echo "$ac_try_echo"; } >&5
2242 (eval "$ac_link") 2>conftest.err
2243 ac_status=$?
2244 if test -s conftest.err; then
2245 grep -v '^ *+' conftest.err >conftest.er1
2246 cat conftest.er1 >&5
2247 mv -f conftest.er1 conftest.err
2248 fi
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; } && {
2251 test -z "$ac_c_werror_flag" ||
2252 test ! -s conftest.err
2253 } && test -s conftest$ac_exeext && {
2254 test "$cross_compiling" = yes ||
2255 test -x conftest$ac_exeext
2256 }; then :
2257 ac_retval=0
2258else
2259 $as_echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262 ac_retval=1
2263fi
2264 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2265 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2266 # interfere with the next link command; also delete a directory that is
2267 # left behind by Apple's compiler. We do this before executing the actions.
2268 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 as_fn_set_status $ac_retval
2271
2272} # ac_fn_c_try_link
2273
Elliott Hughes82be86d2017-09-20 17:00:17 -07002274# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2275# -------------------------------------------------------
2276# Tests whether HEADER exists and can be compiled using the include files in
2277# INCLUDES, setting the cache variable VAR accordingly.
2278ac_fn_c_check_header_compile ()
2279{
2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282$as_echo_n "checking for $2... " >&6; }
2283if eval \${$3+:} false; then :
2284 $as_echo_n "(cached) " >&6
2285else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287/* end confdefs.h. */
2288$4
2289#include <$2>
2290_ACEOF
2291if ac_fn_c_try_compile "$LINENO"; then :
2292 eval "$3=yes"
2293else
2294 eval "$3=no"
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297fi
2298eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300$as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302
2303} # ac_fn_c_check_header_compile
2304
2305# ac_fn_c_try_run LINENO
2306# ----------------------
2307# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2308# that executables *can* be run.
2309ac_fn_c_try_run ()
2310{
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 if { { ac_try="$ac_link"
2313case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316esac
2317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318$as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_link") 2>&5
2320 ac_status=$?
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2323 { { case "(($ac_try" in
2324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2325 *) ac_try_echo=$ac_try;;
2326esac
2327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2328$as_echo "$ac_try_echo"; } >&5
2329 (eval "$ac_try") 2>&5
2330 ac_status=$?
2331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2332 test $ac_status = 0; }; }; then :
2333 ac_retval=0
2334else
2335 $as_echo "$as_me: program exited with status $ac_status" >&5
2336 $as_echo "$as_me: failed program was:" >&5
2337sed 's/^/| /' conftest.$ac_ext >&5
2338
2339 ac_retval=$ac_status
2340fi
2341 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2343 as_fn_set_status $ac_retval
2344
2345} # ac_fn_c_try_run
2346
Alex Deymo486467e2017-12-19 19:04:07 +01002347# ac_fn_c_check_func LINENO FUNC VAR
2348# ----------------------------------
2349# Tests whether FUNC exists, setting the cache variable VAR accordingly
2350ac_fn_c_check_func ()
2351{
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2354$as_echo_n "checking for $2... " >&6; }
2355if eval \${$3+:} false; then :
2356 $as_echo_n "(cached) " >&6
2357else
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359/* end confdefs.h. */
2360
2361#define $2 innocuous_$2
2362#ifdef __STDC__
2363# include <limits.h>
2364#else
2365# include <assert.h>
2366#endif
2367#undef $2
2368#ifdef __cplusplus
2369extern "C"
2370#endif
2371char $2 ();
2372#if defined __stub_$2 || defined __stub___$2
2373choke me
2374#endif
2375
2376int main (void)
2377{
2378return $2 ();
2379 ;
2380 return 0;
2381}
2382_ACEOF
2383if ac_fn_c_try_link "$LINENO"; then :
2384 eval "$3=yes"
2385else
2386 eval "$3=no"
2387fi
2388rm -f core conftest.err conftest.$ac_objext \
2389 conftest$ac_exeext conftest.$ac_ext
2390fi
2391eval ac_res=\$$3
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393$as_echo "$ac_res" >&6; }
2394 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2395
2396} # ac_fn_c_check_func
2397
2398# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2399# -------------------------------------------------------
2400# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2401# the include files in INCLUDES and setting the cache variable VAR
2402# accordingly.
2403ac_fn_c_check_header_mongrel ()
2404{
2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406 if eval \${$3+:} false; then :
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2408$as_echo_n "checking for $2... " >&6; }
2409if eval \${$3+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411fi
2412eval ac_res=\$$3
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414$as_echo "$ac_res" >&6; }
2415else
2416 # Is the header compilable?
2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2418$as_echo_n "checking $2 usability... " >&6; }
2419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420/* end confdefs.h. */
2421$4
2422#include <$2>
2423_ACEOF
2424if ac_fn_c_try_compile "$LINENO"; then :
2425 ac_header_compiler=yes
2426else
2427 ac_header_compiler=no
2428fi
2429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2431$as_echo "$ac_header_compiler" >&6; }
2432
2433# Is the header present?
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2435$as_echo_n "checking $2 presence... " >&6; }
2436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437/* end confdefs.h. */
2438#include <$2>
2439_ACEOF
2440if ac_fn_c_try_cpp "$LINENO"; then :
2441 ac_header_preproc=yes
2442else
2443 ac_header_preproc=no
2444fi
2445rm -f conftest.err conftest.i conftest.$ac_ext
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2447$as_echo "$ac_header_preproc" >&6; }
2448
2449# So? What about this header?
2450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2451 yes:no: )
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2453$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456 ;;
2457 no:yes:* )
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2459$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2461$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2463$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2465$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2467$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2468( $as_echo "## ----------------------------------------------------------------------- ##
2469## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2470## ----------------------------------------------------------------------- ##"
2471 ) | sed "s/^/$as_me: WARNING: /" >&2
2472 ;;
2473esac
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475$as_echo_n "checking for $2... " >&6; }
2476if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2478else
2479 eval "$3=\$ac_header_compiler"
2480fi
2481eval ac_res=\$$3
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2483$as_echo "$ac_res" >&6; }
2484fi
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486
2487} # ac_fn_c_check_header_mongrel
2488
Elliott Hughes82be86d2017-09-20 17:00:17 -07002489# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2490# -------------------------------------------
2491# Tests whether TYPE exists after having included INCLUDES, setting cache
2492# variable VAR accordingly.
2493ac_fn_c_check_type ()
2494{
2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2497$as_echo_n "checking for $2... " >&6; }
2498if eval \${$3+:} false; then :
2499 $as_echo_n "(cached) " >&6
2500else
2501 eval "$3=no"
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503/* end confdefs.h. */
2504$4
2505int main (void)
2506{
2507if (sizeof ($2))
2508 return 0;
2509 ;
2510 return 0;
2511}
2512_ACEOF
2513if ac_fn_c_try_compile "$LINENO"; then :
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515/* end confdefs.h. */
2516$4
2517int main (void)
2518{
2519if (sizeof (($2)))
2520 return 0;
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525if ac_fn_c_try_compile "$LINENO"; then :
2526
2527else
2528 eval "$3=yes"
2529fi
2530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531fi
2532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533fi
2534eval ac_res=\$$3
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536$as_echo "$ac_res" >&6; }
2537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538
2539} # ac_fn_c_check_type
2540
Elliott Hughes72d948d2018-08-03 14:37:21 -07002541# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2542# ---------------------------------------------
2543# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2544# accordingly.
2545ac_fn_c_check_decl ()
2546{
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 as_decl_name=`echo $2|sed 's/ *(.*//'`
2549 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2551$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2552if eval \${$3+:} false; then :
2553 $as_echo_n "(cached) " >&6
2554else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556/* end confdefs.h. */
2557$4
2558int main (void)
2559{
2560#ifndef $as_decl_name
2561#ifdef __cplusplus
2562 (void) $as_decl_use;
2563#else
2564 (void) $as_decl_name;
2565#endif
2566#endif
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572if ac_fn_c_try_compile "$LINENO"; then :
2573 eval "$3=yes"
2574else
2575 eval "$3=no"
2576fi
2577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578fi
2579eval ac_res=\$$3
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581$as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2583
2584} # ac_fn_c_check_decl
2585
Elliott Hughes82be86d2017-09-20 17:00:17 -07002586# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2587# ----------------------------------------------------
2588# Tries to find if the field MEMBER exists in type AGGR, after including
2589# INCLUDES, setting cache variable VAR accordingly.
2590ac_fn_c_check_member ()
2591{
2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2594$as_echo_n "checking for $2.$3... " >&6; }
2595if eval \${$4+:} false; then :
2596 $as_echo_n "(cached) " >&6
2597else
2598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599/* end confdefs.h. */
2600$5
2601int main (void)
2602{
2603static $2 ac_aggr;
2604if (ac_aggr.$3)
2605return 0;
2606 ;
2607 return 0;
2608}
2609_ACEOF
2610if ac_fn_c_try_compile "$LINENO"; then :
2611 eval "$4=yes"
2612else
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614/* end confdefs.h. */
2615$5
2616int main (void)
2617{
2618static $2 ac_aggr;
2619if (sizeof ac_aggr.$3)
2620return 0;
2621 ;
2622 return 0;
2623}
2624_ACEOF
2625if ac_fn_c_try_compile "$LINENO"; then :
2626 eval "$4=yes"
2627else
2628 eval "$4=no"
2629fi
2630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2631fi
2632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633fi
2634eval ac_res=\$$4
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2636$as_echo "$ac_res" >&6; }
2637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2638
2639} # ac_fn_c_check_member
2640cat >config.log <<_ACEOF
2641This file contains any messages produced by compilers while
2642running configure, to aid debugging if configure makes a mistake.
2643
2644It was created by curl $as_me -, which was
2645generated by GNU Autoconf 2.69. Invocation command line was
2646
2647 $ $0 $@
2648
2649_ACEOF
2650exec 5>>config.log
2651{
2652cat <<_ASUNAME
2653## --------- ##
2654## Platform. ##
2655## --------- ##
2656
2657hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2658uname -m = `(uname -m) 2>/dev/null || echo unknown`
2659uname -r = `(uname -r) 2>/dev/null || echo unknown`
2660uname -s = `(uname -s) 2>/dev/null || echo unknown`
2661uname -v = `(uname -v) 2>/dev/null || echo unknown`
2662
2663/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2664/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2665
2666/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2667/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2668/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2669/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2670/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2671/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2672/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2673
2674_ASUNAME
2675
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 $as_echo "PATH: $as_dir"
2682 done
2683IFS=$as_save_IFS
2684
2685} >&5
2686
2687cat >&5 <<_ACEOF
2688
2689
2690## ----------- ##
2691## Core tests. ##
2692## ----------- ##
2693
2694_ACEOF
2695
2696
2697# Keep a trace of the command line.
2698# Strip out --no-create and --no-recursion so they do not pile up.
2699# Strip out --silent because we don't want to record it for future runs.
2700# Also quote any args containing shell meta-characters.
2701# Make two passes to allow for proper duplicate-argument suppression.
2702ac_configure_args=
2703ac_configure_args0=
2704ac_configure_args1=
2705ac_must_keep_next=false
2706for ac_pass in 1 2
2707do
2708 for ac_arg
2709 do
2710 case $ac_arg in
2711 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2713 | -silent | --silent | --silen | --sile | --sil)
2714 continue ;;
2715 *\'*)
2716 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2717 esac
2718 case $ac_pass in
2719 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2720 2)
2721 as_fn_append ac_configure_args1 " '$ac_arg'"
2722 if test $ac_must_keep_next = true; then
2723 ac_must_keep_next=false # Got value, back to normal.
2724 else
2725 case $ac_arg in
2726 *=* | --config-cache | -C | -disable-* | --disable-* \
2727 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2728 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2729 | -with-* | --with-* | -without-* | --without-* | --x)
2730 case "$ac_configure_args0 " in
2731 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2732 esac
2733 ;;
2734 -* ) ac_must_keep_next=true ;;
2735 esac
2736 fi
2737 as_fn_append ac_configure_args " '$ac_arg'"
2738 ;;
2739 esac
2740 done
2741done
2742{ ac_configure_args0=; unset ac_configure_args0;}
2743{ ac_configure_args1=; unset ac_configure_args1;}
2744
2745# When interrupted or exit'd, cleanup temporary files, and complete
2746# config.log. We remove comments because anyway the quotes in there
2747# would cause problems or look ugly.
2748# WARNING: Use '\'' to represent an apostrophe within the trap.
2749# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2750trap 'exit_status=$?
2751 # Save into config.log some information that might help in debugging.
2752 {
2753 echo
2754
2755 $as_echo "## ---------------- ##
2756## Cache variables. ##
2757## ---------------- ##"
2758 echo
2759 # The following way of writing the cache mishandles newlines in values,
2760(
2761 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2762 eval ac_val=\$$ac_var
2763 case $ac_val in #(
2764 *${as_nl}*)
2765 case $ac_var in #(
2766 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2767$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2768 esac
2769 case $ac_var in #(
2770 _ | IFS | as_nl) ;; #(
2771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2772 *) { eval $ac_var=; unset $ac_var;} ;;
2773 esac ;;
2774 esac
2775 done
2776 (set) 2>&1 |
2777 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2778 *${as_nl}ac_space=\ *)
2779 sed -n \
2780 "s/'\''/'\''\\\\'\'''\''/g;
2781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2782 ;; #(
2783 *)
2784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2785 ;;
2786 esac |
2787 sort
2788)
2789 echo
2790
2791 $as_echo "## ----------------- ##
2792## Output variables. ##
2793## ----------------- ##"
2794 echo
2795 for ac_var in $ac_subst_vars
2796 do
2797 eval ac_val=\$$ac_var
2798 case $ac_val in
2799 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2800 esac
2801 $as_echo "$ac_var='\''$ac_val'\''"
2802 done | sort
2803 echo
2804
2805 if test -n "$ac_subst_files"; then
2806 $as_echo "## ------------------- ##
2807## File substitutions. ##
2808## ------------------- ##"
2809 echo
2810 for ac_var in $ac_subst_files
2811 do
2812 eval ac_val=\$$ac_var
2813 case $ac_val in
2814 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2815 esac
2816 $as_echo "$ac_var='\''$ac_val'\''"
2817 done | sort
2818 echo
2819 fi
2820
2821 if test -s confdefs.h; then
2822 $as_echo "## ----------- ##
2823## confdefs.h. ##
2824## ----------- ##"
2825 echo
2826 cat confdefs.h
2827 echo
2828 fi
2829 test "$ac_signal" != 0 &&
2830 $as_echo "$as_me: caught signal $ac_signal"
2831 $as_echo "$as_me: exit $exit_status"
2832 } >&5
2833 rm -f core *.core core.conftest.* &&
2834 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2835 exit $exit_status
2836' 0
2837for ac_signal in 1 2 13 15; do
2838 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2839done
2840ac_signal=0
2841
2842# confdefs.h avoids OS command line length limits that DEFS can exceed.
2843rm -f -r conftest* confdefs.h
2844
2845$as_echo "/* confdefs.h */" > confdefs.h
2846
2847# Predefined preprocessor variables.
2848
2849cat >>confdefs.h <<_ACEOF
2850#define PACKAGE_NAME "$PACKAGE_NAME"
2851_ACEOF
2852
2853cat >>confdefs.h <<_ACEOF
2854#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2855_ACEOF
2856
2857cat >>confdefs.h <<_ACEOF
2858#define PACKAGE_VERSION "$PACKAGE_VERSION"
2859_ACEOF
2860
2861cat >>confdefs.h <<_ACEOF
2862#define PACKAGE_STRING "$PACKAGE_STRING"
2863_ACEOF
2864
2865cat >>confdefs.h <<_ACEOF
2866#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2867_ACEOF
2868
2869cat >>confdefs.h <<_ACEOF
2870#define PACKAGE_URL "$PACKAGE_URL"
2871_ACEOF
2872
2873
2874# Let the site file select an alternate cache file if it wants to.
2875# Prefer an explicitly selected file to automatically selected ones.
2876ac_site_file1=NONE
2877ac_site_file2=NONE
2878if test -n "$CONFIG_SITE"; then
2879 # We do not want a PATH search for config.site.
2880 case $CONFIG_SITE in #((
2881 -*) ac_site_file1=./$CONFIG_SITE;;
2882 */*) ac_site_file1=$CONFIG_SITE;;
2883 *) ac_site_file1=./$CONFIG_SITE;;
2884 esac
2885elif test "x$prefix" != xNONE; then
2886 ac_site_file1=$prefix/share/config.site
2887 ac_site_file2=$prefix/etc/config.site
2888else
2889 ac_site_file1=$ac_default_prefix/share/config.site
2890 ac_site_file2=$ac_default_prefix/etc/config.site
2891fi
2892for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2893do
2894 test "x$ac_site_file" = xNONE && continue
2895 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2897$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2898 sed 's/^/| /' "$ac_site_file" >&5
2899 . "$ac_site_file" \
2900 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2902as_fn_error $? "failed to load site script $ac_site_file
2903See \`config.log' for more details" "$LINENO" 5; }
2904 fi
2905done
2906
2907if test -r "$cache_file"; then
2908 # Some versions of bash will fail to source /dev/null (special files
2909 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2910 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2912$as_echo "$as_me: loading cache $cache_file" >&6;}
2913 case $cache_file in
2914 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2915 *) . "./$cache_file";;
2916 esac
2917 fi
2918else
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2920$as_echo "$as_me: creating cache $cache_file" >&6;}
2921 >$cache_file
2922fi
2923
2924# Check that the precious variables saved in the cache have kept the same
2925# value.
2926ac_cache_corrupted=false
2927for ac_var in $ac_precious_vars; do
2928 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2929 eval ac_new_set=\$ac_env_${ac_var}_set
2930 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2931 eval ac_new_val=\$ac_env_${ac_var}_value
2932 case $ac_old_set,$ac_new_set in
2933 set,)
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2935$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2936 ac_cache_corrupted=: ;;
2937 ,set)
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2939$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2940 ac_cache_corrupted=: ;;
2941 ,);;
2942 *)
2943 if test "x$ac_old_val" != "x$ac_new_val"; then
2944 # differences in whitespace do not lead to failure.
2945 ac_old_val_w=`echo x $ac_old_val`
2946 ac_new_val_w=`echo x $ac_new_val`
2947 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2949$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2950 ac_cache_corrupted=:
2951 else
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2953$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2954 eval $ac_var=\$ac_old_val
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2957$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2959$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2960 fi;;
2961 esac
2962 # Pass precious variables to config.status.
2963 if test "$ac_new_set" = set; then
2964 case $ac_new_val in
2965 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2966 *) ac_arg=$ac_var=$ac_new_val ;;
2967 esac
2968 case " $ac_configure_args " in
2969 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2970 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2971 esac
2972 fi
2973done
2974if $ac_cache_corrupted; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2978$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2979 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2980fi
2981## -------------------- ##
2982## Main body of script. ##
2983## -------------------- ##
2984
2985ac_ext=c
2986ac_cpp='$CPP $CPPFLAGS'
2987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990
2991
2992
2993
2994
2995
2996
2997# using curl-override.m4
2998
2999
3000
3001
3002
3003ac_config_headers="$ac_config_headers lib/curl_config.h"
3004
3005
3006
3007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3008$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3009 # Check whether --enable-maintainer-mode was given.
3010if test "${enable_maintainer_mode+set}" = set; then :
3011 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3012else
3013 USE_MAINTAINER_MODE=no
3014fi
3015
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3017$as_echo "$USE_MAINTAINER_MODE" >&6; }
3018 if test $USE_MAINTAINER_MODE = yes; then
3019 MAINTAINER_MODE_TRUE=
3020 MAINTAINER_MODE_FALSE='#'
3021else
3022 MAINTAINER_MODE_TRUE='#'
3023 MAINTAINER_MODE_FALSE=
3024fi
3025
3026 MAINT=$MAINTAINER_MODE_TRUE
3027
3028
3029# Check whether --enable-silent-rules was given.
3030if test "${enable_silent_rules+set}" = set; then :
3031 enableval=$enable_silent_rules;
3032fi
3033
3034case $enable_silent_rules in # (((
3035 yes) AM_DEFAULT_VERBOSITY=0;;
3036 no) AM_DEFAULT_VERBOSITY=1;;
3037 *) AM_DEFAULT_VERBOSITY=0;;
3038esac
3039am_make=${MAKE-make}
3040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3041$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3042if ${am_cv_make_support_nested_variables+:} false; then :
3043 $as_echo_n "(cached) " >&6
3044else
3045 if $as_echo 'TRUE=$(BAR$(V))
3046BAR0=false
3047BAR1=true
3048V=1
3049am__doit:
3050 @$(TRUE)
3051.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3052 am_cv_make_support_nested_variables=yes
3053else
3054 am_cv_make_support_nested_variables=no
3055fi
3056fi
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3058$as_echo "$am_cv_make_support_nested_variables" >&6; }
3059if test $am_cv_make_support_nested_variables = yes; then
3060 AM_V='$(V)'
3061 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3062else
3063 AM_V=$AM_DEFAULT_VERBOSITY
3064 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3065fi
3066AM_BACKSLASH='\'
3067
3068
3069
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3071$as_echo_n "checking whether to enable debug build options... " >&6; }
3072 OPT_DEBUG_BUILD="default"
3073 # Check whether --enable-debug was given.
3074if test "${enable_debug+set}" = set; then :
3075 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3076fi
3077
3078 case "$OPT_DEBUG_BUILD" in
3079 no)
3080 want_debug="no"
3081 ;;
3082 default)
3083 want_debug="no"
3084 ;;
3085 *)
3086 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003087
3088$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3089
Elliott Hughes82be86d2017-09-20 17:00:17 -07003090 ;;
3091 esac
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3093$as_echo "$want_debug" >&6; }
3094
3095
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3097$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3098 OPT_COMPILER_OPTIMIZE="default"
3099 # Check whether --enable-optimize was given.
3100if test "${enable_optimize+set}" = set; then :
3101 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3102fi
3103
3104 case "$OPT_COMPILER_OPTIMIZE" in
3105 no)
3106 want_optimize="no"
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108$as_echo "no" >&6; }
3109 ;;
3110 default)
3111 if test "$want_debug" = "yes"; then
3112 want_optimize="assume_no"
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3114$as_echo "(assumed) no" >&6; }
3115 else
3116 want_optimize="assume_yes"
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3118$as_echo "(assumed) yes" >&6; }
3119 fi
3120 ;;
3121 *)
3122 want_optimize="yes"
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3124$as_echo "yes" >&6; }
3125 ;;
3126 esac
3127
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3130$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3131 OPT_COMPILER_WARNINGS="default"
3132 # Check whether --enable-warnings was given.
3133if test "${enable_warnings+set}" = set; then :
3134 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3135fi
3136
3137 case "$OPT_COMPILER_WARNINGS" in
3138 no)
3139 want_warnings="no"
3140 ;;
3141 default)
3142 want_warnings="$want_debug"
3143 ;;
3144 *)
3145 want_warnings="yes"
3146 ;;
3147 esac
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3149$as_echo "$want_warnings" >&6; }
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3153$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3154 OPT_COMPILER_WERROR="default"
3155 # Check whether --enable-werror was given.
3156if test "${enable_werror+set}" = set; then :
3157 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3158fi
3159
3160 case "$OPT_COMPILER_WERROR" in
3161 no)
3162 want_werror="no"
3163 ;;
3164 default)
3165 want_werror="no"
3166 ;;
3167 *)
3168 want_werror="yes"
3169 ;;
3170 esac
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3172$as_echo "$want_werror" >&6; }
3173
3174
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3176$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3177 OPT_CURLDEBUG_BUILD="default"
3178 # Check whether --enable-curldebug was given.
3179if test "${enable_curldebug+set}" = set; then :
3180 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3181fi
3182
3183 case "$OPT_CURLDEBUG_BUILD" in
3184 no)
3185 want_curldebug="no"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188 ;;
3189 default)
3190 if test "$want_debug" = "yes"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3192$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003193
3194$as_echo "#define CURLDEBUG 1" >>confdefs.h
3195
Elliott Hughes82be86d2017-09-20 17:00:17 -07003196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199 fi
3200 want_curldebug_assumed="yes"
3201 want_curldebug="$want_debug"
3202 ;;
3203 *)
3204 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003205
3206$as_echo "#define CURLDEBUG 1" >>confdefs.h
3207
Elliott Hughes82be86d2017-09-20 17:00:17 -07003208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209$as_echo "yes" >&6; }
3210 ;;
3211 esac
3212
3213
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3215$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3216 OPT_SYMBOL_HIDING="default"
3217 # Check whether --enable-symbol-hiding was given.
3218if test "${enable_symbol_hiding+set}" = set; then :
3219 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3220fi
3221
3222 # Check whether --enable-hidden-symbols was given.
3223if test "${enable_hidden_symbols+set}" = set; then :
3224 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3225fi
3226
3227 case "$OPT_SYMBOL_HIDING" in
3228 no)
3229 want_symbol_hiding="no"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231$as_echo "no" >&6; }
3232 ;;
3233 default)
3234 want_symbol_hiding="yes"
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236$as_echo "yes" >&6; }
3237 ;;
3238 *)
3239 want_symbol_hiding="yes"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 ;;
3243 esac
3244
3245
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3247$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3248 OPT_ARES="default"
3249 # Check whether --enable-ares was given.
3250if test "${enable_ares+set}" = set; then :
3251 enableval=$enable_ares; OPT_ARES=$enableval
3252fi
3253
3254 case "$OPT_ARES" in
3255 no)
3256 want_ares="no"
3257 ;;
3258 default)
3259 want_ares="no"
3260 ;;
3261 *)
3262 want_ares="yes"
3263 if test -n "$enableval" && test "$enableval" != "yes"; then
3264 want_ares_path="$enableval"
3265 fi
3266 ;;
3267 esac
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3269$as_echo "$want_ares" >&6; }
3270
3271
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3273$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3274 OPT_RT="default"
3275 # Check whether --enable-rt was given.
3276if test "${enable_rt+set}" = set; then :
3277 enableval=$enable_rt; OPT_RT=$enableval
3278fi
3279
3280 case "$OPT_RT" in
3281 no)
3282 dontwant_rt="yes"
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3284$as_echo "yes" >&6; }
3285 ;;
3286 default)
3287 dontwant_rt="no"
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3289$as_echo "(assumed no)" >&6; }
3290 ;;
3291 *)
3292 dontwant_rt="no"
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295 ;;
3296 esac
3297
3298
3299#
3300# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3301#
3302
3303if test -z "$xc_configure_preamble_result"; then
3304 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3305fi
3306
3307#
3308# Check that 'PATH_SEPARATOR' has already been set.
3309#
3310
3311if test -z "$xc_PATH_SEPARATOR"; then
3312 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3313fi
3314if test -z "$PATH_SEPARATOR"; then
3315 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3316fi
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3318$as_echo_n "checking for path separator... " >&6; }
3319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3320$as_echo "$PATH_SEPARATOR" >&6; }
3321if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3323$as_echo_n "checking for initial path separator... " >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3325$as_echo "$xc_PATH_SEPARATOR" >&6; }
3326 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3327fi
3328
Elliott Hughes82be86d2017-09-20 17:00:17 -07003329
3330#
3331# save the configure arguments
3332#
3333CONFIGURE_OPTIONS="\"$ac_configure_args\""
3334
3335
3336CURL_CFLAG_EXTRAS=""
3337if test X"$want_werror" = Xyes; then
3338 CURL_CFLAG_EXTRAS="-Werror"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -07003339 if test "$compiler_id" = "GNU_C"; then
3340 if test "$compiler_num" -ge "500"; then
3341 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3342 fi
3343 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -07003344fi
3345
3346
3347if test -z "$SED"; then
3348 # Extract the first word of "sed", so it can be a program name with args.
3349set dummy sed; ac_word=$2
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3351$as_echo_n "checking for $ac_word... " >&6; }
3352if ${ac_cv_path_SED+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354else
3355 case $SED in
3356 [\\/]* | ?:[\\/]*)
3357 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3358 ;;
3359 *)
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361as_dummy="$PATH:/usr/bin:/usr/local/bin"
3362for as_dir in $as_dummy
3363do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372done
3373 done
3374IFS=$as_save_IFS
3375
3376 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3377 ;;
3378esac
3379fi
3380SED=$ac_cv_path_SED
3381if test -n "$SED"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3383$as_echo "$SED" >&6; }
3384else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386$as_echo "no" >&6; }
3387fi
3388
3389
3390 if test -z "$SED" || test "$SED" = "not_found"; then
3391 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3392 fi
3393fi
3394
3395
3396if test -z "$GREP"; then
3397 # Extract the first word of "grep", so it can be a program name with args.
3398set dummy grep; ac_word=$2
3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400$as_echo_n "checking for $ac_word... " >&6; }
3401if ${ac_cv_path_GREP+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403else
3404 case $GREP in
3405 [\\/]* | ?:[\\/]*)
3406 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3407 ;;
3408 *)
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410as_dummy="$PATH:/usr/bin:/usr/local/bin"
3411for as_dir in $as_dummy
3412do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421done
3422 done
3423IFS=$as_save_IFS
3424
3425 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3426 ;;
3427esac
3428fi
3429GREP=$ac_cv_path_GREP
3430if test -n "$GREP"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3432$as_echo "$GREP" >&6; }
3433else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435$as_echo "no" >&6; }
3436fi
3437
3438
3439 if test -z "$GREP" || test "$GREP" = "not_found"; then
3440 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3441 fi
3442fi
3443
3444
3445if test -z "$EGREP"; then
3446 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3448$as_echo_n "checking for egrep... " >&6; }
3449 EGREP="$GREP -E"
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3451$as_echo "$EGREP" >&6; }
3452 else
3453 # Extract the first word of "egrep", so it can be a program name with args.
3454set dummy egrep; ac_word=$2
3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456$as_echo_n "checking for $ac_word... " >&6; }
3457if ${ac_cv_path_EGREP+:} false; then :
3458 $as_echo_n "(cached) " >&6
3459else
3460 case $EGREP in
3461 [\\/]* | ?:[\\/]*)
3462 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3463 ;;
3464 *)
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466as_dummy="$PATH:/usr/bin:/usr/local/bin"
3467for as_dir in $as_dummy
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3473 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477done
3478 done
3479IFS=$as_save_IFS
3480
3481 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3482 ;;
3483esac
3484fi
3485EGREP=$ac_cv_path_EGREP
3486if test -n "$EGREP"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3488$as_echo "$EGREP" >&6; }
3489else
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492fi
3493
3494
3495 fi
3496fi
3497if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3498 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3499fi
3500
3501
3502if test -z "$AR"; then
3503 if test -n "$ac_tool_prefix"; then
3504 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3505set dummy ${ac_tool_prefix}ar; ac_word=$2
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3507$as_echo_n "checking for $ac_word... " >&6; }
3508if ${ac_cv_path_AR+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510else
3511 case $AR in
3512 [\\/]* | ?:[\\/]*)
3513 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3514 ;;
3515 *)
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517as_dummy="$PATH:/usr/bin:/usr/local/bin"
3518for as_dir in $as_dummy
3519do
3520 IFS=$as_save_IFS
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 break 2
3527 fi
3528done
3529 done
3530IFS=$as_save_IFS
3531
3532 ;;
3533esac
3534fi
3535AR=$ac_cv_path_AR
3536if test -n "$AR"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3538$as_echo "$AR" >&6; }
3539else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541$as_echo "no" >&6; }
3542fi
3543
3544
3545fi
3546if test -z "$ac_cv_path_AR"; then
3547 ac_pt_AR=$AR
3548 # Extract the first word of "ar", so it can be a program name with args.
3549set dummy ar; ac_word=$2
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551$as_echo_n "checking for $ac_word... " >&6; }
3552if ${ac_cv_path_ac_pt_AR+:} false; then :
3553 $as_echo_n "(cached) " >&6
3554else
3555 case $ac_pt_AR in
3556 [\\/]* | ?:[\\/]*)
3557 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3558 ;;
3559 *)
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561as_dummy="$PATH:/usr/bin:/usr/local/bin"
3562for as_dir in $as_dummy
3563do
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572done
3573 done
3574IFS=$as_save_IFS
3575
3576 ;;
3577esac
3578fi
3579ac_pt_AR=$ac_cv_path_ac_pt_AR
3580if test -n "$ac_pt_AR"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3582$as_echo "$ac_pt_AR" >&6; }
3583else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585$as_echo "no" >&6; }
3586fi
3587
3588 if test "x$ac_pt_AR" = x; then
3589 AR="not_found"
3590 else
3591 case $cross_compiling:$ac_tool_warned in
3592yes:)
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3595ac_tool_warned=yes ;;
3596esac
3597 AR=$ac_pt_AR
3598 fi
3599else
3600 AR="$ac_cv_path_AR"
3601fi
3602
3603 if test -z "$AR" || test "$AR" = "not_found"; then
3604 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3605 fi
3606fi
3607
3608
3609
3610
3611CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3612
3613 xc_prog_cc_prev_IFS=$IFS
3614 xc_prog_cc_prev_LIBS=$LIBS
3615 xc_prog_cc_prev_CFLAGS=$CFLAGS
3616 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3617 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3618
3619
3620
3621 xc_bad_var_libs=no
3622 for xc_word in $LIBS; do
3623 case "$xc_word" in
3624 -l* | --library=*)
3625 :
3626 ;;
3627 *)
3628 xc_bad_var_libs=yes
3629 ;;
3630 esac
3631 done
3632 if test $xc_bad_var_libs = yes; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3634$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3636$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3637 fi
3638
3639
3640 xc_bad_var_ldflags=no
3641 for xc_word in $LDFLAGS; do
3642 case "$xc_word" in
3643 -D*)
3644 xc_bad_var_ldflags=yes
3645 ;;
3646 -U*)
3647 xc_bad_var_ldflags=yes
3648 ;;
3649 -I*)
3650 xc_bad_var_ldflags=yes
3651 ;;
3652 -l* | --library=*)
3653 xc_bad_var_ldflags=yes
3654 ;;
3655 esac
3656 done
3657 if test $xc_bad_var_ldflags = yes; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3659$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3660 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3661 for xc_word in $LDFLAGS; do
3662 case "$xc_word" in
3663 -D*)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3665$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3666 ;;
3667 -U*)
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3669$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3670 ;;
3671 -I*)
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3673$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3674 ;;
3675 -l* | --library=*)
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3677$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3678 ;;
3679 esac
3680 done
3681 fi
3682
3683
3684 xc_bad_var_cppflags=no
3685 for xc_word in $CPPFLAGS; do
3686 case "$xc_word" in
3687 -rpath*)
3688 xc_bad_var_cppflags=yes
3689 ;;
3690 -L* | --library-path=*)
3691 xc_bad_var_cppflags=yes
3692 ;;
3693 -l* | --library=*)
3694 xc_bad_var_cppflags=yes
3695 ;;
3696 esac
3697 done
3698 if test $xc_bad_var_cppflags = yes; then
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3700$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3701 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3702 for xc_word in $CPPFLAGS; do
3703 case "$xc_word" in
3704 -rpath*)
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3706$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3707 ;;
3708 -L* | --library-path=*)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3710$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3711 ;;
3712 -l* | --library=*)
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3714$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3715 ;;
3716 esac
3717 done
3718 fi
3719
3720
3721 xc_bad_var_cflags=no
3722 for xc_word in $CFLAGS; do
3723 case "$xc_word" in
3724 -D*)
3725 xc_bad_var_cflags=yes
3726 ;;
3727 -U*)
3728 xc_bad_var_cflags=yes
3729 ;;
3730 -I*)
3731 xc_bad_var_cflags=yes
3732 ;;
3733 -rpath*)
3734 xc_bad_var_cflags=yes
3735 ;;
3736 -L* | --library-path=*)
3737 xc_bad_var_cflags=yes
3738 ;;
3739 -l* | --library=*)
3740 xc_bad_var_cflags=yes
3741 ;;
3742 esac
3743 done
3744 if test $xc_bad_var_cflags = yes; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3746$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3747 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3748 for xc_word in $CFLAGS; do
3749 case "$xc_word" in
3750 -D*)
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3752$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3753 ;;
3754 -U*)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3756$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3757 ;;
3758 -I*)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3760$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3761 ;;
3762 -rpath*)
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3764$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3765 ;;
3766 -L* | --library-path=*)
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3768$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3769 ;;
3770 -l* | --library=*)
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3772$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3773 ;;
3774 esac
3775 done
3776 fi
3777
3778 if test $xc_bad_var_libs = yes ||
3779 test $xc_bad_var_cflags = yes ||
3780 test $xc_bad_var_ldflags = yes ||
3781 test $xc_bad_var_cppflags = yes; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3783$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3784 fi
3785
3786ac_aux_dir=
3787for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3788 if test -f "$ac_dir/install-sh"; then
3789 ac_aux_dir=$ac_dir
3790 ac_install_sh="$ac_aux_dir/install-sh -c"
3791 break
3792 elif test -f "$ac_dir/install.sh"; then
3793 ac_aux_dir=$ac_dir
3794 ac_install_sh="$ac_aux_dir/install.sh -c"
3795 break
3796 elif test -f "$ac_dir/shtool"; then
3797 ac_aux_dir=$ac_dir
3798 ac_install_sh="$ac_aux_dir/shtool install -c"
3799 break
3800 fi
3801done
3802if test -z "$ac_aux_dir"; then
3803 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3804fi
3805
3806# These three variables are undocumented and unsupported,
3807# and are intended to be withdrawn in a future Autoconf release.
3808# They can cause serious problems if a builder's source tree is in a directory
3809# whose full name contains unusual characters.
3810ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3811ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3812ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3813
3814
3815# Find a good install program. We prefer a C program (faster),
3816# so one script is as good as another. But avoid the broken or
3817# incompatible versions:
3818# SysV /etc/install, /usr/sbin/install
3819# SunOS /usr/etc/install
3820# IRIX /sbin/install
3821# AIX /bin/install
3822# AmigaOS /C/install, which installs bootblocks on floppy discs
3823# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3824# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3825# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3826# OS/2's system install, which has a completely different semantic
3827# ./install, which can be erroneously created by make from ./install.sh.
3828# Reject install programs that cannot install multiple files.
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3830$as_echo_n "checking for a BSD-compatible install... " >&6; }
3831if test -z "$INSTALL"; then
3832if ${ac_cv_path_install+:} false; then :
3833 $as_echo_n "(cached) " >&6
3834else
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
3840 # Account for people who put trailing slashes in PATH elements.
3841case $as_dir/ in #((
3842 ./ | .// | /[cC]/* | \
3843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3844 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3845 /usr/ucb/* ) ;;
3846 *)
3847 # OSF1 and SCO ODT 3.0 have their own names for install.
3848 # Don't use installbsd from OSF since it installs stuff as root
3849 # by default.
3850 for ac_prog in ginstall scoinst install; do
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3853 if test $ac_prog = install &&
3854 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3855 # AIX install. It has an incompatible calling convention.
3856 :
3857 elif test $ac_prog = install &&
3858 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3859 # program-specific install script used by HP pwplus--don't use.
3860 :
3861 else
3862 rm -rf conftest.one conftest.two conftest.dir
3863 echo one > conftest.one
3864 echo two > conftest.two
3865 mkdir conftest.dir
3866 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3867 test -s conftest.one && test -s conftest.two &&
3868 test -s conftest.dir/conftest.one &&
3869 test -s conftest.dir/conftest.two
3870 then
3871 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3872 break 3
3873 fi
3874 fi
3875 fi
3876 done
3877 done
3878 ;;
3879esac
3880
3881 done
3882IFS=$as_save_IFS
3883
3884rm -rf conftest.one conftest.two conftest.dir
3885
3886fi
3887 if test "${ac_cv_path_install+set}" = set; then
3888 INSTALL=$ac_cv_path_install
3889 else
3890 # As a last resort, use the slow shell script. Don't cache a
3891 # value for INSTALL within a source directory, because that will
3892 # break other packages using the cache if that directory is
3893 # removed, or if the value is a relative name.
3894 INSTALL=$ac_install_sh
3895 fi
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3898$as_echo "$INSTALL" >&6; }
3899
3900# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3901# It thinks the first close brace ends the variable substitution.
3902test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3903
3904test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3905
3906test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3907
3908# Expand $ac_aux_dir to an absolute path.
3909am_aux_dir=`cd "$ac_aux_dir" && pwd`
3910
3911ac_ext=c
3912ac_cpp='$CPP $CPPFLAGS'
3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3918set dummy ${ac_tool_prefix}gcc; ac_word=$2
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920$as_echo_n "checking for $ac_word... " >&6; }
3921if ${ac_cv_prog_CC+:} false; then :
3922 $as_echo_n "(cached) " >&6
3923else
3924 if test -n "$CC"; then
3925 ac_cv_prog_CC="$CC" # Let the user override the test.
3926else
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3934 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936 break 2
3937 fi
3938done
3939 done
3940IFS=$as_save_IFS
3941
3942fi
3943fi
3944CC=$ac_cv_prog_CC
3945if test -n "$CC"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3947$as_echo "$CC" >&6; }
3948else
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950$as_echo "no" >&6; }
3951fi
3952
3953
3954fi
3955if test -z "$ac_cv_prog_CC"; then
3956 ac_ct_CC=$CC
3957 # Extract the first word of "gcc", so it can be a program name with args.
3958set dummy gcc; ac_word=$2
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960$as_echo_n "checking for $ac_word... " >&6; }
3961if ${ac_cv_prog_ac_ct_CC+:} false; then :
3962 $as_echo_n "(cached) " >&6
3963else
3964 if test -n "$ac_ct_CC"; then
3965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3966else
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3974 ac_cv_prog_ac_ct_CC="gcc"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 break 2
3977 fi
3978done
3979 done
3980IFS=$as_save_IFS
3981
3982fi
3983fi
3984ac_ct_CC=$ac_cv_prog_ac_ct_CC
3985if test -n "$ac_ct_CC"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3987$as_echo "$ac_ct_CC" >&6; }
3988else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990$as_echo "no" >&6; }
3991fi
3992
3993 if test "x$ac_ct_CC" = x; then
3994 CC=""
3995 else
3996 case $cross_compiling:$ac_tool_warned in
3997yes:)
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000ac_tool_warned=yes ;;
4001esac
4002 CC=$ac_ct_CC
4003 fi
4004else
4005 CC="$ac_cv_prog_CC"
4006fi
4007
4008if test -z "$CC"; then
4009 if test -n "$ac_tool_prefix"; then
4010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4011set dummy ${ac_tool_prefix}cc; ac_word=$2
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013$as_echo_n "checking for $ac_word... " >&6; }
4014if ${ac_cv_prog_CC+:} false; then :
4015 $as_echo_n "(cached) " >&6
4016else
4017 if test -n "$CC"; then
4018 ac_cv_prog_CC="$CC" # Let the user override the test.
4019else
4020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021for as_dir in $PATH
4022do
4023 IFS=$as_save_IFS
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_CC="${ac_tool_prefix}cc"
4028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029 break 2
4030 fi
4031done
4032 done
4033IFS=$as_save_IFS
4034
4035fi
4036fi
4037CC=$ac_cv_prog_CC
4038if test -n "$CC"; then
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4040$as_echo "$CC" >&6; }
4041else
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043$as_echo "no" >&6; }
4044fi
4045
4046
4047 fi
4048fi
4049if test -z "$CC"; then
4050 # Extract the first word of "cc", so it can be a program name with args.
4051set dummy cc; ac_word=$2
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053$as_echo_n "checking for $ac_word... " >&6; }
4054if ${ac_cv_prog_CC+:} false; then :
4055 $as_echo_n "(cached) " >&6
4056else
4057 if test -n "$CC"; then
4058 ac_cv_prog_CC="$CC" # Let the user override the test.
4059else
4060 ac_prog_rejected=no
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4069 ac_prog_rejected=yes
4070 continue
4071 fi
4072 ac_cv_prog_CC="cc"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076done
4077 done
4078IFS=$as_save_IFS
4079
4080if test $ac_prog_rejected = yes; then
4081 # We found a bogon in the path, so make sure we never use it.
4082 set dummy $ac_cv_prog_CC
4083 shift
4084 if test $# != 0; then
4085 # We chose a different compiler from the bogus one.
4086 # However, it has the same basename, so the bogon will be chosen
4087 # first if we set CC to just the basename; use the full file name.
4088 shift
4089 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4090 fi
4091fi
4092fi
4093fi
4094CC=$ac_cv_prog_CC
4095if test -n "$CC"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4097$as_echo "$CC" >&6; }
4098else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100$as_echo "no" >&6; }
4101fi
4102
4103
4104fi
4105if test -z "$CC"; then
4106 if test -n "$ac_tool_prefix"; then
4107 for ac_prog in cl.exe
4108 do
4109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4110set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112$as_echo_n "checking for $ac_word... " >&6; }
4113if ${ac_cv_prog_CC+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115else
4116 if test -n "$CC"; then
4117 ac_cv_prog_CC="$CC" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4129 fi
4130done
4131 done
4132IFS=$as_save_IFS
4133
4134fi
4135fi
4136CC=$ac_cv_prog_CC
4137if test -n "$CC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4139$as_echo "$CC" >&6; }
4140else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142$as_echo "no" >&6; }
4143fi
4144
4145
4146 test -n "$CC" && break
4147 done
4148fi
4149if test -z "$CC"; then
4150 ac_ct_CC=$CC
4151 for ac_prog in cl.exe
4152do
4153 # Extract the first word of "$ac_prog", so it can be a program name with args.
4154set dummy $ac_prog; ac_word=$2
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156$as_echo_n "checking for $ac_word... " >&6; }
4157if ${ac_cv_prog_ac_ct_CC+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159else
4160 if test -n "$ac_ct_CC"; then
4161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4162else
4163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164for as_dir in $PATH
4165do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_ac_ct_CC="$ac_prog"
4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4173 fi
4174done
4175 done
4176IFS=$as_save_IFS
4177
4178fi
4179fi
4180ac_ct_CC=$ac_cv_prog_ac_ct_CC
4181if test -n "$ac_ct_CC"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4183$as_echo "$ac_ct_CC" >&6; }
4184else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186$as_echo "no" >&6; }
4187fi
4188
4189
4190 test -n "$ac_ct_CC" && break
4191done
4192
4193 if test "x$ac_ct_CC" = x; then
4194 CC=""
4195 else
4196 case $cross_compiling:$ac_tool_warned in
4197yes:)
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200ac_tool_warned=yes ;;
4201esac
4202 CC=$ac_ct_CC
4203 fi
4204fi
4205
4206fi
4207
4208
4209test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4211as_fn_error $? "no acceptable C compiler found in \$PATH
4212See \`config.log' for more details" "$LINENO" 5; }
4213
4214# Provide some information about the compiler.
4215$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4216set X $ac_compile
4217ac_compiler=$2
4218for ac_option in --version -v -V -qversion; do
4219 { { ac_try="$ac_compiler $ac_option >&5"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4225$as_echo "$ac_try_echo"; } >&5
4226 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4227 ac_status=$?
4228 if test -s conftest.err; then
4229 sed '10a\
4230... rest of stderr output deleted ...
4231 10q' conftest.err >conftest.er1
4232 cat conftest.er1 >&5
4233 fi
4234 rm -f conftest.er1 conftest.err
4235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4236 test $ac_status = 0; }
4237done
4238
4239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h. */
4241
4242int main (void)
4243{
4244
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249ac_clean_files_save=$ac_clean_files
4250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4251# Try to create an executable without -o first, disregard a.out.
4252# It will help us diagnose broken compilers, and finding out an intuition
4253# of exeext.
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4255$as_echo_n "checking whether the C compiler works... " >&6; }
4256ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4257
4258# The possible output files:
4259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4260
4261ac_rmfiles=
4262for ac_file in $ac_files
4263do
4264 case $ac_file in
4265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4267 esac
4268done
4269rm -f $ac_rmfiles
4270
4271if { { ac_try="$ac_link_default"
4272case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4275esac
4276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4277$as_echo "$ac_try_echo"; } >&5
4278 (eval "$ac_link_default") 2>&5
4279 ac_status=$?
4280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4281 test $ac_status = 0; }; then :
4282 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4283# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4284# in a Makefile. We should not override ac_cv_exeext if it was cached,
4285# so that the user can short-circuit this test for compilers unknown to
4286# Autoconf.
4287for ac_file in $ac_files ''
4288do
4289 test -f "$ac_file" || continue
4290 case $ac_file in
4291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4292 ;;
4293 [ab].out )
4294 # We found the default executable, but exeext='' is most
4295 # certainly right.
4296 break;;
4297 *.* )
4298 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4299 then :; else
4300 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4301 fi
4302 # We set ac_cv_exeext here because the later test for it is not
4303 # safe: cross compilers may not add the suffix if given an `-o'
4304 # argument, so we may need to know it at that point already.
4305 # Even if this section looks crufty: it has the advantage of
4306 # actually working.
4307 break;;
4308 * )
4309 break;;
4310 esac
4311done
4312test "$ac_cv_exeext" = no && ac_cv_exeext=
4313
4314else
4315 ac_file=''
4316fi
4317if test -z "$ac_file"; then :
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
4320$as_echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4325as_fn_error 77 "C compiler cannot create executables
4326See \`config.log' for more details" "$LINENO" 5; }
4327else
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4329$as_echo "yes" >&6; }
4330fi
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4332$as_echo_n "checking for C compiler default output file name... " >&6; }
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4334$as_echo "$ac_file" >&6; }
4335ac_exeext=$ac_cv_exeext
4336
4337rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4338ac_clean_files=$ac_clean_files_save
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4340$as_echo_n "checking for suffix of executables... " >&6; }
4341if { { ac_try="$ac_link"
4342case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345esac
4346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347$as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_link") 2>&5
4349 ac_status=$?
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }; then :
4352 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4353# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4354# work properly (i.e., refer to `conftest.exe'), while it won't with
4355# `rm'.
4356for ac_file in conftest.exe conftest conftest.*; do
4357 test -f "$ac_file" || continue
4358 case $ac_file in
4359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4360 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4361 break;;
4362 * ) break;;
4363 esac
4364done
4365else
4366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4369See \`config.log' for more details" "$LINENO" 5; }
4370fi
4371rm -f conftest conftest$ac_cv_exeext
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4373$as_echo "$ac_cv_exeext" >&6; }
4374
4375rm -f conftest.$ac_ext
4376EXEEXT=$ac_cv_exeext
4377ac_exeext=$EXEEXT
4378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379/* end confdefs.h. */
4380#include <stdio.h>
4381int main (void)
4382{
4383FILE *f = fopen ("conftest.out", "w");
4384 return ferror (f) || fclose (f) != 0;
4385
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390ac_clean_files="$ac_clean_files conftest.out"
4391# Check that the compiler produces executables we can run. If not, either
4392# the compiler is broken, or we cross compile.
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4394$as_echo_n "checking whether we are cross compiling... " >&6; }
4395if test "$cross_compiling" != yes; then
4396 { { ac_try="$ac_link"
4397case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400esac
4401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402$as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_link") 2>&5
4404 ac_status=$?
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }
4407 if { ac_try='./conftest$ac_cv_exeext'
4408 { { case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
4412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413$as_echo "$ac_try_echo"; } >&5
4414 (eval "$ac_try") 2>&5
4415 ac_status=$?
4416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }; }; then
4418 cross_compiling=no
4419 else
4420 if test "$cross_compiling" = maybe; then
4421 cross_compiling=yes
4422 else
4423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4425as_fn_error $? "cannot run C compiled programs.
4426If you meant to cross compile, use \`--host'.
4427See \`config.log' for more details" "$LINENO" 5; }
4428 fi
4429 fi
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4432$as_echo "$cross_compiling" >&6; }
4433
4434rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4435ac_clean_files=$ac_clean_files_save
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4437$as_echo_n "checking for suffix of object files... " >&6; }
4438if ${ac_cv_objext+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440else
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442/* end confdefs.h. */
4443
4444int main (void)
4445{
4446
4447 ;
4448 return 0;
4449}
4450_ACEOF
4451rm -f conftest.o conftest.obj
4452if { { ac_try="$ac_compile"
4453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458$as_echo "$ac_try_echo"; } >&5
4459 (eval "$ac_compile") 2>&5
4460 ac_status=$?
4461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; then :
4463 for ac_file in conftest.o conftest.obj conftest.*; do
4464 test -f "$ac_file" || continue;
4465 case $ac_file in
4466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4467 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4468 break;;
4469 esac
4470done
4471else
4472 $as_echo "$as_me: failed program was:" >&5
4473sed 's/^/| /' conftest.$ac_ext >&5
4474
4475{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4477as_fn_error $? "cannot compute suffix of object files: cannot compile
4478See \`config.log' for more details" "$LINENO" 5; }
4479fi
4480rm -f conftest.$ac_cv_objext conftest.$ac_ext
4481fi
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4483$as_echo "$ac_cv_objext" >&6; }
4484OBJEXT=$ac_cv_objext
4485ac_objext=$OBJEXT
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4487$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4488if ${ac_cv_c_compiler_gnu+:} false; then :
4489 $as_echo_n "(cached) " >&6
4490else
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h. */
4493
4494int main (void)
4495{
4496#ifndef __GNUC__
4497 choke me
4498#endif
4499
4500 ;
4501 return 0;
4502}
4503_ACEOF
4504if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_compiler_gnu=yes
4506else
4507 ac_compiler_gnu=no
4508fi
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510ac_cv_c_compiler_gnu=$ac_compiler_gnu
4511
4512fi
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4514$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4515if test $ac_compiler_gnu = yes; then
4516 GCC=yes
4517else
4518 GCC=
4519fi
4520ac_test_CFLAGS=${CFLAGS+set}
4521ac_save_CFLAGS=$CFLAGS
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4523$as_echo_n "checking whether $CC accepts -g... " >&6; }
4524if ${ac_cv_prog_cc_g+:} false; then :
4525 $as_echo_n "(cached) " >&6
4526else
4527 ac_save_c_werror_flag=$ac_c_werror_flag
4528 ac_c_werror_flag=yes
4529 ac_cv_prog_cc_g=no
4530 CFLAGS="-g"
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h. */
4533
4534int main (void)
4535{
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_prog_cc_g=yes
4543else
4544 CFLAGS=""
4545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546/* end confdefs.h. */
4547
4548int main (void)
4549{
4550
4551 ;
4552 return 0;
4553}
4554_ACEOF
4555if ac_fn_c_try_compile "$LINENO"; then :
4556
4557else
4558 ac_c_werror_flag=$ac_save_c_werror_flag
4559 CFLAGS="-g"
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
4570if ac_fn_c_try_compile "$LINENO"; then :
4571 ac_cv_prog_cc_g=yes
4572fi
4573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574fi
4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576fi
4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578 ac_c_werror_flag=$ac_save_c_werror_flag
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4581$as_echo "$ac_cv_prog_cc_g" >&6; }
4582if test "$ac_test_CFLAGS" = set; then
4583 CFLAGS=$ac_save_CFLAGS
4584elif test $ac_cv_prog_cc_g = yes; then
4585 if test "$GCC" = yes; then
4586 CFLAGS="-g -O2"
4587 else
4588 CFLAGS="-g"
4589 fi
4590else
4591 if test "$GCC" = yes; then
4592 CFLAGS="-O2"
4593 else
4594 CFLAGS=
4595 fi
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4598$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4599if ${ac_cv_prog_cc_c89+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601else
4602 ac_cv_prog_cc_c89=no
4603ac_save_CC=$CC
4604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h. */
4606#include <stdarg.h>
4607#include <stdio.h>
4608struct stat;
4609/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4610struct buf { int x; };
4611FILE * (*rcsopen) (struct buf *, struct stat *, int);
4612static char *e (p, i)
4613 char **p;
4614 int i;
4615{
4616 return p[i];
4617}
4618static char *f (char * (*g) (char **, int), char **p, ...)
4619{
4620 char *s;
4621 va_list v;
4622 va_start (v,p);
4623 s = g (p, va_arg (v,int));
4624 va_end (v);
4625 return s;
4626}
4627
4628/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4629 function prototypes and stuff, but not '\xHH' hex character constants.
4630 These don't provoke an error unfortunately, instead are silently treated
4631 as 'x'. The following induces an error, until -std is added to get
4632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4633 array size at least. It's necessary to write '\x00'==0 to get something
4634 that's true only with -std. */
4635int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4636
4637/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4638 inside strings and character constants. */
4639#define FOO(x) 'x'
4640int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4641
4642int test (int i, double x);
4643struct s1 {int (*f) (int a);};
4644struct s2 {int (*f) (double a);};
4645int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4646int argc;
4647char **argv;
4648int main (void)
4649{
4650return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4651 ;
4652 return 0;
4653}
4654_ACEOF
4655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4657do
4658 CC="$ac_save_CC $ac_arg"
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660 ac_cv_prog_cc_c89=$ac_arg
4661fi
4662rm -f core conftest.err conftest.$ac_objext
4663 test "x$ac_cv_prog_cc_c89" != "xno" && break
4664done
4665rm -f conftest.$ac_ext
4666CC=$ac_save_CC
4667
4668fi
4669# AC_CACHE_VAL
4670case "x$ac_cv_prog_cc_c89" in
4671 x)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4673$as_echo "none needed" >&6; } ;;
4674 xno)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4676$as_echo "unsupported" >&6; } ;;
4677 *)
4678 CC="$CC $ac_cv_prog_cc_c89"
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4681esac
4682if test "x$ac_cv_prog_cc_c89" != xno; then :
4683
4684fi
4685
4686ac_ext=c
4687ac_cpp='$CPP $CPPFLAGS'
4688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691
4692ac_ext=c
4693ac_cpp='$CPP $CPPFLAGS'
4694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4698$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4699if ${am_cv_prog_cc_c_o+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703/* end confdefs.h. */
4704
4705int main (void)
4706{
4707
4708 ;
4709 return 0;
4710}
4711_ACEOF
4712 # Make sure it works both with $CC and with simple cc.
4713 # Following AC_PROG_CC_C_O, we do the test twice because some
4714 # compilers refuse to overwrite an existing .o file with -o,
4715 # though they will create one.
4716 am_cv_prog_cc_c_o=yes
4717 for am_i in 1 2; do
4718 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4719 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4720 ac_status=$?
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); } \
4723 && test -f conftest2.$ac_objext; then
4724 : OK
4725 else
4726 am_cv_prog_cc_c_o=no
4727 break
4728 fi
4729 done
4730 rm -f core conftest*
4731 unset am_i
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4734$as_echo "$am_cv_prog_cc_c_o" >&6; }
4735if test "$am_cv_prog_cc_c_o" != yes; then
4736 # Losing compiler, so override with the script.
4737 # FIXME: It is wrong to rewrite CC.
4738 # But if we don't then we get into trouble of one sort or another.
4739 # A longer-term fix would be to have automake use am__CC in this case,
4740 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4741 CC="$am_aux_dir/compile $CC"
4742fi
4743ac_ext=c
4744ac_cpp='$CPP $CPPFLAGS'
4745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
4749
4750
4751ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4757$as_echo_n "checking how to run the C preprocessor... " >&6; }
4758# On Suns, sometimes $CPP names a directory.
4759if test -n "$CPP" && test -d "$CPP"; then
4760 CPP=
4761fi
4762if test -z "$CPP"; then
4763 if ${ac_cv_prog_CPP+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765else
4766 # Double quotes because CPP needs to be expanded
4767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4768 do
4769 ac_preproc_ok=false
4770for ac_c_preproc_warn_flag in '' yes
4771do
4772 # Use a header file that comes with gcc, so configuring glibc
4773 # with a fresh cross-compiler works.
4774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775 # <limits.h> exists even on freestanding compilers.
4776 # On the NeXT, cc -E runs the code through the compiler's parser,
4777 # not just through cpp. "Syntax error" is here to catch this case.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779/* end confdefs.h. */
4780#ifdef __STDC__
4781# include <limits.h>
4782#else
4783# include <assert.h>
4784#endif
4785 Syntax error
4786_ACEOF
4787if ac_fn_c_try_cpp "$LINENO"; then :
4788
4789else
4790 # Broken: fails on valid input.
4791continue
4792fi
4793rm -f conftest.err conftest.i conftest.$ac_ext
4794
4795 # OK, works on sane cases. Now check whether nonexistent headers
4796 # can be detected and how.
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h. */
4799#include <ac_nonexistent.h>
4800_ACEOF
4801if ac_fn_c_try_cpp "$LINENO"; then :
4802 # Broken: success on invalid input.
4803continue
4804else
4805 # Passes both tests.
4806ac_preproc_ok=:
4807break
4808fi
4809rm -f conftest.err conftest.i conftest.$ac_ext
4810
4811done
4812# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4813rm -f conftest.i conftest.err conftest.$ac_ext
4814if $ac_preproc_ok; then :
4815 break
4816fi
4817
4818 done
4819 ac_cv_prog_CPP=$CPP
4820
4821fi
4822 CPP=$ac_cv_prog_CPP
4823else
4824 ac_cv_prog_CPP=$CPP
4825fi
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4827$as_echo "$CPP" >&6; }
4828ac_preproc_ok=false
4829for ac_c_preproc_warn_flag in '' yes
4830do
4831 # Use a header file that comes with gcc, so configuring glibc
4832 # with a fresh cross-compiler works.
4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838/* end confdefs.h. */
4839#ifdef __STDC__
4840# include <limits.h>
4841#else
4842# include <assert.h>
4843#endif
4844 Syntax error
4845_ACEOF
4846if ac_fn_c_try_cpp "$LINENO"; then :
4847
4848else
4849 # Broken: fails on valid input.
4850continue
4851fi
4852rm -f conftest.err conftest.i conftest.$ac_ext
4853
4854 # OK, works on sane cases. Now check whether nonexistent headers
4855 # can be detected and how.
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h. */
4858#include <ac_nonexistent.h>
4859_ACEOF
4860if ac_fn_c_try_cpp "$LINENO"; then :
4861 # Broken: success on invalid input.
4862continue
4863else
4864 # Passes both tests.
4865ac_preproc_ok=:
4866break
4867fi
4868rm -f conftest.err conftest.i conftest.$ac_ext
4869
4870done
4871# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4872rm -f conftest.i conftest.err conftest.$ac_ext
4873if $ac_preproc_ok; then :
4874
4875else
4876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4878as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4879See \`config.log' for more details" "$LINENO" 5; }
4880fi
4881
4882ac_ext=c
4883ac_cpp='$CPP $CPPFLAGS'
4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887
4888
4889 IFS=$xc_prog_cc_prev_IFS
4890 LIBS=$xc_prog_cc_prev_LIBS
4891 CFLAGS=$xc_prog_cc_prev_CFLAGS
4892 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4893 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4894
4895
4896
4897
4898
Elliott Hughes0128fe42018-02-27 14:57:55 -08004899
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4901$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4902if ${ac_cv_path_SED+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904else
4905 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4906 for ac_i in 1 2 3 4 5 6 7; do
4907 ac_script="$ac_script$as_nl$ac_script"
4908 done
4909 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4910 { ac_script=; unset ac_script;}
4911 if test -z "$SED"; then
4912 ac_path_SED_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_prog in sed gsed; do
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4922 as_fn_executable_p "$ac_path_SED" || continue
4923# Check for GNU ac_path_SED and select it if it is found.
4924 # Check for GNU $ac_path_SED
4925case `"$ac_path_SED" --version 2>&1` in
4926*GNU*)
4927 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4928*)
4929 ac_count=0
4930 $as_echo_n 0123456789 >"conftest.in"
4931 while :
4932 do
4933 cat "conftest.in" "conftest.in" >"conftest.tmp"
4934 mv "conftest.tmp" "conftest.in"
4935 cp "conftest.in" "conftest.nl"
4936 $as_echo '' >> "conftest.nl"
4937 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939 as_fn_arith $ac_count + 1 && ac_count=$as_val
4940 if test $ac_count -gt ${ac_path_SED_max-0}; then
4941 # Best one so far, save it but keep looking for a better one
4942 ac_cv_path_SED="$ac_path_SED"
4943 ac_path_SED_max=$ac_count
4944 fi
4945 # 10*(2^10) chars as input seems more than enough
4946 test $ac_count -gt 10 && break
4947 done
4948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949esac
4950
4951 $ac_path_SED_found && break 3
4952 done
4953 done
4954 done
4955IFS=$as_save_IFS
4956 if test -z "$ac_cv_path_SED"; then
4957 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4958 fi
4959else
4960 ac_cv_path_SED=$SED
4961fi
4962
4963fi
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4965$as_echo "$ac_cv_path_SED" >&6; }
4966 SED="$ac_cv_path_SED"
4967 rm -f conftest.sed
4968
Elliott Hughes0128fe42018-02-27 14:57:55 -08004969
4970
4971
Haibo Huang51d9d882019-02-06 01:36:06 -08004972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
4973$as_echo_n "checking for code coverage support... " >&6; }
4974 coverage="no"
4975 curl_coverage_msg="disabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004976
Haibo Huang51d9d882019-02-06 01:36:06 -08004977 # Check whether --enable-code-coverage was given.
Elliott Hughes0128fe42018-02-27 14:57:55 -08004978if test "${enable_code_coverage+set}" = set; then :
Haibo Huang51d9d882019-02-06 01:36:06 -08004979 enableval=$enable_code_coverage; coverage="yes"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004980else
Haibo Huang51d9d882019-02-06 01:36:06 -08004981 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004982fi
4983
4984
Haibo Huang51d9d882019-02-06 01:36:06 -08004985 if test "$GCC" != "yes" ; then :
4986 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004987fi
Haibo Huang51d9d882019-02-06 01:36:06 -08004988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
4989$as_echo "$coverage" >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -08004990
Haibo Huang51d9d882019-02-06 01:36:06 -08004991 if test "x$coverage" = "xyes"; then
4992 curl_coverage_msg="enabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004993
Haibo Huang51d9d882019-02-06 01:36:06 -08004994 if test -n "$ac_tool_prefix"; then
4995 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
4996set dummy ${ac_tool_prefix}gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08004997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998$as_echo_n "checking for $ac_word... " >&6; }
4999if ${ac_cv_prog_GCOV+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001else
5002 if test -n "$GCOV"; then
5003 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005012 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 break 2
5015 fi
5016done
5017 done
5018IFS=$as_save_IFS
5019
5020fi
5021fi
5022GCOV=$ac_cv_prog_GCOV
5023if test -n "$GCOV"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5025$as_echo "$GCOV" >&6; }
5026else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029fi
5030
5031
5032fi
5033if test -z "$ac_cv_prog_GCOV"; then
5034 ac_ct_GCOV=$GCOV
Haibo Huang51d9d882019-02-06 01:36:06 -08005035 # Extract the first word of "gcov", so it can be a program name with args.
5036set dummy gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08005037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038$as_echo_n "checking for $ac_word... " >&6; }
5039if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041else
5042 if test -n "$ac_ct_GCOV"; then
5043 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5044else
5045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046for as_dir in $PATH
5047do
5048 IFS=$as_save_IFS
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005052 ac_cv_prog_ac_ct_GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 break 2
5055 fi
5056done
5057 done
5058IFS=$as_save_IFS
5059
5060fi
5061fi
5062ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5063if test -n "$ac_ct_GCOV"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5065$as_echo "$ac_ct_GCOV" >&6; }
5066else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068$as_echo "no" >&6; }
5069fi
5070
5071 if test "x$ac_ct_GCOV" = x; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005072 GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005073 else
5074 case $cross_compiling:$ac_tool_warned in
5075yes:)
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078ac_tool_warned=yes ;;
5079esac
5080 GCOV=$ac_ct_GCOV
5081 fi
5082else
5083 GCOV="$ac_cv_prog_GCOV"
5084fi
5085
Haibo Huang51d9d882019-02-06 01:36:06 -08005086 if test -z "$GCOV"; then
5087 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5088 fi
5089 # Extract the first word of "lcov", so it can be a program name with args.
Elliott Hughes0128fe42018-02-27 14:57:55 -08005090set dummy lcov; ac_word=$2
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092$as_echo_n "checking for $ac_word... " >&6; }
5093if ${ac_cv_prog_LCOV+:} false; then :
5094 $as_echo_n "(cached) " >&6
5095else
5096 if test -n "$LCOV"; then
5097 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5098else
5099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100for as_dir in $PATH
5101do
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5106 ac_cv_prog_LCOV="lcov"
5107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5109 fi
5110done
5111 done
5112IFS=$as_save_IFS
5113
5114fi
5115fi
5116LCOV=$ac_cv_prog_LCOV
5117if test -n "$LCOV"; then
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5119$as_echo "$LCOV" >&6; }
5120else
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122$as_echo "no" >&6; }
5123fi
5124
5125
Haibo Huang51d9d882019-02-06 01:36:06 -08005126 if test -z "$LCOV"; then
5127 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5128 fi
5129
5130 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5131 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5132 LIBS="$LIBS -lgcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005133 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -08005134
Elliott Hughes0128fe42018-02-27 14:57:55 -08005135
Elliott Hughes82be86d2017-09-20 17:00:17 -07005136am__api_version='1.15'
5137
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5139$as_echo_n "checking whether build environment is sane... " >&6; }
5140# Reject unsafe characters in $srcdir or the absolute working directory
5141# name. Accept space and tab only in the latter.
5142am_lf='
5143'
5144case `pwd` in
5145 *[\\\"\#\$\&\'\`$am_lf]*)
5146 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5147esac
5148case $srcdir in
5149 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5150 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5151esac
5152
5153# Do 'set' in a subshell so we don't clobber the current shell's
5154# arguments. Must try -L first in case configure is actually a
5155# symlink; some systems play weird games with the mod time of symlinks
5156# (eg FreeBSD returns the mod time of the symlink's containing
5157# directory).
5158if (
5159 am_has_slept=no
5160 for am_try in 1 2; do
5161 echo "timestamp, slept: $am_has_slept" > conftest.file
5162 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5163 if test "$*" = "X"; then
5164 # -L didn't work.
5165 set X `ls -t "$srcdir/configure" conftest.file`
5166 fi
5167 if test "$*" != "X $srcdir/configure conftest.file" \
5168 && test "$*" != "X conftest.file $srcdir/configure"; then
5169
5170 # If neither matched, then we have a broken ls. This can happen
5171 # if, for instance, CONFIG_SHELL is bash and it inherits a
5172 # broken ls alias from the environment. This has actually
5173 # happened. Such a system could not be considered "sane".
5174 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5175 alias in your environment" "$LINENO" 5
5176 fi
5177 if test "$2" = conftest.file || test $am_try -eq 2; then
5178 break
5179 fi
5180 # Just in case.
5181 sleep 1
5182 am_has_slept=yes
5183 done
5184 test "$2" = conftest.file
5185 )
5186then
5187 # Ok.
5188 :
5189else
5190 as_fn_error $? "newly created file is older than distributed files!
5191Check your system clock" "$LINENO" 5
5192fi
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5194$as_echo "yes" >&6; }
5195# If we didn't sleep, we still need to ensure time stamps of config.status and
5196# generated files are strictly newer.
5197am_sleep_pid=
5198if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5199 ( sleep 1 ) &
5200 am_sleep_pid=$!
5201fi
5202
5203rm -f conftest.file
5204
5205test "$program_prefix" != NONE &&
5206 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5207# Use a double $ so make ignores it.
5208test "$program_suffix" != NONE &&
5209 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5210# Double any \ or $.
5211# By default was `s,x,x', remove it if useless.
5212ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5213program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5214
5215if test x"${MISSING+set}" != xset; then
5216 case $am_aux_dir in
5217 *\ * | *\ *)
5218 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5219 *)
5220 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5221 esac
5222fi
5223# Use eval to expand $SHELL
5224if eval "$MISSING --is-lightweight"; then
5225 am_missing_run="$MISSING "
5226else
5227 am_missing_run=
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5229$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5230fi
5231
5232if test x"${install_sh+set}" != xset; then
5233 case $am_aux_dir in
5234 *\ * | *\ *)
5235 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5236 *)
5237 install_sh="\${SHELL} $am_aux_dir/install-sh"
5238 esac
5239fi
5240
5241# Installed binaries are usually stripped using 'strip' when the user
5242# run "make install-strip". However 'strip' might not be the right
5243# tool to use in cross-compilation environments, therefore Automake
5244# will honor the 'STRIP' environment variable to overrule this program.
5245if test "$cross_compiling" != no; then
5246 if test -n "$ac_tool_prefix"; then
5247 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5248set dummy ${ac_tool_prefix}strip; ac_word=$2
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
5251if ${ac_cv_prog_STRIP+:} false; then :
5252 $as_echo_n "(cached) " >&6
5253else
5254 if test -n "$STRIP"; then
5255 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268done
5269 done
5270IFS=$as_save_IFS
5271
5272fi
5273fi
5274STRIP=$ac_cv_prog_STRIP
5275if test -n "$STRIP"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5277$as_echo "$STRIP" >&6; }
5278else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
5281fi
5282
5283
5284fi
5285if test -z "$ac_cv_prog_STRIP"; then
5286 ac_ct_STRIP=$STRIP
5287 # Extract the first word of "strip", so it can be a program name with args.
5288set dummy strip; ac_word=$2
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290$as_echo_n "checking for $ac_word... " >&6; }
5291if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293else
5294 if test -n "$ac_ct_STRIP"; then
5295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_prog_ac_ct_STRIP="strip"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308done
5309 done
5310IFS=$as_save_IFS
5311
5312fi
5313fi
5314ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5315if test -n "$ac_ct_STRIP"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5317$as_echo "$ac_ct_STRIP" >&6; }
5318else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320$as_echo "no" >&6; }
5321fi
5322
5323 if test "x$ac_ct_STRIP" = x; then
5324 STRIP=":"
5325 else
5326 case $cross_compiling:$ac_tool_warned in
5327yes:)
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5330ac_tool_warned=yes ;;
5331esac
5332 STRIP=$ac_ct_STRIP
5333 fi
5334else
5335 STRIP="$ac_cv_prog_STRIP"
5336fi
5337
5338fi
5339INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5340
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5342$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5343if test -z "$MKDIR_P"; then
5344 if ${ac_cv_path_mkdir+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5349do
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_prog in mkdir gmkdir; do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5355 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5356 'mkdir (GNU coreutils) '* | \
5357 'mkdir (coreutils) '* | \
5358 'mkdir (fileutils) '4.1*)
5359 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5360 break 3;;
5361 esac
5362 done
5363 done
5364 done
5365IFS=$as_save_IFS
5366
5367fi
5368
5369 test -d ./--version && rmdir ./--version
5370 if test "${ac_cv_path_mkdir+set}" = set; then
5371 MKDIR_P="$ac_cv_path_mkdir -p"
5372 else
5373 # As a last resort, use the slow shell script. Don't cache a
5374 # value for MKDIR_P within a source directory, because that will
5375 # break other packages using the cache if that directory is
5376 # removed, or if the value is a relative name.
5377 MKDIR_P="$ac_install_sh -d"
5378 fi
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5381$as_echo "$MKDIR_P" >&6; }
5382
5383for ac_prog in gawk mawk nawk awk
5384do
5385 # Extract the first word of "$ac_prog", so it can be a program name with args.
5386set dummy $ac_prog; ac_word=$2
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388$as_echo_n "checking for $ac_word... " >&6; }
5389if ${ac_cv_prog_AWK+:} false; then :
5390 $as_echo_n "(cached) " >&6
5391else
5392 if test -n "$AWK"; then
5393 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5394else
5395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396for as_dir in $PATH
5397do
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402 ac_cv_prog_AWK="$ac_prog"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5405 fi
5406done
5407 done
5408IFS=$as_save_IFS
5409
5410fi
5411fi
5412AWK=$ac_cv_prog_AWK
5413if test -n "$AWK"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5415$as_echo "$AWK" >&6; }
5416else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418$as_echo "no" >&6; }
5419fi
5420
5421
5422 test -n "$AWK" && break
5423done
5424
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5426$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5427set x ${MAKE-make}
5428ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5429if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431else
5432 cat >conftest.make <<\_ACEOF
5433SHELL = /bin/sh
5434all:
5435 @echo '@@@%%%=$(MAKE)=@@@%%%'
5436_ACEOF
5437# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5438case `${MAKE-make} -f conftest.make 2>/dev/null` in
5439 *@@@%%%=?*=@@@%%%*)
5440 eval ac_cv_prog_make_${ac_make}_set=yes;;
5441 *)
5442 eval ac_cv_prog_make_${ac_make}_set=no;;
5443esac
5444rm -f conftest.make
5445fi
5446if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448$as_echo "yes" >&6; }
5449 SET_MAKE=
5450else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452$as_echo "no" >&6; }
5453 SET_MAKE="MAKE=${MAKE-make}"
5454fi
5455
5456rm -rf .tst 2>/dev/null
5457mkdir .tst 2>/dev/null
5458if test -d .tst; then
5459 am__leading_dot=.
5460else
5461 am__leading_dot=_
5462fi
5463rmdir .tst 2>/dev/null
5464
5465DEPDIR="${am__leading_dot}deps"
5466
5467ac_config_commands="$ac_config_commands depfiles"
5468
5469
5470am_make=${MAKE-make}
5471cat > confinc << 'END'
5472am__doit:
5473 @echo this is the am__doit target
5474.PHONY: am__doit
5475END
5476# If we don't find an include directive, just comment out the code.
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5478$as_echo_n "checking for style of include used by $am_make... " >&6; }
5479am__include="#"
5480am__quote=
5481_am_result=none
5482# First try GNU make style include.
5483echo "include confinc" > confmf
5484# Ignore all kinds of additional output from 'make'.
5485case `$am_make -s -f confmf 2> /dev/null` in #(
5486*the\ am__doit\ target*)
5487 am__include=include
5488 am__quote=
5489 _am_result=GNU
5490 ;;
5491esac
5492# Now try BSD make style include.
5493if test "$am__include" = "#"; then
5494 echo '.include "confinc"' > confmf
5495 case `$am_make -s -f confmf 2> /dev/null` in #(
5496 *the\ am__doit\ target*)
5497 am__include=.include
5498 am__quote="\""
5499 _am_result=BSD
5500 ;;
5501 esac
5502fi
5503
5504
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5506$as_echo "$_am_result" >&6; }
5507rm -f confinc confmf
5508
5509# Check whether --enable-dependency-tracking was given.
5510if test "${enable_dependency_tracking+set}" = set; then :
5511 enableval=$enable_dependency_tracking;
5512fi
5513
5514if test "x$enable_dependency_tracking" != xno; then
5515 am_depcomp="$ac_aux_dir/depcomp"
5516 AMDEPBACKSLASH='\'
5517 am__nodep='_no'
5518fi
5519 if test "x$enable_dependency_tracking" != xno; then
5520 AMDEP_TRUE=
5521 AMDEP_FALSE='#'
5522else
5523 AMDEP_TRUE='#'
5524 AMDEP_FALSE=
5525fi
5526
5527
5528## --------------------------------------- ##
5529## Start of automake initialization code ##
5530## --------------------------------------- ##
5531
5532if test "`cd $srcdir && pwd`" != "`pwd`"; then
5533 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5534 # is not polluted with repeated "-I."
5535 am__isrc=' -I$(srcdir)'
5536 # test to see if srcdir already configured
5537 if test -f $srcdir/config.status; then
5538 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5539 fi
5540fi
5541
5542# test whether we have cygpath
5543if test -z "$CYGPATH_W"; then
5544 if (cygpath --version) >/dev/null 2>/dev/null; then
5545 CYGPATH_W='cygpath -w'
5546 else
5547 CYGPATH_W=echo
5548 fi
5549fi
5550
5551
5552# Define the identity of the package.
5553 PACKAGE='curl'
5554 VERSION='-'
5555
5556
5557cat >>confdefs.h <<_ACEOF
5558#define PACKAGE "$PACKAGE"
5559_ACEOF
5560
5561
5562cat >>confdefs.h <<_ACEOF
5563#define VERSION "$VERSION"
5564_ACEOF
5565
5566# Some tools Automake needs.
5567
5568ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5569
5570
5571AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5572
5573
5574AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5575
5576
5577AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5578
5579
5580MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5581
5582# For better backward compatibility. To be removed once Automake 1.9.x
5583# dies out for good. For more background, see:
5584# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5585# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5586mkdir_p='$(MKDIR_P)'
5587
5588# We need awk for the "check" target (and possibly the TAP driver). The
5589# system "awk" is bad on some platforms.
5590# Always define AMTAR for backward compatibility. Yes, it's still used
5591# in the wild :-( We should find a proper way to deprecate it ...
5592AMTAR='$${TAR-tar}'
5593
5594
5595# We'll loop over all known methods to create a tar archive until one works.
5596_am_tools='gnutar pax cpio none'
5597
5598am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5599
5600
5601
5602
5603
5604depcc="$CC" am_compiler_list=
5605
5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5607$as_echo_n "checking dependency style of $depcc... " >&6; }
5608if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610else
5611 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5612 # We make a subdir and do the tests there. Otherwise we can end up
5613 # making bogus files that we don't know about and never remove. For
5614 # instance it was reported that on HP-UX the gcc test will end up
5615 # making a dummy file named 'D' -- because '-MD' means "put the output
5616 # in D".
5617 rm -rf conftest.dir
5618 mkdir conftest.dir
5619 # Copy depcomp to subdir because otherwise we won't find it if we're
5620 # using a relative directory.
5621 cp "$am_depcomp" conftest.dir
5622 cd conftest.dir
5623 # We will build objects and dependencies in a subdirectory because
5624 # it helps to detect inapplicable dependency modes. For instance
5625 # both Tru64's cc and ICC support -MD to output dependencies as a
5626 # side effect of compilation, but ICC will put the dependencies in
5627 # the current directory while Tru64 will put them in the object
5628 # directory.
5629 mkdir sub
5630
5631 am_cv_CC_dependencies_compiler_type=none
5632 if test "$am_compiler_list" = ""; then
5633 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5634 fi
5635 am__universal=false
5636 case " $depcc " in #(
5637 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5638 esac
5639
5640 for depmode in $am_compiler_list; do
5641 # Setup a source with many dependencies, because some compilers
5642 # like to wrap large dependency lists on column 80 (with \), and
5643 # we should not choose a depcomp mode which is confused by this.
5644 #
5645 # We need to recreate these files for each test, as the compiler may
5646 # overwrite some of them when testing with obscure command lines.
5647 # This happens at least with the AIX C compiler.
5648 : > sub/conftest.c
5649 for i in 1 2 3 4 5 6; do
5650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5651 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5652 # Solaris 10 /bin/sh.
5653 echo '/* dummy */' > sub/conftst$i.h
5654 done
5655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5656
5657 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5658 # mode. It turns out that the SunPro C++ compiler does not properly
5659 # handle '-M -o', and we need to detect this. Also, some Intel
5660 # versions had trouble with output in subdirs.
5661 am__obj=sub/conftest.${OBJEXT-o}
5662 am__minus_obj="-o $am__obj"
5663 case $depmode in
5664 gcc)
5665 # This depmode causes a compiler race in universal mode.
5666 test "$am__universal" = false || continue
5667 ;;
5668 nosideeffect)
5669 # After this tag, mechanisms are not by side-effect, so they'll
5670 # only be used when explicitly requested.
5671 if test "x$enable_dependency_tracking" = xyes; then
5672 continue
5673 else
5674 break
5675 fi
5676 ;;
5677 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5678 # This compiler won't grok '-c -o', but also, the minuso test has
5679 # not run yet. These depmodes are late enough in the game, and
5680 # so weak that their functioning should not be impacted.
5681 am__obj=conftest.${OBJEXT-o}
5682 am__minus_obj=
5683 ;;
5684 none) break ;;
5685 esac
5686 if depmode=$depmode \
5687 source=sub/conftest.c object=$am__obj \
5688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5689 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5690 >/dev/null 2>conftest.err &&
5691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5693 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5695 # icc doesn't choke on unknown options, it will just issue warnings
5696 # or remarks (even with -Werror). So we grep stderr for any message
5697 # that says an option was ignored or not supported.
5698 # When given -MP, icc 7.0 and 7.1 complain thusly:
5699 # icc: Command line warning: ignoring option '-M'; no argument required
5700 # The diagnosis changed in icc 8.0:
5701 # icc: Command line remark: option '-MP' not supported
5702 if (grep 'ignoring option' conftest.err ||
5703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5704 am_cv_CC_dependencies_compiler_type=$depmode
5705 break
5706 fi
5707 fi
5708 done
5709
5710 cd ..
5711 rm -rf conftest.dir
5712else
5713 am_cv_CC_dependencies_compiler_type=none
5714fi
5715
5716fi
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5718$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5719CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5720
5721 if
5722 test "x$enable_dependency_tracking" != xno \
5723 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5724 am__fastdepCC_TRUE=
5725 am__fastdepCC_FALSE='#'
5726else
5727 am__fastdepCC_TRUE='#'
5728 am__fastdepCC_FALSE=
5729fi
5730
5731
5732
5733# POSIX will say in a future version that running "rm -f" with no argument
5734# is OK; and we want to be able to make that assumption in our Makefile
5735# recipes. So use an aggressive probe to check that the usage we want is
5736# actually supported "in the wild" to an acceptable degree.
5737# See automake bug#10828.
5738# To make any issue more visible, cause the running configure to be aborted
5739# by default if the 'rm' program in use doesn't match our expectations; the
5740# user can still override this though.
5741if rm -f && rm -fr && rm -rf; then : OK; else
5742 cat >&2 <<'END'
5743Oops!
5744
5745Your 'rm' program seems unable to run without file operands specified
5746on the command line, even when the '-f' option is present. This is contrary
5747to the behaviour of most rm programs out there, and not conforming with
5748the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5749
5750Please tell bug-automake@gnu.org about your system, including the value
5751of your $PATH and any error possibly output before this message. This
5752can help us improve future automake versions.
5753
5754END
5755 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5756 echo 'Configuration will proceed anyway, since you have set the' >&2
5757 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5758 echo >&2
5759 else
5760 cat >&2 <<'END'
5761Aborting the configuration process, to ensure you take notice of the issue.
5762
5763You can download and install GNU coreutils to get an 'rm' implementation
5764that behaves properly: <http://www.gnu.org/software/coreutils/>.
5765
5766If you want to complete the configuration process using your problematic
5767'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5768to "yes", and re-run configure.
5769
5770END
5771 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5772 fi
5773fi
5774
5775## ------------------------------------- ##
5776## End of automake initialization code ##
5777## ------------------------------------- ##
5778
5779
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5781$as_echo_n "checking curl version... " >&6; }
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5783$as_echo "$CURLVERSION" >&6; }
5784
5785
5786
5787VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5788
5789
5790PKGADD_PKG="HAXXcurl"
5791PKGADD_NAME="curl - a client that groks URLs"
5792PKGADD_VENDOR="curl.haxx.se"
5793
5794
5795
5796
Haibo Huangb6336c12019-06-05 01:34:44 -07005797 curl_ssl_msg="no (--with-{ssl,gnutls,nss,mbedtls,cyassl,schannel,secure-transport,mesalink,amissl} )"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005798 curl_ssh_msg="no (--with-libssh2)"
5799 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01005800 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005801 curl_gss_msg="no (--with-gssapi)"
5802curl_tls_srp_msg="no (--enable-tls-srp)"
5803 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5804 curl_ipv6_msg="no (--enable-ipv6)"
5805curl_unix_sockets_msg="no (--enable-unix-sockets)"
5806 curl_idn_msg="no (--with-{libidn2,winidn})"
5807 curl_manual_msg="no (--enable-manual)"
5808curl_libcurl_msg="enabled (--disable-libcurl-option)"
5809curl_verbose_msg="enabled (--disable-verbose)"
5810 curl_sspi_msg="no (--enable-sspi)"
5811 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5812 curl_ldaps_msg="no (--enable-ldaps)"
5813 curl_rtsp_msg="no (--enable-rtsp)"
5814 curl_rtmp_msg="no (--with-librtmp)"
5815 curl_mtlnk_msg="no (--with-libmetalink)"
5816 curl_psl_msg="no (--with-libpsl)"
5817
Alex Deymo486467e2017-12-19 19:04:07 +01005818 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07005819
5820INITIAL_LDFLAGS=$LDFLAGS
5821INITIAL_LIBS=$LIBS
5822
5823
5824# Make sure we can run config.sub.
5825$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5826 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5827
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5829$as_echo_n "checking build system type... " >&6; }
5830if ${ac_cv_build+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832else
5833 ac_build_alias=$build_alias
5834test "x$ac_build_alias" = x &&
5835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5836test "x$ac_build_alias" = x &&
5837 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5838ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5840
5841fi
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5843$as_echo "$ac_cv_build" >&6; }
5844case $ac_cv_build in
5845*-*-*) ;;
5846*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5847esac
5848build=$ac_cv_build
5849ac_save_IFS=$IFS; IFS='-'
5850set x $ac_cv_build
5851shift
5852build_cpu=$1
5853build_vendor=$2
5854shift; shift
5855# Remember, the first character of IFS is used to create $*,
5856# except with old shells:
5857build_os=$*
5858IFS=$ac_save_IFS
5859case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5860
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5863$as_echo_n "checking host system type... " >&6; }
5864if ${ac_cv_host+:} false; then :
5865 $as_echo_n "(cached) " >&6
5866else
5867 if test "x$host_alias" = x; then
5868 ac_cv_host=$ac_cv_build
5869else
5870 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5871 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5872fi
5873
5874fi
5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5876$as_echo "$ac_cv_host" >&6; }
5877case $ac_cv_host in
5878*-*-*) ;;
5879*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5880esac
5881host=$ac_cv_host
5882ac_save_IFS=$IFS; IFS='-'
5883set x $ac_cv_host
5884shift
5885host_cpu=$1
5886host_vendor=$2
5887shift; shift
5888# Remember, the first character of IFS is used to create $*,
5889# except with old shells:
5890host_os=$*
5891IFS=$ac_save_IFS
5892case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5893
5894
5895
5896cat >>confdefs.h <<_ACEOF
5897#define OS "${host}"
5898_ACEOF
5899
5900
Elliott Hughes72d948d2018-08-03 14:37:21 -07005901# Silence warning: ar: 'u' modifier ignored since 'D' is the default
5902AR_FLAGS=cr
5903
Elliott Hughes82be86d2017-09-20 17:00:17 -07005904
5905
5906
Elliott Hughes82be86d2017-09-20 17:00:17 -07005907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5908$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5909if ${ac_cv_path_GREP+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911else
5912 if test -z "$GREP"; then
5913 ac_path_GREP_found=false
5914 # Loop through the user's path and test for each of PROGNAME-LIST
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5917do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_prog in grep ggrep; do
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5923 as_fn_executable_p "$ac_path_GREP" || continue
5924# Check for GNU ac_path_GREP and select it if it is found.
5925 # Check for GNU $ac_path_GREP
5926case `"$ac_path_GREP" --version 2>&1` in
5927*GNU*)
5928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5929*)
5930 ac_count=0
5931 $as_echo_n 0123456789 >"conftest.in"
5932 while :
5933 do
5934 cat "conftest.in" "conftest.in" >"conftest.tmp"
5935 mv "conftest.tmp" "conftest.in"
5936 cp "conftest.in" "conftest.nl"
5937 $as_echo 'GREP' >> "conftest.nl"
5938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5940 as_fn_arith $ac_count + 1 && ac_count=$as_val
5941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5942 # Best one so far, save it but keep looking for a better one
5943 ac_cv_path_GREP="$ac_path_GREP"
5944 ac_path_GREP_max=$ac_count
5945 fi
5946 # 10*(2^10) chars as input seems more than enough
5947 test $ac_count -gt 10 && break
5948 done
5949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5950esac
5951
5952 $ac_path_GREP_found && break 3
5953 done
5954 done
5955 done
5956IFS=$as_save_IFS
5957 if test -z "$ac_cv_path_GREP"; then
5958 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5959 fi
5960else
5961 ac_cv_path_GREP=$GREP
5962fi
5963
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5966$as_echo "$ac_cv_path_GREP" >&6; }
5967 GREP="$ac_cv_path_GREP"
5968
5969
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5971$as_echo_n "checking for egrep... " >&6; }
5972if ${ac_cv_path_EGREP+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974else
5975 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5976 then ac_cv_path_EGREP="$GREP -E"
5977 else
5978 if test -z "$EGREP"; then
5979 ac_path_EGREP_found=false
5980 # Loop through the user's path and test for each of PROGNAME-LIST
5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5983do
5984 IFS=$as_save_IFS
5985 test -z "$as_dir" && as_dir=.
5986 for ac_prog in egrep; do
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5989 as_fn_executable_p "$ac_path_EGREP" || continue
5990# Check for GNU ac_path_EGREP and select it if it is found.
5991 # Check for GNU $ac_path_EGREP
5992case `"$ac_path_EGREP" --version 2>&1` in
5993*GNU*)
5994 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5995*)
5996 ac_count=0
5997 $as_echo_n 0123456789 >"conftest.in"
5998 while :
5999 do
6000 cat "conftest.in" "conftest.in" >"conftest.tmp"
6001 mv "conftest.tmp" "conftest.in"
6002 cp "conftest.in" "conftest.nl"
6003 $as_echo 'EGREP' >> "conftest.nl"
6004 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6005 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6006 as_fn_arith $ac_count + 1 && ac_count=$as_val
6007 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6008 # Best one so far, save it but keep looking for a better one
6009 ac_cv_path_EGREP="$ac_path_EGREP"
6010 ac_path_EGREP_max=$ac_count
6011 fi
6012 # 10*(2^10) chars as input seems more than enough
6013 test $ac_count -gt 10 && break
6014 done
6015 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6016esac
6017
6018 $ac_path_EGREP_found && break 3
6019 done
6020 done
6021 done
6022IFS=$as_save_IFS
6023 if test -z "$ac_cv_path_EGREP"; then
6024 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6025 fi
6026else
6027 ac_cv_path_EGREP=$EGREP
6028fi
6029
6030 fi
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6033$as_echo "$ac_cv_path_EGREP" >&6; }
6034 EGREP="$ac_cv_path_EGREP"
6035
6036
Elliott Hughes82be86d2017-09-20 17:00:17 -07006037
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6040$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042/* end confdefs.h. */
6043
6044#ifdef _AIX
6045 yes_this_is_aix
6046#endif
6047
6048_ACEOF
6049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6050 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6051
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6053$as_echo "yes" >&6; }
6054 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6055
6056
6057else
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060$as_echo "no" >&6; }
6061
6062fi
6063rm -f conftest*
6064
6065
6066
6067
6068 #
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6070$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072/* end confdefs.h. */
6073
6074
6075
6076int main (void)
6077{
6078
6079#ifdef _THREAD_SAFE
6080 int dummy=1;
6081#else
6082 force compilation error
6083#endif
6084
6085 ;
6086 return 0;
6087}
6088
6089_ACEOF
6090if ac_fn_c_try_compile "$LINENO"; then :
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093$as_echo "yes" >&6; }
6094 tmp_thread_safe_initially_defined="yes"
6095
6096else
6097
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6099$as_echo "no" >&6; }
6100 tmp_thread_safe_initially_defined="no"
6101
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104 #
6105 if test "$tmp_thread_safe_initially_defined" = "no"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6107$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6108
6109 case $host_os in
6110 aix[123].* | aix4.[012].*)
6111 tmp_need_thread_safe="no"
6112 ;;
6113 aix*)
6114 tmp_need_thread_safe="yes"
6115 ;;
6116 *)
6117 tmp_need_thread_safe="no"
6118 ;;
6119 esac
6120
6121 if test "$tmp_need_thread_safe" = "yes"; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6123$as_echo "yes" >&6; }
6124 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6126$as_echo "no" >&6; }
6127 fi
6128 fi
6129 #
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6131$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6132 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6133 test "$tmp_need_thread_safe" = "yes"; then
6134
6135
6136$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6137
6138cat >>confdefs.h <<_EOF
6139#ifndef _THREAD_SAFE
6140# define _THREAD_SAFE
6141#endif
6142_EOF
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6145$as_echo "yes" >&6; }
6146 else
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148$as_echo "no" >&6; }
6149 fi
6150 #
6151
6152
6153 #
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6155$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157/* end confdefs.h. */
6158
6159
6160
6161int main (void)
6162{
6163
6164#ifdef _REENTRANT
6165 int dummy=1;
6166#else
6167 force compilation error
6168#endif
6169
6170 ;
6171 return 0;
6172}
6173
6174_ACEOF
6175if ac_fn_c_try_compile "$LINENO"; then :
6176
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6178$as_echo "yes" >&6; }
6179 tmp_reentrant_initially_defined="yes"
6180
6181else
6182
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185 tmp_reentrant_initially_defined="no"
6186
6187fi
6188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189 #
6190 if test "$tmp_reentrant_initially_defined" = "no"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6192$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6193
6194 case $host_os in
6195 solaris*)
6196 tmp_need_reentrant="yes"
6197 ;;
6198 *)
6199 tmp_need_reentrant="no"
6200 ;;
6201 esac
6202
6203 if test "$tmp_need_reentrant" = "no"; then
6204
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206/* end confdefs.h. */
6207
6208
6209#include <errno.h>
6210
6211int main (void)
6212{
6213
6214 if(0 != errno)
6215 return 1;
6216
6217 ;
6218 return 0;
6219}
6220
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223
6224 tmp_errno="yes"
6225
6226else
6227
6228 tmp_errno="no"
6229
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 if test "$tmp_errno" = "yes"; then
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h. */
6235
6236
6237#include <errno.h>
6238
6239int main (void)
6240{
6241
6242#ifdef errno
6243 int dummy=1;
6244#else
6245 force compilation error
6246#endif
6247
6248 ;
6249 return 0;
6250}
6251
6252_ACEOF
6253if ac_fn_c_try_compile "$LINENO"; then :
6254
6255 tmp_errno="errno_macro_defined"
6256
6257else
6258
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h. */
6261
6262
6263#define _REENTRANT
6264#include <errno.h>
6265
6266int main (void)
6267{
6268
6269#ifdef errno
6270 int dummy=1;
6271#else
6272 force compilation error
6273#endif
6274
6275 ;
6276 return 0;
6277}
6278
6279_ACEOF
6280if ac_fn_c_try_compile "$LINENO"; then :
6281
6282 tmp_errno="errno_macro_needs_reentrant"
6283 tmp_need_reentrant="yes"
6284
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287
6288fi
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 fi
6291
6292 fi
6293 if test "$tmp_need_reentrant" = "no"; then
6294
6295 if test "$tmp_need_reentrant" = "no"; then
6296
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h. */
6299
6300
6301#define gmtime_r innocuous_gmtime_r
6302#ifdef __STDC__
6303# include <limits.h>
6304#else
6305# include <assert.h>
6306#endif
6307#undef gmtime_r
6308#ifdef __cplusplus
6309extern "C"
6310#endif
6311char gmtime_r ();
6312#if defined __stub_gmtime_r || defined __stub___gmtime_r
6313choke me
6314#endif
6315
6316int main (void)
6317{
6318return gmtime_r ();
6319 ;
6320 return 0;
6321}
6322
6323_ACEOF
6324if ac_fn_c_try_link "$LINENO"; then :
6325
6326 tmp_gmtime_r="yes"
6327
6328else
6329
6330 tmp_gmtime_r="no"
6331
6332fi
6333rm -f core conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6335 if test "$tmp_gmtime_r" = "yes"; then
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h. */
6338
6339#include <sys/types.h>
6340#include <time.h>
6341
6342_ACEOF
6343if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6344 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6345
6346 tmp_gmtime_r="proto_declared"
6347
6348else
6349
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h. */
6352
6353#define _REENTRANT
6354#include <sys/types.h>
6355#include <time.h>
6356
6357_ACEOF
6358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6359 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6360
6361 tmp_gmtime_r="proto_needs_reentrant"
6362 tmp_need_reentrant="yes"
6363
6364fi
6365rm -f conftest*
6366
6367
6368fi
6369rm -f conftest*
6370
6371 fi
6372
6373 fi
6374 if test "$tmp_need_reentrant" = "no"; then
6375
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377/* end confdefs.h. */
6378
6379
6380#define localtime_r innocuous_localtime_r
6381#ifdef __STDC__
6382# include <limits.h>
6383#else
6384# include <assert.h>
6385#endif
6386#undef localtime_r
6387#ifdef __cplusplus
6388extern "C"
6389#endif
6390char localtime_r ();
6391#if defined __stub_localtime_r || defined __stub___localtime_r
6392choke me
6393#endif
6394
6395int main (void)
6396{
6397return localtime_r ();
6398 ;
6399 return 0;
6400}
6401
6402_ACEOF
6403if ac_fn_c_try_link "$LINENO"; then :
6404
6405 tmp_localtime_r="yes"
6406
6407else
6408
6409 tmp_localtime_r="no"
6410
6411fi
6412rm -f core conftest.err conftest.$ac_objext \
6413 conftest$ac_exeext conftest.$ac_ext
6414 if test "$tmp_localtime_r" = "yes"; then
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h. */
6417
6418#include <sys/types.h>
6419#include <time.h>
6420
6421_ACEOF
6422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 $EGREP "localtime_r" >/dev/null 2>&1; then :
6424
6425 tmp_localtime_r="proto_declared"
6426
6427else
6428
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h. */
6431
6432#define _REENTRANT
6433#include <sys/types.h>
6434#include <time.h>
6435
6436_ACEOF
6437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 $EGREP "localtime_r" >/dev/null 2>&1; then :
6439
6440 tmp_localtime_r="proto_needs_reentrant"
6441 tmp_need_reentrant="yes"
6442
6443fi
6444rm -f conftest*
6445
6446
6447fi
6448rm -f conftest*
6449
6450 fi
6451
6452 fi
6453 if test "$tmp_need_reentrant" = "no"; then
6454
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456/* end confdefs.h. */
6457
6458
6459#define strerror_r innocuous_strerror_r
6460#ifdef __STDC__
6461# include <limits.h>
6462#else
6463# include <assert.h>
6464#endif
6465#undef strerror_r
6466#ifdef __cplusplus
6467extern "C"
6468#endif
6469char strerror_r ();
6470#if defined __stub_strerror_r || defined __stub___strerror_r
6471choke me
6472#endif
6473
6474int main (void)
6475{
6476return strerror_r ();
6477 ;
6478 return 0;
6479}
6480
6481_ACEOF
6482if ac_fn_c_try_link "$LINENO"; then :
6483
6484 tmp_strerror_r="yes"
6485
6486else
6487
6488 tmp_strerror_r="no"
6489
6490fi
6491rm -f core conftest.err conftest.$ac_objext \
6492 conftest$ac_exeext conftest.$ac_ext
6493 if test "$tmp_strerror_r" = "yes"; then
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h. */
6496
6497#include <sys/types.h>
6498#include <string.h>
6499
6500_ACEOF
6501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6502 $EGREP "strerror_r" >/dev/null 2>&1; then :
6503
6504 tmp_strerror_r="proto_declared"
6505
6506else
6507
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h. */
6510
6511#define _REENTRANT
6512#include <sys/types.h>
6513#include <string.h>
6514
6515_ACEOF
6516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6517 $EGREP "strerror_r" >/dev/null 2>&1; then :
6518
6519 tmp_strerror_r="proto_needs_reentrant"
6520 tmp_need_reentrant="yes"
6521
6522fi
6523rm -f conftest*
6524
6525
6526fi
6527rm -f conftest*
6528
6529 fi
6530
6531 fi
6532 if test "$tmp_need_reentrant" = "no"; then
6533
6534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535/* end confdefs.h. */
6536
6537
6538#define strtok_r innocuous_strtok_r
6539#ifdef __STDC__
6540# include <limits.h>
6541#else
6542# include <assert.h>
6543#endif
6544#undef strtok_r
6545#ifdef __cplusplus
6546extern "C"
6547#endif
6548char strtok_r ();
6549#if defined __stub_strtok_r || defined __stub___strtok_r
6550choke me
6551#endif
6552
6553int main (void)
6554{
6555return strtok_r ();
6556 ;
6557 return 0;
6558}
6559
6560_ACEOF
6561if ac_fn_c_try_link "$LINENO"; then :
6562
6563 tmp_strtok_r="yes"
6564
6565else
6566
6567 tmp_strtok_r="no"
6568
6569fi
6570rm -f core conftest.err conftest.$ac_objext \
6571 conftest$ac_exeext conftest.$ac_ext
6572 if test "$tmp_strtok_r" = "yes"; then
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h. */
6575
6576#include <sys/types.h>
6577#include <string.h>
6578
6579_ACEOF
6580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 $EGREP "strtok_r" >/dev/null 2>&1; then :
6582
6583 tmp_strtok_r="proto_declared"
6584
6585else
6586
6587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h. */
6589
6590#define _REENTRANT
6591#include <sys/types.h>
6592#include <string.h>
6593
6594_ACEOF
6595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6596 $EGREP "strtok_r" >/dev/null 2>&1; then :
6597
6598 tmp_strtok_r="proto_needs_reentrant"
6599 tmp_need_reentrant="yes"
6600
6601fi
6602rm -f conftest*
6603
6604
6605fi
6606rm -f conftest*
6607
6608 fi
6609
6610 fi
6611 if test "$tmp_need_reentrant" = "no"; then
6612
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614/* end confdefs.h. */
6615
6616
6617#define inet_ntoa_r innocuous_inet_ntoa_r
6618#ifdef __STDC__
6619# include <limits.h>
6620#else
6621# include <assert.h>
6622#endif
6623#undef inet_ntoa_r
6624#ifdef __cplusplus
6625extern "C"
6626#endif
6627char inet_ntoa_r ();
6628#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6629choke me
6630#endif
6631
6632int main (void)
6633{
6634return inet_ntoa_r ();
6635 ;
6636 return 0;
6637}
6638
6639_ACEOF
6640if ac_fn_c_try_link "$LINENO"; then :
6641
6642 tmp_inet_ntoa_r="yes"
6643
6644else
6645
6646 tmp_inet_ntoa_r="no"
6647
6648fi
6649rm -f core conftest.err conftest.$ac_objext \
6650 conftest$ac_exeext conftest.$ac_ext
6651 if test "$tmp_inet_ntoa_r" = "yes"; then
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653/* end confdefs.h. */
6654
6655#include <sys/types.h>
6656#include <sys/socket.h>
6657#include <netinet/in.h>
6658#include <arpa/inet.h>
6659
6660_ACEOF
6661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6662 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6663
6664 tmp_inet_ntoa_r="proto_declared"
6665
6666else
6667
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h. */
6670
6671#define _REENTRANT
6672#include <sys/types.h>
6673#include <sys/socket.h>
6674#include <netinet/in.h>
6675#include <arpa/inet.h>
6676
6677_ACEOF
6678if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6679 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6680
6681 tmp_inet_ntoa_r="proto_needs_reentrant"
6682 tmp_need_reentrant="yes"
6683
6684fi
6685rm -f conftest*
6686
6687
6688fi
6689rm -f conftest*
6690
6691 fi
6692
6693 fi
6694 if test "$tmp_need_reentrant" = "no"; then
6695
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697/* end confdefs.h. */
6698
6699
6700#define gethostbyaddr_r innocuous_gethostbyaddr_r
6701#ifdef __STDC__
6702# include <limits.h>
6703#else
6704# include <assert.h>
6705#endif
6706#undef gethostbyaddr_r
6707#ifdef __cplusplus
6708extern "C"
6709#endif
6710char gethostbyaddr_r ();
6711#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6712choke me
6713#endif
6714
6715int main (void)
6716{
6717return gethostbyaddr_r ();
6718 ;
6719 return 0;
6720}
6721
6722_ACEOF
6723if ac_fn_c_try_link "$LINENO"; then :
6724
6725 tmp_gethostbyaddr_r="yes"
6726
6727else
6728
6729 tmp_gethostbyaddr_r="no"
6730
6731fi
6732rm -f core conftest.err conftest.$ac_objext \
6733 conftest$ac_exeext conftest.$ac_ext
6734 if test "$tmp_gethostbyaddr_r" = "yes"; then
6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6736/* end confdefs.h. */
6737
6738#include <sys/types.h>
6739#include <netdb.h>
6740
6741_ACEOF
6742if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6744
6745 tmp_gethostbyaddr_r="proto_declared"
6746
6747else
6748
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750/* end confdefs.h. */
6751
6752#define _REENTRANT
6753#include <sys/types.h>
6754#include <netdb.h>
6755
6756_ACEOF
6757if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6758 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6759
6760 tmp_gethostbyaddr_r="proto_needs_reentrant"
6761 tmp_need_reentrant="yes"
6762
6763fi
6764rm -f conftest*
6765
6766
6767fi
6768rm -f conftest*
6769
6770 fi
6771
6772 fi
6773 if test "$tmp_need_reentrant" = "no"; then
6774
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h. */
6777
6778
6779#define gethostbyname_r innocuous_gethostbyname_r
6780#ifdef __STDC__
6781# include <limits.h>
6782#else
6783# include <assert.h>
6784#endif
6785#undef gethostbyname_r
6786#ifdef __cplusplus
6787extern "C"
6788#endif
6789char gethostbyname_r ();
6790#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6791choke me
6792#endif
6793
6794int main (void)
6795{
6796return gethostbyname_r ();
6797 ;
6798 return 0;
6799}
6800
6801_ACEOF
6802if ac_fn_c_try_link "$LINENO"; then :
6803
6804 tmp_gethostbyname_r="yes"
6805
6806else
6807
6808 tmp_gethostbyname_r="no"
6809
6810fi
6811rm -f core conftest.err conftest.$ac_objext \
6812 conftest$ac_exeext conftest.$ac_ext
6813 if test "$tmp_gethostbyname_r" = "yes"; then
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815/* end confdefs.h. */
6816
6817#include <sys/types.h>
6818#include <netdb.h>
6819
6820_ACEOF
6821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6822 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6823
6824 tmp_gethostbyname_r="proto_declared"
6825
6826else
6827
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h. */
6830
6831#define _REENTRANT
6832#include <sys/types.h>
6833#include <netdb.h>
6834
6835_ACEOF
6836if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6837 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6838
6839 tmp_gethostbyname_r="proto_needs_reentrant"
6840 tmp_need_reentrant="yes"
6841
6842fi
6843rm -f conftest*
6844
6845
6846fi
6847rm -f conftest*
6848
6849 fi
6850
6851 fi
6852 if test "$tmp_need_reentrant" = "no"; then
6853
6854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6855/* end confdefs.h. */
6856
6857
6858#define getprotobyname_r innocuous_getprotobyname_r
6859#ifdef __STDC__
6860# include <limits.h>
6861#else
6862# include <assert.h>
6863#endif
6864#undef getprotobyname_r
6865#ifdef __cplusplus
6866extern "C"
6867#endif
6868char getprotobyname_r ();
6869#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6870choke me
6871#endif
6872
6873int main (void)
6874{
6875return getprotobyname_r ();
6876 ;
6877 return 0;
6878}
6879
6880_ACEOF
6881if ac_fn_c_try_link "$LINENO"; then :
6882
6883 tmp_getprotobyname_r="yes"
6884
6885else
6886
6887 tmp_getprotobyname_r="no"
6888
6889fi
6890rm -f core conftest.err conftest.$ac_objext \
6891 conftest$ac_exeext conftest.$ac_ext
6892 if test "$tmp_getprotobyname_r" = "yes"; then
6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h. */
6895
6896#include <sys/types.h>
6897#include <netdb.h>
6898
6899_ACEOF
6900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6901 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6902
6903 tmp_getprotobyname_r="proto_declared"
6904
6905else
6906
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h. */
6909
6910#define _REENTRANT
6911#include <sys/types.h>
6912#include <netdb.h>
6913
6914_ACEOF
6915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6917
6918 tmp_getprotobyname_r="proto_needs_reentrant"
6919 tmp_need_reentrant="yes"
6920
6921fi
6922rm -f conftest*
6923
6924
6925fi
6926rm -f conftest*
6927
6928 fi
6929
6930 fi
6931 if test "$tmp_need_reentrant" = "no"; then
6932
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934/* end confdefs.h. */
6935
6936
6937#define getservbyport_r innocuous_getservbyport_r
6938#ifdef __STDC__
6939# include <limits.h>
6940#else
6941# include <assert.h>
6942#endif
6943#undef getservbyport_r
6944#ifdef __cplusplus
6945extern "C"
6946#endif
6947char getservbyport_r ();
6948#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6949choke me
6950#endif
6951
6952int main (void)
6953{
6954return getservbyport_r ();
6955 ;
6956 return 0;
6957}
6958
6959_ACEOF
6960if ac_fn_c_try_link "$LINENO"; then :
6961
6962 tmp_getservbyport_r="yes"
6963
6964else
6965
6966 tmp_getservbyport_r="no"
6967
6968fi
6969rm -f core conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
6971 if test "$tmp_getservbyport_r" = "yes"; then
6972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6973/* end confdefs.h. */
6974
6975#include <sys/types.h>
6976#include <netdb.h>
6977
6978_ACEOF
6979if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6980 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6981
6982 tmp_getservbyport_r="proto_declared"
6983
6984else
6985
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987/* end confdefs.h. */
6988
6989#define _REENTRANT
6990#include <sys/types.h>
6991#include <netdb.h>
6992
6993_ACEOF
6994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6995 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6996
6997 tmp_getservbyport_r="proto_needs_reentrant"
6998 tmp_need_reentrant="yes"
6999
7000fi
7001rm -f conftest*
7002
7003
7004fi
7005rm -f conftest*
7006
7007 fi
7008
7009 fi
7010
7011 fi
7012 if test "$tmp_need_reentrant" = "yes"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7014$as_echo "yes" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
7018 fi
7019 fi
7020 #
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7022$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7023 if test "$tmp_reentrant_initially_defined" = "yes" ||
7024 test "$tmp_need_reentrant" = "yes"; then
7025
7026
7027$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7028
7029cat >>confdefs.h <<_EOF
7030#ifndef _REENTRANT
7031# define _REENTRANT
7032#endif
7033_EOF
7034
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7036$as_echo "yes" >&6; }
7037 else
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039$as_echo "no" >&6; }
7040 fi
7041 #
7042
7043
7044# Check whether --enable-largefile was given.
7045if test "${enable_largefile+set}" = set; then :
7046 enableval=$enable_largefile;
7047fi
7048
7049if test "$enable_largefile" != no; then
7050
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7052$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7053if ${ac_cv_sys_largefile_CC+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055else
7056 ac_cv_sys_largefile_CC=no
7057 if test "$GCC" != yes; then
7058 ac_save_CC=$CC
7059 while :; do
7060 # IRIX 6.2 and later do not support large files by default,
7061 # so use the C compiler's -n32 option if that helps.
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063/* end confdefs.h. */
7064#include <sys/types.h>
7065 /* Check that off_t can represent 2**63 - 1 correctly.
7066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7067 since some C++ compilers masquerading as C compilers
7068 incorrectly reject 9223372036854775807. */
7069#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7071 && LARGE_OFF_T % 2147483647 == 1)
7072 ? 1 : -1];
7073int main (void)
7074{
7075
7076 ;
7077 return 0;
7078}
7079_ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 break
7082fi
7083rm -f core conftest.err conftest.$ac_objext
7084 CC="$CC -n32"
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 ac_cv_sys_largefile_CC=' -n32'; break
7087fi
7088rm -f core conftest.err conftest.$ac_objext
7089 break
7090 done
7091 CC=$ac_save_CC
7092 rm -f conftest.$ac_ext
7093 fi
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7096$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7097 if test "$ac_cv_sys_largefile_CC" != no; then
7098 CC=$CC$ac_cv_sys_largefile_CC
7099 fi
7100
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7102$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7103if ${ac_cv_sys_file_offset_bits+:} false; then :
7104 $as_echo_n "(cached) " >&6
7105else
7106 while :; do
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h. */
7109#include <sys/types.h>
7110 /* Check that off_t can represent 2**63 - 1 correctly.
7111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7112 since some C++ compilers masquerading as C compilers
7113 incorrectly reject 9223372036854775807. */
7114#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7116 && LARGE_OFF_T % 2147483647 == 1)
7117 ? 1 : -1];
7118int main (void)
7119{
7120
7121 ;
7122 return 0;
7123}
7124_ACEOF
7125if ac_fn_c_try_compile "$LINENO"; then :
7126 ac_cv_sys_file_offset_bits=no; break
7127fi
7128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130/* end confdefs.h. */
7131#define _FILE_OFFSET_BITS 64
7132#include <sys/types.h>
7133 /* Check that off_t can represent 2**63 - 1 correctly.
7134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7135 since some C++ compilers masquerading as C compilers
7136 incorrectly reject 9223372036854775807. */
7137#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7139 && LARGE_OFF_T % 2147483647 == 1)
7140 ? 1 : -1];
7141int main (void)
7142{
7143
7144 ;
7145 return 0;
7146}
7147_ACEOF
7148if ac_fn_c_try_compile "$LINENO"; then :
7149 ac_cv_sys_file_offset_bits=64; break
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7152 ac_cv_sys_file_offset_bits=unknown
7153 break
7154done
7155fi
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7157$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7158case $ac_cv_sys_file_offset_bits in #(
7159 no | unknown) ;;
7160 *)
7161cat >>confdefs.h <<_ACEOF
7162#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7163_ACEOF
7164;;
7165esac
7166rm -rf conftest*
7167 if test $ac_cv_sys_file_offset_bits = unknown; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7169$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7170if ${ac_cv_sys_large_files+:} false; then :
7171 $as_echo_n "(cached) " >&6
7172else
7173 while :; do
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175/* end confdefs.h. */
7176#include <sys/types.h>
7177 /* Check that off_t can represent 2**63 - 1 correctly.
7178 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7179 since some C++ compilers masquerading as C compilers
7180 incorrectly reject 9223372036854775807. */
7181#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7183 && LARGE_OFF_T % 2147483647 == 1)
7184 ? 1 : -1];
7185int main (void)
7186{
7187
7188 ;
7189 return 0;
7190}
7191_ACEOF
7192if ac_fn_c_try_compile "$LINENO"; then :
7193 ac_cv_sys_large_files=no; break
7194fi
7195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197/* end confdefs.h. */
7198#define _LARGE_FILES 1
7199#include <sys/types.h>
7200 /* Check that off_t can represent 2**63 - 1 correctly.
7201 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7202 since some C++ compilers masquerading as C compilers
7203 incorrectly reject 9223372036854775807. */
7204#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7205 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7206 && LARGE_OFF_T % 2147483647 == 1)
7207 ? 1 : -1];
7208int main (void)
7209{
7210
7211 ;
7212 return 0;
7213}
7214_ACEOF
7215if ac_fn_c_try_compile "$LINENO"; then :
7216 ac_cv_sys_large_files=1; break
7217fi
7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 ac_cv_sys_large_files=unknown
7220 break
7221done
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7224$as_echo "$ac_cv_sys_large_files" >&6; }
7225case $ac_cv_sys_large_files in #(
7226 no | unknown) ;;
7227 *)
7228cat >>confdefs.h <<_ACEOF
7229#define _LARGE_FILES $ac_cv_sys_large_files
7230_ACEOF
7231;;
7232esac
7233rm -rf conftest*
7234 fi
7235
7236
7237fi
7238
7239
7240case `pwd` in
7241 *\ * | *\ *)
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7243$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7244esac
7245
7246
7247
7248macro_version='2.4.6'
7249macro_revision='2.4.6'
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263ltmain=$ac_aux_dir/ltmain.sh
7264
7265# Backslashify metacharacters that are still active within
7266# double-quoted strings.
7267sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7268
7269# Same as above, but do not quote variable references.
7270double_quote_subst='s/\(["`\\]\)/\\\1/g'
7271
7272# Sed substitution to delay expansion of an escaped shell variable in a
7273# double_quote_subst'ed string.
7274delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7275
7276# Sed substitution to delay expansion of an escaped single quote.
7277delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7278
7279# Sed substitution to avoid accidental globbing in evaled expressions
7280no_glob_subst='s/\*/\\\*/g'
7281
7282ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7283ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7284ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7287$as_echo_n "checking how to print strings... " >&6; }
7288# Test print first, because it will be a builtin if present.
7289if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7290 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7291 ECHO='print -r --'
7292elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7293 ECHO='printf %s\n'
7294else
7295 # Use this function as a fallback that always works.
7296 func_fallback_echo ()
7297 {
7298 eval 'cat <<_LTECHO_EOF
7299$1
7300_LTECHO_EOF'
7301 }
7302 ECHO='func_fallback_echo'
7303fi
7304
7305# func_echo_all arg...
7306# Invoke $ECHO with all args, space-separated.
7307func_echo_all ()
7308{
7309 $ECHO ""
7310}
7311
7312case $ECHO in
7313 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7314$as_echo "printf" >&6; } ;;
7315 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7316$as_echo "print -r" >&6; } ;;
7317 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7318$as_echo "cat" >&6; } ;;
7319esac
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7335$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7336if ${ac_cv_path_SED+:} false; then :
7337 $as_echo_n "(cached) " >&6
7338else
7339 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7340 for ac_i in 1 2 3 4 5 6 7; do
7341 ac_script="$ac_script$as_nl$ac_script"
7342 done
7343 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7344 { ac_script=; unset ac_script;}
7345 if test -z "$SED"; then
7346 ac_path_SED_found=false
7347 # Loop through the user's path and test for each of PROGNAME-LIST
7348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349for as_dir in $PATH
7350do
7351 IFS=$as_save_IFS
7352 test -z "$as_dir" && as_dir=.
7353 for ac_prog in sed gsed; do
7354 for ac_exec_ext in '' $ac_executable_extensions; do
7355 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7356 as_fn_executable_p "$ac_path_SED" || continue
7357# Check for GNU ac_path_SED and select it if it is found.
7358 # Check for GNU $ac_path_SED
7359case `"$ac_path_SED" --version 2>&1` in
7360*GNU*)
7361 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7362*)
7363 ac_count=0
7364 $as_echo_n 0123456789 >"conftest.in"
7365 while :
7366 do
7367 cat "conftest.in" "conftest.in" >"conftest.tmp"
7368 mv "conftest.tmp" "conftest.in"
7369 cp "conftest.in" "conftest.nl"
7370 $as_echo '' >> "conftest.nl"
7371 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7373 as_fn_arith $ac_count + 1 && ac_count=$as_val
7374 if test $ac_count -gt ${ac_path_SED_max-0}; then
7375 # Best one so far, save it but keep looking for a better one
7376 ac_cv_path_SED="$ac_path_SED"
7377 ac_path_SED_max=$ac_count
7378 fi
7379 # 10*(2^10) chars as input seems more than enough
7380 test $ac_count -gt 10 && break
7381 done
7382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7383esac
7384
7385 $ac_path_SED_found && break 3
7386 done
7387 done
7388 done
7389IFS=$as_save_IFS
7390 if test -z "$ac_cv_path_SED"; then
7391 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7392 fi
7393else
7394 ac_cv_path_SED=$SED
7395fi
7396
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7399$as_echo "$ac_cv_path_SED" >&6; }
7400 SED="$ac_cv_path_SED"
7401 rm -f conftest.sed
7402
7403test -z "$SED" && SED=sed
7404Xsed="$SED -e 1s/^X//"
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7417$as_echo_n "checking for fgrep... " >&6; }
7418if ${ac_cv_path_FGREP+:} false; then :
7419 $as_echo_n "(cached) " >&6
7420else
7421 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7422 then ac_cv_path_FGREP="$GREP -F"
7423 else
7424 if test -z "$FGREP"; then
7425 ac_path_FGREP_found=false
7426 # Loop through the user's path and test for each of PROGNAME-LIST
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7429do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_prog in fgrep; do
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7435 as_fn_executable_p "$ac_path_FGREP" || continue
7436# Check for GNU ac_path_FGREP and select it if it is found.
7437 # Check for GNU $ac_path_FGREP
7438case `"$ac_path_FGREP" --version 2>&1` in
7439*GNU*)
7440 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7441*)
7442 ac_count=0
7443 $as_echo_n 0123456789 >"conftest.in"
7444 while :
7445 do
7446 cat "conftest.in" "conftest.in" >"conftest.tmp"
7447 mv "conftest.tmp" "conftest.in"
7448 cp "conftest.in" "conftest.nl"
7449 $as_echo 'FGREP' >> "conftest.nl"
7450 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7452 as_fn_arith $ac_count + 1 && ac_count=$as_val
7453 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7454 # Best one so far, save it but keep looking for a better one
7455 ac_cv_path_FGREP="$ac_path_FGREP"
7456 ac_path_FGREP_max=$ac_count
7457 fi
7458 # 10*(2^10) chars as input seems more than enough
7459 test $ac_count -gt 10 && break
7460 done
7461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7462esac
7463
7464 $ac_path_FGREP_found && break 3
7465 done
7466 done
7467 done
7468IFS=$as_save_IFS
7469 if test -z "$ac_cv_path_FGREP"; then
7470 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7471 fi
7472else
7473 ac_cv_path_FGREP=$FGREP
7474fi
7475
7476 fi
7477fi
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7479$as_echo "$ac_cv_path_FGREP" >&6; }
7480 FGREP="$ac_cv_path_FGREP"
7481
7482
7483test -z "$GREP" && GREP=grep
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503# Check whether --with-gnu-ld was given.
7504if test "${with_gnu_ld+set}" = set; then :
7505 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7506else
7507 with_gnu_ld=no
7508fi
7509
7510ac_prog=ld
7511if test yes = "$GCC"; then
7512 # Check if gcc -print-prog-name=ld gives a path.
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7514$as_echo_n "checking for ld used by $CC... " >&6; }
7515 case $host in
7516 *-*-mingw*)
7517 # gcc leaves a trailing carriage return, which upsets mingw
7518 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7519 *)
7520 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7521 esac
7522 case $ac_prog in
7523 # Accept absolute paths.
7524 [\\/]* | ?:[\\/]*)
7525 re_direlt='/[^/][^/]*/\.\./'
7526 # Canonicalize the pathname of ld
7527 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7528 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7529 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7530 done
7531 test -z "$LD" && LD=$ac_prog
7532 ;;
7533 "")
7534 # If it fails, then pretend we aren't using GCC.
7535 ac_prog=ld
7536 ;;
7537 *)
7538 # If it is relative, then search for the first ld in PATH.
7539 with_gnu_ld=unknown
7540 ;;
7541 esac
7542elif test yes = "$with_gnu_ld"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7544$as_echo_n "checking for GNU ld... " >&6; }
7545else
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7547$as_echo_n "checking for non-GNU ld... " >&6; }
7548fi
7549if ${lt_cv_path_LD+:} false; then :
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -z "$LD"; then
7553 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7554 for ac_dir in $PATH; do
7555 IFS=$lt_save_ifs
7556 test -z "$ac_dir" && ac_dir=.
7557 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7558 lt_cv_path_LD=$ac_dir/$ac_prog
7559 # Check to see if the program is GNU ld. I'd rather use --version,
7560 # but apparently some variants of GNU ld only accept -v.
7561 # Break only if it was the GNU/non-GNU ld that we prefer.
7562 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7563 *GNU* | *'with BFD'*)
7564 test no != "$with_gnu_ld" && break
7565 ;;
7566 *)
7567 test yes != "$with_gnu_ld" && break
7568 ;;
7569 esac
7570 fi
7571 done
7572 IFS=$lt_save_ifs
7573else
7574 lt_cv_path_LD=$LD # Let the user override the test with a path.
7575fi
7576fi
7577
7578LD=$lt_cv_path_LD
7579if test -n "$LD"; then
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7581$as_echo "$LD" >&6; }
7582else
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585fi
7586test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7588$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7589if ${lt_cv_prog_gnu_ld+:} false; then :
7590 $as_echo_n "(cached) " >&6
7591else
7592 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7593case `$LD -v 2>&1 </dev/null` in
7594*GNU* | *'with BFD'*)
7595 lt_cv_prog_gnu_ld=yes
7596 ;;
7597*)
7598 lt_cv_prog_gnu_ld=no
7599 ;;
7600esac
7601fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7603$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7604with_gnu_ld=$lt_cv_prog_gnu_ld
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7615$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7616if ${lt_cv_path_NM+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618else
7619 if test -n "$NM"; then
7620 # Let the user override the test.
7621 lt_cv_path_NM=$NM
7622else
7623 lt_nm_to_check=${ac_tool_prefix}nm
7624 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7625 lt_nm_to_check="$lt_nm_to_check nm"
7626 fi
7627 for lt_tmp_nm in $lt_nm_to_check; do
7628 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7629 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7630 IFS=$lt_save_ifs
7631 test -z "$ac_dir" && ac_dir=.
7632 tmp_nm=$ac_dir/$lt_tmp_nm
7633 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7634 # Check to see if the nm accepts a BSD-compat flag.
7635 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7636 # nm: unknown option "B" ignored
7637 # Tru64's nm complains that /dev/null is an invalid object file
7638 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7639 case $build_os in
7640 mingw*) lt_bad_file=conftest.nm/nofile ;;
7641 *) lt_bad_file=/dev/null ;;
7642 esac
7643 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7644 *$lt_bad_file* | *'Invalid file or object type'*)
7645 lt_cv_path_NM="$tmp_nm -B"
7646 break 2
7647 ;;
7648 *)
7649 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7650 */dev/null*)
7651 lt_cv_path_NM="$tmp_nm -p"
7652 break 2
7653 ;;
7654 *)
7655 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7656 continue # so that we can try to find one that supports BSD flags
7657 ;;
7658 esac
7659 ;;
7660 esac
7661 fi
7662 done
7663 IFS=$lt_save_ifs
7664 done
7665 : ${lt_cv_path_NM=no}
7666fi
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7669$as_echo "$lt_cv_path_NM" >&6; }
7670if test no != "$lt_cv_path_NM"; then
7671 NM=$lt_cv_path_NM
7672else
7673 # Didn't find any BSD compatible name lister, look for dumpbin.
7674 if test -n "$DUMPBIN"; then :
7675 # Let the user override the test.
7676 else
7677 if test -n "$ac_tool_prefix"; then
7678 for ac_prog in dumpbin "link -dump"
7679 do
7680 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7683$as_echo_n "checking for $ac_word... " >&6; }
7684if ${ac_cv_prog_DUMPBIN+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686else
7687 if test -n "$DUMPBIN"; then
7688 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7689else
7690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691for as_dir in $PATH
7692do
7693 IFS=$as_save_IFS
7694 test -z "$as_dir" && as_dir=.
7695 for ac_exec_ext in '' $ac_executable_extensions; do
7696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7697 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7699 break 2
7700 fi
7701done
7702 done
7703IFS=$as_save_IFS
7704
7705fi
7706fi
7707DUMPBIN=$ac_cv_prog_DUMPBIN
7708if test -n "$DUMPBIN"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7710$as_echo "$DUMPBIN" >&6; }
7711else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713$as_echo "no" >&6; }
7714fi
7715
7716
7717 test -n "$DUMPBIN" && break
7718 done
7719fi
7720if test -z "$DUMPBIN"; then
7721 ac_ct_DUMPBIN=$DUMPBIN
7722 for ac_prog in dumpbin "link -dump"
7723do
7724 # Extract the first word of "$ac_prog", so it can be a program name with args.
7725set dummy $ac_prog; ac_word=$2
7726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727$as_echo_n "checking for $ac_word... " >&6; }
7728if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730else
7731 if test -n "$ac_ct_DUMPBIN"; then
7732 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7733else
7734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735for as_dir in $PATH
7736do
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7744 fi
7745done
7746 done
7747IFS=$as_save_IFS
7748
7749fi
7750fi
7751ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7752if test -n "$ac_ct_DUMPBIN"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7754$as_echo "$ac_ct_DUMPBIN" >&6; }
7755else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757$as_echo "no" >&6; }
7758fi
7759
7760
7761 test -n "$ac_ct_DUMPBIN" && break
7762done
7763
7764 if test "x$ac_ct_DUMPBIN" = x; then
7765 DUMPBIN=":"
7766 else
7767 case $cross_compiling:$ac_tool_warned in
7768yes:)
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7771ac_tool_warned=yes ;;
7772esac
7773 DUMPBIN=$ac_ct_DUMPBIN
7774 fi
7775fi
7776
7777 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7778 *COFF*)
7779 DUMPBIN="$DUMPBIN -symbols -headers"
7780 ;;
7781 *)
7782 DUMPBIN=:
7783 ;;
7784 esac
7785 fi
7786
7787 if test : != "$DUMPBIN"; then
7788 NM=$DUMPBIN
7789 fi
7790fi
7791test -z "$NM" && NM=nm
7792
7793
7794
7795
7796
7797
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7799$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7800if ${lt_cv_nm_interface+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802else
7803 lt_cv_nm_interface="BSD nm"
7804 echo "int some_variable = 0;" > conftest.$ac_ext
7805 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7806 (eval "$ac_compile" 2>conftest.err)
7807 cat conftest.err >&5
7808 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7809 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7810 cat conftest.err >&5
7811 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7812 cat conftest.out >&5
7813 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7814 lt_cv_nm_interface="MS dumpbin"
7815 fi
7816 rm -f conftest*
7817fi
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7819$as_echo "$lt_cv_nm_interface" >&6; }
7820
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7822$as_echo_n "checking whether ln -s works... " >&6; }
7823LN_S=$as_ln_s
7824if test "$LN_S" = "ln -s"; then
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7826$as_echo "yes" >&6; }
7827else
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7829$as_echo "no, using $LN_S" >&6; }
7830fi
7831
7832# find the maximum length of command line arguments
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7834$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7835if ${lt_cv_sys_max_cmd_len+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837else
7838 i=0
7839 teststring=ABCD
7840
7841 case $build_os in
7842 msdosdjgpp*)
7843 # On DJGPP, this test can blow up pretty badly due to problems in libc
7844 # (any single argument exceeding 2000 bytes causes a buffer overrun
7845 # during glob expansion). Even if it were fixed, the result of this
7846 # check would be larger than it should be.
7847 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7848 ;;
7849
7850 gnu*)
7851 # Under GNU Hurd, this test is not required because there is
7852 # no limit to the length of command line arguments.
7853 # Libtool will interpret -1 as no limit whatsoever
7854 lt_cv_sys_max_cmd_len=-1;
7855 ;;
7856
7857 cygwin* | mingw* | cegcc*)
7858 # On Win9x/ME, this test blows up -- it succeeds, but takes
7859 # about 5 minutes as the teststring grows exponentially.
7860 # Worse, since 9x/ME are not pre-emptively multitasking,
7861 # you end up with a "frozen" computer, even though with patience
7862 # the test eventually succeeds (with a max line length of 256k).
7863 # Instead, let's just punt: use the minimum linelength reported by
7864 # all of the supported platforms: 8192 (on NT/2K/XP).
7865 lt_cv_sys_max_cmd_len=8192;
7866 ;;
7867
7868 mint*)
7869 # On MiNT this can take a long time and run out of memory.
7870 lt_cv_sys_max_cmd_len=8192;
7871 ;;
7872
7873 amigaos*)
7874 # On AmigaOS with pdksh, this test takes hours, literally.
7875 # So we just punt and use a minimum line length of 8192.
7876 lt_cv_sys_max_cmd_len=8192;
7877 ;;
7878
7879 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7880 # This has been around since 386BSD, at least. Likely further.
7881 if test -x /sbin/sysctl; then
7882 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7883 elif test -x /usr/sbin/sysctl; then
7884 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7885 else
7886 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7887 fi
7888 # And add a safety zone
7889 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7890 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7891 ;;
7892
7893 interix*)
7894 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7895 lt_cv_sys_max_cmd_len=196608
7896 ;;
7897
7898 os2*)
7899 # The test takes a long time on OS/2.
7900 lt_cv_sys_max_cmd_len=8192
7901 ;;
7902
7903 osf*)
7904 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7905 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7906 # nice to cause kernel panics so lets avoid the loop below.
7907 # First set a reasonable default.
7908 lt_cv_sys_max_cmd_len=16384
7909 #
7910 if test -x /sbin/sysconfig; then
7911 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7912 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7913 esac
7914 fi
7915 ;;
7916 sco3.2v5*)
7917 lt_cv_sys_max_cmd_len=102400
7918 ;;
7919 sysv5* | sco5v6* | sysv4.2uw2*)
7920 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7921 if test -n "$kargmax"; then
7922 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7923 else
7924 lt_cv_sys_max_cmd_len=32768
7925 fi
7926 ;;
7927 *)
7928 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7929 if test -n "$lt_cv_sys_max_cmd_len" && \
7930 test undefined != "$lt_cv_sys_max_cmd_len"; then
7931 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7932 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7933 else
7934 # Make teststring a little bigger before we do anything with it.
7935 # a 1K string should be a reasonable start.
7936 for i in 1 2 3 4 5 6 7 8; do
7937 teststring=$teststring$teststring
7938 done
7939 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7940 # If test is not a shell built-in, we'll probably end up computing a
7941 # maximum length that is only half of the actual maximum length, but
7942 # we can't tell.
7943 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7944 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7945 test 17 != "$i" # 1/2 MB should be enough
7946 do
7947 i=`expr $i + 1`
7948 teststring=$teststring$teststring
7949 done
7950 # Only check the string length outside the loop.
7951 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7952 teststring=
7953 # Add a significant safety factor because C++ compilers can tack on
7954 # massive amounts of additional arguments before passing them to the
7955 # linker. It appears as though 1/2 is a usable value.
7956 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7957 fi
7958 ;;
7959 esac
7960
7961fi
7962
7963if test -n "$lt_cv_sys_max_cmd_len"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7965$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7966else
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7968$as_echo "none" >&6; }
7969fi
7970max_cmd_len=$lt_cv_sys_max_cmd_len
7971
7972
7973
7974
7975
7976
7977: ${CP="cp -f"}
7978: ${MV="mv -f"}
7979: ${RM="rm -f"}
7980
7981if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7982 lt_unset=unset
7983else
7984 lt_unset=false
7985fi
7986
7987
7988
7989
7990
7991# test EBCDIC or ASCII
7992case `echo X|tr X '\101'` in
7993 A) # ASCII based system
7994 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7995 lt_SP2NL='tr \040 \012'
7996 lt_NL2SP='tr \015\012 \040\040'
7997 ;;
7998 *) # EBCDIC based system
7999 lt_SP2NL='tr \100 \n'
8000 lt_NL2SP='tr \r\n \100\100'
8001 ;;
8002esac
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8013$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8014if ${lt_cv_to_host_file_cmd+:} false; then :
8015 $as_echo_n "(cached) " >&6
8016else
8017 case $host in
8018 *-*-mingw* )
8019 case $build in
8020 *-*-mingw* ) # actually msys
8021 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8022 ;;
8023 *-*-cygwin* )
8024 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8025 ;;
8026 * ) # otherwise, assume *nix
8027 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8028 ;;
8029 esac
8030 ;;
8031 *-*-cygwin* )
8032 case $build in
8033 *-*-mingw* ) # actually msys
8034 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8035 ;;
8036 *-*-cygwin* )
8037 lt_cv_to_host_file_cmd=func_convert_file_noop
8038 ;;
8039 * ) # otherwise, assume *nix
8040 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8041 ;;
8042 esac
8043 ;;
8044 * ) # unhandled hosts (and "normal" native builds)
8045 lt_cv_to_host_file_cmd=func_convert_file_noop
8046 ;;
8047esac
8048
8049fi
8050
8051to_host_file_cmd=$lt_cv_to_host_file_cmd
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8053$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8054
8055
8056
8057
8058
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8060$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8061if ${lt_cv_to_tool_file_cmd+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063else
8064 #assume ordinary cross tools, or native build.
8065lt_cv_to_tool_file_cmd=func_convert_file_noop
8066case $host in
8067 *-*-mingw* )
8068 case $build in
8069 *-*-mingw* ) # actually msys
8070 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8071 ;;
8072 esac
8073 ;;
8074esac
8075
8076fi
8077
8078to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8080$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8081
8082
8083
8084
8085
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8087$as_echo_n "checking for $LD option to reload object files... " >&6; }
8088if ${lt_cv_ld_reload_flag+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090else
8091 lt_cv_ld_reload_flag='-r'
8092fi
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8094$as_echo "$lt_cv_ld_reload_flag" >&6; }
8095reload_flag=$lt_cv_ld_reload_flag
8096case $reload_flag in
8097"" | " "*) ;;
8098*) reload_flag=" $reload_flag" ;;
8099esac
8100reload_cmds='$LD$reload_flag -o $output$reload_objs'
8101case $host_os in
8102 cygwin* | mingw* | pw32* | cegcc*)
8103 if test yes != "$GCC"; then
8104 reload_cmds=false
8105 fi
8106 ;;
8107 darwin*)
8108 if test yes = "$GCC"; then
8109 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8110 else
8111 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8112 fi
8113 ;;
8114esac
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124if test -n "$ac_tool_prefix"; then
8125 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8126set dummy ${ac_tool_prefix}objdump; ac_word=$2
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128$as_echo_n "checking for $ac_word... " >&6; }
8129if ${ac_cv_prog_OBJDUMP+:} false; then :
8130 $as_echo_n "(cached) " >&6
8131else
8132 if test -n "$OBJDUMP"; then
8133 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8134else
8135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8145 fi
8146done
8147 done
8148IFS=$as_save_IFS
8149
8150fi
8151fi
8152OBJDUMP=$ac_cv_prog_OBJDUMP
8153if test -n "$OBJDUMP"; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8155$as_echo "$OBJDUMP" >&6; }
8156else
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158$as_echo "no" >&6; }
8159fi
8160
8161
8162fi
8163if test -z "$ac_cv_prog_OBJDUMP"; then
8164 ac_ct_OBJDUMP=$OBJDUMP
8165 # Extract the first word of "objdump", so it can be a program name with args.
8166set dummy objdump; ac_word=$2
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168$as_echo_n "checking for $ac_word... " >&6; }
8169if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171else
8172 if test -n "$ac_ct_OBJDUMP"; then
8173 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8174else
8175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186done
8187 done
8188IFS=$as_save_IFS
8189
8190fi
8191fi
8192ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8193if test -n "$ac_ct_OBJDUMP"; then
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8195$as_echo "$ac_ct_OBJDUMP" >&6; }
8196else
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }
8199fi
8200
8201 if test "x$ac_ct_OBJDUMP" = x; then
8202 OBJDUMP="false"
8203 else
8204 case $cross_compiling:$ac_tool_warned in
8205yes:)
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8208ac_tool_warned=yes ;;
8209esac
8210 OBJDUMP=$ac_ct_OBJDUMP
8211 fi
8212else
8213 OBJDUMP="$ac_cv_prog_OBJDUMP"
8214fi
8215
8216test -z "$OBJDUMP" && OBJDUMP=objdump
8217
8218
8219
8220
8221
8222
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8224$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8225if ${lt_cv_deplibs_check_method+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227else
8228 lt_cv_file_magic_cmd='$MAGIC_CMD'
8229lt_cv_file_magic_test_file=
8230lt_cv_deplibs_check_method='unknown'
8231# Need to set the preceding variable on all platforms that support
8232# interlibrary dependencies.
8233# 'none' -- dependencies not supported.
8234# 'unknown' -- same as none, but documents that we really don't know.
8235# 'pass_all' -- all dependencies passed with no checks.
8236# 'test_compile' -- check by making test program.
8237# 'file_magic [[regex]]' -- check by looking for files in library path
8238# that responds to the $file_magic_cmd with a given extended regex.
8239# If you have 'file' or equivalent on your system and you're not sure
8240# whether 'pass_all' will *always* work, you probably want this one.
8241
8242case $host_os in
8243aix[4-9]*)
8244 lt_cv_deplibs_check_method=pass_all
8245 ;;
8246
8247beos*)
8248 lt_cv_deplibs_check_method=pass_all
8249 ;;
8250
8251bsdi[45]*)
8252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8253 lt_cv_file_magic_cmd='/usr/bin/file -L'
8254 lt_cv_file_magic_test_file=/shlib/libc.so
8255 ;;
8256
8257cygwin*)
8258 # func_win32_libid is a shell function defined in ltmain.sh
8259 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8260 lt_cv_file_magic_cmd='func_win32_libid'
8261 ;;
8262
8263mingw* | pw32*)
8264 # Base MSYS/MinGW do not provide the 'file' command needed by
8265 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8266 # unless we find 'file', for example because we are cross-compiling.
8267 if ( file / ) >/dev/null 2>&1; then
8268 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8269 lt_cv_file_magic_cmd='func_win32_libid'
8270 else
8271 # Keep this pattern in sync with the one in func_win32_libid.
8272 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8273 lt_cv_file_magic_cmd='$OBJDUMP -f'
8274 fi
8275 ;;
8276
8277cegcc*)
8278 # use the weaker test based on 'objdump'. See mingw*.
8279 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8280 lt_cv_file_magic_cmd='$OBJDUMP -f'
8281 ;;
8282
8283darwin* | rhapsody*)
8284 lt_cv_deplibs_check_method=pass_all
8285 ;;
8286
8287freebsd* | dragonfly*)
8288 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8289 case $host_cpu in
8290 i*86 )
8291 # Not sure whether the presence of OpenBSD here was a mistake.
8292 # Let's accept both of them until this is cleared up.
8293 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8294 lt_cv_file_magic_cmd=/usr/bin/file
8295 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8296 ;;
8297 esac
8298 else
8299 lt_cv_deplibs_check_method=pass_all
8300 fi
8301 ;;
8302
8303haiku*)
8304 lt_cv_deplibs_check_method=pass_all
8305 ;;
8306
8307hpux10.20* | hpux11*)
8308 lt_cv_file_magic_cmd=/usr/bin/file
8309 case $host_cpu in
8310 ia64*)
8311 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8312 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8313 ;;
8314 hppa*64*)
8315 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]'
8316 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8317 ;;
8318 *)
8319 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8320 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8321 ;;
8322 esac
8323 ;;
8324
8325interix[3-9]*)
8326 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8328 ;;
8329
8330irix5* | irix6* | nonstopux*)
8331 case $LD in
8332 *-32|*"-32 ") libmagic=32-bit;;
8333 *-n32|*"-n32 ") libmagic=N32;;
8334 *-64|*"-64 ") libmagic=64-bit;;
8335 *) libmagic=never-match;;
8336 esac
8337 lt_cv_deplibs_check_method=pass_all
8338 ;;
8339
8340# This must be glibc/ELF.
8341linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8342 lt_cv_deplibs_check_method=pass_all
8343 ;;
8344
8345netbsd* | netbsdelf*-gnu)
8346 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8347 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8348 else
8349 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8350 fi
8351 ;;
8352
8353newos6*)
8354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8355 lt_cv_file_magic_cmd=/usr/bin/file
8356 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8357 ;;
8358
8359*nto* | *qnx*)
8360 lt_cv_deplibs_check_method=pass_all
8361 ;;
8362
8363openbsd* | bitrig*)
8364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8366 else
8367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8368 fi
8369 ;;
8370
8371osf3* | osf4* | osf5*)
8372 lt_cv_deplibs_check_method=pass_all
8373 ;;
8374
8375rdos*)
8376 lt_cv_deplibs_check_method=pass_all
8377 ;;
8378
8379solaris*)
8380 lt_cv_deplibs_check_method=pass_all
8381 ;;
8382
8383sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8384 lt_cv_deplibs_check_method=pass_all
8385 ;;
8386
8387sysv4 | sysv4.3*)
8388 case $host_vendor in
8389 motorola)
8390 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]'
8391 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8392 ;;
8393 ncr)
8394 lt_cv_deplibs_check_method=pass_all
8395 ;;
8396 sequent)
8397 lt_cv_file_magic_cmd='/bin/file'
8398 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8399 ;;
8400 sni)
8401 lt_cv_file_magic_cmd='/bin/file'
8402 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8403 lt_cv_file_magic_test_file=/lib/libc.so
8404 ;;
8405 siemens)
8406 lt_cv_deplibs_check_method=pass_all
8407 ;;
8408 pc)
8409 lt_cv_deplibs_check_method=pass_all
8410 ;;
8411 esac
8412 ;;
8413
8414tpf*)
8415 lt_cv_deplibs_check_method=pass_all
8416 ;;
8417os2*)
8418 lt_cv_deplibs_check_method=pass_all
8419 ;;
8420esac
8421
8422fi
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8424$as_echo "$lt_cv_deplibs_check_method" >&6; }
8425
8426file_magic_glob=
8427want_nocaseglob=no
8428if test "$build" = "$host"; then
8429 case $host_os in
8430 mingw* | pw32*)
8431 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8432 want_nocaseglob=yes
8433 else
8434 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8435 fi
8436 ;;
8437 esac
8438fi
8439
8440file_magic_cmd=$lt_cv_file_magic_cmd
8441deplibs_check_method=$lt_cv_deplibs_check_method
8442test -z "$deplibs_check_method" && deplibs_check_method=unknown
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465if test -n "$ac_tool_prefix"; then
8466 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8467set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469$as_echo_n "checking for $ac_word... " >&6; }
8470if ${ac_cv_prog_DLLTOOL+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472else
8473 if test -n "$DLLTOOL"; then
8474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8475else
8476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477for as_dir in $PATH
8478do
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8483 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8486 fi
8487done
8488 done
8489IFS=$as_save_IFS
8490
8491fi
8492fi
8493DLLTOOL=$ac_cv_prog_DLLTOOL
8494if test -n "$DLLTOOL"; then
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8496$as_echo "$DLLTOOL" >&6; }
8497else
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8499$as_echo "no" >&6; }
8500fi
8501
8502
8503fi
8504if test -z "$ac_cv_prog_DLLTOOL"; then
8505 ac_ct_DLLTOOL=$DLLTOOL
8506 # Extract the first word of "dlltool", so it can be a program name with args.
8507set dummy dlltool; ac_word=$2
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509$as_echo_n "checking for $ac_word... " >&6; }
8510if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512else
8513 if test -n "$ac_ct_DLLTOOL"; then
8514 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8515else
8516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517for as_dir in $PATH
8518do
8519 IFS=$as_save_IFS
8520 test -z "$as_dir" && as_dir=.
8521 for ac_exec_ext in '' $ac_executable_extensions; do
8522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 break 2
8526 fi
8527done
8528 done
8529IFS=$as_save_IFS
8530
8531fi
8532fi
8533ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8534if test -n "$ac_ct_DLLTOOL"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8536$as_echo "$ac_ct_DLLTOOL" >&6; }
8537else
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539$as_echo "no" >&6; }
8540fi
8541
8542 if test "x$ac_ct_DLLTOOL" = x; then
8543 DLLTOOL="false"
8544 else
8545 case $cross_compiling:$ac_tool_warned in
8546yes:)
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8549ac_tool_warned=yes ;;
8550esac
8551 DLLTOOL=$ac_ct_DLLTOOL
8552 fi
8553else
8554 DLLTOOL="$ac_cv_prog_DLLTOOL"
8555fi
8556
8557test -z "$DLLTOOL" && DLLTOOL=dlltool
8558
8559
8560
8561
8562
8563
8564
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8566$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8567if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569else
8570 lt_cv_sharedlib_from_linklib_cmd='unknown'
8571
8572case $host_os in
8573cygwin* | mingw* | pw32* | cegcc*)
8574 # two different shell functions defined in ltmain.sh;
8575 # decide which one to use based on capabilities of $DLLTOOL
8576 case `$DLLTOOL --help 2>&1` in
8577 *--identify-strict*)
8578 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8579 ;;
8580 *)
8581 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8582 ;;
8583 esac
8584 ;;
8585*)
8586 # fallback: assume linklib IS sharedlib
8587 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8588 ;;
8589esac
8590
8591fi
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8593$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8594sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8595test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8596
8597
8598
8599
8600
8601
8602
8603if test -n "$ac_tool_prefix"; then
8604 for ac_prog in ar
8605 do
8606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if ${ac_cv_prog_AR+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612else
8613 if test -n "$AR"; then
8614 ac_cv_prog_AR="$AR" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8623 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 break 2
8626 fi
8627done
8628 done
8629IFS=$as_save_IFS
8630
8631fi
8632fi
8633AR=$ac_cv_prog_AR
8634if test -n "$AR"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8636$as_echo "$AR" >&6; }
8637else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
8640fi
8641
8642
8643 test -n "$AR" && break
8644 done
8645fi
8646if test -z "$AR"; then
8647 ac_ct_AR=$AR
8648 for ac_prog in ar
8649do
8650 # Extract the first word of "$ac_prog", so it can be a program name with args.
8651set dummy $ac_prog; ac_word=$2
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653$as_echo_n "checking for $ac_word... " >&6; }
8654if ${ac_cv_prog_ac_ct_AR+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656else
8657 if test -n "$ac_ct_AR"; then
8658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8659else
8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667 ac_cv_prog_ac_ct_AR="$ac_prog"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671done
8672 done
8673IFS=$as_save_IFS
8674
8675fi
8676fi
8677ac_ct_AR=$ac_cv_prog_ac_ct_AR
8678if test -n "$ac_ct_AR"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8680$as_echo "$ac_ct_AR" >&6; }
8681else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683$as_echo "no" >&6; }
8684fi
8685
8686
8687 test -n "$ac_ct_AR" && break
8688done
8689
8690 if test "x$ac_ct_AR" = x; then
8691 AR="false"
8692 else
8693 case $cross_compiling:$ac_tool_warned in
8694yes:)
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8697ac_tool_warned=yes ;;
8698esac
8699 AR=$ac_ct_AR
8700 fi
8701fi
8702
8703: ${AR=ar}
8704: ${AR_FLAGS=cru}
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8717$as_echo_n "checking for archiver @FILE support... " >&6; }
8718if ${lt_cv_ar_at_file+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720else
8721 lt_cv_ar_at_file=no
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723/* end confdefs.h. */
8724
8725int main (void)
8726{
8727
8728 ;
8729 return 0;
8730}
8731_ACEOF
8732if ac_fn_c_try_compile "$LINENO"; then :
8733 echo conftest.$ac_objext > conftest.lst
8734 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8736 (eval $lt_ar_try) 2>&5
8737 ac_status=$?
8738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8739 test $ac_status = 0; }
8740 if test 0 -eq "$ac_status"; then
8741 # Ensure the archiver fails upon bogus file names.
8742 rm -f conftest.$ac_objext libconftest.a
8743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8744 (eval $lt_ar_try) 2>&5
8745 ac_status=$?
8746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8747 test $ac_status = 0; }
8748 if test 0 -ne "$ac_status"; then
8749 lt_cv_ar_at_file=@
8750 fi
8751 fi
8752 rm -f conftest.* libconftest.a
8753
8754fi
8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756
8757fi
8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8759$as_echo "$lt_cv_ar_at_file" >&6; }
8760
8761if test no = "$lt_cv_ar_at_file"; then
8762 archiver_list_spec=
8763else
8764 archiver_list_spec=$lt_cv_ar_at_file
8765fi
8766
8767
8768
8769
8770
8771
8772
8773if test -n "$ac_tool_prefix"; then
8774 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8775set dummy ${ac_tool_prefix}strip; ac_word=$2
8776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777$as_echo_n "checking for $ac_word... " >&6; }
8778if ${ac_cv_prog_STRIP+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780else
8781 if test -n "$STRIP"; then
8782 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8783else
8784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785for as_dir in $PATH
8786do
8787 IFS=$as_save_IFS
8788 test -z "$as_dir" && as_dir=.
8789 for ac_exec_ext in '' $ac_executable_extensions; do
8790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8791 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793 break 2
8794 fi
8795done
8796 done
8797IFS=$as_save_IFS
8798
8799fi
8800fi
8801STRIP=$ac_cv_prog_STRIP
8802if test -n "$STRIP"; then
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8804$as_echo "$STRIP" >&6; }
8805else
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807$as_echo "no" >&6; }
8808fi
8809
8810
8811fi
8812if test -z "$ac_cv_prog_STRIP"; then
8813 ac_ct_STRIP=$STRIP
8814 # Extract the first word of "strip", so it can be a program name with args.
8815set dummy strip; ac_word=$2
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817$as_echo_n "checking for $ac_word... " >&6; }
8818if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8819 $as_echo_n "(cached) " >&6
8820else
8821 if test -n "$ac_ct_STRIP"; then
8822 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8823else
8824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825for as_dir in $PATH
8826do
8827 IFS=$as_save_IFS
8828 test -z "$as_dir" && as_dir=.
8829 for ac_exec_ext in '' $ac_executable_extensions; do
8830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8831 ac_cv_prog_ac_ct_STRIP="strip"
8832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833 break 2
8834 fi
8835done
8836 done
8837IFS=$as_save_IFS
8838
8839fi
8840fi
8841ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8842if test -n "$ac_ct_STRIP"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8844$as_echo "$ac_ct_STRIP" >&6; }
8845else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847$as_echo "no" >&6; }
8848fi
8849
8850 if test "x$ac_ct_STRIP" = x; then
8851 STRIP=":"
8852 else
8853 case $cross_compiling:$ac_tool_warned in
8854yes:)
8855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857ac_tool_warned=yes ;;
8858esac
8859 STRIP=$ac_ct_STRIP
8860 fi
8861else
8862 STRIP="$ac_cv_prog_STRIP"
8863fi
8864
8865test -z "$STRIP" && STRIP=:
8866
8867
8868
8869
8870
8871
8872if test -n "$ac_tool_prefix"; then
8873 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8874set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876$as_echo_n "checking for $ac_word... " >&6; }
8877if ${ac_cv_prog_RANLIB+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879else
8880 if test -n "$RANLIB"; then
8881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8882else
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8892 break 2
8893 fi
8894done
8895 done
8896IFS=$as_save_IFS
8897
8898fi
8899fi
8900RANLIB=$ac_cv_prog_RANLIB
8901if test -n "$RANLIB"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8903$as_echo "$RANLIB" >&6; }
8904else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
8907fi
8908
8909
8910fi
8911if test -z "$ac_cv_prog_RANLIB"; then
8912 ac_ct_RANLIB=$RANLIB
8913 # Extract the first word of "ranlib", so it can be a program name with args.
8914set dummy ranlib; ac_word=$2
8915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8916$as_echo_n "checking for $ac_word... " >&6; }
8917if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8918 $as_echo_n "(cached) " >&6
8919else
8920 if test -n "$ac_ct_RANLIB"; then
8921 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8922else
8923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8924for as_dir in $PATH
8925do
8926 IFS=$as_save_IFS
8927 test -z "$as_dir" && as_dir=.
8928 for ac_exec_ext in '' $ac_executable_extensions; do
8929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8930 ac_cv_prog_ac_ct_RANLIB="ranlib"
8931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8932 break 2
8933 fi
8934done
8935 done
8936IFS=$as_save_IFS
8937
8938fi
8939fi
8940ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8941if test -n "$ac_ct_RANLIB"; then
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8943$as_echo "$ac_ct_RANLIB" >&6; }
8944else
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946$as_echo "no" >&6; }
8947fi
8948
8949 if test "x$ac_ct_RANLIB" = x; then
8950 RANLIB=":"
8951 else
8952 case $cross_compiling:$ac_tool_warned in
8953yes:)
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8956ac_tool_warned=yes ;;
8957esac
8958 RANLIB=$ac_ct_RANLIB
8959 fi
8960else
8961 RANLIB="$ac_cv_prog_RANLIB"
8962fi
8963
8964test -z "$RANLIB" && RANLIB=:
8965
8966
8967
8968
8969
8970
8971# Determine commands to create old-style static archives.
8972old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8973old_postinstall_cmds='chmod 644 $oldlib'
8974old_postuninstall_cmds=
8975
8976if test -n "$RANLIB"; then
8977 case $host_os in
8978 bitrig* | openbsd*)
8979 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8980 ;;
8981 *)
8982 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8983 ;;
8984 esac
8985 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8986fi
8987
8988case $host_os in
8989 darwin*)
8990 lock_old_archive_extraction=yes ;;
8991 *)
8992 lock_old_archive_extraction=no ;;
8993esac
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033# If no C compiler was specified, use CC.
9034LTCC=${LTCC-"$CC"}
9035
9036# If no C compiler flags were specified, use CFLAGS.
9037LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9038
9039# Allow CC to be a program name with arguments.
9040compiler=$CC
9041
9042
9043# Check for command to grab the raw symbol name followed by C symbol from nm.
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9045$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9046if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048else
9049
9050# These are sane defaults that work on at least a few old systems.
9051# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9052
9053# Character class describing NM global symbol codes.
9054symcode='[BCDEGRST]'
9055
9056# Regexp to match symbols that can be accessed directly from C.
9057sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9058
9059# Define system-specific variables.
9060case $host_os in
9061aix*)
9062 symcode='[BCDT]'
9063 ;;
9064cygwin* | mingw* | pw32* | cegcc*)
9065 symcode='[ABCDGISTW]'
9066 ;;
9067hpux*)
9068 if test ia64 = "$host_cpu"; then
9069 symcode='[ABCDEGRST]'
9070 fi
9071 ;;
9072irix* | nonstopux*)
9073 symcode='[BCDEGRST]'
9074 ;;
9075osf*)
9076 symcode='[BCDEGQRST]'
9077 ;;
9078solaris*)
9079 symcode='[BDRT]'
9080 ;;
9081sco3.2v5*)
9082 symcode='[DT]'
9083 ;;
9084sysv4.2uw2*)
9085 symcode='[DT]'
9086 ;;
9087sysv5* | sco5v6* | unixware* | OpenUNIX*)
9088 symcode='[ABDT]'
9089 ;;
9090sysv4)
9091 symcode='[DFNSTU]'
9092 ;;
9093esac
9094
9095# If we're using GNU nm, then use its standard symbol codes.
9096case `$NM -V 2>&1` in
9097*GNU* | *'with BFD'*)
9098 symcode='[ABCDGIRSTW]' ;;
9099esac
9100
9101if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9102 # Gets list of data symbols to import.
9103 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9104 # Adjust the below global symbol transforms to fixup imported variables.
9105 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9106 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9107 lt_c_name_lib_hook="\
9108 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9109 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9110else
9111 # Disable hooks by default.
9112 lt_cv_sys_global_symbol_to_import=
9113 lt_cdecl_hook=
9114 lt_c_name_hook=
9115 lt_c_name_lib_hook=
9116fi
9117
9118# Transform an extracted symbol line into a proper C declaration.
9119# Some systems (esp. on ia64) link data and code symbols differently,
9120# so use this general approach.
9121lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9122$lt_cdecl_hook\
9123" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9124" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9125
9126# Transform an extracted symbol line into symbol name and symbol address
9127lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9128$lt_c_name_hook\
9129" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9130" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9131
9132# Transform an extracted symbol line into symbol name with lib prefix and
9133# symbol address.
9134lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9135$lt_c_name_lib_hook\
9136" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9137" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9138" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9139
9140# Handle CRLF in mingw tool chain
9141opt_cr=
9142case $build_os in
9143mingw*)
9144 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9145 ;;
9146esac
9147
9148# Try without a prefix underscore, then with it.
9149for ac_symprfx in "" "_"; do
9150
9151 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9152 symxfrm="\\1 $ac_symprfx\\2 \\2"
9153
9154 # Write the raw and C identifiers.
9155 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9156 # Fake it for dumpbin and say T for any non-static function,
9157 # D for any global variable and I for any imported variable.
9158 # Also find C++ and __fastcall symbols from MSVC++,
9159 # which start with @ or ?.
9160 lt_cv_sys_global_symbol_pipe="$AWK '"\
9161" {last_section=section; section=\$ 3};"\
9162" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9163" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9164" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9165" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9166" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9167" \$ 0!~/External *\|/{next};"\
9168" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9169" {if(hide[section]) next};"\
9170" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9171" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9172" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9173" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9174" ' prfx=^$ac_symprfx"
9175 else
9176 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9177 fi
9178 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9179
9180 # Check to see that the pipe works correctly.
9181 pipe_works=no
9182
9183 rm -f conftest*
9184 cat > conftest.$ac_ext <<_LT_EOF
9185#ifdef __cplusplus
9186extern "C" {
9187#endif
9188char nm_test_var;
9189void nm_test_func(void);
9190void nm_test_func(void){}
9191#ifdef __cplusplus
9192}
9193#endif
9194int main(){nm_test_var='a';nm_test_func();return(0);}
9195_LT_EOF
9196
9197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9198 (eval $ac_compile) 2>&5
9199 ac_status=$?
9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201 test $ac_status = 0; }; then
9202 # Now try to grab the symbols.
9203 nlist=conftest.nm
9204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9205 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9206 ac_status=$?
9207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9208 test $ac_status = 0; } && test -s "$nlist"; then
9209 # Try sorting and uniquifying the output.
9210 if sort "$nlist" | uniq > "$nlist"T; then
9211 mv -f "$nlist"T "$nlist"
9212 else
9213 rm -f "$nlist"T
9214 fi
9215
9216 # Make sure that we snagged all the symbols we need.
9217 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9218 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9219 cat <<_LT_EOF > conftest.$ac_ext
9220/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9221#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9222/* DATA imports from DLLs on WIN32 can't be const, because runtime
9223 relocations are performed -- see ld's documentation on pseudo-relocs. */
9224# define LT_DLSYM_CONST
9225#elif defined __osf__
9226/* This system does not cope well with relocations in const data. */
9227# define LT_DLSYM_CONST
9228#else
9229# define LT_DLSYM_CONST const
9230#endif
9231
9232#ifdef __cplusplus
9233extern "C" {
9234#endif
9235
9236_LT_EOF
9237 # Now generate the symbol file.
9238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9239
9240 cat <<_LT_EOF >> conftest.$ac_ext
9241
9242/* The mapping between symbol names and symbols. */
9243LT_DLSYM_CONST struct {
9244 const char *name;
9245 void *address;
9246}
9247lt__PROGRAM__LTX_preloaded_symbols[] =
9248{
9249 { "@PROGRAM@", (void *) 0 },
9250_LT_EOF
9251 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9252 cat <<\_LT_EOF >> conftest.$ac_ext
9253 {0, (void *) 0}
9254};
9255
9256/* This works around a problem in FreeBSD linker */
9257#ifdef FREEBSD_WORKAROUND
9258static const void *lt_preloaded_setup() {
9259 return lt__PROGRAM__LTX_preloaded_symbols;
9260}
9261#endif
9262
9263#ifdef __cplusplus
9264}
9265#endif
9266_LT_EOF
9267 # Now try linking the two files.
9268 mv -f conftest.$ac_objext conftstm.$ac_objext
9269 lt_globsym_save_LIBS=$LIBS
9270 lt_globsym_save_CFLAGS=$CFLAGS
9271 LIBS=conftstm.$ac_objext
9272 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9274 (eval $ac_link) 2>&5
9275 ac_status=$?
9276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9277 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9278 pipe_works=yes
9279 fi
9280 LIBS=$lt_globsym_save_LIBS
9281 CFLAGS=$lt_globsym_save_CFLAGS
9282 else
9283 echo "cannot find nm_test_func in $nlist" >&5
9284 fi
9285 else
9286 echo "cannot find nm_test_var in $nlist" >&5
9287 fi
9288 else
9289 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9290 fi
9291 else
9292 echo "$progname: failed program was:" >&5
9293 cat conftest.$ac_ext >&5
9294 fi
9295 rm -rf conftest* conftst*
9296
9297 # Do not use the global_symbol_pipe unless it works.
9298 if test yes = "$pipe_works"; then
9299 break
9300 else
9301 lt_cv_sys_global_symbol_pipe=
9302 fi
9303done
9304
9305fi
9306
9307if test -z "$lt_cv_sys_global_symbol_pipe"; then
9308 lt_cv_sys_global_symbol_to_cdecl=
9309fi
9310if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9312$as_echo "failed" >&6; }
9313else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9315$as_echo "ok" >&6; }
9316fi
9317
9318# Response file support.
9319if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9320 nm_file_list_spec='@'
9321elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9322 nm_file_list_spec='@'
9323fi
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
9360
9361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9362$as_echo_n "checking for sysroot... " >&6; }
9363
9364# Check whether --with-sysroot was given.
9365if test "${with_sysroot+set}" = set; then :
9366 withval=$with_sysroot;
9367else
9368 with_sysroot=no
9369fi
9370
9371
9372lt_sysroot=
9373case $with_sysroot in #(
9374 yes)
9375 if test yes = "$GCC"; then
9376 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9377 fi
9378 ;; #(
9379 /*)
9380 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9381 ;; #(
9382 no|'')
9383 ;; #(
9384 *)
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9386$as_echo "$with_sysroot" >&6; }
9387 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9388 ;;
9389esac
9390
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9392$as_echo "${lt_sysroot:-no}" >&6; }
9393
9394
9395
9396
9397
9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9399$as_echo_n "checking for a working dd... " >&6; }
9400if ${ac_cv_path_lt_DD+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402else
9403 printf 0123456789abcdef0123456789abcdef >conftest.i
9404cat conftest.i conftest.i >conftest2.i
9405: ${lt_DD:=$DD}
9406if test -z "$lt_DD"; then
9407 ac_path_lt_DD_found=false
9408 # Loop through the user's path and test for each of PROGNAME-LIST
9409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
9414 for ac_prog in dd; do
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9417 as_fn_executable_p "$ac_path_lt_DD" || continue
9418if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9419 cmp -s conftest.i conftest.out \
9420 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9421fi
9422 $ac_path_lt_DD_found && break 3
9423 done
9424 done
9425 done
9426IFS=$as_save_IFS
9427 if test -z "$ac_cv_path_lt_DD"; then
9428 :
9429 fi
9430else
9431 ac_cv_path_lt_DD=$lt_DD
9432fi
9433
9434rm -f conftest.i conftest2.i conftest.out
9435fi
9436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9437$as_echo "$ac_cv_path_lt_DD" >&6; }
9438
9439
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9441$as_echo_n "checking how to truncate binary pipes... " >&6; }
9442if ${lt_cv_truncate_bin+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444else
9445 printf 0123456789abcdef0123456789abcdef >conftest.i
9446cat conftest.i conftest.i >conftest2.i
9447lt_cv_truncate_bin=
9448if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9449 cmp -s conftest.i conftest.out \
9450 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9451fi
9452rm -f conftest.i conftest2.i conftest.out
9453test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9456$as_echo "$lt_cv_truncate_bin" >&6; }
9457
9458
9459
9460
9461
9462
9463
9464# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9465func_cc_basename ()
9466{
9467 for cc_temp in $*""; do
9468 case $cc_temp in
9469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9471 \-*) ;;
9472 *) break;;
9473 esac
9474 done
9475 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9476}
9477
9478# Check whether --enable-libtool-lock was given.
9479if test "${enable_libtool_lock+set}" = set; then :
9480 enableval=$enable_libtool_lock;
9481fi
9482
9483test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9484
9485# Some flags need to be propagated to the compiler or linker for good
9486# libtool support.
9487case $host in
9488ia64-*-hpux*)
9489 # Find out what ABI is being produced by ac_compile, and set mode
9490 # options accordingly.
9491 echo 'int i;' > conftest.$ac_ext
9492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9493 (eval $ac_compile) 2>&5
9494 ac_status=$?
9495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9496 test $ac_status = 0; }; then
9497 case `/usr/bin/file conftest.$ac_objext` in
9498 *ELF-32*)
9499 HPUX_IA64_MODE=32
9500 ;;
9501 *ELF-64*)
9502 HPUX_IA64_MODE=64
9503 ;;
9504 esac
9505 fi
9506 rm -rf conftest*
9507 ;;
9508*-*-irix6*)
9509 # Find out what ABI is being produced by ac_compile, and set linker
9510 # options accordingly.
9511 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9513 (eval $ac_compile) 2>&5
9514 ac_status=$?
9515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516 test $ac_status = 0; }; then
9517 if test yes = "$lt_cv_prog_gnu_ld"; then
9518 case `/usr/bin/file conftest.$ac_objext` in
9519 *32-bit*)
9520 LD="${LD-ld} -melf32bsmip"
9521 ;;
9522 *N32*)
9523 LD="${LD-ld} -melf32bmipn32"
9524 ;;
9525 *64-bit*)
9526 LD="${LD-ld} -melf64bmip"
9527 ;;
9528 esac
9529 else
9530 case `/usr/bin/file conftest.$ac_objext` in
9531 *32-bit*)
9532 LD="${LD-ld} -32"
9533 ;;
9534 *N32*)
9535 LD="${LD-ld} -n32"
9536 ;;
9537 *64-bit*)
9538 LD="${LD-ld} -64"
9539 ;;
9540 esac
9541 fi
9542 fi
9543 rm -rf conftest*
9544 ;;
9545
9546mips64*-*linux*)
9547 # Find out what ABI is being produced by ac_compile, and set linker
9548 # options accordingly.
9549 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9551 (eval $ac_compile) 2>&5
9552 ac_status=$?
9553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9554 test $ac_status = 0; }; then
9555 emul=elf
9556 case `/usr/bin/file conftest.$ac_objext` in
9557 *32-bit*)
9558 emul="${emul}32"
9559 ;;
9560 *64-bit*)
9561 emul="${emul}64"
9562 ;;
9563 esac
9564 case `/usr/bin/file conftest.$ac_objext` in
9565 *MSB*)
9566 emul="${emul}btsmip"
9567 ;;
9568 *LSB*)
9569 emul="${emul}ltsmip"
9570 ;;
9571 esac
9572 case `/usr/bin/file conftest.$ac_objext` in
9573 *N32*)
9574 emul="${emul}n32"
9575 ;;
9576 esac
9577 LD="${LD-ld} -m $emul"
9578 fi
9579 rm -rf conftest*
9580 ;;
9581
9582x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9583s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9584 # Find out what ABI is being produced by ac_compile, and set linker
9585 # options accordingly. Note that the listed cases only cover the
9586 # situations where additional linker options are needed (such as when
9587 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9588 # vice versa); the common cases where no linker options are needed do
9589 # not appear in the list.
9590 echo 'int i;' > conftest.$ac_ext
9591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9592 (eval $ac_compile) 2>&5
9593 ac_status=$?
9594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9595 test $ac_status = 0; }; then
9596 case `/usr/bin/file conftest.o` in
9597 *32-bit*)
9598 case $host in
9599 x86_64-*kfreebsd*-gnu)
9600 LD="${LD-ld} -m elf_i386_fbsd"
9601 ;;
9602 x86_64-*linux*)
9603 case `/usr/bin/file conftest.o` in
9604 *x86-64*)
9605 LD="${LD-ld} -m elf32_x86_64"
9606 ;;
9607 *)
9608 LD="${LD-ld} -m elf_i386"
9609 ;;
9610 esac
9611 ;;
9612 powerpc64le-*linux*)
9613 LD="${LD-ld} -m elf32lppclinux"
9614 ;;
9615 powerpc64-*linux*)
9616 LD="${LD-ld} -m elf32ppclinux"
9617 ;;
9618 s390x-*linux*)
9619 LD="${LD-ld} -m elf_s390"
9620 ;;
9621 sparc64-*linux*)
9622 LD="${LD-ld} -m elf32_sparc"
9623 ;;
9624 esac
9625 ;;
9626 *64-bit*)
9627 case $host in
9628 x86_64-*kfreebsd*-gnu)
9629 LD="${LD-ld} -m elf_x86_64_fbsd"
9630 ;;
9631 x86_64-*linux*)
9632 LD="${LD-ld} -m elf_x86_64"
9633 ;;
9634 powerpcle-*linux*)
9635 LD="${LD-ld} -m elf64lppc"
9636 ;;
9637 powerpc-*linux*)
9638 LD="${LD-ld} -m elf64ppc"
9639 ;;
9640 s390*-*linux*|s390*-*tpf*)
9641 LD="${LD-ld} -m elf64_s390"
9642 ;;
9643 sparc*-*linux*)
9644 LD="${LD-ld} -m elf64_sparc"
9645 ;;
9646 esac
9647 ;;
9648 esac
9649 fi
9650 rm -rf conftest*
9651 ;;
9652
9653*-*-sco3.2v5*)
9654 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9655 SAVE_CFLAGS=$CFLAGS
9656 CFLAGS="$CFLAGS -belf"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9658$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9659if ${lt_cv_cc_needs_belf+:} false; then :
9660 $as_echo_n "(cached) " >&6
9661else
9662 ac_ext=c
9663ac_cpp='$CPP $CPPFLAGS'
9664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9666ac_compiler_gnu=$ac_cv_c_compiler_gnu
9667
9668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669/* end confdefs.h. */
9670
9671int main (void)
9672{
9673
9674 ;
9675 return 0;
9676}
9677_ACEOF
9678if ac_fn_c_try_link "$LINENO"; then :
9679 lt_cv_cc_needs_belf=yes
9680else
9681 lt_cv_cc_needs_belf=no
9682fi
9683rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
9685 ac_ext=c
9686ac_cpp='$CPP $CPPFLAGS'
9687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9689ac_compiler_gnu=$ac_cv_c_compiler_gnu
9690
9691fi
9692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9693$as_echo "$lt_cv_cc_needs_belf" >&6; }
9694 if test yes != "$lt_cv_cc_needs_belf"; then
9695 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9696 CFLAGS=$SAVE_CFLAGS
9697 fi
9698 ;;
9699*-*solaris*)
9700 # Find out what ABI is being produced by ac_compile, and set linker
9701 # options accordingly.
9702 echo 'int i;' > conftest.$ac_ext
9703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9704 (eval $ac_compile) 2>&5
9705 ac_status=$?
9706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9707 test $ac_status = 0; }; then
9708 case `/usr/bin/file conftest.o` in
9709 *64-bit*)
9710 case $lt_cv_prog_gnu_ld in
9711 yes*)
9712 case $host in
9713 i?86-*-solaris*|x86_64-*-solaris*)
9714 LD="${LD-ld} -m elf_x86_64"
9715 ;;
9716 sparc*-*-solaris*)
9717 LD="${LD-ld} -m elf64_sparc"
9718 ;;
9719 esac
9720 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9721 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9722 LD=${LD-ld}_sol2
9723 fi
9724 ;;
9725 *)
9726 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9727 LD="${LD-ld} -64"
9728 fi
9729 ;;
9730 esac
9731 ;;
9732 esac
9733 fi
9734 rm -rf conftest*
9735 ;;
9736esac
9737
9738need_locks=$enable_libtool_lock
9739
9740if test -n "$ac_tool_prefix"; then
9741 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9742set dummy ${ac_tool_prefix}mt; ac_word=$2
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744$as_echo_n "checking for $ac_word... " >&6; }
9745if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9746 $as_echo_n "(cached) " >&6
9747else
9748 if test -n "$MANIFEST_TOOL"; then
9749 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9750else
9751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752for as_dir in $PATH
9753do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9758 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9761 fi
9762done
9763 done
9764IFS=$as_save_IFS
9765
9766fi
9767fi
9768MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9769if test -n "$MANIFEST_TOOL"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9771$as_echo "$MANIFEST_TOOL" >&6; }
9772else
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774$as_echo "no" >&6; }
9775fi
9776
9777
9778fi
9779if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9780 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9781 # Extract the first word of "mt", so it can be a program name with args.
9782set dummy mt; ac_word=$2
9783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9784$as_echo_n "checking for $ac_word... " >&6; }
9785if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787else
9788 if test -n "$ac_ct_MANIFEST_TOOL"; then
9789 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9790else
9791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9792for as_dir in $PATH
9793do
9794 IFS=$as_save_IFS
9795 test -z "$as_dir" && as_dir=.
9796 for ac_exec_ext in '' $ac_executable_extensions; do
9797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9798 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9800 break 2
9801 fi
9802done
9803 done
9804IFS=$as_save_IFS
9805
9806fi
9807fi
9808ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9809if test -n "$ac_ct_MANIFEST_TOOL"; then
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9811$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9812else
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814$as_echo "no" >&6; }
9815fi
9816
9817 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9818 MANIFEST_TOOL=":"
9819 else
9820 case $cross_compiling:$ac_tool_warned in
9821yes:)
9822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9824ac_tool_warned=yes ;;
9825esac
9826 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9827 fi
9828else
9829 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9830fi
9831
9832test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9834$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9835if ${lt_cv_path_mainfest_tool+:} false; then :
9836 $as_echo_n "(cached) " >&6
9837else
9838 lt_cv_path_mainfest_tool=no
9839 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9840 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9841 cat conftest.err >&5
9842 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9843 lt_cv_path_mainfest_tool=yes
9844 fi
9845 rm -f conftest*
9846fi
9847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9848$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9849if test yes != "$lt_cv_path_mainfest_tool"; then
9850 MANIFEST_TOOL=:
9851fi
9852
9853
9854
9855
9856
9857
9858 case $host_os in
9859 rhapsody* | darwin*)
9860 if test -n "$ac_tool_prefix"; then
9861 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9862set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if ${ac_cv_prog_DSYMUTIL+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867else
9868 if test -n "$DSYMUTIL"; then
9869 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9870else
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880 break 2
9881 fi
9882done
9883 done
9884IFS=$as_save_IFS
9885
9886fi
9887fi
9888DSYMUTIL=$ac_cv_prog_DSYMUTIL
9889if test -n "$DSYMUTIL"; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9891$as_echo "$DSYMUTIL" >&6; }
9892else
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
9895fi
9896
9897
9898fi
9899if test -z "$ac_cv_prog_DSYMUTIL"; then
9900 ac_ct_DSYMUTIL=$DSYMUTIL
9901 # Extract the first word of "dsymutil", so it can be a program name with args.
9902set dummy dsymutil; ac_word=$2
9903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9904$as_echo_n "checking for $ac_word... " >&6; }
9905if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907else
9908 if test -n "$ac_ct_DSYMUTIL"; then
9909 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9910else
9911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912for as_dir in $PATH
9913do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
9916 for ac_exec_ext in '' $ac_executable_extensions; do
9917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9918 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9920 break 2
9921 fi
9922done
9923 done
9924IFS=$as_save_IFS
9925
9926fi
9927fi
9928ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9929if test -n "$ac_ct_DSYMUTIL"; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9931$as_echo "$ac_ct_DSYMUTIL" >&6; }
9932else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934$as_echo "no" >&6; }
9935fi
9936
9937 if test "x$ac_ct_DSYMUTIL" = x; then
9938 DSYMUTIL=":"
9939 else
9940 case $cross_compiling:$ac_tool_warned in
9941yes:)
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9943$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9944ac_tool_warned=yes ;;
9945esac
9946 DSYMUTIL=$ac_ct_DSYMUTIL
9947 fi
9948else
9949 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9950fi
9951
9952 if test -n "$ac_tool_prefix"; then
9953 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9954set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9956$as_echo_n "checking for $ac_word... " >&6; }
9957if ${ac_cv_prog_NMEDIT+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959else
9960 if test -n "$NMEDIT"; then
9961 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9962else
9963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964for as_dir in $PATH
9965do
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9970 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9973 fi
9974done
9975 done
9976IFS=$as_save_IFS
9977
9978fi
9979fi
9980NMEDIT=$ac_cv_prog_NMEDIT
9981if test -n "$NMEDIT"; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9983$as_echo "$NMEDIT" >&6; }
9984else
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9986$as_echo "no" >&6; }
9987fi
9988
9989
9990fi
9991if test -z "$ac_cv_prog_NMEDIT"; then
9992 ac_ct_NMEDIT=$NMEDIT
9993 # Extract the first word of "nmedit", so it can be a program name with args.
9994set dummy nmedit; ac_word=$2
9995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9996$as_echo_n "checking for $ac_word... " >&6; }
9997if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9998 $as_echo_n "(cached) " >&6
9999else
10000 if test -n "$ac_ct_NMEDIT"; then
10001 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10002else
10003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004for as_dir in $PATH
10005do
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10013 fi
10014done
10015 done
10016IFS=$as_save_IFS
10017
10018fi
10019fi
10020ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10021if test -n "$ac_ct_NMEDIT"; then
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10023$as_echo "$ac_ct_NMEDIT" >&6; }
10024else
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
10027fi
10028
10029 if test "x$ac_ct_NMEDIT" = x; then
10030 NMEDIT=":"
10031 else
10032 case $cross_compiling:$ac_tool_warned in
10033yes:)
10034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10036ac_tool_warned=yes ;;
10037esac
10038 NMEDIT=$ac_ct_NMEDIT
10039 fi
10040else
10041 NMEDIT="$ac_cv_prog_NMEDIT"
10042fi
10043
10044 if test -n "$ac_tool_prefix"; then
10045 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10046set dummy ${ac_tool_prefix}lipo; ac_word=$2
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10048$as_echo_n "checking for $ac_word... " >&6; }
10049if ${ac_cv_prog_LIPO+:} false; then :
10050 $as_echo_n "(cached) " >&6
10051else
10052 if test -n "$LIPO"; then
10053 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10054else
10055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10056for as_dir in $PATH
10057do
10058 IFS=$as_save_IFS
10059 test -z "$as_dir" && as_dir=.
10060 for ac_exec_ext in '' $ac_executable_extensions; do
10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10062 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10064 break 2
10065 fi
10066done
10067 done
10068IFS=$as_save_IFS
10069
10070fi
10071fi
10072LIPO=$ac_cv_prog_LIPO
10073if test -n "$LIPO"; then
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10075$as_echo "$LIPO" >&6; }
10076else
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10078$as_echo "no" >&6; }
10079fi
10080
10081
10082fi
10083if test -z "$ac_cv_prog_LIPO"; then
10084 ac_ct_LIPO=$LIPO
10085 # Extract the first word of "lipo", so it can be a program name with args.
10086set dummy lipo; ac_word=$2
10087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10088$as_echo_n "checking for $ac_word... " >&6; }
10089if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10090 $as_echo_n "(cached) " >&6
10091else
10092 if test -n "$ac_ct_LIPO"; then
10093 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10094else
10095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096for as_dir in $PATH
10097do
10098 IFS=$as_save_IFS
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_prog_ac_ct_LIPO="lipo"
10103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 break 2
10105 fi
10106done
10107 done
10108IFS=$as_save_IFS
10109
10110fi
10111fi
10112ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10113if test -n "$ac_ct_LIPO"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10115$as_echo "$ac_ct_LIPO" >&6; }
10116else
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118$as_echo "no" >&6; }
10119fi
10120
10121 if test "x$ac_ct_LIPO" = x; then
10122 LIPO=":"
10123 else
10124 case $cross_compiling:$ac_tool_warned in
10125yes:)
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10127$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10128ac_tool_warned=yes ;;
10129esac
10130 LIPO=$ac_ct_LIPO
10131 fi
10132else
10133 LIPO="$ac_cv_prog_LIPO"
10134fi
10135
10136 if test -n "$ac_tool_prefix"; then
10137 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10138set dummy ${ac_tool_prefix}otool; ac_word=$2
10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10140$as_echo_n "checking for $ac_word... " >&6; }
10141if ${ac_cv_prog_OTOOL+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143else
10144 if test -n "$OTOOL"; then
10145 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10146else
10147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10148for as_dir in $PATH
10149do
10150 IFS=$as_save_IFS
10151 test -z "$as_dir" && as_dir=.
10152 for ac_exec_ext in '' $ac_executable_extensions; do
10153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10154 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10156 break 2
10157 fi
10158done
10159 done
10160IFS=$as_save_IFS
10161
10162fi
10163fi
10164OTOOL=$ac_cv_prog_OTOOL
10165if test -n "$OTOOL"; then
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10167$as_echo "$OTOOL" >&6; }
10168else
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
10171fi
10172
10173
10174fi
10175if test -z "$ac_cv_prog_OTOOL"; then
10176 ac_ct_OTOOL=$OTOOL
10177 # Extract the first word of "otool", so it can be a program name with args.
10178set dummy otool; ac_word=$2
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180$as_echo_n "checking for $ac_word... " >&6; }
10181if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183else
10184 if test -n "$ac_ct_OTOOL"; then
10185 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10186else
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_ac_ct_OTOOL="otool"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199 done
10200IFS=$as_save_IFS
10201
10202fi
10203fi
10204ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10205if test -n "$ac_ct_OTOOL"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10207$as_echo "$ac_ct_OTOOL" >&6; }
10208else
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210$as_echo "no" >&6; }
10211fi
10212
10213 if test "x$ac_ct_OTOOL" = x; then
10214 OTOOL=":"
10215 else
10216 case $cross_compiling:$ac_tool_warned in
10217yes:)
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10220ac_tool_warned=yes ;;
10221esac
10222 OTOOL=$ac_ct_OTOOL
10223 fi
10224else
10225 OTOOL="$ac_cv_prog_OTOOL"
10226fi
10227
10228 if test -n "$ac_tool_prefix"; then
10229 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10230set dummy ${ac_tool_prefix}otool64; ac_word=$2
10231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232$as_echo_n "checking for $ac_word... " >&6; }
10233if ${ac_cv_prog_OTOOL64+:} false; then :
10234 $as_echo_n "(cached) " >&6
10235else
10236 if test -n "$OTOOL64"; then
10237 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10238else
10239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10240for as_dir in $PATH
10241do
10242 IFS=$as_save_IFS
10243 test -z "$as_dir" && as_dir=.
10244 for ac_exec_ext in '' $ac_executable_extensions; do
10245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10246 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10248 break 2
10249 fi
10250done
10251 done
10252IFS=$as_save_IFS
10253
10254fi
10255fi
10256OTOOL64=$ac_cv_prog_OTOOL64
10257if test -n "$OTOOL64"; then
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10259$as_echo "$OTOOL64" >&6; }
10260else
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262$as_echo "no" >&6; }
10263fi
10264
10265
10266fi
10267if test -z "$ac_cv_prog_OTOOL64"; then
10268 ac_ct_OTOOL64=$OTOOL64
10269 # Extract the first word of "otool64", so it can be a program name with args.
10270set dummy otool64; ac_word=$2
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272$as_echo_n "checking for $ac_word... " >&6; }
10273if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10274 $as_echo_n "(cached) " >&6
10275else
10276 if test -n "$ac_ct_OTOOL64"; then
10277 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10278else
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10286 ac_cv_prog_ac_ct_OTOOL64="otool64"
10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10288 break 2
10289 fi
10290done
10291 done
10292IFS=$as_save_IFS
10293
10294fi
10295fi
10296ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10297if test -n "$ac_ct_OTOOL64"; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10299$as_echo "$ac_ct_OTOOL64" >&6; }
10300else
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302$as_echo "no" >&6; }
10303fi
10304
10305 if test "x$ac_ct_OTOOL64" = x; then
10306 OTOOL64=":"
10307 else
10308 case $cross_compiling:$ac_tool_warned in
10309yes:)
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10312ac_tool_warned=yes ;;
10313esac
10314 OTOOL64=$ac_ct_OTOOL64
10315 fi
10316else
10317 OTOOL64="$ac_cv_prog_OTOOL64"
10318fi
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10347$as_echo_n "checking for -single_module linker flag... " >&6; }
10348if ${lt_cv_apple_cc_single_mod+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350else
10351 lt_cv_apple_cc_single_mod=no
10352 if test -z "$LT_MULTI_MODULE"; then
10353 # By default we will add the -single_module flag. You can override
10354 # by either setting the environment variable LT_MULTI_MODULE
10355 # non-empty at configure time, or by adding -multi_module to the
10356 # link flags.
10357 rm -rf libconftest.dylib*
10358 echo "int foo(void){return 1;}" > conftest.c
10359 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10360-dynamiclib -Wl,-single_module conftest.c" >&5
10361 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10362 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10363 _lt_result=$?
10364 # If there is a non-empty error log, and "single_module"
10365 # appears in it, assume the flag caused a linker warning
10366 if test -s conftest.err && $GREP single_module conftest.err; then
10367 cat conftest.err >&5
10368 # Otherwise, if the output was created with a 0 exit code from
10369 # the compiler, it worked.
10370 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10371 lt_cv_apple_cc_single_mod=yes
10372 else
10373 cat conftest.err >&5
10374 fi
10375 rm -rf libconftest.dylib*
10376 rm -f conftest.*
10377 fi
10378fi
10379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10380$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10381
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10383$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10384if ${lt_cv_ld_exported_symbols_list+:} false; then :
10385 $as_echo_n "(cached) " >&6
10386else
10387 lt_cv_ld_exported_symbols_list=no
10388 save_LDFLAGS=$LDFLAGS
10389 echo "_main" > conftest.sym
10390 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392/* end confdefs.h. */
10393
10394int main (void)
10395{
10396
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401if ac_fn_c_try_link "$LINENO"; then :
10402 lt_cv_ld_exported_symbols_list=yes
10403else
10404 lt_cv_ld_exported_symbols_list=no
10405fi
10406rm -f core conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10408 LDFLAGS=$save_LDFLAGS
10409
10410fi
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10412$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10413
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10415$as_echo_n "checking for -force_load linker flag... " >&6; }
10416if ${lt_cv_ld_force_load+:} false; then :
10417 $as_echo_n "(cached) " >&6
10418else
10419 lt_cv_ld_force_load=no
10420 cat > conftest.c << _LT_EOF
10421int forced_loaded() { return 2;}
10422_LT_EOF
10423 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10424 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10425 echo "$AR cru libconftest.a conftest.o" >&5
10426 $AR cru libconftest.a conftest.o 2>&5
10427 echo "$RANLIB libconftest.a" >&5
10428 $RANLIB libconftest.a 2>&5
10429 cat > conftest.c << _LT_EOF
10430int main() { return 0;}
10431_LT_EOF
10432 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10433 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10434 _lt_result=$?
10435 if test -s conftest.err && $GREP force_load conftest.err; then
10436 cat conftest.err >&5
10437 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10438 lt_cv_ld_force_load=yes
10439 else
10440 cat conftest.err >&5
10441 fi
10442 rm -f conftest.err libconftest.a conftest conftest.c
10443 rm -rf conftest.dSYM
10444
10445fi
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10447$as_echo "$lt_cv_ld_force_load" >&6; }
10448 case $host_os in
10449 rhapsody* | darwin1.[012])
10450 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10451 darwin1.*)
10452 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10453 darwin*) # darwin 5.x on
10454 # if running on 10.5 or later, the deployment target defaults
10455 # to the OS version, if on x86, and 10.4, the deployment
10456 # target defaults to 10.4. Don't you love it?
10457 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10458 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10459 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10460 10.[012][,.]*)
10461 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10462 10.*)
10463 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10464 esac
10465 ;;
10466 esac
10467 if test yes = "$lt_cv_apple_cc_single_mod"; then
10468 _lt_dar_single_mod='$single_module'
10469 fi
10470 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10471 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10472 else
10473 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10474 fi
10475 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10476 _lt_dsymutil='~$DSYMUTIL $lib || :'
10477 else
10478 _lt_dsymutil=
10479 fi
10480 ;;
10481 esac
10482
10483# func_munge_path_list VARIABLE PATH
10484# -----------------------------------
10485# VARIABLE is name of variable containing _space_ separated list of
10486# directories to be munged by the contents of PATH, which is string
10487# having a format:
10488# "DIR[:DIR]:"
10489# string "DIR[ DIR]" will be prepended to VARIABLE
10490# ":DIR[:DIR]"
10491# string "DIR[ DIR]" will be appended to VARIABLE
10492# "DIRP[:DIRP]::[DIRA:]DIRA"
10493# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10494# "DIRA[ DIRA]" will be appended to VARIABLE
10495# "DIR[:DIR]"
10496# VARIABLE will be replaced by "DIR[ DIR]"
10497func_munge_path_list ()
10498{
10499 case x$2 in
10500 x)
10501 ;;
10502 *:)
10503 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10504 ;;
10505 x:*)
10506 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10507 ;;
10508 *::*)
10509 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10510 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10511 ;;
10512 *)
10513 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10514 ;;
10515 esac
10516}
10517
Alex Deymo486467e2017-12-19 19:04:07 +010010518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10519$as_echo_n "checking for ANSI C header files... " >&6; }
10520if ${ac_cv_header_stdc+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522else
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524/* end confdefs.h. */
10525#include <stdlib.h>
10526#include <stdarg.h>
10527#include <string.h>
10528#include <float.h>
10529
10530int main (void)
10531{
10532
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537if ac_fn_c_try_compile "$LINENO"; then :
10538 ac_cv_header_stdc=yes
10539else
10540 ac_cv_header_stdc=no
10541fi
10542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543
10544if test $ac_cv_header_stdc = yes; then
10545 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547/* end confdefs.h. */
10548#include <string.h>
10549
10550_ACEOF
10551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10552 $EGREP "memchr" >/dev/null 2>&1; then :
10553
10554else
10555 ac_cv_header_stdc=no
10556fi
10557rm -f conftest*
10558
10559fi
10560
10561if test $ac_cv_header_stdc = yes; then
10562 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h. */
10565#include <stdlib.h>
10566
10567_ACEOF
10568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10569 $EGREP "free" >/dev/null 2>&1; then :
10570
10571else
10572 ac_cv_header_stdc=no
10573fi
10574rm -f conftest*
10575
10576fi
10577
10578if test $ac_cv_header_stdc = yes; then
10579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10580 if test "$cross_compiling" = yes; then :
10581 :
10582else
10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584/* end confdefs.h. */
10585#include <ctype.h>
10586#include <stdlib.h>
10587#if ((' ' & 0x0FF) == 0x020)
10588# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10589# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10590#else
10591# define ISLOWER(c) \
10592 (('a' <= (c) && (c) <= 'i') \
10593 || ('j' <= (c) && (c) <= 'r') \
10594 || ('s' <= (c) && (c) <= 'z'))
10595# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10596#endif
10597
10598#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10599int
10600main ()
10601{
10602 int i;
10603 for (i = 0; i < 256; i++)
10604 if (XOR (islower (i), ISLOWER (i))
10605 || toupper (i) != TOUPPER (i))
10606 return 2;
10607 return 0;
10608}
10609_ACEOF
10610if ac_fn_c_try_run "$LINENO"; then :
10611
10612else
10613 ac_cv_header_stdc=no
10614fi
10615rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10616 conftest.$ac_objext conftest.beam conftest.$ac_ext
10617fi
10618
10619fi
10620fi
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10622$as_echo "$ac_cv_header_stdc" >&6; }
10623if test $ac_cv_header_stdc = yes; then
10624
10625$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10626
10627fi
10628
10629# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10630for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10631 inttypes.h stdint.h unistd.h
10632do :
10633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10634ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10635"
10636if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10637 cat >>confdefs.h <<_ACEOF
10638#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10639_ACEOF
10640
10641fi
10642
10643done
10644
10645
Elliott Hughes82be86d2017-09-20 17:00:17 -070010646for ac_header in dlfcn.h
10647do :
10648 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10649"
10650if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10651 cat >>confdefs.h <<_ACEOF
10652#define HAVE_DLFCN_H 1
10653_ACEOF
10654
10655fi
10656
10657done
10658
10659# ------------------------------------ #
10660# Determine libtool default behavior #
10661# ------------------------------------ #
10662
10663#
10664# Default behavior is to enable shared and static libraries on systems
10665# where libtool knows how to build both library versions, and does not
10666# require separate configuration and build runs for each flavor.
10667#
10668
10669xc_lt_want_enable_shared='yes'
10670xc_lt_want_enable_static='yes'
10671
10672#
10673# User may have disabled shared or static libraries.
10674#
10675case "x$enable_shared" in # (
10676 xno)
10677 xc_lt_want_enable_shared='no'
10678 ;;
10679esac
10680case "x$enable_static" in # (
10681 xno)
10682 xc_lt_want_enable_static='no'
10683 ;;
10684esac
10685if test "x$xc_lt_want_enable_shared" = 'xno' &&
10686 test "x$xc_lt_want_enable_static" = 'xno'; then
10687 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10688fi
10689
10690#
10691# Default behavior on systems that require independent configuration
10692# and build runs for shared and static is to enable shared libraries
10693# and disable static ones. On these systems option '--disable-shared'
10694# must be used in order to build a proper static library.
10695#
10696
10697if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10698 test "x$xc_lt_want_enable_static" = 'xyes'; then
10699 case $host_os in # (
10700 pw32* | cegcc* | os2* | aix*)
10701 xc_lt_want_enable_static='no'
10702 ;;
10703 esac
10704fi
10705
10706#
10707# Make libtool aware of current shared and static library preferences
10708# taking in account that, depending on host characteristics, libtool
10709# may modify these option preferences later in this configure script.
10710#
10711
10712enable_shared=$xc_lt_want_enable_shared
10713enable_static=$xc_lt_want_enable_static
10714
10715#
10716# Default behavior is to build PIC objects for shared libraries and
10717# non-PIC objects for static libraries.
10718#
10719
10720xc_lt_want_with_pic='default'
10721
10722#
10723# User may have specified PIC preference.
10724#
10725
10726case "x$with_pic" in # ((
10727 xno)
10728 xc_lt_want_with_pic='no'
10729 ;;
10730 xyes)
10731 xc_lt_want_with_pic='yes'
10732 ;;
10733esac
10734
10735#
10736# Default behavior on some systems where building a shared library out
10737# of non-PIC compiled objects will fail with following linker error
10738# "relocation R_X86_64_32 can not be used when making a shared object"
10739# is to build PIC objects even for static libraries. This behavior may
10740# be overridden using 'configure --disable-shared --without-pic'.
10741#
10742
10743if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10744 case $host_cpu in # (
10745 x86_64 | amd64 | ia64)
10746 case $host_os in # (
10747 linux* | freebsd*)
10748 xc_lt_want_with_pic='yes'
10749 ;;
10750 esac
10751 ;;
10752 esac
10753fi
10754
10755#
10756# Make libtool aware of current PIC preference taking in account that,
10757# depending on host characteristics, libtool may modify PIC default
10758# behavior to fit host system idiosyncrasies later in this script.
10759#
10760
10761with_pic=$xc_lt_want_with_pic
10762
10763## ----------------------- ##
10764## Start of libtool code ##
10765## ----------------------- ##
10766
10767
10768
10769
10770# Set options
10771enable_win32_dll=yes
10772
10773case $host in
10774*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10775 if test -n "$ac_tool_prefix"; then
10776 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10777set dummy ${ac_tool_prefix}as; ac_word=$2
10778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779$as_echo_n "checking for $ac_word... " >&6; }
10780if ${ac_cv_prog_AS+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782else
10783 if test -n "$AS"; then
10784 ac_cv_prog_AS="$AS" # Let the user override the test.
10785else
10786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10787for as_dir in $PATH
10788do
10789 IFS=$as_save_IFS
10790 test -z "$as_dir" && as_dir=.
10791 for ac_exec_ext in '' $ac_executable_extensions; do
10792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10793 ac_cv_prog_AS="${ac_tool_prefix}as"
10794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10795 break 2
10796 fi
10797done
10798 done
10799IFS=$as_save_IFS
10800
10801fi
10802fi
10803AS=$ac_cv_prog_AS
10804if test -n "$AS"; then
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10806$as_echo "$AS" >&6; }
10807else
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10809$as_echo "no" >&6; }
10810fi
10811
10812
10813fi
10814if test -z "$ac_cv_prog_AS"; then
10815 ac_ct_AS=$AS
10816 # Extract the first word of "as", so it can be a program name with args.
10817set dummy as; ac_word=$2
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819$as_echo_n "checking for $ac_word... " >&6; }
10820if ${ac_cv_prog_ac_ct_AS+:} false; then :
10821 $as_echo_n "(cached) " >&6
10822else
10823 if test -n "$ac_ct_AS"; then
10824 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10825else
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10833 ac_cv_prog_ac_ct_AS="as"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837done
10838 done
10839IFS=$as_save_IFS
10840
10841fi
10842fi
10843ac_ct_AS=$ac_cv_prog_ac_ct_AS
10844if test -n "$ac_ct_AS"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10846$as_echo "$ac_ct_AS" >&6; }
10847else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
10850fi
10851
10852 if test "x$ac_ct_AS" = x; then
10853 AS="false"
10854 else
10855 case $cross_compiling:$ac_tool_warned in
10856yes:)
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10859ac_tool_warned=yes ;;
10860esac
10861 AS=$ac_ct_AS
10862 fi
10863else
10864 AS="$ac_cv_prog_AS"
10865fi
10866
10867 if test -n "$ac_tool_prefix"; then
10868 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10869set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10871$as_echo_n "checking for $ac_word... " >&6; }
10872if ${ac_cv_prog_DLLTOOL+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874else
10875 if test -n "$DLLTOOL"; then
10876 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10877else
10878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10879for as_dir in $PATH
10880do
10881 IFS=$as_save_IFS
10882 test -z "$as_dir" && as_dir=.
10883 for ac_exec_ext in '' $ac_executable_extensions; do
10884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10885 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 break 2
10888 fi
10889done
10890 done
10891IFS=$as_save_IFS
10892
10893fi
10894fi
10895DLLTOOL=$ac_cv_prog_DLLTOOL
10896if test -n "$DLLTOOL"; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10898$as_echo "$DLLTOOL" >&6; }
10899else
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
10902fi
10903
10904
10905fi
10906if test -z "$ac_cv_prog_DLLTOOL"; then
10907 ac_ct_DLLTOOL=$DLLTOOL
10908 # Extract the first word of "dlltool", so it can be a program name with args.
10909set dummy dlltool; ac_word=$2
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10911$as_echo_n "checking for $ac_word... " >&6; }
10912if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10913 $as_echo_n "(cached) " >&6
10914else
10915 if test -n "$ac_ct_DLLTOOL"; then
10916 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929done
10930 done
10931IFS=$as_save_IFS
10932
10933fi
10934fi
10935ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10936if test -n "$ac_ct_DLLTOOL"; then
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10938$as_echo "$ac_ct_DLLTOOL" >&6; }
10939else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
10942fi
10943
10944 if test "x$ac_ct_DLLTOOL" = x; then
10945 DLLTOOL="false"
10946 else
10947 case $cross_compiling:$ac_tool_warned in
10948yes:)
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10951ac_tool_warned=yes ;;
10952esac
10953 DLLTOOL=$ac_ct_DLLTOOL
10954 fi
10955else
10956 DLLTOOL="$ac_cv_prog_DLLTOOL"
10957fi
10958
10959 if test -n "$ac_tool_prefix"; then
10960 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10961set dummy ${ac_tool_prefix}objdump; ac_word=$2
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
10964if ${ac_cv_prog_OBJDUMP+:} false; then :
10965 $as_echo_n "(cached) " >&6
10966else
10967 if test -n "$OBJDUMP"; then
10968 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10969else
10970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971for as_dir in $PATH
10972do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10977 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981done
10982 done
10983IFS=$as_save_IFS
10984
10985fi
10986fi
10987OBJDUMP=$ac_cv_prog_OBJDUMP
10988if test -n "$OBJDUMP"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10990$as_echo "$OBJDUMP" >&6; }
10991else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
10994fi
10995
10996
10997fi
10998if test -z "$ac_cv_prog_OBJDUMP"; then
10999 ac_ct_OBJDUMP=$OBJDUMP
11000 # Extract the first word of "objdump", so it can be a program name with args.
11001set dummy objdump; ac_word=$2
11002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11003$as_echo_n "checking for $ac_word... " >&6; }
11004if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11005 $as_echo_n "(cached) " >&6
11006else
11007 if test -n "$ac_ct_OBJDUMP"; then
11008 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11009else
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013 IFS=$as_save_IFS
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 break 2
11020 fi
11021done
11022 done
11023IFS=$as_save_IFS
11024
11025fi
11026fi
11027ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11028if test -n "$ac_ct_OBJDUMP"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11030$as_echo "$ac_ct_OBJDUMP" >&6; }
11031else
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11033$as_echo "no" >&6; }
11034fi
11035
11036 if test "x$ac_ct_OBJDUMP" = x; then
11037 OBJDUMP="false"
11038 else
11039 case $cross_compiling:$ac_tool_warned in
11040yes:)
11041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11043ac_tool_warned=yes ;;
11044esac
11045 OBJDUMP=$ac_ct_OBJDUMP
11046 fi
11047else
11048 OBJDUMP="$ac_cv_prog_OBJDUMP"
11049fi
11050
11051 ;;
11052esac
11053
11054test -z "$AS" && AS=as
11055
11056
11057
11058
11059
11060test -z "$DLLTOOL" && DLLTOOL=dlltool
11061
11062
11063
11064
11065
11066test -z "$OBJDUMP" && OBJDUMP=objdump
11067
11068
11069
11070
11071
11072
11073
11074 enable_dlopen=no
11075
11076
11077
11078 # Check whether --enable-shared was given.
11079if test "${enable_shared+set}" = set; then :
11080 enableval=$enable_shared; p=${PACKAGE-default}
11081 case $enableval in
11082 yes) enable_shared=yes ;;
11083 no) enable_shared=no ;;
11084 *)
11085 enable_shared=no
11086 # Look at the argument we got. We use all the common list separators.
11087 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11088 for pkg in $enableval; do
11089 IFS=$lt_save_ifs
11090 if test "X$pkg" = "X$p"; then
11091 enable_shared=yes
11092 fi
11093 done
11094 IFS=$lt_save_ifs
11095 ;;
11096 esac
11097else
11098 enable_shared=yes
11099fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109 # Check whether --enable-static was given.
11110if test "${enable_static+set}" = set; then :
11111 enableval=$enable_static; p=${PACKAGE-default}
11112 case $enableval in
11113 yes) enable_static=yes ;;
11114 no) enable_static=no ;;
11115 *)
11116 enable_static=no
11117 # Look at the argument we got. We use all the common list separators.
11118 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11119 for pkg in $enableval; do
11120 IFS=$lt_save_ifs
11121 if test "X$pkg" = "X$p"; then
11122 enable_static=yes
11123 fi
11124 done
11125 IFS=$lt_save_ifs
11126 ;;
11127 esac
11128else
11129 enable_static=yes
11130fi
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141# Check whether --with-pic was given.
11142if test "${with_pic+set}" = set; then :
11143 withval=$with_pic; lt_p=${PACKAGE-default}
11144 case $withval in
11145 yes|no) pic_mode=$withval ;;
11146 *)
11147 pic_mode=default
11148 # Look at the argument we got. We use all the common list separators.
11149 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11150 for lt_pkg in $withval; do
11151 IFS=$lt_save_ifs
11152 if test "X$lt_pkg" = "X$lt_p"; then
11153 pic_mode=yes
11154 fi
11155 done
11156 IFS=$lt_save_ifs
11157 ;;
11158 esac
11159else
11160 pic_mode=default
11161fi
11162
11163
11164
11165
11166
11167
11168
11169
11170 # Check whether --enable-fast-install was given.
11171if test "${enable_fast_install+set}" = set; then :
11172 enableval=$enable_fast_install; p=${PACKAGE-default}
11173 case $enableval in
11174 yes) enable_fast_install=yes ;;
11175 no) enable_fast_install=no ;;
11176 *)
11177 enable_fast_install=no
11178 # Look at the argument we got. We use all the common list separators.
11179 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11180 for pkg in $enableval; do
11181 IFS=$lt_save_ifs
11182 if test "X$pkg" = "X$p"; then
11183 enable_fast_install=yes
11184 fi
11185 done
11186 IFS=$lt_save_ifs
11187 ;;
11188 esac
11189else
11190 enable_fast_install=yes
11191fi
11192
11193
11194
11195
11196
11197
11198
11199
11200 shared_archive_member_spec=
11201case $host,$enable_shared in
11202power*-*-aix[5-9]*,yes)
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11204$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11205
11206# Check whether --with-aix-soname was given.
11207if test "${with_aix_soname+set}" = set; then :
11208 withval=$with_aix_soname; case $withval in
11209 aix|svr4|both)
11210 ;;
11211 *)
11212 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11213 ;;
11214 esac
11215 lt_cv_with_aix_soname=$with_aix_soname
11216else
11217 if ${lt_cv_with_aix_soname+:} false; then :
11218 $as_echo_n "(cached) " >&6
11219else
11220 lt_cv_with_aix_soname=aix
11221fi
11222
11223 with_aix_soname=$lt_cv_with_aix_soname
11224fi
11225
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11227$as_echo "$with_aix_soname" >&6; }
11228 if test aix != "$with_aix_soname"; then
11229 # For the AIX way of multilib, we name the shared archive member
11230 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11231 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11232 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11233 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11234 if test 64 = "${OBJECT_MODE-32}"; then
11235 shared_archive_member_spec=shr_64
11236 else
11237 shared_archive_member_spec=shr
11238 fi
11239 fi
11240 ;;
11241*)
11242 with_aix_soname=aix
11243 ;;
11244esac
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255# This can be used to rebuild libtool when needed
11256LIBTOOL_DEPS=$ltmain
11257
11258# Always use our own libtool.
11259LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290test -z "$LN_S" && LN_S="ln -s"
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305if test -n "${ZSH_VERSION+set}"; then
11306 setopt NO_GLOB_SUBST
11307fi
11308
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11310$as_echo_n "checking for objdir... " >&6; }
11311if ${lt_cv_objdir+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313else
11314 rm -f .libs 2>/dev/null
11315mkdir .libs 2>/dev/null
11316if test -d .libs; then
11317 lt_cv_objdir=.libs
11318else
11319 # MS-DOS does not allow filenames that begin with a dot.
11320 lt_cv_objdir=_libs
11321fi
11322rmdir .libs 2>/dev/null
11323fi
11324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11325$as_echo "$lt_cv_objdir" >&6; }
11326objdir=$lt_cv_objdir
11327
11328
11329
11330
11331
11332cat >>confdefs.h <<_ACEOF
11333#define LT_OBJDIR "$lt_cv_objdir/"
11334_ACEOF
11335
11336
11337
11338
11339case $host_os in
11340aix3*)
11341 # AIX sometimes has problems with the GCC collect2 program. For some
11342 # reason, if we set the COLLECT_NAMES environment variable, the problems
11343 # vanish in a puff of smoke.
11344 if test set != "${COLLECT_NAMES+set}"; then
11345 COLLECT_NAMES=
11346 export COLLECT_NAMES
11347 fi
11348 ;;
11349esac
11350
11351# Global variables:
11352ofile=libtool
11353can_build_shared=yes
11354
11355# All known linkers require a '.a' archive for static linking (except MSVC,
11356# which needs '.lib').
11357libext=a
11358
11359with_gnu_ld=$lt_cv_prog_gnu_ld
11360
11361old_CC=$CC
11362old_CFLAGS=$CFLAGS
11363
11364# Set sane defaults for various variables
11365test -z "$CC" && CC=cc
11366test -z "$LTCC" && LTCC=$CC
11367test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11368test -z "$LD" && LD=ld
11369test -z "$ac_objext" && ac_objext=o
11370
11371func_cc_basename $compiler
11372cc_basename=$func_cc_basename_result
11373
11374
11375# Only perform the check for file, if the check method requires it
11376test -z "$MAGIC_CMD" && MAGIC_CMD=file
11377case $deplibs_check_method in
11378file_magic*)
11379 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11381$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11382if ${lt_cv_path_MAGIC_CMD+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384else
11385 case $MAGIC_CMD in
11386[\\/*] | ?:[\\/]*)
11387 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11388 ;;
11389*)
11390 lt_save_MAGIC_CMD=$MAGIC_CMD
11391 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11392 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11393 for ac_dir in $ac_dummy; do
11394 IFS=$lt_save_ifs
11395 test -z "$ac_dir" && ac_dir=.
11396 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11397 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11398 if test -n "$file_magic_test_file"; then
11399 case $deplibs_check_method in
11400 "file_magic "*)
11401 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11402 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11403 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11404 $EGREP "$file_magic_regex" > /dev/null; then
11405 :
11406 else
11407 cat <<_LT_EOF 1>&2
11408
11409*** Warning: the command libtool uses to detect shared libraries,
11410*** $file_magic_cmd, produces output that libtool cannot recognize.
11411*** The result is that libtool may fail to recognize shared libraries
11412*** as such. This will affect the creation of libtool libraries that
11413*** depend on shared libraries, but programs linked with such libtool
11414*** libraries will work regardless of this problem. Nevertheless, you
11415*** may want to report the problem to your system manager and/or to
11416*** bug-libtool@gnu.org
11417
11418_LT_EOF
11419 fi ;;
11420 esac
11421 fi
11422 break
11423 fi
11424 done
11425 IFS=$lt_save_ifs
11426 MAGIC_CMD=$lt_save_MAGIC_CMD
11427 ;;
11428esac
11429fi
11430
11431MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11432if test -n "$MAGIC_CMD"; then
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11434$as_echo "$MAGIC_CMD" >&6; }
11435else
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437$as_echo "no" >&6; }
11438fi
11439
11440
11441
11442
11443
11444if test -z "$lt_cv_path_MAGIC_CMD"; then
11445 if test -n "$ac_tool_prefix"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11447$as_echo_n "checking for file... " >&6; }
11448if ${lt_cv_path_MAGIC_CMD+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450else
11451 case $MAGIC_CMD in
11452[\\/*] | ?:[\\/]*)
11453 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11454 ;;
11455*)
11456 lt_save_MAGIC_CMD=$MAGIC_CMD
11457 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11458 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11459 for ac_dir in $ac_dummy; do
11460 IFS=$lt_save_ifs
11461 test -z "$ac_dir" && ac_dir=.
11462 if test -f "$ac_dir/file"; then
11463 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11464 if test -n "$file_magic_test_file"; then
11465 case $deplibs_check_method in
11466 "file_magic "*)
11467 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11468 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11469 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11470 $EGREP "$file_magic_regex" > /dev/null; then
11471 :
11472 else
11473 cat <<_LT_EOF 1>&2
11474
11475*** Warning: the command libtool uses to detect shared libraries,
11476*** $file_magic_cmd, produces output that libtool cannot recognize.
11477*** The result is that libtool may fail to recognize shared libraries
11478*** as such. This will affect the creation of libtool libraries that
11479*** depend on shared libraries, but programs linked with such libtool
11480*** libraries will work regardless of this problem. Nevertheless, you
11481*** may want to report the problem to your system manager and/or to
11482*** bug-libtool@gnu.org
11483
11484_LT_EOF
11485 fi ;;
11486 esac
11487 fi
11488 break
11489 fi
11490 done
11491 IFS=$lt_save_ifs
11492 MAGIC_CMD=$lt_save_MAGIC_CMD
11493 ;;
11494esac
11495fi
11496
11497MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11498if test -n "$MAGIC_CMD"; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11500$as_echo "$MAGIC_CMD" >&6; }
11501else
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
11504fi
11505
11506
11507 else
11508 MAGIC_CMD=:
11509 fi
11510fi
11511
11512 fi
11513 ;;
11514esac
11515
11516# Use C for the default configuration in the libtool script
11517
11518lt_save_CC=$CC
11519ac_ext=c
11520ac_cpp='$CPP $CPPFLAGS'
11521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11523ac_compiler_gnu=$ac_cv_c_compiler_gnu
11524
11525
11526# Source file extension for C test sources.
11527ac_ext=c
11528
11529# Object file extension for compiled C test sources.
11530objext=o
11531objext=$objext
11532
11533# Code to be used in simple compile tests
11534lt_simple_compile_test_code="int some_variable = 0;"
11535
11536# Code to be used in simple link tests
11537lt_simple_link_test_code='int main(){return(0);}'
11538
11539
11540
11541
11542
11543
11544
11545# If no C compiler was specified, use CC.
11546LTCC=${LTCC-"$CC"}
11547
11548# If no C compiler flags were specified, use CFLAGS.
11549LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11550
11551# Allow CC to be a program name with arguments.
11552compiler=$CC
11553
11554# Save the default compiler, since it gets overwritten when the other
11555# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11556compiler_DEFAULT=$CC
11557
11558# save warnings/boilerplate of simple test code
11559ac_outfile=conftest.$ac_objext
11560echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11561eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11562_lt_compiler_boilerplate=`cat conftest.err`
11563$RM conftest*
11564
11565ac_outfile=conftest.$ac_objext
11566echo "$lt_simple_link_test_code" >conftest.$ac_ext
11567eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11568_lt_linker_boilerplate=`cat conftest.err`
11569$RM -r conftest*
11570
11571
11572## CAVEAT EMPTOR:
11573## There is no encapsulation within the following macros, do not change
11574## the running order or otherwise move them around unless you know exactly
11575## what you are doing...
11576if test -n "$compiler"; then
11577
11578lt_prog_compiler_no_builtin_flag=
11579
11580if test yes = "$GCC"; then
11581 case $cc_basename in
11582 nvcc*)
11583 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11584 *)
11585 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11586 esac
11587
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11589$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11590if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11591 $as_echo_n "(cached) " >&6
11592else
11593 lt_cv_prog_compiler_rtti_exceptions=no
11594 ac_outfile=conftest.$ac_objext
11595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11596 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11597 # Insert the option either (1) after the last *FLAGS variable, or
11598 # (2) before a word containing "conftest.", or (3) at the end.
11599 # Note that $ac_compile itself does not contain backslashes and begins
11600 # with a dollar sign (not a hyphen), so the echo should work correctly.
11601 # The option is referenced via a variable to avoid confusing sed.
11602 lt_compile=`echo "$ac_compile" | $SED \
11603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11605 -e 's:$: $lt_compiler_flag:'`
11606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11607 (eval "$lt_compile" 2>conftest.err)
11608 ac_status=$?
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 if (exit $ac_status) && test -s "$ac_outfile"; then
11612 # The compiler can only warn and ignore the option if not recognized
11613 # So say no if there are warnings other than the usual output.
11614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11616 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11617 lt_cv_prog_compiler_rtti_exceptions=yes
11618 fi
11619 fi
11620 $RM conftest*
11621
11622fi
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11624$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11625
11626if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11627 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11628else
11629 :
11630fi
11631
11632fi
11633
11634
11635
11636
11637
11638
11639 lt_prog_compiler_wl=
11640lt_prog_compiler_pic=
11641lt_prog_compiler_static=
11642
11643
11644 if test yes = "$GCC"; then
11645 lt_prog_compiler_wl='-Wl,'
11646 lt_prog_compiler_static='-static'
11647
11648 case $host_os in
11649 aix*)
11650 # All AIX code is PIC.
11651 if test ia64 = "$host_cpu"; then
11652 # AIX 5 now supports IA64 processor
11653 lt_prog_compiler_static='-Bstatic'
11654 fi
11655 lt_prog_compiler_pic='-fPIC'
11656 ;;
11657
11658 amigaos*)
11659 case $host_cpu in
11660 powerpc)
11661 # see comment about AmigaOS4 .so support
11662 lt_prog_compiler_pic='-fPIC'
11663 ;;
11664 m68k)
11665 # FIXME: we need at least 68020 code to build shared libraries, but
11666 # adding the '-m68020' flag to GCC prevents building anything better,
11667 # like '-m68040'.
11668 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11669 ;;
11670 esac
11671 ;;
11672
11673 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11674 # PIC is the default for these OSes.
11675 ;;
11676
11677 mingw* | cygwin* | pw32* | os2* | cegcc*)
11678 # This hack is so that the source file can tell whether it is being
11679 # built for inclusion in a dll (and should export symbols for example).
11680 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11681 # (--disable-auto-import) libraries
11682 lt_prog_compiler_pic='-DDLL_EXPORT'
11683 case $host_os in
11684 os2*)
11685 lt_prog_compiler_static='$wl-static'
11686 ;;
11687 esac
11688 ;;
11689
11690 darwin* | rhapsody*)
11691 # PIC is the default on this platform
11692 # Common symbols not allowed in MH_DYLIB files
11693 lt_prog_compiler_pic='-fno-common'
11694 ;;
11695
11696 haiku*)
11697 # PIC is the default for Haiku.
11698 # The "-static" flag exists, but is broken.
11699 lt_prog_compiler_static=
11700 ;;
11701
11702 hpux*)
11703 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11704 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11705 # sets the default TLS model and affects inlining.
11706 case $host_cpu in
11707 hppa*64*)
11708 # +Z the default
11709 ;;
11710 *)
11711 lt_prog_compiler_pic='-fPIC'
11712 ;;
11713 esac
11714 ;;
11715
11716 interix[3-9]*)
11717 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11718 # Instead, we relocate shared libraries at runtime.
11719 ;;
11720
11721 msdosdjgpp*)
11722 # Just because we use GCC doesn't mean we suddenly get shared libraries
11723 # on systems that don't support them.
11724 lt_prog_compiler_can_build_shared=no
11725 enable_shared=no
11726 ;;
11727
11728 *nto* | *qnx*)
11729 # QNX uses GNU C++, but need to define -shared option too, otherwise
11730 # it will coredump.
11731 lt_prog_compiler_pic='-fPIC -shared'
11732 ;;
11733
11734 sysv4*MP*)
11735 if test -d /usr/nec; then
11736 lt_prog_compiler_pic=-Kconform_pic
11737 fi
11738 ;;
11739
11740 *)
11741 lt_prog_compiler_pic='-fPIC'
11742 ;;
11743 esac
11744
11745 case $cc_basename in
11746 nvcc*) # Cuda Compiler Driver 2.2
11747 lt_prog_compiler_wl='-Xlinker '
11748 if test -n "$lt_prog_compiler_pic"; then
11749 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11750 fi
11751 ;;
11752 esac
11753 else
11754 # PORTME Check for flag to pass linker flags through the system compiler.
11755 case $host_os in
11756 aix*)
11757 lt_prog_compiler_wl='-Wl,'
11758 if test ia64 = "$host_cpu"; then
11759 # AIX 5 now supports IA64 processor
11760 lt_prog_compiler_static='-Bstatic'
11761 else
11762 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11763 fi
11764 ;;
11765
11766 darwin* | rhapsody*)
11767 # PIC is the default on this platform
11768 # Common symbols not allowed in MH_DYLIB files
11769 lt_prog_compiler_pic='-fno-common'
11770 case $cc_basename in
11771 nagfor*)
11772 # NAG Fortran compiler
11773 lt_prog_compiler_wl='-Wl,-Wl,,'
11774 lt_prog_compiler_pic='-PIC'
11775 lt_prog_compiler_static='-Bstatic'
11776 ;;
11777 esac
11778 ;;
11779
11780 mingw* | cygwin* | pw32* | os2* | cegcc*)
11781 # This hack is so that the source file can tell whether it is being
11782 # built for inclusion in a dll (and should export symbols for example).
11783 lt_prog_compiler_pic='-DDLL_EXPORT'
11784 case $host_os in
11785 os2*)
11786 lt_prog_compiler_static='$wl-static'
11787 ;;
11788 esac
11789 ;;
11790
11791 hpux9* | hpux10* | hpux11*)
11792 lt_prog_compiler_wl='-Wl,'
11793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11794 # not for PA HP-UX.
11795 case $host_cpu in
11796 hppa*64*|ia64*)
11797 # +Z the default
11798 ;;
11799 *)
11800 lt_prog_compiler_pic='+Z'
11801 ;;
11802 esac
11803 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11804 lt_prog_compiler_static='$wl-a ${wl}archive'
11805 ;;
11806
11807 irix5* | irix6* | nonstopux*)
11808 lt_prog_compiler_wl='-Wl,'
11809 # PIC (with -KPIC) is the default.
11810 lt_prog_compiler_static='-non_shared'
11811 ;;
11812
11813 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11814 case $cc_basename in
11815 # old Intel for x86_64, which still supported -KPIC.
11816 ecc*)
11817 lt_prog_compiler_wl='-Wl,'
11818 lt_prog_compiler_pic='-KPIC'
11819 lt_prog_compiler_static='-static'
11820 ;;
11821 # icc used to be incompatible with GCC.
11822 # ICC 10 doesn't accept -KPIC any more.
11823 icc* | ifort*)
11824 lt_prog_compiler_wl='-Wl,'
11825 lt_prog_compiler_pic='-fPIC'
11826 lt_prog_compiler_static='-static'
11827 ;;
11828 # Lahey Fortran 8.1.
11829 lf95*)
11830 lt_prog_compiler_wl='-Wl,'
11831 lt_prog_compiler_pic='--shared'
11832 lt_prog_compiler_static='--static'
11833 ;;
11834 nagfor*)
11835 # NAG Fortran compiler
11836 lt_prog_compiler_wl='-Wl,-Wl,,'
11837 lt_prog_compiler_pic='-PIC'
11838 lt_prog_compiler_static='-Bstatic'
11839 ;;
11840 tcc*)
11841 # Fabrice Bellard et al's Tiny C Compiler
11842 lt_prog_compiler_wl='-Wl,'
11843 lt_prog_compiler_pic='-fPIC'
11844 lt_prog_compiler_static='-static'
11845 ;;
11846 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11847 # Portland Group compilers (*not* the Pentium gcc compiler,
11848 # which looks to be a dead project)
11849 lt_prog_compiler_wl='-Wl,'
11850 lt_prog_compiler_pic='-fpic'
11851 lt_prog_compiler_static='-Bstatic'
11852 ;;
11853 ccc*)
11854 lt_prog_compiler_wl='-Wl,'
11855 # All Alpha code is PIC.
11856 lt_prog_compiler_static='-non_shared'
11857 ;;
11858 xl* | bgxl* | bgf* | mpixl*)
11859 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11860 lt_prog_compiler_wl='-Wl,'
11861 lt_prog_compiler_pic='-qpic'
11862 lt_prog_compiler_static='-qstaticlink'
11863 ;;
11864 *)
11865 case `$CC -V 2>&1 | sed 5q` in
11866 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11867 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11868 lt_prog_compiler_pic='-KPIC'
11869 lt_prog_compiler_static='-Bstatic'
11870 lt_prog_compiler_wl=''
11871 ;;
11872 *Sun\ F* | *Sun*Fortran*)
11873 lt_prog_compiler_pic='-KPIC'
11874 lt_prog_compiler_static='-Bstatic'
11875 lt_prog_compiler_wl='-Qoption ld '
11876 ;;
11877 *Sun\ C*)
11878 # Sun C 5.9
11879 lt_prog_compiler_pic='-KPIC'
11880 lt_prog_compiler_static='-Bstatic'
11881 lt_prog_compiler_wl='-Wl,'
11882 ;;
11883 *Intel*\ [CF]*Compiler*)
11884 lt_prog_compiler_wl='-Wl,'
11885 lt_prog_compiler_pic='-fPIC'
11886 lt_prog_compiler_static='-static'
11887 ;;
11888 *Portland\ Group*)
11889 lt_prog_compiler_wl='-Wl,'
11890 lt_prog_compiler_pic='-fpic'
11891 lt_prog_compiler_static='-Bstatic'
11892 ;;
11893 esac
11894 ;;
11895 esac
11896 ;;
11897
11898 newsos6)
11899 lt_prog_compiler_pic='-KPIC'
11900 lt_prog_compiler_static='-Bstatic'
11901 ;;
11902
11903 *nto* | *qnx*)
11904 # QNX uses GNU C++, but need to define -shared option too, otherwise
11905 # it will coredump.
11906 lt_prog_compiler_pic='-fPIC -shared'
11907 ;;
11908
11909 osf3* | osf4* | osf5*)
11910 lt_prog_compiler_wl='-Wl,'
11911 # All OSF/1 code is PIC.
11912 lt_prog_compiler_static='-non_shared'
11913 ;;
11914
11915 rdos*)
11916 lt_prog_compiler_static='-non_shared'
11917 ;;
11918
11919 solaris*)
11920 lt_prog_compiler_pic='-KPIC'
11921 lt_prog_compiler_static='-Bstatic'
11922 case $cc_basename in
11923 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11924 lt_prog_compiler_wl='-Qoption ld ';;
11925 *)
11926 lt_prog_compiler_wl='-Wl,';;
11927 esac
11928 ;;
11929
11930 sunos4*)
11931 lt_prog_compiler_wl='-Qoption ld '
11932 lt_prog_compiler_pic='-PIC'
11933 lt_prog_compiler_static='-Bstatic'
11934 ;;
11935
11936 sysv4 | sysv4.2uw2* | sysv4.3*)
11937 lt_prog_compiler_wl='-Wl,'
11938 lt_prog_compiler_pic='-KPIC'
11939 lt_prog_compiler_static='-Bstatic'
11940 ;;
11941
11942 sysv4*MP*)
11943 if test -d /usr/nec; then
11944 lt_prog_compiler_pic='-Kconform_pic'
11945 lt_prog_compiler_static='-Bstatic'
11946 fi
11947 ;;
11948
11949 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11950 lt_prog_compiler_wl='-Wl,'
11951 lt_prog_compiler_pic='-KPIC'
11952 lt_prog_compiler_static='-Bstatic'
11953 ;;
11954
11955 unicos*)
11956 lt_prog_compiler_wl='-Wl,'
11957 lt_prog_compiler_can_build_shared=no
11958 ;;
11959
11960 uts4*)
11961 lt_prog_compiler_pic='-pic'
11962 lt_prog_compiler_static='-Bstatic'
11963 ;;
11964
11965 *)
11966 lt_prog_compiler_can_build_shared=no
11967 ;;
11968 esac
11969 fi
11970
11971case $host_os in
11972 # For platforms that do not support PIC, -DPIC is meaningless:
11973 *djgpp*)
11974 lt_prog_compiler_pic=
11975 ;;
11976 *)
11977 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11978 ;;
11979esac
11980
11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11982$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11983if ${lt_cv_prog_compiler_pic+:} false; then :
11984 $as_echo_n "(cached) " >&6
11985else
11986 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11989$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11990lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11991
11992#
11993# Check to make sure the PIC flag actually works.
11994#
11995if test -n "$lt_prog_compiler_pic"; then
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11997$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11998if ${lt_cv_prog_compiler_pic_works+:} false; then :
11999 $as_echo_n "(cached) " >&6
12000else
12001 lt_cv_prog_compiler_pic_works=no
12002 ac_outfile=conftest.$ac_objext
12003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12004 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12005 # Insert the option either (1) after the last *FLAGS variable, or
12006 # (2) before a word containing "conftest.", or (3) at the end.
12007 # Note that $ac_compile itself does not contain backslashes and begins
12008 # with a dollar sign (not a hyphen), so the echo should work correctly.
12009 # The option is referenced via a variable to avoid confusing sed.
12010 lt_compile=`echo "$ac_compile" | $SED \
12011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12013 -e 's:$: $lt_compiler_flag:'`
12014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12015 (eval "$lt_compile" 2>conftest.err)
12016 ac_status=$?
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 if (exit $ac_status) && test -s "$ac_outfile"; then
12020 # The compiler can only warn and ignore the option if not recognized
12021 # So say no if there are warnings other than the usual output.
12022 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12025 lt_cv_prog_compiler_pic_works=yes
12026 fi
12027 fi
12028 $RM conftest*
12029
12030fi
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12032$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12033
12034if test yes = "$lt_cv_prog_compiler_pic_works"; then
12035 case $lt_prog_compiler_pic in
12036 "" | " "*) ;;
12037 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12038 esac
12039else
12040 lt_prog_compiler_pic=
12041 lt_prog_compiler_can_build_shared=no
12042fi
12043
12044fi
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056#
12057# Check to make sure the static flag actually works.
12058#
12059wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12061$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12062if ${lt_cv_prog_compiler_static_works+:} false; then :
12063 $as_echo_n "(cached) " >&6
12064else
12065 lt_cv_prog_compiler_static_works=no
12066 save_LDFLAGS=$LDFLAGS
12067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12070 # The linker can only warn and ignore the option if not recognized
12071 # So say no if there are warnings
12072 if test -s conftest.err; then
12073 # Append any errors to the config.log.
12074 cat conftest.err 1>&5
12075 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12077 if diff conftest.exp conftest.er2 >/dev/null; then
12078 lt_cv_prog_compiler_static_works=yes
12079 fi
12080 else
12081 lt_cv_prog_compiler_static_works=yes
12082 fi
12083 fi
12084 $RM -r conftest*
12085 LDFLAGS=$save_LDFLAGS
12086
12087fi
12088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12089$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12090
12091if test yes = "$lt_cv_prog_compiler_static_works"; then
12092 :
12093else
12094 lt_prog_compiler_static=
12095fi
12096
12097
12098
12099
12100
12101
12102
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12104$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12105if ${lt_cv_prog_compiler_c_o+:} false; then :
12106 $as_echo_n "(cached) " >&6
12107else
12108 lt_cv_prog_compiler_c_o=no
12109 $RM -r conftest 2>/dev/null
12110 mkdir conftest
12111 cd conftest
12112 mkdir out
12113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12114
12115 lt_compiler_flag="-o out/conftest2.$ac_objext"
12116 # Insert the option either (1) after the last *FLAGS variable, or
12117 # (2) before a word containing "conftest.", or (3) at the end.
12118 # Note that $ac_compile itself does not contain backslashes and begins
12119 # with a dollar sign (not a hyphen), so the echo should work correctly.
12120 lt_compile=`echo "$ac_compile" | $SED \
12121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12123 -e 's:$: $lt_compiler_flag:'`
12124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12125 (eval "$lt_compile" 2>out/conftest.err)
12126 ac_status=$?
12127 cat out/conftest.err >&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12130 then
12131 # The compiler can only warn and ignore the option if not recognized
12132 # So say no if there are warnings
12133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12136 lt_cv_prog_compiler_c_o=yes
12137 fi
12138 fi
12139 chmod u+w . 2>&5
12140 $RM conftest*
12141 # SGI C++ compiler will create directory out/ii_files/ for
12142 # template instantiation
12143 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12144 $RM out/* && rmdir out
12145 cd ..
12146 $RM -r conftest
12147 $RM conftest*
12148
12149fi
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12151$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12152
12153
12154
12155
12156
12157
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12159$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12160if ${lt_cv_prog_compiler_c_o+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162else
12163 lt_cv_prog_compiler_c_o=no
12164 $RM -r conftest 2>/dev/null
12165 mkdir conftest
12166 cd conftest
12167 mkdir out
12168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12169
12170 lt_compiler_flag="-o out/conftest2.$ac_objext"
12171 # Insert the option either (1) after the last *FLAGS variable, or
12172 # (2) before a word containing "conftest.", or (3) at the end.
12173 # Note that $ac_compile itself does not contain backslashes and begins
12174 # with a dollar sign (not a hyphen), so the echo should work correctly.
12175 lt_compile=`echo "$ac_compile" | $SED \
12176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12178 -e 's:$: $lt_compiler_flag:'`
12179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12180 (eval "$lt_compile" 2>out/conftest.err)
12181 ac_status=$?
12182 cat out/conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12185 then
12186 # The compiler can only warn and ignore the option if not recognized
12187 # So say no if there are warnings
12188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12191 lt_cv_prog_compiler_c_o=yes
12192 fi
12193 fi
12194 chmod u+w . 2>&5
12195 $RM conftest*
12196 # SGI C++ compiler will create directory out/ii_files/ for
12197 # template instantiation
12198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12199 $RM out/* && rmdir out
12200 cd ..
12201 $RM -r conftest
12202 $RM conftest*
12203
12204fi
12205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12206$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12207
12208
12209
12210
12211hard_links=nottested
12212if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12213 # do not overwrite the value of need_locks provided by the user
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12215$as_echo_n "checking if we can lock with hard links... " >&6; }
12216 hard_links=yes
12217 $RM conftest*
12218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12219 touch conftest.a
12220 ln conftest.a conftest.b 2>&5 || hard_links=no
12221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12223$as_echo "$hard_links" >&6; }
12224 if test no = "$hard_links"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12226$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12227 need_locks=warn
12228 fi
12229else
12230 need_locks=no
12231fi
12232
12233
12234
12235
12236
12237
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12239$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12240
12241 runpath_var=
12242 allow_undefined_flag=
12243 always_export_symbols=no
12244 archive_cmds=
12245 archive_expsym_cmds=
12246 compiler_needs_object=no
12247 enable_shared_with_static_runtimes=no
12248 export_dynamic_flag_spec=
12249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12250 hardcode_automatic=no
12251 hardcode_direct=no
12252 hardcode_direct_absolute=no
12253 hardcode_libdir_flag_spec=
12254 hardcode_libdir_separator=
12255 hardcode_minus_L=no
12256 hardcode_shlibpath_var=unsupported
12257 inherit_rpath=no
12258 link_all_deplibs=unknown
12259 module_cmds=
12260 module_expsym_cmds=
12261 old_archive_from_new_cmds=
12262 old_archive_from_expsyms_cmds=
12263 thread_safe_flag_spec=
12264 whole_archive_flag_spec=
12265 # include_expsyms should be a list of space-separated symbols to be *always*
12266 # included in the symbol list
12267 include_expsyms=
12268 # exclude_expsyms can be an extended regexp of symbols to exclude
12269 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12270 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12271 # as well as any symbol that contains 'd'.
12272 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12273 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12274 # platforms (ab)use it in PIC code, but their linkers get confused if
12275 # the symbol is explicitly referenced. Since portable code cannot
12276 # rely on this symbol name, it's probably fine to never include it in
12277 # preloaded symbol tables.
12278 # Exclude shared library initialization/finalization symbols.
12279 extract_expsyms_cmds=
12280
12281 case $host_os in
12282 cygwin* | mingw* | pw32* | cegcc*)
12283 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12284 # When not using gcc, we currently assume that we are using
12285 # Microsoft Visual C++.
12286 if test yes != "$GCC"; then
12287 with_gnu_ld=no
12288 fi
12289 ;;
12290 interix*)
12291 # we just hope/assume this is gcc and not c89 (= MSVC++)
12292 with_gnu_ld=yes
12293 ;;
12294 openbsd* | bitrig*)
12295 with_gnu_ld=no
12296 ;;
12297 linux* | k*bsd*-gnu | gnu*)
12298 link_all_deplibs=no
12299 ;;
12300 esac
12301
12302 ld_shlibs=yes
12303
12304 # On some targets, GNU ld is compatible enough with the native linker
12305 # that we're better off using the native interface for both.
12306 lt_use_gnu_ld_interface=no
12307 if test yes = "$with_gnu_ld"; then
12308 case $host_os in
12309 aix*)
12310 # The AIX port of GNU ld has always aspired to compatibility
12311 # with the native linker. However, as the warning in the GNU ld
12312 # block says, versions before 2.19.5* couldn't really create working
12313 # shared libraries, regardless of the interface used.
12314 case `$LD -v 2>&1` in
12315 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12316 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12317 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12318 *)
12319 lt_use_gnu_ld_interface=yes
12320 ;;
12321 esac
12322 ;;
12323 *)
12324 lt_use_gnu_ld_interface=yes
12325 ;;
12326 esac
12327 fi
12328
12329 if test yes = "$lt_use_gnu_ld_interface"; then
12330 # If archive_cmds runs LD, not CC, wlarc should be empty
12331 wlarc='$wl'
12332
12333 # Set some defaults for GNU ld with shared library support. These
12334 # are reset later if shared libraries are not supported. Putting them
12335 # here allows them to be overridden if necessary.
12336 runpath_var=LD_RUN_PATH
12337 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12338 export_dynamic_flag_spec='$wl--export-dynamic'
12339 # ancient GNU ld didn't support --whole-archive et. al.
12340 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12341 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12342 else
12343 whole_archive_flag_spec=
12344 fi
12345 supports_anon_versioning=no
12346 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12347 *GNU\ gold*) supports_anon_versioning=yes ;;
12348 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12349 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12350 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12351 *\ 2.11.*) ;; # other 2.11 versions
12352 *) supports_anon_versioning=yes ;;
12353 esac
12354
12355 # See if GNU ld supports shared libraries.
12356 case $host_os in
12357 aix[3-9]*)
12358 # On AIX/PPC, the GNU linker is very broken
12359 if test ia64 != "$host_cpu"; then
12360 ld_shlibs=no
12361 cat <<_LT_EOF 1>&2
12362
12363*** Warning: the GNU linker, at least up to release 2.19, is reported
12364*** to be unable to reliably create shared libraries on AIX.
12365*** Therefore, libtool is disabling shared libraries support. If you
12366*** really care for shared libraries, you may want to install binutils
12367*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12368*** You will then need to restart the configuration process.
12369
12370_LT_EOF
12371 fi
12372 ;;
12373
12374 amigaos*)
12375 case $host_cpu in
12376 powerpc)
12377 # see comment about AmigaOS4 .so support
12378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12379 archive_expsym_cmds=''
12380 ;;
12381 m68k)
12382 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)'
12383 hardcode_libdir_flag_spec='-L$libdir'
12384 hardcode_minus_L=yes
12385 ;;
12386 esac
12387 ;;
12388
12389 beos*)
12390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12391 allow_undefined_flag=unsupported
12392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12393 # support --undefined. This deserves some investigation. FIXME
12394 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12395 else
12396 ld_shlibs=no
12397 fi
12398 ;;
12399
12400 cygwin* | mingw* | pw32* | cegcc*)
12401 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12402 # as there is no search path for DLLs.
12403 hardcode_libdir_flag_spec='-L$libdir'
12404 export_dynamic_flag_spec='$wl--export-all-symbols'
12405 allow_undefined_flag=unsupported
12406 always_export_symbols=no
12407 enable_shared_with_static_runtimes=yes
12408 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'
12409 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12410
12411 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12413 # If the export-symbols file already is a .def file, use it as
12414 # is; otherwise, prepend EXPORTS...
12415 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12416 cp $export_symbols $output_objdir/$soname.def;
12417 else
12418 echo EXPORTS > $output_objdir/$soname.def;
12419 cat $export_symbols >> $output_objdir/$soname.def;
12420 fi~
12421 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12422 else
12423 ld_shlibs=no
12424 fi
12425 ;;
12426
12427 haiku*)
12428 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12429 link_all_deplibs=yes
12430 ;;
12431
12432 os2*)
12433 hardcode_libdir_flag_spec='-L$libdir'
12434 hardcode_minus_L=yes
12435 allow_undefined_flag=unsupported
12436 shrext_cmds=.dll
12437 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12438 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12439 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12440 $ECHO EXPORTS >> $output_objdir/$libname.def~
12441 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12442 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12443 emximp -o $lib $output_objdir/$libname.def'
12444 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12445 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12446 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12447 $ECHO EXPORTS >> $output_objdir/$libname.def~
12448 prefix_cmds="$SED"~
12449 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12450 prefix_cmds="$prefix_cmds -e 1d";
12451 fi~
12452 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12453 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12454 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12455 emximp -o $lib $output_objdir/$libname.def'
12456 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12457 enable_shared_with_static_runtimes=yes
12458 ;;
12459
12460 interix[3-9]*)
12461 hardcode_direct=no
12462 hardcode_shlibpath_var=no
12463 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12464 export_dynamic_flag_spec='$wl-E'
12465 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12466 # Instead, shared libraries are loaded at an image base (0x10000000 by
12467 # default) and relocated if they conflict, which is a slow very memory
12468 # consuming and fragmenting process. To avoid this, we pick a random,
12469 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12470 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12471 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12472 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'
12473 ;;
12474
12475 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12476 tmp_diet=no
12477 if test linux-dietlibc = "$host_os"; then
12478 case $cc_basename in
12479 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12480 esac
12481 fi
12482 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12483 && test no = "$tmp_diet"
12484 then
12485 tmp_addflag=' $pic_flag'
12486 tmp_sharedflag='-shared'
12487 case $cc_basename,$host_cpu in
12488 pgcc*) # Portland Group C compiler
12489 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'
12490 tmp_addflag=' $pic_flag'
12491 ;;
12492 pgf77* | pgf90* | pgf95* | pgfortran*)
12493 # Portland Group f77 and f90 compilers
12494 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'
12495 tmp_addflag=' $pic_flag -Mnomain' ;;
12496 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12497 tmp_addflag=' -i_dynamic' ;;
12498 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12499 tmp_addflag=' -i_dynamic -nofor_main' ;;
12500 ifc* | ifort*) # Intel Fortran compiler
12501 tmp_addflag=' -nofor_main' ;;
12502 lf95*) # Lahey Fortran 8.1
12503 whole_archive_flag_spec=
12504 tmp_sharedflag='--shared' ;;
12505 nagfor*) # NAGFOR 5.3
12506 tmp_sharedflag='-Wl,-shared' ;;
12507 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12508 tmp_sharedflag='-qmkshrobj'
12509 tmp_addflag= ;;
12510 nvcc*) # Cuda Compiler Driver 2.2
12511 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'
12512 compiler_needs_object=yes
12513 ;;
12514 esac
12515 case `$CC -V 2>&1 | sed 5q` in
12516 *Sun\ C*) # Sun C 5.9
12517 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'
12518 compiler_needs_object=yes
12519 tmp_sharedflag='-G' ;;
12520 *Sun\ F*) # Sun Fortran 8.3
12521 tmp_sharedflag='-G' ;;
12522 esac
12523 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12524
12525 if test yes = "$supports_anon_versioning"; then
12526 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12528 echo "local: *; };" >> $output_objdir/$libname.ver~
12529 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12530 fi
12531
12532 case $cc_basename in
12533 tcc*)
12534 export_dynamic_flag_spec='-rdynamic'
12535 ;;
12536 xlf* | bgf* | bgxlf* | mpixlf*)
12537 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12538 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12539 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12540 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12541 if test yes = "$supports_anon_versioning"; then
12542 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12543 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12544 echo "local: *; };" >> $output_objdir/$libname.ver~
12545 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12546 fi
12547 ;;
12548 esac
12549 else
12550 ld_shlibs=no
12551 fi
12552 ;;
12553
12554 netbsd* | netbsdelf*-gnu)
12555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12557 wlarc=
12558 else
12559 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12560 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12561 fi
12562 ;;
12563
12564 solaris*)
12565 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12566 ld_shlibs=no
12567 cat <<_LT_EOF 1>&2
12568
12569*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12570*** create shared libraries on Solaris systems. Therefore, libtool
12571*** is disabling shared libraries support. We urge you to upgrade GNU
12572*** binutils to release 2.9.1 or newer. Another option is to modify
12573*** your PATH or compiler configuration so that the native linker is
12574*** used, and then restart.
12575
12576_LT_EOF
12577 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12578 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12579 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12580 else
12581 ld_shlibs=no
12582 fi
12583 ;;
12584
12585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12586 case `$LD -v 2>&1` in
12587 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12588 ld_shlibs=no
12589 cat <<_LT_EOF 1>&2
12590
12591*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12592*** reliably create shared libraries on SCO systems. Therefore, libtool
12593*** is disabling shared libraries support. We urge you to upgrade GNU
12594*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12595*** your PATH or compiler configuration so that the native linker is
12596*** used, and then restart.
12597
12598_LT_EOF
12599 ;;
12600 *)
12601 # For security reasons, it is highly recommended that you always
12602 # use absolute paths for naming shared libraries, and exclude the
12603 # DT_RUNPATH tag from executables and libraries. But doing so
12604 # requires that you compile everything twice, which is a pain.
12605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12606 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12609 else
12610 ld_shlibs=no
12611 fi
12612 ;;
12613 esac
12614 ;;
12615
12616 sunos4*)
12617 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12618 wlarc=
12619 hardcode_direct=yes
12620 hardcode_shlibpath_var=no
12621 ;;
12622
12623 *)
12624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12625 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12626 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12627 else
12628 ld_shlibs=no
12629 fi
12630 ;;
12631 esac
12632
12633 if test no = "$ld_shlibs"; then
12634 runpath_var=
12635 hardcode_libdir_flag_spec=
12636 export_dynamic_flag_spec=
12637 whole_archive_flag_spec=
12638 fi
12639 else
12640 # PORTME fill in a description of your system's linker (not GNU ld)
12641 case $host_os in
12642 aix3*)
12643 allow_undefined_flag=unsupported
12644 always_export_symbols=yes
12645 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'
12646 # Note: this linker hardcodes the directories in LIBPATH if there
12647 # are no directories specified by -L.
12648 hardcode_minus_L=yes
12649 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12650 # Neither direct hardcoding nor static linking is supported with a
12651 # broken collect2.
12652 hardcode_direct=unsupported
12653 fi
12654 ;;
12655
12656 aix[4-9]*)
12657 if test ia64 = "$host_cpu"; then
12658 # On IA64, the linker does run time linking by default, so we don't
12659 # have to do anything special.
12660 aix_use_runtimelinking=no
12661 exp_sym_flag='-Bexport'
12662 no_entry_flag=
12663 else
12664 # If we're using GNU nm, then we don't want the "-C" option.
12665 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12666 # Without the "-l" option, or with the "-B" option, AIX nm treats
12667 # weak defined symbols like other global defined symbols, whereas
12668 # GNU nm marks them as "W".
12669 # While the 'weak' keyword is ignored in the Export File, we need
12670 # it in the Import File for the 'aix-soname' feature, so we have
12671 # to replace the "-B" option with "-P" for AIX nm.
12672 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12673 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'
12674 else
12675 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'
12676 fi
12677 aix_use_runtimelinking=no
12678
12679 # Test if we are trying to use run time linking or normal
12680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12681 # have runtime linking enabled, and use it for executables.
12682 # For shared libraries, we enable/disable runtime linking
12683 # depending on the kind of the shared library created -
12684 # when "with_aix_soname,aix_use_runtimelinking" is:
12685 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12686 # "aix,yes" lib.so shared, rtl:yes, for executables
12687 # lib.a static archive
12688 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12689 # lib.a(lib.so.V) shared, rtl:no, for executables
12690 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12691 # lib.a(lib.so.V) shared, rtl:no
12692 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12693 # lib.a static archive
12694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12695 for ld_flag in $LDFLAGS; do
12696 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12697 aix_use_runtimelinking=yes
12698 break
12699 fi
12700 done
12701 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12702 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12703 # so we don't have lib.a shared libs to link our executables.
12704 # We have to force runtime linking in this case.
12705 aix_use_runtimelinking=yes
12706 LDFLAGS="$LDFLAGS -Wl,-brtl"
12707 fi
12708 ;;
12709 esac
12710
12711 exp_sym_flag='-bexport'
12712 no_entry_flag='-bnoentry'
12713 fi
12714
12715 # When large executables or shared objects are built, AIX ld can
12716 # have problems creating the table of contents. If linking a library
12717 # or program results in "error TOC overflow" add -mminimal-toc to
12718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12720
12721 archive_cmds=''
12722 hardcode_direct=yes
12723 hardcode_direct_absolute=yes
12724 hardcode_libdir_separator=':'
12725 link_all_deplibs=yes
12726 file_list_spec='$wl-f,'
12727 case $with_aix_soname,$aix_use_runtimelinking in
12728 aix,*) ;; # traditional, no import file
12729 svr4,* | *,yes) # use import file
12730 # The Import File defines what to hardcode.
12731 hardcode_direct=no
12732 hardcode_direct_absolute=no
12733 ;;
12734 esac
12735
12736 if test yes = "$GCC"; then
12737 case $host_os in aix4.[012]|aix4.[012].*)
12738 # We only want to do this on AIX 4.2 and lower, the check
12739 # below for broken collect2 doesn't work under 4.3+
12740 collect2name=`$CC -print-prog-name=collect2`
12741 if test -f "$collect2name" &&
12742 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12743 then
12744 # We have reworked collect2
12745 :
12746 else
12747 # We have old collect2
12748 hardcode_direct=unsupported
12749 # It fails to find uninstalled libraries when the uninstalled
12750 # path is not listed in the libpath. Setting hardcode_minus_L
12751 # to unsupported forces relinking
12752 hardcode_minus_L=yes
12753 hardcode_libdir_flag_spec='-L$libdir'
12754 hardcode_libdir_separator=
12755 fi
12756 ;;
12757 esac
12758 shared_flag='-shared'
12759 if test yes = "$aix_use_runtimelinking"; then
12760 shared_flag="$shared_flag "'$wl-G'
12761 fi
12762 # Need to ensure runtime linking is disabled for the traditional
12763 # shared library, or the linker may eventually find shared libraries
12764 # /with/ Import File - we do not want to mix them.
12765 shared_flag_aix='-shared'
12766 shared_flag_svr4='-shared $wl-G'
12767 else
12768 # not using gcc
12769 if test ia64 = "$host_cpu"; then
12770 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12771 # chokes on -Wl,-G. The following line is correct:
12772 shared_flag='-G'
12773 else
12774 if test yes = "$aix_use_runtimelinking"; then
12775 shared_flag='$wl-G'
12776 else
12777 shared_flag='$wl-bM:SRE'
12778 fi
12779 shared_flag_aix='$wl-bM:SRE'
12780 shared_flag_svr4='$wl-G'
12781 fi
12782 fi
12783
12784 export_dynamic_flag_spec='$wl-bexpall'
12785 # It seems that -bexpall does not export symbols beginning with
12786 # underscore (_), so it is better to generate a list of symbols to export.
12787 always_export_symbols=yes
12788 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12789 # Warning - without using the other runtime loading flags (-brtl),
12790 # -berok will link without error, but may produce a broken library.
12791 allow_undefined_flag='-berok'
12792 # Determine the default libpath from the value encoded in an
12793 # empty executable.
12794 if test set = "${lt_cv_aix_libpath+set}"; then
12795 aix_libpath=$lt_cv_aix_libpath
12796else
12797 if ${lt_cv_aix_libpath_+:} false; then :
12798 $as_echo_n "(cached) " >&6
12799else
12800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801/* end confdefs.h. */
12802
12803int main (void)
12804{
12805
12806 ;
12807 return 0;
12808}
12809_ACEOF
12810if ac_fn_c_try_link "$LINENO"; then :
12811
12812 lt_aix_libpath_sed='
12813 /Import File Strings/,/^$/ {
12814 /^0/ {
12815 s/^0 *\([^ ]*\) *$/\1/
12816 p
12817 }
12818 }'
12819 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12820 # Check for a 64-bit object if we didn't find anything.
12821 if test -z "$lt_cv_aix_libpath_"; then
12822 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12823 fi
12824fi
12825rm -f core conftest.err conftest.$ac_objext \
12826 conftest$ac_exeext conftest.$ac_ext
12827 if test -z "$lt_cv_aix_libpath_"; then
12828 lt_cv_aix_libpath_=/usr/lib:/lib
12829 fi
12830
12831fi
12832
12833 aix_libpath=$lt_cv_aix_libpath_
12834fi
12835
12836 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12837 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
12838 else
12839 if test ia64 = "$host_cpu"; then
12840 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12841 allow_undefined_flag="-z nodefs"
12842 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"
12843 else
12844 # Determine the default libpath from the value encoded in an
12845 # empty executable.
12846 if test set = "${lt_cv_aix_libpath+set}"; then
12847 aix_libpath=$lt_cv_aix_libpath
12848else
12849 if ${lt_cv_aix_libpath_+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851else
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853/* end confdefs.h. */
12854
12855int main (void)
12856{
12857
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862if ac_fn_c_try_link "$LINENO"; then :
12863
12864 lt_aix_libpath_sed='
12865 /Import File Strings/,/^$/ {
12866 /^0/ {
12867 s/^0 *\([^ ]*\) *$/\1/
12868 p
12869 }
12870 }'
12871 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12872 # Check for a 64-bit object if we didn't find anything.
12873 if test -z "$lt_cv_aix_libpath_"; then
12874 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12875 fi
12876fi
12877rm -f core conftest.err conftest.$ac_objext \
12878 conftest$ac_exeext conftest.$ac_ext
12879 if test -z "$lt_cv_aix_libpath_"; then
12880 lt_cv_aix_libpath_=/usr/lib:/lib
12881 fi
12882
12883fi
12884
12885 aix_libpath=$lt_cv_aix_libpath_
12886fi
12887
12888 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12889 # Warning - without using the other run time loading flags,
12890 # -berok will link without error, but may produce a broken library.
12891 no_undefined_flag=' $wl-bernotok'
12892 allow_undefined_flag=' $wl-berok'
12893 if test yes = "$with_gnu_ld"; then
12894 # We only use this code for GNU lds that support --whole-archive.
12895 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12896 else
12897 # Exported symbols can be pulled into shared objects from archives
12898 whole_archive_flag_spec='$convenience'
12899 fi
12900 archive_cmds_need_lc=yes
12901 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12902 # -brtl affects multiple linker settings, -berok does not and is overridden later
12903 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12904 if test svr4 != "$with_aix_soname"; then
12905 # This is similar to how AIX traditionally builds its shared libraries.
12906 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'
12907 fi
12908 if test aix != "$with_aix_soname"; then
12909 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'
12910 else
12911 # used by -dlpreopen to get the symbols
12912 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12913 fi
12914 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12915 fi
12916 fi
12917 ;;
12918
12919 amigaos*)
12920 case $host_cpu in
12921 powerpc)
12922 # see comment about AmigaOS4 .so support
12923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12924 archive_expsym_cmds=''
12925 ;;
12926 m68k)
12927 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)'
12928 hardcode_libdir_flag_spec='-L$libdir'
12929 hardcode_minus_L=yes
12930 ;;
12931 esac
12932 ;;
12933
12934 bsdi[45]*)
12935 export_dynamic_flag_spec=-rdynamic
12936 ;;
12937
12938 cygwin* | mingw* | pw32* | cegcc*)
12939 # When not using gcc, we currently assume that we are using
12940 # Microsoft Visual C++.
12941 # hardcode_libdir_flag_spec is actually meaningless, as there is
12942 # no search path for DLLs.
12943 case $cc_basename in
12944 cl*)
12945 # Native MSVC
12946 hardcode_libdir_flag_spec=' '
12947 allow_undefined_flag=unsupported
12948 always_export_symbols=yes
12949 file_list_spec='@'
12950 # Tell ltmain to make .lib files, not .a files.
12951 libext=lib
12952 # Tell ltmain to make .dll files, not .so files.
12953 shrext_cmds=.dll
12954 # FIXME: Setting linknames here is a bad hack.
12955 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12956 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12957 cp "$export_symbols" "$output_objdir/$soname.def";
12958 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12959 else
12960 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12961 fi~
12962 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12963 linknames='
12964 # The linker will not automatically build a static lib if we build a DLL.
12965 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12966 enable_shared_with_static_runtimes=yes
12967 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12969 # Don't use ranlib
12970 old_postinstall_cmds='chmod 644 $oldlib'
12971 postlink_cmds='lt_outputfile="@OUTPUT@"~
12972 lt_tool_outputfile="@TOOL_OUTPUT@"~
12973 case $lt_outputfile in
12974 *.exe|*.EXE) ;;
12975 *)
12976 lt_outputfile=$lt_outputfile.exe
12977 lt_tool_outputfile=$lt_tool_outputfile.exe
12978 ;;
12979 esac~
12980 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12981 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12982 $RM "$lt_outputfile.manifest";
12983 fi'
12984 ;;
12985 *)
12986 # Assume MSVC wrapper
12987 hardcode_libdir_flag_spec=' '
12988 allow_undefined_flag=unsupported
12989 # Tell ltmain to make .lib files, not .a files.
12990 libext=lib
12991 # Tell ltmain to make .dll files, not .so files.
12992 shrext_cmds=.dll
12993 # FIXME: Setting linknames here is a bad hack.
12994 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12995 # The linker will automatically build a .lib file if we build a DLL.
12996 old_archive_from_new_cmds='true'
12997 # FIXME: Should let the user specify the lib program.
12998 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12999 enable_shared_with_static_runtimes=yes
13000 ;;
13001 esac
13002 ;;
13003
13004 darwin* | rhapsody*)
13005
13006
13007 archive_cmds_need_lc=no
13008 hardcode_direct=no
13009 hardcode_automatic=yes
13010 hardcode_shlibpath_var=unsupported
13011 if test yes = "$lt_cv_ld_force_load"; then
13012 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\"`'
13013
13014 else
13015 whole_archive_flag_spec=''
13016 fi
13017 link_all_deplibs=yes
13018 allow_undefined_flag=$_lt_dar_allow_undefined
13019 case $cc_basename in
13020 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13021 *) _lt_dar_can_shared=$GCC ;;
13022 esac
13023 if test yes = "$_lt_dar_can_shared"; then
13024 output_verbose_link_cmd=func_echo_all
13025 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13026 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13027 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"
13028 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"
13029
13030 else
13031 ld_shlibs=no
13032 fi
13033
13034 ;;
13035
13036 dgux*)
13037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13038 hardcode_libdir_flag_spec='-L$libdir'
13039 hardcode_shlibpath_var=no
13040 ;;
13041
13042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13043 # support. Future versions do this automatically, but an explicit c++rt0.o
13044 # does not break anything, and helps significantly (at the cost of a little
13045 # extra space).
13046 freebsd2.2*)
13047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13048 hardcode_libdir_flag_spec='-R$libdir'
13049 hardcode_direct=yes
13050 hardcode_shlibpath_var=no
13051 ;;
13052
13053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13054 freebsd2.*)
13055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_direct=yes
13057 hardcode_minus_L=yes
13058 hardcode_shlibpath_var=no
13059 ;;
13060
13061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13062 freebsd* | dragonfly*)
13063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13064 hardcode_libdir_flag_spec='-R$libdir'
13065 hardcode_direct=yes
13066 hardcode_shlibpath_var=no
13067 ;;
13068
13069 hpux9*)
13070 if test yes = "$GCC"; then
13071 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'
13072 else
13073 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'
13074 fi
13075 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13076 hardcode_libdir_separator=:
13077 hardcode_direct=yes
13078
13079 # hardcode_minus_L: Not really in the search PATH,
13080 # but as the default location of the library.
13081 hardcode_minus_L=yes
13082 export_dynamic_flag_spec='$wl-E'
13083 ;;
13084
13085 hpux10*)
13086 if test yes,no = "$GCC,$with_gnu_ld"; then
13087 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13088 else
13089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13090 fi
13091 if test no = "$with_gnu_ld"; then
13092 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13093 hardcode_libdir_separator=:
13094 hardcode_direct=yes
13095 hardcode_direct_absolute=yes
13096 export_dynamic_flag_spec='$wl-E'
13097 # hardcode_minus_L: Not really in the search PATH,
13098 # but as the default location of the library.
13099 hardcode_minus_L=yes
13100 fi
13101 ;;
13102
13103 hpux11*)
13104 if test yes,no = "$GCC,$with_gnu_ld"; then
13105 case $host_cpu in
13106 hppa*64*)
13107 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13108 ;;
13109 ia64*)
13110 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13111 ;;
13112 *)
13113 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13114 ;;
13115 esac
13116 else
13117 case $host_cpu in
13118 hppa*64*)
13119 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 ;;
13121 ia64*)
13122 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13123 ;;
13124 *)
13125
13126 # Older versions of the 11.00 compiler do not understand -b yet
13127 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13129$as_echo_n "checking if $CC understands -b... " >&6; }
13130if ${lt_cv_prog_compiler__b+:} false; then :
13131 $as_echo_n "(cached) " >&6
13132else
13133 lt_cv_prog_compiler__b=no
13134 save_LDFLAGS=$LDFLAGS
13135 LDFLAGS="$LDFLAGS -b"
13136 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13138 # The linker can only warn and ignore the option if not recognized
13139 # So say no if there are warnings
13140 if test -s conftest.err; then
13141 # Append any errors to the config.log.
13142 cat conftest.err 1>&5
13143 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13145 if diff conftest.exp conftest.er2 >/dev/null; then
13146 lt_cv_prog_compiler__b=yes
13147 fi
13148 else
13149 lt_cv_prog_compiler__b=yes
13150 fi
13151 fi
13152 $RM -r conftest*
13153 LDFLAGS=$save_LDFLAGS
13154
13155fi
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13157$as_echo "$lt_cv_prog_compiler__b" >&6; }
13158
13159if test yes = "$lt_cv_prog_compiler__b"; then
13160 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13161else
13162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13163fi
13164
13165 ;;
13166 esac
13167 fi
13168 if test no = "$with_gnu_ld"; then
13169 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13170 hardcode_libdir_separator=:
13171
13172 case $host_cpu in
13173 hppa*64*|ia64*)
13174 hardcode_direct=no
13175 hardcode_shlibpath_var=no
13176 ;;
13177 *)
13178 hardcode_direct=yes
13179 hardcode_direct_absolute=yes
13180 export_dynamic_flag_spec='$wl-E'
13181
13182 # hardcode_minus_L: Not really in the search PATH,
13183 # but as the default location of the library.
13184 hardcode_minus_L=yes
13185 ;;
13186 esac
13187 fi
13188 ;;
13189
13190 irix5* | irix6* | nonstopux*)
13191 if test yes = "$GCC"; then
13192 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'
13193 # Try to use the -exported_symbol ld option, if it does not
13194 # work, assume that -exports_file does not work either and
13195 # implicitly export all symbols.
13196 # This should be the same for all languages, so no per-tag cache variable.
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13198$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13199if ${lt_cv_irix_exported_symbol+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201else
13202 save_LDFLAGS=$LDFLAGS
13203 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205/* end confdefs.h. */
13206int foo (void) { return 0; }
13207_ACEOF
13208if ac_fn_c_try_link "$LINENO"; then :
13209 lt_cv_irix_exported_symbol=yes
13210else
13211 lt_cv_irix_exported_symbol=no
13212fi
13213rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215 LDFLAGS=$save_LDFLAGS
13216fi
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13218$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13219 if test yes = "$lt_cv_irix_exported_symbol"; then
13220 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'
13221 fi
13222 link_all_deplibs=no
13223 else
13224 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'
13225 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'
13226 fi
13227 archive_cmds_need_lc='no'
13228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13229 hardcode_libdir_separator=:
13230 inherit_rpath=yes
13231 link_all_deplibs=yes
13232 ;;
13233
13234 linux*)
13235 case $cc_basename in
13236 tcc*)
13237 # Fabrice Bellard et al's Tiny C Compiler
13238 ld_shlibs=yes
13239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13240 ;;
13241 esac
13242 ;;
13243
13244 netbsd* | netbsdelf*-gnu)
13245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13247 else
13248 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13249 fi
13250 hardcode_libdir_flag_spec='-R$libdir'
13251 hardcode_direct=yes
13252 hardcode_shlibpath_var=no
13253 ;;
13254
13255 newsos6)
13256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13257 hardcode_direct=yes
13258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13259 hardcode_libdir_separator=:
13260 hardcode_shlibpath_var=no
13261 ;;
13262
13263 *nto* | *qnx*)
13264 ;;
13265
13266 openbsd* | bitrig*)
13267 if test -f /usr/libexec/ld.so; then
13268 hardcode_direct=yes
13269 hardcode_shlibpath_var=no
13270 hardcode_direct_absolute=yes
13271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13273 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13274 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13275 export_dynamic_flag_spec='$wl-E'
13276 else
13277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13278 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13279 fi
13280 else
13281 ld_shlibs=no
13282 fi
13283 ;;
13284
13285 os2*)
13286 hardcode_libdir_flag_spec='-L$libdir'
13287 hardcode_minus_L=yes
13288 allow_undefined_flag=unsupported
13289 shrext_cmds=.dll
13290 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13291 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13292 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13293 $ECHO EXPORTS >> $output_objdir/$libname.def~
13294 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13296 emximp -o $lib $output_objdir/$libname.def'
13297 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13298 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13299 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13300 $ECHO EXPORTS >> $output_objdir/$libname.def~
13301 prefix_cmds="$SED"~
13302 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13303 prefix_cmds="$prefix_cmds -e 1d";
13304 fi~
13305 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13306 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13307 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13308 emximp -o $lib $output_objdir/$libname.def'
13309 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13310 enable_shared_with_static_runtimes=yes
13311 ;;
13312
13313 osf3*)
13314 if test yes = "$GCC"; then
13315 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13316 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'
13317 else
13318 allow_undefined_flag=' -expect_unresolved \*'
13319 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'
13320 fi
13321 archive_cmds_need_lc='no'
13322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13323 hardcode_libdir_separator=:
13324 ;;
13325
13326 osf4* | osf5*) # as osf3* with the addition of -msym flag
13327 if test yes = "$GCC"; then
13328 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13329 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'
13330 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13331 else
13332 allow_undefined_flag=' -expect_unresolved \*'
13333 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'
13334 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~
13335 $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'
13336
13337 # Both c and cxx compiler support -rpath directly
13338 hardcode_libdir_flag_spec='-rpath $libdir'
13339 fi
13340 archive_cmds_need_lc='no'
13341 hardcode_libdir_separator=:
13342 ;;
13343
13344 solaris*)
13345 no_undefined_flag=' -z defs'
13346 if test yes = "$GCC"; then
13347 wlarc='$wl'
13348 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13350 $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'
13351 else
13352 case `$CC -V 2>&1` in
13353 *"Compilers 5.0"*)
13354 wlarc=''
13355 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13357 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13358 ;;
13359 *)
13360 wlarc='$wl'
13361 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13362 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13363 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13364 ;;
13365 esac
13366 fi
13367 hardcode_libdir_flag_spec='-R$libdir'
13368 hardcode_shlibpath_var=no
13369 case $host_os in
13370 solaris2.[0-5] | solaris2.[0-5].*) ;;
13371 *)
13372 # The compiler driver will combine and reorder linker options,
13373 # but understands '-z linker_flag'. GCC discards it without '$wl',
13374 # but is careful enough not to reorder.
13375 # Supported since Solaris 2.6 (maybe 2.5.1?)
13376 if test yes = "$GCC"; then
13377 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13378 else
13379 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13380 fi
13381 ;;
13382 esac
13383 link_all_deplibs=yes
13384 ;;
13385
13386 sunos4*)
13387 if test sequent = "$host_vendor"; then
13388 # Use $CC to link under sequent, because it throws in some extra .o
13389 # files that make .init and .fini sections work.
13390 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13391 else
13392 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13393 fi
13394 hardcode_libdir_flag_spec='-L$libdir'
13395 hardcode_direct=yes
13396 hardcode_minus_L=yes
13397 hardcode_shlibpath_var=no
13398 ;;
13399
13400 sysv4)
13401 case $host_vendor in
13402 sni)
13403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13404 hardcode_direct=yes # is this really true???
13405 ;;
13406 siemens)
13407 ## LD is ld it makes a PLAMLIB
13408 ## CC just makes a GrossModule.
13409 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13410 reload_cmds='$CC -r -o $output$reload_objs'
13411 hardcode_direct=no
13412 ;;
13413 motorola)
13414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13416 ;;
13417 esac
13418 runpath_var='LD_RUN_PATH'
13419 hardcode_shlibpath_var=no
13420 ;;
13421
13422 sysv4.3*)
13423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13424 hardcode_shlibpath_var=no
13425 export_dynamic_flag_spec='-Bexport'
13426 ;;
13427
13428 sysv4*MP*)
13429 if test -d /usr/nec; then
13430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13431 hardcode_shlibpath_var=no
13432 runpath_var=LD_RUN_PATH
13433 hardcode_runpath_var=yes
13434 ld_shlibs=yes
13435 fi
13436 ;;
13437
13438 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13439 no_undefined_flag='$wl-z,text'
13440 archive_cmds_need_lc=no
13441 hardcode_shlibpath_var=no
13442 runpath_var='LD_RUN_PATH'
13443
13444 if test yes = "$GCC"; then
13445 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13446 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13447 else
13448 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13449 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13450 fi
13451 ;;
13452
13453 sysv5* | sco3.2v5* | sco5v6*)
13454 # Note: We CANNOT use -z defs as we might desire, because we do not
13455 # link with -lc, and that would cause any symbols used from libc to
13456 # always be unresolved, which means just about no library would
13457 # ever link correctly. If we're not using GNU ld we use -z text
13458 # though, which does catch some bad symbols but isn't as heavy-handed
13459 # as -z defs.
13460 no_undefined_flag='$wl-z,text'
13461 allow_undefined_flag='$wl-z,nodefs'
13462 archive_cmds_need_lc=no
13463 hardcode_shlibpath_var=no
13464 hardcode_libdir_flag_spec='$wl-R,$libdir'
13465 hardcode_libdir_separator=':'
13466 link_all_deplibs=yes
13467 export_dynamic_flag_spec='$wl-Bexport'
13468 runpath_var='LD_RUN_PATH'
13469
13470 if test yes = "$GCC"; then
13471 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13472 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13473 else
13474 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13475 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13476 fi
13477 ;;
13478
13479 uts4*)
13480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 hardcode_libdir_flag_spec='-L$libdir'
13482 hardcode_shlibpath_var=no
13483 ;;
13484
13485 *)
13486 ld_shlibs=no
13487 ;;
13488 esac
13489
13490 if test sni = "$host_vendor"; then
13491 case $host in
13492 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13493 export_dynamic_flag_spec='$wl-Blargedynsym'
13494 ;;
13495 esac
13496 fi
13497 fi
13498
13499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13500$as_echo "$ld_shlibs" >&6; }
13501test no = "$ld_shlibs" && can_build_shared=no
13502
13503with_gnu_ld=$with_gnu_ld
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519#
13520# Do we need to explicitly link libc?
13521#
13522case "x$archive_cmds_need_lc" in
13523x|xyes)
13524 # Assume -lc should be added
13525 archive_cmds_need_lc=yes
13526
13527 if test yes,yes = "$GCC,$enable_shared"; then
13528 case $archive_cmds in
13529 *'~'*)
13530 # FIXME: we may have to deal with multi-command sequences.
13531 ;;
13532 '$CC '*)
13533 # Test whether the compiler implicitly links with -lc since on some
13534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13535 # to ld, don't add -lc before -lgcc.
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13537$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13538if ${lt_cv_archive_cmds_need_lc+:} false; then :
13539 $as_echo_n "(cached) " >&6
13540else
13541 $RM conftest*
13542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13543
13544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13545 (eval $ac_compile) 2>&5
13546 ac_status=$?
13547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13548 test $ac_status = 0; } 2>conftest.err; then
13549 soname=conftest
13550 lib=conftest
13551 libobjs=conftest.$ac_objext
13552 deplibs=
13553 wl=$lt_prog_compiler_wl
13554 pic_flag=$lt_prog_compiler_pic
13555 compiler_flags=-v
13556 linker_flags=-v
13557 verstring=
13558 output_objdir=.
13559 libname=conftest
13560 lt_save_allow_undefined_flag=$allow_undefined_flag
13561 allow_undefined_flag=
13562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13563 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13564 ac_status=$?
13565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13566 test $ac_status = 0; }
13567 then
13568 lt_cv_archive_cmds_need_lc=no
13569 else
13570 lt_cv_archive_cmds_need_lc=yes
13571 fi
13572 allow_undefined_flag=$lt_save_allow_undefined_flag
13573 else
13574 cat conftest.err 1>&5
13575 fi
13576 $RM conftest*
13577
13578fi
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13580$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13581 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13582 ;;
13583 esac
13584 fi
13585 ;;
13586esac
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13740$as_echo_n "checking dynamic linker characteristics... " >&6; }
13741
13742if test yes = "$GCC"; then
13743 case $host_os in
13744 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13745 *) lt_awk_arg='/^libraries:/' ;;
13746 esac
13747 case $host_os in
13748 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13749 *) lt_sed_strip_eq='s|=/|/|g' ;;
13750 esac
13751 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13752 case $lt_search_path_spec in
13753 *\;*)
13754 # if the path contains ";" then we assume it to be the separator
13755 # otherwise default to the standard path separator (i.e. ":") - it is
13756 # assumed that no part of a normal pathname contains ";" but that should
13757 # okay in the real world where ";" in dirpaths is itself problematic.
13758 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13759 ;;
13760 *)
13761 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13762 ;;
13763 esac
13764 # Ok, now we have the path, separated by spaces, we can step through it
13765 # and add multilib dir if necessary...
13766 lt_tmp_lt_search_path_spec=
13767 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13768 # ...but if some path component already ends with the multilib dir we assume
13769 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13770 case "$lt_multi_os_dir; $lt_search_path_spec " in
13771 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13772 lt_multi_os_dir=
13773 ;;
13774 esac
13775 for lt_sys_path in $lt_search_path_spec; do
13776 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13777 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13778 elif test -n "$lt_multi_os_dir"; then
13779 test -d "$lt_sys_path" && \
13780 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13781 fi
13782 done
13783 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13784BEGIN {RS = " "; FS = "/|\n";} {
13785 lt_foo = "";
13786 lt_count = 0;
13787 for (lt_i = NF; lt_i > 0; lt_i--) {
13788 if ($lt_i != "" && $lt_i != ".") {
13789 if ($lt_i == "..") {
13790 lt_count++;
13791 } else {
13792 if (lt_count == 0) {
13793 lt_foo = "/" $lt_i lt_foo;
13794 } else {
13795 lt_count--;
13796 }
13797 }
13798 }
13799 }
13800 if (lt_foo != "") { lt_freq[lt_foo]++; }
13801 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13802}'`
13803 # AWK program above erroneously prepends '/' to C:/dos/paths
13804 # for these hosts.
13805 case $host_os in
13806 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13807 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13808 esac
13809 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13810else
13811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13812fi
13813library_names_spec=
13814libname_spec='lib$name'
13815soname_spec=
13816shrext_cmds=.so
13817postinstall_cmds=
13818postuninstall_cmds=
13819finish_cmds=
13820finish_eval=
13821shlibpath_var=
13822shlibpath_overrides_runpath=unknown
13823version_type=none
13824dynamic_linker="$host_os ld.so"
13825sys_lib_dlsearch_path_spec="/lib /usr/lib"
13826need_lib_prefix=unknown
13827hardcode_into_libs=no
13828
13829# when you set need_version to no, make sure it does not cause -set_version
13830# flags to be left without arguments
13831need_version=unknown
13832
13833
13834
13835case $host_os in
13836aix3*)
13837 version_type=linux # correct to gnu/linux during the next big refactor
13838 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13839 shlibpath_var=LIBPATH
13840
13841 # AIX 3 has no versioning support, so we append a major version to the name.
13842 soname_spec='$libname$release$shared_ext$major'
13843 ;;
13844
13845aix[4-9]*)
13846 version_type=linux # correct to gnu/linux during the next big refactor
13847 need_lib_prefix=no
13848 need_version=no
13849 hardcode_into_libs=yes
13850 if test ia64 = "$host_cpu"; then
13851 # AIX 5 supports IA64
13852 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13853 shlibpath_var=LD_LIBRARY_PATH
13854 else
13855 # With GCC up to 2.95.x, collect2 would create an import file
13856 # for dependence libraries. The import file would start with
13857 # the line '#! .'. This would cause the generated library to
13858 # depend on '.', always an invalid library. This was fixed in
13859 # development snapshots of GCC prior to 3.0.
13860 case $host_os in
13861 aix4 | aix4.[01] | aix4.[01].*)
13862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13863 echo ' yes '
13864 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13865 :
13866 else
13867 can_build_shared=no
13868 fi
13869 ;;
13870 esac
13871 # Using Import Files as archive members, it is possible to support
13872 # filename-based versioning of shared library archives on AIX. While
13873 # this would work for both with and without runtime linking, it will
13874 # prevent static linking of such archives. So we do filename-based
13875 # shared library versioning with .so extension only, which is used
13876 # when both runtime linking and shared linking is enabled.
13877 # Unfortunately, runtime linking may impact performance, so we do
13878 # not want this to be the default eventually. Also, we use the
13879 # versioned .so libs for executables only if there is the -brtl
13880 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13881 # To allow for filename-based versioning support, we need to create
13882 # libNAME.so.V as an archive file, containing:
13883 # *) an Import File, referring to the versioned filename of the
13884 # archive as well as the shared archive member, telling the
13885 # bitwidth (32 or 64) of that shared object, and providing the
13886 # list of exported symbols of that shared object, eventually
13887 # decorated with the 'weak' keyword
13888 # *) the shared object with the F_LOADONLY flag set, to really avoid
13889 # it being seen by the linker.
13890 # At run time we better use the real file rather than another symlink,
13891 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13892
13893 case $with_aix_soname,$aix_use_runtimelinking in
13894 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13895 # soname into executable. Probably we can add versioning support to
13896 # collect2, so additional links can be useful in future.
13897 aix,yes) # traditional libtool
13898 dynamic_linker='AIX unversionable lib.so'
13899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13900 # instead of lib<name>.a to let people know that these are not
13901 # typical AIX shared libraries.
13902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13903 ;;
13904 aix,no) # traditional AIX only
13905 dynamic_linker='AIX lib.a(lib.so.V)'
13906 # We preserve .a as extension for shared libraries through AIX4.2
13907 # and later when we are not doing run time linking.
13908 library_names_spec='$libname$release.a $libname.a'
13909 soname_spec='$libname$release$shared_ext$major'
13910 ;;
13911 svr4,*) # full svr4 only
13912 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13913 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13914 # We do not specify a path in Import Files, so LIBPATH fires.
13915 shlibpath_overrides_runpath=yes
13916 ;;
13917 *,yes) # both, prefer svr4
13918 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13919 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13920 # unpreferred sharedlib libNAME.a needs extra handling
13921 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"'
13922 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"'
13923 # We do not specify a path in Import Files, so LIBPATH fires.
13924 shlibpath_overrides_runpath=yes
13925 ;;
13926 *,no) # both, prefer aix
13927 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13928 library_names_spec='$libname$release.a $libname.a'
13929 soname_spec='$libname$release$shared_ext$major'
13930 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13931 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)'
13932 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"'
13933 ;;
13934 esac
13935 shlibpath_var=LIBPATH
13936 fi
13937 ;;
13938
13939amigaos*)
13940 case $host_cpu in
13941 powerpc)
13942 # Since July 2007 AmigaOS4 officially supports .so libraries.
13943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13945 ;;
13946 m68k)
13947 library_names_spec='$libname.ixlibrary $libname.a'
13948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13949 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'
13950 ;;
13951 esac
13952 ;;
13953
13954beos*)
13955 library_names_spec='$libname$shared_ext'
13956 dynamic_linker="$host_os ld.so"
13957 shlibpath_var=LIBRARY_PATH
13958 ;;
13959
13960bsdi[45]*)
13961 version_type=linux # correct to gnu/linux during the next big refactor
13962 need_version=no
13963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13964 soname_spec='$libname$release$shared_ext$major'
13965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13966 shlibpath_var=LD_LIBRARY_PATH
13967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13969 # the default ld.so.conf also contains /usr/contrib/lib and
13970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13971 # libtool to hard-code these into programs
13972 ;;
13973
13974cygwin* | mingw* | pw32* | cegcc*)
13975 version_type=windows
13976 shrext_cmds=.dll
13977 need_version=no
13978 need_lib_prefix=no
13979
13980 case $GCC,$cc_basename in
13981 yes,*)
13982 # gcc
13983 library_names_spec='$libname.dll.a'
13984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13985 postinstall_cmds='base_file=`basename \$file`~
13986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13987 dldir=$destdir/`dirname \$dlpath`~
13988 test -d \$dldir || mkdir -p \$dldir~
13989 $install_prog $dir/$dlname \$dldir/$dlname~
13990 chmod a+x \$dldir/$dlname~
13991 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13992 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13993 fi'
13994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13995 dlpath=$dir/\$dldll~
13996 $RM \$dlpath'
13997 shlibpath_overrides_runpath=yes
13998
13999 case $host_os in
14000 cygwin*)
14001 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14002 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14003
14004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14005 ;;
14006 mingw* | cegcc*)
14007 # MinGW DLLs use traditional 'lib' prefix
14008 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14009 ;;
14010 pw32*)
14011 # pw32 DLLs use 'pw' prefix rather than 'lib'
14012 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14013 ;;
14014 esac
14015 dynamic_linker='Win32 ld.exe'
14016 ;;
14017
14018 *,cl*)
14019 # Native MSVC
14020 libname_spec='$name'
14021 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14022 library_names_spec='$libname.dll.lib'
14023
14024 case $build_os in
14025 mingw*)
14026 sys_lib_search_path_spec=
14027 lt_save_ifs=$IFS
14028 IFS=';'
14029 for lt_path in $LIB
14030 do
14031 IFS=$lt_save_ifs
14032 # Let DOS variable expansion print the short 8.3 style file name.
14033 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14034 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14035 done
14036 IFS=$lt_save_ifs
14037 # Convert to MSYS style.
14038 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14039 ;;
14040 cygwin*)
14041 # Convert to unix form, then to dos form, then back to unix form
14042 # but this time dos style (no spaces!) so that the unix form looks
14043 # like /cygdrive/c/PROGRA~1:/cygdr...
14044 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14045 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14046 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14047 ;;
14048 *)
14049 sys_lib_search_path_spec=$LIB
14050 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14051 # It is most probably a Windows format PATH.
14052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14053 else
14054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14055 fi
14056 # FIXME: find the short name or the path components, as spaces are
14057 # common. (e.g. "Program Files" -> "PROGRA~1")
14058 ;;
14059 esac
14060
14061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14062 postinstall_cmds='base_file=`basename \$file`~
14063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14064 dldir=$destdir/`dirname \$dlpath`~
14065 test -d \$dldir || mkdir -p \$dldir~
14066 $install_prog $dir/$dlname \$dldir/$dlname'
14067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14068 dlpath=$dir/\$dldll~
14069 $RM \$dlpath'
14070 shlibpath_overrides_runpath=yes
14071 dynamic_linker='Win32 link.exe'
14072 ;;
14073
14074 *)
14075 # Assume MSVC wrapper
14076 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14077 dynamic_linker='Win32 ld.exe'
14078 ;;
14079 esac
14080 # FIXME: first we should search . and the directory the executable is in
14081 shlibpath_var=PATH
14082 ;;
14083
14084darwin* | rhapsody*)
14085 dynamic_linker="$host_os dyld"
14086 version_type=darwin
14087 need_lib_prefix=no
14088 need_version=no
14089 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14090 soname_spec='$libname$release$major$shared_ext'
14091 shlibpath_overrides_runpath=yes
14092 shlibpath_var=DYLD_LIBRARY_PATH
14093 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14094
14095 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14097 ;;
14098
14099dgux*)
14100 version_type=linux # correct to gnu/linux during the next big refactor
14101 need_lib_prefix=no
14102 need_version=no
14103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14104 soname_spec='$libname$release$shared_ext$major'
14105 shlibpath_var=LD_LIBRARY_PATH
14106 ;;
14107
14108freebsd* | dragonfly*)
14109 # DragonFly does not have aout. When/if they implement a new
14110 # versioning mechanism, adjust this.
14111 if test -x /usr/bin/objformat; then
14112 objformat=`/usr/bin/objformat`
14113 else
14114 case $host_os in
14115 freebsd[23].*) objformat=aout ;;
14116 *) objformat=elf ;;
14117 esac
14118 fi
14119 version_type=freebsd-$objformat
14120 case $version_type in
14121 freebsd-elf*)
14122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14123 soname_spec='$libname$release$shared_ext$major'
14124 need_version=no
14125 need_lib_prefix=no
14126 ;;
14127 freebsd-*)
14128 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14129 need_version=yes
14130 ;;
14131 esac
14132 shlibpath_var=LD_LIBRARY_PATH
14133 case $host_os in
14134 freebsd2.*)
14135 shlibpath_overrides_runpath=yes
14136 ;;
14137 freebsd3.[01]* | freebsdelf3.[01]*)
14138 shlibpath_overrides_runpath=yes
14139 hardcode_into_libs=yes
14140 ;;
14141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14143 shlibpath_overrides_runpath=no
14144 hardcode_into_libs=yes
14145 ;;
14146 *) # from 4.6 on, and DragonFly
14147 shlibpath_overrides_runpath=yes
14148 hardcode_into_libs=yes
14149 ;;
14150 esac
14151 ;;
14152
14153haiku*)
14154 version_type=linux # correct to gnu/linux during the next big refactor
14155 need_lib_prefix=no
14156 need_version=no
14157 dynamic_linker="$host_os runtime_loader"
14158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14159 soname_spec='$libname$release$shared_ext$major'
14160 shlibpath_var=LIBRARY_PATH
14161 shlibpath_overrides_runpath=no
14162 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14163 hardcode_into_libs=yes
14164 ;;
14165
14166hpux9* | hpux10* | hpux11*)
14167 # Give a soname corresponding to the major version so that dld.sl refuses to
14168 # link against other versions.
14169 version_type=sunos
14170 need_lib_prefix=no
14171 need_version=no
14172 case $host_cpu in
14173 ia64*)
14174 shrext_cmds='.so'
14175 hardcode_into_libs=yes
14176 dynamic_linker="$host_os dld.so"
14177 shlibpath_var=LD_LIBRARY_PATH
14178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14180 soname_spec='$libname$release$shared_ext$major'
14181 if test 32 = "$HPUX_IA64_MODE"; then
14182 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14183 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14184 else
14185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14186 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14187 fi
14188 ;;
14189 hppa*64*)
14190 shrext_cmds='.sl'
14191 hardcode_into_libs=yes
14192 dynamic_linker="$host_os dld.sl"
14193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14196 soname_spec='$libname$release$shared_ext$major'
14197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14199 ;;
14200 *)
14201 shrext_cmds='.sl'
14202 dynamic_linker="$host_os dld.sl"
14203 shlibpath_var=SHLIB_PATH
14204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14206 soname_spec='$libname$release$shared_ext$major'
14207 ;;
14208 esac
14209 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14210 postinstall_cmds='chmod 555 $lib'
14211 # or fails outright, so override atomically:
14212 install_override_mode=555
14213 ;;
14214
14215interix[3-9]*)
14216 version_type=linux # correct to gnu/linux during the next big refactor
14217 need_lib_prefix=no
14218 need_version=no
14219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14220 soname_spec='$libname$release$shared_ext$major'
14221 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14222 shlibpath_var=LD_LIBRARY_PATH
14223 shlibpath_overrides_runpath=no
14224 hardcode_into_libs=yes
14225 ;;
14226
14227irix5* | irix6* | nonstopux*)
14228 case $host_os in
14229 nonstopux*) version_type=nonstopux ;;
14230 *)
14231 if test yes = "$lt_cv_prog_gnu_ld"; then
14232 version_type=linux # correct to gnu/linux during the next big refactor
14233 else
14234 version_type=irix
14235 fi ;;
14236 esac
14237 need_lib_prefix=no
14238 need_version=no
14239 soname_spec='$libname$release$shared_ext$major'
14240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14241 case $host_os in
14242 irix5* | nonstopux*)
14243 libsuff= shlibsuff=
14244 ;;
14245 *)
14246 case $LD in # libtool.m4 will add one of these switches to LD
14247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14248 libsuff= shlibsuff= libmagic=32-bit;;
14249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14250 libsuff=32 shlibsuff=N32 libmagic=N32;;
14251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14253 *) libsuff= shlibsuff= libmagic=never-match;;
14254 esac
14255 ;;
14256 esac
14257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14258 shlibpath_overrides_runpath=no
14259 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14260 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14261 hardcode_into_libs=yes
14262 ;;
14263
14264# No shared lib support for Linux oldld, aout, or coff.
14265linux*oldld* | linux*aout* | linux*coff*)
14266 dynamic_linker=no
14267 ;;
14268
14269linux*android*)
14270 version_type=none # Android doesn't support versioned libraries.
14271 need_lib_prefix=no
14272 need_version=no
14273 library_names_spec='$libname$release$shared_ext'
14274 soname_spec='$libname$release$shared_ext'
14275 finish_cmds=
14276 shlibpath_var=LD_LIBRARY_PATH
14277 shlibpath_overrides_runpath=yes
14278
14279 # This implies no fast_install, which is unacceptable.
14280 # Some rework will be needed to allow for fast_install
14281 # before this can be enabled.
14282 hardcode_into_libs=yes
14283
14284 dynamic_linker='Android linker'
14285 # Don't embed -rpath directories since the linker doesn't support them.
14286 hardcode_libdir_flag_spec='-L$libdir'
14287 ;;
14288
14289# This must be glibc/ELF.
14290linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14291 version_type=linux # correct to gnu/linux during the next big refactor
14292 need_lib_prefix=no
14293 need_version=no
14294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14295 soname_spec='$libname$release$shared_ext$major'
14296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14297 shlibpath_var=LD_LIBRARY_PATH
14298 shlibpath_overrides_runpath=no
14299
14300 # Some binutils ld are patched to set DT_RUNPATH
14301 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14302 $as_echo_n "(cached) " >&6
14303else
14304 lt_cv_shlibpath_overrides_runpath=no
14305 save_LDFLAGS=$LDFLAGS
14306 save_libdir=$libdir
14307 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14308 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310/* end confdefs.h. */
14311
14312int main (void)
14313{
14314
14315 ;
14316 return 0;
14317}
14318_ACEOF
14319if ac_fn_c_try_link "$LINENO"; then :
14320 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14321 lt_cv_shlibpath_overrides_runpath=yes
14322fi
14323fi
14324rm -f core conftest.err conftest.$ac_objext \
14325 conftest$ac_exeext conftest.$ac_ext
14326 LDFLAGS=$save_LDFLAGS
14327 libdir=$save_libdir
14328
14329fi
14330
14331 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14332
14333 # This implies no fast_install, which is unacceptable.
14334 # Some rework will be needed to allow for fast_install
14335 # before this can be enabled.
14336 hardcode_into_libs=yes
14337
14338 # Ideally, we could use ldconfig to report *all* directores which are
14339 # searched for libraries, however this is still not possible. Aside from not
14340 # being certain /sbin/ldconfig is available, command
14341 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14342 # even though it is searched at run-time. Try to do the best guess by
14343 # appending ld.so.conf contents (and includes) to the search path.
14344 if test -f /etc/ld.so.conf; then
14345 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' ' '`
14346 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14347 fi
14348
14349 # We used to test for /lib/ld.so.1 and disable shared libraries on
14350 # powerpc, because MkLinux only supported shared libraries with the
14351 # GNU dynamic linker. Since this was broken with cross compilers,
14352 # most powerpc-linux boxes support dynamic linking these days and
14353 # people can always --disable-shared, the test was removed, and we
14354 # assume the GNU/Linux dynamic linker is in use.
14355 dynamic_linker='GNU/Linux ld.so'
14356 ;;
14357
14358netbsdelf*-gnu)
14359 version_type=linux
14360 need_lib_prefix=no
14361 need_version=no
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14363 soname_spec='${libname}${release}${shared_ext}$major'
14364 shlibpath_var=LD_LIBRARY_PATH
14365 shlibpath_overrides_runpath=no
14366 hardcode_into_libs=yes
14367 dynamic_linker='NetBSD ld.elf_so'
14368 ;;
14369
14370netbsd*)
14371 version_type=sunos
14372 need_lib_prefix=no
14373 need_version=no
14374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14375 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14377 dynamic_linker='NetBSD (a.out) ld.so'
14378 else
14379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14380 soname_spec='$libname$release$shared_ext$major'
14381 dynamic_linker='NetBSD ld.elf_so'
14382 fi
14383 shlibpath_var=LD_LIBRARY_PATH
14384 shlibpath_overrides_runpath=yes
14385 hardcode_into_libs=yes
14386 ;;
14387
14388newsos6)
14389 version_type=linux # correct to gnu/linux during the next big refactor
14390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14391 shlibpath_var=LD_LIBRARY_PATH
14392 shlibpath_overrides_runpath=yes
14393 ;;
14394
14395*nto* | *qnx*)
14396 version_type=qnx
14397 need_lib_prefix=no
14398 need_version=no
14399 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14400 soname_spec='$libname$release$shared_ext$major'
14401 shlibpath_var=LD_LIBRARY_PATH
14402 shlibpath_overrides_runpath=no
14403 hardcode_into_libs=yes
14404 dynamic_linker='ldqnx.so'
14405 ;;
14406
14407openbsd* | bitrig*)
14408 version_type=sunos
14409 sys_lib_dlsearch_path_spec=/usr/lib
14410 need_lib_prefix=no
14411 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14412 need_version=no
14413 else
14414 need_version=yes
14415 fi
14416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 shlibpath_overrides_runpath=yes
14420 ;;
14421
14422os2*)
14423 libname_spec='$name'
14424 version_type=windows
14425 shrext_cmds=.dll
14426 need_version=no
14427 need_lib_prefix=no
14428 # OS/2 can only load a DLL with a base name of 8 characters or less.
14429 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14430 v=$($ECHO $release$versuffix | tr -d .-);
14431 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14432 $ECHO $n$v`$shared_ext'
14433 library_names_spec='${libname}_dll.$libext'
14434 dynamic_linker='OS/2 ld.exe'
14435 shlibpath_var=BEGINLIBPATH
14436 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14438 postinstall_cmds='base_file=`basename \$file`~
14439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14440 dldir=$destdir/`dirname \$dlpath`~
14441 test -d \$dldir || mkdir -p \$dldir~
14442 $install_prog $dir/$dlname \$dldir/$dlname~
14443 chmod a+x \$dldir/$dlname~
14444 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14445 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14446 fi'
14447 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14448 dlpath=$dir/\$dldll~
14449 $RM \$dlpath'
14450 ;;
14451
14452osf3* | osf4* | osf5*)
14453 version_type=osf
14454 need_lib_prefix=no
14455 need_version=no
14456 soname_spec='$libname$release$shared_ext$major'
14457 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14460 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14461 ;;
14462
14463rdos*)
14464 dynamic_linker=no
14465 ;;
14466
14467solaris*)
14468 version_type=linux # correct to gnu/linux during the next big refactor
14469 need_lib_prefix=no
14470 need_version=no
14471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14472 soname_spec='$libname$release$shared_ext$major'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=yes
14475 hardcode_into_libs=yes
14476 # ldd complains unless libraries are executable
14477 postinstall_cmds='chmod +x $lib'
14478 ;;
14479
14480sunos4*)
14481 version_type=sunos
14482 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14483 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 shlibpath_overrides_runpath=yes
14486 if test yes = "$with_gnu_ld"; then
14487 need_lib_prefix=no
14488 fi
14489 need_version=yes
14490 ;;
14491
14492sysv4 | sysv4.3*)
14493 version_type=linux # correct to gnu/linux during the next big refactor
14494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14495 soname_spec='$libname$release$shared_ext$major'
14496 shlibpath_var=LD_LIBRARY_PATH
14497 case $host_vendor in
14498 sni)
14499 shlibpath_overrides_runpath=no
14500 need_lib_prefix=no
14501 runpath_var=LD_RUN_PATH
14502 ;;
14503 siemens)
14504 need_lib_prefix=no
14505 ;;
14506 motorola)
14507 need_lib_prefix=no
14508 need_version=no
14509 shlibpath_overrides_runpath=no
14510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14511 ;;
14512 esac
14513 ;;
14514
14515sysv4*MP*)
14516 if test -d /usr/nec; then
14517 version_type=linux # correct to gnu/linux during the next big refactor
14518 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14519 soname_spec='$libname$shared_ext.$major'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 fi
14522 ;;
14523
14524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14525 version_type=sco
14526 need_lib_prefix=no
14527 need_version=no
14528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14529 soname_spec='$libname$release$shared_ext$major'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 shlibpath_overrides_runpath=yes
14532 hardcode_into_libs=yes
14533 if test yes = "$with_gnu_ld"; then
14534 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14535 else
14536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14537 case $host_os in
14538 sco3.2v5*)
14539 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14540 ;;
14541 esac
14542 fi
14543 sys_lib_dlsearch_path_spec='/usr/lib'
14544 ;;
14545
14546tpf*)
14547 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14548 version_type=linux # correct to gnu/linux during the next big refactor
14549 need_lib_prefix=no
14550 need_version=no
14551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=no
14554 hardcode_into_libs=yes
14555 ;;
14556
14557uts4*)
14558 version_type=linux # correct to gnu/linux during the next big refactor
14559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14560 soname_spec='$libname$release$shared_ext$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 ;;
14563
14564*)
14565 dynamic_linker=no
14566 ;;
14567esac
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14569$as_echo "$dynamic_linker" >&6; }
14570test no = "$dynamic_linker" && can_build_shared=no
14571
14572variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14573if test yes = "$GCC"; then
14574 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14575fi
14576
14577if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14578 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14579fi
14580
14581if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14582 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14583fi
14584
14585# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14586configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14587
14588# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14589func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14590
14591# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14592configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14691$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14692hardcode_action=
14693if test -n "$hardcode_libdir_flag_spec" ||
14694 test -n "$runpath_var" ||
14695 test yes = "$hardcode_automatic"; then
14696
14697 # We can hardcode non-existent directories.
14698 if test no != "$hardcode_direct" &&
14699 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14700 # have to relink, otherwise we might link with an installed library
14701 # when we should be linking with a yet-to-be-installed one
14702 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14703 test no != "$hardcode_minus_L"; then
14704 # Linking always hardcodes the temporary library directory.
14705 hardcode_action=relink
14706 else
14707 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14708 hardcode_action=immediate
14709 fi
14710else
14711 # We cannot hardcode anything, or else we can only hardcode existing
14712 # directories.
14713 hardcode_action=unsupported
14714fi
14715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14716$as_echo "$hardcode_action" >&6; }
14717
14718if test relink = "$hardcode_action" ||
14719 test yes = "$inherit_rpath"; then
14720 # Fast installation is not supported
14721 enable_fast_install=no
14722elif test yes = "$shlibpath_overrides_runpath" ||
14723 test no = "$enable_shared"; then
14724 # Fast installation is not necessary
14725 enable_fast_install=needless
14726fi
14727
14728
14729
14730
14731
14732
14733 if test yes != "$enable_dlopen"; then
14734 enable_dlopen=unknown
14735 enable_dlopen_self=unknown
14736 enable_dlopen_self_static=unknown
14737else
14738 lt_cv_dlopen=no
14739 lt_cv_dlopen_libs=
14740
14741 case $host_os in
14742 beos*)
14743 lt_cv_dlopen=load_add_on
14744 lt_cv_dlopen_libs=
14745 lt_cv_dlopen_self=yes
14746 ;;
14747
14748 mingw* | pw32* | cegcc*)
14749 lt_cv_dlopen=LoadLibrary
14750 lt_cv_dlopen_libs=
14751 ;;
14752
14753 cygwin*)
14754 lt_cv_dlopen=dlopen
14755 lt_cv_dlopen_libs=
14756 ;;
14757
14758 darwin*)
14759 # if libdl is installed we need to link against it
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14761$as_echo_n "checking for dlopen in -ldl... " >&6; }
14762if ${ac_cv_lib_dl_dlopen+:} false; then :
14763 $as_echo_n "(cached) " >&6
14764else
14765 ac_check_lib_save_LIBS=$LIBS
14766LIBS="-ldl $LIBS"
14767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14768/* end confdefs.h. */
14769
14770
14771#ifdef __cplusplus
14772extern "C"
14773#endif
14774char dlopen ();
14775int main (void)
14776{
14777return dlopen ();
14778 ;
14779 return 0;
14780}
14781_ACEOF
14782if ac_fn_c_try_link "$LINENO"; then :
14783 ac_cv_lib_dl_dlopen=yes
14784else
14785 ac_cv_lib_dl_dlopen=no
14786fi
14787rm -f core conftest.err conftest.$ac_objext \
14788 conftest$ac_exeext conftest.$ac_ext
14789LIBS=$ac_check_lib_save_LIBS
14790fi
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14792$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14793if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14794 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14795else
14796
14797 lt_cv_dlopen=dyld
14798 lt_cv_dlopen_libs=
14799 lt_cv_dlopen_self=yes
14800
14801fi
14802
14803 ;;
14804
14805 tpf*)
14806 # Don't try to run any link tests for TPF. We know it's impossible
14807 # because TPF is a cross-compiler, and we know how we open DSOs.
14808 lt_cv_dlopen=dlopen
14809 lt_cv_dlopen_libs=
14810 lt_cv_dlopen_self=no
14811 ;;
14812
14813 *)
14814 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14815if test "x$ac_cv_func_shl_load" = xyes; then :
14816 lt_cv_dlopen=shl_load
14817else
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14819$as_echo_n "checking for shl_load in -ldld... " >&6; }
14820if ${ac_cv_lib_dld_shl_load+:} false; then :
14821 $as_echo_n "(cached) " >&6
14822else
14823 ac_check_lib_save_LIBS=$LIBS
14824LIBS="-ldld $LIBS"
14825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826/* end confdefs.h. */
14827
14828
14829#ifdef __cplusplus
14830extern "C"
14831#endif
14832char shl_load ();
14833int main (void)
14834{
14835return shl_load ();
14836 ;
14837 return 0;
14838}
14839_ACEOF
14840if ac_fn_c_try_link "$LINENO"; then :
14841 ac_cv_lib_dld_shl_load=yes
14842else
14843 ac_cv_lib_dld_shl_load=no
14844fi
14845rm -f core conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14847LIBS=$ac_check_lib_save_LIBS
14848fi
14849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14850$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14851if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14852 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14853else
14854 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14855if test "x$ac_cv_func_dlopen" = xyes; then :
14856 lt_cv_dlopen=dlopen
14857else
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14859$as_echo_n "checking for dlopen in -ldl... " >&6; }
14860if ${ac_cv_lib_dl_dlopen+:} false; then :
14861 $as_echo_n "(cached) " >&6
14862else
14863 ac_check_lib_save_LIBS=$LIBS
14864LIBS="-ldl $LIBS"
14865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866/* end confdefs.h. */
14867
14868
14869#ifdef __cplusplus
14870extern "C"
14871#endif
14872char dlopen ();
14873int main (void)
14874{
14875return dlopen ();
14876 ;
14877 return 0;
14878}
14879_ACEOF
14880if ac_fn_c_try_link "$LINENO"; then :
14881 ac_cv_lib_dl_dlopen=yes
14882else
14883 ac_cv_lib_dl_dlopen=no
14884fi
14885rm -f core conftest.err conftest.$ac_objext \
14886 conftest$ac_exeext conftest.$ac_ext
14887LIBS=$ac_check_lib_save_LIBS
14888fi
14889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14890$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14891if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14892 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14893else
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14895$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14896if ${ac_cv_lib_svld_dlopen+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898else
14899 ac_check_lib_save_LIBS=$LIBS
14900LIBS="-lsvld $LIBS"
14901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902/* end confdefs.h. */
14903
14904
14905#ifdef __cplusplus
14906extern "C"
14907#endif
14908char dlopen ();
14909int main (void)
14910{
14911return dlopen ();
14912 ;
14913 return 0;
14914}
14915_ACEOF
14916if ac_fn_c_try_link "$LINENO"; then :
14917 ac_cv_lib_svld_dlopen=yes
14918else
14919 ac_cv_lib_svld_dlopen=no
14920fi
14921rm -f core conftest.err conftest.$ac_objext \
14922 conftest$ac_exeext conftest.$ac_ext
14923LIBS=$ac_check_lib_save_LIBS
14924fi
14925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14926$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14927if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14928 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14929else
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14931$as_echo_n "checking for dld_link in -ldld... " >&6; }
14932if ${ac_cv_lib_dld_dld_link+:} false; then :
14933 $as_echo_n "(cached) " >&6
14934else
14935 ac_check_lib_save_LIBS=$LIBS
14936LIBS="-ldld $LIBS"
14937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938/* end confdefs.h. */
14939
14940
14941#ifdef __cplusplus
14942extern "C"
14943#endif
14944char dld_link ();
14945int main (void)
14946{
14947return dld_link ();
14948 ;
14949 return 0;
14950}
14951_ACEOF
14952if ac_fn_c_try_link "$LINENO"; then :
14953 ac_cv_lib_dld_dld_link=yes
14954else
14955 ac_cv_lib_dld_dld_link=no
14956fi
14957rm -f core conftest.err conftest.$ac_objext \
14958 conftest$ac_exeext conftest.$ac_ext
14959LIBS=$ac_check_lib_save_LIBS
14960fi
14961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14962$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14963if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14964 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14965fi
14966
14967
14968fi
14969
14970
14971fi
14972
14973
14974fi
14975
14976
14977fi
14978
14979
14980fi
14981
14982 ;;
14983 esac
14984
14985 if test no = "$lt_cv_dlopen"; then
14986 enable_dlopen=no
14987 else
14988 enable_dlopen=yes
14989 fi
14990
14991 case $lt_cv_dlopen in
14992 dlopen)
14993 save_CPPFLAGS=$CPPFLAGS
14994 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14995
14996 save_LDFLAGS=$LDFLAGS
14997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14998
14999 save_LIBS=$LIBS
15000 LIBS="$lt_cv_dlopen_libs $LIBS"
15001
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15003$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15004if ${lt_cv_dlopen_self+:} false; then :
15005 $as_echo_n "(cached) " >&6
15006else
15007 if test yes = "$cross_compiling"; then :
15008 lt_cv_dlopen_self=cross
15009else
15010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15011 lt_status=$lt_dlunknown
15012 cat > conftest.$ac_ext <<_LT_EOF
15013#line $LINENO "configure"
15014#include "confdefs.h"
15015
15016#if HAVE_DLFCN_H
15017#include <dlfcn.h>
15018#endif
15019
15020#include <stdio.h>
15021
15022#ifdef RTLD_GLOBAL
15023# define LT_DLGLOBAL RTLD_GLOBAL
15024#else
15025# ifdef DL_GLOBAL
15026# define LT_DLGLOBAL DL_GLOBAL
15027# else
15028# define LT_DLGLOBAL 0
15029# endif
15030#endif
15031
15032/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15033 find out it does not work in some platform. */
15034#ifndef LT_DLLAZY_OR_NOW
15035# ifdef RTLD_LAZY
15036# define LT_DLLAZY_OR_NOW RTLD_LAZY
15037# else
15038# ifdef DL_LAZY
15039# define LT_DLLAZY_OR_NOW DL_LAZY
15040# else
15041# ifdef RTLD_NOW
15042# define LT_DLLAZY_OR_NOW RTLD_NOW
15043# else
15044# ifdef DL_NOW
15045# define LT_DLLAZY_OR_NOW DL_NOW
15046# else
15047# define LT_DLLAZY_OR_NOW 0
15048# endif
15049# endif
15050# endif
15051# endif
15052#endif
15053
15054/* When -fvisibility=hidden is used, assume the code has been annotated
15055 correspondingly for the symbols needed. */
15056#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15057int fnord () __attribute__((visibility("default")));
15058#endif
15059
15060int fnord () { return 42; }
15061int main ()
15062{
15063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15064 int status = $lt_dlunknown;
15065
15066 if (self)
15067 {
15068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15069 else
15070 {
15071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15072 else puts (dlerror ());
15073 }
15074 /* dlclose (self); */
15075 }
15076 else
15077 puts (dlerror ());
15078
15079 return status;
15080}
15081_LT_EOF
15082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15083 (eval $ac_link) 2>&5
15084 ac_status=$?
15085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15087 (./conftest; exit; ) >&5 2>/dev/null
15088 lt_status=$?
15089 case x$lt_status in
15090 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15091 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15092 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15093 esac
15094 else :
15095 # compilation failed
15096 lt_cv_dlopen_self=no
15097 fi
15098fi
15099rm -fr conftest*
15100
15101
15102fi
15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15104$as_echo "$lt_cv_dlopen_self" >&6; }
15105
15106 if test yes = "$lt_cv_dlopen_self"; then
15107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15109$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15110if ${lt_cv_dlopen_self_static+:} false; then :
15111 $as_echo_n "(cached) " >&6
15112else
15113 if test yes = "$cross_compiling"; then :
15114 lt_cv_dlopen_self_static=cross
15115else
15116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15117 lt_status=$lt_dlunknown
15118 cat > conftest.$ac_ext <<_LT_EOF
15119#line $LINENO "configure"
15120#include "confdefs.h"
15121
15122#if HAVE_DLFCN_H
15123#include <dlfcn.h>
15124#endif
15125
15126#include <stdio.h>
15127
15128#ifdef RTLD_GLOBAL
15129# define LT_DLGLOBAL RTLD_GLOBAL
15130#else
15131# ifdef DL_GLOBAL
15132# define LT_DLGLOBAL DL_GLOBAL
15133# else
15134# define LT_DLGLOBAL 0
15135# endif
15136#endif
15137
15138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15139 find out it does not work in some platform. */
15140#ifndef LT_DLLAZY_OR_NOW
15141# ifdef RTLD_LAZY
15142# define LT_DLLAZY_OR_NOW RTLD_LAZY
15143# else
15144# ifdef DL_LAZY
15145# define LT_DLLAZY_OR_NOW DL_LAZY
15146# else
15147# ifdef RTLD_NOW
15148# define LT_DLLAZY_OR_NOW RTLD_NOW
15149# else
15150# ifdef DL_NOW
15151# define LT_DLLAZY_OR_NOW DL_NOW
15152# else
15153# define LT_DLLAZY_OR_NOW 0
15154# endif
15155# endif
15156# endif
15157# endif
15158#endif
15159
15160/* When -fvisibility=hidden is used, assume the code has been annotated
15161 correspondingly for the symbols needed. */
15162#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15163int fnord () __attribute__((visibility("default")));
15164#endif
15165
15166int fnord () { return 42; }
15167int main ()
15168{
15169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15170 int status = $lt_dlunknown;
15171
15172 if (self)
15173 {
15174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15175 else
15176 {
15177 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15178 else puts (dlerror ());
15179 }
15180 /* dlclose (self); */
15181 }
15182 else
15183 puts (dlerror ());
15184
15185 return status;
15186}
15187_LT_EOF
15188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15189 (eval $ac_link) 2>&5
15190 ac_status=$?
15191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15193 (./conftest; exit; ) >&5 2>/dev/null
15194 lt_status=$?
15195 case x$lt_status in
15196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15199 esac
15200 else :
15201 # compilation failed
15202 lt_cv_dlopen_self_static=no
15203 fi
15204fi
15205rm -fr conftest*
15206
15207
15208fi
15209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15210$as_echo "$lt_cv_dlopen_self_static" >&6; }
15211 fi
15212
15213 CPPFLAGS=$save_CPPFLAGS
15214 LDFLAGS=$save_LDFLAGS
15215 LIBS=$save_LIBS
15216 ;;
15217 esac
15218
15219 case $lt_cv_dlopen_self in
15220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15221 *) enable_dlopen_self=unknown ;;
15222 esac
15223
15224 case $lt_cv_dlopen_self_static in
15225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15226 *) enable_dlopen_self_static=unknown ;;
15227 esac
15228fi
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246striplib=
15247old_striplib=
15248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15249$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15250if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15254$as_echo "yes" >&6; }
15255else
15256# FIXME - insert some real tests, host_os isn't really good enough
15257 case $host_os in
15258 darwin*)
15259 if test -n "$STRIP"; then
15260 striplib="$STRIP -x"
15261 old_striplib="$STRIP -S"
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15263$as_echo "yes" >&6; }
15264 else
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15266$as_echo "no" >&6; }
15267 fi
15268 ;;
15269 *)
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271$as_echo "no" >&6; }
15272 ;;
15273 esac
15274fi
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287 # Report what library types will actually be built
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15289$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15291$as_echo "$can_build_shared" >&6; }
15292
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15294$as_echo_n "checking whether to build shared libraries... " >&6; }
15295 test no = "$can_build_shared" && enable_shared=no
15296
15297 # On AIX, shared libraries and static libraries use the same namespace, and
15298 # are all built from PIC.
15299 case $host_os in
15300 aix3*)
15301 test yes = "$enable_shared" && enable_static=no
15302 if test -n "$RANLIB"; then
15303 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15304 postinstall_cmds='$RANLIB $lib'
15305 fi
15306 ;;
15307
15308 aix[4-9]*)
15309 if test ia64 != "$host_cpu"; then
15310 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15311 yes,aix,yes) ;; # shared object as lib.so file only
15312 yes,svr4,*) ;; # shared object as lib.so archive member only
15313 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15314 esac
15315 fi
15316 ;;
15317 esac
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15319$as_echo "$enable_shared" >&6; }
15320
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15322$as_echo_n "checking whether to build static libraries... " >&6; }
15323 # Make sure either enable_shared or enable_static is yes.
15324 test yes = "$enable_shared" || enable_static=yes
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15326$as_echo "$enable_static" >&6; }
15327
15328
15329
15330
15331fi
15332ac_ext=c
15333ac_cpp='$CPP $CPPFLAGS'
15334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15336ac_compiler_gnu=$ac_cv_c_compiler_gnu
15337
15338CC=$lt_save_CC
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354 ac_config_commands="$ac_config_commands libtool"
15355
15356
15357
15358
15359# Only expand once:
15360
15361
15362## --------------------- ##
15363## End of libtool code ##
15364## --------------------- ##
15365
15366#
15367# Verify if finally libtool shared libraries will be built
15368#
15369
15370case "x$enable_shared" in # ((
15371 xyes | xno)
15372 xc_lt_build_shared=$enable_shared
15373 ;;
15374 *)
15375 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15376 ;;
15377esac
15378
15379#
15380# Verify if finally libtool static libraries will be built
15381#
15382
15383case "x$enable_static" in # ((
15384 xyes | xno)
15385 xc_lt_build_static=$enable_static
15386 ;;
15387 *)
15388 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15389 ;;
15390esac
15391
15392#
15393# Verify if libtool shared libraries should be linked using flag -version-info
15394#
15395
15396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15397$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15398xc_lt_shlib_use_version_info='yes'
15399if test "x$version_type" = 'xnone'; then
15400 xc_lt_shlib_use_version_info='no'
15401fi
15402case $host_os in # (
15403 amigaos*)
15404 xc_lt_shlib_use_version_info='yes'
15405 ;;
15406esac
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15408$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15409
15410#
15411# Verify if libtool shared libraries should be linked using flag -no-undefined
15412#
15413
15414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15415$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15416xc_lt_shlib_use_no_undefined='no'
15417if test "x$allow_undefined" = 'xno'; then
15418 xc_lt_shlib_use_no_undefined='yes'
15419elif test "x$allow_undefined_flag" = 'xunsupported'; then
15420 xc_lt_shlib_use_no_undefined='yes'
15421fi
15422case $host_os in # (
15423 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15424 xc_lt_shlib_use_no_undefined='yes'
15425 ;;
15426esac
15427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15428$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15429
15430#
15431# Verify if libtool shared libraries should be linked using flag -mimpure-text
15432#
15433
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15435$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15436xc_lt_shlib_use_mimpure_text='no'
15437case $host_os in # (
15438 solaris2*)
15439 if test "x$GCC" = 'xyes'; then
15440 xc_lt_shlib_use_mimpure_text='yes'
15441 fi
15442 ;;
15443esac
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15445$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15446
15447#
15448# Find out whether libtool libraries would be built wit PIC
15449#
15450
15451case "x$pic_mode" in # ((((
15452 xdefault)
15453 xc_lt_build_shared_with_pic='yes'
15454 xc_lt_build_static_with_pic='no'
15455 ;;
15456 xyes)
15457 xc_lt_build_shared_with_pic='yes'
15458 xc_lt_build_static_with_pic='yes'
15459 ;;
15460 xno)
15461 xc_lt_build_shared_with_pic='no'
15462 xc_lt_build_static_with_pic='no'
15463 ;;
15464 *)
15465 xc_lt_build_shared_with_pic='unknown'
15466 xc_lt_build_static_with_pic='unknown'
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15468$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15469 ;;
15470esac
15471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15472$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15474$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15476$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15478$as_echo "$xc_lt_build_static_with_pic" >&6; }
15479
15480#
15481# Verify if libtool shared libraries will be built while static not built
15482#
15483
15484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15485$as_echo_n "checking whether to build shared libraries only... " >&6; }
15486if test "$xc_lt_build_shared" = 'yes' &&
15487 test "$xc_lt_build_static" = 'no'; then
15488 xc_lt_build_shared_only='yes'
15489else
15490 xc_lt_build_shared_only='no'
15491fi
15492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15493$as_echo "$xc_lt_build_shared_only" >&6; }
15494
15495#
15496# Verify if libtool static libraries will be built while shared not built
15497#
15498
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15500$as_echo_n "checking whether to build static libraries only... " >&6; }
15501if test "$xc_lt_build_static" = 'yes' &&
15502 test "$xc_lt_build_shared" = 'no'; then
15503 xc_lt_build_static_only='yes'
15504else
15505 xc_lt_build_static_only='no'
15506fi
15507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15508$as_echo "$xc_lt_build_static_only" >&6; }
15509
15510
15511
15512
15513#
15514# Automake conditionals based on libtool related checks
15515#
15516
15517 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15518 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15519 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15520else
15521 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15522 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15523fi
15524
15525 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15526 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15527 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15528else
15529 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15530 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15531fi
15532
15533 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15534 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15535 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15536else
15537 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15538 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15539fi
15540
15541
15542#
15543# Due to libtool and automake machinery limitations of not allowing
15544# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15545# inclusion of these in shared or static libraries, we are forced to
15546# build using separate configure runs for shared and static libraries
15547# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15548# to compile objects for each kind of library. Notice that relying on
15549# the '-DPIC' CFLAG that libtool provides is not valid given that the
15550# user might for example choose to build static libraries with PIC.
15551#
15552
15553#
15554# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15555# targeting a static library and not building its shared counterpart.
15556#
15557
15558 if test "x$xc_lt_build_static_only" = 'xyes'; then
15559 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15560 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15561else
15562 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15563 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15564fi
15565
15566
15567#
15568# Make staticlib CPPFLAG variable and its definition visible in output
15569# files unconditionally, providing an empty definition unless strictly
15570# targeting a static library and not building its shared counterpart.
15571#
15572
15573CPPFLAG_CURL_STATICLIB=
15574if test "x$xc_lt_build_static_only" = 'xyes'; then
15575 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15576fi
15577
15578
15579
15580# Determine whether all dependent libraries must be specified when linking
15581if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15582then
15583 REQUIRE_LIB_DEPS=no
15584else
15585 REQUIRE_LIB_DEPS=yes
15586fi
15587
15588 if test x$REQUIRE_LIB_DEPS = xyes; then
15589 USE_EXPLICIT_LIB_DEPS_TRUE=
15590 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15591else
15592 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15593 USE_EXPLICIT_LIB_DEPS_FALSE=
15594fi
15595
15596
15597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15598$as_echo_n "checking for inline... " >&6; }
15599if ${ac_cv_c_inline+:} false; then :
15600 $as_echo_n "(cached) " >&6
15601else
15602 ac_cv_c_inline=no
15603for ac_kw in inline __inline__ __inline; do
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h. */
15606#ifndef __cplusplus
15607typedef int foo_t;
15608static $ac_kw foo_t static_foo () {return 0; }
15609$ac_kw foo_t foo () {return 0; }
15610#endif
15611
15612_ACEOF
15613if ac_fn_c_try_compile "$LINENO"; then :
15614 ac_cv_c_inline=$ac_kw
15615fi
15616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15617 test "$ac_cv_c_inline" != no && break
15618done
15619
15620fi
15621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15622$as_echo "$ac_cv_c_inline" >&6; }
15623
15624case $ac_cv_c_inline in
15625 inline | yes) ;;
15626 *)
15627 case $ac_cv_c_inline in
15628 no) ac_val=;;
15629 *) ac_val=$ac_cv_c_inline;;
15630 esac
15631 cat >>confdefs.h <<_ACEOF
15632#ifndef __cplusplus
15633#define inline $ac_val
15634#endif
15635_ACEOF
15636 ;;
15637esac
15638
15639
15640
15641
Alex Deymo486467e2017-12-19 19:04:07 +010015642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15643$as_echo_n "checking if cpp -P is needed... " >&6; }
15644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15645/* end confdefs.h. */
15646
15647 #include <errno.h>
15648TEST EINVAL TEST
15649
15650_ACEOF
15651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15652 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15653 cpp=no
15654else
15655 cpp=yes
15656fi
15657rm -f conftest*
15658
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15660$as_echo "$cpp" >&6; }
15661
15662 if test "x$cpp" = "xyes"; then
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15664$as_echo_n "checking if cpp -P works... " >&6; }
15665 OLDCPPFLAGS=$CPPFLAGS
15666 CPPFLAGS="$CPPFLAGS -P"
15667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668/* end confdefs.h. */
15669
15670 #include <errno.h>
15671TEST EINVAL TEST
15672
15673_ACEOF
15674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15675 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15676 cpp_p=yes
15677else
15678 cpp_p=no
15679fi
15680rm -f conftest*
15681
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15683$as_echo "$cpp_p" >&6; }
15684
15685 if test "x$cpp_p" = "xno"; then
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15687$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15688 # without -P
15689 CPPPFLAG=""
15690 else
15691 # with -P
15692 CPPPFLAG="-P"
15693 fi
15694 CPPFLAGS=$OLDCPPFLAGS
15695 else
15696 # without -P
15697 CPPPFLAG=""
15698 fi
15699
15700
Elliott Hughes82be86d2017-09-20 17:00:17 -070015701 #
15702 compiler_id="unknown"
15703 compiler_num="0"
15704 #
15705 flags_dbg_all="unknown"
15706 flags_dbg_yes="unknown"
15707 flags_dbg_off="unknown"
15708 flags_opt_all="unknown"
15709 flags_opt_yes="unknown"
15710 flags_opt_off="unknown"
15711 #
15712 flags_prefer_cppflags="no"
15713 #
15714
15715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15716$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15717
15718 OLDCPPFLAGS=$CPPFLAGS
15719 # CPPPFLAG comes from CURL_CPP_P
15720 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15721 if test -z "$SED"; then
15722 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15723 fi
15724 if test -z "$GREP"; then
15725 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15726 fi
15727
15728 tmp_exp=""
15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730/* end confdefs.h. */
15731
15732
15733#ifdef __DECC
15734CURL_DEF_TOKEN __DECC
15735#endif
15736
15737
15738_ACEOF
15739if ac_fn_c_try_cpp "$LINENO"; then :
15740
15741 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15742 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15743 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15744 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15745 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15746 tmp_exp=""
15747 fi
15748
15749fi
15750rm -f conftest.err conftest.i conftest.$ac_ext
15751 if test -z "$tmp_exp"; then
15752 curl_cv_have_def___DECC=no
15753
15754 else
15755 curl_cv_have_def___DECC=yes
15756 curl_cv_def___DECC=$tmp_exp
15757
15758 fi
15759 CPPFLAGS=$OLDCPPFLAGS
15760
15761
15762 OLDCPPFLAGS=$CPPFLAGS
15763 # CPPPFLAG comes from CURL_CPP_P
15764 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15765 if test -z "$SED"; then
15766 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15767 fi
15768 if test -z "$GREP"; then
15769 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15770 fi
15771
15772 tmp_exp=""
15773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15774/* end confdefs.h. */
15775
15776
15777#ifdef __DECC_VER
15778CURL_DEF_TOKEN __DECC_VER
15779#endif
15780
15781
15782_ACEOF
15783if ac_fn_c_try_cpp "$LINENO"; then :
15784
15785 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15786 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15787 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15788 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15789 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15790 tmp_exp=""
15791 fi
15792
15793fi
15794rm -f conftest.err conftest.i conftest.$ac_ext
15795 if test -z "$tmp_exp"; then
15796 curl_cv_have_def___DECC_VER=no
15797
15798 else
15799 curl_cv_have_def___DECC_VER=yes
15800 curl_cv_def___DECC_VER=$tmp_exp
15801
15802 fi
15803 CPPFLAGS=$OLDCPPFLAGS
15804
15805 if test "$curl_cv_have_def___DECC" = "yes" &&
15806 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15808$as_echo "yes" >&6; }
15809 compiler_id="DEC_C"
15810 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15811 flags_dbg_yes="-g2"
15812 flags_dbg_off=""
15813 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15814 flags_opt_yes="-O1"
15815 flags_opt_off="-O0"
15816 else
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15818$as_echo "no" >&6; }
15819 fi
15820
15821
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15823$as_echo_n "checking if compiler is HP-UX C... " >&6; }
15824
15825 OLDCPPFLAGS=$CPPFLAGS
15826 # CPPPFLAG comes from CURL_CPP_P
15827 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15828 if test -z "$SED"; then
15829 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15830 fi
15831 if test -z "$GREP"; then
15832 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15833 fi
15834
15835 tmp_exp=""
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837/* end confdefs.h. */
15838
15839
15840#ifdef __HP_cc
15841CURL_DEF_TOKEN __HP_cc
15842#endif
15843
15844
15845_ACEOF
15846if ac_fn_c_try_cpp "$LINENO"; then :
15847
15848 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15849 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15850 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15851 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15852 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15853 tmp_exp=""
15854 fi
15855
15856fi
15857rm -f conftest.err conftest.i conftest.$ac_ext
15858 if test -z "$tmp_exp"; then
15859 curl_cv_have_def___HP_cc=no
15860
15861 else
15862 curl_cv_have_def___HP_cc=yes
15863 curl_cv_def___HP_cc=$tmp_exp
15864
15865 fi
15866 CPPFLAGS=$OLDCPPFLAGS
15867
15868 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870$as_echo "yes" >&6; }
15871 compiler_id="HP_UX_C"
15872 flags_dbg_all="-g -s"
15873 flags_dbg_yes="-g"
15874 flags_dbg_off="-s"
15875 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15876 flags_opt_yes="+O2"
15877 flags_opt_off="+O0"
15878 else
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880$as_echo "no" >&6; }
15881 fi
15882
15883
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15885$as_echo_n "checking if compiler is IBM C... " >&6; }
15886
15887 OLDCPPFLAGS=$CPPFLAGS
15888 # CPPPFLAG comes from CURL_CPP_P
15889 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15890 if test -z "$SED"; then
15891 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15892 fi
15893 if test -z "$GREP"; then
15894 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15895 fi
15896
15897 tmp_exp=""
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899/* end confdefs.h. */
15900
15901
15902#ifdef __IBMC__
15903CURL_DEF_TOKEN __IBMC__
15904#endif
15905
15906
15907_ACEOF
15908if ac_fn_c_try_cpp "$LINENO"; then :
15909
15910 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15911 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15912 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15913 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15914 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15915 tmp_exp=""
15916 fi
15917
15918fi
15919rm -f conftest.err conftest.i conftest.$ac_ext
15920 if test -z "$tmp_exp"; then
15921 curl_cv_have_def___IBMC__=no
15922
15923 else
15924 curl_cv_have_def___IBMC__=yes
15925 curl_cv_def___IBMC__=$tmp_exp
15926
15927 fi
15928 CPPFLAGS=$OLDCPPFLAGS
15929
15930 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15932$as_echo "yes" >&6; }
15933 compiler_id="IBM_C"
15934 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15935 flags_dbg_yes="-g"
15936 flags_dbg_off=""
15937 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15938 flags_opt_all="$flags_opt_all -qnooptimize"
15939 flags_opt_all="$flags_opt_all -qoptimize=0"
15940 flags_opt_all="$flags_opt_all -qoptimize=1"
15941 flags_opt_all="$flags_opt_all -qoptimize=2"
15942 flags_opt_all="$flags_opt_all -qoptimize=3"
15943 flags_opt_all="$flags_opt_all -qoptimize=4"
15944 flags_opt_all="$flags_opt_all -qoptimize=5"
15945 flags_opt_yes="-O2"
15946 flags_opt_off="-qnooptimize"
15947 flags_prefer_cppflags="yes"
15948 else
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15950$as_echo "no" >&6; }
15951 fi
15952
15953
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15955$as_echo_n "checking if compiler is Intel C... " >&6; }
15956
15957 OLDCPPFLAGS=$CPPFLAGS
15958 # CPPPFLAG comes from CURL_CPP_P
15959 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15960 if test -z "$SED"; then
15961 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15962 fi
15963 if test -z "$GREP"; then
15964 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15965 fi
15966
15967 tmp_exp=""
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969/* end confdefs.h. */
15970
15971
15972#ifdef __INTEL_COMPILER
15973CURL_DEF_TOKEN __INTEL_COMPILER
15974#endif
15975
15976
15977_ACEOF
15978if ac_fn_c_try_cpp "$LINENO"; then :
15979
15980 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15981 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15982 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15983 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15984 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15985 tmp_exp=""
15986 fi
15987
15988fi
15989rm -f conftest.err conftest.i conftest.$ac_ext
15990 if test -z "$tmp_exp"; then
15991 curl_cv_have_def___INTEL_COMPILER=no
15992
15993 else
15994 curl_cv_have_def___INTEL_COMPILER=yes
15995 curl_cv_def___INTEL_COMPILER=$tmp_exp
15996
15997 fi
15998 CPPFLAGS=$OLDCPPFLAGS
15999
16000 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16002$as_echo "yes" >&6; }
16003 compiler_num="$curl_cv_def___INTEL_COMPILER"
16004
16005 OLDCPPFLAGS=$CPPFLAGS
16006 # CPPPFLAG comes from CURL_CPP_P
16007 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16008 if test -z "$SED"; then
16009 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16010 fi
16011 if test -z "$GREP"; then
16012 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16013 fi
16014
16015 tmp_exp=""
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017/* end confdefs.h. */
16018
16019
16020#ifdef __unix__
16021CURL_DEF_TOKEN __unix__
16022#endif
16023
16024
16025_ACEOF
16026if ac_fn_c_try_cpp "$LINENO"; then :
16027
16028 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16029 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16030 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16031 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16032 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16033 tmp_exp=""
16034 fi
16035
16036fi
16037rm -f conftest.err conftest.i conftest.$ac_ext
16038 if test -z "$tmp_exp"; then
16039 curl_cv_have_def___unix__=no
16040
16041 else
16042 curl_cv_have_def___unix__=yes
16043 curl_cv_def___unix__=$tmp_exp
16044
16045 fi
16046 CPPFLAGS=$OLDCPPFLAGS
16047
16048 if test "$curl_cv_have_def___unix__" = "yes"; then
16049 compiler_id="INTEL_UNIX_C"
16050 flags_dbg_all="-g -g0"
16051 flags_dbg_yes="-g"
16052 flags_dbg_off=""
16053 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16054 flags_opt_yes="-O2"
16055 flags_opt_off="-O0"
16056 else
16057 compiler_id="INTEL_WINDOWS_C"
16058 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16059 flags_dbg_all="$flags_dbg_all /debug"
16060 flags_dbg_all="$flags_dbg_all /debug:none"
16061 flags_dbg_all="$flags_dbg_all /debug:minimal"
16062 flags_dbg_all="$flags_dbg_all /debug:partial"
16063 flags_dbg_all="$flags_dbg_all /debug:full"
16064 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16065 flags_dbg_all="$flags_dbg_all /debug:extended"
16066 flags_dbg_yes="/Zi /Oy-"
16067 flags_dbg_off="/debug:none /Oy-"
16068 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16069 flags_opt_yes="/O2"
16070 flags_opt_off="/Od"
16071 fi
16072 else
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16074$as_echo "no" >&6; }
16075 fi
16076
16077
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16079$as_echo_n "checking if compiler is clang... " >&6; }
16080
16081 OLDCPPFLAGS=$CPPFLAGS
16082 # CPPPFLAG comes from CURL_CPP_P
16083 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16084 if test -z "$SED"; then
16085 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16086 fi
16087 if test -z "$GREP"; then
16088 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16089 fi
16090
16091 tmp_exp=""
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h. */
16094
16095
16096#ifdef __clang__
16097CURL_DEF_TOKEN __clang__
16098#endif
16099
16100
16101_ACEOF
16102if ac_fn_c_try_cpp "$LINENO"; then :
16103
16104 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16105 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16106 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16107 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16108 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16109 tmp_exp=""
16110 fi
16111
16112fi
16113rm -f conftest.err conftest.i conftest.$ac_ext
16114 if test -z "$tmp_exp"; then
16115 curl_cv_have_def___clang__=no
16116
16117 else
16118 curl_cv_have_def___clang__=yes
16119 curl_cv_def___clang__=$tmp_exp
16120
16121 fi
16122 CPPFLAGS=$OLDCPPFLAGS
16123
16124 if test "$curl_cv_have_def___clang__" = "yes"; then
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16126$as_echo "yes" >&6; }
Haibo Huang51d9d882019-02-06 01:36:06 -080016127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16128$as_echo_n "checking if compiler is xlclang... " >&6; }
16129
16130 OLDCPPFLAGS=$CPPFLAGS
16131 # CPPPFLAG comes from CURL_CPP_P
16132 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16133 if test -z "$SED"; then
16134 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16135 fi
16136 if test -z "$GREP"; then
16137 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16138 fi
16139
16140 tmp_exp=""
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142/* end confdefs.h. */
16143
16144
16145#ifdef __ibmxl__
16146CURL_DEF_TOKEN __ibmxl__
16147#endif
16148
16149
16150_ACEOF
16151if ac_fn_c_try_cpp "$LINENO"; then :
16152
16153 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16154 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16155 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16156 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16157 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16158 tmp_exp=""
16159 fi
16160
16161fi
16162rm -f conftest.err conftest.i conftest.$ac_ext
16163 if test -z "$tmp_exp"; then
16164 curl_cv_have_def___ibmxl__=no
16165
16166 else
16167 curl_cv_have_def___ibmxl__=yes
16168 curl_cv_def___ibmxl__=$tmp_exp
16169
16170 fi
16171 CPPFLAGS=$OLDCPPFLAGS
16172
16173 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16175$as_echo "yes" >&6; }
16176 compiler_id="XLCLANG"
16177 else
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16179$as_echo "no" >&6; }
16180 compiler_id="CLANG"
16181 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070016182 fullclangver=`$CC -v 2>&1 | grep version`
16183 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16184 if test -z "$clangver"; then
16185 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016186 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016187 else
16188 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16189 fi
16190 fi
16191 clangvhi=`echo $clangver | cut -d . -f1`
16192 clangvlo=`echo $clangver | cut -d . -f2`
16193 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16194 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16195 flags_dbg_all="$flags_dbg_all -ggdb"
16196 flags_dbg_all="$flags_dbg_all -gstabs"
16197 flags_dbg_all="$flags_dbg_all -gstabs+"
16198 flags_dbg_all="$flags_dbg_all -gcoff"
16199 flags_dbg_all="$flags_dbg_all -gxcoff"
16200 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16201 flags_dbg_all="$flags_dbg_all -gvms"
16202 flags_dbg_yes="-g"
16203 flags_dbg_off=""
16204 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16205 flags_opt_yes="-Os"
16206 flags_opt_off="-O0"
16207 else
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16209$as_echo "no" >&6; }
16210 fi
16211
16212
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16214$as_echo_n "checking if compiler is GNU C... " >&6; }
16215
16216 OLDCPPFLAGS=$CPPFLAGS
16217 # CPPPFLAG comes from CURL_CPP_P
16218 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16219 if test -z "$SED"; then
16220 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16221 fi
16222 if test -z "$GREP"; then
16223 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16224 fi
16225
16226 tmp_exp=""
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228/* end confdefs.h. */
16229
16230
16231#ifdef __GNUC__
16232CURL_DEF_TOKEN __GNUC__
16233#endif
16234
16235
16236_ACEOF
16237if ac_fn_c_try_cpp "$LINENO"; then :
16238
16239 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16240 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16241 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16242 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16243 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16244 tmp_exp=""
16245 fi
16246
16247fi
16248rm -f conftest.err conftest.i conftest.$ac_ext
16249 if test -z "$tmp_exp"; then
16250 curl_cv_have_def___GNUC__=no
16251
16252 else
16253 curl_cv_have_def___GNUC__=yes
16254 curl_cv_def___GNUC__=$tmp_exp
16255
16256 fi
16257 CPPFLAGS=$OLDCPPFLAGS
16258
16259 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16260 test "$compiler_id" = "unknown"; then
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16262$as_echo "yes" >&6; }
16263 compiler_id="GNU_C"
16264 gccver=`$CC -dumpversion`
16265 gccvhi=`echo $gccver | cut -d . -f1`
16266 gccvlo=`echo $gccver | cut -d . -f2`
16267 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16268 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16269 flags_dbg_all="$flags_dbg_all -ggdb"
16270 flags_dbg_all="$flags_dbg_all -gstabs"
16271 flags_dbg_all="$flags_dbg_all -gstabs+"
16272 flags_dbg_all="$flags_dbg_all -gcoff"
16273 flags_dbg_all="$flags_dbg_all -gxcoff"
16274 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16275 flags_dbg_all="$flags_dbg_all -gvms"
16276 flags_dbg_yes="-g"
16277 flags_dbg_off=""
16278 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16279 flags_opt_yes="-O2"
16280 flags_opt_off="-O0"
16281
16282 OLDCPPFLAGS=$CPPFLAGS
16283 # CPPPFLAG comes from CURL_CPP_P
16284 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16285 if test -z "$SED"; then
16286 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16287 fi
16288 if test -z "$GREP"; then
16289 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16290 fi
16291
16292 tmp_exp=""
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294/* end confdefs.h. */
16295
16296
16297#ifdef _WIN32
16298CURL_DEF_TOKEN _WIN32
16299#endif
16300
16301
16302_ACEOF
16303if ac_fn_c_try_cpp "$LINENO"; then :
16304
16305 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16306 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16307 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16308 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16309 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16310 tmp_exp=""
16311 fi
16312
16313fi
16314rm -f conftest.err conftest.i conftest.$ac_ext
16315 if test -z "$tmp_exp"; then
16316 curl_cv_have_def__WIN32=no
16317
16318 else
16319 curl_cv_have_def__WIN32=yes
16320 curl_cv_def__WIN32=$tmp_exp
16321
16322 fi
16323 CPPFLAGS=$OLDCPPFLAGS
16324
16325 else
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16327$as_echo "no" >&6; }
16328 fi
16329
16330
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16332$as_echo_n "checking if compiler is LCC... " >&6; }
16333
16334 OLDCPPFLAGS=$CPPFLAGS
16335 # CPPPFLAG comes from CURL_CPP_P
16336 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16337 if test -z "$SED"; then
16338 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16339 fi
16340 if test -z "$GREP"; then
16341 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16342 fi
16343
16344 tmp_exp=""
16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346/* end confdefs.h. */
16347
16348
16349#ifdef __LCC__
16350CURL_DEF_TOKEN __LCC__
16351#endif
16352
16353
16354_ACEOF
16355if ac_fn_c_try_cpp "$LINENO"; then :
16356
16357 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16358 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16359 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16360 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16361 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16362 tmp_exp=""
16363 fi
16364
16365fi
16366rm -f conftest.err conftest.i conftest.$ac_ext
16367 if test -z "$tmp_exp"; then
16368 curl_cv_have_def___LCC__=no
16369
16370 else
16371 curl_cv_have_def___LCC__=yes
16372 curl_cv_def___LCC__=$tmp_exp
16373
16374 fi
16375 CPPFLAGS=$OLDCPPFLAGS
16376
16377 if test "$curl_cv_have_def___LCC__" = "yes"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16379$as_echo "yes" >&6; }
16380 compiler_id="LCC"
16381 flags_dbg_all="-g"
16382 flags_dbg_yes="-g"
16383 flags_dbg_off=""
16384 flags_opt_all=""
16385 flags_opt_yes=""
16386 flags_opt_off=""
16387 else
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16389$as_echo "no" >&6; }
16390 fi
16391
16392
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16394$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16395
16396 OLDCPPFLAGS=$CPPFLAGS
16397 # CPPPFLAG comes from CURL_CPP_P
16398 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16399 if test -z "$SED"; then
16400 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16401 fi
16402 if test -z "$GREP"; then
16403 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16404 fi
16405
16406 tmp_exp=""
16407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16408/* end confdefs.h. */
16409
16410
16411#ifdef __GNUC__
16412CURL_DEF_TOKEN __GNUC__
16413#endif
16414
16415
16416_ACEOF
16417if ac_fn_c_try_cpp "$LINENO"; then :
16418
16419 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16420 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16421 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16422 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16423 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16424 tmp_exp=""
16425 fi
16426
16427fi
16428rm -f conftest.err conftest.i conftest.$ac_ext
16429 if test -z "$tmp_exp"; then
16430 curl_cv_have_def___GNUC__=no
16431
16432 else
16433 curl_cv_have_def___GNUC__=yes
16434 curl_cv_def___GNUC__=$tmp_exp
16435
16436 fi
16437 CPPFLAGS=$OLDCPPFLAGS
16438
16439
16440 OLDCPPFLAGS=$CPPFLAGS
16441 # CPPPFLAG comes from CURL_CPP_P
16442 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16443 if test -z "$SED"; then
16444 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16445 fi
16446 if test -z "$GREP"; then
16447 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16448 fi
16449
16450 tmp_exp=""
16451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16452/* end confdefs.h. */
16453
16454
16455#ifdef _COMPILER_VERSION
16456CURL_DEF_TOKEN _COMPILER_VERSION
16457#endif
16458
16459
16460_ACEOF
16461if ac_fn_c_try_cpp "$LINENO"; then :
16462
16463 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16464 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16465 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16466 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16467 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16468 tmp_exp=""
16469 fi
16470
16471fi
16472rm -f conftest.err conftest.i conftest.$ac_ext
16473 if test -z "$tmp_exp"; then
16474 curl_cv_have_def__COMPILER_VERSION=no
16475
16476 else
16477 curl_cv_have_def__COMPILER_VERSION=yes
16478 curl_cv_def__COMPILER_VERSION=$tmp_exp
16479
16480 fi
16481 CPPFLAGS=$OLDCPPFLAGS
16482
16483
16484 OLDCPPFLAGS=$CPPFLAGS
16485 # CPPPFLAG comes from CURL_CPP_P
16486 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16487 if test -z "$SED"; then
16488 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16489 fi
16490 if test -z "$GREP"; then
16491 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16492 fi
16493
16494 tmp_exp=""
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496/* end confdefs.h. */
16497
16498
16499#ifdef _SGI_COMPILER_VERSION
16500CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16501#endif
16502
16503
16504_ACEOF
16505if ac_fn_c_try_cpp "$LINENO"; then :
16506
16507 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16508 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16509 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16510 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16511 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16512 tmp_exp=""
16513 fi
16514
16515fi
16516rm -f conftest.err conftest.i conftest.$ac_ext
16517 if test -z "$tmp_exp"; then
16518 curl_cv_have_def__SGI_COMPILER_VERSION=no
16519
16520 else
16521 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16522 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16523
16524 fi
16525 CPPFLAGS=$OLDCPPFLAGS
16526
16527 if test "$curl_cv_have_def___GNUC__" = "no" &&
16528 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16529 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16531$as_echo "yes" >&6; }
16532 compiler_id="SGI_MIPSPRO_C"
16533 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16534 flags_dbg_yes="-g"
16535 flags_dbg_off=""
16536 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16537 flags_opt_yes="-O2"
16538 flags_opt_off="-O0"
16539 else
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541$as_echo "no" >&6; }
16542 fi
16543
16544
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16546$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16547
16548 OLDCPPFLAGS=$CPPFLAGS
16549 # CPPPFLAG comes from CURL_CPP_P
16550 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16551 if test -z "$SED"; then
16552 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16553 fi
16554 if test -z "$GREP"; then
16555 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16556 fi
16557
16558 tmp_exp=""
16559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16560/* end confdefs.h. */
16561
16562
16563#ifdef __GNUC__
16564CURL_DEF_TOKEN __GNUC__
16565#endif
16566
16567
16568_ACEOF
16569if ac_fn_c_try_cpp "$LINENO"; then :
16570
16571 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16572 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16573 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16574 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16575 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16576 tmp_exp=""
16577 fi
16578
16579fi
16580rm -f conftest.err conftest.i conftest.$ac_ext
16581 if test -z "$tmp_exp"; then
16582 curl_cv_have_def___GNUC__=no
16583
16584 else
16585 curl_cv_have_def___GNUC__=yes
16586 curl_cv_def___GNUC__=$tmp_exp
16587
16588 fi
16589 CPPFLAGS=$OLDCPPFLAGS
16590
16591
16592 OLDCPPFLAGS=$CPPFLAGS
16593 # CPPPFLAG comes from CURL_CPP_P
16594 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16595 if test -z "$SED"; then
16596 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16597 fi
16598 if test -z "$GREP"; then
16599 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16600 fi
16601
16602 tmp_exp=""
16603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16604/* end confdefs.h. */
16605
16606
16607#ifdef __sgi
16608CURL_DEF_TOKEN __sgi
16609#endif
16610
16611
16612_ACEOF
16613if ac_fn_c_try_cpp "$LINENO"; then :
16614
16615 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16616 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16617 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16618 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16619 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16620 tmp_exp=""
16621 fi
16622
16623fi
16624rm -f conftest.err conftest.i conftest.$ac_ext
16625 if test -z "$tmp_exp"; then
16626 curl_cv_have_def___sgi=no
16627
16628 else
16629 curl_cv_have_def___sgi=yes
16630 curl_cv_def___sgi=$tmp_exp
16631
16632 fi
16633 CPPFLAGS=$OLDCPPFLAGS
16634
16635 if test "$curl_cv_have_def___GNUC__" = "no" &&
16636 test "$curl_cv_have_def___sgi" = "yes" &&
16637 test "$compiler_id" = "unknown"; then
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16639$as_echo "yes" >&6; }
16640 compiler_id="SGI_MIPS_C"
16641 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16642 flags_dbg_yes="-g"
16643 flags_dbg_off=""
16644 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16645 flags_opt_yes="-O2"
16646 flags_opt_off="-O0"
16647 else
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16649$as_echo "no" >&6; }
16650 fi
16651
16652
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16654$as_echo_n "checking if compiler is SunPro C... " >&6; }
16655
16656 OLDCPPFLAGS=$CPPFLAGS
16657 # CPPPFLAG comes from CURL_CPP_P
16658 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16659 if test -z "$SED"; then
16660 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16661 fi
16662 if test -z "$GREP"; then
16663 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16664 fi
16665
16666 tmp_exp=""
16667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668/* end confdefs.h. */
16669
16670
16671#ifdef __SUNPRO_C
16672CURL_DEF_TOKEN __SUNPRO_C
16673#endif
16674
16675
16676_ACEOF
16677if ac_fn_c_try_cpp "$LINENO"; then :
16678
16679 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16680 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16681 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16682 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16683 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16684 tmp_exp=""
16685 fi
16686
16687fi
16688rm -f conftest.err conftest.i conftest.$ac_ext
16689 if test -z "$tmp_exp"; then
16690 curl_cv_have_def___SUNPRO_C=no
16691
16692 else
16693 curl_cv_have_def___SUNPRO_C=yes
16694 curl_cv_def___SUNPRO_C=$tmp_exp
16695
16696 fi
16697 CPPFLAGS=$OLDCPPFLAGS
16698
16699 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16701$as_echo "yes" >&6; }
16702 compiler_id="SUNPRO_C"
16703 flags_dbg_all="-g -s"
16704 flags_dbg_yes="-g"
16705 flags_dbg_off="-s"
16706 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16707 flags_opt_yes="-xO2"
16708 flags_opt_off=""
16709 else
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16711$as_echo "no" >&6; }
16712 fi
16713
16714
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16716$as_echo_n "checking if compiler is Tiny C... " >&6; }
16717
16718 OLDCPPFLAGS=$CPPFLAGS
16719 # CPPPFLAG comes from CURL_CPP_P
16720 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16721 if test -z "$SED"; then
16722 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16723 fi
16724 if test -z "$GREP"; then
16725 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16726 fi
16727
16728 tmp_exp=""
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730/* end confdefs.h. */
16731
16732
16733#ifdef __TINYC__
16734CURL_DEF_TOKEN __TINYC__
16735#endif
16736
16737
16738_ACEOF
16739if ac_fn_c_try_cpp "$LINENO"; then :
16740
16741 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16742 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16743 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16744 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16745 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16746 tmp_exp=""
16747 fi
16748
16749fi
16750rm -f conftest.err conftest.i conftest.$ac_ext
16751 if test -z "$tmp_exp"; then
16752 curl_cv_have_def___TINYC__=no
16753
16754 else
16755 curl_cv_have_def___TINYC__=yes
16756 curl_cv_def___TINYC__=$tmp_exp
16757
16758 fi
16759 CPPFLAGS=$OLDCPPFLAGS
16760
16761 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16763$as_echo "yes" >&6; }
16764 compiler_id="TINY_C"
16765 flags_dbg_all="-g -b"
16766 flags_dbg_yes="-g"
16767 flags_dbg_off=""
16768 flags_opt_all=""
16769 flags_opt_yes=""
16770 flags_opt_off=""
16771 else
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773$as_echo "no" >&6; }
16774 fi
16775
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16778$as_echo_n "checking if compiler is Watcom C... " >&6; }
16779
16780 OLDCPPFLAGS=$CPPFLAGS
16781 # CPPPFLAG comes from CURL_CPP_P
16782 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16783 if test -z "$SED"; then
16784 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16785 fi
16786 if test -z "$GREP"; then
16787 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16788 fi
16789
16790 tmp_exp=""
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792/* end confdefs.h. */
16793
16794
16795#ifdef __WATCOMC__
16796CURL_DEF_TOKEN __WATCOMC__
16797#endif
16798
16799
16800_ACEOF
16801if ac_fn_c_try_cpp "$LINENO"; then :
16802
16803 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16804 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16805 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16806 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16807 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16808 tmp_exp=""
16809 fi
16810
16811fi
16812rm -f conftest.err conftest.i conftest.$ac_ext
16813 if test -z "$tmp_exp"; then
16814 curl_cv_have_def___WATCOMC__=no
16815
16816 else
16817 curl_cv_have_def___WATCOMC__=yes
16818 curl_cv_def___WATCOMC__=$tmp_exp
16819
16820 fi
16821 CPPFLAGS=$OLDCPPFLAGS
16822
16823 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16825$as_echo "yes" >&6; }
16826
16827 OLDCPPFLAGS=$CPPFLAGS
16828 # CPPPFLAG comes from CURL_CPP_P
16829 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16830 if test -z "$SED"; then
16831 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16832 fi
16833 if test -z "$GREP"; then
16834 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16835 fi
16836
16837 tmp_exp=""
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839/* end confdefs.h. */
16840
16841
16842#ifdef __UNIX__
16843CURL_DEF_TOKEN __UNIX__
16844#endif
16845
16846
16847_ACEOF
16848if ac_fn_c_try_cpp "$LINENO"; then :
16849
16850 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16851 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16852 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16853 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16854 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16855 tmp_exp=""
16856 fi
16857
16858fi
16859rm -f conftest.err conftest.i conftest.$ac_ext
16860 if test -z "$tmp_exp"; then
16861 curl_cv_have_def___UNIX__=no
16862
16863 else
16864 curl_cv_have_def___UNIX__=yes
16865 curl_cv_def___UNIX__=$tmp_exp
16866
16867 fi
16868 CPPFLAGS=$OLDCPPFLAGS
16869
16870 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16871 compiler_id="WATCOM_UNIX_C"
16872 flags_dbg_all="-g1 -g1+ -g2 -g3"
16873 flags_dbg_yes="-g2"
16874 flags_dbg_off=""
16875 flags_opt_all="-O0 -O1 -O2 -O3"
16876 flags_opt_yes="-O2"
16877 flags_opt_off="-O0"
16878 else
16879 compiler_id="WATCOM_WINDOWS_C"
16880 flags_dbg_all=""
16881 flags_dbg_yes=""
16882 flags_dbg_off=""
16883 flags_opt_all=""
16884 flags_opt_yes=""
16885 flags_opt_off=""
16886 fi
16887 else
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16889$as_echo "no" >&6; }
16890 fi
16891
16892 #
16893 if test "$compiler_id" = "unknown"; then
16894 cat <<_EOF 1>&2
16895***
16896*** Warning: This configure script does not have information about the
16897*** compiler you are using, relative to the flags required to enable or
16898*** disable generation of debug info, optimization options or warnings.
16899***
16900*** Whatever settings are present in CFLAGS will be used for this run.
16901***
16902*** If you wish to help the curl project to better support your compiler
16903*** you can report this and the required info on the libcurl development
16904*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
16905***
16906_EOF
16907 fi
16908
16909
16910squeeze() {
16911 _sqz_result=""
16912 eval _sqz_input=\$$1
16913 for _sqz_token in $_sqz_input; do
16914 if test -z "$_sqz_result"; then
16915 _sqz_result="$_sqz_token"
16916 else
16917 _sqz_result="$_sqz_result $_sqz_token"
16918 fi
16919 done
16920 eval $1=\$_sqz_result
16921 return 0
16922}
16923
16924
16925 #
16926 if test "$compiler_id" != "unknown"; then
16927 #
16928 if test "$compiler_id" = "GNU_C" ||
16929 test "$compiler_id" = "CLANG"; then
16930
16931 if test "$compiler_id" = "GNU_C" ||
16932 test "$compiler_id" = "CLANG"; then
16933 tmp_has_include="no"
16934 tmp_chg_FLAGS="$CFLAGS"
16935 for word1 in $tmp_chg_FLAGS; do
16936 case "$word1" in
16937 -I*)
16938 tmp_has_include="yes"
16939 ;;
16940 esac
16941 done
16942 if test "$tmp_has_include" = "yes"; then
16943 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16944 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16945 CFLAGS="$tmp_chg_FLAGS"
16946 squeeze CFLAGS
16947 fi
16948 tmp_has_include="no"
16949 tmp_chg_FLAGS="$CPPFLAGS"
16950 for word1 in $tmp_chg_FLAGS; do
16951 case "$word1" in
16952 -I*)
16953 tmp_has_include="yes"
16954 ;;
16955 esac
16956 done
16957 if test "$tmp_has_include" = "yes"; then
16958 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16959 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16960 CPPFLAGS="$tmp_chg_FLAGS"
16961 squeeze CPPFLAGS
16962 fi
16963 fi
16964
16965 fi
16966 #
16967 tmp_save_CPPFLAGS="$CPPFLAGS"
16968 tmp_save_CFLAGS="$CFLAGS"
16969 tmp_CPPFLAGS=""
16970 tmp_CFLAGS=""
16971 #
16972 case "$compiler_id" in
16973 #
16974 CLANG)
16975 #
16976 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16977 ;;
16978 #
16979 DEC_C)
16980 #
16981 tmp_CFLAGS="$tmp_CFLAGS -std1"
16982 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16983 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16984 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16985 ;;
16986 #
16987 GNU_C)
16988 #
16989 if test "$compiler_num" -ge "295"; then
16990 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
16991 fi
16992 ;;
16993 #
16994 HP_UX_C)
16995 #
16996 tmp_CFLAGS="$tmp_CFLAGS -z"
16997 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16998 ;;
16999 #
17000 IBM_C)
17001 #
17002 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17003 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17004 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17005 ;;
17006 #
17007 INTEL_UNIX_C)
17008 #
17009 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17010 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17011 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17012 ;;
17013 #
17014 INTEL_WINDOWS_C)
17015 #
17016 tmp_CFLAGS="$tmp_CFLAGS"
17017 ;;
17018 #
17019 LCC)
17020 #
17021 tmp_CFLAGS="$tmp_CFLAGS -n"
17022 ;;
17023 #
17024 SGI_MIPS_C)
17025 #
17026 tmp_CFLAGS="$tmp_CFLAGS"
17027 ;;
17028 #
17029 SGI_MIPSPRO_C)
17030 #
17031 tmp_CFLAGS="$tmp_CFLAGS"
17032 ;;
17033 #
17034 SUNPRO_C)
17035 #
17036 tmp_CFLAGS="$tmp_CFLAGS"
17037 ;;
17038 #
17039 TINY_C)
17040 #
17041 tmp_CFLAGS="$tmp_CFLAGS"
17042 ;;
17043 #
17044 WATCOM_UNIX_C)
17045 #
17046 tmp_CFLAGS="$tmp_CFLAGS"
17047 ;;
17048 #
17049 WATCOM_WINDOWS_C)
17050 #
17051 tmp_CFLAGS="$tmp_CFLAGS"
17052 ;;
17053 #
17054 esac
17055 #
17056 squeeze tmp_CPPFLAGS
17057 squeeze tmp_CFLAGS
17058 #
17059 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17061$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17062 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17063 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17064 squeeze CPPFLAGS
17065 squeeze CFLAGS
17066
17067 tmp_compiler_works="unknown"
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069/* end confdefs.h. */
17070
17071
17072
17073int main (void)
17074{
17075
17076 int i = 1;
17077 return i;
17078
17079 ;
17080 return 0;
17081}
17082
17083_ACEOF
17084if ac_fn_c_try_compile "$LINENO"; then :
17085
17086 tmp_compiler_works="yes"
17087
17088else
17089
17090 tmp_compiler_works="no"
17091 echo " " >&6
17092 sed 's/^/cc-fail: /' conftest.err >&6
17093 echo " " >&6
17094
17095fi
17096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097 if test "$tmp_compiler_works" = "yes"; then
17098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17099/* end confdefs.h. */
17100
17101
17102
17103int main (void)
17104{
17105
17106 int i = 1;
17107 return i;
17108
17109 ;
17110 return 0;
17111}
17112
17113_ACEOF
17114if ac_fn_c_try_link "$LINENO"; then :
17115
17116 tmp_compiler_works="yes"
17117
17118else
17119
17120 tmp_compiler_works="no"
17121 echo " " >&6
17122 sed 's/^/link-fail: /' conftest.err >&6
17123 echo " " >&6
17124
17125fi
17126rm -f core conftest.err conftest.$ac_objext \
17127 conftest$ac_exeext conftest.$ac_ext
17128 fi
17129 if test "x$cross_compiling" != "xyes" &&
17130 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017131
17132
17133 old=$LD_LIBRARY_PATH
17134 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17135 export LD_LIBRARY_PATH
17136 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017137 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17139as_fn_error $? "cannot run test program while cross compiling
17140See \`config.log' for more details" "$LINENO" 5; }
17141else
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143/* end confdefs.h. */
17144
17145
17146# ifdef __STDC__
17147# include <stdlib.h>
17148# endif
17149
17150int main (void)
17151{
17152
17153 int i = 0;
17154 exit(i);
17155
17156 ;
17157 return 0;
17158}
17159
17160_ACEOF
17161if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017162 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017163
17164else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017165 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017166 echo " " >&6
17167 echo "run-fail: test program exited with status $ac_status" >&6
17168 echo " " >&6
17169
17170fi
17171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17172 conftest.$ac_objext conftest.beam conftest.$ac_ext
17173fi
17174
Elliott Hughesa93fb052018-12-12 14:22:48 -080017175 LD_LIBRARY_PATH=$old # restore
17176
Elliott Hughes82be86d2017-09-20 17:00:17 -070017177 fi
17178 if test "$tmp_compiler_works" = "yes"; then
17179
17180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17181$as_echo "yes" >&6; }
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17183$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17184
17185 else
17186
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17188$as_echo "no" >&6; }
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17190$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17191 CPPFLAGS="$tmp_save_CPPFLAGS"
17192 CFLAGS="$tmp_save_CFLAGS"
17193
17194 fi
17195
17196 fi
17197 #
17198 fi
17199
17200
17201 #
17202 if test "$compiler_id" != "unknown"; then
17203 #
17204 tmp_save_CFLAGS="$CFLAGS"
17205 tmp_save_CPPFLAGS="$CPPFLAGS"
17206 #
17207 tmp_options=""
17208 tmp_CFLAGS="$CFLAGS"
17209 tmp_CPPFLAGS="$CPPFLAGS"
17210
17211 ac_var_stripped=""
17212 for word1 in $tmp_CFLAGS; do
17213 ac_var_strip_word="no"
17214 for word2 in $flags_dbg_all; do
17215 if test "$word1" = "$word2"; then
17216 ac_var_strip_word="yes"
17217 fi
17218 done
17219 if test "$ac_var_strip_word" = "no"; then
17220 ac_var_stripped="$ac_var_stripped $word1"
17221 fi
17222 done
17223 tmp_CFLAGS="$ac_var_stripped"
17224 squeeze tmp_CFLAGS
17225
17226
17227 ac_var_stripped=""
17228 for word1 in $tmp_CPPFLAGS; do
17229 ac_var_strip_word="no"
17230 for word2 in $flags_dbg_all; do
17231 if test "$word1" = "$word2"; then
17232 ac_var_strip_word="yes"
17233 fi
17234 done
17235 if test "$ac_var_strip_word" = "no"; then
17236 ac_var_stripped="$ac_var_stripped $word1"
17237 fi
17238 done
17239 tmp_CPPFLAGS="$ac_var_stripped"
17240 squeeze tmp_CPPFLAGS
17241
17242 #
17243 if test "$want_debug" = "yes"; then
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17245$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17246 tmp_options="$flags_dbg_yes"
17247 fi
17248 if test "$want_debug" = "no"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17250$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17251 tmp_options="$flags_dbg_off"
17252 fi
17253 #
17254 if test "$flags_prefer_cppflags" = "yes"; then
17255 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17256 CFLAGS="$tmp_CFLAGS"
17257 else
17258 CPPFLAGS="$tmp_CPPFLAGS"
17259 CFLAGS="$tmp_CFLAGS $tmp_options"
17260 fi
17261 squeeze CPPFLAGS
17262 squeeze CFLAGS
17263
17264 tmp_compiler_works="unknown"
17265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17266/* end confdefs.h. */
17267
17268
17269
17270int main (void)
17271{
17272
17273 int i = 1;
17274 return i;
17275
17276 ;
17277 return 0;
17278}
17279
17280_ACEOF
17281if ac_fn_c_try_compile "$LINENO"; then :
17282
17283 tmp_compiler_works="yes"
17284
17285else
17286
17287 tmp_compiler_works="no"
17288 echo " " >&6
17289 sed 's/^/cc-fail: /' conftest.err >&6
17290 echo " " >&6
17291
17292fi
17293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17294 if test "$tmp_compiler_works" = "yes"; then
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h. */
17297
17298
17299
17300int main (void)
17301{
17302
17303 int i = 1;
17304 return i;
17305
17306 ;
17307 return 0;
17308}
17309
17310_ACEOF
17311if ac_fn_c_try_link "$LINENO"; then :
17312
17313 tmp_compiler_works="yes"
17314
17315else
17316
17317 tmp_compiler_works="no"
17318 echo " " >&6
17319 sed 's/^/link-fail: /' conftest.err >&6
17320 echo " " >&6
17321
17322fi
17323rm -f core conftest.err conftest.$ac_objext \
17324 conftest$ac_exeext conftest.$ac_ext
17325 fi
17326 if test "x$cross_compiling" != "xyes" &&
17327 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017328
17329
17330 old=$LD_LIBRARY_PATH
17331 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17332 export LD_LIBRARY_PATH
17333 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017334 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17336as_fn_error $? "cannot run test program while cross compiling
17337See \`config.log' for more details" "$LINENO" 5; }
17338else
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340/* end confdefs.h. */
17341
17342
17343# ifdef __STDC__
17344# include <stdlib.h>
17345# endif
17346
17347int main (void)
17348{
17349
17350 int i = 0;
17351 exit(i);
17352
17353 ;
17354 return 0;
17355}
17356
17357_ACEOF
17358if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017359 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017360
17361else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017362 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017363 echo " " >&6
17364 echo "run-fail: test program exited with status $ac_status" >&6
17365 echo " " >&6
17366
17367fi
17368rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17369 conftest.$ac_objext conftest.beam conftest.$ac_ext
17370fi
17371
Elliott Hughesa93fb052018-12-12 14:22:48 -080017372 LD_LIBRARY_PATH=$old # restore
17373
Elliott Hughes82be86d2017-09-20 17:00:17 -070017374 fi
17375 if test "$tmp_compiler_works" = "yes"; then
17376
17377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17378$as_echo "yes" >&6; }
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17380$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17381
17382 else
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17385$as_echo "no" >&6; }
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17387$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17388 CPPFLAGS="$tmp_save_CPPFLAGS"
17389 CFLAGS="$tmp_save_CFLAGS"
17390
17391 fi
17392
17393 #
17394 fi
17395
17396
17397 #
17398 if test "$compiler_id" != "unknown"; then
17399 #
17400 tmp_save_CFLAGS="$CFLAGS"
17401 tmp_save_CPPFLAGS="$CPPFLAGS"
17402 #
17403 tmp_options=""
17404 tmp_CFLAGS="$CFLAGS"
17405 tmp_CPPFLAGS="$CPPFLAGS"
17406 honor_optimize_option="yes"
17407 #
17408 #
17409 if test "$want_optimize" = "assume_no" ||
17410 test "$want_optimize" = "assume_yes"; then
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17412$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17413
17414
17415 ac_var_match_word="no"
17416 for word1 in $tmp_CFLAGS; do
17417 for word2 in $flags_opt_all; do
17418 if test "$word1" = "$word2"; then
17419 ac_var_match_word="yes"
17420 fi
17421 done
17422 done
17423
17424 if test "$ac_var_match_word" = "yes"; then
17425
17426 honor_optimize_option="no"
17427
17428
17429 fi
17430
17431
17432
17433 ac_var_match_word="no"
17434 for word1 in $tmp_CPPFLAGS; do
17435 for word2 in $flags_opt_all; do
17436 if test "$word1" = "$word2"; then
17437 ac_var_match_word="yes"
17438 fi
17439 done
17440 done
17441
17442 if test "$ac_var_match_word" = "yes"; then
17443
17444 honor_optimize_option="no"
17445
17446
17447 fi
17448
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17450$as_echo "$honor_optimize_option" >&6; }
17451 if test "$honor_optimize_option" = "yes"; then
17452 if test "$want_optimize" = "assume_yes"; then
17453 want_optimize="yes"
17454 fi
17455 if test "$want_optimize" = "assume_no"; then
17456 want_optimize="no"
17457 fi
17458 fi
17459 fi
17460 #
17461 if test "$honor_optimize_option" = "yes"; then
17462
17463 ac_var_stripped=""
17464 for word1 in $tmp_CFLAGS; do
17465 ac_var_strip_word="no"
17466 for word2 in $flags_opt_all; do
17467 if test "$word1" = "$word2"; then
17468 ac_var_strip_word="yes"
17469 fi
17470 done
17471 if test "$ac_var_strip_word" = "no"; then
17472 ac_var_stripped="$ac_var_stripped $word1"
17473 fi
17474 done
17475 tmp_CFLAGS="$ac_var_stripped"
17476 squeeze tmp_CFLAGS
17477
17478
17479 ac_var_stripped=""
17480 for word1 in $tmp_CPPFLAGS; do
17481 ac_var_strip_word="no"
17482 for word2 in $flags_opt_all; do
17483 if test "$word1" = "$word2"; then
17484 ac_var_strip_word="yes"
17485 fi
17486 done
17487 if test "$ac_var_strip_word" = "no"; then
17488 ac_var_stripped="$ac_var_stripped $word1"
17489 fi
17490 done
17491 tmp_CPPFLAGS="$ac_var_stripped"
17492 squeeze tmp_CPPFLAGS
17493
17494 if test "$want_optimize" = "yes"; then
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17496$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17497 tmp_options="$flags_opt_yes"
17498 fi
17499 if test "$want_optimize" = "no"; then
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17501$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17502 tmp_options="$flags_opt_off"
17503 fi
17504 if test "$flags_prefer_cppflags" = "yes"; then
17505 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17506 CFLAGS="$tmp_CFLAGS"
17507 else
17508 CPPFLAGS="$tmp_CPPFLAGS"
17509 CFLAGS="$tmp_CFLAGS $tmp_options"
17510 fi
17511 squeeze CPPFLAGS
17512 squeeze CFLAGS
17513
17514 tmp_compiler_works="unknown"
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516/* end confdefs.h. */
17517
17518
17519
17520int main (void)
17521{
17522
17523 int i = 1;
17524 return i;
17525
17526 ;
17527 return 0;
17528}
17529
17530_ACEOF
17531if ac_fn_c_try_compile "$LINENO"; then :
17532
17533 tmp_compiler_works="yes"
17534
17535else
17536
17537 tmp_compiler_works="no"
17538 echo " " >&6
17539 sed 's/^/cc-fail: /' conftest.err >&6
17540 echo " " >&6
17541
17542fi
17543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17544 if test "$tmp_compiler_works" = "yes"; then
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546/* end confdefs.h. */
17547
17548
17549
17550int main (void)
17551{
17552
17553 int i = 1;
17554 return i;
17555
17556 ;
17557 return 0;
17558}
17559
17560_ACEOF
17561if ac_fn_c_try_link "$LINENO"; then :
17562
17563 tmp_compiler_works="yes"
17564
17565else
17566
17567 tmp_compiler_works="no"
17568 echo " " >&6
17569 sed 's/^/link-fail: /' conftest.err >&6
17570 echo " " >&6
17571
17572fi
17573rm -f core conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
17575 fi
17576 if test "x$cross_compiling" != "xyes" &&
17577 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017578
17579
17580 old=$LD_LIBRARY_PATH
17581 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17582 export LD_LIBRARY_PATH
17583 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17585$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17586as_fn_error $? "cannot run test program while cross compiling
17587See \`config.log' for more details" "$LINENO" 5; }
17588else
17589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17590/* end confdefs.h. */
17591
17592
17593# ifdef __STDC__
17594# include <stdlib.h>
17595# endif
17596
17597int main (void)
17598{
17599
17600 int i = 0;
17601 exit(i);
17602
17603 ;
17604 return 0;
17605}
17606
17607_ACEOF
17608if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017609 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017610
17611else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017612 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017613 echo " " >&6
17614 echo "run-fail: test program exited with status $ac_status" >&6
17615 echo " " >&6
17616
17617fi
17618rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17619 conftest.$ac_objext conftest.beam conftest.$ac_ext
17620fi
17621
Elliott Hughesa93fb052018-12-12 14:22:48 -080017622 LD_LIBRARY_PATH=$old # restore
17623
Elliott Hughes82be86d2017-09-20 17:00:17 -070017624 fi
17625 if test "$tmp_compiler_works" = "yes"; then
17626
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17628$as_echo "yes" >&6; }
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17630$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17631
17632 else
17633
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17635$as_echo "no" >&6; }
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17637$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17638 CPPFLAGS="$tmp_save_CPPFLAGS"
17639 CFLAGS="$tmp_save_CFLAGS"
17640
17641 fi
17642
17643 fi
17644 #
17645 fi
17646
17647
17648 #
17649 if test "$compiler_id" != "unknown"; then
17650 #
17651 tmp_save_CPPFLAGS="$CPPFLAGS"
17652 tmp_save_CFLAGS="$CFLAGS"
17653 tmp_CPPFLAGS=""
17654 tmp_CFLAGS=""
17655 #
17656 case "$compiler_id" in
17657 #
17658 CLANG)
17659 #
17660 if test "$want_warnings" = "yes"; then
17661 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17662 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17663 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17664 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17665 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17666 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17667 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17668 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17669 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17670 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17671 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17672 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17673 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17674 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17675 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17676 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17677 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17678 #
17679 if test "$compiler_num" -ge "101"; then
17680 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17681 fi
17682 #
17683 if test "$compiler_num" -ge "208"; then
17684 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17685 fi
17686 #
17687 if test "$compiler_num" -ge "209"; then
17688 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17689 fi
17690 #
17691 if test "$compiler_num" -ge "302"; then
17692 case $host_os in
17693 cygwin* | mingw*)
17694 ;;
17695 *)
17696 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17697 ;;
17698 esac
17699 fi
17700 #
17701 if test "$compiler_num" -ge "306"; then
17702 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17703 fi
17704 #
17705 if test "$compiler_num" -ge "309"; then
17706 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017707 # avoid the varargs warning, fixed in 4.0
17708 # https://bugs.llvm.org/show_bug.cgi?id=29140
17709 if test "$compiler_num" -lt "400"; then
17710 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17711 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017712 fi
17713 fi
17714 ;;
17715 #
17716 DEC_C)
17717 #
17718 if test "$want_warnings" = "yes"; then
17719 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17720 fi
17721 ;;
17722 #
17723 GNU_C)
17724 #
17725 if test "$want_warnings" = "yes"; then
17726 #
17727 if test "x$cross_compiling" != "xyes" ||
17728 test "$compiler_num" -ge "300"; then
17729 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17730 fi
17731 #
17732 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17733 #
17734 if test "$compiler_num" -ge "104"; then
17735 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17736 if test "x$cross_compiling" != "xyes" ||
17737 test "$compiler_num" -ge "300"; then
17738 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17739 fi
17740 fi
17741 #
17742 if test "$compiler_num" -ge "207"; then
17743 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17744 if test "x$cross_compiling" != "xyes" ||
17745 test "$compiler_num" -ge "300"; then
17746 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17747 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17748 fi
17749 fi
17750 #
17751 if test "$compiler_num" -ge "295"; then
17752 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017753 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017754 fi
17755 #
17756 if test "$compiler_num" -ge "296"; then
17757 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17758 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17759 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17760 fi
17761 #
17762 if test "$compiler_num" -ge "297"; then
17763 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17764 fi
17765 #
17766 if test "$compiler_num" -ge "300"; then
17767 tmp_CFLAGS="$tmp_CFLAGS"
17768 fi
17769 #
17770 if test "$compiler_num" -ge "303"; then
17771 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17772 fi
17773 #
17774 if test "$compiler_num" -ge "304"; then
17775 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017776 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017777 fi
17778 #
17779 if test "$compiler_num" -ge "400"; then
17780 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17781 fi
17782 #
17783 if test "$compiler_num" -ge "402"; then
17784 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17785 fi
17786 #
17787 if test "$compiler_num" -ge "403"; then
17788 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17789 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17790 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17791 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017792 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017793 fi
17794 #
17795 if test "$compiler_num" -ge "405"; then
17796 if test "$curl_cv_have_def__WIN32" = "yes"; then
17797 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17798 fi
17799 fi
17800 #
17801 if test "$compiler_num" -ge "406"; then
17802 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17803 fi
17804 #
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017805 if test "$compiler_num" -ge "408"; then
17806 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17807 fi
17808 #
17809 if test "$compiler_num" -ge "500"; then
17810 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17811 fi
17812 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017813 if test "$compiler_num" -ge "600"; then
17814 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17815 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017816 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017817 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017818 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017819 fi
17820 #
17821 if test "$compiler_num" -ge "700"; then
17822 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17823 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17824 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17825 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17826 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017827 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017828 fi
17829 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017830 fi
17831 #
17832 if test "$compiler_num" -ge "300"; then
17833 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17834 else
17835 if test "x$cross_compiling" = "xyes"; then
17836 if test "$compiler_num" -ge "104"; then
17837 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17838 fi
17839 if test "$compiler_num" -ge "207"; then
17840 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17841 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17842 fi
17843 fi
17844 fi
17845 ;;
17846 #
17847 HP_UX_C)
17848 #
17849 if test "$want_warnings" = "yes"; then
17850 tmp_CFLAGS="$tmp_CFLAGS +w1"
17851 fi
17852 ;;
17853 #
17854 IBM_C)
17855 #
17856 tmp_CFLAGS="$tmp_CFLAGS"
17857 ;;
17858 #
17859 INTEL_UNIX_C)
17860 #
17861 if test "$want_warnings" = "yes"; then
17862 if test "$compiler_num" -gt "600"; then
17863 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17864 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17865 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17866 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17867 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17868 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17869 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17870 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17871 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17872 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17873 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17874 fi
17875 fi
17876 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17877 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17878 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17879 if test "$compiler_num" -ge "1000"; then
17880 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17881 fi
17882 ;;
17883 #
17884 INTEL_WINDOWS_C)
17885 #
17886 tmp_CFLAGS="$tmp_CFLAGS"
17887 ;;
17888 #
17889 LCC)
17890 #
17891 if test "$want_warnings" = "yes"; then
17892 tmp_CFLAGS="$tmp_CFLAGS"
17893 fi
17894 ;;
17895 #
17896 SGI_MIPS_C)
17897 #
17898 if test "$want_warnings" = "yes"; then
17899 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17900 fi
17901 ;;
17902 #
17903 SGI_MIPSPRO_C)
17904 #
17905 if test "$want_warnings" = "yes"; then
17906 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17907 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17908 fi
17909 ;;
17910 #
17911 SUNPRO_C)
17912 #
17913 if test "$want_warnings" = "yes"; then
17914 tmp_CFLAGS="$tmp_CFLAGS -v"
17915 fi
17916 ;;
17917 #
17918 TINY_C)
17919 #
17920 if test "$want_warnings" = "yes"; then
17921 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17922 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17923 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17924 fi
17925 ;;
17926 #
17927 WATCOM_UNIX_C)
17928 #
17929 if test "$want_warnings" = "yes"; then
17930 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17931 fi
17932 ;;
17933 #
17934 WATCOM_WINDOWS_C)
17935 #
17936 tmp_CFLAGS="$tmp_CFLAGS"
17937 ;;
17938 #
17939 esac
17940 #
17941 squeeze tmp_CPPFLAGS
17942 squeeze tmp_CFLAGS
17943 #
17944 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17946$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17947 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17948 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17949 squeeze CPPFLAGS
17950 squeeze CFLAGS
17951
17952 tmp_compiler_works="unknown"
17953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17954/* end confdefs.h. */
17955
17956
17957
17958int main (void)
17959{
17960
17961 int i = 1;
17962 return i;
17963
17964 ;
17965 return 0;
17966}
17967
17968_ACEOF
17969if ac_fn_c_try_compile "$LINENO"; then :
17970
17971 tmp_compiler_works="yes"
17972
17973else
17974
17975 tmp_compiler_works="no"
17976 echo " " >&6
17977 sed 's/^/cc-fail: /' conftest.err >&6
17978 echo " " >&6
17979
17980fi
17981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17982 if test "$tmp_compiler_works" = "yes"; then
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984/* end confdefs.h. */
17985
17986
17987
17988int main (void)
17989{
17990
17991 int i = 1;
17992 return i;
17993
17994 ;
17995 return 0;
17996}
17997
17998_ACEOF
17999if ac_fn_c_try_link "$LINENO"; then :
18000
18001 tmp_compiler_works="yes"
18002
18003else
18004
18005 tmp_compiler_works="no"
18006 echo " " >&6
18007 sed 's/^/link-fail: /' conftest.err >&6
18008 echo " " >&6
18009
18010fi
18011rm -f core conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18013 fi
18014 if test "x$cross_compiling" != "xyes" &&
18015 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080018016
18017
18018 old=$LD_LIBRARY_PATH
18019 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18020 export LD_LIBRARY_PATH
18021 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070018022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18024as_fn_error $? "cannot run test program while cross compiling
18025See \`config.log' for more details" "$LINENO" 5; }
18026else
18027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028/* end confdefs.h. */
18029
18030
18031# ifdef __STDC__
18032# include <stdlib.h>
18033# endif
18034
18035int main (void)
18036{
18037
18038 int i = 0;
18039 exit(i);
18040
18041 ;
18042 return 0;
18043}
18044
18045_ACEOF
18046if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080018047 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018048
18049else
Elliott Hughesa93fb052018-12-12 14:22:48 -080018050 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018051 echo " " >&6
18052 echo "run-fail: test program exited with status $ac_status" >&6
18053 echo " " >&6
18054
18055fi
18056rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18057 conftest.$ac_objext conftest.beam conftest.$ac_ext
18058fi
18059
Elliott Hughesa93fb052018-12-12 14:22:48 -080018060 LD_LIBRARY_PATH=$old # restore
18061
Elliott Hughes82be86d2017-09-20 17:00:17 -070018062 fi
18063 if test "$tmp_compiler_works" = "yes"; then
18064
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18066$as_echo "yes" >&6; }
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18068$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18069
18070 else
18071
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18073$as_echo "no" >&6; }
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18075$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18076 CPPFLAGS="$tmp_save_CPPFLAGS"
18077 CFLAGS="$tmp_save_CFLAGS"
18078
18079 fi
18080
18081 fi
18082 #
18083 fi
18084
18085
18086if test "$compiler_id" = "INTEL_UNIX_C"; then
18087 #
18088 if test "$compiler_num" -ge "1000"; then
18089 CFLAGS="$CFLAGS -shared-intel"
18090 elif test "$compiler_num" -ge "900"; then
18091 CFLAGS="$CFLAGS -i-dynamic"
18092 fi
18093 #
18094fi
18095
18096
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18098$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100/* end confdefs.h. */
18101
18102
18103
18104int main (void)
18105{
18106
18107 force compilation error
18108
18109 ;
18110 return 0;
18111}
18112
18113_ACEOF
18114if ac_fn_c_try_compile "$LINENO"; then :
18115
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18117$as_echo "no" >&6; }
18118 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18119
18120else
18121
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18123$as_echo "yes" >&6; }
18124
18125fi
18126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18127
18128
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18130$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132/* end confdefs.h. */
18133
18134
18135 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18136
18137int main (void)
18138{
18139
18140 bad_t dummy;
18141
18142 ;
18143 return 0;
18144}
18145
18146_ACEOF
18147if ac_fn_c_try_compile "$LINENO"; then :
18148
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150$as_echo "no" >&6; }
18151 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18152
18153else
18154
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18156$as_echo "yes" >&6; }
18157
18158fi
18159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18160
18161
18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18163$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165/* end confdefs.h. */
18166
18167
18168# include <stdlib.h>
18169 int rand(int n);
18170 int rand(int n)
18171 {
18172 if(n)
18173 return ++n;
18174 else
18175 return n;
18176 }
18177
18178int main (void)
18179{
18180
18181 int i[2]={0,0};
18182 int j = rand(i[0]);
18183 if(j)
18184 return j;
18185
18186 ;
18187 return 0;
18188}
18189
18190_ACEOF
18191if ac_fn_c_try_compile "$LINENO"; then :
18192
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18194$as_echo "no" >&6; }
18195 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18196
18197else
18198
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18200$as_echo "yes" >&6; }
18201
18202fi
18203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18204
18205
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18207$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18208 supports_symbol_hiding="no"
18209 symbol_hiding_CFLAGS=""
18210 symbol_hiding_EXTERN=""
18211 tmp_CFLAGS=""
18212 tmp_EXTERN=""
18213 case "$compiler_id" in
18214 CLANG)
18215 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18216 tmp_CFLAGS="-fvisibility=hidden"
18217 supports_symbol_hiding="yes"
18218 ;;
18219 GNU_C)
18220 if test "$compiler_num" -ge "304"; then
18221 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18222 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18223 tmp_CFLAGS="-fvisibility=hidden"
18224 supports_symbol_hiding="yes"
18225 fi
18226 fi
18227 ;;
18228 INTEL_UNIX_C)
18229 if test "$compiler_num" -ge "900"; then
18230 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18231 tmp_save_CFLAGS="$CFLAGS"
18232 CFLAGS="$CFLAGS -fvisibility=hidden"
18233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18234/* end confdefs.h. */
18235
18236
18237# include <stdio.h>
18238
18239int main (void)
18240{
18241
18242 printf("icc fvisibility bug test");
18243
18244 ;
18245 return 0;
18246}
18247
18248_ACEOF
18249if ac_fn_c_try_link "$LINENO"; then :
18250
18251 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18252 tmp_CFLAGS="-fvisibility=hidden"
18253 supports_symbol_hiding="yes"
18254
18255fi
18256rm -f core conftest.err conftest.$ac_objext \
18257 conftest$ac_exeext conftest.$ac_ext
18258 CFLAGS="$tmp_save_CFLAGS"
18259 fi
18260 fi
18261 ;;
18262 SUNPRO_C)
18263 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18264 tmp_EXTERN="__global"
18265 tmp_CFLAGS="-xldscope=hidden"
18266 supports_symbol_hiding="yes"
18267 fi
18268 ;;
18269 esac
18270 if test "$supports_symbol_hiding" = "yes"; then
18271 tmp_save_CFLAGS="$CFLAGS"
18272 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18273 squeeze CFLAGS
18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275/* end confdefs.h. */
18276
18277
18278 $tmp_EXTERN char *dummy(char *buff);
18279 char *dummy(char *buff)
18280 {
18281 if(buff)
18282 return ++buff;
18283 else
18284 return buff;
18285 }
18286
18287int main (void)
18288{
18289
18290 char b[16];
18291 char *r = dummy(&b[0]);
18292 if(r)
18293 return (int)*r;
18294
18295 ;
18296 return 0;
18297}
18298
18299_ACEOF
18300if ac_fn_c_try_compile "$LINENO"; then :
18301
18302 supports_symbol_hiding="yes"
18303 if test -f conftest.err; then
18304 grep 'visibility' conftest.err >/dev/null
18305 if test "$?" -eq "0"; then
18306 supports_symbol_hiding="no"
18307 fi
18308 fi
18309
18310else
18311
18312 supports_symbol_hiding="no"
18313 echo " " >&6
18314 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18315 sed 's/^/cc-err: /' conftest.err >&6
18316 echo " " >&6
18317
18318fi
18319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 CFLAGS="$tmp_save_CFLAGS"
18321 fi
18322 if test "$supports_symbol_hiding" = "yes"; then
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18324$as_echo "yes" >&6; }
18325 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18326 symbol_hiding_EXTERN="$tmp_EXTERN"
18327 else
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18329$as_echo "no" >&6; }
18330 fi
18331
18332
18333
18334 supports_curldebug="unknown"
18335 if test "$want_curldebug" = "yes"; then
18336 if test "x$enable_shared" != "xno" &&
18337 test "x$enable_shared" != "xyes"; then
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18339$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18340 supports_curldebug="no"
18341 fi
18342 if test "x$enable_static" != "xno" &&
18343 test "x$enable_static" != "xyes"; then
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18345$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18346 supports_curldebug="no"
18347 fi
18348 if test "$supports_curldebug" != "no"; then
18349 if test "$enable_shared" = "yes" &&
18350 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18351 supports_curldebug="no"
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18353$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18354 fi
18355 fi
18356 fi
18357 #
18358 if test "$want_curldebug" = "yes"; then
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18360$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18361 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18363$as_echo "$supports_curldebug" >&6; }
18364 if test "$supports_curldebug" = "no"; then
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18366$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18367 want_curldebug="no"
18368 fi
18369 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018370
18371 if test x$want_curldebug = xyes; then
18372 CURLDEBUG_TRUE=
18373 CURLDEBUG_FALSE='#'
18374else
18375 CURLDEBUG_TRUE='#'
18376 CURLDEBUG_FALSE=
18377fi
18378
18379
18380supports_unittests=yes
18381# cross-compilation of unit tests static library/programs fails when
18382# libcurl shared library is built. This might be due to a libtool or
18383# automake issue. In this case we disable unit tests.
18384if test "x$cross_compiling" != "xno" &&
18385 test "x$enable_shared" != "xno"; then
18386 supports_unittests=no
18387fi
18388
18389# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18390# a problem related with OpenSSL headers and library versions not matching.
18391# Disable unit tests while time to further investigate this is found.
18392case $host in
18393 mips-sgi-irix6.5)
18394 if test "$compiler_id" = "GNU_C"; then
18395 supports_unittests=no
18396 fi
18397 ;;
18398esac
18399
18400# All AIX autobuilds fails unit tests linking against unittests library
18401# due to unittests library being built with no symbols or members. Libtool ?
18402# Disable unit tests while time to further investigate this is found.
18403case $host_os in
18404 aix*)
18405 supports_unittests=no
18406 ;;
18407esac
18408
18409if test "x$want_debug" = "xyes" &&
18410 test "x$supports_unittests" = "xyes"; then
18411 want_unittests=yes
18412else
18413 want_unittests=no
18414fi
18415 if test x$want_unittests = xyes; then
18416 BUILD_UNITTESTS_TRUE=
18417 BUILD_UNITTESTS_FALSE='#'
18418else
18419 BUILD_UNITTESTS_TRUE='#'
18420 BUILD_UNITTESTS_FALSE=
18421fi
18422
18423
18424
18425
18426
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18428$as_echo_n "checking for windows.h... " >&6; }
18429if ${curl_cv_header_windows_h+:} false; then :
18430 $as_echo_n "(cached) " >&6
18431else
18432
18433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18434/* end confdefs.h. */
18435
18436
18437#undef inline
18438#ifndef WIN32_LEAN_AND_MEAN
18439#define WIN32_LEAN_AND_MEAN
18440#endif
18441#include <windows.h>
18442
18443int main (void)
18444{
18445
18446#if defined(__CYGWIN__) || defined(__CEGCC__)
18447 HAVE_WINDOWS_H shall not be defined.
18448#else
18449 int dummy=2*WINVER;
18450#endif
18451
18452 ;
18453 return 0;
18454}
18455
18456_ACEOF
18457if ac_fn_c_try_compile "$LINENO"; then :
18458
18459 curl_cv_header_windows_h="yes"
18460
18461else
18462
18463 curl_cv_header_windows_h="no"
18464
18465fi
18466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467
18468fi
18469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18470$as_echo "$curl_cv_header_windows_h" >&6; }
18471 case "$curl_cv_header_windows_h" in
18472 yes)
18473
18474cat >>confdefs.h <<_ACEOF
18475#define HAVE_WINDOWS_H 1
18476_ACEOF
18477
18478 ;;
18479 esac
18480
18481
18482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18483$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18484if ${curl_cv_native_windows+:} false; then :
18485 $as_echo_n "(cached) " >&6
18486else
18487
18488 if test "$curl_cv_header_windows_h" = "no"; then
18489 curl_cv_native_windows="no"
18490 else
18491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492/* end confdefs.h. */
18493
18494
18495
18496int main (void)
18497{
18498
18499#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18500 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18501 int dummy=1;
18502#else
18503 Not a native Windows build target.
18504#endif
18505
18506 ;
18507 return 0;
18508}
18509
18510_ACEOF
18511if ac_fn_c_try_compile "$LINENO"; then :
18512
18513 curl_cv_native_windows="yes"
18514
18515else
18516
18517 curl_cv_native_windows="no"
18518
18519fi
18520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18521 fi
18522
18523fi
18524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18525$as_echo "$curl_cv_native_windows" >&6; }
18526 if test "x$curl_cv_native_windows" = xyes; then
18527 DOING_NATIVE_WINDOWS_TRUE=
18528 DOING_NATIVE_WINDOWS_FALSE='#'
18529else
18530 DOING_NATIVE_WINDOWS_TRUE='#'
18531 DOING_NATIVE_WINDOWS_FALSE=
18532fi
18533
18534
18535case X-"$curl_cv_native_windows" in
18536 X-yes)
18537
18538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18539$as_echo_n "checking for winsock.h... " >&6; }
18540if ${curl_cv_header_winsock_h+:} false; then :
18541 $as_echo_n "(cached) " >&6
18542else
18543
18544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545/* end confdefs.h. */
18546
18547
18548#undef inline
18549#ifndef WIN32_LEAN_AND_MEAN
18550#define WIN32_LEAN_AND_MEAN
18551#endif
18552#include <windows.h>
18553#include <winsock.h>
18554
18555int main (void)
18556{
18557
18558#if defined(__CYGWIN__) || defined(__CEGCC__)
18559 HAVE_WINSOCK_H shall not be defined.
18560#else
18561 int dummy=WSACleanup();
18562#endif
18563
18564 ;
18565 return 0;
18566}
18567
18568_ACEOF
18569if ac_fn_c_try_compile "$LINENO"; then :
18570
18571 curl_cv_header_winsock_h="yes"
18572
18573else
18574
18575 curl_cv_header_winsock_h="no"
18576
18577fi
18578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18579
18580fi
18581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18582$as_echo "$curl_cv_header_winsock_h" >&6; }
18583 case "$curl_cv_header_winsock_h" in
18584 yes)
18585
18586cat >>confdefs.h <<_ACEOF
18587#define HAVE_WINSOCK_H 1
18588_ACEOF
18589
18590 ;;
18591 esac
18592
18593
18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18595$as_echo_n "checking for winsock2.h... " >&6; }
18596if ${curl_cv_header_winsock2_h+:} false; then :
18597 $as_echo_n "(cached) " >&6
18598else
18599
18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18601/* end confdefs.h. */
18602
18603
18604#undef inline
18605#ifndef WIN32_LEAN_AND_MEAN
18606#define WIN32_LEAN_AND_MEAN
18607#endif
18608#include <windows.h>
18609#include <winsock2.h>
18610
18611int main (void)
18612{
18613
18614#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18615 HAVE_WINSOCK2_H shall not be defined.
18616#else
18617 int dummy=2*IPPROTO_ESP;
18618#endif
18619
18620 ;
18621 return 0;
18622}
18623
18624_ACEOF
18625if ac_fn_c_try_compile "$LINENO"; then :
18626
18627 curl_cv_header_winsock2_h="yes"
18628
18629else
18630
18631 curl_cv_header_winsock2_h="no"
18632
18633fi
18634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635
18636fi
18637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18638$as_echo "$curl_cv_header_winsock2_h" >&6; }
18639 case "$curl_cv_header_winsock2_h" in
18640 yes)
18641
18642cat >>confdefs.h <<_ACEOF
18643#define HAVE_WINSOCK2_H 1
18644_ACEOF
18645
18646 ;;
18647 esac
18648
18649
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18651$as_echo_n "checking for ws2tcpip.h... " >&6; }
18652if ${curl_cv_header_ws2tcpip_h+:} false; then :
18653 $as_echo_n "(cached) " >&6
18654else
18655
18656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18657/* end confdefs.h. */
18658
18659
18660#undef inline
18661#ifndef WIN32_LEAN_AND_MEAN
18662#define WIN32_LEAN_AND_MEAN
18663#endif
18664#include <windows.h>
18665#include <winsock2.h>
18666#include <ws2tcpip.h>
18667
18668int main (void)
18669{
18670
18671#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18672 HAVE_WS2TCPIP_H shall not be defined.
18673#else
18674 int dummy=2*IP_PKTINFO;
18675#endif
18676
18677 ;
18678 return 0;
18679}
18680
18681_ACEOF
18682if ac_fn_c_try_compile "$LINENO"; then :
18683
18684 curl_cv_header_ws2tcpip_h="yes"
18685
18686else
18687
18688 curl_cv_header_ws2tcpip_h="no"
18689
18690fi
18691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18692
18693fi
18694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18695$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18696 case "$curl_cv_header_ws2tcpip_h" in
18697 yes)
18698
18699cat >>confdefs.h <<_ACEOF
18700#define HAVE_WS2TCPIP_H 1
18701_ACEOF
18702
18703 ;;
18704 esac
18705
18706
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18708$as_echo_n "checking for winldap.h... " >&6; }
18709if ${curl_cv_header_winldap_h+:} false; then :
18710 $as_echo_n "(cached) " >&6
18711else
18712
18713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18714/* end confdefs.h. */
18715
18716
18717#undef inline
18718#ifdef HAVE_WINDOWS_H
18719#ifndef WIN32_LEAN_AND_MEAN
18720#define WIN32_LEAN_AND_MEAN
18721#endif
18722#include <windows.h>
18723#endif
18724#include <winldap.h>
18725
18726int main (void)
18727{
18728
18729#if defined(__CYGWIN__) || defined(__CEGCC__)
18730 HAVE_WINLDAP_H shall not be defined.
18731#else
18732 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18733 ULONG res = ldap_unbind(ldp);
18734#endif
18735
18736 ;
18737 return 0;
18738}
18739
18740_ACEOF
18741if ac_fn_c_try_compile "$LINENO"; then :
18742
18743 curl_cv_header_winldap_h="yes"
18744
18745else
18746
18747 curl_cv_header_winldap_h="no"
18748
18749fi
18750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751
18752fi
18753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18754$as_echo "$curl_cv_header_winldap_h" >&6; }
18755 case "$curl_cv_header_winldap_h" in
18756 yes)
18757
18758cat >>confdefs.h <<_ACEOF
18759#define HAVE_WINLDAP_H 1
18760_ACEOF
18761
18762 ;;
18763 esac
18764
18765
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18767$as_echo_n "checking for winber.h... " >&6; }
18768if ${curl_cv_header_winber_h+:} false; then :
18769 $as_echo_n "(cached) " >&6
18770else
18771
18772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773/* end confdefs.h. */
18774
18775
18776#undef inline
18777#ifdef HAVE_WINDOWS_H
18778#ifndef WIN32_LEAN_AND_MEAN
18779#define WIN32_LEAN_AND_MEAN
18780#endif
18781#include <windows.h>
18782#endif
18783#include <winldap.h>
18784#include <winber.h>
18785
18786int main (void)
18787{
18788
18789#if defined(__CYGWIN__) || defined(__CEGCC__)
18790 HAVE_WINBER_H shall not be defined.
18791#else
18792 BERVAL *bvp = NULL;
18793 BerElement *bep = ber_init(bvp);
18794 ber_free(bep, 1);
18795#endif
18796
18797 ;
18798 return 0;
18799}
18800
18801_ACEOF
18802if ac_fn_c_try_compile "$LINENO"; then :
18803
18804 curl_cv_header_winber_h="yes"
18805
18806else
18807
18808 curl_cv_header_winber_h="no"
18809
18810fi
18811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18812
18813fi
18814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18815$as_echo "$curl_cv_header_winber_h" >&6; }
18816 case "$curl_cv_header_winber_h" in
18817 yes)
18818
18819cat >>confdefs.h <<_ACEOF
18820#define HAVE_WINBER_H 1
18821_ACEOF
18822
18823 ;;
18824 esac
18825
18826 ;;
18827 *)
18828 curl_cv_header_winsock_h="no"
18829 curl_cv_header_winsock2_h="no"
18830 curl_cv_header_ws2tcpip_h="no"
18831 curl_cv_header_winldap_h="no"
18832 curl_cv_header_winber_h="no"
18833 ;;
18834esac
18835
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18837$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18838 curl_win32_file_api="no"
18839 if test "$curl_cv_header_windows_h" = "yes"; then
18840 if test x"$enable_largefile" != "xno"; then
18841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18842/* end confdefs.h. */
18843
18844
18845
18846int main (void)
18847{
18848
18849#if !defined(_WIN32_WCE) && \
18850 (defined(__MINGW32__) || \
18851 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18852 int dummy=1;
18853#else
18854 WIN32 large file API not supported.
18855#endif
18856
18857 ;
18858 return 0;
18859}
18860
18861_ACEOF
18862if ac_fn_c_try_compile "$LINENO"; then :
18863
18864 curl_win32_file_api="win32_large_files"
18865
18866fi
18867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18868 fi
18869 if test "$curl_win32_file_api" = "no"; then
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h. */
18872
18873
18874
18875int main (void)
18876{
18877
18878#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18879 int dummy=1;
18880#else
18881 WIN32 small file API not supported.
18882#endif
18883
18884 ;
18885 return 0;
18886}
18887
18888_ACEOF
18889if ac_fn_c_try_compile "$LINENO"; then :
18890
18891 curl_win32_file_api="win32_small_files"
18892
18893fi
18894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18895 fi
18896 fi
18897 case "$curl_win32_file_api" in
18898 win32_large_files)
18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18900$as_echo "yes (large file enabled)" >&6; }
18901
18902cat >>confdefs.h <<_ACEOF
18903#define USE_WIN32_LARGE_FILES 1
18904_ACEOF
18905
18906 ;;
18907 win32_small_files)
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18909$as_echo "yes (large file disabled)" >&6; }
18910
18911cat >>confdefs.h <<_ACEOF
18912#define USE_WIN32_SMALL_FILES 1
18913_ACEOF
18914
18915 ;;
18916 *)
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18918$as_echo "no" >&6; }
18919 ;;
18920 esac
18921
18922
18923
18924
18925 tst_cflags="no"
18926 case $host_os in
18927 darwin*)
18928 tst_cflags="yes"
18929 ;;
18930 esac
18931
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
18933$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
18935$as_echo "$tst_cflags" >&6; };
18936
18937 if test "$tst_cflags" = "yes"; then
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
18939$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
18940 min=""
18941 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
18942 min="-mmacosx-version-min=10.8"
18943 CFLAGS="$CFLAGS $min"
18944 fi
18945 if test -z "$min"; then
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
18947$as_echo "set by user" >&6; }
18948 else
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
18950$as_echo "$min set" >&6; }
18951 fi
18952
18953 old_CFLAGS=$CFLAGS
18954 CFLAGS="$CFLAGS -Werror=partial-availability"
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
18956$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
18957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18958/* end confdefs.h. */
18959
18960int main (void)
18961{
18962
18963 ;
18964 return 0;
18965}
18966_ACEOF
18967if ac_fn_c_try_compile "$LINENO"; then :
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18969$as_echo "yes" >&6; }
18970else
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18972$as_echo "no" >&6; }
18973 CFLAGS=$old_CFLAGS
18974fi
18975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18976 fi
18977
18978
18979
Alex Deymo486467e2017-12-19 19:04:07 +010018980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
18981$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
18982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18983/* end confdefs.h. */
18984
18985
18986#include <stdlib.h>
18987
18988int main (void)
18989{
18990
18991 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
18992
18993 ;
18994 return 0;
18995}
18996
18997_ACEOF
18998if ac_fn_c_try_compile "$LINENO"; then :
18999
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19001$as_echo "yes" >&6; }
19002
19003cat >>confdefs.h <<_ACEOF
19004#define HAVE_BUILTIN_AVAILABLE 1
19005_ACEOF
19006
19007
19008else
19009
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19011$as_echo "no" >&6; }
19012
19013fi
19014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19015
19016
Haibo Huang65021c72019-03-27 15:37:23 -070019017
Elliott Hughes82be86d2017-09-20 17:00:17 -070019018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19019$as_echo_n "checking whether to support http... " >&6; }
19020# Check whether --enable-http was given.
19021if test "${enable_http+set}" = set; then :
19022 enableval=$enable_http; case "$enableval" in
19023 no)
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19025$as_echo "no" >&6; }
19026
19027$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19028
19029 disable_http="yes"
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19031$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19032 CURL_DISABLE_HTTP=1
19033
19034
19035$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19036
19037 CURL_DISABLE_RTSP=1
19038
19039 ;;
19040 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19041$as_echo "yes" >&6; }
19042 ;;
19043 esac
19044else
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19046$as_echo "yes" >&6; }
19047
19048fi
19049
19050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19051$as_echo_n "checking whether to support ftp... " >&6; }
19052# Check whether --enable-ftp was given.
19053if test "${enable_ftp+set}" = set; then :
19054 enableval=$enable_ftp; case "$enableval" in
19055 no)
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19057$as_echo "no" >&6; }
19058
19059$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19060
19061 CURL_DISABLE_FTP=1
19062
19063 ;;
19064 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19065$as_echo "yes" >&6; }
19066 ;;
19067 esac
19068else
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19070$as_echo "yes" >&6; }
19071
19072fi
19073
19074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19075$as_echo_n "checking whether to support file... " >&6; }
19076# Check whether --enable-file was given.
19077if test "${enable_file+set}" = set; then :
19078 enableval=$enable_file; case "$enableval" in
19079 no)
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081$as_echo "no" >&6; }
19082
19083$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19084
19085 CURL_DISABLE_FILE=1
19086
19087 ;;
19088 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19089$as_echo "yes" >&6; }
19090 ;;
19091 esac
19092else
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19094$as_echo "yes" >&6; }
19095
19096fi
19097
19098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19099$as_echo_n "checking whether to support ldap... " >&6; }
19100# Check whether --enable-ldap was given.
19101if test "${enable_ldap+set}" = set; then :
19102 enableval=$enable_ldap; case "$enableval" in
19103 no)
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105$as_echo "no" >&6; }
19106
19107$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19108
19109 CURL_DISABLE_LDAP=1
19110
19111 ;;
19112 *)
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19114$as_echo "yes" >&6; }
19115 ;;
19116 esac
19117else
19118
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19120$as_echo "yes" >&6; }
19121
19122fi
19123
19124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19125$as_echo_n "checking whether to support ldaps... " >&6; }
19126# Check whether --enable-ldaps was given.
19127if test "${enable_ldaps+set}" = set; then :
19128 enableval=$enable_ldaps; case "$enableval" in
19129 no)
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19131$as_echo "no" >&6; }
19132
19133$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19134
19135 CURL_DISABLE_LDAPS=1
19136
19137 ;;
19138 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19140$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19141
19142$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19143
19144 CURL_DISABLE_LDAPS=1
19145
19146 else
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19148$as_echo "yes" >&6; }
19149
19150$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19151
19152 HAVE_LDAP_SSL=1
19153
19154 fi
19155 ;;
19156 esac
19157else
19158
19159 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161$as_echo "no" >&6; }
19162
19163$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19164
19165 CURL_DISABLE_LDAPS=1
19166
19167 else
19168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19169$as_echo "yes" >&6; }
19170
19171$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19172
19173 HAVE_LDAP_SSL=1
19174
19175 fi
19176
19177fi
19178
19179
19180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19181$as_echo_n "checking whether to support rtsp... " >&6; }
19182# Check whether --enable-rtsp was given.
19183if test "${enable_rtsp+set}" = set; then :
19184 enableval=$enable_rtsp; case "$enableval" in
19185 no)
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19187$as_echo "no" >&6; }
19188
19189$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19190
19191 CURL_DISABLE_RTSP=1
19192
19193 ;;
19194 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19195 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19196 else
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198$as_echo "yes" >&6; }
19199 curl_rtsp_msg="enabled"
19200 fi
19201 ;;
19202 esac
19203else
19204 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19206$as_echo "yes" >&6; }
19207 curl_rtsp_msg="enabled"
19208 else
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19210$as_echo "no" >&6; }
19211 fi
19212
19213fi
19214
19215
19216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19217$as_echo_n "checking whether to support proxies... " >&6; }
19218# Check whether --enable-proxy was given.
19219if test "${enable_proxy+set}" = set; then :
19220 enableval=$enable_proxy; case "$enableval" in
19221 no)
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19223$as_echo "no" >&6; }
19224
19225$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19226
19227 CURL_DISABLE_PROXY=1
19228
19229 ;;
19230 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19231$as_echo "yes" >&6; }
19232 ;;
19233 esac
19234else
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236$as_echo "yes" >&6; }
19237
19238fi
19239
19240
19241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19242$as_echo_n "checking whether to support dict... " >&6; }
19243# Check whether --enable-dict was given.
19244if test "${enable_dict+set}" = set; then :
19245 enableval=$enable_dict; case "$enableval" in
19246 no)
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19248$as_echo "no" >&6; }
19249
19250$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19251
19252 CURL_DISABLE_DICT=1
19253
19254 ;;
19255 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19256$as_echo "yes" >&6; }
19257 ;;
19258 esac
19259else
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261$as_echo "yes" >&6; }
19262
19263fi
19264
19265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19266$as_echo_n "checking whether to support telnet... " >&6; }
19267# Check whether --enable-telnet was given.
19268if test "${enable_telnet+set}" = set; then :
19269 enableval=$enable_telnet; case "$enableval" in
19270 no)
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19272$as_echo "no" >&6; }
19273
19274$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19275
19276 CURL_DISABLE_TELNET=1
19277
19278 ;;
19279 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19280$as_echo "yes" >&6; }
19281 ;;
19282 esac
19283else
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19285$as_echo "yes" >&6; }
19286
19287fi
19288
19289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19290$as_echo_n "checking whether to support tftp... " >&6; }
19291# Check whether --enable-tftp was given.
19292if test "${enable_tftp+set}" = set; then :
19293 enableval=$enable_tftp; case "$enableval" in
19294 no)
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19296$as_echo "no" >&6; }
19297
19298$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19299
19300 CURL_DISABLE_TFTP=1
19301
19302 ;;
19303 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19304$as_echo "yes" >&6; }
19305 ;;
19306 esac
19307else
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19309$as_echo "yes" >&6; }
19310
19311fi
19312
19313
19314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19315$as_echo_n "checking whether to support pop3... " >&6; }
19316# Check whether --enable-pop3 was given.
19317if test "${enable_pop3+set}" = set; then :
19318 enableval=$enable_pop3; case "$enableval" in
19319 no)
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321$as_echo "no" >&6; }
19322
19323$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19324
19325 CURL_DISABLE_POP3=1
19326
19327 ;;
19328 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19329$as_echo "yes" >&6; }
19330 ;;
19331 esac
19332else
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19334$as_echo "yes" >&6; }
19335
19336fi
19337
19338
19339
19340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19341$as_echo_n "checking whether to support imap... " >&6; }
19342# Check whether --enable-imap was given.
19343if test "${enable_imap+set}" = set; then :
19344 enableval=$enable_imap; case "$enableval" in
19345 no)
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19347$as_echo "no" >&6; }
19348
19349$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19350
19351 CURL_DISABLE_IMAP=1
19352
19353 ;;
19354 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19355$as_echo "yes" >&6; }
19356 ;;
19357 esac
19358else
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19360$as_echo "yes" >&6; }
19361
19362fi
19363
19364
19365
19366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19367$as_echo_n "checking whether to support smb... " >&6; }
19368# Check whether --enable-smb was given.
19369if test "${enable_smb+set}" = set; then :
19370 enableval=$enable_smb; case "$enableval" in
19371 no)
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19373$as_echo "no" >&6; }
19374
19375$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19376
19377 CURL_DISABLE_SMB=1
19378
19379 ;;
19380 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19381$as_echo "yes" >&6; }
19382 ;;
19383 esac
19384else
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386$as_echo "yes" >&6; }
19387
19388fi
19389
19390
19391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19392$as_echo_n "checking whether to support smtp... " >&6; }
19393# Check whether --enable-smtp was given.
19394if test "${enable_smtp+set}" = set; then :
19395 enableval=$enable_smtp; case "$enableval" in
19396 no)
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398$as_echo "no" >&6; }
19399
19400$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19401
19402 CURL_DISABLE_SMTP=1
19403
19404 ;;
19405 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19406$as_echo "yes" >&6; }
19407 ;;
19408 esac
19409else
19410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411$as_echo "yes" >&6; }
19412
19413fi
19414
19415
19416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19417$as_echo_n "checking whether to support gopher... " >&6; }
19418# Check whether --enable-gopher was given.
19419if test "${enable_gopher+set}" = set; then :
19420 enableval=$enable_gopher; case "$enableval" in
19421 no)
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19423$as_echo "no" >&6; }
19424
19425$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19426
19427 CURL_DISABLE_GOPHER=1
19428
19429 ;;
19430 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19431$as_echo "yes" >&6; }
19432 ;;
19433 esac
19434else
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436$as_echo "yes" >&6; }
19437
19438fi
19439
19440
19441
19442
19443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19444$as_echo_n "checking whether to provide built-in manual... " >&6; }
19445# Check whether --enable-manual was given.
19446if test "${enable_manual+set}" = set; then :
19447 enableval=$enable_manual; case "$enableval" in
19448 no)
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19450$as_echo "no" >&6; }
19451 ;;
19452 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19453$as_echo "yes" >&6; }
19454 USE_MANUAL="1"
19455 ;;
19456 esac
19457else
19458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19459$as_echo "yes" >&6; }
19460 USE_MANUAL="1"
19461
19462fi
19463
19464
19465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19466$as_echo_n "checking whether to enable generation of C code... " >&6; }
19467# Check whether --enable-libcurl_option was given.
19468if test "${enable_libcurl_option+set}" = set; then :
19469 enableval=$enable_libcurl_option; case "$enableval" in
19470 no)
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19472$as_echo "no" >&6; }
19473
19474$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19475
19476 curl_libcurl_msg="no"
19477 ;;
19478 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19479$as_echo "yes" >&6; }
19480 ;;
19481 esac
19482else
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484$as_echo "yes" >&6; }
19485
19486fi
19487
19488
19489
19490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19491$as_echo_n "checking whether to use libgcc... " >&6; }
19492# Check whether --enable-libgcc was given.
19493if test "${enable_libgcc+set}" = set; then :
19494 enableval=$enable_libgcc; case "$enableval" in
19495 yes)
19496 LIBS="-lgcc $LIBS"
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19498$as_echo "yes" >&6; }
19499 ;;
19500 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19501$as_echo "no" >&6; }
19502 ;;
19503 esac
19504else
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19506$as_echo "no" >&6; }
19507
19508fi
19509
19510
19511
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19513$as_echo_n "checking if X/Open network library is required... " >&6; }
19514 tst_lib_xnet_required="no"
19515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19516/* end confdefs.h. */
19517
19518
19519int main (void)
19520{
19521#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19522 return 0;
19523#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19524 return 0;
19525#else
19526 force compilation error
19527#endif
19528}
19529
19530
19531_ACEOF
19532if ac_fn_c_try_compile "$LINENO"; then :
19533
19534 tst_lib_xnet_required="yes"
19535 LIBS="-lxnet $LIBS"
19536
19537fi
19538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19540$as_echo "$tst_lib_xnet_required" >&6; }
19541
19542
19543ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19544if test "x$ac_cv_func_gethostbyname" = xyes; then :
19545 HAVE_GETHOSTBYNAME="1"
19546
19547else
19548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19549$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19550if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19551 $as_echo_n "(cached) " >&6
19552else
19553 ac_check_lib_save_LIBS=$LIBS
19554LIBS="-lnsl $LIBS"
19555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19556/* end confdefs.h. */
19557
19558
19559#ifdef __cplusplus
19560extern "C"
19561#endif
19562char gethostbyname ();
19563int main (void)
19564{
19565return gethostbyname ();
19566 ;
19567 return 0;
19568}
19569_ACEOF
19570if ac_fn_c_try_link "$LINENO"; then :
19571 ac_cv_lib_nsl_gethostbyname=yes
19572else
19573 ac_cv_lib_nsl_gethostbyname=no
19574fi
19575rm -f core conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
19577LIBS=$ac_check_lib_save_LIBS
19578fi
19579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19580$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19581if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19582 HAVE_GETHOSTBYNAME="1"
19583 LIBS="-lnsl $LIBS"
19584
19585fi
19586
19587
19588fi
19589
19590
19591if test "$HAVE_GETHOSTBYNAME" != "1"
19592then
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19594$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19595if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19596 $as_echo_n "(cached) " >&6
19597else
19598 ac_check_lib_save_LIBS=$LIBS
19599LIBS="-lsocket $LIBS"
19600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601/* end confdefs.h. */
19602
19603
19604#ifdef __cplusplus
19605extern "C"
19606#endif
19607char gethostbyname ();
19608int main (void)
19609{
19610return gethostbyname ();
19611 ;
19612 return 0;
19613}
19614_ACEOF
19615if ac_fn_c_try_link "$LINENO"; then :
19616 ac_cv_lib_socket_gethostbyname=yes
19617else
19618 ac_cv_lib_socket_gethostbyname=no
19619fi
19620rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19622LIBS=$ac_check_lib_save_LIBS
19623fi
19624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19625$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19626if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19627 HAVE_GETHOSTBYNAME="1"
19628 LIBS="-lsocket $LIBS"
19629
19630fi
19631
19632fi
19633
19634if test "$HAVE_GETHOSTBYNAME" != "1"
19635then
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19637$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19638if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19639 $as_echo_n "(cached) " >&6
19640else
19641 ac_check_lib_save_LIBS=$LIBS
19642LIBS="-lwatt $LIBS"
19643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644/* end confdefs.h. */
19645
19646
19647#ifdef __cplusplus
19648extern "C"
19649#endif
19650char gethostbyname ();
19651int main (void)
19652{
19653return gethostbyname ();
19654 ;
19655 return 0;
19656}
19657_ACEOF
19658if ac_fn_c_try_link "$LINENO"; then :
19659 ac_cv_lib_watt_gethostbyname=yes
19660else
19661 ac_cv_lib_watt_gethostbyname=no
19662fi
19663rm -f core conftest.err conftest.$ac_objext \
19664 conftest$ac_exeext conftest.$ac_ext
19665LIBS=$ac_check_lib_save_LIBS
19666fi
19667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19668$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19669if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19670 HAVE_GETHOSTBYNAME="1"
19671 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19672 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19673 LIBS="-lwatt $LIBS"
19674
19675fi
19676
19677fi
19678
19679if test "$HAVE_GETHOSTBYNAME" != "1"
19680then
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19682$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19683 my_ac_save_LIBS=$LIBS
19684 LIBS="-lnsl -lsocket $LIBS"
19685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686/* end confdefs.h. */
19687
19688
19689
19690int main (void)
19691{
19692
19693 gethostbyname();
19694
19695 ;
19696 return 0;
19697}
19698
19699_ACEOF
19700if ac_fn_c_try_link "$LINENO"; then :
19701
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19703$as_echo "yes" >&6; }
19704 HAVE_GETHOSTBYNAME="1"
19705
19706else
19707
19708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19709$as_echo "no" >&6; }
19710 LIBS=$my_ac_save_LIBS
19711
19712fi
19713rm -f core conftest.err conftest.$ac_objext \
19714 conftest$ac_exeext conftest.$ac_ext
19715fi
19716
19717if test "$HAVE_GETHOSTBYNAME" != "1"
19718then
19719 if test "$curl_cv_header_windows_h" = "yes"; then
19720 if test "$curl_cv_header_winsock_h" = "yes"; then
19721 case $host in
19722 *-*-mingw32ce*)
19723 winsock_LIB="-lwinsock"
19724 ;;
19725 *)
19726 winsock_LIB="-lwsock32"
19727 ;;
19728 esac
19729 fi
19730 if test "$curl_cv_header_winsock2_h" = "yes"; then
19731 winsock_LIB="-lws2_32"
19732 fi
19733 if test ! -z "$winsock_LIB"; then
19734 my_ac_save_LIBS=$LIBS
19735 LIBS="$winsock_LIB $LIBS"
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19737$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739/* end confdefs.h. */
19740
19741
19742#ifdef HAVE_WINDOWS_H
19743#ifndef WIN32_LEAN_AND_MEAN
19744#define WIN32_LEAN_AND_MEAN
19745#endif
19746#include <windows.h>
19747#ifdef HAVE_WINSOCK2_H
19748#include <winsock2.h>
19749#else
19750#ifdef HAVE_WINSOCK_H
19751#include <winsock.h>
19752#endif
19753#endif
19754#endif
19755
19756int main (void)
19757{
19758
19759 gethostbyname("www.dummysite.com");
19760
19761 ;
19762 return 0;
19763}
19764
19765_ACEOF
19766if ac_fn_c_try_link "$LINENO"; then :
19767
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19769$as_echo "yes" >&6; }
19770 HAVE_GETHOSTBYNAME="1"
19771
19772else
19773
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19775$as_echo "no" >&6; }
19776 winsock_LIB=""
19777 LIBS=$my_ac_save_LIBS
19778
19779fi
19780rm -f core conftest.err conftest.$ac_objext \
19781 conftest$ac_exeext conftest.$ac_ext
19782 fi
19783 fi
19784fi
19785
19786if test "$HAVE_GETHOSTBYNAME" != "1"
19787then
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19789$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19791/* end confdefs.h. */
19792
19793
19794/* Older Minix versions may need <net/gen/netdb.h> here instead */
19795#include <netdb.h>
19796
19797int main (void)
19798{
19799
19800 gethostbyname("www.dummysite.com");
19801
19802 ;
19803 return 0;
19804}
19805
19806_ACEOF
19807if ac_fn_c_try_link "$LINENO"; then :
19808
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19810$as_echo "yes" >&6; }
19811 HAVE_GETHOSTBYNAME="1"
19812
19813else
19814
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19816$as_echo "no" >&6; }
19817
19818fi
19819rm -f core conftest.err conftest.$ac_objext \
19820 conftest$ac_exeext conftest.$ac_ext
19821fi
19822
19823if test "$HAVE_GETHOSTBYNAME" != "1"
19824then
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19826$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19828/* end confdefs.h. */
19829
19830
19831#include <stdio.h>
19832#include <netdb.h>
19833
19834int main (void)
19835{
19836
19837 gethostbyname("www.dummysite.com");
19838
19839 ;
19840 return 0;
19841}
19842
19843_ACEOF
19844if ac_fn_c_try_link "$LINENO"; then :
19845
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19847$as_echo "yes" >&6; }
19848 HAVE_GETHOSTBYNAME="1"
19849
19850else
19851
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19853$as_echo "no" >&6; }
19854
19855fi
19856rm -f core conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19858fi
19859
19860if test "$HAVE_GETHOSTBYNAME" != "1"
19861then
Haibo Huang65021c72019-03-27 15:37:23 -070019862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
19863$as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
19864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865/* end confdefs.h. */
19866
19867
19868#include <proto/bsdsocket.h>
19869struct Library *SocketBase = NULL;
19870
19871int main (void)
19872{
19873
19874 gethostbyname("www.dummysite.com");
19875
19876 ;
19877 return 0;
19878}
19879
19880_ACEOF
19881if ac_fn_c_try_link "$LINENO"; then :
19882
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19884$as_echo "yes" >&6; }
19885 HAVE_GETHOSTBYNAME="1"
19886 HAVE_PROTO_BSDSOCKET_H="1"
19887
19888$as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
19889
19890 HAVE_PROTO_BSDSOCKET_H=1
19891
19892
19893else
19894
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19896$as_echo "no" >&6; }
19897
19898fi
19899rm -f core conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19901fi
19902
19903if test "$HAVE_GETHOSTBYNAME" != "1"
19904then
Elliott Hughes82be86d2017-09-20 17:00:17 -070019905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19906$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19907if ${ac_cv_lib_network_gethostbyname+:} false; then :
19908 $as_echo_n "(cached) " >&6
19909else
19910 ac_check_lib_save_LIBS=$LIBS
19911LIBS="-lnetwork $LIBS"
19912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19913/* end confdefs.h. */
19914
19915
19916#ifdef __cplusplus
19917extern "C"
19918#endif
19919char gethostbyname ();
19920int main (void)
19921{
19922return gethostbyname ();
19923 ;
19924 return 0;
19925}
19926_ACEOF
19927if ac_fn_c_try_link "$LINENO"; then :
19928 ac_cv_lib_network_gethostbyname=yes
19929else
19930 ac_cv_lib_network_gethostbyname=no
19931fi
19932rm -f core conftest.err conftest.$ac_objext \
19933 conftest$ac_exeext conftest.$ac_ext
19934LIBS=$ac_check_lib_save_LIBS
19935fi
19936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19937$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19938if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19939 HAVE_GETHOSTBYNAME="1"
19940 LIBS="-lnetwork $LIBS"
19941
19942fi
19943
19944fi
19945
19946if test "$HAVE_GETHOSTBYNAME" != "1"
19947then
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19949$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19950if ${ac_cv_lib_net_gethostbyname+:} false; then :
19951 $as_echo_n "(cached) " >&6
19952else
19953 ac_check_lib_save_LIBS=$LIBS
19954LIBS="-lnet $LIBS"
19955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19956/* end confdefs.h. */
19957
19958
19959#ifdef __cplusplus
19960extern "C"
19961#endif
19962char gethostbyname ();
19963int main (void)
19964{
19965return gethostbyname ();
19966 ;
19967 return 0;
19968}
19969_ACEOF
19970if ac_fn_c_try_link "$LINENO"; then :
19971 ac_cv_lib_net_gethostbyname=yes
19972else
19973 ac_cv_lib_net_gethostbyname=no
19974fi
19975rm -f core conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19977LIBS=$ac_check_lib_save_LIBS
19978fi
19979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19980$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19981if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19982 HAVE_GETHOSTBYNAME="1"
19983 LIBS="-lnet $LIBS"
19984
19985fi
19986
19987fi
19988
19989
19990if test "$HAVE_GETHOSTBYNAME" != "1"; then
19991 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19992fi
19993
19994
19995curl_includes_winsock2="\
19996/* includes start */
19997#ifdef HAVE_WINDOWS_H
19998# ifndef WIN32_LEAN_AND_MEAN
19999# define WIN32_LEAN_AND_MEAN
20000# endif
20001# include <windows.h>
20002# ifdef HAVE_WINSOCK2_H
20003# include <winsock2.h>
20004# else
20005# ifdef HAVE_WINSOCK_H
20006# include <winsock.h>
20007# endif
20008# endif
20009#endif
20010/* includes end */"
20011
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20013$as_echo_n "checking for windows.h... " >&6; }
20014if ${curl_cv_header_windows_h+:} false; then :
20015 $as_echo_n "(cached) " >&6
20016else
20017
20018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019/* end confdefs.h. */
20020
20021
20022#undef inline
20023#ifndef WIN32_LEAN_AND_MEAN
20024#define WIN32_LEAN_AND_MEAN
20025#endif
20026#include <windows.h>
20027
20028int main (void)
20029{
20030
20031#if defined(__CYGWIN__) || defined(__CEGCC__)
20032 HAVE_WINDOWS_H shall not be defined.
20033#else
20034 int dummy=2*WINVER;
20035#endif
20036
20037 ;
20038 return 0;
20039}
20040
20041_ACEOF
20042if ac_fn_c_try_compile "$LINENO"; then :
20043
20044 curl_cv_header_windows_h="yes"
20045
20046else
20047
20048 curl_cv_header_windows_h="no"
20049
20050fi
20051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052
20053fi
20054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20055$as_echo "$curl_cv_header_windows_h" >&6; }
20056 case "$curl_cv_header_windows_h" in
20057 yes)
20058
20059cat >>confdefs.h <<_ACEOF
20060#define HAVE_WINDOWS_H 1
20061_ACEOF
20062
20063 ;;
20064 esac
20065
20066
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20068$as_echo_n "checking for winsock.h... " >&6; }
20069if ${curl_cv_header_winsock_h+:} false; then :
20070 $as_echo_n "(cached) " >&6
20071else
20072
20073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20074/* end confdefs.h. */
20075
20076
20077#undef inline
20078#ifndef WIN32_LEAN_AND_MEAN
20079#define WIN32_LEAN_AND_MEAN
20080#endif
20081#include <windows.h>
20082#include <winsock.h>
20083
20084int main (void)
20085{
20086
20087#if defined(__CYGWIN__) || defined(__CEGCC__)
20088 HAVE_WINSOCK_H shall not be defined.
20089#else
20090 int dummy=WSACleanup();
20091#endif
20092
20093 ;
20094 return 0;
20095}
20096
20097_ACEOF
20098if ac_fn_c_try_compile "$LINENO"; then :
20099
20100 curl_cv_header_winsock_h="yes"
20101
20102else
20103
20104 curl_cv_header_winsock_h="no"
20105
20106fi
20107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20108
20109fi
20110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20111$as_echo "$curl_cv_header_winsock_h" >&6; }
20112 case "$curl_cv_header_winsock_h" in
20113 yes)
20114
20115cat >>confdefs.h <<_ACEOF
20116#define HAVE_WINSOCK_H 1
20117_ACEOF
20118
20119 ;;
20120 esac
20121
20122
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20124$as_echo_n "checking for winsock2.h... " >&6; }
20125if ${curl_cv_header_winsock2_h+:} false; then :
20126 $as_echo_n "(cached) " >&6
20127else
20128
20129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20130/* end confdefs.h. */
20131
20132
20133#undef inline
20134#ifndef WIN32_LEAN_AND_MEAN
20135#define WIN32_LEAN_AND_MEAN
20136#endif
20137#include <windows.h>
20138#include <winsock2.h>
20139
20140int main (void)
20141{
20142
20143#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20144 HAVE_WINSOCK2_H shall not be defined.
20145#else
20146 int dummy=2*IPPROTO_ESP;
20147#endif
20148
20149 ;
20150 return 0;
20151}
20152
20153_ACEOF
20154if ac_fn_c_try_compile "$LINENO"; then :
20155
20156 curl_cv_header_winsock2_h="yes"
20157
20158else
20159
20160 curl_cv_header_winsock2_h="no"
20161
20162fi
20163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20164
20165fi
20166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20167$as_echo "$curl_cv_header_winsock2_h" >&6; }
20168 case "$curl_cv_header_winsock2_h" in
20169 yes)
20170
20171cat >>confdefs.h <<_ACEOF
20172#define HAVE_WINSOCK2_H 1
20173_ACEOF
20174
20175 ;;
20176 esac
20177
20178
20179
Haibo Huang65021c72019-03-27 15:37:23 -070020180curl_includes_bsdsocket="\
20181/* includes start */
20182#ifdef HAVE_PROTO_BSDSOCKET_H
20183# include <proto/bsdsocket.h>
20184 struct Library *SocketBase = NULL;
20185#endif
20186/* includes end */"
20187 for ac_header in proto/bsdsocket.h
20188do :
20189 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket
20190"
20191if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then :
20192 cat >>confdefs.h <<_ACEOF
20193#define HAVE_PROTO_BSDSOCKET_H 1
20194_ACEOF
20195
20196fi
20197
20198done
20199
20200
20201
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020203$as_echo_n "checking for connect in libraries... " >&6; }
20204 tst_connect_save_LIBS="$LIBS"
20205 tst_connect_need_LIBS="unknown"
20206 for tst_lib in '' '-lsocket' ; do
20207 if test "$tst_connect_need_LIBS" = "unknown"; then
20208 LIBS="$tst_lib $tst_connect_save_LIBS"
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210/* end confdefs.h. */
20211
20212
20213 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070020214 $curl_includes_bsdsocket
20215 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
Elliott Hughes82be86d2017-09-20 17:00:17 -070020216 int connect(int, void*, int);
20217 #endif
20218
20219int main (void)
20220{
20221
20222 if(0 != connect(0, 0, 0))
20223 return 1;
20224
20225 ;
20226 return 0;
20227}
20228
20229_ACEOF
20230if ac_fn_c_try_link "$LINENO"; then :
20231
20232 tst_connect_need_LIBS="$tst_lib"
20233
20234fi
20235rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 fi
20238 done
20239 LIBS="$tst_connect_save_LIBS"
20240 #
20241 case X-"$tst_connect_need_LIBS" in
20242 X-unknown)
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20244$as_echo "cannot find connect" >&6; }
20245 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20246 ;;
20247 X-)
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20249$as_echo "yes" >&6; }
20250 ;;
20251 *)
20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20253$as_echo "$tst_connect_need_LIBS" >&6; }
20254 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20255 ;;
20256 esac
20257
20258
20259CURL_NETWORK_LIBS=$LIBS
20260
20261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20262$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20263if ${ac_cv_header_time+:} false; then :
20264 $as_echo_n "(cached) " >&6
20265else
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20267/* end confdefs.h. */
20268#include <sys/types.h>
20269#include <sys/time.h>
20270#include <time.h>
20271
20272int main (void)
20273{
20274if ((struct tm *) 0)
20275return 0;
20276 ;
20277 return 0;
20278}
20279_ACEOF
20280if ac_fn_c_try_compile "$LINENO"; then :
20281 ac_cv_header_time=yes
20282else
20283 ac_cv_header_time=no
20284fi
20285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286fi
20287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20288$as_echo "$ac_cv_header_time" >&6; }
20289if test $ac_cv_header_time = yes; then
20290
20291$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20292
20293fi
20294
20295
20296 for ac_header in sys/types.h sys/time.h time.h
20297do :
20298 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20299ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20300if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20301 cat >>confdefs.h <<_ACEOF
20302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20303_ACEOF
20304
20305fi
20306
20307done
20308
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20310$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20311 #
20312 if test "x$dontwant_rt" = "xno" ; then
20313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20314/* end confdefs.h. */
20315
20316
20317#ifdef HAVE_SYS_TYPES_H
20318#include <sys/types.h>
20319#endif
20320#ifdef HAVE_SYS_TIME_H
20321#include <sys/time.h>
20322#ifdef TIME_WITH_SYS_TIME
20323#include <time.h>
20324#endif
20325#else
20326#ifdef HAVE_TIME_H
20327#include <time.h>
20328#endif
20329#endif
20330
20331int main (void)
20332{
20333
20334 struct timespec ts;
20335 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20336
20337 ;
20338 return 0;
20339}
20340
20341_ACEOF
20342if ac_fn_c_try_compile "$LINENO"; then :
20343
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20345$as_echo "yes" >&6; }
20346 curl_func_clock_gettime="yes"
20347
20348else
20349
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20351$as_echo "no" >&6; }
20352 curl_func_clock_gettime="no"
20353
20354fi
20355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20356 fi
20357
20358
20359 #
20360 if test "$curl_func_clock_gettime" = "yes"; then
20361 #
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20363$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20364 #
20365 curl_cv_save_LIBS="$LIBS"
20366 curl_cv_gclk_LIBS="unknown"
20367 #
20368 for x_xlibs in '' '-lrt' '-lposix4' ; do
20369 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20370 if test -z "$x_xlibs"; then
20371 LIBS="$curl_cv_save_LIBS"
20372 else
20373 LIBS="$x_xlibs $curl_cv_save_LIBS"
20374 fi
20375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20376/* end confdefs.h. */
20377
20378
20379#ifdef HAVE_SYS_TYPES_H
20380#include <sys/types.h>
20381#endif
20382#ifdef HAVE_SYS_TIME_H
20383#include <sys/time.h>
20384#ifdef TIME_WITH_SYS_TIME
20385#include <time.h>
20386#endif
20387#else
20388#ifdef HAVE_TIME_H
20389#include <time.h>
20390#endif
20391#endif
20392
20393int main (void)
20394{
20395
20396 struct timespec ts;
20397 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20398
20399 ;
20400 return 0;
20401}
20402
20403_ACEOF
20404if ac_fn_c_try_link "$LINENO"; then :
20405
20406 curl_cv_gclk_LIBS="$x_xlibs"
20407
20408fi
20409rm -f core conftest.err conftest.$ac_objext \
20410 conftest$ac_exeext conftest.$ac_ext
20411 fi
20412 done
20413 #
20414 LIBS="$curl_cv_save_LIBS"
20415 #
20416 case X-"$curl_cv_gclk_LIBS" in
20417 X-unknown)
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20419$as_echo "cannot find clock_gettime" >&6; }
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20421$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20422 curl_func_clock_gettime="no"
20423 ;;
20424 X-)
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20426$as_echo "no additional lib required" >&6; }
20427 curl_func_clock_gettime="yes"
20428 ;;
20429 *)
20430 if test -z "$curl_cv_save_LIBS"; then
20431 LIBS="$curl_cv_gclk_LIBS"
20432 else
20433 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20434 fi
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20436$as_echo "$curl_cv_gclk_LIBS" >&6; }
20437 curl_func_clock_gettime="yes"
20438 ;;
20439 esac
20440 #
20441 if test "x$cross_compiling" != "xyes" &&
20442 test "$curl_func_clock_gettime" = "yes"; then
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20444$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080020445
20446
20447 old=$LD_LIBRARY_PATH
20448 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20449 export LD_LIBRARY_PATH
20450 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070020451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20453as_fn_error $? "cannot run test program while cross compiling
20454See \`config.log' for more details" "$LINENO" 5; }
20455else
20456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20457/* end confdefs.h. */
20458
20459
20460#ifdef HAVE_STDLIB_H
20461#include <stdlib.h>
20462#endif
20463#ifdef HAVE_SYS_TYPES_H
20464#include <sys/types.h>
20465#endif
20466#ifdef HAVE_SYS_TIME_H
20467#include <sys/time.h>
20468#ifdef TIME_WITH_SYS_TIME
20469#include <time.h>
20470#endif
20471#else
20472#ifdef HAVE_TIME_H
20473#include <time.h>
20474#endif
20475#endif
20476
20477int main (void)
20478{
20479
20480 struct timespec ts;
20481 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20482 exit(0);
20483 else
20484 exit(1);
20485
20486 ;
20487 return 0;
20488}
20489
20490_ACEOF
20491if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080020492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020493$as_echo "yes" >&6; }
20494
20495else
Elliott Hughesa93fb052018-12-12 14:22:48 -080020496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020497$as_echo "no" >&6; }
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20499$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20500 curl_func_clock_gettime="no"
20501 LIBS="$curl_cv_save_LIBS"
20502
20503fi
20504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20505 conftest.$ac_objext conftest.beam conftest.$ac_ext
20506fi
20507
Elliott Hughesa93fb052018-12-12 14:22:48 -080020508 LD_LIBRARY_PATH=$old # restore
20509
Elliott Hughes82be86d2017-09-20 17:00:17 -070020510 fi
20511 #
20512 case "$curl_func_clock_gettime" in
20513 yes)
20514
20515cat >>confdefs.h <<_ACEOF
20516#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20517_ACEOF
20518
20519 ;;
20520 esac
20521 #
20522 fi
20523 #
20524
20525
20526CURL_NETWORK_AND_TIME_LIBS=$LIBS
20527
20528
20529
20530clean_CPPFLAGS=$CPPFLAGS
20531clean_LDFLAGS=$LDFLAGS
20532clean_LIBS=$LIBS
20533ZLIB_LIBS=""
20534
20535# Check whether --with-zlib was given.
20536if test "${with_zlib+set}" = set; then :
20537 withval=$with_zlib; OPT_ZLIB="$withval"
20538fi
20539
20540
20541if test "$OPT_ZLIB" = "no" ; then
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20543$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20544else
20545 if test "$OPT_ZLIB" = "yes" ; then
20546 OPT_ZLIB=""
20547 fi
20548
20549 if test -z "$OPT_ZLIB" ; then
20550
20551 if test -n "$PKG_CONFIG"; then
20552 PKGCONFIG="$PKG_CONFIG"
20553 else
20554 if test -n "$ac_tool_prefix"; then
20555 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20556set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20558$as_echo_n "checking for $ac_word... " >&6; }
20559if ${ac_cv_path_PKGCONFIG+:} false; then :
20560 $as_echo_n "(cached) " >&6
20561else
20562 case $PKGCONFIG in
20563 [\\/]* | ?:[\\/]*)
20564 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20565 ;;
20566 *)
20567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20568as_dummy="$PATH:/usr/bin:/usr/local/bin"
20569for as_dir in $as_dummy
20570do
20571 IFS=$as_save_IFS
20572 test -z "$as_dir" && as_dir=.
20573 for ac_exec_ext in '' $ac_executable_extensions; do
20574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20575 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20577 break 2
20578 fi
20579done
20580 done
20581IFS=$as_save_IFS
20582
20583 ;;
20584esac
20585fi
20586PKGCONFIG=$ac_cv_path_PKGCONFIG
20587if test -n "$PKGCONFIG"; then
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20589$as_echo "$PKGCONFIG" >&6; }
20590else
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20592$as_echo "no" >&6; }
20593fi
20594
20595
20596fi
20597if test -z "$ac_cv_path_PKGCONFIG"; then
20598 ac_pt_PKGCONFIG=$PKGCONFIG
20599 # Extract the first word of "pkg-config", so it can be a program name with args.
20600set dummy pkg-config; ac_word=$2
20601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20602$as_echo_n "checking for $ac_word... " >&6; }
20603if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20604 $as_echo_n "(cached) " >&6
20605else
20606 case $ac_pt_PKGCONFIG in
20607 [\\/]* | ?:[\\/]*)
20608 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20609 ;;
20610 *)
20611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20612as_dummy="$PATH:/usr/bin:/usr/local/bin"
20613for as_dir in $as_dummy
20614do
20615 IFS=$as_save_IFS
20616 test -z "$as_dir" && as_dir=.
20617 for ac_exec_ext in '' $ac_executable_extensions; do
20618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20619 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20621 break 2
20622 fi
20623done
20624 done
20625IFS=$as_save_IFS
20626
20627 ;;
20628esac
20629fi
20630ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20631if test -n "$ac_pt_PKGCONFIG"; then
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20633$as_echo "$ac_pt_PKGCONFIG" >&6; }
20634else
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636$as_echo "no" >&6; }
20637fi
20638
20639 if test "x$ac_pt_PKGCONFIG" = x; then
20640 PKGCONFIG="no"
20641 else
20642 case $cross_compiling:$ac_tool_warned in
20643yes:)
20644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20646ac_tool_warned=yes ;;
20647esac
20648 PKGCONFIG=$ac_pt_PKGCONFIG
20649 fi
20650else
20651 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20652fi
20653
20654 fi
20655
20656 if test "x$PKGCONFIG" != "xno"; then
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20658$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20659 itexists=`
20660 if test -n ""; then
20661 PKG_CONFIG_LIBDIR=""
20662 export PKG_CONFIG_LIBDIR
20663 fi
20664 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20665
20666 if test -z "$itexists"; then
20667 PKGCONFIG="no"
20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20669$as_echo "no" >&6; }
20670 else
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20672$as_echo "found" >&6; }
20673 fi
20674 fi
20675
20676
20677 if test "$PKGCONFIG" != "no" ; then
20678 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20679 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20680 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20681 OPT_ZLIB=""
20682 HAVE_LIBZ="1"
20683 fi
20684
20685 if test -z "$HAVE_LIBZ"; then
20686
20687
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20689$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20690if ${ac_cv_lib_z_inflateEnd+:} false; then :
20691 $as_echo_n "(cached) " >&6
20692else
20693 ac_check_lib_save_LIBS=$LIBS
20694LIBS="-lz $LIBS"
20695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696/* end confdefs.h. */
20697
20698
20699#ifdef __cplusplus
20700extern "C"
20701#endif
20702char inflateEnd ();
20703int main (void)
20704{
20705return inflateEnd ();
20706 ;
20707 return 0;
20708}
20709_ACEOF
20710if ac_fn_c_try_link "$LINENO"; then :
20711 ac_cv_lib_z_inflateEnd=yes
20712else
20713 ac_cv_lib_z_inflateEnd=no
20714fi
20715rm -f core conftest.err conftest.$ac_objext \
20716 conftest$ac_exeext conftest.$ac_ext
20717LIBS=$ac_check_lib_save_LIBS
20718fi
20719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20720$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20721if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20722 HAVE_LIBZ="1"
20723 LIBS="-lz $LIBS"
20724else
20725 OPT_ZLIB="/usr/local"
20726fi
20727
20728 fi
20729 fi
20730
20731 if test -n "$OPT_ZLIB"; then
20732 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20733 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20734 fi
20735
20736 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20737if test "x$ac_cv_header_zlib_h" = xyes; then :
20738
20739 HAVE_ZLIB_H="1"
20740 if test "$HAVE_LIBZ" != "1"; then
20741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20742$as_echo_n "checking for gzread in -lz... " >&6; }
20743if ${ac_cv_lib_z_gzread+:} false; then :
20744 $as_echo_n "(cached) " >&6
20745else
20746 ac_check_lib_save_LIBS=$LIBS
20747LIBS="-lz $LIBS"
20748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20749/* end confdefs.h. */
20750
20751
20752#ifdef __cplusplus
20753extern "C"
20754#endif
20755char gzread ();
20756int main (void)
20757{
20758return gzread ();
20759 ;
20760 return 0;
20761}
20762_ACEOF
20763if ac_fn_c_try_link "$LINENO"; then :
20764 ac_cv_lib_z_gzread=yes
20765else
20766 ac_cv_lib_z_gzread=no
20767fi
20768rm -f core conftest.err conftest.$ac_objext \
20769 conftest$ac_exeext conftest.$ac_ext
20770LIBS=$ac_check_lib_save_LIBS
20771fi
20772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20773$as_echo "$ac_cv_lib_z_gzread" >&6; }
20774if test "x$ac_cv_lib_z_gzread" = xyes; then :
20775
20776 HAVE_LIBZ="1"
20777 LIBS="-lz $LIBS"
20778
20779else
20780 CPPFLAGS=$clean_CPPFLAGS
20781 LDFLAGS=$clean_LDFLAGS
20782fi
20783
20784 fi
20785
20786else
20787
20788 CPPFLAGS=$clean_CPPFLAGS
20789 LDFLAGS=$clean_LDFLAGS
20790
20791fi
20792
20793
20794
20795 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20796 then
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20798$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20799 HAVE_LIBZ=""
20800 CPPFLAGS=$clean_CPPFLAGS
20801 LDFLAGS=$clean_LDFLAGS
20802 LIBS=$clean_LIBS
20803 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20804 then
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20806$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20807 CPPFLAGS=$clean_CPPFLAGS
20808 LDFLAGS=$clean_LDFLAGS
20809 LIBS=$clean_LIBS
20810 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20811 then
20812
20813
20814$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20815
20816
20817$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20818
20819
20820 ZLIB_LIBS="-lz"
20821 LIBS="-lz $clean_LIBS"
20822
20823 AMFIXLIB="1"
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20825$as_echo "$as_me: found both libz and libz.h header" >&6;}
20826 curl_zlib_msg="enabled"
20827 fi
20828fi
20829
20830 if test x"$AMFIXLIB" = x1; then
20831 HAVE_LIBZ_TRUE=
20832 HAVE_LIBZ_FALSE='#'
20833else
20834 HAVE_LIBZ_TRUE='#'
20835 HAVE_LIBZ_FALSE=
20836fi
20837
20838
20839
20840
Alex Deymo486467e2017-12-19 19:04:07 +010020841
20842OPT_BROTLI=off
20843
20844# Check whether --with-brotli was given.
20845if test "${with_brotli+set}" = set; then :
20846 withval=$with_brotli; OPT_BROTLI=$withval
20847fi
20848
20849
20850if test X"$OPT_BROTLI" != Xno; then
20851 CLEANLDFLAGS="$LDFLAGS"
20852 CLEANCPPFLAGS="$CPPFLAGS"
20853 CLEANLIBS="$LIBS"
20854
20855 case "$OPT_BROTLI" in
20856 yes)
20857
20858 if test -n "$PKG_CONFIG"; then
20859 PKGCONFIG="$PKG_CONFIG"
20860 else
20861 if test -n "$ac_tool_prefix"; then
20862 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20863set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20865$as_echo_n "checking for $ac_word... " >&6; }
20866if ${ac_cv_path_PKGCONFIG+:} false; then :
20867 $as_echo_n "(cached) " >&6
20868else
20869 case $PKGCONFIG in
20870 [\\/]* | ?:[\\/]*)
20871 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20872 ;;
20873 *)
20874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20875as_dummy="$PATH:/usr/bin:/usr/local/bin"
20876for as_dir in $as_dummy
20877do
20878 IFS=$as_save_IFS
20879 test -z "$as_dir" && as_dir=.
20880 for ac_exec_ext in '' $ac_executable_extensions; do
20881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20882 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20884 break 2
20885 fi
20886done
20887 done
20888IFS=$as_save_IFS
20889
20890 ;;
20891esac
20892fi
20893PKGCONFIG=$ac_cv_path_PKGCONFIG
20894if test -n "$PKGCONFIG"; then
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20896$as_echo "$PKGCONFIG" >&6; }
20897else
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20899$as_echo "no" >&6; }
20900fi
20901
20902
20903fi
20904if test -z "$ac_cv_path_PKGCONFIG"; then
20905 ac_pt_PKGCONFIG=$PKGCONFIG
20906 # Extract the first word of "pkg-config", so it can be a program name with args.
20907set dummy pkg-config; ac_word=$2
20908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20909$as_echo_n "checking for $ac_word... " >&6; }
20910if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20911 $as_echo_n "(cached) " >&6
20912else
20913 case $ac_pt_PKGCONFIG in
20914 [\\/]* | ?:[\\/]*)
20915 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20916 ;;
20917 *)
20918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20919as_dummy="$PATH:/usr/bin:/usr/local/bin"
20920for as_dir in $as_dummy
20921do
20922 IFS=$as_save_IFS
20923 test -z "$as_dir" && as_dir=.
20924 for ac_exec_ext in '' $ac_executable_extensions; do
20925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20926 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20928 break 2
20929 fi
20930done
20931 done
20932IFS=$as_save_IFS
20933
20934 ;;
20935esac
20936fi
20937ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20938if test -n "$ac_pt_PKGCONFIG"; then
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20940$as_echo "$ac_pt_PKGCONFIG" >&6; }
20941else
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943$as_echo "no" >&6; }
20944fi
20945
20946 if test "x$ac_pt_PKGCONFIG" = x; then
20947 PKGCONFIG="no"
20948 else
20949 case $cross_compiling:$ac_tool_warned in
20950yes:)
20951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20953ac_tool_warned=yes ;;
20954esac
20955 PKGCONFIG=$ac_pt_PKGCONFIG
20956 fi
20957else
20958 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20959fi
20960
20961 fi
20962
20963 if test "x$PKGCONFIG" != "xno"; then
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
20965$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
20966 itexists=`
20967 if test -n ""; then
20968 PKG_CONFIG_LIBDIR=""
20969 export PKG_CONFIG_LIBDIR
20970 fi
20971 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
20972
20973 if test -z "$itexists"; then
20974 PKGCONFIG="no"
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20976$as_echo "no" >&6; }
20977 else
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20979$as_echo "found" >&6; }
20980 fi
20981 fi
20982
20983
20984 if test "$PKGCONFIG" != "no" ; then
20985 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
20986 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
20987 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
20988 version=`$PKGCONFIG --modversion libbrotlidec`
20989 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
20990 fi
20991
20992 ;;
20993 off)
20994 ;;
20995 *)
20996 PREFIX_BROTLI=$OPT_BROTLI
20997 ;;
20998 esac
20999
21000 if test -n "$PREFIX_BROTLI"; then
21001 LIB_BROTLI="-lbrotlidec"
21002 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21003 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21004 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21005 fi
21006
21007 LDFLAGS="$LDFLAGS $LD_BROTLI"
21008 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21009 LIBS="$LIB_BROTLI $LIBS"
21010
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21012$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21013if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21014 $as_echo_n "(cached) " >&6
21015else
21016 ac_check_lib_save_LIBS=$LIBS
21017LIBS="-lbrotlidec $LIBS"
21018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21019/* end confdefs.h. */
21020
21021
21022#ifdef __cplusplus
21023extern "C"
21024#endif
21025char BrotliDecoderDecompress ();
21026int main (void)
21027{
21028return BrotliDecoderDecompress ();
21029 ;
21030 return 0;
21031}
21032_ACEOF
21033if ac_fn_c_try_link "$LINENO"; then :
21034 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21035else
21036 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21037fi
21038rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21040LIBS=$ac_check_lib_save_LIBS
21041fi
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21043$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21044if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21045 cat >>confdefs.h <<_ACEOF
21046#define HAVE_LIBBROTLIDEC 1
21047_ACEOF
21048
21049 LIBS="-lbrotlidec $LIBS"
21050
21051fi
21052
21053
21054 for ac_header in brotli/decode.h
21055do :
21056 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21057if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21058 cat >>confdefs.h <<_ACEOF
21059#define HAVE_BROTLI_DECODE_H 1
21060_ACEOF
21061 curl_brotli_msg="enabled (libbrotlidec)"
21062 HAVE_BROTLI=1
21063
21064$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21065
21066 HAVE_BROTLI=1
21067
21068
21069fi
21070
21071done
21072
21073
21074 if test X"$OPT_BROTLI" != Xoff &&
21075 test "$HAVE_BROTLI" != "1"; then
21076 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21077 fi
21078
21079 if test "$HAVE_BROTLI" = "1"; then
21080 if test -n "$DIR_BROTLI"; then
21081
21082 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021083 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21084 export CURL_LIBRARY_PATH
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21086$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021087 fi
21088 fi
21089 else
21090 LDFLAGS=$CLEANLDFLAGS
21091 CPPFLAGS=$CLEANCPPFLAGS
21092 LIBS=$CLEANLIBS
21093 fi
21094fi
21095
21096
Elliott Hughes82be86d2017-09-20 17:00:17 -070021097LDAPLIBNAME=""
21098
21099# Check whether --with-ldap-lib was given.
21100if test "${with_ldap_lib+set}" = set; then :
21101 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21102fi
21103
21104
21105LBERLIBNAME=""
21106
21107# Check whether --with-lber-lib was given.
21108if test "${with_lber_lib+set}" = set; then :
21109 withval=$with_lber_lib; LBERLIBNAME="$withval"
21110fi
21111
21112
21113if test x$CURL_DISABLE_LDAP != x1 ; then
21114
21115
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21117$as_echo_n "checking for lber.h... " >&6; }
21118if ${curl_cv_header_lber_h+:} false; then :
21119 $as_echo_n "(cached) " >&6
21120else
21121
21122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21123/* end confdefs.h. */
21124
21125
21126#undef inline
21127#ifdef HAVE_WINDOWS_H
21128#ifndef WIN32_LEAN_AND_MEAN
21129#define WIN32_LEAN_AND_MEAN
21130#endif
21131#include <windows.h>
21132#else
21133#ifdef HAVE_SYS_TYPES_H
21134#include <sys/types.h>
21135#endif
21136#endif
21137#ifndef NULL
21138#define NULL (void *)0
21139#endif
21140#include <lber.h>
21141
21142int main (void)
21143{
21144
21145 BerValue *bvp = NULL;
21146 BerElement *bep = ber_init(bvp);
21147 ber_free(bep, 1);
21148
21149 ;
21150 return 0;
21151}
21152
21153_ACEOF
21154if ac_fn_c_try_compile "$LINENO"; then :
21155
21156 curl_cv_header_lber_h="yes"
21157
21158else
21159
21160 curl_cv_header_lber_h="no"
21161
21162fi
21163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164
21165fi
21166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21167$as_echo "$curl_cv_header_lber_h" >&6; }
21168 if test "$curl_cv_header_lber_h" = "yes"; then
21169
21170cat >>confdefs.h <<_ACEOF
21171#define HAVE_LBER_H 1
21172_ACEOF
21173
21174 #
21175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21176/* end confdefs.h. */
21177
21178
21179#undef inline
21180#ifdef HAVE_WINDOWS_H
21181#ifndef WIN32_LEAN_AND_MEAN
21182#define WIN32_LEAN_AND_MEAN
21183#endif
21184#include <windows.h>
21185#else
21186#ifdef HAVE_SYS_TYPES_H
21187#include <sys/types.h>
21188#endif
21189#endif
21190#ifndef NULL
21191#define NULL (void *)0
21192#endif
21193#ifndef LDAP_DEPRECATED
21194#define LDAP_DEPRECATED 1
21195#endif
21196#include <ldap.h>
21197
21198int main (void)
21199{
21200
21201 BerValue *bvp = NULL;
21202 BerElement *bep = ber_init(bvp);
21203 ber_free(bep, 1);
21204
21205 ;
21206 return 0;
21207}
21208
21209_ACEOF
21210if ac_fn_c_try_compile "$LINENO"; then :
21211
21212 curl_cv_need_header_lber_h="no"
21213
21214else
21215
21216 curl_cv_need_header_lber_h="yes"
21217
21218fi
21219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220 #
21221 case "$curl_cv_need_header_lber_h" in
21222 yes)
21223
21224cat >>confdefs.h <<_ACEOF
21225#define NEED_LBER_H 1
21226_ACEOF
21227
21228 ;;
21229 esac
21230 fi
21231
21232
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21234$as_echo_n "checking for ldap.h... " >&6; }
21235if ${curl_cv_header_ldap_h+:} false; then :
21236 $as_echo_n "(cached) " >&6
21237else
21238
21239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21240/* end confdefs.h. */
21241
21242
21243#undef inline
21244#ifdef HAVE_WINDOWS_H
21245#ifndef WIN32_LEAN_AND_MEAN
21246#define WIN32_LEAN_AND_MEAN
21247#endif
21248#include <windows.h>
21249#else
21250#ifdef HAVE_SYS_TYPES_H
21251#include <sys/types.h>
21252#endif
21253#endif
21254#ifndef LDAP_DEPRECATED
21255#define LDAP_DEPRECATED 1
21256#endif
21257#ifdef NEED_LBER_H
21258#include <lber.h>
21259#endif
21260#include <ldap.h>
21261
21262int main (void)
21263{
21264
21265 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21266 int res = ldap_unbind(ldp);
21267
21268 ;
21269 return 0;
21270}
21271
21272_ACEOF
21273if ac_fn_c_try_compile "$LINENO"; then :
21274
21275 curl_cv_header_ldap_h="yes"
21276
21277else
21278
21279 curl_cv_header_ldap_h="no"
21280
21281fi
21282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21283
21284fi
21285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21286$as_echo "$curl_cv_header_ldap_h" >&6; }
21287 case "$curl_cv_header_ldap_h" in
21288 yes)
21289
21290cat >>confdefs.h <<_ACEOF
21291#define HAVE_LDAP_H 1
21292_ACEOF
21293
21294 ;;
21295 esac
21296
21297
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21299$as_echo_n "checking for ldapssl.h... " >&6; }
21300if ${curl_cv_header_ldapssl_h+:} false; then :
21301 $as_echo_n "(cached) " >&6
21302else
21303
21304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305/* end confdefs.h. */
21306
21307
21308#undef inline
21309#ifdef HAVE_WINDOWS_H
21310#ifndef WIN32_LEAN_AND_MEAN
21311#define WIN32_LEAN_AND_MEAN
21312#endif
21313#include <windows.h>
21314#else
21315#ifdef HAVE_SYS_TYPES_H
21316#include <sys/types.h>
21317#endif
21318#endif
21319#ifndef NULL
21320#define NULL (void *)0
21321#endif
21322#ifndef LDAP_DEPRECATED
21323#define LDAP_DEPRECATED 1
21324#endif
21325#ifdef NEED_LBER_H
21326#include <lber.h>
21327#endif
21328#ifdef HAVE_LDAP_H
21329#include <ldap.h>
21330#endif
21331#include <ldapssl.h>
21332
21333int main (void)
21334{
21335
21336 char *cert_label = NULL;
21337 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21338
21339 ;
21340 return 0;
21341}
21342
21343_ACEOF
21344if ac_fn_c_try_compile "$LINENO"; then :
21345
21346 curl_cv_header_ldapssl_h="yes"
21347
21348else
21349
21350 curl_cv_header_ldapssl_h="no"
21351
21352fi
21353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21354
21355fi
21356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21357$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21358 case "$curl_cv_header_ldapssl_h" in
21359 yes)
21360
21361cat >>confdefs.h <<_ACEOF
21362#define HAVE_LDAPSSL_H 1
21363_ACEOF
21364
21365 ;;
21366 esac
21367
21368
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21370$as_echo_n "checking for ldap_ssl.h... " >&6; }
21371if ${curl_cv_header_ldap_ssl_h+:} false; then :
21372 $as_echo_n "(cached) " >&6
21373else
21374
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376/* end confdefs.h. */
21377
21378
21379#undef inline
21380#ifdef HAVE_WINDOWS_H
21381#ifndef WIN32_LEAN_AND_MEAN
21382#define WIN32_LEAN_AND_MEAN
21383#endif
21384#include <windows.h>
21385#else
21386#ifdef HAVE_SYS_TYPES_H
21387#include <sys/types.h>
21388#endif
21389#endif
21390#ifndef LDAP_DEPRECATED
21391#define LDAP_DEPRECATED 1
21392#endif
21393#ifdef NEED_LBER_H
21394#include <lber.h>
21395#endif
21396#ifdef HAVE_LDAP_H
21397#include <ldap.h>
21398#endif
21399#include <ldap_ssl.h>
21400
21401int main (void)
21402{
21403
21404 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21405
21406 ;
21407 return 0;
21408}
21409
21410_ACEOF
21411if ac_fn_c_try_compile "$LINENO"; then :
21412
21413 curl_cv_header_ldap_ssl_h="yes"
21414
21415else
21416
21417 curl_cv_header_ldap_ssl_h="no"
21418
21419fi
21420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21421
21422fi
21423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21424$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21425 case "$curl_cv_header_ldap_ssl_h" in
21426 yes)
21427
21428cat >>confdefs.h <<_ACEOF
21429#define HAVE_LDAP_SSL_H 1
21430_ACEOF
21431
21432 ;;
21433 esac
21434
21435
21436 if test -z "$LDAPLIBNAME" ; then
21437 if test "$curl_cv_native_windows" = "yes"; then
21438 LDAPLIBNAME="wldap32"
21439 LBERLIBNAME="no"
21440 fi
21441 fi
21442
21443 if test "$LDAPLIBNAME" ; then
21444 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21446$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21447if eval \${$as_ac_Lib+:} false; then :
21448 $as_echo_n "(cached) " >&6
21449else
21450 ac_check_lib_save_LIBS=$LIBS
21451LIBS="-l"$LDAPLIBNAME" $LIBS"
21452cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453/* end confdefs.h. */
21454
21455
21456#ifdef __cplusplus
21457extern "C"
21458#endif
21459char ldap_init ();
21460int main (void)
21461{
21462return ldap_init ();
21463 ;
21464 return 0;
21465}
21466_ACEOF
21467if ac_fn_c_try_link "$LINENO"; then :
21468 eval "$as_ac_Lib=yes"
21469else
21470 eval "$as_ac_Lib=no"
21471fi
21472rm -f core conftest.err conftest.$ac_objext \
21473 conftest$ac_exeext conftest.$ac_ext
21474LIBS=$ac_check_lib_save_LIBS
21475fi
21476eval ac_res=\$$as_ac_Lib
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21478$as_echo "$ac_res" >&6; }
21479if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21480 cat >>confdefs.h <<_ACEOF
21481#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21482_ACEOF
21483
21484 LIBS="-l"$LDAPLIBNAME" $LIBS"
21485
21486else
21487
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21489$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21490
21491$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21492
21493 CURL_DISABLE_LDAP=1
21494
21495
21496$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21497
21498 CURL_DISABLE_LDAPS=1
21499
21500fi
21501
21502 else
21503
21504 #
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21506$as_echo_n "checking for LDAP libraries... " >&6; }
21507 #
21508 u_libs=""
21509 #
21510
21511 #
21512 curl_cv_save_LIBS="$LIBS"
21513 curl_cv_ldap_LIBS="unknown"
21514 #
21515 for x_nlibs in '' "$u_libs" \
21516 '-lldap' \
21517 '-lldap -llber' \
21518 '-llber -lldap' \
21519 '-lldapssl -lldapx -lldapsdk' \
Haibo Huang65021c72019-03-27 15:37:23 -070021520 '-lldapsdk -lldapx -lldapssl' \
21521 '-lldap -llber -lssl -lcrypto' ; do
21522
Elliott Hughes82be86d2017-09-20 17:00:17 -070021523 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21524 if test -z "$x_nlibs"; then
21525 LIBS="$curl_cv_save_LIBS"
21526 else
21527 LIBS="$x_nlibs $curl_cv_save_LIBS"
21528 fi
21529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530/* end confdefs.h. */
21531
21532
21533#undef inline
21534#ifdef HAVE_WINDOWS_H
21535#ifndef WIN32_LEAN_AND_MEAN
21536#define WIN32_LEAN_AND_MEAN
21537#endif
21538#include <windows.h>
21539#else
21540#ifdef HAVE_SYS_TYPES_H
21541#include <sys/types.h>
21542#endif
21543#endif
21544#ifndef NULL
21545#define NULL (void *)0
21546#endif
21547#ifndef LDAP_DEPRECATED
21548#define LDAP_DEPRECATED 1
21549#endif
21550#ifdef NEED_LBER_H
21551#include <lber.h>
21552#endif
21553#ifdef HAVE_LDAP_H
21554#include <ldap.h>
21555#endif
21556
21557int main (void)
21558{
21559
21560 BerValue *bvp = NULL;
21561 BerElement *bep = ber_init(bvp);
21562 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21563 int res = ldap_unbind(ldp);
21564 ber_free(bep, 1);
21565
21566 ;
21567 return 0;
21568}
21569
21570_ACEOF
21571if ac_fn_c_try_link "$LINENO"; then :
21572
21573 curl_cv_ldap_LIBS="$x_nlibs"
21574
21575fi
21576rm -f core conftest.err conftest.$ac_objext \
21577 conftest$ac_exeext conftest.$ac_ext
21578 fi
21579 done
21580 #
21581 LIBS="$curl_cv_save_LIBS"
21582 #
21583 case X-"$curl_cv_ldap_LIBS" in
21584 X-unknown)
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21586$as_echo "cannot find LDAP libraries" >&6; }
21587 ;;
21588 X-)
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21590$as_echo "no additional lib required" >&6; }
21591 ;;
21592 *)
21593 if test -z "$curl_cv_save_LIBS"; then
21594 LIBS="$curl_cv_ldap_LIBS"
21595 else
21596 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21597 fi
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21599$as_echo "$curl_cv_ldap_LIBS" >&6; }
21600 ;;
21601 esac
21602 #
21603
21604 case X-"$curl_cv_ldap_LIBS" in
21605 X-unknown)
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21607$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21608
21609$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21610
21611 CURL_DISABLE_LDAP=1
21612
21613
21614$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21615
21616 CURL_DISABLE_LDAPS=1
21617
21618 ;;
21619 esac
21620 fi
21621fi
21622
21623if test x$CURL_DISABLE_LDAP != x1 ; then
21624
21625 if test "$LBERLIBNAME" ; then
21626 if test "$LBERLIBNAME" != "no" ; then
21627 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21629$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21630if eval \${$as_ac_Lib+:} false; then :
21631 $as_echo_n "(cached) " >&6
21632else
21633 ac_check_lib_save_LIBS=$LIBS
21634LIBS="-l"$LBERLIBNAME" $LIBS"
21635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21636/* end confdefs.h. */
21637
21638
21639#ifdef __cplusplus
21640extern "C"
21641#endif
21642char ber_free ();
21643int main (void)
21644{
21645return ber_free ();
21646 ;
21647 return 0;
21648}
21649_ACEOF
21650if ac_fn_c_try_link "$LINENO"; then :
21651 eval "$as_ac_Lib=yes"
21652else
21653 eval "$as_ac_Lib=no"
21654fi
21655rm -f core conftest.err conftest.$ac_objext \
21656 conftest$ac_exeext conftest.$ac_ext
21657LIBS=$ac_check_lib_save_LIBS
21658fi
21659eval ac_res=\$$as_ac_Lib
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21661$as_echo "$ac_res" >&6; }
21662if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21663 cat >>confdefs.h <<_ACEOF
21664#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21665_ACEOF
21666
21667 LIBS="-l"$LBERLIBNAME" $LIBS"
21668
21669else
21670
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21672$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21673
21674$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21675
21676 CURL_DISABLE_LDAP=1
21677
21678
21679$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21680
21681 CURL_DISABLE_LDAPS=1
21682
21683fi
21684
21685 fi
21686 fi
21687fi
21688
21689if test x$CURL_DISABLE_LDAP != x1 ; then
21690 for ac_func in ldap_url_parse ldap_init_fd
21691do :
21692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21693ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21695 cat >>confdefs.h <<_ACEOF
21696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21697_ACEOF
21698
21699fi
21700done
21701
21702
21703 if test "$LDAPLIBNAME" = "wldap32"; then
21704 curl_ldap_msg="enabled (winldap)"
21705
21706$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21707
21708 else
21709 curl_ldap_msg="enabled (OpenLDAP)"
21710 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21711
21712$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21713
21714 USE_OPENLDAP=1
21715
21716 fi
21717 fi
21718fi
21719
21720if test x$CURL_DISABLE_LDAPS != x1 ; then
21721 curl_ldaps_msg="enabled"
21722fi
21723
21724
21725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21726$as_echo_n "checking whether to enable IPv6... " >&6; }
21727# Check whether --enable-ipv6 was given.
21728if test "${enable_ipv6+set}" = set; then :
21729 enableval=$enable_ipv6; case "$enableval" in
21730 no)
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21732$as_echo "no" >&6; }
21733 ipv6=no
21734 ;;
21735 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21736$as_echo "yes" >&6; }
21737 ipv6=yes
21738 ;;
21739 esac
21740else
21741 if test "$cross_compiling" = yes; then :
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21743$as_echo "yes" >&6; }
21744 ipv6=yes
21745
21746else
21747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21748/* end confdefs.h. */
21749 /* is AF_INET6 available? */
21750#include <sys/types.h>
21751#ifdef HAVE_WINSOCK2_H
21752#include <winsock2.h>
21753#else
21754#include <sys/socket.h>
21755#endif
21756#include <stdlib.h> /* for exit() */
21757main()
21758{
21759 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21760 exit(1);
21761 else
21762 exit(0);
21763}
21764
21765_ACEOF
21766if ac_fn_c_try_run "$LINENO"; then :
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21768$as_echo "yes" >&6; }
21769 ipv6=yes
21770else
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21772$as_echo "no" >&6; }
21773 ipv6=no
21774fi
21775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21776 conftest.$ac_objext conftest.beam conftest.$ac_ext
21777fi
21778
21779fi
21780
21781
21782if test "$ipv6" = "yes"; then
21783 curl_ipv6_msg="enabled"
21784fi
21785
21786# Check if struct sockaddr_in6 have sin6_scope_id member
21787if test "$ipv6" = yes; then
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21789$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21791/* end confdefs.h. */
21792
21793#include <sys/types.h>
21794#ifdef HAVE_WINSOCK2_H
21795#include <winsock2.h>
21796#include <ws2tcpip.h>
21797#else
21798#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021799#if defined (__TANDEM)
21800# include <netinet/in6.h>
21801#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021802#endif
21803int main (void)
21804{
21805struct sockaddr_in6 s; s.sin6_scope_id = 0;
21806 ;
21807 return 0;
21808}
21809_ACEOF
21810if ac_fn_c_try_compile "$LINENO"; then :
21811 have_sin6_scope_id=yes
21812fi
21813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21814 if test "$have_sin6_scope_id" = yes; then
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21816$as_echo "yes" >&6; }
21817
21818$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21819
21820 else
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822$as_echo "no" >&6; }
21823 fi
21824fi
21825
21826
21827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21828$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021829
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021830
21831 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021832 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21833 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021834 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021835 curl_cv_writable_argv=cross
21836
21837else
21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839/* end confdefs.h. */
21840
Elliott Hughes82be86d2017-09-20 17:00:17 -070021841int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021842 argv00 = ' ';
21843 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021844}
21845
Elliott Hughes82be86d2017-09-20 17:00:17 -070021846_ACEOF
21847if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021848 curl_cv_writable_argv=yes
21849
21850else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021851 curl_cv_writable_argv=no
21852
21853fi
21854rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21855 conftest.$ac_objext conftest.beam conftest.$ac_ext
21856fi
21857
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021858 LD_LIBRARY_PATH=$old # restore
21859
Elliott Hughes82be86d2017-09-20 17:00:17 -070021860case $curl_cv_writable_argv in
21861yes)
21862
21863$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21864
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21866$as_echo "yes" >&6; }
21867 ;;
21868no)
21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21870$as_echo "no" >&6; }
21871 ;;
21872*)
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21874$as_echo "no" >&6; }
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21876$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21877 ;;
21878esac
21879
21880
21881
21882GSSAPI_ROOT="/usr"
21883
21884# Check whether --with-gssapi-includes was given.
21885if test "${with_gssapi_includes+set}" = set; then :
21886 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21887 want_gss="yes"
21888
21889fi
21890
21891
21892
21893# Check whether --with-gssapi-libs was given.
21894if test "${with_gssapi_libs+set}" = set; then :
21895 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21896 want_gss="yes"
21897
21898fi
21899
21900
21901
21902# Check whether --with-gssapi was given.
21903if test "${with_gssapi+set}" = set; then :
21904 withval=$with_gssapi;
21905 GSSAPI_ROOT="$withval"
21906 if test x"$GSSAPI_ROOT" != xno; then
21907 want_gss="yes"
21908 if test x"$GSSAPI_ROOT" = xyes; then
21909 GSSAPI_ROOT="/usr"
21910 fi
21911 fi
21912
21913fi
21914
21915
21916: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21917
21918save_CPPFLAGS="$CPPFLAGS"
21919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21920$as_echo_n "checking if GSS-API support is requested... " >&6; }
21921if test x"$want_gss" = xyes; then
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21923$as_echo "yes" >&6; }
21924
21925 if test -z "$GSSAPI_INCS"; then
21926 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21927 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21928 elif test -f "$KRB5CONFIG"; then
21929 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21930 elif test "$GSSAPI_ROOT" != "yes"; then
21931 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21932 fi
21933 fi
21934
21935 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21936
21937 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21938if test "x$ac_cv_header_gss_h" = xyes; then :
21939
21940
21941$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21942
21943 gnu_gss=yes
21944
21945else
21946
21947 for ac_header in gssapi/gssapi.h
21948do :
21949 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21950if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21951 cat >>confdefs.h <<_ACEOF
21952#define HAVE_GSSAPI_GSSAPI_H 1
21953_ACEOF
21954
21955else
21956 not_mit=1
21957fi
21958
21959done
21960
21961 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21962do :
21963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21964ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21965$ac_includes_default
21966#ifdef HAVE_GSSAPI_GSSAPI_H
21967#include <gssapi/gssapi.h>
21968#endif
21969
21970"
21971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21972 cat >>confdefs.h <<_ACEOF
21973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21974_ACEOF
21975
21976else
21977 not_mit=1
21978fi
21979
21980done
21981
21982 if test "x$not_mit" = "x1"; then
21983 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21984if test "x$ac_cv_header_gssapi_h" = xyes; then :
21985
21986
21987$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21988
21989
21990else
21991
21992 want_gss=no
21993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21994$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21995
21996
21997fi
21998
21999
22000 else
22001
22002$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22003
22004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22005$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007/* end confdefs.h. */
22008
22009
22010#include <gssapi/gssapi.h>
22011#include <gssapi/gssapi_generic.h>
22012#include <gssapi/gssapi_krb5.h>
22013
22014int main (void)
22015{
22016
22017 gss_import_name(
22018 (OM_uint32 *)0,
22019 (gss_buffer_t)0,
22020 GSS_C_NT_HOSTBASED_SERVICE,
22021 (gss_name_t *)0);
22022
22023 ;
22024 return 0;
22025}
22026
22027_ACEOF
22028if ac_fn_c_try_compile "$LINENO"; then :
22029
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22031$as_echo "yes" >&6; }
22032
22033else
22034
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22036$as_echo "no" >&6; }
22037
22038$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22039
22040
22041fi
22042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22043 fi
22044
22045
22046fi
22047
22048
22049else
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22051$as_echo "no" >&6; }
22052fi
22053if test x"$want_gss" = xyes; then
22054
22055$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22056
22057 HAVE_GSSAPI=1
22058 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22059
22060 if test -n "$gnu_gss"; then
22061 curl_gss_msg="enabled (GNU GSS)"
22062 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22063 LIBS="-lgss $LIBS"
22064 elif test -z "$GSSAPI_LIB_DIR"; then
22065 case $host in
22066 *-*-darwin*)
22067 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22068 ;;
22069 *)
22070 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22071 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22072 LIBS="$gss_libs $LIBS"
22073 elif test -f "$KRB5CONFIG"; then
22074 gss_libs=`$KRB5CONFIG --libs gssapi`
22075 LIBS="$gss_libs $LIBS"
22076 else
22077 case $host in
22078 *-hp-hpux*)
22079 gss_libname="gss"
22080 ;;
22081 *)
22082 gss_libname="gssapi"
22083 ;;
22084 esac
22085
22086 if test "$GSSAPI_ROOT" != "yes"; then
22087 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22088 LIBS="-l$gss_libname $LIBS"
22089 else
22090 LIBS="-l$gss_libname $LIBS"
22091 fi
22092 fi
22093 ;;
22094 esac
22095 else
22096 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22097 case $host in
22098 *-hp-hpux*)
22099 LIBS="-lgss $LIBS"
22100 ;;
22101 *)
22102 LIBS="-lgssapi $LIBS"
22103 ;;
22104 esac
22105 fi
22106else
22107 CPPFLAGS="$save_CPPFLAGS"
22108fi
22109
Alex Deymo486467e2017-12-19 19:04:07 +010022110build_libstubgss=no
22111if test x"$want_gss" = "xyes"; then
22112 build_libstubgss=yes
22113fi
22114
22115 if test "x$build_libstubgss" = "xyes"; then
22116 BUILD_STUB_GSS_TRUE=
22117 BUILD_STUB_GSS_FALSE='#'
22118else
22119 BUILD_STUB_GSS_TRUE='#'
22120 BUILD_STUB_GSS_FALSE=
22121fi
22122
22123
22124
22125DEFAULT_SSL_BACKEND=no
22126VALID_DEFAULT_SSL_BACKEND=
22127
22128# Check whether --with-default-ssl-backend was given.
22129if test "${with_default_ssl_backend+set}" = set; then :
22130 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22131fi
22132
22133case "$DEFAULT_SSL_BACKEND" in
22134 no)
22135 ;;
22136 default|yes)
22137 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22138 ;;
22139 *)
22140
22141 VALID_DEFAULT_SSL_BACKEND=no
22142 ;;
22143esac
22144
22145
Elliott Hughes82be86d2017-09-20 17:00:17 -070022146
22147OPT_WINSSL=no
22148
22149# Check whether --with-winssl was given.
22150if test "${with_winssl+set}" = set; then :
22151 withval=$with_winssl; OPT_WINSSL=$withval
22152fi
22153
22154
Haibo Huang51d9d882019-02-06 01:36:06 -080022155
22156# Check whether --with-schannel was given.
22157if test "${with_schannel+set}" = set; then :
22158 withval=$with_schannel; OPT_WINSSL=$withval
22159fi
22160
22161
Elliott Hughes82be86d2017-09-20 17:00:17 -070022162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22163$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022164if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22165 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022166 if test "x$OPT_WINSSL" != "xno" &&
22167 test "x$curl_cv_native_windows" = "xyes"; then
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22169$as_echo "yes" >&6; }
22170
22171$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22172
22173 USE_SCHANNEL=1
22174
Alex Deymo486467e2017-12-19 19:04:07 +010022175 ssl_msg="Windows-native"
22176 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022177 WINSSL_ENABLED=1
22178 # --with-winssl implies --enable-sspi
22179
22180$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22181
22182 USE_WINDOWS_SSPI=1
22183
22184 curl_sspi_msg="enabled"
22185 LIBS="-lcrypt32 $LIBS"
22186 else
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22188$as_echo "no" >&6; }
22189 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022190 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022191else
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22193$as_echo "no" >&6; }
22194fi
22195
Haibo Huang65021c72019-03-27 15:37:23 -070022196OPT_SECURETRANSPORT=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070022197
22198# Check whether --with-darwinssl was given.
22199if test "${with_darwinssl+set}" = set; then :
Haibo Huang65021c72019-03-27 15:37:23 -070022200 withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval
Elliott Hughes82be86d2017-09-20 17:00:17 -070022201fi
22202
22203
Haibo Huang65021c72019-03-27 15:37:23 -070022204
22205# Check whether --with-secure-transport was given.
22206if test "${with_secure_transport+set}" = set; then :
22207 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
22208fi
22209
22210
22211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
22212$as_echo_n "checking whether to enable Secure Transport... " >&6; }
22213if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
22214 if test "x$OPT_SECURETRANSPORT" != "xno" &&
Elliott Hughes82be86d2017-09-20 17:00:17 -070022215 test -d "/System/Library/Frameworks/Security.framework"; then
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22217$as_echo "yes" >&6; }
22218
Haibo Huang65021c72019-03-27 15:37:23 -070022219$as_echo "#define USE_SECTRANSP 1" >>confdefs.h
Elliott Hughes82be86d2017-09-20 17:00:17 -070022220
Haibo Huang65021c72019-03-27 15:37:23 -070022221 USE_SECTRANSP=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070022222
Haibo Huang65021c72019-03-27 15:37:23 -070022223 ssl_msg="Secure Transport"
22224 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22225 SECURETRANSPORT_ENABLED=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070022226 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22227 else
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22229$as_echo "no" >&6; }
22230 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022231 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022232else
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22234$as_echo "no" >&6; }
22235fi
22236
Haibo Huang65021c72019-03-27 15:37:23 -070022237OPT_AMISSL=no
22238
22239# Check whether --with-amissl was given.
22240if test "${with_amissl+set}" = set; then :
22241 withval=$with_amissl; OPT_AMISSL=$withval
22242fi
22243
22244
22245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
22246$as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
Haibo Huang34ab3462019-05-22 00:50:27 -070022247if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
Haibo Huang65021c72019-03-27 15:37:23 -070022248 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
22249 ssl_msg=
22250 if test "x$OPT_AMISSL" != "xno"; then
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22252$as_echo "yes" >&6; }
22253 ssl_msg="AmiSSL"
22254 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22255 AMISSL_ENABLED=1
22256 LIBS="-lamisslauto $LIBS"
22257
22258$as_echo "#define USE_AMISSL 1" >>confdefs.h
22259
22260
22261$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22262
22263 else
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22265$as_echo "no" >&6; }
22266 fi
22267 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22268 else
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270$as_echo "no" >&6; }
22271 fi
22272else
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22274$as_echo "no" >&6; }
22275fi
22276
Elliott Hughes82be86d2017-09-20 17:00:17 -070022277
22278OPT_SSL=off
22279ca="no"
22280
22281# Check whether --with-ssl was given.
22282if test "${with_ssl+set}" = set; then :
22283 withval=$with_ssl; OPT_SSL=$withval
22284fi
22285
22286
Alex Deymo486467e2017-12-19 19:04:07 +010022287if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22288 test X"$OPT_SSL" != Xno; then
22289 ssl_msg=
22290
Elliott Hughes82be86d2017-09-20 17:00:17 -070022291 CLEANLDFLAGS="$LDFLAGS"
22292 CLEANCPPFLAGS="$CPPFLAGS"
22293 CLEANLIBS="$LIBS"
22294
22295 case $host in
22296 *-*-msys* | *-*-mingw*)
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22298$as_echo_n "checking for gdi32... " >&6; }
22299 my_ac_save_LIBS=$LIBS
22300 LIBS="-lgdi32 $LIBS"
22301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22302/* end confdefs.h. */
22303#include <windef.h>
22304 #include <wingdi.h>
22305int main (void)
22306{
22307GdiFlush();
22308 ;
22309 return 0;
22310}
22311_ACEOF
22312if ac_fn_c_try_link "$LINENO"; then :
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22314$as_echo "yes" >&6; }
22315else
22316 LIBS=$my_ac_save_LIBS
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318$as_echo "no" >&6; }
22319
22320fi
22321rm -f core conftest.err conftest.$ac_objext \
22322 conftest$ac_exeext conftest.$ac_ext
22323 ;;
22324 esac
22325
22326 case "$OPT_SSL" in
22327 yes)
22328 if test x$cross_compiling != xyes; then
22329 PKGTEST="yes"
22330 fi
22331 PREFIX_OPENSSL=/usr/local/ssl
22332 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22333 ;;
22334 off)
22335 if test x$cross_compiling != xyes; then
22336 PKGTEST="yes"
22337 fi
22338 PREFIX_OPENSSL=
22339 ;;
22340 *)
22341 PKGTEST="no"
22342 PREFIX_OPENSSL=$OPT_SSL
22343
22344 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022345 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022346 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22347$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022348 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022349 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22350 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022351 fi
22352
22353 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22354 if test "$PREFIX_OPENSSL" != "/usr" ; then
22355 SSL_LDFLAGS="-L$LIB_OPENSSL"
22356 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22357 fi
22358 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22359 ;;
22360 esac
22361
22362 if test "$PKGTEST" = "yes"; then
22363
22364
22365 if test -n "$PKG_CONFIG"; then
22366 PKGCONFIG="$PKG_CONFIG"
22367 else
22368 if test -n "$ac_tool_prefix"; then
22369 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22370set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22372$as_echo_n "checking for $ac_word... " >&6; }
22373if ${ac_cv_path_PKGCONFIG+:} false; then :
22374 $as_echo_n "(cached) " >&6
22375else
22376 case $PKGCONFIG in
22377 [\\/]* | ?:[\\/]*)
22378 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22379 ;;
22380 *)
22381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22382as_dummy="$PATH:/usr/bin:/usr/local/bin"
22383for as_dir in $as_dummy
22384do
22385 IFS=$as_save_IFS
22386 test -z "$as_dir" && as_dir=.
22387 for ac_exec_ext in '' $ac_executable_extensions; do
22388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22389 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22391 break 2
22392 fi
22393done
22394 done
22395IFS=$as_save_IFS
22396
22397 ;;
22398esac
22399fi
22400PKGCONFIG=$ac_cv_path_PKGCONFIG
22401if test -n "$PKGCONFIG"; then
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22403$as_echo "$PKGCONFIG" >&6; }
22404else
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22406$as_echo "no" >&6; }
22407fi
22408
22409
22410fi
22411if test -z "$ac_cv_path_PKGCONFIG"; then
22412 ac_pt_PKGCONFIG=$PKGCONFIG
22413 # Extract the first word of "pkg-config", so it can be a program name with args.
22414set dummy pkg-config; ac_word=$2
22415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22416$as_echo_n "checking for $ac_word... " >&6; }
22417if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22418 $as_echo_n "(cached) " >&6
22419else
22420 case $ac_pt_PKGCONFIG in
22421 [\\/]* | ?:[\\/]*)
22422 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22423 ;;
22424 *)
22425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22426as_dummy="$PATH:/usr/bin:/usr/local/bin"
22427for as_dir in $as_dummy
22428do
22429 IFS=$as_save_IFS
22430 test -z "$as_dir" && as_dir=.
22431 for ac_exec_ext in '' $ac_executable_extensions; do
22432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22433 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22435 break 2
22436 fi
22437done
22438 done
22439IFS=$as_save_IFS
22440
22441 ;;
22442esac
22443fi
22444ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22445if test -n "$ac_pt_PKGCONFIG"; then
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22447$as_echo "$ac_pt_PKGCONFIG" >&6; }
22448else
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22450$as_echo "no" >&6; }
22451fi
22452
22453 if test "x$ac_pt_PKGCONFIG" = x; then
22454 PKGCONFIG="no"
22455 else
22456 case $cross_compiling:$ac_tool_warned in
22457yes:)
22458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22460ac_tool_warned=yes ;;
22461esac
22462 PKGCONFIG=$ac_pt_PKGCONFIG
22463 fi
22464else
22465 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22466fi
22467
22468 fi
22469
22470 if test "x$PKGCONFIG" != "xno"; then
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22472$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22473 itexists=`
22474 if test -n "$OPENSSL_PCDIR"; then
22475 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22476 export PKG_CONFIG_LIBDIR
22477 fi
22478 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22479
22480 if test -z "$itexists"; then
22481 PKGCONFIG="no"
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22483$as_echo "no" >&6; }
22484 else
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22486$as_echo "found" >&6; }
22487 fi
22488 fi
22489
22490
22491 if test "$PKGCONFIG" != "no" ; then
22492 SSL_LIBS=`
22493 if test -n "$OPENSSL_PCDIR"; then
22494 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22495 export PKG_CONFIG_LIBDIR
22496 fi
Haibo Huang21926d52019-01-08 14:27:10 -080022497 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
Elliott Hughes82be86d2017-09-20 17:00:17 -070022498
22499 SSL_LDFLAGS=`
22500 if test -n "$OPENSSL_PCDIR"; then
22501 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22502 export PKG_CONFIG_LIBDIR
22503 fi
22504 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22505
22506 SSL_CPPFLAGS=`
22507 if test -n "$OPENSSL_PCDIR"; then
22508 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22509 export PKG_CONFIG_LIBDIR
22510 fi
22511 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22512
22513
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22515$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22517$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22519$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22520
22521 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22522
22523 LIBS="$SSL_LIBS $LIBS"
22524 fi
22525 fi
22526
22527 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22528 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22529
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22531$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22532if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22533 $as_echo_n "(cached) " >&6
22534else
22535 ac_check_lib_save_LIBS=$LIBS
22536LIBS="-lcrypto $LIBS"
22537cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22538/* end confdefs.h. */
22539
22540
22541#ifdef __cplusplus
22542extern "C"
22543#endif
22544char HMAC_Update ();
22545int main (void)
22546{
22547return HMAC_Update ();
22548 ;
22549 return 0;
22550}
22551_ACEOF
22552if ac_fn_c_try_link "$LINENO"; then :
22553 ac_cv_lib_crypto_HMAC_Update=yes
22554else
22555 ac_cv_lib_crypto_HMAC_Update=no
22556fi
22557rm -f core conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
22559LIBS=$ac_check_lib_save_LIBS
22560fi
22561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22562$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22563if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22564
22565 HAVECRYPTO="yes"
22566 LIBS="-lcrypto $LIBS"
22567
22568else
22569
22570 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070022571 if test "$PKGCONFIG" = "no" ; then
22572 # only set this if pkg-config wasn't used
22573 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22574 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070022575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22576$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22577if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22578 $as_echo_n "(cached) " >&6
22579else
22580 ac_check_lib_save_LIBS=$LIBS
22581LIBS="-lcrypto $LIBS"
22582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22583/* end confdefs.h. */
22584
22585
22586#ifdef __cplusplus
22587extern "C"
22588#endif
22589char HMAC_Init_ex ();
22590int main (void)
22591{
22592return HMAC_Init_ex ();
22593 ;
22594 return 0;
22595}
22596_ACEOF
22597if ac_fn_c_try_link "$LINENO"; then :
22598 ac_cv_lib_crypto_HMAC_Init_ex=yes
22599else
22600 ac_cv_lib_crypto_HMAC_Init_ex=no
22601fi
22602rm -f core conftest.err conftest.$ac_objext \
22603 conftest$ac_exeext conftest.$ac_ext
22604LIBS=$ac_check_lib_save_LIBS
22605fi
22606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22607$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22608if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22609
22610 HAVECRYPTO="yes"
22611 LIBS="-lcrypto $LIBS"
22612else
22613
22614
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22616$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022617 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22619/* end confdefs.h. */
22620
22621 #include <openssl/err.h>
22622
22623int main (void)
22624{
22625
22626 ERR_clear_error();
22627
22628 ;
22629 return 0;
22630}
22631_ACEOF
22632if ac_fn_c_try_link "$LINENO"; then :
22633
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22635$as_echo "yes" >&6; }
22636 HAVECRYPTO="yes"
22637
22638else
22639
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22641$as_echo "no" >&6; }
22642
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22644$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022645 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22647/* end confdefs.h. */
22648
22649 #include <openssl/err.h>
22650
22651int main (void)
22652{
22653
22654 ERR_clear_error();
22655
22656 ;
22657 return 0;
22658}
22659_ACEOF
22660if ac_fn_c_try_link "$LINENO"; then :
22661
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22663$as_echo "yes" >&6; }
22664 HAVECRYPTO="yes"
22665
22666else
22667
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22669$as_echo "no" >&6; }
22670 LDFLAGS="$CLEANLDFLAGS"
22671 CPPFLAGS="$CLEANCPPFLAGS"
22672 LIBS="$CLEANLIBS"
22673
22674
22675fi
22676rm -f core conftest.err conftest.$ac_objext \
22677 conftest$ac_exeext conftest.$ac_ext
22678
22679
22680fi
22681rm -f core conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22683
22684
22685fi
22686
22687
22688fi
22689
22690
22691 if test X"$HAVECRYPTO" = X"yes"; then
22692
22693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22694$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22695if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22696 $as_echo_n "(cached) " >&6
22697else
22698 ac_check_lib_save_LIBS=$LIBS
22699LIBS="-lssl $LIBS"
22700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701/* end confdefs.h. */
22702
22703
22704#ifdef __cplusplus
22705extern "C"
22706#endif
22707char SSL_connect ();
22708int main (void)
22709{
22710return SSL_connect ();
22711 ;
22712 return 0;
22713}
22714_ACEOF
22715if ac_fn_c_try_link "$LINENO"; then :
22716 ac_cv_lib_ssl_SSL_connect=yes
22717else
22718 ac_cv_lib_ssl_SSL_connect=no
22719fi
22720rm -f core conftest.err conftest.$ac_objext \
22721 conftest$ac_exeext conftest.$ac_ext
22722LIBS=$ac_check_lib_save_LIBS
22723fi
22724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22725$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22726if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22727 cat >>confdefs.h <<_ACEOF
22728#define HAVE_LIBSSL 1
22729_ACEOF
22730
22731 LIBS="-lssl $LIBS"
22732
22733fi
22734
22735
22736 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22738$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22739 OLIBS=$LIBS
22740 LIBS="-lRSAglue -lrsaref $LIBS"
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22742$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22743if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22744 $as_echo_n "(cached) " >&6
22745else
22746 ac_check_lib_save_LIBS=$LIBS
22747LIBS="-lssl $LIBS"
22748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749/* end confdefs.h. */
22750
22751
22752#ifdef __cplusplus
22753extern "C"
22754#endif
22755char SSL_connect ();
22756int main (void)
22757{
22758return SSL_connect ();
22759 ;
22760 return 0;
22761}
22762_ACEOF
22763if ac_fn_c_try_link "$LINENO"; then :
22764 ac_cv_lib_ssl_SSL_connect=yes
22765else
22766 ac_cv_lib_ssl_SSL_connect=no
22767fi
22768rm -f core conftest.err conftest.$ac_objext \
22769 conftest$ac_exeext conftest.$ac_ext
22770LIBS=$ac_check_lib_save_LIBS
22771fi
22772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22773$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22774if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22775 cat >>confdefs.h <<_ACEOF
22776#define HAVE_LIBSSL 1
22777_ACEOF
22778
22779 LIBS="-lssl $LIBS"
22780
22781fi
22782
22783 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22785$as_echo "no" >&6; }
22786 LIBS=$OLIBS
22787 else
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22789$as_echo "yes" >&6; }
22790 fi
22791
22792 else
22793
22794 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22795 openssl/pem.h openssl/ssl.h openssl/err.h
22796do :
22797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22798ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22800 cat >>confdefs.h <<_ACEOF
22801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22802_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022803 ssl_msg="OpenSSL"
22804 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022805 OPENSSL_ENABLED=1
22806
22807$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22808
22809fi
22810
22811done
22812
22813
22814 if test $ac_cv_header_openssl_x509_h = no; then
22815 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22816do :
22817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22819if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22820 cat >>confdefs.h <<_ACEOF
22821#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22822_ACEOF
22823
22824fi
22825
22826done
22827
22828
22829 if test $ac_cv_header_x509_h = yes &&
22830 test $ac_cv_header_crypto_h = yes &&
22831 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022832 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022833 OPENSSL_ENABLED=1
22834 fi
22835 fi
22836 fi
22837
Alex Deymo486467e2017-12-19 19:04:07 +010022838 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022839 LIBS="$CLEANLIBS"
22840 fi
22841
22842 if test X"$OPT_SSL" != Xoff &&
22843 test "$OPENSSL_ENABLED" != "1"; then
22844 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22845 fi
22846 fi
22847
22848 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022849
22850 for ac_func in RAND_egd \
Elliott Hughes82be86d2017-09-20 17:00:17 -070022851 SSL_get_shutdown \
Haibo Huang51d9d882019-02-06 01:36:06 -080022852 SSLv2_client_method \
22853 OpenSSL_version
Elliott Hughes82be86d2017-09-20 17:00:17 -070022854do :
22855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22856ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22857if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22858 cat >>confdefs.h <<_ACEOF
22859#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22860_ACEOF
22861
22862fi
22863done
22864
22865
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22867$as_echo_n "checking for BoringSSL... " >&6; }
22868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22869/* end confdefs.h. */
22870
22871
22872 #include <openssl/base.h>
22873
22874int main (void)
22875{
22876
22877 #ifndef OPENSSL_IS_BORINGSSL
22878 #error not boringssl
22879 #endif
22880
22881 ;
22882 return 0;
22883}
22884
22885_ACEOF
22886if ac_fn_c_try_compile "$LINENO"; then :
22887
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22889$as_echo "yes" >&6; }
22890
22891cat >>confdefs.h <<_ACEOF
22892#define HAVE_BORINGSSL 1
22893_ACEOF
22894
Alex Deymo486467e2017-12-19 19:04:07 +010022895 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022896
22897else
22898
22899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22900$as_echo "no" >&6; }
22901
22902fi
22903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22906$as_echo_n "checking for libressl... " >&6; }
22907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22908/* end confdefs.h. */
22909
22910
22911#include <openssl/opensslv.h>
22912
22913int main (void)
22914{
22915
22916 int dummy = LIBRESSL_VERSION_NUMBER;
22917
22918 ;
22919 return 0;
22920}
22921
22922_ACEOF
22923if ac_fn_c_try_compile "$LINENO"; then :
22924
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22926$as_echo "yes" >&6; }
22927
22928cat >>confdefs.h <<_ACEOF
22929#define HAVE_LIBRESSL 1
22930_ACEOF
22931
Alex Deymo486467e2017-12-19 19:04:07 +010022932 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022933
22934else
22935
22936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22937$as_echo "no" >&6; }
22938
22939fi
22940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 fi
22942
22943 if test "$OPENSSL_ENABLED" = "1"; then
22944 if test -n "$LIB_OPENSSL"; then
22945 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022946 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22947 export CURL_LIBRARY_PATH
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22949$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022950 fi
22951 fi
22952
22953 #
22954
22955 #
22956 tst_api="unknown"
22957 #
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22959$as_echo_n "checking for OpenSSL headers version... " >&6; }
22960
22961 OLDCPPFLAGS=$CPPFLAGS
22962 # CPPPFLAG comes from CURL_CPP_P
22963 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22964 if test -z "$SED"; then
22965 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22966 fi
22967 if test -z "$GREP"; then
22968 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22969 fi
22970
22971 tmp_exp=""
22972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22973/* end confdefs.h. */
22974
22975
22976# ifdef USE_OPENSSL
22977# include <openssl/crypto.h>
22978# else
22979# include <crypto.h>
22980# endif
22981
22982#ifdef OPENSSL_VERSION_NUMBER
22983CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22984#endif
22985
22986
22987_ACEOF
22988if ac_fn_c_try_cpp "$LINENO"; then :
22989
22990 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22991 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22992 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22993 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22994 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22995 tmp_exp=""
22996 fi
22997
22998fi
22999rm -f conftest.err conftest.i conftest.$ac_ext
23000 if test -z "$tmp_exp"; then
23001 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23002
23003 else
23004 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23005 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23006
23007 fi
23008 CPPFLAGS=$OLDCPPFLAGS
23009
23010 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23011 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23012 case "x$tst_verlen" in
23013 x6)
23014 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23015 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23016 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23017 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23018 ;;
23019 x11|x10)
23020 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23021 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23022 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23023 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23024 ;;
23025 *)
23026 tst_api="unknown"
23027 ;;
23028 esac
23029 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023030 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023031 0x110) tst_show="1.1.0" ;;
23032 0x102) tst_show="1.0.2" ;;
23033 0x101) tst_show="1.0.1" ;;
23034 0x100) tst_show="1.0.0" ;;
23035 0x099) tst_show="0.9.9" ;;
23036 0x098) tst_show="0.9.8" ;;
23037 0x097) tst_show="0.9.7" ;;
23038 0x096) tst_show="0.9.6" ;;
23039 0x095) tst_show="0.9.5" ;;
23040 0x094) tst_show="0.9.4" ;;
23041 0x093) tst_show="0.9.3" ;;
23042 0x092) tst_show="0.9.2" ;;
23043 0x091) tst_show="0.9.1" ;;
23044 *) tst_show="unknown" ;;
23045 esac
23046 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23047 else
23048 tst_show="unknown"
23049 fi
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23051$as_echo "$tst_show" >&6; }
23052 #
23053 curl_openssl_api_headers=$tst_api
23054
23055
23056 #
23057 tst_api="unknown"
23058 #
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23060$as_echo_n "checking for OpenSSL library version... " >&6; }
23061 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23063/* end confdefs.h. */
23064
23065
23066#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23067#ifdef __STDC__
23068# include <limits.h>
23069#else
23070# include <assert.h>
23071#endif
23072#undef ERR_clear_last_mark
23073#ifdef __cplusplus
23074extern "C"
23075#endif
23076char ERR_clear_last_mark ();
23077#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23078choke me
23079#endif
23080
23081int main (void)
23082{
23083return ERR_clear_last_mark ();
23084 ;
23085 return 0;
23086}
23087
23088_ACEOF
23089if ac_fn_c_try_link "$LINENO"; then :
23090
23091 tst_api="0x111"
23092
23093fi
23094rm -f core conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
23096 fi
23097 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023098 case $host in
23099 *-*-vms*)
23100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23101/* end confdefs.h. */
23102
23103
23104#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23105#ifdef __STDC__
23106# include <limits.h>
23107#else
23108# include <assert.h>
23109#endif
23110#undef SSL_CTX_set_not_resumbl_sess_cb
23111#ifdef __cplusplus
23112extern "C"
23113#endif
23114char SSL_CTX_set_not_resumbl_sess_cb ();
23115#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23116choke me
23117#endif
23118
23119int main (void)
23120{
23121return SSL_CTX_set_not_resumbl_sess_cb ();
23122 ;
23123 return 0;
23124}
23125
23126_ACEOF
23127if ac_fn_c_try_link "$LINENO"; then :
23128
23129 tst_api="0x110"
23130
23131fi
23132rm -f core conftest.err conftest.$ac_objext \
23133 conftest$ac_exeext conftest.$ac_ext
23134 ;;
23135 *)
23136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23137/* end confdefs.h. */
23138
23139
23140#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23141#ifdef __STDC__
23142# include <limits.h>
23143#else
23144# include <assert.h>
23145#endif
23146#undef SSL_CTX_set_not_resumable_session_callback
23147#ifdef __cplusplus
23148extern "C"
23149#endif
23150char SSL_CTX_set_not_resumable_session_callback ();
23151#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23152choke me
23153#endif
23154
23155int main (void)
23156{
23157return SSL_CTX_set_not_resumable_session_callback ();
23158 ;
23159 return 0;
23160}
23161
23162_ACEOF
23163if ac_fn_c_try_link "$LINENO"; then :
23164
23165 tst_api="0x110"
23166
23167fi
23168rm -f core conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
23170 ;;
23171 esac
23172 fi
23173 if test "$tst_api" = "unknown"; then
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175/* end confdefs.h. */
23176
23177
23178#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23179#ifdef __STDC__
23180# include <limits.h>
23181#else
23182# include <assert.h>
23183#endif
23184#undef SSL_CONF_CTX_new
23185#ifdef __cplusplus
23186extern "C"
23187#endif
23188char SSL_CONF_CTX_new ();
23189#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23190choke me
23191#endif
23192
23193int main (void)
23194{
23195return SSL_CONF_CTX_new ();
23196 ;
23197 return 0;
23198}
23199
23200_ACEOF
23201if ac_fn_c_try_link "$LINENO"; then :
23202
23203 tst_api="0x102"
23204
23205fi
23206rm -f core conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext conftest.$ac_ext
23208 fi
23209 if test "$tst_api" = "unknown"; then
23210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23211/* end confdefs.h. */
23212
23213
23214#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23215#ifdef __STDC__
23216# include <limits.h>
23217#else
23218# include <assert.h>
23219#endif
23220#undef SSL_renegotiate_abbreviated
23221#ifdef __cplusplus
23222extern "C"
23223#endif
23224char SSL_renegotiate_abbreviated ();
23225#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23226choke me
23227#endif
23228
23229int main (void)
23230{
23231return SSL_renegotiate_abbreviated ();
23232 ;
23233 return 0;
23234}
23235
23236_ACEOF
23237if ac_fn_c_try_link "$LINENO"; then :
23238
23239 tst_api="0x101"
23240
23241fi
23242rm -f core conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23244 fi
23245 if test "$tst_api" = "unknown"; then
23246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23247/* end confdefs.h. */
23248
23249
23250#define OBJ_add_sigid innocuous_OBJ_add_sigid
23251#ifdef __STDC__
23252# include <limits.h>
23253#else
23254# include <assert.h>
23255#endif
23256#undef OBJ_add_sigid
23257#ifdef __cplusplus
23258extern "C"
23259#endif
23260char OBJ_add_sigid ();
23261#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23262choke me
23263#endif
23264
23265int main (void)
23266{
23267return OBJ_add_sigid ();
23268 ;
23269 return 0;
23270}
23271
23272_ACEOF
23273if ac_fn_c_try_link "$LINENO"; then :
23274
23275 tst_api="0x100"
23276
23277fi
23278rm -f core conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
23280 fi
23281 if test "$tst_api" = "unknown"; then
23282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23283/* end confdefs.h. */
23284
23285
23286#define ERR_set_mark innocuous_ERR_set_mark
23287#ifdef __STDC__
23288# include <limits.h>
23289#else
23290# include <assert.h>
23291#endif
23292#undef ERR_set_mark
23293#ifdef __cplusplus
23294extern "C"
23295#endif
23296char ERR_set_mark ();
23297#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23298choke me
23299#endif
23300
23301int main (void)
23302{
23303return ERR_set_mark ();
23304 ;
23305 return 0;
23306}
23307
23308_ACEOF
23309if ac_fn_c_try_link "$LINENO"; then :
23310
23311 tst_api="0x098"
23312
23313fi
23314rm -f core conftest.err conftest.$ac_objext \
23315 conftest$ac_exeext conftest.$ac_ext
23316 fi
23317 if test "$tst_api" = "unknown"; then
23318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23319/* end confdefs.h. */
23320
23321
23322#define ERR_peek_last_error innocuous_ERR_peek_last_error
23323#ifdef __STDC__
23324# include <limits.h>
23325#else
23326# include <assert.h>
23327#endif
23328#undef ERR_peek_last_error
23329#ifdef __cplusplus
23330extern "C"
23331#endif
23332char ERR_peek_last_error ();
23333#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23334choke me
23335#endif
23336
23337int main (void)
23338{
23339return ERR_peek_last_error ();
23340 ;
23341 return 0;
23342}
23343
23344_ACEOF
23345if ac_fn_c_try_link "$LINENO"; then :
23346
23347 tst_api="0x097"
23348
23349fi
23350rm -f core conftest.err conftest.$ac_objext \
23351 conftest$ac_exeext conftest.$ac_ext
23352 fi
23353 if test "$tst_api" = "unknown"; then
23354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23355/* end confdefs.h. */
23356
23357
23358#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23359#ifdef __STDC__
23360# include <limits.h>
23361#else
23362# include <assert.h>
23363#endif
23364#undef c2i_ASN1_OBJECT
23365#ifdef __cplusplus
23366extern "C"
23367#endif
23368char c2i_ASN1_OBJECT ();
23369#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23370choke me
23371#endif
23372
23373int main (void)
23374{
23375return c2i_ASN1_OBJECT ();
23376 ;
23377 return 0;
23378}
23379
23380_ACEOF
23381if ac_fn_c_try_link "$LINENO"; then :
23382
23383 tst_api="0x096"
23384
23385fi
23386rm -f core conftest.err conftest.$ac_objext \
23387 conftest$ac_exeext conftest.$ac_ext
23388 fi
23389 if test "$tst_api" = "unknown"; then
23390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23391/* end confdefs.h. */
23392
23393
23394#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23395#ifdef __STDC__
23396# include <limits.h>
23397#else
23398# include <assert.h>
23399#endif
23400#undef SSL_CTX_set_purpose
23401#ifdef __cplusplus
23402extern "C"
23403#endif
23404char SSL_CTX_set_purpose ();
23405#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23406choke me
23407#endif
23408
23409int main (void)
23410{
23411return SSL_CTX_set_purpose ();
23412 ;
23413 return 0;
23414}
23415
23416_ACEOF
23417if ac_fn_c_try_link "$LINENO"; then :
23418
23419 tst_api="0x095"
23420
23421fi
23422rm -f core conftest.err conftest.$ac_objext \
23423 conftest$ac_exeext conftest.$ac_ext
23424 fi
23425 if test "$tst_api" = "unknown"; then
23426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23427/* end confdefs.h. */
23428
23429
23430#define OBJ_obj2txt innocuous_OBJ_obj2txt
23431#ifdef __STDC__
23432# include <limits.h>
23433#else
23434# include <assert.h>
23435#endif
23436#undef OBJ_obj2txt
23437#ifdef __cplusplus
23438extern "C"
23439#endif
23440char OBJ_obj2txt ();
23441#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23442choke me
23443#endif
23444
23445int main (void)
23446{
23447return OBJ_obj2txt ();
23448 ;
23449 return 0;
23450}
23451
23452_ACEOF
23453if ac_fn_c_try_link "$LINENO"; then :
23454
23455 tst_api="0x094"
23456
23457fi
23458rm -f core conftest.err conftest.$ac_objext \
23459 conftest$ac_exeext conftest.$ac_ext
23460 fi
23461 if test "$tst_api" = "unknown"; then
23462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23463/* end confdefs.h. */
23464
23465
23466#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23467#ifdef __STDC__
23468# include <limits.h>
23469#else
23470# include <assert.h>
23471#endif
23472#undef SSL_get_verify_depth
23473#ifdef __cplusplus
23474extern "C"
23475#endif
23476char SSL_get_verify_depth ();
23477#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23478choke me
23479#endif
23480
23481int main (void)
23482{
23483return SSL_get_verify_depth ();
23484 ;
23485 return 0;
23486}
23487
23488_ACEOF
23489if ac_fn_c_try_link "$LINENO"; then :
23490
23491 tst_api="0x093"
23492
23493fi
23494rm -f core conftest.err conftest.$ac_objext \
23495 conftest$ac_exeext conftest.$ac_ext
23496 fi
23497 if test "$tst_api" = "unknown"; then
23498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23499/* end confdefs.h. */
23500
23501
23502#define SSL_library_init innocuous_SSL_library_init
23503#ifdef __STDC__
23504# include <limits.h>
23505#else
23506# include <assert.h>
23507#endif
23508#undef SSL_library_init
23509#ifdef __cplusplus
23510extern "C"
23511#endif
23512char SSL_library_init ();
23513#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23514choke me
23515#endif
23516
23517int main (void)
23518{
23519return SSL_library_init ();
23520 ;
23521 return 0;
23522}
23523
23524_ACEOF
23525if ac_fn_c_try_link "$LINENO"; then :
23526
23527 tst_api="0x092"
23528
23529fi
23530rm -f core conftest.err conftest.$ac_objext \
23531 conftest$ac_exeext conftest.$ac_ext
23532 fi
23533 if test "$tst_api" = "unknown"; then
23534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23535/* end confdefs.h. */
23536
23537
23538#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23539#ifdef __STDC__
23540# include <limits.h>
23541#else
23542# include <assert.h>
23543#endif
23544#undef SSL_CTX_set_cipher_list
23545#ifdef __cplusplus
23546extern "C"
23547#endif
23548char SSL_CTX_set_cipher_list ();
23549#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23550choke me
23551#endif
23552
23553int main (void)
23554{
23555return SSL_CTX_set_cipher_list ();
23556 ;
23557 return 0;
23558}
23559
23560_ACEOF
23561if ac_fn_c_try_link "$LINENO"; then :
23562
23563 tst_api="0x091"
23564
23565fi
23566rm -f core conftest.err conftest.$ac_objext \
23567 conftest$ac_exeext conftest.$ac_ext
23568 fi
23569 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023570 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023571 0x110) tst_show="1.1.0" ;;
23572 0x102) tst_show="1.0.2" ;;
23573 0x101) tst_show="1.0.1" ;;
23574 0x100) tst_show="1.0.0" ;;
23575 0x099) tst_show="0.9.9" ;;
23576 0x098) tst_show="0.9.8" ;;
23577 0x097) tst_show="0.9.7" ;;
23578 0x096) tst_show="0.9.6" ;;
23579 0x095) tst_show="0.9.5" ;;
23580 0x094) tst_show="0.9.4" ;;
23581 0x093) tst_show="0.9.3" ;;
23582 0x092) tst_show="0.9.2" ;;
23583 0x091) tst_show="0.9.1" ;;
23584 *) tst_show="unknown" ;;
23585 esac
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23587$as_echo "$tst_show" >&6; }
23588 #
23589 curl_openssl_api_library=$tst_api
23590
23591 #
23592 tst_match="yes"
23593 #
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23595$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23596 if test "$curl_openssl_api_headers" = "unknown" ||
23597 test "$curl_openssl_api_library" = "unknown"; then
23598 tst_match="fail"
23599 tst_warns="Can not compare OpenSSL headers and library versions."
23600 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23601 tst_match="no"
23602 tst_warns="OpenSSL headers and library versions do not match."
23603 fi
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23605$as_echo "$tst_match" >&6; }
23606 if test "$tst_match" != "yes"; then
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23608$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23609 fi
23610
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023611 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023612 fi
23613
Alex Deymo486467e2017-12-19 19:04:07 +010023614 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023615fi
23616
Haibo Huang34ab3462019-05-22 00:50:27 -070023617if test X"$OPT_SSL" != Xoff &&
23618 test X"$OPT_SSL" != Xno &&
23619 test "$OPENSSL_ENABLED" != "1"; then
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: OPT_SSL: $OPT_SSL" >&5
23621$as_echo "$as_me: OPT_SSL: $OPT_SSL" >&6;}
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
23623$as_echo "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
23624 as_fn_error $? "--with-ssl was given but OpenSSL could not be detected" "$LINENO" 5
23625fi
23626
Elliott Hughes82be86d2017-09-20 17:00:17 -070023627
23628if test X"$OPENSSL_ENABLED" = X"1"; then
23629
23630# Check whether --with-egd-socket was given.
23631if test "${with_egd_socket+set}" = set; then :
23632 withval=$with_egd_socket; EGD_SOCKET="$withval"
23633
23634fi
23635
23636 if test -n "$EGD_SOCKET" ; then
23637
23638cat >>confdefs.h <<_ACEOF
23639#define EGD_SOCKET "$EGD_SOCKET"
23640_ACEOF
23641
23642 fi
23643
23644
23645# Check whether --with-random was given.
23646if test "${with_random+set}" = set; then :
23647 withval=$with_random; RANDOM_FILE="$withval"
23648else
23649
23650 if test x$cross_compiling != xyes; then
23651 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23653$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23654if eval \${$as_ac_File+:} false; then :
23655 $as_echo_n "(cached) " >&6
23656else
23657 test "$cross_compiling" = yes &&
23658 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23659if test -r ""/dev/urandom""; then
23660 eval "$as_ac_File=yes"
23661else
23662 eval "$as_ac_File=no"
23663fi
23664fi
23665eval ac_res=\$$as_ac_File
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23667$as_echo "$ac_res" >&6; }
23668if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23669 RANDOM_FILE="/dev/urandom"
23670fi
23671
23672 else
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23674$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23675 fi
23676
23677
23678fi
23679
23680 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23681
23682
23683cat >>confdefs.h <<_ACEOF
23684#define RANDOM_FILE "$RANDOM_FILE"
23685_ACEOF
23686
23687 fi
23688fi
23689
23690if test "$OPENSSL_ENABLED" = "1"; then
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23692$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23693if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23694 $as_echo_n "(cached) " >&6
23695else
23696 ac_check_lib_save_LIBS=$LIBS
23697LIBS="-lcrypto $LIBS"
23698cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699/* end confdefs.h. */
23700
23701
23702#ifdef __cplusplus
23703extern "C"
23704#endif
23705char SRP_Calc_client_key ();
23706int main (void)
23707{
23708return SRP_Calc_client_key ();
23709 ;
23710 return 0;
23711}
23712_ACEOF
23713if ac_fn_c_try_link "$LINENO"; then :
23714 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23715else
23716 ac_cv_lib_crypto_SRP_Calc_client_key=no
23717fi
23718rm -f core conftest.err conftest.$ac_objext \
23719 conftest$ac_exeext conftest.$ac_ext
23720LIBS=$ac_check_lib_save_LIBS
23721fi
23722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23723$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23724if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23725
23726
23727$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23728
23729 HAVE_OPENSSL_SRP=1
23730
23731
23732fi
23733
23734fi
23735
Elliott Hughesa93fb052018-12-12 14:22:48 -080023736if test X"$OPENSSL_ENABLED" = X"1"; then
23737# Check whether --enable-openssl-auto-load-config was given.
23738if test "${enable_openssl_auto_load_config+set}" = set; then :
23739 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23741$as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23742
23743$as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23744
23745 fi
23746
23747fi
23748
23749fi
23750
Elliott Hughes82be86d2017-09-20 17:00:17 -070023751
23752OPT_GNUTLS=no
23753
23754
23755# Check whether --with-gnutls was given.
23756if test "${with_gnutls+set}" = set; then :
23757 withval=$with_gnutls; OPT_GNUTLS=$withval
23758fi
23759
23760
Alex Deymo486467e2017-12-19 19:04:07 +010023761if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23762 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023763
23764 if test X"$OPT_GNUTLS" != Xno; then
23765
23766 addld=""
23767 addlib=""
23768 gtlslib=""
23769 version=""
23770 addcflags=""
23771
23772 if test "x$OPT_GNUTLS" = "xyes"; then
23773
23774 if test -n "$PKG_CONFIG"; then
23775 PKGCONFIG="$PKG_CONFIG"
23776 else
23777 if test -n "$ac_tool_prefix"; then
23778 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23779set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23781$as_echo_n "checking for $ac_word... " >&6; }
23782if ${ac_cv_path_PKGCONFIG+:} false; then :
23783 $as_echo_n "(cached) " >&6
23784else
23785 case $PKGCONFIG in
23786 [\\/]* | ?:[\\/]*)
23787 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23788 ;;
23789 *)
23790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23791as_dummy="$PATH:/usr/bin:/usr/local/bin"
23792for as_dir in $as_dummy
23793do
23794 IFS=$as_save_IFS
23795 test -z "$as_dir" && as_dir=.
23796 for ac_exec_ext in '' $ac_executable_extensions; do
23797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23798 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23800 break 2
23801 fi
23802done
23803 done
23804IFS=$as_save_IFS
23805
23806 ;;
23807esac
23808fi
23809PKGCONFIG=$ac_cv_path_PKGCONFIG
23810if test -n "$PKGCONFIG"; then
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23812$as_echo "$PKGCONFIG" >&6; }
23813else
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23815$as_echo "no" >&6; }
23816fi
23817
23818
23819fi
23820if test -z "$ac_cv_path_PKGCONFIG"; then
23821 ac_pt_PKGCONFIG=$PKGCONFIG
23822 # Extract the first word of "pkg-config", so it can be a program name with args.
23823set dummy pkg-config; ac_word=$2
23824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23825$as_echo_n "checking for $ac_word... " >&6; }
23826if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23827 $as_echo_n "(cached) " >&6
23828else
23829 case $ac_pt_PKGCONFIG in
23830 [\\/]* | ?:[\\/]*)
23831 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23832 ;;
23833 *)
23834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23835as_dummy="$PATH:/usr/bin:/usr/local/bin"
23836for as_dir in $as_dummy
23837do
23838 IFS=$as_save_IFS
23839 test -z "$as_dir" && as_dir=.
23840 for ac_exec_ext in '' $ac_executable_extensions; do
23841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23842 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23844 break 2
23845 fi
23846done
23847 done
23848IFS=$as_save_IFS
23849
23850 ;;
23851esac
23852fi
23853ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23854if test -n "$ac_pt_PKGCONFIG"; then
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23856$as_echo "$ac_pt_PKGCONFIG" >&6; }
23857else
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23859$as_echo "no" >&6; }
23860fi
23861
23862 if test "x$ac_pt_PKGCONFIG" = x; then
23863 PKGCONFIG="no"
23864 else
23865 case $cross_compiling:$ac_tool_warned in
23866yes:)
23867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23869ac_tool_warned=yes ;;
23870esac
23871 PKGCONFIG=$ac_pt_PKGCONFIG
23872 fi
23873else
23874 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23875fi
23876
23877 fi
23878
23879 if test "x$PKGCONFIG" != "xno"; then
23880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23881$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23882 itexists=`
23883 if test -n ""; then
23884 PKG_CONFIG_LIBDIR=""
23885 export PKG_CONFIG_LIBDIR
23886 fi
23887 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23888
23889 if test -z "$itexists"; then
23890 PKGCONFIG="no"
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23892$as_echo "no" >&6; }
23893 else
23894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23895$as_echo "found" >&6; }
23896 fi
23897 fi
23898
23899
23900 if test "$PKGCONFIG" != "no" ; then
23901 addlib=`$PKGCONFIG --libs-only-l gnutls`
23902 addld=`$PKGCONFIG --libs-only-L gnutls`
23903 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23904 version=`$PKGCONFIG --modversion gnutls`
23905 gtlslib=`echo $addld | $SED -e 's/-L//'`
23906 else
23907 check=`libgnutls-config --version 2>/dev/null`
23908 if test -n "$check"; then
23909 addlib=`libgnutls-config --libs`
23910 addcflags=`libgnutls-config --cflags`
23911 version=`libgnutls-config --version`
23912 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23913 fi
23914 fi
23915 else
23916 cfg=$OPT_GNUTLS/bin/libgnutls-config
23917 check=`$cfg --version 2>/dev/null`
23918 if test -n "$check"; then
23919 addlib=`$cfg --libs`
23920 addcflags=`$cfg --cflags`
23921 version=`$cfg --version`
23922 gtlslib=`$cfg --prefix`/lib$libsuff
23923 else
23924 addlib=-lgnutls
23925 addld=-L$OPT_GNUTLS/lib$libsuff
23926 addcflags=-I$OPT_GNUTLS/include
23927 version="" # we just don't know
23928 gtlslib=$OPT_GNUTLS/lib$libsuff
23929 fi
23930 fi
23931
23932 if test -z "$version"; then
23933 version="unknown"
23934 fi
23935
23936 if test -n "$addlib"; then
23937
23938 CLEANLIBS="$LIBS"
23939 CLEANCPPFLAGS="$CPPFLAGS"
23940 CLEANLDFLAGS="$LDFLAGS"
23941
23942 LIBS="$addlib $LIBS"
23943 LDFLAGS="$LDFLAGS $addld"
23944 if test "$addcflags" != "-I/usr/include"; then
23945 CPPFLAGS="$CPPFLAGS $addcflags"
23946 fi
23947
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23949$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23950if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23951 $as_echo_n "(cached) " >&6
23952else
23953 ac_check_lib_save_LIBS=$LIBS
23954LIBS="-lgnutls $LIBS"
23955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956/* end confdefs.h. */
23957
23958
23959#ifdef __cplusplus
23960extern "C"
23961#endif
23962char gnutls_check_version ();
23963int main (void)
23964{
23965return gnutls_check_version ();
23966 ;
23967 return 0;
23968}
23969_ACEOF
23970if ac_fn_c_try_link "$LINENO"; then :
23971 ac_cv_lib_gnutls_gnutls_check_version=yes
23972else
23973 ac_cv_lib_gnutls_gnutls_check_version=no
23974fi
23975rm -f core conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
23977LIBS=$ac_check_lib_save_LIBS
23978fi
23979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23980$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23981if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23982
23983
23984$as_echo "#define USE_GNUTLS 1" >>confdefs.h
23985
23986 USE_GNUTLS=1
23987
23988 GNUTLS_ENABLED=1
23989 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010023990 ssl_msg="GnuTLS"
23991 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070023992
23993else
23994
23995 LIBS="$CLEANLIBS"
23996 CPPFLAGS="$CLEANCPPFLAGS"
23997
23998fi
23999
24000
24001 if test "x$USE_GNUTLS" = "xyes"; then
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24003$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024004 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024005 if test -n "$gtlslib"; then
24006 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024007 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24008 export CURL_LIBRARY_PATH
24009 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24010$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024011 fi
24012 fi
24013 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24014do :
24015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24017if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24018 cat >>confdefs.h <<_ACEOF
24019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24020_ACEOF
24021
24022fi
24023done
24024
24025 fi
24026
24027 fi
24028
24029 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024030 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024031fi
24032
24033
24034if test "$GNUTLS_ENABLED" = "1"; then
24035 USE_GNUTLS_NETTLE=
24036 # First check if we can detect either crypto library via transitive linking
24037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24038$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24039if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24040 $as_echo_n "(cached) " >&6
24041else
24042 ac_check_lib_save_LIBS=$LIBS
24043LIBS="-lgnutls $LIBS"
24044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045/* end confdefs.h. */
24046
24047
24048#ifdef __cplusplus
24049extern "C"
24050#endif
24051char nettle_MD5Init ();
24052int main (void)
24053{
24054return nettle_MD5Init ();
24055 ;
24056 return 0;
24057}
24058_ACEOF
24059if ac_fn_c_try_link "$LINENO"; then :
24060 ac_cv_lib_gnutls_nettle_MD5Init=yes
24061else
24062 ac_cv_lib_gnutls_nettle_MD5Init=no
24063fi
24064rm -f core conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
24066LIBS=$ac_check_lib_save_LIBS
24067fi
24068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24069$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24070if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24071 USE_GNUTLS_NETTLE=1
24072fi
24073
24074 if test "$USE_GNUTLS_NETTLE" = ""; then
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24076$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24077if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24078 $as_echo_n "(cached) " >&6
24079else
24080 ac_check_lib_save_LIBS=$LIBS
24081LIBS="-lgnutls $LIBS"
24082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24083/* end confdefs.h. */
24084
24085
24086#ifdef __cplusplus
24087extern "C"
24088#endif
24089char gcry_control ();
24090int main (void)
24091{
24092return gcry_control ();
24093 ;
24094 return 0;
24095}
24096_ACEOF
24097if ac_fn_c_try_link "$LINENO"; then :
24098 ac_cv_lib_gnutls_gcry_control=yes
24099else
24100 ac_cv_lib_gnutls_gcry_control=no
24101fi
24102rm -f core conftest.err conftest.$ac_objext \
24103 conftest$ac_exeext conftest.$ac_ext
24104LIBS=$ac_check_lib_save_LIBS
24105fi
24106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24107$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24108if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24109 USE_GNUTLS_NETTLE=0
24110fi
24111
24112 fi
24113 # If not, try linking directly to both of them to see if they are available
24114 if test "$USE_GNUTLS_NETTLE" = ""; then
24115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24116$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24117if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24118 $as_echo_n "(cached) " >&6
24119else
24120 ac_check_lib_save_LIBS=$LIBS
24121LIBS="-lnettle $LIBS"
24122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24123/* end confdefs.h. */
24124
24125
24126#ifdef __cplusplus
24127extern "C"
24128#endif
24129char nettle_MD5Init ();
24130int main (void)
24131{
24132return nettle_MD5Init ();
24133 ;
24134 return 0;
24135}
24136_ACEOF
24137if ac_fn_c_try_link "$LINENO"; then :
24138 ac_cv_lib_nettle_nettle_MD5Init=yes
24139else
24140 ac_cv_lib_nettle_nettle_MD5Init=no
24141fi
24142rm -f core conftest.err conftest.$ac_objext \
24143 conftest$ac_exeext conftest.$ac_ext
24144LIBS=$ac_check_lib_save_LIBS
24145fi
24146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24147$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24148if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24149 USE_GNUTLS_NETTLE=1
24150fi
24151
24152 fi
24153 if test "$USE_GNUTLS_NETTLE" = ""; then
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24155$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24156if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24157 $as_echo_n "(cached) " >&6
24158else
24159 ac_check_lib_save_LIBS=$LIBS
24160LIBS="-lgcrypt $LIBS"
24161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24162/* end confdefs.h. */
24163
24164
24165#ifdef __cplusplus
24166extern "C"
24167#endif
24168char gcry_control ();
24169int main (void)
24170{
24171return gcry_control ();
24172 ;
24173 return 0;
24174}
24175_ACEOF
24176if ac_fn_c_try_link "$LINENO"; then :
24177 ac_cv_lib_gcrypt_gcry_control=yes
24178else
24179 ac_cv_lib_gcrypt_gcry_control=no
24180fi
24181rm -f core conftest.err conftest.$ac_objext \
24182 conftest$ac_exeext conftest.$ac_ext
24183LIBS=$ac_check_lib_save_LIBS
24184fi
24185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24186$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24187if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24188 USE_GNUTLS_NETTLE=0
24189fi
24190
24191 fi
24192 if test "$USE_GNUTLS_NETTLE" = ""; then
24193 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24194 fi
24195 if test "$USE_GNUTLS_NETTLE" = "1"; then
24196
24197$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24198
24199 USE_GNUTLS_NETTLE=1
24200
24201 LIBS="-lnettle $LIBS"
24202 else
24203 LIBS="-lgcrypt $LIBS"
24204 fi
24205fi
24206
24207if test "$GNUTLS_ENABLED" = "1"; then
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24209$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24210if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24211 $as_echo_n "(cached) " >&6
24212else
24213 ac_check_lib_save_LIBS=$LIBS
24214LIBS="-lgnutls $LIBS"
24215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216/* end confdefs.h. */
24217
24218
24219#ifdef __cplusplus
24220extern "C"
24221#endif
24222char gnutls_srp_verifier ();
24223int main (void)
24224{
24225return gnutls_srp_verifier ();
24226 ;
24227 return 0;
24228}
24229_ACEOF
24230if ac_fn_c_try_link "$LINENO"; then :
24231 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24232else
24233 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24234fi
24235rm -f core conftest.err conftest.$ac_objext \
24236 conftest$ac_exeext conftest.$ac_ext
24237LIBS=$ac_check_lib_save_LIBS
24238fi
24239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24240$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24241if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24242
24243
24244$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24245
24246 HAVE_GNUTLS_SRP=1
24247
24248
24249fi
24250
24251fi
24252
24253
Elliott Hughes82be86d2017-09-20 17:00:17 -070024254OPT_MBEDTLS=no
24255
24256_cppflags=$CPPFLAGS
24257_ldflags=$LDFLAGS
24258
24259# Check whether --with-mbedtls was given.
24260if test "${with_mbedtls+set}" = set; then :
24261 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24262fi
24263
24264
Alex Deymo486467e2017-12-19 19:04:07 +010024265if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24266 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024267
24268 if test X"$OPT_MBEDTLS" != Xno; then
24269
24270 if test "$OPT_MBEDTLS" = "yes"; then
24271 OPT_MBEDTLS=""
24272 fi
24273
24274 if test -z "$OPT_MBEDTLS" ; then
24275
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24277$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24278if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24279 $as_echo_n "(cached) " >&6
24280else
24281 ac_check_lib_save_LIBS=$LIBS
24282LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24284/* end confdefs.h. */
24285
24286
24287#ifdef __cplusplus
24288extern "C"
24289#endif
24290char mbedtls_havege_init ();
24291int main (void)
24292{
24293return mbedtls_havege_init ();
24294 ;
24295 return 0;
24296}
24297_ACEOF
24298if ac_fn_c_try_link "$LINENO"; then :
24299 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24300else
24301 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24302fi
24303rm -f core conftest.err conftest.$ac_objext \
24304 conftest$ac_exeext conftest.$ac_ext
24305LIBS=$ac_check_lib_save_LIBS
24306fi
24307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24308$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24309if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24310
24311
24312$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24313
24314 USE_MBEDTLS=1
24315
24316 MBEDTLS_ENABLED=1
24317 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024318 ssl_msg="mbedTLS"
24319 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024320
24321fi
24322
24323 fi
24324
24325 addld=""
24326 addlib=""
24327 addcflags=""
24328 mbedtlslib=""
24329
24330 if test "x$USE_MBEDTLS" != "xyes"; then
24331 addld=-L$OPT_MBEDTLS/lib$libsuff
24332 addcflags=-I$OPT_MBEDTLS/include
24333 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24334
24335 LDFLAGS="$LDFLAGS $addld"
24336 if test "$addcflags" != "-I/usr/include"; then
24337 CPPFLAGS="$CPPFLAGS $addcflags"
24338 fi
24339
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24341$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24342if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24343 $as_echo_n "(cached) " >&6
24344else
24345 ac_check_lib_save_LIBS=$LIBS
24346LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24348/* end confdefs.h. */
24349
24350
24351#ifdef __cplusplus
24352extern "C"
24353#endif
24354char mbedtls_ssl_init ();
24355int main (void)
24356{
24357return mbedtls_ssl_init ();
24358 ;
24359 return 0;
24360}
24361_ACEOF
24362if ac_fn_c_try_link "$LINENO"; then :
24363 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24364else
24365 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24366fi
24367rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24369LIBS=$ac_check_lib_save_LIBS
24370fi
24371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24372$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24373if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24374
24375
24376$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24377
24378 USE_MBEDTLS=1
24379
24380 MBEDTLS_ENABLED=1
24381 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024382 ssl_msg="mbedTLS"
24383 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024384
24385else
24386
24387 CPPFLAGS=$_cppflags
24388 LDFLAGS=$_ldflags
24389
24390fi
24391
24392 fi
24393
24394 if test "x$USE_MBEDTLS" = "xyes"; then
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24396$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024397 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024398
24399 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24400
24401 if test -n "$mbedtlslib"; then
24402 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024403 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24404 export CURL_LIBRARY_PATH
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24406$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024407 fi
24408 fi
24409 fi
24410
24411 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024412 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024413fi
24414
24415
24416OPT_CYASSL=no
24417
24418_cppflags=$CPPFLAGS
24419_ldflags=$LDFLAGS
24420
24421# Check whether --with-cyassl was given.
24422if test "${with_cyassl+set}" = set; then :
24423 withval=$with_cyassl; OPT_CYASSL=$withval
24424fi
24425
24426
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024427
24428# Check whether --with-wolfssl was given.
24429if test "${with_wolfssl+set}" = set; then :
24430 withval=$with_wolfssl; OPT_CYASSL=$withval
24431fi
24432
24433
Alex Deymo486467e2017-12-19 19:04:07 +010024434if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24435 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024436
24437 if test X"$OPT_CYASSL" != Xno; then
24438
24439 if test "$OPT_CYASSL" = "yes"; then
24440 OPT_CYASSL=""
24441 fi
24442
24443
24444 cyassllibname=cyassl
24445
24446 if test -z "$OPT_CYASSL" ; then
24447
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24449$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24450if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24451 $as_echo_n "(cached) " >&6
24452else
24453 ac_check_lib_save_LIBS=$LIBS
24454LIBS="-lcyassl $LIBS"
24455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24456/* end confdefs.h. */
24457
24458
24459#ifdef __cplusplus
24460extern "C"
24461#endif
24462char CyaSSL_Init ();
24463int main (void)
24464{
24465return CyaSSL_Init ();
24466 ;
24467 return 0;
24468}
24469_ACEOF
24470if ac_fn_c_try_link "$LINENO"; then :
24471 ac_cv_lib_cyassl_CyaSSL_Init=yes
24472else
24473 ac_cv_lib_cyassl_CyaSSL_Init=no
24474fi
24475rm -f core conftest.err conftest.$ac_objext \
24476 conftest$ac_exeext conftest.$ac_ext
24477LIBS=$ac_check_lib_save_LIBS
24478fi
24479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24480$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24481if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24482
24483
24484$as_echo "#define USE_CYASSL 1" >>confdefs.h
24485
24486 USE_CYASSL=1
24487
24488 CYASSL_ENABLED=1
24489 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024490 ssl_msg="CyaSSL"
24491 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024492
24493fi
24494
24495 fi
24496
24497 addld=""
24498 addlib=""
24499 addcflags=""
24500 cyassllib=""
24501
24502 if test "x$USE_CYASSL" != "xyes"; then
24503 addld=-L$OPT_CYASSL/lib$libsuff
24504 addcflags=-I$OPT_CYASSL/include
24505 cyassllib=$OPT_CYASSL/lib$libsuff
24506
24507 LDFLAGS="$LDFLAGS $addld"
24508 if test "$addcflags" != "-I/usr/include"; then
24509 CPPFLAGS="$CPPFLAGS $addcflags"
24510 fi
24511
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24513$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24514if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24515 $as_echo_n "(cached) " >&6
24516else
24517 ac_check_lib_save_LIBS=$LIBS
24518LIBS="-lcyassl $LIBS"
24519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24520/* end confdefs.h. */
24521
24522
24523#ifdef __cplusplus
24524extern "C"
24525#endif
24526char CyaSSL_Init ();
24527int main (void)
24528{
24529return CyaSSL_Init ();
24530 ;
24531 return 0;
24532}
24533_ACEOF
24534if ac_fn_c_try_link "$LINENO"; then :
24535 ac_cv_lib_cyassl_CyaSSL_Init=yes
24536else
24537 ac_cv_lib_cyassl_CyaSSL_Init=no
24538fi
24539rm -f core conftest.err conftest.$ac_objext \
24540 conftest$ac_exeext conftest.$ac_ext
24541LIBS=$ac_check_lib_save_LIBS
24542fi
24543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24544$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24545if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24546
24547
24548$as_echo "#define USE_CYASSL 1" >>confdefs.h
24549
24550 USE_CYASSL=1
24551
24552 CYASSL_ENABLED=1
24553 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024554 ssl_msg="CyaSSL"
24555 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024556
24557else
24558
24559 CPPFLAGS=$_cppflags
24560 LDFLAGS=$_ldflags
24561 cyassllib=""
24562
24563fi
24564
24565 fi
24566
24567 addld=""
24568 addlib=""
24569 addcflags=""
24570
24571 if test "x$USE_CYASSL" != "xyes"; then
24572 addld=-L$OPT_CYASSL/lib$libsuff
24573 addcflags=-I$OPT_CYASSL/include
24574 cyassllib=$OPT_CYASSL/lib$libsuff
24575
24576 LDFLAGS="$LDFLAGS $addld"
24577 if test "$addcflags" != "-I/usr/include"; then
24578 CPPFLAGS="$CPPFLAGS $addcflags"
24579 fi
24580
24581 cyassllibname=wolfssl
24582 my_ac_save_LIBS="$LIBS"
24583 LIBS="-l$cyassllibname -lm $LIBS"
24584
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24586$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24588/* end confdefs.h. */
24589
24590
24591/* These aren't needed for detection and confuse WolfSSL.
24592 They are set up properly later if it is detected. */
24593#undef SIZEOF_LONG
24594#undef SIZEOF_LONG_LONG
24595#include <cyassl/ssl.h>
24596
24597int main (void)
24598{
24599
24600 return CyaSSL_Init();
24601
24602 ;
24603 return 0;
24604}
24605
24606_ACEOF
24607if ac_fn_c_try_link "$LINENO"; then :
24608
24609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24610$as_echo "yes" >&6; }
24611
24612$as_echo "#define USE_CYASSL 1" >>confdefs.h
24613
24614 USE_CYASSL=1
24615
24616 CYASSL_ENABLED=1
24617 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024618 ssl_msg="WolfSSL"
24619 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024620
24621else
24622
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24624$as_echo "no" >&6; }
24625 CPPFLAGS=$_cppflags
24626 LDFLAGS=$_ldflags
24627 cyassllib=""
24628
24629fi
24630rm -f core conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
24632 LIBS="$my_ac_save_LIBS"
24633 fi
24634
24635 if test "x$USE_CYASSL" = "xyes"; then
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24637$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024638 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024639
Elliott Hughes72d948d2018-08-03 14:37:21 -070024640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024641$as_echo_n "checking size of long long... " >&6; }
24642if ${ac_cv_sizeof_long_long+:} false; then :
24643 $as_echo_n "(cached) " >&6
24644else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024645 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024648
Elliott Hughes72d948d2018-08-03 14:37:21 -070024649#include <sys/types.h>
24650
24651
24652int main (void)
24653{
24654switch (0) case 0: case (sizeof (long long) == $ac_size):;
24655 ;
24656 return 0;
24657}
24658_ACEOF
24659if ac_fn_c_try_compile "$LINENO"; then :
24660 ac_cv_sizeof_long_long=$ac_size
24661fi
24662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24663 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24664done
24665
Elliott Hughes82be86d2017-09-20 17:00:17 -070024666fi
24667
Elliott Hughes72d948d2018-08-03 14:37:21 -070024668if test x$ac_cv_sizeof_long_long = x ; then
24669 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024670fi
24671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24672$as_echo "$ac_cv_sizeof_long_long" >&6; }
24673
Elliott Hughes82be86d2017-09-20 17:00:17 -070024674cat >>confdefs.h <<_ACEOF
24675#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24676_ACEOF
24677
24678
24679
24680 for ac_header in cyassl/options.h
24681do :
24682 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24683if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24684 cat >>confdefs.h <<_ACEOF
24685#define HAVE_CYASSL_OPTIONS_H 1
24686_ACEOF
24687
24688fi
24689
24690done
24691
24692
24693 for ac_header in cyassl/error-ssl.h
24694do :
24695 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24696if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24697 cat >>confdefs.h <<_ACEOF
24698#define HAVE_CYASSL_ERROR_SSL_H 1
24699_ACEOF
24700
24701fi
24702
24703done
24704
24705
24706 LIBS="-l$cyassllibname -lm $LIBS"
24707
24708 if test "x$cyassllibname" = "xwolfssl"; then
24709 for ac_func in wolfSSLv3_client_method \
Elliott Hughes82be86d2017-09-20 17:00:17 -070024710 wolfSSL_get_peer_certificate \
24711 wolfSSL_UseALPN
24712do :
24713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24714ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24715if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24716 cat >>confdefs.h <<_ACEOF
24717#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24718_ACEOF
24719
24720fi
24721done
24722
24723 else
24724 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24725 CyaSSL_get_peer_certificate
24726do :
24727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24729if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24730 cat >>confdefs.h <<_ACEOF
24731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24732_ACEOF
24733
24734fi
24735done
24736
24737 fi
24738
24739 if test -n "$cyassllib"; then
24740 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024741 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24742 export CURL_LIBRARY_PATH
24743 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24744$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024745 fi
24746 fi
24747
24748 fi
24749
24750 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024751 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024752fi
24753
24754
Elliott Hughesa93fb052018-12-12 14:22:48 -080024755OPT_MESALINK=no
24756
24757_cppflags=$CPPFLAGS
24758_ldflags=$LDFLAGS
24759
24760# Check whether --with-mesalink was given.
24761if test "${with_mesalink+set}" = set; then :
24762 withval=$with_mesalink; OPT_MESALINK=$withval
24763fi
24764
24765
24766if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24767 ssl_msg=
24768
24769 if test X"$OPT_MESALINK" != Xno; then
24770
24771 if test "$OPT_MESALINK" = "yes"; then
24772 OPT_MESALINK=""
24773 fi
24774
24775 if test -z "$OPT_MESALINK" ; then
24776
24777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24778$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24779if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24780 $as_echo_n "(cached) " >&6
24781else
24782 ac_check_lib_save_LIBS=$LIBS
24783LIBS="-lmesalink $LIBS"
24784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785/* end confdefs.h. */
24786
24787
24788#ifdef __cplusplus
24789extern "C"
24790#endif
24791char mesalink_library_init ();
24792int main (void)
24793{
24794return mesalink_library_init ();
24795 ;
24796 return 0;
24797}
24798_ACEOF
24799if ac_fn_c_try_link "$LINENO"; then :
24800 ac_cv_lib_mesalink_mesalink_library_init=yes
24801else
24802 ac_cv_lib_mesalink_mesalink_library_init=no
24803fi
24804rm -f core conftest.err conftest.$ac_objext \
24805 conftest$ac_exeext conftest.$ac_ext
24806LIBS=$ac_check_lib_save_LIBS
24807fi
24808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24809$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24810if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24811
24812
24813$as_echo "#define USE_MESALINK 1" >>confdefs.h
24814
24815 USE_MESALINK=1
24816
24817 MESALINK_ENABLED=1
24818 USE_MESALINK="yes"
24819 ssl_msg="MesaLink"
24820 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24821
24822fi
24823
24824 fi
24825
24826 addld=""
24827 addlib=""
24828 addcflags=""
24829 mesalinklib=""
24830
24831 if test "x$USE_MESALINK" != "xyes"; then
24832 addld=-L$OPT_MESALINK/lib$libsuff
24833 addcflags=-I$OPT_MESALINK/include
24834 mesalinklib=$OPT_MESALINK/lib$libsuff
24835
24836 LDFLAGS="$LDFLAGS $addld"
24837 if test "$addcflags" != "-I/usr/include"; then
24838 CPPFLAGS="$CPPFLAGS $addcflags"
24839 fi
24840
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24842$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24843if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24844 $as_echo_n "(cached) " >&6
24845else
24846 ac_check_lib_save_LIBS=$LIBS
24847LIBS="-lmesalink $LIBS"
24848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24849/* end confdefs.h. */
24850
24851
24852#ifdef __cplusplus
24853extern "C"
24854#endif
24855char mesalink_library_init ();
24856int main (void)
24857{
24858return mesalink_library_init ();
24859 ;
24860 return 0;
24861}
24862_ACEOF
24863if ac_fn_c_try_link "$LINENO"; then :
24864 ac_cv_lib_mesalink_mesalink_library_init=yes
24865else
24866 ac_cv_lib_mesalink_mesalink_library_init=no
24867fi
24868rm -f core conftest.err conftest.$ac_objext \
24869 conftest$ac_exeext conftest.$ac_ext
24870LIBS=$ac_check_lib_save_LIBS
24871fi
24872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24873$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24874if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24875
24876
24877$as_echo "#define USE_MESALINK 1" >>confdefs.h
24878
24879 USE_MESALINK=1
24880
24881 MESALINK_ENABLED=1
24882 USE_MESALINK="yes"
24883 ssl_msg="MesaLink"
24884 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24885
24886else
24887
24888 CPPFLAGS=$_cppflags
24889 LDFLAGS=$_ldflags
24890
24891fi
24892
24893 fi
24894
24895 if test "x$USE_MESALINK" = "xyes"; then
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
24897$as_echo "$as_me: detected MesaLink" >&6;}
24898
24899 LIBS="-lmesalink $LIBS"
24900
24901 if test -n "$mesalinklib"; then
24902 if test "x$cross_compiling" != "xyes"; then
24903 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
24904 export LD_LIBRARY_PATH
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
24906$as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
24907 fi
24908 fi
24909 fi
24910
24911 fi
24912 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24913fi
24914
24915
Elliott Hughes82be86d2017-09-20 17:00:17 -070024916OPT_NSS=no
24917
24918
24919# Check whether --with-nss was given.
24920if test "${with_nss+set}" = set; then :
24921 withval=$with_nss; OPT_NSS=$withval
24922fi
24923
24924
Alex Deymo486467e2017-12-19 19:04:07 +010024925if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24926 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024927
24928 if test X"$OPT_NSS" != Xno; then
24929
24930 addld=""
24931 addlib=""
24932 addcflags=""
24933 nssprefix=""
24934 version=""
24935
24936 if test "x$OPT_NSS" = "xyes"; then
24937
24938
24939 if test -n "$PKG_CONFIG"; then
24940 PKGCONFIG="$PKG_CONFIG"
24941 else
24942 if test -n "$ac_tool_prefix"; then
24943 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24944set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24946$as_echo_n "checking for $ac_word... " >&6; }
24947if ${ac_cv_path_PKGCONFIG+:} false; then :
24948 $as_echo_n "(cached) " >&6
24949else
24950 case $PKGCONFIG in
24951 [\\/]* | ?:[\\/]*)
24952 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24953 ;;
24954 *)
24955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956as_dummy="$PATH:/usr/bin:/usr/local/bin"
24957for as_dir in $as_dummy
24958do
24959 IFS=$as_save_IFS
24960 test -z "$as_dir" && as_dir=.
24961 for ac_exec_ext in '' $ac_executable_extensions; do
24962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24963 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24965 break 2
24966 fi
24967done
24968 done
24969IFS=$as_save_IFS
24970
24971 ;;
24972esac
24973fi
24974PKGCONFIG=$ac_cv_path_PKGCONFIG
24975if test -n "$PKGCONFIG"; then
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24977$as_echo "$PKGCONFIG" >&6; }
24978else
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24980$as_echo "no" >&6; }
24981fi
24982
24983
24984fi
24985if test -z "$ac_cv_path_PKGCONFIG"; then
24986 ac_pt_PKGCONFIG=$PKGCONFIG
24987 # Extract the first word of "pkg-config", so it can be a program name with args.
24988set dummy pkg-config; ac_word=$2
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24990$as_echo_n "checking for $ac_word... " >&6; }
24991if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24992 $as_echo_n "(cached) " >&6
24993else
24994 case $ac_pt_PKGCONFIG in
24995 [\\/]* | ?:[\\/]*)
24996 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24997 ;;
24998 *)
24999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25000as_dummy="$PATH:/usr/bin:/usr/local/bin"
25001for as_dir in $as_dummy
25002do
25003 IFS=$as_save_IFS
25004 test -z "$as_dir" && as_dir=.
25005 for ac_exec_ext in '' $ac_executable_extensions; do
25006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25007 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25009 break 2
25010 fi
25011done
25012 done
25013IFS=$as_save_IFS
25014
25015 ;;
25016esac
25017fi
25018ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25019if test -n "$ac_pt_PKGCONFIG"; then
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25021$as_echo "$ac_pt_PKGCONFIG" >&6; }
25022else
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25024$as_echo "no" >&6; }
25025fi
25026
25027 if test "x$ac_pt_PKGCONFIG" = x; then
25028 PKGCONFIG="no"
25029 else
25030 case $cross_compiling:$ac_tool_warned in
25031yes:)
25032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25034ac_tool_warned=yes ;;
25035esac
25036 PKGCONFIG=$ac_pt_PKGCONFIG
25037 fi
25038else
25039 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25040fi
25041
25042 fi
25043
25044 if test "x$PKGCONFIG" != "xno"; then
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25046$as_echo_n "checking for nss options with pkg-config... " >&6; }
25047 itexists=`
25048 if test -n ""; then
25049 PKG_CONFIG_LIBDIR=""
25050 export PKG_CONFIG_LIBDIR
25051 fi
25052 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25053
25054 if test -z "$itexists"; then
25055 PKGCONFIG="no"
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25057$as_echo "no" >&6; }
25058 else
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25060$as_echo "found" >&6; }
25061 fi
25062 fi
25063
25064
25065 if test "$PKGCONFIG" != "no" ; then
25066 addlib=`$PKGCONFIG --libs nss`
25067 addcflags=`$PKGCONFIG --cflags nss`
25068 version=`$PKGCONFIG --modversion nss`
25069 nssprefix=`$PKGCONFIG --variable=prefix nss`
25070 else
25071
25072 check=`nss-config --version 2>/dev/null`
25073 if test -n "$check"; then
25074 addlib=`nss-config --libs`
25075 addcflags=`nss-config --cflags`
25076 version=`nss-config --version`
25077 nssprefix=`nss-config --prefix`
25078 else
25079 addlib="-lnss3"
25080 addcflags=""
25081 version="unknown"
25082 fi
25083 fi
25084 else
25085 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25086 if test -f "$NSS_PCDIR/nss.pc"; then
25087
25088 if test -n "$PKG_CONFIG"; then
25089 PKGCONFIG="$PKG_CONFIG"
25090 else
25091 if test -n "$ac_tool_prefix"; then
25092 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25093set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25095$as_echo_n "checking for $ac_word... " >&6; }
25096if ${ac_cv_path_PKGCONFIG+:} false; then :
25097 $as_echo_n "(cached) " >&6
25098else
25099 case $PKGCONFIG in
25100 [\\/]* | ?:[\\/]*)
25101 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25102 ;;
25103 *)
25104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25105as_dummy="$PATH:/usr/bin:/usr/local/bin"
25106for as_dir in $as_dummy
25107do
25108 IFS=$as_save_IFS
25109 test -z "$as_dir" && as_dir=.
25110 for ac_exec_ext in '' $ac_executable_extensions; do
25111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25112 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25114 break 2
25115 fi
25116done
25117 done
25118IFS=$as_save_IFS
25119
25120 ;;
25121esac
25122fi
25123PKGCONFIG=$ac_cv_path_PKGCONFIG
25124if test -n "$PKGCONFIG"; then
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25126$as_echo "$PKGCONFIG" >&6; }
25127else
25128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25129$as_echo "no" >&6; }
25130fi
25131
25132
25133fi
25134if test -z "$ac_cv_path_PKGCONFIG"; then
25135 ac_pt_PKGCONFIG=$PKGCONFIG
25136 # Extract the first word of "pkg-config", so it can be a program name with args.
25137set dummy pkg-config; ac_word=$2
25138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25139$as_echo_n "checking for $ac_word... " >&6; }
25140if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25141 $as_echo_n "(cached) " >&6
25142else
25143 case $ac_pt_PKGCONFIG in
25144 [\\/]* | ?:[\\/]*)
25145 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25146 ;;
25147 *)
25148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25149as_dummy="$PATH:/usr/bin:/usr/local/bin"
25150for as_dir in $as_dummy
25151do
25152 IFS=$as_save_IFS
25153 test -z "$as_dir" && as_dir=.
25154 for ac_exec_ext in '' $ac_executable_extensions; do
25155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25156 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25158 break 2
25159 fi
25160done
25161 done
25162IFS=$as_save_IFS
25163
25164 ;;
25165esac
25166fi
25167ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25168if test -n "$ac_pt_PKGCONFIG"; then
25169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25170$as_echo "$ac_pt_PKGCONFIG" >&6; }
25171else
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25173$as_echo "no" >&6; }
25174fi
25175
25176 if test "x$ac_pt_PKGCONFIG" = x; then
25177 PKGCONFIG="no"
25178 else
25179 case $cross_compiling:$ac_tool_warned in
25180yes:)
25181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25183ac_tool_warned=yes ;;
25184esac
25185 PKGCONFIG=$ac_pt_PKGCONFIG
25186 fi
25187else
25188 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25189fi
25190
25191 fi
25192
25193 if test "x$PKGCONFIG" != "xno"; then
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25195$as_echo_n "checking for nss options with pkg-config... " >&6; }
25196 itexists=`
25197 if test -n "$NSS_PCDIR"; then
25198 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25199 export PKG_CONFIG_LIBDIR
25200 fi
25201 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25202
25203 if test -z "$itexists"; then
25204 PKGCONFIG="no"
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25206$as_echo "no" >&6; }
25207 else
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25209$as_echo "found" >&6; }
25210 fi
25211 fi
25212
25213 if test "$PKGCONFIG" != "no" ; then
25214 addld=`
25215 if test -n "$NSS_PCDIR"; then
25216 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25217 export PKG_CONFIG_LIBDIR
25218 fi
25219 $PKGCONFIG --libs-only-L nss`
25220 addlib=`
25221 if test -n "$NSS_PCDIR"; then
25222 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25223 export PKG_CONFIG_LIBDIR
25224 fi
25225 $PKGCONFIG --libs-only-l nss`
25226 addcflags=`
25227 if test -n "$NSS_PCDIR"; then
25228 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25229 export PKG_CONFIG_LIBDIR
25230 fi
25231 $PKGCONFIG --cflags nss`
25232 version=`
25233 if test -n "$NSS_PCDIR"; then
25234 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25235 export PKG_CONFIG_LIBDIR
25236 fi
25237 $PKGCONFIG --modversion nss`
25238 nssprefix=`
25239 if test -n "$NSS_PCDIR"; then
25240 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25241 export PKG_CONFIG_LIBDIR
25242 fi
25243 $PKGCONFIG --variable=prefix nss`
25244 fi
25245 fi
25246 fi
25247
25248 if test -z "$addlib"; then
25249 # Without pkg-config, we'll kludge in some defaults
25250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25251$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25252 addld="-L$OPT_NSS/lib"
25253 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25254 addcflags="-I$OPT_NSS/include"
25255 version="unknown"
25256 nssprefix=$OPT_NSS
25257 fi
25258
25259 CLEANLDFLAGS="$LDFLAGS"
25260 CLEANLIBS="$LIBS"
25261 CLEANCPPFLAGS="$CPPFLAGS"
25262
25263 LDFLAGS="$addld $LDFLAGS"
25264 LIBS="$addlib $LIBS"
25265 if test "$addcflags" != "-I/usr/include"; then
25266 CPPFLAGS="$CPPFLAGS $addcflags"
25267 fi
25268
25269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25270$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25271if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25272 $as_echo_n "(cached) " >&6
25273else
25274 ac_check_lib_save_LIBS=$LIBS
25275LIBS="-lnss3 $LIBS"
25276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25277/* end confdefs.h. */
25278
25279
25280#ifdef __cplusplus
25281extern "C"
25282#endif
25283char SSL_VersionRangeSet ();
25284int main (void)
25285{
25286return SSL_VersionRangeSet ();
25287 ;
25288 return 0;
25289}
25290_ACEOF
25291if ac_fn_c_try_link "$LINENO"; then :
25292 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25293else
25294 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25295fi
25296rm -f core conftest.err conftest.$ac_objext \
25297 conftest$ac_exeext conftest.$ac_ext
25298LIBS=$ac_check_lib_save_LIBS
25299fi
25300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25301$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25302if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25303
25304
25305$as_echo "#define USE_NSS 1" >>confdefs.h
25306
25307 USE_NSS=1
25308
25309 USE_NSS="yes"
25310 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025311 ssl_msg="NSS"
25312 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025313
25314else
25315
25316 LDFLAGS="$CLEANLDFLAGS"
25317 LIBS="$CLEANLIBS"
25318 CPPFLAGS="$CLEANCPPFLAGS"
25319
25320fi
25321
25322
25323 if test "x$USE_NSS" = "xyes"; then
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25325$as_echo "$as_me: detected NSS version $version" >&6;}
25326
Elliott Hughescac39802018-04-27 16:19:43 -070025327 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25328if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25329
25330
25331$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25332
25333
25334fi
25335
25336
Elliott Hughes82be86d2017-09-20 17:00:17 -070025337 NSS_LIBS=$addlib
25338
25339
25340 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025341 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25342 export CURL_LIBRARY_PATH
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25344$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025345 fi
25346
25347 fi
25348 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025349 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025350fi
Alex Deymo486467e2017-12-19 19:04:07 +010025351
Haibo Huangb6336c12019-06-05 01:34:44 -070025352case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$AMISSL_ENABLED" in
Alex Deymo486467e2017-12-19 19:04:07 +010025353x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25355$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
Haibo Huangb6336c12019-06-05 01:34:44 -070025356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this." >&5
25357$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this." >&2;}
Alex Deymo486467e2017-12-19 19:04:07 +010025358 ;;
25359x1)
25360 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025361
25362 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025363 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25364$as_echo "$as_me: built with one SSL backend" >&6;}
25365 ;;
25366*)
25367 # more than one SSL backend is enabled
25368
25369 SSL_ENABLED="1"
25370
25371 CURL_WITH_MULTI_SSL="1"
25372
25373$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25374
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25376$as_echo "$as_me: built with multiple SSL backends" >&6;}
25377 ;;
25378esac
25379
25380if test -n "$ssl_backends"; then
25381 curl_ssl_msg="enabled ($ssl_backends)"
25382fi
25383
25384if test no = "$VALID_DEFAULT_SSL_BACKEND"
25385then
25386 if test -n "$SSL_ENABLED"
25387 then
25388 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25389 else
25390 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25391 fi
25392elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25393then
25394
25395cat >>confdefs.h <<_ACEOF
25396#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25397_ACEOF
25398
Elliott Hughes82be86d2017-09-20 17:00:17 -070025399fi
25400
25401
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025402if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025403
25404
25405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25406$as_echo_n "checking default CA cert bundle/path... " >&6; }
25407
25408
25409# Check whether --with-ca-bundle was given.
25410if test "${with_ca_bundle+set}" = set; then :
25411 withval=$with_ca_bundle;
25412 want_ca="$withval"
25413 if test "x$want_ca" = "xyes"; then
25414 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25415 fi
25416
25417else
25418 want_ca="unset"
25419fi
25420
25421
25422# Check whether --with-ca-path was given.
25423if test "${with_ca_path+set}" = set; then :
25424 withval=$with_ca_path;
25425 want_capath="$withval"
25426 if test "x$want_capath" = "xyes"; then
25427 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25428 fi
25429
25430else
25431 want_capath="unset"
25432fi
25433
25434
25435 ca_warning=" (warning: certs not found)"
25436 capath_warning=" (warning: certs not found)"
25437 check_capath=""
25438
25439 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25440 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25441 ca="$want_ca"
25442 capath="$want_capath"
25443 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25444 ca="$want_ca"
25445 capath="no"
25446 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25447 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25448 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25449 fi
25450 capath="$want_capath"
25451 ca="no"
25452 else
25453 ca="no"
25454 capath="no"
25455 if test "x$cross_compiling" != "xyes"; then
25456 if test "x$want_ca" = "xunset"; then
25457 if test "x$prefix" != xNONE; then
25458 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25459 else
25460 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25461 fi
25462
25463 for a in /etc/ssl/certs/ca-certificates.crt \
25464 /etc/pki/tls/certs/ca-bundle.crt \
25465 /usr/share/ssl/certs/ca-bundle.crt \
25466 /usr/local/share/certs/ca-root-nss.crt \
25467 /etc/ssl/cert.pem \
25468 "$cac"; do
25469 if test -f "$a"; then
25470 ca="$a"
25471 break
25472 fi
25473 done
25474 fi
25475 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25476 "x$OPENSSL_ENABLED" = "x1"; then
25477 check_capath="/etc/ssl/certs/"
25478 fi
25479 else
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25481$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25482 fi
25483 fi
25484
25485 if test "x$ca" = "xno" || test -f "$ca"; then
25486 ca_warning=""
25487 fi
25488
25489 if test "x$capath" != "xno"; then
25490 check_capath="$capath"
25491 fi
25492
25493 if test ! -z "$check_capath"; then
25494 for a in "$check_capath"; do
25495 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
25496 if test "x$capath" = "xno"; then
25497 capath="$a"
25498 fi
25499 capath_warning=""
25500 break
25501 fi
25502 done
25503 fi
25504
25505 if test "x$capath" = "xno"; then
25506 capath_warning=""
25507 fi
25508
25509 if test "x$ca" != "xno"; then
25510 CURL_CA_BUNDLE='"'$ca'"'
25511
25512cat >>confdefs.h <<_ACEOF
25513#define CURL_CA_BUNDLE "$ca"
25514_ACEOF
25515
25516
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25518$as_echo "$ca" >&6; }
25519 fi
25520 if test "x$capath" != "xno"; then
25521 CURL_CA_PATH="\"$capath\""
25522
25523cat >>confdefs.h <<_ACEOF
25524#define CURL_CA_PATH "$capath"
25525_ACEOF
25526
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25528$as_echo "$capath (capath)" >&6; }
25529 fi
25530 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25532$as_echo "no" >&6; }
25533 fi
25534
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25536$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25537
25538# Check whether --with-ca-fallback was given.
25539if test "${with_ca_fallback+set}" = set; then :
25540 withval=$with_ca_fallback;
25541 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25542 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25543 fi
25544
25545else
25546 with_ca_fallback="no"
25547fi
25548
25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25550$as_echo "$with_ca_fallback" >&6; }
25551 if test "x$with_ca_fallback" = "xyes"; then
25552 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25553 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25554 fi
25555
25556cat >>confdefs.h <<_ACEOF
25557#define CURL_CA_FALLBACK 1
25558_ACEOF
25559
25560 fi
25561
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025562fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025563
25564
25565
25566# Check whether --with-libpsl was given.
25567if test "${with_libpsl+set}" = set; then :
25568 withval=$with_libpsl; with_libpsl=$withval
25569else
25570 with_libpsl=yes
25571fi
25572
25573if test $with_libpsl != "no"; then
25574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25575$as_echo_n "checking for library containing psl_builtin... " >&6; }
25576if ${ac_cv_search_psl_builtin+:} false; then :
25577 $as_echo_n "(cached) " >&6
25578else
25579 ac_func_search_save_LIBS=$LIBS
25580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25581/* end confdefs.h. */
25582
25583
25584#ifdef __cplusplus
25585extern "C"
25586#endif
25587char psl_builtin ();
25588int main (void)
25589{
25590return psl_builtin ();
25591 ;
25592 return 0;
25593}
25594_ACEOF
25595for ac_lib in '' psl; do
25596 if test -z "$ac_lib"; then
25597 ac_res="none required"
25598 else
25599 ac_res=-l$ac_lib
25600 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25601 fi
25602 if ac_fn_c_try_link "$LINENO"; then :
25603 ac_cv_search_psl_builtin=$ac_res
25604fi
25605rm -f core conftest.err conftest.$ac_objext \
25606 conftest$ac_exeext
25607 if ${ac_cv_search_psl_builtin+:} false; then :
25608 break
25609fi
25610done
25611if ${ac_cv_search_psl_builtin+:} false; then :
25612
25613else
25614 ac_cv_search_psl_builtin=no
25615fi
25616rm conftest.$ac_ext
25617LIBS=$ac_func_search_save_LIBS
25618fi
25619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25620$as_echo "$ac_cv_search_psl_builtin" >&6; }
25621ac_res=$ac_cv_search_psl_builtin
25622if test "$ac_res" != no; then :
25623 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Haibo Huang65021c72019-03-27 15:37:23 -070025624 curl_psl_msg="enabled";
Elliott Hughes82be86d2017-09-20 17:00:17 -070025625
25626$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25627
25628
25629else
25630 curl_psl_msg="no (libpsl not found)";
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25632$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25633
25634
25635fi
25636
25637fi
Haibo Huang65021c72019-03-27 15:37:23 -070025638 if test "$curl_psl_msg" = "enabled"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025639 USE_LIBPSL_TRUE=
25640 USE_LIBPSL_FALSE='#'
25641else
25642 USE_LIBPSL_TRUE='#'
25643 USE_LIBPSL_FALSE=
25644fi
25645
25646
25647
25648OPT_LIBMETALINK=no
25649
25650
25651# Check whether --with-libmetalink was given.
25652if test "${with_libmetalink+set}" = set; then :
25653 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25654fi
25655
25656
25657if test X"$OPT_LIBMETALINK" != Xno; then
25658
25659 addld=""
25660 addlib=""
25661 addcflags=""
25662 version=""
25663 libmetalinklib=""
25664
25665 PKGTEST="no"
25666 if test "x$OPT_LIBMETALINK" = "xyes"; then
25667 PKGTEST="yes"
25668
25669 if test -n "$PKG_CONFIG"; then
25670 PKGCONFIG="$PKG_CONFIG"
25671 else
25672 if test -n "$ac_tool_prefix"; then
25673 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25674set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25676$as_echo_n "checking for $ac_word... " >&6; }
25677if ${ac_cv_path_PKGCONFIG+:} false; then :
25678 $as_echo_n "(cached) " >&6
25679else
25680 case $PKGCONFIG in
25681 [\\/]* | ?:[\\/]*)
25682 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25683 ;;
25684 *)
25685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25686as_dummy="$PATH:/usr/bin:/usr/local/bin"
25687for as_dir in $as_dummy
25688do
25689 IFS=$as_save_IFS
25690 test -z "$as_dir" && as_dir=.
25691 for ac_exec_ext in '' $ac_executable_extensions; do
25692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25693 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25695 break 2
25696 fi
25697done
25698 done
25699IFS=$as_save_IFS
25700
25701 ;;
25702esac
25703fi
25704PKGCONFIG=$ac_cv_path_PKGCONFIG
25705if test -n "$PKGCONFIG"; then
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25707$as_echo "$PKGCONFIG" >&6; }
25708else
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25710$as_echo "no" >&6; }
25711fi
25712
25713
25714fi
25715if test -z "$ac_cv_path_PKGCONFIG"; then
25716 ac_pt_PKGCONFIG=$PKGCONFIG
25717 # Extract the first word of "pkg-config", so it can be a program name with args.
25718set dummy pkg-config; ac_word=$2
25719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25720$as_echo_n "checking for $ac_word... " >&6; }
25721if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25722 $as_echo_n "(cached) " >&6
25723else
25724 case $ac_pt_PKGCONFIG in
25725 [\\/]* | ?:[\\/]*)
25726 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25727 ;;
25728 *)
25729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25730as_dummy="$PATH:/usr/bin:/usr/local/bin"
25731for as_dir in $as_dummy
25732do
25733 IFS=$as_save_IFS
25734 test -z "$as_dir" && as_dir=.
25735 for ac_exec_ext in '' $ac_executable_extensions; do
25736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25737 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25739 break 2
25740 fi
25741done
25742 done
25743IFS=$as_save_IFS
25744
25745 ;;
25746esac
25747fi
25748ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25749if test -n "$ac_pt_PKGCONFIG"; then
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25751$as_echo "$ac_pt_PKGCONFIG" >&6; }
25752else
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25754$as_echo "no" >&6; }
25755fi
25756
25757 if test "x$ac_pt_PKGCONFIG" = x; then
25758 PKGCONFIG="no"
25759 else
25760 case $cross_compiling:$ac_tool_warned in
25761yes:)
25762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25764ac_tool_warned=yes ;;
25765esac
25766 PKGCONFIG=$ac_pt_PKGCONFIG
25767 fi
25768else
25769 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25770fi
25771
25772 fi
25773
25774 if test "x$PKGCONFIG" != "xno"; then
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25776$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25777 itexists=`
25778 if test -n ""; then
25779 PKG_CONFIG_LIBDIR=""
25780 export PKG_CONFIG_LIBDIR
25781 fi
25782 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25783
25784 if test -z "$itexists"; then
25785 PKGCONFIG="no"
25786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25787$as_echo "no" >&6; }
25788 else
25789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25790$as_echo "found" >&6; }
25791 fi
25792 fi
25793
25794 else
25795 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25796 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25797$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25798 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25799 PKGTEST="yes"
25800 fi
25801 if test "$PKGTEST" = "yes"; then
25802
25803 if test -n "$PKG_CONFIG"; then
25804 PKGCONFIG="$PKG_CONFIG"
25805 else
25806 if test -n "$ac_tool_prefix"; then
25807 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25808set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25810$as_echo_n "checking for $ac_word... " >&6; }
25811if ${ac_cv_path_PKGCONFIG+:} false; then :
25812 $as_echo_n "(cached) " >&6
25813else
25814 case $PKGCONFIG in
25815 [\\/]* | ?:[\\/]*)
25816 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25817 ;;
25818 *)
25819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25820as_dummy="$PATH:/usr/bin:/usr/local/bin"
25821for as_dir in $as_dummy
25822do
25823 IFS=$as_save_IFS
25824 test -z "$as_dir" && as_dir=.
25825 for ac_exec_ext in '' $ac_executable_extensions; do
25826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25827 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25829 break 2
25830 fi
25831done
25832 done
25833IFS=$as_save_IFS
25834
25835 ;;
25836esac
25837fi
25838PKGCONFIG=$ac_cv_path_PKGCONFIG
25839if test -n "$PKGCONFIG"; then
25840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25841$as_echo "$PKGCONFIG" >&6; }
25842else
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25844$as_echo "no" >&6; }
25845fi
25846
25847
25848fi
25849if test -z "$ac_cv_path_PKGCONFIG"; then
25850 ac_pt_PKGCONFIG=$PKGCONFIG
25851 # Extract the first word of "pkg-config", so it can be a program name with args.
25852set dummy pkg-config; ac_word=$2
25853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25854$as_echo_n "checking for $ac_word... " >&6; }
25855if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25856 $as_echo_n "(cached) " >&6
25857else
25858 case $ac_pt_PKGCONFIG in
25859 [\\/]* | ?:[\\/]*)
25860 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25861 ;;
25862 *)
25863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25864as_dummy="$PATH:/usr/bin:/usr/local/bin"
25865for as_dir in $as_dummy
25866do
25867 IFS=$as_save_IFS
25868 test -z "$as_dir" && as_dir=.
25869 for ac_exec_ext in '' $ac_executable_extensions; do
25870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25871 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25873 break 2
25874 fi
25875done
25876 done
25877IFS=$as_save_IFS
25878
25879 ;;
25880esac
25881fi
25882ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25883if test -n "$ac_pt_PKGCONFIG"; then
25884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25885$as_echo "$ac_pt_PKGCONFIG" >&6; }
25886else
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25888$as_echo "no" >&6; }
25889fi
25890
25891 if test "x$ac_pt_PKGCONFIG" = x; then
25892 PKGCONFIG="no"
25893 else
25894 case $cross_compiling:$ac_tool_warned in
25895yes:)
25896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25898ac_tool_warned=yes ;;
25899esac
25900 PKGCONFIG=$ac_pt_PKGCONFIG
25901 fi
25902else
25903 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25904fi
25905
25906 fi
25907
25908 if test "x$PKGCONFIG" != "xno"; then
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25910$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25911 itexists=`
25912 if test -n "$LIBMETALINK_PCDIR"; then
25913 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25914 export PKG_CONFIG_LIBDIR
25915 fi
25916 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25917
25918 if test -z "$itexists"; then
25919 PKGCONFIG="no"
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921$as_echo "no" >&6; }
25922 else
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25924$as_echo "found" >&6; }
25925 fi
25926 fi
25927
25928 fi
25929 fi
25930 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
25931 addlib=`
25932 if test -n "$LIBMETALINK_PCDIR"; then
25933 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25934 export PKG_CONFIG_LIBDIR
25935 fi
25936 $PKGCONFIG --libs-only-l libmetalink`
25937 addld=`
25938 if test -n "$LIBMETALINK_PCDIR"; then
25939 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25940 export PKG_CONFIG_LIBDIR
25941 fi
25942 $PKGCONFIG --libs-only-L libmetalink`
25943 addcflags=`
25944 if test -n "$LIBMETALINK_PCDIR"; then
25945 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25946 export PKG_CONFIG_LIBDIR
25947 fi
25948 $PKGCONFIG --cflags-only-I libmetalink`
25949 version=`
25950 if test -n "$LIBMETALINK_PCDIR"; then
25951 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25952 export PKG_CONFIG_LIBDIR
25953 fi
25954 $PKGCONFIG --modversion libmetalink`
25955 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
25956 fi
25957 if test -n "$addlib"; then
25958
25959 clean_CPPFLAGS="$CPPFLAGS"
25960 clean_LDFLAGS="$LDFLAGS"
25961 clean_LIBS="$LIBS"
25962 CPPFLAGS="$clean_CPPFLAGS $addcflags"
25963 LDFLAGS="$clean_LDFLAGS $addld"
25964 LIBS="$addlib $clean_LIBS"
25965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
25966$as_echo_n "checking if libmetalink is recent enough... " >&6; }
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968/* end confdefs.h. */
25969
25970
25971# include <metalink/metalink.h>
25972
25973int main (void)
25974{
25975
25976 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
25977 return 1;
25978
25979 ;
25980 return 0;
25981}
25982
25983_ACEOF
25984if ac_fn_c_try_link "$LINENO"; then :
25985
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
25987$as_echo "yes ($version)" >&6; }
25988 want_metalink="yes"
25989
25990else
25991
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
25993$as_echo "no ($version)" >&6; }
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
25995$as_echo "$as_me: libmetalink library defective or too old" >&6;}
25996 want_metalink="no"
25997
25998fi
25999rm -f core conftest.err conftest.$ac_objext \
26000 conftest$ac_exeext conftest.$ac_ext
26001 CPPFLAGS="$clean_CPPFLAGS"
26002 LDFLAGS="$clean_LDFLAGS"
26003 LIBS="$clean_LIBS"
26004 if test "$want_metalink" = "yes"; then
26005
26006$as_echo "#define USE_METALINK 1" >>confdefs.h
26007
26008 LIBMETALINK_LIBS=$addlib
26009 LIBMETALINK_LDFLAGS=$addld
26010 LIBMETALINK_CPPFLAGS=$addcflags
26011
26012
26013
26014 curl_mtlnk_msg="enabled"
26015 fi
26016
26017 fi
26018fi
26019
26020
26021OPT_LIBSSH2=off
26022
26023# Check whether --with-libssh2 was given.
26024if test "${with_libssh2+set}" = set; then :
26025 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026026else
26027 OPT_LIBSSH2=no
26028fi
26029
26030
26031
26032OPT_LIBSSH=off
26033
26034# Check whether --with-libssh was given.
26035if test "${with_libssh+set}" = set; then :
26036 withval=$with_libssh; OPT_LIBSSH=$withval
26037else
26038 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026039fi
26040
26041
26042if test X"$OPT_LIBSSH2" != Xno; then
26043 CLEANLDFLAGS="$LDFLAGS"
26044 CLEANCPPFLAGS="$CPPFLAGS"
26045 CLEANLIBS="$LIBS"
26046
26047 case "$OPT_LIBSSH2" in
26048 yes)
26049
26050 if test -n "$PKG_CONFIG"; then
26051 PKGCONFIG="$PKG_CONFIG"
26052 else
26053 if test -n "$ac_tool_prefix"; then
26054 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26055set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26057$as_echo_n "checking for $ac_word... " >&6; }
26058if ${ac_cv_path_PKGCONFIG+:} false; then :
26059 $as_echo_n "(cached) " >&6
26060else
26061 case $PKGCONFIG in
26062 [\\/]* | ?:[\\/]*)
26063 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26064 ;;
26065 *)
26066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26067as_dummy="$PATH:/usr/bin:/usr/local/bin"
26068for as_dir in $as_dummy
26069do
26070 IFS=$as_save_IFS
26071 test -z "$as_dir" && as_dir=.
26072 for ac_exec_ext in '' $ac_executable_extensions; do
26073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26074 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26076 break 2
26077 fi
26078done
26079 done
26080IFS=$as_save_IFS
26081
26082 ;;
26083esac
26084fi
26085PKGCONFIG=$ac_cv_path_PKGCONFIG
26086if test -n "$PKGCONFIG"; then
26087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26088$as_echo "$PKGCONFIG" >&6; }
26089else
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26091$as_echo "no" >&6; }
26092fi
26093
26094
26095fi
26096if test -z "$ac_cv_path_PKGCONFIG"; then
26097 ac_pt_PKGCONFIG=$PKGCONFIG
26098 # Extract the first word of "pkg-config", so it can be a program name with args.
26099set dummy pkg-config; ac_word=$2
26100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26101$as_echo_n "checking for $ac_word... " >&6; }
26102if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26103 $as_echo_n "(cached) " >&6
26104else
26105 case $ac_pt_PKGCONFIG in
26106 [\\/]* | ?:[\\/]*)
26107 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26108 ;;
26109 *)
26110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26111as_dummy="$PATH:/usr/bin:/usr/local/bin"
26112for as_dir in $as_dummy
26113do
26114 IFS=$as_save_IFS
26115 test -z "$as_dir" && as_dir=.
26116 for ac_exec_ext in '' $ac_executable_extensions; do
26117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26118 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26120 break 2
26121 fi
26122done
26123 done
26124IFS=$as_save_IFS
26125
26126 ;;
26127esac
26128fi
26129ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26130if test -n "$ac_pt_PKGCONFIG"; then
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26132$as_echo "$ac_pt_PKGCONFIG" >&6; }
26133else
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26135$as_echo "no" >&6; }
26136fi
26137
26138 if test "x$ac_pt_PKGCONFIG" = x; then
26139 PKGCONFIG="no"
26140 else
26141 case $cross_compiling:$ac_tool_warned in
26142yes:)
26143{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26144$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26145ac_tool_warned=yes ;;
26146esac
26147 PKGCONFIG=$ac_pt_PKGCONFIG
26148 fi
26149else
26150 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26151fi
26152
26153 fi
26154
26155 if test "x$PKGCONFIG" != "xno"; then
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26157$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26158 itexists=`
26159 if test -n ""; then
26160 PKG_CONFIG_LIBDIR=""
26161 export PKG_CONFIG_LIBDIR
26162 fi
26163 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26164
26165 if test -z "$itexists"; then
26166 PKGCONFIG="no"
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26168$as_echo "no" >&6; }
26169 else
26170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26171$as_echo "found" >&6; }
26172 fi
26173 fi
26174
26175
26176 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026177 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026178 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26179 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26180 version=`$PKGCONFIG --modversion libssh2`
26181 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26182 fi
26183
26184 ;;
26185 off)
26186 ;;
26187 *)
26188 PREFIX_SSH2=$OPT_LIBSSH2
26189 ;;
26190 esac
26191
26192 if test -n "$PREFIX_SSH2"; then
26193 LIB_SSH2="-lssh2"
26194 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26195 CPP_SSH2=-I${PREFIX_SSH2}/include
26196 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26197 fi
26198
26199 LDFLAGS="$LDFLAGS $LD_SSH2"
26200 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26201 LIBS="$LIB_SSH2 $LIBS"
26202
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26204$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26205if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26206 $as_echo_n "(cached) " >&6
26207else
26208 ac_check_lib_save_LIBS=$LIBS
26209LIBS="-lssh2 $LIBS"
26210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211/* end confdefs.h. */
26212
26213
26214#ifdef __cplusplus
26215extern "C"
26216#endif
26217char libssh2_channel_open_ex ();
26218int main (void)
26219{
26220return libssh2_channel_open_ex ();
26221 ;
26222 return 0;
26223}
26224_ACEOF
26225if ac_fn_c_try_link "$LINENO"; then :
26226 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26227else
26228 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26229fi
26230rm -f core conftest.err conftest.$ac_objext \
26231 conftest$ac_exeext conftest.$ac_ext
26232LIBS=$ac_check_lib_save_LIBS
26233fi
26234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26235$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26236if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26237 cat >>confdefs.h <<_ACEOF
26238#define HAVE_LIBSSH2 1
26239_ACEOF
26240
26241 LIBS="-lssh2 $LIBS"
26242
26243fi
26244
26245
26246 for ac_header in libssh2.h
26247do :
26248 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26249if test "x$ac_cv_header_libssh2_h" = xyes; then :
26250 cat >>confdefs.h <<_ACEOF
26251#define HAVE_LIBSSH2_H 1
26252_ACEOF
26253 curl_ssh_msg="enabled (libSSH2)"
26254 LIBSSH2_ENABLED=1
26255
26256$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26257
26258 USE_LIBSSH2=1
26259
26260
26261fi
26262
26263done
26264
26265
26266 if test X"$OPT_LIBSSH2" != Xoff &&
26267 test "$LIBSSH2_ENABLED" != "1"; then
26268 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26269 fi
26270
26271 if test "$LIBSSH2_ENABLED" = "1"; then
26272 if test -n "$DIR_SSH2"; then
26273
26274 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026275 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26276 export CURL_LIBRARY_PATH
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26278$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026279 fi
26280 fi
26281 else
26282 LDFLAGS=$CLEANLDFLAGS
26283 CPPFLAGS=$CLEANCPPFLAGS
26284 LIBS=$CLEANLIBS
26285 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026286elif test X"$OPT_LIBSSH" != Xno; then
26287 CLEANLDFLAGS="$LDFLAGS"
26288 CLEANCPPFLAGS="$CPPFLAGS"
26289 CLEANLIBS="$LIBS"
26290
26291 case "$OPT_LIBSSH" in
26292 yes)
26293
26294 if test -n "$PKG_CONFIG"; then
26295 PKGCONFIG="$PKG_CONFIG"
26296 else
26297 if test -n "$ac_tool_prefix"; then
26298 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26299set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26301$as_echo_n "checking for $ac_word... " >&6; }
26302if ${ac_cv_path_PKGCONFIG+:} false; then :
26303 $as_echo_n "(cached) " >&6
26304else
26305 case $PKGCONFIG in
26306 [\\/]* | ?:[\\/]*)
26307 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26308 ;;
26309 *)
26310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26311as_dummy="$PATH:/usr/bin:/usr/local/bin"
26312for as_dir in $as_dummy
26313do
26314 IFS=$as_save_IFS
26315 test -z "$as_dir" && as_dir=.
26316 for ac_exec_ext in '' $ac_executable_extensions; do
26317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26318 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26320 break 2
26321 fi
26322done
26323 done
26324IFS=$as_save_IFS
26325
26326 ;;
26327esac
26328fi
26329PKGCONFIG=$ac_cv_path_PKGCONFIG
26330if test -n "$PKGCONFIG"; then
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26332$as_echo "$PKGCONFIG" >&6; }
26333else
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26335$as_echo "no" >&6; }
26336fi
26337
26338
26339fi
26340if test -z "$ac_cv_path_PKGCONFIG"; then
26341 ac_pt_PKGCONFIG=$PKGCONFIG
26342 # Extract the first word of "pkg-config", so it can be a program name with args.
26343set dummy pkg-config; ac_word=$2
26344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26345$as_echo_n "checking for $ac_word... " >&6; }
26346if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26347 $as_echo_n "(cached) " >&6
26348else
26349 case $ac_pt_PKGCONFIG in
26350 [\\/]* | ?:[\\/]*)
26351 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26352 ;;
26353 *)
26354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26355as_dummy="$PATH:/usr/bin:/usr/local/bin"
26356for as_dir in $as_dummy
26357do
26358 IFS=$as_save_IFS
26359 test -z "$as_dir" && as_dir=.
26360 for ac_exec_ext in '' $ac_executable_extensions; do
26361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26362 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26364 break 2
26365 fi
26366done
26367 done
26368IFS=$as_save_IFS
26369
26370 ;;
26371esac
26372fi
26373ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26374if test -n "$ac_pt_PKGCONFIG"; then
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26376$as_echo "$ac_pt_PKGCONFIG" >&6; }
26377else
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26379$as_echo "no" >&6; }
26380fi
26381
26382 if test "x$ac_pt_PKGCONFIG" = x; then
26383 PKGCONFIG="no"
26384 else
26385 case $cross_compiling:$ac_tool_warned in
26386yes:)
26387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26389ac_tool_warned=yes ;;
26390esac
26391 PKGCONFIG=$ac_pt_PKGCONFIG
26392 fi
26393else
26394 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26395fi
26396
26397 fi
26398
26399 if test "x$PKGCONFIG" != "xno"; then
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26401$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26402 itexists=`
26403 if test -n ""; then
26404 PKG_CONFIG_LIBDIR=""
26405 export PKG_CONFIG_LIBDIR
26406 fi
26407 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26408
26409 if test -z "$itexists"; then
26410 PKGCONFIG="no"
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26412$as_echo "no" >&6; }
26413 else
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26415$as_echo "found" >&6; }
26416 fi
26417 fi
26418
26419
26420 if test "$PKGCONFIG" != "no" ; then
26421 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26422 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26423 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26424 version=`$PKGCONFIG --modversion libssh`
26425 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26426 fi
26427
26428 ;;
26429 off)
26430 ;;
26431 *)
26432 PREFIX_SSH=$OPT_LIBSSH
26433 ;;
26434 esac
26435
26436 if test -n "$PREFIX_SSH"; then
26437 LIB_SSH="-lssh"
26438 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26439 CPP_SSH=-I${PREFIX_SSH}/include
26440 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26441 fi
26442
26443 LDFLAGS="$LDFLAGS $LD_SSH"
26444 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26445 LIBS="$LIB_SSH $LIBS"
26446
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26448$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26449if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26450 $as_echo_n "(cached) " >&6
26451else
26452 ac_check_lib_save_LIBS=$LIBS
26453LIBS="-lssh $LIBS"
26454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26455/* end confdefs.h. */
26456
26457
26458#ifdef __cplusplus
26459extern "C"
26460#endif
26461char ssh_new ();
26462int main (void)
26463{
26464return ssh_new ();
26465 ;
26466 return 0;
26467}
26468_ACEOF
26469if ac_fn_c_try_link "$LINENO"; then :
26470 ac_cv_lib_ssh_ssh_new=yes
26471else
26472 ac_cv_lib_ssh_ssh_new=no
26473fi
26474rm -f core conftest.err conftest.$ac_objext \
26475 conftest$ac_exeext conftest.$ac_ext
26476LIBS=$ac_check_lib_save_LIBS
26477fi
26478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26479$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26480if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26481 cat >>confdefs.h <<_ACEOF
26482#define HAVE_LIBSSH 1
26483_ACEOF
26484
26485 LIBS="-lssh $LIBS"
26486
26487fi
26488
26489
26490 for ac_header in libssh/libssh.h
26491do :
26492 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26493if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26494 cat >>confdefs.h <<_ACEOF
26495#define HAVE_LIBSSH_LIBSSH_H 1
26496_ACEOF
26497 curl_ssh_msg="enabled (libSSH)"
26498 LIBSSH_ENABLED=1
26499
26500$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26501
26502 USE_LIBSSH=1
26503
26504
26505fi
26506
26507done
26508
26509
26510 if test X"$OPT_LIBSSH" != Xoff &&
26511 test "$LIBSSH_ENABLED" != "1"; then
26512 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26513 fi
26514
26515 if test "$LIBSSH_ENABLED" = "1"; then
26516 if test -n "$DIR_SSH"; then
26517
26518 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026519 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26520 export CURL_LIBRARY_PATH
26521 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26522$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026523 fi
26524 fi
26525 else
26526 LDFLAGS=$CLEANLDFLAGS
26527 CPPFLAGS=$CLEANCPPFLAGS
26528 LIBS=$CLEANLIBS
26529 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026530fi
26531
26532
26533OPT_LIBRTMP=off
26534
26535# Check whether --with-librtmp was given.
26536if test "${with_librtmp+set}" = set; then :
26537 withval=$with_librtmp; OPT_LIBRTMP=$withval
26538fi
26539
26540
26541if test X"$OPT_LIBRTMP" != Xno; then
26542 CLEANLDFLAGS="$LDFLAGS"
26543 CLEANCPPFLAGS="$CPPFLAGS"
26544 CLEANLIBS="$LIBS"
26545
26546 case "$OPT_LIBRTMP" in
26547 yes)
26548
26549 if test -n "$PKG_CONFIG"; then
26550 PKGCONFIG="$PKG_CONFIG"
26551 else
26552 if test -n "$ac_tool_prefix"; then
26553 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26554set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26556$as_echo_n "checking for $ac_word... " >&6; }
26557if ${ac_cv_path_PKGCONFIG+:} false; then :
26558 $as_echo_n "(cached) " >&6
26559else
26560 case $PKGCONFIG in
26561 [\\/]* | ?:[\\/]*)
26562 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26563 ;;
26564 *)
26565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26566as_dummy="$PATH:/usr/bin:/usr/local/bin"
26567for as_dir in $as_dummy
26568do
26569 IFS=$as_save_IFS
26570 test -z "$as_dir" && as_dir=.
26571 for ac_exec_ext in '' $ac_executable_extensions; do
26572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26573 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26575 break 2
26576 fi
26577done
26578 done
26579IFS=$as_save_IFS
26580
26581 ;;
26582esac
26583fi
26584PKGCONFIG=$ac_cv_path_PKGCONFIG
26585if test -n "$PKGCONFIG"; then
26586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26587$as_echo "$PKGCONFIG" >&6; }
26588else
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26590$as_echo "no" >&6; }
26591fi
26592
26593
26594fi
26595if test -z "$ac_cv_path_PKGCONFIG"; then
26596 ac_pt_PKGCONFIG=$PKGCONFIG
26597 # Extract the first word of "pkg-config", so it can be a program name with args.
26598set dummy pkg-config; ac_word=$2
26599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26600$as_echo_n "checking for $ac_word... " >&6; }
26601if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26602 $as_echo_n "(cached) " >&6
26603else
26604 case $ac_pt_PKGCONFIG in
26605 [\\/]* | ?:[\\/]*)
26606 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26607 ;;
26608 *)
26609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26610as_dummy="$PATH:/usr/bin:/usr/local/bin"
26611for as_dir in $as_dummy
26612do
26613 IFS=$as_save_IFS
26614 test -z "$as_dir" && as_dir=.
26615 for ac_exec_ext in '' $ac_executable_extensions; do
26616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26617 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26619 break 2
26620 fi
26621done
26622 done
26623IFS=$as_save_IFS
26624
26625 ;;
26626esac
26627fi
26628ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26629if test -n "$ac_pt_PKGCONFIG"; then
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26631$as_echo "$ac_pt_PKGCONFIG" >&6; }
26632else
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26634$as_echo "no" >&6; }
26635fi
26636
26637 if test "x$ac_pt_PKGCONFIG" = x; then
26638 PKGCONFIG="no"
26639 else
26640 case $cross_compiling:$ac_tool_warned in
26641yes:)
26642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26644ac_tool_warned=yes ;;
26645esac
26646 PKGCONFIG=$ac_pt_PKGCONFIG
26647 fi
26648else
26649 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26650fi
26651
26652 fi
26653
26654 if test "x$PKGCONFIG" != "xno"; then
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26656$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26657 itexists=`
26658 if test -n ""; then
26659 PKG_CONFIG_LIBDIR=""
26660 export PKG_CONFIG_LIBDIR
26661 fi
26662 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26663
26664 if test -z "$itexists"; then
26665 PKGCONFIG="no"
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26667$as_echo "no" >&6; }
26668 else
26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26670$as_echo "found" >&6; }
26671 fi
26672 fi
26673
26674
26675 if test "$PKGCONFIG" != "no" ; then
26676 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26677 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26678 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26679 version=`$PKGCONFIG --modversion librtmp`
26680 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26681 else
26682 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26683 fi
26684
26685 ;;
26686 off)
26687 LIB_RTMP="-lrtmp"
26688 ;;
26689 *)
26690 LIB_RTMP="-lrtmp"
26691 PREFIX_RTMP=$OPT_LIBRTMP
26692 ;;
26693 esac
26694
26695 if test -n "$PREFIX_RTMP"; then
26696 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26697 CPP_RTMP=-I${PREFIX_RTMP}/include
26698 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26699 fi
26700
26701 LDFLAGS="$LDFLAGS $LD_RTMP"
26702 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26703 LIBS="$LIB_RTMP $LIBS"
26704
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26706$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26707if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26708 $as_echo_n "(cached) " >&6
26709else
26710 ac_check_lib_save_LIBS=$LIBS
26711LIBS="-lrtmp $LIBS"
26712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26713/* end confdefs.h. */
26714
26715
26716#ifdef __cplusplus
26717extern "C"
26718#endif
26719char RTMP_Init ();
26720int main (void)
26721{
26722return RTMP_Init ();
26723 ;
26724 return 0;
26725}
26726_ACEOF
26727if ac_fn_c_try_link "$LINENO"; then :
26728 ac_cv_lib_rtmp_RTMP_Init=yes
26729else
26730 ac_cv_lib_rtmp_RTMP_Init=no
26731fi
26732rm -f core conftest.err conftest.$ac_objext \
26733 conftest$ac_exeext conftest.$ac_ext
26734LIBS=$ac_check_lib_save_LIBS
26735fi
26736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26737$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26738if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26739
26740 for ac_header in librtmp/rtmp.h
26741do :
26742 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26743if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26744 cat >>confdefs.h <<_ACEOF
26745#define HAVE_LIBRTMP_RTMP_H 1
26746_ACEOF
26747 curl_rtmp_msg="enabled (librtmp)"
26748 LIBRTMP_ENABLED=1
26749
26750$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26751
26752 USE_LIBRTMP=1
26753
26754
26755fi
26756
26757done
26758
26759
26760else
26761 LDFLAGS=$CLEANLDFLAGS
26762 CPPFLAGS=$CLEANCPPFLAGS
26763 LIBS=$CLEANLIBS
26764
26765fi
26766
26767
26768 if test X"$OPT_LIBRTMP" != Xoff &&
26769 test "$LIBRTMP_ENABLED" != "1"; then
26770 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26771 fi
26772
26773fi
26774
26775
26776versioned_symbols_flavour=
26777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26778$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26779# Check whether --enable-versioned-symbols was given.
26780if test "${enable_versioned_symbols+set}" = set; then :
26781 enableval=$enable_versioned_symbols; case "$enableval" in
26782 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26783$as_echo "yes" >&6; }
26784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26785$as_echo_n "checking if libraries can be versioned... " >&6; }
26786 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26787 if test -z "$GLD"; then
26788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26789$as_echo "no" >&6; }
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26791$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26792 else
26793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26794$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026795 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26796 versioned_symbols_flavour="MULTISSL_"
26797 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026798 versioned_symbols_flavour="OPENSSL_"
26799 elif test "x$GNUTLS_ENABLED" = "x1"; then
26800 versioned_symbols_flavour="GNUTLS_"
26801 elif test "x$NSS_ENABLED" = "x1"; then
26802 versioned_symbols_flavour="NSS_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026803 elif test "x$CYASSL_ENABLED" = "x1"; then
26804 versioned_symbols_flavour="CYASSL_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026805 elif test "x$WINSSL_ENABLED" = "x1"; then
Haibo Huang65021c72019-03-27 15:37:23 -070026806 versioned_symbols_flavour="SCHANNEL_"
26807 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
26808 versioned_symbols_flavour="SECURE_TRANSPORT_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026809 else
26810 versioned_symbols_flavour=""
26811 fi
26812 versioned_symbols="yes"
26813 fi
26814 ;;
26815
26816 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26817$as_echo "no" >&6; }
26818 ;;
26819 esac
26820
26821else
26822
26823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26824$as_echo "no" >&6; }
26825
26826
26827fi
26828
26829
26830CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26831
26832 if test "x$versioned_symbols" = 'xyes'; then
26833 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26834 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26835else
26836 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26837 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26838fi
26839
26840
26841
26842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26843$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26844OPT_WINIDN="default"
26845
26846# Check whether --with-winidn was given.
26847if test "${with_winidn+set}" = set; then :
26848 withval=$with_winidn; OPT_WINIDN=$withval
26849fi
26850
26851case "$OPT_WINIDN" in
26852 no|default)
26853 want_winidn="no"
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26855$as_echo "no" >&6; }
26856 ;;
26857 yes)
26858 want_winidn="yes"
26859 want_winidn_path="default"
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26861$as_echo "yes" >&6; }
26862 ;;
26863 *)
26864 want_winidn="yes"
26865 want_winidn_path="$withval"
26866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26867$as_echo "yes ($withval)" >&6; }
26868 ;;
26869esac
26870
26871if test "$want_winidn" = "yes"; then
26872 clean_CPPFLAGS="$CPPFLAGS"
26873 clean_LDFLAGS="$LDFLAGS"
26874 clean_LIBS="$LIBS"
26875 WINIDN_LIBS="-lnormaliz"
26876 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26877 #
26878 if test "$want_winidn_path" != "default"; then
26879 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26880 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26881 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26882 fi
26883 #
26884 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26885 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26886 LIBS="$WINIDN_LIBS $LIBS"
26887 #
26888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26889$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26891/* end confdefs.h. */
26892
26893
26894 #include <windows.h>
26895
26896int main (void)
26897{
26898
26899 IdnToUnicode(0, NULL, 0, NULL, 0);
26900
26901 ;
26902 return 0;
26903}
26904
26905_ACEOF
26906if ac_fn_c_try_link "$LINENO"; then :
26907
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26909$as_echo "yes" >&6; }
26910 tst_links_winidn="yes"
26911
26912else
26913
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26915$as_echo "no" >&6; }
26916 tst_links_winidn="no"
26917
26918fi
26919rm -f core conftest.err conftest.$ac_objext \
26920 conftest$ac_exeext conftest.$ac_ext
26921 #
26922 if test "$tst_links_winidn" = "yes"; then
26923
26924$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26925
26926
26927$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26928
26929 IDN_ENABLED=1
26930
26931 curl_idn_msg="enabled (Windows-native)"
26932 else
26933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
26934$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
26935 CPPFLAGS="$clean_CPPFLAGS"
26936 LDFLAGS="$clean_LDFLAGS"
26937 LIBS="$clean_LIBS"
26938 fi
26939fi
26940
26941
26942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
26943$as_echo_n "checking whether to build with libidn2... " >&6; }
26944OPT_IDN="default"
26945
26946# Check whether --with-libidn2 was given.
26947if test "${with_libidn2+set}" = set; then :
26948 withval=$with_libidn2; OPT_IDN=$withval
26949fi
26950
26951case "$OPT_IDN" in
26952 no)
26953 want_idn="no"
26954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26955$as_echo "no" >&6; }
26956 ;;
26957 default)
26958 want_idn="yes"
26959 want_idn_path="default"
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
26961$as_echo "(assumed) yes" >&6; }
26962 ;;
26963 yes)
26964 want_idn="yes"
26965 want_idn_path="default"
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26967$as_echo "yes" >&6; }
26968 ;;
26969 *)
26970 want_idn="yes"
26971 want_idn_path="$withval"
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26973$as_echo "yes ($withval)" >&6; }
26974 ;;
26975esac
26976
26977if test "$want_idn" = "yes"; then
26978 clean_CPPFLAGS="$CPPFLAGS"
26979 clean_LDFLAGS="$LDFLAGS"
26980 clean_LIBS="$LIBS"
26981 PKGCONFIG="no"
26982 #
26983 if test "$want_idn_path" != "default"; then
26984 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
26985
26986 if test -n "$PKG_CONFIG"; then
26987 PKGCONFIG="$PKG_CONFIG"
26988 else
26989 if test -n "$ac_tool_prefix"; then
26990 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26991set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26993$as_echo_n "checking for $ac_word... " >&6; }
26994if ${ac_cv_path_PKGCONFIG+:} false; then :
26995 $as_echo_n "(cached) " >&6
26996else
26997 case $PKGCONFIG in
26998 [\\/]* | ?:[\\/]*)
26999 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27000 ;;
27001 *)
27002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27003as_dummy="$PATH:/usr/bin:/usr/local/bin"
27004for as_dir in $as_dummy
27005do
27006 IFS=$as_save_IFS
27007 test -z "$as_dir" && as_dir=.
27008 for ac_exec_ext in '' $ac_executable_extensions; do
27009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27010 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27012 break 2
27013 fi
27014done
27015 done
27016IFS=$as_save_IFS
27017
27018 ;;
27019esac
27020fi
27021PKGCONFIG=$ac_cv_path_PKGCONFIG
27022if test -n "$PKGCONFIG"; then
27023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27024$as_echo "$PKGCONFIG" >&6; }
27025else
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27027$as_echo "no" >&6; }
27028fi
27029
27030
27031fi
27032if test -z "$ac_cv_path_PKGCONFIG"; then
27033 ac_pt_PKGCONFIG=$PKGCONFIG
27034 # Extract the first word of "pkg-config", so it can be a program name with args.
27035set dummy pkg-config; ac_word=$2
27036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27037$as_echo_n "checking for $ac_word... " >&6; }
27038if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27039 $as_echo_n "(cached) " >&6
27040else
27041 case $ac_pt_PKGCONFIG in
27042 [\\/]* | ?:[\\/]*)
27043 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27044 ;;
27045 *)
27046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27047as_dummy="$PATH:/usr/bin:/usr/local/bin"
27048for as_dir in $as_dummy
27049do
27050 IFS=$as_save_IFS
27051 test -z "$as_dir" && as_dir=.
27052 for ac_exec_ext in '' $ac_executable_extensions; do
27053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27054 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27056 break 2
27057 fi
27058done
27059 done
27060IFS=$as_save_IFS
27061
27062 ;;
27063esac
27064fi
27065ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27066if test -n "$ac_pt_PKGCONFIG"; then
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27068$as_echo "$ac_pt_PKGCONFIG" >&6; }
27069else
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27071$as_echo "no" >&6; }
27072fi
27073
27074 if test "x$ac_pt_PKGCONFIG" = x; then
27075 PKGCONFIG="no"
27076 else
27077 case $cross_compiling:$ac_tool_warned in
27078yes:)
27079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27081ac_tool_warned=yes ;;
27082esac
27083 PKGCONFIG=$ac_pt_PKGCONFIG
27084 fi
27085else
27086 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27087fi
27088
27089 fi
27090
27091 if test "x$PKGCONFIG" != "xno"; then
27092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27093$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27094 itexists=`
27095 if test -n "$IDN_PCDIR"; then
27096 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27097 export PKG_CONFIG_LIBDIR
27098 fi
27099 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27100
27101 if test -z "$itexists"; then
27102 PKGCONFIG="no"
27103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27104$as_echo "no" >&6; }
27105 else
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27107$as_echo "found" >&6; }
27108 fi
27109 fi
27110
27111 if test "$PKGCONFIG" != "no"; then
27112 IDN_LIBS=`
27113 if test -n "$IDN_PCDIR"; then
27114 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27115 export PKG_CONFIG_LIBDIR
27116 fi
27117 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27118 IDN_LDFLAGS=`
27119 if test -n "$IDN_PCDIR"; then
27120 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27121 export PKG_CONFIG_LIBDIR
27122 fi
27123 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27124 IDN_CPPFLAGS=`
27125 if test -n "$IDN_PCDIR"; then
27126 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27127 export PKG_CONFIG_LIBDIR
27128 fi
27129 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27130 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27131 else
27132 IDN_LIBS="-lidn2"
27133 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27134 IDN_CPPFLAGS="-I$want_idn_path/include"
27135 IDN_DIR="$want_idn_path/lib$libsuff"
27136 fi
27137 else
27138
27139 if test -n "$PKG_CONFIG"; then
27140 PKGCONFIG="$PKG_CONFIG"
27141 else
27142 if test -n "$ac_tool_prefix"; then
27143 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27144set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27146$as_echo_n "checking for $ac_word... " >&6; }
27147if ${ac_cv_path_PKGCONFIG+:} false; then :
27148 $as_echo_n "(cached) " >&6
27149else
27150 case $PKGCONFIG in
27151 [\\/]* | ?:[\\/]*)
27152 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27153 ;;
27154 *)
27155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27156as_dummy="$PATH:/usr/bin:/usr/local/bin"
27157for as_dir in $as_dummy
27158do
27159 IFS=$as_save_IFS
27160 test -z "$as_dir" && as_dir=.
27161 for ac_exec_ext in '' $ac_executable_extensions; do
27162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27163 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27165 break 2
27166 fi
27167done
27168 done
27169IFS=$as_save_IFS
27170
27171 ;;
27172esac
27173fi
27174PKGCONFIG=$ac_cv_path_PKGCONFIG
27175if test -n "$PKGCONFIG"; then
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27177$as_echo "$PKGCONFIG" >&6; }
27178else
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27180$as_echo "no" >&6; }
27181fi
27182
27183
27184fi
27185if test -z "$ac_cv_path_PKGCONFIG"; then
27186 ac_pt_PKGCONFIG=$PKGCONFIG
27187 # Extract the first word of "pkg-config", so it can be a program name with args.
27188set dummy pkg-config; ac_word=$2
27189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27190$as_echo_n "checking for $ac_word... " >&6; }
27191if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27192 $as_echo_n "(cached) " >&6
27193else
27194 case $ac_pt_PKGCONFIG in
27195 [\\/]* | ?:[\\/]*)
27196 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27197 ;;
27198 *)
27199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27200as_dummy="$PATH:/usr/bin:/usr/local/bin"
27201for as_dir in $as_dummy
27202do
27203 IFS=$as_save_IFS
27204 test -z "$as_dir" && as_dir=.
27205 for ac_exec_ext in '' $ac_executable_extensions; do
27206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27207 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27209 break 2
27210 fi
27211done
27212 done
27213IFS=$as_save_IFS
27214
27215 ;;
27216esac
27217fi
27218ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27219if test -n "$ac_pt_PKGCONFIG"; then
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27221$as_echo "$ac_pt_PKGCONFIG" >&6; }
27222else
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27224$as_echo "no" >&6; }
27225fi
27226
27227 if test "x$ac_pt_PKGCONFIG" = x; then
27228 PKGCONFIG="no"
27229 else
27230 case $cross_compiling:$ac_tool_warned in
27231yes:)
27232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27234ac_tool_warned=yes ;;
27235esac
27236 PKGCONFIG=$ac_pt_PKGCONFIG
27237 fi
27238else
27239 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27240fi
27241
27242 fi
27243
27244 if test "x$PKGCONFIG" != "xno"; then
27245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27246$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27247 itexists=`
27248 if test -n ""; then
27249 PKG_CONFIG_LIBDIR=""
27250 export PKG_CONFIG_LIBDIR
27251 fi
27252 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27253
27254 if test -z "$itexists"; then
27255 PKGCONFIG="no"
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27257$as_echo "no" >&6; }
27258 else
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27260$as_echo "found" >&6; }
27261 fi
27262 fi
27263
27264 if test "$PKGCONFIG" != "no"; then
27265 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27266 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27267 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27268 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27269 else
27270 IDN_LIBS="-lidn2"
27271 fi
27272 fi
27273 #
27274 if test "$PKGCONFIG" != "no"; then
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27276$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27278$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27280$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27282$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27283 else
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27285$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27287$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27289$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27290 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27291$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27292 fi
27293 #
27294 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27295 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27296 LIBS="$IDN_LIBS $LIBS"
27297 #
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27299$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27301/* end confdefs.h. */
27302
27303
27304#define idn2_lookup_ul innocuous_idn2_lookup_ul
27305#ifdef __STDC__
27306# include <limits.h>
27307#else
27308# include <assert.h>
27309#endif
27310#undef idn2_lookup_ul
27311#ifdef __cplusplus
27312extern "C"
27313#endif
27314char idn2_lookup_ul ();
27315#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27316choke me
27317#endif
27318
27319int main (void)
27320{
27321return idn2_lookup_ul ();
27322 ;
27323 return 0;
27324}
27325
27326_ACEOF
27327if ac_fn_c_try_link "$LINENO"; then :
27328
27329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27330$as_echo "yes" >&6; }
27331 tst_links_libidn="yes"
27332
27333else
27334
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27336$as_echo "no" >&6; }
27337 tst_links_libidn="no"
27338
27339fi
27340rm -f core conftest.err conftest.$ac_objext \
27341 conftest$ac_exeext conftest.$ac_ext
27342 #
27343 for ac_header in idn2.h
27344do :
27345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27346ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27347if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27348 cat >>confdefs.h <<_ACEOF
27349#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27350_ACEOF
27351
27352fi
27353
27354done
27355
27356
27357 if test "$tst_links_libidn" = "yes"; then
27358
27359$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27360
27361
27362 IDN_ENABLED=1
27363
27364 curl_idn_msg="enabled (libidn2)"
27365 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027366 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27367 export CURL_LIBRARY_PATH
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27369$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027370 fi
27371 else
27372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27373$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27374 CPPFLAGS="$clean_CPPFLAGS"
27375 LDFLAGS="$clean_LDFLAGS"
27376 LIBS="$clean_LIBS"
27377 fi
27378fi
27379
27380
27381
27382
27383
27384OPT_H2="yes"
27385
27386if test "x$disable_http" = "xyes"; then
27387 # without HTTP, nghttp2 is no use
27388 OPT_H2="no"
27389fi
27390
27391
27392# Check whether --with-nghttp2 was given.
27393if test "${with_nghttp2+set}" = set; then :
27394 withval=$with_nghttp2; OPT_H2=$withval
27395fi
27396
27397case "$OPT_H2" in
27398 no)
27399 want_h2="no"
27400 ;;
27401 yes)
27402 want_h2="default"
27403 want_h2_path=""
27404 ;;
27405 *)
27406 want_h2="yes"
27407 want_h2_path="$withval/lib/pkgconfig"
27408 ;;
27409esac
27410
27411curl_h2_msg="disabled (--with-nghttp2)"
27412if test X"$want_h2" != Xno; then
27413 CLEANLDFLAGS="$LDFLAGS"
27414 CLEANCPPFLAGS="$CPPFLAGS"
27415 CLEANLIBS="$LIBS"
27416
27417
27418 if test -n "$PKG_CONFIG"; then
27419 PKGCONFIG="$PKG_CONFIG"
27420 else
27421 if test -n "$ac_tool_prefix"; then
27422 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27423set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27425$as_echo_n "checking for $ac_word... " >&6; }
27426if ${ac_cv_path_PKGCONFIG+:} false; then :
27427 $as_echo_n "(cached) " >&6
27428else
27429 case $PKGCONFIG in
27430 [\\/]* | ?:[\\/]*)
27431 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27432 ;;
27433 *)
27434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27435as_dummy="$PATH:/usr/bin:/usr/local/bin"
27436for as_dir in $as_dummy
27437do
27438 IFS=$as_save_IFS
27439 test -z "$as_dir" && as_dir=.
27440 for ac_exec_ext in '' $ac_executable_extensions; do
27441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27442 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27444 break 2
27445 fi
27446done
27447 done
27448IFS=$as_save_IFS
27449
27450 ;;
27451esac
27452fi
27453PKGCONFIG=$ac_cv_path_PKGCONFIG
27454if test -n "$PKGCONFIG"; then
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27456$as_echo "$PKGCONFIG" >&6; }
27457else
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27459$as_echo "no" >&6; }
27460fi
27461
27462
27463fi
27464if test -z "$ac_cv_path_PKGCONFIG"; then
27465 ac_pt_PKGCONFIG=$PKGCONFIG
27466 # Extract the first word of "pkg-config", so it can be a program name with args.
27467set dummy pkg-config; ac_word=$2
27468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27469$as_echo_n "checking for $ac_word... " >&6; }
27470if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27471 $as_echo_n "(cached) " >&6
27472else
27473 case $ac_pt_PKGCONFIG in
27474 [\\/]* | ?:[\\/]*)
27475 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27476 ;;
27477 *)
27478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27479as_dummy="$PATH:/usr/bin:/usr/local/bin"
27480for as_dir in $as_dummy
27481do
27482 IFS=$as_save_IFS
27483 test -z "$as_dir" && as_dir=.
27484 for ac_exec_ext in '' $ac_executable_extensions; do
27485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27486 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27488 break 2
27489 fi
27490done
27491 done
27492IFS=$as_save_IFS
27493
27494 ;;
27495esac
27496fi
27497ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27498if test -n "$ac_pt_PKGCONFIG"; then
27499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27500$as_echo "$ac_pt_PKGCONFIG" >&6; }
27501else
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27503$as_echo "no" >&6; }
27504fi
27505
27506 if test "x$ac_pt_PKGCONFIG" = x; then
27507 PKGCONFIG="no"
27508 else
27509 case $cross_compiling:$ac_tool_warned in
27510yes:)
27511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27513ac_tool_warned=yes ;;
27514esac
27515 PKGCONFIG=$ac_pt_PKGCONFIG
27516 fi
27517else
27518 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27519fi
27520
27521 fi
27522
27523 if test "x$PKGCONFIG" != "xno"; then
27524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27525$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27526 itexists=`
27527 if test -n "$want_h2_path"; then
27528 PKG_CONFIG_LIBDIR="$want_h2_path"
27529 export PKG_CONFIG_LIBDIR
27530 fi
27531 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27532
27533 if test -z "$itexists"; then
27534 PKGCONFIG="no"
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27536$as_echo "no" >&6; }
27537 else
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27539$as_echo "found" >&6; }
27540 fi
27541 fi
27542
27543
27544 if test "$PKGCONFIG" != "no" ; then
27545 LIB_H2=`
27546 if test -n "$want_h2_path"; then
27547 PKG_CONFIG_LIBDIR="$want_h2_path"
27548 export PKG_CONFIG_LIBDIR
27549 fi
27550
27551 $PKGCONFIG --libs-only-l libnghttp2`
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27553$as_echo "$as_me: -l is $LIB_H2" >&6;}
27554
27555 CPP_H2=`
27556 if test -n "$want_h2_path"; then
27557 PKG_CONFIG_LIBDIR="$want_h2_path"
27558 export PKG_CONFIG_LIBDIR
27559 fi
27560 $PKGCONFIG --cflags-only-I libnghttp2`
27561 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27562$as_echo "$as_me: -I is $CPP_H2" >&6;}
27563
27564 LD_H2=`
27565 if test -n "$want_h2_path"; then
27566 PKG_CONFIG_LIBDIR="$want_h2_path"
27567 export PKG_CONFIG_LIBDIR
27568 fi
27569
27570 $PKGCONFIG --libs-only-L libnghttp2`
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27572$as_echo "$as_me: -L is $LD_H2" >&6;}
27573
27574 LDFLAGS="$LDFLAGS $LD_H2"
27575 CPPFLAGS="$CPPFLAGS $CPP_H2"
27576 LIBS="$LIB_H2 $LIBS"
27577
27578 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27579 # >= 1.0.0
27580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27581$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27582if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27583 $as_echo_n "(cached) " >&6
27584else
27585 ac_check_lib_save_LIBS=$LIBS
27586LIBS="-lnghttp2 $LIBS"
27587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27588/* end confdefs.h. */
27589
27590
27591#ifdef __cplusplus
27592extern "C"
27593#endif
27594char nghttp2_option_set_no_recv_client_magic ();
27595int main (void)
27596{
27597return nghttp2_option_set_no_recv_client_magic ();
27598 ;
27599 return 0;
27600}
27601_ACEOF
27602if ac_fn_c_try_link "$LINENO"; then :
27603 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27604else
27605 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27606fi
27607rm -f core conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
27609LIBS=$ac_check_lib_save_LIBS
27610fi
27611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27612$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27613if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27614
27615 for ac_header in nghttp2/nghttp2.h
27616do :
27617 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27618if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27619 cat >>confdefs.h <<_ACEOF
27620#define HAVE_NGHTTP2_NGHTTP2_H 1
27621_ACEOF
27622 curl_h2_msg="enabled (nghttp2)"
27623 NGHTTP2_ENABLED=1
27624
27625$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27626
27627 USE_NGHTTP2=1
27628
27629
27630fi
27631
27632done
27633
27634
27635else
27636 LDFLAGS=$CLEANLDFLAGS
27637 CPPFLAGS=$CLEANCPPFLAGS
27638 LIBS=$CLEANLIBS
27639
27640fi
27641
27642
27643 else
27644 if test X"$want_h2" != Xdefault; then
27645 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27646 fi
27647 fi
27648
27649fi
27650
27651
27652OPT_ZSH_FPATH=default
27653
27654# Check whether --with-zsh-functions-dir was given.
27655if test "${with_zsh_functions_dir+set}" = set; then :
27656 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27657fi
27658
27659case "$OPT_ZSH_FPATH" in
27660 no)
27661 ;;
27662 default|yes)
27663 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27664
27665 ;;
27666 *)
27667 ZSH_FUNCTIONS_DIR="$withval"
27668
27669 ;;
27670esac
27671
27672
Haibo Huang65021c72019-03-27 15:37:23 -070027673OPT_FISH_FPATH=default
27674
27675# Check whether --with-fish-functions-dir was given.
27676if test "${with_fish_functions_dir+set}" = set; then :
27677 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
27678fi
27679
27680case "$OPT_FISH_FPATH" in
27681 no)
27682 ;;
27683 default|yes)
Haibo Huang34ab3462019-05-22 00:50:27 -070027684
27685 if test -n "$PKG_CONFIG"; then
27686 PKGCONFIG="$PKG_CONFIG"
27687 else
27688 if test -n "$ac_tool_prefix"; then
27689 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27690set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27692$as_echo_n "checking for $ac_word... " >&6; }
27693if ${ac_cv_path_PKGCONFIG+:} false; then :
27694 $as_echo_n "(cached) " >&6
27695else
27696 case $PKGCONFIG in
27697 [\\/]* | ?:[\\/]*)
27698 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27699 ;;
27700 *)
27701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27702as_dummy="$PATH:/usr/bin:/usr/local/bin"
27703for as_dir in $as_dummy
27704do
27705 IFS=$as_save_IFS
27706 test -z "$as_dir" && as_dir=.
27707 for ac_exec_ext in '' $ac_executable_extensions; do
27708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27709 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27711 break 2
27712 fi
27713done
27714 done
27715IFS=$as_save_IFS
27716
27717 ;;
27718esac
27719fi
27720PKGCONFIG=$ac_cv_path_PKGCONFIG
27721if test -n "$PKGCONFIG"; then
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27723$as_echo "$PKGCONFIG" >&6; }
27724else
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27726$as_echo "no" >&6; }
27727fi
27728
27729
27730fi
27731if test -z "$ac_cv_path_PKGCONFIG"; then
27732 ac_pt_PKGCONFIG=$PKGCONFIG
27733 # Extract the first word of "pkg-config", so it can be a program name with args.
27734set dummy pkg-config; ac_word=$2
27735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27736$as_echo_n "checking for $ac_word... " >&6; }
27737if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27738 $as_echo_n "(cached) " >&6
27739else
27740 case $ac_pt_PKGCONFIG in
27741 [\\/]* | ?:[\\/]*)
27742 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27743 ;;
27744 *)
27745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27746as_dummy="$PATH:/usr/bin:/usr/local/bin"
27747for as_dir in $as_dummy
27748do
27749 IFS=$as_save_IFS
27750 test -z "$as_dir" && as_dir=.
27751 for ac_exec_ext in '' $ac_executable_extensions; do
27752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27753 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27755 break 2
27756 fi
27757done
27758 done
27759IFS=$as_save_IFS
27760
27761 ;;
27762esac
27763fi
27764ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27765if test -n "$ac_pt_PKGCONFIG"; then
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27767$as_echo "$ac_pt_PKGCONFIG" >&6; }
27768else
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27770$as_echo "no" >&6; }
27771fi
27772
27773 if test "x$ac_pt_PKGCONFIG" = x; then
27774 PKGCONFIG="no"
27775 else
27776 case $cross_compiling:$ac_tool_warned in
27777yes:)
27778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27780ac_tool_warned=yes ;;
27781esac
27782 PKGCONFIG=$ac_pt_PKGCONFIG
27783 fi
27784else
27785 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27786fi
27787
27788 fi
27789
27790 if test "x$PKGCONFIG" != "xno"; then
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
27792$as_echo_n "checking for fish options with pkg-config... " >&6; }
27793 itexists=`
27794 if test -n ""; then
27795 PKG_CONFIG_LIBDIR=""
27796 export PKG_CONFIG_LIBDIR
27797 fi
27798 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
27799
27800 if test -z "$itexists"; then
27801 PKGCONFIG="no"
27802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27803$as_echo "no" >&6; }
27804 else
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27806$as_echo "found" >&6; }
27807 fi
27808 fi
27809
27810 if test "$PKGCONFIG" != "no" ; then
27811 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
27812 else
27813 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
27814 fi
Haibo Huang65021c72019-03-27 15:37:23 -070027815
27816 ;;
27817 *)
27818 FISH_FUNCTIONS_DIR="$withval"
27819
27820 ;;
27821esac
27822
27823
Elliott Hughes82be86d2017-09-20 17:00:17 -070027824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27825$as_echo_n "checking for ANSI C header files... " >&6; }
27826if ${ac_cv_header_stdc+:} false; then :
27827 $as_echo_n "(cached) " >&6
27828else
27829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27830/* end confdefs.h. */
27831#include <stdlib.h>
27832#include <stdarg.h>
27833#include <string.h>
27834#include <float.h>
27835
27836int main (void)
27837{
27838
27839 ;
27840 return 0;
27841}
27842_ACEOF
27843if ac_fn_c_try_compile "$LINENO"; then :
27844 ac_cv_header_stdc=yes
27845else
27846 ac_cv_header_stdc=no
27847fi
27848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27849
27850if test $ac_cv_header_stdc = yes; then
27851 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27853/* end confdefs.h. */
27854#include <string.h>
27855
27856_ACEOF
27857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27858 $EGREP "memchr" >/dev/null 2>&1; then :
27859
27860else
27861 ac_cv_header_stdc=no
27862fi
27863rm -f conftest*
27864
27865fi
27866
27867if test $ac_cv_header_stdc = yes; then
27868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27870/* end confdefs.h. */
27871#include <stdlib.h>
27872
27873_ACEOF
27874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27875 $EGREP "free" >/dev/null 2>&1; then :
27876
27877else
27878 ac_cv_header_stdc=no
27879fi
27880rm -f conftest*
27881
27882fi
27883
27884if test $ac_cv_header_stdc = yes; then
27885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27886 if test "$cross_compiling" = yes; then :
27887 :
27888else
27889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27890/* end confdefs.h. */
27891#include <ctype.h>
27892#include <stdlib.h>
27893#if ((' ' & 0x0FF) == 0x020)
27894# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27895# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27896#else
27897# define ISLOWER(c) \
27898 (('a' <= (c) && (c) <= 'i') \
27899 || ('j' <= (c) && (c) <= 'r') \
27900 || ('s' <= (c) && (c) <= 'z'))
27901# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27902#endif
27903
27904#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27905int
27906main ()
27907{
27908 int i;
27909 for (i = 0; i < 256; i++)
27910 if (XOR (islower (i), ISLOWER (i))
27911 || toupper (i) != TOUPPER (i))
27912 return 2;
27913 return 0;
27914}
27915_ACEOF
27916if ac_fn_c_try_run "$LINENO"; then :
27917
27918else
27919 ac_cv_header_stdc=no
27920fi
27921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27922 conftest.$ac_objext conftest.beam conftest.$ac_ext
27923fi
27924
27925fi
27926fi
27927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27928$as_echo "$ac_cv_header_stdc" >&6; }
27929if test $ac_cv_header_stdc = yes; then
27930
27931$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27932
27933fi
27934
27935
27936
27937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27938$as_echo_n "checking for malloc.h... " >&6; }
27939if ${curl_cv_header_malloc_h+:} false; then :
27940 $as_echo_n "(cached) " >&6
27941else
27942
27943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27944/* end confdefs.h. */
27945
27946
27947#include <malloc.h>
27948
27949int main (void)
27950{
27951
27952 void *p = malloc(10);
27953 void *q = calloc(10,10);
27954 free(p);
27955 free(q);
27956
27957 ;
27958 return 0;
27959}
27960
27961_ACEOF
27962if ac_fn_c_try_compile "$LINENO"; then :
27963
27964 curl_cv_header_malloc_h="yes"
27965
27966else
27967
27968 curl_cv_header_malloc_h="no"
27969
27970fi
27971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27972
27973fi
27974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
27975$as_echo "$curl_cv_header_malloc_h" >&6; }
27976 if test "$curl_cv_header_malloc_h" = "yes"; then
27977
27978cat >>confdefs.h <<_ACEOF
27979#define HAVE_MALLOC_H 1
27980_ACEOF
27981
27982 #
27983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27984/* end confdefs.h. */
27985
27986
27987#include <stdlib.h>
27988
27989int main (void)
27990{
27991
27992 void *p = malloc(10);
27993 void *q = calloc(10,10);
27994 free(p);
27995 free(q);
27996
27997 ;
27998 return 0;
27999}
28000
28001_ACEOF
28002if ac_fn_c_try_compile "$LINENO"; then :
28003
28004 curl_cv_need_header_malloc_h="no"
28005
28006else
28007
28008 curl_cv_need_header_malloc_h="yes"
28009
28010fi
28011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28012 #
28013 case "$curl_cv_need_header_malloc_h" in
28014 yes)
28015
28016cat >>confdefs.h <<_ACEOF
28017#define NEED_MALLOC_H 1
28018_ACEOF
28019
28020 ;;
28021 esac
28022 fi
28023
28024
28025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28026$as_echo_n "checking for memory.h... " >&6; }
28027if ${curl_cv_header_memory_h+:} false; then :
28028 $as_echo_n "(cached) " >&6
28029else
28030
28031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28032/* end confdefs.h. */
28033
28034
28035#include <memory.h>
28036
28037int main (void)
28038{
28039
28040 void *p = malloc(10);
28041 void *q = calloc(10,10);
28042 free(p);
28043 free(q);
28044
28045 ;
28046 return 0;
28047}
28048
28049_ACEOF
28050if ac_fn_c_try_compile "$LINENO"; then :
28051
28052 curl_cv_header_memory_h="yes"
28053
28054else
28055
28056 curl_cv_header_memory_h="no"
28057
28058fi
28059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28060
28061fi
28062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28063$as_echo "$curl_cv_header_memory_h" >&6; }
28064 if test "$curl_cv_header_memory_h" = "yes"; then
28065
28066cat >>confdefs.h <<_ACEOF
28067#define HAVE_MEMORY_H 1
28068_ACEOF
28069
28070 #
28071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28072/* end confdefs.h. */
28073
28074
28075#include <stdlib.h>
28076
28077int main (void)
28078{
28079
28080 void *p = malloc(10);
28081 void *q = calloc(10,10);
28082 free(p);
28083 free(q);
28084
28085 ;
28086 return 0;
28087}
28088
28089_ACEOF
28090if ac_fn_c_try_compile "$LINENO"; then :
28091
28092 curl_cv_need_header_memory_h="no"
28093
28094else
28095
28096 curl_cv_need_header_memory_h="yes"
28097
28098fi
28099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28100 #
28101 case "$curl_cv_need_header_memory_h" in
28102 yes)
28103
28104cat >>confdefs.h <<_ACEOF
28105#define NEED_MEMORY_H 1
28106_ACEOF
28107
28108 ;;
28109 esac
28110 fi
28111
28112
28113for ac_header in sys/types.h \
28114 sys/time.h \
28115 sys/select.h \
28116 sys/socket.h \
28117 sys/ioctl.h \
28118 sys/uio.h \
28119 assert.h \
28120 unistd.h \
28121 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028122 arpa/inet.h \
28123 net/if.h \
28124 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028125 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028126 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028127 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028128 netinet/tcp.h \
28129 netdb.h \
28130 sys/sockio.h \
28131 sys/stat.h \
28132 sys/param.h \
28133 termios.h \
28134 termio.h \
28135 sgtty.h \
28136 fcntl.h \
28137 alloca.h \
28138 time.h \
28139 io.h \
28140 pwd.h \
28141 utime.h \
28142 sys/utime.h \
28143 sys/poll.h \
28144 poll.h \
28145 socket.h \
28146 sys/resource.h \
28147 libgen.h \
28148 locale.h \
28149 errno.h \
28150 stdbool.h \
28151 arpa/tftp.h \
28152 sys/filio.h \
28153 sys/wait.h \
28154 setjmp.h
28155do :
28156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28157ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28158#ifdef HAVE_SYS_TYPES_H
28159#include <sys/types.h>
28160#endif
28161#ifdef HAVE_SYS_TIME_H
28162#include <sys/time.h>
28163#endif
28164#ifdef HAVE_SYS_SELECT_H
28165#include <sys/select.h>
28166#endif
28167#ifdef HAVE_SYS_SOCKET_H
28168#include <sys/socket.h>
28169#endif
28170#ifdef HAVE_NETINET_IN_H
28171#include <netinet/in.h>
28172#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028173#ifdef HAVE_NETINET_IN6_H
28174#include <netinet/in6.h>
28175#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028176#ifdef HAVE_SYS_UN_H
28177#include <sys/un.h>
28178#endif
28179
28180
28181"
28182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28183 cat >>confdefs.h <<_ACEOF
28184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28185_ACEOF
28186
28187fi
28188
28189done
28190
28191
Haibo Huang65021c72019-03-27 15:37:23 -070028192
Elliott Hughes82be86d2017-09-20 17:00:17 -070028193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28194$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28195if ${ac_cv_c_const+:} false; then :
28196 $as_echo_n "(cached) " >&6
28197else
28198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28199/* end confdefs.h. */
28200
28201int main (void)
28202{
28203
28204#ifndef __cplusplus
28205 /* Ultrix mips cc rejects this sort of thing. */
28206 typedef int charset[2];
28207 const charset cs = { 0, 0 };
28208 /* SunOS 4.1.1 cc rejects this. */
28209 char const *const *pcpcc;
28210 char **ppc;
28211 /* NEC SVR4.0.2 mips cc rejects this. */
28212 struct point {int x, y;};
28213 static struct point const zero = {0,0};
28214 /* AIX XL C 1.02.0.0 rejects this.
28215 It does not let you subtract one const X* pointer from another in
28216 an arm of an if-expression whose if-part is not a constant
28217 expression */
28218 const char *g = "string";
28219 pcpcc = &g + (g ? g-g : 0);
28220 /* HPUX 7.0 cc rejects these. */
28221 ++pcpcc;
28222 ppc = (char**) pcpcc;
28223 pcpcc = (char const *const *) ppc;
28224 { /* SCO 3.2v4 cc rejects this sort of thing. */
28225 char tx;
28226 char *t = &tx;
28227 char const *s = 0 ? (char *) 0 : (char const *) 0;
28228
28229 *t++ = 0;
28230 if (s) return 0;
28231 }
28232 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28233 int x[] = {25, 17};
28234 const int *foo = &x[0];
28235 ++foo;
28236 }
28237 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28238 typedef const int *iptr;
28239 iptr p = 0;
28240 ++p;
28241 }
28242 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28243 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28244 struct s { int j; const int *ap[3]; } bx;
28245 struct s *b = &bx; b->j = 5;
28246 }
28247 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28248 const int foo = 10;
28249 if (!foo) return 0;
28250 }
28251 return !cs[0] && !zero.x;
28252#endif
28253
28254 ;
28255 return 0;
28256}
28257_ACEOF
28258if ac_fn_c_try_compile "$LINENO"; then :
28259 ac_cv_c_const=yes
28260else
28261 ac_cv_c_const=no
28262fi
28263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28264fi
28265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28266$as_echo "$ac_cv_c_const" >&6; }
28267if test $ac_cv_c_const = no; then
28268
28269$as_echo "#define const /**/" >>confdefs.h
28270
28271fi
28272
28273
28274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28275$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28276if ${curl_cv_variadic_macros_c99+:} false; then :
28277 $as_echo_n "(cached) " >&6
28278else
28279
28280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28281/* end confdefs.h. */
28282
28283
28284#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28285#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28286 int fun3(int arg1, int arg2, int arg3);
28287 int fun2(int arg1, int arg2);
28288 int fun3(int arg1, int arg2, int arg3)
28289 { return arg1 + arg2 + arg3; }
28290 int fun2(int arg1, int arg2)
28291 { return arg1 + arg2; }
28292
28293int main (void)
28294{
28295
28296 int res3 = c99_vmacro3(1, 2, 3);
28297 int res2 = c99_vmacro2(1, 2);
28298
28299 ;
28300 return 0;
28301}
28302
28303_ACEOF
28304if ac_fn_c_try_compile "$LINENO"; then :
28305
28306 curl_cv_variadic_macros_c99="yes"
28307
28308else
28309
28310 curl_cv_variadic_macros_c99="no"
28311
28312fi
28313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28314
28315fi
28316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28317$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28318 case "$curl_cv_variadic_macros_c99" in
28319 yes)
28320
28321cat >>confdefs.h <<_ACEOF
28322#define HAVE_VARIADIC_MACROS_C99 1
28323_ACEOF
28324
28325 ;;
28326 esac
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28328$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28329if ${curl_cv_variadic_macros_gcc+:} false; then :
28330 $as_echo_n "(cached) " >&6
28331else
28332
28333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28334/* end confdefs.h. */
28335
28336
28337#define gcc_vmacro3(first, args...) fun3(first, args)
28338#define gcc_vmacro2(first, args...) fun2(first, args)
28339 int fun3(int arg1, int arg2, int arg3);
28340 int fun2(int arg1, int arg2);
28341 int fun3(int arg1, int arg2, int arg3)
28342 { return arg1 + arg2 + arg3; }
28343 int fun2(int arg1, int arg2)
28344 { return arg1 + arg2; }
28345
28346int main (void)
28347{
28348
28349 int res3 = gcc_vmacro3(1, 2, 3);
28350 int res2 = gcc_vmacro2(1, 2);
28351
28352 ;
28353 return 0;
28354}
28355
28356_ACEOF
28357if ac_fn_c_try_compile "$LINENO"; then :
28358
28359 curl_cv_variadic_macros_gcc="yes"
28360
28361else
28362
28363 curl_cv_variadic_macros_gcc="no"
28364
28365fi
28366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28367
28368fi
28369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28370$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28371 case "$curl_cv_variadic_macros_gcc" in
28372 yes)
28373
28374cat >>confdefs.h <<_ACEOF
28375#define HAVE_VARIADIC_MACROS_GCC 1
28376_ACEOF
28377
28378 ;;
28379 esac
28380
28381ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28382if test "x$ac_cv_type_size_t" = xyes; then :
28383
28384else
28385
28386cat >>confdefs.h <<_ACEOF
28387#define size_t unsigned int
28388_ACEOF
28389
28390fi
28391
28392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28393$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28394if ${ac_cv_header_time+:} false; then :
28395 $as_echo_n "(cached) " >&6
28396else
28397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28398/* end confdefs.h. */
28399#include <sys/types.h>
28400#include <sys/time.h>
28401#include <time.h>
28402
28403int main (void)
28404{
28405if ((struct tm *) 0)
28406return 0;
28407 ;
28408 return 0;
28409}
28410_ACEOF
28411if ac_fn_c_try_compile "$LINENO"; then :
28412 ac_cv_header_time=yes
28413else
28414 ac_cv_header_time=no
28415fi
28416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417fi
28418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28419$as_echo "$ac_cv_header_time" >&6; }
28420if test $ac_cv_header_time = yes; then
28421
28422$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28423
28424fi
28425
28426
28427 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28428do :
28429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28430ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28431if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28432 cat >>confdefs.h <<_ACEOF
28433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28434_ACEOF
28435
28436fi
28437
28438done
28439
28440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28441$as_echo_n "checking for struct timeval... " >&6; }
28442if ${curl_cv_struct_timeval+:} false; then :
28443 $as_echo_n "(cached) " >&6
28444else
28445
28446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28447/* end confdefs.h. */
28448
28449
28450#undef inline
28451#ifdef HAVE_WINDOWS_H
28452#ifndef WIN32_LEAN_AND_MEAN
28453#define WIN32_LEAN_AND_MEAN
28454#endif
28455#include <windows.h>
28456#ifdef HAVE_WINSOCK2_H
28457#include <winsock2.h>
28458#else
28459#ifdef HAVE_WINSOCK_H
28460#include <winsock.h>
28461#endif
28462#endif
28463#endif
28464#ifdef HAVE_SYS_TYPES_H
28465#include <sys/types.h>
28466#endif
28467#ifdef HAVE_SYS_TIME_H
28468#include <sys/time.h>
28469#ifdef TIME_WITH_SYS_TIME
28470#include <time.h>
28471#endif
28472#else
28473#ifdef HAVE_TIME_H
28474#include <time.h>
28475#endif
28476#endif
28477#ifdef HAVE_SYS_SOCKET_H
28478#include <sys/socket.h>
28479#endif
28480
28481int main (void)
28482{
28483
28484 struct timeval ts;
28485 ts.tv_sec = 0;
28486 ts.tv_usec = 0;
28487
28488 ;
28489 return 0;
28490}
28491
28492_ACEOF
28493if ac_fn_c_try_compile "$LINENO"; then :
28494
28495 curl_cv_struct_timeval="yes"
28496
28497else
28498
28499 curl_cv_struct_timeval="no"
28500
28501fi
28502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28503
28504fi
28505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28506$as_echo "$curl_cv_struct_timeval" >&6; }
28507 case "$curl_cv_struct_timeval" in
28508 yes)
28509
28510cat >>confdefs.h <<_ACEOF
28511#define HAVE_STRUCT_TIMEVAL 1
28512_ACEOF
28513
28514 ;;
28515 esac
28516
28517
28518
28519 if test "x$cross_compiling" != xyes; then
28520
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28522$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028523
28524
28525 old=$LD_LIBRARY_PATH
28526 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28527 export LD_LIBRARY_PATH
28528 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28531as_fn_error $? "cannot run test program while cross compiling
28532See \`config.log' for more details" "$LINENO" 5; }
28533else
28534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535/* end confdefs.h. */
28536
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070028537int main()
Elliott Hughes82be86d2017-09-20 17:00:17 -070028538{
28539 return 0;
28540}
28541
28542_ACEOF
28543if ac_fn_c_try_run "$LINENO"; then :
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28545$as_echo "fine" >&6; }
28546else
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28548$as_echo "failed" >&6; }
28549 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28550
28551fi
28552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28553 conftest.$ac_objext conftest.beam conftest.$ac_ext
28554fi
28555
Elliott Hughes72d948d2018-08-03 14:37:21 -070028556 LD_LIBRARY_PATH=$old # restore
28557
Elliott Hughes82be86d2017-09-20 17:00:17 -070028558
28559 fi
28560
28561
Elliott Hughes82be86d2017-09-20 17:00:17 -070028562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28563$as_echo_n "checking size of size_t... " >&6; }
28564if ${ac_cv_sizeof_size_t+:} false; then :
28565 $as_echo_n "(cached) " >&6
28566else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028567 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28569/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028570
Elliott Hughes72d948d2018-08-03 14:37:21 -070028571#include <sys/types.h>
28572
28573
28574int main (void)
28575{
28576switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28577 ;
28578 return 0;
28579}
28580_ACEOF
28581if ac_fn_c_try_compile "$LINENO"; then :
28582 ac_cv_sizeof_size_t=$ac_size
28583fi
28584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28585 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28586done
28587
Elliott Hughes82be86d2017-09-20 17:00:17 -070028588fi
28589
Elliott Hughes72d948d2018-08-03 14:37:21 -070028590if test x$ac_cv_sizeof_size_t = x ; then
28591 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028592fi
28593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28594$as_echo "$ac_cv_sizeof_size_t" >&6; }
28595
Elliott Hughes82be86d2017-09-20 17:00:17 -070028596cat >>confdefs.h <<_ACEOF
28597#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28598_ACEOF
28599
28600
Elliott Hughes82be86d2017-09-20 17:00:17 -070028601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28602$as_echo_n "checking size of long... " >&6; }
28603if ${ac_cv_sizeof_long+:} false; then :
28604 $as_echo_n "(cached) " >&6
28605else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028606 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28608/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028609
Elliott Hughes72d948d2018-08-03 14:37:21 -070028610#include <sys/types.h>
28611
28612
28613int main (void)
28614{
28615switch (0) case 0: case (sizeof (long) == $ac_size):;
28616 ;
28617 return 0;
28618}
28619_ACEOF
28620if ac_fn_c_try_compile "$LINENO"; then :
28621 ac_cv_sizeof_long=$ac_size
28622fi
28623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28624 if test x$ac_cv_sizeof_long != x ; then break; fi
28625done
28626
Elliott Hughes82be86d2017-09-20 17:00:17 -070028627fi
28628
Elliott Hughes72d948d2018-08-03 14:37:21 -070028629if test x$ac_cv_sizeof_long = x ; then
28630 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028631fi
28632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28633$as_echo "$ac_cv_sizeof_long" >&6; }
28634
Elliott Hughes82be86d2017-09-20 17:00:17 -070028635cat >>confdefs.h <<_ACEOF
28636#define SIZEOF_LONG $ac_cv_sizeof_long
28637_ACEOF
28638
28639
Elliott Hughes82be86d2017-09-20 17:00:17 -070028640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28641$as_echo_n "checking size of int... " >&6; }
28642if ${ac_cv_sizeof_int+:} false; then :
28643 $as_echo_n "(cached) " >&6
28644else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028645 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28647/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028648
Elliott Hughes72d948d2018-08-03 14:37:21 -070028649#include <sys/types.h>
28650
28651
28652int main (void)
28653{
28654switch (0) case 0: case (sizeof (int) == $ac_size):;
28655 ;
28656 return 0;
28657}
28658_ACEOF
28659if ac_fn_c_try_compile "$LINENO"; then :
28660 ac_cv_sizeof_int=$ac_size
28661fi
28662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28663 if test x$ac_cv_sizeof_int != x ; then break; fi
28664done
28665
Elliott Hughes82be86d2017-09-20 17:00:17 -070028666fi
28667
Elliott Hughes72d948d2018-08-03 14:37:21 -070028668if test x$ac_cv_sizeof_int = x ; then
28669 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028670fi
28671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28672$as_echo "$ac_cv_sizeof_int" >&6; }
28673
Elliott Hughes82be86d2017-09-20 17:00:17 -070028674cat >>confdefs.h <<_ACEOF
28675#define SIZEOF_INT $ac_cv_sizeof_int
28676_ACEOF
28677
28678
Elliott Hughes82be86d2017-09-20 17:00:17 -070028679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28680$as_echo_n "checking size of short... " >&6; }
28681if ${ac_cv_sizeof_short+:} false; then :
28682 $as_echo_n "(cached) " >&6
28683else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028684 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28686/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028687
Elliott Hughes72d948d2018-08-03 14:37:21 -070028688#include <sys/types.h>
28689
28690
28691int main (void)
28692{
28693switch (0) case 0: case (sizeof (short) == $ac_size):;
28694 ;
28695 return 0;
28696}
28697_ACEOF
28698if ac_fn_c_try_compile "$LINENO"; then :
28699 ac_cv_sizeof_short=$ac_size
28700fi
28701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28702 if test x$ac_cv_sizeof_short != x ; then break; fi
28703done
28704
Elliott Hughes82be86d2017-09-20 17:00:17 -070028705fi
28706
Elliott Hughes72d948d2018-08-03 14:37:21 -070028707if test x$ac_cv_sizeof_short = x ; then
28708 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028709fi
28710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28711$as_echo "$ac_cv_sizeof_short" >&6; }
28712
Elliott Hughes82be86d2017-09-20 17:00:17 -070028713cat >>confdefs.h <<_ACEOF
28714#define SIZEOF_SHORT $ac_cv_sizeof_short
28715_ACEOF
28716
28717
Elliott Hughes82be86d2017-09-20 17:00:17 -070028718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28719$as_echo_n "checking size of time_t... " >&6; }
28720if ${ac_cv_sizeof_time_t+:} false; then :
28721 $as_echo_n "(cached) " >&6
28722else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028723 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28725/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028726
Elliott Hughes72d948d2018-08-03 14:37:21 -070028727#include <sys/types.h>
28728
28729
28730int main (void)
28731{
28732switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28733 ;
28734 return 0;
28735}
28736_ACEOF
28737if ac_fn_c_try_compile "$LINENO"; then :
28738 ac_cv_sizeof_time_t=$ac_size
28739fi
28740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28741 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28742done
28743
Elliott Hughes82be86d2017-09-20 17:00:17 -070028744fi
28745
Elliott Hughes72d948d2018-08-03 14:37:21 -070028746if test x$ac_cv_sizeof_time_t = x ; then
28747 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028748fi
28749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28750$as_echo "$ac_cv_sizeof_time_t" >&6; }
28751
Elliott Hughes82be86d2017-09-20 17:00:17 -070028752cat >>confdefs.h <<_ACEOF
28753#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28754_ACEOF
28755
28756
Elliott Hughes82be86d2017-09-20 17:00:17 -070028757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28758$as_echo_n "checking size of off_t... " >&6; }
28759if ${ac_cv_sizeof_off_t+:} false; then :
28760 $as_echo_n "(cached) " >&6
28761else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028762 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28764/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028765
Elliott Hughes72d948d2018-08-03 14:37:21 -070028766#include <sys/types.h>
28767
28768
28769int main (void)
28770{
28771switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28772 ;
28773 return 0;
28774}
28775_ACEOF
28776if ac_fn_c_try_compile "$LINENO"; then :
28777 ac_cv_sizeof_off_t=$ac_size
28778fi
28779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28780 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28781done
28782
Elliott Hughes82be86d2017-09-20 17:00:17 -070028783fi
28784
Elliott Hughes72d948d2018-08-03 14:37:21 -070028785if test x$ac_cv_sizeof_off_t = x ; then
28786 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028787fi
28788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28789$as_echo "$ac_cv_sizeof_off_t" >&6; }
28790
Elliott Hughes82be86d2017-09-20 17:00:17 -070028791cat >>confdefs.h <<_ACEOF
28792#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28793_ACEOF
28794
28795
28796
Alex Deymo486467e2017-12-19 19:04:07 +010028797o=$CPPFLAGS
28798CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28800$as_echo_n "checking size of curl_off_t... " >&6; }
28801if ${ac_cv_sizeof_curl_off_t+:} false; then :
28802 $as_echo_n "(cached) " >&6
28803else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028804 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28806/* end confdefs.h. */
28807
28808#include <sys/types.h>
28809
Alex Deymo486467e2017-12-19 19:04:07 +010028810#include <curl/system.h>
28811
Alex Deymo486467e2017-12-19 19:04:07 +010028812
Elliott Hughes72d948d2018-08-03 14:37:21 -070028813int main (void)
28814{
28815switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28816 ;
28817 return 0;
28818}
28819_ACEOF
28820if ac_fn_c_try_compile "$LINENO"; then :
28821 ac_cv_sizeof_curl_off_t=$ac_size
28822fi
28823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28824 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28825done
28826
Elliott Hughes82be86d2017-09-20 17:00:17 -070028827fi
28828
Elliott Hughes72d948d2018-08-03 14:37:21 -070028829if test x$ac_cv_sizeof_curl_off_t = x ; then
28830 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028831fi
28832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28833$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28834
Alex Deymo486467e2017-12-19 19:04:07 +010028835cat >>confdefs.h <<_ACEOF
28836#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28837_ACEOF
28838
28839
28840CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028841
28842ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28843if test "x$ac_cv_type_long_long" = xyes; then :
28844
28845$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28846
28847 longlong="yes"
28848
28849fi
28850
28851
28852if test "xyes" = "x$longlong"; then
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28854$as_echo_n "checking if numberLL works... " >&6; }
28855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28856/* end confdefs.h. */
28857
28858
28859
28860int main (void)
28861{
28862
28863 long long val = 1000LL;
28864
28865 ;
28866 return 0;
28867}
28868
28869_ACEOF
28870if ac_fn_c_try_compile "$LINENO"; then :
28871
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28873$as_echo "yes" >&6; }
28874
28875$as_echo "#define HAVE_LL 1" >>confdefs.h
28876
28877
28878else
28879
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28881$as_echo "no" >&6; }
28882
28883fi
28884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28885fi
28886
28887
28888# check for ssize_t
28889ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28890if test "x$ac_cv_type_ssize_t" = xyes; then :
28891
28892else
28893
28894$as_echo "#define ssize_t int" >>confdefs.h
28895
28896fi
28897
28898
28899# check for bool type
28900ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28901#ifdef HAVE_SYS_TYPES_H
28902#include <sys/types.h>
28903#endif
28904#ifdef HAVE_STDBOOL_H
28905#include <stdbool.h>
28906#endif
28907
28908"
28909if test "x$ac_cv_type_bool" = xyes; then :
28910
28911
28912$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28913
28914
28915fi
28916
28917
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028918# check for sa_family_t
28919ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
28920#ifdef HAVE_SYS_SOCKET_H
28921#include <sys/socket.h>
28922#endif
28923
28924"
28925if test "x$ac_cv_type_sa_family_t" = xyes; then :
28926
28927$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
28928
28929else
28930
28931 # The windows name?
28932 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
28933#ifdef HAVE_SYS_SOCKET_H
28934#include <sys/socket.h>
28935#endif
28936
28937"
28938if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
28939
28940$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
28941
28942else
28943
28944$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
28945
28946fi
28947
28948
28949fi
28950
28951
Elliott Hughescac39802018-04-27 16:19:43 -070028952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28953$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070028954
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028955
28956 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070028957 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28958 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028959 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28961$as_echo "no" >&6; }
28962
28963else
28964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28965/* end confdefs.h. */
28966
Elliott Hughescac39802018-04-27 16:19:43 -070028967 #include <time.h>
28968 #include <limits.h>
28969 time_t t = -1;
28970 return (t > 0);
28971
28972_ACEOF
28973if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28975$as_echo "yes" >&6; }
28976
28977$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28978
28979
28980else
Elliott Hughescac39802018-04-27 16:19:43 -070028981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28982$as_echo "no" >&6; }
28983
28984fi
28985rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28986 conftest.$ac_objext conftest.beam conftest.$ac_ext
28987fi
28988
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028989 LD_LIBRARY_PATH=$old # restore
28990
Elliott Hughescac39802018-04-27 16:19:43 -070028991
Elliott Hughes82be86d2017-09-20 17:00:17 -070028992
Elliott Hughes82be86d2017-09-20 17:00:17 -070028993curl_includes_poll="\
28994/* includes start */
28995#ifdef HAVE_SYS_TYPES_H
28996# include <sys/types.h>
28997#endif
28998#ifdef HAVE_POLL_H
28999# include <poll.h>
29000#endif
29001#ifdef HAVE_SYS_POLL_H
29002# include <sys/poll.h>
29003#endif
29004/* includes end */"
29005 for ac_header in sys/types.h poll.h sys/poll.h
29006do :
29007 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29008ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29009"
29010if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29011 cat >>confdefs.h <<_ACEOF
29012#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29013_ACEOF
29014
29015fi
29016
29017done
29018
29019
29020
29021 #
29022 tst_poll_events_macro_defined="unknown"
29023 #
29024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29025/* end confdefs.h. */
29026
29027
29028 $curl_includes_poll
29029
29030int main (void)
29031{
29032
29033#if defined(events) || defined(revents)
29034 return 0;
29035#else
29036 force compilation error
29037#endif
29038
29039 ;
29040 return 0;
29041}
29042
29043_ACEOF
29044if ac_fn_c_try_compile "$LINENO"; then :
29045
29046 tst_poll_events_macro_defined="yes"
29047
29048else
29049
29050 tst_poll_events_macro_defined="no"
29051
29052fi
29053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29054 #
29055 if test "$tst_poll_events_macro_defined" = "yes"; then
29056 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29057
29058cat >>confdefs.h <<_EOF
29059#define CURL_PULL_SYS_POLL_H 1
29060_EOF
29061
29062 fi
29063 fi
29064 #
29065
29066
29067
29068 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29069#undef inline
29070#ifdef HAVE_WINDOWS_H
29071#ifndef WIN32_LEAN_AND_MEAN
29072#define WIN32_LEAN_AND_MEAN
29073#endif
29074#include <windows.h>
29075#ifdef HAVE_WINSOCK2_H
29076#include <winsock2.h>
29077#else
29078#ifdef HAVE_WINSOCK_H
29079#include <winsock.h>
29080#endif
29081#endif
29082#else
29083#ifdef HAVE_SYS_TYPES_H
29084#include <sys/types.h>
29085#endif
29086#ifdef HAVE_SYS_SOCKET_H
29087#include <sys/socket.h>
29088#endif
29089#ifdef HAVE_NETINET_IN_H
29090#include <netinet/in.h>
29091#endif
29092#ifdef HAVE_ARPA_INET_H
29093#include <arpa/inet.h>
29094#endif
29095#endif
29096
29097"
29098if test "x$ac_cv_type_in_addr_t" = xyes; then :
29099
29100else
29101
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29103$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29104if ${curl_cv_in_addr_t_equiv+:} false; then :
29105 $as_echo_n "(cached) " >&6
29106else
29107
29108 curl_cv_in_addr_t_equiv="unknown"
29109 for t in "unsigned long" int size_t unsigned long; do
29110 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29112/* end confdefs.h. */
29113
29114
29115#undef inline
29116#ifdef HAVE_WINDOWS_H
29117#ifndef WIN32_LEAN_AND_MEAN
29118#define WIN32_LEAN_AND_MEAN
29119#endif
29120#include <windows.h>
29121#ifdef HAVE_WINSOCK2_H
29122#include <winsock2.h>
29123#else
29124#ifdef HAVE_WINSOCK_H
29125#include <winsock.h>
29126#endif
29127#endif
29128#else
29129#ifdef HAVE_SYS_TYPES_H
29130#include <sys/types.h>
29131#endif
29132#ifdef HAVE_SYS_SOCKET_H
29133#include <sys/socket.h>
29134#endif
29135#ifdef HAVE_NETINET_IN_H
29136#include <netinet/in.h>
29137#endif
29138#ifdef HAVE_ARPA_INET_H
29139#include <arpa/inet.h>
29140#endif
29141#endif
29142
29143int main (void)
29144{
29145
29146 $t data = inet_addr ("1.2.3.4");
29147
29148 ;
29149 return 0;
29150}
29151
29152_ACEOF
29153if ac_fn_c_try_link "$LINENO"; then :
29154
29155 curl_cv_in_addr_t_equiv="$t"
29156
29157fi
29158rm -f core conftest.err conftest.$ac_objext \
29159 conftest$ac_exeext conftest.$ac_ext
29160 fi
29161 done
29162
29163fi
29164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29165$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29166 case "$curl_cv_in_addr_t_equiv" in
29167 unknown)
29168 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29169 ;;
29170 *)
29171
29172cat >>confdefs.h <<_ACEOF
29173#define in_addr_t $curl_cv_in_addr_t_equiv
29174_ACEOF
29175
29176 ;;
29177 esac
29178
29179fi
29180
29181
29182
29183
29184 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29185#undef inline
29186#ifdef HAVE_WINDOWS_H
29187#ifndef WIN32_LEAN_AND_MEAN
29188#define WIN32_LEAN_AND_MEAN
29189#endif
29190#include <windows.h>
29191#ifdef HAVE_WINSOCK2_H
29192#include <winsock2.h>
29193#endif
29194#else
29195#ifdef HAVE_SYS_TYPES_H
29196#include <sys/types.h>
29197#endif
29198#ifdef HAVE_SYS_SOCKET_H
29199#include <sys/socket.h>
29200#endif
29201#ifdef HAVE_NETINET_IN_H
29202#include <netinet/in.h>
29203#endif
29204#ifdef HAVE_ARPA_INET_H
29205#include <arpa/inet.h>
29206#endif
29207#endif
29208
29209"
29210if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29211
29212$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29213
29214fi
29215
29216
29217
29218
29219 for ac_header in signal.h
29220do :
29221 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29222if test "x$ac_cv_header_signal_h" = xyes; then :
29223 cat >>confdefs.h <<_ACEOF
29224#define HAVE_SIGNAL_H 1
29225_ACEOF
29226
29227fi
29228
29229done
29230
29231 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29232#ifdef HAVE_SIGNAL_H
29233#include <signal.h>
29234#endif
29235
29236"
29237if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29238
29239
29240$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29241
29242
29243fi
29244
29245 case "$ac_cv_type_sig_atomic_t" in
29246 yes)
29247 #
29248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29249$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29251/* end confdefs.h. */
29252
29253
29254#ifdef HAVE_SIGNAL_H
29255#include <signal.h>
29256#endif
29257
29258int main (void)
29259{
29260
29261 static volatile sig_atomic_t dummy = 0;
29262
29263 ;
29264 return 0;
29265}
29266
29267_ACEOF
29268if ac_fn_c_try_link "$LINENO"; then :
29269
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29271$as_echo "no" >&6; }
29272 curl_cv_sig_atomic_t_volatile="no"
29273
29274else
29275
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29277$as_echo "yes" >&6; }
29278 curl_cv_sig_atomic_t_volatile="yes"
29279
29280fi
29281rm -f core conftest.err conftest.$ac_objext \
29282 conftest$ac_exeext conftest.$ac_ext
29283 #
29284 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29285
29286$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29287
29288 fi
29289 ;;
29290 esac
29291
29292
29293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29294$as_echo_n "checking return type of signal handlers... " >&6; }
29295if ${ac_cv_type_signal+:} false; then :
29296 $as_echo_n "(cached) " >&6
29297else
29298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29299/* end confdefs.h. */
29300#include <sys/types.h>
29301#include <signal.h>
29302
29303int main (void)
29304{
29305return *(signal (0, 0)) (0) == 1;
29306 ;
29307 return 0;
29308}
29309_ACEOF
29310if ac_fn_c_try_compile "$LINENO"; then :
29311 ac_cv_type_signal=int
29312else
29313 ac_cv_type_signal=void
29314fi
29315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29316fi
29317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29318$as_echo "$ac_cv_type_signal" >&6; }
29319
29320cat >>confdefs.h <<_ACEOF
29321#define RETSIGTYPE $ac_cv_type_signal
29322_ACEOF
29323
29324
29325
29326
29327 for ac_header in sys/select.h sys/socket.h
29328do :
29329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29330ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29331if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29332 cat >>confdefs.h <<_ACEOF
29333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29334_ACEOF
29335
29336fi
29337
29338done
29339
29340 #
29341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29342$as_echo_n "checking for select... " >&6; }
29343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29344/* end confdefs.h. */
29345
29346
29347#undef inline
29348#ifdef HAVE_WINDOWS_H
29349#ifndef WIN32_LEAN_AND_MEAN
29350#define WIN32_LEAN_AND_MEAN
29351#endif
29352#include <windows.h>
29353#ifdef HAVE_WINSOCK2_H
29354#include <winsock2.h>
29355#else
29356#ifdef HAVE_WINSOCK_H
29357#include <winsock.h>
29358#endif
29359#endif
29360#endif
29361#ifdef HAVE_SYS_TYPES_H
29362#include <sys/types.h>
29363#endif
29364#ifdef HAVE_SYS_TIME_H
29365#include <sys/time.h>
29366#ifdef TIME_WITH_SYS_TIME
29367#include <time.h>
29368#endif
29369#else
29370#ifdef HAVE_TIME_H
29371#include <time.h>
29372#endif
29373#endif
29374#ifndef HAVE_WINDOWS_H
Haibo Huang65021c72019-03-27 15:37:23 -070029375#ifdef HAVE_PROTO_BSDSOCKET_H
29376#include <proto/bsdsocket.h>
29377struct Library *SocketBase = NULL;
29378#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
29379#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029380#ifdef HAVE_SYS_SELECT_H
29381#include <sys/select.h>
29382#endif
29383#ifdef HAVE_SYS_SOCKET_H
29384#include <sys/socket.h>
29385#endif
29386#endif
29387
29388int main (void)
29389{
29390
29391 select(0, 0, 0, 0, 0);
29392
29393 ;
29394 return 0;
29395}
29396
29397_ACEOF
29398if ac_fn_c_try_link "$LINENO"; then :
29399
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29401$as_echo "yes" >&6; }
29402 curl_cv_select="yes"
29403
29404else
29405
29406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29407$as_echo "no" >&6; }
29408 curl_cv_select="no"
29409
29410fi
29411rm -f core conftest.err conftest.$ac_objext \
29412 conftest$ac_exeext conftest.$ac_ext
29413 #
29414 if test "$curl_cv_select" = "yes"; then
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29416$as_echo_n "checking types of args and return type for select... " >&6; }
29417if ${curl_cv_func_select_args+:} false; then :
29418 $as_echo_n "(cached) " >&6
29419else
29420
29421 curl_cv_func_select_args="unknown"
29422 for sel_retv in 'int' 'ssize_t'; do
29423 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29424 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29425 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29426 if test "$curl_cv_func_select_args" = "unknown"; then
29427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29428/* end confdefs.h. */
29429
29430
29431#undef inline
29432#ifdef HAVE_WINDOWS_H
29433#ifndef WIN32_LEAN_AND_MEAN
29434#define WIN32_LEAN_AND_MEAN
29435#endif
29436#include <windows.h>
29437#ifdef HAVE_WINSOCK2_H
29438#include <winsock2.h>
29439#else
29440#ifdef HAVE_WINSOCK_H
29441#include <winsock.h>
29442#endif
29443#endif
29444#define SELECTCALLCONV PASCAL
29445#endif
29446#ifdef HAVE_SYS_TYPES_H
29447#include <sys/types.h>
29448#endif
29449#ifdef HAVE_SYS_TIME_H
29450#include <sys/time.h>
29451#ifdef TIME_WITH_SYS_TIME
29452#include <time.h>
29453#endif
29454#else
29455#ifdef HAVE_TIME_H
29456#include <time.h>
29457#endif
29458#endif
29459#ifndef HAVE_WINDOWS_H
Haibo Huang65021c72019-03-27 15:37:23 -070029460#ifdef HAVE_PROTO_BSDSOCKET_H
29461#include <proto/bsdsocket.h>
29462struct Library *SocketBase = NULL;
29463#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
29464#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029465#ifdef HAVE_SYS_SELECT_H
29466#include <sys/select.h>
29467#endif
29468#ifdef HAVE_SYS_SOCKET_H
29469#include <sys/socket.h>
29470#endif
29471#define SELECTCALLCONV
29472#endif
29473#ifndef HAVE_STRUCT_TIMEVAL
29474 struct timeval {
29475 long tv_sec;
29476 long tv_usec;
29477 };
29478#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029479#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029480 extern $sel_retv SELECTCALLCONV
Haibo Huang51d9d882019-02-06 01:36:06 -080029481 select($sel_arg1,
Elliott Hughes82be86d2017-09-20 17:00:17 -070029482 $sel_arg234,
29483 $sel_arg234,
29484 $sel_arg234,
29485 $sel_arg5);
Haibo Huang65021c72019-03-27 15:37:23 -070029486#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029487
29488int main (void)
29489{
29490
29491 $sel_arg1 nfds=0;
29492 $sel_arg234 rfds=0;
29493 $sel_arg234 wfds=0;
29494 $sel_arg234 efds=0;
29495 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29496
29497 ;
29498 return 0;
29499}
29500
29501_ACEOF
29502if ac_fn_c_try_compile "$LINENO"; then :
29503
29504 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29505
29506fi
29507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29508 fi
29509 done
29510 done
29511 done
29512 done
29513
29514fi
29515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29516$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29517 if test "$curl_cv_func_select_args" = "unknown"; then
29518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29519$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29521$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29522 else
29523 select_prev_IFS=$IFS; IFS=','
29524 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29525 IFS=$select_prev_IFS
29526 shift
29527 #
29528 sel_qual_type_arg5=$3
29529 #
29530
29531cat >>confdefs.h <<_ACEOF
29532#define SELECT_TYPE_ARG1 $1
29533_ACEOF
29534
29535
29536cat >>confdefs.h <<_ACEOF
29537#define SELECT_TYPE_ARG234 $2
29538_ACEOF
29539
29540
29541cat >>confdefs.h <<_ACEOF
29542#define SELECT_TYPE_RETV $4
29543_ACEOF
29544
29545 #
29546 prev_sh_opts=$-
29547 #
29548 case $prev_sh_opts in
29549 *f*)
29550 ;;
29551 *)
29552 set -f
29553 ;;
29554 esac
29555 #
29556 case "$sel_qual_type_arg5" in
29557 const*)
29558 sel_qual_arg5=const
29559 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29560 ;;
29561 *)
29562 sel_qual_arg5=
29563 sel_type_arg5=$sel_qual_type_arg5
29564 ;;
29565 esac
29566 #
29567
29568cat >>confdefs.h <<_ACEOF
29569#define SELECT_QUAL_ARG5 $sel_qual_arg5
29570_ACEOF
29571
29572
29573cat >>confdefs.h <<_ACEOF
29574#define SELECT_TYPE_ARG5 $sel_type_arg5
29575_ACEOF
29576
29577 #
29578 case $prev_sh_opts in
29579 *f*)
29580 ;;
29581 *)
29582 set +f
29583 ;;
29584 esac
29585 #
29586
29587cat >>confdefs.h <<_ACEOF
29588#define HAVE_SELECT 1
29589_ACEOF
29590
29591 curl_cv_func_select="yes"
29592 fi
29593 fi
29594
29595
29596
29597 for ac_header in sys/types.h sys/socket.h
29598do :
29599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29600ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29601if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29602 cat >>confdefs.h <<_ACEOF
29603#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29604_ACEOF
29605
29606fi
29607
29608done
29609
29610 #
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29612$as_echo_n "checking for recv... " >&6; }
29613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29614/* end confdefs.h. */
29615
29616
29617#undef inline
29618#ifdef HAVE_WINDOWS_H
29619#ifndef WIN32_LEAN_AND_MEAN
29620#define WIN32_LEAN_AND_MEAN
29621#endif
29622#include <windows.h>
29623#ifdef HAVE_WINSOCK2_H
29624#include <winsock2.h>
29625#else
29626#ifdef HAVE_WINSOCK_H
29627#include <winsock.h>
29628#endif
29629#endif
29630#else
Haibo Huang65021c72019-03-27 15:37:23 -070029631#ifdef HAVE_PROTO_BSDSOCKET_H
29632#include <proto/bsdsocket.h>
29633struct Library *SocketBase = NULL;
29634#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029635#ifdef HAVE_SYS_TYPES_H
29636#include <sys/types.h>
29637#endif
29638#ifdef HAVE_SYS_SOCKET_H
29639#include <sys/socket.h>
29640#endif
29641#endif
29642
29643int main (void)
29644{
29645
29646 recv(0, 0, 0, 0);
29647
29648 ;
29649 return 0;
29650}
29651
29652_ACEOF
29653if ac_fn_c_try_link "$LINENO"; then :
29654
29655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29656$as_echo "yes" >&6; }
29657 curl_cv_recv="yes"
29658
29659else
29660
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29662$as_echo "no" >&6; }
29663 curl_cv_recv="no"
29664
29665fi
29666rm -f core conftest.err conftest.$ac_objext \
29667 conftest$ac_exeext conftest.$ac_ext
29668 #
29669 if test "$curl_cv_recv" = "yes"; then
29670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29671$as_echo_n "checking types of args and return type for recv... " >&6; }
29672if ${curl_cv_func_recv_args+:} false; then :
29673 $as_echo_n "(cached) " >&6
29674else
29675
29676 curl_cv_func_recv_args="unknown"
29677 for recv_retv in 'int' 'ssize_t'; do
29678 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29679 for recv_arg2 in 'char *' 'void *'; do
29680 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29681 for recv_arg4 in 'int' 'unsigned int'; do
29682 if test "$curl_cv_func_recv_args" = "unknown"; then
29683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29684/* end confdefs.h. */
29685
29686
29687#undef inline
29688#ifdef HAVE_WINDOWS_H
29689#ifndef WIN32_LEAN_AND_MEAN
29690#define WIN32_LEAN_AND_MEAN
29691#endif
29692#include <windows.h>
29693#ifdef HAVE_WINSOCK2_H
29694#include <winsock2.h>
29695#else
29696#ifdef HAVE_WINSOCK_H
29697#include <winsock.h>
29698#endif
29699#endif
29700#define RECVCALLCONV PASCAL
29701#else
Haibo Huang65021c72019-03-27 15:37:23 -070029702#ifdef HAVE_PROTO_BSDSOCKET_H
29703#include <proto/bsdsocket.h>
29704struct Library *SocketBase = NULL;
29705#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029706#ifdef HAVE_SYS_TYPES_H
29707#include <sys/types.h>
29708#endif
29709#ifdef HAVE_SYS_SOCKET_H
29710#include <sys/socket.h>
29711#endif
29712#define RECVCALLCONV
29713#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029714#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029715 extern $recv_retv RECVCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070029716 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
Haibo Huang65021c72019-03-27 15:37:23 -070029717#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029718
29719int main (void)
29720{
29721
29722 $recv_arg1 s=0;
29723 $recv_arg2 buf=0;
29724 $recv_arg3 len=0;
29725 $recv_arg4 flags=0;
29726 $recv_retv res = recv(s, buf, len, flags);
29727
29728 ;
29729 return 0;
29730}
29731
29732_ACEOF
29733if ac_fn_c_try_compile "$LINENO"; then :
29734
29735 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29736
29737fi
29738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29739 fi
29740 done
29741 done
29742 done
29743 done
29744 done
29745
29746fi
29747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29748$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29749 if test "$curl_cv_func_recv_args" = "unknown"; then
29750 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29751 else
29752 recv_prev_IFS=$IFS; IFS=','
29753 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29754 IFS=$recv_prev_IFS
29755 shift
29756 #
29757
29758cat >>confdefs.h <<_ACEOF
29759#define RECV_TYPE_ARG1 $1
29760_ACEOF
29761
29762
29763cat >>confdefs.h <<_ACEOF
29764#define RECV_TYPE_ARG2 $2
29765_ACEOF
29766
29767
29768cat >>confdefs.h <<_ACEOF
29769#define RECV_TYPE_ARG3 $3
29770_ACEOF
29771
29772
29773cat >>confdefs.h <<_ACEOF
29774#define RECV_TYPE_ARG4 $4
29775_ACEOF
29776
29777
29778cat >>confdefs.h <<_ACEOF
29779#define RECV_TYPE_RETV $5
29780_ACEOF
29781
29782 #
29783
29784cat >>confdefs.h <<_ACEOF
29785#define HAVE_RECV 1
29786_ACEOF
29787
29788 curl_cv_func_recv="yes"
29789 fi
29790 else
29791 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29792 fi
29793
29794
29795 for ac_header in sys/types.h sys/socket.h
29796do :
29797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29798ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29799if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29800 cat >>confdefs.h <<_ACEOF
29801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29802_ACEOF
29803
29804fi
29805
29806done
29807
29808 #
29809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29810$as_echo_n "checking for send... " >&6; }
29811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29812/* end confdefs.h. */
29813
29814
29815#undef inline
29816#ifdef HAVE_WINDOWS_H
29817#ifndef WIN32_LEAN_AND_MEAN
29818#define WIN32_LEAN_AND_MEAN
29819#endif
29820#include <windows.h>
29821#ifdef HAVE_WINSOCK2_H
29822#include <winsock2.h>
29823#else
29824#ifdef HAVE_WINSOCK_H
29825#include <winsock.h>
29826#endif
29827#endif
29828#else
Haibo Huang65021c72019-03-27 15:37:23 -070029829#ifdef HAVE_PROTO_BSDSOCKET_H
29830#include <proto/bsdsocket.h>
29831struct Library *SocketBase = NULL;
29832#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029833#ifdef HAVE_SYS_TYPES_H
29834#include <sys/types.h>
29835#endif
29836#ifdef HAVE_SYS_SOCKET_H
29837#include <sys/socket.h>
29838#endif
29839#endif
29840
29841int main (void)
29842{
29843
29844 send(0, 0, 0, 0);
29845
29846 ;
29847 return 0;
29848}
29849
29850_ACEOF
29851if ac_fn_c_try_link "$LINENO"; then :
29852
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854$as_echo "yes" >&6; }
29855 curl_cv_send="yes"
29856
29857else
29858
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860$as_echo "no" >&6; }
29861 curl_cv_send="no"
29862
29863fi
29864rm -f core conftest.err conftest.$ac_objext \
29865 conftest$ac_exeext conftest.$ac_ext
29866 #
29867 if test "$curl_cv_send" = "yes"; then
29868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29869$as_echo_n "checking types of args and return type for send... " >&6; }
29870if ${curl_cv_func_send_args+:} false; then :
29871 $as_echo_n "(cached) " >&6
29872else
29873
29874 curl_cv_func_send_args="unknown"
29875 for send_retv in 'int' 'ssize_t'; do
29876 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29877 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29878 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29879 for send_arg4 in 'int' 'unsigned int'; do
29880 if test "$curl_cv_func_send_args" = "unknown"; then
29881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29882/* end confdefs.h. */
29883
29884
29885#undef inline
29886#ifdef HAVE_WINDOWS_H
29887#ifndef WIN32_LEAN_AND_MEAN
29888#define WIN32_LEAN_AND_MEAN
29889#endif
29890#include <windows.h>
29891#ifdef HAVE_WINSOCK2_H
29892#include <winsock2.h>
29893#else
29894#ifdef HAVE_WINSOCK_H
29895#include <winsock.h>
29896#endif
29897#endif
29898#define SENDCALLCONV PASCAL
29899#else
Haibo Huang65021c72019-03-27 15:37:23 -070029900#ifdef HAVE_PROTO_BSDSOCKET_H
29901#include <proto/bsdsocket.h>
29902struct Library *SocketBase = NULL;
29903#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029904#ifdef HAVE_SYS_TYPES_H
29905#include <sys/types.h>
29906#endif
29907#ifdef HAVE_SYS_SOCKET_H
29908#include <sys/socket.h>
29909#endif
29910#define SENDCALLCONV
29911#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029912#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029913 extern $send_retv SENDCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070029914 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
Haibo Huang65021c72019-03-27 15:37:23 -070029915#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029916
29917int main (void)
29918{
29919
29920 $send_arg1 s=0;
29921 $send_arg3 len=0;
29922 $send_arg4 flags=0;
29923 $send_retv res = send(s, 0, len, flags);
29924
29925 ;
29926 return 0;
29927}
29928
29929_ACEOF
29930if ac_fn_c_try_compile "$LINENO"; then :
29931
29932 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29933
29934fi
29935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29936 fi
29937 done
29938 done
29939 done
29940 done
29941 done
29942
29943fi
29944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29945$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29946 if test "$curl_cv_func_send_args" = "unknown"; then
29947 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29948 else
29949 send_prev_IFS=$IFS; IFS=','
29950 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29951 IFS=$send_prev_IFS
29952 shift
29953 #
29954 send_qual_type_arg2=$2
29955 #
29956
29957cat >>confdefs.h <<_ACEOF
29958#define SEND_TYPE_ARG1 $1
29959_ACEOF
29960
29961
29962cat >>confdefs.h <<_ACEOF
29963#define SEND_TYPE_ARG3 $3
29964_ACEOF
29965
29966
29967cat >>confdefs.h <<_ACEOF
29968#define SEND_TYPE_ARG4 $4
29969_ACEOF
29970
29971
29972cat >>confdefs.h <<_ACEOF
29973#define SEND_TYPE_RETV $5
29974_ACEOF
29975
29976 #
29977 prev_sh_opts=$-
29978 #
29979 case $prev_sh_opts in
29980 *f*)
29981 ;;
29982 *)
29983 set -f
29984 ;;
29985 esac
29986 #
29987 case "$send_qual_type_arg2" in
29988 const*)
29989 send_qual_arg2=const
29990 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29991 ;;
29992 *)
29993 send_qual_arg2=
29994 send_type_arg2=$send_qual_type_arg2
29995 ;;
29996 esac
29997 #
29998
29999cat >>confdefs.h <<_ACEOF
30000#define SEND_QUAL_ARG2 $send_qual_arg2
30001_ACEOF
30002
30003
30004cat >>confdefs.h <<_ACEOF
30005#define SEND_TYPE_ARG2 $send_type_arg2
30006_ACEOF
30007
30008 #
30009 case $prev_sh_opts in
30010 *f*)
30011 ;;
30012 *)
30013 set +f
30014 ;;
30015 esac
30016 #
30017
30018cat >>confdefs.h <<_ACEOF
30019#define HAVE_SEND 1
30020_ACEOF
30021
30022 curl_cv_func_send="yes"
30023 fi
30024 else
30025 as_fn_error $? "Unable to link function send" "$LINENO" 5
30026 fi
30027
30028
30029 for ac_header in sys/types.h sys/socket.h
30030do :
30031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30032ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30033if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30034 cat >>confdefs.h <<_ACEOF
30035#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30036_ACEOF
30037
30038fi
30039
30040done
30041
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30043$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30044if ${curl_cv_msg_nosignal+:} false; then :
30045 $as_echo_n "(cached) " >&6
30046else
30047
30048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30049/* end confdefs.h. */
30050
30051
30052#undef inline
30053#ifdef HAVE_WINDOWS_H
30054#ifndef WIN32_LEAN_AND_MEAN
30055#define WIN32_LEAN_AND_MEAN
30056#endif
30057#include <windows.h>
30058#ifdef HAVE_WINSOCK2_H
30059#include <winsock2.h>
30060#else
30061#ifdef HAVE_WINSOCK_H
30062#include <winsock.h>
30063#endif
30064#endif
30065#else
Haibo Huang65021c72019-03-27 15:37:23 -070030066#ifdef HAVE_PROTO_BSDSOCKET_H
30067#include <proto/bsdsocket.h>
30068struct Library *SocketBase = NULL;
30069#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070030070#ifdef HAVE_SYS_TYPES_H
30071#include <sys/types.h>
30072#endif
30073#ifdef HAVE_SYS_SOCKET_H
30074#include <sys/socket.h>
30075#endif
30076#endif
30077
30078int main (void)
30079{
30080
30081 int flag=MSG_NOSIGNAL;
30082
30083 ;
30084 return 0;
30085}
30086
30087_ACEOF
30088if ac_fn_c_try_compile "$LINENO"; then :
30089
30090 curl_cv_msg_nosignal="yes"
30091
30092else
30093
30094 curl_cv_msg_nosignal="no"
30095
30096fi
30097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30098
30099fi
30100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30101$as_echo "$curl_cv_msg_nosignal" >&6; }
30102 case "$curl_cv_msg_nosignal" in
30103 yes)
30104
30105cat >>confdefs.h <<_ACEOF
30106#define HAVE_MSG_NOSIGNAL 1
30107_ACEOF
30108
30109 ;;
30110 esac
30111
30112
30113
30114curl_includes_unistd="\
30115/* includes start */
30116#ifdef HAVE_SYS_TYPES_H
30117# include <sys/types.h>
30118#endif
30119#ifdef HAVE_UNISTD_H
30120# include <unistd.h>
30121#endif
30122/* includes end */"
30123 for ac_header in sys/types.h unistd.h
30124do :
30125 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30126ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30127"
30128if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30129 cat >>confdefs.h <<_ACEOF
30130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30131_ACEOF
30132
30133fi
30134
30135done
30136
30137
30138
30139 #
30140 tst_links_alarm="unknown"
30141 tst_proto_alarm="unknown"
30142 tst_compi_alarm="unknown"
30143 tst_allow_alarm="unknown"
30144 #
30145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30146$as_echo_n "checking if alarm can be linked... " >&6; }
30147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30148/* end confdefs.h. */
30149
30150
30151#define alarm innocuous_alarm
30152#ifdef __STDC__
30153# include <limits.h>
30154#else
30155# include <assert.h>
30156#endif
30157#undef alarm
30158#ifdef __cplusplus
30159extern "C"
30160#endif
30161char alarm ();
30162#if defined __stub_alarm || defined __stub___alarm
30163choke me
30164#endif
30165
30166int main (void)
30167{
30168return alarm ();
30169 ;
30170 return 0;
30171}
30172
30173_ACEOF
30174if ac_fn_c_try_link "$LINENO"; then :
30175
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30177$as_echo "yes" >&6; }
30178 tst_links_alarm="yes"
30179
30180else
30181
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30183$as_echo "no" >&6; }
30184 tst_links_alarm="no"
30185
30186fi
30187rm -f core conftest.err conftest.$ac_objext \
30188 conftest$ac_exeext conftest.$ac_ext
30189 #
30190 if test "$tst_links_alarm" = "yes"; then
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30192$as_echo_n "checking if alarm is prototyped... " >&6; }
30193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30194/* end confdefs.h. */
30195
30196 $curl_includes_unistd
30197
30198_ACEOF
30199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30200 $EGREP "alarm" >/dev/null 2>&1; then :
30201
30202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30203$as_echo "yes" >&6; }
30204 tst_proto_alarm="yes"
30205
30206else
30207
30208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30209$as_echo "no" >&6; }
30210 tst_proto_alarm="no"
30211
30212fi
30213rm -f conftest*
30214
30215 fi
30216 #
30217 if test "$tst_proto_alarm" = "yes"; then
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30219$as_echo_n "checking if alarm is compilable... " >&6; }
30220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30221/* end confdefs.h. */
30222
30223
30224 $curl_includes_unistd
30225
30226int main (void)
30227{
30228
30229 if(0 != alarm(0))
30230 return 1;
30231
30232 ;
30233 return 0;
30234}
30235
30236_ACEOF
30237if ac_fn_c_try_compile "$LINENO"; then :
30238
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30240$as_echo "yes" >&6; }
30241 tst_compi_alarm="yes"
30242
30243else
30244
30245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30246$as_echo "no" >&6; }
30247 tst_compi_alarm="no"
30248
30249fi
30250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30251 fi
30252 #
30253 if test "$tst_compi_alarm" = "yes"; then
30254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30255$as_echo_n "checking if alarm usage allowed... " >&6; }
30256 if test "x$curl_disallow_alarm" != "xyes"; then
30257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30258$as_echo "yes" >&6; }
30259 tst_allow_alarm="yes"
30260 else
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30262$as_echo "no" >&6; }
30263 tst_allow_alarm="no"
30264 fi
30265 fi
30266 #
30267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30268$as_echo_n "checking if alarm might be used... " >&6; }
30269 if test "$tst_links_alarm" = "yes" &&
30270 test "$tst_proto_alarm" = "yes" &&
30271 test "$tst_compi_alarm" = "yes" &&
30272 test "$tst_allow_alarm" = "yes"; then
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30274$as_echo "yes" >&6; }
30275
30276cat >>confdefs.h <<_ACEOF
30277#define HAVE_ALARM 1
30278_ACEOF
30279
30280 curl_cv_func_alarm="yes"
30281 else
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30283$as_echo "no" >&6; }
30284 curl_cv_func_alarm="no"
30285 fi
30286
30287
30288curl_includes_string="\
30289/* includes start */
30290#ifdef HAVE_SYS_TYPES_H
30291# include <sys/types.h>
30292#endif
30293#ifdef HAVE_STRING_H
30294# include <string.h>
30295#endif
30296#ifdef HAVE_STRINGS_H
30297# include <strings.h>
30298#endif
30299/* includes end */"
30300 for ac_header in sys/types.h string.h strings.h
30301do :
30302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30303ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30304"
30305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30306 cat >>confdefs.h <<_ACEOF
30307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30308_ACEOF
30309
30310fi
30311
30312done
30313
30314
30315
30316curl_includes_libgen="\
30317/* includes start */
30318#ifdef HAVE_SYS_TYPES_H
30319# include <sys/types.h>
30320#endif
30321#ifdef HAVE_LIBGEN_H
30322# include <libgen.h>
30323#endif
30324/* includes end */"
30325 for ac_header in sys/types.h libgen.h
30326do :
30327 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30328ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30329"
30330if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30331 cat >>confdefs.h <<_ACEOF
30332#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30333_ACEOF
30334
30335fi
30336
30337done
30338
30339
30340
30341 #
30342 tst_links_basename="unknown"
30343 tst_proto_basename="unknown"
30344 tst_compi_basename="unknown"
30345 tst_allow_basename="unknown"
30346 #
30347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30348$as_echo_n "checking if basename can be linked... " >&6; }
30349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30350/* end confdefs.h. */
30351
30352
30353#define basename innocuous_basename
30354#ifdef __STDC__
30355# include <limits.h>
30356#else
30357# include <assert.h>
30358#endif
30359#undef basename
30360#ifdef __cplusplus
30361extern "C"
30362#endif
30363char basename ();
30364#if defined __stub_basename || defined __stub___basename
30365choke me
30366#endif
30367
30368int main (void)
30369{
30370return basename ();
30371 ;
30372 return 0;
30373}
30374
30375_ACEOF
30376if ac_fn_c_try_link "$LINENO"; then :
30377
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30379$as_echo "yes" >&6; }
30380 tst_links_basename="yes"
30381
30382else
30383
30384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30385$as_echo "no" >&6; }
30386 tst_links_basename="no"
30387
30388fi
30389rm -f core conftest.err conftest.$ac_objext \
30390 conftest$ac_exeext conftest.$ac_ext
30391 #
30392 if test "$tst_links_basename" = "yes"; then
30393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30394$as_echo_n "checking if basename is prototyped... " >&6; }
30395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30396/* end confdefs.h. */
30397
30398 $curl_includes_string
30399 $curl_includes_libgen
30400 $curl_includes_unistd
30401
30402_ACEOF
30403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30404 $EGREP "basename" >/dev/null 2>&1; then :
30405
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30407$as_echo "yes" >&6; }
30408 tst_proto_basename="yes"
30409
30410else
30411
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30413$as_echo "no" >&6; }
30414 tst_proto_basename="no"
30415
30416fi
30417rm -f conftest*
30418
30419 fi
30420 #
30421 if test "$tst_proto_basename" = "yes"; then
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30423$as_echo_n "checking if basename is compilable... " >&6; }
30424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30425/* end confdefs.h. */
30426
30427
30428 $curl_includes_string
30429 $curl_includes_libgen
30430 $curl_includes_unistd
30431
30432int main (void)
30433{
30434
30435 if(0 != basename(0))
30436 return 1;
30437
30438 ;
30439 return 0;
30440}
30441
30442_ACEOF
30443if ac_fn_c_try_compile "$LINENO"; then :
30444
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30446$as_echo "yes" >&6; }
30447 tst_compi_basename="yes"
30448
30449else
30450
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30452$as_echo "no" >&6; }
30453 tst_compi_basename="no"
30454
30455fi
30456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457 fi
30458 #
30459 if test "$tst_compi_basename" = "yes"; then
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30461$as_echo_n "checking if basename usage allowed... " >&6; }
30462 if test "x$curl_disallow_basename" != "xyes"; then
30463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30464$as_echo "yes" >&6; }
30465 tst_allow_basename="yes"
30466 else
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30468$as_echo "no" >&6; }
30469 tst_allow_basename="no"
30470 fi
30471 fi
30472 #
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30474$as_echo_n "checking if basename might be used... " >&6; }
30475 if test "$tst_links_basename" = "yes" &&
30476 test "$tst_proto_basename" = "yes" &&
30477 test "$tst_compi_basename" = "yes" &&
30478 test "$tst_allow_basename" = "yes"; then
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30480$as_echo "yes" >&6; }
30481
30482cat >>confdefs.h <<_ACEOF
30483#define HAVE_BASENAME 1
30484_ACEOF
30485
30486 curl_cv_func_basename="yes"
30487 else
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30489$as_echo "no" >&6; }
30490 curl_cv_func_basename="no"
30491 fi
30492
30493
30494curl_includes_socket="\
30495/* includes start */
30496#ifdef HAVE_SYS_TYPES_H
30497# include <sys/types.h>
30498#endif
30499#ifdef HAVE_SOCKET_H
30500# include <socket.h>
30501#endif
30502/* includes end */"
30503 for ac_header in sys/types.h socket.h
30504do :
30505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30506ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30507"
30508if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30509 cat >>confdefs.h <<_ACEOF
30510#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30511_ACEOF
30512
30513fi
30514
30515done
30516
30517
30518
30519 #
30520 tst_links_closesocket="unknown"
30521 tst_proto_closesocket="unknown"
30522 tst_compi_closesocket="unknown"
30523 tst_allow_closesocket="unknown"
30524 #
30525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30526$as_echo_n "checking if closesocket can be linked... " >&6; }
30527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30528/* end confdefs.h. */
30529
30530
30531 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030532 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030533 $curl_includes_socket
30534
30535int main (void)
30536{
30537
30538 if(0 != closesocket(0))
30539 return 1;
30540
30541 ;
30542 return 0;
30543}
30544
30545_ACEOF
30546if ac_fn_c_try_link "$LINENO"; then :
30547
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30549$as_echo "yes" >&6; }
30550 tst_links_closesocket="yes"
30551
30552else
30553
30554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30555$as_echo "no" >&6; }
30556 tst_links_closesocket="no"
30557
30558fi
30559rm -f core conftest.err conftest.$ac_objext \
30560 conftest$ac_exeext conftest.$ac_ext
30561 #
30562 if test "$tst_links_closesocket" = "yes"; then
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30564$as_echo_n "checking if closesocket is prototyped... " >&6; }
30565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30566/* end confdefs.h. */
30567
30568 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030569 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030570 $curl_includes_socket
30571
30572_ACEOF
30573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30574 $EGREP "closesocket" >/dev/null 2>&1; then :
30575
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30577$as_echo "yes" >&6; }
30578 tst_proto_closesocket="yes"
30579
30580else
30581
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30583$as_echo "no" >&6; }
30584 tst_proto_closesocket="no"
30585
30586fi
30587rm -f conftest*
30588
30589 fi
30590 #
30591 if test "$tst_proto_closesocket" = "yes"; then
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30593$as_echo_n "checking if closesocket is compilable... " >&6; }
30594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30595/* end confdefs.h. */
30596
30597
30598 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030599 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030600 $curl_includes_socket
30601
30602int main (void)
30603{
30604
30605 if(0 != closesocket(0))
30606 return 1;
30607
30608 ;
30609 return 0;
30610}
30611
30612_ACEOF
30613if ac_fn_c_try_compile "$LINENO"; then :
30614
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30616$as_echo "yes" >&6; }
30617 tst_compi_closesocket="yes"
30618
30619else
30620
30621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30622$as_echo "no" >&6; }
30623 tst_compi_closesocket="no"
30624
30625fi
30626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30627 fi
30628 #
30629 if test "$tst_compi_closesocket" = "yes"; then
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30631$as_echo_n "checking if closesocket usage allowed... " >&6; }
30632 if test "x$curl_disallow_closesocket" != "xyes"; then
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30634$as_echo "yes" >&6; }
30635 tst_allow_closesocket="yes"
30636 else
30637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30638$as_echo "no" >&6; }
30639 tst_allow_closesocket="no"
30640 fi
30641 fi
30642 #
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30644$as_echo_n "checking if closesocket might be used... " >&6; }
30645 if test "$tst_links_closesocket" = "yes" &&
30646 test "$tst_proto_closesocket" = "yes" &&
30647 test "$tst_compi_closesocket" = "yes" &&
30648 test "$tst_allow_closesocket" = "yes"; then
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30650$as_echo "yes" >&6; }
30651
30652cat >>confdefs.h <<_ACEOF
30653#define HAVE_CLOSESOCKET 1
30654_ACEOF
30655
30656 curl_cv_func_closesocket="yes"
30657 else
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30659$as_echo "no" >&6; }
30660 curl_cv_func_closesocket="no"
30661 fi
30662
30663
Elliott Hughesa93fb052018-12-12 14:22:48 -080030664curl_includes_sys_socket="\
30665/* includes start */
30666#ifdef HAVE_SYS_TYPES_H
30667# include <sys/types.h>
30668#endif
30669#ifdef HAVE_SYS_SOCKET_H
30670# include <sys/socket.h>
30671#endif
30672/* includes end */"
30673 for ac_header in sys/types.h sys/socket.h
30674do :
30675 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30676ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30677"
30678if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30679 cat >>confdefs.h <<_ACEOF
30680#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30681_ACEOF
30682
30683fi
30684
30685done
30686
30687
30688
Elliott Hughes82be86d2017-09-20 17:00:17 -070030689 #
30690 tst_links_closesocket_camel="unknown"
30691 tst_proto_closesocket_camel="unknown"
30692 tst_compi_closesocket_camel="unknown"
30693 tst_allow_closesocket_camel="unknown"
30694 #
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30696$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30698/* end confdefs.h. */
30699
30700
30701 $curl_includes_sys_socket
30702
30703int main (void)
30704{
30705
30706 if(0 != CloseSocket(0))
30707 return 1;
30708
30709 ;
30710 return 0;
30711}
30712
30713_ACEOF
30714if ac_fn_c_try_link "$LINENO"; then :
30715
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30717$as_echo "yes" >&6; }
30718 tst_links_closesocket_camel="yes"
30719
30720else
30721
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723$as_echo "no" >&6; }
30724 tst_links_closesocket_camel="no"
30725
30726fi
30727rm -f core conftest.err conftest.$ac_objext \
30728 conftest$ac_exeext conftest.$ac_ext
30729 #
30730 if test "$tst_links_closesocket_camel" = "yes"; then
30731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30732$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30734/* end confdefs.h. */
30735
30736 $curl_includes_sys_socket
30737
30738_ACEOF
30739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30740 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30741
30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30743$as_echo "yes" >&6; }
30744 tst_proto_closesocket_camel="yes"
30745
30746else
30747
30748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30749$as_echo "no" >&6; }
30750 tst_proto_closesocket_camel="no"
30751
30752fi
30753rm -f conftest*
30754
30755 fi
30756 #
30757 if test "$tst_proto_closesocket_camel" = "yes"; then
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30759$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30761/* end confdefs.h. */
30762
30763
30764 $curl_includes_sys_socket
30765
30766int main (void)
30767{
30768
30769 if(0 != CloseSocket(0))
30770 return 1;
30771
30772 ;
30773 return 0;
30774}
30775
30776_ACEOF
30777if ac_fn_c_try_compile "$LINENO"; then :
30778
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30780$as_echo "yes" >&6; }
30781 tst_compi_closesocket_camel="yes"
30782
30783else
30784
30785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30786$as_echo "no" >&6; }
30787 tst_compi_closesocket_camel="no"
30788
30789fi
30790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30791 fi
30792 #
30793 if test "$tst_compi_closesocket_camel" = "yes"; then
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30795$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30796 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30798$as_echo "yes" >&6; }
30799 tst_allow_closesocket_camel="yes"
30800 else
30801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30802$as_echo "no" >&6; }
30803 tst_allow_closesocket_camel="no"
30804 fi
30805 fi
30806 #
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30808$as_echo_n "checking if CloseSocket might be used... " >&6; }
30809 if test "$tst_links_closesocket_camel" = "yes" &&
30810 test "$tst_proto_closesocket_camel" = "yes" &&
30811 test "$tst_compi_closesocket_camel" = "yes" &&
30812 test "$tst_allow_closesocket_camel" = "yes"; then
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30814$as_echo "yes" >&6; }
30815
30816cat >>confdefs.h <<_ACEOF
30817#define HAVE_CLOSESOCKET_CAMEL 1
30818_ACEOF
30819
30820 curl_cv_func_closesocket_camel="yes"
30821 else
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30823$as_echo "no" >&6; }
30824 curl_cv_func_closesocket_camel="no"
30825 fi
30826
30827
30828 #
30829 tst_links_connect="unknown"
30830 tst_proto_connect="unknown"
30831 tst_compi_connect="unknown"
30832 tst_allow_connect="unknown"
30833 #
30834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30835$as_echo_n "checking if connect can be linked... " >&6; }
30836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30837/* end confdefs.h. */
30838
30839
30840 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030841 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030842 $curl_includes_sys_socket
30843 $curl_includes_socket
30844
30845int main (void)
30846{
30847
30848 if(0 != connect(0, 0, 0))
30849 return 1;
30850
30851 ;
30852 return 0;
30853}
30854
30855_ACEOF
30856if ac_fn_c_try_link "$LINENO"; then :
30857
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30859$as_echo "yes" >&6; }
30860 tst_links_connect="yes"
30861
30862else
30863
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865$as_echo "no" >&6; }
30866 tst_links_connect="no"
30867
30868fi
30869rm -f core conftest.err conftest.$ac_objext \
30870 conftest$ac_exeext conftest.$ac_ext
30871 #
30872 if test "$tst_links_connect" = "yes"; then
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30874$as_echo_n "checking if connect is prototyped... " >&6; }
30875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30876/* end confdefs.h. */
30877
30878 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030879 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030880 $curl_includes_sys_socket
30881 $curl_includes_socket
30882
30883_ACEOF
30884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30885 $EGREP "connect" >/dev/null 2>&1; then :
30886
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30888$as_echo "yes" >&6; }
30889 tst_proto_connect="yes"
30890
30891else
30892
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30894$as_echo "no" >&6; }
30895 tst_proto_connect="no"
30896
30897fi
30898rm -f conftest*
30899
30900 fi
30901 #
30902 if test "$tst_proto_connect" = "yes"; then
30903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30904$as_echo_n "checking if connect is compilable... " >&6; }
30905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30906/* end confdefs.h. */
30907
30908
30909 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030910 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030911 $curl_includes_sys_socket
30912 $curl_includes_socket
30913
30914int main (void)
30915{
30916
30917 if(0 != connect(0, 0, 0))
30918 return 1;
30919
30920 ;
30921 return 0;
30922}
30923
30924_ACEOF
30925if ac_fn_c_try_compile "$LINENO"; then :
30926
30927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30928$as_echo "yes" >&6; }
30929 tst_compi_connect="yes"
30930
30931else
30932
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30934$as_echo "no" >&6; }
30935 tst_compi_connect="no"
30936
30937fi
30938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30939 fi
30940 #
30941 if test "$tst_compi_connect" = "yes"; then
30942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30943$as_echo_n "checking if connect usage allowed... " >&6; }
30944 if test "x$curl_disallow_connect" != "xyes"; then
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30946$as_echo "yes" >&6; }
30947 tst_allow_connect="yes"
30948 else
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30950$as_echo "no" >&6; }
30951 tst_allow_connect="no"
30952 fi
30953 fi
30954 #
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30956$as_echo_n "checking if connect might be used... " >&6; }
30957 if test "$tst_links_connect" = "yes" &&
30958 test "$tst_proto_connect" = "yes" &&
30959 test "$tst_compi_connect" = "yes" &&
30960 test "$tst_allow_connect" = "yes"; then
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30962$as_echo "yes" >&6; }
30963
30964cat >>confdefs.h <<_ACEOF
30965#define HAVE_CONNECT 1
30966_ACEOF
30967
30968 curl_cv_func_connect="yes"
30969 else
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30971$as_echo "no" >&6; }
30972 curl_cv_func_connect="no"
30973 fi
30974
30975
30976curl_includes_fcntl="\
30977/* includes start */
30978#ifdef HAVE_SYS_TYPES_H
30979# include <sys/types.h>
30980#endif
30981#ifdef HAVE_UNISTD_H
30982# include <unistd.h>
30983#endif
30984#ifdef HAVE_FCNTL_H
30985# include <fcntl.h>
30986#endif
30987/* includes end */"
30988 for ac_header in sys/types.h unistd.h fcntl.h
30989do :
30990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30991ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30992"
30993if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30994 cat >>confdefs.h <<_ACEOF
30995#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30996_ACEOF
30997
30998fi
30999
31000done
31001
31002
31003
31004 #
31005 tst_links_fcntl="unknown"
31006 tst_proto_fcntl="unknown"
31007 tst_compi_fcntl="unknown"
31008 tst_allow_fcntl="unknown"
31009 #
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31011$as_echo_n "checking if fcntl can be linked... " >&6; }
31012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31013/* end confdefs.h. */
31014
31015
31016#define fcntl innocuous_fcntl
31017#ifdef __STDC__
31018# include <limits.h>
31019#else
31020# include <assert.h>
31021#endif
31022#undef fcntl
31023#ifdef __cplusplus
31024extern "C"
31025#endif
31026char fcntl ();
31027#if defined __stub_fcntl || defined __stub___fcntl
31028choke me
31029#endif
31030
31031int main (void)
31032{
31033return fcntl ();
31034 ;
31035 return 0;
31036}
31037
31038_ACEOF
31039if ac_fn_c_try_link "$LINENO"; then :
31040
31041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31042$as_echo "yes" >&6; }
31043 tst_links_fcntl="yes"
31044
31045else
31046
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31048$as_echo "no" >&6; }
31049 tst_links_fcntl="no"
31050
31051fi
31052rm -f core conftest.err conftest.$ac_objext \
31053 conftest$ac_exeext conftest.$ac_ext
31054 #
31055 if test "$tst_links_fcntl" = "yes"; then
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31057$as_echo_n "checking if fcntl is prototyped... " >&6; }
31058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31059/* end confdefs.h. */
31060
31061 $curl_includes_fcntl
31062
31063_ACEOF
31064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31065 $EGREP "fcntl" >/dev/null 2>&1; then :
31066
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31068$as_echo "yes" >&6; }
31069 tst_proto_fcntl="yes"
31070
31071else
31072
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31074$as_echo "no" >&6; }
31075 tst_proto_fcntl="no"
31076
31077fi
31078rm -f conftest*
31079
31080 fi
31081 #
31082 if test "$tst_proto_fcntl" = "yes"; then
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31084$as_echo_n "checking if fcntl is compilable... " >&6; }
31085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31086/* end confdefs.h. */
31087
31088
31089 $curl_includes_fcntl
31090
31091int main (void)
31092{
31093
31094 if(0 != fcntl(0, 0, 0))
31095 return 1;
31096
31097 ;
31098 return 0;
31099}
31100
31101_ACEOF
31102if ac_fn_c_try_compile "$LINENO"; then :
31103
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31105$as_echo "yes" >&6; }
31106 tst_compi_fcntl="yes"
31107
31108else
31109
31110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31111$as_echo "no" >&6; }
31112 tst_compi_fcntl="no"
31113
31114fi
31115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31116 fi
31117 #
31118 if test "$tst_compi_fcntl" = "yes"; then
31119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31120$as_echo_n "checking if fcntl usage allowed... " >&6; }
31121 if test "x$curl_disallow_fcntl" != "xyes"; then
31122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31123$as_echo "yes" >&6; }
31124 tst_allow_fcntl="yes"
31125 else
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31127$as_echo "no" >&6; }
31128 tst_allow_fcntl="no"
31129 fi
31130 fi
31131 #
31132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31133$as_echo_n "checking if fcntl might be used... " >&6; }
31134 if test "$tst_links_fcntl" = "yes" &&
31135 test "$tst_proto_fcntl" = "yes" &&
31136 test "$tst_compi_fcntl" = "yes" &&
31137 test "$tst_allow_fcntl" = "yes"; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31139$as_echo "yes" >&6; }
31140
31141cat >>confdefs.h <<_ACEOF
31142#define HAVE_FCNTL 1
31143_ACEOF
31144
31145 curl_cv_func_fcntl="yes"
31146
31147 #
31148 tst_compi_fcntl_o_nonblock="unknown"
31149 tst_allow_fcntl_o_nonblock="unknown"
31150 #
31151 case $host_os in
31152 sunos4* | aix3* | beos*)
31153 curl_disallow_fcntl_o_nonblock="yes"
31154 ;;
31155 esac
31156 #
31157 if test "$curl_cv_func_fcntl" = "yes"; then
31158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31159$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31161/* end confdefs.h. */
31162
31163
31164 $curl_includes_fcntl
31165
31166int main (void)
31167{
31168
31169 int flags = 0;
31170 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31171 return 1;
31172
31173 ;
31174 return 0;
31175}
31176
31177_ACEOF
31178if ac_fn_c_try_compile "$LINENO"; then :
31179
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31181$as_echo "yes" >&6; }
31182 tst_compi_fcntl_o_nonblock="yes"
31183
31184else
31185
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31187$as_echo "no" >&6; }
31188 tst_compi_fcntl_o_nonblock="no"
31189
31190fi
31191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31192 fi
31193 #
31194 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31196$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31197 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31199$as_echo "yes" >&6; }
31200 tst_allow_fcntl_o_nonblock="yes"
31201 else
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31203$as_echo "no" >&6; }
31204 tst_allow_fcntl_o_nonblock="no"
31205 fi
31206 fi
31207 #
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31209$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31210 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31211 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31213$as_echo "yes" >&6; }
31214
31215cat >>confdefs.h <<_ACEOF
31216#define HAVE_FCNTL_O_NONBLOCK 1
31217_ACEOF
31218
31219 curl_cv_func_fcntl_o_nonblock="yes"
31220 else
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31222$as_echo "no" >&6; }
31223 curl_cv_func_fcntl_o_nonblock="no"
31224 fi
31225
31226 else
31227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31228$as_echo "no" >&6; }
31229 curl_cv_func_fcntl="no"
31230 fi
31231
31232
Elliott Hughesa93fb052018-12-12 14:22:48 -080031233curl_includes_ws2tcpip="\
31234/* includes start */
31235#ifdef HAVE_WINDOWS_H
31236# ifndef WIN32_LEAN_AND_MEAN
31237# define WIN32_LEAN_AND_MEAN
31238# endif
31239# include <windows.h>
31240# ifdef HAVE_WINSOCK2_H
31241# include <winsock2.h>
31242# ifdef HAVE_WS2TCPIP_H
31243# include <ws2tcpip.h>
31244# endif
31245# endif
31246#endif
31247/* includes end */"
31248
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31250$as_echo_n "checking for windows.h... " >&6; }
31251if ${curl_cv_header_windows_h+:} false; then :
31252 $as_echo_n "(cached) " >&6
31253else
31254
31255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31256/* end confdefs.h. */
31257
31258
31259#undef inline
31260#ifndef WIN32_LEAN_AND_MEAN
31261#define WIN32_LEAN_AND_MEAN
31262#endif
31263#include <windows.h>
31264
31265int main (void)
31266{
31267
31268#if defined(__CYGWIN__) || defined(__CEGCC__)
31269 HAVE_WINDOWS_H shall not be defined.
31270#else
31271 int dummy=2*WINVER;
31272#endif
31273
31274 ;
31275 return 0;
31276}
31277
31278_ACEOF
31279if ac_fn_c_try_compile "$LINENO"; then :
31280
31281 curl_cv_header_windows_h="yes"
31282
31283else
31284
31285 curl_cv_header_windows_h="no"
31286
31287fi
31288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31289
31290fi
31291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
31292$as_echo "$curl_cv_header_windows_h" >&6; }
31293 case "$curl_cv_header_windows_h" in
31294 yes)
31295
31296cat >>confdefs.h <<_ACEOF
31297#define HAVE_WINDOWS_H 1
31298_ACEOF
31299
31300 ;;
31301 esac
31302
31303
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31305$as_echo_n "checking for winsock2.h... " >&6; }
31306if ${curl_cv_header_winsock2_h+:} false; then :
31307 $as_echo_n "(cached) " >&6
31308else
31309
31310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31311/* end confdefs.h. */
31312
31313
31314#undef inline
31315#ifndef WIN32_LEAN_AND_MEAN
31316#define WIN32_LEAN_AND_MEAN
31317#endif
31318#include <windows.h>
31319#include <winsock2.h>
31320
31321int main (void)
31322{
31323
31324#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31325 HAVE_WINSOCK2_H shall not be defined.
31326#else
31327 int dummy=2*IPPROTO_ESP;
31328#endif
31329
31330 ;
31331 return 0;
31332}
31333
31334_ACEOF
31335if ac_fn_c_try_compile "$LINENO"; then :
31336
31337 curl_cv_header_winsock2_h="yes"
31338
31339else
31340
31341 curl_cv_header_winsock2_h="no"
31342
31343fi
31344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31345
31346fi
31347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31348$as_echo "$curl_cv_header_winsock2_h" >&6; }
31349 case "$curl_cv_header_winsock2_h" in
31350 yes)
31351
31352cat >>confdefs.h <<_ACEOF
31353#define HAVE_WINSOCK2_H 1
31354_ACEOF
31355
31356 ;;
31357 esac
31358
31359
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31361$as_echo_n "checking for ws2tcpip.h... " >&6; }
31362if ${curl_cv_header_ws2tcpip_h+:} false; then :
31363 $as_echo_n "(cached) " >&6
31364else
31365
31366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31367/* end confdefs.h. */
31368
31369
31370#undef inline
31371#ifndef WIN32_LEAN_AND_MEAN
31372#define WIN32_LEAN_AND_MEAN
31373#endif
31374#include <windows.h>
31375#include <winsock2.h>
31376#include <ws2tcpip.h>
31377
31378int main (void)
31379{
31380
31381#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31382 HAVE_WS2TCPIP_H shall not be defined.
31383#else
31384 int dummy=2*IP_PKTINFO;
31385#endif
31386
31387 ;
31388 return 0;
31389}
31390
31391_ACEOF
31392if ac_fn_c_try_compile "$LINENO"; then :
31393
31394 curl_cv_header_ws2tcpip_h="yes"
31395
31396else
31397
31398 curl_cv_header_ws2tcpip_h="no"
31399
31400fi
31401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31402
31403fi
31404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31405$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31406 case "$curl_cv_header_ws2tcpip_h" in
31407 yes)
31408
31409cat >>confdefs.h <<_ACEOF
31410#define HAVE_WS2TCPIP_H 1
31411_ACEOF
31412
31413 ;;
31414 esac
31415
31416
31417
Elliott Hughes82be86d2017-09-20 17:00:17 -070031418curl_includes_netdb="\
31419/* includes start */
31420#ifdef HAVE_SYS_TYPES_H
31421# include <sys/types.h>
31422#endif
31423#ifdef HAVE_NETDB_H
31424# include <netdb.h>
31425#endif
31426/* includes end */"
31427 for ac_header in sys/types.h netdb.h
31428do :
31429 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31430ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31431"
31432if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31433 cat >>confdefs.h <<_ACEOF
31434#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31435_ACEOF
31436
31437fi
31438
31439done
31440
31441
31442
31443 #
31444 tst_links_freeaddrinfo="unknown"
31445 tst_proto_freeaddrinfo="unknown"
31446 tst_compi_freeaddrinfo="unknown"
31447 tst_allow_freeaddrinfo="unknown"
31448 #
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31450$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31452/* end confdefs.h. */
31453
31454
31455 $curl_includes_ws2tcpip
31456 $curl_includes_sys_socket
31457 $curl_includes_netdb
31458
31459int main (void)
31460{
31461
31462 freeaddrinfo(0);
31463
31464 ;
31465 return 0;
31466}
31467
31468_ACEOF
31469if ac_fn_c_try_link "$LINENO"; then :
31470
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31472$as_echo "yes" >&6; }
31473 tst_links_freeaddrinfo="yes"
31474
31475else
31476
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31478$as_echo "no" >&6; }
31479 tst_links_freeaddrinfo="no"
31480
31481fi
31482rm -f core conftest.err conftest.$ac_objext \
31483 conftest$ac_exeext conftest.$ac_ext
31484 #
31485 if test "$tst_links_freeaddrinfo" = "yes"; then
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31487$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31489/* end confdefs.h. */
31490
31491 $curl_includes_ws2tcpip
31492 $curl_includes_sys_socket
31493 $curl_includes_netdb
31494
31495_ACEOF
31496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31497 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31498
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31500$as_echo "yes" >&6; }
31501 tst_proto_freeaddrinfo="yes"
31502
31503else
31504
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31506$as_echo "no" >&6; }
31507 tst_proto_freeaddrinfo="no"
31508
31509fi
31510rm -f conftest*
31511
31512 fi
31513 #
31514 if test "$tst_proto_freeaddrinfo" = "yes"; then
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31516$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31518/* end confdefs.h. */
31519
31520
31521 $curl_includes_ws2tcpip
31522 $curl_includes_sys_socket
31523 $curl_includes_netdb
31524
31525int main (void)
31526{
31527
31528 freeaddrinfo(0);
31529
31530 ;
31531 return 0;
31532}
31533
31534_ACEOF
31535if ac_fn_c_try_compile "$LINENO"; then :
31536
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31538$as_echo "yes" >&6; }
31539 tst_compi_freeaddrinfo="yes"
31540
31541else
31542
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31544$as_echo "no" >&6; }
31545 tst_compi_freeaddrinfo="no"
31546
31547fi
31548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31549 fi
31550 #
31551 if test "$tst_compi_freeaddrinfo" = "yes"; then
31552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31553$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31554 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31556$as_echo "yes" >&6; }
31557 tst_allow_freeaddrinfo="yes"
31558 else
31559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31560$as_echo "no" >&6; }
31561 tst_allow_freeaddrinfo="no"
31562 fi
31563 fi
31564 #
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31566$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31567 if test "$tst_links_freeaddrinfo" = "yes" &&
31568 test "$tst_proto_freeaddrinfo" = "yes" &&
31569 test "$tst_compi_freeaddrinfo" = "yes" &&
31570 test "$tst_allow_freeaddrinfo" = "yes"; then
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31572$as_echo "yes" >&6; }
31573
31574cat >>confdefs.h <<_ACEOF
31575#define HAVE_FREEADDRINFO 1
31576_ACEOF
31577
31578 curl_cv_func_freeaddrinfo="yes"
31579 else
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31581$as_echo "no" >&6; }
31582 curl_cv_func_freeaddrinfo="no"
31583 fi
31584
31585
31586curl_includes_ifaddrs="\
31587/* includes start */
31588#ifdef HAVE_SYS_TYPES_H
31589# include <sys/types.h>
31590#endif
31591#ifdef HAVE_SYS_SOCKET_H
31592# include <sys/socket.h>
31593#endif
31594#ifdef HAVE_NETINET_IN_H
31595# include <netinet/in.h>
31596#endif
31597#ifdef HAVE_IFADDRS_H
31598# include <ifaddrs.h>
31599#endif
31600/* includes end */"
31601 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31602do :
31603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31604ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31605"
31606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31607 cat >>confdefs.h <<_ACEOF
31608#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31609_ACEOF
31610
31611fi
31612
31613done
31614
31615
31616
31617 #
31618 tst_links_freeifaddrs="unknown"
31619 tst_proto_freeifaddrs="unknown"
31620 tst_compi_freeifaddrs="unknown"
31621 tst_allow_freeifaddrs="unknown"
31622 #
31623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31624$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31626/* end confdefs.h. */
31627
31628
31629#define freeifaddrs innocuous_freeifaddrs
31630#ifdef __STDC__
31631# include <limits.h>
31632#else
31633# include <assert.h>
31634#endif
31635#undef freeifaddrs
31636#ifdef __cplusplus
31637extern "C"
31638#endif
31639char freeifaddrs ();
31640#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31641choke me
31642#endif
31643
31644int main (void)
31645{
31646return freeifaddrs ();
31647 ;
31648 return 0;
31649}
31650
31651_ACEOF
31652if ac_fn_c_try_link "$LINENO"; then :
31653
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31655$as_echo "yes" >&6; }
31656 tst_links_freeifaddrs="yes"
31657
31658else
31659
31660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31661$as_echo "no" >&6; }
31662 tst_links_freeifaddrs="no"
31663
31664fi
31665rm -f core conftest.err conftest.$ac_objext \
31666 conftest$ac_exeext conftest.$ac_ext
31667 #
31668 if test "$tst_links_freeifaddrs" = "yes"; then
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31670$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31672/* end confdefs.h. */
31673
31674 $curl_includes_ifaddrs
31675
31676_ACEOF
31677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31678 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31679
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31681$as_echo "yes" >&6; }
31682 tst_proto_freeifaddrs="yes"
31683
31684else
31685
31686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31687$as_echo "no" >&6; }
31688 tst_proto_freeifaddrs="no"
31689
31690fi
31691rm -f conftest*
31692
31693 fi
31694 #
31695 if test "$tst_proto_freeifaddrs" = "yes"; then
31696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31697$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31699/* end confdefs.h. */
31700
31701
31702 $curl_includes_ifaddrs
31703
31704int main (void)
31705{
31706
31707 freeifaddrs(0);
31708
31709 ;
31710 return 0;
31711}
31712
31713_ACEOF
31714if ac_fn_c_try_compile "$LINENO"; then :
31715
31716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31717$as_echo "yes" >&6; }
31718 tst_compi_freeifaddrs="yes"
31719
31720else
31721
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31723$as_echo "no" >&6; }
31724 tst_compi_freeifaddrs="no"
31725
31726fi
31727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31728 fi
31729 #
31730 if test "$tst_compi_freeifaddrs" = "yes"; then
31731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31732$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31733 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31735$as_echo "yes" >&6; }
31736 tst_allow_freeifaddrs="yes"
31737 else
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31739$as_echo "no" >&6; }
31740 tst_allow_freeifaddrs="no"
31741 fi
31742 fi
31743 #
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31745$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31746 if test "$tst_links_freeifaddrs" = "yes" &&
31747 test "$tst_proto_freeifaddrs" = "yes" &&
31748 test "$tst_compi_freeifaddrs" = "yes" &&
31749 test "$tst_allow_freeifaddrs" = "yes"; then
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31751$as_echo "yes" >&6; }
31752
31753cat >>confdefs.h <<_ACEOF
31754#define HAVE_FREEIFADDRS 1
31755_ACEOF
31756
31757 curl_cv_func_freeifaddrs="yes"
31758 else
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31760$as_echo "no" >&6; }
31761 curl_cv_func_freeifaddrs="no"
31762 fi
31763
31764
31765curl_includes_sys_xattr="\
31766/* includes start */
31767#ifdef HAVE_SYS_TYPES_H
31768# include <sys/types.h>
31769#endif
31770#ifdef HAVE_SYS_XATTR_H
31771# include <sys/xattr.h>
31772#endif
31773/* includes end */"
31774 for ac_header in sys/types.h sys/xattr.h
31775do :
31776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31777ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31778"
31779if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31780 cat >>confdefs.h <<_ACEOF
31781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31782_ACEOF
31783
31784fi
31785
31786done
31787
31788
31789
31790 #
31791 tst_links_fsetxattr="unknown"
31792 tst_proto_fsetxattr="unknown"
31793 tst_compi_fsetxattr="unknown"
31794 tst_allow_fsetxattr="unknown"
31795 tst_nargs_fsetxattr="unknown"
31796 #
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31798$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31800/* end confdefs.h. */
31801
31802
31803#define fsetxattr innocuous_fsetxattr
31804#ifdef __STDC__
31805# include <limits.h>
31806#else
31807# include <assert.h>
31808#endif
31809#undef fsetxattr
31810#ifdef __cplusplus
31811extern "C"
31812#endif
31813char fsetxattr ();
31814#if defined __stub_fsetxattr || defined __stub___fsetxattr
31815choke me
31816#endif
31817
31818int main (void)
31819{
31820return fsetxattr ();
31821 ;
31822 return 0;
31823}
31824
31825_ACEOF
31826if ac_fn_c_try_link "$LINENO"; then :
31827
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31829$as_echo "yes" >&6; }
31830 tst_links_fsetxattr="yes"
31831
31832else
31833
31834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31835$as_echo "no" >&6; }
31836 tst_links_fsetxattr="no"
31837
31838fi
31839rm -f core conftest.err conftest.$ac_objext \
31840 conftest$ac_exeext conftest.$ac_ext
31841 #
31842 if test "$tst_links_fsetxattr" = "yes"; then
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31844$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31846/* end confdefs.h. */
31847
31848 $curl_includes_sys_xattr
31849
31850_ACEOF
31851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31852 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31853
31854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31855$as_echo "yes" >&6; }
31856 tst_proto_fsetxattr="yes"
31857
31858else
31859
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31861$as_echo "no" >&6; }
31862 tst_proto_fsetxattr="no"
31863
31864fi
31865rm -f conftest*
31866
31867 fi
31868 #
31869 if test "$tst_proto_fsetxattr" = "yes"; then
31870 if test "$tst_nargs_fsetxattr" = "unknown"; then
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31872$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31874/* end confdefs.h. */
31875
31876
31877 $curl_includes_sys_xattr
31878
31879int main (void)
31880{
31881
31882 if(0 != fsetxattr(0, 0, 0, 0, 0))
31883 return 1;
31884
31885 ;
31886 return 0;
31887}
31888
31889_ACEOF
31890if ac_fn_c_try_compile "$LINENO"; then :
31891
31892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31893$as_echo "yes" >&6; }
31894 tst_compi_fsetxattr="yes"
31895 tst_nargs_fsetxattr="5"
31896
31897else
31898
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31900$as_echo "no" >&6; }
31901 tst_compi_fsetxattr="no"
31902
31903fi
31904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31905 fi
31906 if test "$tst_nargs_fsetxattr" = "unknown"; then
31907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31908$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31910/* end confdefs.h. */
31911
31912
31913 $curl_includes_sys_xattr
31914
31915int main (void)
31916{
31917
31918 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31919 return 1;
31920
31921 ;
31922 return 0;
31923}
31924
31925_ACEOF
31926if ac_fn_c_try_compile "$LINENO"; then :
31927
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31929$as_echo "yes" >&6; }
31930 tst_compi_fsetxattr="yes"
31931 tst_nargs_fsetxattr="6"
31932
31933else
31934
31935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31936$as_echo "no" >&6; }
31937 tst_compi_fsetxattr="no"
31938
31939fi
31940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31941 fi
31942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31943$as_echo_n "checking if fsetxattr is compilable... " >&6; }
31944 if test "$tst_compi_fsetxattr" = "yes"; then
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31946$as_echo "yes" >&6; }
31947 else
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31949$as_echo "no" >&6; }
31950 fi
31951 fi
31952 #
31953 if test "$tst_compi_fsetxattr" = "yes"; then
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31955$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31956 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31958$as_echo "yes" >&6; }
31959 tst_allow_fsetxattr="yes"
31960 else
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31962$as_echo "no" >&6; }
31963 tst_allow_fsetxattr="no"
31964 fi
31965 fi
31966 #
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31968$as_echo_n "checking if fsetxattr might be used... " >&6; }
31969 if test "$tst_links_fsetxattr" = "yes" &&
31970 test "$tst_proto_fsetxattr" = "yes" &&
31971 test "$tst_compi_fsetxattr" = "yes" &&
31972 test "$tst_allow_fsetxattr" = "yes"; then
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31974$as_echo "yes" >&6; }
31975
31976cat >>confdefs.h <<_ACEOF
31977#define HAVE_FSETXATTR 1
31978_ACEOF
31979
31980 #
31981 if test "$tst_nargs_fsetxattr" -eq "5"; then
31982
31983$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
31984
31985 elif test "$tst_nargs_fsetxattr" -eq "6"; then
31986
31987$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
31988
31989 fi
31990 #
31991 curl_cv_func_fsetxattr="yes"
31992 else
31993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31994$as_echo "no" >&6; }
31995 curl_cv_func_fsetxattr="no"
31996 fi
31997
31998
31999 #
32000 tst_links_ftruncate="unknown"
32001 tst_proto_ftruncate="unknown"
32002 tst_compi_ftruncate="unknown"
32003 tst_allow_ftruncate="unknown"
32004 #
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32006$as_echo_n "checking if ftruncate can be linked... " >&6; }
32007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32008/* end confdefs.h. */
32009
32010
32011#define ftruncate innocuous_ftruncate
32012#ifdef __STDC__
32013# include <limits.h>
32014#else
32015# include <assert.h>
32016#endif
32017#undef ftruncate
32018#ifdef __cplusplus
32019extern "C"
32020#endif
32021char ftruncate ();
32022#if defined __stub_ftruncate || defined __stub___ftruncate
32023choke me
32024#endif
32025
32026int main (void)
32027{
32028return ftruncate ();
32029 ;
32030 return 0;
32031}
32032
32033_ACEOF
32034if ac_fn_c_try_link "$LINENO"; then :
32035
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32037$as_echo "yes" >&6; }
32038 tst_links_ftruncate="yes"
32039
32040else
32041
32042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32043$as_echo "no" >&6; }
32044 tst_links_ftruncate="no"
32045
32046fi
32047rm -f core conftest.err conftest.$ac_objext \
32048 conftest$ac_exeext conftest.$ac_ext
32049 #
32050 if test "$tst_links_ftruncate" = "yes"; then
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32052$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32054/* end confdefs.h. */
32055
32056 $curl_includes_unistd
32057
32058_ACEOF
32059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32060 $EGREP "ftruncate" >/dev/null 2>&1; then :
32061
32062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32063$as_echo "yes" >&6; }
32064 tst_proto_ftruncate="yes"
32065
32066else
32067
32068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32069$as_echo "no" >&6; }
32070 tst_proto_ftruncate="no"
32071
32072fi
32073rm -f conftest*
32074
32075 fi
32076 #
32077 if test "$tst_proto_ftruncate" = "yes"; then
32078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32079$as_echo_n "checking if ftruncate is compilable... " >&6; }
32080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32081/* end confdefs.h. */
32082
32083
32084 $curl_includes_unistd
32085
32086int main (void)
32087{
32088
32089 if(0 != ftruncate(0, 0))
32090 return 1;
32091
32092 ;
32093 return 0;
32094}
32095
32096_ACEOF
32097if ac_fn_c_try_compile "$LINENO"; then :
32098
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32100$as_echo "yes" >&6; }
32101 tst_compi_ftruncate="yes"
32102
32103else
32104
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32106$as_echo "no" >&6; }
32107 tst_compi_ftruncate="no"
32108
32109fi
32110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32111 fi
32112 #
32113 if test "$tst_compi_ftruncate" = "yes"; then
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32115$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32116 if test "x$curl_disallow_ftruncate" != "xyes"; then
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32118$as_echo "yes" >&6; }
32119 tst_allow_ftruncate="yes"
32120 else
32121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32122$as_echo "no" >&6; }
32123 tst_allow_ftruncate="no"
32124 fi
32125 fi
32126 #
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32128$as_echo_n "checking if ftruncate might be used... " >&6; }
32129 if test "$tst_links_ftruncate" = "yes" &&
32130 test "$tst_proto_ftruncate" = "yes" &&
32131 test "$tst_compi_ftruncate" = "yes" &&
32132 test "$tst_allow_ftruncate" = "yes"; then
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32134$as_echo "yes" >&6; }
32135
32136cat >>confdefs.h <<_ACEOF
32137#define HAVE_FTRUNCATE 1
32138_ACEOF
32139
32140 curl_cv_func_ftruncate="yes"
32141 else
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32143$as_echo "no" >&6; }
32144 curl_cv_func_ftruncate="no"
32145 fi
32146
32147
32148curl_includes_stdlib="\
32149/* includes start */
32150#ifdef HAVE_SYS_TYPES_H
32151# include <sys/types.h>
32152#endif
32153#ifdef HAVE_STDLIB_H
32154# include <stdlib.h>
32155#endif
32156/* includes end */"
32157 for ac_header in sys/types.h stdlib.h
32158do :
32159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32160ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32161"
32162if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32163 cat >>confdefs.h <<_ACEOF
32164#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32165_ACEOF
32166
32167fi
32168
32169done
32170
32171
32172
32173 #
32174 tst_links_getaddrinfo="unknown"
32175 tst_proto_getaddrinfo="unknown"
32176 tst_compi_getaddrinfo="unknown"
32177 tst_works_getaddrinfo="unknown"
32178 tst_allow_getaddrinfo="unknown"
32179 tst_tsafe_getaddrinfo="unknown"
32180 #
32181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32182$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32184/* end confdefs.h. */
32185
32186
32187 $curl_includes_ws2tcpip
32188 $curl_includes_sys_socket
32189 $curl_includes_netdb
32190
32191int main (void)
32192{
32193
32194 if(0 != getaddrinfo(0, 0, 0, 0))
32195 return 1;
32196
32197 ;
32198 return 0;
32199}
32200
32201_ACEOF
32202if ac_fn_c_try_link "$LINENO"; then :
32203
32204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32205$as_echo "yes" >&6; }
32206 tst_links_getaddrinfo="yes"
32207
32208else
32209
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32211$as_echo "no" >&6; }
32212 tst_links_getaddrinfo="no"
32213
32214fi
32215rm -f core conftest.err conftest.$ac_objext \
32216 conftest$ac_exeext conftest.$ac_ext
32217 #
32218 if test "$tst_links_getaddrinfo" = "yes"; then
32219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32220$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32222/* end confdefs.h. */
32223
32224 $curl_includes_ws2tcpip
32225 $curl_includes_sys_socket
32226 $curl_includes_netdb
32227
32228_ACEOF
32229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32230 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32231
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32233$as_echo "yes" >&6; }
32234 tst_proto_getaddrinfo="yes"
32235
32236else
32237
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32239$as_echo "no" >&6; }
32240 tst_proto_getaddrinfo="no"
32241
32242fi
32243rm -f conftest*
32244
32245 fi
32246 #
32247 if test "$tst_proto_getaddrinfo" = "yes"; then
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32249$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32251/* end confdefs.h. */
32252
32253
32254 $curl_includes_ws2tcpip
32255 $curl_includes_sys_socket
32256 $curl_includes_netdb
32257
32258int main (void)
32259{
32260
32261 if(0 != getaddrinfo(0, 0, 0, 0))
32262 return 1;
32263
32264 ;
32265 return 0;
32266}
32267
32268_ACEOF
32269if ac_fn_c_try_compile "$LINENO"; then :
32270
32271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32272$as_echo "yes" >&6; }
32273 tst_compi_getaddrinfo="yes"
32274
32275else
32276
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32278$as_echo "no" >&6; }
32279 tst_compi_getaddrinfo="no"
32280
32281fi
32282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32283 fi
32284 #
32285 if test "x$cross_compiling" != "xyes" &&
32286 test "$tst_compi_getaddrinfo" = "yes"; then
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32288$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080032289
32290
32291 old=$LD_LIBRARY_PATH
32292 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32293 export LD_LIBRARY_PATH
32294 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070032295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32297as_fn_error $? "cannot run test program while cross compiling
32298See \`config.log' for more details" "$LINENO" 5; }
32299else
32300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32301/* end confdefs.h. */
32302
32303
32304 $curl_includes_ws2tcpip
32305 $curl_includes_stdlib
32306 $curl_includes_string
32307 $curl_includes_sys_socket
32308 $curl_includes_netdb
32309
32310int main (void)
32311{
32312
32313 struct addrinfo hints;
32314 struct addrinfo *ai = 0;
32315 int error;
32316
32317 #ifdef HAVE_WINSOCK2_H
32318 WSADATA wsa;
32319 if (WSAStartup(MAKEWORD(2,2), &wsa))
32320 exit(2);
32321 #endif
32322
32323 memset(&hints, 0, sizeof(hints));
32324 hints.ai_flags = AI_NUMERICHOST;
32325 hints.ai_family = AF_UNSPEC;
32326 hints.ai_socktype = SOCK_STREAM;
32327 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32328 if(error || !ai)
32329 exit(1); /* fail */
32330 else
32331 exit(0);
32332
32333 ;
32334 return 0;
32335}
32336
32337_ACEOF
32338if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080032339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032340$as_echo "yes" >&6; }
32341 tst_works_getaddrinfo="yes"
32342
32343else
Elliott Hughesa93fb052018-12-12 14:22:48 -080032344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032345$as_echo "no" >&6; }
32346 tst_works_getaddrinfo="no"
32347
32348fi
32349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32350 conftest.$ac_objext conftest.beam conftest.$ac_ext
32351fi
32352
Elliott Hughesa93fb052018-12-12 14:22:48 -080032353 LD_LIBRARY_PATH=$old # restore
32354
Elliott Hughes82be86d2017-09-20 17:00:17 -070032355 fi
32356 #
32357 if test "$tst_compi_getaddrinfo" = "yes" &&
32358 test "$tst_works_getaddrinfo" != "no"; then
32359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32360$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32361 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32363$as_echo "yes" >&6; }
32364 tst_allow_getaddrinfo="yes"
32365 else
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32367$as_echo "no" >&6; }
32368 tst_allow_getaddrinfo="no"
32369 fi
32370 fi
32371 #
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32373$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32374 if test "$tst_links_getaddrinfo" = "yes" &&
32375 test "$tst_proto_getaddrinfo" = "yes" &&
32376 test "$tst_compi_getaddrinfo" = "yes" &&
32377 test "$tst_allow_getaddrinfo" = "yes" &&
32378 test "$tst_works_getaddrinfo" != "no"; then
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32380$as_echo "yes" >&6; }
32381
32382cat >>confdefs.h <<_ACEOF
32383#define HAVE_GETADDRINFO 1
32384_ACEOF
32385
32386 curl_cv_func_getaddrinfo="yes"
32387 else
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32389$as_echo "no" >&6; }
32390 curl_cv_func_getaddrinfo="no"
32391 curl_cv_func_getaddrinfo_threadsafe="no"
32392 fi
32393 #
32394 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32396$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32397 case $host_os in
32398 aix[1234].* | aix5.[01].*)
32399 tst_tsafe_getaddrinfo="no"
32400 ;;
32401 aix*)
32402 tst_tsafe_getaddrinfo="yes"
32403 ;;
32404 darwin[12345].*)
32405 tst_tsafe_getaddrinfo="no"
32406 ;;
32407 darwin*)
32408 tst_tsafe_getaddrinfo="yes"
32409 ;;
32410 freebsd[1234].* | freebsd5.[1234]*)
32411 tst_tsafe_getaddrinfo="no"
32412 ;;
32413 freebsd*)
32414 tst_tsafe_getaddrinfo="yes"
32415 ;;
32416 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32417 tst_tsafe_getaddrinfo="no"
32418 ;;
32419 hpux*)
32420 tst_tsafe_getaddrinfo="yes"
32421 ;;
32422 netbsd[123].*)
32423 tst_tsafe_getaddrinfo="no"
32424 ;;
32425 netbsd*)
32426 tst_tsafe_getaddrinfo="yes"
32427 ;;
32428 *bsd*)
32429 tst_tsafe_getaddrinfo="no"
32430 ;;
32431 solaris2*)
32432 tst_tsafe_getaddrinfo="yes"
32433 ;;
32434 esac
32435 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32436 test "$curl_cv_native_windows" = "yes"; then
32437 tst_tsafe_getaddrinfo="yes"
32438 fi
32439 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32440
32441
32442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32443/* end confdefs.h. */
32444
32445
32446 $curl_includes_sys_socket
32447 $curl_includes_netdb
32448
32449int main (void)
32450{
32451#ifdef h_errno
32452 return 0;
32453#else
32454 force compilation error
32455#endif
32456}
32457
32458
32459_ACEOF
32460if ac_fn_c_try_compile "$LINENO"; then :
32461
32462 tst_symbol_defined="yes"
32463
32464else
32465
32466 tst_symbol_defined="no"
32467
32468fi
32469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32470 if test "$tst_symbol_defined" = "yes"; then
32471 curl_cv_have_def_h_errno=yes
32472
32473 else
32474 curl_cv_have_def_h_errno=no
32475
32476 fi
32477
32478 if test "$curl_cv_have_def_h_errno" = "yes"; then
32479 tst_h_errno_macro="yes"
32480 else
32481 tst_h_errno_macro="no"
32482 fi
32483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32484/* end confdefs.h. */
32485
32486
32487 $curl_includes_sys_socket
32488 $curl_includes_netdb
32489
32490int main (void)
32491{
32492
32493 h_errno = 2;
32494 if(0 != h_errno)
32495 return 1;
32496
32497 ;
32498 return 0;
32499}
32500
32501_ACEOF
32502if ac_fn_c_try_compile "$LINENO"; then :
32503
32504 tst_h_errno_modifiable_lvalue="yes"
32505
32506else
32507
32508 tst_h_errno_modifiable_lvalue="no"
32509
32510fi
32511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32513/* end confdefs.h. */
32514
32515
32516
32517int main (void)
32518{
32519
32520#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32521 return 0;
32522#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32523 return 0;
32524#else
32525 force compilation error
32526#endif
32527
32528 ;
32529 return 0;
32530}
32531
32532_ACEOF
32533if ac_fn_c_try_compile "$LINENO"; then :
32534
32535 tst_h_errno_sbs_issue_7="yes"
32536
32537else
32538
32539 tst_h_errno_sbs_issue_7="no"
32540
32541fi
32542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32543 if test "$tst_h_errno_macro" = "no" &&
32544 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32545 test "$tst_h_errno_sbs_issue_7" = "no"; then
32546 tst_tsafe_getaddrinfo="no"
32547 else
32548 tst_tsafe_getaddrinfo="yes"
32549 fi
32550 fi
32551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32552$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32553 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32554
32555cat >>confdefs.h <<_ACEOF
32556#define HAVE_GETADDRINFO_THREADSAFE 1
32557_ACEOF
32558
32559 curl_cv_func_getaddrinfo_threadsafe="yes"
32560 else
32561 curl_cv_func_getaddrinfo_threadsafe="no"
32562 fi
32563 fi
32564
32565
32566 #
32567 tst_links_gai_strerror="unknown"
32568 tst_proto_gai_strerror="unknown"
32569 tst_compi_gai_strerror="unknown"
32570 tst_allow_gai_strerror="unknown"
32571 #
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32573$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32575/* end confdefs.h. */
32576
32577
32578 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032579 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032580 $curl_includes_netdb
32581
32582int main (void)
32583{
32584
32585 if(0 != gai_strerror(0))
32586 return 1;
32587
32588 ;
32589 return 0;
32590}
32591
32592_ACEOF
32593if ac_fn_c_try_link "$LINENO"; then :
32594
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32596$as_echo "yes" >&6; }
32597 tst_links_gai_strerror="yes"
32598
32599else
32600
32601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32602$as_echo "no" >&6; }
32603 tst_links_gai_strerror="no"
32604
32605fi
32606rm -f core conftest.err conftest.$ac_objext \
32607 conftest$ac_exeext conftest.$ac_ext
32608 #
32609 if test "$tst_links_gai_strerror" = "yes"; then
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32611$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32613/* end confdefs.h. */
32614
32615 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032616 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032617 $curl_includes_netdb
32618
32619_ACEOF
32620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32621 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32622
32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32624$as_echo "yes" >&6; }
32625 tst_proto_gai_strerror="yes"
32626
32627else
32628
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630$as_echo "no" >&6; }
32631 tst_proto_gai_strerror="no"
32632
32633fi
32634rm -f conftest*
32635
32636 fi
32637 #
32638 if test "$tst_proto_gai_strerror" = "yes"; then
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32640$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32642/* end confdefs.h. */
32643
32644
32645 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032646 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032647 $curl_includes_netdb
32648
32649int main (void)
32650{
32651
32652 if(0 != gai_strerror(0))
32653 return 1;
32654
32655 ;
32656 return 0;
32657}
32658
32659_ACEOF
32660if ac_fn_c_try_compile "$LINENO"; then :
32661
32662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32663$as_echo "yes" >&6; }
32664 tst_compi_gai_strerror="yes"
32665
32666else
32667
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32669$as_echo "no" >&6; }
32670 tst_compi_gai_strerror="no"
32671
32672fi
32673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32674 fi
32675 #
32676 if test "$tst_compi_gai_strerror" = "yes"; then
32677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32678$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32679 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32681$as_echo "yes" >&6; }
32682 tst_allow_gai_strerror="yes"
32683 else
32684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32685$as_echo "no" >&6; }
32686 tst_allow_gai_strerror="no"
32687 fi
32688 fi
32689 #
32690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32691$as_echo_n "checking if gai_strerror might be used... " >&6; }
32692 if test "$tst_links_gai_strerror" = "yes" &&
32693 test "$tst_proto_gai_strerror" = "yes" &&
32694 test "$tst_compi_gai_strerror" = "yes" &&
32695 test "$tst_allow_gai_strerror" = "yes"; then
32696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32697$as_echo "yes" >&6; }
32698
32699cat >>confdefs.h <<_ACEOF
32700#define HAVE_GAI_STRERROR 1
32701_ACEOF
32702
32703 curl_cv_func_gai_strerror="yes"
32704 else
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32706$as_echo "no" >&6; }
32707 curl_cv_func_gai_strerror="no"
32708 fi
32709
32710
32711 #
32712 tst_links_gethostbyaddr="unknown"
32713 tst_proto_gethostbyaddr="unknown"
32714 tst_compi_gethostbyaddr="unknown"
32715 tst_allow_gethostbyaddr="unknown"
32716 #
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32718$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32720/* end confdefs.h. */
32721
32722
32723 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032724 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032725 $curl_includes_netdb
32726
32727int main (void)
32728{
32729
32730 if(0 != gethostbyaddr(0, 0, 0))
32731 return 1;
32732
32733 ;
32734 return 0;
32735}
32736
32737_ACEOF
32738if ac_fn_c_try_link "$LINENO"; then :
32739
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32741$as_echo "yes" >&6; }
32742 tst_links_gethostbyaddr="yes"
32743
32744else
32745
32746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32747$as_echo "no" >&6; }
32748 tst_links_gethostbyaddr="no"
32749
32750fi
32751rm -f core conftest.err conftest.$ac_objext \
32752 conftest$ac_exeext conftest.$ac_ext
32753 #
32754 if test "$tst_links_gethostbyaddr" = "yes"; then
32755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32756$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32758/* end confdefs.h. */
32759
32760 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032761 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032762 $curl_includes_netdb
32763
32764_ACEOF
32765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32766 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32767
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32769$as_echo "yes" >&6; }
32770 tst_proto_gethostbyaddr="yes"
32771
32772else
32773
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32775$as_echo "no" >&6; }
32776 tst_proto_gethostbyaddr="no"
32777
32778fi
32779rm -f conftest*
32780
32781 fi
32782 #
32783 if test "$tst_proto_gethostbyaddr" = "yes"; then
32784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32785$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32787/* end confdefs.h. */
32788
32789
32790 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032791 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032792 $curl_includes_netdb
32793
32794int main (void)
32795{
32796
32797 if(0 != gethostbyaddr(0, 0, 0))
32798 return 1;
32799
32800 ;
32801 return 0;
32802}
32803
32804_ACEOF
32805if ac_fn_c_try_compile "$LINENO"; then :
32806
32807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32808$as_echo "yes" >&6; }
32809 tst_compi_gethostbyaddr="yes"
32810
32811else
32812
32813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32814$as_echo "no" >&6; }
32815 tst_compi_gethostbyaddr="no"
32816
32817fi
32818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32819 fi
32820 #
32821 if test "$tst_compi_gethostbyaddr" = "yes"; then
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32823$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32824 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32826$as_echo "yes" >&6; }
32827 tst_allow_gethostbyaddr="yes"
32828 else
32829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32830$as_echo "no" >&6; }
32831 tst_allow_gethostbyaddr="no"
32832 fi
32833 fi
32834 #
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32836$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32837 if test "$tst_links_gethostbyaddr" = "yes" &&
32838 test "$tst_proto_gethostbyaddr" = "yes" &&
32839 test "$tst_compi_gethostbyaddr" = "yes" &&
32840 test "$tst_allow_gethostbyaddr" = "yes"; then
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32842$as_echo "yes" >&6; }
32843
32844cat >>confdefs.h <<_ACEOF
32845#define HAVE_GETHOSTBYADDR 1
32846_ACEOF
32847
32848 curl_cv_func_gethostbyaddr="yes"
32849 else
32850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32851$as_echo "no" >&6; }
32852 curl_cv_func_gethostbyaddr="no"
32853 fi
32854
32855
32856 #
32857 tst_links_gethostbyaddr_r="unknown"
32858 tst_proto_gethostbyaddr_r="unknown"
32859 tst_compi_gethostbyaddr_r="unknown"
32860 tst_allow_gethostbyaddr_r="unknown"
32861 tst_nargs_gethostbyaddr_r="unknown"
32862 #
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32864$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32866/* end confdefs.h. */
32867
32868
32869#define gethostbyaddr_r innocuous_gethostbyaddr_r
32870#ifdef __STDC__
32871# include <limits.h>
32872#else
32873# include <assert.h>
32874#endif
32875#undef gethostbyaddr_r
32876#ifdef __cplusplus
32877extern "C"
32878#endif
32879char gethostbyaddr_r ();
32880#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32881choke me
32882#endif
32883
32884int main (void)
32885{
32886return gethostbyaddr_r ();
32887 ;
32888 return 0;
32889}
32890
32891_ACEOF
32892if ac_fn_c_try_link "$LINENO"; then :
32893
32894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32895$as_echo "yes" >&6; }
32896 tst_links_gethostbyaddr_r="yes"
32897
32898else
32899
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32901$as_echo "no" >&6; }
32902 tst_links_gethostbyaddr_r="no"
32903
32904fi
32905rm -f core conftest.err conftest.$ac_objext \
32906 conftest$ac_exeext conftest.$ac_ext
32907 #
32908 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32910$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32912/* end confdefs.h. */
32913
32914 $curl_includes_netdb
32915
32916_ACEOF
32917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32918 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32919
32920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32921$as_echo "yes" >&6; }
32922 tst_proto_gethostbyaddr_r="yes"
32923
32924else
32925
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32927$as_echo "no" >&6; }
32928 tst_proto_gethostbyaddr_r="no"
32929
32930fi
32931rm -f conftest*
32932
32933 fi
32934 #
32935 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32936 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32938$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32940/* end confdefs.h. */
32941
32942
32943 $curl_includes_netdb
32944
32945int main (void)
32946{
32947
32948 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32949 return 1;
32950
32951 ;
32952 return 0;
32953}
32954
32955_ACEOF
32956if ac_fn_c_try_compile "$LINENO"; then :
32957
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32959$as_echo "yes" >&6; }
32960 tst_compi_gethostbyaddr_r="yes"
32961 tst_nargs_gethostbyaddr_r="5"
32962
32963else
32964
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32966$as_echo "no" >&6; }
32967 tst_compi_gethostbyaddr_r="no"
32968
32969fi
32970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32971 fi
32972 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
32974$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
32975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32976/* end confdefs.h. */
32977
32978
32979 $curl_includes_netdb
32980
32981int main (void)
32982{
32983
32984 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
32985 return 1;
32986
32987 ;
32988 return 0;
32989}
32990
32991_ACEOF
32992if ac_fn_c_try_compile "$LINENO"; then :
32993
32994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32995$as_echo "yes" >&6; }
32996 tst_compi_gethostbyaddr_r="yes"
32997 tst_nargs_gethostbyaddr_r="7"
32998
32999else
33000
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33002$as_echo "no" >&6; }
33003 tst_compi_gethostbyaddr_r="no"
33004
33005fi
33006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33007 fi
33008 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33010$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33012/* end confdefs.h. */
33013
33014
33015 $curl_includes_netdb
33016
33017int main (void)
33018{
33019
33020 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33021 return 1;
33022
33023 ;
33024 return 0;
33025}
33026
33027_ACEOF
33028if ac_fn_c_try_compile "$LINENO"; then :
33029
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33031$as_echo "yes" >&6; }
33032 tst_compi_gethostbyaddr_r="yes"
33033 tst_nargs_gethostbyaddr_r="8"
33034
33035else
33036
33037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33038$as_echo "no" >&6; }
33039 tst_compi_gethostbyaddr_r="no"
33040
33041fi
33042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33043 fi
33044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33045$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33046 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33048$as_echo "yes" >&6; }
33049 else
33050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33051$as_echo "no" >&6; }
33052 fi
33053 fi
33054 #
33055 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33057$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33058 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33060$as_echo "yes" >&6; }
33061 tst_allow_gethostbyaddr_r="yes"
33062 else
33063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33064$as_echo "no" >&6; }
33065 tst_allow_gethostbyaddr_r="no"
33066 fi
33067 fi
33068 #
33069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33070$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33071 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33072 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33073 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33074 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33076$as_echo "yes" >&6; }
33077
33078cat >>confdefs.h <<_ACEOF
33079#define HAVE_GETHOSTBYADDR_R 1
33080_ACEOF
33081
33082 #
33083 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33084
33085$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33086
33087 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33088
33089$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33090
33091 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33092
33093$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33094
33095 fi
33096 #
33097 curl_cv_func_gethostbyaddr_r="yes"
33098 else
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33100$as_echo "no" >&6; }
33101 curl_cv_func_gethostbyaddr_r="no"
33102 fi
33103
33104
33105 #
33106 tst_links_gethostbyname="unknown"
33107 tst_proto_gethostbyname="unknown"
33108 tst_compi_gethostbyname="unknown"
33109 tst_allow_gethostbyname="unknown"
33110 #
33111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33112$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33114/* end confdefs.h. */
33115
33116
33117 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033118 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033119 $curl_includes_netdb
33120
33121int main (void)
33122{
33123
33124 if(0 != gethostbyname(0))
33125 return 1;
33126
33127 ;
33128 return 0;
33129}
33130
33131_ACEOF
33132if ac_fn_c_try_link "$LINENO"; then :
33133
33134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33135$as_echo "yes" >&6; }
33136 tst_links_gethostbyname="yes"
33137
33138else
33139
33140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33141$as_echo "no" >&6; }
33142 tst_links_gethostbyname="no"
33143
33144fi
33145rm -f core conftest.err conftest.$ac_objext \
33146 conftest$ac_exeext conftest.$ac_ext
33147 #
33148 if test "$tst_links_gethostbyname" = "yes"; then
33149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33150$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33152/* end confdefs.h. */
33153
33154 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033155 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033156 $curl_includes_netdb
33157
33158_ACEOF
33159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33160 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33161
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33163$as_echo "yes" >&6; }
33164 tst_proto_gethostbyname="yes"
33165
33166else
33167
33168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33169$as_echo "no" >&6; }
33170 tst_proto_gethostbyname="no"
33171
33172fi
33173rm -f conftest*
33174
33175 fi
33176 #
33177 if test "$tst_proto_gethostbyname" = "yes"; then
33178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33179$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33181/* end confdefs.h. */
33182
33183
33184 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033185 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033186 $curl_includes_netdb
33187
33188int main (void)
33189{
33190
33191 if(0 != gethostbyname(0))
33192 return 1;
33193
33194 ;
33195 return 0;
33196}
33197
33198_ACEOF
33199if ac_fn_c_try_compile "$LINENO"; then :
33200
33201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33202$as_echo "yes" >&6; }
33203 tst_compi_gethostbyname="yes"
33204
33205else
33206
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33208$as_echo "no" >&6; }
33209 tst_compi_gethostbyname="no"
33210
33211fi
33212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33213 fi
33214 #
33215 if test "$tst_compi_gethostbyname" = "yes"; then
33216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33217$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33218 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33220$as_echo "yes" >&6; }
33221 tst_allow_gethostbyname="yes"
33222 else
33223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33224$as_echo "no" >&6; }
33225 tst_allow_gethostbyname="no"
33226 fi
33227 fi
33228 #
33229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33230$as_echo_n "checking if gethostbyname might be used... " >&6; }
33231 if test "$tst_links_gethostbyname" = "yes" &&
33232 test "$tst_proto_gethostbyname" = "yes" &&
33233 test "$tst_compi_gethostbyname" = "yes" &&
33234 test "$tst_allow_gethostbyname" = "yes"; then
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33236$as_echo "yes" >&6; }
33237
33238cat >>confdefs.h <<_ACEOF
33239#define HAVE_GETHOSTBYNAME 1
33240_ACEOF
33241
33242 curl_cv_func_gethostbyname="yes"
33243 else
33244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33245$as_echo "no" >&6; }
33246 curl_cv_func_gethostbyname="no"
33247 fi
33248
33249
33250 #
33251 tst_links_gethostbyname_r="unknown"
33252 tst_proto_gethostbyname_r="unknown"
33253 tst_compi_gethostbyname_r="unknown"
33254 tst_allow_gethostbyname_r="unknown"
33255 tst_nargs_gethostbyname_r="unknown"
33256 #
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33258$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33260/* end confdefs.h. */
33261
33262
33263#define gethostbyname_r innocuous_gethostbyname_r
33264#ifdef __STDC__
33265# include <limits.h>
33266#else
33267# include <assert.h>
33268#endif
33269#undef gethostbyname_r
33270#ifdef __cplusplus
33271extern "C"
33272#endif
33273char gethostbyname_r ();
33274#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33275choke me
33276#endif
33277
33278int main (void)
33279{
33280return gethostbyname_r ();
33281 ;
33282 return 0;
33283}
33284
33285_ACEOF
33286if ac_fn_c_try_link "$LINENO"; then :
33287
33288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33289$as_echo "yes" >&6; }
33290 tst_links_gethostbyname_r="yes"
33291
33292else
33293
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295$as_echo "no" >&6; }
33296 tst_links_gethostbyname_r="no"
33297
33298fi
33299rm -f core conftest.err conftest.$ac_objext \
33300 conftest$ac_exeext conftest.$ac_ext
33301 #
33302 if test "$tst_links_gethostbyname_r" = "yes"; then
33303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33304$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33306/* end confdefs.h. */
33307
33308 $curl_includes_netdb
33309
33310_ACEOF
33311if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33312 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33313
33314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33315$as_echo "yes" >&6; }
33316 tst_proto_gethostbyname_r="yes"
33317
33318else
33319
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321$as_echo "no" >&6; }
33322 tst_proto_gethostbyname_r="no"
33323
33324fi
33325rm -f conftest*
33326
33327 fi
33328 #
33329 if test "$tst_proto_gethostbyname_r" = "yes"; then
33330 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33332$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33334/* end confdefs.h. */
33335
33336
33337 $curl_includes_netdb
33338
33339int main (void)
33340{
33341
33342 if(0 != gethostbyname_r(0, 0, 0))
33343 return 1;
33344
33345 ;
33346 return 0;
33347}
33348
33349_ACEOF
33350if ac_fn_c_try_compile "$LINENO"; then :
33351
33352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33353$as_echo "yes" >&6; }
33354 tst_compi_gethostbyname_r="yes"
33355 tst_nargs_gethostbyname_r="3"
33356
33357else
33358
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33360$as_echo "no" >&6; }
33361 tst_compi_gethostbyname_r="no"
33362
33363fi
33364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33365 fi
33366 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33368$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33370/* end confdefs.h. */
33371
33372
33373 $curl_includes_netdb
33374
33375int main (void)
33376{
33377
33378 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33379 return 1;
33380
33381 ;
33382 return 0;
33383}
33384
33385_ACEOF
33386if ac_fn_c_try_compile "$LINENO"; then :
33387
33388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33389$as_echo "yes" >&6; }
33390 tst_compi_gethostbyname_r="yes"
33391 tst_nargs_gethostbyname_r="5"
33392
33393else
33394
33395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33396$as_echo "no" >&6; }
33397 tst_compi_gethostbyname_r="no"
33398
33399fi
33400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33401 fi
33402 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33404$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33406/* end confdefs.h. */
33407
33408
33409 $curl_includes_netdb
33410
33411int main (void)
33412{
33413
33414 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33415 return 1;
33416
33417 ;
33418 return 0;
33419}
33420
33421_ACEOF
33422if ac_fn_c_try_compile "$LINENO"; then :
33423
33424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33425$as_echo "yes" >&6; }
33426 tst_compi_gethostbyname_r="yes"
33427 tst_nargs_gethostbyname_r="6"
33428
33429else
33430
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33432$as_echo "no" >&6; }
33433 tst_compi_gethostbyname_r="no"
33434
33435fi
33436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33437 fi
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33439$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33440 if test "$tst_compi_gethostbyname_r" = "yes"; then
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33442$as_echo "yes" >&6; }
33443 else
33444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33445$as_echo "no" >&6; }
33446 fi
33447 fi
33448 #
33449 if test "$tst_compi_gethostbyname_r" = "yes"; then
33450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33451$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33452 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33454$as_echo "yes" >&6; }
33455 tst_allow_gethostbyname_r="yes"
33456 else
33457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33458$as_echo "no" >&6; }
33459 tst_allow_gethostbyname_r="no"
33460 fi
33461 fi
33462 #
33463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33464$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33465 if test "$tst_links_gethostbyname_r" = "yes" &&
33466 test "$tst_proto_gethostbyname_r" = "yes" &&
33467 test "$tst_compi_gethostbyname_r" = "yes" &&
33468 test "$tst_allow_gethostbyname_r" = "yes"; then
33469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33470$as_echo "yes" >&6; }
33471
33472cat >>confdefs.h <<_ACEOF
33473#define HAVE_GETHOSTBYNAME_R 1
33474_ACEOF
33475
33476 #
33477 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33478
33479$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33480
33481 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33482
33483$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33484
33485 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33486
33487$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33488
33489 fi
33490 #
33491 curl_cv_func_gethostbyname_r="yes"
33492 else
33493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33494$as_echo "no" >&6; }
33495 curl_cv_func_gethostbyname_r="no"
33496 fi
33497
33498
Elliott Hughesa93fb052018-12-12 14:22:48 -080033499curl_preprocess_callconv="\
33500/* preprocess start */
33501#ifdef HAVE_WINDOWS_H
33502# define FUNCALLCONV __stdcall
33503#else
33504# define FUNCALLCONV
33505#endif
33506/* preprocess end */"
33507
33508
Haibo Huang65021c72019-03-27 15:37:23 -070033509 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070033510 tst_links_gethostname="unknown"
33511 tst_proto_gethostname="unknown"
33512 tst_compi_gethostname="unknown"
33513 tst_allow_gethostname="unknown"
33514 #
33515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33516$as_echo_n "checking if gethostname can be linked... " >&6; }
33517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33518/* end confdefs.h. */
33519
33520
33521 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033522 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033523 $curl_includes_unistd
33524
33525int main (void)
33526{
33527
33528 if(0 != gethostname(0, 0))
33529 return 1;
33530
33531 ;
33532 return 0;
33533}
33534
33535_ACEOF
33536if ac_fn_c_try_link "$LINENO"; then :
33537
33538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33539$as_echo "yes" >&6; }
33540 tst_links_gethostname="yes"
33541
33542else
33543
33544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33545$as_echo "no" >&6; }
33546 tst_links_gethostname="no"
33547
33548fi
33549rm -f core conftest.err conftest.$ac_objext \
33550 conftest$ac_exeext conftest.$ac_ext
33551 #
33552 if test "$tst_links_gethostname" = "yes"; then
33553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33554$as_echo_n "checking if gethostname is prototyped... " >&6; }
33555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33556/* end confdefs.h. */
33557
33558 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033559 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033560 $curl_includes_unistd
33561
33562_ACEOF
33563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33564 $EGREP "gethostname" >/dev/null 2>&1; then :
33565
33566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33567$as_echo "yes" >&6; }
33568 tst_proto_gethostname="yes"
33569
33570else
33571
33572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33573$as_echo "no" >&6; }
33574 tst_proto_gethostname="no"
33575
33576fi
33577rm -f conftest*
33578
33579 fi
33580 #
33581 if test "$tst_proto_gethostname" = "yes"; then
33582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33583$as_echo_n "checking if gethostname is compilable... " >&6; }
33584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33585/* end confdefs.h. */
33586
33587
33588 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033589 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033590 $curl_includes_unistd
33591
33592int main (void)
33593{
33594
33595 if(0 != gethostname(0, 0))
33596 return 1;
33597
33598 ;
33599 return 0;
33600}
33601
33602_ACEOF
33603if ac_fn_c_try_compile "$LINENO"; then :
33604
33605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33606$as_echo "yes" >&6; }
33607 tst_compi_gethostname="yes"
33608
33609else
33610
33611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33612$as_echo "no" >&6; }
33613 tst_compi_gethostname="no"
33614
33615fi
33616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33617 fi
33618 #
33619 if test "$tst_compi_gethostname" = "yes"; then
33620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33621$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33622 tst_gethostname_type_arg2="unknown"
33623 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33624 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33625 if test "$tst_gethostname_type_arg2" = "unknown"; then
33626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33627/* end confdefs.h. */
33628
33629
33630 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033631 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033632 $curl_includes_unistd
33633 $curl_preprocess_callconv
33634 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33635
33636int main (void)
33637{
33638
33639 if(0 != gethostname(0, 0))
33640 return 1;
33641
33642 ;
33643 return 0;
33644}
33645
33646_ACEOF
33647if ac_fn_c_try_compile "$LINENO"; then :
33648
33649 tst_gethostname_type_arg2="$tst_arg2"
33650
33651fi
33652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33653 fi
33654 done
33655 done
33656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33657$as_echo "$tst_gethostname_type_arg2" >&6; }
33658 if test "$tst_gethostname_type_arg2" != "unknown"; then
33659
33660cat >>confdefs.h <<_ACEOF
33661#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33662_ACEOF
33663
33664 fi
33665 fi
33666 #
33667 if test "$tst_compi_gethostname" = "yes"; then
33668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33669$as_echo_n "checking if gethostname usage allowed... " >&6; }
33670 if test "x$curl_disallow_gethostname" != "xyes"; then
33671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33672$as_echo "yes" >&6; }
33673 tst_allow_gethostname="yes"
33674 else
33675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33676$as_echo "no" >&6; }
33677 tst_allow_gethostname="no"
33678 fi
33679 fi
33680 #
33681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33682$as_echo_n "checking if gethostname might be used... " >&6; }
33683 if test "$tst_links_gethostname" = "yes" &&
33684 test "$tst_proto_gethostname" = "yes" &&
33685 test "$tst_compi_gethostname" = "yes" &&
33686 test "$tst_allow_gethostname" = "yes"; then
33687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33688$as_echo "yes" >&6; }
33689
33690cat >>confdefs.h <<_ACEOF
33691#define HAVE_GETHOSTNAME 1
33692_ACEOF
33693
33694 curl_cv_func_gethostname="yes"
33695 else
33696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33697$as_echo "no" >&6; }
33698 curl_cv_func_gethostname="no"
33699 fi
33700
33701
Haibo Huang34ab3462019-05-22 00:50:27 -070033702 #
33703 tst_links_getpeername="unknown"
33704 tst_proto_getpeername="unknown"
33705 tst_compi_getpeername="unknown"
33706 tst_allow_getpeername="unknown"
33707 #
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
33709$as_echo_n "checking if getpeername can be linked... " >&6; }
33710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33711/* end confdefs.h. */
33712
33713
33714 $curl_includes_winsock2
33715 $curl_includes_bsdsocket
33716 $curl_includes_sys_socket
33717
33718int main (void)
33719{
33720
33721 if(0 != getpeername(0, (void *)0, (void *)0))
33722 return 1;
33723
33724 ;
33725 return 0;
33726}
33727
33728_ACEOF
33729if ac_fn_c_try_link "$LINENO"; then :
33730
33731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33732$as_echo "yes" >&6; }
33733 tst_links_getpeername="yes"
33734
33735else
33736
33737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33738$as_echo "no" >&6; }
33739 tst_links_getpeername="no"
33740
33741fi
33742rm -f core conftest.err conftest.$ac_objext \
33743 conftest$ac_exeext conftest.$ac_ext
33744 #
33745 if test "$tst_links_getpeername" = "yes"; then
33746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
33747$as_echo_n "checking if getpeername is prototyped... " >&6; }
33748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33749/* end confdefs.h. */
33750
33751 $curl_includes_winsock2
33752 $curl_includes_bsdsocket
33753 $curl_includes_sys_socket
33754
33755_ACEOF
33756if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33757 $EGREP "getpeername" >/dev/null 2>&1; then :
33758
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33760$as_echo "yes" >&6; }
33761 tst_proto_getpeername="yes"
33762
33763else
33764
33765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33766$as_echo "no" >&6; }
33767 tst_proto_getpeername="no"
33768
33769fi
33770rm -f conftest*
33771
33772 fi
33773 #
33774 if test "$tst_proto_getpeername" = "yes"; then
33775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
33776$as_echo_n "checking if getpeername is compilable... " >&6; }
33777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33778/* end confdefs.h. */
33779
33780
33781 $curl_includes_winsock2
33782 $curl_includes_bsdsocket
33783 $curl_includes_sys_socket
33784
33785int main (void)
33786{
33787
33788 if(0 != getpeername(0, (void *)0, (void *)0))
33789 return 1;
33790
33791 ;
33792 return 0;
33793}
33794
33795_ACEOF
33796if ac_fn_c_try_compile "$LINENO"; then :
33797
33798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33799$as_echo "yes" >&6; }
33800 tst_compi_getpeername="yes"
33801
33802else
33803
33804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33805$as_echo "no" >&6; }
33806 tst_compi_getpeername="no"
33807
33808fi
33809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33810 fi
33811 #
33812 if test "$tst_compi_getpeername" = "yes"; then
33813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
33814$as_echo_n "checking if getpeername usage allowed... " >&6; }
33815 if test "x$curl_disallow_getpeername" != "xyes"; then
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33817$as_echo "yes" >&6; }
33818 tst_allow_getpeername="yes"
33819 else
33820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33821$as_echo "no" >&6; }
33822 tst_allow_getpeername="no"
33823 fi
33824 fi
33825 #
33826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
33827$as_echo_n "checking if getpeername might be used... " >&6; }
33828 if test "$tst_links_getpeername" = "yes" &&
33829 test "$tst_proto_getpeername" = "yes" &&
33830 test "$tst_compi_getpeername" = "yes" &&
33831 test "$tst_allow_getpeername" = "yes"; then
33832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33833$as_echo "yes" >&6; }
33834
33835cat >>confdefs.h <<_ACEOF
33836#define HAVE_GETPEERNAME 1
33837_ACEOF
33838
33839 curl_cv_func_getpeername="yes"
33840 else
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33842$as_echo "no" >&6; }
33843 curl_cv_func_getpeername="no"
33844 fi
33845
33846
33847 #
33848 tst_links_getsockname="unknown"
33849 tst_proto_getsockname="unknown"
33850 tst_compi_getsockname="unknown"
33851 tst_allow_getsockname="unknown"
33852 #
33853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
33854$as_echo_n "checking if getsockname can be linked... " >&6; }
33855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33856/* end confdefs.h. */
33857
33858
33859 $curl_includes_winsock2
33860 $curl_includes_bsdsocket
33861 $curl_includes_sys_socket
33862
33863int main (void)
33864{
33865
33866 if(0 != getsockname(0, (void *)0, (void *)0))
33867 return 1;
33868
33869 ;
33870 return 0;
33871}
33872
33873_ACEOF
33874if ac_fn_c_try_link "$LINENO"; then :
33875
33876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33877$as_echo "yes" >&6; }
33878 tst_links_getsockname="yes"
33879
33880else
33881
33882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33883$as_echo "no" >&6; }
33884 tst_links_getsockname="no"
33885
33886fi
33887rm -f core conftest.err conftest.$ac_objext \
33888 conftest$ac_exeext conftest.$ac_ext
33889 #
33890 if test "$tst_links_getsockname" = "yes"; then
33891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
33892$as_echo_n "checking if getsockname is prototyped... " >&6; }
33893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33894/* end confdefs.h. */
33895
33896 $curl_includes_winsock2
33897 $curl_includes_bsdsocket
33898 $curl_includes_sys_socket
33899
33900_ACEOF
33901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33902 $EGREP "getsockname" >/dev/null 2>&1; then :
33903
33904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33905$as_echo "yes" >&6; }
33906 tst_proto_getsockname="yes"
33907
33908else
33909
33910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33911$as_echo "no" >&6; }
33912 tst_proto_getsockname="no"
33913
33914fi
33915rm -f conftest*
33916
33917 fi
33918 #
33919 if test "$tst_proto_getsockname" = "yes"; then
33920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
33921$as_echo_n "checking if getsockname is compilable... " >&6; }
33922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33923/* end confdefs.h. */
33924
33925
33926 $curl_includes_winsock2
33927 $curl_includes_bsdsocket
33928 $curl_includes_sys_socket
33929
33930int main (void)
33931{
33932
33933 if(0 != getsockname(0, (void *)0, (void *)0))
33934 return 1;
33935
33936 ;
33937 return 0;
33938}
33939
33940_ACEOF
33941if ac_fn_c_try_compile "$LINENO"; then :
33942
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33944$as_echo "yes" >&6; }
33945 tst_compi_getsockname="yes"
33946
33947else
33948
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33950$as_echo "no" >&6; }
33951 tst_compi_getsockname="no"
33952
33953fi
33954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33955 fi
33956 #
33957 if test "$tst_compi_getsockname" = "yes"; then
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
33959$as_echo_n "checking if getsockname usage allowed... " >&6; }
33960 if test "x$curl_disallow_getsockname" != "xyes"; then
33961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33962$as_echo "yes" >&6; }
33963 tst_allow_getsockname="yes"
33964 else
33965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33966$as_echo "no" >&6; }
33967 tst_allow_getsockname="no"
33968 fi
33969 fi
33970 #
33971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
33972$as_echo_n "checking if getsockname might be used... " >&6; }
33973 if test "$tst_links_getsockname" = "yes" &&
33974 test "$tst_proto_getsockname" = "yes" &&
33975 test "$tst_compi_getsockname" = "yes" &&
33976 test "$tst_allow_getsockname" = "yes"; then
33977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33978$as_echo "yes" >&6; }
33979
33980cat >>confdefs.h <<_ACEOF
33981#define HAVE_GETSOCKNAME 1
33982_ACEOF
33983
33984 curl_cv_func_getsockname="yes"
33985 else
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33987$as_echo "no" >&6; }
33988 curl_cv_func_getsockname="no"
33989 fi
33990
33991
Haibo Huangb6336c12019-06-05 01:34:44 -070033992curl_includes_netif="\
33993/* includes start */
33994#ifdef HAVE_NET_IF_H
33995# include <net/if.h>
33996#endif
33997/* includes end */"
33998 for ac_header in net/if.h
33999do :
34000 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
34001"
34002if test "x$ac_cv_header_net_if_h" = xyes; then :
34003 cat >>confdefs.h <<_ACEOF
34004#define HAVE_NET_IF_H 1
34005_ACEOF
34006
34007fi
34008
34009done
34010
34011
34012
34013 #
34014 tst_links_if_nametoindex="unknown"
34015 tst_proto_if_nametoindex="unknown"
34016 tst_compi_if_nametoindex="unknown"
34017 tst_allow_if_nametoindex="unknown"
34018 #
34019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
34020$as_echo_n "checking if if_nametoindex can be linked... " >&6; }
34021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34022/* end confdefs.h. */
34023
34024
34025 $curl_includes_winsock2
34026 $curl_includes_bsdsocket
34027 #include <net/if.h>
34028
34029int main (void)
34030{
34031
34032 if(0 != if_nametoindex(""))
34033 return 1;
34034
34035 ;
34036 return 0;
34037}
34038
34039_ACEOF
34040if ac_fn_c_try_link "$LINENO"; then :
34041
34042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34043$as_echo "yes" >&6; }
34044 tst_links_if_nametoindex="yes"
34045
34046else
34047
34048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34049$as_echo "no" >&6; }
34050 tst_links_if_nametoindex="no"
34051
34052fi
34053rm -f core conftest.err conftest.$ac_objext \
34054 conftest$ac_exeext conftest.$ac_ext
34055 #
34056 if test "$tst_links_if_nametoindex" = "yes"; then
34057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
34058$as_echo_n "checking if if_nametoindex is prototyped... " >&6; }
34059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34060/* end confdefs.h. */
34061
34062 $curl_includes_winsock2
34063 $curl_includes_netif
34064
34065_ACEOF
34066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34067 $EGREP "if_nametoindex" >/dev/null 2>&1; then :
34068
34069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34070$as_echo "yes" >&6; }
34071 tst_proto_if_nametoindex="yes"
34072
34073else
34074
34075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34076$as_echo "no" >&6; }
34077 tst_proto_if_nametoindex="no"
34078
34079fi
34080rm -f conftest*
34081
34082 fi
34083 #
34084 if test "$tst_proto_if_nametoindex" = "yes"; then
34085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
34086$as_echo_n "checking if if_nametoindex is compilable... " >&6; }
34087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34088/* end confdefs.h. */
34089
34090
34091 $curl_includes_winsock2
34092 $curl_includes_netif
34093
34094int main (void)
34095{
34096
34097 if(0 != if_nametoindex(""))
34098 return 1;
34099
34100 ;
34101 return 0;
34102}
34103
34104_ACEOF
34105if ac_fn_c_try_compile "$LINENO"; then :
34106
34107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34108$as_echo "yes" >&6; }
34109 tst_compi_if_nametoindex="yes"
34110
34111else
34112
34113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34114$as_echo "no" >&6; }
34115 tst_compi_if_nametoindex="no"
34116
34117fi
34118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34119 fi
34120 #
34121 if test "$tst_compi_if_nametoindex" = "yes"; then
34122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
34123$as_echo_n "checking if if_nametoindex usage allowed... " >&6; }
34124 if test "x$curl_disallow_if_nametoindex" != "xyes"; then
34125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34126$as_echo "yes" >&6; }
34127 tst_allow_if_nametoindex="yes"
34128 else
34129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34130$as_echo "no" >&6; }
34131 tst_allow_if_nametoindex="no"
34132 fi
34133 fi
34134 #
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
34136$as_echo_n "checking if if_nametoindex might be used... " >&6; }
34137 if test "$tst_links_if_nametoindex" = "yes" &&
34138 test "$tst_proto_if_nametoindex" = "yes" &&
34139 test "$tst_compi_if_nametoindex" = "yes" &&
34140 test "$tst_allow_if_nametoindex" = "yes"; then
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34142$as_echo "yes" >&6; }
34143
34144cat >>confdefs.h <<_ACEOF
34145#define HAVE_IF_NAMETOINDEX 1
34146_ACEOF
34147
34148 curl_cv_func_if_nametoindex="yes"
34149 else
34150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34151$as_echo "no" >&6; }
34152 curl_cv_func_if_nametoindex="no"
34153 fi
34154
34155
Elliott Hughes82be86d2017-09-20 17:00:17 -070034156 #
34157 tst_links_getifaddrs="unknown"
34158 tst_proto_getifaddrs="unknown"
34159 tst_compi_getifaddrs="unknown"
34160 tst_works_getifaddrs="unknown"
34161 tst_allow_getifaddrs="unknown"
34162 #
34163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
34164$as_echo_n "checking if getifaddrs can be linked... " >&6; }
34165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34166/* end confdefs.h. */
34167
34168
34169#define getifaddrs innocuous_getifaddrs
34170#ifdef __STDC__
34171# include <limits.h>
34172#else
34173# include <assert.h>
34174#endif
34175#undef getifaddrs
34176#ifdef __cplusplus
34177extern "C"
34178#endif
34179char getifaddrs ();
34180#if defined __stub_getifaddrs || defined __stub___getifaddrs
34181choke me
34182#endif
34183
34184int main (void)
34185{
34186return getifaddrs ();
34187 ;
34188 return 0;
34189}
34190
34191_ACEOF
34192if ac_fn_c_try_link "$LINENO"; then :
34193
34194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34195$as_echo "yes" >&6; }
34196 tst_links_getifaddrs="yes"
34197
34198else
34199
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34201$as_echo "no" >&6; }
34202 tst_links_getifaddrs="no"
34203
34204fi
34205rm -f core conftest.err conftest.$ac_objext \
34206 conftest$ac_exeext conftest.$ac_ext
34207 #
34208 if test "$tst_links_getifaddrs" = "yes"; then
34209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
34210$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
34211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34212/* end confdefs.h. */
34213
34214 $curl_includes_ifaddrs
34215
34216_ACEOF
34217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34218 $EGREP "getifaddrs" >/dev/null 2>&1; then :
34219
34220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34221$as_echo "yes" >&6; }
34222 tst_proto_getifaddrs="yes"
34223
34224else
34225
34226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34227$as_echo "no" >&6; }
34228 tst_proto_getifaddrs="no"
34229
34230fi
34231rm -f conftest*
34232
34233 fi
34234 #
34235 if test "$tst_proto_getifaddrs" = "yes"; then
34236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34237$as_echo_n "checking if getifaddrs is compilable... " >&6; }
34238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34239/* end confdefs.h. */
34240
34241
34242 $curl_includes_ifaddrs
34243
34244int main (void)
34245{
34246
34247 if(0 != getifaddrs(0))
34248 return 1;
34249
34250 ;
34251 return 0;
34252}
34253
34254_ACEOF
34255if ac_fn_c_try_compile "$LINENO"; then :
34256
34257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34258$as_echo "yes" >&6; }
34259 tst_compi_getifaddrs="yes"
34260
34261else
34262
34263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34264$as_echo "no" >&6; }
34265 tst_compi_getifaddrs="no"
34266
34267fi
34268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34269 fi
34270 #
34271 if test "x$cross_compiling" != "xyes" &&
34272 test "$tst_compi_getifaddrs" = "yes"; then
34273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34274$as_echo_n "checking if getifaddrs seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034275
34276
34277 old=$LD_LIBRARY_PATH
34278 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34279 export LD_LIBRARY_PATH
34280 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34283as_fn_error $? "cannot run test program while cross compiling
34284See \`config.log' for more details" "$LINENO" 5; }
34285else
34286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34287/* end confdefs.h. */
34288
34289
34290 $curl_includes_stdlib
34291 $curl_includes_ifaddrs
34292
34293int main (void)
34294{
34295
34296 struct ifaddrs *ifa = 0;
34297 int error;
34298
34299 error = getifaddrs(&ifa);
34300 if(error || !ifa)
34301 exit(1); /* fail */
34302 else
34303 exit(0);
34304
34305 ;
34306 return 0;
34307}
34308
34309_ACEOF
34310if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034312$as_echo "yes" >&6; }
34313 tst_works_getifaddrs="yes"
34314
34315else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034317$as_echo "no" >&6; }
34318 tst_works_getifaddrs="no"
34319
34320fi
34321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34322 conftest.$ac_objext conftest.beam conftest.$ac_ext
34323fi
34324
Elliott Hughesa93fb052018-12-12 14:22:48 -080034325 LD_LIBRARY_PATH=$old # restore
34326
Elliott Hughes82be86d2017-09-20 17:00:17 -070034327 fi
34328 #
34329 if test "$tst_compi_getifaddrs" = "yes" &&
34330 test "$tst_works_getifaddrs" != "no"; then
34331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34332$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34333 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34335$as_echo "yes" >&6; }
34336 tst_allow_getifaddrs="yes"
34337 else
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34339$as_echo "no" >&6; }
34340 tst_allow_getifaddrs="no"
34341 fi
34342 fi
34343 #
34344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34345$as_echo_n "checking if getifaddrs might be used... " >&6; }
34346 if test "$tst_links_getifaddrs" = "yes" &&
34347 test "$tst_proto_getifaddrs" = "yes" &&
34348 test "$tst_compi_getifaddrs" = "yes" &&
34349 test "$tst_allow_getifaddrs" = "yes" &&
34350 test "$tst_works_getifaddrs" != "no"; then
34351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34352$as_echo "yes" >&6; }
34353
34354cat >>confdefs.h <<_ACEOF
34355#define HAVE_GETIFADDRS 1
34356_ACEOF
34357
34358 curl_cv_func_getifaddrs="yes"
34359 else
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34361$as_echo "no" >&6; }
34362 curl_cv_func_getifaddrs="no"
34363 fi
34364
34365
34366 #
34367 tst_links_getservbyport_r="unknown"
34368 tst_proto_getservbyport_r="unknown"
34369 tst_compi_getservbyport_r="unknown"
34370 tst_allow_getservbyport_r="unknown"
34371 tst_nargs_getservbyport_r="unknown"
34372 #
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34374$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34376/* end confdefs.h. */
34377
34378
34379#define getservbyport_r innocuous_getservbyport_r
34380#ifdef __STDC__
34381# include <limits.h>
34382#else
34383# include <assert.h>
34384#endif
34385#undef getservbyport_r
34386#ifdef __cplusplus
34387extern "C"
34388#endif
34389char getservbyport_r ();
34390#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34391choke me
34392#endif
34393
34394int main (void)
34395{
34396return getservbyport_r ();
34397 ;
34398 return 0;
34399}
34400
34401_ACEOF
34402if ac_fn_c_try_link "$LINENO"; then :
34403
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34405$as_echo "yes" >&6; }
34406 tst_links_getservbyport_r="yes"
34407
34408else
34409
34410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34411$as_echo "no" >&6; }
34412 tst_links_getservbyport_r="no"
34413
34414fi
34415rm -f core conftest.err conftest.$ac_objext \
34416 conftest$ac_exeext conftest.$ac_ext
34417 #
34418 if test "$tst_links_getservbyport_r" = "yes"; then
34419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34420$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34422/* end confdefs.h. */
34423
34424 $curl_includes_netdb
34425
34426_ACEOF
34427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34428 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34429
34430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34431$as_echo "yes" >&6; }
34432 tst_proto_getservbyport_r="yes"
34433
34434else
34435
34436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34437$as_echo "no" >&6; }
34438 tst_proto_getservbyport_r="no"
34439
34440fi
34441rm -f conftest*
34442
34443 fi
34444 #
34445 if test "$tst_proto_getservbyport_r" = "yes"; then
34446 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34448$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34450/* end confdefs.h. */
34451
34452
34453 $curl_includes_netdb
34454
34455int main (void)
34456{
34457
34458 if(0 != getservbyport_r(0, 0, 0, 0))
34459 return 1;
34460
34461 ;
34462 return 0;
34463}
34464
34465_ACEOF
34466if ac_fn_c_try_compile "$LINENO"; then :
34467
34468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34469$as_echo "yes" >&6; }
34470 tst_compi_getservbyport_r="yes"
34471 tst_nargs_getservbyport_r="4"
34472
34473else
34474
34475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34476$as_echo "no" >&6; }
34477 tst_compi_getservbyport_r="no"
34478
34479fi
34480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34481 fi
34482 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34484$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34486/* end confdefs.h. */
34487
34488
34489 $curl_includes_netdb
34490
34491int main (void)
34492{
34493
34494 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34495 return 1;
34496
34497 ;
34498 return 0;
34499}
34500
34501_ACEOF
34502if ac_fn_c_try_compile "$LINENO"; then :
34503
34504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34505$as_echo "yes" >&6; }
34506 tst_compi_getservbyport_r="yes"
34507 tst_nargs_getservbyport_r="5"
34508
34509else
34510
34511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34512$as_echo "no" >&6; }
34513 tst_compi_getservbyport_r="no"
34514
34515fi
34516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34517 fi
34518 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34520$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34522/* end confdefs.h. */
34523
34524
34525 $curl_includes_netdb
34526
34527int main (void)
34528{
34529
34530 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34531 return 1;
34532
34533 ;
34534 return 0;
34535}
34536
34537_ACEOF
34538if ac_fn_c_try_compile "$LINENO"; then :
34539
34540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34541$as_echo "yes" >&6; }
34542 tst_compi_getservbyport_r="yes"
34543 tst_nargs_getservbyport_r="6"
34544
34545else
34546
34547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34548$as_echo "no" >&6; }
34549 tst_compi_getservbyport_r="no"
34550
34551fi
34552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34553 fi
34554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34555$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34556 if test "$tst_compi_getservbyport_r" = "yes"; then
34557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34558$as_echo "yes" >&6; }
34559 else
34560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34561$as_echo "no" >&6; }
34562 fi
34563 fi
34564 #
34565 if test "$tst_compi_getservbyport_r" = "yes"; then
34566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34567$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34568 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34570$as_echo "yes" >&6; }
34571 tst_allow_getservbyport_r="yes"
34572 else
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34574$as_echo "no" >&6; }
34575 tst_allow_getservbyport_r="no"
34576 fi
34577 fi
34578 #
34579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34580$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34581 if test "$tst_links_getservbyport_r" = "yes" &&
34582 test "$tst_proto_getservbyport_r" = "yes" &&
34583 test "$tst_compi_getservbyport_r" = "yes" &&
34584 test "$tst_allow_getservbyport_r" = "yes"; then
34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34586$as_echo "yes" >&6; }
34587
34588cat >>confdefs.h <<_ACEOF
34589#define HAVE_GETSERVBYPORT_R 1
34590_ACEOF
34591
34592
34593cat >>confdefs.h <<_ACEOF
34594#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34595_ACEOF
34596
34597 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34598
34599$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34600
34601 else
34602
34603$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34604
34605 fi
34606 curl_cv_func_getservbyport_r="yes"
34607 else
34608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34609$as_echo "no" >&6; }
34610 curl_cv_func_getservbyport_r="no"
34611 fi
34612
34613
34614curl_includes_time="\
34615/* includes start */
34616#ifdef HAVE_SYS_TYPES_H
34617# include <sys/types.h>
34618#endif
34619#ifdef HAVE_SYS_TIME_H
34620# include <sys/time.h>
34621# ifdef TIME_WITH_SYS_TIME
34622# include <time.h>
34623# endif
34624#else
34625# ifdef HAVE_TIME_H
34626# include <time.h>
34627# endif
34628#endif
34629/* includes end */"
34630 for ac_header in sys/types.h sys/time.h time.h
34631do :
34632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34633ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34634"
34635if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34636 cat >>confdefs.h <<_ACEOF
34637#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34638_ACEOF
34639
34640fi
34641
34642done
34643
34644
34645
34646 #
34647 tst_links_gmtime_r="unknown"
34648 tst_proto_gmtime_r="unknown"
34649 tst_compi_gmtime_r="unknown"
34650 tst_works_gmtime_r="unknown"
34651 tst_allow_gmtime_r="unknown"
34652 #
34653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34654$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34656/* end confdefs.h. */
34657
34658
34659#define gmtime_r innocuous_gmtime_r
34660#ifdef __STDC__
34661# include <limits.h>
34662#else
34663# include <assert.h>
34664#endif
34665#undef gmtime_r
34666#ifdef __cplusplus
34667extern "C"
34668#endif
34669char gmtime_r ();
34670#if defined __stub_gmtime_r || defined __stub___gmtime_r
34671choke me
34672#endif
34673
34674int main (void)
34675{
34676return gmtime_r ();
34677 ;
34678 return 0;
34679}
34680
34681_ACEOF
34682if ac_fn_c_try_link "$LINENO"; then :
34683
34684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34685$as_echo "yes" >&6; }
34686 tst_links_gmtime_r="yes"
34687
34688else
34689
34690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34691$as_echo "no" >&6; }
34692 tst_links_gmtime_r="no"
34693
34694fi
34695rm -f core conftest.err conftest.$ac_objext \
34696 conftest$ac_exeext conftest.$ac_ext
34697 #
34698 if test "$tst_links_gmtime_r" = "yes"; then
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34700$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34702/* end confdefs.h. */
34703
34704 $curl_includes_time
34705
34706_ACEOF
34707if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34708 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34709
34710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34711$as_echo "yes" >&6; }
34712 tst_proto_gmtime_r="yes"
34713
34714else
34715
34716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34717$as_echo "no" >&6; }
34718 tst_proto_gmtime_r="no"
34719
34720fi
34721rm -f conftest*
34722
34723 fi
34724 #
34725 if test "$tst_proto_gmtime_r" = "yes"; then
34726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34727$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34729/* end confdefs.h. */
34730
34731
34732 $curl_includes_time
34733
34734int main (void)
34735{
34736
34737 if(0 != gmtime_r(0, 0))
34738 return 1;
34739
34740 ;
34741 return 0;
34742}
34743
34744_ACEOF
34745if ac_fn_c_try_compile "$LINENO"; then :
34746
34747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34748$as_echo "yes" >&6; }
34749 tst_compi_gmtime_r="yes"
34750
34751else
34752
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34754$as_echo "no" >&6; }
34755 tst_compi_gmtime_r="no"
34756
34757fi
34758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34759 fi
34760 #
34761 if test "x$cross_compiling" != "xyes" &&
34762 test "$tst_compi_gmtime_r" = "yes"; then
34763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34764$as_echo_n "checking if gmtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034765
34766
34767 old=$LD_LIBRARY_PATH
34768 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34769 export LD_LIBRARY_PATH
34770 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34772$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34773as_fn_error $? "cannot run test program while cross compiling
34774See \`config.log' for more details" "$LINENO" 5; }
34775else
34776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34777/* end confdefs.h. */
34778
34779
34780 $curl_includes_stdlib
34781 $curl_includes_time
34782
34783int main (void)
34784{
34785
34786 time_t local = 1170352587;
34787 struct tm *gmt = 0;
34788 struct tm result;
34789 gmt = gmtime_r(&local, &result);
34790 if(gmt)
34791 exit(0);
34792 else
34793 exit(1);
34794
34795 ;
34796 return 0;
34797}
34798
34799_ACEOF
34800if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034802$as_echo "yes" >&6; }
34803 tst_works_gmtime_r="yes"
34804
34805else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034807$as_echo "no" >&6; }
34808 tst_works_gmtime_r="no"
34809
34810fi
34811rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34812 conftest.$ac_objext conftest.beam conftest.$ac_ext
34813fi
34814
Elliott Hughesa93fb052018-12-12 14:22:48 -080034815 LD_LIBRARY_PATH=$old # restore
34816
Elliott Hughes82be86d2017-09-20 17:00:17 -070034817 fi
34818 #
34819 if test "$tst_compi_gmtime_r" = "yes" &&
34820 test "$tst_works_gmtime_r" != "no"; then
34821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34822$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34823 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34825$as_echo "yes" >&6; }
34826 tst_allow_gmtime_r="yes"
34827 else
34828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34829$as_echo "no" >&6; }
34830 tst_allow_gmtime_r="no"
34831 fi
34832 fi
34833 #
34834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34835$as_echo_n "checking if gmtime_r might be used... " >&6; }
34836 if test "$tst_links_gmtime_r" = "yes" &&
34837 test "$tst_proto_gmtime_r" = "yes" &&
34838 test "$tst_compi_gmtime_r" = "yes" &&
34839 test "$tst_allow_gmtime_r" = "yes" &&
34840 test "$tst_works_gmtime_r" != "no"; then
34841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34842$as_echo "yes" >&6; }
34843
34844cat >>confdefs.h <<_ACEOF
34845#define HAVE_GMTIME_R 1
34846_ACEOF
34847
34848 curl_cv_func_gmtime_r="yes"
34849 else
34850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34851$as_echo "no" >&6; }
34852 curl_cv_func_gmtime_r="no"
34853 fi
34854
34855
34856curl_includes_arpa_inet="\
34857/* includes start */
34858#ifdef HAVE_SYS_TYPES_H
34859# include <sys/types.h>
34860#endif
34861#ifdef HAVE_SYS_SOCKET_H
34862# include <sys/socket.h>
34863#endif
34864#ifdef HAVE_NETINET_IN_H
34865# include <netinet/in.h>
34866#endif
34867#ifdef HAVE_ARPA_INET_H
34868# include <arpa/inet.h>
34869#endif
34870#ifdef HAVE_WINSOCK2_H
34871#include <winsock2.h>
34872#include <ws2tcpip.h>
34873#endif
34874/* includes end */"
34875 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34876do :
34877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34878ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34879"
34880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34881 cat >>confdefs.h <<_ACEOF
34882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34883_ACEOF
34884
34885fi
34886
34887done
34888
34889
34890
34891 #
34892 tst_links_inet_ntoa_r="unknown"
34893 tst_proto_inet_ntoa_r="unknown"
34894 tst_compi_inet_ntoa_r="unknown"
34895 tst_allow_inet_ntoa_r="unknown"
34896 tst_nargs_inet_ntoa_r="unknown"
34897 #
34898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34899$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34901/* end confdefs.h. */
34902
34903
34904#define inet_ntoa_r innocuous_inet_ntoa_r
34905#ifdef __STDC__
34906# include <limits.h>
34907#else
34908# include <assert.h>
34909#endif
34910#undef inet_ntoa_r
34911#ifdef __cplusplus
34912extern "C"
34913#endif
34914char inet_ntoa_r ();
34915#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34916choke me
34917#endif
34918
34919int main (void)
34920{
34921return inet_ntoa_r ();
34922 ;
34923 return 0;
34924}
34925
34926_ACEOF
34927if ac_fn_c_try_link "$LINENO"; then :
34928
34929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34930$as_echo "yes" >&6; }
34931 tst_links_inet_ntoa_r="yes"
34932
34933else
34934
34935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34936$as_echo "no" >&6; }
34937 tst_links_inet_ntoa_r="no"
34938
34939fi
34940rm -f core conftest.err conftest.$ac_objext \
34941 conftest$ac_exeext conftest.$ac_ext
34942 #
34943 if test "$tst_links_inet_ntoa_r" = "yes"; then
34944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34945$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34947/* end confdefs.h. */
34948
34949 $curl_includes_arpa_inet
34950
34951_ACEOF
34952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34953 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34954
34955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34956$as_echo "yes" >&6; }
34957 tst_proto_inet_ntoa_r="yes"
34958
34959else
34960
34961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34962$as_echo "no" >&6; }
34963 tst_proto_inet_ntoa_r="no"
34964
34965fi
34966rm -f conftest*
34967
34968 fi
34969 #
34970 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34971 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34973$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34975/* end confdefs.h. */
34976
34977
34978 $curl_includes_arpa_inet
34979
34980int main (void)
34981{
34982
34983 struct in_addr addr;
34984 if(0 != inet_ntoa_r(addr, 0))
34985 return 1;
34986
34987 ;
34988 return 0;
34989}
34990
34991_ACEOF
34992if ac_fn_c_try_compile "$LINENO"; then :
34993
34994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34995$as_echo "yes" >&6; }
34996 tst_compi_inet_ntoa_r="yes"
34997 tst_nargs_inet_ntoa_r="2"
34998
34999else
35000
35001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35002$as_echo "no" >&6; }
35003 tst_compi_inet_ntoa_r="no"
35004
35005fi
35006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35007 fi
35008 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
35009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
35010$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
35011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35012/* end confdefs.h. */
35013
35014
35015 $curl_includes_arpa_inet
35016
35017int main (void)
35018{
35019
35020 struct in_addr addr;
35021 if(0 != inet_ntoa_r(addr, 0, 0))
35022 return 1;
35023
35024 ;
35025 return 0;
35026}
35027
35028_ACEOF
35029if ac_fn_c_try_compile "$LINENO"; then :
35030
35031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35032$as_echo "yes" >&6; }
35033 tst_compi_inet_ntoa_r="yes"
35034 tst_nargs_inet_ntoa_r="3"
35035
35036else
35037
35038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35039$as_echo "no" >&6; }
35040 tst_compi_inet_ntoa_r="no"
35041
35042fi
35043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35044 fi
35045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
35046$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
35047 if test "$tst_compi_inet_ntoa_r" = "yes"; then
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35049$as_echo "yes" >&6; }
35050 else
35051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35052$as_echo "no" >&6; }
35053 fi
35054 fi
35055 #
35056 if test "$tst_compi_inet_ntoa_r" = "yes"; then
35057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
35058$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
35059 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
35060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35061$as_echo "yes" >&6; }
35062 tst_allow_inet_ntoa_r="yes"
35063 else
35064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35065$as_echo "no" >&6; }
35066 tst_allow_inet_ntoa_r="no"
35067 fi
35068 fi
35069 #
35070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
35071$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
35072 if test "$tst_links_inet_ntoa_r" = "yes" &&
35073 test "$tst_proto_inet_ntoa_r" = "yes" &&
35074 test "$tst_compi_inet_ntoa_r" = "yes" &&
35075 test "$tst_allow_inet_ntoa_r" = "yes"; then
35076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35077$as_echo "yes" >&6; }
35078
35079cat >>confdefs.h <<_ACEOF
35080#define HAVE_INET_NTOA_R 1
35081_ACEOF
35082
35083 #
35084 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
35085
35086$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
35087
35088 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
35089
35090$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
35091
35092 fi
35093 #
35094 curl_cv_func_inet_ntoa_r="yes"
35095 else
35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35097$as_echo "no" >&6; }
35098 curl_cv_func_inet_ntoa_r="no"
35099 fi
35100
35101
35102 #
35103 tst_links_inet_ntop="unknown"
35104 tst_proto_inet_ntop="unknown"
35105 tst_compi_inet_ntop="unknown"
35106 tst_works_inet_ntop="unknown"
35107 tst_allow_inet_ntop="unknown"
35108 #
35109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
35110$as_echo_n "checking if inet_ntop can be linked... " >&6; }
35111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35112/* end confdefs.h. */
35113
35114
35115#define inet_ntop innocuous_inet_ntop
35116#ifdef __STDC__
35117# include <limits.h>
35118#else
35119# include <assert.h>
35120#endif
35121#undef inet_ntop
35122#ifdef __cplusplus
35123extern "C"
35124#endif
35125char inet_ntop ();
35126#if defined __stub_inet_ntop || defined __stub___inet_ntop
35127choke me
35128#endif
35129
35130int main (void)
35131{
35132return inet_ntop ();
35133 ;
35134 return 0;
35135}
35136
35137_ACEOF
35138if ac_fn_c_try_link "$LINENO"; then :
35139
35140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35141$as_echo "yes" >&6; }
35142 tst_links_inet_ntop="yes"
35143
35144else
35145
35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35147$as_echo "no" >&6; }
35148 tst_links_inet_ntop="no"
35149
35150fi
35151rm -f core conftest.err conftest.$ac_objext \
35152 conftest$ac_exeext conftest.$ac_ext
35153 #
35154 if test "$tst_links_inet_ntop" = "yes"; then
35155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
35156$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
35157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35158/* end confdefs.h. */
35159
35160 $curl_includes_arpa_inet
35161
35162_ACEOF
35163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35164 $EGREP "inet_ntop" >/dev/null 2>&1; then :
35165
35166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35167$as_echo "yes" >&6; }
35168 tst_proto_inet_ntop="yes"
35169
35170else
35171
35172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35173$as_echo "no" >&6; }
35174 tst_proto_inet_ntop="no"
35175
35176fi
35177rm -f conftest*
35178
35179 fi
35180 #
35181 if test "$tst_proto_inet_ntop" = "yes"; then
35182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
35183$as_echo_n "checking if inet_ntop is compilable... " >&6; }
35184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35185/* end confdefs.h. */
35186
35187
35188 $curl_includes_arpa_inet
35189
35190int main (void)
35191{
35192
35193 if(0 != inet_ntop(0, 0, 0, 0))
35194 return 1;
35195
35196 ;
35197 return 0;
35198}
35199
35200_ACEOF
35201if ac_fn_c_try_compile "$LINENO"; then :
35202
35203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35204$as_echo "yes" >&6; }
35205 tst_compi_inet_ntop="yes"
35206
35207else
35208
35209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35210$as_echo "no" >&6; }
35211 tst_compi_inet_ntop="no"
35212
35213fi
35214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35215 fi
35216 #
35217 if test "x$cross_compiling" != "xyes" &&
35218 test "$tst_compi_inet_ntop" = "yes"; then
35219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
35220$as_echo_n "checking if inet_ntop seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035221
35222
35223 old=$LD_LIBRARY_PATH
35224 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35225 export LD_LIBRARY_PATH
35226 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35229as_fn_error $? "cannot run test program while cross compiling
35230See \`config.log' for more details" "$LINENO" 5; }
35231else
35232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35233/* end confdefs.h. */
35234
35235
35236 $curl_includes_stdlib
35237 $curl_includes_arpa_inet
35238 $curl_includes_string
35239
35240int main (void)
35241{
35242
35243 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35244 char ipv4res[sizeof "255.255.255.255"];
35245 unsigned char ipv6a[26];
35246 unsigned char ipv4a[5];
35247 char *ipv6ptr = 0;
35248 char *ipv4ptr = 0;
35249 /* - */
35250 ipv4res[0] = '\0';
35251 ipv4a[0] = 0xc0;
35252 ipv4a[1] = 0xa8;
35253 ipv4a[2] = 0x64;
35254 ipv4a[3] = 0x01;
35255 ipv4a[4] = 0x01;
35256 /* - */
35257 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35258 if(!ipv4ptr)
35259 exit(1); /* fail */
35260 if(ipv4ptr != ipv4res)
35261 exit(1); /* fail */
35262 if(!ipv4ptr[0])
35263 exit(1); /* fail */
35264 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35265 exit(1); /* fail */
35266 /* - */
35267 ipv6res[0] = '\0';
35268 memset(ipv6a, 0, sizeof(ipv6a));
35269 ipv6a[0] = 0xfe;
35270 ipv6a[1] = 0x80;
35271 ipv6a[8] = 0x02;
35272 ipv6a[9] = 0x14;
35273 ipv6a[10] = 0x4f;
35274 ipv6a[11] = 0xff;
35275 ipv6a[12] = 0xfe;
35276 ipv6a[13] = 0x0b;
35277 ipv6a[14] = 0x76;
35278 ipv6a[15] = 0xc8;
35279 ipv6a[25] = 0x01;
35280 /* - */
35281 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35282 if(!ipv6ptr)
35283 exit(1); /* fail */
35284 if(ipv6ptr != ipv6res)
35285 exit(1); /* fail */
35286 if(!ipv6ptr[0])
35287 exit(1); /* fail */
35288 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35289 exit(1); /* fail */
35290 /* - */
35291 exit(0);
35292
35293 ;
35294 return 0;
35295}
35296
35297_ACEOF
35298if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035300$as_echo "yes" >&6; }
35301 tst_works_inet_ntop="yes"
35302
35303else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035305$as_echo "no" >&6; }
35306 tst_works_inet_ntop="no"
35307
35308fi
35309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35310 conftest.$ac_objext conftest.beam conftest.$ac_ext
35311fi
35312
Elliott Hughesa93fb052018-12-12 14:22:48 -080035313 LD_LIBRARY_PATH=$old # restore
35314
Elliott Hughes82be86d2017-09-20 17:00:17 -070035315 fi
35316 #
35317 if test "$tst_compi_inet_ntop" = "yes" &&
35318 test "$tst_works_inet_ntop" != "no"; then
35319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35320$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35321 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35323$as_echo "yes" >&6; }
35324 tst_allow_inet_ntop="yes"
35325 else
35326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35327$as_echo "no" >&6; }
35328 tst_allow_inet_ntop="no"
35329 fi
35330 fi
35331 #
35332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35333$as_echo_n "checking if inet_ntop might be used... " >&6; }
35334 if test "$tst_links_inet_ntop" = "yes" &&
35335 test "$tst_proto_inet_ntop" = "yes" &&
35336 test "$tst_compi_inet_ntop" = "yes" &&
35337 test "$tst_allow_inet_ntop" = "yes" &&
35338 test "$tst_works_inet_ntop" != "no"; then
35339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35340$as_echo "yes" >&6; }
35341
35342cat >>confdefs.h <<_ACEOF
35343#define HAVE_INET_NTOP 1
35344_ACEOF
35345
35346 curl_cv_func_inet_ntop="yes"
35347 else
35348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35349$as_echo "no" >&6; }
35350 curl_cv_func_inet_ntop="no"
35351 fi
35352
35353
35354 #
35355 tst_links_inet_pton="unknown"
35356 tst_proto_inet_pton="unknown"
35357 tst_compi_inet_pton="unknown"
35358 tst_works_inet_pton="unknown"
35359 tst_allow_inet_pton="unknown"
35360 #
35361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35362$as_echo_n "checking if inet_pton can be linked... " >&6; }
35363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35364/* end confdefs.h. */
35365
35366
35367#define inet_pton innocuous_inet_pton
35368#ifdef __STDC__
35369# include <limits.h>
35370#else
35371# include <assert.h>
35372#endif
35373#undef inet_pton
35374#ifdef __cplusplus
35375extern "C"
35376#endif
35377char inet_pton ();
35378#if defined __stub_inet_pton || defined __stub___inet_pton
35379choke me
35380#endif
35381
35382int main (void)
35383{
35384return inet_pton ();
35385 ;
35386 return 0;
35387}
35388
35389_ACEOF
35390if ac_fn_c_try_link "$LINENO"; then :
35391
35392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35393$as_echo "yes" >&6; }
35394 tst_links_inet_pton="yes"
35395
35396else
35397
35398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35399$as_echo "no" >&6; }
35400 tst_links_inet_pton="no"
35401
35402fi
35403rm -f core conftest.err conftest.$ac_objext \
35404 conftest$ac_exeext conftest.$ac_ext
35405 #
35406 if test "$tst_links_inet_pton" = "yes"; then
35407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35408$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35410/* end confdefs.h. */
35411
35412 $curl_includes_arpa_inet
35413
35414_ACEOF
35415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35416 $EGREP "inet_pton" >/dev/null 2>&1; then :
35417
35418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35419$as_echo "yes" >&6; }
35420 tst_proto_inet_pton="yes"
35421
35422else
35423
35424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35425$as_echo "no" >&6; }
35426 tst_proto_inet_pton="no"
35427
35428fi
35429rm -f conftest*
35430
35431 fi
35432 #
35433 if test "$tst_proto_inet_pton" = "yes"; then
35434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35435$as_echo_n "checking if inet_pton is compilable... " >&6; }
35436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35437/* end confdefs.h. */
35438
35439
35440 $curl_includes_arpa_inet
35441
35442int main (void)
35443{
35444
35445 if(0 != inet_pton(0, 0, 0))
35446 return 1;
35447
35448 ;
35449 return 0;
35450}
35451
35452_ACEOF
35453if ac_fn_c_try_compile "$LINENO"; then :
35454
35455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35456$as_echo "yes" >&6; }
35457 tst_compi_inet_pton="yes"
35458
35459else
35460
35461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35462$as_echo "no" >&6; }
35463 tst_compi_inet_pton="no"
35464
35465fi
35466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35467 fi
35468 #
35469 if test "x$cross_compiling" != "xyes" &&
35470 test "$tst_compi_inet_pton" = "yes"; then
35471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35472$as_echo_n "checking if inet_pton seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035473
35474
35475 old=$LD_LIBRARY_PATH
35476 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35477 export LD_LIBRARY_PATH
35478 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35481as_fn_error $? "cannot run test program while cross compiling
35482See \`config.log' for more details" "$LINENO" 5; }
35483else
35484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35485/* end confdefs.h. */
35486
35487
35488 $curl_includes_stdlib
35489 $curl_includes_arpa_inet
35490 $curl_includes_string
35491
35492int main (void)
35493{
35494
35495 unsigned char ipv6a[16+1];
35496 unsigned char ipv4a[4+1];
35497 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35498 const char *ipv4src = "192.168.100.1";
35499 /* - */
35500 memset(ipv4a, 1, sizeof(ipv4a));
35501 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35502 exit(1); /* fail */
35503 /* - */
35504 if( (ipv4a[0] != 0xc0) ||
35505 (ipv4a[1] != 0xa8) ||
35506 (ipv4a[2] != 0x64) ||
35507 (ipv4a[3] != 0x01) ||
35508 (ipv4a[4] != 0x01) )
35509 exit(1); /* fail */
35510 /* - */
35511 memset(ipv6a, 1, sizeof(ipv6a));
35512 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35513 exit(1); /* fail */
35514 /* - */
35515 if( (ipv6a[0] != 0xfe) ||
35516 (ipv6a[1] != 0x80) ||
35517 (ipv6a[8] != 0x02) ||
35518 (ipv6a[9] != 0x14) ||
35519 (ipv6a[10] != 0x4f) ||
35520 (ipv6a[11] != 0xff) ||
35521 (ipv6a[12] != 0xfe) ||
35522 (ipv6a[13] != 0x0b) ||
35523 (ipv6a[14] != 0x76) ||
35524 (ipv6a[15] != 0xc8) ||
35525 (ipv6a[16] != 0x01) )
35526 exit(1); /* fail */
35527 /* - */
35528 if( (ipv6a[2] != 0x0) ||
35529 (ipv6a[3] != 0x0) ||
35530 (ipv6a[4] != 0x0) ||
35531 (ipv6a[5] != 0x0) ||
35532 (ipv6a[6] != 0x0) ||
35533 (ipv6a[7] != 0x0) )
35534 exit(1); /* fail */
35535 /* - */
35536 exit(0);
35537
35538 ;
35539 return 0;
35540}
35541
35542_ACEOF
35543if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035545$as_echo "yes" >&6; }
35546 tst_works_inet_pton="yes"
35547
35548else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035550$as_echo "no" >&6; }
35551 tst_works_inet_pton="no"
35552
35553fi
35554rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35555 conftest.$ac_objext conftest.beam conftest.$ac_ext
35556fi
35557
Elliott Hughesa93fb052018-12-12 14:22:48 -080035558 LD_LIBRARY_PATH=$old # restore
35559
Elliott Hughes82be86d2017-09-20 17:00:17 -070035560 fi
35561 #
35562 if test "$tst_compi_inet_pton" = "yes" &&
35563 test "$tst_works_inet_pton" != "no"; then
35564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35565$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35566 if test "x$curl_disallow_inet_pton" != "xyes"; then
35567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35568$as_echo "yes" >&6; }
35569 tst_allow_inet_pton="yes"
35570 else
35571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35572$as_echo "no" >&6; }
35573 tst_allow_inet_pton="no"
35574 fi
35575 fi
35576 #
35577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35578$as_echo_n "checking if inet_pton might be used... " >&6; }
35579 if test "$tst_links_inet_pton" = "yes" &&
35580 test "$tst_proto_inet_pton" = "yes" &&
35581 test "$tst_compi_inet_pton" = "yes" &&
35582 test "$tst_allow_inet_pton" = "yes" &&
35583 test "$tst_works_inet_pton" != "no"; then
35584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35585$as_echo "yes" >&6; }
35586
35587cat >>confdefs.h <<_ACEOF
35588#define HAVE_INET_PTON 1
35589_ACEOF
35590
35591 curl_cv_func_inet_pton="yes"
35592 else
35593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35594$as_echo "no" >&6; }
35595 curl_cv_func_inet_pton="no"
35596 fi
35597
35598
35599curl_includes_stropts="\
35600/* includes start */
35601#ifdef HAVE_SYS_TYPES_H
35602# include <sys/types.h>
35603#endif
35604#ifdef HAVE_UNISTD_H
35605# include <unistd.h>
35606#endif
35607#ifdef HAVE_SYS_SOCKET_H
35608# include <sys/socket.h>
35609#endif
35610#ifdef HAVE_SYS_IOCTL_H
35611# include <sys/ioctl.h>
35612#endif
35613#ifdef HAVE_STROPTS_H
35614# include <stropts.h>
35615#endif
35616/* includes end */"
35617 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35618do :
35619 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35620ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35621"
35622if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35623 cat >>confdefs.h <<_ACEOF
35624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35625_ACEOF
35626
35627fi
35628
35629done
35630
35631
35632
35633 #
35634 tst_links_ioctl="unknown"
35635 tst_proto_ioctl="unknown"
35636 tst_compi_ioctl="unknown"
35637 tst_allow_ioctl="unknown"
35638 #
35639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35640$as_echo_n "checking if ioctl can be linked... " >&6; }
35641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35642/* end confdefs.h. */
35643
35644
35645#define ioctl innocuous_ioctl
35646#ifdef __STDC__
35647# include <limits.h>
35648#else
35649# include <assert.h>
35650#endif
35651#undef ioctl
35652#ifdef __cplusplus
35653extern "C"
35654#endif
35655char ioctl ();
35656#if defined __stub_ioctl || defined __stub___ioctl
35657choke me
35658#endif
35659
35660int main (void)
35661{
35662return ioctl ();
35663 ;
35664 return 0;
35665}
35666
35667_ACEOF
35668if ac_fn_c_try_link "$LINENO"; then :
35669
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35671$as_echo "yes" >&6; }
35672 tst_links_ioctl="yes"
35673
35674else
35675
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35677$as_echo "no" >&6; }
35678 tst_links_ioctl="no"
35679
35680fi
35681rm -f core conftest.err conftest.$ac_objext \
35682 conftest$ac_exeext conftest.$ac_ext
35683 #
35684 if test "$tst_links_ioctl" = "yes"; then
35685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35686$as_echo_n "checking if ioctl is prototyped... " >&6; }
35687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35688/* end confdefs.h. */
35689
35690 $curl_includes_stropts
35691
35692_ACEOF
35693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35694 $EGREP "ioctl" >/dev/null 2>&1; then :
35695
35696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35697$as_echo "yes" >&6; }
35698 tst_proto_ioctl="yes"
35699
35700else
35701
35702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35703$as_echo "no" >&6; }
35704 tst_proto_ioctl="no"
35705
35706fi
35707rm -f conftest*
35708
35709 fi
35710 #
35711 if test "$tst_proto_ioctl" = "yes"; then
35712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35713$as_echo_n "checking if ioctl is compilable... " >&6; }
35714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35715/* end confdefs.h. */
35716
35717
35718 $curl_includes_stropts
35719
35720int main (void)
35721{
35722
35723 if(0 != ioctl(0, 0, 0))
35724 return 1;
35725
35726 ;
35727 return 0;
35728}
35729
35730_ACEOF
35731if ac_fn_c_try_compile "$LINENO"; then :
35732
35733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35734$as_echo "yes" >&6; }
35735 tst_compi_ioctl="yes"
35736
35737else
35738
35739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35740$as_echo "no" >&6; }
35741 tst_compi_ioctl="no"
35742
35743fi
35744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35745 fi
35746 #
35747 if test "$tst_compi_ioctl" = "yes"; then
35748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35749$as_echo_n "checking if ioctl usage allowed... " >&6; }
35750 if test "x$curl_disallow_ioctl" != "xyes"; then
35751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35752$as_echo "yes" >&6; }
35753 tst_allow_ioctl="yes"
35754 else
35755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35756$as_echo "no" >&6; }
35757 tst_allow_ioctl="no"
35758 fi
35759 fi
35760 #
35761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35762$as_echo_n "checking if ioctl might be used... " >&6; }
35763 if test "$tst_links_ioctl" = "yes" &&
35764 test "$tst_proto_ioctl" = "yes" &&
35765 test "$tst_compi_ioctl" = "yes" &&
35766 test "$tst_allow_ioctl" = "yes"; then
35767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35768$as_echo "yes" >&6; }
35769
35770cat >>confdefs.h <<_ACEOF
35771#define HAVE_IOCTL 1
35772_ACEOF
35773
35774 curl_cv_func_ioctl="yes"
35775
35776 #
35777 tst_compi_ioctl_fionbio="unknown"
35778 tst_allow_ioctl_fionbio="unknown"
35779 #
35780 if test "$curl_cv_func_ioctl" = "yes"; then
35781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35782$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35784/* end confdefs.h. */
35785
35786
35787 $curl_includes_stropts
35788
35789int main (void)
35790{
35791
35792 int flags = 0;
35793 if(0 != ioctl(0, FIONBIO, &flags))
35794 return 1;
35795
35796 ;
35797 return 0;
35798}
35799
35800_ACEOF
35801if ac_fn_c_try_compile "$LINENO"; then :
35802
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35804$as_echo "yes" >&6; }
35805 tst_compi_ioctl_fionbio="yes"
35806
35807else
35808
35809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35810$as_echo "no" >&6; }
35811 tst_compi_ioctl_fionbio="no"
35812
35813fi
35814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35815 fi
35816 #
35817 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35819$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35820 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822$as_echo "yes" >&6; }
35823 tst_allow_ioctl_fionbio="yes"
35824 else
35825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35826$as_echo "no" >&6; }
35827 tst_allow_ioctl_fionbio="no"
35828 fi
35829 fi
35830 #
35831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35832$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35833 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35834 test "$tst_allow_ioctl_fionbio" = "yes"; then
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35836$as_echo "yes" >&6; }
35837
35838cat >>confdefs.h <<_ACEOF
35839#define HAVE_IOCTL_FIONBIO 1
35840_ACEOF
35841
35842 curl_cv_func_ioctl_fionbio="yes"
35843 else
35844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35845$as_echo "no" >&6; }
35846 curl_cv_func_ioctl_fionbio="no"
35847 fi
35848
35849
35850 #
35851 tst_compi_ioctl_siocgifaddr="unknown"
35852 tst_allow_ioctl_siocgifaddr="unknown"
35853 #
35854 if test "$curl_cv_func_ioctl" = "yes"; then
35855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35856$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35858/* end confdefs.h. */
35859
35860
35861 $curl_includes_stropts
35862 #include <net/if.h>
35863
35864int main (void)
35865{
35866
35867 struct ifreq ifr;
35868 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35869 return 1;
35870
35871 ;
35872 return 0;
35873}
35874
35875_ACEOF
35876if ac_fn_c_try_compile "$LINENO"; then :
35877
35878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35879$as_echo "yes" >&6; }
35880 tst_compi_ioctl_siocgifaddr="yes"
35881
35882else
35883
35884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35885$as_echo "no" >&6; }
35886 tst_compi_ioctl_siocgifaddr="no"
35887
35888fi
35889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35890 fi
35891 #
35892 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35894$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35895 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35897$as_echo "yes" >&6; }
35898 tst_allow_ioctl_siocgifaddr="yes"
35899 else
35900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35901$as_echo "no" >&6; }
35902 tst_allow_ioctl_siocgifaddr="no"
35903 fi
35904 fi
35905 #
35906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35907$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35908 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35909 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35911$as_echo "yes" >&6; }
35912
35913cat >>confdefs.h <<_ACEOF
35914#define HAVE_IOCTL_SIOCGIFADDR 1
35915_ACEOF
35916
35917 curl_cv_func_ioctl_siocgifaddr="yes"
35918 else
35919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35920$as_echo "no" >&6; }
35921 curl_cv_func_ioctl_siocgifaddr="no"
35922 fi
35923
35924 else
35925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35926$as_echo "no" >&6; }
35927 curl_cv_func_ioctl="no"
35928 fi
35929
35930
35931 #
35932 tst_links_ioctlsocket="unknown"
35933 tst_proto_ioctlsocket="unknown"
35934 tst_compi_ioctlsocket="unknown"
35935 tst_allow_ioctlsocket="unknown"
35936 #
35937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35938$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35940/* end confdefs.h. */
35941
35942
35943 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035944 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035945
35946int main (void)
35947{
35948
35949 if(0 != ioctlsocket(0, 0, 0))
35950 return 1;
35951
35952 ;
35953 return 0;
35954}
35955
35956_ACEOF
35957if ac_fn_c_try_link "$LINENO"; then :
35958
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35960$as_echo "yes" >&6; }
35961 tst_links_ioctlsocket="yes"
35962
35963else
35964
35965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35966$as_echo "no" >&6; }
35967 tst_links_ioctlsocket="no"
35968
35969fi
35970rm -f core conftest.err conftest.$ac_objext \
35971 conftest$ac_exeext conftest.$ac_ext
35972 #
35973 if test "$tst_links_ioctlsocket" = "yes"; then
35974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35975$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35977/* end confdefs.h. */
35978
35979 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035980 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035981
35982_ACEOF
35983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35984 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35985
35986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35987$as_echo "yes" >&6; }
35988 tst_proto_ioctlsocket="yes"
35989
35990else
35991
35992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35993$as_echo "no" >&6; }
35994 tst_proto_ioctlsocket="no"
35995
35996fi
35997rm -f conftest*
35998
35999 fi
36000 #
36001 if test "$tst_proto_ioctlsocket" = "yes"; then
36002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
36003$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
36004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36005/* end confdefs.h. */
36006
36007
36008 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036009 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036010
36011int main (void)
36012{
36013
36014 if(0 != ioctlsocket(0, 0, 0))
36015 return 1;
36016
36017 ;
36018 return 0;
36019}
36020
36021_ACEOF
36022if ac_fn_c_try_compile "$LINENO"; then :
36023
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36025$as_echo "yes" >&6; }
36026 tst_compi_ioctlsocket="yes"
36027
36028else
36029
36030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36031$as_echo "no" >&6; }
36032 tst_compi_ioctlsocket="no"
36033
36034fi
36035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36036 fi
36037 #
36038 if test "$tst_compi_ioctlsocket" = "yes"; then
36039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
36040$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
36041 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
36042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36043$as_echo "yes" >&6; }
36044 tst_allow_ioctlsocket="yes"
36045 else
36046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36047$as_echo "no" >&6; }
36048 tst_allow_ioctlsocket="no"
36049 fi
36050 fi
36051 #
36052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
36053$as_echo_n "checking if ioctlsocket might be used... " >&6; }
36054 if test "$tst_links_ioctlsocket" = "yes" &&
36055 test "$tst_proto_ioctlsocket" = "yes" &&
36056 test "$tst_compi_ioctlsocket" = "yes" &&
36057 test "$tst_allow_ioctlsocket" = "yes"; then
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36059$as_echo "yes" >&6; }
36060
36061cat >>confdefs.h <<_ACEOF
36062#define HAVE_IOCTLSOCKET 1
36063_ACEOF
36064
36065 curl_cv_func_ioctlsocket="yes"
36066
36067 #
36068 tst_compi_ioctlsocket_fionbio="unknown"
36069 tst_allow_ioctlsocket_fionbio="unknown"
36070 #
36071 if test "$curl_cv_func_ioctlsocket" = "yes"; then
36072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
36073$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
36074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36075/* end confdefs.h. */
36076
36077
36078 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036079 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036080
36081int main (void)
36082{
36083
36084 int flags = 0;
36085 if(0 != ioctlsocket(0, FIONBIO, &flags))
36086 return 1;
36087
36088 ;
36089 return 0;
36090}
36091
36092_ACEOF
36093if ac_fn_c_try_compile "$LINENO"; then :
36094
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36096$as_echo "yes" >&6; }
36097 tst_compi_ioctlsocket_fionbio="yes"
36098
36099else
36100
36101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36102$as_echo "no" >&6; }
36103 tst_compi_ioctlsocket_fionbio="no"
36104
36105fi
36106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36107 fi
36108 #
36109 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
36110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
36111$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
36112 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36114$as_echo "yes" >&6; }
36115 tst_allow_ioctlsocket_fionbio="yes"
36116 else
36117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36118$as_echo "no" >&6; }
36119 tst_allow_ioctlsocket_fionbio="no"
36120 fi
36121 fi
36122 #
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
36124$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
36125 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
36126 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36128$as_echo "yes" >&6; }
36129
36130cat >>confdefs.h <<_ACEOF
36131#define HAVE_IOCTLSOCKET_FIONBIO 1
36132_ACEOF
36133
36134 curl_cv_func_ioctlsocket_fionbio="yes"
36135 else
36136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36137$as_echo "no" >&6; }
36138 curl_cv_func_ioctlsocket_fionbio="no"
36139 fi
36140
36141 else
36142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36143$as_echo "no" >&6; }
36144 curl_cv_func_ioctlsocket="no"
36145 fi
36146
36147
36148 #
36149 tst_links_ioctlsocket_camel="unknown"
36150 tst_proto_ioctlsocket_camel="unknown"
36151 tst_compi_ioctlsocket_camel="unknown"
36152 tst_allow_ioctlsocket_camel="unknown"
36153 #
36154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
36155$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
36156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36157/* end confdefs.h. */
36158
36159
36160#define IoctlSocket innocuous_IoctlSocket
36161#ifdef __STDC__
36162# include <limits.h>
36163#else
36164# include <assert.h>
36165#endif
36166#undef IoctlSocket
36167#ifdef __cplusplus
36168extern "C"
36169#endif
36170char IoctlSocket ();
36171#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
36172choke me
36173#endif
36174
36175int main (void)
36176{
36177return IoctlSocket ();
36178 ;
36179 return 0;
36180}
36181
36182_ACEOF
36183if ac_fn_c_try_link "$LINENO"; then :
36184
36185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36186$as_echo "yes" >&6; }
36187 tst_links_ioctlsocket_camel="yes"
36188
36189else
36190
36191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36192$as_echo "no" >&6; }
36193 tst_links_ioctlsocket_camel="no"
36194
36195fi
36196rm -f core conftest.err conftest.$ac_objext \
36197 conftest$ac_exeext conftest.$ac_ext
36198 #
36199 if test "$tst_links_ioctlsocket_camel" = "yes"; then
36200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
36201$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
36202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36203/* end confdefs.h. */
36204
36205 $curl_includes_stropts
36206
36207_ACEOF
36208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36209 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
36210
36211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36212$as_echo "yes" >&6; }
36213 tst_proto_ioctlsocket_camel="yes"
36214
36215else
36216
36217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36218$as_echo "no" >&6; }
36219 tst_proto_ioctlsocket_camel="no"
36220
36221fi
36222rm -f conftest*
36223
36224 fi
36225 #
36226 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
36227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
36228$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
36229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36230/* end confdefs.h. */
36231
36232
36233 $curl_includes_stropts
36234
36235int main (void)
36236{
36237
36238 if(0 != IoctlSocket(0, 0, 0))
36239 return 1;
36240
36241 ;
36242 return 0;
36243}
36244
36245_ACEOF
36246if ac_fn_c_try_compile "$LINENO"; then :
36247
36248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36249$as_echo "yes" >&6; }
36250 tst_compi_ioctlsocket_camel="yes"
36251
36252else
36253
36254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36255$as_echo "no" >&6; }
36256 tst_compi_ioctlsocket_camel="no"
36257
36258fi
36259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36260 fi
36261 #
36262 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36264$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36265 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36267$as_echo "yes" >&6; }
36268 tst_allow_ioctlsocket_camel="yes"
36269 else
36270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36271$as_echo "no" >&6; }
36272 tst_allow_ioctlsocket_camel="no"
36273 fi
36274 fi
36275 #
36276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36277$as_echo_n "checking if IoctlSocket might be used... " >&6; }
36278 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36279 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36280 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36281 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36283$as_echo "yes" >&6; }
36284
36285cat >>confdefs.h <<_ACEOF
36286#define HAVE_IOCTLSOCKET_CAMEL 1
36287_ACEOF
36288
36289 curl_cv_func_ioctlsocket_camel="yes"
36290
36291 #
36292 tst_compi_ioctlsocket_camel_fionbio="unknown"
36293 tst_allow_ioctlsocket_camel_fionbio="unknown"
36294 #
36295 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36297$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36299/* end confdefs.h. */
36300
36301
36302 $curl_includes_stropts
36303
36304int main (void)
36305{
36306
36307 long flags = 0;
36308 if(0 != ioctlsocket(0, FIONBIO, &flags))
36309 return 1;
36310
36311 ;
36312 return 0;
36313}
36314
36315_ACEOF
36316if ac_fn_c_try_compile "$LINENO"; then :
36317
36318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36319$as_echo "yes" >&6; }
36320 tst_compi_ioctlsocket_camel_fionbio="yes"
36321
36322else
36323
36324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36325$as_echo "no" >&6; }
36326 tst_compi_ioctlsocket_camel_fionbio="no"
36327
36328fi
36329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36330 fi
36331 #
36332 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36334$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36335 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36337$as_echo "yes" >&6; }
36338 tst_allow_ioctlsocket_camel_fionbio="yes"
36339 else
36340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36341$as_echo "no" >&6; }
36342 tst_allow_ioctlsocket_camel_fionbio="no"
36343 fi
36344 fi
36345 #
36346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36347$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36348 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36349 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36351$as_echo "yes" >&6; }
36352
36353cat >>confdefs.h <<_ACEOF
36354#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36355_ACEOF
36356
36357 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36358 else
36359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36360$as_echo "no" >&6; }
36361 curl_cv_func_ioctlsocket_camel_fionbio="no"
36362 fi
36363
36364 else
36365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36366$as_echo "no" >&6; }
36367 curl_cv_func_ioctlsocket_camel="no"
36368 fi
36369
36370
36371 #
36372 tst_links_localtime_r="unknown"
36373 tst_proto_localtime_r="unknown"
36374 tst_compi_localtime_r="unknown"
36375 tst_works_localtime_r="unknown"
36376 tst_allow_localtime_r="unknown"
36377 #
36378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36379$as_echo_n "checking if localtime_r can be linked... " >&6; }
36380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36381/* end confdefs.h. */
36382
36383
36384#define localtime_r innocuous_localtime_r
36385#ifdef __STDC__
36386# include <limits.h>
36387#else
36388# include <assert.h>
36389#endif
36390#undef localtime_r
36391#ifdef __cplusplus
36392extern "C"
36393#endif
36394char localtime_r ();
36395#if defined __stub_localtime_r || defined __stub___localtime_r
36396choke me
36397#endif
36398
36399int main (void)
36400{
36401return localtime_r ();
36402 ;
36403 return 0;
36404}
36405
36406_ACEOF
36407if ac_fn_c_try_link "$LINENO"; then :
36408
36409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36410$as_echo "yes" >&6; }
36411 tst_links_localtime_r="yes"
36412
36413else
36414
36415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36416$as_echo "no" >&6; }
36417 tst_links_localtime_r="no"
36418
36419fi
36420rm -f core conftest.err conftest.$ac_objext \
36421 conftest$ac_exeext conftest.$ac_ext
36422 #
36423 if test "$tst_links_localtime_r" = "yes"; then
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36425$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36427/* end confdefs.h. */
36428
36429 $curl_includes_time
36430
36431_ACEOF
36432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36433 $EGREP "localtime_r" >/dev/null 2>&1; then :
36434
36435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36436$as_echo "yes" >&6; }
36437 tst_proto_localtime_r="yes"
36438
36439else
36440
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36442$as_echo "no" >&6; }
36443 tst_proto_localtime_r="no"
36444
36445fi
36446rm -f conftest*
36447
36448 fi
36449 #
36450 if test "$tst_proto_localtime_r" = "yes"; then
36451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36452$as_echo_n "checking if localtime_r is compilable... " >&6; }
36453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36454/* end confdefs.h. */
36455
36456
36457 $curl_includes_time
36458
36459int main (void)
36460{
36461
36462 if(0 != localtime_r(0, 0))
36463 return 1;
36464
36465 ;
36466 return 0;
36467}
36468
36469_ACEOF
36470if ac_fn_c_try_compile "$LINENO"; then :
36471
36472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36473$as_echo "yes" >&6; }
36474 tst_compi_localtime_r="yes"
36475
36476else
36477
36478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36479$as_echo "no" >&6; }
36480 tst_compi_localtime_r="no"
36481
36482fi
36483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36484 fi
36485 #
36486 if test "x$cross_compiling" != "xyes" &&
36487 test "$tst_compi_localtime_r" = "yes"; then
36488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36489$as_echo_n "checking if localtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036490
36491
36492 old=$LD_LIBRARY_PATH
36493 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36494 export LD_LIBRARY_PATH
36495 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36498as_fn_error $? "cannot run test program while cross compiling
36499See \`config.log' for more details" "$LINENO" 5; }
36500else
36501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36502/* end confdefs.h. */
36503
36504
36505 $curl_includes_stdlib
36506 $curl_includes_time
36507
36508int main (void)
36509{
36510
36511 time_t clock = 1170352587;
36512 struct tm *tmp = 0;
36513 struct tm result;
36514 tmp = localtime_r(&clock, &result);
36515 if(tmp)
36516 exit(0);
36517 else
36518 exit(1);
36519
36520 ;
36521 return 0;
36522}
36523
36524_ACEOF
36525if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036527$as_echo "yes" >&6; }
36528 tst_works_localtime_r="yes"
36529
36530else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036532$as_echo "no" >&6; }
36533 tst_works_localtime_r="no"
36534
36535fi
36536rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36537 conftest.$ac_objext conftest.beam conftest.$ac_ext
36538fi
36539
Elliott Hughesa93fb052018-12-12 14:22:48 -080036540 LD_LIBRARY_PATH=$old # restore
36541
Elliott Hughes82be86d2017-09-20 17:00:17 -070036542 fi
36543 #
36544 if test "$tst_compi_localtime_r" = "yes" &&
36545 test "$tst_works_localtime_r" != "no"; then
36546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36547$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36548 if test "x$curl_disallow_localtime_r" != "xyes"; then
36549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36550$as_echo "yes" >&6; }
36551 tst_allow_localtime_r="yes"
36552 else
36553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36554$as_echo "no" >&6; }
36555 tst_allow_localtime_r="no"
36556 fi
36557 fi
36558 #
36559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36560$as_echo_n "checking if localtime_r might be used... " >&6; }
36561 if test "$tst_links_localtime_r" = "yes" &&
36562 test "$tst_proto_localtime_r" = "yes" &&
36563 test "$tst_compi_localtime_r" = "yes" &&
36564 test "$tst_allow_localtime_r" = "yes" &&
36565 test "$tst_works_localtime_r" != "no"; then
36566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36567$as_echo "yes" >&6; }
36568
36569cat >>confdefs.h <<_ACEOF
36570#define HAVE_LOCALTIME_R 1
36571_ACEOF
36572
36573 curl_cv_func_localtime_r="yes"
36574 else
36575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36576$as_echo "no" >&6; }
36577 curl_cv_func_localtime_r="no"
36578 fi
36579
36580
36581 #
36582 tst_links_memrchr="unknown"
36583 tst_macro_memrchr="unknown"
36584 tst_proto_memrchr="unknown"
36585 tst_compi_memrchr="unknown"
36586 tst_allow_memrchr="unknown"
36587 #
36588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36589$as_echo_n "checking if memrchr can be linked... " >&6; }
36590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36591/* end confdefs.h. */
36592
36593
36594#define memrchr innocuous_memrchr
36595#ifdef __STDC__
36596# include <limits.h>
36597#else
36598# include <assert.h>
36599#endif
36600#undef memrchr
36601#ifdef __cplusplus
36602extern "C"
36603#endif
36604char memrchr ();
36605#if defined __stub_memrchr || defined __stub___memrchr
36606choke me
36607#endif
36608
36609int main (void)
36610{
36611return memrchr ();
36612 ;
36613 return 0;
36614}
36615
36616_ACEOF
36617if ac_fn_c_try_link "$LINENO"; then :
36618
36619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36620$as_echo "yes" >&6; }
36621 tst_links_memrchr="yes"
36622
36623else
36624
36625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36626$as_echo "no" >&6; }
36627 tst_links_memrchr="no"
36628
36629fi
36630rm -f core conftest.err conftest.$ac_objext \
36631 conftest$ac_exeext conftest.$ac_ext
36632 #
36633 if test "$tst_links_memrchr" = "no"; then
36634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36635$as_echo_n "checking if memrchr seems a macro... " >&6; }
36636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36637/* end confdefs.h. */
36638
36639
36640 $curl_includes_string
36641
36642int main (void)
36643{
36644
36645 if(0 != memrchr(0, 0, 0))
36646 return 1;
36647
36648 ;
36649 return 0;
36650}
36651
36652_ACEOF
36653if ac_fn_c_try_link "$LINENO"; then :
36654
36655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36656$as_echo "yes" >&6; }
36657 tst_macro_memrchr="yes"
36658
36659else
36660
36661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36662$as_echo "no" >&6; }
36663 tst_macro_memrchr="no"
36664
36665fi
36666rm -f core conftest.err conftest.$ac_objext \
36667 conftest$ac_exeext conftest.$ac_ext
36668 fi
36669 #
36670 if test "$tst_links_memrchr" = "yes"; then
36671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36672$as_echo_n "checking if memrchr is prototyped... " >&6; }
36673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36674/* end confdefs.h. */
36675
36676 $curl_includes_string
36677
36678_ACEOF
36679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36680 $EGREP "memrchr" >/dev/null 2>&1; then :
36681
36682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36683$as_echo "yes" >&6; }
36684 tst_proto_memrchr="yes"
36685
36686else
36687
36688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36689$as_echo "no" >&6; }
36690 tst_proto_memrchr="no"
36691
36692fi
36693rm -f conftest*
36694
36695 fi
36696 #
36697 if test "$tst_proto_memrchr" = "yes" ||
36698 test "$tst_macro_memrchr" = "yes"; then
36699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36700$as_echo_n "checking if memrchr is compilable... " >&6; }
36701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36702/* end confdefs.h. */
36703
36704
36705 $curl_includes_string
36706
36707int main (void)
36708{
36709
36710 if(0 != memrchr(0, 0, 0))
36711 return 1;
36712
36713 ;
36714 return 0;
36715}
36716
36717_ACEOF
36718if ac_fn_c_try_compile "$LINENO"; then :
36719
36720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36721$as_echo "yes" >&6; }
36722 tst_compi_memrchr="yes"
36723
36724else
36725
36726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36727$as_echo "no" >&6; }
36728 tst_compi_memrchr="no"
36729
36730fi
36731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36732 fi
36733 #
36734 if test "$tst_compi_memrchr" = "yes"; then
36735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36736$as_echo_n "checking if memrchr usage allowed... " >&6; }
36737 if test "x$curl_disallow_memrchr" != "xyes"; then
36738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36739$as_echo "yes" >&6; }
36740 tst_allow_memrchr="yes"
36741 else
36742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36743$as_echo "no" >&6; }
36744 tst_allow_memrchr="no"
36745 fi
36746 fi
36747 #
36748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36749$as_echo_n "checking if memrchr might be used... " >&6; }
36750 if (test "$tst_proto_memrchr" = "yes" ||
36751 test "$tst_macro_memrchr" = "yes") &&
36752 test "$tst_compi_memrchr" = "yes" &&
36753 test "$tst_allow_memrchr" = "yes"; then
36754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36755$as_echo "yes" >&6; }
36756
36757cat >>confdefs.h <<_ACEOF
36758#define HAVE_MEMRCHR 1
36759_ACEOF
36760
36761 curl_cv_func_memrchr="yes"
36762 else
36763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36764$as_echo "no" >&6; }
36765 curl_cv_func_memrchr="no"
36766 fi
36767
36768
36769 #
36770 tst_links_poll="unknown"
36771 tst_proto_poll="unknown"
36772 tst_compi_poll="unknown"
36773 tst_works_poll="unknown"
36774 tst_allow_poll="unknown"
36775 #
36776 case $host_os in
36777 darwin*|interix*)
36778 curl_disallow_poll="yes"
36779 tst_compi_poll="no"
36780 ;;
36781 esac
36782 #
36783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36784$as_echo_n "checking if poll can be linked... " >&6; }
36785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36786/* end confdefs.h. */
36787
36788
36789 $curl_includes_poll
36790
36791int main (void)
36792{
36793
36794 if(0 != poll(0, 0, 0))
36795 return 1;
36796
36797 ;
36798 return 0;
36799}
36800
36801_ACEOF
36802if ac_fn_c_try_link "$LINENO"; then :
36803
36804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36805$as_echo "yes" >&6; }
36806 tst_links_poll="yes"
36807
36808else
36809
36810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36811$as_echo "no" >&6; }
36812 tst_links_poll="no"
36813
36814fi
36815rm -f core conftest.err conftest.$ac_objext \
36816 conftest$ac_exeext conftest.$ac_ext
36817 #
36818 if test "$tst_links_poll" = "yes"; then
36819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36820$as_echo_n "checking if poll is prototyped... " >&6; }
36821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36822/* end confdefs.h. */
36823
36824 $curl_includes_poll
36825
36826_ACEOF
36827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36828 $EGREP "poll" >/dev/null 2>&1; then :
36829
36830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36831$as_echo "yes" >&6; }
36832 tst_proto_poll="yes"
36833
36834else
36835
36836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36837$as_echo "no" >&6; }
36838 tst_proto_poll="no"
36839
36840fi
36841rm -f conftest*
36842
36843 fi
36844 #
36845 if test "$tst_proto_poll" = "yes"; then
36846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36847$as_echo_n "checking if poll is compilable... " >&6; }
36848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36849/* end confdefs.h. */
36850
36851
36852 $curl_includes_poll
36853
36854int main (void)
36855{
36856
36857 if(0 != poll(0, 0, 0))
36858 return 1;
36859
36860 ;
36861 return 0;
36862}
36863
36864_ACEOF
36865if ac_fn_c_try_compile "$LINENO"; then :
36866
36867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36868$as_echo "yes" >&6; }
36869 tst_compi_poll="yes"
36870
36871else
36872
36873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36874$as_echo "no" >&6; }
36875 tst_compi_poll="no"
36876
36877fi
36878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36879 fi
36880 #
36881 if test "x$cross_compiling" != "xyes" &&
36882 test "$tst_compi_poll" = "yes"; then
36883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36884$as_echo_n "checking if poll seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036885
36886
36887 old=$LD_LIBRARY_PATH
36888 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36889 export LD_LIBRARY_PATH
36890 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36893as_fn_error $? "cannot run test program while cross compiling
36894See \`config.log' for more details" "$LINENO" 5; }
36895else
36896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36897/* end confdefs.h. */
36898
36899
36900 $curl_includes_stdlib
36901 $curl_includes_poll
36902 $curl_includes_time
36903
36904int main (void)
36905{
36906
36907 /* detect the original poll() breakage */
36908 if(0 != poll(0, 0, 10))
36909 exit(1); /* fail */
36910 else {
36911 /* detect the 10.12 poll() breakage */
36912 struct timeval before, after;
36913 int rc;
36914 size_t us;
36915
36916 gettimeofday(&before, NULL);
36917 rc = poll(NULL, 0, 500);
36918 gettimeofday(&after, NULL);
36919
36920 us = (after.tv_sec - before.tv_sec) * 1000000 +
36921 (after.tv_usec - before.tv_usec);
36922
36923 if(us < 400000)
36924 exit(1);
36925 }
36926
36927 ;
36928 return 0;
36929}
36930
36931_ACEOF
36932if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036934$as_echo "yes" >&6; }
36935 tst_works_poll="yes"
36936
36937else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036939$as_echo "no" >&6; }
36940 tst_works_poll="no"
36941
36942fi
36943rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36944 conftest.$ac_objext conftest.beam conftest.$ac_ext
36945fi
36946
Elliott Hughesa93fb052018-12-12 14:22:48 -080036947 LD_LIBRARY_PATH=$old # restore
36948
Elliott Hughes82be86d2017-09-20 17:00:17 -070036949 fi
36950 #
36951 if test "$tst_compi_poll" = "yes" &&
36952 test "$tst_works_poll" != "no"; then
36953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36954$as_echo_n "checking if poll usage allowed... " >&6; }
36955 if test "x$curl_disallow_poll" != "xyes"; then
36956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36957$as_echo "yes" >&6; }
36958 tst_allow_poll="yes"
36959 else
36960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36961$as_echo "no" >&6; }
36962 tst_allow_poll="no"
36963 fi
36964 fi
36965 #
36966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36967$as_echo_n "checking if poll might be used... " >&6; }
36968 if test "$tst_links_poll" = "yes" &&
36969 test "$tst_proto_poll" = "yes" &&
36970 test "$tst_compi_poll" = "yes" &&
36971 test "$tst_allow_poll" = "yes" &&
36972 test "$tst_works_poll" != "no"; then
36973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36974$as_echo "yes" >&6; }
36975
36976cat >>confdefs.h <<_ACEOF
36977#define HAVE_POLL 1
36978_ACEOF
36979
36980
36981cat >>confdefs.h <<_ACEOF
36982#define HAVE_POLL_FINE 1
36983_ACEOF
36984
36985 curl_cv_func_poll="yes"
36986 else
36987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36988$as_echo "no" >&6; }
36989 curl_cv_func_poll="no"
36990 fi
36991
36992
36993 #
36994 tst_links_setsockopt="unknown"
36995 tst_proto_setsockopt="unknown"
36996 tst_compi_setsockopt="unknown"
36997 tst_allow_setsockopt="unknown"
36998 #
36999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
37000$as_echo_n "checking if setsockopt can be linked... " >&6; }
37001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37002/* end confdefs.h. */
37003
37004
37005 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037006 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037007 $curl_includes_sys_socket
37008
37009int main (void)
37010{
37011
37012 if(0 != setsockopt(0, 0, 0, 0, 0))
37013 return 1;
37014
37015 ;
37016 return 0;
37017}
37018
37019_ACEOF
37020if ac_fn_c_try_link "$LINENO"; then :
37021
37022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37023$as_echo "yes" >&6; }
37024 tst_links_setsockopt="yes"
37025
37026else
37027
37028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37029$as_echo "no" >&6; }
37030 tst_links_setsockopt="no"
37031
37032fi
37033rm -f core conftest.err conftest.$ac_objext \
37034 conftest$ac_exeext conftest.$ac_ext
37035 #
37036 if test "$tst_links_setsockopt" = "yes"; then
37037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
37038$as_echo_n "checking if setsockopt is prototyped... " >&6; }
37039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37040/* end confdefs.h. */
37041
37042 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037043 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037044 $curl_includes_sys_socket
37045
37046_ACEOF
37047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37048 $EGREP "setsockopt" >/dev/null 2>&1; then :
37049
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37051$as_echo "yes" >&6; }
37052 tst_proto_setsockopt="yes"
37053
37054else
37055
37056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37057$as_echo "no" >&6; }
37058 tst_proto_setsockopt="no"
37059
37060fi
37061rm -f conftest*
37062
37063 fi
37064 #
37065 if test "$tst_proto_setsockopt" = "yes"; then
37066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
37067$as_echo_n "checking if setsockopt is compilable... " >&6; }
37068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37069/* end confdefs.h. */
37070
37071
37072 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037073 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037074 $curl_includes_sys_socket
37075
37076int main (void)
37077{
37078
37079 if(0 != setsockopt(0, 0, 0, 0, 0))
37080 return 1;
37081
37082 ;
37083 return 0;
37084}
37085
37086_ACEOF
37087if ac_fn_c_try_compile "$LINENO"; then :
37088
37089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37090$as_echo "yes" >&6; }
37091 tst_compi_setsockopt="yes"
37092
37093else
37094
37095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37096$as_echo "no" >&6; }
37097 tst_compi_setsockopt="no"
37098
37099fi
37100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37101 fi
37102 #
37103 if test "$tst_compi_setsockopt" = "yes"; then
37104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
37105$as_echo_n "checking if setsockopt usage allowed... " >&6; }
37106 if test "x$curl_disallow_setsockopt" != "xyes"; then
37107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37108$as_echo "yes" >&6; }
37109 tst_allow_setsockopt="yes"
37110 else
37111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37112$as_echo "no" >&6; }
37113 tst_allow_setsockopt="no"
37114 fi
37115 fi
37116 #
37117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
37118$as_echo_n "checking if setsockopt might be used... " >&6; }
37119 if test "$tst_links_setsockopt" = "yes" &&
37120 test "$tst_proto_setsockopt" = "yes" &&
37121 test "$tst_compi_setsockopt" = "yes" &&
37122 test "$tst_allow_setsockopt" = "yes"; then
37123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37124$as_echo "yes" >&6; }
37125
37126cat >>confdefs.h <<_ACEOF
37127#define HAVE_SETSOCKOPT 1
37128_ACEOF
37129
37130 curl_cv_func_setsockopt="yes"
37131
37132 #
37133 tst_compi_setsockopt_so_nonblock="unknown"
37134 tst_allow_setsockopt_so_nonblock="unknown"
37135 #
37136 if test "$curl_cv_func_setsockopt" = "yes"; then
37137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
37138$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
37139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37140/* end confdefs.h. */
37141
37142
37143 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037144 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037145 $curl_includes_sys_socket
37146
37147int main (void)
37148{
37149
37150 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
37151 return 1;
37152
37153 ;
37154 return 0;
37155}
37156
37157_ACEOF
37158if ac_fn_c_try_compile "$LINENO"; then :
37159
37160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37161$as_echo "yes" >&6; }
37162 tst_compi_setsockopt_so_nonblock="yes"
37163
37164else
37165
37166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37167$as_echo "no" >&6; }
37168 tst_compi_setsockopt_so_nonblock="no"
37169
37170fi
37171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37172 fi
37173 #
37174 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
37176$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
37177 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37179$as_echo "yes" >&6; }
37180 tst_allow_setsockopt_so_nonblock="yes"
37181 else
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37183$as_echo "no" >&6; }
37184 tst_allow_setsockopt_so_nonblock="no"
37185 fi
37186 fi
37187 #
37188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
37189$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
37190 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
37191 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
37192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37193$as_echo "yes" >&6; }
37194
37195cat >>confdefs.h <<_ACEOF
37196#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
37197_ACEOF
37198
37199 curl_cv_func_setsockopt_so_nonblock="yes"
37200 else
37201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37202$as_echo "no" >&6; }
37203 curl_cv_func_setsockopt_so_nonblock="no"
37204 fi
37205
37206 else
37207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37208$as_echo "no" >&6; }
37209 curl_cv_func_setsockopt="no"
37210 fi
37211
37212
37213curl_includes_signal="\
37214/* includes start */
37215#ifdef HAVE_SYS_TYPES_H
37216# include <sys/types.h>
37217#endif
37218#ifdef HAVE_SIGNAL_H
37219# include <signal.h>
37220#endif
37221/* includes end */"
37222 for ac_header in sys/types.h signal.h
37223do :
37224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37225ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
37226"
37227if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37228 cat >>confdefs.h <<_ACEOF
37229#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37230_ACEOF
37231
37232fi
37233
37234done
37235
37236
37237
37238 #
37239 tst_links_sigaction="unknown"
37240 tst_proto_sigaction="unknown"
37241 tst_compi_sigaction="unknown"
37242 tst_allow_sigaction="unknown"
37243 #
37244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
37245$as_echo_n "checking if sigaction can be linked... " >&6; }
37246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37247/* end confdefs.h. */
37248
37249
37250#define sigaction innocuous_sigaction
37251#ifdef __STDC__
37252# include <limits.h>
37253#else
37254# include <assert.h>
37255#endif
37256#undef sigaction
37257#ifdef __cplusplus
37258extern "C"
37259#endif
37260char sigaction ();
37261#if defined __stub_sigaction || defined __stub___sigaction
37262choke me
37263#endif
37264
37265int main (void)
37266{
37267return sigaction ();
37268 ;
37269 return 0;
37270}
37271
37272_ACEOF
37273if ac_fn_c_try_link "$LINENO"; then :
37274
37275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37276$as_echo "yes" >&6; }
37277 tst_links_sigaction="yes"
37278
37279else
37280
37281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37282$as_echo "no" >&6; }
37283 tst_links_sigaction="no"
37284
37285fi
37286rm -f core conftest.err conftest.$ac_objext \
37287 conftest$ac_exeext conftest.$ac_ext
37288 #
37289 if test "$tst_links_sigaction" = "yes"; then
37290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37291$as_echo_n "checking if sigaction is prototyped... " >&6; }
37292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37293/* end confdefs.h. */
37294
37295 $curl_includes_signal
37296
37297_ACEOF
37298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37299 $EGREP "sigaction" >/dev/null 2>&1; then :
37300
37301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37302$as_echo "yes" >&6; }
37303 tst_proto_sigaction="yes"
37304
37305else
37306
37307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37308$as_echo "no" >&6; }
37309 tst_proto_sigaction="no"
37310
37311fi
37312rm -f conftest*
37313
37314 fi
37315 #
37316 if test "$tst_proto_sigaction" = "yes"; then
37317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37318$as_echo_n "checking if sigaction is compilable... " >&6; }
37319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37320/* end confdefs.h. */
37321
37322
37323 $curl_includes_signal
37324
37325int main (void)
37326{
37327
37328 if(0 != sigaction(0, 0, 0))
37329 return 1;
37330
37331 ;
37332 return 0;
37333}
37334
37335_ACEOF
37336if ac_fn_c_try_compile "$LINENO"; then :
37337
37338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37339$as_echo "yes" >&6; }
37340 tst_compi_sigaction="yes"
37341
37342else
37343
37344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37345$as_echo "no" >&6; }
37346 tst_compi_sigaction="no"
37347
37348fi
37349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37350 fi
37351 #
37352 if test "$tst_compi_sigaction" = "yes"; then
37353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37354$as_echo_n "checking if sigaction usage allowed... " >&6; }
37355 if test "x$curl_disallow_sigaction" != "xyes"; then
37356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37357$as_echo "yes" >&6; }
37358 tst_allow_sigaction="yes"
37359 else
37360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37361$as_echo "no" >&6; }
37362 tst_allow_sigaction="no"
37363 fi
37364 fi
37365 #
37366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37367$as_echo_n "checking if sigaction might be used... " >&6; }
37368 if test "$tst_links_sigaction" = "yes" &&
37369 test "$tst_proto_sigaction" = "yes" &&
37370 test "$tst_compi_sigaction" = "yes" &&
37371 test "$tst_allow_sigaction" = "yes"; then
37372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37373$as_echo "yes" >&6; }
37374
37375cat >>confdefs.h <<_ACEOF
37376#define HAVE_SIGACTION 1
37377_ACEOF
37378
37379 curl_cv_func_sigaction="yes"
37380 else
37381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37382$as_echo "no" >&6; }
37383 curl_cv_func_sigaction="no"
37384 fi
37385
37386
37387 #
37388 tst_links_siginterrupt="unknown"
37389 tst_proto_siginterrupt="unknown"
37390 tst_compi_siginterrupt="unknown"
37391 tst_allow_siginterrupt="unknown"
37392 #
37393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37394$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37396/* end confdefs.h. */
37397
37398
37399#define siginterrupt innocuous_siginterrupt
37400#ifdef __STDC__
37401# include <limits.h>
37402#else
37403# include <assert.h>
37404#endif
37405#undef siginterrupt
37406#ifdef __cplusplus
37407extern "C"
37408#endif
37409char siginterrupt ();
37410#if defined __stub_siginterrupt || defined __stub___siginterrupt
37411choke me
37412#endif
37413
37414int main (void)
37415{
37416return siginterrupt ();
37417 ;
37418 return 0;
37419}
37420
37421_ACEOF
37422if ac_fn_c_try_link "$LINENO"; then :
37423
37424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37425$as_echo "yes" >&6; }
37426 tst_links_siginterrupt="yes"
37427
37428else
37429
37430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37431$as_echo "no" >&6; }
37432 tst_links_siginterrupt="no"
37433
37434fi
37435rm -f core conftest.err conftest.$ac_objext \
37436 conftest$ac_exeext conftest.$ac_ext
37437 #
37438 if test "$tst_links_siginterrupt" = "yes"; then
37439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37440$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37442/* end confdefs.h. */
37443
37444 $curl_includes_signal
37445
37446_ACEOF
37447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37448 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37449
37450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37451$as_echo "yes" >&6; }
37452 tst_proto_siginterrupt="yes"
37453
37454else
37455
37456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37457$as_echo "no" >&6; }
37458 tst_proto_siginterrupt="no"
37459
37460fi
37461rm -f conftest*
37462
37463 fi
37464 #
37465 if test "$tst_proto_siginterrupt" = "yes"; then
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37467$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37469/* end confdefs.h. */
37470
37471
37472 $curl_includes_signal
37473
37474int main (void)
37475{
37476
37477 if(0 != siginterrupt(0, 0))
37478 return 1;
37479
37480 ;
37481 return 0;
37482}
37483
37484_ACEOF
37485if ac_fn_c_try_compile "$LINENO"; then :
37486
37487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37488$as_echo "yes" >&6; }
37489 tst_compi_siginterrupt="yes"
37490
37491else
37492
37493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37494$as_echo "no" >&6; }
37495 tst_compi_siginterrupt="no"
37496
37497fi
37498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37499 fi
37500 #
37501 if test "$tst_compi_siginterrupt" = "yes"; then
37502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37503$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37504 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37506$as_echo "yes" >&6; }
37507 tst_allow_siginterrupt="yes"
37508 else
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37510$as_echo "no" >&6; }
37511 tst_allow_siginterrupt="no"
37512 fi
37513 fi
37514 #
37515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37516$as_echo_n "checking if siginterrupt might be used... " >&6; }
37517 if test "$tst_links_siginterrupt" = "yes" &&
37518 test "$tst_proto_siginterrupt" = "yes" &&
37519 test "$tst_compi_siginterrupt" = "yes" &&
37520 test "$tst_allow_siginterrupt" = "yes"; then
37521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37522$as_echo "yes" >&6; }
37523
37524cat >>confdefs.h <<_ACEOF
37525#define HAVE_SIGINTERRUPT 1
37526_ACEOF
37527
37528 curl_cv_func_siginterrupt="yes"
37529 else
37530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37531$as_echo "no" >&6; }
37532 curl_cv_func_siginterrupt="no"
37533 fi
37534
37535
37536 #
37537 tst_links_signal="unknown"
37538 tst_proto_signal="unknown"
37539 tst_compi_signal="unknown"
37540 tst_allow_signal="unknown"
37541 #
37542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37543$as_echo_n "checking if signal can be linked... " >&6; }
37544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37545/* end confdefs.h. */
37546
37547
37548#define signal innocuous_signal
37549#ifdef __STDC__
37550# include <limits.h>
37551#else
37552# include <assert.h>
37553#endif
37554#undef signal
37555#ifdef __cplusplus
37556extern "C"
37557#endif
37558char signal ();
37559#if defined __stub_signal || defined __stub___signal
37560choke me
37561#endif
37562
37563int main (void)
37564{
37565return signal ();
37566 ;
37567 return 0;
37568}
37569
37570_ACEOF
37571if ac_fn_c_try_link "$LINENO"; then :
37572
37573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37574$as_echo "yes" >&6; }
37575 tst_links_signal="yes"
37576
37577else
37578
37579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37580$as_echo "no" >&6; }
37581 tst_links_signal="no"
37582
37583fi
37584rm -f core conftest.err conftest.$ac_objext \
37585 conftest$ac_exeext conftest.$ac_ext
37586 #
37587 if test "$tst_links_signal" = "yes"; then
37588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37589$as_echo_n "checking if signal is prototyped... " >&6; }
37590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37591/* end confdefs.h. */
37592
37593 $curl_includes_signal
37594
37595_ACEOF
37596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37597 $EGREP "signal" >/dev/null 2>&1; then :
37598
37599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37600$as_echo "yes" >&6; }
37601 tst_proto_signal="yes"
37602
37603else
37604
37605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37606$as_echo "no" >&6; }
37607 tst_proto_signal="no"
37608
37609fi
37610rm -f conftest*
37611
37612 fi
37613 #
37614 if test "$tst_proto_signal" = "yes"; then
37615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37616$as_echo_n "checking if signal is compilable... " >&6; }
37617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37618/* end confdefs.h. */
37619
37620
37621 $curl_includes_signal
37622
37623int main (void)
37624{
37625
37626 if(0 != signal(0, 0))
37627 return 1;
37628
37629 ;
37630 return 0;
37631}
37632
37633_ACEOF
37634if ac_fn_c_try_compile "$LINENO"; then :
37635
37636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37637$as_echo "yes" >&6; }
37638 tst_compi_signal="yes"
37639
37640else
37641
37642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37643$as_echo "no" >&6; }
37644 tst_compi_signal="no"
37645
37646fi
37647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37648 fi
37649 #
37650 if test "$tst_compi_signal" = "yes"; then
37651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37652$as_echo_n "checking if signal usage allowed... " >&6; }
37653 if test "x$curl_disallow_signal" != "xyes"; then
37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37655$as_echo "yes" >&6; }
37656 tst_allow_signal="yes"
37657 else
37658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37659$as_echo "no" >&6; }
37660 tst_allow_signal="no"
37661 fi
37662 fi
37663 #
37664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37665$as_echo_n "checking if signal might be used... " >&6; }
37666 if test "$tst_links_signal" = "yes" &&
37667 test "$tst_proto_signal" = "yes" &&
37668 test "$tst_compi_signal" = "yes" &&
37669 test "$tst_allow_signal" = "yes"; then
37670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37671$as_echo "yes" >&6; }
37672
37673cat >>confdefs.h <<_ACEOF
37674#define HAVE_SIGNAL 1
37675_ACEOF
37676
37677 curl_cv_func_signal="yes"
37678 else
37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37680$as_echo "no" >&6; }
37681 curl_cv_func_signal="no"
37682 fi
37683
37684
37685curl_includes_setjmp="\
37686/* includes start */
37687#ifdef HAVE_SYS_TYPES_H
37688# include <sys/types.h>
37689#endif
37690#ifdef HAVE_SETJMP_H
37691# include <setjmp.h>
37692#endif
37693/* includes end */"
37694 for ac_header in sys/types.h setjmp.h
37695do :
37696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37697ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37698"
37699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37700 cat >>confdefs.h <<_ACEOF
37701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37702_ACEOF
37703
37704fi
37705
37706done
37707
37708
37709
37710 #
37711 tst_links_sigsetjmp="unknown"
37712 tst_macro_sigsetjmp="unknown"
37713 tst_proto_sigsetjmp="unknown"
37714 tst_compi_sigsetjmp="unknown"
37715 tst_allow_sigsetjmp="unknown"
37716 #
37717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37718$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37720/* end confdefs.h. */
37721
37722
37723#define sigsetjmp innocuous_sigsetjmp
37724#ifdef __STDC__
37725# include <limits.h>
37726#else
37727# include <assert.h>
37728#endif
37729#undef sigsetjmp
37730#ifdef __cplusplus
37731extern "C"
37732#endif
37733char sigsetjmp ();
37734#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37735choke me
37736#endif
37737
37738int main (void)
37739{
37740return sigsetjmp ();
37741 ;
37742 return 0;
37743}
37744
37745_ACEOF
37746if ac_fn_c_try_link "$LINENO"; then :
37747
37748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37749$as_echo "yes" >&6; }
37750 tst_links_sigsetjmp="yes"
37751
37752else
37753
37754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37755$as_echo "no" >&6; }
37756 tst_links_sigsetjmp="no"
37757
37758fi
37759rm -f core conftest.err conftest.$ac_objext \
37760 conftest$ac_exeext conftest.$ac_ext
37761 #
37762 if test "$tst_links_sigsetjmp" = "no"; then
37763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37764$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37766/* end confdefs.h. */
37767
37768
37769 $curl_includes_setjmp
37770
37771int main (void)
37772{
37773
37774 sigjmp_buf env;
37775 if(0 != sigsetjmp(env, 0))
37776 return 1;
37777
37778 ;
37779 return 0;
37780}
37781
37782_ACEOF
37783if ac_fn_c_try_link "$LINENO"; then :
37784
37785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37786$as_echo "yes" >&6; }
37787 tst_macro_sigsetjmp="yes"
37788
37789else
37790
37791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37792$as_echo "no" >&6; }
37793 tst_macro_sigsetjmp="no"
37794
37795fi
37796rm -f core conftest.err conftest.$ac_objext \
37797 conftest$ac_exeext conftest.$ac_ext
37798 fi
37799 #
37800 if test "$tst_links_sigsetjmp" = "yes"; then
37801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37802$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37804/* end confdefs.h. */
37805
37806 $curl_includes_setjmp
37807
37808_ACEOF
37809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37810 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37811
37812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37813$as_echo "yes" >&6; }
37814 tst_proto_sigsetjmp="yes"
37815
37816else
37817
37818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37819$as_echo "no" >&6; }
37820 tst_proto_sigsetjmp="no"
37821
37822fi
37823rm -f conftest*
37824
37825 fi
37826 #
37827 if test "$tst_proto_sigsetjmp" = "yes" ||
37828 test "$tst_macro_sigsetjmp" = "yes"; then
37829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37830$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37832/* end confdefs.h. */
37833
37834
37835 $curl_includes_setjmp
37836
37837int main (void)
37838{
37839
37840 sigjmp_buf env;
37841 if(0 != sigsetjmp(env, 0))
37842 return 1;
37843
37844 ;
37845 return 0;
37846}
37847
37848_ACEOF
37849if ac_fn_c_try_compile "$LINENO"; then :
37850
37851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37852$as_echo "yes" >&6; }
37853 tst_compi_sigsetjmp="yes"
37854
37855else
37856
37857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37858$as_echo "no" >&6; }
37859 tst_compi_sigsetjmp="no"
37860
37861fi
37862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37863 fi
37864 #
37865 if test "$tst_compi_sigsetjmp" = "yes"; then
37866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37867$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37868 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37870$as_echo "yes" >&6; }
37871 tst_allow_sigsetjmp="yes"
37872 else
37873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37874$as_echo "no" >&6; }
37875 tst_allow_sigsetjmp="no"
37876 fi
37877 fi
37878 #
37879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37880$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37881 if (test "$tst_proto_sigsetjmp" = "yes" ||
37882 test "$tst_macro_sigsetjmp" = "yes") &&
37883 test "$tst_compi_sigsetjmp" = "yes" &&
37884 test "$tst_allow_sigsetjmp" = "yes"; then
37885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37886$as_echo "yes" >&6; }
37887
37888cat >>confdefs.h <<_ACEOF
37889#define HAVE_SIGSETJMP 1
37890_ACEOF
37891
37892 curl_cv_func_sigsetjmp="yes"
37893 else
37894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37895$as_echo "no" >&6; }
37896 curl_cv_func_sigsetjmp="no"
37897 fi
37898
37899
37900 #
37901 tst_links_socket="unknown"
37902 tst_proto_socket="unknown"
37903 tst_compi_socket="unknown"
37904 tst_allow_socket="unknown"
37905 #
37906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37907$as_echo_n "checking if socket can be linked... " >&6; }
37908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37909/* end confdefs.h. */
37910
37911
37912 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037913 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037914 $curl_includes_sys_socket
37915 $curl_includes_socket
37916
37917int main (void)
37918{
37919
37920 if(0 != socket(0, 0, 0))
37921 return 1;
37922
37923 ;
37924 return 0;
37925}
37926
37927_ACEOF
37928if ac_fn_c_try_link "$LINENO"; then :
37929
37930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37931$as_echo "yes" >&6; }
37932 tst_links_socket="yes"
37933
37934else
37935
37936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37937$as_echo "no" >&6; }
37938 tst_links_socket="no"
37939
37940fi
37941rm -f core conftest.err conftest.$ac_objext \
37942 conftest$ac_exeext conftest.$ac_ext
37943 #
37944 if test "$tst_links_socket" = "yes"; then
37945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37946$as_echo_n "checking if socket is prototyped... " >&6; }
37947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37948/* end confdefs.h. */
37949
37950 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037951 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037952 $curl_includes_sys_socket
37953 $curl_includes_socket
37954
37955_ACEOF
37956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37957 $EGREP "socket" >/dev/null 2>&1; then :
37958
37959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960$as_echo "yes" >&6; }
37961 tst_proto_socket="yes"
37962
37963else
37964
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37966$as_echo "no" >&6; }
37967 tst_proto_socket="no"
37968
37969fi
37970rm -f conftest*
37971
37972 fi
37973 #
37974 if test "$tst_proto_socket" = "yes"; then
37975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37976$as_echo_n "checking if socket is compilable... " >&6; }
37977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37978/* end confdefs.h. */
37979
37980
37981 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037982 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037983 $curl_includes_sys_socket
37984 $curl_includes_socket
37985
37986int main (void)
37987{
37988
37989 if(0 != socket(0, 0, 0))
37990 return 1;
37991
37992 ;
37993 return 0;
37994}
37995
37996_ACEOF
37997if ac_fn_c_try_compile "$LINENO"; then :
37998
37999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38000$as_echo "yes" >&6; }
38001 tst_compi_socket="yes"
38002
38003else
38004
38005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38006$as_echo "no" >&6; }
38007 tst_compi_socket="no"
38008
38009fi
38010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38011 fi
38012 #
38013 if test "$tst_compi_socket" = "yes"; then
38014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
38015$as_echo_n "checking if socket usage allowed... " >&6; }
38016 if test "x$curl_disallow_socket" != "xyes"; then
38017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38018$as_echo "yes" >&6; }
38019 tst_allow_socket="yes"
38020 else
38021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38022$as_echo "no" >&6; }
38023 tst_allow_socket="no"
38024 fi
38025 fi
38026 #
38027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
38028$as_echo_n "checking if socket might be used... " >&6; }
38029 if test "$tst_links_socket" = "yes" &&
38030 test "$tst_proto_socket" = "yes" &&
38031 test "$tst_compi_socket" = "yes" &&
38032 test "$tst_allow_socket" = "yes"; then
38033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38034$as_echo "yes" >&6; }
38035
38036cat >>confdefs.h <<_ACEOF
38037#define HAVE_SOCKET 1
38038_ACEOF
38039
38040 curl_cv_func_socket="yes"
38041 else
38042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38043$as_echo "no" >&6; }
38044 curl_cv_func_socket="no"
38045 fi
38046
38047
38048 #
38049 tst_links_socketpair="unknown"
38050 tst_proto_socketpair="unknown"
38051 tst_compi_socketpair="unknown"
38052 tst_allow_socketpair="unknown"
38053 #
38054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
38055$as_echo_n "checking if socketpair can be linked... " >&6; }
38056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38057/* end confdefs.h. */
38058
38059
38060#define socketpair innocuous_socketpair
38061#ifdef __STDC__
38062# include <limits.h>
38063#else
38064# include <assert.h>
38065#endif
38066#undef socketpair
38067#ifdef __cplusplus
38068extern "C"
38069#endif
38070char socketpair ();
38071#if defined __stub_socketpair || defined __stub___socketpair
38072choke me
38073#endif
38074
38075int main (void)
38076{
38077return socketpair ();
38078 ;
38079 return 0;
38080}
38081
38082_ACEOF
38083if ac_fn_c_try_link "$LINENO"; then :
38084
38085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38086$as_echo "yes" >&6; }
38087 tst_links_socketpair="yes"
38088
38089else
38090
38091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38092$as_echo "no" >&6; }
38093 tst_links_socketpair="no"
38094
38095fi
38096rm -f core conftest.err conftest.$ac_objext \
38097 conftest$ac_exeext conftest.$ac_ext
38098 #
38099 if test "$tst_links_socketpair" = "yes"; then
38100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
38101$as_echo_n "checking if socketpair is prototyped... " >&6; }
38102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38103/* end confdefs.h. */
38104
38105 $curl_includes_sys_socket
38106 $curl_includes_socket
38107
38108_ACEOF
38109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38110 $EGREP "socketpair" >/dev/null 2>&1; then :
38111
38112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38113$as_echo "yes" >&6; }
38114 tst_proto_socketpair="yes"
38115
38116else
38117
38118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38119$as_echo "no" >&6; }
38120 tst_proto_socketpair="no"
38121
38122fi
38123rm -f conftest*
38124
38125 fi
38126 #
38127 if test "$tst_proto_socketpair" = "yes"; then
38128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
38129$as_echo_n "checking if socketpair is compilable... " >&6; }
38130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38131/* end confdefs.h. */
38132
38133
38134 $curl_includes_sys_socket
38135 $curl_includes_socket
38136
38137int main (void)
38138{
38139
38140 int sv[2];
38141 if(0 != socketpair(0, 0, 0, sv))
38142 return 1;
38143
38144 ;
38145 return 0;
38146}
38147
38148_ACEOF
38149if ac_fn_c_try_compile "$LINENO"; then :
38150
38151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38152$as_echo "yes" >&6; }
38153 tst_compi_socketpair="yes"
38154
38155else
38156
38157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38158$as_echo "no" >&6; }
38159 tst_compi_socketpair="no"
38160
38161fi
38162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38163 fi
38164 #
38165 if test "$tst_compi_socketpair" = "yes"; then
38166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
38167$as_echo_n "checking if socketpair usage allowed... " >&6; }
38168 if test "x$curl_disallow_socketpair" != "xyes"; then
38169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38170$as_echo "yes" >&6; }
38171 tst_allow_socketpair="yes"
38172 else
38173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38174$as_echo "no" >&6; }
38175 tst_allow_socketpair="no"
38176 fi
38177 fi
38178 #
38179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
38180$as_echo_n "checking if socketpair might be used... " >&6; }
38181 if test "$tst_links_socketpair" = "yes" &&
38182 test "$tst_proto_socketpair" = "yes" &&
38183 test "$tst_compi_socketpair" = "yes" &&
38184 test "$tst_allow_socketpair" = "yes"; then
38185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38186$as_echo "yes" >&6; }
38187
38188cat >>confdefs.h <<_ACEOF
38189#define HAVE_SOCKETPAIR 1
38190_ACEOF
38191
38192 curl_cv_func_socketpair="yes"
38193 else
38194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38195$as_echo "no" >&6; }
38196 curl_cv_func_socketpair="no"
38197 fi
38198
38199
38200 #
38201 tst_links_strcasecmp="unknown"
38202 tst_proto_strcasecmp="unknown"
38203 tst_compi_strcasecmp="unknown"
38204 tst_allow_strcasecmp="unknown"
38205 #
38206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
38207$as_echo_n "checking if strcasecmp can be linked... " >&6; }
38208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38209/* end confdefs.h. */
38210
38211
38212#define strcasecmp innocuous_strcasecmp
38213#ifdef __STDC__
38214# include <limits.h>
38215#else
38216# include <assert.h>
38217#endif
38218#undef strcasecmp
38219#ifdef __cplusplus
38220extern "C"
38221#endif
38222char strcasecmp ();
38223#if defined __stub_strcasecmp || defined __stub___strcasecmp
38224choke me
38225#endif
38226
38227int main (void)
38228{
38229return strcasecmp ();
38230 ;
38231 return 0;
38232}
38233
38234_ACEOF
38235if ac_fn_c_try_link "$LINENO"; then :
38236
38237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38238$as_echo "yes" >&6; }
38239 tst_links_strcasecmp="yes"
38240
38241else
38242
38243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38244$as_echo "no" >&6; }
38245 tst_links_strcasecmp="no"
38246
38247fi
38248rm -f core conftest.err conftest.$ac_objext \
38249 conftest$ac_exeext conftest.$ac_ext
38250 #
38251 if test "$tst_links_strcasecmp" = "yes"; then
38252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
38253$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
38254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38255/* end confdefs.h. */
38256
38257 $curl_includes_string
38258
38259_ACEOF
38260if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38261 $EGREP "strcasecmp" >/dev/null 2>&1; then :
38262
38263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38264$as_echo "yes" >&6; }
38265 tst_proto_strcasecmp="yes"
38266
38267else
38268
38269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38270$as_echo "no" >&6; }
38271 tst_proto_strcasecmp="no"
38272
38273fi
38274rm -f conftest*
38275
38276 fi
38277 #
38278 if test "$tst_proto_strcasecmp" = "yes"; then
38279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38280$as_echo_n "checking if strcasecmp is compilable... " >&6; }
38281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38282/* end confdefs.h. */
38283
38284
38285 $curl_includes_string
38286
38287int main (void)
38288{
38289
38290 if(0 != strcasecmp(0, 0))
38291 return 1;
38292
38293 ;
38294 return 0;
38295}
38296
38297_ACEOF
38298if ac_fn_c_try_compile "$LINENO"; then :
38299
38300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38301$as_echo "yes" >&6; }
38302 tst_compi_strcasecmp="yes"
38303
38304else
38305
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38307$as_echo "no" >&6; }
38308 tst_compi_strcasecmp="no"
38309
38310fi
38311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38312 fi
38313 #
38314 if test "$tst_compi_strcasecmp" = "yes"; then
38315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38316$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38317 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38319$as_echo "yes" >&6; }
38320 tst_allow_strcasecmp="yes"
38321 else
38322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38323$as_echo "no" >&6; }
38324 tst_allow_strcasecmp="no"
38325 fi
38326 fi
38327 #
38328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38329$as_echo_n "checking if strcasecmp might be used... " >&6; }
38330 if test "$tst_links_strcasecmp" = "yes" &&
38331 test "$tst_proto_strcasecmp" = "yes" &&
38332 test "$tst_compi_strcasecmp" = "yes" &&
38333 test "$tst_allow_strcasecmp" = "yes"; then
38334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38335$as_echo "yes" >&6; }
38336
38337cat >>confdefs.h <<_ACEOF
38338#define HAVE_STRCASECMP 1
38339_ACEOF
38340
38341 curl_cv_func_strcasecmp="yes"
38342 else
38343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38344$as_echo "no" >&6; }
38345 curl_cv_func_strcasecmp="no"
38346 fi
38347
38348
38349 #
38350 tst_links_strcmpi="unknown"
38351 tst_proto_strcmpi="unknown"
38352 tst_compi_strcmpi="unknown"
38353 tst_allow_strcmpi="unknown"
38354 #
38355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38356$as_echo_n "checking if strcmpi can be linked... " >&6; }
38357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38358/* end confdefs.h. */
38359
38360
38361#define strcmpi innocuous_strcmpi
38362#ifdef __STDC__
38363# include <limits.h>
38364#else
38365# include <assert.h>
38366#endif
38367#undef strcmpi
38368#ifdef __cplusplus
38369extern "C"
38370#endif
38371char strcmpi ();
38372#if defined __stub_strcmpi || defined __stub___strcmpi
38373choke me
38374#endif
38375
38376int main (void)
38377{
38378return strcmpi ();
38379 ;
38380 return 0;
38381}
38382
38383_ACEOF
38384if ac_fn_c_try_link "$LINENO"; then :
38385
38386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38387$as_echo "yes" >&6; }
38388 tst_links_strcmpi="yes"
38389
38390else
38391
38392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38393$as_echo "no" >&6; }
38394 tst_links_strcmpi="no"
38395
38396fi
38397rm -f core conftest.err conftest.$ac_objext \
38398 conftest$ac_exeext conftest.$ac_ext
38399 #
38400 if test "$tst_links_strcmpi" = "yes"; then
38401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38402$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38404/* end confdefs.h. */
38405
38406 $curl_includes_string
38407
38408_ACEOF
38409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38410 $EGREP "strcmpi" >/dev/null 2>&1; then :
38411
38412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38413$as_echo "yes" >&6; }
38414 tst_proto_strcmpi="yes"
38415
38416else
38417
38418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38419$as_echo "no" >&6; }
38420 tst_proto_strcmpi="no"
38421
38422fi
38423rm -f conftest*
38424
38425 fi
38426 #
38427 if test "$tst_proto_strcmpi" = "yes"; then
38428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38429$as_echo_n "checking if strcmpi is compilable... " >&6; }
38430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38431/* end confdefs.h. */
38432
38433
38434 $curl_includes_string
38435
38436int main (void)
38437{
38438
38439 if(0 != strcmpi(0, 0))
38440 return 1;
38441
38442 ;
38443 return 0;
38444}
38445
38446_ACEOF
38447if ac_fn_c_try_compile "$LINENO"; then :
38448
38449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38450$as_echo "yes" >&6; }
38451 tst_compi_strcmpi="yes"
38452
38453else
38454
38455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38456$as_echo "no" >&6; }
38457 tst_compi_strcmpi="no"
38458
38459fi
38460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38461 fi
38462 #
38463 if test "$tst_compi_strcmpi" = "yes"; then
38464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38465$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38466 if test "x$curl_disallow_strcmpi" != "xyes"; then
38467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38468$as_echo "yes" >&6; }
38469 tst_allow_strcmpi="yes"
38470 else
38471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38472$as_echo "no" >&6; }
38473 tst_allow_strcmpi="no"
38474 fi
38475 fi
38476 #
38477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38478$as_echo_n "checking if strcmpi might be used... " >&6; }
38479 if test "$tst_links_strcmpi" = "yes" &&
38480 test "$tst_proto_strcmpi" = "yes" &&
38481 test "$tst_compi_strcmpi" = "yes" &&
38482 test "$tst_allow_strcmpi" = "yes"; then
38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38484$as_echo "yes" >&6; }
38485
38486cat >>confdefs.h <<_ACEOF
38487#define HAVE_STRCMPI 1
38488_ACEOF
38489
38490 curl_cv_func_strcmpi="yes"
38491 else
38492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38493$as_echo "no" >&6; }
38494 curl_cv_func_strcmpi="no"
38495 fi
38496
38497
38498 #
38499 tst_links_strdup="unknown"
38500 tst_proto_strdup="unknown"
38501 tst_compi_strdup="unknown"
38502 tst_allow_strdup="unknown"
38503 #
38504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38505$as_echo_n "checking if strdup can be linked... " >&6; }
38506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38507/* end confdefs.h. */
38508
38509
38510#define strdup innocuous_strdup
38511#ifdef __STDC__
38512# include <limits.h>
38513#else
38514# include <assert.h>
38515#endif
38516#undef strdup
38517#ifdef __cplusplus
38518extern "C"
38519#endif
38520char strdup ();
38521#if defined __stub_strdup || defined __stub___strdup
38522choke me
38523#endif
38524
38525int main (void)
38526{
38527return strdup ();
38528 ;
38529 return 0;
38530}
38531
38532_ACEOF
38533if ac_fn_c_try_link "$LINENO"; then :
38534
38535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38536$as_echo "yes" >&6; }
38537 tst_links_strdup="yes"
38538
38539else
38540
38541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38542$as_echo "no" >&6; }
38543 tst_links_strdup="no"
38544
38545fi
38546rm -f core conftest.err conftest.$ac_objext \
38547 conftest$ac_exeext conftest.$ac_ext
38548 #
38549 if test "$tst_links_strdup" = "yes"; then
38550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38551$as_echo_n "checking if strdup is prototyped... " >&6; }
38552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38553/* end confdefs.h. */
38554
38555 $curl_includes_string
38556
38557_ACEOF
38558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38559 $EGREP "strdup" >/dev/null 2>&1; then :
38560
38561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38562$as_echo "yes" >&6; }
38563 tst_proto_strdup="yes"
38564
38565else
38566
38567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38568$as_echo "no" >&6; }
38569 tst_proto_strdup="no"
38570
38571fi
38572rm -f conftest*
38573
38574 fi
38575 #
38576 if test "$tst_proto_strdup" = "yes"; then
38577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38578$as_echo_n "checking if strdup is compilable... " >&6; }
38579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38580/* end confdefs.h. */
38581
38582
38583 $curl_includes_string
38584
38585int main (void)
38586{
38587
38588 if(0 != strdup(0))
38589 return 1;
38590
38591 ;
38592 return 0;
38593}
38594
38595_ACEOF
38596if ac_fn_c_try_compile "$LINENO"; then :
38597
38598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38599$as_echo "yes" >&6; }
38600 tst_compi_strdup="yes"
38601
38602else
38603
38604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38605$as_echo "no" >&6; }
38606 tst_compi_strdup="no"
38607
38608fi
38609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38610 fi
38611 #
38612 if test "$tst_compi_strdup" = "yes"; then
38613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38614$as_echo_n "checking if strdup usage allowed... " >&6; }
38615 if test "x$curl_disallow_strdup" != "xyes"; then
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38617$as_echo "yes" >&6; }
38618 tst_allow_strdup="yes"
38619 else
38620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38621$as_echo "no" >&6; }
38622 tst_allow_strdup="no"
38623 fi
38624 fi
38625 #
38626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38627$as_echo_n "checking if strdup might be used... " >&6; }
38628 if test "$tst_links_strdup" = "yes" &&
38629 test "$tst_proto_strdup" = "yes" &&
38630 test "$tst_compi_strdup" = "yes" &&
38631 test "$tst_allow_strdup" = "yes"; then
38632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38633$as_echo "yes" >&6; }
38634
38635cat >>confdefs.h <<_ACEOF
38636#define HAVE_STRDUP 1
38637_ACEOF
38638
38639 curl_cv_func_strdup="yes"
38640 else
38641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38642$as_echo "no" >&6; }
38643 curl_cv_func_strdup="no"
38644 fi
38645
38646
38647 #
38648 tst_links_strerror_r="unknown"
38649 tst_proto_strerror_r="unknown"
38650 tst_compi_strerror_r="unknown"
38651 tst_glibc_strerror_r="unknown"
38652 tst_posix_strerror_r="unknown"
38653 tst_allow_strerror_r="unknown"
38654 tst_works_glibc_strerror_r="unknown"
38655 tst_works_posix_strerror_r="unknown"
38656 tst_glibc_strerror_r_type_arg3="unknown"
38657 tst_posix_strerror_r_type_arg3="unknown"
38658 #
38659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38660$as_echo_n "checking if strerror_r can be linked... " >&6; }
38661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38662/* end confdefs.h. */
38663
38664
38665#define strerror_r innocuous_strerror_r
38666#ifdef __STDC__
38667# include <limits.h>
38668#else
38669# include <assert.h>
38670#endif
38671#undef strerror_r
38672#ifdef __cplusplus
38673extern "C"
38674#endif
38675char strerror_r ();
38676#if defined __stub_strerror_r || defined __stub___strerror_r
38677choke me
38678#endif
38679
38680int main (void)
38681{
38682return strerror_r ();
38683 ;
38684 return 0;
38685}
38686
38687_ACEOF
38688if ac_fn_c_try_link "$LINENO"; then :
38689
38690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38691$as_echo "yes" >&6; }
38692 tst_links_strerror_r="yes"
38693
38694else
38695
38696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38697$as_echo "no" >&6; }
38698 tst_links_strerror_r="no"
38699
38700fi
38701rm -f core conftest.err conftest.$ac_objext \
38702 conftest$ac_exeext conftest.$ac_ext
38703 #
38704 if test "$tst_links_strerror_r" = "yes"; then
38705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38706$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38708/* end confdefs.h. */
38709
38710 $curl_includes_string
38711
38712_ACEOF
38713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38714 $EGREP "strerror_r" >/dev/null 2>&1; then :
38715
38716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38717$as_echo "yes" >&6; }
38718 tst_proto_strerror_r="yes"
38719
38720else
38721
38722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38723$as_echo "no" >&6; }
38724 tst_proto_strerror_r="no"
38725
38726fi
38727rm -f conftest*
38728
38729 fi
38730 #
38731 if test "$tst_proto_strerror_r" = "yes"; then
38732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38733$as_echo_n "checking if strerror_r is compilable... " >&6; }
38734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38735/* end confdefs.h. */
38736
38737
38738 $curl_includes_string
38739
38740int main (void)
38741{
38742
38743 if(0 != strerror_r(0, 0, 0))
38744 return 1;
38745
38746 ;
38747 return 0;
38748}
38749
38750_ACEOF
38751if ac_fn_c_try_compile "$LINENO"; then :
38752
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38754$as_echo "yes" >&6; }
38755 tst_compi_strerror_r="yes"
38756
38757else
38758
38759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38760$as_echo "no" >&6; }
38761 tst_compi_strerror_r="no"
38762
38763fi
38764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38765 fi
38766 #
38767 if test "$tst_compi_strerror_r" = "yes"; then
38768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38769$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38770 tst_glibc_strerror_r_type_arg3="unknown"
38771 for arg3 in 'size_t' 'int' 'unsigned int'; do
38772 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38774/* end confdefs.h. */
38775
38776
38777 $curl_includes_string
38778 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38779
38780int main (void)
38781{
38782
38783 if(0 != strerror_r(0, 0, 0))
38784 return 1;
38785
38786 ;
38787 return 0;
38788}
38789
38790_ACEOF
38791if ac_fn_c_try_compile "$LINENO"; then :
38792
38793 tst_glibc_strerror_r_type_arg3="$arg3"
38794
38795fi
38796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38797 fi
38798 done
38799 case "$tst_glibc_strerror_r_type_arg3" in
38800 unknown)
38801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38802$as_echo "no" >&6; }
38803 tst_glibc_strerror_r="no"
38804 ;;
38805 *)
38806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38807$as_echo "yes" >&6; }
38808 tst_glibc_strerror_r="yes"
38809 ;;
38810 esac
38811 fi
38812 #
38813 if test "x$cross_compiling" != "xyes" &&
38814 test "$tst_glibc_strerror_r" = "yes"; then
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38816$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038817
38818
38819 old=$LD_LIBRARY_PATH
38820 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38821 export LD_LIBRARY_PATH
38822 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38825as_fn_error $? "cannot run test program while cross compiling
38826See \`config.log' for more details" "$LINENO" 5; }
38827else
38828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38829/* end confdefs.h. */
38830
38831
38832 $curl_includes_stdlib
38833 $curl_includes_string
38834# include <errno.h>
38835
38836int main (void)
38837{
38838
38839 char buffer[1024];
38840 char *string = 0;
38841 buffer[0] = '\0';
38842 string = strerror_r(EACCES, buffer, sizeof(buffer));
38843 if(!string)
38844 exit(1); /* fail */
38845 if(!string[0])
38846 exit(1); /* fail */
38847 else
38848 exit(0);
38849
38850 ;
38851 return 0;
38852}
38853
38854_ACEOF
38855if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038857$as_echo "yes" >&6; }
38858 tst_works_glibc_strerror_r="yes"
38859
38860else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038862$as_echo "no" >&6; }
38863 tst_works_glibc_strerror_r="no"
38864
38865fi
38866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38867 conftest.$ac_objext conftest.beam conftest.$ac_ext
38868fi
38869
Elliott Hughesa93fb052018-12-12 14:22:48 -080038870 LD_LIBRARY_PATH=$old # restore
38871
Elliott Hughes82be86d2017-09-20 17:00:17 -070038872 fi
38873 #
38874 if test "$tst_compi_strerror_r" = "yes" &&
38875 test "$tst_works_glibc_strerror_r" != "yes"; then
38876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38877$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38878 tst_posix_strerror_r_type_arg3="unknown"
38879 for arg3 in 'size_t' 'int' 'unsigned int'; do
38880 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38882/* end confdefs.h. */
38883
38884
38885 $curl_includes_string
38886 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38887
38888int main (void)
38889{
38890
38891 if(0 != strerror_r(0, 0, 0))
38892 return 1;
38893
38894 ;
38895 return 0;
38896}
38897
38898_ACEOF
38899if ac_fn_c_try_compile "$LINENO"; then :
38900
38901 tst_posix_strerror_r_type_arg3="$arg3"
38902
38903fi
38904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38905 fi
38906 done
38907 case "$tst_posix_strerror_r_type_arg3" in
38908 unknown)
38909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38910$as_echo "no" >&6; }
38911 tst_posix_strerror_r="no"
38912 ;;
38913 *)
38914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38915$as_echo "yes" >&6; }
38916 tst_posix_strerror_r="yes"
38917 ;;
38918 esac
38919 fi
38920 #
38921 if test "x$cross_compiling" != "xyes" &&
38922 test "$tst_posix_strerror_r" = "yes"; then
38923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38924$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038925
38926
38927 old=$LD_LIBRARY_PATH
38928 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38929 export LD_LIBRARY_PATH
38930 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38933as_fn_error $? "cannot run test program while cross compiling
38934See \`config.log' for more details" "$LINENO" 5; }
38935else
38936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38937/* end confdefs.h. */
38938
38939
38940 $curl_includes_stdlib
38941 $curl_includes_string
38942# include <errno.h>
38943
38944int main (void)
38945{
38946
38947 char buffer[1024];
38948 int error = 1;
38949 buffer[0] = '\0';
38950 error = strerror_r(EACCES, buffer, sizeof(buffer));
38951 if(error)
38952 exit(1); /* fail */
38953 if(buffer[0] == '\0')
38954 exit(1); /* fail */
38955 else
38956 exit(0);
38957
38958 ;
38959 return 0;
38960}
38961
38962_ACEOF
38963if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038965$as_echo "yes" >&6; }
38966 tst_works_posix_strerror_r="yes"
38967
38968else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038970$as_echo "no" >&6; }
38971 tst_works_posix_strerror_r="no"
38972
38973fi
38974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38975 conftest.$ac_objext conftest.beam conftest.$ac_ext
38976fi
38977
Elliott Hughesa93fb052018-12-12 14:22:48 -080038978 LD_LIBRARY_PATH=$old # restore
38979
Elliott Hughes82be86d2017-09-20 17:00:17 -070038980 fi
38981 #
38982 if test "$tst_works_glibc_strerror_r" = "yes"; then
38983 tst_posix_strerror_r="no"
38984 fi
38985 if test "$tst_works_posix_strerror_r" = "yes"; then
38986 tst_glibc_strerror_r="no"
38987 fi
38988 if test "$tst_glibc_strerror_r" = "yes" &&
38989 test "$tst_works_glibc_strerror_r" != "no" &&
38990 test "$tst_posix_strerror_r" != "yes"; then
38991 tst_allow_strerror_r="check"
38992 fi
38993 if test "$tst_posix_strerror_r" = "yes" &&
38994 test "$tst_works_posix_strerror_r" != "no" &&
38995 test "$tst_glibc_strerror_r" != "yes"; then
38996 tst_allow_strerror_r="check"
38997 fi
38998 if test "$tst_allow_strerror_r" = "check"; then
38999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
39000$as_echo_n "checking if strerror_r usage allowed... " >&6; }
39001 if test "x$curl_disallow_strerror_r" != "xyes"; then
39002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39003$as_echo "yes" >&6; }
39004 tst_allow_strerror_r="yes"
39005 else
39006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39007$as_echo "no" >&6; }
39008 tst_allow_strerror_r="no"
39009 fi
39010 fi
39011 #
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
39013$as_echo_n "checking if strerror_r might be used... " >&6; }
39014 if test "$tst_links_strerror_r" = "yes" &&
39015 test "$tst_proto_strerror_r" = "yes" &&
39016 test "$tst_compi_strerror_r" = "yes" &&
39017 test "$tst_allow_strerror_r" = "yes"; then
39018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39019$as_echo "yes" >&6; }
39020 if test "$tst_glibc_strerror_r" = "yes"; then
39021
39022cat >>confdefs.h <<_ACEOF
39023#define HAVE_STRERROR_R 1
39024_ACEOF
39025
39026
39027cat >>confdefs.h <<_ACEOF
39028#define HAVE_GLIBC_STRERROR_R 1
39029_ACEOF
39030
39031
39032cat >>confdefs.h <<_ACEOF
39033#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
39034_ACEOF
39035
39036 fi
39037 if test "$tst_posix_strerror_r" = "yes"; then
39038
39039cat >>confdefs.h <<_ACEOF
39040#define HAVE_STRERROR_R 1
39041_ACEOF
39042
39043
39044cat >>confdefs.h <<_ACEOF
39045#define HAVE_POSIX_STRERROR_R 1
39046_ACEOF
39047
39048
39049cat >>confdefs.h <<_ACEOF
39050#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
39051_ACEOF
39052
39053 fi
39054 curl_cv_func_strerror_r="yes"
39055 else
39056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39057$as_echo "no" >&6; }
39058 curl_cv_func_strerror_r="no"
39059 fi
39060 #
39061 if test "$tst_compi_strerror_r" = "yes" &&
39062 test "$tst_allow_strerror_r" = "unknown"; then
39063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
39064$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
39065 fi
39066 #
39067
39068
39069 #
39070 tst_links_stricmp="unknown"
39071 tst_proto_stricmp="unknown"
39072 tst_compi_stricmp="unknown"
39073 tst_allow_stricmp="unknown"
39074 #
39075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
39076$as_echo_n "checking if stricmp can be linked... " >&6; }
39077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39078/* end confdefs.h. */
39079
39080
39081#define stricmp innocuous_stricmp
39082#ifdef __STDC__
39083# include <limits.h>
39084#else
39085# include <assert.h>
39086#endif
39087#undef stricmp
39088#ifdef __cplusplus
39089extern "C"
39090#endif
39091char stricmp ();
39092#if defined __stub_stricmp || defined __stub___stricmp
39093choke me
39094#endif
39095
39096int main (void)
39097{
39098return stricmp ();
39099 ;
39100 return 0;
39101}
39102
39103_ACEOF
39104if ac_fn_c_try_link "$LINENO"; then :
39105
39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39107$as_echo "yes" >&6; }
39108 tst_links_stricmp="yes"
39109
39110else
39111
39112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39113$as_echo "no" >&6; }
39114 tst_links_stricmp="no"
39115
39116fi
39117rm -f core conftest.err conftest.$ac_objext \
39118 conftest$ac_exeext conftest.$ac_ext
39119 #
39120 if test "$tst_links_stricmp" = "yes"; then
39121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
39122$as_echo_n "checking if stricmp is prototyped... " >&6; }
39123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39124/* end confdefs.h. */
39125
39126 $curl_includes_string
39127
39128_ACEOF
39129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39130 $EGREP "stricmp" >/dev/null 2>&1; then :
39131
39132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39133$as_echo "yes" >&6; }
39134 tst_proto_stricmp="yes"
39135
39136else
39137
39138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39139$as_echo "no" >&6; }
39140 tst_proto_stricmp="no"
39141
39142fi
39143rm -f conftest*
39144
39145 fi
39146 #
39147 if test "$tst_proto_stricmp" = "yes"; then
39148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
39149$as_echo_n "checking if stricmp is compilable... " >&6; }
39150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39151/* end confdefs.h. */
39152
39153
39154 $curl_includes_string
39155
39156int main (void)
39157{
39158
39159 if(0 != stricmp(0, 0))
39160 return 1;
39161
39162 ;
39163 return 0;
39164}
39165
39166_ACEOF
39167if ac_fn_c_try_compile "$LINENO"; then :
39168
39169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39170$as_echo "yes" >&6; }
39171 tst_compi_stricmp="yes"
39172
39173else
39174
39175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39176$as_echo "no" >&6; }
39177 tst_compi_stricmp="no"
39178
39179fi
39180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39181 fi
39182 #
39183 if test "$tst_compi_stricmp" = "yes"; then
39184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
39185$as_echo_n "checking if stricmp usage allowed... " >&6; }
39186 if test "x$curl_disallow_stricmp" != "xyes"; then
39187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39188$as_echo "yes" >&6; }
39189 tst_allow_stricmp="yes"
39190 else
39191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39192$as_echo "no" >&6; }
39193 tst_allow_stricmp="no"
39194 fi
39195 fi
39196 #
39197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
39198$as_echo_n "checking if stricmp might be used... " >&6; }
39199 if test "$tst_links_stricmp" = "yes" &&
39200 test "$tst_proto_stricmp" = "yes" &&
39201 test "$tst_compi_stricmp" = "yes" &&
39202 test "$tst_allow_stricmp" = "yes"; then
39203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39204$as_echo "yes" >&6; }
39205
39206cat >>confdefs.h <<_ACEOF
39207#define HAVE_STRICMP 1
39208_ACEOF
39209
39210 curl_cv_func_stricmp="yes"
39211 else
39212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39213$as_echo "no" >&6; }
39214 curl_cv_func_stricmp="no"
39215 fi
39216
39217
39218 #
39219 tst_links_strncasecmp="unknown"
39220 tst_proto_strncasecmp="unknown"
39221 tst_compi_strncasecmp="unknown"
39222 tst_allow_strncasecmp="unknown"
39223 #
39224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
39225$as_echo_n "checking if strncasecmp can be linked... " >&6; }
39226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39227/* end confdefs.h. */
39228
39229
39230#define strncasecmp innocuous_strncasecmp
39231#ifdef __STDC__
39232# include <limits.h>
39233#else
39234# include <assert.h>
39235#endif
39236#undef strncasecmp
39237#ifdef __cplusplus
39238extern "C"
39239#endif
39240char strncasecmp ();
39241#if defined __stub_strncasecmp || defined __stub___strncasecmp
39242choke me
39243#endif
39244
39245int main (void)
39246{
39247return strncasecmp ();
39248 ;
39249 return 0;
39250}
39251
39252_ACEOF
39253if ac_fn_c_try_link "$LINENO"; then :
39254
39255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39256$as_echo "yes" >&6; }
39257 tst_links_strncasecmp="yes"
39258
39259else
39260
39261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39262$as_echo "no" >&6; }
39263 tst_links_strncasecmp="no"
39264
39265fi
39266rm -f core conftest.err conftest.$ac_objext \
39267 conftest$ac_exeext conftest.$ac_ext
39268 #
39269 if test "$tst_links_strncasecmp" = "yes"; then
39270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39271$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39273/* end confdefs.h. */
39274
39275 $curl_includes_string
39276
39277_ACEOF
39278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39279 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39280
39281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39282$as_echo "yes" >&6; }
39283 tst_proto_strncasecmp="yes"
39284
39285else
39286
39287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39288$as_echo "no" >&6; }
39289 tst_proto_strncasecmp="no"
39290
39291fi
39292rm -f conftest*
39293
39294 fi
39295 #
39296 if test "$tst_proto_strncasecmp" = "yes"; then
39297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39298$as_echo_n "checking if strncasecmp is compilable... " >&6; }
39299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39300/* end confdefs.h. */
39301
39302
39303 $curl_includes_string
39304
39305int main (void)
39306{
39307
39308 if(0 != strncasecmp(0, 0, 0))
39309 return 1;
39310
39311 ;
39312 return 0;
39313}
39314
39315_ACEOF
39316if ac_fn_c_try_compile "$LINENO"; then :
39317
39318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39319$as_echo "yes" >&6; }
39320 tst_compi_strncasecmp="yes"
39321
39322else
39323
39324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39325$as_echo "no" >&6; }
39326 tst_compi_strncasecmp="no"
39327
39328fi
39329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39330 fi
39331 #
39332 if test "$tst_compi_strncasecmp" = "yes"; then
39333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39334$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39335 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39337$as_echo "yes" >&6; }
39338 tst_allow_strncasecmp="yes"
39339 else
39340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39341$as_echo "no" >&6; }
39342 tst_allow_strncasecmp="no"
39343 fi
39344 fi
39345 #
39346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39347$as_echo_n "checking if strncasecmp might be used... " >&6; }
39348 if test "$tst_links_strncasecmp" = "yes" &&
39349 test "$tst_proto_strncasecmp" = "yes" &&
39350 test "$tst_compi_strncasecmp" = "yes" &&
39351 test "$tst_allow_strncasecmp" = "yes"; then
39352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39353$as_echo "yes" >&6; }
39354
39355cat >>confdefs.h <<_ACEOF
39356#define HAVE_STRNCASECMP 1
39357_ACEOF
39358
39359 curl_cv_func_strncasecmp="yes"
39360 else
39361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39362$as_echo "no" >&6; }
39363 curl_cv_func_strncasecmp="no"
39364 fi
39365
39366
39367 #
39368 tst_links_strncmpi="unknown"
39369 tst_proto_strncmpi="unknown"
39370 tst_compi_strncmpi="unknown"
39371 tst_allow_strncmpi="unknown"
39372 #
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39374$as_echo_n "checking if strncmpi can be linked... " >&6; }
39375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39376/* end confdefs.h. */
39377
39378
39379#define strncmpi innocuous_strncmpi
39380#ifdef __STDC__
39381# include <limits.h>
39382#else
39383# include <assert.h>
39384#endif
39385#undef strncmpi
39386#ifdef __cplusplus
39387extern "C"
39388#endif
39389char strncmpi ();
39390#if defined __stub_strncmpi || defined __stub___strncmpi
39391choke me
39392#endif
39393
39394int main (void)
39395{
39396return strncmpi ();
39397 ;
39398 return 0;
39399}
39400
39401_ACEOF
39402if ac_fn_c_try_link "$LINENO"; then :
39403
39404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39405$as_echo "yes" >&6; }
39406 tst_links_strncmpi="yes"
39407
39408else
39409
39410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39411$as_echo "no" >&6; }
39412 tst_links_strncmpi="no"
39413
39414fi
39415rm -f core conftest.err conftest.$ac_objext \
39416 conftest$ac_exeext conftest.$ac_ext
39417 #
39418 if test "$tst_links_strncmpi" = "yes"; then
39419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39420$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39422/* end confdefs.h. */
39423
39424 $curl_includes_string
39425
39426_ACEOF
39427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39428 $EGREP "strncmpi" >/dev/null 2>&1; then :
39429
39430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39431$as_echo "yes" >&6; }
39432 tst_proto_strncmpi="yes"
39433
39434else
39435
39436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39437$as_echo "no" >&6; }
39438 tst_proto_strncmpi="no"
39439
39440fi
39441rm -f conftest*
39442
39443 fi
39444 #
39445 if test "$tst_proto_strncmpi" = "yes"; then
39446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39447$as_echo_n "checking if strncmpi is compilable... " >&6; }
39448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39449/* end confdefs.h. */
39450
39451
39452 $curl_includes_string
39453
39454int main (void)
39455{
39456
39457 if(0 != strncmpi(0, 0))
39458 return 1;
39459
39460 ;
39461 return 0;
39462}
39463
39464_ACEOF
39465if ac_fn_c_try_compile "$LINENO"; then :
39466
39467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39468$as_echo "yes" >&6; }
39469 tst_compi_strncmpi="yes"
39470
39471else
39472
39473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39474$as_echo "no" >&6; }
39475 tst_compi_strncmpi="no"
39476
39477fi
39478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39479 fi
39480 #
39481 if test "$tst_compi_strncmpi" = "yes"; then
39482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39483$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39484 if test "x$curl_disallow_strncmpi" != "xyes"; then
39485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39486$as_echo "yes" >&6; }
39487 tst_allow_strncmpi="yes"
39488 else
39489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39490$as_echo "no" >&6; }
39491 tst_allow_strncmpi="no"
39492 fi
39493 fi
39494 #
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39496$as_echo_n "checking if strncmpi might be used... " >&6; }
39497 if test "$tst_links_strncmpi" = "yes" &&
39498 test "$tst_proto_strncmpi" = "yes" &&
39499 test "$tst_compi_strncmpi" = "yes" &&
39500 test "$tst_allow_strncmpi" = "yes"; then
39501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39502$as_echo "yes" >&6; }
39503
39504cat >>confdefs.h <<_ACEOF
39505#define HAVE_STRNCMPI 1
39506_ACEOF
39507
39508 curl_cv_func_strncmpi="yes"
39509 else
39510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39511$as_echo "no" >&6; }
39512 curl_cv_func_strncmpi="no"
39513 fi
39514
39515
39516 #
39517 tst_links_strnicmp="unknown"
39518 tst_proto_strnicmp="unknown"
39519 tst_compi_strnicmp="unknown"
39520 tst_allow_strnicmp="unknown"
39521 #
39522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39523$as_echo_n "checking if strnicmp can be linked... " >&6; }
39524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39525/* end confdefs.h. */
39526
39527
39528#define strnicmp innocuous_strnicmp
39529#ifdef __STDC__
39530# include <limits.h>
39531#else
39532# include <assert.h>
39533#endif
39534#undef strnicmp
39535#ifdef __cplusplus
39536extern "C"
39537#endif
39538char strnicmp ();
39539#if defined __stub_strnicmp || defined __stub___strnicmp
39540choke me
39541#endif
39542
39543int main (void)
39544{
39545return strnicmp ();
39546 ;
39547 return 0;
39548}
39549
39550_ACEOF
39551if ac_fn_c_try_link "$LINENO"; then :
39552
39553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39554$as_echo "yes" >&6; }
39555 tst_links_strnicmp="yes"
39556
39557else
39558
39559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39560$as_echo "no" >&6; }
39561 tst_links_strnicmp="no"
39562
39563fi
39564rm -f core conftest.err conftest.$ac_objext \
39565 conftest$ac_exeext conftest.$ac_ext
39566 #
39567 if test "$tst_links_strnicmp" = "yes"; then
39568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39569$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39571/* end confdefs.h. */
39572
39573 $curl_includes_string
39574
39575_ACEOF
39576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39577 $EGREP "strnicmp" >/dev/null 2>&1; then :
39578
39579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39580$as_echo "yes" >&6; }
39581 tst_proto_strnicmp="yes"
39582
39583else
39584
39585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39586$as_echo "no" >&6; }
39587 tst_proto_strnicmp="no"
39588
39589fi
39590rm -f conftest*
39591
39592 fi
39593 #
39594 if test "$tst_proto_strnicmp" = "yes"; then
39595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39596$as_echo_n "checking if strnicmp is compilable... " >&6; }
39597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39598/* end confdefs.h. */
39599
39600
39601 $curl_includes_string
39602
39603int main (void)
39604{
39605
39606 if(0 != strnicmp(0, 0))
39607 return 1;
39608
39609 ;
39610 return 0;
39611}
39612
39613_ACEOF
39614if ac_fn_c_try_compile "$LINENO"; then :
39615
39616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39617$as_echo "yes" >&6; }
39618 tst_compi_strnicmp="yes"
39619
39620else
39621
39622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39623$as_echo "no" >&6; }
39624 tst_compi_strnicmp="no"
39625
39626fi
39627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39628 fi
39629 #
39630 if test "$tst_compi_strnicmp" = "yes"; then
39631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39632$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39633 if test "x$curl_disallow_strnicmp" != "xyes"; then
39634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39635$as_echo "yes" >&6; }
39636 tst_allow_strnicmp="yes"
39637 else
39638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39639$as_echo "no" >&6; }
39640 tst_allow_strnicmp="no"
39641 fi
39642 fi
39643 #
39644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39645$as_echo_n "checking if strnicmp might be used... " >&6; }
39646 if test "$tst_links_strnicmp" = "yes" &&
39647 test "$tst_proto_strnicmp" = "yes" &&
39648 test "$tst_compi_strnicmp" = "yes" &&
39649 test "$tst_allow_strnicmp" = "yes"; then
39650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39651$as_echo "yes" >&6; }
39652
39653cat >>confdefs.h <<_ACEOF
39654#define HAVE_STRNICMP 1
39655_ACEOF
39656
39657 curl_cv_func_strnicmp="yes"
39658 else
39659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39660$as_echo "no" >&6; }
39661 curl_cv_func_strnicmp="no"
39662 fi
39663
39664
39665 #
39666 tst_links_strstr="unknown"
39667 tst_proto_strstr="unknown"
39668 tst_compi_strstr="unknown"
39669 tst_allow_strstr="unknown"
39670 #
39671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39672$as_echo_n "checking if strstr can be linked... " >&6; }
39673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39674/* end confdefs.h. */
39675
39676
39677#define strstr innocuous_strstr
39678#ifdef __STDC__
39679# include <limits.h>
39680#else
39681# include <assert.h>
39682#endif
39683#undef strstr
39684#ifdef __cplusplus
39685extern "C"
39686#endif
39687char strstr ();
39688#if defined __stub_strstr || defined __stub___strstr
39689choke me
39690#endif
39691
39692int main (void)
39693{
39694return strstr ();
39695 ;
39696 return 0;
39697}
39698
39699_ACEOF
39700if ac_fn_c_try_link "$LINENO"; then :
39701
39702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39703$as_echo "yes" >&6; }
39704 tst_links_strstr="yes"
39705
39706else
39707
39708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39709$as_echo "no" >&6; }
39710 tst_links_strstr="no"
39711
39712fi
39713rm -f core conftest.err conftest.$ac_objext \
39714 conftest$ac_exeext conftest.$ac_ext
39715 #
39716 if test "$tst_links_strstr" = "yes"; then
39717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39718$as_echo_n "checking if strstr is prototyped... " >&6; }
39719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39720/* end confdefs.h. */
39721
39722 $curl_includes_string
39723
39724_ACEOF
39725if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39726 $EGREP "strstr" >/dev/null 2>&1; then :
39727
39728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39729$as_echo "yes" >&6; }
39730 tst_proto_strstr="yes"
39731
39732else
39733
39734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39735$as_echo "no" >&6; }
39736 tst_proto_strstr="no"
39737
39738fi
39739rm -f conftest*
39740
39741 fi
39742 #
39743 if test "$tst_proto_strstr" = "yes"; then
39744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39745$as_echo_n "checking if strstr is compilable... " >&6; }
39746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39747/* end confdefs.h. */
39748
39749
39750 $curl_includes_string
39751
39752int main (void)
39753{
39754
39755 if(0 != strstr(0, 0))
39756 return 1;
39757
39758 ;
39759 return 0;
39760}
39761
39762_ACEOF
39763if ac_fn_c_try_compile "$LINENO"; then :
39764
39765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39766$as_echo "yes" >&6; }
39767 tst_compi_strstr="yes"
39768
39769else
39770
39771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39772$as_echo "no" >&6; }
39773 tst_compi_strstr="no"
39774
39775fi
39776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39777 fi
39778 #
39779 if test "$tst_compi_strstr" = "yes"; then
39780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39781$as_echo_n "checking if strstr usage allowed... " >&6; }
39782 if test "x$curl_disallow_strstr" != "xyes"; then
39783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39784$as_echo "yes" >&6; }
39785 tst_allow_strstr="yes"
39786 else
39787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39788$as_echo "no" >&6; }
39789 tst_allow_strstr="no"
39790 fi
39791 fi
39792 #
39793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39794$as_echo_n "checking if strstr might be used... " >&6; }
39795 if test "$tst_links_strstr" = "yes" &&
39796 test "$tst_proto_strstr" = "yes" &&
39797 test "$tst_compi_strstr" = "yes" &&
39798 test "$tst_allow_strstr" = "yes"; then
39799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39800$as_echo "yes" >&6; }
39801
39802cat >>confdefs.h <<_ACEOF
39803#define HAVE_STRSTR 1
39804_ACEOF
39805
39806 curl_cv_func_strstr="yes"
39807 else
39808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39809$as_echo "no" >&6; }
39810 curl_cv_func_strstr="no"
39811 fi
39812
39813
39814 #
39815 tst_links_strtok_r="unknown"
39816 tst_proto_strtok_r="unknown"
39817 tst_compi_strtok_r="unknown"
39818 tst_allow_strtok_r="unknown"
39819 #
39820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39821$as_echo_n "checking if strtok_r can be linked... " >&6; }
39822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39823/* end confdefs.h. */
39824
39825
39826#define strtok_r innocuous_strtok_r
39827#ifdef __STDC__
39828# include <limits.h>
39829#else
39830# include <assert.h>
39831#endif
39832#undef strtok_r
39833#ifdef __cplusplus
39834extern "C"
39835#endif
39836char strtok_r ();
39837#if defined __stub_strtok_r || defined __stub___strtok_r
39838choke me
39839#endif
39840
39841int main (void)
39842{
39843return strtok_r ();
39844 ;
39845 return 0;
39846}
39847
39848_ACEOF
39849if ac_fn_c_try_link "$LINENO"; then :
39850
39851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39852$as_echo "yes" >&6; }
39853 tst_links_strtok_r="yes"
39854
39855else
39856
39857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39858$as_echo "no" >&6; }
39859 tst_links_strtok_r="no"
39860
39861fi
39862rm -f core conftest.err conftest.$ac_objext \
39863 conftest$ac_exeext conftest.$ac_ext
39864 #
39865 if test "$tst_links_strtok_r" = "yes"; then
39866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39867$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39869/* end confdefs.h. */
39870
39871 $curl_includes_string
39872
39873_ACEOF
39874if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39875 $EGREP "strtok_r" >/dev/null 2>&1; then :
39876
39877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39878$as_echo "yes" >&6; }
39879 tst_proto_strtok_r="yes"
39880
39881else
39882
39883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39884$as_echo "no" >&6; }
39885 tst_proto_strtok_r="no"
39886
39887fi
39888rm -f conftest*
39889
39890 fi
39891 #
39892 if test "$tst_proto_strtok_r" = "yes"; then
39893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39894$as_echo_n "checking if strtok_r is compilable... " >&6; }
39895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39896/* end confdefs.h. */
39897
39898
39899 $curl_includes_string
39900
39901int main (void)
39902{
39903
39904 if(0 != strtok_r(0, 0, 0))
39905 return 1;
39906
39907 ;
39908 return 0;
39909}
39910
39911_ACEOF
39912if ac_fn_c_try_compile "$LINENO"; then :
39913
39914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39915$as_echo "yes" >&6; }
39916 tst_compi_strtok_r="yes"
39917
39918else
39919
39920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39921$as_echo "no" >&6; }
39922 tst_compi_strtok_r="no"
39923
39924fi
39925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39926 fi
39927 #
39928 if test "$tst_compi_strtok_r" = "yes"; then
39929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39930$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39931 if test "x$curl_disallow_strtok_r" != "xyes"; then
39932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39933$as_echo "yes" >&6; }
39934 tst_allow_strtok_r="yes"
39935 else
39936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39937$as_echo "no" >&6; }
39938 tst_allow_strtok_r="no"
39939 fi
39940 fi
39941 #
39942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39943$as_echo_n "checking if strtok_r might be used... " >&6; }
39944 if test "$tst_links_strtok_r" = "yes" &&
39945 test "$tst_proto_strtok_r" = "yes" &&
39946 test "$tst_compi_strtok_r" = "yes" &&
39947 test "$tst_allow_strtok_r" = "yes"; then
39948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39949$as_echo "yes" >&6; }
39950
39951cat >>confdefs.h <<_ACEOF
39952#define HAVE_STRTOK_R 1
39953_ACEOF
39954
39955 curl_cv_func_strtok_r="yes"
39956 else
39957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39958$as_echo "no" >&6; }
39959 curl_cv_func_strtok_r="no"
39960 fi
39961
39962
39963 #
39964 tst_links_strtoll="unknown"
39965 tst_proto_strtoll="unknown"
39966 tst_compi_strtoll="unknown"
39967 tst_allow_strtoll="unknown"
39968 #
39969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39970$as_echo_n "checking if strtoll can be linked... " >&6; }
39971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39972/* end confdefs.h. */
39973
39974
39975#define strtoll innocuous_strtoll
39976#ifdef __STDC__
39977# include <limits.h>
39978#else
39979# include <assert.h>
39980#endif
39981#undef strtoll
39982#ifdef __cplusplus
39983extern "C"
39984#endif
39985char strtoll ();
39986#if defined __stub_strtoll || defined __stub___strtoll
39987choke me
39988#endif
39989
39990int main (void)
39991{
39992return strtoll ();
39993 ;
39994 return 0;
39995}
39996
39997_ACEOF
39998if ac_fn_c_try_link "$LINENO"; then :
39999
40000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40001$as_echo "yes" >&6; }
40002 tst_links_strtoll="yes"
40003
40004else
40005
40006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40007$as_echo "no" >&6; }
40008 tst_links_strtoll="no"
40009
40010fi
40011rm -f core conftest.err conftest.$ac_objext \
40012 conftest$ac_exeext conftest.$ac_ext
40013 #
40014 if test "$tst_links_strtoll" = "yes"; then
40015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
40016$as_echo_n "checking if strtoll is prototyped... " >&6; }
40017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40018/* end confdefs.h. */
40019
40020 $curl_includes_stdlib
40021
40022_ACEOF
40023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40024 $EGREP "strtoll" >/dev/null 2>&1; then :
40025
40026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40027$as_echo "yes" >&6; }
40028 tst_proto_strtoll="yes"
40029
40030else
40031
40032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40033$as_echo "no" >&6; }
40034 tst_proto_strtoll="no"
40035
40036fi
40037rm -f conftest*
40038
40039 fi
40040 #
40041 if test "$tst_proto_strtoll" = "yes"; then
40042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
40043$as_echo_n "checking if strtoll is compilable... " >&6; }
40044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40045/* end confdefs.h. */
40046
40047
40048 $curl_includes_stdlib
40049
40050int main (void)
40051{
40052
40053 if(0 != strtoll(0, 0, 0))
40054 return 1;
40055
40056 ;
40057 return 0;
40058}
40059
40060_ACEOF
40061if ac_fn_c_try_compile "$LINENO"; then :
40062
40063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40064$as_echo "yes" >&6; }
40065 tst_compi_strtoll="yes"
40066
40067else
40068
40069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40070$as_echo "no" >&6; }
40071 tst_compi_strtoll="no"
40072
40073fi
40074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40075 fi
40076 #
40077 if test "$tst_compi_strtoll" = "yes"; then
40078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
40079$as_echo_n "checking if strtoll usage allowed... " >&6; }
40080 if test "x$curl_disallow_strtoll" != "xyes"; then
40081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40082$as_echo "yes" >&6; }
40083 tst_allow_strtoll="yes"
40084 else
40085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40086$as_echo "no" >&6; }
40087 tst_allow_strtoll="no"
40088 fi
40089 fi
40090 #
40091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
40092$as_echo_n "checking if strtoll might be used... " >&6; }
40093 if test "$tst_links_strtoll" = "yes" &&
40094 test "$tst_proto_strtoll" = "yes" &&
40095 test "$tst_compi_strtoll" = "yes" &&
40096 test "$tst_allow_strtoll" = "yes"; then
40097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40098$as_echo "yes" >&6; }
40099
40100cat >>confdefs.h <<_ACEOF
40101#define HAVE_STRTOLL 1
40102_ACEOF
40103
40104 curl_cv_func_strtoll="yes"
40105 else
40106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40107$as_echo "no" >&6; }
40108 curl_cv_func_strtoll="no"
40109 fi
40110
40111
40112curl_includes_sys_uio="\
40113/* includes start */
40114#ifdef HAVE_SYS_TYPES_H
40115# include <sys/types.h>
40116#endif
40117#ifdef HAVE_SYS_UIO_H
40118# include <sys/uio.h>
40119#endif
40120/* includes end */"
40121 for ac_header in sys/types.h sys/uio.h
40122do :
40123 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40124ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
40125"
40126if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40127 cat >>confdefs.h <<_ACEOF
40128#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40129_ACEOF
40130
40131fi
40132
40133done
40134
40135
40136
40137 #
40138 tst_links_writev="unknown"
40139 tst_proto_writev="unknown"
40140 tst_compi_writev="unknown"
40141 tst_allow_writev="unknown"
40142 #
40143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
40144$as_echo_n "checking if writev can be linked... " >&6; }
40145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40146/* end confdefs.h. */
40147
40148
40149#define writev innocuous_writev
40150#ifdef __STDC__
40151# include <limits.h>
40152#else
40153# include <assert.h>
40154#endif
40155#undef writev
40156#ifdef __cplusplus
40157extern "C"
40158#endif
40159char writev ();
40160#if defined __stub_writev || defined __stub___writev
40161choke me
40162#endif
40163
40164int main (void)
40165{
40166return writev ();
40167 ;
40168 return 0;
40169}
40170
40171_ACEOF
40172if ac_fn_c_try_link "$LINENO"; then :
40173
40174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40175$as_echo "yes" >&6; }
40176 tst_links_writev="yes"
40177
40178else
40179
40180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40181$as_echo "no" >&6; }
40182 tst_links_writev="no"
40183
40184fi
40185rm -f core conftest.err conftest.$ac_objext \
40186 conftest$ac_exeext conftest.$ac_ext
40187 #
40188 if test "$tst_links_writev" = "yes"; then
40189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
40190$as_echo_n "checking if writev is prototyped... " >&6; }
40191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40192/* end confdefs.h. */
40193
40194 $curl_includes_sys_uio
40195
40196_ACEOF
40197if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40198 $EGREP "writev" >/dev/null 2>&1; then :
40199
40200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40201$as_echo "yes" >&6; }
40202 tst_proto_writev="yes"
40203
40204else
40205
40206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40207$as_echo "no" >&6; }
40208 tst_proto_writev="no"
40209
40210fi
40211rm -f conftest*
40212
40213 fi
40214 #
40215 if test "$tst_proto_writev" = "yes"; then
40216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
40217$as_echo_n "checking if writev is compilable... " >&6; }
40218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40219/* end confdefs.h. */
40220
40221
40222 $curl_includes_sys_uio
40223
40224int main (void)
40225{
40226
40227 if(0 != writev(0, 0, 0))
40228 return 1;
40229
40230 ;
40231 return 0;
40232}
40233
40234_ACEOF
40235if ac_fn_c_try_compile "$LINENO"; then :
40236
40237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40238$as_echo "yes" >&6; }
40239 tst_compi_writev="yes"
40240
40241else
40242
40243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40244$as_echo "no" >&6; }
40245 tst_compi_writev="no"
40246
40247fi
40248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40249 fi
40250 #
40251 if test "$tst_compi_writev" = "yes"; then
40252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
40253$as_echo_n "checking if writev usage allowed... " >&6; }
40254 if test "x$curl_disallow_writev" != "xyes"; then
40255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40256$as_echo "yes" >&6; }
40257 tst_allow_writev="yes"
40258 else
40259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40260$as_echo "no" >&6; }
40261 tst_allow_writev="no"
40262 fi
40263 fi
40264 #
40265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40266$as_echo_n "checking if writev might be used... " >&6; }
40267 if test "$tst_links_writev" = "yes" &&
40268 test "$tst_proto_writev" = "yes" &&
40269 test "$tst_compi_writev" = "yes" &&
40270 test "$tst_allow_writev" = "yes"; then
40271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40272$as_echo "yes" >&6; }
40273
40274cat >>confdefs.h <<_ACEOF
40275#define HAVE_WRITEV 1
40276_ACEOF
40277
40278 curl_cv_func_writev="yes"
40279 else
40280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40281$as_echo "no" >&6; }
40282 curl_cv_func_writev="no"
40283 fi
40284
40285
40286case $host in
40287 *msdosdjgpp)
40288 ac_cv_func_pipe=no
40289 skipcheck_pipe=yes
40290 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40291$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40292 ;;
40293esac
40294
Elliott Hughes72d948d2018-08-03 14:37:21 -070040295ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
40296 #include <sys/types.h>
40297"
40298if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
40299 ac_have_decl=1
40300else
40301 ac_have_decl=0
40302fi
40303
40304cat >>confdefs.h <<_ACEOF
40305#define HAVE_DECL_GETPWUID_R $ac_have_decl
40306_ACEOF
40307if test $ac_have_decl = 1; then :
40308
40309else
40310
40311$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40312
40313fi
40314
40315
40316
40317for ac_func in fnmatch \
40318 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040319 getpass_r \
40320 getppid \
40321 getpwuid \
40322 getpwuid_r \
40323 getrlimit \
40324 gettimeofday \
40325 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040326 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040327 pipe \
40328 setlocale \
40329 setmode \
40330 setrlimit \
40331 utime \
40332 utimes
40333
40334do :
40335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40336ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40337if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40338 cat >>confdefs.h <<_ACEOF
40339#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40340_ACEOF
40341
40342
40343else
40344
40345 func="$ac_func"
40346 eval skipcheck=\$skipcheck_$func
40347 if test "x$skipcheck" != "xyes"; then
40348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40349$as_echo_n "checking deeper for $func... " >&6; }
40350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40351/* end confdefs.h. */
40352
40353
40354
40355int main (void)
40356{
40357
40358 $func ();
40359
40360 ;
40361 return 0;
40362}
40363
40364_ACEOF
40365if ac_fn_c_try_link "$LINENO"; then :
40366
40367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40368$as_echo "yes" >&6; }
40369 eval "ac_cv_func_$func=yes"
40370
40371cat >>confdefs.h <<_ACEOF
40372#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40373_ACEOF
40374
40375
40376else
40377
40378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40379$as_echo "but still no" >&6; }
40380
40381fi
40382rm -f core conftest.err conftest.$ac_objext \
40383 conftest$ac_exeext conftest.$ac_ext
40384 fi
40385
40386fi
40387done
40388
40389
Elliott Hughes82be86d2017-09-20 17:00:17 -070040390if test "$ipv6" = "yes"; then
40391 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40392
40393$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40394
40395 IPV6_ENABLED=1
40396
40397 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040398fi
40399
40400
40401 #
40402 tst_method="unknown"
40403
40404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40405$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40406 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40407 tst_method="fcntl O_NONBLOCK"
40408 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40409 tst_method="ioctl FIONBIO"
40410 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40411 tst_method="ioctlsocket FIONBIO"
40412 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40413 tst_method="IoctlSocket FIONBIO"
40414 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40415 tst_method="setsockopt SO_NONBLOCK"
40416 fi
40417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40418$as_echo "$tst_method" >&6; }
40419 if test "$tst_method" = "unknown"; then
40420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40421$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40422 fi
40423
40424
40425
40426# Extract the first word of "perl", so it can be a program name with args.
40427set dummy perl; ac_word=$2
40428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40429$as_echo_n "checking for $ac_word... " >&6; }
40430if ${ac_cv_path_PERL+:} false; then :
40431 $as_echo_n "(cached) " >&6
40432else
40433 case $PERL in
40434 [\\/]* | ?:[\\/]*)
40435 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40436 ;;
40437 *)
40438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40439as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40440for as_dir in $as_dummy
40441do
40442 IFS=$as_save_IFS
40443 test -z "$as_dir" && as_dir=.
40444 for ac_exec_ext in '' $ac_executable_extensions; do
40445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40446 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40448 break 2
40449 fi
40450done
40451 done
40452IFS=$as_save_IFS
40453
40454 ;;
40455esac
40456fi
40457PERL=$ac_cv_path_PERL
40458if test -n "$PERL"; then
40459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40460$as_echo "$PERL" >&6; }
40461else
40462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40463$as_echo "no" >&6; }
40464fi
40465
40466
40467
40468
40469for ac_prog in gnroff nroff
40470do
40471 # Extract the first word of "$ac_prog", so it can be a program name with args.
40472set dummy $ac_prog; ac_word=$2
40473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40474$as_echo_n "checking for $ac_word... " >&6; }
40475if ${ac_cv_path_NROFF+:} false; then :
40476 $as_echo_n "(cached) " >&6
40477else
40478 case $NROFF in
40479 [\\/]* | ?:[\\/]*)
40480 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40481 ;;
40482 *)
40483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40484as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40485for as_dir in $as_dummy
40486do
40487 IFS=$as_save_IFS
40488 test -z "$as_dir" && as_dir=.
40489 for ac_exec_ext in '' $ac_executable_extensions; do
40490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40491 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40493 break 2
40494 fi
40495done
40496 done
40497IFS=$as_save_IFS
40498
40499 ;;
40500esac
40501fi
40502NROFF=$ac_cv_path_NROFF
40503if test -n "$NROFF"; then
40504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40505$as_echo "$NROFF" >&6; }
40506else
40507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40508$as_echo "no" >&6; }
40509fi
40510
40511
40512 test -n "$NROFF" && break
40513done
40514
40515
40516
40517if test -n "$NROFF"; then
40518
40519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40520$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40521 MANOPT="-man"
40522 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40523 if test -z "$mancheck"; then
40524 MANOPT="-mandoc"
40525 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40526 if test -z "$mancheck"; then
40527 MANOPT=""
40528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40529$as_echo "failed" >&6; }
40530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40531$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40532 else
40533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40534$as_echo "$MANOPT" >&6; }
40535 fi
40536 else
40537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40538$as_echo "$MANOPT" >&6; }
40539 fi
40540
40541fi
40542
40543if test -z "$MANOPT"
40544then
40545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40546$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40547 USE_MANUAL="no";
40548fi
40549
40550
40551if test "$USE_MANUAL" = "1"; then
40552
40553$as_echo "#define USE_MANUAL 1" >>confdefs.h
40554
40555 curl_manual_msg="enabled"
40556fi
40557
40558 if test x"$USE_MANUAL" = x1; then
40559 USE_MANUAL_TRUE=
40560 USE_MANUAL_FALSE='#'
40561else
40562 USE_MANUAL_TRUE='#'
40563 USE_MANUAL_FALSE=
40564fi
40565
40566
40567
40568
40569
40570 #
40571 if test "$want_ares" = "yes"; then
40572 clean_CPPFLAGS="$CPPFLAGS"
40573 clean_LDFLAGS="$LDFLAGS"
40574 clean_LIBS="$LIBS"
40575 embedded_ares="unknown"
40576 configure_runpath=`pwd`
40577 embedded_ares_builddir="$configure_runpath/ares"
40578 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040579 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40580
40581 if test -n "$PKG_CONFIG"; then
40582 PKGCONFIG="$PKG_CONFIG"
40583 else
40584 if test -n "$ac_tool_prefix"; then
40585 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40586set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40588$as_echo_n "checking for $ac_word... " >&6; }
40589if ${ac_cv_path_PKGCONFIG+:} false; then :
40590 $as_echo_n "(cached) " >&6
40591else
40592 case $PKGCONFIG in
40593 [\\/]* | ?:[\\/]*)
40594 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40595 ;;
40596 *)
40597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40598as_dummy="$PATH:/usr/bin:/usr/local/bin"
40599for as_dir in $as_dummy
40600do
40601 IFS=$as_save_IFS
40602 test -z "$as_dir" && as_dir=.
40603 for ac_exec_ext in '' $ac_executable_extensions; do
40604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40605 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40607 break 2
40608 fi
40609done
40610 done
40611IFS=$as_save_IFS
40612
40613 ;;
40614esac
40615fi
40616PKGCONFIG=$ac_cv_path_PKGCONFIG
40617if test -n "$PKGCONFIG"; then
40618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40619$as_echo "$PKGCONFIG" >&6; }
40620else
40621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40622$as_echo "no" >&6; }
40623fi
40624
40625
40626fi
40627if test -z "$ac_cv_path_PKGCONFIG"; then
40628 ac_pt_PKGCONFIG=$PKGCONFIG
40629 # Extract the first word of "pkg-config", so it can be a program name with args.
40630set dummy pkg-config; ac_word=$2
40631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40632$as_echo_n "checking for $ac_word... " >&6; }
40633if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40634 $as_echo_n "(cached) " >&6
40635else
40636 case $ac_pt_PKGCONFIG in
40637 [\\/]* | ?:[\\/]*)
40638 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40639 ;;
40640 *)
40641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40642as_dummy="$PATH:/usr/bin:/usr/local/bin"
40643for as_dir in $as_dummy
40644do
40645 IFS=$as_save_IFS
40646 test -z "$as_dir" && as_dir=.
40647 for ac_exec_ext in '' $ac_executable_extensions; do
40648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40649 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40651 break 2
40652 fi
40653done
40654 done
40655IFS=$as_save_IFS
40656
40657 ;;
40658esac
40659fi
40660ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40661if test -n "$ac_pt_PKGCONFIG"; then
40662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40663$as_echo "$ac_pt_PKGCONFIG" >&6; }
40664else
40665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40666$as_echo "no" >&6; }
40667fi
40668
40669 if test "x$ac_pt_PKGCONFIG" = x; then
40670 PKGCONFIG="no"
40671 else
40672 case $cross_compiling:$ac_tool_warned in
40673yes:)
40674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40676ac_tool_warned=yes ;;
40677esac
40678 PKGCONFIG=$ac_pt_PKGCONFIG
40679 fi
40680else
40681 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40682fi
40683
40684 fi
40685
40686 if test "x$PKGCONFIG" != "xno"; then
40687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40688$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40689 itexists=`
40690 if test -n "$ARES_PCDIR"; then
40691 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40692 export PKG_CONFIG_LIBDIR
40693 fi
40694 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40695
40696 if test -z "$itexists"; then
40697 PKGCONFIG="no"
40698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40699$as_echo "no" >&6; }
40700 else
40701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40702$as_echo "found" >&6; }
40703 fi
40704 fi
40705
40706 if test "$PKGCONFIG" != "no" ; then
40707 ares_LIBS=`
40708 if test -n "$ARES_PCDIR"; then
40709 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40710 export PKG_CONFIG_LIBDIR
40711 fi
40712
40713 $PKGCONFIG --libs-only-l libcares`
40714 ares_LDFLAGS=`
40715 if test -n "$ARES_PCDIR"; then
40716 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40717 export PKG_CONFIG_LIBDIR
40718 fi
40719
40720 $PKGCONFIG --libs-only-L libcares`
40721 ares_CPPFLAGS=`
40722 if test -n "$ARES_PCDIR"; then
40723 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40724 export PKG_CONFIG_LIBDIR
40725 fi
40726
40727 $PKGCONFIG --cflags-only-I libcares`
40728 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40729$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40730 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40731$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40732 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40733$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40734 else
40735 ares_CPPFLAGS="-I$want_ares_path/include"
40736 ares_LDFLAGS="-L$want_ares_path/lib"
40737 ares_LIBS="-lcares"
40738 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040739 else
40740 if test -d "$srcdir/ares"; then
40741 embedded_ares="yes"
40742 subdirs="$subdirs ares"
40743
40744 ares_CPPFLAGS=""
40745 ares_LDFLAGS="-L$embedded_ares_builddir"
40746 ares_LIBS="-lcares"
40747 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040748
40749 if test -n "$PKG_CONFIG"; then
40750 PKGCONFIG="$PKG_CONFIG"
40751 else
40752 if test -n "$ac_tool_prefix"; then
40753 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40754set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40756$as_echo_n "checking for $ac_word... " >&6; }
40757if ${ac_cv_path_PKGCONFIG+:} false; then :
40758 $as_echo_n "(cached) " >&6
40759else
40760 case $PKGCONFIG in
40761 [\\/]* | ?:[\\/]*)
40762 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40763 ;;
40764 *)
40765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40766as_dummy="$PATH:/usr/bin:/usr/local/bin"
40767for as_dir in $as_dummy
40768do
40769 IFS=$as_save_IFS
40770 test -z "$as_dir" && as_dir=.
40771 for ac_exec_ext in '' $ac_executable_extensions; do
40772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40773 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40775 break 2
40776 fi
40777done
40778 done
40779IFS=$as_save_IFS
40780
40781 ;;
40782esac
40783fi
40784PKGCONFIG=$ac_cv_path_PKGCONFIG
40785if test -n "$PKGCONFIG"; then
40786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40787$as_echo "$PKGCONFIG" >&6; }
40788else
40789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40790$as_echo "no" >&6; }
40791fi
40792
40793
40794fi
40795if test -z "$ac_cv_path_PKGCONFIG"; then
40796 ac_pt_PKGCONFIG=$PKGCONFIG
40797 # Extract the first word of "pkg-config", so it can be a program name with args.
40798set dummy pkg-config; ac_word=$2
40799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40800$as_echo_n "checking for $ac_word... " >&6; }
40801if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40802 $as_echo_n "(cached) " >&6
40803else
40804 case $ac_pt_PKGCONFIG in
40805 [\\/]* | ?:[\\/]*)
40806 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40807 ;;
40808 *)
40809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40810as_dummy="$PATH:/usr/bin:/usr/local/bin"
40811for as_dir in $as_dummy
40812do
40813 IFS=$as_save_IFS
40814 test -z "$as_dir" && as_dir=.
40815 for ac_exec_ext in '' $ac_executable_extensions; do
40816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40817 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40819 break 2
40820 fi
40821done
40822 done
40823IFS=$as_save_IFS
40824
40825 ;;
40826esac
40827fi
40828ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40829if test -n "$ac_pt_PKGCONFIG"; then
40830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40831$as_echo "$ac_pt_PKGCONFIG" >&6; }
40832else
40833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40834$as_echo "no" >&6; }
40835fi
40836
40837 if test "x$ac_pt_PKGCONFIG" = x; then
40838 PKGCONFIG="no"
40839 else
40840 case $cross_compiling:$ac_tool_warned in
40841yes:)
40842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40844ac_tool_warned=yes ;;
40845esac
40846 PKGCONFIG=$ac_pt_PKGCONFIG
40847 fi
40848else
40849 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40850fi
40851
40852 fi
40853
40854 if test "x$PKGCONFIG" != "xno"; then
40855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40856$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40857 itexists=`
40858 if test -n ""; then
40859 PKG_CONFIG_LIBDIR=""
40860 export PKG_CONFIG_LIBDIR
40861 fi
40862 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40863
40864 if test -z "$itexists"; then
40865 PKGCONFIG="no"
40866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40867$as_echo "no" >&6; }
40868 else
40869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40870$as_echo "found" >&6; }
40871 fi
40872 fi
40873
40874 if test "$PKGCONFIG" != "no" ; then
40875 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40876 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40877 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40878 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40879$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40880 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40881$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40882 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40883$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40884 else
40885 ares_CPPFLAGS=""
40886 ares_LDFLAGS=""
40887 ares_LIBS="-lcares"
40888 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040889 fi
40890 fi
40891 #
40892 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40893 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40894 LIBS="$ares_LIBS $clean_LIBS"
40895 #
40896 if test "$embedded_ares" != "yes"; then
40897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40898$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40900/* end confdefs.h. */
40901
40902
40903#include <ares.h>
40904 /* set of dummy functions in case c-ares was built with debug */
40905 void curl_dofree() { }
40906 void curl_sclose() { }
40907 void curl_domalloc() { }
40908 void curl_docalloc() { }
40909 void curl_socket() { }
40910
40911int main (void)
40912{
40913
40914 ares_channel channel;
40915 ares_cancel(channel); /* added in 1.2.0 */
40916 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40917 ares_dup(&channel, channel); /* added in 1.6.0 */
40918
40919 ;
40920 return 0;
40921}
40922
40923_ACEOF
40924if ac_fn_c_try_link "$LINENO"; then :
40925
40926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40927$as_echo "yes" >&6; }
40928
40929else
40930
40931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40932$as_echo "no" >&6; }
40933 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40934 CPPFLAGS="$clean_CPPFLAGS"
40935 LDFLAGS="$clean_LDFLAGS"
40936 LIBS="$clean_LIBS"
40937 # prevent usage
40938 want_ares="no"
40939
40940fi
40941rm -f core conftest.err conftest.$ac_objext \
40942 conftest$ac_exeext conftest.$ac_ext
40943 fi
40944 if test "$want_ares" = "yes"; then
40945
40946$as_echo "#define USE_ARES 1" >>confdefs.h
40947
40948 USE_ARES=1
40949
40950 curl_res_msg="c-ares"
40951 fi
40952 fi
40953
40954 if test x$embedded_ares = xyes; then
40955 USE_EMBEDDED_ARES_TRUE=
40956 USE_EMBEDDED_ARES_FALSE='#'
40957else
40958 USE_EMBEDDED_ARES_TRUE='#'
40959 USE_EMBEDDED_ARES_FALSE=
40960fi
40961
40962
40963if test "x$curl_cv_native_windows" != "xyes" &&
40964 test "x$enable_shared" = "xyes"; then
40965 build_libhostname=yes
40966else
40967 build_libhostname=no
40968fi
40969 if test x$build_libhostname = xyes; then
40970 BUILD_LIBHOSTNAME_TRUE=
40971 BUILD_LIBHOSTNAME_FALSE='#'
40972else
40973 BUILD_LIBHOSTNAME_TRUE='#'
40974 BUILD_LIBHOSTNAME_FALSE=
40975fi
40976
40977
40978if test "x$want_ares" != xyes; then
40979
40980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40981$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40982 OPT_THRES="default"
40983 # Check whether --enable-threaded_resolver was given.
40984if test "${enable_threaded_resolver+set}" = set; then :
40985 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40986fi
40987
40988 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040989 no)
40990 want_thres="no"
40991 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040992 *)
40993 want_thres="yes"
40994 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040995 esac
40996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40997$as_echo "$want_thres" >&6; }
40998
40999fi
41000
41001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
41002$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
41003# Check whether --enable-pthreads was given.
41004if test "${enable_pthreads+set}" = set; then :
41005 enableval=$enable_pthreads; case "$enableval" in
41006 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41007$as_echo "no" >&6; }
41008 want_pthreads=no
41009 ;;
41010 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41011$as_echo "yes" >&6; }
41012 want_pthreads=yes
41013 ;;
41014 esac
41015else
41016
41017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41018$as_echo "auto" >&6; }
41019 want_pthreads=auto
41020
41021
41022fi
41023
41024
41025if test "$want_pthreads" != "no"; then
41026 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
41027 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
41028 fi
41029 if test "$dontwant_rt" != "no"; then
41030 if test "$want_pthreads" = "yes"; then
41031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
41032$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
41033 fi
41034 want_pthreads=no
41035 fi
41036fi
41037
41038if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
41039 want_pthreads=no
41040fi
41041
41042if test "$want_pthreads" != "no"; then
41043 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
41044if test "x$ac_cv_header_pthread_h" = xyes; then :
41045
41046$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
41047
41048 save_CFLAGS="$CFLAGS"
41049
41050 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
41051if test "x$ac_cv_func_pthread_create" = xyes; then :
41052 USE_THREADS_POSIX=1
41053fi
41054
41055
Elliott Hughesa93fb052018-12-12 14:22:48 -080041056 case $host in
41057 *-hp-hpux*)
41058 USE_THREADS_POSIX=""
41059 ;;
41060 *)
41061 ;;
41062 esac
41063
Elliott Hughes82be86d2017-09-20 17:00:17 -070041064 if test "$USE_THREADS_POSIX" != "1"
41065 then
41066 CFLAGS="$CFLAGS -pthread"
41067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
41068$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
41069if ${ac_cv_lib_pthread_pthread_create+:} false; then :
41070 $as_echo_n "(cached) " >&6
41071else
41072 ac_check_lib_save_LIBS=$LIBS
41073LIBS="-lpthread $LIBS"
41074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41075/* end confdefs.h. */
41076
41077
41078#ifdef __cplusplus
41079extern "C"
41080#endif
41081char pthread_create ();
41082int main (void)
41083{
41084return pthread_create ();
41085 ;
41086 return 0;
41087}
41088_ACEOF
41089if ac_fn_c_try_link "$LINENO"; then :
41090 ac_cv_lib_pthread_pthread_create=yes
41091else
41092 ac_cv_lib_pthread_pthread_create=no
41093fi
41094rm -f core conftest.err conftest.$ac_objext \
41095 conftest$ac_exeext conftest.$ac_ext
41096LIBS=$ac_check_lib_save_LIBS
41097fi
41098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
41099$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
41100if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
41101 USE_THREADS_POSIX=1
41102else
41103 CFLAGS="$save_CFLAGS"
41104fi
41105
41106 fi
41107
41108 if test "x$USE_THREADS_POSIX" = "x1"
41109 then
41110
41111$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
41112
41113 curl_res_msg="POSIX threaded"
41114 fi
41115
41116fi
41117
41118
41119fi
41120
41121if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
41122 if test "$want_pthreads" = "yes"; then
41123 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
41124 fi
41125 if test "$curl_cv_native_windows" = "yes"; then
41126 USE_THREADS_WIN32=1
41127
41128$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
41129
41130 curl_res_msg="Win32 threaded"
41131 else
41132 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
41133 fi
41134fi
41135
41136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
41137$as_echo_n "checking whether to enable verbose strings... " >&6; }
41138# Check whether --enable-verbose was given.
41139if test "${enable_verbose+set}" = set; then :
41140 enableval=$enable_verbose; case "$enableval" in
41141 no)
41142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41143$as_echo "no" >&6; }
41144
41145$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
41146
41147 curl_verbose_msg="no"
41148 ;;
41149 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41150$as_echo "yes" >&6; }
41151 ;;
41152 esac
41153else
41154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41155$as_echo "yes" >&6; }
41156
41157fi
41158
41159
41160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
41161$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
41162# Check whether --enable-sspi was given.
41163if test "${enable_sspi+set}" = set; then :
41164 enableval=$enable_sspi; case "$enableval" in
41165 yes)
41166 if test "$curl_cv_native_windows" = "yes"; then
41167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41168$as_echo "yes" >&6; }
41169
41170$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
41171
41172 USE_WINDOWS_SSPI=1
41173
41174 curl_sspi_msg="enabled"
41175 else
41176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41177$as_echo "no" >&6; }
41178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
41179$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
41180 fi
41181 ;;
41182 *)
41183 if test "x$WINSSL_ENABLED" = "x1"; then
41184 # --with-winssl implies --enable-sspi
41185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41186$as_echo "yes" >&6; }
41187 else
41188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41189$as_echo "no" >&6; }
41190 fi
41191 ;;
41192 esac
41193else
41194 if test "x$WINSSL_ENABLED" = "x1"; then
41195 # --with-winssl implies --enable-sspi
41196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41197$as_echo "yes" >&6; }
41198 else
41199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41200$as_echo "no" >&6; }
41201 fi
41202
41203fi
41204
41205
41206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41207$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41208# Check whether --enable-crypto-auth was given.
41209if test "${enable_crypto_auth+set}" = set; then :
41210 enableval=$enable_crypto_auth; case "$enableval" in
41211 no)
41212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41213$as_echo "no" >&6; }
41214
41215$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41216
41217 CURL_DISABLE_CRYPTO_AUTH=1
41218 ;;
41219 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41220$as_echo "yes" >&6; }
41221 ;;
41222 esac
41223else
41224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41225$as_echo "yes" >&6; }
41226
41227fi
41228
41229
41230
41231 OPT_NTLM_WB="default"
41232 # Check whether --enable-ntlm-wb was given.
41233if test "${enable_ntlm_wb+set}" = set; then :
41234 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41235fi
41236
41237 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41238 case "$OPT_NTLM_WB" in
41239 no)
41240 want_ntlm_wb="no"
41241 ;;
41242 default)
41243 want_ntlm_wb="yes"
41244 ;;
41245 *)
41246 want_ntlm_wb="yes"
41247 if test -n "$enableval" && test "$enableval" != "yes"; then
41248 want_ntlm_wb_file="$enableval"
41249 fi
41250 ;;
41251 esac
41252
41253
41254
41255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41256$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41257 if test "$curl_cv_native_windows" = "yes" ||
41258 test "x$SSL_ENABLED" = "x"; then
41259 want_ntlm_wb_file=""
41260 want_ntlm_wb="no"
41261 fi
41262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41263$as_echo "$want_ntlm_wb" >&6; }
41264 if test "$want_ntlm_wb" = "yes"; then
41265
41266$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41267
41268
41269cat >>confdefs.h <<_ACEOF
41270#define NTLM_WB_FILE "$want_ntlm_wb_file"
41271_ACEOF
41272
41273 NTLM_WB_ENABLED=1
41274 fi
41275
41276
41277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41278$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41279# Check whether --enable-tls-srp was given.
41280if test "${enable_tls_srp+set}" = set; then :
41281 enableval=$enable_tls_srp; case "$enableval" in
41282 no)
41283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41284$as_echo "no" >&6; }
41285
41286$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41287
41288 want_tls_srp=no
41289 ;;
41290 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41291$as_echo "yes" >&6; }
41292 want_tls_srp=yes
41293 ;;
41294 esac
41295else
41296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41297$as_echo "yes" >&6; }
41298 want_tls_srp=yes
41299
41300fi
41301
41302
41303if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41304
41305$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41306
41307 USE_TLS_SRP=1
41308 curl_tls_srp_msg="enabled"
41309fi
41310
41311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41312$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41313# Check whether --enable-unix-sockets was given.
41314if test "${enable_unix_sockets+set}" = set; then :
41315 enableval=$enable_unix_sockets; case "$enableval" in
41316 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41317$as_echo "no" >&6; }
41318 want_unix_sockets=no
41319 ;;
41320 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41321$as_echo "yes" >&6; }
41322 want_unix_sockets=yes
41323 ;;
41324 esac
41325else
41326
41327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41328$as_echo "auto" >&6; }
41329 want_unix_sockets=auto
41330
41331
41332fi
41333
41334if test "x$want_unix_sockets" != "xno"; then
41335 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41336 #include <sys/un.h>
41337
41338"
41339if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41340
41341
41342$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41343
41344 USE_UNIX_SOCKETS=1
41345
41346 curl_unix_sockets_msg="enabled"
41347
41348else
41349
41350 if test "x$want_unix_sockets" = "xyes"; then
41351 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41352 fi
41353
41354fi
41355
41356fi
41357
41358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41359$as_echo_n "checking whether to enable support for cookies... " >&6; }
41360# Check whether --enable-cookies was given.
41361if test "${enable_cookies+set}" = set; then :
41362 enableval=$enable_cookies; case "$enableval" in
41363 no)
41364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41365$as_echo "no" >&6; }
41366
41367$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41368
41369 ;;
41370 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41371$as_echo "yes" >&6; }
41372 ;;
41373 esac
41374else
41375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41376$as_echo "yes" >&6; }
41377
41378fi
41379
41380
Haibo Huang65021c72019-03-27 15:37:23 -070041381curl_altsvc_msg="no (--enable-alt-svc)";
41382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
41383$as_echo_n "checking whether to support alt-svc... " >&6; }
41384# Check whether --enable-alt-svc was given.
41385if test "${enable_alt_svc+set}" = set; then :
41386 enableval=$enable_alt_svc; case "$enableval" in
41387 no)
41388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41389$as_echo "no" >&6; }
41390 ;;
41391 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41392$as_echo "yes" >&6; }
41393 curl_altsvc_msg="enabled";
41394 enable_altsvc="yes"
41395 experimental="alt-svc"
41396 ;;
41397 esac
41398else
41399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41400$as_echo "no" >&6; }
41401
41402fi
41403
41404
41405if test "$enable_altsvc" = "yes"; then
41406
41407$as_echo "#define USE_ALTSVC 1" >>confdefs.h
41408
41409 experimental="alt-svc"
41410fi
41411
Elliott Hughes82be86d2017-09-20 17:00:17 -070041412
41413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41414$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41415 CFLAG_CURL_SYMBOL_HIDING=""
41416 doing_symbol_hiding="no"
41417 if test x"$curl_cv_native_windows" != "xyes" &&
41418 test "$want_symbol_hiding" = "yes" &&
41419 test "$supports_symbol_hiding" = "yes"; then
41420 doing_symbol_hiding="yes"
41421 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41422
41423cat >>confdefs.h <<_ACEOF
41424#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41425_ACEOF
41426
41427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41428$as_echo "yes" >&6; }
41429 else
41430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41431$as_echo "no" >&6; }
41432 fi
41433 if test x$doing_symbol_hiding = xyes; then
41434 DOING_CURL_SYMBOL_HIDING_TRUE=
41435 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41436else
41437 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41438 DOING_CURL_SYMBOL_HIDING_FALSE=
41439fi
41440
41441
41442
41443
Elliott Hughes82be86d2017-09-20 17:00:17 -070041444LIBCURL_LIBS=$LIBS
41445
41446
41447
41448
41449
41450BLANK_AT_MAKETIME=
41451
41452
41453 if test x$cross_compiling = xyes; then
41454 CROSSCOMPILING_TRUE=
41455 CROSSCOMPILING_FALSE='#'
41456else
41457 CROSSCOMPILING_TRUE='#'
41458 CROSSCOMPILING_FALSE=
41459fi
41460
41461
41462ENABLE_SHARED="$enable_shared"
41463
41464
41465ENABLE_STATIC="$enable_static"
41466
41467
41468
41469
41470if test "x$OPENSSL_ENABLED" = "x1"; then
41471 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41472elif test -n "$SSL_ENABLED"; then
41473 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41474fi
41475if test "x$IPV6_ENABLED" = "x1"; then
41476 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41477fi
41478if test "x$USE_UNIX_SOCKETS" = "x1"; then
41479 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41480fi
41481if test "x$HAVE_LIBZ" = "x1"; then
41482 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41483fi
Alex Deymo486467e2017-12-19 19:04:07 +010041484if test "x$HAVE_BROTLI" = "x1"; then
41485 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41486fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041487if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41488 -o "x$USE_THREADS_WIN32" = "x1"; then
41489 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41490fi
41491if test "x$IDN_ENABLED" = "x1"; then
41492 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41493fi
41494if test "x$USE_WINDOWS_SSPI" = "x1"; then
41495 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41496fi
41497
41498if test "x$HAVE_GSSAPI" = "x1"; then
41499 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41500fi
41501
Haibo Huang65021c72019-03-27 15:37:23 -070041502if test "x$curl_psl_msg" = "xenabled"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041503 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41504fi
41505
Haibo Huang65021c72019-03-27 15:37:23 -070041506if test "x$enable_altsvc" = "xyes"; then
41507 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
41508fi
41509
Elliott Hughes82be86d2017-09-20 17:00:17 -070041510if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41511 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41512 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41513fi
41514
41515if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41516 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41517 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41518fi
41519
41520if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41521 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41522 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
Haibo Huang65021c72019-03-27 15:37:23 -070041523 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041524 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41525
41526 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41527 "x$NTLM_WB_ENABLED" = "x1"; then
41528 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41529 fi
41530 fi
41531fi
41532
41533if test "x$USE_TLS_SRP" = "x1"; then
41534 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41535fi
41536
41537if test "x$USE_NGHTTP2" = "x1"; then
41538 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41539fi
41540
Alex Deymo486467e2017-12-19 19:04:07 +010041541if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41542 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41543fi
41544
Elliott Hughes82be86d2017-09-20 17:00:17 -070041545if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41546 -o "x$NSS_ENABLED" = "x1"; then
41547 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41548fi
41549
41550
41551
41552if test "x$CURL_DISABLE_HTTP" != "x1"; then
41553 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41554 if test "x$SSL_ENABLED" = "x1"; then
41555 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41556 fi
41557fi
41558if test "x$CURL_DISABLE_FTP" != "x1"; then
41559 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41560 if test "x$SSL_ENABLED" = "x1"; then
41561 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41562 fi
41563fi
41564if test "x$CURL_DISABLE_FILE" != "x1"; then
41565 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41566fi
41567if test "x$CURL_DISABLE_TELNET" != "x1"; then
41568 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41569fi
41570if test "x$CURL_DISABLE_LDAP" != "x1"; then
41571 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41572 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41573 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41574 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41575 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41576 fi
41577 fi
41578fi
41579if test "x$CURL_DISABLE_DICT" != "x1"; then
41580 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41581fi
41582if test "x$CURL_DISABLE_TFTP" != "x1"; then
41583 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41584fi
41585if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41586 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41587fi
41588if test "x$CURL_DISABLE_POP3" != "x1"; then
41589 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41590 if test "x$SSL_ENABLED" = "x1"; then
41591 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41592 fi
41593fi
41594if test "x$CURL_DISABLE_IMAP" != "x1"; then
41595 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41596 if test "x$SSL_ENABLED" = "x1"; then
41597 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41598 fi
41599fi
41600if test "x$CURL_DISABLE_SMB" != "x1" \
41601 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41602 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41603 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
Haibo Huang65021c72019-03-27 15:37:23 -070041604 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \); then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041605 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41606 if test "x$SSL_ENABLED" = "x1"; then
41607 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41608 fi
41609fi
41610if test "x$CURL_DISABLE_SMTP" != "x1"; then
41611 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41612 if test "x$SSL_ENABLED" = "x1"; then
41613 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41614 fi
41615fi
41616if test "x$USE_LIBSSH2" = "x1"; then
41617 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41618 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41619fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041620if test "x$USE_LIBSSH" = "x1"; then
41621 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41622 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41623fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041624if test "x$CURL_DISABLE_RTSP" != "x1"; then
41625 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41626fi
41627if test "x$USE_LIBRTMP" = "x1"; then
41628 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41629fi
41630
41631SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41632
41633
41634
41635
41636squeeze CFLAGS
41637squeeze CPPFLAGS
41638squeeze DEFS
41639squeeze LDFLAGS
41640squeeze LIBS
41641
41642squeeze LIBCURL_LIBS
41643squeeze CURL_NETWORK_LIBS
41644squeeze CURL_NETWORK_AND_TIME_LIBS
41645
41646squeeze SUPPORT_FEATURES
41647squeeze SUPPORT_PROTOCOLS
41648
41649
41650
41651 xc_bad_var_libs=no
41652 for xc_word in $LIBS; do
41653 case "$xc_word" in
41654 -l* | --library=*)
41655 :
41656 ;;
41657 *)
41658 xc_bad_var_libs=yes
41659 ;;
41660 esac
41661 done
41662 if test $xc_bad_var_libs = yes; then
41663 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41664$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41665 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41666$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41667 fi
41668
41669
41670 xc_bad_var_ldflags=no
41671 for xc_word in $LDFLAGS; do
41672 case "$xc_word" in
41673 -D*)
41674 xc_bad_var_ldflags=yes
41675 ;;
41676 -U*)
41677 xc_bad_var_ldflags=yes
41678 ;;
41679 -I*)
41680 xc_bad_var_ldflags=yes
41681 ;;
41682 -l* | --library=*)
41683 xc_bad_var_ldflags=yes
41684 ;;
41685 esac
41686 done
41687 if test $xc_bad_var_ldflags = yes; then
41688 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41689$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41690 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41691 for xc_word in $LDFLAGS; do
41692 case "$xc_word" in
41693 -D*)
41694 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41695$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41696 ;;
41697 -U*)
41698 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41699$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41700 ;;
41701 -I*)
41702 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41703$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41704 ;;
41705 -l* | --library=*)
41706 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41707$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41708 ;;
41709 esac
41710 done
41711 fi
41712
41713
41714 xc_bad_var_cppflags=no
41715 for xc_word in $CPPFLAGS; do
41716 case "$xc_word" in
41717 -rpath*)
41718 xc_bad_var_cppflags=yes
41719 ;;
41720 -L* | --library-path=*)
41721 xc_bad_var_cppflags=yes
41722 ;;
41723 -l* | --library=*)
41724 xc_bad_var_cppflags=yes
41725 ;;
41726 esac
41727 done
41728 if test $xc_bad_var_cppflags = yes; then
41729 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41730$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41731 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41732 for xc_word in $CPPFLAGS; do
41733 case "$xc_word" in
41734 -rpath*)
41735 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41736$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41737 ;;
41738 -L* | --library-path=*)
41739 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41740$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41741 ;;
41742 -l* | --library=*)
41743 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41744$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41745 ;;
41746 esac
41747 done
41748 fi
41749
41750
41751 xc_bad_var_cflags=no
41752 for xc_word in $CFLAGS; do
41753 case "$xc_word" in
41754 -D*)
41755 xc_bad_var_cflags=yes
41756 ;;
41757 -U*)
41758 xc_bad_var_cflags=yes
41759 ;;
41760 -I*)
41761 xc_bad_var_cflags=yes
41762 ;;
41763 -rpath*)
41764 xc_bad_var_cflags=yes
41765 ;;
41766 -L* | --library-path=*)
41767 xc_bad_var_cflags=yes
41768 ;;
41769 -l* | --library=*)
41770 xc_bad_var_cflags=yes
41771 ;;
41772 esac
41773 done
41774 if test $xc_bad_var_cflags = yes; then
41775 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41776$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41777 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41778 for xc_word in $CFLAGS; do
41779 case "$xc_word" in
41780 -D*)
41781 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41782$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41783 ;;
41784 -U*)
41785 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41786$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41787 ;;
41788 -I*)
41789 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41790$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41791 ;;
41792 -rpath*)
41793 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41794$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41795 ;;
41796 -L* | --library-path=*)
41797 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41798$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41799 ;;
41800 -l* | --library=*)
41801 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41802$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41803 ;;
41804 esac
41805 done
41806 fi
41807
41808 if test $xc_bad_var_libs = yes ||
41809 test $xc_bad_var_cflags = yes ||
41810 test $xc_bad_var_ldflags = yes ||
41811 test $xc_bad_var_cppflags = yes; then
41812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41813$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41814 fi
41815
41816
Elliott Hughes0128fe42018-02-27 14:57:55 -080041817SSL_BACKENDS=${ssl_backends}
41818
41819
Elliott Hughes82be86d2017-09-20 17:00:17 -070041820if test "x$want_curldebug_assumed" = "xyes" &&
41821 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41822 ac_configure_args="$ac_configure_args --enable-curldebug"
41823fi
41824
Haibo Huang21926d52019-01-08 14:27:10 -080041825ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
Elliott Hughes82be86d2017-09-20 17:00:17 -070041826
41827cat >confcache <<\_ACEOF
41828# This file is a shell script that caches the results of configure
41829# tests run on this system so they can be shared between configure
41830# scripts and configure runs, see configure's option --config-cache.
41831# It is not useful on other systems. If it contains results you don't
41832# want to keep, you may remove or edit it.
41833#
41834# config.status only pays attention to the cache file if you give it
41835# the --recheck option to rerun configure.
41836#
41837# `ac_cv_env_foo' variables (set or unset) will be overridden when
41838# loading this file, other *unset* `ac_cv_foo' will be assigned the
41839# following values.
41840
41841_ACEOF
41842
41843# The following way of writing the cache mishandles newlines in values,
41844# but we know of no workaround that is simple, portable, and efficient.
41845# So, we kill variables containing newlines.
41846# Ultrix sh set writes to stderr and can't be redirected directly,
41847# and sets the high bit in the cache file unless we assign to the vars.
41848(
41849 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41850 eval ac_val=\$$ac_var
41851 case $ac_val in #(
41852 *${as_nl}*)
41853 case $ac_var in #(
41854 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41855$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41856 esac
41857 case $ac_var in #(
41858 _ | IFS | as_nl) ;; #(
41859 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41860 *) { eval $ac_var=; unset $ac_var;} ;;
41861 esac ;;
41862 esac
41863 done
41864
41865 (set) 2>&1 |
41866 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41867 *${as_nl}ac_space=\ *)
41868 # `set' does not quote correctly, so add quotes: double-quote
41869 # substitution turns \\\\ into \\, and sed turns \\ into \.
41870 sed -n \
41871 "s/'/'\\\\''/g;
41872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41873 ;; #(
41874 *)
41875 # `set' quotes correctly as required by POSIX, so do not add quotes.
41876 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41877 ;;
41878 esac |
41879 sort
41880) |
41881 sed '
41882 /^ac_cv_env_/b end
41883 t clear
41884 :clear
41885 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41886 t end
41887 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41888 :end' >>confcache
41889if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41890 if test -w "$cache_file"; then
41891 if test "x$cache_file" != "x/dev/null"; then
41892 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41893$as_echo "$as_me: updating cache $cache_file" >&6;}
41894 if test ! -f "$cache_file" || test -h "$cache_file"; then
41895 cat confcache >"$cache_file"
41896 else
41897 case $cache_file in #(
41898 */* | ?:*)
41899 mv -f confcache "$cache_file"$$ &&
41900 mv -f "$cache_file"$$ "$cache_file" ;; #(
41901 *)
41902 mv -f confcache "$cache_file" ;;
41903 esac
41904 fi
41905 fi
41906 else
41907 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41908$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41909 fi
41910fi
41911rm -f confcache
41912
41913test "x$prefix" = xNONE && prefix=$ac_default_prefix
41914# Let make expand exec_prefix.
41915test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41916
41917DEFS=-DHAVE_CONFIG_H
41918
41919ac_libobjs=
41920ac_ltlibobjs=
41921U=
41922for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41923 # 1. Remove the extension, and $U if already installed.
41924 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41925 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41926 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41927 # will be set to the directory where LIBOBJS objects are built.
41928 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41929 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41930done
41931LIBOBJS=$ac_libobjs
41932
41933LTLIBOBJS=$ac_ltlibobjs
41934
41935
41936if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41937 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41938Usually this means the macro was only invoked conditionally." "$LINENO" 5
41939fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41941$as_echo_n "checking that generated files are newer than configure... " >&6; }
41942 if test -n "$am_sleep_pid"; then
41943 # Hide warnings about reused PIDs.
41944 wait $am_sleep_pid 2>/dev/null
41945 fi
41946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41947$as_echo "done" >&6; }
41948if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41949 as_fn_error $? "conditional \"AMDEP\" was never defined.
41950Usually this means the macro was only invoked conditionally." "$LINENO" 5
41951fi
41952if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41953 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41954Usually this means the macro was only invoked conditionally." "$LINENO" 5
41955fi
41956 if test -n "$EXEEXT"; then
41957 am__EXEEXT_TRUE=
41958 am__EXEEXT_FALSE='#'
41959else
41960 am__EXEEXT_TRUE='#'
41961 am__EXEEXT_FALSE=
41962fi
41963
41964if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41965 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41966Usually this means the macro was only invoked conditionally." "$LINENO" 5
41967fi
41968if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41969 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41970Usually this means the macro was only invoked conditionally." "$LINENO" 5
41971fi
41972if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41973 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41974Usually this means the macro was only invoked conditionally." "$LINENO" 5
41975fi
41976if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41977 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41978Usually this means the macro was only invoked conditionally." "$LINENO" 5
41979fi
41980if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41981 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41982Usually this means the macro was only invoked conditionally." "$LINENO" 5
41983fi
41984if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41985 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41986Usually this means the macro was only invoked conditionally." "$LINENO" 5
41987fi
41988if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41989 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41990Usually this means the macro was only invoked conditionally." "$LINENO" 5
41991fi
41992if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41993 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41994Usually this means the macro was only invoked conditionally." "$LINENO" 5
41995fi
41996if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41997 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41998Usually this means the macro was only invoked conditionally." "$LINENO" 5
41999fi
Alex Deymo486467e2017-12-19 19:04:07 +010042000if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
42001 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
42002Usually this means the macro was only invoked conditionally." "$LINENO" 5
42003fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070042004if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
42005 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
42006Usually this means the macro was only invoked conditionally." "$LINENO" 5
42007fi
42008if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
42009 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
42010Usually this means the macro was only invoked conditionally." "$LINENO" 5
42011fi
42012if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
42013 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
42014Usually this means the macro was only invoked conditionally." "$LINENO" 5
42015fi
42016if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
42017 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
42018Usually this means the macro was only invoked conditionally." "$LINENO" 5
42019fi
42020if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
42021 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
42022Usually this means the macro was only invoked conditionally." "$LINENO" 5
42023fi
42024if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
42025 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
42026Usually this means the macro was only invoked conditionally." "$LINENO" 5
42027fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070042028if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
42029 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
42030Usually this means the macro was only invoked conditionally." "$LINENO" 5
42031fi
42032
42033: "${CONFIG_STATUS=./config.status}"
42034ac_write_fail=0
42035ac_clean_files_save=$ac_clean_files
42036ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42037{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
42038$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
42039as_write_fail=0
42040cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
42041#! $SHELL
42042# Generated by $as_me.
42043# Run this file to recreate the current configuration.
42044# Compiler output produced by configure, useful for debugging
42045# configure, is in config.log if it exists.
42046
42047debug=false
42048ac_cs_recheck=false
42049ac_cs_silent=false
42050
42051SHELL=\${CONFIG_SHELL-$SHELL}
42052export SHELL
42053_ASEOF
42054cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
42055## -------------------- ##
42056## M4sh Initialization. ##
42057## -------------------- ##
42058
42059# Be more Bourne compatible
42060DUALCASE=1; export DUALCASE # for MKS sh
42061if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42062 emulate sh
42063 NULLCMD=:
42064 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
42065 # is contrary to our usage. Disable this feature.
42066 alias -g '${1+"$@"}'='"$@"'
42067 setopt NO_GLOB_SUBST
42068else
42069 case `(set -o) 2>/dev/null` in #(
42070 *posix*) :
42071 set -o posix ;; #(
42072 *) :
42073 ;;
42074esac
42075fi
42076
42077
42078as_nl='
42079'
42080export as_nl
42081# Printing a long string crashes Solaris 7 /usr/bin/printf.
42082as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42083as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42084as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42085# Prefer a ksh shell builtin over an external printf program on Solaris,
42086# but without wasting forks for bash or zsh.
42087if test -z "$BASH_VERSION$ZSH_VERSION" \
42088 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
42089 as_echo='print -r --'
42090 as_echo_n='print -rn --'
42091elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
42092 as_echo='printf %s\n'
42093 as_echo_n='printf %s'
42094else
42095 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
42096 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
42097 as_echo_n='/usr/ucb/echo -n'
42098 else
42099 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
42100 as_echo_n_body='eval
42101 arg=$1;
42102 case $arg in #(
42103 *"$as_nl"*)
42104 expr "X$arg" : "X\\(.*\\)$as_nl";
42105 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
42106 esac;
42107 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
42108 '
42109 export as_echo_n_body
42110 as_echo_n='sh -c $as_echo_n_body as_echo'
42111 fi
42112 export as_echo_body
42113 as_echo='sh -c $as_echo_body as_echo'
42114fi
42115
42116
42117
42118# IFS
42119# We need space, tab and new line, in precisely that order. Quoting is
42120# there to prevent editors from complaining about space-tab.
42121# (If _AS_PATH_WALK were called with IFS unset, it would disable word
42122# splitting by setting IFS to empty value.)
42123IFS=" "" $as_nl"
42124
42125# Find who we are. Look in the path if we contain no directory separator.
42126as_myself=
42127case $0 in #((
42128 *[\\/]* ) as_myself=$0 ;;
42129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42130for as_dir in $PATH
42131do
42132 IFS=$as_save_IFS
42133 test -z "$as_dir" && as_dir=.
42134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42135 done
42136IFS=$as_save_IFS
42137
42138 ;;
42139esac
42140# We did not find ourselves, most probably we were run as `sh COMMAND'
42141# in which case we are not to be found in the path.
42142if test "x$as_myself" = x; then
42143 as_myself=$0
42144fi
42145if test ! -f "$as_myself"; then
42146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
42147 exit 1
42148fi
42149
42150# Unset variables that we do not need and which cause bugs (e.g. in
42151# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
42152# suppresses any "Segmentation fault" message there. '((' could
42153# trigger a bug in pdksh 5.2.14.
42154for as_var in BASH_ENV ENV MAIL MAILPATH
42155do eval test x\${$as_var+set} = xset \
42156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
42157done
42158PS1='$ '
42159PS2='> '
42160PS4='+ '
42161
42162# NLS nuisances.
42163LC_ALL=C
42164export LC_ALL
42165LANGUAGE=C
42166export LANGUAGE
42167
42168# CDPATH.
42169(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42170
42171
42172# as_fn_error STATUS ERROR [LINENO LOG_FD]
42173# ----------------------------------------
42174# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42175# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42176# script with STATUS, using 1 if that was 0.
42177as_fn_error ()
42178{
42179 as_status=$1; test $as_status -eq 0 && as_status=1
42180 if test "$4"; then
42181 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
42182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42183 fi
42184 $as_echo "$as_me: error: $2" >&2
42185 as_fn_exit $as_status
42186} # as_fn_error
42187
42188
42189# as_fn_set_status STATUS
42190# -----------------------
42191# Set $? to STATUS, without forking.
42192as_fn_set_status ()
42193{
42194 return $1
42195} # as_fn_set_status
42196
42197# as_fn_exit STATUS
42198# -----------------
42199# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
42200as_fn_exit ()
42201{
42202 set +e
42203 as_fn_set_status $1
42204 exit $1
42205} # as_fn_exit
42206
42207# as_fn_unset VAR
42208# ---------------
42209# Portably unset VAR.
42210as_fn_unset ()
42211{
42212 { eval $1=; unset $1;}
42213}
42214as_unset=as_fn_unset
42215# as_fn_append VAR VALUE
42216# ----------------------
42217# Append the text in VALUE to the end of the definition contained in VAR. Take
42218# advantage of any shell optimizations that allow amortized linear growth over
42219# repeated appends, instead of the typical quadratic growth present in naive
42220# implementations.
42221if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
42222 eval 'as_fn_append ()
42223 {
42224 eval $1+=\$2
42225 }'
42226else
42227 as_fn_append ()
42228 {
42229 eval $1=\$$1\$2
42230 }
42231fi # as_fn_append
42232
42233# as_fn_arith ARG...
42234# ------------------
42235# Perform arithmetic evaluation on the ARGs, and store the result in the
42236# global $as_val. Take advantage of shells that can avoid forks. The arguments
42237# must be portable across $(()) and expr.
42238if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42239 eval 'as_fn_arith ()
42240 {
42241 as_val=$(( $* ))
42242 }'
42243else
42244 as_fn_arith ()
42245 {
42246 as_val=`expr "$@" || test $? -eq 1`
42247 }
42248fi # as_fn_arith
42249
42250
42251if expr a : '\(a\)' >/dev/null 2>&1 &&
42252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42253 as_expr=expr
42254else
42255 as_expr=false
42256fi
42257
42258if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42259 as_basename=basename
42260else
42261 as_basename=false
42262fi
42263
42264if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42265 as_dirname=dirname
42266else
42267 as_dirname=false
42268fi
42269
42270as_me=`$as_basename -- "$0" ||
42271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42272 X"$0" : 'X\(//\)$' \| \
42273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42274$as_echo X/"$0" |
42275 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
42289# Avoid depending upon Character Ranges.
42290as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42291as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42292as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42293as_cr_digits='0123456789'
42294as_cr_alnum=$as_cr_Letters$as_cr_digits
42295
42296ECHO_C= ECHO_N= ECHO_T=
42297case `echo -n x` in #(((((
42298-n*)
42299 case `echo 'xy\c'` in
42300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42301 xy) ECHO_C='\c';;
42302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42303 ECHO_T=' ';;
42304 esac;;
42305*)
42306 ECHO_N='-n';;
42307esac
42308
42309rm -f conf$$ conf$$.exe conf$$.file
42310if test -d conf$$.dir; then
42311 rm -f conf$$.dir/conf$$.file
42312else
42313 rm -f conf$$.dir
42314 mkdir conf$$.dir 2>/dev/null
42315fi
42316if (echo >conf$$.file) 2>/dev/null; then
42317 if ln -s conf$$.file conf$$ 2>/dev/null; then
42318 as_ln_s='ln -s'
42319 # ... but there are two gotchas:
42320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42322 # In both cases, we have to default to `cp -pR'.
42323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42324 as_ln_s='cp -pR'
42325 elif ln conf$$.file conf$$ 2>/dev/null; then
42326 as_ln_s=ln
42327 else
42328 as_ln_s='cp -pR'
42329 fi
42330else
42331 as_ln_s='cp -pR'
42332fi
42333rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42334rmdir conf$$.dir 2>/dev/null
42335
42336
42337# as_fn_mkdir_p
42338# -------------
42339# Create "$as_dir" as a directory, including parents if necessary.
42340as_fn_mkdir_p ()
42341{
42342
42343 case $as_dir in #(
42344 -*) as_dir=./$as_dir;;
42345 esac
42346 test -d "$as_dir" || eval $as_mkdir_p || {
42347 as_dirs=
42348 while :; do
42349 case $as_dir in #(
42350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42351 *) as_qdir=$as_dir;;
42352 esac
42353 as_dirs="'$as_qdir' $as_dirs"
42354 as_dir=`$as_dirname -- "$as_dir" ||
42355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42356 X"$as_dir" : 'X\(//\)[^/]' \| \
42357 X"$as_dir" : 'X\(//\)$' \| \
42358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42359$as_echo X"$as_dir" |
42360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42361 s//\1/
42362 q
42363 }
42364 /^X\(\/\/\)[^/].*/{
42365 s//\1/
42366 q
42367 }
42368 /^X\(\/\/\)$/{
42369 s//\1/
42370 q
42371 }
42372 /^X\(\/\).*/{
42373 s//\1/
42374 q
42375 }
42376 s/.*/./; q'`
42377 test -d "$as_dir" && break
42378 done
42379 test -z "$as_dirs" || eval "mkdir $as_dirs"
42380 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42381
42382
42383} # as_fn_mkdir_p
42384if mkdir -p . 2>/dev/null; then
42385 as_mkdir_p='mkdir -p "$as_dir"'
42386else
42387 test -d ./-p && rmdir ./-p
42388 as_mkdir_p=false
42389fi
42390
42391
42392# as_fn_executable_p FILE
42393# -----------------------
42394# Test if FILE is an executable regular file.
42395as_fn_executable_p ()
42396{
42397 test -f "$1" && test -x "$1"
42398} # as_fn_executable_p
42399as_test_x='test -x'
42400as_executable_p=as_fn_executable_p
42401
42402# Sed expression to map a string onto a valid CPP name.
42403as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42404
42405# Sed expression to map a string onto a valid variable name.
42406as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42407
42408
42409exec 6>&1
42410## ----------------------------------- ##
42411## Main body of $CONFIG_STATUS script. ##
42412## ----------------------------------- ##
42413_ASEOF
42414test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42415
42416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42417# Save the log message, to keep $0 and so on meaningful, and to
42418# report actual input values of CONFIG_FILES etc. instead of their
42419# values after options handling.
42420ac_log="
42421This file was extended by curl $as_me -, which was
42422generated by GNU Autoconf 2.69. Invocation command line was
42423
42424 CONFIG_FILES = $CONFIG_FILES
42425 CONFIG_HEADERS = $CONFIG_HEADERS
42426 CONFIG_LINKS = $CONFIG_LINKS
42427 CONFIG_COMMANDS = $CONFIG_COMMANDS
42428 $ $0 $@
42429
42430on `(hostname || uname -n) 2>/dev/null | sed 1q`
42431"
42432
42433_ACEOF
42434
42435case $ac_config_files in *"
42436"*) set x $ac_config_files; shift; ac_config_files=$*;;
42437esac
42438
42439case $ac_config_headers in *"
42440"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42441esac
42442
42443
42444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42445# Files that config.status was made for.
42446config_files="$ac_config_files"
42447config_headers="$ac_config_headers"
42448config_commands="$ac_config_commands"
42449
42450_ACEOF
42451
42452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42453ac_cs_usage="\
42454\`$as_me' instantiates files and other configuration actions
42455from templates according to the current configuration. Unless the files
42456and actions are specified as TAGs, all are instantiated by default.
42457
42458Usage: $0 [OPTION]... [TAG]...
42459
42460 -h, --help print this help, then exit
42461 -V, --version print version number and configuration settings, then exit
42462 --config print configuration, then exit
42463 -q, --quiet, --silent
42464 do not print progress messages
42465 -d, --debug don't remove temporary files
42466 --recheck update $as_me by reconfiguring in the same conditions
42467 --file=FILE[:TEMPLATE]
42468 instantiate the configuration file FILE
42469 --header=FILE[:TEMPLATE]
42470 instantiate the configuration header FILE
42471
42472Configuration files:
42473$config_files
42474
42475Configuration headers:
42476$config_headers
42477
42478Configuration commands:
42479$config_commands
42480
42481Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42482
42483_ACEOF
42484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42485ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42486ac_cs_version="\\
42487curl config.status -
42488configured by $0, generated by GNU Autoconf 2.69,
42489 with options \\"\$ac_cs_config\\"
42490
42491Copyright (C) 2012 Free Software Foundation, Inc.
42492This config.status script is free software; the Free Software Foundation
42493gives unlimited permission to copy, distribute and modify it."
42494
42495ac_pwd='$ac_pwd'
42496srcdir='$srcdir'
42497INSTALL='$INSTALL'
42498MKDIR_P='$MKDIR_P'
42499AWK='$AWK'
42500test -n "\$AWK" || AWK=awk
42501_ACEOF
42502
42503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42504# The default lists apply if the user does not specify any file.
42505ac_need_defaults=:
42506while test $# != 0
42507do
42508 case $1 in
42509 --*=?*)
42510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42512 ac_shift=:
42513 ;;
42514 --*=)
42515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42516 ac_optarg=
42517 ac_shift=:
42518 ;;
42519 *)
42520 ac_option=$1
42521 ac_optarg=$2
42522 ac_shift=shift
42523 ;;
42524 esac
42525
42526 case $ac_option in
42527 # Handling of the options.
42528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42529 ac_cs_recheck=: ;;
42530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42531 $as_echo "$ac_cs_version"; exit ;;
42532 --config | --confi | --conf | --con | --co | --c )
42533 $as_echo "$ac_cs_config"; exit ;;
42534 --debug | --debu | --deb | --de | --d | -d )
42535 debug=: ;;
42536 --file | --fil | --fi | --f )
42537 $ac_shift
42538 case $ac_optarg in
42539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42540 '') as_fn_error $? "missing file argument" ;;
42541 esac
42542 as_fn_append CONFIG_FILES " '$ac_optarg'"
42543 ac_need_defaults=false;;
42544 --header | --heade | --head | --hea )
42545 $ac_shift
42546 case $ac_optarg in
42547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42548 esac
42549 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42550 ac_need_defaults=false;;
42551 --he | --h)
42552 # Conflict between --help and --header
42553 as_fn_error $? "ambiguous option: \`$1'
42554Try \`$0 --help' for more information.";;
42555 --help | --hel | -h )
42556 $as_echo "$ac_cs_usage"; exit ;;
42557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42559 ac_cs_silent=: ;;
42560
42561 # This is an error.
42562 -*) as_fn_error $? "unrecognized option: \`$1'
42563Try \`$0 --help' for more information." ;;
42564
42565 *) as_fn_append ac_config_targets " $1"
42566 ac_need_defaults=false ;;
42567
42568 esac
42569 shift
42570done
42571
42572ac_configure_extra_args=
42573
42574if $ac_cs_silent; then
42575 exec 6>/dev/null
42576 ac_configure_extra_args="$ac_configure_extra_args --silent"
42577fi
42578
42579_ACEOF
42580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42581if \$ac_cs_recheck; then
42582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42583 shift
42584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42585 CONFIG_SHELL='$SHELL'
42586 export CONFIG_SHELL
42587 exec "\$@"
42588fi
42589
42590_ACEOF
42591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42592exec 5>>config.log
42593{
42594 echo
42595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42596## Running $as_me. ##
42597_ASBOX
42598 $as_echo "$ac_log"
42599} >&5
42600
42601_ACEOF
42602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42603#
42604# INIT-COMMANDS
42605#
42606AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42607
42608
42609# The HP-UX ksh and POSIX shell print the target directory to stdout
42610# if CDPATH is set.
42611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42612
42613sed_quote_subst='$sed_quote_subst'
42614double_quote_subst='$double_quote_subst'
42615delay_variable_subst='$delay_variable_subst'
42616macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42617macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42618AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42619DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42620OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42621enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42622enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42623pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42624enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42625shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42626SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42627ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42628PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42629host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42630host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42631host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42632build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42633build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42634build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42635SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42636Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42637GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42638EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42639FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42640LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42641NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42642LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42643max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42644ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42645exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42646lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42647lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42648lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42649lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42650lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42651reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42652reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42653deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42654file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42655file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42656want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42657sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42658AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42659AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42660archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42661STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42662RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42663old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42664old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42665old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42666lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42667CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42668CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42669compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42670GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42671lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42672lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42673lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42674lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42675lt_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"`'
42676lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42677nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42678lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42679lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42680objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42681MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42682lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42683lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42684lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42685lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42686lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42687need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42688MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42689DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42690NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42691LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42692OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42693OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42694libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42695shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42696extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42697archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42698enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42699export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42700whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42701compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42702old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42703old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42704archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42705archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42706module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42707module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42708with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42709allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42710no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42711hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42712hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42713hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42714hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42715hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42716hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42717hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42718inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42719link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42720always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42721export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42722exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42723include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42724prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42725postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42726file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42727variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42728need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42729need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42730version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42731runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42732shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42733shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42734libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42735library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42736soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42737install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42738postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42739postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42740finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42741finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42742hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42743sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42744configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42745configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42746hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42747enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42748enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42749enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42750old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42751striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42752
42753LTCC='$LTCC'
42754LTCFLAGS='$LTCFLAGS'
42755compiler='$compiler_DEFAULT'
42756
42757# A function that is used when there is no print builtin or printf.
42758func_fallback_echo ()
42759{
42760 eval 'cat <<_LTECHO_EOF
42761\$1
42762_LTECHO_EOF'
42763}
42764
42765# Quote evaled strings.
42766for var in AS \
42767DLLTOOL \
42768OBJDUMP \
42769SHELL \
42770ECHO \
42771PATH_SEPARATOR \
42772SED \
42773GREP \
42774EGREP \
42775FGREP \
42776LD \
42777NM \
42778LN_S \
42779lt_SP2NL \
42780lt_NL2SP \
42781reload_flag \
42782deplibs_check_method \
42783file_magic_cmd \
42784file_magic_glob \
42785want_nocaseglob \
42786sharedlib_from_linklib_cmd \
42787AR \
42788AR_FLAGS \
42789archiver_list_spec \
42790STRIP \
42791RANLIB \
42792CC \
42793CFLAGS \
42794compiler \
42795lt_cv_sys_global_symbol_pipe \
42796lt_cv_sys_global_symbol_to_cdecl \
42797lt_cv_sys_global_symbol_to_import \
42798lt_cv_sys_global_symbol_to_c_name_address \
42799lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42800lt_cv_nm_interface \
42801nm_file_list_spec \
42802lt_cv_truncate_bin \
42803lt_prog_compiler_no_builtin_flag \
42804lt_prog_compiler_pic \
42805lt_prog_compiler_wl \
42806lt_prog_compiler_static \
42807lt_cv_prog_compiler_c_o \
42808need_locks \
42809MANIFEST_TOOL \
42810DSYMUTIL \
42811NMEDIT \
42812LIPO \
42813OTOOL \
42814OTOOL64 \
42815shrext_cmds \
42816export_dynamic_flag_spec \
42817whole_archive_flag_spec \
42818compiler_needs_object \
42819with_gnu_ld \
42820allow_undefined_flag \
42821no_undefined_flag \
42822hardcode_libdir_flag_spec \
42823hardcode_libdir_separator \
42824exclude_expsyms \
42825include_expsyms \
42826file_list_spec \
42827variables_saved_for_relink \
42828libname_spec \
42829library_names_spec \
42830soname_spec \
42831install_override_mode \
42832finish_eval \
42833old_striplib \
42834striplib; do
42835 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42836 *[\\\\\\\`\\"\\\$]*)
42837 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42838 ;;
42839 *)
42840 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42841 ;;
42842 esac
42843done
42844
42845# Double-quote double-evaled strings.
42846for var in reload_cmds \
42847old_postinstall_cmds \
42848old_postuninstall_cmds \
42849old_archive_cmds \
42850extract_expsyms_cmds \
42851old_archive_from_new_cmds \
42852old_archive_from_expsyms_cmds \
42853archive_cmds \
42854archive_expsym_cmds \
42855module_cmds \
42856module_expsym_cmds \
42857export_symbols_cmds \
42858prelink_cmds \
42859postlink_cmds \
42860postinstall_cmds \
42861postuninstall_cmds \
42862finish_cmds \
42863sys_lib_search_path_spec \
42864configure_time_dlsearch_path \
42865configure_time_lt_sys_library_path; do
42866 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42867 *[\\\\\\\`\\"\\\$]*)
42868 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42869 ;;
42870 *)
42871 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42872 ;;
42873 esac
42874done
42875
42876ac_aux_dir='$ac_aux_dir'
42877
42878# See if we are running on zsh, and set the options that allow our
42879# commands through without removal of \ escapes INIT.
42880if test -n "\${ZSH_VERSION+set}"; then
42881 setopt NO_GLOB_SUBST
42882fi
42883
42884
42885 PACKAGE='$PACKAGE'
42886 VERSION='$VERSION'
42887 RM='$RM'
42888 ofile='$ofile'
42889
42890
42891
42892
42893_ACEOF
42894
42895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42896
42897# Handling of arguments.
42898for ac_config_target in $ac_config_targets
42899do
42900 case $ac_config_target in
42901 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42902 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42903 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42905 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42906 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42907 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42908 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42909 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42910 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42911 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42912 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42913 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42914 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42915 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42916 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42917 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42918 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42919 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42920 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42921 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42922 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042923 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042924 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042925 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42926 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42927
42928 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42929 esac
42930done
42931
42932
42933# If the user did not use the arguments to specify the items to instantiate,
42934# then the envvar interface is used. Set only those that are not.
42935# We use the long form for the default assignment because of an extremely
42936# bizarre bug on SunOS 4.1.3.
42937if $ac_need_defaults; then
42938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42941fi
42942
42943# Have a temporary directory for convenience. Make it in the build tree
42944# simply because there is no reason against having it here, and in addition,
42945# creating and moving files from /tmp can sometimes cause problems.
42946# Hook for its removal unless debugging.
42947# Note that there is a small window in which the directory will not be cleaned:
42948# after its creation but before its name has been assigned to `$tmp'.
42949$debug ||
42950{
42951 tmp= ac_tmp=
42952 trap 'exit_status=$?
42953 : "${ac_tmp:=$tmp}"
42954 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42955' 0
42956 trap 'as_fn_exit 1' 1 2 13 15
42957}
42958# Create a (secure) tmp directory for tmp files.
42959
42960{
42961 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42962 test -d "$tmp"
42963} ||
42964{
42965 tmp=./conf$$-$RANDOM
42966 (umask 077 && mkdir "$tmp")
42967} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42968ac_tmp=$tmp
42969
42970# Set up the scripts for CONFIG_FILES section.
42971# No need to generate them if there are no CONFIG_FILES.
42972# This happens for instance with `./config.status config.h'.
42973if test -n "$CONFIG_FILES"; then
42974
42975
42976ac_cr=`echo X | tr X '\015'`
42977# On cygwin, bash can eat \r inside `` if the user requested igncr.
42978# But we know of no other shell where ac_cr would be empty at this
42979# point, so we can use a bashism as a fallback.
42980if test "x$ac_cr" = x; then
42981 eval ac_cr=\$\'\\r\'
42982fi
42983ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42984if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42985 ac_cs_awk_cr='\\r'
42986else
42987 ac_cs_awk_cr=$ac_cr
42988fi
42989
42990echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42991_ACEOF
42992
42993
42994{
42995 echo "cat >conf$$subs.awk <<_ACEOF" &&
42996 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42997 echo "_ACEOF"
42998} >conf$$subs.sh ||
42999 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
43000ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
43001ac_delim='%!_!# '
43002for ac_last_try in false false false false false :; do
43003 . ./conf$$subs.sh ||
43004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
43005
43006 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
43007 if test $ac_delim_n = $ac_delim_num; then
43008 break
43009 elif $ac_last_try; then
43010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
43011 else
43012 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43013 fi
43014done
43015rm -f conf$$subs.sh
43016
43017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43018cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
43019_ACEOF
43020sed -n '
43021h
43022s/^/S["/; s/!.*/"]=/
43023p
43024g
43025s/^[^!]*!//
43026:repl
43027t repl
43028s/'"$ac_delim"'$//
43029t delim
43030:nl
43031h
43032s/\(.\{148\}\)..*/\1/
43033t more1
43034s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
43035p
43036n
43037b repl
43038:more1
43039s/["\\]/\\&/g; s/^/"/; s/$/"\\/
43040p
43041g
43042s/.\{148\}//
43043t nl
43044:delim
43045h
43046s/\(.\{148\}\)..*/\1/
43047t more2
43048s/["\\]/\\&/g; s/^/"/; s/$/"/
43049p
43050b
43051:more2
43052s/["\\]/\\&/g; s/^/"/; s/$/"\\/
43053p
43054g
43055s/.\{148\}//
43056t delim
43057' <conf$$subs.awk | sed '
43058/^[^""]/{
43059 N
43060 s/\n//
43061}
43062' >>$CONFIG_STATUS || ac_write_fail=1
43063rm -f conf$$subs.awk
43064cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43065_ACAWK
43066cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
43067 for (key in S) S_is_set[key] = 1
43068 FS = ""
43069
43070}
43071{
43072 line = $ 0
43073 nfields = split(line, field, "@")
43074 substed = 0
43075 len = length(field[1])
43076 for (i = 2; i < nfields; i++) {
43077 key = field[i]
43078 keylen = length(key)
43079 if (S_is_set[key]) {
43080 value = S[key]
43081 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
43082 len += length(value) + length(field[++i])
43083 substed = 1
43084 } else
43085 len += 1 + keylen
43086 }
43087
43088 print line
43089}
43090
43091_ACAWK
43092_ACEOF
43093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43094if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
43095 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
43096else
43097 cat
43098fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
43099 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
43100_ACEOF
43101
43102# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
43103# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
43104# trailing colons and then remove the whole line if VPATH becomes empty
43105# (actually we leave an empty line to preserve line numbers).
43106if test "x$srcdir" = x.; then
43107 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
43108h
43109s///
43110s/^/:/
43111s/[ ]*$/:/
43112s/:\$(srcdir):/:/g
43113s/:\${srcdir}:/:/g
43114s/:@srcdir@:/:/g
43115s/^:*//
43116s/:*$//
43117x
43118s/\(=[ ]*\).*/\1/
43119G
43120s/\n//
43121s/^[^=]*=[ ]*$//
43122}'
43123fi
43124
43125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43126fi # test -n "$CONFIG_FILES"
43127
43128# Set up the scripts for CONFIG_HEADERS section.
43129# No need to generate them if there are no CONFIG_HEADERS.
43130# This happens for instance with `./config.status Makefile'.
43131if test -n "$CONFIG_HEADERS"; then
43132cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
43133BEGIN {
43134_ACEOF
43135
43136# Transform confdefs.h into an awk script `defines.awk', embedded as
43137# here-document in config.status, that substitutes the proper values into
43138# config.h.in to produce config.h.
43139
43140# Create a delimiter string that does not exist in confdefs.h, to ease
43141# handling of long lines.
43142ac_delim='%!_!# '
43143for ac_last_try in false false :; do
43144 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
43145 if test -z "$ac_tt"; then
43146 break
43147 elif $ac_last_try; then
43148 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
43149 else
43150 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43151 fi
43152done
43153
43154# For the awk script, D is an array of macro values keyed by name,
43155# likewise P contains macro parameters if any. Preserve backslash
43156# newline sequences.
43157
43158ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43159sed -n '
43160s/.\{148\}/&'"$ac_delim"'/g
43161t rset
43162:rset
43163s/^[ ]*#[ ]*define[ ][ ]*/ /
43164t def
43165d
43166:def
43167s/\\$//
43168t bsnl
43169s/["\\]/\\&/g
43170s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43171D["\1"]=" \3"/p
43172s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
43173d
43174:bsnl
43175s/["\\]/\\&/g
43176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43177D["\1"]=" \3\\\\\\n"\\/p
43178t cont
43179s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
43180t cont
43181d
43182:cont
43183n
43184s/.\{148\}/&'"$ac_delim"'/g
43185t clear
43186:clear
43187s/\\$//
43188t bsnlc
43189s/["\\]/\\&/g; s/^/"/; s/$/"/p
43190d
43191:bsnlc
43192s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
43193b cont
43194' <confdefs.h | sed '
43195s/'"$ac_delim"'/"\\\
43196"/g' >>$CONFIG_STATUS || ac_write_fail=1
43197
43198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43199 for (key in D) D_is_set[key] = 1
43200 FS = ""
43201}
43202/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43203 line = \$ 0
43204 split(line, arg, " ")
43205 if (arg[1] == "#") {
43206 defundef = arg[2]
43207 mac1 = arg[3]
43208 } else {
43209 defundef = substr(arg[1], 2)
43210 mac1 = arg[2]
43211 }
43212 split(mac1, mac2, "(") #)
43213 macro = mac2[1]
43214 prefix = substr(line, 1, index(line, defundef) - 1)
43215 if (D_is_set[macro]) {
43216 # Preserve the white space surrounding the "#".
43217 print prefix "define", macro P[macro] D[macro]
43218 next
43219 } else {
43220 # Replace #undef with comments. This is necessary, for example,
43221 # in the case of _POSIX_SOURCE, which is predefined and required
43222 # on some systems where configure will not decide to define it.
43223 if (defundef == "undef") {
43224 print "/*", prefix defundef, macro, "*/"
43225 next
43226 }
43227 }
43228}
43229{ print }
43230_ACAWK
43231_ACEOF
43232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43233 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43234fi # test -n "$CONFIG_HEADERS"
43235
43236
43237eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43238shift
43239for ac_tag
43240do
43241 case $ac_tag in
43242 :[FHLC]) ac_mode=$ac_tag; continue;;
43243 esac
43244 case $ac_mode$ac_tag in
43245 :[FHL]*:*);;
43246 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43247 :[FH]-) ac_tag=-:-;;
43248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43249 esac
43250 ac_save_IFS=$IFS
43251 IFS=:
43252 set x $ac_tag
43253 IFS=$ac_save_IFS
43254 shift
43255 ac_file=$1
43256 shift
43257
43258 case $ac_mode in
43259 :L) ac_source=$1;;
43260 :[FH])
43261 ac_file_inputs=
43262 for ac_f
43263 do
43264 case $ac_f in
43265 -) ac_f="$ac_tmp/stdin";;
43266 *) # Look for the file first in the build tree, then in the source tree
43267 # (if the path is not absolute). The absolute path cannot be DOS-style,
43268 # because $ac_f cannot contain `:'.
43269 test -f "$ac_f" ||
43270 case $ac_f in
43271 [\\/$]*) false;;
43272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43273 esac ||
43274 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43275 esac
43276 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43277 as_fn_append ac_file_inputs " '$ac_f'"
43278 done
43279
43280 # Let's still pretend it is `configure' which instantiates (i.e., don't
43281 # use $as_me), people would be surprised to read:
43282 # /* config.h. Generated by config.status. */
43283 configure_input='Generated from '`
43284 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43285 `' by configure.'
43286 if test x"$ac_file" != x-; then
43287 configure_input="$ac_file. $configure_input"
43288 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43289$as_echo "$as_me: creating $ac_file" >&6;}
43290 fi
43291 # Neutralize special characters interpreted by sed in replacement strings.
43292 case $configure_input in #(
43293 *\&* | *\|* | *\\* )
43294 ac_sed_conf_input=`$as_echo "$configure_input" |
43295 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43296 *) ac_sed_conf_input=$configure_input;;
43297 esac
43298
43299 case $ac_tag in
43300 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43301 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43302 esac
43303 ;;
43304 esac
43305
43306 ac_dir=`$as_dirname -- "$ac_file" ||
43307$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43308 X"$ac_file" : 'X\(//\)[^/]' \| \
43309 X"$ac_file" : 'X\(//\)$' \| \
43310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43311$as_echo X"$ac_file" |
43312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43313 s//\1/
43314 q
43315 }
43316 /^X\(\/\/\)[^/].*/{
43317 s//\1/
43318 q
43319 }
43320 /^X\(\/\/\)$/{
43321 s//\1/
43322 q
43323 }
43324 /^X\(\/\).*/{
43325 s//\1/
43326 q
43327 }
43328 s/.*/./; q'`
43329 as_dir="$ac_dir"; as_fn_mkdir_p
43330 ac_builddir=.
43331
43332case "$ac_dir" in
43333.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43334*)
43335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43336 # A ".." for each directory in $ac_dir_suffix.
43337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43338 case $ac_top_builddir_sub in
43339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43341 esac ;;
43342esac
43343ac_abs_top_builddir=$ac_pwd
43344ac_abs_builddir=$ac_pwd$ac_dir_suffix
43345# for backward compatibility:
43346ac_top_builddir=$ac_top_build_prefix
43347
43348case $srcdir in
43349 .) # We are building in place.
43350 ac_srcdir=.
43351 ac_top_srcdir=$ac_top_builddir_sub
43352 ac_abs_top_srcdir=$ac_pwd ;;
43353 [\\/]* | ?:[\\/]* ) # Absolute name.
43354 ac_srcdir=$srcdir$ac_dir_suffix;
43355 ac_top_srcdir=$srcdir
43356 ac_abs_top_srcdir=$srcdir ;;
43357 *) # Relative name.
43358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43359 ac_top_srcdir=$ac_top_build_prefix$srcdir
43360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43361esac
43362ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43363
43364
43365 case $ac_mode in
43366 :F)
43367 #
43368 # CONFIG_FILE
43369 #
43370
43371 case $INSTALL in
43372 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43373 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43374 esac
43375 ac_MKDIR_P=$MKDIR_P
43376 case $MKDIR_P in
43377 [\\/$]* | ?:[\\/]* ) ;;
43378 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43379 esac
43380_ACEOF
43381
43382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43383# If the template does not know about datarootdir, expand it.
43384# FIXME: This hack should be removed a few years after 2.60.
43385ac_datarootdir_hack=; ac_datarootdir_seen=
43386ac_sed_dataroot='
43387/datarootdir/ {
43388 p
43389 q
43390}
43391/@datadir@/p
43392/@docdir@/p
43393/@infodir@/p
43394/@localedir@/p
43395/@mandir@/p'
43396case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43397*datarootdir*) ac_datarootdir_seen=yes;;
43398*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43400$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43401_ACEOF
43402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43403 ac_datarootdir_hack='
43404 s&@datadir@&$datadir&g
43405 s&@docdir@&$docdir&g
43406 s&@infodir@&$infodir&g
43407 s&@localedir@&$localedir&g
43408 s&@mandir@&$mandir&g
43409 s&\\\${datarootdir}&$datarootdir&g' ;;
43410esac
43411_ACEOF
43412
43413# Neutralize VPATH when `$srcdir' = `.'.
43414# Shell code in configure.ac might set extrasub.
43415# FIXME: do we really want to maintain this feature?
43416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43417ac_sed_extra="$ac_vpsub
43418$extrasub
43419_ACEOF
43420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43421:t
43422/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43423s|@configure_input@|$ac_sed_conf_input|;t t
43424s&@top_builddir@&$ac_top_builddir_sub&;t t
43425s&@top_build_prefix@&$ac_top_build_prefix&;t t
43426s&@srcdir@&$ac_srcdir&;t t
43427s&@abs_srcdir@&$ac_abs_srcdir&;t t
43428s&@top_srcdir@&$ac_top_srcdir&;t t
43429s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43430s&@builddir@&$ac_builddir&;t t
43431s&@abs_builddir@&$ac_abs_builddir&;t t
43432s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43433s&@INSTALL@&$ac_INSTALL&;t t
43434s&@MKDIR_P@&$ac_MKDIR_P&;t t
43435$ac_datarootdir_hack
43436"
43437eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43438 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43439
43440test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43441 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43442 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43443 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43445which seems to be undefined. Please make sure it is defined" >&5
43446$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43447which seems to be undefined. Please make sure it is defined" >&2;}
43448
43449 rm -f "$ac_tmp/stdin"
43450 case $ac_file in
43451 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43452 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43453 esac \
43454 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43455 ;;
43456 :H)
43457 #
43458 # CONFIG_HEADER
43459 #
43460 if test x"$ac_file" != x-; then
43461 {
43462 $as_echo "/* $configure_input */" \
43463 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43464 } >"$ac_tmp/config.h" \
43465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43466 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43467 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43468$as_echo "$as_me: $ac_file is unchanged" >&6;}
43469 else
43470 rm -f "$ac_file"
43471 mv "$ac_tmp/config.h" "$ac_file" \
43472 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43473 fi
43474 else
43475 $as_echo "/* $configure_input */" \
43476 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43477 || as_fn_error $? "could not create -" "$LINENO" 5
43478 fi
43479# Compute "$ac_file"'s index in $config_headers.
43480_am_arg="$ac_file"
43481_am_stamp_count=1
43482for _am_header in $config_headers :; do
43483 case $_am_header in
43484 $_am_arg | $_am_arg:* )
43485 break ;;
43486 * )
43487 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43488 esac
43489done
43490echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43491$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43492 X"$_am_arg" : 'X\(//\)[^/]' \| \
43493 X"$_am_arg" : 'X\(//\)$' \| \
43494 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43495$as_echo X"$_am_arg" |
43496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43497 s//\1/
43498 q
43499 }
43500 /^X\(\/\/\)[^/].*/{
43501 s//\1/
43502 q
43503 }
43504 /^X\(\/\/\)$/{
43505 s//\1/
43506 q
43507 }
43508 /^X\(\/\).*/{
43509 s//\1/
43510 q
43511 }
43512 s/.*/./; q'`/stamp-h$_am_stamp_count
43513 ;;
43514
43515 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43516$as_echo "$as_me: executing $ac_file commands" >&6;}
43517 ;;
43518 esac
43519
43520
43521 case $ac_file$ac_mode in
43522 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43523 # Older Autoconf quotes --file arguments for eval, but not when files
43524 # are listed without --file. Let's play safe and only enable the eval
43525 # if we detect the quoting.
43526 case $CONFIG_FILES in
43527 *\'*) eval set x "$CONFIG_FILES" ;;
43528 *) set x $CONFIG_FILES ;;
43529 esac
43530 shift
43531 for mf
43532 do
43533 # Strip MF so we end up with the name of the file.
43534 mf=`echo "$mf" | sed -e 's/:.*$//'`
43535 # Check whether this is an Automake generated Makefile or not.
43536 # We used to match only the files named 'Makefile.in', but
43537 # some people rename them; so instead we look at the file content.
43538 # Grep'ing the first line is not enough: some people post-process
43539 # each Makefile.in and add a new line on top of each file to say so.
43540 # Grep'ing the whole file is not good either: AIX grep has a line
43541 # limit of 2048, but all sed's we know have understand at least 4000.
43542 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43543 dirpart=`$as_dirname -- "$mf" ||
43544$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43545 X"$mf" : 'X\(//\)[^/]' \| \
43546 X"$mf" : 'X\(//\)$' \| \
43547 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43548$as_echo X"$mf" |
43549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43550 s//\1/
43551 q
43552 }
43553 /^X\(\/\/\)[^/].*/{
43554 s//\1/
43555 q
43556 }
43557 /^X\(\/\/\)$/{
43558 s//\1/
43559 q
43560 }
43561 /^X\(\/\).*/{
43562 s//\1/
43563 q
43564 }
43565 s/.*/./; q'`
43566 else
43567 continue
43568 fi
43569 # Extract the definition of DEPDIR, am__include, and am__quote
43570 # from the Makefile without running 'make'.
43571 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43572 test -z "$DEPDIR" && continue
43573 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43574 test -z "$am__include" && continue
43575 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43576 # Find all dependency output files, they are included files with
43577 # $(DEPDIR) in their names. We invoke sed twice because it is the
43578 # simplest approach to changing $(DEPDIR) to its actual value in the
43579 # expansion.
43580 for file in `sed -n "
43581 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43582 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43583 # Make sure the directory exists.
43584 test -f "$dirpart/$file" && continue
43585 fdir=`$as_dirname -- "$file" ||
43586$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43587 X"$file" : 'X\(//\)[^/]' \| \
43588 X"$file" : 'X\(//\)$' \| \
43589 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43590$as_echo X"$file" |
43591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43592 s//\1/
43593 q
43594 }
43595 /^X\(\/\/\)[^/].*/{
43596 s//\1/
43597 q
43598 }
43599 /^X\(\/\/\)$/{
43600 s//\1/
43601 q
43602 }
43603 /^X\(\/\).*/{
43604 s//\1/
43605 q
43606 }
43607 s/.*/./; q'`
43608 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43609 # echo "creating $dirpart/$file"
43610 echo '# dummy' > "$dirpart/$file"
43611 done
43612 done
43613}
43614 ;;
43615 "libtool":C)
43616
43617 # See if we are running on zsh, and set the options that allow our
43618 # commands through without removal of \ escapes.
43619 if test -n "${ZSH_VERSION+set}"; then
43620 setopt NO_GLOB_SUBST
43621 fi
43622
43623 cfgfile=${ofile}T
43624 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43625 $RM "$cfgfile"
43626
43627 cat <<_LT_EOF >> "$cfgfile"
43628#! $SHELL
43629# Generated automatically by $as_me ($PACKAGE) $VERSION
43630# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43631
43632# Provide generalized library-building support services.
43633# Written by Gordon Matzigkeit, 1996
43634
43635# Copyright (C) 2014 Free Software Foundation, Inc.
43636# This is free software; see the source for copying conditions. There is NO
43637# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43638
43639# GNU Libtool is free software; you can redistribute it and/or modify
43640# it under the terms of the GNU General Public License as published by
43641# the Free Software Foundation; either version 2 of of the License, or
43642# (at your option) any later version.
43643#
43644# As a special exception to the GNU General Public License, if you
43645# distribute this file as part of a program or library that is built
43646# using GNU Libtool, you may include this file under the same
43647# distribution terms that you use for the rest of that program.
43648#
43649# GNU Libtool is distributed in the hope that it will be useful, but
43650# WITHOUT ANY WARRANTY; without even the implied warranty of
43651# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43652# GNU General Public License for more details.
43653#
43654# You should have received a copy of the GNU General Public License
43655# along with this program. If not, see <http://www.gnu.org/licenses/>.
43656
43657
43658# The names of the tagged configurations supported by this script.
43659available_tags=''
43660
43661# Configured defaults for sys_lib_dlsearch_path munging.
43662: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43663
43664# ### BEGIN LIBTOOL CONFIG
43665
43666# Which release of libtool.m4 was used?
43667macro_version=$macro_version
43668macro_revision=$macro_revision
43669
43670# Assembler program.
43671AS=$lt_AS
43672
43673# DLL creation program.
43674DLLTOOL=$lt_DLLTOOL
43675
43676# Object dumper program.
43677OBJDUMP=$lt_OBJDUMP
43678
43679# Whether or not to build shared libraries.
43680build_libtool_libs=$enable_shared
43681
43682# Whether or not to build static libraries.
43683build_old_libs=$enable_static
43684
43685# What type of objects to build.
43686pic_mode=$pic_mode
43687
43688# Whether or not to optimize for fast installation.
43689fast_install=$enable_fast_install
43690
43691# Shared archive member basename,for filename based shared library versioning on AIX.
43692shared_archive_member_spec=$shared_archive_member_spec
43693
43694# Shell to use when invoking shell scripts.
43695SHELL=$lt_SHELL
43696
43697# An echo program that protects backslashes.
43698ECHO=$lt_ECHO
43699
43700# The PATH separator for the build system.
43701PATH_SEPARATOR=$lt_PATH_SEPARATOR
43702
43703# The host system.
43704host_alias=$host_alias
43705host=$host
43706host_os=$host_os
43707
43708# The build system.
43709build_alias=$build_alias
43710build=$build
43711build_os=$build_os
43712
43713# A sed program that does not truncate output.
43714SED=$lt_SED
43715
43716# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43717Xsed="\$SED -e 1s/^X//"
43718
43719# A grep program that handles long lines.
43720GREP=$lt_GREP
43721
43722# An ERE matcher.
43723EGREP=$lt_EGREP
43724
43725# A literal string matcher.
43726FGREP=$lt_FGREP
43727
43728# A BSD- or MS-compatible name lister.
43729NM=$lt_NM
43730
43731# Whether we need soft or hard links.
43732LN_S=$lt_LN_S
43733
43734# What is the maximum length of a command?
43735max_cmd_len=$max_cmd_len
43736
43737# Object file suffix (normally "o").
43738objext=$ac_objext
43739
43740# Executable file suffix (normally "").
43741exeext=$exeext
43742
43743# whether the shell understands "unset".
43744lt_unset=$lt_unset
43745
43746# turn spaces into newlines.
43747SP2NL=$lt_lt_SP2NL
43748
43749# turn newlines into spaces.
43750NL2SP=$lt_lt_NL2SP
43751
43752# convert \$build file names to \$host format.
43753to_host_file_cmd=$lt_cv_to_host_file_cmd
43754
43755# convert \$build files to toolchain format.
43756to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43757
43758# Method to check whether dependent libraries are shared objects.
43759deplibs_check_method=$lt_deplibs_check_method
43760
43761# Command to use when deplibs_check_method = "file_magic".
43762file_magic_cmd=$lt_file_magic_cmd
43763
43764# How to find potential files when deplibs_check_method = "file_magic".
43765file_magic_glob=$lt_file_magic_glob
43766
43767# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43768want_nocaseglob=$lt_want_nocaseglob
43769
43770# Command to associate shared and link libraries.
43771sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43772
43773# The archiver.
43774AR=$lt_AR
43775
43776# Flags to create an archive.
43777AR_FLAGS=$lt_AR_FLAGS
43778
43779# How to feed a file listing to the archiver.
43780archiver_list_spec=$lt_archiver_list_spec
43781
43782# A symbol stripping program.
43783STRIP=$lt_STRIP
43784
43785# Commands used to install an old-style archive.
43786RANLIB=$lt_RANLIB
43787old_postinstall_cmds=$lt_old_postinstall_cmds
43788old_postuninstall_cmds=$lt_old_postuninstall_cmds
43789
43790# Whether to use a lock for old archive extraction.
43791lock_old_archive_extraction=$lock_old_archive_extraction
43792
43793# A C compiler.
43794LTCC=$lt_CC
43795
43796# LTCC compiler flags.
43797LTCFLAGS=$lt_CFLAGS
43798
43799# Take the output of nm and produce a listing of raw symbols and C names.
43800global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43801
43802# Transform the output of nm in a proper C declaration.
43803global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43804
43805# Transform the output of nm into a list of symbols to manually relocate.
43806global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43807
43808# Transform the output of nm in a C name address pair.
43809global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43810
43811# Transform the output of nm in a C name address pair when lib prefix is needed.
43812global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43813
43814# The name lister interface.
43815nm_interface=$lt_lt_cv_nm_interface
43816
43817# Specify filename containing input files for \$NM.
43818nm_file_list_spec=$lt_nm_file_list_spec
43819
43820# The root where to search for dependent libraries,and where our libraries should be installed.
43821lt_sysroot=$lt_sysroot
43822
43823# Command to truncate a binary pipe.
43824lt_truncate_bin=$lt_lt_cv_truncate_bin
43825
43826# The name of the directory that contains temporary libtool files.
43827objdir=$objdir
43828
43829# Used to examine libraries when file_magic_cmd begins with "file".
43830MAGIC_CMD=$MAGIC_CMD
43831
43832# Must we lock files when doing compilation?
43833need_locks=$lt_need_locks
43834
43835# Manifest tool.
43836MANIFEST_TOOL=$lt_MANIFEST_TOOL
43837
43838# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43839DSYMUTIL=$lt_DSYMUTIL
43840
43841# Tool to change global to local symbols on Mac OS X.
43842NMEDIT=$lt_NMEDIT
43843
43844# Tool to manipulate fat objects and archives on Mac OS X.
43845LIPO=$lt_LIPO
43846
43847# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43848OTOOL=$lt_OTOOL
43849
43850# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43851OTOOL64=$lt_OTOOL64
43852
43853# Old archive suffix (normally "a").
43854libext=$libext
43855
43856# Shared library suffix (normally ".so").
43857shrext_cmds=$lt_shrext_cmds
43858
43859# The commands to extract the exported symbol list from a shared archive.
43860extract_expsyms_cmds=$lt_extract_expsyms_cmds
43861
43862# Variables whose values should be saved in libtool wrapper scripts and
43863# restored at link time.
43864variables_saved_for_relink=$lt_variables_saved_for_relink
43865
43866# Do we need the "lib" prefix for modules?
43867need_lib_prefix=$need_lib_prefix
43868
43869# Do we need a version for libraries?
43870need_version=$need_version
43871
43872# Library versioning type.
43873version_type=$version_type
43874
43875# Shared library runtime path variable.
43876runpath_var=$runpath_var
43877
43878# Shared library path variable.
43879shlibpath_var=$shlibpath_var
43880
43881# Is shlibpath searched before the hard-coded library search path?
43882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43883
43884# Format of library name prefix.
43885libname_spec=$lt_libname_spec
43886
43887# List of archive names. First name is the real one, the rest are links.
43888# The last name is the one that the linker finds with -lNAME
43889library_names_spec=$lt_library_names_spec
43890
43891# The coded name of the library, if different from the real name.
43892soname_spec=$lt_soname_spec
43893
43894# Permission mode override for installation of shared libraries.
43895install_override_mode=$lt_install_override_mode
43896
43897# Command to use after installation of a shared archive.
43898postinstall_cmds=$lt_postinstall_cmds
43899
43900# Command to use after uninstallation of a shared archive.
43901postuninstall_cmds=$lt_postuninstall_cmds
43902
43903# Commands used to finish a libtool library installation in a directory.
43904finish_cmds=$lt_finish_cmds
43905
43906# As "finish_cmds", except a single script fragment to be evaled but
43907# not shown.
43908finish_eval=$lt_finish_eval
43909
43910# Whether we should hardcode library paths into libraries.
43911hardcode_into_libs=$hardcode_into_libs
43912
43913# Compile-time system search path for libraries.
43914sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43915
43916# Detected run-time system search path for libraries.
43917sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43918
43919# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43920configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43921
43922# Whether dlopen is supported.
43923dlopen_support=$enable_dlopen
43924
43925# Whether dlopen of programs is supported.
43926dlopen_self=$enable_dlopen_self
43927
43928# Whether dlopen of statically linked programs is supported.
43929dlopen_self_static=$enable_dlopen_self_static
43930
43931# Commands to strip libraries.
43932old_striplib=$lt_old_striplib
43933striplib=$lt_striplib
43934
43935
43936# The linker used to build libraries.
43937LD=$lt_LD
43938
43939# How to create reloadable object files.
43940reload_flag=$lt_reload_flag
43941reload_cmds=$lt_reload_cmds
43942
43943# Commands used to build an old-style archive.
43944old_archive_cmds=$lt_old_archive_cmds
43945
43946# A language specific compiler.
43947CC=$lt_compiler
43948
43949# Is the compiler the GNU compiler?
43950with_gcc=$GCC
43951
43952# Compiler flag to turn off builtin functions.
43953no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43954
43955# Additional compiler flags for building library objects.
43956pic_flag=$lt_lt_prog_compiler_pic
43957
43958# How to pass a linker flag through the compiler.
43959wl=$lt_lt_prog_compiler_wl
43960
43961# Compiler flag to prevent dynamic linking.
43962link_static_flag=$lt_lt_prog_compiler_static
43963
43964# Does compiler simultaneously support -c and -o options?
43965compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43966
43967# Whether or not to add -lc for building shared libraries.
43968build_libtool_need_lc=$archive_cmds_need_lc
43969
43970# Whether or not to disallow shared libs when runtime libs are static.
43971allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43972
43973# Compiler flag to allow reflexive dlopens.
43974export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43975
43976# Compiler flag to generate shared objects directly from archives.
43977whole_archive_flag_spec=$lt_whole_archive_flag_spec
43978
43979# Whether the compiler copes with passing no objects directly.
43980compiler_needs_object=$lt_compiler_needs_object
43981
43982# Create an old-style archive from a shared archive.
43983old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43984
43985# Create a temporary old-style archive to link instead of a shared archive.
43986old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43987
43988# Commands used to build a shared archive.
43989archive_cmds=$lt_archive_cmds
43990archive_expsym_cmds=$lt_archive_expsym_cmds
43991
43992# Commands used to build a loadable module if different from building
43993# a shared archive.
43994module_cmds=$lt_module_cmds
43995module_expsym_cmds=$lt_module_expsym_cmds
43996
43997# Whether we are building with GNU ld or not.
43998with_gnu_ld=$lt_with_gnu_ld
43999
44000# Flag that allows shared libraries with undefined symbols to be built.
44001allow_undefined_flag=$lt_allow_undefined_flag
44002
44003# Flag that enforces no undefined symbols.
44004no_undefined_flag=$lt_no_undefined_flag
44005
44006# Flag to hardcode \$libdir into a binary during linking.
44007# This must work even if \$libdir does not exist
44008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
44009
44010# Whether we need a single "-rpath" flag with a separated argument.
44011hardcode_libdir_separator=$lt_hardcode_libdir_separator
44012
44013# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
44014# DIR into the resulting binary.
44015hardcode_direct=$hardcode_direct
44016
44017# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
44018# DIR into the resulting binary and the resulting library dependency is
44019# "absolute",i.e impossible to change by setting \$shlibpath_var if the
44020# library is relocated.
44021hardcode_direct_absolute=$hardcode_direct_absolute
44022
44023# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
44024# into the resulting binary.
44025hardcode_minus_L=$hardcode_minus_L
44026
44027# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
44028# into the resulting binary.
44029hardcode_shlibpath_var=$hardcode_shlibpath_var
44030
44031# Set to "yes" if building a shared library automatically hardcodes DIR
44032# into the library and all subsequent libraries and executables linked
44033# against it.
44034hardcode_automatic=$hardcode_automatic
44035
44036# Set to yes if linker adds runtime paths of dependent libraries
44037# to runtime path list.
44038inherit_rpath=$inherit_rpath
44039
44040# Whether libtool must link a program against all its dependency libraries.
44041link_all_deplibs=$link_all_deplibs
44042
44043# Set to "yes" if exported symbols are required.
44044always_export_symbols=$always_export_symbols
44045
44046# The commands to list exported symbols.
44047export_symbols_cmds=$lt_export_symbols_cmds
44048
44049# Symbols that should not be listed in the preloaded symbols.
44050exclude_expsyms=$lt_exclude_expsyms
44051
44052# Symbols that must always be exported.
44053include_expsyms=$lt_include_expsyms
44054
44055# Commands necessary for linking programs (against libraries) with templates.
44056prelink_cmds=$lt_prelink_cmds
44057
44058# Commands necessary for finishing linking programs.
44059postlink_cmds=$lt_postlink_cmds
44060
44061# Specify filename containing input files.
44062file_list_spec=$lt_file_list_spec
44063
44064# How to hardcode a shared library path into an executable.
44065hardcode_action=$hardcode_action
44066
44067# ### END LIBTOOL CONFIG
44068
44069_LT_EOF
44070
44071 cat <<'_LT_EOF' >> "$cfgfile"
44072
44073# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
44074
44075# func_munge_path_list VARIABLE PATH
44076# -----------------------------------
44077# VARIABLE is name of variable containing _space_ separated list of
44078# directories to be munged by the contents of PATH, which is string
44079# having a format:
44080# "DIR[:DIR]:"
44081# string "DIR[ DIR]" will be prepended to VARIABLE
44082# ":DIR[:DIR]"
44083# string "DIR[ DIR]" will be appended to VARIABLE
44084# "DIRP[:DIRP]::[DIRA:]DIRA"
44085# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
44086# "DIRA[ DIRA]" will be appended to VARIABLE
44087# "DIR[:DIR]"
44088# VARIABLE will be replaced by "DIR[ DIR]"
44089func_munge_path_list ()
44090{
44091 case x$2 in
44092 x)
44093 ;;
44094 *:)
44095 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
44096 ;;
44097 x:*)
44098 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
44099 ;;
44100 *::*)
44101 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
44102 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
44103 ;;
44104 *)
44105 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
44106 ;;
44107 esac
44108}
44109
44110
44111# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
44112func_cc_basename ()
44113{
44114 for cc_temp in $*""; do
44115 case $cc_temp in
44116 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44117 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44118 \-*) ;;
44119 *) break;;
44120 esac
44121 done
44122 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
44123}
44124
44125
44126# ### END FUNCTIONS SHARED WITH CONFIGURE
44127
44128_LT_EOF
44129
44130 case $host_os in
44131 aix3*)
44132 cat <<\_LT_EOF >> "$cfgfile"
44133# AIX sometimes has problems with the GCC collect2 program. For some
44134# reason, if we set the COLLECT_NAMES environment variable, the problems
44135# vanish in a puff of smoke.
44136if test set != "${COLLECT_NAMES+set}"; then
44137 COLLECT_NAMES=
44138 export COLLECT_NAMES
44139fi
44140_LT_EOF
44141 ;;
44142 esac
44143
44144
44145ltmain=$ac_aux_dir/ltmain.sh
44146
44147
44148 # We use sed instead of cat because bash on DJGPP gets confused if
44149 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44150 # text mode, it properly converts lines to CR/LF. This bash problem
44151 # is reportedly fixed, but why not run on old versions too?
44152 sed '$q' "$ltmain" >> "$cfgfile" \
44153 || (rm -f "$cfgfile"; exit 1)
44154
44155 mv -f "$cfgfile" "$ofile" ||
44156 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44157 chmod +x "$ofile"
44158
44159 ;;
44160
44161 esac
44162done # for ac_tag
44163
44164
44165as_fn_exit 0
44166_ACEOF
44167ac_clean_files=$ac_clean_files_save
44168
44169test $ac_write_fail = 0 ||
44170 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
44171
44172
44173# configure is writing to config.log, and then calls config.status.
44174# config.status does its own redirection, appending to config.log.
44175# Unfortunately, on DOS this fails, as config.log is still kept open
44176# by configure, so config.status won't be able to write to it; its
44177# output is simply discarded. So we exec the FD to /dev/null,
44178# effectively closing config.log, so it can be properly (re)opened and
44179# appended to by config.status. When coming back to configure, we
44180# need to make the FD available again.
44181if test "$no_create" != yes; then
44182 ac_cs_success=:
44183 ac_config_status_args=
44184 test "$silent" = yes &&
44185 ac_config_status_args="$ac_config_status_args --quiet"
44186 exec 5>/dev/null
44187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44188 exec 5>>config.log
44189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44190 # would make configure fail if this is the last instruction.
44191 $ac_cs_success || as_fn_exit 1
44192fi
44193
44194#
44195# CONFIG_SUBDIRS section.
44196#
44197if test "$no_recursion" != yes; then
44198
44199 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
44200 # so they do not pile up.
44201 ac_sub_configure_args=
44202 ac_prev=
44203 eval "set x $ac_configure_args"
44204 shift
44205 for ac_arg
44206 do
44207 if test -n "$ac_prev"; then
44208 ac_prev=
44209 continue
44210 fi
44211 case $ac_arg in
44212 -cache-file | --cache-file | --cache-fil | --cache-fi \
44213 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44214 ac_prev=cache_file ;;
44215 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44216 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44217 | --c=*)
44218 ;;
44219 --config-cache | -C)
44220 ;;
44221 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44222 ac_prev=srcdir ;;
44223 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44224 ;;
44225 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44226 ac_prev=prefix ;;
44227 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44228 ;;
44229 --disable-option-checking)
44230 ;;
44231 *)
44232 case $ac_arg in
44233 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44234 esac
44235 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44236 esac
44237 done
44238
44239 # Always prepend --prefix to ensure using the same prefix
44240 # in subdir configurations.
44241 ac_arg="--prefix=$prefix"
44242 case $ac_arg in
44243 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44244 esac
44245 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44246
44247 # Pass --silent
44248 if test "$silent" = yes; then
44249 ac_sub_configure_args="--silent $ac_sub_configure_args"
44250 fi
44251
44252 # Always prepend --disable-option-checking to silence warnings, since
44253 # different subdirs can have different --enable and --with options.
44254 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44255
44256 ac_popdir=`pwd`
44257 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44258
44259 # Do not complain, so a configure script can configure whichever
44260 # parts of a large source tree are present.
44261 test -d "$srcdir/$ac_dir" || continue
44262
44263 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44264 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44265 $as_echo "$ac_msg" >&6
44266 as_dir="$ac_dir"; as_fn_mkdir_p
44267 ac_builddir=.
44268
44269case "$ac_dir" in
44270.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44271*)
44272 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44273 # A ".." for each directory in $ac_dir_suffix.
44274 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44275 case $ac_top_builddir_sub in
44276 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44277 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44278 esac ;;
44279esac
44280ac_abs_top_builddir=$ac_pwd
44281ac_abs_builddir=$ac_pwd$ac_dir_suffix
44282# for backward compatibility:
44283ac_top_builddir=$ac_top_build_prefix
44284
44285case $srcdir in
44286 .) # We are building in place.
44287 ac_srcdir=.
44288 ac_top_srcdir=$ac_top_builddir_sub
44289 ac_abs_top_srcdir=$ac_pwd ;;
44290 [\\/]* | ?:[\\/]* ) # Absolute name.
44291 ac_srcdir=$srcdir$ac_dir_suffix;
44292 ac_top_srcdir=$srcdir
44293 ac_abs_top_srcdir=$srcdir ;;
44294 *) # Relative name.
44295 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44296 ac_top_srcdir=$ac_top_build_prefix$srcdir
44297 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44298esac
44299ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44300
44301
44302 cd "$ac_dir"
44303
44304 # Check for guested configure; otherwise get Cygnus style configure.
44305 if test -f "$ac_srcdir/configure.gnu"; then
44306 ac_sub_configure=$ac_srcdir/configure.gnu
44307 elif test -f "$ac_srcdir/configure"; then
44308 ac_sub_configure=$ac_srcdir/configure
44309 elif test -f "$ac_srcdir/configure.in"; then
44310 # This should be Cygnus configure.
44311 ac_sub_configure=$ac_aux_dir/configure
44312 else
44313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44314$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44315 ac_sub_configure=
44316 fi
44317
44318 # The recursion is here.
44319 if test -n "$ac_sub_configure"; then
44320 # Make the cache file name correct relative to the subdirectory.
44321 case $cache_file in
44322 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44323 *) # Relative name.
44324 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44325 esac
44326
44327 { $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
44328$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44329 # The eval makes quoting arguments work.
44330 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44331 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44332 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44333 fi
44334
44335 cd "$ac_popdir"
44336 done
44337fi
44338if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44340$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44341fi
44342
44343
44344
44345 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44346 if test -z "$tmp_cpp"; then
44347 tmp_cpp='cpp'
44348 fi
44349 cat >./tests/configurehelp.pm <<_EOF
44350# This is a generated file. Do not edit.
44351
44352package configurehelp;
44353
44354use strict;
44355use warnings;
44356use Exporter;
44357
44358use vars qw(
44359 @ISA
44360 @EXPORT_OK
44361 \$Cpreprocessor
44362 );
44363
44364@ISA = qw(Exporter);
44365
44366@EXPORT_OK = qw(
44367 \$Cpreprocessor
44368 );
44369
44370\$Cpreprocessor = '$tmp_cpp';
44371
443721;
44373_EOF
44374
44375
44376
44377## ---------------------------------- ##
44378## Start of distclean amending code ##
44379## ---------------------------------- ##
44380
44381for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44382do
44383
44384if test ! -f "$xc_subdir/Makefile"; then
44385 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44386 exit 1
44387fi
44388
44389# Fetch dependency tracking file list from Makefile include lines.
44390
44391xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44392xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44393
44394# --disable-dependency-tracking might have been used, consequently
44395# there is nothing to amend without a dependency tracking file list.
44396
44397if test $xc_cnt_words -gt 0; then
44398
44399{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44400$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44401
44402# Build Makefile specific patch hunk.
44403
44404xc_p="$xc_subdir/xc_patch.tmp"
44405
44406xc_rm_depfiles=`echo "$xc_inc_lines" \
44407 | $SED 's%include% -rm -f%' 2>/dev/null`
44408
44409xc_dep_subdirs=`echo "$xc_inc_lines" \
44410 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44411 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44412 | sort | uniq`
44413
44414echo "$xc_rm_depfiles" >$xc_p
44415
44416for xc_dep_dir in $xc_dep_subdirs; do
44417 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44418 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44419 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44420 echo "${xc_tab}fi" >>$xc_p
44421done
44422
44423# Build Makefile patching sed scripts.
44424
44425xc_s1="$xc_subdir/xc_script_1.tmp"
44426xc_s2="$xc_subdir/xc_script_2.tmp"
44427xc_s3="$xc_subdir/xc_script_3.tmp"
44428
44429cat >$xc_s1 <<\_EOT
44430/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44431 s/^.*(DEPDIR)/___xc_depdir_line___/
44432}
44433/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44434 s/^.*(DEPDIR)/___xc_depdir_line___/
44435}
44436_EOT
44437
44438cat >$xc_s2 <<\_EOT
44439/___xc_depdir_line___$/{
44440 N
44441 /___xc_depdir_line___$/D
44442}
44443_EOT
44444
44445cat >$xc_s3 <<_EOT
44446/^___xc_depdir_line___/{
44447 r $xc_p
44448 d
44449}
44450_EOT
44451
44452# Apply patch to Makefile and cleanup.
44453
44454$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44455$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44456$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44457
44458if test -f "$xc_subdir/Makefile.tmp3"; then
44459 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44460fi
44461
44462test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44463test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44464test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44465
44466test -f "$xc_p" && rm -f "$xc_p"
44467test -f "$xc_s1" && rm -f "$xc_s1"
44468test -f "$xc_s2" && rm -f "$xc_s2"
44469test -f "$xc_s3" && rm -f "$xc_s3"
44470
44471fi
44472
44473done
44474
44475## -------------------------------- ##
44476## End of distclean amending code ##
44477## -------------------------------- ##
44478
44479
44480
44481{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44482
Elliott Hughes82be86d2017-09-20 17:00:17 -070044483 Host setup: ${host}
44484 Install prefix: ${prefix}
44485 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044486 CFLAGS: ${CFLAGS}
44487 CPPFLAGS: ${CPPFLAGS}
44488 LDFLAGS: ${LDFLAGS}
44489 LIBS: ${LIBS}
44490
44491 curl version: ${CURLVERSION}
Haibo Huang65021c72019-03-27 15:37:23 -070044492 SSL: ${curl_ssl_msg}
44493 SSH: ${curl_ssh_msg}
44494 zlib: ${curl_zlib_msg}
44495 brotli: ${curl_brotli_msg}
44496 GSS-API: ${curl_gss_msg}
44497 TLS-SRP: ${curl_tls_srp_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044498 resolver: ${curl_res_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044499 IPv6: ${curl_ipv6_msg}
44500 Unix sockets: ${curl_unix_sockets_msg}
44501 IDN: ${curl_idn_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044502 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44503 Built-in manual: ${curl_manual_msg}
44504 --libcurl option: ${curl_libcurl_msg}
44505 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080044506 Code coverage: ${curl_coverage_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044507 SSPI: ${curl_sspi_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044508 ca cert bundle: ${ca}${ca_warning}
44509 ca cert path: ${capath}${capath_warning}
44510 ca fallback: ${with_ca_fallback}
Haibo Huang65021c72019-03-27 15:37:23 -070044511 LDAP: ${curl_ldap_msg}
44512 LDAPS: ${curl_ldaps_msg}
44513 RTSP: ${curl_rtsp_msg}
44514 RTMP: ${curl_rtmp_msg}
44515 Metalink: ${curl_mtlnk_msg}
44516 PSL: ${curl_psl_msg}
44517 Alt-svc: ${curl_altsvc_msg}
44518 HTTP2: ${curl_h2_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044519 Protocols: ${SUPPORT_PROTOCOLS}
Haibo Huang65021c72019-03-27 15:37:23 -070044520 Features: ${SUPPORT_FEATURES}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044521" >&5
44522$as_echo "$as_me: Configured to build curl/libcurl:
44523
Elliott Hughes82be86d2017-09-20 17:00:17 -070044524 Host setup: ${host}
44525 Install prefix: ${prefix}
44526 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044527 CFLAGS: ${CFLAGS}
44528 CPPFLAGS: ${CPPFLAGS}
44529 LDFLAGS: ${LDFLAGS}
44530 LIBS: ${LIBS}
44531
44532 curl version: ${CURLVERSION}
Haibo Huang65021c72019-03-27 15:37:23 -070044533 SSL: ${curl_ssl_msg}
44534 SSH: ${curl_ssh_msg}
44535 zlib: ${curl_zlib_msg}
44536 brotli: ${curl_brotli_msg}
44537 GSS-API: ${curl_gss_msg}
44538 TLS-SRP: ${curl_tls_srp_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044539 resolver: ${curl_res_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044540 IPv6: ${curl_ipv6_msg}
44541 Unix sockets: ${curl_unix_sockets_msg}
44542 IDN: ${curl_idn_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044543 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44544 Built-in manual: ${curl_manual_msg}
44545 --libcurl option: ${curl_libcurl_msg}
44546 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080044547 Code coverage: ${curl_coverage_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044548 SSPI: ${curl_sspi_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044549 ca cert bundle: ${ca}${ca_warning}
44550 ca cert path: ${capath}${capath_warning}
44551 ca fallback: ${with_ca_fallback}
Haibo Huang65021c72019-03-27 15:37:23 -070044552 LDAP: ${curl_ldap_msg}
44553 LDAPS: ${curl_ldaps_msg}
44554 RTSP: ${curl_rtsp_msg}
44555 RTMP: ${curl_rtmp_msg}
44556 Metalink: ${curl_mtlnk_msg}
44557 PSL: ${curl_psl_msg}
44558 Alt-svc: ${curl_altsvc_msg}
44559 HTTP2: ${curl_h2_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044560 Protocols: ${SUPPORT_PROTOCOLS}
Haibo Huang65021c72019-03-27 15:37:23 -070044561 Features: ${SUPPORT_FEATURES}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044562" >&6;}
Haibo Huang65021c72019-03-27 15:37:23 -070044563if test -n "$experimental"; then
44564 cat >&2 << _EOF
44565 WARNING: $experimental is enabled but marked EXPERIMENTAL. Use with caution!
44566_EOF
44567fi