blob: 0eeb12c0a34944a26a766ae8578285613f91c0d3 [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
929USE_POLARSSL
930HAVE_GNUTLS_SRP
931USE_GNUTLS_NETTLE
932USE_GNUTLS
933HAVE_OPENSSL_SRP
934RANDOM_FILE
935SSL_LIBS
Haibo Huang65021c72019-03-27 15:37:23 -0700936USE_SECTRANSP
Elliott Hughes82be86d2017-09-20 17:00:17 -0700937USE_WINDOWS_SSPI
938USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100939DEFAULT_SSL_BACKEND
940BUILD_STUB_GSS_FALSE
941BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700942USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100943HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700944ZLIB_LIBS
945HAVE_LIBZ_FALSE
946HAVE_LIBZ_TRUE
947HAVE_LIBZ
948PKGCONFIG
Haibo Huang65021c72019-03-27 15:37:23 -0700949HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -0700950CURL_DISABLE_GOPHER
951CURL_DISABLE_SMTP
952CURL_DISABLE_SMB
953CURL_DISABLE_IMAP
954CURL_DISABLE_POP3
955CURL_DISABLE_TFTP
956CURL_DISABLE_TELNET
957CURL_DISABLE_DICT
958CURL_DISABLE_PROXY
959HAVE_LDAP_SSL
960CURL_DISABLE_LDAPS
961CURL_DISABLE_LDAP
962CURL_DISABLE_FILE
963CURL_DISABLE_FTP
964CURL_DISABLE_RTSP
965CURL_DISABLE_HTTP
966DOING_NATIVE_WINDOWS_FALSE
967DOING_NATIVE_WINDOWS_TRUE
968BUILD_UNITTESTS_FALSE
969BUILD_UNITTESTS_TRUE
970CURLDEBUG_FALSE
971CURLDEBUG_TRUE
972USE_EXPLICIT_LIB_DEPS_FALSE
973USE_EXPLICIT_LIB_DEPS_TRUE
974REQUIRE_LIB_DEPS
975CPPFLAG_CURL_STATICLIB
976USE_CPPFLAG_CURL_STATICLIB_FALSE
977USE_CPPFLAG_CURL_STATICLIB_TRUE
978CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
979CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
980CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
981CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
982CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
983CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
984LT_SYS_LIBRARY_PATH
985OTOOL64
986OTOOL
987LIPO
988NMEDIT
989DSYMUTIL
990MANIFEST_TOOL
991RANLIB
992ac_ct_AR
993LN_S
994NM
995ac_ct_DUMPBIN
996DUMPBIN
997LD
998FGREP
999LIBTOOL
1000OBJDUMP
1001DLLTOOL
1002AS
Elliott Hughes72d948d2018-08-03 14:37:21 -07001003AR_FLAGS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001004host_os
1005host_vendor
1006host_cpu
1007host
1008build_os
1009build_vendor
1010build_cpu
1011build
1012PKGADD_VENDOR
1013PKGADD_NAME
1014PKGADD_PKG
1015VERSIONNUM
1016CURLVERSION
1017am__fastdepCC_FALSE
1018am__fastdepCC_TRUE
1019CCDEPMODE
1020am__nodep
1021AMDEPBACKSLASH
1022AMDEP_FALSE
1023AMDEP_TRUE
1024am__quote
1025am__include
1026DEPDIR
1027am__untar
1028am__tar
1029AMTAR
1030am__leading_dot
1031SET_MAKE
1032AWK
1033mkdir_p
1034MKDIR_P
1035INSTALL_STRIP_PROGRAM
1036STRIP
1037install_sh
1038MAKEINFO
1039AUTOHEADER
1040AUTOMAKE
1041AUTOCONF
1042ACLOCAL
1043VERSION
1044PACKAGE
1045CYGPATH_W
1046am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001047LCOV
1048GCOV
Elliott Hughes82be86d2017-09-20 17:00:17 -07001049CPP
1050OBJEXT
1051EXEEXT
1052ac_ct_CC
1053CPPFLAGS
1054LDFLAGS
1055CFLAGS
1056CC
1057INSTALL_DATA
1058INSTALL_SCRIPT
1059INSTALL_PROGRAM
1060libext
1061AR
1062EGREP
1063GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001064SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001065CURL_CFLAG_EXTRAS
1066CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001067AM_BACKSLASH
1068AM_DEFAULT_VERBOSITY
1069AM_DEFAULT_V
1070AM_V
1071MAINT
1072MAINTAINER_MODE_FALSE
1073MAINTAINER_MODE_TRUE
1074target_alias
1075host_alias
1076build_alias
1077LIBS
1078ECHO_T
1079ECHO_N
1080ECHO_C
1081DEFS
1082mandir
1083localedir
1084libdir
1085psdir
1086pdfdir
1087dvidir
1088htmldir
1089infodir
1090docdir
1091oldincludedir
1092includedir
1093runstatedir
1094localstatedir
1095sharedstatedir
1096sysconfdir
1097datadir
1098datarootdir
1099libexecdir
1100sbindir
1101bindir
1102program_transform_name
1103prefix
1104exec_prefix
1105PACKAGE_URL
1106PACKAGE_BUGREPORT
1107PACKAGE_STRING
1108PACKAGE_VERSION
1109PACKAGE_TARNAME
1110PACKAGE_NAME
1111SHELL
1112PATH_SEPARATOR'
1113ac_subst_files=''
1114ac_user_opts='
1115enable_option_checking
1116enable_maintainer_mode
1117enable_silent_rules
1118enable_debug
1119enable_optimize
1120enable_warnings
1121enable_werror
1122enable_curldebug
1123enable_symbol_hiding
1124enable_hidden_symbols
1125enable_ares
1126enable_rt
Elliott Hughes82be86d2017-09-20 17:00:17 -07001127enable_code_coverage
1128enable_dependency_tracking
1129enable_largefile
1130enable_shared
1131enable_static
1132with_pic
1133enable_fast_install
1134with_aix_soname
1135with_gnu_ld
1136with_sysroot
1137enable_libtool_lock
1138enable_http
1139enable_ftp
1140enable_file
1141enable_ldap
1142enable_ldaps
1143enable_rtsp
1144enable_proxy
1145enable_dict
1146enable_telnet
1147enable_tftp
1148enable_pop3
1149enable_imap
1150enable_smb
1151enable_smtp
1152enable_gopher
1153enable_manual
1154enable_libcurl_option
1155enable_libgcc
1156with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001157with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001158with_ldap_lib
1159with_lber_lib
1160enable_ipv6
1161with_gssapi_includes
1162with_gssapi_libs
1163with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001164with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001165with_winssl
Haibo Huang51d9d882019-02-06 01:36:06 -08001166with_schannel
Elliott Hughes82be86d2017-09-20 17:00:17 -07001167with_darwinssl
Haibo Huang65021c72019-03-27 15:37:23 -07001168with_secure_transport
1169with_amissl
Elliott Hughes82be86d2017-09-20 17:00:17 -07001170with_ssl
1171with_egd_socket
1172with_random
Elliott Hughesa93fb052018-12-12 14:22:48 -08001173enable_openssl_auto_load_config
Elliott Hughes82be86d2017-09-20 17:00:17 -07001174with_gnutls
1175with_polarssl
1176with_mbedtls
1177with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001178with_wolfssl
Elliott Hughesa93fb052018-12-12 14:22:48 -08001179with_mesalink
Elliott Hughes82be86d2017-09-20 17:00:17 -07001180with_nss
Elliott Hughes82be86d2017-09-20 17:00:17 -07001181with_ca_bundle
1182with_ca_path
1183with_ca_fallback
1184with_libpsl
1185with_libmetalink
1186with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001187with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001188with_librtmp
1189enable_versioned_symbols
1190with_winidn
1191with_libidn2
1192with_nghttp2
1193with_zsh_functions_dir
Haibo Huang65021c72019-03-27 15:37:23 -07001194with_fish_functions_dir
Elliott Hughes82be86d2017-09-20 17:00:17 -07001195enable_threaded_resolver
1196enable_pthreads
1197enable_verbose
1198enable_sspi
1199enable_crypto_auth
1200enable_ntlm_wb
1201enable_tls_srp
1202enable_unix_sockets
1203enable_cookies
Haibo Huang65021c72019-03-27 15:37:23 -07001204enable_alt_svc
Elliott Hughes82be86d2017-09-20 17:00:17 -07001205'
1206 ac_precious_vars='build_alias
1207host_alias
1208target_alias
1209CC
1210CFLAGS
1211LDFLAGS
1212LIBS
1213CPPFLAGS
1214CPP
1215LT_SYS_LIBRARY_PATH'
1216ac_subdirs_all='ares'
1217
1218# Initialize some variables set by options.
1219ac_init_help=
1220ac_init_version=false
1221ac_unrecognized_opts=
1222ac_unrecognized_sep=
1223# The variables have the same names as the options, with
1224# dashes changed to underlines.
1225cache_file=/dev/null
1226exec_prefix=NONE
1227no_create=
1228no_recursion=
1229prefix=NONE
1230program_prefix=NONE
1231program_suffix=NONE
1232program_transform_name=s,x,x,
1233silent=
1234site=
1235srcdir=
1236verbose=
1237x_includes=NONE
1238x_libraries=NONE
1239
1240# Installation directory options.
1241# These are left unexpanded so users can "make install exec_prefix=/foo"
1242# and all the variables that are supposed to be based on exec_prefix
1243# by default will actually change.
1244# Use braces instead of parens because sh, perl, etc. also accept them.
1245# (The list follows the same order as the GNU Coding Standards.)
1246bindir='${exec_prefix}/bin'
1247sbindir='${exec_prefix}/sbin'
1248libexecdir='${exec_prefix}/libexec'
1249datarootdir='${prefix}/share'
1250datadir='${datarootdir}'
1251sysconfdir='${prefix}/etc'
1252sharedstatedir='${prefix}/com'
1253localstatedir='${prefix}/var'
1254runstatedir='${localstatedir}/run'
1255includedir='${prefix}/include'
1256oldincludedir='/usr/include'
1257docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1258infodir='${datarootdir}/info'
1259htmldir='${docdir}'
1260dvidir='${docdir}'
1261pdfdir='${docdir}'
1262psdir='${docdir}'
1263libdir='${exec_prefix}/lib'
1264localedir='${datarootdir}/locale'
1265mandir='${datarootdir}/man'
1266
1267ac_prev=
1268ac_dashdash=
1269for ac_option
1270do
1271 # If the previous option needs an argument, assign it.
1272 if test -n "$ac_prev"; then
1273 eval $ac_prev=\$ac_option
1274 ac_prev=
1275 continue
1276 fi
1277
1278 case $ac_option in
1279 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1280 *=) ac_optarg= ;;
1281 *) ac_optarg=yes ;;
1282 esac
1283
1284 # Accept the important Cygnus configure options, so we can diagnose typos.
1285
1286 case $ac_dashdash$ac_option in
1287 --)
1288 ac_dashdash=yes ;;
1289
1290 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1291 ac_prev=bindir ;;
1292 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1293 bindir=$ac_optarg ;;
1294
1295 -build | --build | --buil | --bui | --bu)
1296 ac_prev=build_alias ;;
1297 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1298 build_alias=$ac_optarg ;;
1299
1300 -cache-file | --cache-file | --cache-fil | --cache-fi \
1301 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1302 ac_prev=cache_file ;;
1303 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1304 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1305 cache_file=$ac_optarg ;;
1306
1307 --config-cache | -C)
1308 cache_file=config.cache ;;
1309
1310 -datadir | --datadir | --datadi | --datad)
1311 ac_prev=datadir ;;
1312 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1313 datadir=$ac_optarg ;;
1314
1315 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1316 | --dataroo | --dataro | --datar)
1317 ac_prev=datarootdir ;;
1318 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1319 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1320 datarootdir=$ac_optarg ;;
1321
1322 -disable-* | --disable-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error $? "invalid feature name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331"enable_$ac_useropt"
1332"*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval enable_$ac_useropt=no ;;
1337
1338 -docdir | --docdir | --docdi | --doc | --do)
1339 ac_prev=docdir ;;
1340 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1341 docdir=$ac_optarg ;;
1342
1343 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1344 ac_prev=dvidir ;;
1345 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1346 dvidir=$ac_optarg ;;
1347
1348 -enable-* | --enable-*)
1349 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1350 # Reject names that are not valid shell variable names.
1351 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1352 as_fn_error $? "invalid feature name: $ac_useropt"
1353 ac_useropt_orig=$ac_useropt
1354 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1355 case $ac_user_opts in
1356 *"
1357"enable_$ac_useropt"
1358"*) ;;
1359 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1360 ac_unrecognized_sep=', ';;
1361 esac
1362 eval enable_$ac_useropt=\$ac_optarg ;;
1363
1364 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1365 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1366 | --exec | --exe | --ex)
1367 ac_prev=exec_prefix ;;
1368 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1369 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1370 | --exec=* | --exe=* | --ex=*)
1371 exec_prefix=$ac_optarg ;;
1372
1373 -gas | --gas | --ga | --g)
1374 # Obsolete; use --with-gas.
1375 with_gas=yes ;;
1376
1377 -help | --help | --hel | --he | -h)
1378 ac_init_help=long ;;
1379 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1380 ac_init_help=recursive ;;
1381 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1382 ac_init_help=short ;;
1383
1384 -host | --host | --hos | --ho)
1385 ac_prev=host_alias ;;
1386 -host=* | --host=* | --hos=* | --ho=*)
1387 host_alias=$ac_optarg ;;
1388
1389 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1390 ac_prev=htmldir ;;
1391 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1392 | --ht=*)
1393 htmldir=$ac_optarg ;;
1394
1395 -includedir | --includedir | --includedi | --included | --include \
1396 | --includ | --inclu | --incl | --inc)
1397 ac_prev=includedir ;;
1398 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1399 | --includ=* | --inclu=* | --incl=* | --inc=*)
1400 includedir=$ac_optarg ;;
1401
1402 -infodir | --infodir | --infodi | --infod | --info | --inf)
1403 ac_prev=infodir ;;
1404 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1405 infodir=$ac_optarg ;;
1406
1407 -libdir | --libdir | --libdi | --libd)
1408 ac_prev=libdir ;;
1409 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1410 libdir=$ac_optarg ;;
1411
1412 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1413 | --libexe | --libex | --libe)
1414 ac_prev=libexecdir ;;
1415 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1416 | --libexe=* | --libex=* | --libe=*)
1417 libexecdir=$ac_optarg ;;
1418
1419 -localedir | --localedir | --localedi | --localed | --locale)
1420 ac_prev=localedir ;;
1421 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1422 localedir=$ac_optarg ;;
1423
1424 -localstatedir | --localstatedir | --localstatedi | --localstated \
1425 | --localstate | --localstat | --localsta | --localst | --locals)
1426 ac_prev=localstatedir ;;
1427 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1428 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1429 localstatedir=$ac_optarg ;;
1430
1431 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1432 ac_prev=mandir ;;
1433 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1434 mandir=$ac_optarg ;;
1435
1436 -nfp | --nfp | --nf)
1437 # Obsolete; use --without-fp.
1438 with_fp=no ;;
1439
1440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1441 | --no-cr | --no-c | -n)
1442 no_create=yes ;;
1443
1444 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1445 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1446 no_recursion=yes ;;
1447
1448 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1449 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1450 | --oldin | --oldi | --old | --ol | --o)
1451 ac_prev=oldincludedir ;;
1452 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1453 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1454 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1455 oldincludedir=$ac_optarg ;;
1456
1457 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1458 ac_prev=prefix ;;
1459 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1460 prefix=$ac_optarg ;;
1461
1462 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1463 | --program-pre | --program-pr | --program-p)
1464 ac_prev=program_prefix ;;
1465 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1466 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1467 program_prefix=$ac_optarg ;;
1468
1469 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1470 | --program-suf | --program-su | --program-s)
1471 ac_prev=program_suffix ;;
1472 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1473 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1474 program_suffix=$ac_optarg ;;
1475
1476 -program-transform-name | --program-transform-name \
1477 | --program-transform-nam | --program-transform-na \
1478 | --program-transform-n | --program-transform- \
1479 | --program-transform | --program-transfor \
1480 | --program-transfo | --program-transf \
1481 | --program-trans | --program-tran \
1482 | --progr-tra | --program-tr | --program-t)
1483 ac_prev=program_transform_name ;;
1484 -program-transform-name=* | --program-transform-name=* \
1485 | --program-transform-nam=* | --program-transform-na=* \
1486 | --program-transform-n=* | --program-transform-=* \
1487 | --program-transform=* | --program-transfor=* \
1488 | --program-transfo=* | --program-transf=* \
1489 | --program-trans=* | --program-tran=* \
1490 | --progr-tra=* | --program-tr=* | --program-t=*)
1491 program_transform_name=$ac_optarg ;;
1492
1493 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1494 ac_prev=pdfdir ;;
1495 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1496 pdfdir=$ac_optarg ;;
1497
1498 -psdir | --psdir | --psdi | --psd | --ps)
1499 ac_prev=psdir ;;
1500 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1501 psdir=$ac_optarg ;;
1502
1503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1504 | -silent | --silent | --silen | --sile | --sil)
1505 silent=yes ;;
1506
1507 -runstatedir | --runstatedir | --runstatedi | --runstated \
1508 | --runstate | --runstat | --runsta | --runst | --runs \
1509 | --run | --ru | --r)
1510 ac_prev=runstatedir ;;
1511 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1512 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1513 | --run=* | --ru=* | --r=*)
1514 runstatedir=$ac_optarg ;;
1515
1516 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1517 ac_prev=sbindir ;;
1518 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1519 | --sbi=* | --sb=*)
1520 sbindir=$ac_optarg ;;
1521
1522 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1523 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1524 | --sharedst | --shareds | --shared | --share | --shar \
1525 | --sha | --sh)
1526 ac_prev=sharedstatedir ;;
1527 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1528 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1529 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1530 | --sha=* | --sh=*)
1531 sharedstatedir=$ac_optarg ;;
1532
1533 -site | --site | --sit)
1534 ac_prev=site ;;
1535 -site=* | --site=* | --sit=*)
1536 site=$ac_optarg ;;
1537
1538 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1539 ac_prev=srcdir ;;
1540 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1541 srcdir=$ac_optarg ;;
1542
1543 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1544 | --syscon | --sysco | --sysc | --sys | --sy)
1545 ac_prev=sysconfdir ;;
1546 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1547 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1548 sysconfdir=$ac_optarg ;;
1549
1550 -target | --target | --targe | --targ | --tar | --ta | --t)
1551 ac_prev=target_alias ;;
1552 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1553 target_alias=$ac_optarg ;;
1554
1555 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1556 verbose=yes ;;
1557
1558 -version | --version | --versio | --versi | --vers | -V)
1559 ac_init_version=: ;;
1560
1561 -with-* | --with-*)
1562 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1563 # Reject names that are not valid shell variable names.
1564 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1565 as_fn_error $? "invalid package name: $ac_useropt"
1566 ac_useropt_orig=$ac_useropt
1567 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1568 case $ac_user_opts in
1569 *"
1570"with_$ac_useropt"
1571"*) ;;
1572 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1573 ac_unrecognized_sep=', ';;
1574 esac
1575 eval with_$ac_useropt=\$ac_optarg ;;
1576
1577 -without-* | --without-*)
1578 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1579 # Reject names that are not valid shell variable names.
1580 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1581 as_fn_error $? "invalid package name: $ac_useropt"
1582 ac_useropt_orig=$ac_useropt
1583 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1584 case $ac_user_opts in
1585 *"
1586"with_$ac_useropt"
1587"*) ;;
1588 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1589 ac_unrecognized_sep=', ';;
1590 esac
1591 eval with_$ac_useropt=no ;;
1592
1593 --x)
1594 # Obsolete; use --with-x.
1595 with_x=yes ;;
1596
1597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1598 | --x-incl | --x-inc | --x-in | --x-i)
1599 ac_prev=x_includes ;;
1600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1602 x_includes=$ac_optarg ;;
1603
1604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1606 ac_prev=x_libraries ;;
1607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1609 x_libraries=$ac_optarg ;;
1610
1611 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1612Try \`$0 --help' for more information"
1613 ;;
1614
1615 *=*)
1616 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1617 # Reject names that are not valid shell variable names.
1618 case $ac_envvar in #(
1619 '' | [0-9]* | *[!_$as_cr_alnum]* )
1620 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1621 esac
1622 eval $ac_envvar=\$ac_optarg
1623 export $ac_envvar ;;
1624
1625 *)
1626 # FIXME: should be removed in autoconf 3.0.
1627 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1628 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1629 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1630 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1631 ;;
1632
1633 esac
1634done
1635
1636if test -n "$ac_prev"; then
1637 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1638 as_fn_error $? "missing argument to $ac_option"
1639fi
1640
1641if test -n "$ac_unrecognized_opts"; then
1642 case $enable_option_checking in
1643 no) ;;
1644 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1645 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1646 esac
1647fi
1648
1649# Check all directory arguments for consistency.
1650for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1651 datadir sysconfdir sharedstatedir localstatedir includedir \
1652 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1653 libdir localedir mandir runstatedir
1654do
1655 eval ac_val=\$$ac_var
1656 # Remove trailing slashes.
1657 case $ac_val in
1658 */ )
1659 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1660 eval $ac_var=\$ac_val;;
1661 esac
1662 # Be sure to have absolute directory names.
1663 case $ac_val in
1664 [\\/$]* | ?:[\\/]* ) continue;;
1665 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1666 esac
1667 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1668done
1669
1670# There might be people who depend on the old broken behavior: `$host'
1671# used to hold the argument of --host etc.
1672# FIXME: To remove some day.
1673build=$build_alias
1674host=$host_alias
1675target=$target_alias
1676
1677# FIXME: To remove some day.
1678if test "x$host_alias" != x; then
1679 if test "x$build_alias" = x; then
1680 cross_compiling=maybe
1681 elif test "x$build_alias" != "x$host_alias"; then
1682 cross_compiling=yes
1683 fi
1684fi
1685
1686ac_tool_prefix=
1687test -n "$host_alias" && ac_tool_prefix=$host_alias-
1688
1689test "$silent" = yes && exec 6>/dev/null
1690
1691
1692ac_pwd=`pwd` && test -n "$ac_pwd" &&
1693ac_ls_di=`ls -di .` &&
1694ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1695 as_fn_error $? "working directory cannot be determined"
1696test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1697 as_fn_error $? "pwd does not report name of working directory"
1698
1699
1700# Find the source files, if location was not specified.
1701if test -z "$srcdir"; then
1702 ac_srcdir_defaulted=yes
1703 # Try the directory containing this script, then the parent directory.
1704 ac_confdir=`$as_dirname -- "$as_myself" ||
1705$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1706 X"$as_myself" : 'X\(//\)[^/]' \| \
1707 X"$as_myself" : 'X\(//\)$' \| \
1708 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1709$as_echo X"$as_myself" |
1710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1711 s//\1/
1712 q
1713 }
1714 /^X\(\/\/\)[^/].*/{
1715 s//\1/
1716 q
1717 }
1718 /^X\(\/\/\)$/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\).*/{
1723 s//\1/
1724 q
1725 }
1726 s/.*/./; q'`
1727 srcdir=$ac_confdir
1728 if test ! -r "$srcdir/$ac_unique_file"; then
1729 srcdir=..
1730 fi
1731else
1732 ac_srcdir_defaulted=no
1733fi
1734if test ! -r "$srcdir/$ac_unique_file"; then
1735 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1736 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1737fi
1738ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1739ac_abs_confdir=`(
1740 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1741 pwd)`
1742# When building in place, set srcdir=.
1743if test "$ac_abs_confdir" = "$ac_pwd"; then
1744 srcdir=.
1745fi
1746# Remove unnecessary trailing slashes from srcdir.
1747# Double slashes in file names in object file debugging info
1748# mess up M-x gdb in Emacs.
1749case $srcdir in
1750*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1751esac
1752for ac_var in $ac_precious_vars; do
1753 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_env_${ac_var}_value=\$${ac_var}
1755 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1756 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1757done
1758
1759#
1760# Report the --help message.
1761#
1762if test "$ac_init_help" = "long"; then
1763 # Omit some internal or obsolete options to make the list less imposing.
1764 # This message is too long to be a string in the A/UX 3.1 sh.
1765 cat <<_ACEOF
1766\`configure' configures curl - to adapt to many kinds of systems.
1767
1768Usage: $0 [OPTION]... [VAR=VALUE]...
1769
1770To assign environment variables (e.g., CC, CFLAGS...), specify them as
1771VAR=VALUE. See below for descriptions of some of the useful variables.
1772
1773Defaults for the options are specified in brackets.
1774
1775Configuration:
1776 -h, --help display this help and exit
1777 --help=short display options specific to this package
1778 --help=recursive display the short help of all the included packages
1779 -V, --version display version information and exit
1780 -q, --quiet, --silent do not print \`checking ...' messages
1781 --cache-file=FILE cache test results in FILE [disabled]
1782 -C, --config-cache alias for \`--cache-file=config.cache'
1783 -n, --no-create do not create output files
1784 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1785
1786Installation directories:
1787 --prefix=PREFIX install architecture-independent files in PREFIX
1788 [$ac_default_prefix]
1789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1790 [PREFIX]
1791
1792By default, \`make install' will install all the files in
1793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1795for instance \`--prefix=\$HOME'.
1796
1797For better control, use the options below.
1798
1799Fine tuning of the installation directories:
1800 --bindir=DIR user executables [EPREFIX/bin]
1801 --sbindir=DIR system admin executables [EPREFIX/sbin]
1802 --libexecdir=DIR program executables [EPREFIX/libexec]
1803 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1804 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1805 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1806 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1807 --libdir=DIR object code libraries [EPREFIX/lib]
1808 --includedir=DIR C header files [PREFIX/include]
1809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1810 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1811 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1812 --infodir=DIR info documentation [DATAROOTDIR/info]
1813 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1814 --mandir=DIR man documentation [DATAROOTDIR/man]
1815 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1816 --htmldir=DIR html documentation [DOCDIR]
1817 --dvidir=DIR dvi documentation [DOCDIR]
1818 --pdfdir=DIR pdf documentation [DOCDIR]
1819 --psdir=DIR ps documentation [DOCDIR]
1820_ACEOF
1821
1822 cat <<\_ACEOF
1823
1824Program names:
1825 --program-prefix=PREFIX prepend PREFIX to installed program names
1826 --program-suffix=SUFFIX append SUFFIX to installed program names
1827 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1828
1829System types:
1830 --build=BUILD configure for building on BUILD [guessed]
1831 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1832_ACEOF
1833fi
1834
1835if test -n "$ac_init_help"; then
1836 case $ac_init_help in
1837 short | recursive ) echo "Configuration of curl -:";;
1838 esac
1839 cat <<\_ACEOF
1840
1841Optional Features:
1842 --disable-option-checking ignore unrecognized --enable/--with options
1843 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1844 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1845 --enable-maintainer-mode
1846 enable make rules and dependencies not useful (and
1847 sometimes confusing) to the casual installer
1848 --enable-silent-rules less verbose build output (undo: "make V=1")
1849 --disable-silent-rules verbose build output (undo: "make V=0")
1850 --enable-debug Enable debug build options
1851 --disable-debug Disable debug build options
1852 --enable-optimize Enable compiler optimizations
1853 --disable-optimize Disable compiler optimizations
1854 --enable-warnings Enable strict compiler warnings
1855 --disable-warnings Disable strict compiler warnings
1856 --enable-werror Enable compiler warnings as errors
1857 --disable-werror Disable compiler warnings as errors
1858 --enable-curldebug Enable curl debug memory tracking
1859 --disable-curldebug Disable curl debug memory tracking
1860 --enable-symbol-hiding Enable hiding of library internal symbols
1861 --disable-symbol-hiding Disable hiding of library internal symbols
1862 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1863 --disable-hidden-symbols
1864 To be deprecated, use --disable-symbol-hiding
1865 --enable-ares[=PATH] Enable c-ares for DNS lookups
1866 --disable-ares Disable c-ares for DNS lookups
1867 --disable-rt disable dependency on -lrt
Haibo Huang51d9d882019-02-06 01:36:06 -08001868 --enable-code-coverage Provide code coverage
Elliott Hughes82be86d2017-09-20 17:00:17 -07001869 --enable-dependency-tracking
1870 do not reject slow dependency extractors
1871 --disable-dependency-tracking
1872 speeds up one-time build
1873 --disable-largefile omit support for large files
1874 --enable-shared[=PKGS] build shared libraries [default=yes]
1875 --enable-static[=PKGS] build static libraries [default=yes]
1876 --enable-fast-install[=PKGS]
1877 optimize for fast installation [default=yes]
1878 --disable-libtool-lock avoid locking (might break parallel builds)
1879 --enable-http Enable HTTP support
1880 --disable-http Disable HTTP support
1881 --enable-ftp Enable FTP support
1882 --disable-ftp Disable FTP support
1883 --enable-file Enable FILE support
1884 --disable-file Disable FILE support
1885 --enable-ldap Enable LDAP support
1886 --disable-ldap Disable LDAP support
1887 --enable-ldaps Enable LDAPS support
1888 --disable-ldaps Disable LDAPS support
1889 --enable-rtsp Enable RTSP support
1890 --disable-rtsp Disable RTSP support
1891 --enable-proxy Enable proxy support
1892 --disable-proxy Disable proxy support
1893 --enable-dict Enable DICT support
1894 --disable-dict Disable DICT support
1895 --enable-telnet Enable TELNET support
1896 --disable-telnet Disable TELNET support
1897 --enable-tftp Enable TFTP support
1898 --disable-tftp Disable TFTP support
1899 --enable-pop3 Enable POP3 support
1900 --disable-pop3 Disable POP3 support
1901 --enable-imap Enable IMAP support
1902 --disable-imap Disable IMAP support
1903 --enable-smb Enable SMB/CIFS support
1904 --disable-smb Disable SMB/CIFS support
1905 --enable-smtp Enable SMTP support
1906 --disable-smtp Disable SMTP support
1907 --enable-gopher Enable Gopher support
1908 --disable-gopher Disable Gopher support
1909 --enable-manual Enable built-in manual
1910 --disable-manual Disable built-in manual
1911 --enable-libcurl-option Enable --libcurl C code generation support
1912 --disable-libcurl-option
1913 Disable --libcurl C code generation support
1914 --enable-libgcc use libgcc when linking
1915 --enable-ipv6 Enable IPv6 (with IPv4) support
1916 --disable-ipv6 Disable IPv6 support
Elliott Hughesa93fb052018-12-12 14:22:48 -08001917 --enable-openssl-auto-load-config
1918 Enable automatic loading of OpenSSL configuration
1919 --disable-openssl-auto-load-config
1920 Disable automatic loading of OpenSSL configuration
Elliott Hughes82be86d2017-09-20 17:00:17 -07001921 --enable-versioned-symbols
1922 Enable versioned symbols in shared library
1923 --disable-versioned-symbols
1924 Disable versioned symbols in shared library
1925 --enable-threaded-resolver
1926 Enable threaded resolver
1927 --disable-threaded-resolver
1928 Disable threaded resolver
1929 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1930 --disable-pthreads Disable POSIX threads
1931 --enable-verbose Enable verbose strings
1932 --disable-verbose Disable verbose strings
1933 --enable-sspi Enable SSPI
1934 --disable-sspi Disable SSPI
1935 --enable-crypto-auth Enable cryptographic authentication
1936 --disable-crypto-auth Disable cryptographic authentication
1937 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1938 helper, where FILE is ntlm_auth's absolute filename
1939 (default: /usr/bin/ntlm_auth)
1940 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1941 helper
1942 --enable-tls-srp Enable TLS-SRP authentication
1943 --disable-tls-srp Disable TLS-SRP authentication
1944 --enable-unix-sockets Enable Unix domain sockets
1945 --disable-unix-sockets Disable Unix domain sockets
1946 --enable-cookies Enable cookies support
1947 --disable-cookies Disable cookies support
Haibo Huang65021c72019-03-27 15:37:23 -07001948 --enable-alt-svc Enable alt-svc support
1949 --disable-alt-svc Disable alt-svc support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001950
1951Optional Packages:
1952 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1953 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Elliott Hughes82be86d2017-09-20 17:00:17 -07001954 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1955 both]
1956 --with-aix-soname=aix|svr4|both
1957 shared library versioning (aka "SONAME") variant to
1958 provide on AIX, [default=aix].
1959 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1960 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1961 compiler's sysroot if not specified).
1962 --with-zlib=PATH search for zlib in PATH
1963 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001964 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1965 installation; when possible, set the PKG_CONFIG_PATH
1966 environment variable instead of using this option
1967 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001968 --with-ldap-lib=libname Specify name of ldap lib file
1969 --with-lber-lib=libname Specify name of lber lib file
1970 --with-gssapi-includes=DIR
1971 Specify location of GSS-API headers
1972 --with-gssapi-libs=DIR Specify location of GSS-API libs
1973 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001974 --with-default-ssl-backend=NAME
1975 Use NAME as default SSL backend
1976 --without-default-ssl-backend
1977 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001978 --with-winssl enable Windows native SSL/TLS
1979 --without-winssl disable Windows native SSL/TLS
Haibo Huang51d9d882019-02-06 01:36:06 -08001980 --with-schannel enable Windows native SSL/TLS
1981 --without-schannel disable Windows native SSL/TLS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001982 --with-darwinssl enable Apple OS native SSL/TLS
1983 --without-darwinssl disable Apple OS native SSL/TLS
Haibo Huang65021c72019-03-27 15:37:23 -07001984 --with-secure-transport enable Apple OS native SSL/TLS
1985 --without-secure-transport
1986 disable Apple OS native SSL/TLS
1987 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
1988 --without-amissl disable Amiga native SSL/TLS (AmiSSL)
Elliott Hughes82be86d2017-09-20 17:00:17 -07001989 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1990 installation (default: /usr/local/ssl); when
1991 possible, set the PKG_CONFIG_PATH environment
1992 variable instead of using this option
1993 --without-ssl disable OpenSSL
1994 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1995 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1996 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1997 installation root
1998 --without-gnutls disable GnuTLS detection
1999 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
2000 installation root
2001 --without-polarssl disable PolarSSL detection
2002 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2003 installation root
2004 --without-mbedtls disable mbedTLS detection
2005 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
2006 installation root (default: system lib default)
2007 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07002008 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2009 installation root (default: system lib default)
2010 --without-wolfssl disable WolfSSL detection
Elliott Hughesa93fb052018-12-12 14:22:48 -08002011 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2012 installation root
2013 --without-mesalink disable MesaLink detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002014 --with-nss=PATH where to look for NSS, PATH points to the
2015 installation root
2016 --without-nss disable NSS detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002017 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2018 /etc/ca-bundle.crt)
2019 --without-ca-bundle Don't use a default CA bundle
2020 --with-ca-path=DIRECTORY
2021 Path to a directory containing CA certificates
2022 stored individually, with their filenames in a hash
2023 format. This option can be used with OpenSSL, GnuTLS
2024 and PolarSSL backends. Refer to OpenSSL c_rehash for
2025 details. (example: /etc/certificates)
2026 --without-ca-path Don't use a default CA path
2027 --with-ca-fallback Use the built in CA store of the SSL library
2028 --without-ca-fallback Don't use the built in CA store of the SSL library
2029 --without-libpsl disable support for libpsl cookie checking
2030 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2031 installation root
2032 --without-libmetalink disable libmetalink detection
2033 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2034 LIBSSH2 installation; when possible, set the
2035 PKG_CONFIG_PATH environment variable instead of
2036 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002037 --with-libssh2 enable LIBSSH2
2038 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2039 installation; when possible, set the PKG_CONFIG_PATH
2040 environment variable instead of using this option
2041 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002042 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2043 LIBRTMP installation; when possible, set the
2044 PKG_CONFIG_PATH environment variable instead of
2045 using this option
2046 --without-librtmp disable LIBRTMP
2047 --with-winidn=PATH enable Windows native IDN
2048 --without-winidn disable Windows native IDN
2049 --with-libidn2=PATH Enable libidn2 usage
2050 --without-libidn2 Disable libidn2 usage
2051 --with-nghttp2=PATH Enable nghttp2 usage
2052 --without-nghttp2 Disable nghttp2 usage
2053 --with-zsh-functions-dir=PATH
2054 Install zsh completions to PATH
2055 --without-zsh-functions-dir
2056 Do not install zsh completions
Haibo Huang65021c72019-03-27 15:37:23 -07002057 --with-fish-functions-dir=PATH
2058 Install fish completions to PATH
2059 --without-fish-functions-dir
2060 Do not install fish completions
Elliott Hughes82be86d2017-09-20 17:00:17 -07002061
2062Some influential environment variables:
2063 CC C compiler command
2064 CFLAGS C compiler flags
2065 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2066 nonstandard directory <lib dir>
2067 LIBS libraries to pass to the linker, e.g. -l<library>
2068 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2069 you have headers in a nonstandard directory <include dir>
2070 CPP C preprocessor
2071 LT_SYS_LIBRARY_PATH
2072 User-defined run-time library search path.
2073
2074Use these variables to override the choices made by `configure' or to help
2075it to find libraries and programs with nonstandard names/locations.
2076
2077Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2078_ACEOF
2079ac_status=$?
2080fi
2081
2082if test "$ac_init_help" = "recursive"; then
2083 # If there are subdirs, report their specific --help.
2084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2085 test -d "$ac_dir" ||
2086 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2087 continue
2088 ac_builddir=.
2089
2090case "$ac_dir" in
2091.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2092*)
2093 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2094 # A ".." for each directory in $ac_dir_suffix.
2095 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2096 case $ac_top_builddir_sub in
2097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2099 esac ;;
2100esac
2101ac_abs_top_builddir=$ac_pwd
2102ac_abs_builddir=$ac_pwd$ac_dir_suffix
2103# for backward compatibility:
2104ac_top_builddir=$ac_top_build_prefix
2105
2106case $srcdir in
2107 .) # We are building in place.
2108 ac_srcdir=.
2109 ac_top_srcdir=$ac_top_builddir_sub
2110 ac_abs_top_srcdir=$ac_pwd ;;
2111 [\\/]* | ?:[\\/]* ) # Absolute name.
2112 ac_srcdir=$srcdir$ac_dir_suffix;
2113 ac_top_srcdir=$srcdir
2114 ac_abs_top_srcdir=$srcdir ;;
2115 *) # Relative name.
2116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2117 ac_top_srcdir=$ac_top_build_prefix$srcdir
2118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2119esac
2120ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2121
2122 cd "$ac_dir" || { ac_status=$?; continue; }
2123 # Check for guested configure.
2124 if test -f "$ac_srcdir/configure.gnu"; then
2125 echo &&
2126 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2127 elif test -f "$ac_srcdir/configure"; then
2128 echo &&
2129 $SHELL "$ac_srcdir/configure" --help=recursive
2130 else
2131 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2132 fi || ac_status=$?
2133 cd "$ac_pwd" || { ac_status=$?; break; }
2134 done
2135fi
2136
2137test -n "$ac_init_help" && exit $ac_status
2138if $ac_init_version; then
2139 cat <<\_ACEOF
2140curl configure -
2141generated by GNU Autoconf 2.69
2142
2143Copyright (C) 2012 Free Software Foundation, Inc.
2144This configure script is free software; the Free Software Foundation
2145gives unlimited permission to copy, distribute and modify it.
2146
Haibo Huang51d9d882019-02-06 01:36:06 -08002147Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
Elliott Hughes82be86d2017-09-20 17:00:17 -07002148This configure script may be copied, distributed and modified under the
2149terms of the curl license; see COPYING for more details
2150_ACEOF
2151 exit
2152fi
2153
2154## ------------------------ ##
2155## Autoconf initialization. ##
2156## ------------------------ ##
2157
2158# ac_fn_c_try_compile LINENO
2159# --------------------------
2160# Try to compile conftest.$ac_ext, and return whether this succeeded.
2161ac_fn_c_try_compile ()
2162{
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 rm -f conftest.$ac_objext
2165 if { { ac_try="$ac_compile"
2166case "(($ac_try" in
2167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2168 *) ac_try_echo=$ac_try;;
2169esac
2170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2171$as_echo "$ac_try_echo"; } >&5
2172 (eval "$ac_compile") 2>conftest.err
2173 ac_status=$?
2174 if test -s conftest.err; then
2175 grep -v '^ *+' conftest.err >conftest.er1
2176 cat conftest.er1 >&5
2177 mv -f conftest.er1 conftest.err
2178 fi
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; } && {
2181 test -z "$ac_c_werror_flag" ||
2182 test ! -s conftest.err
2183 } && test -s conftest.$ac_objext; then :
2184 ac_retval=0
2185else
2186 $as_echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189 ac_retval=1
2190fi
2191 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2192 as_fn_set_status $ac_retval
2193
2194} # ac_fn_c_try_compile
2195
2196# ac_fn_c_try_cpp LINENO
2197# ----------------------
2198# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2199ac_fn_c_try_cpp ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 if { { ac_try="$ac_cpp conftest.$ac_ext"
2203case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2206esac
2207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208$as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2210 ac_status=$?
2211 if test -s conftest.err; then
2212 grep -v '^ *+' conftest.err >conftest.er1
2213 cat conftest.er1 >&5
2214 mv -f conftest.er1 conftest.err
2215 fi
2216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2217 test $ac_status = 0; } > conftest.i && {
2218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2219 test ! -s conftest.err
2220 }; then :
2221 ac_retval=0
2222else
2223 $as_echo "$as_me: failed program was:" >&5
2224sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 ac_retval=1
2227fi
2228 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2229 as_fn_set_status $ac_retval
2230
2231} # ac_fn_c_try_cpp
2232
Alex Deymo486467e2017-12-19 19:04:07 +01002233# ac_fn_c_try_link LINENO
2234# -----------------------
2235# Try to link conftest.$ac_ext, and return whether this succeeded.
2236ac_fn_c_try_link ()
2237{
2238 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239 rm -f conftest.$ac_objext conftest$ac_exeext
2240 if { { ac_try="$ac_link"
2241case "(($ac_try" in
2242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2244esac
2245eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2246$as_echo "$ac_try_echo"; } >&5
2247 (eval "$ac_link") 2>conftest.err
2248 ac_status=$?
2249 if test -s conftest.err; then
2250 grep -v '^ *+' conftest.err >conftest.er1
2251 cat conftest.er1 >&5
2252 mv -f conftest.er1 conftest.err
2253 fi
2254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2255 test $ac_status = 0; } && {
2256 test -z "$ac_c_werror_flag" ||
2257 test ! -s conftest.err
2258 } && test -s conftest$ac_exeext && {
2259 test "$cross_compiling" = yes ||
2260 test -x conftest$ac_exeext
2261 }; then :
2262 ac_retval=0
2263else
2264 $as_echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 ac_retval=1
2268fi
2269 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2270 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2271 # interfere with the next link command; also delete a directory that is
2272 # left behind by Apple's compiler. We do this before executing the actions.
2273 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275 as_fn_set_status $ac_retval
2276
2277} # ac_fn_c_try_link
2278
Elliott Hughes82be86d2017-09-20 17:00:17 -07002279# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2280# -------------------------------------------------------
2281# Tests whether HEADER exists and can be compiled using the include files in
2282# INCLUDES, setting the cache variable VAR accordingly.
2283ac_fn_c_check_header_compile ()
2284{
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2287$as_echo_n "checking for $2... " >&6; }
2288if eval \${$3+:} false; then :
2289 $as_echo_n "(cached) " >&6
2290else
2291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292/* end confdefs.h. */
2293$4
2294#include <$2>
2295_ACEOF
2296if ac_fn_c_try_compile "$LINENO"; then :
2297 eval "$3=yes"
2298else
2299 eval "$3=no"
2300fi
2301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302fi
2303eval ac_res=\$$3
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305$as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307
2308} # ac_fn_c_check_header_compile
2309
2310# ac_fn_c_try_run LINENO
2311# ----------------------
2312# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2313# that executables *can* be run.
2314ac_fn_c_try_run ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 if { { ac_try="$ac_link"
2318case "(($ac_try" in
2319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2320 *) ac_try_echo=$ac_try;;
2321esac
2322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2323$as_echo "$ac_try_echo"; } >&5
2324 (eval "$ac_link") 2>&5
2325 ac_status=$?
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2328 { { case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
2332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2333$as_echo "$ac_try_echo"; } >&5
2334 (eval "$ac_try") 2>&5
2335 ac_status=$?
2336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2337 test $ac_status = 0; }; }; then :
2338 ac_retval=0
2339else
2340 $as_echo "$as_me: program exited with status $ac_status" >&5
2341 $as_echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344 ac_retval=$ac_status
2345fi
2346 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2347 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348 as_fn_set_status $ac_retval
2349
2350} # ac_fn_c_try_run
2351
Alex Deymo486467e2017-12-19 19:04:07 +01002352# ac_fn_c_check_func LINENO FUNC VAR
2353# ----------------------------------
2354# Tests whether FUNC exists, setting the cache variable VAR accordingly
2355ac_fn_c_check_func ()
2356{
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359$as_echo_n "checking for $2... " >&6; }
2360if eval \${$3+:} false; then :
2361 $as_echo_n "(cached) " >&6
2362else
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364/* end confdefs.h. */
2365
2366#define $2 innocuous_$2
2367#ifdef __STDC__
2368# include <limits.h>
2369#else
2370# include <assert.h>
2371#endif
2372#undef $2
2373#ifdef __cplusplus
2374extern "C"
2375#endif
2376char $2 ();
2377#if defined __stub_$2 || defined __stub___$2
2378choke me
2379#endif
2380
2381int main (void)
2382{
2383return $2 ();
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388if ac_fn_c_try_link "$LINENO"; then :
2389 eval "$3=yes"
2390else
2391 eval "$3=no"
2392fi
2393rm -f core conftest.err conftest.$ac_objext \
2394 conftest$ac_exeext conftest.$ac_ext
2395fi
2396eval ac_res=\$$3
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398$as_echo "$ac_res" >&6; }
2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400
2401} # ac_fn_c_check_func
2402
2403# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2404# -------------------------------------------------------
2405# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2406# the include files in INCLUDES and setting the cache variable VAR
2407# accordingly.
2408ac_fn_c_check_header_mongrel ()
2409{
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 if eval \${$3+:} false; then :
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2413$as_echo_n "checking for $2... " >&6; }
2414if eval \${$3+:} false; then :
2415 $as_echo_n "(cached) " >&6
2416fi
2417eval ac_res=\$$3
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419$as_echo "$ac_res" >&6; }
2420else
2421 # Is the header compilable?
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2423$as_echo_n "checking $2 usability... " >&6; }
2424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425/* end confdefs.h. */
2426$4
2427#include <$2>
2428_ACEOF
2429if ac_fn_c_try_compile "$LINENO"; then :
2430 ac_header_compiler=yes
2431else
2432 ac_header_compiler=no
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2436$as_echo "$ac_header_compiler" >&6; }
2437
2438# Is the header present?
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2440$as_echo_n "checking $2 presence... " >&6; }
2441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442/* end confdefs.h. */
2443#include <$2>
2444_ACEOF
2445if ac_fn_c_try_cpp "$LINENO"; then :
2446 ac_header_preproc=yes
2447else
2448 ac_header_preproc=no
2449fi
2450rm -f conftest.err conftest.i conftest.$ac_ext
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2452$as_echo "$ac_header_preproc" >&6; }
2453
2454# So? What about this header?
2455case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2456 yes:no: )
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2458$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2460$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2461 ;;
2462 no:yes:* )
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2464$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2466$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2468$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2470$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2472$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2473( $as_echo "## ----------------------------------------------------------------------- ##
2474## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2475## ----------------------------------------------------------------------- ##"
2476 ) | sed "s/^/$as_me: WARNING: /" >&2
2477 ;;
2478esac
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480$as_echo_n "checking for $2... " >&6; }
2481if eval \${$3+:} false; then :
2482 $as_echo_n "(cached) " >&6
2483else
2484 eval "$3=\$ac_header_compiler"
2485fi
2486eval ac_res=\$$3
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2488$as_echo "$ac_res" >&6; }
2489fi
2490 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2491
2492} # ac_fn_c_check_header_mongrel
2493
Elliott Hughes82be86d2017-09-20 17:00:17 -07002494# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2495# -------------------------------------------
2496# Tests whether TYPE exists after having included INCLUDES, setting cache
2497# variable VAR accordingly.
2498ac_fn_c_check_type ()
2499{
2500 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502$as_echo_n "checking for $2... " >&6; }
2503if eval \${$3+:} false; then :
2504 $as_echo_n "(cached) " >&6
2505else
2506 eval "$3=no"
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508/* end confdefs.h. */
2509$4
2510int main (void)
2511{
2512if (sizeof ($2))
2513 return 0;
2514 ;
2515 return 0;
2516}
2517_ACEOF
2518if ac_fn_c_try_compile "$LINENO"; then :
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h. */
2521$4
2522int main (void)
2523{
2524if (sizeof (($2)))
2525 return 0;
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530if ac_fn_c_try_compile "$LINENO"; then :
2531
2532else
2533 eval "$3=yes"
2534fi
2535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2536fi
2537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538fi
2539eval ac_res=\$$3
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2541$as_echo "$ac_res" >&6; }
2542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2543
2544} # ac_fn_c_check_type
2545
Elliott Hughes72d948d2018-08-03 14:37:21 -07002546# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2547# ---------------------------------------------
2548# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2549# accordingly.
2550ac_fn_c_check_decl ()
2551{
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 as_decl_name=`echo $2|sed 's/ *(.*//'`
2554 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2556$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2557if eval \${$3+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559else
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561/* end confdefs.h. */
2562$4
2563int main (void)
2564{
2565#ifndef $as_decl_name
2566#ifdef __cplusplus
2567 (void) $as_decl_use;
2568#else
2569 (void) $as_decl_name;
2570#endif
2571#endif
2572
2573 ;
2574 return 0;
2575}
2576_ACEOF
2577if ac_fn_c_try_compile "$LINENO"; then :
2578 eval "$3=yes"
2579else
2580 eval "$3=no"
2581fi
2582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583fi
2584eval ac_res=\$$3
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586$as_echo "$ac_res" >&6; }
2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2588
2589} # ac_fn_c_check_decl
2590
Elliott Hughes82be86d2017-09-20 17:00:17 -07002591# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592# ----------------------------------------------------
2593# Tries to find if the field MEMBER exists in type AGGR, after including
2594# INCLUDES, setting cache variable VAR accordingly.
2595ac_fn_c_check_member ()
2596{
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599$as_echo_n "checking for $2.$3... " >&6; }
2600if eval \${$4+:} false; then :
2601 $as_echo_n "(cached) " >&6
2602else
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604/* end confdefs.h. */
2605$5
2606int main (void)
2607{
2608static $2 ac_aggr;
2609if (ac_aggr.$3)
2610return 0;
2611 ;
2612 return 0;
2613}
2614_ACEOF
2615if ac_fn_c_try_compile "$LINENO"; then :
2616 eval "$4=yes"
2617else
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619/* end confdefs.h. */
2620$5
2621int main (void)
2622{
2623static $2 ac_aggr;
2624if (sizeof ac_aggr.$3)
2625return 0;
2626 ;
2627 return 0;
2628}
2629_ACEOF
2630if ac_fn_c_try_compile "$LINENO"; then :
2631 eval "$4=yes"
2632else
2633 eval "$4=no"
2634fi
2635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636fi
2637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638fi
2639eval ac_res=\$$4
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641$as_echo "$ac_res" >&6; }
2642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643
2644} # ac_fn_c_check_member
2645cat >config.log <<_ACEOF
2646This file contains any messages produced by compilers while
2647running configure, to aid debugging if configure makes a mistake.
2648
2649It was created by curl $as_me -, which was
2650generated by GNU Autoconf 2.69. Invocation command line was
2651
2652 $ $0 $@
2653
2654_ACEOF
2655exec 5>>config.log
2656{
2657cat <<_ASUNAME
2658## --------- ##
2659## Platform. ##
2660## --------- ##
2661
2662hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2663uname -m = `(uname -m) 2>/dev/null || echo unknown`
2664uname -r = `(uname -r) 2>/dev/null || echo unknown`
2665uname -s = `(uname -s) 2>/dev/null || echo unknown`
2666uname -v = `(uname -v) 2>/dev/null || echo unknown`
2667
2668/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2669/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2670
2671/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2672/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2673/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2674/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2675/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2676/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2677/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2678
2679_ASUNAME
2680
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 $as_echo "PATH: $as_dir"
2687 done
2688IFS=$as_save_IFS
2689
2690} >&5
2691
2692cat >&5 <<_ACEOF
2693
2694
2695## ----------- ##
2696## Core tests. ##
2697## ----------- ##
2698
2699_ACEOF
2700
2701
2702# Keep a trace of the command line.
2703# Strip out --no-create and --no-recursion so they do not pile up.
2704# Strip out --silent because we don't want to record it for future runs.
2705# Also quote any args containing shell meta-characters.
2706# Make two passes to allow for proper duplicate-argument suppression.
2707ac_configure_args=
2708ac_configure_args0=
2709ac_configure_args1=
2710ac_must_keep_next=false
2711for ac_pass in 1 2
2712do
2713 for ac_arg
2714 do
2715 case $ac_arg in
2716 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2718 | -silent | --silent | --silen | --sile | --sil)
2719 continue ;;
2720 *\'*)
2721 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2722 esac
2723 case $ac_pass in
2724 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2725 2)
2726 as_fn_append ac_configure_args1 " '$ac_arg'"
2727 if test $ac_must_keep_next = true; then
2728 ac_must_keep_next=false # Got value, back to normal.
2729 else
2730 case $ac_arg in
2731 *=* | --config-cache | -C | -disable-* | --disable-* \
2732 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2733 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2734 | -with-* | --with-* | -without-* | --without-* | --x)
2735 case "$ac_configure_args0 " in
2736 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2737 esac
2738 ;;
2739 -* ) ac_must_keep_next=true ;;
2740 esac
2741 fi
2742 as_fn_append ac_configure_args " '$ac_arg'"
2743 ;;
2744 esac
2745 done
2746done
2747{ ac_configure_args0=; unset ac_configure_args0;}
2748{ ac_configure_args1=; unset ac_configure_args1;}
2749
2750# When interrupted or exit'd, cleanup temporary files, and complete
2751# config.log. We remove comments because anyway the quotes in there
2752# would cause problems or look ugly.
2753# WARNING: Use '\'' to represent an apostrophe within the trap.
2754# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2755trap 'exit_status=$?
2756 # Save into config.log some information that might help in debugging.
2757 {
2758 echo
2759
2760 $as_echo "## ---------------- ##
2761## Cache variables. ##
2762## ---------------- ##"
2763 echo
2764 # The following way of writing the cache mishandles newlines in values,
2765(
2766 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2767 eval ac_val=\$$ac_var
2768 case $ac_val in #(
2769 *${as_nl}*)
2770 case $ac_var in #(
2771 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2772$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2773 esac
2774 case $ac_var in #(
2775 _ | IFS | as_nl) ;; #(
2776 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2777 *) { eval $ac_var=; unset $ac_var;} ;;
2778 esac ;;
2779 esac
2780 done
2781 (set) 2>&1 |
2782 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2783 *${as_nl}ac_space=\ *)
2784 sed -n \
2785 "s/'\''/'\''\\\\'\'''\''/g;
2786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2787 ;; #(
2788 *)
2789 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2790 ;;
2791 esac |
2792 sort
2793)
2794 echo
2795
2796 $as_echo "## ----------------- ##
2797## Output variables. ##
2798## ----------------- ##"
2799 echo
2800 for ac_var in $ac_subst_vars
2801 do
2802 eval ac_val=\$$ac_var
2803 case $ac_val in
2804 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2805 esac
2806 $as_echo "$ac_var='\''$ac_val'\''"
2807 done | sort
2808 echo
2809
2810 if test -n "$ac_subst_files"; then
2811 $as_echo "## ------------------- ##
2812## File substitutions. ##
2813## ------------------- ##"
2814 echo
2815 for ac_var in $ac_subst_files
2816 do
2817 eval ac_val=\$$ac_var
2818 case $ac_val in
2819 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2820 esac
2821 $as_echo "$ac_var='\''$ac_val'\''"
2822 done | sort
2823 echo
2824 fi
2825
2826 if test -s confdefs.h; then
2827 $as_echo "## ----------- ##
2828## confdefs.h. ##
2829## ----------- ##"
2830 echo
2831 cat confdefs.h
2832 echo
2833 fi
2834 test "$ac_signal" != 0 &&
2835 $as_echo "$as_me: caught signal $ac_signal"
2836 $as_echo "$as_me: exit $exit_status"
2837 } >&5
2838 rm -f core *.core core.conftest.* &&
2839 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2840 exit $exit_status
2841' 0
2842for ac_signal in 1 2 13 15; do
2843 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2844done
2845ac_signal=0
2846
2847# confdefs.h avoids OS command line length limits that DEFS can exceed.
2848rm -f -r conftest* confdefs.h
2849
2850$as_echo "/* confdefs.h */" > confdefs.h
2851
2852# Predefined preprocessor variables.
2853
2854cat >>confdefs.h <<_ACEOF
2855#define PACKAGE_NAME "$PACKAGE_NAME"
2856_ACEOF
2857
2858cat >>confdefs.h <<_ACEOF
2859#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2860_ACEOF
2861
2862cat >>confdefs.h <<_ACEOF
2863#define PACKAGE_VERSION "$PACKAGE_VERSION"
2864_ACEOF
2865
2866cat >>confdefs.h <<_ACEOF
2867#define PACKAGE_STRING "$PACKAGE_STRING"
2868_ACEOF
2869
2870cat >>confdefs.h <<_ACEOF
2871#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2872_ACEOF
2873
2874cat >>confdefs.h <<_ACEOF
2875#define PACKAGE_URL "$PACKAGE_URL"
2876_ACEOF
2877
2878
2879# Let the site file select an alternate cache file if it wants to.
2880# Prefer an explicitly selected file to automatically selected ones.
2881ac_site_file1=NONE
2882ac_site_file2=NONE
2883if test -n "$CONFIG_SITE"; then
2884 # We do not want a PATH search for config.site.
2885 case $CONFIG_SITE in #((
2886 -*) ac_site_file1=./$CONFIG_SITE;;
2887 */*) ac_site_file1=$CONFIG_SITE;;
2888 *) ac_site_file1=./$CONFIG_SITE;;
2889 esac
2890elif test "x$prefix" != xNONE; then
2891 ac_site_file1=$prefix/share/config.site
2892 ac_site_file2=$prefix/etc/config.site
2893else
2894 ac_site_file1=$ac_default_prefix/share/config.site
2895 ac_site_file2=$ac_default_prefix/etc/config.site
2896fi
2897for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2898do
2899 test "x$ac_site_file" = xNONE && continue
2900 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2902$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2903 sed 's/^/| /' "$ac_site_file" >&5
2904 . "$ac_site_file" \
2905 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2907as_fn_error $? "failed to load site script $ac_site_file
2908See \`config.log' for more details" "$LINENO" 5; }
2909 fi
2910done
2911
2912if test -r "$cache_file"; then
2913 # Some versions of bash will fail to source /dev/null (special files
2914 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2915 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2917$as_echo "$as_me: loading cache $cache_file" >&6;}
2918 case $cache_file in
2919 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2920 *) . "./$cache_file";;
2921 esac
2922 fi
2923else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2925$as_echo "$as_me: creating cache $cache_file" >&6;}
2926 >$cache_file
2927fi
2928
2929# Check that the precious variables saved in the cache have kept the same
2930# value.
2931ac_cache_corrupted=false
2932for ac_var in $ac_precious_vars; do
2933 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2934 eval ac_new_set=\$ac_env_${ac_var}_set
2935 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2936 eval ac_new_val=\$ac_env_${ac_var}_value
2937 case $ac_old_set,$ac_new_set in
2938 set,)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2940$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2941 ac_cache_corrupted=: ;;
2942 ,set)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2944$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2945 ac_cache_corrupted=: ;;
2946 ,);;
2947 *)
2948 if test "x$ac_old_val" != "x$ac_new_val"; then
2949 # differences in whitespace do not lead to failure.
2950 ac_old_val_w=`echo x $ac_old_val`
2951 ac_new_val_w=`echo x $ac_new_val`
2952 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2954$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2955 ac_cache_corrupted=:
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2958$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2959 eval $ac_var=\$ac_old_val
2960 fi
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2962$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2964$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2965 fi;;
2966 esac
2967 # Pass precious variables to config.status.
2968 if test "$ac_new_set" = set; then
2969 case $ac_new_val in
2970 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2971 *) ac_arg=$ac_var=$ac_new_val ;;
2972 esac
2973 case " $ac_configure_args " in
2974 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2975 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2976 esac
2977 fi
2978done
2979if $ac_cache_corrupted; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2983$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2984 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2985fi
2986## -------------------- ##
2987## Main body of script. ##
2988## -------------------- ##
2989
2990ac_ext=c
2991ac_cpp='$CPP $CPPFLAGS'
2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995
2996
2997
2998
2999
3000
3001
3002# using curl-override.m4
3003
3004
3005
3006
3007
3008ac_config_headers="$ac_config_headers lib/curl_config.h"
3009
3010
3011
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3013$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3014 # Check whether --enable-maintainer-mode was given.
3015if test "${enable_maintainer_mode+set}" = set; then :
3016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3017else
3018 USE_MAINTAINER_MODE=no
3019fi
3020
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3022$as_echo "$USE_MAINTAINER_MODE" >&6; }
3023 if test $USE_MAINTAINER_MODE = yes; then
3024 MAINTAINER_MODE_TRUE=
3025 MAINTAINER_MODE_FALSE='#'
3026else
3027 MAINTAINER_MODE_TRUE='#'
3028 MAINTAINER_MODE_FALSE=
3029fi
3030
3031 MAINT=$MAINTAINER_MODE_TRUE
3032
3033
3034# Check whether --enable-silent-rules was given.
3035if test "${enable_silent_rules+set}" = set; then :
3036 enableval=$enable_silent_rules;
3037fi
3038
3039case $enable_silent_rules in # (((
3040 yes) AM_DEFAULT_VERBOSITY=0;;
3041 no) AM_DEFAULT_VERBOSITY=1;;
3042 *) AM_DEFAULT_VERBOSITY=0;;
3043esac
3044am_make=${MAKE-make}
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3046$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3047if ${am_cv_make_support_nested_variables+:} false; then :
3048 $as_echo_n "(cached) " >&6
3049else
3050 if $as_echo 'TRUE=$(BAR$(V))
3051BAR0=false
3052BAR1=true
3053V=1
3054am__doit:
3055 @$(TRUE)
3056.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3057 am_cv_make_support_nested_variables=yes
3058else
3059 am_cv_make_support_nested_variables=no
3060fi
3061fi
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3063$as_echo "$am_cv_make_support_nested_variables" >&6; }
3064if test $am_cv_make_support_nested_variables = yes; then
3065 AM_V='$(V)'
3066 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3067else
3068 AM_V=$AM_DEFAULT_VERBOSITY
3069 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3070fi
3071AM_BACKSLASH='\'
3072
3073
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3076$as_echo_n "checking whether to enable debug build options... " >&6; }
3077 OPT_DEBUG_BUILD="default"
3078 # Check whether --enable-debug was given.
3079if test "${enable_debug+set}" = set; then :
3080 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3081fi
3082
3083 case "$OPT_DEBUG_BUILD" in
3084 no)
3085 want_debug="no"
3086 ;;
3087 default)
3088 want_debug="no"
3089 ;;
3090 *)
3091 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003092
3093$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3094
Elliott Hughes82be86d2017-09-20 17:00:17 -07003095 ;;
3096 esac
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3098$as_echo "$want_debug" >&6; }
3099
3100
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3102$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3103 OPT_COMPILER_OPTIMIZE="default"
3104 # Check whether --enable-optimize was given.
3105if test "${enable_optimize+set}" = set; then :
3106 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3107fi
3108
3109 case "$OPT_COMPILER_OPTIMIZE" in
3110 no)
3111 want_optimize="no"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113$as_echo "no" >&6; }
3114 ;;
3115 default)
3116 if test "$want_debug" = "yes"; then
3117 want_optimize="assume_no"
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3119$as_echo "(assumed) no" >&6; }
3120 else
3121 want_optimize="assume_yes"
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3123$as_echo "(assumed) yes" >&6; }
3124 fi
3125 ;;
3126 *)
3127 want_optimize="yes"
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129$as_echo "yes" >&6; }
3130 ;;
3131 esac
3132
3133
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3135$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3136 OPT_COMPILER_WARNINGS="default"
3137 # Check whether --enable-warnings was given.
3138if test "${enable_warnings+set}" = set; then :
3139 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3140fi
3141
3142 case "$OPT_COMPILER_WARNINGS" in
3143 no)
3144 want_warnings="no"
3145 ;;
3146 default)
3147 want_warnings="$want_debug"
3148 ;;
3149 *)
3150 want_warnings="yes"
3151 ;;
3152 esac
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3154$as_echo "$want_warnings" >&6; }
3155
3156
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3158$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3159 OPT_COMPILER_WERROR="default"
3160 # Check whether --enable-werror was given.
3161if test "${enable_werror+set}" = set; then :
3162 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3163fi
3164
3165 case "$OPT_COMPILER_WERROR" in
3166 no)
3167 want_werror="no"
3168 ;;
3169 default)
3170 want_werror="no"
3171 ;;
3172 *)
3173 want_werror="yes"
3174 ;;
3175 esac
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3177$as_echo "$want_werror" >&6; }
3178
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3181$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3182 OPT_CURLDEBUG_BUILD="default"
3183 # Check whether --enable-curldebug was given.
3184if test "${enable_curldebug+set}" = set; then :
3185 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3186fi
3187
3188 case "$OPT_CURLDEBUG_BUILD" in
3189 no)
3190 want_curldebug="no"
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193 ;;
3194 default)
3195 if test "$want_debug" = "yes"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3197$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003198
3199$as_echo "#define CURLDEBUG 1" >>confdefs.h
3200
Elliott Hughes82be86d2017-09-20 17:00:17 -07003201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203$as_echo "no" >&6; }
3204 fi
3205 want_curldebug_assumed="yes"
3206 want_curldebug="$want_debug"
3207 ;;
3208 *)
3209 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003210
3211$as_echo "#define CURLDEBUG 1" >>confdefs.h
3212
Elliott Hughes82be86d2017-09-20 17:00:17 -07003213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3214$as_echo "yes" >&6; }
3215 ;;
3216 esac
3217
3218
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3220$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3221 OPT_SYMBOL_HIDING="default"
3222 # Check whether --enable-symbol-hiding was given.
3223if test "${enable_symbol_hiding+set}" = set; then :
3224 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3225fi
3226
3227 # Check whether --enable-hidden-symbols was given.
3228if test "${enable_hidden_symbols+set}" = set; then :
3229 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3230fi
3231
3232 case "$OPT_SYMBOL_HIDING" in
3233 no)
3234 want_symbol_hiding="no"
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237 ;;
3238 default)
3239 want_symbol_hiding="yes"
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241$as_echo "yes" >&6; }
3242 ;;
3243 *)
3244 want_symbol_hiding="yes"
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3246$as_echo "yes" >&6; }
3247 ;;
3248 esac
3249
3250
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3252$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3253 OPT_ARES="default"
3254 # Check whether --enable-ares was given.
3255if test "${enable_ares+set}" = set; then :
3256 enableval=$enable_ares; OPT_ARES=$enableval
3257fi
3258
3259 case "$OPT_ARES" in
3260 no)
3261 want_ares="no"
3262 ;;
3263 default)
3264 want_ares="no"
3265 ;;
3266 *)
3267 want_ares="yes"
3268 if test -n "$enableval" && test "$enableval" != "yes"; then
3269 want_ares_path="$enableval"
3270 fi
3271 ;;
3272 esac
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3274$as_echo "$want_ares" >&6; }
3275
3276
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3278$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3279 OPT_RT="default"
3280 # Check whether --enable-rt was given.
3281if test "${enable_rt+set}" = set; then :
3282 enableval=$enable_rt; OPT_RT=$enableval
3283fi
3284
3285 case "$OPT_RT" in
3286 no)
3287 dontwant_rt="yes"
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289$as_echo "yes" >&6; }
3290 ;;
3291 default)
3292 dontwant_rt="no"
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3294$as_echo "(assumed no)" >&6; }
3295 ;;
3296 *)
3297 dontwant_rt="no"
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300 ;;
3301 esac
3302
3303
3304#
3305# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3306#
3307
3308if test -z "$xc_configure_preamble_result"; then
3309 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3310fi
3311
3312#
3313# Check that 'PATH_SEPARATOR' has already been set.
3314#
3315
3316if test -z "$xc_PATH_SEPARATOR"; then
3317 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3318fi
3319if test -z "$PATH_SEPARATOR"; then
3320 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3321fi
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3323$as_echo_n "checking for path separator... " >&6; }
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3325$as_echo "$PATH_SEPARATOR" >&6; }
3326if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3328$as_echo_n "checking for initial path separator... " >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3330$as_echo "$xc_PATH_SEPARATOR" >&6; }
3331 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3332fi
3333
Elliott Hughes82be86d2017-09-20 17:00:17 -07003334
3335#
3336# save the configure arguments
3337#
3338CONFIGURE_OPTIONS="\"$ac_configure_args\""
3339
3340
3341CURL_CFLAG_EXTRAS=""
3342if test X"$want_werror" = Xyes; then
3343 CURL_CFLAG_EXTRAS="-Werror"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -07003344 if test "$compiler_id" = "GNU_C"; then
3345 if test "$compiler_num" -ge "500"; then
3346 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3347 fi
3348 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -07003349fi
3350
3351
3352if test -z "$SED"; then
3353 # Extract the first word of "sed", so it can be a program name with args.
3354set dummy sed; ac_word=$2
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356$as_echo_n "checking for $ac_word... " >&6; }
3357if ${ac_cv_path_SED+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359else
3360 case $SED in
3361 [\\/]* | ?:[\\/]*)
3362 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3363 ;;
3364 *)
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366as_dummy="$PATH:/usr/bin:/usr/local/bin"
3367for as_dir in $as_dummy
3368do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377done
3378 done
3379IFS=$as_save_IFS
3380
3381 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3382 ;;
3383esac
3384fi
3385SED=$ac_cv_path_SED
3386if test -n "$SED"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3388$as_echo "$SED" >&6; }
3389else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391$as_echo "no" >&6; }
3392fi
3393
3394
3395 if test -z "$SED" || test "$SED" = "not_found"; then
3396 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3397 fi
3398fi
3399
3400
3401if test -z "$GREP"; then
3402 # Extract the first word of "grep", so it can be a program name with args.
3403set dummy grep; ac_word=$2
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405$as_echo_n "checking for $ac_word... " >&6; }
3406if ${ac_cv_path_GREP+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408else
3409 case $GREP in
3410 [\\/]* | ?:[\\/]*)
3411 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3412 ;;
3413 *)
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415as_dummy="$PATH:/usr/bin:/usr/local/bin"
3416for as_dir in $as_dummy
3417do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426done
3427 done
3428IFS=$as_save_IFS
3429
3430 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3431 ;;
3432esac
3433fi
3434GREP=$ac_cv_path_GREP
3435if test -n "$GREP"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3437$as_echo "$GREP" >&6; }
3438else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440$as_echo "no" >&6; }
3441fi
3442
3443
3444 if test -z "$GREP" || test "$GREP" = "not_found"; then
3445 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3446 fi
3447fi
3448
3449
3450if test -z "$EGREP"; then
3451 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3453$as_echo_n "checking for egrep... " >&6; }
3454 EGREP="$GREP -E"
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3456$as_echo "$EGREP" >&6; }
3457 else
3458 # Extract the first word of "egrep", so it can be a program name with args.
3459set dummy egrep; ac_word=$2
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461$as_echo_n "checking for $ac_word... " >&6; }
3462if ${ac_cv_path_EGREP+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464else
3465 case $EGREP in
3466 [\\/]* | ?:[\\/]*)
3467 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3468 ;;
3469 *)
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471as_dummy="$PATH:/usr/bin:/usr/local/bin"
3472for as_dir in $as_dummy
3473do
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3481 fi
3482done
3483 done
3484IFS=$as_save_IFS
3485
3486 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3487 ;;
3488esac
3489fi
3490EGREP=$ac_cv_path_EGREP
3491if test -n "$EGREP"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3493$as_echo "$EGREP" >&6; }
3494else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500 fi
3501fi
3502if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3503 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3504fi
3505
3506
3507if test -z "$AR"; then
3508 if test -n "$ac_tool_prefix"; then
3509 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3510set dummy ${ac_tool_prefix}ar; ac_word=$2
3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512$as_echo_n "checking for $ac_word... " >&6; }
3513if ${ac_cv_path_AR+:} false; then :
3514 $as_echo_n "(cached) " >&6
3515else
3516 case $AR in
3517 [\\/]* | ?:[\\/]*)
3518 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3519 ;;
3520 *)
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522as_dummy="$PATH:/usr/bin:/usr/local/bin"
3523for as_dir in $as_dummy
3524do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 for ac_exec_ext in '' $ac_executable_extensions; do
3528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3532 fi
3533done
3534 done
3535IFS=$as_save_IFS
3536
3537 ;;
3538esac
3539fi
3540AR=$ac_cv_path_AR
3541if test -n "$AR"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3543$as_echo "$AR" >&6; }
3544else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546$as_echo "no" >&6; }
3547fi
3548
3549
3550fi
3551if test -z "$ac_cv_path_AR"; then
3552 ac_pt_AR=$AR
3553 # Extract the first word of "ar", so it can be a program name with args.
3554set dummy ar; ac_word=$2
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556$as_echo_n "checking for $ac_word... " >&6; }
3557if ${ac_cv_path_ac_pt_AR+:} false; then :
3558 $as_echo_n "(cached) " >&6
3559else
3560 case $ac_pt_AR in
3561 [\\/]* | ?:[\\/]*)
3562 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3563 ;;
3564 *)
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566as_dummy="$PATH:/usr/bin:/usr/local/bin"
3567for as_dir in $as_dummy
3568do
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3576 fi
3577done
3578 done
3579IFS=$as_save_IFS
3580
3581 ;;
3582esac
3583fi
3584ac_pt_AR=$ac_cv_path_ac_pt_AR
3585if test -n "$ac_pt_AR"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3587$as_echo "$ac_pt_AR" >&6; }
3588else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590$as_echo "no" >&6; }
3591fi
3592
3593 if test "x$ac_pt_AR" = x; then
3594 AR="not_found"
3595 else
3596 case $cross_compiling:$ac_tool_warned in
3597yes:)
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3600ac_tool_warned=yes ;;
3601esac
3602 AR=$ac_pt_AR
3603 fi
3604else
3605 AR="$ac_cv_path_AR"
3606fi
3607
3608 if test -z "$AR" || test "$AR" = "not_found"; then
3609 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3610 fi
3611fi
3612
3613
3614
3615
3616CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3617
3618 xc_prog_cc_prev_IFS=$IFS
3619 xc_prog_cc_prev_LIBS=$LIBS
3620 xc_prog_cc_prev_CFLAGS=$CFLAGS
3621 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3622 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3623
3624
3625
3626 xc_bad_var_libs=no
3627 for xc_word in $LIBS; do
3628 case "$xc_word" in
3629 -l* | --library=*)
3630 :
3631 ;;
3632 *)
3633 xc_bad_var_libs=yes
3634 ;;
3635 esac
3636 done
3637 if test $xc_bad_var_libs = yes; then
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3639$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3641$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3642 fi
3643
3644
3645 xc_bad_var_ldflags=no
3646 for xc_word in $LDFLAGS; do
3647 case "$xc_word" in
3648 -D*)
3649 xc_bad_var_ldflags=yes
3650 ;;
3651 -U*)
3652 xc_bad_var_ldflags=yes
3653 ;;
3654 -I*)
3655 xc_bad_var_ldflags=yes
3656 ;;
3657 -l* | --library=*)
3658 xc_bad_var_ldflags=yes
3659 ;;
3660 esac
3661 done
3662 if test $xc_bad_var_ldflags = yes; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3664$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3665 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3666 for xc_word in $LDFLAGS; do
3667 case "$xc_word" in
3668 -D*)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3670$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3671 ;;
3672 -U*)
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3674$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3675 ;;
3676 -I*)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3678$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3679 ;;
3680 -l* | --library=*)
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3682$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3683 ;;
3684 esac
3685 done
3686 fi
3687
3688
3689 xc_bad_var_cppflags=no
3690 for xc_word in $CPPFLAGS; do
3691 case "$xc_word" in
3692 -rpath*)
3693 xc_bad_var_cppflags=yes
3694 ;;
3695 -L* | --library-path=*)
3696 xc_bad_var_cppflags=yes
3697 ;;
3698 -l* | --library=*)
3699 xc_bad_var_cppflags=yes
3700 ;;
3701 esac
3702 done
3703 if test $xc_bad_var_cppflags = yes; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3705$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3706 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3707 for xc_word in $CPPFLAGS; do
3708 case "$xc_word" in
3709 -rpath*)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3711$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3712 ;;
3713 -L* | --library-path=*)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3715$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3716 ;;
3717 -l* | --library=*)
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3719$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3720 ;;
3721 esac
3722 done
3723 fi
3724
3725
3726 xc_bad_var_cflags=no
3727 for xc_word in $CFLAGS; do
3728 case "$xc_word" in
3729 -D*)
3730 xc_bad_var_cflags=yes
3731 ;;
3732 -U*)
3733 xc_bad_var_cflags=yes
3734 ;;
3735 -I*)
3736 xc_bad_var_cflags=yes
3737 ;;
3738 -rpath*)
3739 xc_bad_var_cflags=yes
3740 ;;
3741 -L* | --library-path=*)
3742 xc_bad_var_cflags=yes
3743 ;;
3744 -l* | --library=*)
3745 xc_bad_var_cflags=yes
3746 ;;
3747 esac
3748 done
3749 if test $xc_bad_var_cflags = yes; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3751$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3752 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3753 for xc_word in $CFLAGS; do
3754 case "$xc_word" in
3755 -D*)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3757$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3758 ;;
3759 -U*)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3761$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3762 ;;
3763 -I*)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3765$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3766 ;;
3767 -rpath*)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3769$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3770 ;;
3771 -L* | --library-path=*)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3773$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3774 ;;
3775 -l* | --library=*)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3777$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3778 ;;
3779 esac
3780 done
3781 fi
3782
3783 if test $xc_bad_var_libs = yes ||
3784 test $xc_bad_var_cflags = yes ||
3785 test $xc_bad_var_ldflags = yes ||
3786 test $xc_bad_var_cppflags = yes; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3788$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3789 fi
3790
3791ac_aux_dir=
3792for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3793 if test -f "$ac_dir/install-sh"; then
3794 ac_aux_dir=$ac_dir
3795 ac_install_sh="$ac_aux_dir/install-sh -c"
3796 break
3797 elif test -f "$ac_dir/install.sh"; then
3798 ac_aux_dir=$ac_dir
3799 ac_install_sh="$ac_aux_dir/install.sh -c"
3800 break
3801 elif test -f "$ac_dir/shtool"; then
3802 ac_aux_dir=$ac_dir
3803 ac_install_sh="$ac_aux_dir/shtool install -c"
3804 break
3805 fi
3806done
3807if test -z "$ac_aux_dir"; then
3808 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3809fi
3810
3811# These three variables are undocumented and unsupported,
3812# and are intended to be withdrawn in a future Autoconf release.
3813# They can cause serious problems if a builder's source tree is in a directory
3814# whose full name contains unusual characters.
3815ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3816ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3817ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3818
3819
3820# Find a good install program. We prefer a C program (faster),
3821# so one script is as good as another. But avoid the broken or
3822# incompatible versions:
3823# SysV /etc/install, /usr/sbin/install
3824# SunOS /usr/etc/install
3825# IRIX /sbin/install
3826# AIX /bin/install
3827# AmigaOS /C/install, which installs bootblocks on floppy discs
3828# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3829# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3830# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3831# OS/2's system install, which has a completely different semantic
3832# ./install, which can be erroneously created by make from ./install.sh.
3833# Reject install programs that cannot install multiple files.
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3835$as_echo_n "checking for a BSD-compatible install... " >&6; }
3836if test -z "$INSTALL"; then
3837if ${ac_cv_path_install+:} false; then :
3838 $as_echo_n "(cached) " >&6
3839else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 # Account for people who put trailing slashes in PATH elements.
3846case $as_dir/ in #((
3847 ./ | .// | /[cC]/* | \
3848 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3849 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3850 /usr/ucb/* ) ;;
3851 *)
3852 # OSF1 and SCO ODT 3.0 have their own names for install.
3853 # Don't use installbsd from OSF since it installs stuff as root
3854 # by default.
3855 for ac_prog in ginstall scoinst install; do
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3858 if test $ac_prog = install &&
3859 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3860 # AIX install. It has an incompatible calling convention.
3861 :
3862 elif test $ac_prog = install &&
3863 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3864 # program-specific install script used by HP pwplus--don't use.
3865 :
3866 else
3867 rm -rf conftest.one conftest.two conftest.dir
3868 echo one > conftest.one
3869 echo two > conftest.two
3870 mkdir conftest.dir
3871 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3872 test -s conftest.one && test -s conftest.two &&
3873 test -s conftest.dir/conftest.one &&
3874 test -s conftest.dir/conftest.two
3875 then
3876 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3877 break 3
3878 fi
3879 fi
3880 fi
3881 done
3882 done
3883 ;;
3884esac
3885
3886 done
3887IFS=$as_save_IFS
3888
3889rm -rf conftest.one conftest.two conftest.dir
3890
3891fi
3892 if test "${ac_cv_path_install+set}" = set; then
3893 INSTALL=$ac_cv_path_install
3894 else
3895 # As a last resort, use the slow shell script. Don't cache a
3896 # value for INSTALL within a source directory, because that will
3897 # break other packages using the cache if that directory is
3898 # removed, or if the value is a relative name.
3899 INSTALL=$ac_install_sh
3900 fi
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3903$as_echo "$INSTALL" >&6; }
3904
3905# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3906# It thinks the first close brace ends the variable substitution.
3907test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3908
3909test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3910
3911test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3912
3913# Expand $ac_aux_dir to an absolute path.
3914am_aux_dir=`cd "$ac_aux_dir" && pwd`
3915
3916ac_ext=c
3917ac_cpp='$CPP $CPPFLAGS'
3918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3923set dummy ${ac_tool_prefix}gcc; ac_word=$2
3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925$as_echo_n "checking for $ac_word... " >&6; }
3926if ${ac_cv_prog_CC+:} false; then :
3927 $as_echo_n "(cached) " >&6
3928else
3929 if test -n "$CC"; then
3930 ac_cv_prog_CC="$CC" # Let the user override the test.
3931else
3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933for as_dir in $PATH
3934do
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3942 fi
3943done
3944 done
3945IFS=$as_save_IFS
3946
3947fi
3948fi
3949CC=$ac_cv_prog_CC
3950if test -n "$CC"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3952$as_echo "$CC" >&6; }
3953else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955$as_echo "no" >&6; }
3956fi
3957
3958
3959fi
3960if test -z "$ac_cv_prog_CC"; then
3961 ac_ct_CC=$CC
3962 # Extract the first word of "gcc", so it can be a program name with args.
3963set dummy gcc; ac_word=$2
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965$as_echo_n "checking for $ac_word... " >&6; }
3966if ${ac_cv_prog_ac_ct_CC+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968else
3969 if test -n "$ac_ct_CC"; then
3970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3979 ac_cv_prog_ac_ct_CC="gcc"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3981 break 2
3982 fi
3983done
3984 done
3985IFS=$as_save_IFS
3986
3987fi
3988fi
3989ac_ct_CC=$ac_cv_prog_ac_ct_CC
3990if test -n "$ac_ct_CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3992$as_echo "$ac_ct_CC" >&6; }
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998 if test "x$ac_ct_CC" = x; then
3999 CC=""
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4005ac_tool_warned=yes ;;
4006esac
4007 CC=$ac_ct_CC
4008 fi
4009else
4010 CC="$ac_cv_prog_CC"
4011fi
4012
4013if test -z "$CC"; then
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4016set dummy ${ac_tool_prefix}cc; ac_word=$2
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018$as_echo_n "checking for $ac_word... " >&6; }
4019if ${ac_cv_prog_CC+:} false; then :
4020 $as_echo_n "(cached) " >&6
4021else
4022 if test -n "$CC"; then
4023 ac_cv_prog_CC="$CC" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028 IFS=$as_save_IFS
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032 ac_cv_prog_CC="${ac_tool_prefix}cc"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034 break 2
4035 fi
4036done
4037 done
4038IFS=$as_save_IFS
4039
4040fi
4041fi
4042CC=$ac_cv_prog_CC
4043if test -n "$CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4045$as_echo "$CC" >&6; }
4046else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048$as_echo "no" >&6; }
4049fi
4050
4051
4052 fi
4053fi
4054if test -z "$CC"; then
4055 # Extract the first word of "cc", so it can be a program name with args.
4056set dummy cc; ac_word=$2
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058$as_echo_n "checking for $ac_word... " >&6; }
4059if ${ac_cv_prog_CC+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061else
4062 if test -n "$CC"; then
4063 ac_cv_prog_CC="$CC" # Let the user override the test.
4064else
4065 ac_prog_rejected=no
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4074 ac_prog_rejected=yes
4075 continue
4076 fi
4077 ac_cv_prog_CC="cc"
4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 break 2
4080 fi
4081done
4082 done
4083IFS=$as_save_IFS
4084
4085if test $ac_prog_rejected = yes; then
4086 # We found a bogon in the path, so make sure we never use it.
4087 set dummy $ac_cv_prog_CC
4088 shift
4089 if test $# != 0; then
4090 # We chose a different compiler from the bogus one.
4091 # However, it has the same basename, so the bogon will be chosen
4092 # first if we set CC to just the basename; use the full file name.
4093 shift
4094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4095 fi
4096fi
4097fi
4098fi
4099CC=$ac_cv_prog_CC
4100if test -n "$CC"; then
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4102$as_echo "$CC" >&6; }
4103else
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
4106fi
4107
4108
4109fi
4110if test -z "$CC"; then
4111 if test -n "$ac_tool_prefix"; then
4112 for ac_prog in cl.exe
4113 do
4114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117$as_echo_n "checking for $ac_word... " >&6; }
4118if ${ac_cv_prog_CC+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120else
4121 if test -n "$CC"; then
4122 ac_cv_prog_CC="$CC" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135done
4136 done
4137IFS=$as_save_IFS
4138
4139fi
4140fi
4141CC=$ac_cv_prog_CC
4142if test -n "$CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144$as_echo "$CC" >&6; }
4145else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147$as_echo "no" >&6; }
4148fi
4149
4150
4151 test -n "$CC" && break
4152 done
4153fi
4154if test -z "$CC"; then
4155 ac_ct_CC=$CC
4156 for ac_prog in cl.exe
4157do
4158 # Extract the first word of "$ac_prog", so it can be a program name with args.
4159set dummy $ac_prog; ac_word=$2
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161$as_echo_n "checking for $ac_word... " >&6; }
4162if ${ac_cv_prog_ac_ct_CC+:} false; then :
4163 $as_echo_n "(cached) " >&6
4164else
4165 if test -n "$ac_ct_CC"; then
4166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4167else
4168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169for as_dir in $PATH
4170do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175 ac_cv_prog_ac_ct_CC="$ac_prog"
4176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4178 fi
4179done
4180 done
4181IFS=$as_save_IFS
4182
4183fi
4184fi
4185ac_ct_CC=$ac_cv_prog_ac_ct_CC
4186if test -n "$ac_ct_CC"; then
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4188$as_echo "$ac_ct_CC" >&6; }
4189else
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191$as_echo "no" >&6; }
4192fi
4193
4194
4195 test -n "$ac_ct_CC" && break
4196done
4197
4198 if test "x$ac_ct_CC" = x; then
4199 CC=""
4200 else
4201 case $cross_compiling:$ac_tool_warned in
4202yes:)
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205ac_tool_warned=yes ;;
4206esac
4207 CC=$ac_ct_CC
4208 fi
4209fi
4210
4211fi
4212
4213
4214test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216as_fn_error $? "no acceptable C compiler found in \$PATH
4217See \`config.log' for more details" "$LINENO" 5; }
4218
4219# Provide some information about the compiler.
4220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4221set X $ac_compile
4222ac_compiler=$2
4223for ac_option in --version -v -V -qversion; do
4224 { { ac_try="$ac_compiler $ac_option >&5"
4225case "(($ac_try" in
4226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4228esac
4229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230$as_echo "$ac_try_echo"; } >&5
4231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4232 ac_status=$?
4233 if test -s conftest.err; then
4234 sed '10a\
4235... rest of stderr output deleted ...
4236 10q' conftest.err >conftest.er1
4237 cat conftest.er1 >&5
4238 fi
4239 rm -f conftest.er1 conftest.err
4240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241 test $ac_status = 0; }
4242done
4243
4244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245/* end confdefs.h. */
4246
4247int main (void)
4248{
4249
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254ac_clean_files_save=$ac_clean_files
4255ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4256# Try to create an executable without -o first, disregard a.out.
4257# It will help us diagnose broken compilers, and finding out an intuition
4258# of exeext.
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4260$as_echo_n "checking whether the C compiler works... " >&6; }
4261ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4262
4263# The possible output files:
4264ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4265
4266ac_rmfiles=
4267for ac_file in $ac_files
4268do
4269 case $ac_file in
4270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4271 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4272 esac
4273done
4274rm -f $ac_rmfiles
4275
4276if { { ac_try="$ac_link_default"
4277case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280esac
4281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282$as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_link_default") 2>&5
4284 ac_status=$?
4285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4286 test $ac_status = 0; }; then :
4287 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4288# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4289# in a Makefile. We should not override ac_cv_exeext if it was cached,
4290# so that the user can short-circuit this test for compilers unknown to
4291# Autoconf.
4292for ac_file in $ac_files ''
4293do
4294 test -f "$ac_file" || continue
4295 case $ac_file in
4296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4297 ;;
4298 [ab].out )
4299 # We found the default executable, but exeext='' is most
4300 # certainly right.
4301 break;;
4302 *.* )
4303 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4304 then :; else
4305 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4306 fi
4307 # We set ac_cv_exeext here because the later test for it is not
4308 # safe: cross compilers may not add the suffix if given an `-o'
4309 # argument, so we may need to know it at that point already.
4310 # Even if this section looks crufty: it has the advantage of
4311 # actually working.
4312 break;;
4313 * )
4314 break;;
4315 esac
4316done
4317test "$ac_cv_exeext" = no && ac_cv_exeext=
4318
4319else
4320 ac_file=''
4321fi
4322if test -z "$ac_file"; then :
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
4325$as_echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330as_fn_error 77 "C compiler cannot create executables
4331See \`config.log' for more details" "$LINENO" 5; }
4332else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4334$as_echo "yes" >&6; }
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337$as_echo_n "checking for C compiler default output file name... " >&6; }
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4339$as_echo "$ac_file" >&6; }
4340ac_exeext=$ac_cv_exeext
4341
4342rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4343ac_clean_files=$ac_clean_files_save
4344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4345$as_echo_n "checking for suffix of executables... " >&6; }
4346if { { ac_try="$ac_link"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4352$as_echo "$ac_try_echo"; } >&5
4353 (eval "$ac_link") 2>&5
4354 ac_status=$?
4355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4356 test $ac_status = 0; }; then :
4357 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4358# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4359# work properly (i.e., refer to `conftest.exe'), while it won't with
4360# `rm'.
4361for ac_file in conftest.exe conftest conftest.*; do
4362 test -f "$ac_file" || continue
4363 case $ac_file in
4364 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4365 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4366 break;;
4367 * ) break;;
4368 esac
4369done
4370else
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4374See \`config.log' for more details" "$LINENO" 5; }
4375fi
4376rm -f conftest conftest$ac_cv_exeext
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4378$as_echo "$ac_cv_exeext" >&6; }
4379
4380rm -f conftest.$ac_ext
4381EXEEXT=$ac_cv_exeext
4382ac_exeext=$EXEEXT
4383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384/* end confdefs.h. */
4385#include <stdio.h>
4386int main (void)
4387{
4388FILE *f = fopen ("conftest.out", "w");
4389 return ferror (f) || fclose (f) != 0;
4390
4391 ;
4392 return 0;
4393}
4394_ACEOF
4395ac_clean_files="$ac_clean_files conftest.out"
4396# Check that the compiler produces executables we can run. If not, either
4397# the compiler is broken, or we cross compile.
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4399$as_echo_n "checking whether we are cross compiling... " >&6; }
4400if test "$cross_compiling" != yes; then
4401 { { ac_try="$ac_link"
4402case "(($ac_try" in
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4405esac
4406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407$as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_link") 2>&5
4409 ac_status=$?
4410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411 test $ac_status = 0; }
4412 if { ac_try='./conftest$ac_cv_exeext'
4413 { { case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416esac
4417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418$as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_try") 2>&5
4420 ac_status=$?
4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4422 test $ac_status = 0; }; }; then
4423 cross_compiling=no
4424 else
4425 if test "$cross_compiling" = maybe; then
4426 cross_compiling=yes
4427 else
4428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4430as_fn_error $? "cannot run C compiled programs.
4431If you meant to cross compile, use \`--host'.
4432See \`config.log' for more details" "$LINENO" 5; }
4433 fi
4434 fi
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4437$as_echo "$cross_compiling" >&6; }
4438
4439rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4440ac_clean_files=$ac_clean_files_save
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4442$as_echo_n "checking for suffix of object files... " >&6; }
4443if ${ac_cv_objext+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445else
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h. */
4448
4449int main (void)
4450{
4451
4452 ;
4453 return 0;
4454}
4455_ACEOF
4456rm -f conftest.o conftest.obj
4457if { { ac_try="$ac_compile"
4458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_compile") 2>&5
4465 ac_status=$?
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; then :
4468 for ac_file in conftest.o conftest.obj conftest.*; do
4469 test -f "$ac_file" || continue;
4470 case $ac_file in
4471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4473 break;;
4474 esac
4475done
4476else
4477 $as_echo "$as_me: failed program was:" >&5
4478sed 's/^/| /' conftest.$ac_ext >&5
4479
4480{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482as_fn_error $? "cannot compute suffix of object files: cannot compile
4483See \`config.log' for more details" "$LINENO" 5; }
4484fi
4485rm -f conftest.$ac_cv_objext conftest.$ac_ext
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4488$as_echo "$ac_cv_objext" >&6; }
4489OBJEXT=$ac_cv_objext
4490ac_objext=$OBJEXT
4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4493if ${ac_cv_c_compiler_gnu+:} false; then :
4494 $as_echo_n "(cached) " >&6
4495else
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497/* end confdefs.h. */
4498
4499int main (void)
4500{
4501#ifndef __GNUC__
4502 choke me
4503#endif
4504
4505 ;
4506 return 0;
4507}
4508_ACEOF
4509if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_compiler_gnu=yes
4511else
4512 ac_compiler_gnu=no
4513fi
4514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515ac_cv_c_compiler_gnu=$ac_compiler_gnu
4516
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4519$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4520if test $ac_compiler_gnu = yes; then
4521 GCC=yes
4522else
4523 GCC=
4524fi
4525ac_test_CFLAGS=${CFLAGS+set}
4526ac_save_CFLAGS=$CFLAGS
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4528$as_echo_n "checking whether $CC accepts -g... " >&6; }
4529if ${ac_cv_prog_cc_g+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531else
4532 ac_save_c_werror_flag=$ac_c_werror_flag
4533 ac_c_werror_flag=yes
4534 ac_cv_prog_cc_g=no
4535 CFLAGS="-g"
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537/* end confdefs.h. */
4538
4539int main (void)
4540{
4541
4542 ;
4543 return 0;
4544}
4545_ACEOF
4546if ac_fn_c_try_compile "$LINENO"; then :
4547 ac_cv_prog_cc_g=yes
4548else
4549 CFLAGS=""
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551/* end confdefs.h. */
4552
4553int main (void)
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560if ac_fn_c_try_compile "$LINENO"; then :
4561
4562else
4563 ac_c_werror_flag=$ac_save_c_werror_flag
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h. */
4567
4568int main (void)
4569{
4570
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575if ac_fn_c_try_compile "$LINENO"; then :
4576 ac_cv_prog_cc_g=yes
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 ac_c_werror_flag=$ac_save_c_werror_flag
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4586$as_echo "$ac_cv_prog_cc_g" >&6; }
4587if test "$ac_test_CFLAGS" = set; then
4588 CFLAGS=$ac_save_CFLAGS
4589elif test $ac_cv_prog_cc_g = yes; then
4590 if test "$GCC" = yes; then
4591 CFLAGS="-g -O2"
4592 else
4593 CFLAGS="-g"
4594 fi
4595else
4596 if test "$GCC" = yes; then
4597 CFLAGS="-O2"
4598 else
4599 CFLAGS=
4600 fi
4601fi
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4603$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4604if ${ac_cv_prog_cc_c89+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606else
4607 ac_cv_prog_cc_c89=no
4608ac_save_CC=$CC
4609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h. */
4611#include <stdarg.h>
4612#include <stdio.h>
4613struct stat;
4614/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4615struct buf { int x; };
4616FILE * (*rcsopen) (struct buf *, struct stat *, int);
4617static char *e (p, i)
4618 char **p;
4619 int i;
4620{
4621 return p[i];
4622}
4623static char *f (char * (*g) (char **, int), char **p, ...)
4624{
4625 char *s;
4626 va_list v;
4627 va_start (v,p);
4628 s = g (p, va_arg (v,int));
4629 va_end (v);
4630 return s;
4631}
4632
4633/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4634 function prototypes and stuff, but not '\xHH' hex character constants.
4635 These don't provoke an error unfortunately, instead are silently treated
4636 as 'x'. The following induces an error, until -std is added to get
4637 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4638 array size at least. It's necessary to write '\x00'==0 to get something
4639 that's true only with -std. */
4640int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4641
4642/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4643 inside strings and character constants. */
4644#define FOO(x) 'x'
4645int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4646
4647int test (int i, double x);
4648struct s1 {int (*f) (int a);};
4649struct s2 {int (*f) (double a);};
4650int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4651int argc;
4652char **argv;
4653int main (void)
4654{
4655return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4656 ;
4657 return 0;
4658}
4659_ACEOF
4660for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4661 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4662do
4663 CC="$ac_save_CC $ac_arg"
4664 if ac_fn_c_try_compile "$LINENO"; then :
4665 ac_cv_prog_cc_c89=$ac_arg
4666fi
4667rm -f core conftest.err conftest.$ac_objext
4668 test "x$ac_cv_prog_cc_c89" != "xno" && break
4669done
4670rm -f conftest.$ac_ext
4671CC=$ac_save_CC
4672
4673fi
4674# AC_CACHE_VAL
4675case "x$ac_cv_prog_cc_c89" in
4676 x)
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4678$as_echo "none needed" >&6; } ;;
4679 xno)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4681$as_echo "unsupported" >&6; } ;;
4682 *)
4683 CC="$CC $ac_cv_prog_cc_c89"
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4685$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4686esac
4687if test "x$ac_cv_prog_cc_c89" != xno; then :
4688
4689fi
4690
4691ac_ext=c
4692ac_cpp='$CPP $CPPFLAGS'
4693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4695ac_compiler_gnu=$ac_cv_c_compiler_gnu
4696
4697ac_ext=c
4698ac_cpp='$CPP $CPPFLAGS'
4699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701ac_compiler_gnu=$ac_cv_c_compiler_gnu
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4703$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4704if ${am_cv_prog_cc_c_o+:} false; then :
4705 $as_echo_n "(cached) " >&6
4706else
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708/* end confdefs.h. */
4709
4710int main (void)
4711{
4712
4713 ;
4714 return 0;
4715}
4716_ACEOF
4717 # Make sure it works both with $CC and with simple cc.
4718 # Following AC_PROG_CC_C_O, we do the test twice because some
4719 # compilers refuse to overwrite an existing .o file with -o,
4720 # though they will create one.
4721 am_cv_prog_cc_c_o=yes
4722 for am_i in 1 2; do
4723 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4724 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } \
4728 && test -f conftest2.$ac_objext; then
4729 : OK
4730 else
4731 am_cv_prog_cc_c_o=no
4732 break
4733 fi
4734 done
4735 rm -f core conftest*
4736 unset am_i
4737fi
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4739$as_echo "$am_cv_prog_cc_c_o" >&6; }
4740if test "$am_cv_prog_cc_c_o" != yes; then
4741 # Losing compiler, so override with the script.
4742 # FIXME: It is wrong to rewrite CC.
4743 # But if we don't then we get into trouble of one sort or another.
4744 # A longer-term fix would be to have automake use am__CC in this case,
4745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4746 CC="$am_aux_dir/compile $CC"
4747fi
4748ac_ext=c
4749ac_cpp='$CPP $CPPFLAGS'
4750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753
4754
4755
4756ac_ext=c
4757ac_cpp='$CPP $CPPFLAGS'
4758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4762$as_echo_n "checking how to run the C preprocessor... " >&6; }
4763# On Suns, sometimes $CPP names a directory.
4764if test -n "$CPP" && test -d "$CPP"; then
4765 CPP=
4766fi
4767if test -z "$CPP"; then
4768 if ${ac_cv_prog_CPP+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 # Double quotes because CPP needs to be expanded
4772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4773 do
4774 ac_preproc_ok=false
4775for ac_c_preproc_warn_flag in '' yes
4776do
4777 # Use a header file that comes with gcc, so configuring glibc
4778 # with a fresh cross-compiler works.
4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4780 # <limits.h> exists even on freestanding compilers.
4781 # On the NeXT, cc -E runs the code through the compiler's parser,
4782 # not just through cpp. "Syntax error" is here to catch this case.
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784/* end confdefs.h. */
4785#ifdef __STDC__
4786# include <limits.h>
4787#else
4788# include <assert.h>
4789#endif
4790 Syntax error
4791_ACEOF
4792if ac_fn_c_try_cpp "$LINENO"; then :
4793
4794else
4795 # Broken: fails on valid input.
4796continue
4797fi
4798rm -f conftest.err conftest.i conftest.$ac_ext
4799
4800 # OK, works on sane cases. Now check whether nonexistent headers
4801 # can be detected and how.
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803/* end confdefs.h. */
4804#include <ac_nonexistent.h>
4805_ACEOF
4806if ac_fn_c_try_cpp "$LINENO"; then :
4807 # Broken: success on invalid input.
4808continue
4809else
4810 # Passes both tests.
4811ac_preproc_ok=:
4812break
4813fi
4814rm -f conftest.err conftest.i conftest.$ac_ext
4815
4816done
4817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4818rm -f conftest.i conftest.err conftest.$ac_ext
4819if $ac_preproc_ok; then :
4820 break
4821fi
4822
4823 done
4824 ac_cv_prog_CPP=$CPP
4825
4826fi
4827 CPP=$ac_cv_prog_CPP
4828else
4829 ac_cv_prog_CPP=$CPP
4830fi
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4832$as_echo "$CPP" >&6; }
4833ac_preproc_ok=false
4834for ac_c_preproc_warn_flag in '' yes
4835do
4836 # Use a header file that comes with gcc, so configuring glibc
4837 # with a fresh cross-compiler works.
4838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4839 # <limits.h> exists even on freestanding compilers.
4840 # On the NeXT, cc -E runs the code through the compiler's parser,
4841 # not just through cpp. "Syntax error" is here to catch this case.
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h. */
4844#ifdef __STDC__
4845# include <limits.h>
4846#else
4847# include <assert.h>
4848#endif
4849 Syntax error
4850_ACEOF
4851if ac_fn_c_try_cpp "$LINENO"; then :
4852
4853else
4854 # Broken: fails on valid input.
4855continue
4856fi
4857rm -f conftest.err conftest.i conftest.$ac_ext
4858
4859 # OK, works on sane cases. Now check whether nonexistent headers
4860 # can be detected and how.
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862/* end confdefs.h. */
4863#include <ac_nonexistent.h>
4864_ACEOF
4865if ac_fn_c_try_cpp "$LINENO"; then :
4866 # Broken: success on invalid input.
4867continue
4868else
4869 # Passes both tests.
4870ac_preproc_ok=:
4871break
4872fi
4873rm -f conftest.err conftest.i conftest.$ac_ext
4874
4875done
4876# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4877rm -f conftest.i conftest.err conftest.$ac_ext
4878if $ac_preproc_ok; then :
4879
4880else
4881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4883as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4884See \`config.log' for more details" "$LINENO" 5; }
4885fi
4886
4887ac_ext=c
4888ac_cpp='$CPP $CPPFLAGS'
4889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892
4893
4894 IFS=$xc_prog_cc_prev_IFS
4895 LIBS=$xc_prog_cc_prev_LIBS
4896 CFLAGS=$xc_prog_cc_prev_CFLAGS
4897 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4898 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4899
4900
4901
4902
4903
Elliott Hughes0128fe42018-02-27 14:57:55 -08004904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4906$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4907if ${ac_cv_path_SED+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909else
4910 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4911 for ac_i in 1 2 3 4 5 6 7; do
4912 ac_script="$ac_script$as_nl$ac_script"
4913 done
4914 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4915 { ac_script=; unset ac_script;}
4916 if test -z "$SED"; then
4917 ac_path_SED_found=false
4918 # Loop through the user's path and test for each of PROGNAME-LIST
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_prog in sed gsed; do
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4927 as_fn_executable_p "$ac_path_SED" || continue
4928# Check for GNU ac_path_SED and select it if it is found.
4929 # Check for GNU $ac_path_SED
4930case `"$ac_path_SED" --version 2>&1` in
4931*GNU*)
4932 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4933*)
4934 ac_count=0
4935 $as_echo_n 0123456789 >"conftest.in"
4936 while :
4937 do
4938 cat "conftest.in" "conftest.in" >"conftest.tmp"
4939 mv "conftest.tmp" "conftest.in"
4940 cp "conftest.in" "conftest.nl"
4941 $as_echo '' >> "conftest.nl"
4942 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4944 as_fn_arith $ac_count + 1 && ac_count=$as_val
4945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4946 # Best one so far, save it but keep looking for a better one
4947 ac_cv_path_SED="$ac_path_SED"
4948 ac_path_SED_max=$ac_count
4949 fi
4950 # 10*(2^10) chars as input seems more than enough
4951 test $ac_count -gt 10 && break
4952 done
4953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4954esac
4955
4956 $ac_path_SED_found && break 3
4957 done
4958 done
4959 done
4960IFS=$as_save_IFS
4961 if test -z "$ac_cv_path_SED"; then
4962 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4963 fi
4964else
4965 ac_cv_path_SED=$SED
4966fi
4967
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4970$as_echo "$ac_cv_path_SED" >&6; }
4971 SED="$ac_cv_path_SED"
4972 rm -f conftest.sed
4973
Elliott Hughes0128fe42018-02-27 14:57:55 -08004974
4975
4976
Haibo Huang51d9d882019-02-06 01:36:06 -08004977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
4978$as_echo_n "checking for code coverage support... " >&6; }
4979 coverage="no"
4980 curl_coverage_msg="disabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004981
Haibo Huang51d9d882019-02-06 01:36:06 -08004982 # Check whether --enable-code-coverage was given.
Elliott Hughes0128fe42018-02-27 14:57:55 -08004983if test "${enable_code_coverage+set}" = set; then :
Haibo Huang51d9d882019-02-06 01:36:06 -08004984 enableval=$enable_code_coverage; coverage="yes"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004985else
Haibo Huang51d9d882019-02-06 01:36:06 -08004986 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004987fi
4988
4989
Haibo Huang51d9d882019-02-06 01:36:06 -08004990 if test "$GCC" != "yes" ; then :
4991 coverage="no"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004992fi
Haibo Huang51d9d882019-02-06 01:36:06 -08004993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
4994$as_echo "$coverage" >&6; }
Elliott Hughes0128fe42018-02-27 14:57:55 -08004995
Haibo Huang51d9d882019-02-06 01:36:06 -08004996 if test "x$coverage" = "xyes"; then
4997 curl_coverage_msg="enabled"
Elliott Hughes0128fe42018-02-27 14:57:55 -08004998
Haibo Huang51d9d882019-02-06 01:36:06 -08004999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5001set dummy ${ac_tool_prefix}gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08005002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003$as_echo_n "checking for $ac_word... " >&6; }
5004if ${ac_cv_prog_GCOV+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006else
5007 if test -n "$GCOV"; then
5008 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5009else
5010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011for as_dir in $PATH
5012do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005017 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2
5020 fi
5021done
5022 done
5023IFS=$as_save_IFS
5024
5025fi
5026fi
5027GCOV=$ac_cv_prog_GCOV
5028if test -n "$GCOV"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5030$as_echo "$GCOV" >&6; }
5031else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033$as_echo "no" >&6; }
5034fi
5035
5036
5037fi
5038if test -z "$ac_cv_prog_GCOV"; then
5039 ac_ct_GCOV=$GCOV
Haibo Huang51d9d882019-02-06 01:36:06 -08005040 # Extract the first word of "gcov", so it can be a program name with args.
5041set dummy gcov; ac_word=$2
Elliott Hughes0128fe42018-02-27 14:57:55 -08005042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043$as_echo_n "checking for $ac_word... " >&6; }
5044if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046else
5047 if test -n "$ac_ct_GCOV"; then
5048 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5049else
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH
5052do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005057 ac_cv_prog_ac_ct_GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061done
5062 done
5063IFS=$as_save_IFS
5064
5065fi
5066fi
5067ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5068if test -n "$ac_ct_GCOV"; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5070$as_echo "$ac_ct_GCOV" >&6; }
5071else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073$as_echo "no" >&6; }
5074fi
5075
5076 if test "x$ac_ct_GCOV" = x; then
Haibo Huang51d9d882019-02-06 01:36:06 -08005077 GCOV="gcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005078 else
5079 case $cross_compiling:$ac_tool_warned in
5080yes:)
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083ac_tool_warned=yes ;;
5084esac
5085 GCOV=$ac_ct_GCOV
5086 fi
5087else
5088 GCOV="$ac_cv_prog_GCOV"
5089fi
5090
Haibo Huang51d9d882019-02-06 01:36:06 -08005091 if test -z "$GCOV"; then
5092 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5093 fi
5094 # Extract the first word of "lcov", so it can be a program name with args.
Elliott Hughes0128fe42018-02-27 14:57:55 -08005095set dummy lcov; ac_word=$2
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if ${ac_cv_prog_LCOV+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100else
5101 if test -n "$LCOV"; then
5102 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_LCOV="lcov"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2
5114 fi
5115done
5116 done
5117IFS=$as_save_IFS
5118
5119fi
5120fi
5121LCOV=$ac_cv_prog_LCOV
5122if test -n "$LCOV"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5124$as_echo "$LCOV" >&6; }
5125else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128fi
5129
5130
Haibo Huang51d9d882019-02-06 01:36:06 -08005131 if test -z "$LCOV"; then
5132 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5133 fi
5134
5135 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5136 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5137 LIBS="$LIBS -lgcov"
Elliott Hughes0128fe42018-02-27 14:57:55 -08005138 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -08005139
Elliott Hughes0128fe42018-02-27 14:57:55 -08005140
Elliott Hughes82be86d2017-09-20 17:00:17 -07005141am__api_version='1.15'
5142
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5144$as_echo_n "checking whether build environment is sane... " >&6; }
5145# Reject unsafe characters in $srcdir or the absolute working directory
5146# name. Accept space and tab only in the latter.
5147am_lf='
5148'
5149case `pwd` in
5150 *[\\\"\#\$\&\'\`$am_lf]*)
5151 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5152esac
5153case $srcdir in
5154 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5155 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5156esac
5157
5158# Do 'set' in a subshell so we don't clobber the current shell's
5159# arguments. Must try -L first in case configure is actually a
5160# symlink; some systems play weird games with the mod time of symlinks
5161# (eg FreeBSD returns the mod time of the symlink's containing
5162# directory).
5163if (
5164 am_has_slept=no
5165 for am_try in 1 2; do
5166 echo "timestamp, slept: $am_has_slept" > conftest.file
5167 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5168 if test "$*" = "X"; then
5169 # -L didn't work.
5170 set X `ls -t "$srcdir/configure" conftest.file`
5171 fi
5172 if test "$*" != "X $srcdir/configure conftest.file" \
5173 && test "$*" != "X conftest.file $srcdir/configure"; then
5174
5175 # If neither matched, then we have a broken ls. This can happen
5176 # if, for instance, CONFIG_SHELL is bash and it inherits a
5177 # broken ls alias from the environment. This has actually
5178 # happened. Such a system could not be considered "sane".
5179 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5180 alias in your environment" "$LINENO" 5
5181 fi
5182 if test "$2" = conftest.file || test $am_try -eq 2; then
5183 break
5184 fi
5185 # Just in case.
5186 sleep 1
5187 am_has_slept=yes
5188 done
5189 test "$2" = conftest.file
5190 )
5191then
5192 # Ok.
5193 :
5194else
5195 as_fn_error $? "newly created file is older than distributed files!
5196Check your system clock" "$LINENO" 5
5197fi
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199$as_echo "yes" >&6; }
5200# If we didn't sleep, we still need to ensure time stamps of config.status and
5201# generated files are strictly newer.
5202am_sleep_pid=
5203if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5204 ( sleep 1 ) &
5205 am_sleep_pid=$!
5206fi
5207
5208rm -f conftest.file
5209
5210test "$program_prefix" != NONE &&
5211 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5212# Use a double $ so make ignores it.
5213test "$program_suffix" != NONE &&
5214 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5215# Double any \ or $.
5216# By default was `s,x,x', remove it if useless.
5217ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5218program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5219
5220if test x"${MISSING+set}" != xset; then
5221 case $am_aux_dir in
5222 *\ * | *\ *)
5223 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5224 *)
5225 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5226 esac
5227fi
5228# Use eval to expand $SHELL
5229if eval "$MISSING --is-lightweight"; then
5230 am_missing_run="$MISSING "
5231else
5232 am_missing_run=
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5234$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5235fi
5236
5237if test x"${install_sh+set}" != xset; then
5238 case $am_aux_dir in
5239 *\ * | *\ *)
5240 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5241 *)
5242 install_sh="\${SHELL} $am_aux_dir/install-sh"
5243 esac
5244fi
5245
5246# Installed binaries are usually stripped using 'strip' when the user
5247# run "make install-strip". However 'strip' might not be the right
5248# tool to use in cross-compilation environments, therefore Automake
5249# will honor the 'STRIP' environment variable to overrule this program.
5250if test "$cross_compiling" != no; then
5251 if test -n "$ac_tool_prefix"; then
5252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5253set dummy ${ac_tool_prefix}strip; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if ${ac_cv_prog_STRIP+:} false; then :
5257 $as_echo_n "(cached) " >&6
5258else
5259 if test -n "$STRIP"; then
5260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273done
5274 done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279STRIP=$ac_cv_prog_STRIP
5280if test -n "$STRIP"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5282$as_echo "$STRIP" >&6; }
5283else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289fi
5290if test -z "$ac_cv_prog_STRIP"; then
5291 ac_ct_STRIP=$STRIP
5292 # Extract the first word of "strip", so it can be a program name with args.
5293set dummy strip; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298else
5299 if test -n "$ac_ct_STRIP"; then
5300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_ac_ct_STRIP="strip"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313done
5314 done
5315IFS=$as_save_IFS
5316
5317fi
5318fi
5319ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5320if test -n "$ac_ct_STRIP"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5322$as_echo "$ac_ct_STRIP" >&6; }
5323else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325$as_echo "no" >&6; }
5326fi
5327
5328 if test "x$ac_ct_STRIP" = x; then
5329 STRIP=":"
5330 else
5331 case $cross_compiling:$ac_tool_warned in
5332yes:)
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5335ac_tool_warned=yes ;;
5336esac
5337 STRIP=$ac_ct_STRIP
5338 fi
5339else
5340 STRIP="$ac_cv_prog_STRIP"
5341fi
5342
5343fi
5344INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5345
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5347$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5348if test -z "$MKDIR_P"; then
5349 if ${ac_cv_path_mkdir+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5354do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_prog in mkdir gmkdir; do
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5360 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5361 'mkdir (GNU coreutils) '* | \
5362 'mkdir (coreutils) '* | \
5363 'mkdir (fileutils) '4.1*)
5364 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5365 break 3;;
5366 esac
5367 done
5368 done
5369 done
5370IFS=$as_save_IFS
5371
5372fi
5373
5374 test -d ./--version && rmdir ./--version
5375 if test "${ac_cv_path_mkdir+set}" = set; then
5376 MKDIR_P="$ac_cv_path_mkdir -p"
5377 else
5378 # As a last resort, use the slow shell script. Don't cache a
5379 # value for MKDIR_P within a source directory, because that will
5380 # break other packages using the cache if that directory is
5381 # removed, or if the value is a relative name.
5382 MKDIR_P="$ac_install_sh -d"
5383 fi
5384fi
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5386$as_echo "$MKDIR_P" >&6; }
5387
5388for ac_prog in gawk mawk nawk awk
5389do
5390 # Extract the first word of "$ac_prog", so it can be a program name with args.
5391set dummy $ac_prog; ac_word=$2
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
5394if ${ac_cv_prog_AWK+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396else
5397 if test -n "$AWK"; then
5398 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5399else
5400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_prog_AWK="$ac_prog"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411done
5412 done
5413IFS=$as_save_IFS
5414
5415fi
5416fi
5417AWK=$ac_cv_prog_AWK
5418if test -n "$AWK"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5420$as_echo "$AWK" >&6; }
5421else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425
5426
5427 test -n "$AWK" && break
5428done
5429
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5431$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5432set x ${MAKE-make}
5433ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5434if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436else
5437 cat >conftest.make <<\_ACEOF
5438SHELL = /bin/sh
5439all:
5440 @echo '@@@%%%=$(MAKE)=@@@%%%'
5441_ACEOF
5442# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5443case `${MAKE-make} -f conftest.make 2>/dev/null` in
5444 *@@@%%%=?*=@@@%%%*)
5445 eval ac_cv_prog_make_${ac_make}_set=yes;;
5446 *)
5447 eval ac_cv_prog_make_${ac_make}_set=no;;
5448esac
5449rm -f conftest.make
5450fi
5451if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5453$as_echo "yes" >&6; }
5454 SET_MAKE=
5455else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457$as_echo "no" >&6; }
5458 SET_MAKE="MAKE=${MAKE-make}"
5459fi
5460
5461rm -rf .tst 2>/dev/null
5462mkdir .tst 2>/dev/null
5463if test -d .tst; then
5464 am__leading_dot=.
5465else
5466 am__leading_dot=_
5467fi
5468rmdir .tst 2>/dev/null
5469
5470DEPDIR="${am__leading_dot}deps"
5471
5472ac_config_commands="$ac_config_commands depfiles"
5473
5474
5475am_make=${MAKE-make}
5476cat > confinc << 'END'
5477am__doit:
5478 @echo this is the am__doit target
5479.PHONY: am__doit
5480END
5481# If we don't find an include directive, just comment out the code.
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5483$as_echo_n "checking for style of include used by $am_make... " >&6; }
5484am__include="#"
5485am__quote=
5486_am_result=none
5487# First try GNU make style include.
5488echo "include confinc" > confmf
5489# Ignore all kinds of additional output from 'make'.
5490case `$am_make -s -f confmf 2> /dev/null` in #(
5491*the\ am__doit\ target*)
5492 am__include=include
5493 am__quote=
5494 _am_result=GNU
5495 ;;
5496esac
5497# Now try BSD make style include.
5498if test "$am__include" = "#"; then
5499 echo '.include "confinc"' > confmf
5500 case `$am_make -s -f confmf 2> /dev/null` in #(
5501 *the\ am__doit\ target*)
5502 am__include=.include
5503 am__quote="\""
5504 _am_result=BSD
5505 ;;
5506 esac
5507fi
5508
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5511$as_echo "$_am_result" >&6; }
5512rm -f confinc confmf
5513
5514# Check whether --enable-dependency-tracking was given.
5515if test "${enable_dependency_tracking+set}" = set; then :
5516 enableval=$enable_dependency_tracking;
5517fi
5518
5519if test "x$enable_dependency_tracking" != xno; then
5520 am_depcomp="$ac_aux_dir/depcomp"
5521 AMDEPBACKSLASH='\'
5522 am__nodep='_no'
5523fi
5524 if test "x$enable_dependency_tracking" != xno; then
5525 AMDEP_TRUE=
5526 AMDEP_FALSE='#'
5527else
5528 AMDEP_TRUE='#'
5529 AMDEP_FALSE=
5530fi
5531
5532
5533## --------------------------------------- ##
5534## Start of automake initialization code ##
5535## --------------------------------------- ##
5536
5537if test "`cd $srcdir && pwd`" != "`pwd`"; then
5538 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5539 # is not polluted with repeated "-I."
5540 am__isrc=' -I$(srcdir)'
5541 # test to see if srcdir already configured
5542 if test -f $srcdir/config.status; then
5543 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5544 fi
5545fi
5546
5547# test whether we have cygpath
5548if test -z "$CYGPATH_W"; then
5549 if (cygpath --version) >/dev/null 2>/dev/null; then
5550 CYGPATH_W='cygpath -w'
5551 else
5552 CYGPATH_W=echo
5553 fi
5554fi
5555
5556
5557# Define the identity of the package.
5558 PACKAGE='curl'
5559 VERSION='-'
5560
5561
5562cat >>confdefs.h <<_ACEOF
5563#define PACKAGE "$PACKAGE"
5564_ACEOF
5565
5566
5567cat >>confdefs.h <<_ACEOF
5568#define VERSION "$VERSION"
5569_ACEOF
5570
5571# Some tools Automake needs.
5572
5573ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5574
5575
5576AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5577
5578
5579AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5580
5581
5582AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5583
5584
5585MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5586
5587# For better backward compatibility. To be removed once Automake 1.9.x
5588# dies out for good. For more background, see:
5589# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5590# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5591mkdir_p='$(MKDIR_P)'
5592
5593# We need awk for the "check" target (and possibly the TAP driver). The
5594# system "awk" is bad on some platforms.
5595# Always define AMTAR for backward compatibility. Yes, it's still used
5596# in the wild :-( We should find a proper way to deprecate it ...
5597AMTAR='$${TAR-tar}'
5598
5599
5600# We'll loop over all known methods to create a tar archive until one works.
5601_am_tools='gnutar pax cpio none'
5602
5603am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5604
5605
5606
5607
5608
5609depcc="$CC" am_compiler_list=
5610
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5612$as_echo_n "checking dependency style of $depcc... " >&6; }
5613if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615else
5616 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5617 # We make a subdir and do the tests there. Otherwise we can end up
5618 # making bogus files that we don't know about and never remove. For
5619 # instance it was reported that on HP-UX the gcc test will end up
5620 # making a dummy file named 'D' -- because '-MD' means "put the output
5621 # in D".
5622 rm -rf conftest.dir
5623 mkdir conftest.dir
5624 # Copy depcomp to subdir because otherwise we won't find it if we're
5625 # using a relative directory.
5626 cp "$am_depcomp" conftest.dir
5627 cd conftest.dir
5628 # We will build objects and dependencies in a subdirectory because
5629 # it helps to detect inapplicable dependency modes. For instance
5630 # both Tru64's cc and ICC support -MD to output dependencies as a
5631 # side effect of compilation, but ICC will put the dependencies in
5632 # the current directory while Tru64 will put them in the object
5633 # directory.
5634 mkdir sub
5635
5636 am_cv_CC_dependencies_compiler_type=none
5637 if test "$am_compiler_list" = ""; then
5638 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5639 fi
5640 am__universal=false
5641 case " $depcc " in #(
5642 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5643 esac
5644
5645 for depmode in $am_compiler_list; do
5646 # Setup a source with many dependencies, because some compilers
5647 # like to wrap large dependency lists on column 80 (with \), and
5648 # we should not choose a depcomp mode which is confused by this.
5649 #
5650 # We need to recreate these files for each test, as the compiler may
5651 # overwrite some of them when testing with obscure command lines.
5652 # This happens at least with the AIX C compiler.
5653 : > sub/conftest.c
5654 for i in 1 2 3 4 5 6; do
5655 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5656 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5657 # Solaris 10 /bin/sh.
5658 echo '/* dummy */' > sub/conftst$i.h
5659 done
5660 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5661
5662 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5663 # mode. It turns out that the SunPro C++ compiler does not properly
5664 # handle '-M -o', and we need to detect this. Also, some Intel
5665 # versions had trouble with output in subdirs.
5666 am__obj=sub/conftest.${OBJEXT-o}
5667 am__minus_obj="-o $am__obj"
5668 case $depmode in
5669 gcc)
5670 # This depmode causes a compiler race in universal mode.
5671 test "$am__universal" = false || continue
5672 ;;
5673 nosideeffect)
5674 # After this tag, mechanisms are not by side-effect, so they'll
5675 # only be used when explicitly requested.
5676 if test "x$enable_dependency_tracking" = xyes; then
5677 continue
5678 else
5679 break
5680 fi
5681 ;;
5682 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5683 # This compiler won't grok '-c -o', but also, the minuso test has
5684 # not run yet. These depmodes are late enough in the game, and
5685 # so weak that their functioning should not be impacted.
5686 am__obj=conftest.${OBJEXT-o}
5687 am__minus_obj=
5688 ;;
5689 none) break ;;
5690 esac
5691 if depmode=$depmode \
5692 source=sub/conftest.c object=$am__obj \
5693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5694 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5695 >/dev/null 2>conftest.err &&
5696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5698 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5700 # icc doesn't choke on unknown options, it will just issue warnings
5701 # or remarks (even with -Werror). So we grep stderr for any message
5702 # that says an option was ignored or not supported.
5703 # When given -MP, icc 7.0 and 7.1 complain thusly:
5704 # icc: Command line warning: ignoring option '-M'; no argument required
5705 # The diagnosis changed in icc 8.0:
5706 # icc: Command line remark: option '-MP' not supported
5707 if (grep 'ignoring option' conftest.err ||
5708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5709 am_cv_CC_dependencies_compiler_type=$depmode
5710 break
5711 fi
5712 fi
5713 done
5714
5715 cd ..
5716 rm -rf conftest.dir
5717else
5718 am_cv_CC_dependencies_compiler_type=none
5719fi
5720
5721fi
5722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5723$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5724CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5725
5726 if
5727 test "x$enable_dependency_tracking" != xno \
5728 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5729 am__fastdepCC_TRUE=
5730 am__fastdepCC_FALSE='#'
5731else
5732 am__fastdepCC_TRUE='#'
5733 am__fastdepCC_FALSE=
5734fi
5735
5736
5737
5738# POSIX will say in a future version that running "rm -f" with no argument
5739# is OK; and we want to be able to make that assumption in our Makefile
5740# recipes. So use an aggressive probe to check that the usage we want is
5741# actually supported "in the wild" to an acceptable degree.
5742# See automake bug#10828.
5743# To make any issue more visible, cause the running configure to be aborted
5744# by default if the 'rm' program in use doesn't match our expectations; the
5745# user can still override this though.
5746if rm -f && rm -fr && rm -rf; then : OK; else
5747 cat >&2 <<'END'
5748Oops!
5749
5750Your 'rm' program seems unable to run without file operands specified
5751on the command line, even when the '-f' option is present. This is contrary
5752to the behaviour of most rm programs out there, and not conforming with
5753the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5754
5755Please tell bug-automake@gnu.org about your system, including the value
5756of your $PATH and any error possibly output before this message. This
5757can help us improve future automake versions.
5758
5759END
5760 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5761 echo 'Configuration will proceed anyway, since you have set the' >&2
5762 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5763 echo >&2
5764 else
5765 cat >&2 <<'END'
5766Aborting the configuration process, to ensure you take notice of the issue.
5767
5768You can download and install GNU coreutils to get an 'rm' implementation
5769that behaves properly: <http://www.gnu.org/software/coreutils/>.
5770
5771If you want to complete the configuration process using your problematic
5772'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5773to "yes", and re-run configure.
5774
5775END
5776 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5777 fi
5778fi
5779
5780## ------------------------------------- ##
5781## End of automake initialization code ##
5782## ------------------------------------- ##
5783
5784
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5786$as_echo_n "checking curl version... " >&6; }
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5788$as_echo "$CURLVERSION" >&6; }
5789
5790
5791
5792VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5793
5794
5795PKGADD_PKG="HAXXcurl"
5796PKGADD_NAME="curl - a client that groks URLs"
5797PKGADD_VENDOR="curl.haxx.se"
5798
5799
5800
5801
Haibo Huang65021c72019-03-27 15:37:23 -07005802 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,schannel,secure-transport,mesalink,amissl} )"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005803 curl_ssh_msg="no (--with-libssh2)"
5804 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01005805 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07005806 curl_gss_msg="no (--with-gssapi)"
5807curl_tls_srp_msg="no (--enable-tls-srp)"
5808 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5809 curl_ipv6_msg="no (--enable-ipv6)"
5810curl_unix_sockets_msg="no (--enable-unix-sockets)"
5811 curl_idn_msg="no (--with-{libidn2,winidn})"
5812 curl_manual_msg="no (--enable-manual)"
5813curl_libcurl_msg="enabled (--disable-libcurl-option)"
5814curl_verbose_msg="enabled (--disable-verbose)"
5815 curl_sspi_msg="no (--enable-sspi)"
5816 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5817 curl_ldaps_msg="no (--enable-ldaps)"
5818 curl_rtsp_msg="no (--enable-rtsp)"
5819 curl_rtmp_msg="no (--with-librtmp)"
5820 curl_mtlnk_msg="no (--with-libmetalink)"
5821 curl_psl_msg="no (--with-libpsl)"
5822
Alex Deymo486467e2017-12-19 19:04:07 +01005823 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07005824
5825INITIAL_LDFLAGS=$LDFLAGS
5826INITIAL_LIBS=$LIBS
5827
5828
5829# Make sure we can run config.sub.
5830$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5832
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5834$as_echo_n "checking build system type... " >&6; }
5835if ${ac_cv_build+:} false; then :
5836 $as_echo_n "(cached) " >&6
5837else
5838 ac_build_alias=$build_alias
5839test "x$ac_build_alias" = x &&
5840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5841test "x$ac_build_alias" = x &&
5842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5843ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5845
5846fi
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5848$as_echo "$ac_cv_build" >&6; }
5849case $ac_cv_build in
5850*-*-*) ;;
5851*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5852esac
5853build=$ac_cv_build
5854ac_save_IFS=$IFS; IFS='-'
5855set x $ac_cv_build
5856shift
5857build_cpu=$1
5858build_vendor=$2
5859shift; shift
5860# Remember, the first character of IFS is used to create $*,
5861# except with old shells:
5862build_os=$*
5863IFS=$ac_save_IFS
5864case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5865
5866
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5868$as_echo_n "checking host system type... " >&6; }
5869if ${ac_cv_host+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871else
5872 if test "x$host_alias" = x; then
5873 ac_cv_host=$ac_cv_build
5874else
5875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5877fi
5878
5879fi
5880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5881$as_echo "$ac_cv_host" >&6; }
5882case $ac_cv_host in
5883*-*-*) ;;
5884*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5885esac
5886host=$ac_cv_host
5887ac_save_IFS=$IFS; IFS='-'
5888set x $ac_cv_host
5889shift
5890host_cpu=$1
5891host_vendor=$2
5892shift; shift
5893# Remember, the first character of IFS is used to create $*,
5894# except with old shells:
5895host_os=$*
5896IFS=$ac_save_IFS
5897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5898
5899
5900
5901cat >>confdefs.h <<_ACEOF
5902#define OS "${host}"
5903_ACEOF
5904
5905
Elliott Hughes72d948d2018-08-03 14:37:21 -07005906# Silence warning: ar: 'u' modifier ignored since 'D' is the default
5907AR_FLAGS=cr
5908
Elliott Hughes82be86d2017-09-20 17:00:17 -07005909
5910
5911
Elliott Hughes82be86d2017-09-20 17:00:17 -07005912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5913$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5914if ${ac_cv_path_GREP+:} false; then :
5915 $as_echo_n "(cached) " >&6
5916else
5917 if test -z "$GREP"; then
5918 ac_path_GREP_found=false
5919 # Loop through the user's path and test for each of PROGNAME-LIST
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5922do
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_prog in grep ggrep; do
5926 for ac_exec_ext in '' $ac_executable_extensions; do
5927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5928 as_fn_executable_p "$ac_path_GREP" || continue
5929# Check for GNU ac_path_GREP and select it if it is found.
5930 # Check for GNU $ac_path_GREP
5931case `"$ac_path_GREP" --version 2>&1` in
5932*GNU*)
5933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5934*)
5935 ac_count=0
5936 $as_echo_n 0123456789 >"conftest.in"
5937 while :
5938 do
5939 cat "conftest.in" "conftest.in" >"conftest.tmp"
5940 mv "conftest.tmp" "conftest.in"
5941 cp "conftest.in" "conftest.nl"
5942 $as_echo 'GREP' >> "conftest.nl"
5943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5945 as_fn_arith $ac_count + 1 && ac_count=$as_val
5946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5947 # Best one so far, save it but keep looking for a better one
5948 ac_cv_path_GREP="$ac_path_GREP"
5949 ac_path_GREP_max=$ac_count
5950 fi
5951 # 10*(2^10) chars as input seems more than enough
5952 test $ac_count -gt 10 && break
5953 done
5954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5955esac
5956
5957 $ac_path_GREP_found && break 3
5958 done
5959 done
5960 done
5961IFS=$as_save_IFS
5962 if test -z "$ac_cv_path_GREP"; then
5963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5964 fi
5965else
5966 ac_cv_path_GREP=$GREP
5967fi
5968
5969fi
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5971$as_echo "$ac_cv_path_GREP" >&6; }
5972 GREP="$ac_cv_path_GREP"
5973
5974
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5976$as_echo_n "checking for egrep... " >&6; }
5977if ${ac_cv_path_EGREP+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979else
5980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5981 then ac_cv_path_EGREP="$GREP -E"
5982 else
5983 if test -z "$EGREP"; then
5984 ac_path_EGREP_found=false
5985 # Loop through the user's path and test for each of PROGNAME-LIST
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_prog in egrep; do
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5994 as_fn_executable_p "$ac_path_EGREP" || continue
5995# Check for GNU ac_path_EGREP and select it if it is found.
5996 # Check for GNU $ac_path_EGREP
5997case `"$ac_path_EGREP" --version 2>&1` in
5998*GNU*)
5999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6000*)
6001 ac_count=0
6002 $as_echo_n 0123456789 >"conftest.in"
6003 while :
6004 do
6005 cat "conftest.in" "conftest.in" >"conftest.tmp"
6006 mv "conftest.tmp" "conftest.in"
6007 cp "conftest.in" "conftest.nl"
6008 $as_echo 'EGREP' >> "conftest.nl"
6009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6011 as_fn_arith $ac_count + 1 && ac_count=$as_val
6012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6013 # Best one so far, save it but keep looking for a better one
6014 ac_cv_path_EGREP="$ac_path_EGREP"
6015 ac_path_EGREP_max=$ac_count
6016 fi
6017 # 10*(2^10) chars as input seems more than enough
6018 test $ac_count -gt 10 && break
6019 done
6020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6021esac
6022
6023 $ac_path_EGREP_found && break 3
6024 done
6025 done
6026 done
6027IFS=$as_save_IFS
6028 if test -z "$ac_cv_path_EGREP"; then
6029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6030 fi
6031else
6032 ac_cv_path_EGREP=$EGREP
6033fi
6034
6035 fi
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6038$as_echo "$ac_cv_path_EGREP" >&6; }
6039 EGREP="$ac_cv_path_EGREP"
6040
6041
Elliott Hughes82be86d2017-09-20 17:00:17 -07006042
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6045$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h. */
6048
6049#ifdef _AIX
6050 yes_this_is_aix
6051#endif
6052
6053_ACEOF
6054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6058$as_echo "yes" >&6; }
6059 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6060
6061
6062else
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065$as_echo "no" >&6; }
6066
6067fi
6068rm -f conftest*
6069
6070
6071
6072
6073 #
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6075$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h. */
6078
6079
6080
6081int main (void)
6082{
6083
6084#ifdef _THREAD_SAFE
6085 int dummy=1;
6086#else
6087 force compilation error
6088#endif
6089
6090 ;
6091 return 0;
6092}
6093
6094_ACEOF
6095if ac_fn_c_try_compile "$LINENO"; then :
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6098$as_echo "yes" >&6; }
6099 tmp_thread_safe_initially_defined="yes"
6100
6101else
6102
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105 tmp_thread_safe_initially_defined="no"
6106
6107fi
6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 #
6110 if test "$tmp_thread_safe_initially_defined" = "no"; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6112$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6113
6114 case $host_os in
6115 aix[123].* | aix4.[012].*)
6116 tmp_need_thread_safe="no"
6117 ;;
6118 aix*)
6119 tmp_need_thread_safe="yes"
6120 ;;
6121 *)
6122 tmp_need_thread_safe="no"
6123 ;;
6124 esac
6125
6126 if test "$tmp_need_thread_safe" = "yes"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6128$as_echo "yes" >&6; }
6129 else
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131$as_echo "no" >&6; }
6132 fi
6133 fi
6134 #
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6136$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6137 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6138 test "$tmp_need_thread_safe" = "yes"; then
6139
6140
6141$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6142
6143cat >>confdefs.h <<_EOF
6144#ifndef _THREAD_SAFE
6145# define _THREAD_SAFE
6146#endif
6147_EOF
6148
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6150$as_echo "yes" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153$as_echo "no" >&6; }
6154 fi
6155 #
6156
6157
6158 #
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6160$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162/* end confdefs.h. */
6163
6164
6165
6166int main (void)
6167{
6168
6169#ifdef _REENTRANT
6170 int dummy=1;
6171#else
6172 force compilation error
6173#endif
6174
6175 ;
6176 return 0;
6177}
6178
6179_ACEOF
6180if ac_fn_c_try_compile "$LINENO"; then :
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6183$as_echo "yes" >&6; }
6184 tmp_reentrant_initially_defined="yes"
6185
6186else
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190 tmp_reentrant_initially_defined="no"
6191
6192fi
6193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6194 #
6195 if test "$tmp_reentrant_initially_defined" = "no"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6197$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6198
6199 case $host_os in
6200 solaris*)
6201 tmp_need_reentrant="yes"
6202 ;;
6203 *)
6204 tmp_need_reentrant="no"
6205 ;;
6206 esac
6207
6208 if test "$tmp_need_reentrant" = "no"; then
6209
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211/* end confdefs.h. */
6212
6213
6214#include <errno.h>
6215
6216int main (void)
6217{
6218
6219 if(0 != errno)
6220 return 1;
6221
6222 ;
6223 return 0;
6224}
6225
6226_ACEOF
6227if ac_fn_c_try_compile "$LINENO"; then :
6228
6229 tmp_errno="yes"
6230
6231else
6232
6233 tmp_errno="no"
6234
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 if test "$tmp_errno" = "yes"; then
6238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6239/* end confdefs.h. */
6240
6241
6242#include <errno.h>
6243
6244int main (void)
6245{
6246
6247#ifdef errno
6248 int dummy=1;
6249#else
6250 force compilation error
6251#endif
6252
6253 ;
6254 return 0;
6255}
6256
6257_ACEOF
6258if ac_fn_c_try_compile "$LINENO"; then :
6259
6260 tmp_errno="errno_macro_defined"
6261
6262else
6263
6264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h. */
6266
6267
6268#define _REENTRANT
6269#include <errno.h>
6270
6271int main (void)
6272{
6273
6274#ifdef errno
6275 int dummy=1;
6276#else
6277 force compilation error
6278#endif
6279
6280 ;
6281 return 0;
6282}
6283
6284_ACEOF
6285if ac_fn_c_try_compile "$LINENO"; then :
6286
6287 tmp_errno="errno_macro_needs_reentrant"
6288 tmp_need_reentrant="yes"
6289
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293fi
6294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 fi
6296
6297 fi
6298 if test "$tmp_need_reentrant" = "no"; then
6299
6300 if test "$tmp_need_reentrant" = "no"; then
6301
6302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303/* end confdefs.h. */
6304
6305
6306#define gmtime_r innocuous_gmtime_r
6307#ifdef __STDC__
6308# include <limits.h>
6309#else
6310# include <assert.h>
6311#endif
6312#undef gmtime_r
6313#ifdef __cplusplus
6314extern "C"
6315#endif
6316char gmtime_r ();
6317#if defined __stub_gmtime_r || defined __stub___gmtime_r
6318choke me
6319#endif
6320
6321int main (void)
6322{
6323return gmtime_r ();
6324 ;
6325 return 0;
6326}
6327
6328_ACEOF
6329if ac_fn_c_try_link "$LINENO"; then :
6330
6331 tmp_gmtime_r="yes"
6332
6333else
6334
6335 tmp_gmtime_r="no"
6336
6337fi
6338rm -f core conftest.err conftest.$ac_objext \
6339 conftest$ac_exeext conftest.$ac_ext
6340 if test "$tmp_gmtime_r" = "yes"; then
6341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6342/* end confdefs.h. */
6343
6344#include <sys/types.h>
6345#include <time.h>
6346
6347_ACEOF
6348if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6349 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6350
6351 tmp_gmtime_r="proto_declared"
6352
6353else
6354
6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356/* end confdefs.h. */
6357
6358#define _REENTRANT
6359#include <sys/types.h>
6360#include <time.h>
6361
6362_ACEOF
6363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6364 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6365
6366 tmp_gmtime_r="proto_needs_reentrant"
6367 tmp_need_reentrant="yes"
6368
6369fi
6370rm -f conftest*
6371
6372
6373fi
6374rm -f conftest*
6375
6376 fi
6377
6378 fi
6379 if test "$tmp_need_reentrant" = "no"; then
6380
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382/* end confdefs.h. */
6383
6384
6385#define localtime_r innocuous_localtime_r
6386#ifdef __STDC__
6387# include <limits.h>
6388#else
6389# include <assert.h>
6390#endif
6391#undef localtime_r
6392#ifdef __cplusplus
6393extern "C"
6394#endif
6395char localtime_r ();
6396#if defined __stub_localtime_r || defined __stub___localtime_r
6397choke me
6398#endif
6399
6400int main (void)
6401{
6402return localtime_r ();
6403 ;
6404 return 0;
6405}
6406
6407_ACEOF
6408if ac_fn_c_try_link "$LINENO"; then :
6409
6410 tmp_localtime_r="yes"
6411
6412else
6413
6414 tmp_localtime_r="no"
6415
6416fi
6417rm -f core conftest.err conftest.$ac_objext \
6418 conftest$ac_exeext conftest.$ac_ext
6419 if test "$tmp_localtime_r" = "yes"; then
6420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h. */
6422
6423#include <sys/types.h>
6424#include <time.h>
6425
6426_ACEOF
6427if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6428 $EGREP "localtime_r" >/dev/null 2>&1; then :
6429
6430 tmp_localtime_r="proto_declared"
6431
6432else
6433
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435/* end confdefs.h. */
6436
6437#define _REENTRANT
6438#include <sys/types.h>
6439#include <time.h>
6440
6441_ACEOF
6442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6443 $EGREP "localtime_r" >/dev/null 2>&1; then :
6444
6445 tmp_localtime_r="proto_needs_reentrant"
6446 tmp_need_reentrant="yes"
6447
6448fi
6449rm -f conftest*
6450
6451
6452fi
6453rm -f conftest*
6454
6455 fi
6456
6457 fi
6458 if test "$tmp_need_reentrant" = "no"; then
6459
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h. */
6462
6463
6464#define strerror_r innocuous_strerror_r
6465#ifdef __STDC__
6466# include <limits.h>
6467#else
6468# include <assert.h>
6469#endif
6470#undef strerror_r
6471#ifdef __cplusplus
6472extern "C"
6473#endif
6474char strerror_r ();
6475#if defined __stub_strerror_r || defined __stub___strerror_r
6476choke me
6477#endif
6478
6479int main (void)
6480{
6481return strerror_r ();
6482 ;
6483 return 0;
6484}
6485
6486_ACEOF
6487if ac_fn_c_try_link "$LINENO"; then :
6488
6489 tmp_strerror_r="yes"
6490
6491else
6492
6493 tmp_strerror_r="no"
6494
6495fi
6496rm -f core conftest.err conftest.$ac_objext \
6497 conftest$ac_exeext conftest.$ac_ext
6498 if test "$tmp_strerror_r" = "yes"; then
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h. */
6501
6502#include <sys/types.h>
6503#include <string.h>
6504
6505_ACEOF
6506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6507 $EGREP "strerror_r" >/dev/null 2>&1; then :
6508
6509 tmp_strerror_r="proto_declared"
6510
6511else
6512
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h. */
6515
6516#define _REENTRANT
6517#include <sys/types.h>
6518#include <string.h>
6519
6520_ACEOF
6521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 $EGREP "strerror_r" >/dev/null 2>&1; then :
6523
6524 tmp_strerror_r="proto_needs_reentrant"
6525 tmp_need_reentrant="yes"
6526
6527fi
6528rm -f conftest*
6529
6530
6531fi
6532rm -f conftest*
6533
6534 fi
6535
6536 fi
6537 if test "$tmp_need_reentrant" = "no"; then
6538
6539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6540/* end confdefs.h. */
6541
6542
6543#define strtok_r innocuous_strtok_r
6544#ifdef __STDC__
6545# include <limits.h>
6546#else
6547# include <assert.h>
6548#endif
6549#undef strtok_r
6550#ifdef __cplusplus
6551extern "C"
6552#endif
6553char strtok_r ();
6554#if defined __stub_strtok_r || defined __stub___strtok_r
6555choke me
6556#endif
6557
6558int main (void)
6559{
6560return strtok_r ();
6561 ;
6562 return 0;
6563}
6564
6565_ACEOF
6566if ac_fn_c_try_link "$LINENO"; then :
6567
6568 tmp_strtok_r="yes"
6569
6570else
6571
6572 tmp_strtok_r="no"
6573
6574fi
6575rm -f core conftest.err conftest.$ac_objext \
6576 conftest$ac_exeext conftest.$ac_ext
6577 if test "$tmp_strtok_r" = "yes"; then
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579/* end confdefs.h. */
6580
6581#include <sys/types.h>
6582#include <string.h>
6583
6584_ACEOF
6585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6586 $EGREP "strtok_r" >/dev/null 2>&1; then :
6587
6588 tmp_strtok_r="proto_declared"
6589
6590else
6591
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h. */
6594
6595#define _REENTRANT
6596#include <sys/types.h>
6597#include <string.h>
6598
6599_ACEOF
6600if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6601 $EGREP "strtok_r" >/dev/null 2>&1; then :
6602
6603 tmp_strtok_r="proto_needs_reentrant"
6604 tmp_need_reentrant="yes"
6605
6606fi
6607rm -f conftest*
6608
6609
6610fi
6611rm -f conftest*
6612
6613 fi
6614
6615 fi
6616 if test "$tmp_need_reentrant" = "no"; then
6617
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h. */
6620
6621
6622#define inet_ntoa_r innocuous_inet_ntoa_r
6623#ifdef __STDC__
6624# include <limits.h>
6625#else
6626# include <assert.h>
6627#endif
6628#undef inet_ntoa_r
6629#ifdef __cplusplus
6630extern "C"
6631#endif
6632char inet_ntoa_r ();
6633#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6634choke me
6635#endif
6636
6637int main (void)
6638{
6639return inet_ntoa_r ();
6640 ;
6641 return 0;
6642}
6643
6644_ACEOF
6645if ac_fn_c_try_link "$LINENO"; then :
6646
6647 tmp_inet_ntoa_r="yes"
6648
6649else
6650
6651 tmp_inet_ntoa_r="no"
6652
6653fi
6654rm -f core conftest.err conftest.$ac_objext \
6655 conftest$ac_exeext conftest.$ac_ext
6656 if test "$tmp_inet_ntoa_r" = "yes"; then
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h. */
6659
6660#include <sys/types.h>
6661#include <sys/socket.h>
6662#include <netinet/in.h>
6663#include <arpa/inet.h>
6664
6665_ACEOF
6666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6668
6669 tmp_inet_ntoa_r="proto_declared"
6670
6671else
6672
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675
6676#define _REENTRANT
6677#include <sys/types.h>
6678#include <sys/socket.h>
6679#include <netinet/in.h>
6680#include <arpa/inet.h>
6681
6682_ACEOF
6683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6684 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6685
6686 tmp_inet_ntoa_r="proto_needs_reentrant"
6687 tmp_need_reentrant="yes"
6688
6689fi
6690rm -f conftest*
6691
6692
6693fi
6694rm -f conftest*
6695
6696 fi
6697
6698 fi
6699 if test "$tmp_need_reentrant" = "no"; then
6700
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h. */
6703
6704
6705#define gethostbyaddr_r innocuous_gethostbyaddr_r
6706#ifdef __STDC__
6707# include <limits.h>
6708#else
6709# include <assert.h>
6710#endif
6711#undef gethostbyaddr_r
6712#ifdef __cplusplus
6713extern "C"
6714#endif
6715char gethostbyaddr_r ();
6716#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6717choke me
6718#endif
6719
6720int main (void)
6721{
6722return gethostbyaddr_r ();
6723 ;
6724 return 0;
6725}
6726
6727_ACEOF
6728if ac_fn_c_try_link "$LINENO"; then :
6729
6730 tmp_gethostbyaddr_r="yes"
6731
6732else
6733
6734 tmp_gethostbyaddr_r="no"
6735
6736fi
6737rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
6739 if test "$tmp_gethostbyaddr_r" = "yes"; then
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741/* end confdefs.h. */
6742
6743#include <sys/types.h>
6744#include <netdb.h>
6745
6746_ACEOF
6747if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6749
6750 tmp_gethostbyaddr_r="proto_declared"
6751
6752else
6753
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755/* end confdefs.h. */
6756
6757#define _REENTRANT
6758#include <sys/types.h>
6759#include <netdb.h>
6760
6761_ACEOF
6762if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6763 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6764
6765 tmp_gethostbyaddr_r="proto_needs_reentrant"
6766 tmp_need_reentrant="yes"
6767
6768fi
6769rm -f conftest*
6770
6771
6772fi
6773rm -f conftest*
6774
6775 fi
6776
6777 fi
6778 if test "$tmp_need_reentrant" = "no"; then
6779
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h. */
6782
6783
6784#define gethostbyname_r innocuous_gethostbyname_r
6785#ifdef __STDC__
6786# include <limits.h>
6787#else
6788# include <assert.h>
6789#endif
6790#undef gethostbyname_r
6791#ifdef __cplusplus
6792extern "C"
6793#endif
6794char gethostbyname_r ();
6795#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6796choke me
6797#endif
6798
6799int main (void)
6800{
6801return gethostbyname_r ();
6802 ;
6803 return 0;
6804}
6805
6806_ACEOF
6807if ac_fn_c_try_link "$LINENO"; then :
6808
6809 tmp_gethostbyname_r="yes"
6810
6811else
6812
6813 tmp_gethostbyname_r="no"
6814
6815fi
6816rm -f core conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
6818 if test "$tmp_gethostbyname_r" = "yes"; then
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h. */
6821
6822#include <sys/types.h>
6823#include <netdb.h>
6824
6825_ACEOF
6826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6827 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6828
6829 tmp_gethostbyname_r="proto_declared"
6830
6831else
6832
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6834/* end confdefs.h. */
6835
6836#define _REENTRANT
6837#include <sys/types.h>
6838#include <netdb.h>
6839
6840_ACEOF
6841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6842 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6843
6844 tmp_gethostbyname_r="proto_needs_reentrant"
6845 tmp_need_reentrant="yes"
6846
6847fi
6848rm -f conftest*
6849
6850
6851fi
6852rm -f conftest*
6853
6854 fi
6855
6856 fi
6857 if test "$tmp_need_reentrant" = "no"; then
6858
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860/* end confdefs.h. */
6861
6862
6863#define getprotobyname_r innocuous_getprotobyname_r
6864#ifdef __STDC__
6865# include <limits.h>
6866#else
6867# include <assert.h>
6868#endif
6869#undef getprotobyname_r
6870#ifdef __cplusplus
6871extern "C"
6872#endif
6873char getprotobyname_r ();
6874#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6875choke me
6876#endif
6877
6878int main (void)
6879{
6880return getprotobyname_r ();
6881 ;
6882 return 0;
6883}
6884
6885_ACEOF
6886if ac_fn_c_try_link "$LINENO"; then :
6887
6888 tmp_getprotobyname_r="yes"
6889
6890else
6891
6892 tmp_getprotobyname_r="no"
6893
6894fi
6895rm -f core conftest.err conftest.$ac_objext \
6896 conftest$ac_exeext conftest.$ac_ext
6897 if test "$tmp_getprotobyname_r" = "yes"; then
6898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6899/* end confdefs.h. */
6900
6901#include <sys/types.h>
6902#include <netdb.h>
6903
6904_ACEOF
6905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6906 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6907
6908 tmp_getprotobyname_r="proto_declared"
6909
6910else
6911
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h. */
6914
6915#define _REENTRANT
6916#include <sys/types.h>
6917#include <netdb.h>
6918
6919_ACEOF
6920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6921 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6922
6923 tmp_getprotobyname_r="proto_needs_reentrant"
6924 tmp_need_reentrant="yes"
6925
6926fi
6927rm -f conftest*
6928
6929
6930fi
6931rm -f conftest*
6932
6933 fi
6934
6935 fi
6936 if test "$tmp_need_reentrant" = "no"; then
6937
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939/* end confdefs.h. */
6940
6941
6942#define getservbyport_r innocuous_getservbyport_r
6943#ifdef __STDC__
6944# include <limits.h>
6945#else
6946# include <assert.h>
6947#endif
6948#undef getservbyport_r
6949#ifdef __cplusplus
6950extern "C"
6951#endif
6952char getservbyport_r ();
6953#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
6954choke me
6955#endif
6956
6957int main (void)
6958{
6959return getservbyport_r ();
6960 ;
6961 return 0;
6962}
6963
6964_ACEOF
6965if ac_fn_c_try_link "$LINENO"; then :
6966
6967 tmp_getservbyport_r="yes"
6968
6969else
6970
6971 tmp_getservbyport_r="no"
6972
6973fi
6974rm -f core conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6976 if test "$tmp_getservbyport_r" = "yes"; then
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978/* end confdefs.h. */
6979
6980#include <sys/types.h>
6981#include <netdb.h>
6982
6983_ACEOF
6984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6985 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
6986
6987 tmp_getservbyport_r="proto_declared"
6988
6989else
6990
6991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6992/* end confdefs.h. */
6993
6994#define _REENTRANT
6995#include <sys/types.h>
6996#include <netdb.h>
6997
6998_ACEOF
6999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7001
7002 tmp_getservbyport_r="proto_needs_reentrant"
7003 tmp_need_reentrant="yes"
7004
7005fi
7006rm -f conftest*
7007
7008
7009fi
7010rm -f conftest*
7011
7012 fi
7013
7014 fi
7015
7016 fi
7017 if test "$tmp_need_reentrant" = "yes"; then
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7019$as_echo "yes" >&6; }
7020 else
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022$as_echo "no" >&6; }
7023 fi
7024 fi
7025 #
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7027$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7028 if test "$tmp_reentrant_initially_defined" = "yes" ||
7029 test "$tmp_need_reentrant" = "yes"; then
7030
7031
7032$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7033
7034cat >>confdefs.h <<_EOF
7035#ifndef _REENTRANT
7036# define _REENTRANT
7037#endif
7038_EOF
7039
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7041$as_echo "yes" >&6; }
7042 else
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044$as_echo "no" >&6; }
7045 fi
7046 #
7047
7048
7049# Check whether --enable-largefile was given.
7050if test "${enable_largefile+set}" = set; then :
7051 enableval=$enable_largefile;
7052fi
7053
7054if test "$enable_largefile" != no; then
7055
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7057$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7058if ${ac_cv_sys_largefile_CC+:} false; then :
7059 $as_echo_n "(cached) " >&6
7060else
7061 ac_cv_sys_largefile_CC=no
7062 if test "$GCC" != yes; then
7063 ac_save_CC=$CC
7064 while :; do
7065 # IRIX 6.2 and later do not support large files by default,
7066 # so use the C compiler's -n32 option if that helps.
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h. */
7069#include <sys/types.h>
7070 /* Check that off_t can represent 2**63 - 1 correctly.
7071 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7072 since some C++ compilers masquerading as C compilers
7073 incorrectly reject 9223372036854775807. */
7074#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7075 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7076 && LARGE_OFF_T % 2147483647 == 1)
7077 ? 1 : -1];
7078int main (void)
7079{
7080
7081 ;
7082 return 0;
7083}
7084_ACEOF
7085 if ac_fn_c_try_compile "$LINENO"; then :
7086 break
7087fi
7088rm -f core conftest.err conftest.$ac_objext
7089 CC="$CC -n32"
7090 if ac_fn_c_try_compile "$LINENO"; then :
7091 ac_cv_sys_largefile_CC=' -n32'; break
7092fi
7093rm -f core conftest.err conftest.$ac_objext
7094 break
7095 done
7096 CC=$ac_save_CC
7097 rm -f conftest.$ac_ext
7098 fi
7099fi
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7101$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7102 if test "$ac_cv_sys_largefile_CC" != no; then
7103 CC=$CC$ac_cv_sys_largefile_CC
7104 fi
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7107$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7108if ${ac_cv_sys_file_offset_bits+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110else
7111 while :; do
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113/* end confdefs.h. */
7114#include <sys/types.h>
7115 /* Check that off_t can represent 2**63 - 1 correctly.
7116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7117 since some C++ compilers masquerading as C compilers
7118 incorrectly reject 9223372036854775807. */
7119#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7121 && LARGE_OFF_T % 2147483647 == 1)
7122 ? 1 : -1];
7123int main (void)
7124{
7125
7126 ;
7127 return 0;
7128}
7129_ACEOF
7130if ac_fn_c_try_compile "$LINENO"; then :
7131 ac_cv_sys_file_offset_bits=no; break
7132fi
7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h. */
7136#define _FILE_OFFSET_BITS 64
7137#include <sys/types.h>
7138 /* Check that off_t can represent 2**63 - 1 correctly.
7139 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7140 since some C++ compilers masquerading as C compilers
7141 incorrectly reject 9223372036854775807. */
7142#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7143 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7144 && LARGE_OFF_T % 2147483647 == 1)
7145 ? 1 : -1];
7146int main (void)
7147{
7148
7149 ;
7150 return 0;
7151}
7152_ACEOF
7153if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_sys_file_offset_bits=64; break
7155fi
7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 ac_cv_sys_file_offset_bits=unknown
7158 break
7159done
7160fi
7161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7162$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7163case $ac_cv_sys_file_offset_bits in #(
7164 no | unknown) ;;
7165 *)
7166cat >>confdefs.h <<_ACEOF
7167#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7168_ACEOF
7169;;
7170esac
7171rm -rf conftest*
7172 if test $ac_cv_sys_file_offset_bits = unknown; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7174$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7175if ${ac_cv_sys_large_files+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177else
7178 while :; do
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181#include <sys/types.h>
7182 /* Check that off_t can represent 2**63 - 1 correctly.
7183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7184 since some C++ compilers masquerading as C compilers
7185 incorrectly reject 9223372036854775807. */
7186#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7188 && LARGE_OFF_T % 2147483647 == 1)
7189 ? 1 : -1];
7190int main (void)
7191{
7192
7193 ;
7194 return 0;
7195}
7196_ACEOF
7197if ac_fn_c_try_compile "$LINENO"; then :
7198 ac_cv_sys_large_files=no; break
7199fi
7200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h. */
7203#define _LARGE_FILES 1
7204#include <sys/types.h>
7205 /* Check that off_t can represent 2**63 - 1 correctly.
7206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7207 since some C++ compilers masquerading as C compilers
7208 incorrectly reject 9223372036854775807. */
7209#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7211 && LARGE_OFF_T % 2147483647 == 1)
7212 ? 1 : -1];
7213int main (void)
7214{
7215
7216 ;
7217 return 0;
7218}
7219_ACEOF
7220if ac_fn_c_try_compile "$LINENO"; then :
7221 ac_cv_sys_large_files=1; break
7222fi
7223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 ac_cv_sys_large_files=unknown
7225 break
7226done
7227fi
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7229$as_echo "$ac_cv_sys_large_files" >&6; }
7230case $ac_cv_sys_large_files in #(
7231 no | unknown) ;;
7232 *)
7233cat >>confdefs.h <<_ACEOF
7234#define _LARGE_FILES $ac_cv_sys_large_files
7235_ACEOF
7236;;
7237esac
7238rm -rf conftest*
7239 fi
7240
7241
7242fi
7243
7244
7245case `pwd` in
7246 *\ * | *\ *)
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7248$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7249esac
7250
7251
7252
7253macro_version='2.4.6'
7254macro_revision='2.4.6'
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268ltmain=$ac_aux_dir/ltmain.sh
7269
7270# Backslashify metacharacters that are still active within
7271# double-quoted strings.
7272sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7273
7274# Same as above, but do not quote variable references.
7275double_quote_subst='s/\(["`\\]\)/\\\1/g'
7276
7277# Sed substitution to delay expansion of an escaped shell variable in a
7278# double_quote_subst'ed string.
7279delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7280
7281# Sed substitution to delay expansion of an escaped single quote.
7282delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7283
7284# Sed substitution to avoid accidental globbing in evaled expressions
7285no_glob_subst='s/\*/\\\*/g'
7286
7287ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7288ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7289ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7290
7291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7292$as_echo_n "checking how to print strings... " >&6; }
7293# Test print first, because it will be a builtin if present.
7294if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7295 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7296 ECHO='print -r --'
7297elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7298 ECHO='printf %s\n'
7299else
7300 # Use this function as a fallback that always works.
7301 func_fallback_echo ()
7302 {
7303 eval 'cat <<_LTECHO_EOF
7304$1
7305_LTECHO_EOF'
7306 }
7307 ECHO='func_fallback_echo'
7308fi
7309
7310# func_echo_all arg...
7311# Invoke $ECHO with all args, space-separated.
7312func_echo_all ()
7313{
7314 $ECHO ""
7315}
7316
7317case $ECHO in
7318 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7319$as_echo "printf" >&6; } ;;
7320 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7321$as_echo "print -r" >&6; } ;;
7322 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7323$as_echo "cat" >&6; } ;;
7324esac
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7340$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7341if ${ac_cv_path_SED+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343else
7344 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7345 for ac_i in 1 2 3 4 5 6 7; do
7346 ac_script="$ac_script$as_nl$ac_script"
7347 done
7348 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7349 { ac_script=; unset ac_script;}
7350 if test -z "$SED"; then
7351 ac_path_SED_found=false
7352 # Loop through the user's path and test for each of PROGNAME-LIST
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354for as_dir in $PATH
7355do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_prog in sed gsed; do
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7361 as_fn_executable_p "$ac_path_SED" || continue
7362# Check for GNU ac_path_SED and select it if it is found.
7363 # Check for GNU $ac_path_SED
7364case `"$ac_path_SED" --version 2>&1` in
7365*GNU*)
7366 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7367*)
7368 ac_count=0
7369 $as_echo_n 0123456789 >"conftest.in"
7370 while :
7371 do
7372 cat "conftest.in" "conftest.in" >"conftest.tmp"
7373 mv "conftest.tmp" "conftest.in"
7374 cp "conftest.in" "conftest.nl"
7375 $as_echo '' >> "conftest.nl"
7376 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7377 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7378 as_fn_arith $ac_count + 1 && ac_count=$as_val
7379 if test $ac_count -gt ${ac_path_SED_max-0}; then
7380 # Best one so far, save it but keep looking for a better one
7381 ac_cv_path_SED="$ac_path_SED"
7382 ac_path_SED_max=$ac_count
7383 fi
7384 # 10*(2^10) chars as input seems more than enough
7385 test $ac_count -gt 10 && break
7386 done
7387 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7388esac
7389
7390 $ac_path_SED_found && break 3
7391 done
7392 done
7393 done
7394IFS=$as_save_IFS
7395 if test -z "$ac_cv_path_SED"; then
7396 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7397 fi
7398else
7399 ac_cv_path_SED=$SED
7400fi
7401
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7404$as_echo "$ac_cv_path_SED" >&6; }
7405 SED="$ac_cv_path_SED"
7406 rm -f conftest.sed
7407
7408test -z "$SED" && SED=sed
7409Xsed="$SED -e 1s/^X//"
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7422$as_echo_n "checking for fgrep... " >&6; }
7423if ${ac_cv_path_FGREP+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425else
7426 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7427 then ac_cv_path_FGREP="$GREP -F"
7428 else
7429 if test -z "$FGREP"; then
7430 ac_path_FGREP_found=false
7431 # Loop through the user's path and test for each of PROGNAME-LIST
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7434do
7435 IFS=$as_save_IFS
7436 test -z "$as_dir" && as_dir=.
7437 for ac_prog in fgrep; do
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7440 as_fn_executable_p "$ac_path_FGREP" || continue
7441# Check for GNU ac_path_FGREP and select it if it is found.
7442 # Check for GNU $ac_path_FGREP
7443case `"$ac_path_FGREP" --version 2>&1` in
7444*GNU*)
7445 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7446*)
7447 ac_count=0
7448 $as_echo_n 0123456789 >"conftest.in"
7449 while :
7450 do
7451 cat "conftest.in" "conftest.in" >"conftest.tmp"
7452 mv "conftest.tmp" "conftest.in"
7453 cp "conftest.in" "conftest.nl"
7454 $as_echo 'FGREP' >> "conftest.nl"
7455 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7456 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7457 as_fn_arith $ac_count + 1 && ac_count=$as_val
7458 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7459 # Best one so far, save it but keep looking for a better one
7460 ac_cv_path_FGREP="$ac_path_FGREP"
7461 ac_path_FGREP_max=$ac_count
7462 fi
7463 # 10*(2^10) chars as input seems more than enough
7464 test $ac_count -gt 10 && break
7465 done
7466 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7467esac
7468
7469 $ac_path_FGREP_found && break 3
7470 done
7471 done
7472 done
7473IFS=$as_save_IFS
7474 if test -z "$ac_cv_path_FGREP"; then
7475 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7476 fi
7477else
7478 ac_cv_path_FGREP=$FGREP
7479fi
7480
7481 fi
7482fi
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7484$as_echo "$ac_cv_path_FGREP" >&6; }
7485 FGREP="$ac_cv_path_FGREP"
7486
7487
7488test -z "$GREP" && GREP=grep
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508# Check whether --with-gnu-ld was given.
7509if test "${with_gnu_ld+set}" = set; then :
7510 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7511else
7512 with_gnu_ld=no
7513fi
7514
7515ac_prog=ld
7516if test yes = "$GCC"; then
7517 # Check if gcc -print-prog-name=ld gives a path.
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7519$as_echo_n "checking for ld used by $CC... " >&6; }
7520 case $host in
7521 *-*-mingw*)
7522 # gcc leaves a trailing carriage return, which upsets mingw
7523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7524 *)
7525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7526 esac
7527 case $ac_prog in
7528 # Accept absolute paths.
7529 [\\/]* | ?:[\\/]*)
7530 re_direlt='/[^/][^/]*/\.\./'
7531 # Canonicalize the pathname of ld
7532 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7533 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7534 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7535 done
7536 test -z "$LD" && LD=$ac_prog
7537 ;;
7538 "")
7539 # If it fails, then pretend we aren't using GCC.
7540 ac_prog=ld
7541 ;;
7542 *)
7543 # If it is relative, then search for the first ld in PATH.
7544 with_gnu_ld=unknown
7545 ;;
7546 esac
7547elif test yes = "$with_gnu_ld"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7549$as_echo_n "checking for GNU ld... " >&6; }
7550else
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7552$as_echo_n "checking for non-GNU ld... " >&6; }
7553fi
7554if ${lt_cv_path_LD+:} false; then :
7555 $as_echo_n "(cached) " >&6
7556else
7557 if test -z "$LD"; then
7558 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7559 for ac_dir in $PATH; do
7560 IFS=$lt_save_ifs
7561 test -z "$ac_dir" && ac_dir=.
7562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7563 lt_cv_path_LD=$ac_dir/$ac_prog
7564 # Check to see if the program is GNU ld. I'd rather use --version,
7565 # but apparently some variants of GNU ld only accept -v.
7566 # Break only if it was the GNU/non-GNU ld that we prefer.
7567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7568 *GNU* | *'with BFD'*)
7569 test no != "$with_gnu_ld" && break
7570 ;;
7571 *)
7572 test yes != "$with_gnu_ld" && break
7573 ;;
7574 esac
7575 fi
7576 done
7577 IFS=$lt_save_ifs
7578else
7579 lt_cv_path_LD=$LD # Let the user override the test with a path.
7580fi
7581fi
7582
7583LD=$lt_cv_path_LD
7584if test -n "$LD"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7586$as_echo "$LD" >&6; }
7587else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590fi
7591test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7593$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7594if ${lt_cv_prog_gnu_ld+:} false; then :
7595 $as_echo_n "(cached) " >&6
7596else
7597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7598case `$LD -v 2>&1 </dev/null` in
7599*GNU* | *'with BFD'*)
7600 lt_cv_prog_gnu_ld=yes
7601 ;;
7602*)
7603 lt_cv_prog_gnu_ld=no
7604 ;;
7605esac
7606fi
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7608$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7609with_gnu_ld=$lt_cv_prog_gnu_ld
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7620$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7621if ${lt_cv_path_NM+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 if test -n "$NM"; then
7625 # Let the user override the test.
7626 lt_cv_path_NM=$NM
7627else
7628 lt_nm_to_check=${ac_tool_prefix}nm
7629 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7630 lt_nm_to_check="$lt_nm_to_check nm"
7631 fi
7632 for lt_tmp_nm in $lt_nm_to_check; do
7633 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7634 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7635 IFS=$lt_save_ifs
7636 test -z "$ac_dir" && ac_dir=.
7637 tmp_nm=$ac_dir/$lt_tmp_nm
7638 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7639 # Check to see if the nm accepts a BSD-compat flag.
7640 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7641 # nm: unknown option "B" ignored
7642 # Tru64's nm complains that /dev/null is an invalid object file
7643 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7644 case $build_os in
7645 mingw*) lt_bad_file=conftest.nm/nofile ;;
7646 *) lt_bad_file=/dev/null ;;
7647 esac
7648 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7649 *$lt_bad_file* | *'Invalid file or object type'*)
7650 lt_cv_path_NM="$tmp_nm -B"
7651 break 2
7652 ;;
7653 *)
7654 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7655 */dev/null*)
7656 lt_cv_path_NM="$tmp_nm -p"
7657 break 2
7658 ;;
7659 *)
7660 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7661 continue # so that we can try to find one that supports BSD flags
7662 ;;
7663 esac
7664 ;;
7665 esac
7666 fi
7667 done
7668 IFS=$lt_save_ifs
7669 done
7670 : ${lt_cv_path_NM=no}
7671fi
7672fi
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7674$as_echo "$lt_cv_path_NM" >&6; }
7675if test no != "$lt_cv_path_NM"; then
7676 NM=$lt_cv_path_NM
7677else
7678 # Didn't find any BSD compatible name lister, look for dumpbin.
7679 if test -n "$DUMPBIN"; then :
7680 # Let the user override the test.
7681 else
7682 if test -n "$ac_tool_prefix"; then
7683 for ac_prog in dumpbin "link -dump"
7684 do
7685 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7686set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688$as_echo_n "checking for $ac_word... " >&6; }
7689if ${ac_cv_prog_DUMPBIN+:} false; then :
7690 $as_echo_n "(cached) " >&6
7691else
7692 if test -n "$DUMPBIN"; then
7693 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7694else
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7702 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706done
7707 done
7708IFS=$as_save_IFS
7709
7710fi
7711fi
7712DUMPBIN=$ac_cv_prog_DUMPBIN
7713if test -n "$DUMPBIN"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7715$as_echo "$DUMPBIN" >&6; }
7716else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
7719fi
7720
7721
7722 test -n "$DUMPBIN" && break
7723 done
7724fi
7725if test -z "$DUMPBIN"; then
7726 ac_ct_DUMPBIN=$DUMPBIN
7727 for ac_prog in dumpbin "link -dump"
7728do
7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
7730set dummy $ac_prog; ac_word=$2
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735else
7736 if test -n "$ac_ct_DUMPBIN"; then
7737 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7738else
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7746 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751 done
7752IFS=$as_save_IFS
7753
7754fi
7755fi
7756ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7757if test -n "$ac_ct_DUMPBIN"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7759$as_echo "$ac_ct_DUMPBIN" >&6; }
7760else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
7763fi
7764
7765
7766 test -n "$ac_ct_DUMPBIN" && break
7767done
7768
7769 if test "x$ac_ct_DUMPBIN" = x; then
7770 DUMPBIN=":"
7771 else
7772 case $cross_compiling:$ac_tool_warned in
7773yes:)
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7775$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7776ac_tool_warned=yes ;;
7777esac
7778 DUMPBIN=$ac_ct_DUMPBIN
7779 fi
7780fi
7781
7782 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7783 *COFF*)
7784 DUMPBIN="$DUMPBIN -symbols -headers"
7785 ;;
7786 *)
7787 DUMPBIN=:
7788 ;;
7789 esac
7790 fi
7791
7792 if test : != "$DUMPBIN"; then
7793 NM=$DUMPBIN
7794 fi
7795fi
7796test -z "$NM" && NM=nm
7797
7798
7799
7800
7801
7802
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7804$as_echo_n "checking the name lister ($NM) interface... " >&6; }
7805if ${lt_cv_nm_interface+:} false; then :
7806 $as_echo_n "(cached) " >&6
7807else
7808 lt_cv_nm_interface="BSD nm"
7809 echo "int some_variable = 0;" > conftest.$ac_ext
7810 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7811 (eval "$ac_compile" 2>conftest.err)
7812 cat conftest.err >&5
7813 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7814 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7815 cat conftest.err >&5
7816 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7817 cat conftest.out >&5
7818 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7819 lt_cv_nm_interface="MS dumpbin"
7820 fi
7821 rm -f conftest*
7822fi
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7824$as_echo "$lt_cv_nm_interface" >&6; }
7825
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7827$as_echo_n "checking whether ln -s works... " >&6; }
7828LN_S=$as_ln_s
7829if test "$LN_S" = "ln -s"; then
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7831$as_echo "yes" >&6; }
7832else
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7834$as_echo "no, using $LN_S" >&6; }
7835fi
7836
7837# find the maximum length of command line arguments
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7839$as_echo_n "checking the maximum length of command line arguments... " >&6; }
7840if ${lt_cv_sys_max_cmd_len+:} false; then :
7841 $as_echo_n "(cached) " >&6
7842else
7843 i=0
7844 teststring=ABCD
7845
7846 case $build_os in
7847 msdosdjgpp*)
7848 # On DJGPP, this test can blow up pretty badly due to problems in libc
7849 # (any single argument exceeding 2000 bytes causes a buffer overrun
7850 # during glob expansion). Even if it were fixed, the result of this
7851 # check would be larger than it should be.
7852 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7853 ;;
7854
7855 gnu*)
7856 # Under GNU Hurd, this test is not required because there is
7857 # no limit to the length of command line arguments.
7858 # Libtool will interpret -1 as no limit whatsoever
7859 lt_cv_sys_max_cmd_len=-1;
7860 ;;
7861
7862 cygwin* | mingw* | cegcc*)
7863 # On Win9x/ME, this test blows up -- it succeeds, but takes
7864 # about 5 minutes as the teststring grows exponentially.
7865 # Worse, since 9x/ME are not pre-emptively multitasking,
7866 # you end up with a "frozen" computer, even though with patience
7867 # the test eventually succeeds (with a max line length of 256k).
7868 # Instead, let's just punt: use the minimum linelength reported by
7869 # all of the supported platforms: 8192 (on NT/2K/XP).
7870 lt_cv_sys_max_cmd_len=8192;
7871 ;;
7872
7873 mint*)
7874 # On MiNT this can take a long time and run out of memory.
7875 lt_cv_sys_max_cmd_len=8192;
7876 ;;
7877
7878 amigaos*)
7879 # On AmigaOS with pdksh, this test takes hours, literally.
7880 # So we just punt and use a minimum line length of 8192.
7881 lt_cv_sys_max_cmd_len=8192;
7882 ;;
7883
7884 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7885 # This has been around since 386BSD, at least. Likely further.
7886 if test -x /sbin/sysctl; then
7887 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7888 elif test -x /usr/sbin/sysctl; then
7889 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7890 else
7891 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7892 fi
7893 # And add a safety zone
7894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7896 ;;
7897
7898 interix*)
7899 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7900 lt_cv_sys_max_cmd_len=196608
7901 ;;
7902
7903 os2*)
7904 # The test takes a long time on OS/2.
7905 lt_cv_sys_max_cmd_len=8192
7906 ;;
7907
7908 osf*)
7909 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7910 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7911 # nice to cause kernel panics so lets avoid the loop below.
7912 # First set a reasonable default.
7913 lt_cv_sys_max_cmd_len=16384
7914 #
7915 if test -x /sbin/sysconfig; then
7916 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7917 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7918 esac
7919 fi
7920 ;;
7921 sco3.2v5*)
7922 lt_cv_sys_max_cmd_len=102400
7923 ;;
7924 sysv5* | sco5v6* | sysv4.2uw2*)
7925 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7926 if test -n "$kargmax"; then
7927 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7928 else
7929 lt_cv_sys_max_cmd_len=32768
7930 fi
7931 ;;
7932 *)
7933 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7934 if test -n "$lt_cv_sys_max_cmd_len" && \
7935 test undefined != "$lt_cv_sys_max_cmd_len"; then
7936 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7938 else
7939 # Make teststring a little bigger before we do anything with it.
7940 # a 1K string should be a reasonable start.
7941 for i in 1 2 3 4 5 6 7 8; do
7942 teststring=$teststring$teststring
7943 done
7944 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7945 # If test is not a shell built-in, we'll probably end up computing a
7946 # maximum length that is only half of the actual maximum length, but
7947 # we can't tell.
7948 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7949 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7950 test 17 != "$i" # 1/2 MB should be enough
7951 do
7952 i=`expr $i + 1`
7953 teststring=$teststring$teststring
7954 done
7955 # Only check the string length outside the loop.
7956 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7957 teststring=
7958 # Add a significant safety factor because C++ compilers can tack on
7959 # massive amounts of additional arguments before passing them to the
7960 # linker. It appears as though 1/2 is a usable value.
7961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7962 fi
7963 ;;
7964 esac
7965
7966fi
7967
7968if test -n "$lt_cv_sys_max_cmd_len"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7970$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7971else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7973$as_echo "none" >&6; }
7974fi
7975max_cmd_len=$lt_cv_sys_max_cmd_len
7976
7977
7978
7979
7980
7981
7982: ${CP="cp -f"}
7983: ${MV="mv -f"}
7984: ${RM="rm -f"}
7985
7986if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7987 lt_unset=unset
7988else
7989 lt_unset=false
7990fi
7991
7992
7993
7994
7995
7996# test EBCDIC or ASCII
7997case `echo X|tr X '\101'` in
7998 A) # ASCII based system
7999 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8000 lt_SP2NL='tr \040 \012'
8001 lt_NL2SP='tr \015\012 \040\040'
8002 ;;
8003 *) # EBCDIC based system
8004 lt_SP2NL='tr \100 \n'
8005 lt_NL2SP='tr \r\n \100\100'
8006 ;;
8007esac
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8018$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8019if ${lt_cv_to_host_file_cmd+:} false; then :
8020 $as_echo_n "(cached) " >&6
8021else
8022 case $host in
8023 *-*-mingw* )
8024 case $build in
8025 *-*-mingw* ) # actually msys
8026 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8027 ;;
8028 *-*-cygwin* )
8029 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8030 ;;
8031 * ) # otherwise, assume *nix
8032 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8033 ;;
8034 esac
8035 ;;
8036 *-*-cygwin* )
8037 case $build in
8038 *-*-mingw* ) # actually msys
8039 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8040 ;;
8041 *-*-cygwin* )
8042 lt_cv_to_host_file_cmd=func_convert_file_noop
8043 ;;
8044 * ) # otherwise, assume *nix
8045 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8046 ;;
8047 esac
8048 ;;
8049 * ) # unhandled hosts (and "normal" native builds)
8050 lt_cv_to_host_file_cmd=func_convert_file_noop
8051 ;;
8052esac
8053
8054fi
8055
8056to_host_file_cmd=$lt_cv_to_host_file_cmd
8057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8058$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8059
8060
8061
8062
8063
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8065$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8066if ${lt_cv_to_tool_file_cmd+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068else
8069 #assume ordinary cross tools, or native build.
8070lt_cv_to_tool_file_cmd=func_convert_file_noop
8071case $host in
8072 *-*-mingw* )
8073 case $build in
8074 *-*-mingw* ) # actually msys
8075 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8076 ;;
8077 esac
8078 ;;
8079esac
8080
8081fi
8082
8083to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8085$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8086
8087
8088
8089
8090
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8092$as_echo_n "checking for $LD option to reload object files... " >&6; }
8093if ${lt_cv_ld_reload_flag+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096 lt_cv_ld_reload_flag='-r'
8097fi
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8099$as_echo "$lt_cv_ld_reload_flag" >&6; }
8100reload_flag=$lt_cv_ld_reload_flag
8101case $reload_flag in
8102"" | " "*) ;;
8103*) reload_flag=" $reload_flag" ;;
8104esac
8105reload_cmds='$LD$reload_flag -o $output$reload_objs'
8106case $host_os in
8107 cygwin* | mingw* | pw32* | cegcc*)
8108 if test yes != "$GCC"; then
8109 reload_cmds=false
8110 fi
8111 ;;
8112 darwin*)
8113 if test yes = "$GCC"; then
8114 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8115 else
8116 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8117 fi
8118 ;;
8119esac
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129if test -n "$ac_tool_prefix"; then
8130 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8131set dummy ${ac_tool_prefix}objdump; ac_word=$2
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if ${ac_cv_prog_OBJDUMP+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136else
8137 if test -n "$OBJDUMP"; then
8138 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8147 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 break 2
8150 fi
8151done
8152 done
8153IFS=$as_save_IFS
8154
8155fi
8156fi
8157OBJDUMP=$ac_cv_prog_OBJDUMP
8158if test -n "$OBJDUMP"; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8160$as_echo "$OBJDUMP" >&6; }
8161else
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
8164fi
8165
8166
8167fi
8168if test -z "$ac_cv_prog_OBJDUMP"; then
8169 ac_ct_OBJDUMP=$OBJDUMP
8170 # Extract the first word of "objdump", so it can be a program name with args.
8171set dummy objdump; ac_word=$2
8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173$as_echo_n "checking for $ac_word... " >&6; }
8174if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176else
8177 if test -n "$ac_ct_OBJDUMP"; then
8178 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8190 fi
8191done
8192 done
8193IFS=$as_save_IFS
8194
8195fi
8196fi
8197ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8198if test -n "$ac_ct_OBJDUMP"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8200$as_echo "$ac_ct_OBJDUMP" >&6; }
8201else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204fi
8205
8206 if test "x$ac_ct_OBJDUMP" = x; then
8207 OBJDUMP="false"
8208 else
8209 case $cross_compiling:$ac_tool_warned in
8210yes:)
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8213ac_tool_warned=yes ;;
8214esac
8215 OBJDUMP=$ac_ct_OBJDUMP
8216 fi
8217else
8218 OBJDUMP="$ac_cv_prog_OBJDUMP"
8219fi
8220
8221test -z "$OBJDUMP" && OBJDUMP=objdump
8222
8223
8224
8225
8226
8227
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8229$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8230if ${lt_cv_deplibs_check_method+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232else
8233 lt_cv_file_magic_cmd='$MAGIC_CMD'
8234lt_cv_file_magic_test_file=
8235lt_cv_deplibs_check_method='unknown'
8236# Need to set the preceding variable on all platforms that support
8237# interlibrary dependencies.
8238# 'none' -- dependencies not supported.
8239# 'unknown' -- same as none, but documents that we really don't know.
8240# 'pass_all' -- all dependencies passed with no checks.
8241# 'test_compile' -- check by making test program.
8242# 'file_magic [[regex]]' -- check by looking for files in library path
8243# that responds to the $file_magic_cmd with a given extended regex.
8244# If you have 'file' or equivalent on your system and you're not sure
8245# whether 'pass_all' will *always* work, you probably want this one.
8246
8247case $host_os in
8248aix[4-9]*)
8249 lt_cv_deplibs_check_method=pass_all
8250 ;;
8251
8252beos*)
8253 lt_cv_deplibs_check_method=pass_all
8254 ;;
8255
8256bsdi[45]*)
8257 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8258 lt_cv_file_magic_cmd='/usr/bin/file -L'
8259 lt_cv_file_magic_test_file=/shlib/libc.so
8260 ;;
8261
8262cygwin*)
8263 # func_win32_libid is a shell function defined in ltmain.sh
8264 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8265 lt_cv_file_magic_cmd='func_win32_libid'
8266 ;;
8267
8268mingw* | pw32*)
8269 # Base MSYS/MinGW do not provide the 'file' command needed by
8270 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8271 # unless we find 'file', for example because we are cross-compiling.
8272 if ( file / ) >/dev/null 2>&1; then
8273 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8274 lt_cv_file_magic_cmd='func_win32_libid'
8275 else
8276 # Keep this pattern in sync with the one in func_win32_libid.
8277 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8278 lt_cv_file_magic_cmd='$OBJDUMP -f'
8279 fi
8280 ;;
8281
8282cegcc*)
8283 # use the weaker test based on 'objdump'. See mingw*.
8284 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8285 lt_cv_file_magic_cmd='$OBJDUMP -f'
8286 ;;
8287
8288darwin* | rhapsody*)
8289 lt_cv_deplibs_check_method=pass_all
8290 ;;
8291
8292freebsd* | dragonfly*)
8293 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8294 case $host_cpu in
8295 i*86 )
8296 # Not sure whether the presence of OpenBSD here was a mistake.
8297 # Let's accept both of them until this is cleared up.
8298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8299 lt_cv_file_magic_cmd=/usr/bin/file
8300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8301 ;;
8302 esac
8303 else
8304 lt_cv_deplibs_check_method=pass_all
8305 fi
8306 ;;
8307
8308haiku*)
8309 lt_cv_deplibs_check_method=pass_all
8310 ;;
8311
8312hpux10.20* | hpux11*)
8313 lt_cv_file_magic_cmd=/usr/bin/file
8314 case $host_cpu in
8315 ia64*)
8316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8317 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8318 ;;
8319 hppa*64*)
8320 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]'
8321 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8322 ;;
8323 *)
8324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8325 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8326 ;;
8327 esac
8328 ;;
8329
8330interix[3-9]*)
8331 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8333 ;;
8334
8335irix5* | irix6* | nonstopux*)
8336 case $LD in
8337 *-32|*"-32 ") libmagic=32-bit;;
8338 *-n32|*"-n32 ") libmagic=N32;;
8339 *-64|*"-64 ") libmagic=64-bit;;
8340 *) libmagic=never-match;;
8341 esac
8342 lt_cv_deplibs_check_method=pass_all
8343 ;;
8344
8345# This must be glibc/ELF.
8346linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8347 lt_cv_deplibs_check_method=pass_all
8348 ;;
8349
8350netbsd* | netbsdelf*-gnu)
8351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8353 else
8354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8355 fi
8356 ;;
8357
8358newos6*)
8359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8360 lt_cv_file_magic_cmd=/usr/bin/file
8361 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8362 ;;
8363
8364*nto* | *qnx*)
8365 lt_cv_deplibs_check_method=pass_all
8366 ;;
8367
8368openbsd* | bitrig*)
8369 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8371 else
8372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8373 fi
8374 ;;
8375
8376osf3* | osf4* | osf5*)
8377 lt_cv_deplibs_check_method=pass_all
8378 ;;
8379
8380rdos*)
8381 lt_cv_deplibs_check_method=pass_all
8382 ;;
8383
8384solaris*)
8385 lt_cv_deplibs_check_method=pass_all
8386 ;;
8387
8388sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8389 lt_cv_deplibs_check_method=pass_all
8390 ;;
8391
8392sysv4 | sysv4.3*)
8393 case $host_vendor in
8394 motorola)
8395 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]'
8396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8397 ;;
8398 ncr)
8399 lt_cv_deplibs_check_method=pass_all
8400 ;;
8401 sequent)
8402 lt_cv_file_magic_cmd='/bin/file'
8403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8404 ;;
8405 sni)
8406 lt_cv_file_magic_cmd='/bin/file'
8407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8408 lt_cv_file_magic_test_file=/lib/libc.so
8409 ;;
8410 siemens)
8411 lt_cv_deplibs_check_method=pass_all
8412 ;;
8413 pc)
8414 lt_cv_deplibs_check_method=pass_all
8415 ;;
8416 esac
8417 ;;
8418
8419tpf*)
8420 lt_cv_deplibs_check_method=pass_all
8421 ;;
8422os2*)
8423 lt_cv_deplibs_check_method=pass_all
8424 ;;
8425esac
8426
8427fi
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8429$as_echo "$lt_cv_deplibs_check_method" >&6; }
8430
8431file_magic_glob=
8432want_nocaseglob=no
8433if test "$build" = "$host"; then
8434 case $host_os in
8435 mingw* | pw32*)
8436 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8437 want_nocaseglob=yes
8438 else
8439 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8440 fi
8441 ;;
8442 esac
8443fi
8444
8445file_magic_cmd=$lt_cv_file_magic_cmd
8446deplibs_check_method=$lt_cv_deplibs_check_method
8447test -z "$deplibs_check_method" && deplibs_check_method=unknown
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470if test -n "$ac_tool_prefix"; then
8471 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8472set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
8475if ${ac_cv_prog_DLLTOOL+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477else
8478 if test -n "$DLLTOOL"; then
8479 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8480else
8481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492done
8493 done
8494IFS=$as_save_IFS
8495
8496fi
8497fi
8498DLLTOOL=$ac_cv_prog_DLLTOOL
8499if test -n "$DLLTOOL"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8501$as_echo "$DLLTOOL" >&6; }
8502else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
8505fi
8506
8507
8508fi
8509if test -z "$ac_cv_prog_DLLTOOL"; then
8510 ac_ct_DLLTOOL=$DLLTOOL
8511 # Extract the first word of "dlltool", so it can be a program name with args.
8512set dummy dlltool; ac_word=$2
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514$as_echo_n "checking for $ac_word... " >&6; }
8515if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517else
8518 if test -n "$ac_ct_DLLTOOL"; then
8519 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8520else
8521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522for as_dir in $PATH
8523do
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532done
8533 done
8534IFS=$as_save_IFS
8535
8536fi
8537fi
8538ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8539if test -n "$ac_ct_DLLTOOL"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8541$as_echo "$ac_ct_DLLTOOL" >&6; }
8542else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544$as_echo "no" >&6; }
8545fi
8546
8547 if test "x$ac_ct_DLLTOOL" = x; then
8548 DLLTOOL="false"
8549 else
8550 case $cross_compiling:$ac_tool_warned in
8551yes:)
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554ac_tool_warned=yes ;;
8555esac
8556 DLLTOOL=$ac_ct_DLLTOOL
8557 fi
8558else
8559 DLLTOOL="$ac_cv_prog_DLLTOOL"
8560fi
8561
8562test -z "$DLLTOOL" && DLLTOOL=dlltool
8563
8564
8565
8566
8567
8568
8569
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8571$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8572if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574else
8575 lt_cv_sharedlib_from_linklib_cmd='unknown'
8576
8577case $host_os in
8578cygwin* | mingw* | pw32* | cegcc*)
8579 # two different shell functions defined in ltmain.sh;
8580 # decide which one to use based on capabilities of $DLLTOOL
8581 case `$DLLTOOL --help 2>&1` in
8582 *--identify-strict*)
8583 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8584 ;;
8585 *)
8586 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8587 ;;
8588 esac
8589 ;;
8590*)
8591 # fallback: assume linklib IS sharedlib
8592 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8593 ;;
8594esac
8595
8596fi
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8598$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8599sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8600test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8601
8602
8603
8604
8605
8606
8607
8608if test -n "$ac_tool_prefix"; then
8609 for ac_prog in ar
8610 do
8611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8614$as_echo_n "checking for $ac_word... " >&6; }
8615if ${ac_cv_prog_AR+:} false; then :
8616 $as_echo_n "(cached) " >&6
8617else
8618 if test -n "$AR"; then
8619 ac_cv_prog_AR="$AR" # Let the user override the test.
8620else
8621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622for as_dir in $PATH
8623do
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8628 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8631 fi
8632done
8633 done
8634IFS=$as_save_IFS
8635
8636fi
8637fi
8638AR=$ac_cv_prog_AR
8639if test -n "$AR"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8641$as_echo "$AR" >&6; }
8642else
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644$as_echo "no" >&6; }
8645fi
8646
8647
8648 test -n "$AR" && break
8649 done
8650fi
8651if test -z "$AR"; then
8652 ac_ct_AR=$AR
8653 for ac_prog in ar
8654do
8655 # Extract the first word of "$ac_prog", so it can be a program name with args.
8656set dummy $ac_prog; ac_word=$2
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
8659if ${ac_cv_prog_ac_ct_AR+:} false; then :
8660 $as_echo_n "(cached) " >&6
8661else
8662 if test -n "$ac_ct_AR"; then
8663 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8664else
8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8672 ac_cv_prog_ac_ct_AR="$ac_prog"
8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8674 break 2
8675 fi
8676done
8677 done
8678IFS=$as_save_IFS
8679
8680fi
8681fi
8682ac_ct_AR=$ac_cv_prog_ac_ct_AR
8683if test -n "$ac_ct_AR"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8685$as_echo "$ac_ct_AR" >&6; }
8686else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
8689fi
8690
8691
8692 test -n "$ac_ct_AR" && break
8693done
8694
8695 if test "x$ac_ct_AR" = x; then
8696 AR="false"
8697 else
8698 case $cross_compiling:$ac_tool_warned in
8699yes:)
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8701$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8702ac_tool_warned=yes ;;
8703esac
8704 AR=$ac_ct_AR
8705 fi
8706fi
8707
8708: ${AR=ar}
8709: ${AR_FLAGS=cru}
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8722$as_echo_n "checking for archiver @FILE support... " >&6; }
8723if ${lt_cv_ar_at_file+:} false; then :
8724 $as_echo_n "(cached) " >&6
8725else
8726 lt_cv_ar_at_file=no
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728/* end confdefs.h. */
8729
8730int main (void)
8731{
8732
8733 ;
8734 return 0;
8735}
8736_ACEOF
8737if ac_fn_c_try_compile "$LINENO"; then :
8738 echo conftest.$ac_objext > conftest.lst
8739 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8741 (eval $lt_ar_try) 2>&5
8742 ac_status=$?
8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744 test $ac_status = 0; }
8745 if test 0 -eq "$ac_status"; then
8746 # Ensure the archiver fails upon bogus file names.
8747 rm -f conftest.$ac_objext libconftest.a
8748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8749 (eval $lt_ar_try) 2>&5
8750 ac_status=$?
8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752 test $ac_status = 0; }
8753 if test 0 -ne "$ac_status"; then
8754 lt_cv_ar_at_file=@
8755 fi
8756 fi
8757 rm -f conftest.* libconftest.a
8758
8759fi
8760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8761
8762fi
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8764$as_echo "$lt_cv_ar_at_file" >&6; }
8765
8766if test no = "$lt_cv_ar_at_file"; then
8767 archiver_list_spec=
8768else
8769 archiver_list_spec=$lt_cv_ar_at_file
8770fi
8771
8772
8773
8774
8775
8776
8777
8778if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8780set dummy ${ac_tool_prefix}strip; ac_word=$2
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if ${ac_cv_prog_STRIP+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785else
8786 if test -n "$STRIP"; then
8787 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8788else
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800done
8801 done
8802IFS=$as_save_IFS
8803
8804fi
8805fi
8806STRIP=$ac_cv_prog_STRIP
8807if test -n "$STRIP"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8809$as_echo "$STRIP" >&6; }
8810else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815
8816fi
8817if test -z "$ac_cv_prog_STRIP"; then
8818 ac_ct_STRIP=$STRIP
8819 # Extract the first word of "strip", so it can be a program name with args.
8820set dummy strip; ac_word=$2
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825else
8826 if test -n "$ac_ct_STRIP"; then
8827 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8828else
8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830for as_dir in $PATH
8831do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_ac_ct_STRIP="strip"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8839 fi
8840done
8841 done
8842IFS=$as_save_IFS
8843
8844fi
8845fi
8846ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8847if test -n "$ac_ct_STRIP"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8849$as_echo "$ac_ct_STRIP" >&6; }
8850else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8854
8855 if test "x$ac_ct_STRIP" = x; then
8856 STRIP=":"
8857 else
8858 case $cross_compiling:$ac_tool_warned in
8859yes:)
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862ac_tool_warned=yes ;;
8863esac
8864 STRIP=$ac_ct_STRIP
8865 fi
8866else
8867 STRIP="$ac_cv_prog_STRIP"
8868fi
8869
8870test -z "$STRIP" && STRIP=:
8871
8872
8873
8874
8875
8876
8877if test -n "$ac_tool_prefix"; then
8878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8879set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if ${ac_cv_prog_RANLIB+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884else
8885 if test -n "$RANLIB"; then
8886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8898 fi
8899done
8900 done
8901IFS=$as_save_IFS
8902
8903fi
8904fi
8905RANLIB=$ac_cv_prog_RANLIB
8906if test -n "$RANLIB"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8908$as_echo "$RANLIB" >&6; }
8909else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
8912fi
8913
8914
8915fi
8916if test -z "$ac_cv_prog_RANLIB"; then
8917 ac_ct_RANLIB=$RANLIB
8918 # Extract the first word of "ranlib", so it can be a program name with args.
8919set dummy ranlib; ac_word=$2
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921$as_echo_n "checking for $ac_word... " >&6; }
8922if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8923 $as_echo_n "(cached) " >&6
8924else
8925 if test -n "$ac_ct_RANLIB"; then
8926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8927else
8928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8929for as_dir in $PATH
8930do
8931 IFS=$as_save_IFS
8932 test -z "$as_dir" && as_dir=.
8933 for ac_exec_ext in '' $ac_executable_extensions; do
8934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8935 ac_cv_prog_ac_ct_RANLIB="ranlib"
8936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8937 break 2
8938 fi
8939done
8940 done
8941IFS=$as_save_IFS
8942
8943fi
8944fi
8945ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8946if test -n "$ac_ct_RANLIB"; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8948$as_echo "$ac_ct_RANLIB" >&6; }
8949else
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951$as_echo "no" >&6; }
8952fi
8953
8954 if test "x$ac_ct_RANLIB" = x; then
8955 RANLIB=":"
8956 else
8957 case $cross_compiling:$ac_tool_warned in
8958yes:)
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8960$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8961ac_tool_warned=yes ;;
8962esac
8963 RANLIB=$ac_ct_RANLIB
8964 fi
8965else
8966 RANLIB="$ac_cv_prog_RANLIB"
8967fi
8968
8969test -z "$RANLIB" && RANLIB=:
8970
8971
8972
8973
8974
8975
8976# Determine commands to create old-style static archives.
8977old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8978old_postinstall_cmds='chmod 644 $oldlib'
8979old_postuninstall_cmds=
8980
8981if test -n "$RANLIB"; then
8982 case $host_os in
8983 bitrig* | openbsd*)
8984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8985 ;;
8986 *)
8987 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8988 ;;
8989 esac
8990 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8991fi
8992
8993case $host_os in
8994 darwin*)
8995 lock_old_archive_extraction=yes ;;
8996 *)
8997 lock_old_archive_extraction=no ;;
8998esac
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
9034
9035
9036
9037
9038# If no C compiler was specified, use CC.
9039LTCC=${LTCC-"$CC"}
9040
9041# If no C compiler flags were specified, use CFLAGS.
9042LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9043
9044# Allow CC to be a program name with arguments.
9045compiler=$CC
9046
9047
9048# Check for command to grab the raw symbol name followed by C symbol from nm.
9049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9050$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9051if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9052 $as_echo_n "(cached) " >&6
9053else
9054
9055# These are sane defaults that work on at least a few old systems.
9056# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9057
9058# Character class describing NM global symbol codes.
9059symcode='[BCDEGRST]'
9060
9061# Regexp to match symbols that can be accessed directly from C.
9062sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9063
9064# Define system-specific variables.
9065case $host_os in
9066aix*)
9067 symcode='[BCDT]'
9068 ;;
9069cygwin* | mingw* | pw32* | cegcc*)
9070 symcode='[ABCDGISTW]'
9071 ;;
9072hpux*)
9073 if test ia64 = "$host_cpu"; then
9074 symcode='[ABCDEGRST]'
9075 fi
9076 ;;
9077irix* | nonstopux*)
9078 symcode='[BCDEGRST]'
9079 ;;
9080osf*)
9081 symcode='[BCDEGQRST]'
9082 ;;
9083solaris*)
9084 symcode='[BDRT]'
9085 ;;
9086sco3.2v5*)
9087 symcode='[DT]'
9088 ;;
9089sysv4.2uw2*)
9090 symcode='[DT]'
9091 ;;
9092sysv5* | sco5v6* | unixware* | OpenUNIX*)
9093 symcode='[ABDT]'
9094 ;;
9095sysv4)
9096 symcode='[DFNSTU]'
9097 ;;
9098esac
9099
9100# If we're using GNU nm, then use its standard symbol codes.
9101case `$NM -V 2>&1` in
9102*GNU* | *'with BFD'*)
9103 symcode='[ABCDGIRSTW]' ;;
9104esac
9105
9106if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9107 # Gets list of data symbols to import.
9108 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9109 # Adjust the below global symbol transforms to fixup imported variables.
9110 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9111 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9112 lt_c_name_lib_hook="\
9113 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9114 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9115else
9116 # Disable hooks by default.
9117 lt_cv_sys_global_symbol_to_import=
9118 lt_cdecl_hook=
9119 lt_c_name_hook=
9120 lt_c_name_lib_hook=
9121fi
9122
9123# Transform an extracted symbol line into a proper C declaration.
9124# Some systems (esp. on ia64) link data and code symbols differently,
9125# so use this general approach.
9126lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9127$lt_cdecl_hook\
9128" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9129" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9130
9131# Transform an extracted symbol line into symbol name and symbol address
9132lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9133$lt_c_name_hook\
9134" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9135" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9136
9137# Transform an extracted symbol line into symbol name with lib prefix and
9138# symbol address.
9139lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9140$lt_c_name_lib_hook\
9141" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9142" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9143" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9144
9145# Handle CRLF in mingw tool chain
9146opt_cr=
9147case $build_os in
9148mingw*)
9149 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9150 ;;
9151esac
9152
9153# Try without a prefix underscore, then with it.
9154for ac_symprfx in "" "_"; do
9155
9156 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9157 symxfrm="\\1 $ac_symprfx\\2 \\2"
9158
9159 # Write the raw and C identifiers.
9160 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9161 # Fake it for dumpbin and say T for any non-static function,
9162 # D for any global variable and I for any imported variable.
9163 # Also find C++ and __fastcall symbols from MSVC++,
9164 # which start with @ or ?.
9165 lt_cv_sys_global_symbol_pipe="$AWK '"\
9166" {last_section=section; section=\$ 3};"\
9167" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9168" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9169" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9170" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9171" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9172" \$ 0!~/External *\|/{next};"\
9173" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9174" {if(hide[section]) next};"\
9175" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9176" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9177" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9178" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9179" ' prfx=^$ac_symprfx"
9180 else
9181 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9182 fi
9183 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9184
9185 # Check to see that the pipe works correctly.
9186 pipe_works=no
9187
9188 rm -f conftest*
9189 cat > conftest.$ac_ext <<_LT_EOF
9190#ifdef __cplusplus
9191extern "C" {
9192#endif
9193char nm_test_var;
9194void nm_test_func(void);
9195void nm_test_func(void){}
9196#ifdef __cplusplus
9197}
9198#endif
9199int main(){nm_test_var='a';nm_test_func();return(0);}
9200_LT_EOF
9201
9202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9203 (eval $ac_compile) 2>&5
9204 ac_status=$?
9205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9206 test $ac_status = 0; }; then
9207 # Now try to grab the symbols.
9208 nlist=conftest.nm
9209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9210 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9211 ac_status=$?
9212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9213 test $ac_status = 0; } && test -s "$nlist"; then
9214 # Try sorting and uniquifying the output.
9215 if sort "$nlist" | uniq > "$nlist"T; then
9216 mv -f "$nlist"T "$nlist"
9217 else
9218 rm -f "$nlist"T
9219 fi
9220
9221 # Make sure that we snagged all the symbols we need.
9222 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9223 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9224 cat <<_LT_EOF > conftest.$ac_ext
9225/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9226#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9227/* DATA imports from DLLs on WIN32 can't be const, because runtime
9228 relocations are performed -- see ld's documentation on pseudo-relocs. */
9229# define LT_DLSYM_CONST
9230#elif defined __osf__
9231/* This system does not cope well with relocations in const data. */
9232# define LT_DLSYM_CONST
9233#else
9234# define LT_DLSYM_CONST const
9235#endif
9236
9237#ifdef __cplusplus
9238extern "C" {
9239#endif
9240
9241_LT_EOF
9242 # Now generate the symbol file.
9243 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9244
9245 cat <<_LT_EOF >> conftest.$ac_ext
9246
9247/* The mapping between symbol names and symbols. */
9248LT_DLSYM_CONST struct {
9249 const char *name;
9250 void *address;
9251}
9252lt__PROGRAM__LTX_preloaded_symbols[] =
9253{
9254 { "@PROGRAM@", (void *) 0 },
9255_LT_EOF
9256 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9257 cat <<\_LT_EOF >> conftest.$ac_ext
9258 {0, (void *) 0}
9259};
9260
9261/* This works around a problem in FreeBSD linker */
9262#ifdef FREEBSD_WORKAROUND
9263static const void *lt_preloaded_setup() {
9264 return lt__PROGRAM__LTX_preloaded_symbols;
9265}
9266#endif
9267
9268#ifdef __cplusplus
9269}
9270#endif
9271_LT_EOF
9272 # Now try linking the two files.
9273 mv -f conftest.$ac_objext conftstm.$ac_objext
9274 lt_globsym_save_LIBS=$LIBS
9275 lt_globsym_save_CFLAGS=$CFLAGS
9276 LIBS=conftstm.$ac_objext
9277 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9279 (eval $ac_link) 2>&5
9280 ac_status=$?
9281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9282 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9283 pipe_works=yes
9284 fi
9285 LIBS=$lt_globsym_save_LIBS
9286 CFLAGS=$lt_globsym_save_CFLAGS
9287 else
9288 echo "cannot find nm_test_func in $nlist" >&5
9289 fi
9290 else
9291 echo "cannot find nm_test_var in $nlist" >&5
9292 fi
9293 else
9294 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9295 fi
9296 else
9297 echo "$progname: failed program was:" >&5
9298 cat conftest.$ac_ext >&5
9299 fi
9300 rm -rf conftest* conftst*
9301
9302 # Do not use the global_symbol_pipe unless it works.
9303 if test yes = "$pipe_works"; then
9304 break
9305 else
9306 lt_cv_sys_global_symbol_pipe=
9307 fi
9308done
9309
9310fi
9311
9312if test -z "$lt_cv_sys_global_symbol_pipe"; then
9313 lt_cv_sys_global_symbol_to_cdecl=
9314fi
9315if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9317$as_echo "failed" >&6; }
9318else
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9320$as_echo "ok" >&6; }
9321fi
9322
9323# Response file support.
9324if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9325 nm_file_list_spec='@'
9326elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9327 nm_file_list_spec='@'
9328fi
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
9362
9363
9364
9365
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9367$as_echo_n "checking for sysroot... " >&6; }
9368
9369# Check whether --with-sysroot was given.
9370if test "${with_sysroot+set}" = set; then :
9371 withval=$with_sysroot;
9372else
9373 with_sysroot=no
9374fi
9375
9376
9377lt_sysroot=
9378case $with_sysroot in #(
9379 yes)
9380 if test yes = "$GCC"; then
9381 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9382 fi
9383 ;; #(
9384 /*)
9385 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9386 ;; #(
9387 no|'')
9388 ;; #(
9389 *)
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9391$as_echo "$with_sysroot" >&6; }
9392 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9393 ;;
9394esac
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9397$as_echo "${lt_sysroot:-no}" >&6; }
9398
9399
9400
9401
9402
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9404$as_echo_n "checking for a working dd... " >&6; }
9405if ${ac_cv_path_lt_DD+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407else
9408 printf 0123456789abcdef0123456789abcdef >conftest.i
9409cat conftest.i conftest.i >conftest2.i
9410: ${lt_DD:=$DD}
9411if test -z "$lt_DD"; then
9412 ac_path_lt_DD_found=false
9413 # Loop through the user's path and test for each of PROGNAME-LIST
9414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in $PATH
9416do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
9419 for ac_prog in dd; do
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9422 as_fn_executable_p "$ac_path_lt_DD" || continue
9423if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9424 cmp -s conftest.i conftest.out \
9425 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9426fi
9427 $ac_path_lt_DD_found && break 3
9428 done
9429 done
9430 done
9431IFS=$as_save_IFS
9432 if test -z "$ac_cv_path_lt_DD"; then
9433 :
9434 fi
9435else
9436 ac_cv_path_lt_DD=$lt_DD
9437fi
9438
9439rm -f conftest.i conftest2.i conftest.out
9440fi
9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9442$as_echo "$ac_cv_path_lt_DD" >&6; }
9443
9444
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9446$as_echo_n "checking how to truncate binary pipes... " >&6; }
9447if ${lt_cv_truncate_bin+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449else
9450 printf 0123456789abcdef0123456789abcdef >conftest.i
9451cat conftest.i conftest.i >conftest2.i
9452lt_cv_truncate_bin=
9453if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9454 cmp -s conftest.i conftest.out \
9455 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9456fi
9457rm -f conftest.i conftest2.i conftest.out
9458test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9461$as_echo "$lt_cv_truncate_bin" >&6; }
9462
9463
9464
9465
9466
9467
9468
9469# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9470func_cc_basename ()
9471{
9472 for cc_temp in $*""; do
9473 case $cc_temp in
9474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9476 \-*) ;;
9477 *) break;;
9478 esac
9479 done
9480 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9481}
9482
9483# Check whether --enable-libtool-lock was given.
9484if test "${enable_libtool_lock+set}" = set; then :
9485 enableval=$enable_libtool_lock;
9486fi
9487
9488test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9489
9490# Some flags need to be propagated to the compiler or linker for good
9491# libtool support.
9492case $host in
9493ia64-*-hpux*)
9494 # Find out what ABI is being produced by ac_compile, and set mode
9495 # options accordingly.
9496 echo 'int i;' > conftest.$ac_ext
9497 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9498 (eval $ac_compile) 2>&5
9499 ac_status=$?
9500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9501 test $ac_status = 0; }; then
9502 case `/usr/bin/file conftest.$ac_objext` in
9503 *ELF-32*)
9504 HPUX_IA64_MODE=32
9505 ;;
9506 *ELF-64*)
9507 HPUX_IA64_MODE=64
9508 ;;
9509 esac
9510 fi
9511 rm -rf conftest*
9512 ;;
9513*-*-irix6*)
9514 # Find out what ABI is being produced by ac_compile, and set linker
9515 # options accordingly.
9516 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518 (eval $ac_compile) 2>&5
9519 ac_status=$?
9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521 test $ac_status = 0; }; then
9522 if test yes = "$lt_cv_prog_gnu_ld"; then
9523 case `/usr/bin/file conftest.$ac_objext` in
9524 *32-bit*)
9525 LD="${LD-ld} -melf32bsmip"
9526 ;;
9527 *N32*)
9528 LD="${LD-ld} -melf32bmipn32"
9529 ;;
9530 *64-bit*)
9531 LD="${LD-ld} -melf64bmip"
9532 ;;
9533 esac
9534 else
9535 case `/usr/bin/file conftest.$ac_objext` in
9536 *32-bit*)
9537 LD="${LD-ld} -32"
9538 ;;
9539 *N32*)
9540 LD="${LD-ld} -n32"
9541 ;;
9542 *64-bit*)
9543 LD="${LD-ld} -64"
9544 ;;
9545 esac
9546 fi
9547 fi
9548 rm -rf conftest*
9549 ;;
9550
9551mips64*-*linux*)
9552 # Find out what ABI is being produced by ac_compile, and set linker
9553 # options accordingly.
9554 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9556 (eval $ac_compile) 2>&5
9557 ac_status=$?
9558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9559 test $ac_status = 0; }; then
9560 emul=elf
9561 case `/usr/bin/file conftest.$ac_objext` in
9562 *32-bit*)
9563 emul="${emul}32"
9564 ;;
9565 *64-bit*)
9566 emul="${emul}64"
9567 ;;
9568 esac
9569 case `/usr/bin/file conftest.$ac_objext` in
9570 *MSB*)
9571 emul="${emul}btsmip"
9572 ;;
9573 *LSB*)
9574 emul="${emul}ltsmip"
9575 ;;
9576 esac
9577 case `/usr/bin/file conftest.$ac_objext` in
9578 *N32*)
9579 emul="${emul}n32"
9580 ;;
9581 esac
9582 LD="${LD-ld} -m $emul"
9583 fi
9584 rm -rf conftest*
9585 ;;
9586
9587x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9588s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9589 # Find out what ABI is being produced by ac_compile, and set linker
9590 # options accordingly. Note that the listed cases only cover the
9591 # situations where additional linker options are needed (such as when
9592 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9593 # vice versa); the common cases where no linker options are needed do
9594 # not appear in the list.
9595 echo 'int i;' > conftest.$ac_ext
9596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9597 (eval $ac_compile) 2>&5
9598 ac_status=$?
9599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9600 test $ac_status = 0; }; then
9601 case `/usr/bin/file conftest.o` in
9602 *32-bit*)
9603 case $host in
9604 x86_64-*kfreebsd*-gnu)
9605 LD="${LD-ld} -m elf_i386_fbsd"
9606 ;;
9607 x86_64-*linux*)
9608 case `/usr/bin/file conftest.o` in
9609 *x86-64*)
9610 LD="${LD-ld} -m elf32_x86_64"
9611 ;;
9612 *)
9613 LD="${LD-ld} -m elf_i386"
9614 ;;
9615 esac
9616 ;;
9617 powerpc64le-*linux*)
9618 LD="${LD-ld} -m elf32lppclinux"
9619 ;;
9620 powerpc64-*linux*)
9621 LD="${LD-ld} -m elf32ppclinux"
9622 ;;
9623 s390x-*linux*)
9624 LD="${LD-ld} -m elf_s390"
9625 ;;
9626 sparc64-*linux*)
9627 LD="${LD-ld} -m elf32_sparc"
9628 ;;
9629 esac
9630 ;;
9631 *64-bit*)
9632 case $host in
9633 x86_64-*kfreebsd*-gnu)
9634 LD="${LD-ld} -m elf_x86_64_fbsd"
9635 ;;
9636 x86_64-*linux*)
9637 LD="${LD-ld} -m elf_x86_64"
9638 ;;
9639 powerpcle-*linux*)
9640 LD="${LD-ld} -m elf64lppc"
9641 ;;
9642 powerpc-*linux*)
9643 LD="${LD-ld} -m elf64ppc"
9644 ;;
9645 s390*-*linux*|s390*-*tpf*)
9646 LD="${LD-ld} -m elf64_s390"
9647 ;;
9648 sparc*-*linux*)
9649 LD="${LD-ld} -m elf64_sparc"
9650 ;;
9651 esac
9652 ;;
9653 esac
9654 fi
9655 rm -rf conftest*
9656 ;;
9657
9658*-*-sco3.2v5*)
9659 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9660 SAVE_CFLAGS=$CFLAGS
9661 CFLAGS="$CFLAGS -belf"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9663$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9664if ${lt_cv_cc_needs_belf+:} false; then :
9665 $as_echo_n "(cached) " >&6
9666else
9667 ac_ext=c
9668ac_cpp='$CPP $CPPFLAGS'
9669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9671ac_compiler_gnu=$ac_cv_c_compiler_gnu
9672
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h. */
9675
9676int main (void)
9677{
9678
9679 ;
9680 return 0;
9681}
9682_ACEOF
9683if ac_fn_c_try_link "$LINENO"; then :
9684 lt_cv_cc_needs_belf=yes
9685else
9686 lt_cv_cc_needs_belf=no
9687fi
9688rm -f core conftest.err conftest.$ac_objext \
9689 conftest$ac_exeext conftest.$ac_ext
9690 ac_ext=c
9691ac_cpp='$CPP $CPPFLAGS'
9692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9694ac_compiler_gnu=$ac_cv_c_compiler_gnu
9695
9696fi
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9698$as_echo "$lt_cv_cc_needs_belf" >&6; }
9699 if test yes != "$lt_cv_cc_needs_belf"; then
9700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9701 CFLAGS=$SAVE_CFLAGS
9702 fi
9703 ;;
9704*-*solaris*)
9705 # Find out what ABI is being produced by ac_compile, and set linker
9706 # options accordingly.
9707 echo 'int i;' > conftest.$ac_ext
9708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9709 (eval $ac_compile) 2>&5
9710 ac_status=$?
9711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9712 test $ac_status = 0; }; then
9713 case `/usr/bin/file conftest.o` in
9714 *64-bit*)
9715 case $lt_cv_prog_gnu_ld in
9716 yes*)
9717 case $host in
9718 i?86-*-solaris*|x86_64-*-solaris*)
9719 LD="${LD-ld} -m elf_x86_64"
9720 ;;
9721 sparc*-*-solaris*)
9722 LD="${LD-ld} -m elf64_sparc"
9723 ;;
9724 esac
9725 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9726 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9727 LD=${LD-ld}_sol2
9728 fi
9729 ;;
9730 *)
9731 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9732 LD="${LD-ld} -64"
9733 fi
9734 ;;
9735 esac
9736 ;;
9737 esac
9738 fi
9739 rm -rf conftest*
9740 ;;
9741esac
9742
9743need_locks=$enable_libtool_lock
9744
9745if test -n "$ac_tool_prefix"; then
9746 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9747set dummy ${ac_tool_prefix}mt; ac_word=$2
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749$as_echo_n "checking for $ac_word... " >&6; }
9750if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9751 $as_echo_n "(cached) " >&6
9752else
9753 if test -n "$MANIFEST_TOOL"; then
9754 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9755else
9756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757for as_dir in $PATH
9758do
9759 IFS=$as_save_IFS
9760 test -z "$as_dir" && as_dir=.
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9763 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9765 break 2
9766 fi
9767done
9768 done
9769IFS=$as_save_IFS
9770
9771fi
9772fi
9773MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9774if test -n "$MANIFEST_TOOL"; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9776$as_echo "$MANIFEST_TOOL" >&6; }
9777else
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779$as_echo "no" >&6; }
9780fi
9781
9782
9783fi
9784if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9785 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9786 # Extract the first word of "mt", so it can be a program name with args.
9787set dummy mt; ac_word=$2
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9789$as_echo_n "checking for $ac_word... " >&6; }
9790if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9791 $as_echo_n "(cached) " >&6
9792else
9793 if test -n "$ac_ct_MANIFEST_TOOL"; then
9794 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9795else
9796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9797for as_dir in $PATH
9798do
9799 IFS=$as_save_IFS
9800 test -z "$as_dir" && as_dir=.
9801 for ac_exec_ext in '' $ac_executable_extensions; do
9802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9803 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9805 break 2
9806 fi
9807done
9808 done
9809IFS=$as_save_IFS
9810
9811fi
9812fi
9813ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9814if test -n "$ac_ct_MANIFEST_TOOL"; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9816$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9817else
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9819$as_echo "no" >&6; }
9820fi
9821
9822 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9823 MANIFEST_TOOL=":"
9824 else
9825 case $cross_compiling:$ac_tool_warned in
9826yes:)
9827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9829ac_tool_warned=yes ;;
9830esac
9831 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9832 fi
9833else
9834 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9835fi
9836
9837test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9839$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9840if ${lt_cv_path_mainfest_tool+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842else
9843 lt_cv_path_mainfest_tool=no
9844 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9845 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9846 cat conftest.err >&5
9847 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9848 lt_cv_path_mainfest_tool=yes
9849 fi
9850 rm -f conftest*
9851fi
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9853$as_echo "$lt_cv_path_mainfest_tool" >&6; }
9854if test yes != "$lt_cv_path_mainfest_tool"; then
9855 MANIFEST_TOOL=:
9856fi
9857
9858
9859
9860
9861
9862
9863 case $host_os in
9864 rhapsody* | darwin*)
9865 if test -n "$ac_tool_prefix"; then
9866 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9867set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869$as_echo_n "checking for $ac_word... " >&6; }
9870if ${ac_cv_prog_DSYMUTIL+:} false; then :
9871 $as_echo_n "(cached) " >&6
9872else
9873 if test -n "$DSYMUTIL"; then
9874 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9875else
9876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877for as_dir in $PATH
9878do
9879 IFS=$as_save_IFS
9880 test -z "$as_dir" && as_dir=.
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9883 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885 break 2
9886 fi
9887done
9888 done
9889IFS=$as_save_IFS
9890
9891fi
9892fi
9893DSYMUTIL=$ac_cv_prog_DSYMUTIL
9894if test -n "$DSYMUTIL"; then
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9896$as_echo "$DSYMUTIL" >&6; }
9897else
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899$as_echo "no" >&6; }
9900fi
9901
9902
9903fi
9904if test -z "$ac_cv_prog_DSYMUTIL"; then
9905 ac_ct_DSYMUTIL=$DSYMUTIL
9906 # Extract the first word of "dsymutil", so it can be a program name with args.
9907set dummy dsymutil; ac_word=$2
9908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9909$as_echo_n "checking for $ac_word... " >&6; }
9910if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912else
9913 if test -n "$ac_ct_DSYMUTIL"; then
9914 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9915else
9916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9917for as_dir in $PATH
9918do
9919 IFS=$as_save_IFS
9920 test -z "$as_dir" && as_dir=.
9921 for ac_exec_ext in '' $ac_executable_extensions; do
9922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9923 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9925 break 2
9926 fi
9927done
9928 done
9929IFS=$as_save_IFS
9930
9931fi
9932fi
9933ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9934if test -n "$ac_ct_DSYMUTIL"; then
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9936$as_echo "$ac_ct_DSYMUTIL" >&6; }
9937else
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9939$as_echo "no" >&6; }
9940fi
9941
9942 if test "x$ac_ct_DSYMUTIL" = x; then
9943 DSYMUTIL=":"
9944 else
9945 case $cross_compiling:$ac_tool_warned in
9946yes:)
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9949ac_tool_warned=yes ;;
9950esac
9951 DSYMUTIL=$ac_ct_DSYMUTIL
9952 fi
9953else
9954 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9955fi
9956
9957 if test -n "$ac_tool_prefix"; then
9958 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9959set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961$as_echo_n "checking for $ac_word... " >&6; }
9962if ${ac_cv_prog_NMEDIT+:} false; then :
9963 $as_echo_n "(cached) " >&6
9964else
9965 if test -n "$NMEDIT"; then
9966 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9967else
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977 break 2
9978 fi
9979done
9980 done
9981IFS=$as_save_IFS
9982
9983fi
9984fi
9985NMEDIT=$ac_cv_prog_NMEDIT
9986if test -n "$NMEDIT"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9988$as_echo "$NMEDIT" >&6; }
9989else
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991$as_echo "no" >&6; }
9992fi
9993
9994
9995fi
9996if test -z "$ac_cv_prog_NMEDIT"; then
9997 ac_ct_NMEDIT=$NMEDIT
9998 # Extract the first word of "nmedit", so it can be a program name with args.
9999set dummy nmedit; ac_word=$2
10000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10001$as_echo_n "checking for $ac_word... " >&6; }
10002if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10003 $as_echo_n "(cached) " >&6
10004else
10005 if test -n "$ac_ct_NMEDIT"; then
10006 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10015 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019done
10020 done
10021IFS=$as_save_IFS
10022
10023fi
10024fi
10025ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10026if test -n "$ac_ct_NMEDIT"; then
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10028$as_echo "$ac_ct_NMEDIT" >&6; }
10029else
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10031$as_echo "no" >&6; }
10032fi
10033
10034 if test "x$ac_ct_NMEDIT" = x; then
10035 NMEDIT=":"
10036 else
10037 case $cross_compiling:$ac_tool_warned in
10038yes:)
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10041ac_tool_warned=yes ;;
10042esac
10043 NMEDIT=$ac_ct_NMEDIT
10044 fi
10045else
10046 NMEDIT="$ac_cv_prog_NMEDIT"
10047fi
10048
10049 if test -n "$ac_tool_prefix"; then
10050 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10051set dummy ${ac_tool_prefix}lipo; ac_word=$2
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10053$as_echo_n "checking for $ac_word... " >&6; }
10054if ${ac_cv_prog_LIPO+:} false; then :
10055 $as_echo_n "(cached) " >&6
10056else
10057 if test -n "$LIPO"; then
10058 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10059else
10060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10061for as_dir in $PATH
10062do
10063 IFS=$as_save_IFS
10064 test -z "$as_dir" && as_dir=.
10065 for ac_exec_ext in '' $ac_executable_extensions; do
10066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10067 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10069 break 2
10070 fi
10071done
10072 done
10073IFS=$as_save_IFS
10074
10075fi
10076fi
10077LIPO=$ac_cv_prog_LIPO
10078if test -n "$LIPO"; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10080$as_echo "$LIPO" >&6; }
10081else
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10083$as_echo "no" >&6; }
10084fi
10085
10086
10087fi
10088if test -z "$ac_cv_prog_LIPO"; then
10089 ac_ct_LIPO=$LIPO
10090 # Extract the first word of "lipo", so it can be a program name with args.
10091set dummy lipo; ac_word=$2
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093$as_echo_n "checking for $ac_word... " >&6; }
10094if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096else
10097 if test -n "$ac_ct_LIPO"; then
10098 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10099else
10100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101for as_dir in $PATH
10102do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10107 ac_cv_prog_ac_ct_LIPO="lipo"
10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 break 2
10110 fi
10111done
10112 done
10113IFS=$as_save_IFS
10114
10115fi
10116fi
10117ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10118if test -n "$ac_ct_LIPO"; then
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10120$as_echo "$ac_ct_LIPO" >&6; }
10121else
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
10124fi
10125
10126 if test "x$ac_ct_LIPO" = x; then
10127 LIPO=":"
10128 else
10129 case $cross_compiling:$ac_tool_warned in
10130yes:)
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10132$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10133ac_tool_warned=yes ;;
10134esac
10135 LIPO=$ac_ct_LIPO
10136 fi
10137else
10138 LIPO="$ac_cv_prog_LIPO"
10139fi
10140
10141 if test -n "$ac_tool_prefix"; then
10142 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10143set dummy ${ac_tool_prefix}otool; ac_word=$2
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
10146if ${ac_cv_prog_OTOOL+:} false; then :
10147 $as_echo_n "(cached) " >&6
10148else
10149 if test -n "$OTOOL"; then
10150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155 IFS=$as_save_IFS
10156 test -z "$as_dir" && as_dir=.
10157 for ac_exec_ext in '' $ac_executable_extensions; do
10158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161 break 2
10162 fi
10163done
10164 done
10165IFS=$as_save_IFS
10166
10167fi
10168fi
10169OTOOL=$ac_cv_prog_OTOOL
10170if test -n "$OTOOL"; then
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10172$as_echo "$OTOOL" >&6; }
10173else
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
10176fi
10177
10178
10179fi
10180if test -z "$ac_cv_prog_OTOOL"; then
10181 ac_ct_OTOOL=$OTOOL
10182 # Extract the first word of "otool", so it can be a program name with args.
10183set dummy otool; ac_word=$2
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
10186if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188else
10189 if test -n "$ac_ct_OTOOL"; then
10190 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10191else
10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193for as_dir in $PATH
10194do
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
10197 for ac_exec_ext in '' $ac_executable_extensions; do
10198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10199 ac_cv_prog_ac_ct_OTOOL="otool"
10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 break 2
10202 fi
10203done
10204 done
10205IFS=$as_save_IFS
10206
10207fi
10208fi
10209ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10210if test -n "$ac_ct_OTOOL"; then
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10212$as_echo "$ac_ct_OTOOL" >&6; }
10213else
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215$as_echo "no" >&6; }
10216fi
10217
10218 if test "x$ac_ct_OTOOL" = x; then
10219 OTOOL=":"
10220 else
10221 case $cross_compiling:$ac_tool_warned in
10222yes:)
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10225ac_tool_warned=yes ;;
10226esac
10227 OTOOL=$ac_ct_OTOOL
10228 fi
10229else
10230 OTOOL="$ac_cv_prog_OTOOL"
10231fi
10232
10233 if test -n "$ac_tool_prefix"; then
10234 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10235set dummy ${ac_tool_prefix}otool64; ac_word=$2
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if ${ac_cv_prog_OTOOL64+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240else
10241 if test -n "$OTOOL64"; then
10242 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10243else
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10251 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10254 fi
10255done
10256 done
10257IFS=$as_save_IFS
10258
10259fi
10260fi
10261OTOOL64=$ac_cv_prog_OTOOL64
10262if test -n "$OTOOL64"; then
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10264$as_echo "$OTOOL64" >&6; }
10265else
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
10268fi
10269
10270
10271fi
10272if test -z "$ac_cv_prog_OTOOL64"; then
10273 ac_ct_OTOOL64=$OTOOL64
10274 # Extract the first word of "otool64", so it can be a program name with args.
10275set dummy otool64; ac_word=$2
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277$as_echo_n "checking for $ac_word... " >&6; }
10278if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10279 $as_echo_n "(cached) " >&6
10280else
10281 if test -n "$ac_ct_OTOOL64"; then
10282 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10283else
10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291 ac_cv_prog_ac_ct_OTOOL64="otool64"
10292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296 done
10297IFS=$as_save_IFS
10298
10299fi
10300fi
10301ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10302if test -n "$ac_ct_OTOOL64"; then
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10304$as_echo "$ac_ct_OTOOL64" >&6; }
10305else
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10307$as_echo "no" >&6; }
10308fi
10309
10310 if test "x$ac_ct_OTOOL64" = x; then
10311 OTOOL64=":"
10312 else
10313 case $cross_compiling:$ac_tool_warned in
10314yes:)
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10317ac_tool_warned=yes ;;
10318esac
10319 OTOOL64=$ac_ct_OTOOL64
10320 fi
10321else
10322 OTOOL64="$ac_cv_prog_OTOOL64"
10323fi
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10352$as_echo_n "checking for -single_module linker flag... " >&6; }
10353if ${lt_cv_apple_cc_single_mod+:} false; then :
10354 $as_echo_n "(cached) " >&6
10355else
10356 lt_cv_apple_cc_single_mod=no
10357 if test -z "$LT_MULTI_MODULE"; then
10358 # By default we will add the -single_module flag. You can override
10359 # by either setting the environment variable LT_MULTI_MODULE
10360 # non-empty at configure time, or by adding -multi_module to the
10361 # link flags.
10362 rm -rf libconftest.dylib*
10363 echo "int foo(void){return 1;}" > conftest.c
10364 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10365-dynamiclib -Wl,-single_module conftest.c" >&5
10366 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10367 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10368 _lt_result=$?
10369 # If there is a non-empty error log, and "single_module"
10370 # appears in it, assume the flag caused a linker warning
10371 if test -s conftest.err && $GREP single_module conftest.err; then
10372 cat conftest.err >&5
10373 # Otherwise, if the output was created with a 0 exit code from
10374 # the compiler, it worked.
10375 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10376 lt_cv_apple_cc_single_mod=yes
10377 else
10378 cat conftest.err >&5
10379 fi
10380 rm -rf libconftest.dylib*
10381 rm -f conftest.*
10382 fi
10383fi
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10385$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10386
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10388$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10389if ${lt_cv_ld_exported_symbols_list+:} false; then :
10390 $as_echo_n "(cached) " >&6
10391else
10392 lt_cv_ld_exported_symbols_list=no
10393 save_LDFLAGS=$LDFLAGS
10394 echo "_main" > conftest.sym
10395 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397/* end confdefs.h. */
10398
10399int main (void)
10400{
10401
10402 ;
10403 return 0;
10404}
10405_ACEOF
10406if ac_fn_c_try_link "$LINENO"; then :
10407 lt_cv_ld_exported_symbols_list=yes
10408else
10409 lt_cv_ld_exported_symbols_list=no
10410fi
10411rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 LDFLAGS=$save_LDFLAGS
10414
10415fi
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10417$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10418
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10420$as_echo_n "checking for -force_load linker flag... " >&6; }
10421if ${lt_cv_ld_force_load+:} false; then :
10422 $as_echo_n "(cached) " >&6
10423else
10424 lt_cv_ld_force_load=no
10425 cat > conftest.c << _LT_EOF
10426int forced_loaded() { return 2;}
10427_LT_EOF
10428 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10429 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10430 echo "$AR cru libconftest.a conftest.o" >&5
10431 $AR cru libconftest.a conftest.o 2>&5
10432 echo "$RANLIB libconftest.a" >&5
10433 $RANLIB libconftest.a 2>&5
10434 cat > conftest.c << _LT_EOF
10435int main() { return 0;}
10436_LT_EOF
10437 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10438 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10439 _lt_result=$?
10440 if test -s conftest.err && $GREP force_load conftest.err; then
10441 cat conftest.err >&5
10442 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10443 lt_cv_ld_force_load=yes
10444 else
10445 cat conftest.err >&5
10446 fi
10447 rm -f conftest.err libconftest.a conftest conftest.c
10448 rm -rf conftest.dSYM
10449
10450fi
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10452$as_echo "$lt_cv_ld_force_load" >&6; }
10453 case $host_os in
10454 rhapsody* | darwin1.[012])
10455 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10456 darwin1.*)
10457 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10458 darwin*) # darwin 5.x on
10459 # if running on 10.5 or later, the deployment target defaults
10460 # to the OS version, if on x86, and 10.4, the deployment
10461 # target defaults to 10.4. Don't you love it?
10462 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10463 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10464 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10465 10.[012][,.]*)
10466 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10467 10.*)
10468 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10469 esac
10470 ;;
10471 esac
10472 if test yes = "$lt_cv_apple_cc_single_mod"; then
10473 _lt_dar_single_mod='$single_module'
10474 fi
10475 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10476 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10477 else
10478 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10479 fi
10480 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10481 _lt_dsymutil='~$DSYMUTIL $lib || :'
10482 else
10483 _lt_dsymutil=
10484 fi
10485 ;;
10486 esac
10487
10488# func_munge_path_list VARIABLE PATH
10489# -----------------------------------
10490# VARIABLE is name of variable containing _space_ separated list of
10491# directories to be munged by the contents of PATH, which is string
10492# having a format:
10493# "DIR[:DIR]:"
10494# string "DIR[ DIR]" will be prepended to VARIABLE
10495# ":DIR[:DIR]"
10496# string "DIR[ DIR]" will be appended to VARIABLE
10497# "DIRP[:DIRP]::[DIRA:]DIRA"
10498# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10499# "DIRA[ DIRA]" will be appended to VARIABLE
10500# "DIR[:DIR]"
10501# VARIABLE will be replaced by "DIR[ DIR]"
10502func_munge_path_list ()
10503{
10504 case x$2 in
10505 x)
10506 ;;
10507 *:)
10508 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10509 ;;
10510 x:*)
10511 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10512 ;;
10513 *::*)
10514 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10515 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10516 ;;
10517 *)
10518 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10519 ;;
10520 esac
10521}
10522
Alex Deymo486467e2017-12-19 19:04:07 +010010523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10524$as_echo_n "checking for ANSI C header files... " >&6; }
10525if ${ac_cv_header_stdc+:} false; then :
10526 $as_echo_n "(cached) " >&6
10527else
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h. */
10530#include <stdlib.h>
10531#include <stdarg.h>
10532#include <string.h>
10533#include <float.h>
10534
10535int main (void)
10536{
10537
10538 ;
10539 return 0;
10540}
10541_ACEOF
10542if ac_fn_c_try_compile "$LINENO"; then :
10543 ac_cv_header_stdc=yes
10544else
10545 ac_cv_header_stdc=no
10546fi
10547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10548
10549if test $ac_cv_header_stdc = yes; then
10550 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552/* end confdefs.h. */
10553#include <string.h>
10554
10555_ACEOF
10556if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10557 $EGREP "memchr" >/dev/null 2>&1; then :
10558
10559else
10560 ac_cv_header_stdc=no
10561fi
10562rm -f conftest*
10563
10564fi
10565
10566if test $ac_cv_header_stdc = yes; then
10567 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569/* end confdefs.h. */
10570#include <stdlib.h>
10571
10572_ACEOF
10573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10574 $EGREP "free" >/dev/null 2>&1; then :
10575
10576else
10577 ac_cv_header_stdc=no
10578fi
10579rm -f conftest*
10580
10581fi
10582
10583if test $ac_cv_header_stdc = yes; then
10584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10585 if test "$cross_compiling" = yes; then :
10586 :
10587else
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589/* end confdefs.h. */
10590#include <ctype.h>
10591#include <stdlib.h>
10592#if ((' ' & 0x0FF) == 0x020)
10593# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10594# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10595#else
10596# define ISLOWER(c) \
10597 (('a' <= (c) && (c) <= 'i') \
10598 || ('j' <= (c) && (c) <= 'r') \
10599 || ('s' <= (c) && (c) <= 'z'))
10600# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10601#endif
10602
10603#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10604int
10605main ()
10606{
10607 int i;
10608 for (i = 0; i < 256; i++)
10609 if (XOR (islower (i), ISLOWER (i))
10610 || toupper (i) != TOUPPER (i))
10611 return 2;
10612 return 0;
10613}
10614_ACEOF
10615if ac_fn_c_try_run "$LINENO"; then :
10616
10617else
10618 ac_cv_header_stdc=no
10619fi
10620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10621 conftest.$ac_objext conftest.beam conftest.$ac_ext
10622fi
10623
10624fi
10625fi
10626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10627$as_echo "$ac_cv_header_stdc" >&6; }
10628if test $ac_cv_header_stdc = yes; then
10629
10630$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10631
10632fi
10633
10634# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10636 inttypes.h stdint.h unistd.h
10637do :
10638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10639ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10640"
10641if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10642 cat >>confdefs.h <<_ACEOF
10643#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10644_ACEOF
10645
10646fi
10647
10648done
10649
10650
Elliott Hughes82be86d2017-09-20 17:00:17 -070010651for ac_header in dlfcn.h
10652do :
10653 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10654"
10655if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10656 cat >>confdefs.h <<_ACEOF
10657#define HAVE_DLFCN_H 1
10658_ACEOF
10659
10660fi
10661
10662done
10663
10664# ------------------------------------ #
10665# Determine libtool default behavior #
10666# ------------------------------------ #
10667
10668#
10669# Default behavior is to enable shared and static libraries on systems
10670# where libtool knows how to build both library versions, and does not
10671# require separate configuration and build runs for each flavor.
10672#
10673
10674xc_lt_want_enable_shared='yes'
10675xc_lt_want_enable_static='yes'
10676
10677#
10678# User may have disabled shared or static libraries.
10679#
10680case "x$enable_shared" in # (
10681 xno)
10682 xc_lt_want_enable_shared='no'
10683 ;;
10684esac
10685case "x$enable_static" in # (
10686 xno)
10687 xc_lt_want_enable_static='no'
10688 ;;
10689esac
10690if test "x$xc_lt_want_enable_shared" = 'xno' &&
10691 test "x$xc_lt_want_enable_static" = 'xno'; then
10692 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10693fi
10694
10695#
10696# Default behavior on systems that require independent configuration
10697# and build runs for shared and static is to enable shared libraries
10698# and disable static ones. On these systems option '--disable-shared'
10699# must be used in order to build a proper static library.
10700#
10701
10702if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10703 test "x$xc_lt_want_enable_static" = 'xyes'; then
10704 case $host_os in # (
10705 pw32* | cegcc* | os2* | aix*)
10706 xc_lt_want_enable_static='no'
10707 ;;
10708 esac
10709fi
10710
10711#
10712# Make libtool aware of current shared and static library preferences
10713# taking in account that, depending on host characteristics, libtool
10714# may modify these option preferences later in this configure script.
10715#
10716
10717enable_shared=$xc_lt_want_enable_shared
10718enable_static=$xc_lt_want_enable_static
10719
10720#
10721# Default behavior is to build PIC objects for shared libraries and
10722# non-PIC objects for static libraries.
10723#
10724
10725xc_lt_want_with_pic='default'
10726
10727#
10728# User may have specified PIC preference.
10729#
10730
10731case "x$with_pic" in # ((
10732 xno)
10733 xc_lt_want_with_pic='no'
10734 ;;
10735 xyes)
10736 xc_lt_want_with_pic='yes'
10737 ;;
10738esac
10739
10740#
10741# Default behavior on some systems where building a shared library out
10742# of non-PIC compiled objects will fail with following linker error
10743# "relocation R_X86_64_32 can not be used when making a shared object"
10744# is to build PIC objects even for static libraries. This behavior may
10745# be overridden using 'configure --disable-shared --without-pic'.
10746#
10747
10748if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10749 case $host_cpu in # (
10750 x86_64 | amd64 | ia64)
10751 case $host_os in # (
10752 linux* | freebsd*)
10753 xc_lt_want_with_pic='yes'
10754 ;;
10755 esac
10756 ;;
10757 esac
10758fi
10759
10760#
10761# Make libtool aware of current PIC preference taking in account that,
10762# depending on host characteristics, libtool may modify PIC default
10763# behavior to fit host system idiosyncrasies later in this script.
10764#
10765
10766with_pic=$xc_lt_want_with_pic
10767
10768## ----------------------- ##
10769## Start of libtool code ##
10770## ----------------------- ##
10771
10772
10773
10774
10775# Set options
10776enable_win32_dll=yes
10777
10778case $host in
10779*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10780 if test -n "$ac_tool_prefix"; then
10781 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10782set dummy ${ac_tool_prefix}as; ac_word=$2
10783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10784$as_echo_n "checking for $ac_word... " >&6; }
10785if ${ac_cv_prog_AS+:} false; then :
10786 $as_echo_n "(cached) " >&6
10787else
10788 if test -n "$AS"; then
10789 ac_cv_prog_AS="$AS" # Let the user override the test.
10790else
10791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792for as_dir in $PATH
10793do
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 ac_cv_prog_AS="${ac_tool_prefix}as"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10801 fi
10802done
10803 done
10804IFS=$as_save_IFS
10805
10806fi
10807fi
10808AS=$ac_cv_prog_AS
10809if test -n "$AS"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10811$as_echo "$AS" >&6; }
10812else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814$as_echo "no" >&6; }
10815fi
10816
10817
10818fi
10819if test -z "$ac_cv_prog_AS"; then
10820 ac_ct_AS=$AS
10821 # Extract the first word of "as", so it can be a program name with args.
10822set dummy as; ac_word=$2
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
10825if ${ac_cv_prog_ac_ct_AS+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827else
10828 if test -n "$ac_ct_AS"; then
10829 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10830else
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10838 ac_cv_prog_ac_ct_AS="as"
10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 break 2
10841 fi
10842done
10843 done
10844IFS=$as_save_IFS
10845
10846fi
10847fi
10848ac_ct_AS=$ac_cv_prog_ac_ct_AS
10849if test -n "$ac_ct_AS"; then
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10851$as_echo "$ac_ct_AS" >&6; }
10852else
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
10855fi
10856
10857 if test "x$ac_ct_AS" = x; then
10858 AS="false"
10859 else
10860 case $cross_compiling:$ac_tool_warned in
10861yes:)
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10864ac_tool_warned=yes ;;
10865esac
10866 AS=$ac_ct_AS
10867 fi
10868else
10869 AS="$ac_cv_prog_AS"
10870fi
10871
10872 if test -n "$ac_tool_prefix"; then
10873 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10874set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if ${ac_cv_prog_DLLTOOL+:} false; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$DLLTOOL"; then
10881 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10890 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895 done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900DLLTOOL=$ac_cv_prog_DLLTOOL
10901if test -n "$DLLTOOL"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10903$as_echo "$DLLTOOL" >&6; }
10904else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910fi
10911if test -z "$ac_cv_prog_DLLTOOL"; then
10912 ac_ct_DLLTOOL=$DLLTOOL
10913 # Extract the first word of "dlltool", so it can be a program name with args.
10914set dummy dlltool; ac_word=$2
10915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916$as_echo_n "checking for $ac_word... " >&6; }
10917if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10918 $as_echo_n "(cached) " >&6
10919else
10920 if test -n "$ac_ct_DLLTOOL"; then
10921 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10922else
10923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10924for as_dir in $PATH
10925do
10926 IFS=$as_save_IFS
10927 test -z "$as_dir" && as_dir=.
10928 for ac_exec_ext in '' $ac_executable_extensions; do
10929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10930 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10932 break 2
10933 fi
10934done
10935 done
10936IFS=$as_save_IFS
10937
10938fi
10939fi
10940ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10941if test -n "$ac_ct_DLLTOOL"; then
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10943$as_echo "$ac_ct_DLLTOOL" >&6; }
10944else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
10947fi
10948
10949 if test "x$ac_ct_DLLTOOL" = x; then
10950 DLLTOOL="false"
10951 else
10952 case $cross_compiling:$ac_tool_warned in
10953yes:)
10954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10956ac_tool_warned=yes ;;
10957esac
10958 DLLTOOL=$ac_ct_DLLTOOL
10959 fi
10960else
10961 DLLTOOL="$ac_cv_prog_DLLTOOL"
10962fi
10963
10964 if test -n "$ac_tool_prefix"; then
10965 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10966set dummy ${ac_tool_prefix}objdump; ac_word=$2
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968$as_echo_n "checking for $ac_word... " >&6; }
10969if ${ac_cv_prog_OBJDUMP+:} false; then :
10970 $as_echo_n "(cached) " >&6
10971else
10972 if test -n "$OBJDUMP"; then
10973 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987 done
10988IFS=$as_save_IFS
10989
10990fi
10991fi
10992OBJDUMP=$ac_cv_prog_OBJDUMP
10993if test -n "$OBJDUMP"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10995$as_echo "$OBJDUMP" >&6; }
10996else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998$as_echo "no" >&6; }
10999fi
11000
11001
11002fi
11003if test -z "$ac_cv_prog_OBJDUMP"; then
11004 ac_ct_OBJDUMP=$OBJDUMP
11005 # Extract the first word of "objdump", so it can be a program name with args.
11006set dummy objdump; ac_word=$2
11007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11008$as_echo_n "checking for $ac_word... " >&6; }
11009if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11010 $as_echo_n "(cached) " >&6
11011else
11012 if test -n "$ac_ct_OBJDUMP"; then
11013 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11014else
11015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11016for as_dir in $PATH
11017do
11018 IFS=$as_save_IFS
11019 test -z "$as_dir" && as_dir=.
11020 for ac_exec_ext in '' $ac_executable_extensions; do
11021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11022 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11024 break 2
11025 fi
11026done
11027 done
11028IFS=$as_save_IFS
11029
11030fi
11031fi
11032ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11033if test -n "$ac_ct_OBJDUMP"; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11035$as_echo "$ac_ct_OBJDUMP" >&6; }
11036else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
11039fi
11040
11041 if test "x$ac_ct_OBJDUMP" = x; then
11042 OBJDUMP="false"
11043 else
11044 case $cross_compiling:$ac_tool_warned in
11045yes:)
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11048ac_tool_warned=yes ;;
11049esac
11050 OBJDUMP=$ac_ct_OBJDUMP
11051 fi
11052else
11053 OBJDUMP="$ac_cv_prog_OBJDUMP"
11054fi
11055
11056 ;;
11057esac
11058
11059test -z "$AS" && AS=as
11060
11061
11062
11063
11064
11065test -z "$DLLTOOL" && DLLTOOL=dlltool
11066
11067
11068
11069
11070
11071test -z "$OBJDUMP" && OBJDUMP=objdump
11072
11073
11074
11075
11076
11077
11078
11079 enable_dlopen=no
11080
11081
11082
11083 # Check whether --enable-shared was given.
11084if test "${enable_shared+set}" = set; then :
11085 enableval=$enable_shared; p=${PACKAGE-default}
11086 case $enableval in
11087 yes) enable_shared=yes ;;
11088 no) enable_shared=no ;;
11089 *)
11090 enable_shared=no
11091 # Look at the argument we got. We use all the common list separators.
11092 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11093 for pkg in $enableval; do
11094 IFS=$lt_save_ifs
11095 if test "X$pkg" = "X$p"; then
11096 enable_shared=yes
11097 fi
11098 done
11099 IFS=$lt_save_ifs
11100 ;;
11101 esac
11102else
11103 enable_shared=yes
11104fi
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114 # Check whether --enable-static was given.
11115if test "${enable_static+set}" = set; then :
11116 enableval=$enable_static; p=${PACKAGE-default}
11117 case $enableval in
11118 yes) enable_static=yes ;;
11119 no) enable_static=no ;;
11120 *)
11121 enable_static=no
11122 # Look at the argument we got. We use all the common list separators.
11123 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11124 for pkg in $enableval; do
11125 IFS=$lt_save_ifs
11126 if test "X$pkg" = "X$p"; then
11127 enable_static=yes
11128 fi
11129 done
11130 IFS=$lt_save_ifs
11131 ;;
11132 esac
11133else
11134 enable_static=yes
11135fi
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146# Check whether --with-pic was given.
11147if test "${with_pic+set}" = set; then :
11148 withval=$with_pic; lt_p=${PACKAGE-default}
11149 case $withval in
11150 yes|no) pic_mode=$withval ;;
11151 *)
11152 pic_mode=default
11153 # Look at the argument we got. We use all the common list separators.
11154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11155 for lt_pkg in $withval; do
11156 IFS=$lt_save_ifs
11157 if test "X$lt_pkg" = "X$lt_p"; then
11158 pic_mode=yes
11159 fi
11160 done
11161 IFS=$lt_save_ifs
11162 ;;
11163 esac
11164else
11165 pic_mode=default
11166fi
11167
11168
11169
11170
11171
11172
11173
11174
11175 # Check whether --enable-fast-install was given.
11176if test "${enable_fast_install+set}" = set; then :
11177 enableval=$enable_fast_install; p=${PACKAGE-default}
11178 case $enableval in
11179 yes) enable_fast_install=yes ;;
11180 no) enable_fast_install=no ;;
11181 *)
11182 enable_fast_install=no
11183 # Look at the argument we got. We use all the common list separators.
11184 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11185 for pkg in $enableval; do
11186 IFS=$lt_save_ifs
11187 if test "X$pkg" = "X$p"; then
11188 enable_fast_install=yes
11189 fi
11190 done
11191 IFS=$lt_save_ifs
11192 ;;
11193 esac
11194else
11195 enable_fast_install=yes
11196fi
11197
11198
11199
11200
11201
11202
11203
11204
11205 shared_archive_member_spec=
11206case $host,$enable_shared in
11207power*-*-aix[5-9]*,yes)
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11209$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11210
11211# Check whether --with-aix-soname was given.
11212if test "${with_aix_soname+set}" = set; then :
11213 withval=$with_aix_soname; case $withval in
11214 aix|svr4|both)
11215 ;;
11216 *)
11217 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11218 ;;
11219 esac
11220 lt_cv_with_aix_soname=$with_aix_soname
11221else
11222 if ${lt_cv_with_aix_soname+:} false; then :
11223 $as_echo_n "(cached) " >&6
11224else
11225 lt_cv_with_aix_soname=aix
11226fi
11227
11228 with_aix_soname=$lt_cv_with_aix_soname
11229fi
11230
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11232$as_echo "$with_aix_soname" >&6; }
11233 if test aix != "$with_aix_soname"; then
11234 # For the AIX way of multilib, we name the shared archive member
11235 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11236 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11237 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11238 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11239 if test 64 = "${OBJECT_MODE-32}"; then
11240 shared_archive_member_spec=shr_64
11241 else
11242 shared_archive_member_spec=shr
11243 fi
11244 fi
11245 ;;
11246*)
11247 with_aix_soname=aix
11248 ;;
11249esac
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260# This can be used to rebuild libtool when needed
11261LIBTOOL_DEPS=$ltmain
11262
11263# Always use our own libtool.
11264LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
11290
11291
11292
11293
11294
11295test -z "$LN_S" && LN_S="ln -s"
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310if test -n "${ZSH_VERSION+set}"; then
11311 setopt NO_GLOB_SUBST
11312fi
11313
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11315$as_echo_n "checking for objdir... " >&6; }
11316if ${lt_cv_objdir+:} false; then :
11317 $as_echo_n "(cached) " >&6
11318else
11319 rm -f .libs 2>/dev/null
11320mkdir .libs 2>/dev/null
11321if test -d .libs; then
11322 lt_cv_objdir=.libs
11323else
11324 # MS-DOS does not allow filenames that begin with a dot.
11325 lt_cv_objdir=_libs
11326fi
11327rmdir .libs 2>/dev/null
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11330$as_echo "$lt_cv_objdir" >&6; }
11331objdir=$lt_cv_objdir
11332
11333
11334
11335
11336
11337cat >>confdefs.h <<_ACEOF
11338#define LT_OBJDIR "$lt_cv_objdir/"
11339_ACEOF
11340
11341
11342
11343
11344case $host_os in
11345aix3*)
11346 # AIX sometimes has problems with the GCC collect2 program. For some
11347 # reason, if we set the COLLECT_NAMES environment variable, the problems
11348 # vanish in a puff of smoke.
11349 if test set != "${COLLECT_NAMES+set}"; then
11350 COLLECT_NAMES=
11351 export COLLECT_NAMES
11352 fi
11353 ;;
11354esac
11355
11356# Global variables:
11357ofile=libtool
11358can_build_shared=yes
11359
11360# All known linkers require a '.a' archive for static linking (except MSVC,
11361# which needs '.lib').
11362libext=a
11363
11364with_gnu_ld=$lt_cv_prog_gnu_ld
11365
11366old_CC=$CC
11367old_CFLAGS=$CFLAGS
11368
11369# Set sane defaults for various variables
11370test -z "$CC" && CC=cc
11371test -z "$LTCC" && LTCC=$CC
11372test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11373test -z "$LD" && LD=ld
11374test -z "$ac_objext" && ac_objext=o
11375
11376func_cc_basename $compiler
11377cc_basename=$func_cc_basename_result
11378
11379
11380# Only perform the check for file, if the check method requires it
11381test -z "$MAGIC_CMD" && MAGIC_CMD=file
11382case $deplibs_check_method in
11383file_magic*)
11384 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11386$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11387if ${lt_cv_path_MAGIC_CMD+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389else
11390 case $MAGIC_CMD in
11391[\\/*] | ?:[\\/]*)
11392 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11393 ;;
11394*)
11395 lt_save_MAGIC_CMD=$MAGIC_CMD
11396 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11397 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11398 for ac_dir in $ac_dummy; do
11399 IFS=$lt_save_ifs
11400 test -z "$ac_dir" && ac_dir=.
11401 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11402 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11403 if test -n "$file_magic_test_file"; then
11404 case $deplibs_check_method in
11405 "file_magic "*)
11406 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11407 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11409 $EGREP "$file_magic_regex" > /dev/null; then
11410 :
11411 else
11412 cat <<_LT_EOF 1>&2
11413
11414*** Warning: the command libtool uses to detect shared libraries,
11415*** $file_magic_cmd, produces output that libtool cannot recognize.
11416*** The result is that libtool may fail to recognize shared libraries
11417*** as such. This will affect the creation of libtool libraries that
11418*** depend on shared libraries, but programs linked with such libtool
11419*** libraries will work regardless of this problem. Nevertheless, you
11420*** may want to report the problem to your system manager and/or to
11421*** bug-libtool@gnu.org
11422
11423_LT_EOF
11424 fi ;;
11425 esac
11426 fi
11427 break
11428 fi
11429 done
11430 IFS=$lt_save_ifs
11431 MAGIC_CMD=$lt_save_MAGIC_CMD
11432 ;;
11433esac
11434fi
11435
11436MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11437if test -n "$MAGIC_CMD"; then
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11439$as_echo "$MAGIC_CMD" >&6; }
11440else
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
11443fi
11444
11445
11446
11447
11448
11449if test -z "$lt_cv_path_MAGIC_CMD"; then
11450 if test -n "$ac_tool_prefix"; then
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11452$as_echo_n "checking for file... " >&6; }
11453if ${lt_cv_path_MAGIC_CMD+:} false; then :
11454 $as_echo_n "(cached) " >&6
11455else
11456 case $MAGIC_CMD in
11457[\\/*] | ?:[\\/]*)
11458 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11459 ;;
11460*)
11461 lt_save_MAGIC_CMD=$MAGIC_CMD
11462 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11463 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11464 for ac_dir in $ac_dummy; do
11465 IFS=$lt_save_ifs
11466 test -z "$ac_dir" && ac_dir=.
11467 if test -f "$ac_dir/file"; then
11468 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11469 if test -n "$file_magic_test_file"; then
11470 case $deplibs_check_method in
11471 "file_magic "*)
11472 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11473 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11474 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11475 $EGREP "$file_magic_regex" > /dev/null; then
11476 :
11477 else
11478 cat <<_LT_EOF 1>&2
11479
11480*** Warning: the command libtool uses to detect shared libraries,
11481*** $file_magic_cmd, produces output that libtool cannot recognize.
11482*** The result is that libtool may fail to recognize shared libraries
11483*** as such. This will affect the creation of libtool libraries that
11484*** depend on shared libraries, but programs linked with such libtool
11485*** libraries will work regardless of this problem. Nevertheless, you
11486*** may want to report the problem to your system manager and/or to
11487*** bug-libtool@gnu.org
11488
11489_LT_EOF
11490 fi ;;
11491 esac
11492 fi
11493 break
11494 fi
11495 done
11496 IFS=$lt_save_ifs
11497 MAGIC_CMD=$lt_save_MAGIC_CMD
11498 ;;
11499esac
11500fi
11501
11502MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11503if test -n "$MAGIC_CMD"; then
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11505$as_echo "$MAGIC_CMD" >&6; }
11506else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508$as_echo "no" >&6; }
11509fi
11510
11511
11512 else
11513 MAGIC_CMD=:
11514 fi
11515fi
11516
11517 fi
11518 ;;
11519esac
11520
11521# Use C for the default configuration in the libtool script
11522
11523lt_save_CC=$CC
11524ac_ext=c
11525ac_cpp='$CPP $CPPFLAGS'
11526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528ac_compiler_gnu=$ac_cv_c_compiler_gnu
11529
11530
11531# Source file extension for C test sources.
11532ac_ext=c
11533
11534# Object file extension for compiled C test sources.
11535objext=o
11536objext=$objext
11537
11538# Code to be used in simple compile tests
11539lt_simple_compile_test_code="int some_variable = 0;"
11540
11541# Code to be used in simple link tests
11542lt_simple_link_test_code='int main(){return(0);}'
11543
11544
11545
11546
11547
11548
11549
11550# If no C compiler was specified, use CC.
11551LTCC=${LTCC-"$CC"}
11552
11553# If no C compiler flags were specified, use CFLAGS.
11554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11555
11556# Allow CC to be a program name with arguments.
11557compiler=$CC
11558
11559# Save the default compiler, since it gets overwritten when the other
11560# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11561compiler_DEFAULT=$CC
11562
11563# save warnings/boilerplate of simple test code
11564ac_outfile=conftest.$ac_objext
11565echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11566eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11567_lt_compiler_boilerplate=`cat conftest.err`
11568$RM conftest*
11569
11570ac_outfile=conftest.$ac_objext
11571echo "$lt_simple_link_test_code" >conftest.$ac_ext
11572eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11573_lt_linker_boilerplate=`cat conftest.err`
11574$RM -r conftest*
11575
11576
11577## CAVEAT EMPTOR:
11578## There is no encapsulation within the following macros, do not change
11579## the running order or otherwise move them around unless you know exactly
11580## what you are doing...
11581if test -n "$compiler"; then
11582
11583lt_prog_compiler_no_builtin_flag=
11584
11585if test yes = "$GCC"; then
11586 case $cc_basename in
11587 nvcc*)
11588 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11589 *)
11590 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11591 esac
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11594$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11595if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 lt_cv_prog_compiler_rtti_exceptions=no
11599 ac_outfile=conftest.$ac_objext
11600 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11601 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11602 # Insert the option either (1) after the last *FLAGS variable, or
11603 # (2) before a word containing "conftest.", or (3) at the end.
11604 # Note that $ac_compile itself does not contain backslashes and begins
11605 # with a dollar sign (not a hyphen), so the echo should work correctly.
11606 # The option is referenced via a variable to avoid confusing sed.
11607 lt_compile=`echo "$ac_compile" | $SED \
11608 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11609 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11610 -e 's:$: $lt_compiler_flag:'`
11611 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11612 (eval "$lt_compile" 2>conftest.err)
11613 ac_status=$?
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 if (exit $ac_status) && test -s "$ac_outfile"; then
11617 # The compiler can only warn and ignore the option if not recognized
11618 # So say no if there are warnings other than the usual output.
11619 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11620 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11621 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11622 lt_cv_prog_compiler_rtti_exceptions=yes
11623 fi
11624 fi
11625 $RM conftest*
11626
11627fi
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11629$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11630
11631if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11632 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11633else
11634 :
11635fi
11636
11637fi
11638
11639
11640
11641
11642
11643
11644 lt_prog_compiler_wl=
11645lt_prog_compiler_pic=
11646lt_prog_compiler_static=
11647
11648
11649 if test yes = "$GCC"; then
11650 lt_prog_compiler_wl='-Wl,'
11651 lt_prog_compiler_static='-static'
11652
11653 case $host_os in
11654 aix*)
11655 # All AIX code is PIC.
11656 if test ia64 = "$host_cpu"; then
11657 # AIX 5 now supports IA64 processor
11658 lt_prog_compiler_static='-Bstatic'
11659 fi
11660 lt_prog_compiler_pic='-fPIC'
11661 ;;
11662
11663 amigaos*)
11664 case $host_cpu in
11665 powerpc)
11666 # see comment about AmigaOS4 .so support
11667 lt_prog_compiler_pic='-fPIC'
11668 ;;
11669 m68k)
11670 # FIXME: we need at least 68020 code to build shared libraries, but
11671 # adding the '-m68020' flag to GCC prevents building anything better,
11672 # like '-m68040'.
11673 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11674 ;;
11675 esac
11676 ;;
11677
11678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11679 # PIC is the default for these OSes.
11680 ;;
11681
11682 mingw* | cygwin* | pw32* | os2* | cegcc*)
11683 # This hack is so that the source file can tell whether it is being
11684 # built for inclusion in a dll (and should export symbols for example).
11685 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11686 # (--disable-auto-import) libraries
11687 lt_prog_compiler_pic='-DDLL_EXPORT'
11688 case $host_os in
11689 os2*)
11690 lt_prog_compiler_static='$wl-static'
11691 ;;
11692 esac
11693 ;;
11694
11695 darwin* | rhapsody*)
11696 # PIC is the default on this platform
11697 # Common symbols not allowed in MH_DYLIB files
11698 lt_prog_compiler_pic='-fno-common'
11699 ;;
11700
11701 haiku*)
11702 # PIC is the default for Haiku.
11703 # The "-static" flag exists, but is broken.
11704 lt_prog_compiler_static=
11705 ;;
11706
11707 hpux*)
11708 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11709 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11710 # sets the default TLS model and affects inlining.
11711 case $host_cpu in
11712 hppa*64*)
11713 # +Z the default
11714 ;;
11715 *)
11716 lt_prog_compiler_pic='-fPIC'
11717 ;;
11718 esac
11719 ;;
11720
11721 interix[3-9]*)
11722 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11723 # Instead, we relocate shared libraries at runtime.
11724 ;;
11725
11726 msdosdjgpp*)
11727 # Just because we use GCC doesn't mean we suddenly get shared libraries
11728 # on systems that don't support them.
11729 lt_prog_compiler_can_build_shared=no
11730 enable_shared=no
11731 ;;
11732
11733 *nto* | *qnx*)
11734 # QNX uses GNU C++, but need to define -shared option too, otherwise
11735 # it will coredump.
11736 lt_prog_compiler_pic='-fPIC -shared'
11737 ;;
11738
11739 sysv4*MP*)
11740 if test -d /usr/nec; then
11741 lt_prog_compiler_pic=-Kconform_pic
11742 fi
11743 ;;
11744
11745 *)
11746 lt_prog_compiler_pic='-fPIC'
11747 ;;
11748 esac
11749
11750 case $cc_basename in
11751 nvcc*) # Cuda Compiler Driver 2.2
11752 lt_prog_compiler_wl='-Xlinker '
11753 if test -n "$lt_prog_compiler_pic"; then
11754 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11755 fi
11756 ;;
11757 esac
11758 else
11759 # PORTME Check for flag to pass linker flags through the system compiler.
11760 case $host_os in
11761 aix*)
11762 lt_prog_compiler_wl='-Wl,'
11763 if test ia64 = "$host_cpu"; then
11764 # AIX 5 now supports IA64 processor
11765 lt_prog_compiler_static='-Bstatic'
11766 else
11767 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11768 fi
11769 ;;
11770
11771 darwin* | rhapsody*)
11772 # PIC is the default on this platform
11773 # Common symbols not allowed in MH_DYLIB files
11774 lt_prog_compiler_pic='-fno-common'
11775 case $cc_basename in
11776 nagfor*)
11777 # NAG Fortran compiler
11778 lt_prog_compiler_wl='-Wl,-Wl,,'
11779 lt_prog_compiler_pic='-PIC'
11780 lt_prog_compiler_static='-Bstatic'
11781 ;;
11782 esac
11783 ;;
11784
11785 mingw* | cygwin* | pw32* | os2* | cegcc*)
11786 # This hack is so that the source file can tell whether it is being
11787 # built for inclusion in a dll (and should export symbols for example).
11788 lt_prog_compiler_pic='-DDLL_EXPORT'
11789 case $host_os in
11790 os2*)
11791 lt_prog_compiler_static='$wl-static'
11792 ;;
11793 esac
11794 ;;
11795
11796 hpux9* | hpux10* | hpux11*)
11797 lt_prog_compiler_wl='-Wl,'
11798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11799 # not for PA HP-UX.
11800 case $host_cpu in
11801 hppa*64*|ia64*)
11802 # +Z the default
11803 ;;
11804 *)
11805 lt_prog_compiler_pic='+Z'
11806 ;;
11807 esac
11808 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11809 lt_prog_compiler_static='$wl-a ${wl}archive'
11810 ;;
11811
11812 irix5* | irix6* | nonstopux*)
11813 lt_prog_compiler_wl='-Wl,'
11814 # PIC (with -KPIC) is the default.
11815 lt_prog_compiler_static='-non_shared'
11816 ;;
11817
11818 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11819 case $cc_basename in
11820 # old Intel for x86_64, which still supported -KPIC.
11821 ecc*)
11822 lt_prog_compiler_wl='-Wl,'
11823 lt_prog_compiler_pic='-KPIC'
11824 lt_prog_compiler_static='-static'
11825 ;;
11826 # icc used to be incompatible with GCC.
11827 # ICC 10 doesn't accept -KPIC any more.
11828 icc* | ifort*)
11829 lt_prog_compiler_wl='-Wl,'
11830 lt_prog_compiler_pic='-fPIC'
11831 lt_prog_compiler_static='-static'
11832 ;;
11833 # Lahey Fortran 8.1.
11834 lf95*)
11835 lt_prog_compiler_wl='-Wl,'
11836 lt_prog_compiler_pic='--shared'
11837 lt_prog_compiler_static='--static'
11838 ;;
11839 nagfor*)
11840 # NAG Fortran compiler
11841 lt_prog_compiler_wl='-Wl,-Wl,,'
11842 lt_prog_compiler_pic='-PIC'
11843 lt_prog_compiler_static='-Bstatic'
11844 ;;
11845 tcc*)
11846 # Fabrice Bellard et al's Tiny C Compiler
11847 lt_prog_compiler_wl='-Wl,'
11848 lt_prog_compiler_pic='-fPIC'
11849 lt_prog_compiler_static='-static'
11850 ;;
11851 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11852 # Portland Group compilers (*not* the Pentium gcc compiler,
11853 # which looks to be a dead project)
11854 lt_prog_compiler_wl='-Wl,'
11855 lt_prog_compiler_pic='-fpic'
11856 lt_prog_compiler_static='-Bstatic'
11857 ;;
11858 ccc*)
11859 lt_prog_compiler_wl='-Wl,'
11860 # All Alpha code is PIC.
11861 lt_prog_compiler_static='-non_shared'
11862 ;;
11863 xl* | bgxl* | bgf* | mpixl*)
11864 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11865 lt_prog_compiler_wl='-Wl,'
11866 lt_prog_compiler_pic='-qpic'
11867 lt_prog_compiler_static='-qstaticlink'
11868 ;;
11869 *)
11870 case `$CC -V 2>&1 | sed 5q` in
11871 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11872 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11873 lt_prog_compiler_pic='-KPIC'
11874 lt_prog_compiler_static='-Bstatic'
11875 lt_prog_compiler_wl=''
11876 ;;
11877 *Sun\ F* | *Sun*Fortran*)
11878 lt_prog_compiler_pic='-KPIC'
11879 lt_prog_compiler_static='-Bstatic'
11880 lt_prog_compiler_wl='-Qoption ld '
11881 ;;
11882 *Sun\ C*)
11883 # Sun C 5.9
11884 lt_prog_compiler_pic='-KPIC'
11885 lt_prog_compiler_static='-Bstatic'
11886 lt_prog_compiler_wl='-Wl,'
11887 ;;
11888 *Intel*\ [CF]*Compiler*)
11889 lt_prog_compiler_wl='-Wl,'
11890 lt_prog_compiler_pic='-fPIC'
11891 lt_prog_compiler_static='-static'
11892 ;;
11893 *Portland\ Group*)
11894 lt_prog_compiler_wl='-Wl,'
11895 lt_prog_compiler_pic='-fpic'
11896 lt_prog_compiler_static='-Bstatic'
11897 ;;
11898 esac
11899 ;;
11900 esac
11901 ;;
11902
11903 newsos6)
11904 lt_prog_compiler_pic='-KPIC'
11905 lt_prog_compiler_static='-Bstatic'
11906 ;;
11907
11908 *nto* | *qnx*)
11909 # QNX uses GNU C++, but need to define -shared option too, otherwise
11910 # it will coredump.
11911 lt_prog_compiler_pic='-fPIC -shared'
11912 ;;
11913
11914 osf3* | osf4* | osf5*)
11915 lt_prog_compiler_wl='-Wl,'
11916 # All OSF/1 code is PIC.
11917 lt_prog_compiler_static='-non_shared'
11918 ;;
11919
11920 rdos*)
11921 lt_prog_compiler_static='-non_shared'
11922 ;;
11923
11924 solaris*)
11925 lt_prog_compiler_pic='-KPIC'
11926 lt_prog_compiler_static='-Bstatic'
11927 case $cc_basename in
11928 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11929 lt_prog_compiler_wl='-Qoption ld ';;
11930 *)
11931 lt_prog_compiler_wl='-Wl,';;
11932 esac
11933 ;;
11934
11935 sunos4*)
11936 lt_prog_compiler_wl='-Qoption ld '
11937 lt_prog_compiler_pic='-PIC'
11938 lt_prog_compiler_static='-Bstatic'
11939 ;;
11940
11941 sysv4 | sysv4.2uw2* | sysv4.3*)
11942 lt_prog_compiler_wl='-Wl,'
11943 lt_prog_compiler_pic='-KPIC'
11944 lt_prog_compiler_static='-Bstatic'
11945 ;;
11946
11947 sysv4*MP*)
11948 if test -d /usr/nec; then
11949 lt_prog_compiler_pic='-Kconform_pic'
11950 lt_prog_compiler_static='-Bstatic'
11951 fi
11952 ;;
11953
11954 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-KPIC'
11957 lt_prog_compiler_static='-Bstatic'
11958 ;;
11959
11960 unicos*)
11961 lt_prog_compiler_wl='-Wl,'
11962 lt_prog_compiler_can_build_shared=no
11963 ;;
11964
11965 uts4*)
11966 lt_prog_compiler_pic='-pic'
11967 lt_prog_compiler_static='-Bstatic'
11968 ;;
11969
11970 *)
11971 lt_prog_compiler_can_build_shared=no
11972 ;;
11973 esac
11974 fi
11975
11976case $host_os in
11977 # For platforms that do not support PIC, -DPIC is meaningless:
11978 *djgpp*)
11979 lt_prog_compiler_pic=
11980 ;;
11981 *)
11982 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11983 ;;
11984esac
11985
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11987$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11988if ${lt_cv_prog_compiler_pic+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990else
11991 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11994$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11995lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11996
11997#
11998# Check to make sure the PIC flag actually works.
11999#
12000if test -n "$lt_prog_compiler_pic"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12002$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12003if ${lt_cv_prog_compiler_pic_works+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005else
12006 lt_cv_prog_compiler_pic_works=no
12007 ac_outfile=conftest.$ac_objext
12008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12010 # Insert the option either (1) after the last *FLAGS variable, or
12011 # (2) before a word containing "conftest.", or (3) at the end.
12012 # Note that $ac_compile itself does not contain backslashes and begins
12013 # with a dollar sign (not a hyphen), so the echo should work correctly.
12014 # The option is referenced via a variable to avoid confusing sed.
12015 lt_compile=`echo "$ac_compile" | $SED \
12016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12018 -e 's:$: $lt_compiler_flag:'`
12019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12020 (eval "$lt_compile" 2>conftest.err)
12021 ac_status=$?
12022 cat conftest.err >&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 if (exit $ac_status) && test -s "$ac_outfile"; then
12025 # The compiler can only warn and ignore the option if not recognized
12026 # So say no if there are warnings other than the usual output.
12027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12030 lt_cv_prog_compiler_pic_works=yes
12031 fi
12032 fi
12033 $RM conftest*
12034
12035fi
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12037$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12038
12039if test yes = "$lt_cv_prog_compiler_pic_works"; then
12040 case $lt_prog_compiler_pic in
12041 "" | " "*) ;;
12042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12043 esac
12044else
12045 lt_prog_compiler_pic=
12046 lt_prog_compiler_can_build_shared=no
12047fi
12048
12049fi
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061#
12062# Check to make sure the static flag actually works.
12063#
12064wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12066$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12067if ${lt_cv_prog_compiler_static_works+:} false; then :
12068 $as_echo_n "(cached) " >&6
12069else
12070 lt_cv_prog_compiler_static_works=no
12071 save_LDFLAGS=$LDFLAGS
12072 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12073 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12074 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12075 # The linker can only warn and ignore the option if not recognized
12076 # So say no if there are warnings
12077 if test -s conftest.err; then
12078 # Append any errors to the config.log.
12079 cat conftest.err 1>&5
12080 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12082 if diff conftest.exp conftest.er2 >/dev/null; then
12083 lt_cv_prog_compiler_static_works=yes
12084 fi
12085 else
12086 lt_cv_prog_compiler_static_works=yes
12087 fi
12088 fi
12089 $RM -r conftest*
12090 LDFLAGS=$save_LDFLAGS
12091
12092fi
12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12094$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12095
12096if test yes = "$lt_cv_prog_compiler_static_works"; then
12097 :
12098else
12099 lt_prog_compiler_static=
12100fi
12101
12102
12103
12104
12105
12106
12107
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12109$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12110if ${lt_cv_prog_compiler_c_o+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112else
12113 lt_cv_prog_compiler_c_o=no
12114 $RM -r conftest 2>/dev/null
12115 mkdir conftest
12116 cd conftest
12117 mkdir out
12118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12119
12120 lt_compiler_flag="-o out/conftest2.$ac_objext"
12121 # Insert the option either (1) after the last *FLAGS variable, or
12122 # (2) before a word containing "conftest.", or (3) at the end.
12123 # Note that $ac_compile itself does not contain backslashes and begins
12124 # with a dollar sign (not a hyphen), so the echo should work correctly.
12125 lt_compile=`echo "$ac_compile" | $SED \
12126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12128 -e 's:$: $lt_compiler_flag:'`
12129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12130 (eval "$lt_compile" 2>out/conftest.err)
12131 ac_status=$?
12132 cat out/conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12135 then
12136 # The compiler can only warn and ignore the option if not recognized
12137 # So say no if there are warnings
12138 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12139 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12140 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12141 lt_cv_prog_compiler_c_o=yes
12142 fi
12143 fi
12144 chmod u+w . 2>&5
12145 $RM conftest*
12146 # SGI C++ compiler will create directory out/ii_files/ for
12147 # template instantiation
12148 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12149 $RM out/* && rmdir out
12150 cd ..
12151 $RM -r conftest
12152 $RM conftest*
12153
12154fi
12155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12156$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12157
12158
12159
12160
12161
12162
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12164$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12165if ${lt_cv_prog_compiler_c_o+:} false; then :
12166 $as_echo_n "(cached) " >&6
12167else
12168 lt_cv_prog_compiler_c_o=no
12169 $RM -r conftest 2>/dev/null
12170 mkdir conftest
12171 cd conftest
12172 mkdir out
12173 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12174
12175 lt_compiler_flag="-o out/conftest2.$ac_objext"
12176 # Insert the option either (1) after the last *FLAGS variable, or
12177 # (2) before a word containing "conftest.", or (3) at the end.
12178 # Note that $ac_compile itself does not contain backslashes and begins
12179 # with a dollar sign (not a hyphen), so the echo should work correctly.
12180 lt_compile=`echo "$ac_compile" | $SED \
12181 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12183 -e 's:$: $lt_compiler_flag:'`
12184 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12185 (eval "$lt_compile" 2>out/conftest.err)
12186 ac_status=$?
12187 cat out/conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12190 then
12191 # The compiler can only warn and ignore the option if not recognized
12192 # So say no if there are warnings
12193 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12194 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12195 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12196 lt_cv_prog_compiler_c_o=yes
12197 fi
12198 fi
12199 chmod u+w . 2>&5
12200 $RM conftest*
12201 # SGI C++ compiler will create directory out/ii_files/ for
12202 # template instantiation
12203 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12204 $RM out/* && rmdir out
12205 cd ..
12206 $RM -r conftest
12207 $RM conftest*
12208
12209fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12211$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12212
12213
12214
12215
12216hard_links=nottested
12217if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12218 # do not overwrite the value of need_locks provided by the user
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12220$as_echo_n "checking if we can lock with hard links... " >&6; }
12221 hard_links=yes
12222 $RM conftest*
12223 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12224 touch conftest.a
12225 ln conftest.a conftest.b 2>&5 || hard_links=no
12226 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12228$as_echo "$hard_links" >&6; }
12229 if test no = "$hard_links"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12231$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12232 need_locks=warn
12233 fi
12234else
12235 need_locks=no
12236fi
12237
12238
12239
12240
12241
12242
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12244$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12245
12246 runpath_var=
12247 allow_undefined_flag=
12248 always_export_symbols=no
12249 archive_cmds=
12250 archive_expsym_cmds=
12251 compiler_needs_object=no
12252 enable_shared_with_static_runtimes=no
12253 export_dynamic_flag_spec=
12254 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12255 hardcode_automatic=no
12256 hardcode_direct=no
12257 hardcode_direct_absolute=no
12258 hardcode_libdir_flag_spec=
12259 hardcode_libdir_separator=
12260 hardcode_minus_L=no
12261 hardcode_shlibpath_var=unsupported
12262 inherit_rpath=no
12263 link_all_deplibs=unknown
12264 module_cmds=
12265 module_expsym_cmds=
12266 old_archive_from_new_cmds=
12267 old_archive_from_expsyms_cmds=
12268 thread_safe_flag_spec=
12269 whole_archive_flag_spec=
12270 # include_expsyms should be a list of space-separated symbols to be *always*
12271 # included in the symbol list
12272 include_expsyms=
12273 # exclude_expsyms can be an extended regexp of symbols to exclude
12274 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12275 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12276 # as well as any symbol that contains 'd'.
12277 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12279 # platforms (ab)use it in PIC code, but their linkers get confused if
12280 # the symbol is explicitly referenced. Since portable code cannot
12281 # rely on this symbol name, it's probably fine to never include it in
12282 # preloaded symbol tables.
12283 # Exclude shared library initialization/finalization symbols.
12284 extract_expsyms_cmds=
12285
12286 case $host_os in
12287 cygwin* | mingw* | pw32* | cegcc*)
12288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12289 # When not using gcc, we currently assume that we are using
12290 # Microsoft Visual C++.
12291 if test yes != "$GCC"; then
12292 with_gnu_ld=no
12293 fi
12294 ;;
12295 interix*)
12296 # we just hope/assume this is gcc and not c89 (= MSVC++)
12297 with_gnu_ld=yes
12298 ;;
12299 openbsd* | bitrig*)
12300 with_gnu_ld=no
12301 ;;
12302 linux* | k*bsd*-gnu | gnu*)
12303 link_all_deplibs=no
12304 ;;
12305 esac
12306
12307 ld_shlibs=yes
12308
12309 # On some targets, GNU ld is compatible enough with the native linker
12310 # that we're better off using the native interface for both.
12311 lt_use_gnu_ld_interface=no
12312 if test yes = "$with_gnu_ld"; then
12313 case $host_os in
12314 aix*)
12315 # The AIX port of GNU ld has always aspired to compatibility
12316 # with the native linker. However, as the warning in the GNU ld
12317 # block says, versions before 2.19.5* couldn't really create working
12318 # shared libraries, regardless of the interface used.
12319 case `$LD -v 2>&1` in
12320 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12321 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12322 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12323 *)
12324 lt_use_gnu_ld_interface=yes
12325 ;;
12326 esac
12327 ;;
12328 *)
12329 lt_use_gnu_ld_interface=yes
12330 ;;
12331 esac
12332 fi
12333
12334 if test yes = "$lt_use_gnu_ld_interface"; then
12335 # If archive_cmds runs LD, not CC, wlarc should be empty
12336 wlarc='$wl'
12337
12338 # Set some defaults for GNU ld with shared library support. These
12339 # are reset later if shared libraries are not supported. Putting them
12340 # here allows them to be overridden if necessary.
12341 runpath_var=LD_RUN_PATH
12342 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12343 export_dynamic_flag_spec='$wl--export-dynamic'
12344 # ancient GNU ld didn't support --whole-archive et. al.
12345 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12346 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12347 else
12348 whole_archive_flag_spec=
12349 fi
12350 supports_anon_versioning=no
12351 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12352 *GNU\ gold*) supports_anon_versioning=yes ;;
12353 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12354 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12355 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12356 *\ 2.11.*) ;; # other 2.11 versions
12357 *) supports_anon_versioning=yes ;;
12358 esac
12359
12360 # See if GNU ld supports shared libraries.
12361 case $host_os in
12362 aix[3-9]*)
12363 # On AIX/PPC, the GNU linker is very broken
12364 if test ia64 != "$host_cpu"; then
12365 ld_shlibs=no
12366 cat <<_LT_EOF 1>&2
12367
12368*** Warning: the GNU linker, at least up to release 2.19, is reported
12369*** to be unable to reliably create shared libraries on AIX.
12370*** Therefore, libtool is disabling shared libraries support. If you
12371*** really care for shared libraries, you may want to install binutils
12372*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12373*** You will then need to restart the configuration process.
12374
12375_LT_EOF
12376 fi
12377 ;;
12378
12379 amigaos*)
12380 case $host_cpu in
12381 powerpc)
12382 # see comment about AmigaOS4 .so support
12383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12384 archive_expsym_cmds=''
12385 ;;
12386 m68k)
12387 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)'
12388 hardcode_libdir_flag_spec='-L$libdir'
12389 hardcode_minus_L=yes
12390 ;;
12391 esac
12392 ;;
12393
12394 beos*)
12395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12396 allow_undefined_flag=unsupported
12397 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12398 # support --undefined. This deserves some investigation. FIXME
12399 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12400 else
12401 ld_shlibs=no
12402 fi
12403 ;;
12404
12405 cygwin* | mingw* | pw32* | cegcc*)
12406 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12407 # as there is no search path for DLLs.
12408 hardcode_libdir_flag_spec='-L$libdir'
12409 export_dynamic_flag_spec='$wl--export-all-symbols'
12410 allow_undefined_flag=unsupported
12411 always_export_symbols=no
12412 enable_shared_with_static_runtimes=yes
12413 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'
12414 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12415
12416 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12418 # If the export-symbols file already is a .def file, use it as
12419 # is; otherwise, prepend EXPORTS...
12420 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12421 cp $export_symbols $output_objdir/$soname.def;
12422 else
12423 echo EXPORTS > $output_objdir/$soname.def;
12424 cat $export_symbols >> $output_objdir/$soname.def;
12425 fi~
12426 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12427 else
12428 ld_shlibs=no
12429 fi
12430 ;;
12431
12432 haiku*)
12433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12434 link_all_deplibs=yes
12435 ;;
12436
12437 os2*)
12438 hardcode_libdir_flag_spec='-L$libdir'
12439 hardcode_minus_L=yes
12440 allow_undefined_flag=unsupported
12441 shrext_cmds=.dll
12442 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12443 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12444 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12445 $ECHO EXPORTS >> $output_objdir/$libname.def~
12446 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12447 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12448 emximp -o $lib $output_objdir/$libname.def'
12449 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12450 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12451 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12452 $ECHO EXPORTS >> $output_objdir/$libname.def~
12453 prefix_cmds="$SED"~
12454 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12455 prefix_cmds="$prefix_cmds -e 1d";
12456 fi~
12457 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12458 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12459 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12460 emximp -o $lib $output_objdir/$libname.def'
12461 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12462 enable_shared_with_static_runtimes=yes
12463 ;;
12464
12465 interix[3-9]*)
12466 hardcode_direct=no
12467 hardcode_shlibpath_var=no
12468 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12469 export_dynamic_flag_spec='$wl-E'
12470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12471 # Instead, shared libraries are loaded at an image base (0x10000000 by
12472 # default) and relocated if they conflict, which is a slow very memory
12473 # consuming and fragmenting process. To avoid this, we pick a random,
12474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12477 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'
12478 ;;
12479
12480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12481 tmp_diet=no
12482 if test linux-dietlibc = "$host_os"; then
12483 case $cc_basename in
12484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12485 esac
12486 fi
12487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12488 && test no = "$tmp_diet"
12489 then
12490 tmp_addflag=' $pic_flag'
12491 tmp_sharedflag='-shared'
12492 case $cc_basename,$host_cpu in
12493 pgcc*) # Portland Group C compiler
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'
12496 ;;
12497 pgf77* | pgf90* | pgf95* | pgfortran*)
12498 # Portland Group f77 and f90 compilers
12499 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'
12500 tmp_addflag=' $pic_flag -Mnomain' ;;
12501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12502 tmp_addflag=' -i_dynamic' ;;
12503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12504 tmp_addflag=' -i_dynamic -nofor_main' ;;
12505 ifc* | ifort*) # Intel Fortran compiler
12506 tmp_addflag=' -nofor_main' ;;
12507 lf95*) # Lahey Fortran 8.1
12508 whole_archive_flag_spec=
12509 tmp_sharedflag='--shared' ;;
12510 nagfor*) # NAGFOR 5.3
12511 tmp_sharedflag='-Wl,-shared' ;;
12512 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12513 tmp_sharedflag='-qmkshrobj'
12514 tmp_addflag= ;;
12515 nvcc*) # Cuda Compiler Driver 2.2
12516 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'
12517 compiler_needs_object=yes
12518 ;;
12519 esac
12520 case `$CC -V 2>&1 | sed 5q` in
12521 *Sun\ C*) # Sun C 5.9
12522 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'
12523 compiler_needs_object=yes
12524 tmp_sharedflag='-G' ;;
12525 *Sun\ F*) # Sun Fortran 8.3
12526 tmp_sharedflag='-G' ;;
12527 esac
12528 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12529
12530 if test yes = "$supports_anon_versioning"; then
12531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12533 echo "local: *; };" >> $output_objdir/$libname.ver~
12534 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12535 fi
12536
12537 case $cc_basename in
12538 tcc*)
12539 export_dynamic_flag_spec='-rdynamic'
12540 ;;
12541 xlf* | bgf* | bgxlf* | mpixlf*)
12542 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12543 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12545 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12546 if test yes = "$supports_anon_versioning"; then
12547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12549 echo "local: *; };" >> $output_objdir/$libname.ver~
12550 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12551 fi
12552 ;;
12553 esac
12554 else
12555 ld_shlibs=no
12556 fi
12557 ;;
12558
12559 netbsd* | netbsdelf*-gnu)
12560 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12561 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12562 wlarc=
12563 else
12564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12565 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12566 fi
12567 ;;
12568
12569 solaris*)
12570 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12571 ld_shlibs=no
12572 cat <<_LT_EOF 1>&2
12573
12574*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12575*** create shared libraries on Solaris systems. Therefore, libtool
12576*** is disabling shared libraries support. We urge you to upgrade GNU
12577*** binutils to release 2.9.1 or newer. Another option is to modify
12578*** your PATH or compiler configuration so that the native linker is
12579*** used, and then restart.
12580
12581_LT_EOF
12582 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12583 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12584 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12585 else
12586 ld_shlibs=no
12587 fi
12588 ;;
12589
12590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12591 case `$LD -v 2>&1` in
12592 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12593 ld_shlibs=no
12594 cat <<_LT_EOF 1>&2
12595
12596*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12597*** reliably create shared libraries on SCO systems. Therefore, libtool
12598*** is disabling shared libraries support. We urge you to upgrade GNU
12599*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12600*** your PATH or compiler configuration so that the native linker is
12601*** used, and then restart.
12602
12603_LT_EOF
12604 ;;
12605 *)
12606 # For security reasons, it is highly recommended that you always
12607 # use absolute paths for naming shared libraries, and exclude the
12608 # DT_RUNPATH tag from executables and libraries. But doing so
12609 # requires that you compile everything twice, which is a pain.
12610 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12613 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12614 else
12615 ld_shlibs=no
12616 fi
12617 ;;
12618 esac
12619 ;;
12620
12621 sunos4*)
12622 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12623 wlarc=
12624 hardcode_direct=yes
12625 hardcode_shlibpath_var=no
12626 ;;
12627
12628 *)
12629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12632 else
12633 ld_shlibs=no
12634 fi
12635 ;;
12636 esac
12637
12638 if test no = "$ld_shlibs"; then
12639 runpath_var=
12640 hardcode_libdir_flag_spec=
12641 export_dynamic_flag_spec=
12642 whole_archive_flag_spec=
12643 fi
12644 else
12645 # PORTME fill in a description of your system's linker (not GNU ld)
12646 case $host_os in
12647 aix3*)
12648 allow_undefined_flag=unsupported
12649 always_export_symbols=yes
12650 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'
12651 # Note: this linker hardcodes the directories in LIBPATH if there
12652 # are no directories specified by -L.
12653 hardcode_minus_L=yes
12654 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12655 # Neither direct hardcoding nor static linking is supported with a
12656 # broken collect2.
12657 hardcode_direct=unsupported
12658 fi
12659 ;;
12660
12661 aix[4-9]*)
12662 if test ia64 = "$host_cpu"; then
12663 # On IA64, the linker does run time linking by default, so we don't
12664 # have to do anything special.
12665 aix_use_runtimelinking=no
12666 exp_sym_flag='-Bexport'
12667 no_entry_flag=
12668 else
12669 # If we're using GNU nm, then we don't want the "-C" option.
12670 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12671 # Without the "-l" option, or with the "-B" option, AIX nm treats
12672 # weak defined symbols like other global defined symbols, whereas
12673 # GNU nm marks them as "W".
12674 # While the 'weak' keyword is ignored in the Export File, we need
12675 # it in the Import File for the 'aix-soname' feature, so we have
12676 # to replace the "-B" option with "-P" for AIX nm.
12677 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12678 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'
12679 else
12680 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'
12681 fi
12682 aix_use_runtimelinking=no
12683
12684 # Test if we are trying to use run time linking or normal
12685 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12686 # have runtime linking enabled, and use it for executables.
12687 # For shared libraries, we enable/disable runtime linking
12688 # depending on the kind of the shared library created -
12689 # when "with_aix_soname,aix_use_runtimelinking" is:
12690 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12691 # "aix,yes" lib.so shared, rtl:yes, for executables
12692 # lib.a static archive
12693 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12694 # lib.a(lib.so.V) shared, rtl:no, for executables
12695 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12696 # lib.a(lib.so.V) shared, rtl:no
12697 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12698 # lib.a static archive
12699 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12700 for ld_flag in $LDFLAGS; do
12701 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12702 aix_use_runtimelinking=yes
12703 break
12704 fi
12705 done
12706 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12707 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12708 # so we don't have lib.a shared libs to link our executables.
12709 # We have to force runtime linking in this case.
12710 aix_use_runtimelinking=yes
12711 LDFLAGS="$LDFLAGS -Wl,-brtl"
12712 fi
12713 ;;
12714 esac
12715
12716 exp_sym_flag='-bexport'
12717 no_entry_flag='-bnoentry'
12718 fi
12719
12720 # When large executables or shared objects are built, AIX ld can
12721 # have problems creating the table of contents. If linking a library
12722 # or program results in "error TOC overflow" add -mminimal-toc to
12723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12725
12726 archive_cmds=''
12727 hardcode_direct=yes
12728 hardcode_direct_absolute=yes
12729 hardcode_libdir_separator=':'
12730 link_all_deplibs=yes
12731 file_list_spec='$wl-f,'
12732 case $with_aix_soname,$aix_use_runtimelinking in
12733 aix,*) ;; # traditional, no import file
12734 svr4,* | *,yes) # use import file
12735 # The Import File defines what to hardcode.
12736 hardcode_direct=no
12737 hardcode_direct_absolute=no
12738 ;;
12739 esac
12740
12741 if test yes = "$GCC"; then
12742 case $host_os in aix4.[012]|aix4.[012].*)
12743 # We only want to do this on AIX 4.2 and lower, the check
12744 # below for broken collect2 doesn't work under 4.3+
12745 collect2name=`$CC -print-prog-name=collect2`
12746 if test -f "$collect2name" &&
12747 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12748 then
12749 # We have reworked collect2
12750 :
12751 else
12752 # We have old collect2
12753 hardcode_direct=unsupported
12754 # It fails to find uninstalled libraries when the uninstalled
12755 # path is not listed in the libpath. Setting hardcode_minus_L
12756 # to unsupported forces relinking
12757 hardcode_minus_L=yes
12758 hardcode_libdir_flag_spec='-L$libdir'
12759 hardcode_libdir_separator=
12760 fi
12761 ;;
12762 esac
12763 shared_flag='-shared'
12764 if test yes = "$aix_use_runtimelinking"; then
12765 shared_flag="$shared_flag "'$wl-G'
12766 fi
12767 # Need to ensure runtime linking is disabled for the traditional
12768 # shared library, or the linker may eventually find shared libraries
12769 # /with/ Import File - we do not want to mix them.
12770 shared_flag_aix='-shared'
12771 shared_flag_svr4='-shared $wl-G'
12772 else
12773 # not using gcc
12774 if test ia64 = "$host_cpu"; then
12775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12776 # chokes on -Wl,-G. The following line is correct:
12777 shared_flag='-G'
12778 else
12779 if test yes = "$aix_use_runtimelinking"; then
12780 shared_flag='$wl-G'
12781 else
12782 shared_flag='$wl-bM:SRE'
12783 fi
12784 shared_flag_aix='$wl-bM:SRE'
12785 shared_flag_svr4='$wl-G'
12786 fi
12787 fi
12788
12789 export_dynamic_flag_spec='$wl-bexpall'
12790 # It seems that -bexpall does not export symbols beginning with
12791 # underscore (_), so it is better to generate a list of symbols to export.
12792 always_export_symbols=yes
12793 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12794 # Warning - without using the other runtime loading flags (-brtl),
12795 # -berok will link without error, but may produce a broken library.
12796 allow_undefined_flag='-berok'
12797 # Determine the default libpath from the value encoded in an
12798 # empty executable.
12799 if test set = "${lt_cv_aix_libpath+set}"; then
12800 aix_libpath=$lt_cv_aix_libpath
12801else
12802 if ${lt_cv_aix_libpath_+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804else
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h. */
12807
12808int main (void)
12809{
12810
12811 ;
12812 return 0;
12813}
12814_ACEOF
12815if ac_fn_c_try_link "$LINENO"; then :
12816
12817 lt_aix_libpath_sed='
12818 /Import File Strings/,/^$/ {
12819 /^0/ {
12820 s/^0 *\([^ ]*\) *$/\1/
12821 p
12822 }
12823 }'
12824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12825 # Check for a 64-bit object if we didn't find anything.
12826 if test -z "$lt_cv_aix_libpath_"; then
12827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12828 fi
12829fi
12830rm -f core conftest.err conftest.$ac_objext \
12831 conftest$ac_exeext conftest.$ac_ext
12832 if test -z "$lt_cv_aix_libpath_"; then
12833 lt_cv_aix_libpath_=/usr/lib:/lib
12834 fi
12835
12836fi
12837
12838 aix_libpath=$lt_cv_aix_libpath_
12839fi
12840
12841 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12842 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
12843 else
12844 if test ia64 = "$host_cpu"; then
12845 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12846 allow_undefined_flag="-z nodefs"
12847 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"
12848 else
12849 # Determine the default libpath from the value encoded in an
12850 # empty executable.
12851 if test set = "${lt_cv_aix_libpath+set}"; then
12852 aix_libpath=$lt_cv_aix_libpath
12853else
12854 if ${lt_cv_aix_libpath_+:} false; then :
12855 $as_echo_n "(cached) " >&6
12856else
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858/* end confdefs.h. */
12859
12860int main (void)
12861{
12862
12863 ;
12864 return 0;
12865}
12866_ACEOF
12867if ac_fn_c_try_link "$LINENO"; then :
12868
12869 lt_aix_libpath_sed='
12870 /Import File Strings/,/^$/ {
12871 /^0/ {
12872 s/^0 *\([^ ]*\) *$/\1/
12873 p
12874 }
12875 }'
12876 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12877 # Check for a 64-bit object if we didn't find anything.
12878 if test -z "$lt_cv_aix_libpath_"; then
12879 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12880 fi
12881fi
12882rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 if test -z "$lt_cv_aix_libpath_"; then
12885 lt_cv_aix_libpath_=/usr/lib:/lib
12886 fi
12887
12888fi
12889
12890 aix_libpath=$lt_cv_aix_libpath_
12891fi
12892
12893 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12894 # Warning - without using the other run time loading flags,
12895 # -berok will link without error, but may produce a broken library.
12896 no_undefined_flag=' $wl-bernotok'
12897 allow_undefined_flag=' $wl-berok'
12898 if test yes = "$with_gnu_ld"; then
12899 # We only use this code for GNU lds that support --whole-archive.
12900 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12901 else
12902 # Exported symbols can be pulled into shared objects from archives
12903 whole_archive_flag_spec='$convenience'
12904 fi
12905 archive_cmds_need_lc=yes
12906 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12907 # -brtl affects multiple linker settings, -berok does not and is overridden later
12908 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12909 if test svr4 != "$with_aix_soname"; then
12910 # This is similar to how AIX traditionally builds its shared libraries.
12911 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'
12912 fi
12913 if test aix != "$with_aix_soname"; then
12914 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'
12915 else
12916 # used by -dlpreopen to get the symbols
12917 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12918 fi
12919 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12920 fi
12921 fi
12922 ;;
12923
12924 amigaos*)
12925 case $host_cpu in
12926 powerpc)
12927 # see comment about AmigaOS4 .so support
12928 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12929 archive_expsym_cmds=''
12930 ;;
12931 m68k)
12932 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)'
12933 hardcode_libdir_flag_spec='-L$libdir'
12934 hardcode_minus_L=yes
12935 ;;
12936 esac
12937 ;;
12938
12939 bsdi[45]*)
12940 export_dynamic_flag_spec=-rdynamic
12941 ;;
12942
12943 cygwin* | mingw* | pw32* | cegcc*)
12944 # When not using gcc, we currently assume that we are using
12945 # Microsoft Visual C++.
12946 # hardcode_libdir_flag_spec is actually meaningless, as there is
12947 # no search path for DLLs.
12948 case $cc_basename in
12949 cl*)
12950 # Native MSVC
12951 hardcode_libdir_flag_spec=' '
12952 allow_undefined_flag=unsupported
12953 always_export_symbols=yes
12954 file_list_spec='@'
12955 # Tell ltmain to make .lib files, not .a files.
12956 libext=lib
12957 # Tell ltmain to make .dll files, not .so files.
12958 shrext_cmds=.dll
12959 # FIXME: Setting linknames here is a bad hack.
12960 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12961 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12962 cp "$export_symbols" "$output_objdir/$soname.def";
12963 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12964 else
12965 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12966 fi~
12967 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12968 linknames='
12969 # The linker will not automatically build a static lib if we build a DLL.
12970 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12971 enable_shared_with_static_runtimes=yes
12972 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12973 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12974 # Don't use ranlib
12975 old_postinstall_cmds='chmod 644 $oldlib'
12976 postlink_cmds='lt_outputfile="@OUTPUT@"~
12977 lt_tool_outputfile="@TOOL_OUTPUT@"~
12978 case $lt_outputfile in
12979 *.exe|*.EXE) ;;
12980 *)
12981 lt_outputfile=$lt_outputfile.exe
12982 lt_tool_outputfile=$lt_tool_outputfile.exe
12983 ;;
12984 esac~
12985 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12986 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12987 $RM "$lt_outputfile.manifest";
12988 fi'
12989 ;;
12990 *)
12991 # Assume MSVC wrapper
12992 hardcode_libdir_flag_spec=' '
12993 allow_undefined_flag=unsupported
12994 # Tell ltmain to make .lib files, not .a files.
12995 libext=lib
12996 # Tell ltmain to make .dll files, not .so files.
12997 shrext_cmds=.dll
12998 # FIXME: Setting linknames here is a bad hack.
12999 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13000 # The linker will automatically build a .lib file if we build a DLL.
13001 old_archive_from_new_cmds='true'
13002 # FIXME: Should let the user specify the lib program.
13003 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13004 enable_shared_with_static_runtimes=yes
13005 ;;
13006 esac
13007 ;;
13008
13009 darwin* | rhapsody*)
13010
13011
13012 archive_cmds_need_lc=no
13013 hardcode_direct=no
13014 hardcode_automatic=yes
13015 hardcode_shlibpath_var=unsupported
13016 if test yes = "$lt_cv_ld_force_load"; then
13017 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\"`'
13018
13019 else
13020 whole_archive_flag_spec=''
13021 fi
13022 link_all_deplibs=yes
13023 allow_undefined_flag=$_lt_dar_allow_undefined
13024 case $cc_basename in
13025 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13026 *) _lt_dar_can_shared=$GCC ;;
13027 esac
13028 if test yes = "$_lt_dar_can_shared"; then
13029 output_verbose_link_cmd=func_echo_all
13030 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13031 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13032 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"
13033 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"
13034
13035 else
13036 ld_shlibs=no
13037 fi
13038
13039 ;;
13040
13041 dgux*)
13042 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13043 hardcode_libdir_flag_spec='-L$libdir'
13044 hardcode_shlibpath_var=no
13045 ;;
13046
13047 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13048 # support. Future versions do this automatically, but an explicit c++rt0.o
13049 # does not break anything, and helps significantly (at the cost of a little
13050 # extra space).
13051 freebsd2.2*)
13052 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13053 hardcode_libdir_flag_spec='-R$libdir'
13054 hardcode_direct=yes
13055 hardcode_shlibpath_var=no
13056 ;;
13057
13058 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13059 freebsd2.*)
13060 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13061 hardcode_direct=yes
13062 hardcode_minus_L=yes
13063 hardcode_shlibpath_var=no
13064 ;;
13065
13066 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13067 freebsd* | dragonfly*)
13068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13069 hardcode_libdir_flag_spec='-R$libdir'
13070 hardcode_direct=yes
13071 hardcode_shlibpath_var=no
13072 ;;
13073
13074 hpux9*)
13075 if test yes = "$GCC"; then
13076 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'
13077 else
13078 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'
13079 fi
13080 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13081 hardcode_libdir_separator=:
13082 hardcode_direct=yes
13083
13084 # hardcode_minus_L: Not really in the search PATH,
13085 # but as the default location of the library.
13086 hardcode_minus_L=yes
13087 export_dynamic_flag_spec='$wl-E'
13088 ;;
13089
13090 hpux10*)
13091 if test yes,no = "$GCC,$with_gnu_ld"; then
13092 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13093 else
13094 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13095 fi
13096 if test no = "$with_gnu_ld"; then
13097 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13098 hardcode_libdir_separator=:
13099 hardcode_direct=yes
13100 hardcode_direct_absolute=yes
13101 export_dynamic_flag_spec='$wl-E'
13102 # hardcode_minus_L: Not really in the search PATH,
13103 # but as the default location of the library.
13104 hardcode_minus_L=yes
13105 fi
13106 ;;
13107
13108 hpux11*)
13109 if test yes,no = "$GCC,$with_gnu_ld"; then
13110 case $host_cpu in
13111 hppa*64*)
13112 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13113 ;;
13114 ia64*)
13115 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13116 ;;
13117 *)
13118 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13119 ;;
13120 esac
13121 else
13122 case $host_cpu in
13123 hppa*64*)
13124 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13125 ;;
13126 ia64*)
13127 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13128 ;;
13129 *)
13130
13131 # Older versions of the 11.00 compiler do not understand -b yet
13132 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13134$as_echo_n "checking if $CC understands -b... " >&6; }
13135if ${lt_cv_prog_compiler__b+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137else
13138 lt_cv_prog_compiler__b=no
13139 save_LDFLAGS=$LDFLAGS
13140 LDFLAGS="$LDFLAGS -b"
13141 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13143 # The linker can only warn and ignore the option if not recognized
13144 # So say no if there are warnings
13145 if test -s conftest.err; then
13146 # Append any errors to the config.log.
13147 cat conftest.err 1>&5
13148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13150 if diff conftest.exp conftest.er2 >/dev/null; then
13151 lt_cv_prog_compiler__b=yes
13152 fi
13153 else
13154 lt_cv_prog_compiler__b=yes
13155 fi
13156 fi
13157 $RM -r conftest*
13158 LDFLAGS=$save_LDFLAGS
13159
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13162$as_echo "$lt_cv_prog_compiler__b" >&6; }
13163
13164if test yes = "$lt_cv_prog_compiler__b"; then
13165 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13166else
13167 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13168fi
13169
13170 ;;
13171 esac
13172 fi
13173 if test no = "$with_gnu_ld"; then
13174 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13175 hardcode_libdir_separator=:
13176
13177 case $host_cpu in
13178 hppa*64*|ia64*)
13179 hardcode_direct=no
13180 hardcode_shlibpath_var=no
13181 ;;
13182 *)
13183 hardcode_direct=yes
13184 hardcode_direct_absolute=yes
13185 export_dynamic_flag_spec='$wl-E'
13186
13187 # hardcode_minus_L: Not really in the search PATH,
13188 # but as the default location of the library.
13189 hardcode_minus_L=yes
13190 ;;
13191 esac
13192 fi
13193 ;;
13194
13195 irix5* | irix6* | nonstopux*)
13196 if test yes = "$GCC"; then
13197 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'
13198 # Try to use the -exported_symbol ld option, if it does not
13199 # work, assume that -exports_file does not work either and
13200 # implicitly export all symbols.
13201 # This should be the same for all languages, so no per-tag cache variable.
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13203$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13204if ${lt_cv_irix_exported_symbol+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206else
13207 save_LDFLAGS=$LDFLAGS
13208 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h. */
13211int foo (void) { return 0; }
13212_ACEOF
13213if ac_fn_c_try_link "$LINENO"; then :
13214 lt_cv_irix_exported_symbol=yes
13215else
13216 lt_cv_irix_exported_symbol=no
13217fi
13218rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 LDFLAGS=$save_LDFLAGS
13221fi
13222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13223$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13224 if test yes = "$lt_cv_irix_exported_symbol"; then
13225 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'
13226 fi
13227 link_all_deplibs=no
13228 else
13229 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'
13230 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'
13231 fi
13232 archive_cmds_need_lc='no'
13233 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13234 hardcode_libdir_separator=:
13235 inherit_rpath=yes
13236 link_all_deplibs=yes
13237 ;;
13238
13239 linux*)
13240 case $cc_basename in
13241 tcc*)
13242 # Fabrice Bellard et al's Tiny C Compiler
13243 ld_shlibs=yes
13244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13245 ;;
13246 esac
13247 ;;
13248
13249 netbsd* | netbsdelf*-gnu)
13250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13252 else
13253 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13254 fi
13255 hardcode_libdir_flag_spec='-R$libdir'
13256 hardcode_direct=yes
13257 hardcode_shlibpath_var=no
13258 ;;
13259
13260 newsos6)
13261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13262 hardcode_direct=yes
13263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13264 hardcode_libdir_separator=:
13265 hardcode_shlibpath_var=no
13266 ;;
13267
13268 *nto* | *qnx*)
13269 ;;
13270
13271 openbsd* | bitrig*)
13272 if test -f /usr/libexec/ld.so; then
13273 hardcode_direct=yes
13274 hardcode_shlibpath_var=no
13275 hardcode_direct_absolute=yes
13276 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13278 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13279 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13280 export_dynamic_flag_spec='$wl-E'
13281 else
13282 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13283 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13284 fi
13285 else
13286 ld_shlibs=no
13287 fi
13288 ;;
13289
13290 os2*)
13291 hardcode_libdir_flag_spec='-L$libdir'
13292 hardcode_minus_L=yes
13293 allow_undefined_flag=unsupported
13294 shrext_cmds=.dll
13295 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13296 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13297 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13298 $ECHO EXPORTS >> $output_objdir/$libname.def~
13299 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13300 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13301 emximp -o $lib $output_objdir/$libname.def'
13302 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13303 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13304 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13305 $ECHO EXPORTS >> $output_objdir/$libname.def~
13306 prefix_cmds="$SED"~
13307 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13308 prefix_cmds="$prefix_cmds -e 1d";
13309 fi~
13310 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13311 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13312 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13313 emximp -o $lib $output_objdir/$libname.def'
13314 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13315 enable_shared_with_static_runtimes=yes
13316 ;;
13317
13318 osf3*)
13319 if test yes = "$GCC"; then
13320 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13321 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'
13322 else
13323 allow_undefined_flag=' -expect_unresolved \*'
13324 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'
13325 fi
13326 archive_cmds_need_lc='no'
13327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13328 hardcode_libdir_separator=:
13329 ;;
13330
13331 osf4* | osf5*) # as osf3* with the addition of -msym flag
13332 if test yes = "$GCC"; then
13333 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13334 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'
13335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13336 else
13337 allow_undefined_flag=' -expect_unresolved \*'
13338 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'
13339 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~
13340 $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'
13341
13342 # Both c and cxx compiler support -rpath directly
13343 hardcode_libdir_flag_spec='-rpath $libdir'
13344 fi
13345 archive_cmds_need_lc='no'
13346 hardcode_libdir_separator=:
13347 ;;
13348
13349 solaris*)
13350 no_undefined_flag=' -z defs'
13351 if test yes = "$GCC"; then
13352 wlarc='$wl'
13353 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13354 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13355 $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'
13356 else
13357 case `$CC -V 2>&1` in
13358 *"Compilers 5.0"*)
13359 wlarc=''
13360 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13362 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13363 ;;
13364 *)
13365 wlarc='$wl'
13366 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13367 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13368 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13369 ;;
13370 esac
13371 fi
13372 hardcode_libdir_flag_spec='-R$libdir'
13373 hardcode_shlibpath_var=no
13374 case $host_os in
13375 solaris2.[0-5] | solaris2.[0-5].*) ;;
13376 *)
13377 # The compiler driver will combine and reorder linker options,
13378 # but understands '-z linker_flag'. GCC discards it without '$wl',
13379 # but is careful enough not to reorder.
13380 # Supported since Solaris 2.6 (maybe 2.5.1?)
13381 if test yes = "$GCC"; then
13382 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13383 else
13384 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13385 fi
13386 ;;
13387 esac
13388 link_all_deplibs=yes
13389 ;;
13390
13391 sunos4*)
13392 if test sequent = "$host_vendor"; then
13393 # Use $CC to link under sequent, because it throws in some extra .o
13394 # files that make .init and .fini sections work.
13395 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13396 else
13397 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13398 fi
13399 hardcode_libdir_flag_spec='-L$libdir'
13400 hardcode_direct=yes
13401 hardcode_minus_L=yes
13402 hardcode_shlibpath_var=no
13403 ;;
13404
13405 sysv4)
13406 case $host_vendor in
13407 sni)
13408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13409 hardcode_direct=yes # is this really true???
13410 ;;
13411 siemens)
13412 ## LD is ld it makes a PLAMLIB
13413 ## CC just makes a GrossModule.
13414 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13415 reload_cmds='$CC -r -o $output$reload_objs'
13416 hardcode_direct=no
13417 ;;
13418 motorola)
13419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13421 ;;
13422 esac
13423 runpath_var='LD_RUN_PATH'
13424 hardcode_shlibpath_var=no
13425 ;;
13426
13427 sysv4.3*)
13428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13429 hardcode_shlibpath_var=no
13430 export_dynamic_flag_spec='-Bexport'
13431 ;;
13432
13433 sysv4*MP*)
13434 if test -d /usr/nec; then
13435 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13436 hardcode_shlibpath_var=no
13437 runpath_var=LD_RUN_PATH
13438 hardcode_runpath_var=yes
13439 ld_shlibs=yes
13440 fi
13441 ;;
13442
13443 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13444 no_undefined_flag='$wl-z,text'
13445 archive_cmds_need_lc=no
13446 hardcode_shlibpath_var=no
13447 runpath_var='LD_RUN_PATH'
13448
13449 if test yes = "$GCC"; then
13450 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13451 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13452 else
13453 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13454 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13455 fi
13456 ;;
13457
13458 sysv5* | sco3.2v5* | sco5v6*)
13459 # Note: We CANNOT use -z defs as we might desire, because we do not
13460 # link with -lc, and that would cause any symbols used from libc to
13461 # always be unresolved, which means just about no library would
13462 # ever link correctly. If we're not using GNU ld we use -z text
13463 # though, which does catch some bad symbols but isn't as heavy-handed
13464 # as -z defs.
13465 no_undefined_flag='$wl-z,text'
13466 allow_undefined_flag='$wl-z,nodefs'
13467 archive_cmds_need_lc=no
13468 hardcode_shlibpath_var=no
13469 hardcode_libdir_flag_spec='$wl-R,$libdir'
13470 hardcode_libdir_separator=':'
13471 link_all_deplibs=yes
13472 export_dynamic_flag_spec='$wl-Bexport'
13473 runpath_var='LD_RUN_PATH'
13474
13475 if test yes = "$GCC"; then
13476 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13477 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13478 else
13479 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13481 fi
13482 ;;
13483
13484 uts4*)
13485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_libdir_flag_spec='-L$libdir'
13487 hardcode_shlibpath_var=no
13488 ;;
13489
13490 *)
13491 ld_shlibs=no
13492 ;;
13493 esac
13494
13495 if test sni = "$host_vendor"; then
13496 case $host in
13497 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13498 export_dynamic_flag_spec='$wl-Blargedynsym'
13499 ;;
13500 esac
13501 fi
13502 fi
13503
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13505$as_echo "$ld_shlibs" >&6; }
13506test no = "$ld_shlibs" && can_build_shared=no
13507
13508with_gnu_ld=$with_gnu_ld
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524#
13525# Do we need to explicitly link libc?
13526#
13527case "x$archive_cmds_need_lc" in
13528x|xyes)
13529 # Assume -lc should be added
13530 archive_cmds_need_lc=yes
13531
13532 if test yes,yes = "$GCC,$enable_shared"; then
13533 case $archive_cmds in
13534 *'~'*)
13535 # FIXME: we may have to deal with multi-command sequences.
13536 ;;
13537 '$CC '*)
13538 # Test whether the compiler implicitly links with -lc since on some
13539 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13540 # to ld, don't add -lc before -lgcc.
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13542$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13543if ${lt_cv_archive_cmds_need_lc+:} false; then :
13544 $as_echo_n "(cached) " >&6
13545else
13546 $RM conftest*
13547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13548
13549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13550 (eval $ac_compile) 2>&5
13551 ac_status=$?
13552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13553 test $ac_status = 0; } 2>conftest.err; then
13554 soname=conftest
13555 lib=conftest
13556 libobjs=conftest.$ac_objext
13557 deplibs=
13558 wl=$lt_prog_compiler_wl
13559 pic_flag=$lt_prog_compiler_pic
13560 compiler_flags=-v
13561 linker_flags=-v
13562 verstring=
13563 output_objdir=.
13564 libname=conftest
13565 lt_save_allow_undefined_flag=$allow_undefined_flag
13566 allow_undefined_flag=
13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13568 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13569 ac_status=$?
13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13571 test $ac_status = 0; }
13572 then
13573 lt_cv_archive_cmds_need_lc=no
13574 else
13575 lt_cv_archive_cmds_need_lc=yes
13576 fi
13577 allow_undefined_flag=$lt_save_allow_undefined_flag
13578 else
13579 cat conftest.err 1>&5
13580 fi
13581 $RM conftest*
13582
13583fi
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13585$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13586 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13587 ;;
13588 esac
13589 fi
13590 ;;
13591esac
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
13740
13741
13742
13743
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13745$as_echo_n "checking dynamic linker characteristics... " >&6; }
13746
13747if test yes = "$GCC"; then
13748 case $host_os in
13749 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13750 *) lt_awk_arg='/^libraries:/' ;;
13751 esac
13752 case $host_os in
13753 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13754 *) lt_sed_strip_eq='s|=/|/|g' ;;
13755 esac
13756 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13757 case $lt_search_path_spec in
13758 *\;*)
13759 # if the path contains ";" then we assume it to be the separator
13760 # otherwise default to the standard path separator (i.e. ":") - it is
13761 # assumed that no part of a normal pathname contains ";" but that should
13762 # okay in the real world where ";" in dirpaths is itself problematic.
13763 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13764 ;;
13765 *)
13766 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13767 ;;
13768 esac
13769 # Ok, now we have the path, separated by spaces, we can step through it
13770 # and add multilib dir if necessary...
13771 lt_tmp_lt_search_path_spec=
13772 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13773 # ...but if some path component already ends with the multilib dir we assume
13774 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13775 case "$lt_multi_os_dir; $lt_search_path_spec " in
13776 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13777 lt_multi_os_dir=
13778 ;;
13779 esac
13780 for lt_sys_path in $lt_search_path_spec; do
13781 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13782 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13783 elif test -n "$lt_multi_os_dir"; then
13784 test -d "$lt_sys_path" && \
13785 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13786 fi
13787 done
13788 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13789BEGIN {RS = " "; FS = "/|\n";} {
13790 lt_foo = "";
13791 lt_count = 0;
13792 for (lt_i = NF; lt_i > 0; lt_i--) {
13793 if ($lt_i != "" && $lt_i != ".") {
13794 if ($lt_i == "..") {
13795 lt_count++;
13796 } else {
13797 if (lt_count == 0) {
13798 lt_foo = "/" $lt_i lt_foo;
13799 } else {
13800 lt_count--;
13801 }
13802 }
13803 }
13804 }
13805 if (lt_foo != "") { lt_freq[lt_foo]++; }
13806 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13807}'`
13808 # AWK program above erroneously prepends '/' to C:/dos/paths
13809 # for these hosts.
13810 case $host_os in
13811 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13812 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13813 esac
13814 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13815else
13816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13817fi
13818library_names_spec=
13819libname_spec='lib$name'
13820soname_spec=
13821shrext_cmds=.so
13822postinstall_cmds=
13823postuninstall_cmds=
13824finish_cmds=
13825finish_eval=
13826shlibpath_var=
13827shlibpath_overrides_runpath=unknown
13828version_type=none
13829dynamic_linker="$host_os ld.so"
13830sys_lib_dlsearch_path_spec="/lib /usr/lib"
13831need_lib_prefix=unknown
13832hardcode_into_libs=no
13833
13834# when you set need_version to no, make sure it does not cause -set_version
13835# flags to be left without arguments
13836need_version=unknown
13837
13838
13839
13840case $host_os in
13841aix3*)
13842 version_type=linux # correct to gnu/linux during the next big refactor
13843 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13844 shlibpath_var=LIBPATH
13845
13846 # AIX 3 has no versioning support, so we append a major version to the name.
13847 soname_spec='$libname$release$shared_ext$major'
13848 ;;
13849
13850aix[4-9]*)
13851 version_type=linux # correct to gnu/linux during the next big refactor
13852 need_lib_prefix=no
13853 need_version=no
13854 hardcode_into_libs=yes
13855 if test ia64 = "$host_cpu"; then
13856 # AIX 5 supports IA64
13857 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13858 shlibpath_var=LD_LIBRARY_PATH
13859 else
13860 # With GCC up to 2.95.x, collect2 would create an import file
13861 # for dependence libraries. The import file would start with
13862 # the line '#! .'. This would cause the generated library to
13863 # depend on '.', always an invalid library. This was fixed in
13864 # development snapshots of GCC prior to 3.0.
13865 case $host_os in
13866 aix4 | aix4.[01] | aix4.[01].*)
13867 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13868 echo ' yes '
13869 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13870 :
13871 else
13872 can_build_shared=no
13873 fi
13874 ;;
13875 esac
13876 # Using Import Files as archive members, it is possible to support
13877 # filename-based versioning of shared library archives on AIX. While
13878 # this would work for both with and without runtime linking, it will
13879 # prevent static linking of such archives. So we do filename-based
13880 # shared library versioning with .so extension only, which is used
13881 # when both runtime linking and shared linking is enabled.
13882 # Unfortunately, runtime linking may impact performance, so we do
13883 # not want this to be the default eventually. Also, we use the
13884 # versioned .so libs for executables only if there is the -brtl
13885 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13886 # To allow for filename-based versioning support, we need to create
13887 # libNAME.so.V as an archive file, containing:
13888 # *) an Import File, referring to the versioned filename of the
13889 # archive as well as the shared archive member, telling the
13890 # bitwidth (32 or 64) of that shared object, and providing the
13891 # list of exported symbols of that shared object, eventually
13892 # decorated with the 'weak' keyword
13893 # *) the shared object with the F_LOADONLY flag set, to really avoid
13894 # it being seen by the linker.
13895 # At run time we better use the real file rather than another symlink,
13896 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13897
13898 case $with_aix_soname,$aix_use_runtimelinking in
13899 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13900 # soname into executable. Probably we can add versioning support to
13901 # collect2, so additional links can be useful in future.
13902 aix,yes) # traditional libtool
13903 dynamic_linker='AIX unversionable lib.so'
13904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13905 # instead of lib<name>.a to let people know that these are not
13906 # typical AIX shared libraries.
13907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13908 ;;
13909 aix,no) # traditional AIX only
13910 dynamic_linker='AIX lib.a(lib.so.V)'
13911 # We preserve .a as extension for shared libraries through AIX4.2
13912 # and later when we are not doing run time linking.
13913 library_names_spec='$libname$release.a $libname.a'
13914 soname_spec='$libname$release$shared_ext$major'
13915 ;;
13916 svr4,*) # full svr4 only
13917 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13918 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13919 # We do not specify a path in Import Files, so LIBPATH fires.
13920 shlibpath_overrides_runpath=yes
13921 ;;
13922 *,yes) # both, prefer svr4
13923 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13924 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13925 # unpreferred sharedlib libNAME.a needs extra handling
13926 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"'
13927 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"'
13928 # We do not specify a path in Import Files, so LIBPATH fires.
13929 shlibpath_overrides_runpath=yes
13930 ;;
13931 *,no) # both, prefer aix
13932 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13933 library_names_spec='$libname$release.a $libname.a'
13934 soname_spec='$libname$release$shared_ext$major'
13935 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13936 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)'
13937 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"'
13938 ;;
13939 esac
13940 shlibpath_var=LIBPATH
13941 fi
13942 ;;
13943
13944amigaos*)
13945 case $host_cpu in
13946 powerpc)
13947 # Since July 2007 AmigaOS4 officially supports .so libraries.
13948 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13950 ;;
13951 m68k)
13952 library_names_spec='$libname.ixlibrary $libname.a'
13953 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13954 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'
13955 ;;
13956 esac
13957 ;;
13958
13959beos*)
13960 library_names_spec='$libname$shared_ext'
13961 dynamic_linker="$host_os ld.so"
13962 shlibpath_var=LIBRARY_PATH
13963 ;;
13964
13965bsdi[45]*)
13966 version_type=linux # correct to gnu/linux during the next big refactor
13967 need_version=no
13968 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13969 soname_spec='$libname$release$shared_ext$major'
13970 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13971 shlibpath_var=LD_LIBRARY_PATH
13972 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13973 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13974 # the default ld.so.conf also contains /usr/contrib/lib and
13975 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13976 # libtool to hard-code these into programs
13977 ;;
13978
13979cygwin* | mingw* | pw32* | cegcc*)
13980 version_type=windows
13981 shrext_cmds=.dll
13982 need_version=no
13983 need_lib_prefix=no
13984
13985 case $GCC,$cc_basename in
13986 yes,*)
13987 # gcc
13988 library_names_spec='$libname.dll.a'
13989 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13990 postinstall_cmds='base_file=`basename \$file`~
13991 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13992 dldir=$destdir/`dirname \$dlpath`~
13993 test -d \$dldir || mkdir -p \$dldir~
13994 $install_prog $dir/$dlname \$dldir/$dlname~
13995 chmod a+x \$dldir/$dlname~
13996 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13997 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13998 fi'
13999 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14000 dlpath=$dir/\$dldll~
14001 $RM \$dlpath'
14002 shlibpath_overrides_runpath=yes
14003
14004 case $host_os in
14005 cygwin*)
14006 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14007 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14008
14009 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14010 ;;
14011 mingw* | cegcc*)
14012 # MinGW DLLs use traditional 'lib' prefix
14013 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14014 ;;
14015 pw32*)
14016 # pw32 DLLs use 'pw' prefix rather than 'lib'
14017 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14018 ;;
14019 esac
14020 dynamic_linker='Win32 ld.exe'
14021 ;;
14022
14023 *,cl*)
14024 # Native MSVC
14025 libname_spec='$name'
14026 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14027 library_names_spec='$libname.dll.lib'
14028
14029 case $build_os in
14030 mingw*)
14031 sys_lib_search_path_spec=
14032 lt_save_ifs=$IFS
14033 IFS=';'
14034 for lt_path in $LIB
14035 do
14036 IFS=$lt_save_ifs
14037 # Let DOS variable expansion print the short 8.3 style file name.
14038 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14039 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14040 done
14041 IFS=$lt_save_ifs
14042 # Convert to MSYS style.
14043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14044 ;;
14045 cygwin*)
14046 # Convert to unix form, then to dos form, then back to unix form
14047 # but this time dos style (no spaces!) so that the unix form looks
14048 # like /cygdrive/c/PROGRA~1:/cygdr...
14049 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14050 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14051 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14052 ;;
14053 *)
14054 sys_lib_search_path_spec=$LIB
14055 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14056 # It is most probably a Windows format PATH.
14057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14058 else
14059 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14060 fi
14061 # FIXME: find the short name or the path components, as spaces are
14062 # common. (e.g. "Program Files" -> "PROGRA~1")
14063 ;;
14064 esac
14065
14066 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14067 postinstall_cmds='base_file=`basename \$file`~
14068 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14069 dldir=$destdir/`dirname \$dlpath`~
14070 test -d \$dldir || mkdir -p \$dldir~
14071 $install_prog $dir/$dlname \$dldir/$dlname'
14072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14073 dlpath=$dir/\$dldll~
14074 $RM \$dlpath'
14075 shlibpath_overrides_runpath=yes
14076 dynamic_linker='Win32 link.exe'
14077 ;;
14078
14079 *)
14080 # Assume MSVC wrapper
14081 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14082 dynamic_linker='Win32 ld.exe'
14083 ;;
14084 esac
14085 # FIXME: first we should search . and the directory the executable is in
14086 shlibpath_var=PATH
14087 ;;
14088
14089darwin* | rhapsody*)
14090 dynamic_linker="$host_os dyld"
14091 version_type=darwin
14092 need_lib_prefix=no
14093 need_version=no
14094 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14095 soname_spec='$libname$release$major$shared_ext'
14096 shlibpath_overrides_runpath=yes
14097 shlibpath_var=DYLD_LIBRARY_PATH
14098 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14099
14100 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14101 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14102 ;;
14103
14104dgux*)
14105 version_type=linux # correct to gnu/linux during the next big refactor
14106 need_lib_prefix=no
14107 need_version=no
14108 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14109 soname_spec='$libname$release$shared_ext$major'
14110 shlibpath_var=LD_LIBRARY_PATH
14111 ;;
14112
14113freebsd* | dragonfly*)
14114 # DragonFly does not have aout. When/if they implement a new
14115 # versioning mechanism, adjust this.
14116 if test -x /usr/bin/objformat; then
14117 objformat=`/usr/bin/objformat`
14118 else
14119 case $host_os in
14120 freebsd[23].*) objformat=aout ;;
14121 *) objformat=elf ;;
14122 esac
14123 fi
14124 version_type=freebsd-$objformat
14125 case $version_type in
14126 freebsd-elf*)
14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14128 soname_spec='$libname$release$shared_ext$major'
14129 need_version=no
14130 need_lib_prefix=no
14131 ;;
14132 freebsd-*)
14133 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14134 need_version=yes
14135 ;;
14136 esac
14137 shlibpath_var=LD_LIBRARY_PATH
14138 case $host_os in
14139 freebsd2.*)
14140 shlibpath_overrides_runpath=yes
14141 ;;
14142 freebsd3.[01]* | freebsdelf3.[01]*)
14143 shlibpath_overrides_runpath=yes
14144 hardcode_into_libs=yes
14145 ;;
14146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14148 shlibpath_overrides_runpath=no
14149 hardcode_into_libs=yes
14150 ;;
14151 *) # from 4.6 on, and DragonFly
14152 shlibpath_overrides_runpath=yes
14153 hardcode_into_libs=yes
14154 ;;
14155 esac
14156 ;;
14157
14158haiku*)
14159 version_type=linux # correct to gnu/linux during the next big refactor
14160 need_lib_prefix=no
14161 need_version=no
14162 dynamic_linker="$host_os runtime_loader"
14163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14164 soname_spec='$libname$release$shared_ext$major'
14165 shlibpath_var=LIBRARY_PATH
14166 shlibpath_overrides_runpath=no
14167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14168 hardcode_into_libs=yes
14169 ;;
14170
14171hpux9* | hpux10* | hpux11*)
14172 # Give a soname corresponding to the major version so that dld.sl refuses to
14173 # link against other versions.
14174 version_type=sunos
14175 need_lib_prefix=no
14176 need_version=no
14177 case $host_cpu in
14178 ia64*)
14179 shrext_cmds='.so'
14180 hardcode_into_libs=yes
14181 dynamic_linker="$host_os dld.so"
14182 shlibpath_var=LD_LIBRARY_PATH
14183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14185 soname_spec='$libname$release$shared_ext$major'
14186 if test 32 = "$HPUX_IA64_MODE"; then
14187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14188 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14189 else
14190 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14191 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14192 fi
14193 ;;
14194 hppa*64*)
14195 shrext_cmds='.sl'
14196 hardcode_into_libs=yes
14197 dynamic_linker="$host_os dld.sl"
14198 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14199 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14201 soname_spec='$libname$release$shared_ext$major'
14202 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14203 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14204 ;;
14205 *)
14206 shrext_cmds='.sl'
14207 dynamic_linker="$host_os dld.sl"
14208 shlibpath_var=SHLIB_PATH
14209 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14211 soname_spec='$libname$release$shared_ext$major'
14212 ;;
14213 esac
14214 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14215 postinstall_cmds='chmod 555 $lib'
14216 # or fails outright, so override atomically:
14217 install_override_mode=555
14218 ;;
14219
14220interix[3-9]*)
14221 version_type=linux # correct to gnu/linux during the next big refactor
14222 need_lib_prefix=no
14223 need_version=no
14224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14225 soname_spec='$libname$release$shared_ext$major'
14226 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14227 shlibpath_var=LD_LIBRARY_PATH
14228 shlibpath_overrides_runpath=no
14229 hardcode_into_libs=yes
14230 ;;
14231
14232irix5* | irix6* | nonstopux*)
14233 case $host_os in
14234 nonstopux*) version_type=nonstopux ;;
14235 *)
14236 if test yes = "$lt_cv_prog_gnu_ld"; then
14237 version_type=linux # correct to gnu/linux during the next big refactor
14238 else
14239 version_type=irix
14240 fi ;;
14241 esac
14242 need_lib_prefix=no
14243 need_version=no
14244 soname_spec='$libname$release$shared_ext$major'
14245 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14246 case $host_os in
14247 irix5* | nonstopux*)
14248 libsuff= shlibsuff=
14249 ;;
14250 *)
14251 case $LD in # libtool.m4 will add one of these switches to LD
14252 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14253 libsuff= shlibsuff= libmagic=32-bit;;
14254 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14255 libsuff=32 shlibsuff=N32 libmagic=N32;;
14256 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14257 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14258 *) libsuff= shlibsuff= libmagic=never-match;;
14259 esac
14260 ;;
14261 esac
14262 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14263 shlibpath_overrides_runpath=no
14264 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14265 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14266 hardcode_into_libs=yes
14267 ;;
14268
14269# No shared lib support for Linux oldld, aout, or coff.
14270linux*oldld* | linux*aout* | linux*coff*)
14271 dynamic_linker=no
14272 ;;
14273
14274linux*android*)
14275 version_type=none # Android doesn't support versioned libraries.
14276 need_lib_prefix=no
14277 need_version=no
14278 library_names_spec='$libname$release$shared_ext'
14279 soname_spec='$libname$release$shared_ext'
14280 finish_cmds=
14281 shlibpath_var=LD_LIBRARY_PATH
14282 shlibpath_overrides_runpath=yes
14283
14284 # This implies no fast_install, which is unacceptable.
14285 # Some rework will be needed to allow for fast_install
14286 # before this can be enabled.
14287 hardcode_into_libs=yes
14288
14289 dynamic_linker='Android linker'
14290 # Don't embed -rpath directories since the linker doesn't support them.
14291 hardcode_libdir_flag_spec='-L$libdir'
14292 ;;
14293
14294# This must be glibc/ELF.
14295linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14296 version_type=linux # correct to gnu/linux during the next big refactor
14297 need_lib_prefix=no
14298 need_version=no
14299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14300 soname_spec='$libname$release$shared_ext$major'
14301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14302 shlibpath_var=LD_LIBRARY_PATH
14303 shlibpath_overrides_runpath=no
14304
14305 # Some binutils ld are patched to set DT_RUNPATH
14306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14307 $as_echo_n "(cached) " >&6
14308else
14309 lt_cv_shlibpath_overrides_runpath=no
14310 save_LDFLAGS=$LDFLAGS
14311 save_libdir=$libdir
14312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315/* end confdefs.h. */
14316
14317int main (void)
14318{
14319
14320 ;
14321 return 0;
14322}
14323_ACEOF
14324if ac_fn_c_try_link "$LINENO"; then :
14325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14326 lt_cv_shlibpath_overrides_runpath=yes
14327fi
14328fi
14329rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 LDFLAGS=$save_LDFLAGS
14332 libdir=$save_libdir
14333
14334fi
14335
14336 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14337
14338 # This implies no fast_install, which is unacceptable.
14339 # Some rework will be needed to allow for fast_install
14340 # before this can be enabled.
14341 hardcode_into_libs=yes
14342
14343 # Ideally, we could use ldconfig to report *all* directores which are
14344 # searched for libraries, however this is still not possible. Aside from not
14345 # being certain /sbin/ldconfig is available, command
14346 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14347 # even though it is searched at run-time. Try to do the best guess by
14348 # appending ld.so.conf contents (and includes) to the search path.
14349 if test -f /etc/ld.so.conf; then
14350 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' ' '`
14351 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14352 fi
14353
14354 # We used to test for /lib/ld.so.1 and disable shared libraries on
14355 # powerpc, because MkLinux only supported shared libraries with the
14356 # GNU dynamic linker. Since this was broken with cross compilers,
14357 # most powerpc-linux boxes support dynamic linking these days and
14358 # people can always --disable-shared, the test was removed, and we
14359 # assume the GNU/Linux dynamic linker is in use.
14360 dynamic_linker='GNU/Linux ld.so'
14361 ;;
14362
14363netbsdelf*-gnu)
14364 version_type=linux
14365 need_lib_prefix=no
14366 need_version=no
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 shlibpath_var=LD_LIBRARY_PATH
14370 shlibpath_overrides_runpath=no
14371 hardcode_into_libs=yes
14372 dynamic_linker='NetBSD ld.elf_so'
14373 ;;
14374
14375netbsd*)
14376 version_type=sunos
14377 need_lib_prefix=no
14378 need_version=no
14379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14380 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14382 dynamic_linker='NetBSD (a.out) ld.so'
14383 else
14384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14385 soname_spec='$libname$release$shared_ext$major'
14386 dynamic_linker='NetBSD ld.elf_so'
14387 fi
14388 shlibpath_var=LD_LIBRARY_PATH
14389 shlibpath_overrides_runpath=yes
14390 hardcode_into_libs=yes
14391 ;;
14392
14393newsos6)
14394 version_type=linux # correct to gnu/linux during the next big refactor
14395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14396 shlibpath_var=LD_LIBRARY_PATH
14397 shlibpath_overrides_runpath=yes
14398 ;;
14399
14400*nto* | *qnx*)
14401 version_type=qnx
14402 need_lib_prefix=no
14403 need_version=no
14404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14405 soname_spec='$libname$release$shared_ext$major'
14406 shlibpath_var=LD_LIBRARY_PATH
14407 shlibpath_overrides_runpath=no
14408 hardcode_into_libs=yes
14409 dynamic_linker='ldqnx.so'
14410 ;;
14411
14412openbsd* | bitrig*)
14413 version_type=sunos
14414 sys_lib_dlsearch_path_spec=/usr/lib
14415 need_lib_prefix=no
14416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14417 need_version=no
14418 else
14419 need_version=yes
14420 fi
14421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14423 shlibpath_var=LD_LIBRARY_PATH
14424 shlibpath_overrides_runpath=yes
14425 ;;
14426
14427os2*)
14428 libname_spec='$name'
14429 version_type=windows
14430 shrext_cmds=.dll
14431 need_version=no
14432 need_lib_prefix=no
14433 # OS/2 can only load a DLL with a base name of 8 characters or less.
14434 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14435 v=$($ECHO $release$versuffix | tr -d .-);
14436 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14437 $ECHO $n$v`$shared_ext'
14438 library_names_spec='${libname}_dll.$libext'
14439 dynamic_linker='OS/2 ld.exe'
14440 shlibpath_var=BEGINLIBPATH
14441 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14443 postinstall_cmds='base_file=`basename \$file`~
14444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14445 dldir=$destdir/`dirname \$dlpath`~
14446 test -d \$dldir || mkdir -p \$dldir~
14447 $install_prog $dir/$dlname \$dldir/$dlname~
14448 chmod a+x \$dldir/$dlname~
14449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14451 fi'
14452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14453 dlpath=$dir/\$dldll~
14454 $RM \$dlpath'
14455 ;;
14456
14457osf3* | osf4* | osf5*)
14458 version_type=osf
14459 need_lib_prefix=no
14460 need_version=no
14461 soname_spec='$libname$release$shared_ext$major'
14462 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14463 shlibpath_var=LD_LIBRARY_PATH
14464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14465 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14466 ;;
14467
14468rdos*)
14469 dynamic_linker=no
14470 ;;
14471
14472solaris*)
14473 version_type=linux # correct to gnu/linux during the next big refactor
14474 need_lib_prefix=no
14475 need_version=no
14476 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14477 soname_spec='$libname$release$shared_ext$major'
14478 shlibpath_var=LD_LIBRARY_PATH
14479 shlibpath_overrides_runpath=yes
14480 hardcode_into_libs=yes
14481 # ldd complains unless libraries are executable
14482 postinstall_cmds='chmod +x $lib'
14483 ;;
14484
14485sunos4*)
14486 version_type=sunos
14487 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes
14491 if test yes = "$with_gnu_ld"; then
14492 need_lib_prefix=no
14493 fi
14494 need_version=yes
14495 ;;
14496
14497sysv4 | sysv4.3*)
14498 version_type=linux # correct to gnu/linux during the next big refactor
14499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14500 soname_spec='$libname$release$shared_ext$major'
14501 shlibpath_var=LD_LIBRARY_PATH
14502 case $host_vendor in
14503 sni)
14504 shlibpath_overrides_runpath=no
14505 need_lib_prefix=no
14506 runpath_var=LD_RUN_PATH
14507 ;;
14508 siemens)
14509 need_lib_prefix=no
14510 ;;
14511 motorola)
14512 need_lib_prefix=no
14513 need_version=no
14514 shlibpath_overrides_runpath=no
14515 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14516 ;;
14517 esac
14518 ;;
14519
14520sysv4*MP*)
14521 if test -d /usr/nec; then
14522 version_type=linux # correct to gnu/linux during the next big refactor
14523 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14524 soname_spec='$libname$shared_ext.$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 fi
14527 ;;
14528
14529sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14530 version_type=sco
14531 need_lib_prefix=no
14532 need_version=no
14533 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14534 soname_spec='$libname$release$shared_ext$major'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=yes
14537 hardcode_into_libs=yes
14538 if test yes = "$with_gnu_ld"; then
14539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14540 else
14541 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14542 case $host_os in
14543 sco3.2v5*)
14544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14545 ;;
14546 esac
14547 fi
14548 sys_lib_dlsearch_path_spec='/usr/lib'
14549 ;;
14550
14551tpf*)
14552 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14553 version_type=linux # correct to gnu/linux during the next big refactor
14554 need_lib_prefix=no
14555 need_version=no
14556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 shlibpath_overrides_runpath=no
14559 hardcode_into_libs=yes
14560 ;;
14561
14562uts4*)
14563 version_type=linux # correct to gnu/linux during the next big refactor
14564 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14565 soname_spec='$libname$release$shared_ext$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 ;;
14568
14569*)
14570 dynamic_linker=no
14571 ;;
14572esac
14573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14574$as_echo "$dynamic_linker" >&6; }
14575test no = "$dynamic_linker" && can_build_shared=no
14576
14577variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14578if test yes = "$GCC"; then
14579 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14580fi
14581
14582if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14583 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14584fi
14585
14586if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14587 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14588fi
14589
14590# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14591configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14592
14593# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14594func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14595
14596# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14597configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
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
14691
14692
14693
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14696$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14697hardcode_action=
14698if test -n "$hardcode_libdir_flag_spec" ||
14699 test -n "$runpath_var" ||
14700 test yes = "$hardcode_automatic"; then
14701
14702 # We can hardcode non-existent directories.
14703 if test no != "$hardcode_direct" &&
14704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14705 # have to relink, otherwise we might link with an installed library
14706 # when we should be linking with a yet-to-be-installed one
14707 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14708 test no != "$hardcode_minus_L"; then
14709 # Linking always hardcodes the temporary library directory.
14710 hardcode_action=relink
14711 else
14712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14713 hardcode_action=immediate
14714 fi
14715else
14716 # We cannot hardcode anything, or else we can only hardcode existing
14717 # directories.
14718 hardcode_action=unsupported
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14721$as_echo "$hardcode_action" >&6; }
14722
14723if test relink = "$hardcode_action" ||
14724 test yes = "$inherit_rpath"; then
14725 # Fast installation is not supported
14726 enable_fast_install=no
14727elif test yes = "$shlibpath_overrides_runpath" ||
14728 test no = "$enable_shared"; then
14729 # Fast installation is not necessary
14730 enable_fast_install=needless
14731fi
14732
14733
14734
14735
14736
14737
14738 if test yes != "$enable_dlopen"; then
14739 enable_dlopen=unknown
14740 enable_dlopen_self=unknown
14741 enable_dlopen_self_static=unknown
14742else
14743 lt_cv_dlopen=no
14744 lt_cv_dlopen_libs=
14745
14746 case $host_os in
14747 beos*)
14748 lt_cv_dlopen=load_add_on
14749 lt_cv_dlopen_libs=
14750 lt_cv_dlopen_self=yes
14751 ;;
14752
14753 mingw* | pw32* | cegcc*)
14754 lt_cv_dlopen=LoadLibrary
14755 lt_cv_dlopen_libs=
14756 ;;
14757
14758 cygwin*)
14759 lt_cv_dlopen=dlopen
14760 lt_cv_dlopen_libs=
14761 ;;
14762
14763 darwin*)
14764 # if libdl is installed we need to link against it
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14766$as_echo_n "checking for dlopen in -ldl... " >&6; }
14767if ${ac_cv_lib_dl_dlopen+:} false; then :
14768 $as_echo_n "(cached) " >&6
14769else
14770 ac_check_lib_save_LIBS=$LIBS
14771LIBS="-ldl $LIBS"
14772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h. */
14774
14775
14776#ifdef __cplusplus
14777extern "C"
14778#endif
14779char dlopen ();
14780int main (void)
14781{
14782return dlopen ();
14783 ;
14784 return 0;
14785}
14786_ACEOF
14787if ac_fn_c_try_link "$LINENO"; then :
14788 ac_cv_lib_dl_dlopen=yes
14789else
14790 ac_cv_lib_dl_dlopen=no
14791fi
14792rm -f core conftest.err conftest.$ac_objext \
14793 conftest$ac_exeext conftest.$ac_ext
14794LIBS=$ac_check_lib_save_LIBS
14795fi
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14797$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14798if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14799 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14800else
14801
14802 lt_cv_dlopen=dyld
14803 lt_cv_dlopen_libs=
14804 lt_cv_dlopen_self=yes
14805
14806fi
14807
14808 ;;
14809
14810 tpf*)
14811 # Don't try to run any link tests for TPF. We know it's impossible
14812 # because TPF is a cross-compiler, and we know how we open DSOs.
14813 lt_cv_dlopen=dlopen
14814 lt_cv_dlopen_libs=
14815 lt_cv_dlopen_self=no
14816 ;;
14817
14818 *)
14819 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14820if test "x$ac_cv_func_shl_load" = xyes; then :
14821 lt_cv_dlopen=shl_load
14822else
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14824$as_echo_n "checking for shl_load in -ldld... " >&6; }
14825if ${ac_cv_lib_dld_shl_load+:} false; then :
14826 $as_echo_n "(cached) " >&6
14827else
14828 ac_check_lib_save_LIBS=$LIBS
14829LIBS="-ldld $LIBS"
14830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831/* end confdefs.h. */
14832
14833
14834#ifdef __cplusplus
14835extern "C"
14836#endif
14837char shl_load ();
14838int main (void)
14839{
14840return shl_load ();
14841 ;
14842 return 0;
14843}
14844_ACEOF
14845if ac_fn_c_try_link "$LINENO"; then :
14846 ac_cv_lib_dld_shl_load=yes
14847else
14848 ac_cv_lib_dld_shl_load=no
14849fi
14850rm -f core conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
14852LIBS=$ac_check_lib_save_LIBS
14853fi
14854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14855$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14856if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14857 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14858else
14859 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14860if test "x$ac_cv_func_dlopen" = xyes; then :
14861 lt_cv_dlopen=dlopen
14862else
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14864$as_echo_n "checking for dlopen in -ldl... " >&6; }
14865if ${ac_cv_lib_dl_dlopen+:} false; then :
14866 $as_echo_n "(cached) " >&6
14867else
14868 ac_check_lib_save_LIBS=$LIBS
14869LIBS="-ldl $LIBS"
14870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871/* end confdefs.h. */
14872
14873
14874#ifdef __cplusplus
14875extern "C"
14876#endif
14877char dlopen ();
14878int main (void)
14879{
14880return dlopen ();
14881 ;
14882 return 0;
14883}
14884_ACEOF
14885if ac_fn_c_try_link "$LINENO"; then :
14886 ac_cv_lib_dl_dlopen=yes
14887else
14888 ac_cv_lib_dl_dlopen=no
14889fi
14890rm -f core conftest.err conftest.$ac_objext \
14891 conftest$ac_exeext conftest.$ac_ext
14892LIBS=$ac_check_lib_save_LIBS
14893fi
14894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14895$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14896if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14897 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14898else
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14900$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14901if ${ac_cv_lib_svld_dlopen+:} false; then :
14902 $as_echo_n "(cached) " >&6
14903else
14904 ac_check_lib_save_LIBS=$LIBS
14905LIBS="-lsvld $LIBS"
14906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907/* end confdefs.h. */
14908
14909
14910#ifdef __cplusplus
14911extern "C"
14912#endif
14913char dlopen ();
14914int main (void)
14915{
14916return dlopen ();
14917 ;
14918 return 0;
14919}
14920_ACEOF
14921if ac_fn_c_try_link "$LINENO"; then :
14922 ac_cv_lib_svld_dlopen=yes
14923else
14924 ac_cv_lib_svld_dlopen=no
14925fi
14926rm -f core conftest.err conftest.$ac_objext \
14927 conftest$ac_exeext conftest.$ac_ext
14928LIBS=$ac_check_lib_save_LIBS
14929fi
14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14931$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14932if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14933 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14934else
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14936$as_echo_n "checking for dld_link in -ldld... " >&6; }
14937if ${ac_cv_lib_dld_dld_link+:} false; then :
14938 $as_echo_n "(cached) " >&6
14939else
14940 ac_check_lib_save_LIBS=$LIBS
14941LIBS="-ldld $LIBS"
14942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h. */
14944
14945
14946#ifdef __cplusplus
14947extern "C"
14948#endif
14949char dld_link ();
14950int main (void)
14951{
14952return dld_link ();
14953 ;
14954 return 0;
14955}
14956_ACEOF
14957if ac_fn_c_try_link "$LINENO"; then :
14958 ac_cv_lib_dld_dld_link=yes
14959else
14960 ac_cv_lib_dld_dld_link=no
14961fi
14962rm -f core conftest.err conftest.$ac_objext \
14963 conftest$ac_exeext conftest.$ac_ext
14964LIBS=$ac_check_lib_save_LIBS
14965fi
14966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14967$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14968if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14969 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14970fi
14971
14972
14973fi
14974
14975
14976fi
14977
14978
14979fi
14980
14981
14982fi
14983
14984
14985fi
14986
14987 ;;
14988 esac
14989
14990 if test no = "$lt_cv_dlopen"; then
14991 enable_dlopen=no
14992 else
14993 enable_dlopen=yes
14994 fi
14995
14996 case $lt_cv_dlopen in
14997 dlopen)
14998 save_CPPFLAGS=$CPPFLAGS
14999 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15000
15001 save_LDFLAGS=$LDFLAGS
15002 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15003
15004 save_LIBS=$LIBS
15005 LIBS="$lt_cv_dlopen_libs $LIBS"
15006
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15008$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15009if ${lt_cv_dlopen_self+:} false; then :
15010 $as_echo_n "(cached) " >&6
15011else
15012 if test yes = "$cross_compiling"; then :
15013 lt_cv_dlopen_self=cross
15014else
15015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15016 lt_status=$lt_dlunknown
15017 cat > conftest.$ac_ext <<_LT_EOF
15018#line $LINENO "configure"
15019#include "confdefs.h"
15020
15021#if HAVE_DLFCN_H
15022#include <dlfcn.h>
15023#endif
15024
15025#include <stdio.h>
15026
15027#ifdef RTLD_GLOBAL
15028# define LT_DLGLOBAL RTLD_GLOBAL
15029#else
15030# ifdef DL_GLOBAL
15031# define LT_DLGLOBAL DL_GLOBAL
15032# else
15033# define LT_DLGLOBAL 0
15034# endif
15035#endif
15036
15037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15038 find out it does not work in some platform. */
15039#ifndef LT_DLLAZY_OR_NOW
15040# ifdef RTLD_LAZY
15041# define LT_DLLAZY_OR_NOW RTLD_LAZY
15042# else
15043# ifdef DL_LAZY
15044# define LT_DLLAZY_OR_NOW DL_LAZY
15045# else
15046# ifdef RTLD_NOW
15047# define LT_DLLAZY_OR_NOW RTLD_NOW
15048# else
15049# ifdef DL_NOW
15050# define LT_DLLAZY_OR_NOW DL_NOW
15051# else
15052# define LT_DLLAZY_OR_NOW 0
15053# endif
15054# endif
15055# endif
15056# endif
15057#endif
15058
15059/* When -fvisibility=hidden is used, assume the code has been annotated
15060 correspondingly for the symbols needed. */
15061#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15062int fnord () __attribute__((visibility("default")));
15063#endif
15064
15065int fnord () { return 42; }
15066int main ()
15067{
15068 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15069 int status = $lt_dlunknown;
15070
15071 if (self)
15072 {
15073 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15074 else
15075 {
15076 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15077 else puts (dlerror ());
15078 }
15079 /* dlclose (self); */
15080 }
15081 else
15082 puts (dlerror ());
15083
15084 return status;
15085}
15086_LT_EOF
15087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15088 (eval $ac_link) 2>&5
15089 ac_status=$?
15090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15091 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15092 (./conftest; exit; ) >&5 2>/dev/null
15093 lt_status=$?
15094 case x$lt_status in
15095 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15096 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15097 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15098 esac
15099 else :
15100 # compilation failed
15101 lt_cv_dlopen_self=no
15102 fi
15103fi
15104rm -fr conftest*
15105
15106
15107fi
15108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15109$as_echo "$lt_cv_dlopen_self" >&6; }
15110
15111 if test yes = "$lt_cv_dlopen_self"; then
15112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15114$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15115if ${lt_cv_dlopen_self_static+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117else
15118 if test yes = "$cross_compiling"; then :
15119 lt_cv_dlopen_self_static=cross
15120else
15121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15122 lt_status=$lt_dlunknown
15123 cat > conftest.$ac_ext <<_LT_EOF
15124#line $LINENO "configure"
15125#include "confdefs.h"
15126
15127#if HAVE_DLFCN_H
15128#include <dlfcn.h>
15129#endif
15130
15131#include <stdio.h>
15132
15133#ifdef RTLD_GLOBAL
15134# define LT_DLGLOBAL RTLD_GLOBAL
15135#else
15136# ifdef DL_GLOBAL
15137# define LT_DLGLOBAL DL_GLOBAL
15138# else
15139# define LT_DLGLOBAL 0
15140# endif
15141#endif
15142
15143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15144 find out it does not work in some platform. */
15145#ifndef LT_DLLAZY_OR_NOW
15146# ifdef RTLD_LAZY
15147# define LT_DLLAZY_OR_NOW RTLD_LAZY
15148# else
15149# ifdef DL_LAZY
15150# define LT_DLLAZY_OR_NOW DL_LAZY
15151# else
15152# ifdef RTLD_NOW
15153# define LT_DLLAZY_OR_NOW RTLD_NOW
15154# else
15155# ifdef DL_NOW
15156# define LT_DLLAZY_OR_NOW DL_NOW
15157# else
15158# define LT_DLLAZY_OR_NOW 0
15159# endif
15160# endif
15161# endif
15162# endif
15163#endif
15164
15165/* When -fvisibility=hidden is used, assume the code has been annotated
15166 correspondingly for the symbols needed. */
15167#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15168int fnord () __attribute__((visibility("default")));
15169#endif
15170
15171int fnord () { return 42; }
15172int main ()
15173{
15174 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15175 int status = $lt_dlunknown;
15176
15177 if (self)
15178 {
15179 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15180 else
15181 {
15182 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15183 else puts (dlerror ());
15184 }
15185 /* dlclose (self); */
15186 }
15187 else
15188 puts (dlerror ());
15189
15190 return status;
15191}
15192_LT_EOF
15193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15194 (eval $ac_link) 2>&5
15195 ac_status=$?
15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15198 (./conftest; exit; ) >&5 2>/dev/null
15199 lt_status=$?
15200 case x$lt_status in
15201 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15202 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15203 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15204 esac
15205 else :
15206 # compilation failed
15207 lt_cv_dlopen_self_static=no
15208 fi
15209fi
15210rm -fr conftest*
15211
15212
15213fi
15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15215$as_echo "$lt_cv_dlopen_self_static" >&6; }
15216 fi
15217
15218 CPPFLAGS=$save_CPPFLAGS
15219 LDFLAGS=$save_LDFLAGS
15220 LIBS=$save_LIBS
15221 ;;
15222 esac
15223
15224 case $lt_cv_dlopen_self in
15225 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15226 *) enable_dlopen_self=unknown ;;
15227 esac
15228
15229 case $lt_cv_dlopen_self_static in
15230 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15231 *) enable_dlopen_self_static=unknown ;;
15232 esac
15233fi
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251striplib=
15252old_striplib=
15253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15254$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15255if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15257 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15259$as_echo "yes" >&6; }
15260else
15261# FIXME - insert some real tests, host_os isn't really good enough
15262 case $host_os in
15263 darwin*)
15264 if test -n "$STRIP"; then
15265 striplib="$STRIP -x"
15266 old_striplib="$STRIP -S"
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15268$as_echo "yes" >&6; }
15269 else
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15271$as_echo "no" >&6; }
15272 fi
15273 ;;
15274 *)
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15276$as_echo "no" >&6; }
15277 ;;
15278 esac
15279fi
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292 # Report what library types will actually be built
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15294$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15296$as_echo "$can_build_shared" >&6; }
15297
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15299$as_echo_n "checking whether to build shared libraries... " >&6; }
15300 test no = "$can_build_shared" && enable_shared=no
15301
15302 # On AIX, shared libraries and static libraries use the same namespace, and
15303 # are all built from PIC.
15304 case $host_os in
15305 aix3*)
15306 test yes = "$enable_shared" && enable_static=no
15307 if test -n "$RANLIB"; then
15308 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15309 postinstall_cmds='$RANLIB $lib'
15310 fi
15311 ;;
15312
15313 aix[4-9]*)
15314 if test ia64 != "$host_cpu"; then
15315 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15316 yes,aix,yes) ;; # shared object as lib.so file only
15317 yes,svr4,*) ;; # shared object as lib.so archive member only
15318 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15319 esac
15320 fi
15321 ;;
15322 esac
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15324$as_echo "$enable_shared" >&6; }
15325
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15327$as_echo_n "checking whether to build static libraries... " >&6; }
15328 # Make sure either enable_shared or enable_static is yes.
15329 test yes = "$enable_shared" || enable_static=yes
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15331$as_echo "$enable_static" >&6; }
15332
15333
15334
15335
15336fi
15337ac_ext=c
15338ac_cpp='$CPP $CPPFLAGS'
15339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341ac_compiler_gnu=$ac_cv_c_compiler_gnu
15342
15343CC=$lt_save_CC
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359 ac_config_commands="$ac_config_commands libtool"
15360
15361
15362
15363
15364# Only expand once:
15365
15366
15367## --------------------- ##
15368## End of libtool code ##
15369## --------------------- ##
15370
15371#
15372# Verify if finally libtool shared libraries will be built
15373#
15374
15375case "x$enable_shared" in # ((
15376 xyes | xno)
15377 xc_lt_build_shared=$enable_shared
15378 ;;
15379 *)
15380 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15381 ;;
15382esac
15383
15384#
15385# Verify if finally libtool static libraries will be built
15386#
15387
15388case "x$enable_static" in # ((
15389 xyes | xno)
15390 xc_lt_build_static=$enable_static
15391 ;;
15392 *)
15393 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15394 ;;
15395esac
15396
15397#
15398# Verify if libtool shared libraries should be linked using flag -version-info
15399#
15400
15401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15402$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15403xc_lt_shlib_use_version_info='yes'
15404if test "x$version_type" = 'xnone'; then
15405 xc_lt_shlib_use_version_info='no'
15406fi
15407case $host_os in # (
15408 amigaos*)
15409 xc_lt_shlib_use_version_info='yes'
15410 ;;
15411esac
15412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15413$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15414
15415#
15416# Verify if libtool shared libraries should be linked using flag -no-undefined
15417#
15418
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15420$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15421xc_lt_shlib_use_no_undefined='no'
15422if test "x$allow_undefined" = 'xno'; then
15423 xc_lt_shlib_use_no_undefined='yes'
15424elif test "x$allow_undefined_flag" = 'xunsupported'; then
15425 xc_lt_shlib_use_no_undefined='yes'
15426fi
15427case $host_os in # (
15428 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15429 xc_lt_shlib_use_no_undefined='yes'
15430 ;;
15431esac
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15433$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15434
15435#
15436# Verify if libtool shared libraries should be linked using flag -mimpure-text
15437#
15438
15439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15440$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15441xc_lt_shlib_use_mimpure_text='no'
15442case $host_os in # (
15443 solaris2*)
15444 if test "x$GCC" = 'xyes'; then
15445 xc_lt_shlib_use_mimpure_text='yes'
15446 fi
15447 ;;
15448esac
15449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15450$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15451
15452#
15453# Find out whether libtool libraries would be built wit PIC
15454#
15455
15456case "x$pic_mode" in # ((((
15457 xdefault)
15458 xc_lt_build_shared_with_pic='yes'
15459 xc_lt_build_static_with_pic='no'
15460 ;;
15461 xyes)
15462 xc_lt_build_shared_with_pic='yes'
15463 xc_lt_build_static_with_pic='yes'
15464 ;;
15465 xno)
15466 xc_lt_build_shared_with_pic='no'
15467 xc_lt_build_static_with_pic='no'
15468 ;;
15469 *)
15470 xc_lt_build_shared_with_pic='unknown'
15471 xc_lt_build_static_with_pic='unknown'
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15473$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15474 ;;
15475esac
15476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15477$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15479$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15481$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15483$as_echo "$xc_lt_build_static_with_pic" >&6; }
15484
15485#
15486# Verify if libtool shared libraries will be built while static not built
15487#
15488
15489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15490$as_echo_n "checking whether to build shared libraries only... " >&6; }
15491if test "$xc_lt_build_shared" = 'yes' &&
15492 test "$xc_lt_build_static" = 'no'; then
15493 xc_lt_build_shared_only='yes'
15494else
15495 xc_lt_build_shared_only='no'
15496fi
15497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15498$as_echo "$xc_lt_build_shared_only" >&6; }
15499
15500#
15501# Verify if libtool static libraries will be built while shared not built
15502#
15503
15504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15505$as_echo_n "checking whether to build static libraries only... " >&6; }
15506if test "$xc_lt_build_static" = 'yes' &&
15507 test "$xc_lt_build_shared" = 'no'; then
15508 xc_lt_build_static_only='yes'
15509else
15510 xc_lt_build_static_only='no'
15511fi
15512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15513$as_echo "$xc_lt_build_static_only" >&6; }
15514
15515
15516
15517
15518#
15519# Automake conditionals based on libtool related checks
15520#
15521
15522 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15523 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15524 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15525else
15526 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15527 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15528fi
15529
15530 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15531 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15532 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15533else
15534 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15535 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15536fi
15537
15538 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15539 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15540 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15541else
15542 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15543 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15544fi
15545
15546
15547#
15548# Due to libtool and automake machinery limitations of not allowing
15549# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15550# inclusion of these in shared or static libraries, we are forced to
15551# build using separate configure runs for shared and static libraries
15552# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15553# to compile objects for each kind of library. Notice that relying on
15554# the '-DPIC' CFLAG that libtool provides is not valid given that the
15555# user might for example choose to build static libraries with PIC.
15556#
15557
15558#
15559# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15560# targeting a static library and not building its shared counterpart.
15561#
15562
15563 if test "x$xc_lt_build_static_only" = 'xyes'; then
15564 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15565 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15566else
15567 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15568 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15569fi
15570
15571
15572#
15573# Make staticlib CPPFLAG variable and its definition visible in output
15574# files unconditionally, providing an empty definition unless strictly
15575# targeting a static library and not building its shared counterpart.
15576#
15577
15578CPPFLAG_CURL_STATICLIB=
15579if test "x$xc_lt_build_static_only" = 'xyes'; then
15580 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15581fi
15582
15583
15584
15585# Determine whether all dependent libraries must be specified when linking
15586if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15587then
15588 REQUIRE_LIB_DEPS=no
15589else
15590 REQUIRE_LIB_DEPS=yes
15591fi
15592
15593 if test x$REQUIRE_LIB_DEPS = xyes; then
15594 USE_EXPLICIT_LIB_DEPS_TRUE=
15595 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15596else
15597 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15598 USE_EXPLICIT_LIB_DEPS_FALSE=
15599fi
15600
15601
15602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15603$as_echo_n "checking for inline... " >&6; }
15604if ${ac_cv_c_inline+:} false; then :
15605 $as_echo_n "(cached) " >&6
15606else
15607 ac_cv_c_inline=no
15608for ac_kw in inline __inline__ __inline; do
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610/* end confdefs.h. */
15611#ifndef __cplusplus
15612typedef int foo_t;
15613static $ac_kw foo_t static_foo () {return 0; }
15614$ac_kw foo_t foo () {return 0; }
15615#endif
15616
15617_ACEOF
15618if ac_fn_c_try_compile "$LINENO"; then :
15619 ac_cv_c_inline=$ac_kw
15620fi
15621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622 test "$ac_cv_c_inline" != no && break
15623done
15624
15625fi
15626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15627$as_echo "$ac_cv_c_inline" >&6; }
15628
15629case $ac_cv_c_inline in
15630 inline | yes) ;;
15631 *)
15632 case $ac_cv_c_inline in
15633 no) ac_val=;;
15634 *) ac_val=$ac_cv_c_inline;;
15635 esac
15636 cat >>confdefs.h <<_ACEOF
15637#ifndef __cplusplus
15638#define inline $ac_val
15639#endif
15640_ACEOF
15641 ;;
15642esac
15643
15644
15645
15646
Alex Deymo486467e2017-12-19 19:04:07 +010015647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15648$as_echo_n "checking if cpp -P is needed... " >&6; }
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650/* end confdefs.h. */
15651
15652 #include <errno.h>
15653TEST EINVAL TEST
15654
15655_ACEOF
15656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15657 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15658 cpp=no
15659else
15660 cpp=yes
15661fi
15662rm -f conftest*
15663
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15665$as_echo "$cpp" >&6; }
15666
15667 if test "x$cpp" = "xyes"; then
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15669$as_echo_n "checking if cpp -P works... " >&6; }
15670 OLDCPPFLAGS=$CPPFLAGS
15671 CPPFLAGS="$CPPFLAGS -P"
15672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673/* end confdefs.h. */
15674
15675 #include <errno.h>
15676TEST EINVAL TEST
15677
15678_ACEOF
15679if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15680 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15681 cpp_p=yes
15682else
15683 cpp_p=no
15684fi
15685rm -f conftest*
15686
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15688$as_echo "$cpp_p" >&6; }
15689
15690 if test "x$cpp_p" = "xno"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15692$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15693 # without -P
15694 CPPPFLAG=""
15695 else
15696 # with -P
15697 CPPPFLAG="-P"
15698 fi
15699 CPPFLAGS=$OLDCPPFLAGS
15700 else
15701 # without -P
15702 CPPPFLAG=""
15703 fi
15704
15705
Elliott Hughes82be86d2017-09-20 17:00:17 -070015706 #
15707 compiler_id="unknown"
15708 compiler_num="0"
15709 #
15710 flags_dbg_all="unknown"
15711 flags_dbg_yes="unknown"
15712 flags_dbg_off="unknown"
15713 flags_opt_all="unknown"
15714 flags_opt_yes="unknown"
15715 flags_opt_off="unknown"
15716 #
15717 flags_prefer_cppflags="no"
15718 #
15719
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15721$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15722
15723 OLDCPPFLAGS=$CPPFLAGS
15724 # CPPPFLAG comes from CURL_CPP_P
15725 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15726 if test -z "$SED"; then
15727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15728 fi
15729 if test -z "$GREP"; then
15730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15731 fi
15732
15733 tmp_exp=""
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735/* end confdefs.h. */
15736
15737
15738#ifdef __DECC
15739CURL_DEF_TOKEN __DECC
15740#endif
15741
15742
15743_ACEOF
15744if ac_fn_c_try_cpp "$LINENO"; then :
15745
15746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15749 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15750 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15751 tmp_exp=""
15752 fi
15753
15754fi
15755rm -f conftest.err conftest.i conftest.$ac_ext
15756 if test -z "$tmp_exp"; then
15757 curl_cv_have_def___DECC=no
15758
15759 else
15760 curl_cv_have_def___DECC=yes
15761 curl_cv_def___DECC=$tmp_exp
15762
15763 fi
15764 CPPFLAGS=$OLDCPPFLAGS
15765
15766
15767 OLDCPPFLAGS=$CPPFLAGS
15768 # CPPPFLAG comes from CURL_CPP_P
15769 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15770 if test -z "$SED"; then
15771 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15772 fi
15773 if test -z "$GREP"; then
15774 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15775 fi
15776
15777 tmp_exp=""
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779/* end confdefs.h. */
15780
15781
15782#ifdef __DECC_VER
15783CURL_DEF_TOKEN __DECC_VER
15784#endif
15785
15786
15787_ACEOF
15788if ac_fn_c_try_cpp "$LINENO"; then :
15789
15790 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15791 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15792 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15793 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15794 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15795 tmp_exp=""
15796 fi
15797
15798fi
15799rm -f conftest.err conftest.i conftest.$ac_ext
15800 if test -z "$tmp_exp"; then
15801 curl_cv_have_def___DECC_VER=no
15802
15803 else
15804 curl_cv_have_def___DECC_VER=yes
15805 curl_cv_def___DECC_VER=$tmp_exp
15806
15807 fi
15808 CPPFLAGS=$OLDCPPFLAGS
15809
15810 if test "$curl_cv_have_def___DECC" = "yes" &&
15811 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813$as_echo "yes" >&6; }
15814 compiler_id="DEC_C"
15815 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15816 flags_dbg_yes="-g2"
15817 flags_dbg_off=""
15818 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15819 flags_opt_yes="-O1"
15820 flags_opt_off="-O0"
15821 else
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15823$as_echo "no" >&6; }
15824 fi
15825
15826
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15828$as_echo_n "checking if compiler is HP-UX C... " >&6; }
15829
15830 OLDCPPFLAGS=$CPPFLAGS
15831 # CPPPFLAG comes from CURL_CPP_P
15832 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15833 if test -z "$SED"; then
15834 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15835 fi
15836 if test -z "$GREP"; then
15837 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15838 fi
15839
15840 tmp_exp=""
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842/* end confdefs.h. */
15843
15844
15845#ifdef __HP_cc
15846CURL_DEF_TOKEN __HP_cc
15847#endif
15848
15849
15850_ACEOF
15851if ac_fn_c_try_cpp "$LINENO"; then :
15852
15853 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15854 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15855 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15856 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15857 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15858 tmp_exp=""
15859 fi
15860
15861fi
15862rm -f conftest.err conftest.i conftest.$ac_ext
15863 if test -z "$tmp_exp"; then
15864 curl_cv_have_def___HP_cc=no
15865
15866 else
15867 curl_cv_have_def___HP_cc=yes
15868 curl_cv_def___HP_cc=$tmp_exp
15869
15870 fi
15871 CPPFLAGS=$OLDCPPFLAGS
15872
15873 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15875$as_echo "yes" >&6; }
15876 compiler_id="HP_UX_C"
15877 flags_dbg_all="-g -s"
15878 flags_dbg_yes="-g"
15879 flags_dbg_off="-s"
15880 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15881 flags_opt_yes="+O2"
15882 flags_opt_off="+O0"
15883 else
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885$as_echo "no" >&6; }
15886 fi
15887
15888
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15890$as_echo_n "checking if compiler is IBM C... " >&6; }
15891
15892 OLDCPPFLAGS=$CPPFLAGS
15893 # CPPPFLAG comes from CURL_CPP_P
15894 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15895 if test -z "$SED"; then
15896 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15897 fi
15898 if test -z "$GREP"; then
15899 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15900 fi
15901
15902 tmp_exp=""
15903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h. */
15905
15906
15907#ifdef __IBMC__
15908CURL_DEF_TOKEN __IBMC__
15909#endif
15910
15911
15912_ACEOF
15913if ac_fn_c_try_cpp "$LINENO"; then :
15914
15915 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15916 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15917 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15918 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15919 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15920 tmp_exp=""
15921 fi
15922
15923fi
15924rm -f conftest.err conftest.i conftest.$ac_ext
15925 if test -z "$tmp_exp"; then
15926 curl_cv_have_def___IBMC__=no
15927
15928 else
15929 curl_cv_have_def___IBMC__=yes
15930 curl_cv_def___IBMC__=$tmp_exp
15931
15932 fi
15933 CPPFLAGS=$OLDCPPFLAGS
15934
15935 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15937$as_echo "yes" >&6; }
15938 compiler_id="IBM_C"
15939 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15940 flags_dbg_yes="-g"
15941 flags_dbg_off=""
15942 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15943 flags_opt_all="$flags_opt_all -qnooptimize"
15944 flags_opt_all="$flags_opt_all -qoptimize=0"
15945 flags_opt_all="$flags_opt_all -qoptimize=1"
15946 flags_opt_all="$flags_opt_all -qoptimize=2"
15947 flags_opt_all="$flags_opt_all -qoptimize=3"
15948 flags_opt_all="$flags_opt_all -qoptimize=4"
15949 flags_opt_all="$flags_opt_all -qoptimize=5"
15950 flags_opt_yes="-O2"
15951 flags_opt_off="-qnooptimize"
15952 flags_prefer_cppflags="yes"
15953 else
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15955$as_echo "no" >&6; }
15956 fi
15957
15958
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15960$as_echo_n "checking if compiler is Intel C... " >&6; }
15961
15962 OLDCPPFLAGS=$CPPFLAGS
15963 # CPPPFLAG comes from CURL_CPP_P
15964 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15965 if test -z "$SED"; then
15966 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15967 fi
15968 if test -z "$GREP"; then
15969 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15970 fi
15971
15972 tmp_exp=""
15973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974/* end confdefs.h. */
15975
15976
15977#ifdef __INTEL_COMPILER
15978CURL_DEF_TOKEN __INTEL_COMPILER
15979#endif
15980
15981
15982_ACEOF
15983if ac_fn_c_try_cpp "$LINENO"; then :
15984
15985 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15986 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15987 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15988 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15989 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15990 tmp_exp=""
15991 fi
15992
15993fi
15994rm -f conftest.err conftest.i conftest.$ac_ext
15995 if test -z "$tmp_exp"; then
15996 curl_cv_have_def___INTEL_COMPILER=no
15997
15998 else
15999 curl_cv_have_def___INTEL_COMPILER=yes
16000 curl_cv_def___INTEL_COMPILER=$tmp_exp
16001
16002 fi
16003 CPPFLAGS=$OLDCPPFLAGS
16004
16005 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16007$as_echo "yes" >&6; }
16008 compiler_num="$curl_cv_def___INTEL_COMPILER"
16009
16010 OLDCPPFLAGS=$CPPFLAGS
16011 # CPPPFLAG comes from CURL_CPP_P
16012 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16013 if test -z "$SED"; then
16014 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16015 fi
16016 if test -z "$GREP"; then
16017 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16018 fi
16019
16020 tmp_exp=""
16021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16022/* end confdefs.h. */
16023
16024
16025#ifdef __unix__
16026CURL_DEF_TOKEN __unix__
16027#endif
16028
16029
16030_ACEOF
16031if ac_fn_c_try_cpp "$LINENO"; then :
16032
16033 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16034 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16035 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16036 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16037 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16038 tmp_exp=""
16039 fi
16040
16041fi
16042rm -f conftest.err conftest.i conftest.$ac_ext
16043 if test -z "$tmp_exp"; then
16044 curl_cv_have_def___unix__=no
16045
16046 else
16047 curl_cv_have_def___unix__=yes
16048 curl_cv_def___unix__=$tmp_exp
16049
16050 fi
16051 CPPFLAGS=$OLDCPPFLAGS
16052
16053 if test "$curl_cv_have_def___unix__" = "yes"; then
16054 compiler_id="INTEL_UNIX_C"
16055 flags_dbg_all="-g -g0"
16056 flags_dbg_yes="-g"
16057 flags_dbg_off=""
16058 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16059 flags_opt_yes="-O2"
16060 flags_opt_off="-O0"
16061 else
16062 compiler_id="INTEL_WINDOWS_C"
16063 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16064 flags_dbg_all="$flags_dbg_all /debug"
16065 flags_dbg_all="$flags_dbg_all /debug:none"
16066 flags_dbg_all="$flags_dbg_all /debug:minimal"
16067 flags_dbg_all="$flags_dbg_all /debug:partial"
16068 flags_dbg_all="$flags_dbg_all /debug:full"
16069 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16070 flags_dbg_all="$flags_dbg_all /debug:extended"
16071 flags_dbg_yes="/Zi /Oy-"
16072 flags_dbg_off="/debug:none /Oy-"
16073 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16074 flags_opt_yes="/O2"
16075 flags_opt_off="/Od"
16076 fi
16077 else
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16079$as_echo "no" >&6; }
16080 fi
16081
16082
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16084$as_echo_n "checking if compiler is clang... " >&6; }
16085
16086 OLDCPPFLAGS=$CPPFLAGS
16087 # CPPPFLAG comes from CURL_CPP_P
16088 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16089 if test -z "$SED"; then
16090 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16091 fi
16092 if test -z "$GREP"; then
16093 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16094 fi
16095
16096 tmp_exp=""
16097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098/* end confdefs.h. */
16099
16100
16101#ifdef __clang__
16102CURL_DEF_TOKEN __clang__
16103#endif
16104
16105
16106_ACEOF
16107if ac_fn_c_try_cpp "$LINENO"; then :
16108
16109 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16110 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16111 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16112 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16113 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16114 tmp_exp=""
16115 fi
16116
16117fi
16118rm -f conftest.err conftest.i conftest.$ac_ext
16119 if test -z "$tmp_exp"; then
16120 curl_cv_have_def___clang__=no
16121
16122 else
16123 curl_cv_have_def___clang__=yes
16124 curl_cv_def___clang__=$tmp_exp
16125
16126 fi
16127 CPPFLAGS=$OLDCPPFLAGS
16128
16129 if test "$curl_cv_have_def___clang__" = "yes"; then
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16131$as_echo "yes" >&6; }
Haibo Huang51d9d882019-02-06 01:36:06 -080016132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16133$as_echo_n "checking if compiler is xlclang... " >&6; }
16134
16135 OLDCPPFLAGS=$CPPFLAGS
16136 # CPPPFLAG comes from CURL_CPP_P
16137 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16138 if test -z "$SED"; then
16139 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16140 fi
16141 if test -z "$GREP"; then
16142 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16143 fi
16144
16145 tmp_exp=""
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147/* end confdefs.h. */
16148
16149
16150#ifdef __ibmxl__
16151CURL_DEF_TOKEN __ibmxl__
16152#endif
16153
16154
16155_ACEOF
16156if ac_fn_c_try_cpp "$LINENO"; then :
16157
16158 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16159 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16160 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16161 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16162 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16163 tmp_exp=""
16164 fi
16165
16166fi
16167rm -f conftest.err conftest.i conftest.$ac_ext
16168 if test -z "$tmp_exp"; then
16169 curl_cv_have_def___ibmxl__=no
16170
16171 else
16172 curl_cv_have_def___ibmxl__=yes
16173 curl_cv_def___ibmxl__=$tmp_exp
16174
16175 fi
16176 CPPFLAGS=$OLDCPPFLAGS
16177
16178 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16180$as_echo "yes" >&6; }
16181 compiler_id="XLCLANG"
16182 else
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184$as_echo "no" >&6; }
16185 compiler_id="CLANG"
16186 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070016187 fullclangver=`$CC -v 2>&1 | grep version`
16188 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16189 if test -z "$clangver"; then
16190 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016191 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016192 else
16193 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16194 fi
16195 fi
16196 clangvhi=`echo $clangver | cut -d . -f1`
16197 clangvlo=`echo $clangver | cut -d . -f2`
16198 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16199 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16200 flags_dbg_all="$flags_dbg_all -ggdb"
16201 flags_dbg_all="$flags_dbg_all -gstabs"
16202 flags_dbg_all="$flags_dbg_all -gstabs+"
16203 flags_dbg_all="$flags_dbg_all -gcoff"
16204 flags_dbg_all="$flags_dbg_all -gxcoff"
16205 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16206 flags_dbg_all="$flags_dbg_all -gvms"
16207 flags_dbg_yes="-g"
16208 flags_dbg_off=""
16209 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16210 flags_opt_yes="-Os"
16211 flags_opt_off="-O0"
16212 else
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214$as_echo "no" >&6; }
16215 fi
16216
16217
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16219$as_echo_n "checking if compiler is GNU C... " >&6; }
16220
16221 OLDCPPFLAGS=$CPPFLAGS
16222 # CPPPFLAG comes from CURL_CPP_P
16223 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16224 if test -z "$SED"; then
16225 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16226 fi
16227 if test -z "$GREP"; then
16228 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16229 fi
16230
16231 tmp_exp=""
16232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16233/* end confdefs.h. */
16234
16235
16236#ifdef __GNUC__
16237CURL_DEF_TOKEN __GNUC__
16238#endif
16239
16240
16241_ACEOF
16242if ac_fn_c_try_cpp "$LINENO"; then :
16243
16244 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16245 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16246 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16247 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16248 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16249 tmp_exp=""
16250 fi
16251
16252fi
16253rm -f conftest.err conftest.i conftest.$ac_ext
16254 if test -z "$tmp_exp"; then
16255 curl_cv_have_def___GNUC__=no
16256
16257 else
16258 curl_cv_have_def___GNUC__=yes
16259 curl_cv_def___GNUC__=$tmp_exp
16260
16261 fi
16262 CPPFLAGS=$OLDCPPFLAGS
16263
16264 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16265 test "$compiler_id" = "unknown"; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16267$as_echo "yes" >&6; }
16268 compiler_id="GNU_C"
16269 gccver=`$CC -dumpversion`
16270 gccvhi=`echo $gccver | cut -d . -f1`
16271 gccvlo=`echo $gccver | cut -d . -f2`
16272 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16273 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16274 flags_dbg_all="$flags_dbg_all -ggdb"
16275 flags_dbg_all="$flags_dbg_all -gstabs"
16276 flags_dbg_all="$flags_dbg_all -gstabs+"
16277 flags_dbg_all="$flags_dbg_all -gcoff"
16278 flags_dbg_all="$flags_dbg_all -gxcoff"
16279 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16280 flags_dbg_all="$flags_dbg_all -gvms"
16281 flags_dbg_yes="-g"
16282 flags_dbg_off=""
16283 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16284 flags_opt_yes="-O2"
16285 flags_opt_off="-O0"
16286
16287 OLDCPPFLAGS=$CPPFLAGS
16288 # CPPPFLAG comes from CURL_CPP_P
16289 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16290 if test -z "$SED"; then
16291 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16292 fi
16293 if test -z "$GREP"; then
16294 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16295 fi
16296
16297 tmp_exp=""
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299/* end confdefs.h. */
16300
16301
16302#ifdef _WIN32
16303CURL_DEF_TOKEN _WIN32
16304#endif
16305
16306
16307_ACEOF
16308if ac_fn_c_try_cpp "$LINENO"; then :
16309
16310 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16311 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16312 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16313 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16314 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16315 tmp_exp=""
16316 fi
16317
16318fi
16319rm -f conftest.err conftest.i conftest.$ac_ext
16320 if test -z "$tmp_exp"; then
16321 curl_cv_have_def__WIN32=no
16322
16323 else
16324 curl_cv_have_def__WIN32=yes
16325 curl_cv_def__WIN32=$tmp_exp
16326
16327 fi
16328 CPPFLAGS=$OLDCPPFLAGS
16329
16330 else
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332$as_echo "no" >&6; }
16333 fi
16334
16335
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16337$as_echo_n "checking if compiler is LCC... " >&6; }
16338
16339 OLDCPPFLAGS=$CPPFLAGS
16340 # CPPPFLAG comes from CURL_CPP_P
16341 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16342 if test -z "$SED"; then
16343 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16344 fi
16345 if test -z "$GREP"; then
16346 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16347 fi
16348
16349 tmp_exp=""
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351/* end confdefs.h. */
16352
16353
16354#ifdef __LCC__
16355CURL_DEF_TOKEN __LCC__
16356#endif
16357
16358
16359_ACEOF
16360if ac_fn_c_try_cpp "$LINENO"; then :
16361
16362 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16363 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16364 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16365 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16366 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16367 tmp_exp=""
16368 fi
16369
16370fi
16371rm -f conftest.err conftest.i conftest.$ac_ext
16372 if test -z "$tmp_exp"; then
16373 curl_cv_have_def___LCC__=no
16374
16375 else
16376 curl_cv_have_def___LCC__=yes
16377 curl_cv_def___LCC__=$tmp_exp
16378
16379 fi
16380 CPPFLAGS=$OLDCPPFLAGS
16381
16382 if test "$curl_cv_have_def___LCC__" = "yes"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16384$as_echo "yes" >&6; }
16385 compiler_id="LCC"
16386 flags_dbg_all="-g"
16387 flags_dbg_yes="-g"
16388 flags_dbg_off=""
16389 flags_opt_all=""
16390 flags_opt_yes=""
16391 flags_opt_off=""
16392 else
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16394$as_echo "no" >&6; }
16395 fi
16396
16397
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16399$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16400
16401 OLDCPPFLAGS=$CPPFLAGS
16402 # CPPPFLAG comes from CURL_CPP_P
16403 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16404 if test -z "$SED"; then
16405 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16406 fi
16407 if test -z "$GREP"; then
16408 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16409 fi
16410
16411 tmp_exp=""
16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16413/* end confdefs.h. */
16414
16415
16416#ifdef __GNUC__
16417CURL_DEF_TOKEN __GNUC__
16418#endif
16419
16420
16421_ACEOF
16422if ac_fn_c_try_cpp "$LINENO"; then :
16423
16424 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16425 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16426 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16427 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16428 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16429 tmp_exp=""
16430 fi
16431
16432fi
16433rm -f conftest.err conftest.i conftest.$ac_ext
16434 if test -z "$tmp_exp"; then
16435 curl_cv_have_def___GNUC__=no
16436
16437 else
16438 curl_cv_have_def___GNUC__=yes
16439 curl_cv_def___GNUC__=$tmp_exp
16440
16441 fi
16442 CPPFLAGS=$OLDCPPFLAGS
16443
16444
16445 OLDCPPFLAGS=$CPPFLAGS
16446 # CPPPFLAG comes from CURL_CPP_P
16447 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16448 if test -z "$SED"; then
16449 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16450 fi
16451 if test -z "$GREP"; then
16452 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16453 fi
16454
16455 tmp_exp=""
16456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457/* end confdefs.h. */
16458
16459
16460#ifdef _COMPILER_VERSION
16461CURL_DEF_TOKEN _COMPILER_VERSION
16462#endif
16463
16464
16465_ACEOF
16466if ac_fn_c_try_cpp "$LINENO"; then :
16467
16468 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16469 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16470 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16471 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16472 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16473 tmp_exp=""
16474 fi
16475
16476fi
16477rm -f conftest.err conftest.i conftest.$ac_ext
16478 if test -z "$tmp_exp"; then
16479 curl_cv_have_def__COMPILER_VERSION=no
16480
16481 else
16482 curl_cv_have_def__COMPILER_VERSION=yes
16483 curl_cv_def__COMPILER_VERSION=$tmp_exp
16484
16485 fi
16486 CPPFLAGS=$OLDCPPFLAGS
16487
16488
16489 OLDCPPFLAGS=$CPPFLAGS
16490 # CPPPFLAG comes from CURL_CPP_P
16491 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16492 if test -z "$SED"; then
16493 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16494 fi
16495 if test -z "$GREP"; then
16496 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16497 fi
16498
16499 tmp_exp=""
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h. */
16502
16503
16504#ifdef _SGI_COMPILER_VERSION
16505CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16506#endif
16507
16508
16509_ACEOF
16510if ac_fn_c_try_cpp "$LINENO"; then :
16511
16512 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16513 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16514 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16515 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16516 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16517 tmp_exp=""
16518 fi
16519
16520fi
16521rm -f conftest.err conftest.i conftest.$ac_ext
16522 if test -z "$tmp_exp"; then
16523 curl_cv_have_def__SGI_COMPILER_VERSION=no
16524
16525 else
16526 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16527 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16528
16529 fi
16530 CPPFLAGS=$OLDCPPFLAGS
16531
16532 if test "$curl_cv_have_def___GNUC__" = "no" &&
16533 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16534 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16536$as_echo "yes" >&6; }
16537 compiler_id="SGI_MIPSPRO_C"
16538 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16539 flags_dbg_yes="-g"
16540 flags_dbg_off=""
16541 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16542 flags_opt_yes="-O2"
16543 flags_opt_off="-O0"
16544 else
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546$as_echo "no" >&6; }
16547 fi
16548
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16551$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16552
16553 OLDCPPFLAGS=$CPPFLAGS
16554 # CPPPFLAG comes from CURL_CPP_P
16555 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16556 if test -z "$SED"; then
16557 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16558 fi
16559 if test -z "$GREP"; then
16560 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16561 fi
16562
16563 tmp_exp=""
16564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565/* end confdefs.h. */
16566
16567
16568#ifdef __GNUC__
16569CURL_DEF_TOKEN __GNUC__
16570#endif
16571
16572
16573_ACEOF
16574if ac_fn_c_try_cpp "$LINENO"; then :
16575
16576 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16577 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16578 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16579 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16580 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16581 tmp_exp=""
16582 fi
16583
16584fi
16585rm -f conftest.err conftest.i conftest.$ac_ext
16586 if test -z "$tmp_exp"; then
16587 curl_cv_have_def___GNUC__=no
16588
16589 else
16590 curl_cv_have_def___GNUC__=yes
16591 curl_cv_def___GNUC__=$tmp_exp
16592
16593 fi
16594 CPPFLAGS=$OLDCPPFLAGS
16595
16596
16597 OLDCPPFLAGS=$CPPFLAGS
16598 # CPPPFLAG comes from CURL_CPP_P
16599 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16600 if test -z "$SED"; then
16601 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16602 fi
16603 if test -z "$GREP"; then
16604 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16605 fi
16606
16607 tmp_exp=""
16608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609/* end confdefs.h. */
16610
16611
16612#ifdef __sgi
16613CURL_DEF_TOKEN __sgi
16614#endif
16615
16616
16617_ACEOF
16618if ac_fn_c_try_cpp "$LINENO"; then :
16619
16620 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16621 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16622 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16623 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16624 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16625 tmp_exp=""
16626 fi
16627
16628fi
16629rm -f conftest.err conftest.i conftest.$ac_ext
16630 if test -z "$tmp_exp"; then
16631 curl_cv_have_def___sgi=no
16632
16633 else
16634 curl_cv_have_def___sgi=yes
16635 curl_cv_def___sgi=$tmp_exp
16636
16637 fi
16638 CPPFLAGS=$OLDCPPFLAGS
16639
16640 if test "$curl_cv_have_def___GNUC__" = "no" &&
16641 test "$curl_cv_have_def___sgi" = "yes" &&
16642 test "$compiler_id" = "unknown"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16644$as_echo "yes" >&6; }
16645 compiler_id="SGI_MIPS_C"
16646 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16647 flags_dbg_yes="-g"
16648 flags_dbg_off=""
16649 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16650 flags_opt_yes="-O2"
16651 flags_opt_off="-O0"
16652 else
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16654$as_echo "no" >&6; }
16655 fi
16656
16657
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16659$as_echo_n "checking if compiler is SunPro C... " >&6; }
16660
16661 OLDCPPFLAGS=$CPPFLAGS
16662 # CPPPFLAG comes from CURL_CPP_P
16663 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16664 if test -z "$SED"; then
16665 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16666 fi
16667 if test -z "$GREP"; then
16668 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16669 fi
16670
16671 tmp_exp=""
16672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16673/* end confdefs.h. */
16674
16675
16676#ifdef __SUNPRO_C
16677CURL_DEF_TOKEN __SUNPRO_C
16678#endif
16679
16680
16681_ACEOF
16682if ac_fn_c_try_cpp "$LINENO"; then :
16683
16684 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16685 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16686 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16687 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16688 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16689 tmp_exp=""
16690 fi
16691
16692fi
16693rm -f conftest.err conftest.i conftest.$ac_ext
16694 if test -z "$tmp_exp"; then
16695 curl_cv_have_def___SUNPRO_C=no
16696
16697 else
16698 curl_cv_have_def___SUNPRO_C=yes
16699 curl_cv_def___SUNPRO_C=$tmp_exp
16700
16701 fi
16702 CPPFLAGS=$OLDCPPFLAGS
16703
16704 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16706$as_echo "yes" >&6; }
16707 compiler_id="SUNPRO_C"
16708 flags_dbg_all="-g -s"
16709 flags_dbg_yes="-g"
16710 flags_dbg_off="-s"
16711 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16712 flags_opt_yes="-xO2"
16713 flags_opt_off=""
16714 else
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16716$as_echo "no" >&6; }
16717 fi
16718
16719
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16721$as_echo_n "checking if compiler is Tiny C... " >&6; }
16722
16723 OLDCPPFLAGS=$CPPFLAGS
16724 # CPPPFLAG comes from CURL_CPP_P
16725 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16726 if test -z "$SED"; then
16727 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16728 fi
16729 if test -z "$GREP"; then
16730 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16731 fi
16732
16733 tmp_exp=""
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h. */
16736
16737
16738#ifdef __TINYC__
16739CURL_DEF_TOKEN __TINYC__
16740#endif
16741
16742
16743_ACEOF
16744if ac_fn_c_try_cpp "$LINENO"; then :
16745
16746 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16747 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16748 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16749 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16750 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16751 tmp_exp=""
16752 fi
16753
16754fi
16755rm -f conftest.err conftest.i conftest.$ac_ext
16756 if test -z "$tmp_exp"; then
16757 curl_cv_have_def___TINYC__=no
16758
16759 else
16760 curl_cv_have_def___TINYC__=yes
16761 curl_cv_def___TINYC__=$tmp_exp
16762
16763 fi
16764 CPPFLAGS=$OLDCPPFLAGS
16765
16766 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16768$as_echo "yes" >&6; }
16769 compiler_id="TINY_C"
16770 flags_dbg_all="-g -b"
16771 flags_dbg_yes="-g"
16772 flags_dbg_off=""
16773 flags_opt_all=""
16774 flags_opt_yes=""
16775 flags_opt_off=""
16776 else
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16778$as_echo "no" >&6; }
16779 fi
16780
16781
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16783$as_echo_n "checking if compiler is Watcom C... " >&6; }
16784
16785 OLDCPPFLAGS=$CPPFLAGS
16786 # CPPPFLAG comes from CURL_CPP_P
16787 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16788 if test -z "$SED"; then
16789 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16790 fi
16791 if test -z "$GREP"; then
16792 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16793 fi
16794
16795 tmp_exp=""
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h. */
16798
16799
16800#ifdef __WATCOMC__
16801CURL_DEF_TOKEN __WATCOMC__
16802#endif
16803
16804
16805_ACEOF
16806if ac_fn_c_try_cpp "$LINENO"; then :
16807
16808 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16809 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16810 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16811 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16812 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16813 tmp_exp=""
16814 fi
16815
16816fi
16817rm -f conftest.err conftest.i conftest.$ac_ext
16818 if test -z "$tmp_exp"; then
16819 curl_cv_have_def___WATCOMC__=no
16820
16821 else
16822 curl_cv_have_def___WATCOMC__=yes
16823 curl_cv_def___WATCOMC__=$tmp_exp
16824
16825 fi
16826 CPPFLAGS=$OLDCPPFLAGS
16827
16828 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16830$as_echo "yes" >&6; }
16831
16832 OLDCPPFLAGS=$CPPFLAGS
16833 # CPPPFLAG comes from CURL_CPP_P
16834 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16835 if test -z "$SED"; then
16836 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16837 fi
16838 if test -z "$GREP"; then
16839 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16840 fi
16841
16842 tmp_exp=""
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844/* end confdefs.h. */
16845
16846
16847#ifdef __UNIX__
16848CURL_DEF_TOKEN __UNIX__
16849#endif
16850
16851
16852_ACEOF
16853if ac_fn_c_try_cpp "$LINENO"; then :
16854
16855 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16856 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16857 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16858 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16859 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16860 tmp_exp=""
16861 fi
16862
16863fi
16864rm -f conftest.err conftest.i conftest.$ac_ext
16865 if test -z "$tmp_exp"; then
16866 curl_cv_have_def___UNIX__=no
16867
16868 else
16869 curl_cv_have_def___UNIX__=yes
16870 curl_cv_def___UNIX__=$tmp_exp
16871
16872 fi
16873 CPPFLAGS=$OLDCPPFLAGS
16874
16875 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16876 compiler_id="WATCOM_UNIX_C"
16877 flags_dbg_all="-g1 -g1+ -g2 -g3"
16878 flags_dbg_yes="-g2"
16879 flags_dbg_off=""
16880 flags_opt_all="-O0 -O1 -O2 -O3"
16881 flags_opt_yes="-O2"
16882 flags_opt_off="-O0"
16883 else
16884 compiler_id="WATCOM_WINDOWS_C"
16885 flags_dbg_all=""
16886 flags_dbg_yes=""
16887 flags_dbg_off=""
16888 flags_opt_all=""
16889 flags_opt_yes=""
16890 flags_opt_off=""
16891 fi
16892 else
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16894$as_echo "no" >&6; }
16895 fi
16896
16897 #
16898 if test "$compiler_id" = "unknown"; then
16899 cat <<_EOF 1>&2
16900***
16901*** Warning: This configure script does not have information about the
16902*** compiler you are using, relative to the flags required to enable or
16903*** disable generation of debug info, optimization options or warnings.
16904***
16905*** Whatever settings are present in CFLAGS will be used for this run.
16906***
16907*** If you wish to help the curl project to better support your compiler
16908*** you can report this and the required info on the libcurl development
16909*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
16910***
16911_EOF
16912 fi
16913
16914
16915squeeze() {
16916 _sqz_result=""
16917 eval _sqz_input=\$$1
16918 for _sqz_token in $_sqz_input; do
16919 if test -z "$_sqz_result"; then
16920 _sqz_result="$_sqz_token"
16921 else
16922 _sqz_result="$_sqz_result $_sqz_token"
16923 fi
16924 done
16925 eval $1=\$_sqz_result
16926 return 0
16927}
16928
16929
16930 #
16931 if test "$compiler_id" != "unknown"; then
16932 #
16933 if test "$compiler_id" = "GNU_C" ||
16934 test "$compiler_id" = "CLANG"; then
16935
16936 if test "$compiler_id" = "GNU_C" ||
16937 test "$compiler_id" = "CLANG"; then
16938 tmp_has_include="no"
16939 tmp_chg_FLAGS="$CFLAGS"
16940 for word1 in $tmp_chg_FLAGS; do
16941 case "$word1" in
16942 -I*)
16943 tmp_has_include="yes"
16944 ;;
16945 esac
16946 done
16947 if test "$tmp_has_include" = "yes"; then
16948 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16949 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16950 CFLAGS="$tmp_chg_FLAGS"
16951 squeeze CFLAGS
16952 fi
16953 tmp_has_include="no"
16954 tmp_chg_FLAGS="$CPPFLAGS"
16955 for word1 in $tmp_chg_FLAGS; do
16956 case "$word1" in
16957 -I*)
16958 tmp_has_include="yes"
16959 ;;
16960 esac
16961 done
16962 if test "$tmp_has_include" = "yes"; then
16963 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16964 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16965 CPPFLAGS="$tmp_chg_FLAGS"
16966 squeeze CPPFLAGS
16967 fi
16968 fi
16969
16970 fi
16971 #
16972 tmp_save_CPPFLAGS="$CPPFLAGS"
16973 tmp_save_CFLAGS="$CFLAGS"
16974 tmp_CPPFLAGS=""
16975 tmp_CFLAGS=""
16976 #
16977 case "$compiler_id" in
16978 #
16979 CLANG)
16980 #
16981 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16982 ;;
16983 #
16984 DEC_C)
16985 #
16986 tmp_CFLAGS="$tmp_CFLAGS -std1"
16987 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16988 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16989 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16990 ;;
16991 #
16992 GNU_C)
16993 #
16994 if test "$compiler_num" -ge "295"; then
16995 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
16996 fi
16997 ;;
16998 #
16999 HP_UX_C)
17000 #
17001 tmp_CFLAGS="$tmp_CFLAGS -z"
17002 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17003 ;;
17004 #
17005 IBM_C)
17006 #
17007 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17008 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17009 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17010 ;;
17011 #
17012 INTEL_UNIX_C)
17013 #
17014 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17015 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17016 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17017 ;;
17018 #
17019 INTEL_WINDOWS_C)
17020 #
17021 tmp_CFLAGS="$tmp_CFLAGS"
17022 ;;
17023 #
17024 LCC)
17025 #
17026 tmp_CFLAGS="$tmp_CFLAGS -n"
17027 ;;
17028 #
17029 SGI_MIPS_C)
17030 #
17031 tmp_CFLAGS="$tmp_CFLAGS"
17032 ;;
17033 #
17034 SGI_MIPSPRO_C)
17035 #
17036 tmp_CFLAGS="$tmp_CFLAGS"
17037 ;;
17038 #
17039 SUNPRO_C)
17040 #
17041 tmp_CFLAGS="$tmp_CFLAGS"
17042 ;;
17043 #
17044 TINY_C)
17045 #
17046 tmp_CFLAGS="$tmp_CFLAGS"
17047 ;;
17048 #
17049 WATCOM_UNIX_C)
17050 #
17051 tmp_CFLAGS="$tmp_CFLAGS"
17052 ;;
17053 #
17054 WATCOM_WINDOWS_C)
17055 #
17056 tmp_CFLAGS="$tmp_CFLAGS"
17057 ;;
17058 #
17059 esac
17060 #
17061 squeeze tmp_CPPFLAGS
17062 squeeze tmp_CFLAGS
17063 #
17064 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17066$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17067 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17068 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17069 squeeze CPPFLAGS
17070 squeeze CFLAGS
17071
17072 tmp_compiler_works="unknown"
17073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074/* end confdefs.h. */
17075
17076
17077
17078int main (void)
17079{
17080
17081 int i = 1;
17082 return i;
17083
17084 ;
17085 return 0;
17086}
17087
17088_ACEOF
17089if ac_fn_c_try_compile "$LINENO"; then :
17090
17091 tmp_compiler_works="yes"
17092
17093else
17094
17095 tmp_compiler_works="no"
17096 echo " " >&6
17097 sed 's/^/cc-fail: /' conftest.err >&6
17098 echo " " >&6
17099
17100fi
17101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 if test "$tmp_compiler_works" = "yes"; then
17103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104/* end confdefs.h. */
17105
17106
17107
17108int main (void)
17109{
17110
17111 int i = 1;
17112 return i;
17113
17114 ;
17115 return 0;
17116}
17117
17118_ACEOF
17119if ac_fn_c_try_link "$LINENO"; then :
17120
17121 tmp_compiler_works="yes"
17122
17123else
17124
17125 tmp_compiler_works="no"
17126 echo " " >&6
17127 sed 's/^/link-fail: /' conftest.err >&6
17128 echo " " >&6
17129
17130fi
17131rm -f core conftest.err conftest.$ac_objext \
17132 conftest$ac_exeext conftest.$ac_ext
17133 fi
17134 if test "x$cross_compiling" != "xyes" &&
17135 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017136
17137
17138 old=$LD_LIBRARY_PATH
17139 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17140 export LD_LIBRARY_PATH
17141 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17144as_fn_error $? "cannot run test program while cross compiling
17145See \`config.log' for more details" "$LINENO" 5; }
17146else
17147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17148/* end confdefs.h. */
17149
17150
17151# ifdef __STDC__
17152# include <stdlib.h>
17153# endif
17154
17155int main (void)
17156{
17157
17158 int i = 0;
17159 exit(i);
17160
17161 ;
17162 return 0;
17163}
17164
17165_ACEOF
17166if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017167 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017168
17169else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017170 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017171 echo " " >&6
17172 echo "run-fail: test program exited with status $ac_status" >&6
17173 echo " " >&6
17174
17175fi
17176rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17177 conftest.$ac_objext conftest.beam conftest.$ac_ext
17178fi
17179
Elliott Hughesa93fb052018-12-12 14:22:48 -080017180 LD_LIBRARY_PATH=$old # restore
17181
Elliott Hughes82be86d2017-09-20 17:00:17 -070017182 fi
17183 if test "$tmp_compiler_works" = "yes"; then
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186$as_echo "yes" >&6; }
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17188$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17189
17190 else
17191
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17193$as_echo "no" >&6; }
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17195$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17196 CPPFLAGS="$tmp_save_CPPFLAGS"
17197 CFLAGS="$tmp_save_CFLAGS"
17198
17199 fi
17200
17201 fi
17202 #
17203 fi
17204
17205
17206 #
17207 if test "$compiler_id" != "unknown"; then
17208 #
17209 tmp_save_CFLAGS="$CFLAGS"
17210 tmp_save_CPPFLAGS="$CPPFLAGS"
17211 #
17212 tmp_options=""
17213 tmp_CFLAGS="$CFLAGS"
17214 tmp_CPPFLAGS="$CPPFLAGS"
17215
17216 ac_var_stripped=""
17217 for word1 in $tmp_CFLAGS; do
17218 ac_var_strip_word="no"
17219 for word2 in $flags_dbg_all; do
17220 if test "$word1" = "$word2"; then
17221 ac_var_strip_word="yes"
17222 fi
17223 done
17224 if test "$ac_var_strip_word" = "no"; then
17225 ac_var_stripped="$ac_var_stripped $word1"
17226 fi
17227 done
17228 tmp_CFLAGS="$ac_var_stripped"
17229 squeeze tmp_CFLAGS
17230
17231
17232 ac_var_stripped=""
17233 for word1 in $tmp_CPPFLAGS; do
17234 ac_var_strip_word="no"
17235 for word2 in $flags_dbg_all; do
17236 if test "$word1" = "$word2"; then
17237 ac_var_strip_word="yes"
17238 fi
17239 done
17240 if test "$ac_var_strip_word" = "no"; then
17241 ac_var_stripped="$ac_var_stripped $word1"
17242 fi
17243 done
17244 tmp_CPPFLAGS="$ac_var_stripped"
17245 squeeze tmp_CPPFLAGS
17246
17247 #
17248 if test "$want_debug" = "yes"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17250$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17251 tmp_options="$flags_dbg_yes"
17252 fi
17253 if test "$want_debug" = "no"; then
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17255$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17256 tmp_options="$flags_dbg_off"
17257 fi
17258 #
17259 if test "$flags_prefer_cppflags" = "yes"; then
17260 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17261 CFLAGS="$tmp_CFLAGS"
17262 else
17263 CPPFLAGS="$tmp_CPPFLAGS"
17264 CFLAGS="$tmp_CFLAGS $tmp_options"
17265 fi
17266 squeeze CPPFLAGS
17267 squeeze CFLAGS
17268
17269 tmp_compiler_works="unknown"
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271/* end confdefs.h. */
17272
17273
17274
17275int main (void)
17276{
17277
17278 int i = 1;
17279 return i;
17280
17281 ;
17282 return 0;
17283}
17284
17285_ACEOF
17286if ac_fn_c_try_compile "$LINENO"; then :
17287
17288 tmp_compiler_works="yes"
17289
17290else
17291
17292 tmp_compiler_works="no"
17293 echo " " >&6
17294 sed 's/^/cc-fail: /' conftest.err >&6
17295 echo " " >&6
17296
17297fi
17298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 if test "$tmp_compiler_works" = "yes"; then
17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17301/* end confdefs.h. */
17302
17303
17304
17305int main (void)
17306{
17307
17308 int i = 1;
17309 return i;
17310
17311 ;
17312 return 0;
17313}
17314
17315_ACEOF
17316if ac_fn_c_try_link "$LINENO"; then :
17317
17318 tmp_compiler_works="yes"
17319
17320else
17321
17322 tmp_compiler_works="no"
17323 echo " " >&6
17324 sed 's/^/link-fail: /' conftest.err >&6
17325 echo " " >&6
17326
17327fi
17328rm -f core conftest.err conftest.$ac_objext \
17329 conftest$ac_exeext conftest.$ac_ext
17330 fi
17331 if test "x$cross_compiling" != "xyes" &&
17332 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017333
17334
17335 old=$LD_LIBRARY_PATH
17336 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17337 export LD_LIBRARY_PATH
17338 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17340$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17341as_fn_error $? "cannot run test program while cross compiling
17342See \`config.log' for more details" "$LINENO" 5; }
17343else
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345/* end confdefs.h. */
17346
17347
17348# ifdef __STDC__
17349# include <stdlib.h>
17350# endif
17351
17352int main (void)
17353{
17354
17355 int i = 0;
17356 exit(i);
17357
17358 ;
17359 return 0;
17360}
17361
17362_ACEOF
17363if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017364 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017365
17366else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017367 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017368 echo " " >&6
17369 echo "run-fail: test program exited with status $ac_status" >&6
17370 echo " " >&6
17371
17372fi
17373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17374 conftest.$ac_objext conftest.beam conftest.$ac_ext
17375fi
17376
Elliott Hughesa93fb052018-12-12 14:22:48 -080017377 LD_LIBRARY_PATH=$old # restore
17378
Elliott Hughes82be86d2017-09-20 17:00:17 -070017379 fi
17380 if test "$tmp_compiler_works" = "yes"; then
17381
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17383$as_echo "yes" >&6; }
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17385$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17386
17387 else
17388
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17390$as_echo "no" >&6; }
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17392$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17393 CPPFLAGS="$tmp_save_CPPFLAGS"
17394 CFLAGS="$tmp_save_CFLAGS"
17395
17396 fi
17397
17398 #
17399 fi
17400
17401
17402 #
17403 if test "$compiler_id" != "unknown"; then
17404 #
17405 tmp_save_CFLAGS="$CFLAGS"
17406 tmp_save_CPPFLAGS="$CPPFLAGS"
17407 #
17408 tmp_options=""
17409 tmp_CFLAGS="$CFLAGS"
17410 tmp_CPPFLAGS="$CPPFLAGS"
17411 honor_optimize_option="yes"
17412 #
17413 #
17414 if test "$want_optimize" = "assume_no" ||
17415 test "$want_optimize" = "assume_yes"; then
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17417$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17418
17419
17420 ac_var_match_word="no"
17421 for word1 in $tmp_CFLAGS; do
17422 for word2 in $flags_opt_all; do
17423 if test "$word1" = "$word2"; then
17424 ac_var_match_word="yes"
17425 fi
17426 done
17427 done
17428
17429 if test "$ac_var_match_word" = "yes"; then
17430
17431 honor_optimize_option="no"
17432
17433
17434 fi
17435
17436
17437
17438 ac_var_match_word="no"
17439 for word1 in $tmp_CPPFLAGS; do
17440 for word2 in $flags_opt_all; do
17441 if test "$word1" = "$word2"; then
17442 ac_var_match_word="yes"
17443 fi
17444 done
17445 done
17446
17447 if test "$ac_var_match_word" = "yes"; then
17448
17449 honor_optimize_option="no"
17450
17451
17452 fi
17453
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17455$as_echo "$honor_optimize_option" >&6; }
17456 if test "$honor_optimize_option" = "yes"; then
17457 if test "$want_optimize" = "assume_yes"; then
17458 want_optimize="yes"
17459 fi
17460 if test "$want_optimize" = "assume_no"; then
17461 want_optimize="no"
17462 fi
17463 fi
17464 fi
17465 #
17466 if test "$honor_optimize_option" = "yes"; then
17467
17468 ac_var_stripped=""
17469 for word1 in $tmp_CFLAGS; do
17470 ac_var_strip_word="no"
17471 for word2 in $flags_opt_all; do
17472 if test "$word1" = "$word2"; then
17473 ac_var_strip_word="yes"
17474 fi
17475 done
17476 if test "$ac_var_strip_word" = "no"; then
17477 ac_var_stripped="$ac_var_stripped $word1"
17478 fi
17479 done
17480 tmp_CFLAGS="$ac_var_stripped"
17481 squeeze tmp_CFLAGS
17482
17483
17484 ac_var_stripped=""
17485 for word1 in $tmp_CPPFLAGS; do
17486 ac_var_strip_word="no"
17487 for word2 in $flags_opt_all; do
17488 if test "$word1" = "$word2"; then
17489 ac_var_strip_word="yes"
17490 fi
17491 done
17492 if test "$ac_var_strip_word" = "no"; then
17493 ac_var_stripped="$ac_var_stripped $word1"
17494 fi
17495 done
17496 tmp_CPPFLAGS="$ac_var_stripped"
17497 squeeze tmp_CPPFLAGS
17498
17499 if test "$want_optimize" = "yes"; then
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17501$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17502 tmp_options="$flags_opt_yes"
17503 fi
17504 if test "$want_optimize" = "no"; then
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17506$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17507 tmp_options="$flags_opt_off"
17508 fi
17509 if test "$flags_prefer_cppflags" = "yes"; then
17510 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17511 CFLAGS="$tmp_CFLAGS"
17512 else
17513 CPPFLAGS="$tmp_CPPFLAGS"
17514 CFLAGS="$tmp_CFLAGS $tmp_options"
17515 fi
17516 squeeze CPPFLAGS
17517 squeeze CFLAGS
17518
17519 tmp_compiler_works="unknown"
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521/* end confdefs.h. */
17522
17523
17524
17525int main (void)
17526{
17527
17528 int i = 1;
17529 return i;
17530
17531 ;
17532 return 0;
17533}
17534
17535_ACEOF
17536if ac_fn_c_try_compile "$LINENO"; then :
17537
17538 tmp_compiler_works="yes"
17539
17540else
17541
17542 tmp_compiler_works="no"
17543 echo " " >&6
17544 sed 's/^/cc-fail: /' conftest.err >&6
17545 echo " " >&6
17546
17547fi
17548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 if test "$tmp_compiler_works" = "yes"; then
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551/* end confdefs.h. */
17552
17553
17554
17555int main (void)
17556{
17557
17558 int i = 1;
17559 return i;
17560
17561 ;
17562 return 0;
17563}
17564
17565_ACEOF
17566if ac_fn_c_try_link "$LINENO"; then :
17567
17568 tmp_compiler_works="yes"
17569
17570else
17571
17572 tmp_compiler_works="no"
17573 echo " " >&6
17574 sed 's/^/link-fail: /' conftest.err >&6
17575 echo " " >&6
17576
17577fi
17578rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580 fi
17581 if test "x$cross_compiling" != "xyes" &&
17582 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017583
17584
17585 old=$LD_LIBRARY_PATH
17586 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17587 export LD_LIBRARY_PATH
17588 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17591as_fn_error $? "cannot run test program while cross compiling
17592See \`config.log' for more details" "$LINENO" 5; }
17593else
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595/* end confdefs.h. */
17596
17597
17598# ifdef __STDC__
17599# include <stdlib.h>
17600# endif
17601
17602int main (void)
17603{
17604
17605 int i = 0;
17606 exit(i);
17607
17608 ;
17609 return 0;
17610}
17611
17612_ACEOF
17613if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017614 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017615
17616else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017617 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017618 echo " " >&6
17619 echo "run-fail: test program exited with status $ac_status" >&6
17620 echo " " >&6
17621
17622fi
17623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17624 conftest.$ac_objext conftest.beam conftest.$ac_ext
17625fi
17626
Elliott Hughesa93fb052018-12-12 14:22:48 -080017627 LD_LIBRARY_PATH=$old # restore
17628
Elliott Hughes82be86d2017-09-20 17:00:17 -070017629 fi
17630 if test "$tmp_compiler_works" = "yes"; then
17631
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633$as_echo "yes" >&6; }
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17635$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17636
17637 else
17638
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17640$as_echo "no" >&6; }
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17642$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17643 CPPFLAGS="$tmp_save_CPPFLAGS"
17644 CFLAGS="$tmp_save_CFLAGS"
17645
17646 fi
17647
17648 fi
17649 #
17650 fi
17651
17652
17653 #
17654 if test "$compiler_id" != "unknown"; then
17655 #
17656 tmp_save_CPPFLAGS="$CPPFLAGS"
17657 tmp_save_CFLAGS="$CFLAGS"
17658 tmp_CPPFLAGS=""
17659 tmp_CFLAGS=""
17660 #
17661 case "$compiler_id" in
17662 #
17663 CLANG)
17664 #
17665 if test "$want_warnings" = "yes"; then
17666 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17667 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17668 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17669 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17670 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17671 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17672 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17673 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17674 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17675 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17676 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17677 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17678 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17679 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17680 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17681 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17682 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17683 #
17684 if test "$compiler_num" -ge "101"; then
17685 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17686 fi
17687 #
17688 if test "$compiler_num" -ge "208"; then
17689 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17690 fi
17691 #
17692 if test "$compiler_num" -ge "209"; then
17693 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17694 fi
17695 #
17696 if test "$compiler_num" -ge "302"; then
17697 case $host_os in
17698 cygwin* | mingw*)
17699 ;;
17700 *)
17701 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17702 ;;
17703 esac
17704 fi
17705 #
17706 if test "$compiler_num" -ge "306"; then
17707 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17708 fi
17709 #
17710 if test "$compiler_num" -ge "309"; then
17711 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017712 # avoid the varargs warning, fixed in 4.0
17713 # https://bugs.llvm.org/show_bug.cgi?id=29140
17714 if test "$compiler_num" -lt "400"; then
17715 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17716 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017717 fi
17718 fi
17719 ;;
17720 #
17721 DEC_C)
17722 #
17723 if test "$want_warnings" = "yes"; then
17724 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17725 fi
17726 ;;
17727 #
17728 GNU_C)
17729 #
17730 if test "$want_warnings" = "yes"; then
17731 #
17732 if test "x$cross_compiling" != "xyes" ||
17733 test "$compiler_num" -ge "300"; then
17734 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17735 fi
17736 #
17737 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17738 #
17739 if test "$compiler_num" -ge "104"; then
17740 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17741 if test "x$cross_compiling" != "xyes" ||
17742 test "$compiler_num" -ge "300"; then
17743 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17744 fi
17745 fi
17746 #
17747 if test "$compiler_num" -ge "207"; then
17748 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17749 if test "x$cross_compiling" != "xyes" ||
17750 test "$compiler_num" -ge "300"; then
17751 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17752 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17753 fi
17754 fi
17755 #
17756 if test "$compiler_num" -ge "295"; then
17757 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017758 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017759 fi
17760 #
17761 if test "$compiler_num" -ge "296"; then
17762 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17763 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17764 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17765 fi
17766 #
17767 if test "$compiler_num" -ge "297"; then
17768 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17769 fi
17770 #
17771 if test "$compiler_num" -ge "300"; then
17772 tmp_CFLAGS="$tmp_CFLAGS"
17773 fi
17774 #
17775 if test "$compiler_num" -ge "303"; then
17776 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17777 fi
17778 #
17779 if test "$compiler_num" -ge "304"; then
17780 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017781 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017782 fi
17783 #
17784 if test "$compiler_num" -ge "400"; then
17785 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17786 fi
17787 #
17788 if test "$compiler_num" -ge "402"; then
17789 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17790 fi
17791 #
17792 if test "$compiler_num" -ge "403"; then
17793 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17794 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17795 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17796 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017797 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017798 fi
17799 #
17800 if test "$compiler_num" -ge "405"; then
17801 if test "$curl_cv_have_def__WIN32" = "yes"; then
17802 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17803 fi
17804 fi
17805 #
17806 if test "$compiler_num" -ge "406"; then
17807 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17808 fi
17809 #
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017810 if test "$compiler_num" -ge "408"; then
17811 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17812 fi
17813 #
17814 if test "$compiler_num" -ge "500"; then
17815 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17816 fi
17817 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017818 if test "$compiler_num" -ge "600"; then
17819 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17820 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017821 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017822 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017823 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017824 fi
17825 #
17826 if test "$compiler_num" -ge "700"; then
17827 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17828 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17829 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17830 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17831 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017832 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017833 fi
17834 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017835 fi
17836 #
17837 if test "$compiler_num" -ge "300"; then
17838 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17839 else
17840 if test "x$cross_compiling" = "xyes"; then
17841 if test "$compiler_num" -ge "104"; then
17842 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17843 fi
17844 if test "$compiler_num" -ge "207"; then
17845 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17846 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17847 fi
17848 fi
17849 fi
17850 ;;
17851 #
17852 HP_UX_C)
17853 #
17854 if test "$want_warnings" = "yes"; then
17855 tmp_CFLAGS="$tmp_CFLAGS +w1"
17856 fi
17857 ;;
17858 #
17859 IBM_C)
17860 #
17861 tmp_CFLAGS="$tmp_CFLAGS"
17862 ;;
17863 #
17864 INTEL_UNIX_C)
17865 #
17866 if test "$want_warnings" = "yes"; then
17867 if test "$compiler_num" -gt "600"; then
17868 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17869 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17870 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17871 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17872 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17873 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17874 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17875 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17876 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17877 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17878 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17879 fi
17880 fi
17881 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17882 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17883 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17884 if test "$compiler_num" -ge "1000"; then
17885 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17886 fi
17887 ;;
17888 #
17889 INTEL_WINDOWS_C)
17890 #
17891 tmp_CFLAGS="$tmp_CFLAGS"
17892 ;;
17893 #
17894 LCC)
17895 #
17896 if test "$want_warnings" = "yes"; then
17897 tmp_CFLAGS="$tmp_CFLAGS"
17898 fi
17899 ;;
17900 #
17901 SGI_MIPS_C)
17902 #
17903 if test "$want_warnings" = "yes"; then
17904 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17905 fi
17906 ;;
17907 #
17908 SGI_MIPSPRO_C)
17909 #
17910 if test "$want_warnings" = "yes"; then
17911 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17912 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17913 fi
17914 ;;
17915 #
17916 SUNPRO_C)
17917 #
17918 if test "$want_warnings" = "yes"; then
17919 tmp_CFLAGS="$tmp_CFLAGS -v"
17920 fi
17921 ;;
17922 #
17923 TINY_C)
17924 #
17925 if test "$want_warnings" = "yes"; then
17926 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17927 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17928 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17929 fi
17930 ;;
17931 #
17932 WATCOM_UNIX_C)
17933 #
17934 if test "$want_warnings" = "yes"; then
17935 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17936 fi
17937 ;;
17938 #
17939 WATCOM_WINDOWS_C)
17940 #
17941 tmp_CFLAGS="$tmp_CFLAGS"
17942 ;;
17943 #
17944 esac
17945 #
17946 squeeze tmp_CPPFLAGS
17947 squeeze tmp_CFLAGS
17948 #
17949 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17951$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17952 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17953 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17954 squeeze CPPFLAGS
17955 squeeze CFLAGS
17956
17957 tmp_compiler_works="unknown"
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959/* end confdefs.h. */
17960
17961
17962
17963int main (void)
17964{
17965
17966 int i = 1;
17967 return i;
17968
17969 ;
17970 return 0;
17971}
17972
17973_ACEOF
17974if ac_fn_c_try_compile "$LINENO"; then :
17975
17976 tmp_compiler_works="yes"
17977
17978else
17979
17980 tmp_compiler_works="no"
17981 echo " " >&6
17982 sed 's/^/cc-fail: /' conftest.err >&6
17983 echo " " >&6
17984
17985fi
17986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17987 if test "$tmp_compiler_works" = "yes"; then
17988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17989/* end confdefs.h. */
17990
17991
17992
17993int main (void)
17994{
17995
17996 int i = 1;
17997 return i;
17998
17999 ;
18000 return 0;
18001}
18002
18003_ACEOF
18004if ac_fn_c_try_link "$LINENO"; then :
18005
18006 tmp_compiler_works="yes"
18007
18008else
18009
18010 tmp_compiler_works="no"
18011 echo " " >&6
18012 sed 's/^/link-fail: /' conftest.err >&6
18013 echo " " >&6
18014
18015fi
18016rm -f core conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18018 fi
18019 if test "x$cross_compiling" != "xyes" &&
18020 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080018021
18022
18023 old=$LD_LIBRARY_PATH
18024 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18025 export LD_LIBRARY_PATH
18026 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070018027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18028$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18029as_fn_error $? "cannot run test program while cross compiling
18030See \`config.log' for more details" "$LINENO" 5; }
18031else
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033/* end confdefs.h. */
18034
18035
18036# ifdef __STDC__
18037# include <stdlib.h>
18038# endif
18039
18040int main (void)
18041{
18042
18043 int i = 0;
18044 exit(i);
18045
18046 ;
18047 return 0;
18048}
18049
18050_ACEOF
18051if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080018052 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018053
18054else
Elliott Hughesa93fb052018-12-12 14:22:48 -080018055 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018056 echo " " >&6
18057 echo "run-fail: test program exited with status $ac_status" >&6
18058 echo " " >&6
18059
18060fi
18061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18062 conftest.$ac_objext conftest.beam conftest.$ac_ext
18063fi
18064
Elliott Hughesa93fb052018-12-12 14:22:48 -080018065 LD_LIBRARY_PATH=$old # restore
18066
Elliott Hughes82be86d2017-09-20 17:00:17 -070018067 fi
18068 if test "$tmp_compiler_works" = "yes"; then
18069
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18071$as_echo "yes" >&6; }
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18073$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18074
18075 else
18076
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18078$as_echo "no" >&6; }
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18080$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18081 CPPFLAGS="$tmp_save_CPPFLAGS"
18082 CFLAGS="$tmp_save_CFLAGS"
18083
18084 fi
18085
18086 fi
18087 #
18088 fi
18089
18090
18091if test "$compiler_id" = "INTEL_UNIX_C"; then
18092 #
18093 if test "$compiler_num" -ge "1000"; then
18094 CFLAGS="$CFLAGS -shared-intel"
18095 elif test "$compiler_num" -ge "900"; then
18096 CFLAGS="$CFLAGS -i-dynamic"
18097 fi
18098 #
18099fi
18100
18101
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18103$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18105/* end confdefs.h. */
18106
18107
18108
18109int main (void)
18110{
18111
18112 force compilation error
18113
18114 ;
18115 return 0;
18116}
18117
18118_ACEOF
18119if ac_fn_c_try_compile "$LINENO"; then :
18120
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18122$as_echo "no" >&6; }
18123 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18124
18125else
18126
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18128$as_echo "yes" >&6; }
18129
18130fi
18131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18132
18133
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18135$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137/* end confdefs.h. */
18138
18139
18140 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18141
18142int main (void)
18143{
18144
18145 bad_t dummy;
18146
18147 ;
18148 return 0;
18149}
18150
18151_ACEOF
18152if ac_fn_c_try_compile "$LINENO"; then :
18153
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18155$as_echo "no" >&6; }
18156 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18157
18158else
18159
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18161$as_echo "yes" >&6; }
18162
18163fi
18164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18165
18166
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18168$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170/* end confdefs.h. */
18171
18172
18173# include <stdlib.h>
18174 int rand(int n);
18175 int rand(int n)
18176 {
18177 if(n)
18178 return ++n;
18179 else
18180 return n;
18181 }
18182
18183int main (void)
18184{
18185
18186 int i[2]={0,0};
18187 int j = rand(i[0]);
18188 if(j)
18189 return j;
18190
18191 ;
18192 return 0;
18193}
18194
18195_ACEOF
18196if ac_fn_c_try_compile "$LINENO"; then :
18197
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18199$as_echo "no" >&6; }
18200 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18201
18202else
18203
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18205$as_echo "yes" >&6; }
18206
18207fi
18208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18209
18210
18211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18212$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18213 supports_symbol_hiding="no"
18214 symbol_hiding_CFLAGS=""
18215 symbol_hiding_EXTERN=""
18216 tmp_CFLAGS=""
18217 tmp_EXTERN=""
18218 case "$compiler_id" in
18219 CLANG)
18220 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18221 tmp_CFLAGS="-fvisibility=hidden"
18222 supports_symbol_hiding="yes"
18223 ;;
18224 GNU_C)
18225 if test "$compiler_num" -ge "304"; then
18226 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18227 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18228 tmp_CFLAGS="-fvisibility=hidden"
18229 supports_symbol_hiding="yes"
18230 fi
18231 fi
18232 ;;
18233 INTEL_UNIX_C)
18234 if test "$compiler_num" -ge "900"; then
18235 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18236 tmp_save_CFLAGS="$CFLAGS"
18237 CFLAGS="$CFLAGS -fvisibility=hidden"
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239/* end confdefs.h. */
18240
18241
18242# include <stdio.h>
18243
18244int main (void)
18245{
18246
18247 printf("icc fvisibility bug test");
18248
18249 ;
18250 return 0;
18251}
18252
18253_ACEOF
18254if ac_fn_c_try_link "$LINENO"; then :
18255
18256 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18257 tmp_CFLAGS="-fvisibility=hidden"
18258 supports_symbol_hiding="yes"
18259
18260fi
18261rm -f core conftest.err conftest.$ac_objext \
18262 conftest$ac_exeext conftest.$ac_ext
18263 CFLAGS="$tmp_save_CFLAGS"
18264 fi
18265 fi
18266 ;;
18267 SUNPRO_C)
18268 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18269 tmp_EXTERN="__global"
18270 tmp_CFLAGS="-xldscope=hidden"
18271 supports_symbol_hiding="yes"
18272 fi
18273 ;;
18274 esac
18275 if test "$supports_symbol_hiding" = "yes"; then
18276 tmp_save_CFLAGS="$CFLAGS"
18277 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18278 squeeze CFLAGS
18279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18280/* end confdefs.h. */
18281
18282
18283 $tmp_EXTERN char *dummy(char *buff);
18284 char *dummy(char *buff)
18285 {
18286 if(buff)
18287 return ++buff;
18288 else
18289 return buff;
18290 }
18291
18292int main (void)
18293{
18294
18295 char b[16];
18296 char *r = dummy(&b[0]);
18297 if(r)
18298 return (int)*r;
18299
18300 ;
18301 return 0;
18302}
18303
18304_ACEOF
18305if ac_fn_c_try_compile "$LINENO"; then :
18306
18307 supports_symbol_hiding="yes"
18308 if test -f conftest.err; then
18309 grep 'visibility' conftest.err >/dev/null
18310 if test "$?" -eq "0"; then
18311 supports_symbol_hiding="no"
18312 fi
18313 fi
18314
18315else
18316
18317 supports_symbol_hiding="no"
18318 echo " " >&6
18319 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18320 sed 's/^/cc-err: /' conftest.err >&6
18321 echo " " >&6
18322
18323fi
18324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 CFLAGS="$tmp_save_CFLAGS"
18326 fi
18327 if test "$supports_symbol_hiding" = "yes"; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18329$as_echo "yes" >&6; }
18330 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18331 symbol_hiding_EXTERN="$tmp_EXTERN"
18332 else
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18334$as_echo "no" >&6; }
18335 fi
18336
18337
18338
18339 supports_curldebug="unknown"
18340 if test "$want_curldebug" = "yes"; then
18341 if test "x$enable_shared" != "xno" &&
18342 test "x$enable_shared" != "xyes"; then
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18344$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18345 supports_curldebug="no"
18346 fi
18347 if test "x$enable_static" != "xno" &&
18348 test "x$enable_static" != "xyes"; then
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18350$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18351 supports_curldebug="no"
18352 fi
18353 if test "$supports_curldebug" != "no"; then
18354 if test "$enable_shared" = "yes" &&
18355 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18356 supports_curldebug="no"
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18358$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18359 fi
18360 fi
18361 fi
18362 #
18363 if test "$want_curldebug" = "yes"; then
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18365$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18366 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18368$as_echo "$supports_curldebug" >&6; }
18369 if test "$supports_curldebug" = "no"; then
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18371$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18372 want_curldebug="no"
18373 fi
18374 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018375
18376 if test x$want_curldebug = xyes; then
18377 CURLDEBUG_TRUE=
18378 CURLDEBUG_FALSE='#'
18379else
18380 CURLDEBUG_TRUE='#'
18381 CURLDEBUG_FALSE=
18382fi
18383
18384
18385supports_unittests=yes
18386# cross-compilation of unit tests static library/programs fails when
18387# libcurl shared library is built. This might be due to a libtool or
18388# automake issue. In this case we disable unit tests.
18389if test "x$cross_compiling" != "xno" &&
18390 test "x$enable_shared" != "xno"; then
18391 supports_unittests=no
18392fi
18393
18394# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18395# a problem related with OpenSSL headers and library versions not matching.
18396# Disable unit tests while time to further investigate this is found.
18397case $host in
18398 mips-sgi-irix6.5)
18399 if test "$compiler_id" = "GNU_C"; then
18400 supports_unittests=no
18401 fi
18402 ;;
18403esac
18404
18405# All AIX autobuilds fails unit tests linking against unittests library
18406# due to unittests library being built with no symbols or members. Libtool ?
18407# Disable unit tests while time to further investigate this is found.
18408case $host_os in
18409 aix*)
18410 supports_unittests=no
18411 ;;
18412esac
18413
18414if test "x$want_debug" = "xyes" &&
18415 test "x$supports_unittests" = "xyes"; then
18416 want_unittests=yes
18417else
18418 want_unittests=no
18419fi
18420 if test x$want_unittests = xyes; then
18421 BUILD_UNITTESTS_TRUE=
18422 BUILD_UNITTESTS_FALSE='#'
18423else
18424 BUILD_UNITTESTS_TRUE='#'
18425 BUILD_UNITTESTS_FALSE=
18426fi
18427
18428
18429
18430
18431
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18433$as_echo_n "checking for windows.h... " >&6; }
18434if ${curl_cv_header_windows_h+:} false; then :
18435 $as_echo_n "(cached) " >&6
18436else
18437
18438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18439/* end confdefs.h. */
18440
18441
18442#undef inline
18443#ifndef WIN32_LEAN_AND_MEAN
18444#define WIN32_LEAN_AND_MEAN
18445#endif
18446#include <windows.h>
18447
18448int main (void)
18449{
18450
18451#if defined(__CYGWIN__) || defined(__CEGCC__)
18452 HAVE_WINDOWS_H shall not be defined.
18453#else
18454 int dummy=2*WINVER;
18455#endif
18456
18457 ;
18458 return 0;
18459}
18460
18461_ACEOF
18462if ac_fn_c_try_compile "$LINENO"; then :
18463
18464 curl_cv_header_windows_h="yes"
18465
18466else
18467
18468 curl_cv_header_windows_h="no"
18469
18470fi
18471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18472
18473fi
18474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18475$as_echo "$curl_cv_header_windows_h" >&6; }
18476 case "$curl_cv_header_windows_h" in
18477 yes)
18478
18479cat >>confdefs.h <<_ACEOF
18480#define HAVE_WINDOWS_H 1
18481_ACEOF
18482
18483 ;;
18484 esac
18485
18486
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18488$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18489if ${curl_cv_native_windows+:} false; then :
18490 $as_echo_n "(cached) " >&6
18491else
18492
18493 if test "$curl_cv_header_windows_h" = "no"; then
18494 curl_cv_native_windows="no"
18495 else
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h. */
18498
18499
18500
18501int main (void)
18502{
18503
18504#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18505 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18506 int dummy=1;
18507#else
18508 Not a native Windows build target.
18509#endif
18510
18511 ;
18512 return 0;
18513}
18514
18515_ACEOF
18516if ac_fn_c_try_compile "$LINENO"; then :
18517
18518 curl_cv_native_windows="yes"
18519
18520else
18521
18522 curl_cv_native_windows="no"
18523
18524fi
18525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18526 fi
18527
18528fi
18529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18530$as_echo "$curl_cv_native_windows" >&6; }
18531 if test "x$curl_cv_native_windows" = xyes; then
18532 DOING_NATIVE_WINDOWS_TRUE=
18533 DOING_NATIVE_WINDOWS_FALSE='#'
18534else
18535 DOING_NATIVE_WINDOWS_TRUE='#'
18536 DOING_NATIVE_WINDOWS_FALSE=
18537fi
18538
18539
18540case X-"$curl_cv_native_windows" in
18541 X-yes)
18542
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18544$as_echo_n "checking for winsock.h... " >&6; }
18545if ${curl_cv_header_winsock_h+:} false; then :
18546 $as_echo_n "(cached) " >&6
18547else
18548
18549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550/* end confdefs.h. */
18551
18552
18553#undef inline
18554#ifndef WIN32_LEAN_AND_MEAN
18555#define WIN32_LEAN_AND_MEAN
18556#endif
18557#include <windows.h>
18558#include <winsock.h>
18559
18560int main (void)
18561{
18562
18563#if defined(__CYGWIN__) || defined(__CEGCC__)
18564 HAVE_WINSOCK_H shall not be defined.
18565#else
18566 int dummy=WSACleanup();
18567#endif
18568
18569 ;
18570 return 0;
18571}
18572
18573_ACEOF
18574if ac_fn_c_try_compile "$LINENO"; then :
18575
18576 curl_cv_header_winsock_h="yes"
18577
18578else
18579
18580 curl_cv_header_winsock_h="no"
18581
18582fi
18583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18584
18585fi
18586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18587$as_echo "$curl_cv_header_winsock_h" >&6; }
18588 case "$curl_cv_header_winsock_h" in
18589 yes)
18590
18591cat >>confdefs.h <<_ACEOF
18592#define HAVE_WINSOCK_H 1
18593_ACEOF
18594
18595 ;;
18596 esac
18597
18598
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18600$as_echo_n "checking for winsock2.h... " >&6; }
18601if ${curl_cv_header_winsock2_h+:} false; then :
18602 $as_echo_n "(cached) " >&6
18603else
18604
18605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18606/* end confdefs.h. */
18607
18608
18609#undef inline
18610#ifndef WIN32_LEAN_AND_MEAN
18611#define WIN32_LEAN_AND_MEAN
18612#endif
18613#include <windows.h>
18614#include <winsock2.h>
18615
18616int main (void)
18617{
18618
18619#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18620 HAVE_WINSOCK2_H shall not be defined.
18621#else
18622 int dummy=2*IPPROTO_ESP;
18623#endif
18624
18625 ;
18626 return 0;
18627}
18628
18629_ACEOF
18630if ac_fn_c_try_compile "$LINENO"; then :
18631
18632 curl_cv_header_winsock2_h="yes"
18633
18634else
18635
18636 curl_cv_header_winsock2_h="no"
18637
18638fi
18639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18640
18641fi
18642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18643$as_echo "$curl_cv_header_winsock2_h" >&6; }
18644 case "$curl_cv_header_winsock2_h" in
18645 yes)
18646
18647cat >>confdefs.h <<_ACEOF
18648#define HAVE_WINSOCK2_H 1
18649_ACEOF
18650
18651 ;;
18652 esac
18653
18654
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18656$as_echo_n "checking for ws2tcpip.h... " >&6; }
18657if ${curl_cv_header_ws2tcpip_h+:} false; then :
18658 $as_echo_n "(cached) " >&6
18659else
18660
18661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18662/* end confdefs.h. */
18663
18664
18665#undef inline
18666#ifndef WIN32_LEAN_AND_MEAN
18667#define WIN32_LEAN_AND_MEAN
18668#endif
18669#include <windows.h>
18670#include <winsock2.h>
18671#include <ws2tcpip.h>
18672
18673int main (void)
18674{
18675
18676#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18677 HAVE_WS2TCPIP_H shall not be defined.
18678#else
18679 int dummy=2*IP_PKTINFO;
18680#endif
18681
18682 ;
18683 return 0;
18684}
18685
18686_ACEOF
18687if ac_fn_c_try_compile "$LINENO"; then :
18688
18689 curl_cv_header_ws2tcpip_h="yes"
18690
18691else
18692
18693 curl_cv_header_ws2tcpip_h="no"
18694
18695fi
18696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18697
18698fi
18699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18700$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18701 case "$curl_cv_header_ws2tcpip_h" in
18702 yes)
18703
18704cat >>confdefs.h <<_ACEOF
18705#define HAVE_WS2TCPIP_H 1
18706_ACEOF
18707
18708 ;;
18709 esac
18710
18711
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18713$as_echo_n "checking for winldap.h... " >&6; }
18714if ${curl_cv_header_winldap_h+:} false; then :
18715 $as_echo_n "(cached) " >&6
18716else
18717
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719/* end confdefs.h. */
18720
18721
18722#undef inline
18723#ifdef HAVE_WINDOWS_H
18724#ifndef WIN32_LEAN_AND_MEAN
18725#define WIN32_LEAN_AND_MEAN
18726#endif
18727#include <windows.h>
18728#endif
18729#include <winldap.h>
18730
18731int main (void)
18732{
18733
18734#if defined(__CYGWIN__) || defined(__CEGCC__)
18735 HAVE_WINLDAP_H shall not be defined.
18736#else
18737 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18738 ULONG res = ldap_unbind(ldp);
18739#endif
18740
18741 ;
18742 return 0;
18743}
18744
18745_ACEOF
18746if ac_fn_c_try_compile "$LINENO"; then :
18747
18748 curl_cv_header_winldap_h="yes"
18749
18750else
18751
18752 curl_cv_header_winldap_h="no"
18753
18754fi
18755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756
18757fi
18758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18759$as_echo "$curl_cv_header_winldap_h" >&6; }
18760 case "$curl_cv_header_winldap_h" in
18761 yes)
18762
18763cat >>confdefs.h <<_ACEOF
18764#define HAVE_WINLDAP_H 1
18765_ACEOF
18766
18767 ;;
18768 esac
18769
18770
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18772$as_echo_n "checking for winber.h... " >&6; }
18773if ${curl_cv_header_winber_h+:} false; then :
18774 $as_echo_n "(cached) " >&6
18775else
18776
18777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778/* end confdefs.h. */
18779
18780
18781#undef inline
18782#ifdef HAVE_WINDOWS_H
18783#ifndef WIN32_LEAN_AND_MEAN
18784#define WIN32_LEAN_AND_MEAN
18785#endif
18786#include <windows.h>
18787#endif
18788#include <winldap.h>
18789#include <winber.h>
18790
18791int main (void)
18792{
18793
18794#if defined(__CYGWIN__) || defined(__CEGCC__)
18795 HAVE_WINBER_H shall not be defined.
18796#else
18797 BERVAL *bvp = NULL;
18798 BerElement *bep = ber_init(bvp);
18799 ber_free(bep, 1);
18800#endif
18801
18802 ;
18803 return 0;
18804}
18805
18806_ACEOF
18807if ac_fn_c_try_compile "$LINENO"; then :
18808
18809 curl_cv_header_winber_h="yes"
18810
18811else
18812
18813 curl_cv_header_winber_h="no"
18814
18815fi
18816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18817
18818fi
18819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18820$as_echo "$curl_cv_header_winber_h" >&6; }
18821 case "$curl_cv_header_winber_h" in
18822 yes)
18823
18824cat >>confdefs.h <<_ACEOF
18825#define HAVE_WINBER_H 1
18826_ACEOF
18827
18828 ;;
18829 esac
18830
18831 ;;
18832 *)
18833 curl_cv_header_winsock_h="no"
18834 curl_cv_header_winsock2_h="no"
18835 curl_cv_header_ws2tcpip_h="no"
18836 curl_cv_header_winldap_h="no"
18837 curl_cv_header_winber_h="no"
18838 ;;
18839esac
18840
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18842$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18843 curl_win32_file_api="no"
18844 if test "$curl_cv_header_windows_h" = "yes"; then
18845 if test x"$enable_largefile" != "xno"; then
18846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847/* end confdefs.h. */
18848
18849
18850
18851int main (void)
18852{
18853
18854#if !defined(_WIN32_WCE) && \
18855 (defined(__MINGW32__) || \
18856 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18857 int dummy=1;
18858#else
18859 WIN32 large file API not supported.
18860#endif
18861
18862 ;
18863 return 0;
18864}
18865
18866_ACEOF
18867if ac_fn_c_try_compile "$LINENO"; then :
18868
18869 curl_win32_file_api="win32_large_files"
18870
18871fi
18872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18873 fi
18874 if test "$curl_win32_file_api" = "no"; then
18875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18876/* end confdefs.h. */
18877
18878
18879
18880int main (void)
18881{
18882
18883#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18884 int dummy=1;
18885#else
18886 WIN32 small file API not supported.
18887#endif
18888
18889 ;
18890 return 0;
18891}
18892
18893_ACEOF
18894if ac_fn_c_try_compile "$LINENO"; then :
18895
18896 curl_win32_file_api="win32_small_files"
18897
18898fi
18899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18900 fi
18901 fi
18902 case "$curl_win32_file_api" in
18903 win32_large_files)
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18905$as_echo "yes (large file enabled)" >&6; }
18906
18907cat >>confdefs.h <<_ACEOF
18908#define USE_WIN32_LARGE_FILES 1
18909_ACEOF
18910
18911 ;;
18912 win32_small_files)
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18914$as_echo "yes (large file disabled)" >&6; }
18915
18916cat >>confdefs.h <<_ACEOF
18917#define USE_WIN32_SMALL_FILES 1
18918_ACEOF
18919
18920 ;;
18921 *)
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18923$as_echo "no" >&6; }
18924 ;;
18925 esac
18926
18927
18928
18929
18930 tst_cflags="no"
18931 case $host_os in
18932 darwin*)
18933 tst_cflags="yes"
18934 ;;
18935 esac
18936
18937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
18938$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
18940$as_echo "$tst_cflags" >&6; };
18941
18942 if test "$tst_cflags" = "yes"; then
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
18944$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
18945 min=""
18946 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
18947 min="-mmacosx-version-min=10.8"
18948 CFLAGS="$CFLAGS $min"
18949 fi
18950 if test -z "$min"; then
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
18952$as_echo "set by user" >&6; }
18953 else
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
18955$as_echo "$min set" >&6; }
18956 fi
18957
18958 old_CFLAGS=$CFLAGS
18959 CFLAGS="$CFLAGS -Werror=partial-availability"
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
18961$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
18962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18963/* end confdefs.h. */
18964
18965int main (void)
18966{
18967
18968 ;
18969 return 0;
18970}
18971_ACEOF
18972if ac_fn_c_try_compile "$LINENO"; then :
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18974$as_echo "yes" >&6; }
18975else
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977$as_echo "no" >&6; }
18978 CFLAGS=$old_CFLAGS
18979fi
18980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18981 fi
18982
18983
18984
Alex Deymo486467e2017-12-19 19:04:07 +010018985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
18986$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
18987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18988/* end confdefs.h. */
18989
18990
18991#include <stdlib.h>
18992
18993int main (void)
18994{
18995
18996 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
18997
18998 ;
18999 return 0;
19000}
19001
19002_ACEOF
19003if ac_fn_c_try_compile "$LINENO"; then :
19004
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19006$as_echo "yes" >&6; }
19007
19008cat >>confdefs.h <<_ACEOF
19009#define HAVE_BUILTIN_AVAILABLE 1
19010_ACEOF
19011
19012
19013else
19014
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19016$as_echo "no" >&6; }
19017
19018fi
19019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19020
19021
Haibo Huang65021c72019-03-27 15:37:23 -070019022
Elliott Hughes82be86d2017-09-20 17:00:17 -070019023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19024$as_echo_n "checking whether to support http... " >&6; }
19025# Check whether --enable-http was given.
19026if test "${enable_http+set}" = set; then :
19027 enableval=$enable_http; case "$enableval" in
19028 no)
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19030$as_echo "no" >&6; }
19031
19032$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19033
19034 disable_http="yes"
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19036$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19037 CURL_DISABLE_HTTP=1
19038
19039
19040$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19041
19042 CURL_DISABLE_RTSP=1
19043
19044 ;;
19045 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19046$as_echo "yes" >&6; }
19047 ;;
19048 esac
19049else
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19051$as_echo "yes" >&6; }
19052
19053fi
19054
19055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19056$as_echo_n "checking whether to support ftp... " >&6; }
19057# Check whether --enable-ftp was given.
19058if test "${enable_ftp+set}" = set; then :
19059 enableval=$enable_ftp; case "$enableval" in
19060 no)
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19062$as_echo "no" >&6; }
19063
19064$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19065
19066 CURL_DISABLE_FTP=1
19067
19068 ;;
19069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19070$as_echo "yes" >&6; }
19071 ;;
19072 esac
19073else
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19075$as_echo "yes" >&6; }
19076
19077fi
19078
19079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19080$as_echo_n "checking whether to support file... " >&6; }
19081# Check whether --enable-file was given.
19082if test "${enable_file+set}" = set; then :
19083 enableval=$enable_file; case "$enableval" in
19084 no)
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19086$as_echo "no" >&6; }
19087
19088$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19089
19090 CURL_DISABLE_FILE=1
19091
19092 ;;
19093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19094$as_echo "yes" >&6; }
19095 ;;
19096 esac
19097else
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19099$as_echo "yes" >&6; }
19100
19101fi
19102
19103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19104$as_echo_n "checking whether to support ldap... " >&6; }
19105# Check whether --enable-ldap was given.
19106if test "${enable_ldap+set}" = set; then :
19107 enableval=$enable_ldap; case "$enableval" in
19108 no)
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19110$as_echo "no" >&6; }
19111
19112$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19113
19114 CURL_DISABLE_LDAP=1
19115
19116 ;;
19117 *)
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19119$as_echo "yes" >&6; }
19120 ;;
19121 esac
19122else
19123
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19125$as_echo "yes" >&6; }
19126
19127fi
19128
19129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19130$as_echo_n "checking whether to support ldaps... " >&6; }
19131# Check whether --enable-ldaps was given.
19132if test "${enable_ldaps+set}" = set; then :
19133 enableval=$enable_ldaps; case "$enableval" in
19134 no)
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136$as_echo "no" >&6; }
19137
19138$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19139
19140 CURL_DISABLE_LDAPS=1
19141
19142 ;;
19143 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19145$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19146
19147$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19148
19149 CURL_DISABLE_LDAPS=1
19150
19151 else
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19153$as_echo "yes" >&6; }
19154
19155$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19156
19157 HAVE_LDAP_SSL=1
19158
19159 fi
19160 ;;
19161 esac
19162else
19163
19164 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166$as_echo "no" >&6; }
19167
19168$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19169
19170 CURL_DISABLE_LDAPS=1
19171
19172 else
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174$as_echo "yes" >&6; }
19175
19176$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19177
19178 HAVE_LDAP_SSL=1
19179
19180 fi
19181
19182fi
19183
19184
19185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19186$as_echo_n "checking whether to support rtsp... " >&6; }
19187# Check whether --enable-rtsp was given.
19188if test "${enable_rtsp+set}" = set; then :
19189 enableval=$enable_rtsp; case "$enableval" in
19190 no)
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192$as_echo "no" >&6; }
19193
19194$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19195
19196 CURL_DISABLE_RTSP=1
19197
19198 ;;
19199 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19200 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19201 else
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19203$as_echo "yes" >&6; }
19204 curl_rtsp_msg="enabled"
19205 fi
19206 ;;
19207 esac
19208else
19209 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19211$as_echo "yes" >&6; }
19212 curl_rtsp_msg="enabled"
19213 else
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19215$as_echo "no" >&6; }
19216 fi
19217
19218fi
19219
19220
19221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19222$as_echo_n "checking whether to support proxies... " >&6; }
19223# Check whether --enable-proxy was given.
19224if test "${enable_proxy+set}" = set; then :
19225 enableval=$enable_proxy; case "$enableval" in
19226 no)
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228$as_echo "no" >&6; }
19229
19230$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19231
19232 CURL_DISABLE_PROXY=1
19233
19234 ;;
19235 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236$as_echo "yes" >&6; }
19237 ;;
19238 esac
19239else
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241$as_echo "yes" >&6; }
19242
19243fi
19244
19245
19246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19247$as_echo_n "checking whether to support dict... " >&6; }
19248# Check whether --enable-dict was given.
19249if test "${enable_dict+set}" = set; then :
19250 enableval=$enable_dict; case "$enableval" in
19251 no)
19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19253$as_echo "no" >&6; }
19254
19255$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19256
19257 CURL_DISABLE_DICT=1
19258
19259 ;;
19260 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19261$as_echo "yes" >&6; }
19262 ;;
19263 esac
19264else
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266$as_echo "yes" >&6; }
19267
19268fi
19269
19270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19271$as_echo_n "checking whether to support telnet... " >&6; }
19272# Check whether --enable-telnet was given.
19273if test "${enable_telnet+set}" = set; then :
19274 enableval=$enable_telnet; case "$enableval" in
19275 no)
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19277$as_echo "no" >&6; }
19278
19279$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19280
19281 CURL_DISABLE_TELNET=1
19282
19283 ;;
19284 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19285$as_echo "yes" >&6; }
19286 ;;
19287 esac
19288else
19289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19290$as_echo "yes" >&6; }
19291
19292fi
19293
19294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19295$as_echo_n "checking whether to support tftp... " >&6; }
19296# Check whether --enable-tftp was given.
19297if test "${enable_tftp+set}" = set; then :
19298 enableval=$enable_tftp; case "$enableval" in
19299 no)
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301$as_echo "no" >&6; }
19302
19303$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19304
19305 CURL_DISABLE_TFTP=1
19306
19307 ;;
19308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19309$as_echo "yes" >&6; }
19310 ;;
19311 esac
19312else
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19314$as_echo "yes" >&6; }
19315
19316fi
19317
19318
19319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19320$as_echo_n "checking whether to support pop3... " >&6; }
19321# Check whether --enable-pop3 was given.
19322if test "${enable_pop3+set}" = set; then :
19323 enableval=$enable_pop3; case "$enableval" in
19324 no)
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19326$as_echo "no" >&6; }
19327
19328$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19329
19330 CURL_DISABLE_POP3=1
19331
19332 ;;
19333 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19334$as_echo "yes" >&6; }
19335 ;;
19336 esac
19337else
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339$as_echo "yes" >&6; }
19340
19341fi
19342
19343
19344
19345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19346$as_echo_n "checking whether to support imap... " >&6; }
19347# Check whether --enable-imap was given.
19348if test "${enable_imap+set}" = set; then :
19349 enableval=$enable_imap; case "$enableval" in
19350 no)
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19352$as_echo "no" >&6; }
19353
19354$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19355
19356 CURL_DISABLE_IMAP=1
19357
19358 ;;
19359 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19360$as_echo "yes" >&6; }
19361 ;;
19362 esac
19363else
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19365$as_echo "yes" >&6; }
19366
19367fi
19368
19369
19370
19371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19372$as_echo_n "checking whether to support smb... " >&6; }
19373# Check whether --enable-smb was given.
19374if test "${enable_smb+set}" = set; then :
19375 enableval=$enable_smb; case "$enableval" in
19376 no)
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378$as_echo "no" >&6; }
19379
19380$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19381
19382 CURL_DISABLE_SMB=1
19383
19384 ;;
19385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19386$as_echo "yes" >&6; }
19387 ;;
19388 esac
19389else
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19391$as_echo "yes" >&6; }
19392
19393fi
19394
19395
19396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19397$as_echo_n "checking whether to support smtp... " >&6; }
19398# Check whether --enable-smtp was given.
19399if test "${enable_smtp+set}" = set; then :
19400 enableval=$enable_smtp; case "$enableval" in
19401 no)
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19403$as_echo "no" >&6; }
19404
19405$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19406
19407 CURL_DISABLE_SMTP=1
19408
19409 ;;
19410 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19411$as_echo "yes" >&6; }
19412 ;;
19413 esac
19414else
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19416$as_echo "yes" >&6; }
19417
19418fi
19419
19420
19421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19422$as_echo_n "checking whether to support gopher... " >&6; }
19423# Check whether --enable-gopher was given.
19424if test "${enable_gopher+set}" = set; then :
19425 enableval=$enable_gopher; case "$enableval" in
19426 no)
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19428$as_echo "no" >&6; }
19429
19430$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19431
19432 CURL_DISABLE_GOPHER=1
19433
19434 ;;
19435 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19436$as_echo "yes" >&6; }
19437 ;;
19438 esac
19439else
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441$as_echo "yes" >&6; }
19442
19443fi
19444
19445
19446
19447
19448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19449$as_echo_n "checking whether to provide built-in manual... " >&6; }
19450# Check whether --enable-manual was given.
19451if test "${enable_manual+set}" = set; then :
19452 enableval=$enable_manual; case "$enableval" in
19453 no)
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19455$as_echo "no" >&6; }
19456 ;;
19457 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19458$as_echo "yes" >&6; }
19459 USE_MANUAL="1"
19460 ;;
19461 esac
19462else
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19464$as_echo "yes" >&6; }
19465 USE_MANUAL="1"
19466
19467fi
19468
19469
19470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19471$as_echo_n "checking whether to enable generation of C code... " >&6; }
19472# Check whether --enable-libcurl_option was given.
19473if test "${enable_libcurl_option+set}" = set; then :
19474 enableval=$enable_libcurl_option; case "$enableval" in
19475 no)
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19477$as_echo "no" >&6; }
19478
19479$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19480
19481 curl_libcurl_msg="no"
19482 ;;
19483 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484$as_echo "yes" >&6; }
19485 ;;
19486 esac
19487else
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19489$as_echo "yes" >&6; }
19490
19491fi
19492
19493
19494
19495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19496$as_echo_n "checking whether to use libgcc... " >&6; }
19497# Check whether --enable-libgcc was given.
19498if test "${enable_libgcc+set}" = set; then :
19499 enableval=$enable_libgcc; case "$enableval" in
19500 yes)
19501 LIBS="-lgcc $LIBS"
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19503$as_echo "yes" >&6; }
19504 ;;
19505 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19506$as_echo "no" >&6; }
19507 ;;
19508 esac
19509else
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19511$as_echo "no" >&6; }
19512
19513fi
19514
19515
19516
19517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19518$as_echo_n "checking if X/Open network library is required... " >&6; }
19519 tst_lib_xnet_required="no"
19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521/* end confdefs.h. */
19522
19523
19524int main (void)
19525{
19526#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19527 return 0;
19528#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19529 return 0;
19530#else
19531 force compilation error
19532#endif
19533}
19534
19535
19536_ACEOF
19537if ac_fn_c_try_compile "$LINENO"; then :
19538
19539 tst_lib_xnet_required="yes"
19540 LIBS="-lxnet $LIBS"
19541
19542fi
19543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19545$as_echo "$tst_lib_xnet_required" >&6; }
19546
19547
19548ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19549if test "x$ac_cv_func_gethostbyname" = xyes; then :
19550 HAVE_GETHOSTBYNAME="1"
19551
19552else
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19554$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19555if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19556 $as_echo_n "(cached) " >&6
19557else
19558 ac_check_lib_save_LIBS=$LIBS
19559LIBS="-lnsl $LIBS"
19560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19561/* end confdefs.h. */
19562
19563
19564#ifdef __cplusplus
19565extern "C"
19566#endif
19567char gethostbyname ();
19568int main (void)
19569{
19570return gethostbyname ();
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575if ac_fn_c_try_link "$LINENO"; then :
19576 ac_cv_lib_nsl_gethostbyname=yes
19577else
19578 ac_cv_lib_nsl_gethostbyname=no
19579fi
19580rm -f core conftest.err conftest.$ac_objext \
19581 conftest$ac_exeext conftest.$ac_ext
19582LIBS=$ac_check_lib_save_LIBS
19583fi
19584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19585$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19586if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19587 HAVE_GETHOSTBYNAME="1"
19588 LIBS="-lnsl $LIBS"
19589
19590fi
19591
19592
19593fi
19594
19595
19596if test "$HAVE_GETHOSTBYNAME" != "1"
19597then
19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19599$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19600if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19601 $as_echo_n "(cached) " >&6
19602else
19603 ac_check_lib_save_LIBS=$LIBS
19604LIBS="-lsocket $LIBS"
19605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606/* end confdefs.h. */
19607
19608
19609#ifdef __cplusplus
19610extern "C"
19611#endif
19612char gethostbyname ();
19613int main (void)
19614{
19615return gethostbyname ();
19616 ;
19617 return 0;
19618}
19619_ACEOF
19620if ac_fn_c_try_link "$LINENO"; then :
19621 ac_cv_lib_socket_gethostbyname=yes
19622else
19623 ac_cv_lib_socket_gethostbyname=no
19624fi
19625rm -f core conftest.err conftest.$ac_objext \
19626 conftest$ac_exeext conftest.$ac_ext
19627LIBS=$ac_check_lib_save_LIBS
19628fi
19629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19630$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19631if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19632 HAVE_GETHOSTBYNAME="1"
19633 LIBS="-lsocket $LIBS"
19634
19635fi
19636
19637fi
19638
19639if test "$HAVE_GETHOSTBYNAME" != "1"
19640then
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19642$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19643if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19644 $as_echo_n "(cached) " >&6
19645else
19646 ac_check_lib_save_LIBS=$LIBS
19647LIBS="-lwatt $LIBS"
19648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649/* end confdefs.h. */
19650
19651
19652#ifdef __cplusplus
19653extern "C"
19654#endif
19655char gethostbyname ();
19656int main (void)
19657{
19658return gethostbyname ();
19659 ;
19660 return 0;
19661}
19662_ACEOF
19663if ac_fn_c_try_link "$LINENO"; then :
19664 ac_cv_lib_watt_gethostbyname=yes
19665else
19666 ac_cv_lib_watt_gethostbyname=no
19667fi
19668rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19670LIBS=$ac_check_lib_save_LIBS
19671fi
19672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19673$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19674if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19675 HAVE_GETHOSTBYNAME="1"
19676 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19677 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19678 LIBS="-lwatt $LIBS"
19679
19680fi
19681
19682fi
19683
19684if test "$HAVE_GETHOSTBYNAME" != "1"
19685then
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19687$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19688 my_ac_save_LIBS=$LIBS
19689 LIBS="-lnsl -lsocket $LIBS"
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691/* end confdefs.h. */
19692
19693
19694
19695int main (void)
19696{
19697
19698 gethostbyname();
19699
19700 ;
19701 return 0;
19702}
19703
19704_ACEOF
19705if ac_fn_c_try_link "$LINENO"; then :
19706
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19708$as_echo "yes" >&6; }
19709 HAVE_GETHOSTBYNAME="1"
19710
19711else
19712
19713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19714$as_echo "no" >&6; }
19715 LIBS=$my_ac_save_LIBS
19716
19717fi
19718rm -f core conftest.err conftest.$ac_objext \
19719 conftest$ac_exeext conftest.$ac_ext
19720fi
19721
19722if test "$HAVE_GETHOSTBYNAME" != "1"
19723then
19724 if test "$curl_cv_header_windows_h" = "yes"; then
19725 if test "$curl_cv_header_winsock_h" = "yes"; then
19726 case $host in
19727 *-*-mingw32ce*)
19728 winsock_LIB="-lwinsock"
19729 ;;
19730 *)
19731 winsock_LIB="-lwsock32"
19732 ;;
19733 esac
19734 fi
19735 if test "$curl_cv_header_winsock2_h" = "yes"; then
19736 winsock_LIB="-lws2_32"
19737 fi
19738 if test ! -z "$winsock_LIB"; then
19739 my_ac_save_LIBS=$LIBS
19740 LIBS="$winsock_LIB $LIBS"
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19742$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19744/* end confdefs.h. */
19745
19746
19747#ifdef HAVE_WINDOWS_H
19748#ifndef WIN32_LEAN_AND_MEAN
19749#define WIN32_LEAN_AND_MEAN
19750#endif
19751#include <windows.h>
19752#ifdef HAVE_WINSOCK2_H
19753#include <winsock2.h>
19754#else
19755#ifdef HAVE_WINSOCK_H
19756#include <winsock.h>
19757#endif
19758#endif
19759#endif
19760
19761int main (void)
19762{
19763
19764 gethostbyname("www.dummysite.com");
19765
19766 ;
19767 return 0;
19768}
19769
19770_ACEOF
19771if ac_fn_c_try_link "$LINENO"; then :
19772
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19774$as_echo "yes" >&6; }
19775 HAVE_GETHOSTBYNAME="1"
19776
19777else
19778
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19780$as_echo "no" >&6; }
19781 winsock_LIB=""
19782 LIBS=$my_ac_save_LIBS
19783
19784fi
19785rm -f core conftest.err conftest.$ac_objext \
19786 conftest$ac_exeext conftest.$ac_ext
19787 fi
19788 fi
19789fi
19790
19791if test "$HAVE_GETHOSTBYNAME" != "1"
19792then
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19794$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796/* end confdefs.h. */
19797
19798
19799/* Older Minix versions may need <net/gen/netdb.h> here instead */
19800#include <netdb.h>
19801
19802int main (void)
19803{
19804
19805 gethostbyname("www.dummysite.com");
19806
19807 ;
19808 return 0;
19809}
19810
19811_ACEOF
19812if ac_fn_c_try_link "$LINENO"; then :
19813
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19815$as_echo "yes" >&6; }
19816 HAVE_GETHOSTBYNAME="1"
19817
19818else
19819
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19821$as_echo "no" >&6; }
19822
19823fi
19824rm -f core conftest.err conftest.$ac_objext \
19825 conftest$ac_exeext conftest.$ac_ext
19826fi
19827
19828if test "$HAVE_GETHOSTBYNAME" != "1"
19829then
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19831$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833/* end confdefs.h. */
19834
19835
19836#include <stdio.h>
19837#include <netdb.h>
19838
19839int main (void)
19840{
19841
19842 gethostbyname("www.dummysite.com");
19843
19844 ;
19845 return 0;
19846}
19847
19848_ACEOF
19849if ac_fn_c_try_link "$LINENO"; then :
19850
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19852$as_echo "yes" >&6; }
19853 HAVE_GETHOSTBYNAME="1"
19854
19855else
19856
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19858$as_echo "no" >&6; }
19859
19860fi
19861rm -f core conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
19863fi
19864
19865if test "$HAVE_GETHOSTBYNAME" != "1"
19866then
Haibo Huang65021c72019-03-27 15:37:23 -070019867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
19868$as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
19869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870/* end confdefs.h. */
19871
19872
19873#include <proto/bsdsocket.h>
19874struct Library *SocketBase = NULL;
19875
19876int main (void)
19877{
19878
19879 gethostbyname("www.dummysite.com");
19880
19881 ;
19882 return 0;
19883}
19884
19885_ACEOF
19886if ac_fn_c_try_link "$LINENO"; then :
19887
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19889$as_echo "yes" >&6; }
19890 HAVE_GETHOSTBYNAME="1"
19891 HAVE_PROTO_BSDSOCKET_H="1"
19892
19893$as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
19894
19895 HAVE_PROTO_BSDSOCKET_H=1
19896
19897
19898else
19899
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19901$as_echo "no" >&6; }
19902
19903fi
19904rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19906fi
19907
19908if test "$HAVE_GETHOSTBYNAME" != "1"
19909then
Elliott Hughes82be86d2017-09-20 17:00:17 -070019910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19911$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19912if ${ac_cv_lib_network_gethostbyname+:} false; then :
19913 $as_echo_n "(cached) " >&6
19914else
19915 ac_check_lib_save_LIBS=$LIBS
19916LIBS="-lnetwork $LIBS"
19917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19918/* end confdefs.h. */
19919
19920
19921#ifdef __cplusplus
19922extern "C"
19923#endif
19924char gethostbyname ();
19925int main (void)
19926{
19927return gethostbyname ();
19928 ;
19929 return 0;
19930}
19931_ACEOF
19932if ac_fn_c_try_link "$LINENO"; then :
19933 ac_cv_lib_network_gethostbyname=yes
19934else
19935 ac_cv_lib_network_gethostbyname=no
19936fi
19937rm -f core conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19939LIBS=$ac_check_lib_save_LIBS
19940fi
19941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19942$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19943if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19944 HAVE_GETHOSTBYNAME="1"
19945 LIBS="-lnetwork $LIBS"
19946
19947fi
19948
19949fi
19950
19951if test "$HAVE_GETHOSTBYNAME" != "1"
19952then
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19954$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19955if ${ac_cv_lib_net_gethostbyname+:} false; then :
19956 $as_echo_n "(cached) " >&6
19957else
19958 ac_check_lib_save_LIBS=$LIBS
19959LIBS="-lnet $LIBS"
19960cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19961/* end confdefs.h. */
19962
19963
19964#ifdef __cplusplus
19965extern "C"
19966#endif
19967char gethostbyname ();
19968int main (void)
19969{
19970return gethostbyname ();
19971 ;
19972 return 0;
19973}
19974_ACEOF
19975if ac_fn_c_try_link "$LINENO"; then :
19976 ac_cv_lib_net_gethostbyname=yes
19977else
19978 ac_cv_lib_net_gethostbyname=no
19979fi
19980rm -f core conftest.err conftest.$ac_objext \
19981 conftest$ac_exeext conftest.$ac_ext
19982LIBS=$ac_check_lib_save_LIBS
19983fi
19984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19985$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19986if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19987 HAVE_GETHOSTBYNAME="1"
19988 LIBS="-lnet $LIBS"
19989
19990fi
19991
19992fi
19993
19994
19995if test "$HAVE_GETHOSTBYNAME" != "1"; then
19996 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19997fi
19998
19999
20000curl_includes_winsock2="\
20001/* includes start */
20002#ifdef HAVE_WINDOWS_H
20003# ifndef WIN32_LEAN_AND_MEAN
20004# define WIN32_LEAN_AND_MEAN
20005# endif
20006# include <windows.h>
20007# ifdef HAVE_WINSOCK2_H
20008# include <winsock2.h>
20009# else
20010# ifdef HAVE_WINSOCK_H
20011# include <winsock.h>
20012# endif
20013# endif
20014#endif
20015/* includes end */"
20016
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20018$as_echo_n "checking for windows.h... " >&6; }
20019if ${curl_cv_header_windows_h+:} false; then :
20020 $as_echo_n "(cached) " >&6
20021else
20022
20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20024/* end confdefs.h. */
20025
20026
20027#undef inline
20028#ifndef WIN32_LEAN_AND_MEAN
20029#define WIN32_LEAN_AND_MEAN
20030#endif
20031#include <windows.h>
20032
20033int main (void)
20034{
20035
20036#if defined(__CYGWIN__) || defined(__CEGCC__)
20037 HAVE_WINDOWS_H shall not be defined.
20038#else
20039 int dummy=2*WINVER;
20040#endif
20041
20042 ;
20043 return 0;
20044}
20045
20046_ACEOF
20047if ac_fn_c_try_compile "$LINENO"; then :
20048
20049 curl_cv_header_windows_h="yes"
20050
20051else
20052
20053 curl_cv_header_windows_h="no"
20054
20055fi
20056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20057
20058fi
20059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20060$as_echo "$curl_cv_header_windows_h" >&6; }
20061 case "$curl_cv_header_windows_h" in
20062 yes)
20063
20064cat >>confdefs.h <<_ACEOF
20065#define HAVE_WINDOWS_H 1
20066_ACEOF
20067
20068 ;;
20069 esac
20070
20071
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20073$as_echo_n "checking for winsock.h... " >&6; }
20074if ${curl_cv_header_winsock_h+:} false; then :
20075 $as_echo_n "(cached) " >&6
20076else
20077
20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079/* end confdefs.h. */
20080
20081
20082#undef inline
20083#ifndef WIN32_LEAN_AND_MEAN
20084#define WIN32_LEAN_AND_MEAN
20085#endif
20086#include <windows.h>
20087#include <winsock.h>
20088
20089int main (void)
20090{
20091
20092#if defined(__CYGWIN__) || defined(__CEGCC__)
20093 HAVE_WINSOCK_H shall not be defined.
20094#else
20095 int dummy=WSACleanup();
20096#endif
20097
20098 ;
20099 return 0;
20100}
20101
20102_ACEOF
20103if ac_fn_c_try_compile "$LINENO"; then :
20104
20105 curl_cv_header_winsock_h="yes"
20106
20107else
20108
20109 curl_cv_header_winsock_h="no"
20110
20111fi
20112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20113
20114fi
20115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20116$as_echo "$curl_cv_header_winsock_h" >&6; }
20117 case "$curl_cv_header_winsock_h" in
20118 yes)
20119
20120cat >>confdefs.h <<_ACEOF
20121#define HAVE_WINSOCK_H 1
20122_ACEOF
20123
20124 ;;
20125 esac
20126
20127
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20129$as_echo_n "checking for winsock2.h... " >&6; }
20130if ${curl_cv_header_winsock2_h+:} false; then :
20131 $as_echo_n "(cached) " >&6
20132else
20133
20134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20135/* end confdefs.h. */
20136
20137
20138#undef inline
20139#ifndef WIN32_LEAN_AND_MEAN
20140#define WIN32_LEAN_AND_MEAN
20141#endif
20142#include <windows.h>
20143#include <winsock2.h>
20144
20145int main (void)
20146{
20147
20148#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20149 HAVE_WINSOCK2_H shall not be defined.
20150#else
20151 int dummy=2*IPPROTO_ESP;
20152#endif
20153
20154 ;
20155 return 0;
20156}
20157
20158_ACEOF
20159if ac_fn_c_try_compile "$LINENO"; then :
20160
20161 curl_cv_header_winsock2_h="yes"
20162
20163else
20164
20165 curl_cv_header_winsock2_h="no"
20166
20167fi
20168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169
20170fi
20171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20172$as_echo "$curl_cv_header_winsock2_h" >&6; }
20173 case "$curl_cv_header_winsock2_h" in
20174 yes)
20175
20176cat >>confdefs.h <<_ACEOF
20177#define HAVE_WINSOCK2_H 1
20178_ACEOF
20179
20180 ;;
20181 esac
20182
20183
20184
Haibo Huang65021c72019-03-27 15:37:23 -070020185curl_includes_bsdsocket="\
20186/* includes start */
20187#ifdef HAVE_PROTO_BSDSOCKET_H
20188# include <proto/bsdsocket.h>
20189 struct Library *SocketBase = NULL;
20190#endif
20191/* includes end */"
20192 for ac_header in proto/bsdsocket.h
20193do :
20194 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket
20195"
20196if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then :
20197 cat >>confdefs.h <<_ACEOF
20198#define HAVE_PROTO_BSDSOCKET_H 1
20199_ACEOF
20200
20201fi
20202
20203done
20204
20205
20206
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020208$as_echo_n "checking for connect in libraries... " >&6; }
20209 tst_connect_save_LIBS="$LIBS"
20210 tst_connect_need_LIBS="unknown"
20211 for tst_lib in '' '-lsocket' ; do
20212 if test "$tst_connect_need_LIBS" = "unknown"; then
20213 LIBS="$tst_lib $tst_connect_save_LIBS"
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215/* end confdefs.h. */
20216
20217
20218 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070020219 $curl_includes_bsdsocket
20220 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
Elliott Hughes82be86d2017-09-20 17:00:17 -070020221 int connect(int, void*, int);
20222 #endif
20223
20224int main (void)
20225{
20226
20227 if(0 != connect(0, 0, 0))
20228 return 1;
20229
20230 ;
20231 return 0;
20232}
20233
20234_ACEOF
20235if ac_fn_c_try_link "$LINENO"; then :
20236
20237 tst_connect_need_LIBS="$tst_lib"
20238
20239fi
20240rm -f core conftest.err conftest.$ac_objext \
20241 conftest$ac_exeext conftest.$ac_ext
20242 fi
20243 done
20244 LIBS="$tst_connect_save_LIBS"
20245 #
20246 case X-"$tst_connect_need_LIBS" in
20247 X-unknown)
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20249$as_echo "cannot find connect" >&6; }
20250 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20251 ;;
20252 X-)
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20254$as_echo "yes" >&6; }
20255 ;;
20256 *)
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20258$as_echo "$tst_connect_need_LIBS" >&6; }
20259 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20260 ;;
20261 esac
20262
20263
20264CURL_NETWORK_LIBS=$LIBS
20265
20266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20267$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20268if ${ac_cv_header_time+:} false; then :
20269 $as_echo_n "(cached) " >&6
20270else
20271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20272/* end confdefs.h. */
20273#include <sys/types.h>
20274#include <sys/time.h>
20275#include <time.h>
20276
20277int main (void)
20278{
20279if ((struct tm *) 0)
20280return 0;
20281 ;
20282 return 0;
20283}
20284_ACEOF
20285if ac_fn_c_try_compile "$LINENO"; then :
20286 ac_cv_header_time=yes
20287else
20288 ac_cv_header_time=no
20289fi
20290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20291fi
20292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20293$as_echo "$ac_cv_header_time" >&6; }
20294if test $ac_cv_header_time = yes; then
20295
20296$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20297
20298fi
20299
20300
20301 for ac_header in sys/types.h sys/time.h time.h
20302do :
20303 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20304ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20306 cat >>confdefs.h <<_ACEOF
20307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20308_ACEOF
20309
20310fi
20311
20312done
20313
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20315$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20316 #
20317 if test "x$dontwant_rt" = "xno" ; then
20318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20319/* end confdefs.h. */
20320
20321
20322#ifdef HAVE_SYS_TYPES_H
20323#include <sys/types.h>
20324#endif
20325#ifdef HAVE_SYS_TIME_H
20326#include <sys/time.h>
20327#ifdef TIME_WITH_SYS_TIME
20328#include <time.h>
20329#endif
20330#else
20331#ifdef HAVE_TIME_H
20332#include <time.h>
20333#endif
20334#endif
20335
20336int main (void)
20337{
20338
20339 struct timespec ts;
20340 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20341
20342 ;
20343 return 0;
20344}
20345
20346_ACEOF
20347if ac_fn_c_try_compile "$LINENO"; then :
20348
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20350$as_echo "yes" >&6; }
20351 curl_func_clock_gettime="yes"
20352
20353else
20354
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20356$as_echo "no" >&6; }
20357 curl_func_clock_gettime="no"
20358
20359fi
20360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20361 fi
20362
20363
20364 #
20365 if test "$curl_func_clock_gettime" = "yes"; then
20366 #
20367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20368$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20369 #
20370 curl_cv_save_LIBS="$LIBS"
20371 curl_cv_gclk_LIBS="unknown"
20372 #
20373 for x_xlibs in '' '-lrt' '-lposix4' ; do
20374 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20375 if test -z "$x_xlibs"; then
20376 LIBS="$curl_cv_save_LIBS"
20377 else
20378 LIBS="$x_xlibs $curl_cv_save_LIBS"
20379 fi
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381/* end confdefs.h. */
20382
20383
20384#ifdef HAVE_SYS_TYPES_H
20385#include <sys/types.h>
20386#endif
20387#ifdef HAVE_SYS_TIME_H
20388#include <sys/time.h>
20389#ifdef TIME_WITH_SYS_TIME
20390#include <time.h>
20391#endif
20392#else
20393#ifdef HAVE_TIME_H
20394#include <time.h>
20395#endif
20396#endif
20397
20398int main (void)
20399{
20400
20401 struct timespec ts;
20402 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20403
20404 ;
20405 return 0;
20406}
20407
20408_ACEOF
20409if ac_fn_c_try_link "$LINENO"; then :
20410
20411 curl_cv_gclk_LIBS="$x_xlibs"
20412
20413fi
20414rm -f core conftest.err conftest.$ac_objext \
20415 conftest$ac_exeext conftest.$ac_ext
20416 fi
20417 done
20418 #
20419 LIBS="$curl_cv_save_LIBS"
20420 #
20421 case X-"$curl_cv_gclk_LIBS" in
20422 X-unknown)
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20424$as_echo "cannot find clock_gettime" >&6; }
20425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20426$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20427 curl_func_clock_gettime="no"
20428 ;;
20429 X-)
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20431$as_echo "no additional lib required" >&6; }
20432 curl_func_clock_gettime="yes"
20433 ;;
20434 *)
20435 if test -z "$curl_cv_save_LIBS"; then
20436 LIBS="$curl_cv_gclk_LIBS"
20437 else
20438 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20439 fi
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20441$as_echo "$curl_cv_gclk_LIBS" >&6; }
20442 curl_func_clock_gettime="yes"
20443 ;;
20444 esac
20445 #
20446 if test "x$cross_compiling" != "xyes" &&
20447 test "$curl_func_clock_gettime" = "yes"; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20449$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080020450
20451
20452 old=$LD_LIBRARY_PATH
20453 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20454 export LD_LIBRARY_PATH
20455 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070020456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20458as_fn_error $? "cannot run test program while cross compiling
20459See \`config.log' for more details" "$LINENO" 5; }
20460else
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462/* end confdefs.h. */
20463
20464
20465#ifdef HAVE_STDLIB_H
20466#include <stdlib.h>
20467#endif
20468#ifdef HAVE_SYS_TYPES_H
20469#include <sys/types.h>
20470#endif
20471#ifdef HAVE_SYS_TIME_H
20472#include <sys/time.h>
20473#ifdef TIME_WITH_SYS_TIME
20474#include <time.h>
20475#endif
20476#else
20477#ifdef HAVE_TIME_H
20478#include <time.h>
20479#endif
20480#endif
20481
20482int main (void)
20483{
20484
20485 struct timespec ts;
20486 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20487 exit(0);
20488 else
20489 exit(1);
20490
20491 ;
20492 return 0;
20493}
20494
20495_ACEOF
20496if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080020497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020498$as_echo "yes" >&6; }
20499
20500else
Elliott Hughesa93fb052018-12-12 14:22:48 -080020501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020502$as_echo "no" >&6; }
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20504$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20505 curl_func_clock_gettime="no"
20506 LIBS="$curl_cv_save_LIBS"
20507
20508fi
20509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20510 conftest.$ac_objext conftest.beam conftest.$ac_ext
20511fi
20512
Elliott Hughesa93fb052018-12-12 14:22:48 -080020513 LD_LIBRARY_PATH=$old # restore
20514
Elliott Hughes82be86d2017-09-20 17:00:17 -070020515 fi
20516 #
20517 case "$curl_func_clock_gettime" in
20518 yes)
20519
20520cat >>confdefs.h <<_ACEOF
20521#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20522_ACEOF
20523
20524 ;;
20525 esac
20526 #
20527 fi
20528 #
20529
20530
20531CURL_NETWORK_AND_TIME_LIBS=$LIBS
20532
20533
20534
20535clean_CPPFLAGS=$CPPFLAGS
20536clean_LDFLAGS=$LDFLAGS
20537clean_LIBS=$LIBS
20538ZLIB_LIBS=""
20539
20540# Check whether --with-zlib was given.
20541if test "${with_zlib+set}" = set; then :
20542 withval=$with_zlib; OPT_ZLIB="$withval"
20543fi
20544
20545
20546if test "$OPT_ZLIB" = "no" ; then
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20548$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20549else
20550 if test "$OPT_ZLIB" = "yes" ; then
20551 OPT_ZLIB=""
20552 fi
20553
20554 if test -z "$OPT_ZLIB" ; then
20555
20556 if test -n "$PKG_CONFIG"; then
20557 PKGCONFIG="$PKG_CONFIG"
20558 else
20559 if test -n "$ac_tool_prefix"; then
20560 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20561set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20563$as_echo_n "checking for $ac_word... " >&6; }
20564if ${ac_cv_path_PKGCONFIG+:} false; then :
20565 $as_echo_n "(cached) " >&6
20566else
20567 case $PKGCONFIG in
20568 [\\/]* | ?:[\\/]*)
20569 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20570 ;;
20571 *)
20572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20573as_dummy="$PATH:/usr/bin:/usr/local/bin"
20574for as_dir in $as_dummy
20575do
20576 IFS=$as_save_IFS
20577 test -z "$as_dir" && as_dir=.
20578 for ac_exec_ext in '' $ac_executable_extensions; do
20579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20580 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20582 break 2
20583 fi
20584done
20585 done
20586IFS=$as_save_IFS
20587
20588 ;;
20589esac
20590fi
20591PKGCONFIG=$ac_cv_path_PKGCONFIG
20592if test -n "$PKGCONFIG"; then
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20594$as_echo "$PKGCONFIG" >&6; }
20595else
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20597$as_echo "no" >&6; }
20598fi
20599
20600
20601fi
20602if test -z "$ac_cv_path_PKGCONFIG"; then
20603 ac_pt_PKGCONFIG=$PKGCONFIG
20604 # Extract the first word of "pkg-config", so it can be a program name with args.
20605set dummy pkg-config; ac_word=$2
20606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20607$as_echo_n "checking for $ac_word... " >&6; }
20608if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20609 $as_echo_n "(cached) " >&6
20610else
20611 case $ac_pt_PKGCONFIG in
20612 [\\/]* | ?:[\\/]*)
20613 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20614 ;;
20615 *)
20616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20617as_dummy="$PATH:/usr/bin:/usr/local/bin"
20618for as_dir in $as_dummy
20619do
20620 IFS=$as_save_IFS
20621 test -z "$as_dir" && as_dir=.
20622 for ac_exec_ext in '' $ac_executable_extensions; do
20623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20624 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20626 break 2
20627 fi
20628done
20629 done
20630IFS=$as_save_IFS
20631
20632 ;;
20633esac
20634fi
20635ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20636if test -n "$ac_pt_PKGCONFIG"; then
20637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20638$as_echo "$ac_pt_PKGCONFIG" >&6; }
20639else
20640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20641$as_echo "no" >&6; }
20642fi
20643
20644 if test "x$ac_pt_PKGCONFIG" = x; then
20645 PKGCONFIG="no"
20646 else
20647 case $cross_compiling:$ac_tool_warned in
20648yes:)
20649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20651ac_tool_warned=yes ;;
20652esac
20653 PKGCONFIG=$ac_pt_PKGCONFIG
20654 fi
20655else
20656 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20657fi
20658
20659 fi
20660
20661 if test "x$PKGCONFIG" != "xno"; then
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20663$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20664 itexists=`
20665 if test -n ""; then
20666 PKG_CONFIG_LIBDIR=""
20667 export PKG_CONFIG_LIBDIR
20668 fi
20669 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20670
20671 if test -z "$itexists"; then
20672 PKGCONFIG="no"
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20674$as_echo "no" >&6; }
20675 else
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20677$as_echo "found" >&6; }
20678 fi
20679 fi
20680
20681
20682 if test "$PKGCONFIG" != "no" ; then
20683 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20684 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20685 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20686 OPT_ZLIB=""
20687 HAVE_LIBZ="1"
20688 fi
20689
20690 if test -z "$HAVE_LIBZ"; then
20691
20692
20693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20694$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20695if ${ac_cv_lib_z_inflateEnd+:} false; then :
20696 $as_echo_n "(cached) " >&6
20697else
20698 ac_check_lib_save_LIBS=$LIBS
20699LIBS="-lz $LIBS"
20700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20701/* end confdefs.h. */
20702
20703
20704#ifdef __cplusplus
20705extern "C"
20706#endif
20707char inflateEnd ();
20708int main (void)
20709{
20710return inflateEnd ();
20711 ;
20712 return 0;
20713}
20714_ACEOF
20715if ac_fn_c_try_link "$LINENO"; then :
20716 ac_cv_lib_z_inflateEnd=yes
20717else
20718 ac_cv_lib_z_inflateEnd=no
20719fi
20720rm -f core conftest.err conftest.$ac_objext \
20721 conftest$ac_exeext conftest.$ac_ext
20722LIBS=$ac_check_lib_save_LIBS
20723fi
20724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20725$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20726if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20727 HAVE_LIBZ="1"
20728 LIBS="-lz $LIBS"
20729else
20730 OPT_ZLIB="/usr/local"
20731fi
20732
20733 fi
20734 fi
20735
20736 if test -n "$OPT_ZLIB"; then
20737 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20738 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20739 fi
20740
20741 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20742if test "x$ac_cv_header_zlib_h" = xyes; then :
20743
20744 HAVE_ZLIB_H="1"
20745 if test "$HAVE_LIBZ" != "1"; then
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20747$as_echo_n "checking for gzread in -lz... " >&6; }
20748if ${ac_cv_lib_z_gzread+:} false; then :
20749 $as_echo_n "(cached) " >&6
20750else
20751 ac_check_lib_save_LIBS=$LIBS
20752LIBS="-lz $LIBS"
20753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754/* end confdefs.h. */
20755
20756
20757#ifdef __cplusplus
20758extern "C"
20759#endif
20760char gzread ();
20761int main (void)
20762{
20763return gzread ();
20764 ;
20765 return 0;
20766}
20767_ACEOF
20768if ac_fn_c_try_link "$LINENO"; then :
20769 ac_cv_lib_z_gzread=yes
20770else
20771 ac_cv_lib_z_gzread=no
20772fi
20773rm -f core conftest.err conftest.$ac_objext \
20774 conftest$ac_exeext conftest.$ac_ext
20775LIBS=$ac_check_lib_save_LIBS
20776fi
20777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20778$as_echo "$ac_cv_lib_z_gzread" >&6; }
20779if test "x$ac_cv_lib_z_gzread" = xyes; then :
20780
20781 HAVE_LIBZ="1"
20782 LIBS="-lz $LIBS"
20783
20784else
20785 CPPFLAGS=$clean_CPPFLAGS
20786 LDFLAGS=$clean_LDFLAGS
20787fi
20788
20789 fi
20790
20791else
20792
20793 CPPFLAGS=$clean_CPPFLAGS
20794 LDFLAGS=$clean_LDFLAGS
20795
20796fi
20797
20798
20799
20800 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20801 then
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20803$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20804 HAVE_LIBZ=""
20805 CPPFLAGS=$clean_CPPFLAGS
20806 LDFLAGS=$clean_LDFLAGS
20807 LIBS=$clean_LIBS
20808 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20809 then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20811$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20812 CPPFLAGS=$clean_CPPFLAGS
20813 LDFLAGS=$clean_LDFLAGS
20814 LIBS=$clean_LIBS
20815 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20816 then
20817
20818
20819$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20820
20821
20822$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20823
20824
20825 ZLIB_LIBS="-lz"
20826 LIBS="-lz $clean_LIBS"
20827
20828 AMFIXLIB="1"
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20830$as_echo "$as_me: found both libz and libz.h header" >&6;}
20831 curl_zlib_msg="enabled"
20832 fi
20833fi
20834
20835 if test x"$AMFIXLIB" = x1; then
20836 HAVE_LIBZ_TRUE=
20837 HAVE_LIBZ_FALSE='#'
20838else
20839 HAVE_LIBZ_TRUE='#'
20840 HAVE_LIBZ_FALSE=
20841fi
20842
20843
20844
20845
Alex Deymo486467e2017-12-19 19:04:07 +010020846
20847OPT_BROTLI=off
20848
20849# Check whether --with-brotli was given.
20850if test "${with_brotli+set}" = set; then :
20851 withval=$with_brotli; OPT_BROTLI=$withval
20852fi
20853
20854
20855if test X"$OPT_BROTLI" != Xno; then
20856 CLEANLDFLAGS="$LDFLAGS"
20857 CLEANCPPFLAGS="$CPPFLAGS"
20858 CLEANLIBS="$LIBS"
20859
20860 case "$OPT_BROTLI" in
20861 yes)
20862
20863 if test -n "$PKG_CONFIG"; then
20864 PKGCONFIG="$PKG_CONFIG"
20865 else
20866 if test -n "$ac_tool_prefix"; then
20867 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20868set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20870$as_echo_n "checking for $ac_word... " >&6; }
20871if ${ac_cv_path_PKGCONFIG+:} false; then :
20872 $as_echo_n "(cached) " >&6
20873else
20874 case $PKGCONFIG in
20875 [\\/]* | ?:[\\/]*)
20876 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20877 ;;
20878 *)
20879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20880as_dummy="$PATH:/usr/bin:/usr/local/bin"
20881for as_dir in $as_dummy
20882do
20883 IFS=$as_save_IFS
20884 test -z "$as_dir" && as_dir=.
20885 for ac_exec_ext in '' $ac_executable_extensions; do
20886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20887 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20889 break 2
20890 fi
20891done
20892 done
20893IFS=$as_save_IFS
20894
20895 ;;
20896esac
20897fi
20898PKGCONFIG=$ac_cv_path_PKGCONFIG
20899if test -n "$PKGCONFIG"; then
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20901$as_echo "$PKGCONFIG" >&6; }
20902else
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20904$as_echo "no" >&6; }
20905fi
20906
20907
20908fi
20909if test -z "$ac_cv_path_PKGCONFIG"; then
20910 ac_pt_PKGCONFIG=$PKGCONFIG
20911 # Extract the first word of "pkg-config", so it can be a program name with args.
20912set dummy pkg-config; ac_word=$2
20913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20914$as_echo_n "checking for $ac_word... " >&6; }
20915if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20916 $as_echo_n "(cached) " >&6
20917else
20918 case $ac_pt_PKGCONFIG in
20919 [\\/]* | ?:[\\/]*)
20920 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20921 ;;
20922 *)
20923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20924as_dummy="$PATH:/usr/bin:/usr/local/bin"
20925for as_dir in $as_dummy
20926do
20927 IFS=$as_save_IFS
20928 test -z "$as_dir" && as_dir=.
20929 for ac_exec_ext in '' $ac_executable_extensions; do
20930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20931 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20933 break 2
20934 fi
20935done
20936 done
20937IFS=$as_save_IFS
20938
20939 ;;
20940esac
20941fi
20942ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20943if test -n "$ac_pt_PKGCONFIG"; then
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20945$as_echo "$ac_pt_PKGCONFIG" >&6; }
20946else
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20948$as_echo "no" >&6; }
20949fi
20950
20951 if test "x$ac_pt_PKGCONFIG" = x; then
20952 PKGCONFIG="no"
20953 else
20954 case $cross_compiling:$ac_tool_warned in
20955yes:)
20956{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20957$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20958ac_tool_warned=yes ;;
20959esac
20960 PKGCONFIG=$ac_pt_PKGCONFIG
20961 fi
20962else
20963 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20964fi
20965
20966 fi
20967
20968 if test "x$PKGCONFIG" != "xno"; then
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
20970$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
20971 itexists=`
20972 if test -n ""; then
20973 PKG_CONFIG_LIBDIR=""
20974 export PKG_CONFIG_LIBDIR
20975 fi
20976 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
20977
20978 if test -z "$itexists"; then
20979 PKGCONFIG="no"
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981$as_echo "no" >&6; }
20982 else
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20984$as_echo "found" >&6; }
20985 fi
20986 fi
20987
20988
20989 if test "$PKGCONFIG" != "no" ; then
20990 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
20991 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
20992 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
20993 version=`$PKGCONFIG --modversion libbrotlidec`
20994 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
20995 fi
20996
20997 ;;
20998 off)
20999 ;;
21000 *)
21001 PREFIX_BROTLI=$OPT_BROTLI
21002 ;;
21003 esac
21004
21005 if test -n "$PREFIX_BROTLI"; then
21006 LIB_BROTLI="-lbrotlidec"
21007 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21008 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21009 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21010 fi
21011
21012 LDFLAGS="$LDFLAGS $LD_BROTLI"
21013 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21014 LIBS="$LIB_BROTLI $LIBS"
21015
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21017$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21018if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21019 $as_echo_n "(cached) " >&6
21020else
21021 ac_check_lib_save_LIBS=$LIBS
21022LIBS="-lbrotlidec $LIBS"
21023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21024/* end confdefs.h. */
21025
21026
21027#ifdef __cplusplus
21028extern "C"
21029#endif
21030char BrotliDecoderDecompress ();
21031int main (void)
21032{
21033return BrotliDecoderDecompress ();
21034 ;
21035 return 0;
21036}
21037_ACEOF
21038if ac_fn_c_try_link "$LINENO"; then :
21039 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21040else
21041 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21042fi
21043rm -f core conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21045LIBS=$ac_check_lib_save_LIBS
21046fi
21047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21048$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21049if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21050 cat >>confdefs.h <<_ACEOF
21051#define HAVE_LIBBROTLIDEC 1
21052_ACEOF
21053
21054 LIBS="-lbrotlidec $LIBS"
21055
21056fi
21057
21058
21059 for ac_header in brotli/decode.h
21060do :
21061 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21062if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21063 cat >>confdefs.h <<_ACEOF
21064#define HAVE_BROTLI_DECODE_H 1
21065_ACEOF
21066 curl_brotli_msg="enabled (libbrotlidec)"
21067 HAVE_BROTLI=1
21068
21069$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21070
21071 HAVE_BROTLI=1
21072
21073
21074fi
21075
21076done
21077
21078
21079 if test X"$OPT_BROTLI" != Xoff &&
21080 test "$HAVE_BROTLI" != "1"; then
21081 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21082 fi
21083
21084 if test "$HAVE_BROTLI" = "1"; then
21085 if test -n "$DIR_BROTLI"; then
21086
21087 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021088 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21089 export CURL_LIBRARY_PATH
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21091$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021092 fi
21093 fi
21094 else
21095 LDFLAGS=$CLEANLDFLAGS
21096 CPPFLAGS=$CLEANCPPFLAGS
21097 LIBS=$CLEANLIBS
21098 fi
21099fi
21100
21101
Elliott Hughes82be86d2017-09-20 17:00:17 -070021102LDAPLIBNAME=""
21103
21104# Check whether --with-ldap-lib was given.
21105if test "${with_ldap_lib+set}" = set; then :
21106 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21107fi
21108
21109
21110LBERLIBNAME=""
21111
21112# Check whether --with-lber-lib was given.
21113if test "${with_lber_lib+set}" = set; then :
21114 withval=$with_lber_lib; LBERLIBNAME="$withval"
21115fi
21116
21117
21118if test x$CURL_DISABLE_LDAP != x1 ; then
21119
21120
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21122$as_echo_n "checking for lber.h... " >&6; }
21123if ${curl_cv_header_lber_h+:} false; then :
21124 $as_echo_n "(cached) " >&6
21125else
21126
21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21128/* end confdefs.h. */
21129
21130
21131#undef inline
21132#ifdef HAVE_WINDOWS_H
21133#ifndef WIN32_LEAN_AND_MEAN
21134#define WIN32_LEAN_AND_MEAN
21135#endif
21136#include <windows.h>
21137#else
21138#ifdef HAVE_SYS_TYPES_H
21139#include <sys/types.h>
21140#endif
21141#endif
21142#ifndef NULL
21143#define NULL (void *)0
21144#endif
21145#include <lber.h>
21146
21147int main (void)
21148{
21149
21150 BerValue *bvp = NULL;
21151 BerElement *bep = ber_init(bvp);
21152 ber_free(bep, 1);
21153
21154 ;
21155 return 0;
21156}
21157
21158_ACEOF
21159if ac_fn_c_try_compile "$LINENO"; then :
21160
21161 curl_cv_header_lber_h="yes"
21162
21163else
21164
21165 curl_cv_header_lber_h="no"
21166
21167fi
21168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169
21170fi
21171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21172$as_echo "$curl_cv_header_lber_h" >&6; }
21173 if test "$curl_cv_header_lber_h" = "yes"; then
21174
21175cat >>confdefs.h <<_ACEOF
21176#define HAVE_LBER_H 1
21177_ACEOF
21178
21179 #
21180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21181/* end confdefs.h. */
21182
21183
21184#undef inline
21185#ifdef HAVE_WINDOWS_H
21186#ifndef WIN32_LEAN_AND_MEAN
21187#define WIN32_LEAN_AND_MEAN
21188#endif
21189#include <windows.h>
21190#else
21191#ifdef HAVE_SYS_TYPES_H
21192#include <sys/types.h>
21193#endif
21194#endif
21195#ifndef NULL
21196#define NULL (void *)0
21197#endif
21198#ifndef LDAP_DEPRECATED
21199#define LDAP_DEPRECATED 1
21200#endif
21201#include <ldap.h>
21202
21203int main (void)
21204{
21205
21206 BerValue *bvp = NULL;
21207 BerElement *bep = ber_init(bvp);
21208 ber_free(bep, 1);
21209
21210 ;
21211 return 0;
21212}
21213
21214_ACEOF
21215if ac_fn_c_try_compile "$LINENO"; then :
21216
21217 curl_cv_need_header_lber_h="no"
21218
21219else
21220
21221 curl_cv_need_header_lber_h="yes"
21222
21223fi
21224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 #
21226 case "$curl_cv_need_header_lber_h" in
21227 yes)
21228
21229cat >>confdefs.h <<_ACEOF
21230#define NEED_LBER_H 1
21231_ACEOF
21232
21233 ;;
21234 esac
21235 fi
21236
21237
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21239$as_echo_n "checking for ldap.h... " >&6; }
21240if ${curl_cv_header_ldap_h+:} false; then :
21241 $as_echo_n "(cached) " >&6
21242else
21243
21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245/* end confdefs.h. */
21246
21247
21248#undef inline
21249#ifdef HAVE_WINDOWS_H
21250#ifndef WIN32_LEAN_AND_MEAN
21251#define WIN32_LEAN_AND_MEAN
21252#endif
21253#include <windows.h>
21254#else
21255#ifdef HAVE_SYS_TYPES_H
21256#include <sys/types.h>
21257#endif
21258#endif
21259#ifndef LDAP_DEPRECATED
21260#define LDAP_DEPRECATED 1
21261#endif
21262#ifdef NEED_LBER_H
21263#include <lber.h>
21264#endif
21265#include <ldap.h>
21266
21267int main (void)
21268{
21269
21270 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21271 int res = ldap_unbind(ldp);
21272
21273 ;
21274 return 0;
21275}
21276
21277_ACEOF
21278if ac_fn_c_try_compile "$LINENO"; then :
21279
21280 curl_cv_header_ldap_h="yes"
21281
21282else
21283
21284 curl_cv_header_ldap_h="no"
21285
21286fi
21287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21288
21289fi
21290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21291$as_echo "$curl_cv_header_ldap_h" >&6; }
21292 case "$curl_cv_header_ldap_h" in
21293 yes)
21294
21295cat >>confdefs.h <<_ACEOF
21296#define HAVE_LDAP_H 1
21297_ACEOF
21298
21299 ;;
21300 esac
21301
21302
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21304$as_echo_n "checking for ldapssl.h... " >&6; }
21305if ${curl_cv_header_ldapssl_h+:} false; then :
21306 $as_echo_n "(cached) " >&6
21307else
21308
21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21310/* end confdefs.h. */
21311
21312
21313#undef inline
21314#ifdef HAVE_WINDOWS_H
21315#ifndef WIN32_LEAN_AND_MEAN
21316#define WIN32_LEAN_AND_MEAN
21317#endif
21318#include <windows.h>
21319#else
21320#ifdef HAVE_SYS_TYPES_H
21321#include <sys/types.h>
21322#endif
21323#endif
21324#ifndef NULL
21325#define NULL (void *)0
21326#endif
21327#ifndef LDAP_DEPRECATED
21328#define LDAP_DEPRECATED 1
21329#endif
21330#ifdef NEED_LBER_H
21331#include <lber.h>
21332#endif
21333#ifdef HAVE_LDAP_H
21334#include <ldap.h>
21335#endif
21336#include <ldapssl.h>
21337
21338int main (void)
21339{
21340
21341 char *cert_label = NULL;
21342 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21343
21344 ;
21345 return 0;
21346}
21347
21348_ACEOF
21349if ac_fn_c_try_compile "$LINENO"; then :
21350
21351 curl_cv_header_ldapssl_h="yes"
21352
21353else
21354
21355 curl_cv_header_ldapssl_h="no"
21356
21357fi
21358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21359
21360fi
21361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21362$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21363 case "$curl_cv_header_ldapssl_h" in
21364 yes)
21365
21366cat >>confdefs.h <<_ACEOF
21367#define HAVE_LDAPSSL_H 1
21368_ACEOF
21369
21370 ;;
21371 esac
21372
21373
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21375$as_echo_n "checking for ldap_ssl.h... " >&6; }
21376if ${curl_cv_header_ldap_ssl_h+:} false; then :
21377 $as_echo_n "(cached) " >&6
21378else
21379
21380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21381/* end confdefs.h. */
21382
21383
21384#undef inline
21385#ifdef HAVE_WINDOWS_H
21386#ifndef WIN32_LEAN_AND_MEAN
21387#define WIN32_LEAN_AND_MEAN
21388#endif
21389#include <windows.h>
21390#else
21391#ifdef HAVE_SYS_TYPES_H
21392#include <sys/types.h>
21393#endif
21394#endif
21395#ifndef LDAP_DEPRECATED
21396#define LDAP_DEPRECATED 1
21397#endif
21398#ifdef NEED_LBER_H
21399#include <lber.h>
21400#endif
21401#ifdef HAVE_LDAP_H
21402#include <ldap.h>
21403#endif
21404#include <ldap_ssl.h>
21405
21406int main (void)
21407{
21408
21409 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21410
21411 ;
21412 return 0;
21413}
21414
21415_ACEOF
21416if ac_fn_c_try_compile "$LINENO"; then :
21417
21418 curl_cv_header_ldap_ssl_h="yes"
21419
21420else
21421
21422 curl_cv_header_ldap_ssl_h="no"
21423
21424fi
21425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21426
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21429$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21430 case "$curl_cv_header_ldap_ssl_h" in
21431 yes)
21432
21433cat >>confdefs.h <<_ACEOF
21434#define HAVE_LDAP_SSL_H 1
21435_ACEOF
21436
21437 ;;
21438 esac
21439
21440
21441 if test -z "$LDAPLIBNAME" ; then
21442 if test "$curl_cv_native_windows" = "yes"; then
21443 LDAPLIBNAME="wldap32"
21444 LBERLIBNAME="no"
21445 fi
21446 fi
21447
21448 if test "$LDAPLIBNAME" ; then
21449 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21451$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21452if eval \${$as_ac_Lib+:} false; then :
21453 $as_echo_n "(cached) " >&6
21454else
21455 ac_check_lib_save_LIBS=$LIBS
21456LIBS="-l"$LDAPLIBNAME" $LIBS"
21457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21458/* end confdefs.h. */
21459
21460
21461#ifdef __cplusplus
21462extern "C"
21463#endif
21464char ldap_init ();
21465int main (void)
21466{
21467return ldap_init ();
21468 ;
21469 return 0;
21470}
21471_ACEOF
21472if ac_fn_c_try_link "$LINENO"; then :
21473 eval "$as_ac_Lib=yes"
21474else
21475 eval "$as_ac_Lib=no"
21476fi
21477rm -f core conftest.err conftest.$ac_objext \
21478 conftest$ac_exeext conftest.$ac_ext
21479LIBS=$ac_check_lib_save_LIBS
21480fi
21481eval ac_res=\$$as_ac_Lib
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21483$as_echo "$ac_res" >&6; }
21484if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21485 cat >>confdefs.h <<_ACEOF
21486#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21487_ACEOF
21488
21489 LIBS="-l"$LDAPLIBNAME" $LIBS"
21490
21491else
21492
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21494$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21495
21496$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21497
21498 CURL_DISABLE_LDAP=1
21499
21500
21501$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21502
21503 CURL_DISABLE_LDAPS=1
21504
21505fi
21506
21507 else
21508
21509 #
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21511$as_echo_n "checking for LDAP libraries... " >&6; }
21512 #
21513 u_libs=""
21514 #
21515
21516 #
21517 curl_cv_save_LIBS="$LIBS"
21518 curl_cv_ldap_LIBS="unknown"
21519 #
21520 for x_nlibs in '' "$u_libs" \
21521 '-lldap' \
21522 '-lldap -llber' \
21523 '-llber -lldap' \
21524 '-lldapssl -lldapx -lldapsdk' \
Haibo Huang65021c72019-03-27 15:37:23 -070021525 '-lldapsdk -lldapx -lldapssl' \
21526 '-lldap -llber -lssl -lcrypto' ; do
21527
Elliott Hughes82be86d2017-09-20 17:00:17 -070021528 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21529 if test -z "$x_nlibs"; then
21530 LIBS="$curl_cv_save_LIBS"
21531 else
21532 LIBS="$x_nlibs $curl_cv_save_LIBS"
21533 fi
21534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21535/* end confdefs.h. */
21536
21537
21538#undef inline
21539#ifdef HAVE_WINDOWS_H
21540#ifndef WIN32_LEAN_AND_MEAN
21541#define WIN32_LEAN_AND_MEAN
21542#endif
21543#include <windows.h>
21544#else
21545#ifdef HAVE_SYS_TYPES_H
21546#include <sys/types.h>
21547#endif
21548#endif
21549#ifndef NULL
21550#define NULL (void *)0
21551#endif
21552#ifndef LDAP_DEPRECATED
21553#define LDAP_DEPRECATED 1
21554#endif
21555#ifdef NEED_LBER_H
21556#include <lber.h>
21557#endif
21558#ifdef HAVE_LDAP_H
21559#include <ldap.h>
21560#endif
21561
21562int main (void)
21563{
21564
21565 BerValue *bvp = NULL;
21566 BerElement *bep = ber_init(bvp);
21567 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21568 int res = ldap_unbind(ldp);
21569 ber_free(bep, 1);
21570
21571 ;
21572 return 0;
21573}
21574
21575_ACEOF
21576if ac_fn_c_try_link "$LINENO"; then :
21577
21578 curl_cv_ldap_LIBS="$x_nlibs"
21579
21580fi
21581rm -f core conftest.err conftest.$ac_objext \
21582 conftest$ac_exeext conftest.$ac_ext
21583 fi
21584 done
21585 #
21586 LIBS="$curl_cv_save_LIBS"
21587 #
21588 case X-"$curl_cv_ldap_LIBS" in
21589 X-unknown)
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21591$as_echo "cannot find LDAP libraries" >&6; }
21592 ;;
21593 X-)
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21595$as_echo "no additional lib required" >&6; }
21596 ;;
21597 *)
21598 if test -z "$curl_cv_save_LIBS"; then
21599 LIBS="$curl_cv_ldap_LIBS"
21600 else
21601 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21602 fi
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21604$as_echo "$curl_cv_ldap_LIBS" >&6; }
21605 ;;
21606 esac
21607 #
21608
21609 case X-"$curl_cv_ldap_LIBS" in
21610 X-unknown)
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21612$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21613
21614$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21615
21616 CURL_DISABLE_LDAP=1
21617
21618
21619$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21620
21621 CURL_DISABLE_LDAPS=1
21622
21623 ;;
21624 esac
21625 fi
21626fi
21627
21628if test x$CURL_DISABLE_LDAP != x1 ; then
21629
21630 if test "$LBERLIBNAME" ; then
21631 if test "$LBERLIBNAME" != "no" ; then
21632 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21634$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21635if eval \${$as_ac_Lib+:} false; then :
21636 $as_echo_n "(cached) " >&6
21637else
21638 ac_check_lib_save_LIBS=$LIBS
21639LIBS="-l"$LBERLIBNAME" $LIBS"
21640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641/* end confdefs.h. */
21642
21643
21644#ifdef __cplusplus
21645extern "C"
21646#endif
21647char ber_free ();
21648int main (void)
21649{
21650return ber_free ();
21651 ;
21652 return 0;
21653}
21654_ACEOF
21655if ac_fn_c_try_link "$LINENO"; then :
21656 eval "$as_ac_Lib=yes"
21657else
21658 eval "$as_ac_Lib=no"
21659fi
21660rm -f core conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
21662LIBS=$ac_check_lib_save_LIBS
21663fi
21664eval ac_res=\$$as_ac_Lib
21665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21666$as_echo "$ac_res" >&6; }
21667if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21668 cat >>confdefs.h <<_ACEOF
21669#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21670_ACEOF
21671
21672 LIBS="-l"$LBERLIBNAME" $LIBS"
21673
21674else
21675
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21677$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21678
21679$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21680
21681 CURL_DISABLE_LDAP=1
21682
21683
21684$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21685
21686 CURL_DISABLE_LDAPS=1
21687
21688fi
21689
21690 fi
21691 fi
21692fi
21693
21694if test x$CURL_DISABLE_LDAP != x1 ; then
21695 for ac_func in ldap_url_parse ldap_init_fd
21696do :
21697 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21698ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21699if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21700 cat >>confdefs.h <<_ACEOF
21701#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21702_ACEOF
21703
21704fi
21705done
21706
21707
21708 if test "$LDAPLIBNAME" = "wldap32"; then
21709 curl_ldap_msg="enabled (winldap)"
21710
21711$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21712
21713 else
21714 curl_ldap_msg="enabled (OpenLDAP)"
21715 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21716
21717$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21718
21719 USE_OPENLDAP=1
21720
21721 fi
21722 fi
21723fi
21724
21725if test x$CURL_DISABLE_LDAPS != x1 ; then
21726 curl_ldaps_msg="enabled"
21727fi
21728
21729
21730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21731$as_echo_n "checking whether to enable IPv6... " >&6; }
21732# Check whether --enable-ipv6 was given.
21733if test "${enable_ipv6+set}" = set; then :
21734 enableval=$enable_ipv6; case "$enableval" in
21735 no)
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21737$as_echo "no" >&6; }
21738 ipv6=no
21739 ;;
21740 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21741$as_echo "yes" >&6; }
21742 ipv6=yes
21743 ;;
21744 esac
21745else
21746 if test "$cross_compiling" = yes; then :
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21748$as_echo "yes" >&6; }
21749 ipv6=yes
21750
21751else
21752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21753/* end confdefs.h. */
21754 /* is AF_INET6 available? */
21755#include <sys/types.h>
21756#ifdef HAVE_WINSOCK2_H
21757#include <winsock2.h>
21758#else
21759#include <sys/socket.h>
21760#endif
21761#include <stdlib.h> /* for exit() */
21762main()
21763{
21764 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21765 exit(1);
21766 else
21767 exit(0);
21768}
21769
21770_ACEOF
21771if ac_fn_c_try_run "$LINENO"; then :
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21773$as_echo "yes" >&6; }
21774 ipv6=yes
21775else
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21777$as_echo "no" >&6; }
21778 ipv6=no
21779fi
21780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21781 conftest.$ac_objext conftest.beam conftest.$ac_ext
21782fi
21783
21784fi
21785
21786
21787if test "$ipv6" = "yes"; then
21788 curl_ipv6_msg="enabled"
21789fi
21790
21791# Check if struct sockaddr_in6 have sin6_scope_id member
21792if test "$ipv6" = yes; then
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21794$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21796/* end confdefs.h. */
21797
21798#include <sys/types.h>
21799#ifdef HAVE_WINSOCK2_H
21800#include <winsock2.h>
21801#include <ws2tcpip.h>
21802#else
21803#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021804#if defined (__TANDEM)
21805# include <netinet/in6.h>
21806#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021807#endif
21808int main (void)
21809{
21810struct sockaddr_in6 s; s.sin6_scope_id = 0;
21811 ;
21812 return 0;
21813}
21814_ACEOF
21815if ac_fn_c_try_compile "$LINENO"; then :
21816 have_sin6_scope_id=yes
21817fi
21818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21819 if test "$have_sin6_scope_id" = yes; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21821$as_echo "yes" >&6; }
21822
21823$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21824
21825 else
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21827$as_echo "no" >&6; }
21828 fi
21829fi
21830
21831
21832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21833$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021834
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021835
21836 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021837 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21838 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021839 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021840 curl_cv_writable_argv=cross
21841
21842else
21843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21844/* end confdefs.h. */
21845
Elliott Hughes82be86d2017-09-20 17:00:17 -070021846int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021847 argv00 = ' ';
21848 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021849}
21850
Elliott Hughes82be86d2017-09-20 17:00:17 -070021851_ACEOF
21852if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021853 curl_cv_writable_argv=yes
21854
21855else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021856 curl_cv_writable_argv=no
21857
21858fi
21859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21860 conftest.$ac_objext conftest.beam conftest.$ac_ext
21861fi
21862
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021863 LD_LIBRARY_PATH=$old # restore
21864
Elliott Hughes82be86d2017-09-20 17:00:17 -070021865case $curl_cv_writable_argv in
21866yes)
21867
21868$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21869
21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21871$as_echo "yes" >&6; }
21872 ;;
21873no)
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875$as_echo "no" >&6; }
21876 ;;
21877*)
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879$as_echo "no" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21881$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21882 ;;
21883esac
21884
21885
21886
21887GSSAPI_ROOT="/usr"
21888
21889# Check whether --with-gssapi-includes was given.
21890if test "${with_gssapi_includes+set}" = set; then :
21891 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21892 want_gss="yes"
21893
21894fi
21895
21896
21897
21898# Check whether --with-gssapi-libs was given.
21899if test "${with_gssapi_libs+set}" = set; then :
21900 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21901 want_gss="yes"
21902
21903fi
21904
21905
21906
21907# Check whether --with-gssapi was given.
21908if test "${with_gssapi+set}" = set; then :
21909 withval=$with_gssapi;
21910 GSSAPI_ROOT="$withval"
21911 if test x"$GSSAPI_ROOT" != xno; then
21912 want_gss="yes"
21913 if test x"$GSSAPI_ROOT" = xyes; then
21914 GSSAPI_ROOT="/usr"
21915 fi
21916 fi
21917
21918fi
21919
21920
21921: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21922
21923save_CPPFLAGS="$CPPFLAGS"
21924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21925$as_echo_n "checking if GSS-API support is requested... " >&6; }
21926if test x"$want_gss" = xyes; then
21927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21928$as_echo "yes" >&6; }
21929
21930 if test -z "$GSSAPI_INCS"; then
21931 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21932 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21933 elif test -f "$KRB5CONFIG"; then
21934 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
21935 elif test "$GSSAPI_ROOT" != "yes"; then
21936 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21937 fi
21938 fi
21939
21940 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21941
21942 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21943if test "x$ac_cv_header_gss_h" = xyes; then :
21944
21945
21946$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21947
21948 gnu_gss=yes
21949
21950else
21951
21952 for ac_header in gssapi/gssapi.h
21953do :
21954 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21955if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21956 cat >>confdefs.h <<_ACEOF
21957#define HAVE_GSSAPI_GSSAPI_H 1
21958_ACEOF
21959
21960else
21961 not_mit=1
21962fi
21963
21964done
21965
21966 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21967do :
21968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21969ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21970$ac_includes_default
21971#ifdef HAVE_GSSAPI_GSSAPI_H
21972#include <gssapi/gssapi.h>
21973#endif
21974
21975"
21976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21977 cat >>confdefs.h <<_ACEOF
21978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21979_ACEOF
21980
21981else
21982 not_mit=1
21983fi
21984
21985done
21986
21987 if test "x$not_mit" = "x1"; then
21988 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21989if test "x$ac_cv_header_gssapi_h" = xyes; then :
21990
21991
21992$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21993
21994
21995else
21996
21997 want_gss=no
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21999$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22000
22001
22002fi
22003
22004
22005 else
22006
22007$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22008
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22010$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012/* end confdefs.h. */
22013
22014
22015#include <gssapi/gssapi.h>
22016#include <gssapi/gssapi_generic.h>
22017#include <gssapi/gssapi_krb5.h>
22018
22019int main (void)
22020{
22021
22022 gss_import_name(
22023 (OM_uint32 *)0,
22024 (gss_buffer_t)0,
22025 GSS_C_NT_HOSTBASED_SERVICE,
22026 (gss_name_t *)0);
22027
22028 ;
22029 return 0;
22030}
22031
22032_ACEOF
22033if ac_fn_c_try_compile "$LINENO"; then :
22034
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22036$as_echo "yes" >&6; }
22037
22038else
22039
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041$as_echo "no" >&6; }
22042
22043$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22044
22045
22046fi
22047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048 fi
22049
22050
22051fi
22052
22053
22054else
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22056$as_echo "no" >&6; }
22057fi
22058if test x"$want_gss" = xyes; then
22059
22060$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22061
22062 HAVE_GSSAPI=1
22063 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22064
22065 if test -n "$gnu_gss"; then
22066 curl_gss_msg="enabled (GNU GSS)"
22067 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22068 LIBS="-lgss $LIBS"
22069 elif test -z "$GSSAPI_LIB_DIR"; then
22070 case $host in
22071 *-*-darwin*)
22072 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22073 ;;
22074 *)
22075 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22076 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22077 LIBS="$gss_libs $LIBS"
22078 elif test -f "$KRB5CONFIG"; then
22079 gss_libs=`$KRB5CONFIG --libs gssapi`
22080 LIBS="$gss_libs $LIBS"
22081 else
22082 case $host in
22083 *-hp-hpux*)
22084 gss_libname="gss"
22085 ;;
22086 *)
22087 gss_libname="gssapi"
22088 ;;
22089 esac
22090
22091 if test "$GSSAPI_ROOT" != "yes"; then
22092 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22093 LIBS="-l$gss_libname $LIBS"
22094 else
22095 LIBS="-l$gss_libname $LIBS"
22096 fi
22097 fi
22098 ;;
22099 esac
22100 else
22101 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22102 case $host in
22103 *-hp-hpux*)
22104 LIBS="-lgss $LIBS"
22105 ;;
22106 *)
22107 LIBS="-lgssapi $LIBS"
22108 ;;
22109 esac
22110 fi
22111else
22112 CPPFLAGS="$save_CPPFLAGS"
22113fi
22114
Alex Deymo486467e2017-12-19 19:04:07 +010022115build_libstubgss=no
22116if test x"$want_gss" = "xyes"; then
22117 build_libstubgss=yes
22118fi
22119
22120 if test "x$build_libstubgss" = "xyes"; then
22121 BUILD_STUB_GSS_TRUE=
22122 BUILD_STUB_GSS_FALSE='#'
22123else
22124 BUILD_STUB_GSS_TRUE='#'
22125 BUILD_STUB_GSS_FALSE=
22126fi
22127
22128
22129
22130DEFAULT_SSL_BACKEND=no
22131VALID_DEFAULT_SSL_BACKEND=
22132
22133# Check whether --with-default-ssl-backend was given.
22134if test "${with_default_ssl_backend+set}" = set; then :
22135 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22136fi
22137
22138case "$DEFAULT_SSL_BACKEND" in
22139 no)
22140 ;;
22141 default|yes)
22142 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22143 ;;
22144 *)
22145
22146 VALID_DEFAULT_SSL_BACKEND=no
22147 ;;
22148esac
22149
22150
Elliott Hughes82be86d2017-09-20 17:00:17 -070022151
22152OPT_WINSSL=no
22153
22154# Check whether --with-winssl was given.
22155if test "${with_winssl+set}" = set; then :
22156 withval=$with_winssl; OPT_WINSSL=$withval
22157fi
22158
22159
Haibo Huang51d9d882019-02-06 01:36:06 -080022160
22161# Check whether --with-schannel was given.
22162if test "${with_schannel+set}" = set; then :
22163 withval=$with_schannel; OPT_WINSSL=$withval
22164fi
22165
22166
Elliott Hughes82be86d2017-09-20 17:00:17 -070022167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22168$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022169if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22170 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022171 if test "x$OPT_WINSSL" != "xno" &&
22172 test "x$curl_cv_native_windows" = "xyes"; then
22173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22174$as_echo "yes" >&6; }
22175
22176$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22177
22178 USE_SCHANNEL=1
22179
Alex Deymo486467e2017-12-19 19:04:07 +010022180 ssl_msg="Windows-native"
22181 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022182 WINSSL_ENABLED=1
22183 # --with-winssl implies --enable-sspi
22184
22185$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22186
22187 USE_WINDOWS_SSPI=1
22188
22189 curl_sspi_msg="enabled"
22190 LIBS="-lcrypt32 $LIBS"
22191 else
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22193$as_echo "no" >&6; }
22194 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022195 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022196else
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22198$as_echo "no" >&6; }
22199fi
22200
Haibo Huang65021c72019-03-27 15:37:23 -070022201OPT_SECURETRANSPORT=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070022202
22203# Check whether --with-darwinssl was given.
22204if test "${with_darwinssl+set}" = set; then :
Haibo Huang65021c72019-03-27 15:37:23 -070022205 withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval
Elliott Hughes82be86d2017-09-20 17:00:17 -070022206fi
22207
22208
Haibo Huang65021c72019-03-27 15:37:23 -070022209
22210# Check whether --with-secure-transport was given.
22211if test "${with_secure_transport+set}" = set; then :
22212 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
22213fi
22214
22215
22216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
22217$as_echo_n "checking whether to enable Secure Transport... " >&6; }
22218if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
22219 if test "x$OPT_SECURETRANSPORT" != "xno" &&
Elliott Hughes82be86d2017-09-20 17:00:17 -070022220 test -d "/System/Library/Frameworks/Security.framework"; then
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22222$as_echo "yes" >&6; }
22223
Haibo Huang65021c72019-03-27 15:37:23 -070022224$as_echo "#define USE_SECTRANSP 1" >>confdefs.h
Elliott Hughes82be86d2017-09-20 17:00:17 -070022225
Haibo Huang65021c72019-03-27 15:37:23 -070022226 USE_SECTRANSP=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070022227
Haibo Huang65021c72019-03-27 15:37:23 -070022228 ssl_msg="Secure Transport"
22229 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22230 SECURETRANSPORT_ENABLED=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070022231 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22232 else
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22234$as_echo "no" >&6; }
22235 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022236 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022237else
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22239$as_echo "no" >&6; }
22240fi
22241
Haibo Huang65021c72019-03-27 15:37:23 -070022242OPT_AMISSL=no
22243
22244# Check whether --with-amissl was given.
22245if test "${with_amissl+set}" = set; then :
22246 withval=$with_amissl; OPT_AMISSL=$withval
22247fi
22248
22249
22250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
22251$as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
22252if test "$HAVE_PROTO_BSDSOCKET_H" == "1"; then
22253 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
22254 ssl_msg=
22255 if test "x$OPT_AMISSL" != "xno"; then
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22257$as_echo "yes" >&6; }
22258 ssl_msg="AmiSSL"
22259 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22260 AMISSL_ENABLED=1
22261 LIBS="-lamisslauto $LIBS"
22262
22263$as_echo "#define USE_AMISSL 1" >>confdefs.h
22264
22265
22266$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22267
22268 else
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270$as_echo "no" >&6; }
22271 fi
22272 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22273 else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275$as_echo "no" >&6; }
22276 fi
22277else
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22279$as_echo "no" >&6; }
22280fi
22281
Elliott Hughes82be86d2017-09-20 17:00:17 -070022282
22283OPT_SSL=off
22284ca="no"
22285
22286# Check whether --with-ssl was given.
22287if test "${with_ssl+set}" = set; then :
22288 withval=$with_ssl; OPT_SSL=$withval
22289fi
22290
22291
Alex Deymo486467e2017-12-19 19:04:07 +010022292if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22293 test X"$OPT_SSL" != Xno; then
22294 ssl_msg=
22295
Elliott Hughes82be86d2017-09-20 17:00:17 -070022296 CLEANLDFLAGS="$LDFLAGS"
22297 CLEANCPPFLAGS="$CPPFLAGS"
22298 CLEANLIBS="$LIBS"
22299
22300 case $host in
22301 *-*-msys* | *-*-mingw*)
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22303$as_echo_n "checking for gdi32... " >&6; }
22304 my_ac_save_LIBS=$LIBS
22305 LIBS="-lgdi32 $LIBS"
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307/* end confdefs.h. */
22308#include <windef.h>
22309 #include <wingdi.h>
22310int main (void)
22311{
22312GdiFlush();
22313 ;
22314 return 0;
22315}
22316_ACEOF
22317if ac_fn_c_try_link "$LINENO"; then :
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22319$as_echo "yes" >&6; }
22320else
22321 LIBS=$my_ac_save_LIBS
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22323$as_echo "no" >&6; }
22324
22325fi
22326rm -f core conftest.err conftest.$ac_objext \
22327 conftest$ac_exeext conftest.$ac_ext
22328 ;;
22329 esac
22330
22331 case "$OPT_SSL" in
22332 yes)
22333 if test x$cross_compiling != xyes; then
22334 PKGTEST="yes"
22335 fi
22336 PREFIX_OPENSSL=/usr/local/ssl
22337 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22338 ;;
22339 off)
22340 if test x$cross_compiling != xyes; then
22341 PKGTEST="yes"
22342 fi
22343 PREFIX_OPENSSL=
22344 ;;
22345 *)
22346 PKGTEST="no"
22347 PREFIX_OPENSSL=$OPT_SSL
22348
22349 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022350 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022351 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22352$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022353 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022354 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22355 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022356 fi
22357
22358 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22359 if test "$PREFIX_OPENSSL" != "/usr" ; then
22360 SSL_LDFLAGS="-L$LIB_OPENSSL"
22361 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22362 fi
22363 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22364 ;;
22365 esac
22366
22367 if test "$PKGTEST" = "yes"; then
22368
22369
22370 if test -n "$PKG_CONFIG"; then
22371 PKGCONFIG="$PKG_CONFIG"
22372 else
22373 if test -n "$ac_tool_prefix"; then
22374 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22375set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22377$as_echo_n "checking for $ac_word... " >&6; }
22378if ${ac_cv_path_PKGCONFIG+:} false; then :
22379 $as_echo_n "(cached) " >&6
22380else
22381 case $PKGCONFIG in
22382 [\\/]* | ?:[\\/]*)
22383 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22384 ;;
22385 *)
22386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22387as_dummy="$PATH:/usr/bin:/usr/local/bin"
22388for as_dir in $as_dummy
22389do
22390 IFS=$as_save_IFS
22391 test -z "$as_dir" && as_dir=.
22392 for ac_exec_ext in '' $ac_executable_extensions; do
22393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22394 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22396 break 2
22397 fi
22398done
22399 done
22400IFS=$as_save_IFS
22401
22402 ;;
22403esac
22404fi
22405PKGCONFIG=$ac_cv_path_PKGCONFIG
22406if test -n "$PKGCONFIG"; then
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22408$as_echo "$PKGCONFIG" >&6; }
22409else
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411$as_echo "no" >&6; }
22412fi
22413
22414
22415fi
22416if test -z "$ac_cv_path_PKGCONFIG"; then
22417 ac_pt_PKGCONFIG=$PKGCONFIG
22418 # Extract the first word of "pkg-config", so it can be a program name with args.
22419set dummy pkg-config; ac_word=$2
22420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22421$as_echo_n "checking for $ac_word... " >&6; }
22422if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22423 $as_echo_n "(cached) " >&6
22424else
22425 case $ac_pt_PKGCONFIG in
22426 [\\/]* | ?:[\\/]*)
22427 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22428 ;;
22429 *)
22430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22431as_dummy="$PATH:/usr/bin:/usr/local/bin"
22432for as_dir in $as_dummy
22433do
22434 IFS=$as_save_IFS
22435 test -z "$as_dir" && as_dir=.
22436 for ac_exec_ext in '' $ac_executable_extensions; do
22437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22438 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22440 break 2
22441 fi
22442done
22443 done
22444IFS=$as_save_IFS
22445
22446 ;;
22447esac
22448fi
22449ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22450if test -n "$ac_pt_PKGCONFIG"; then
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22452$as_echo "$ac_pt_PKGCONFIG" >&6; }
22453else
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22455$as_echo "no" >&6; }
22456fi
22457
22458 if test "x$ac_pt_PKGCONFIG" = x; then
22459 PKGCONFIG="no"
22460 else
22461 case $cross_compiling:$ac_tool_warned in
22462yes:)
22463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22465ac_tool_warned=yes ;;
22466esac
22467 PKGCONFIG=$ac_pt_PKGCONFIG
22468 fi
22469else
22470 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22471fi
22472
22473 fi
22474
22475 if test "x$PKGCONFIG" != "xno"; then
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22477$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22478 itexists=`
22479 if test -n "$OPENSSL_PCDIR"; then
22480 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22481 export PKG_CONFIG_LIBDIR
22482 fi
22483 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22484
22485 if test -z "$itexists"; then
22486 PKGCONFIG="no"
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22488$as_echo "no" >&6; }
22489 else
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22491$as_echo "found" >&6; }
22492 fi
22493 fi
22494
22495
22496 if test "$PKGCONFIG" != "no" ; then
22497 SSL_LIBS=`
22498 if test -n "$OPENSSL_PCDIR"; then
22499 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22500 export PKG_CONFIG_LIBDIR
22501 fi
Haibo Huang21926d52019-01-08 14:27:10 -080022502 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
Elliott Hughes82be86d2017-09-20 17:00:17 -070022503
22504 SSL_LDFLAGS=`
22505 if test -n "$OPENSSL_PCDIR"; then
22506 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22507 export PKG_CONFIG_LIBDIR
22508 fi
22509 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22510
22511 SSL_CPPFLAGS=`
22512 if test -n "$OPENSSL_PCDIR"; then
22513 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22514 export PKG_CONFIG_LIBDIR
22515 fi
22516 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22517
22518
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22520$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22522$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22524$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22525
22526 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22527
22528 LIBS="$SSL_LIBS $LIBS"
22529 fi
22530 fi
22531
22532 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22533 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22534
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22536$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22537if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22538 $as_echo_n "(cached) " >&6
22539else
22540 ac_check_lib_save_LIBS=$LIBS
22541LIBS="-lcrypto $LIBS"
22542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22543/* end confdefs.h. */
22544
22545
22546#ifdef __cplusplus
22547extern "C"
22548#endif
22549char HMAC_Update ();
22550int main (void)
22551{
22552return HMAC_Update ();
22553 ;
22554 return 0;
22555}
22556_ACEOF
22557if ac_fn_c_try_link "$LINENO"; then :
22558 ac_cv_lib_crypto_HMAC_Update=yes
22559else
22560 ac_cv_lib_crypto_HMAC_Update=no
22561fi
22562rm -f core conftest.err conftest.$ac_objext \
22563 conftest$ac_exeext conftest.$ac_ext
22564LIBS=$ac_check_lib_save_LIBS
22565fi
22566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22567$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22568if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22569
22570 HAVECRYPTO="yes"
22571 LIBS="-lcrypto $LIBS"
22572
22573else
22574
22575 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070022576 if test "$PKGCONFIG" = "no" ; then
22577 # only set this if pkg-config wasn't used
22578 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22579 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070022580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22581$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22582if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22583 $as_echo_n "(cached) " >&6
22584else
22585 ac_check_lib_save_LIBS=$LIBS
22586LIBS="-lcrypto $LIBS"
22587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588/* end confdefs.h. */
22589
22590
22591#ifdef __cplusplus
22592extern "C"
22593#endif
22594char HMAC_Init_ex ();
22595int main (void)
22596{
22597return HMAC_Init_ex ();
22598 ;
22599 return 0;
22600}
22601_ACEOF
22602if ac_fn_c_try_link "$LINENO"; then :
22603 ac_cv_lib_crypto_HMAC_Init_ex=yes
22604else
22605 ac_cv_lib_crypto_HMAC_Init_ex=no
22606fi
22607rm -f core conftest.err conftest.$ac_objext \
22608 conftest$ac_exeext conftest.$ac_ext
22609LIBS=$ac_check_lib_save_LIBS
22610fi
22611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22612$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22613if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22614
22615 HAVECRYPTO="yes"
22616 LIBS="-lcrypto $LIBS"
22617else
22618
22619
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22621$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022622 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624/* end confdefs.h. */
22625
22626 #include <openssl/err.h>
22627
22628int main (void)
22629{
22630
22631 ERR_clear_error();
22632
22633 ;
22634 return 0;
22635}
22636_ACEOF
22637if ac_fn_c_try_link "$LINENO"; then :
22638
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22640$as_echo "yes" >&6; }
22641 HAVECRYPTO="yes"
22642
22643else
22644
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22646$as_echo "no" >&6; }
22647
22648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22649$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022650 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652/* end confdefs.h. */
22653
22654 #include <openssl/err.h>
22655
22656int main (void)
22657{
22658
22659 ERR_clear_error();
22660
22661 ;
22662 return 0;
22663}
22664_ACEOF
22665if ac_fn_c_try_link "$LINENO"; then :
22666
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22668$as_echo "yes" >&6; }
22669 HAVECRYPTO="yes"
22670
22671else
22672
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22674$as_echo "no" >&6; }
22675 LDFLAGS="$CLEANLDFLAGS"
22676 CPPFLAGS="$CLEANCPPFLAGS"
22677 LIBS="$CLEANLIBS"
22678
22679
22680fi
22681rm -f core conftest.err conftest.$ac_objext \
22682 conftest$ac_exeext conftest.$ac_ext
22683
22684
22685fi
22686rm -f core conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext conftest.$ac_ext
22688
22689
22690fi
22691
22692
22693fi
22694
22695
22696 if test X"$HAVECRYPTO" = X"yes"; then
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22699$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22700if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22701 $as_echo_n "(cached) " >&6
22702else
22703 ac_check_lib_save_LIBS=$LIBS
22704LIBS="-lssl $LIBS"
22705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22706/* end confdefs.h. */
22707
22708
22709#ifdef __cplusplus
22710extern "C"
22711#endif
22712char SSL_connect ();
22713int main (void)
22714{
22715return SSL_connect ();
22716 ;
22717 return 0;
22718}
22719_ACEOF
22720if ac_fn_c_try_link "$LINENO"; then :
22721 ac_cv_lib_ssl_SSL_connect=yes
22722else
22723 ac_cv_lib_ssl_SSL_connect=no
22724fi
22725rm -f core conftest.err conftest.$ac_objext \
22726 conftest$ac_exeext conftest.$ac_ext
22727LIBS=$ac_check_lib_save_LIBS
22728fi
22729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22730$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22731if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22732 cat >>confdefs.h <<_ACEOF
22733#define HAVE_LIBSSL 1
22734_ACEOF
22735
22736 LIBS="-lssl $LIBS"
22737
22738fi
22739
22740
22741 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22743$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22744 OLIBS=$LIBS
22745 LIBS="-lRSAglue -lrsaref $LIBS"
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22747$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22748if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22749 $as_echo_n "(cached) " >&6
22750else
22751 ac_check_lib_save_LIBS=$LIBS
22752LIBS="-lssl $LIBS"
22753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22754/* end confdefs.h. */
22755
22756
22757#ifdef __cplusplus
22758extern "C"
22759#endif
22760char SSL_connect ();
22761int main (void)
22762{
22763return SSL_connect ();
22764 ;
22765 return 0;
22766}
22767_ACEOF
22768if ac_fn_c_try_link "$LINENO"; then :
22769 ac_cv_lib_ssl_SSL_connect=yes
22770else
22771 ac_cv_lib_ssl_SSL_connect=no
22772fi
22773rm -f core conftest.err conftest.$ac_objext \
22774 conftest$ac_exeext conftest.$ac_ext
22775LIBS=$ac_check_lib_save_LIBS
22776fi
22777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22778$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22779if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22780 cat >>confdefs.h <<_ACEOF
22781#define HAVE_LIBSSL 1
22782_ACEOF
22783
22784 LIBS="-lssl $LIBS"
22785
22786fi
22787
22788 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22790$as_echo "no" >&6; }
22791 LIBS=$OLIBS
22792 else
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22794$as_echo "yes" >&6; }
22795 fi
22796
22797 else
22798
22799 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22800 openssl/pem.h openssl/ssl.h openssl/err.h
22801do :
22802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22803ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22804if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22805 cat >>confdefs.h <<_ACEOF
22806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22807_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022808 ssl_msg="OpenSSL"
22809 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022810 OPENSSL_ENABLED=1
22811
22812$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22813
22814fi
22815
22816done
22817
22818
22819 if test $ac_cv_header_openssl_x509_h = no; then
22820 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22821do :
22822 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22823ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22824if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22825 cat >>confdefs.h <<_ACEOF
22826#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22827_ACEOF
22828
22829fi
22830
22831done
22832
22833
22834 if test $ac_cv_header_x509_h = yes &&
22835 test $ac_cv_header_crypto_h = yes &&
22836 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022837 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022838 OPENSSL_ENABLED=1
22839 fi
22840 fi
22841 fi
22842
Alex Deymo486467e2017-12-19 19:04:07 +010022843 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022844 LIBS="$CLEANLIBS"
22845 fi
22846
22847 if test X"$OPT_SSL" != Xoff &&
22848 test "$OPENSSL_ENABLED" != "1"; then
22849 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22850 fi
22851 fi
22852
22853 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022854
22855 for ac_func in RAND_egd \
Elliott Hughes82be86d2017-09-20 17:00:17 -070022856 SSL_get_shutdown \
Haibo Huang51d9d882019-02-06 01:36:06 -080022857 SSLv2_client_method \
22858 OpenSSL_version
Elliott Hughes82be86d2017-09-20 17:00:17 -070022859do :
22860 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22861ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22862if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22863 cat >>confdefs.h <<_ACEOF
22864#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22865_ACEOF
22866
22867fi
22868done
22869
22870
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22872$as_echo_n "checking for BoringSSL... " >&6; }
22873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22874/* end confdefs.h. */
22875
22876
22877 #include <openssl/base.h>
22878
22879int main (void)
22880{
22881
22882 #ifndef OPENSSL_IS_BORINGSSL
22883 #error not boringssl
22884 #endif
22885
22886 ;
22887 return 0;
22888}
22889
22890_ACEOF
22891if ac_fn_c_try_compile "$LINENO"; then :
22892
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22894$as_echo "yes" >&6; }
22895
22896cat >>confdefs.h <<_ACEOF
22897#define HAVE_BORINGSSL 1
22898_ACEOF
22899
Alex Deymo486467e2017-12-19 19:04:07 +010022900 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022901
22902else
22903
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22905$as_echo "no" >&6; }
22906
22907fi
22908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22909
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22911$as_echo_n "checking for libressl... " >&6; }
22912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22913/* end confdefs.h. */
22914
22915
22916#include <openssl/opensslv.h>
22917
22918int main (void)
22919{
22920
22921 int dummy = LIBRESSL_VERSION_NUMBER;
22922
22923 ;
22924 return 0;
22925}
22926
22927_ACEOF
22928if ac_fn_c_try_compile "$LINENO"; then :
22929
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22931$as_echo "yes" >&6; }
22932
22933cat >>confdefs.h <<_ACEOF
22934#define HAVE_LIBRESSL 1
22935_ACEOF
22936
Alex Deymo486467e2017-12-19 19:04:07 +010022937 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022938
22939else
22940
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22942$as_echo "no" >&6; }
22943
22944fi
22945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22946 fi
22947
22948 if test "$OPENSSL_ENABLED" = "1"; then
22949 if test -n "$LIB_OPENSSL"; then
22950 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022951 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22952 export CURL_LIBRARY_PATH
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22954$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022955 fi
22956 fi
22957
22958 #
22959
22960 #
22961 tst_api="unknown"
22962 #
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22964$as_echo_n "checking for OpenSSL headers version... " >&6; }
22965
22966 OLDCPPFLAGS=$CPPFLAGS
22967 # CPPPFLAG comes from CURL_CPP_P
22968 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22969 if test -z "$SED"; then
22970 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22971 fi
22972 if test -z "$GREP"; then
22973 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22974 fi
22975
22976 tmp_exp=""
22977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22978/* end confdefs.h. */
22979
22980
22981# ifdef USE_OPENSSL
22982# include <openssl/crypto.h>
22983# else
22984# include <crypto.h>
22985# endif
22986
22987#ifdef OPENSSL_VERSION_NUMBER
22988CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22989#endif
22990
22991
22992_ACEOF
22993if ac_fn_c_try_cpp "$LINENO"; then :
22994
22995 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22996 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22997 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22998 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22999 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23000 tmp_exp=""
23001 fi
23002
23003fi
23004rm -f conftest.err conftest.i conftest.$ac_ext
23005 if test -z "$tmp_exp"; then
23006 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23007
23008 else
23009 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23010 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23011
23012 fi
23013 CPPFLAGS=$OLDCPPFLAGS
23014
23015 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23016 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23017 case "x$tst_verlen" in
23018 x6)
23019 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23020 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23021 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23022 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23023 ;;
23024 x11|x10)
23025 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23026 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23027 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23028 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23029 ;;
23030 *)
23031 tst_api="unknown"
23032 ;;
23033 esac
23034 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023035 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023036 0x110) tst_show="1.1.0" ;;
23037 0x102) tst_show="1.0.2" ;;
23038 0x101) tst_show="1.0.1" ;;
23039 0x100) tst_show="1.0.0" ;;
23040 0x099) tst_show="0.9.9" ;;
23041 0x098) tst_show="0.9.8" ;;
23042 0x097) tst_show="0.9.7" ;;
23043 0x096) tst_show="0.9.6" ;;
23044 0x095) tst_show="0.9.5" ;;
23045 0x094) tst_show="0.9.4" ;;
23046 0x093) tst_show="0.9.3" ;;
23047 0x092) tst_show="0.9.2" ;;
23048 0x091) tst_show="0.9.1" ;;
23049 *) tst_show="unknown" ;;
23050 esac
23051 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23052 else
23053 tst_show="unknown"
23054 fi
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23056$as_echo "$tst_show" >&6; }
23057 #
23058 curl_openssl_api_headers=$tst_api
23059
23060
23061 #
23062 tst_api="unknown"
23063 #
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23065$as_echo_n "checking for OpenSSL library version... " >&6; }
23066 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23068/* end confdefs.h. */
23069
23070
23071#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23072#ifdef __STDC__
23073# include <limits.h>
23074#else
23075# include <assert.h>
23076#endif
23077#undef ERR_clear_last_mark
23078#ifdef __cplusplus
23079extern "C"
23080#endif
23081char ERR_clear_last_mark ();
23082#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23083choke me
23084#endif
23085
23086int main (void)
23087{
23088return ERR_clear_last_mark ();
23089 ;
23090 return 0;
23091}
23092
23093_ACEOF
23094if ac_fn_c_try_link "$LINENO"; then :
23095
23096 tst_api="0x111"
23097
23098fi
23099rm -f core conftest.err conftest.$ac_objext \
23100 conftest$ac_exeext conftest.$ac_ext
23101 fi
23102 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023103 case $host in
23104 *-*-vms*)
23105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106/* end confdefs.h. */
23107
23108
23109#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23110#ifdef __STDC__
23111# include <limits.h>
23112#else
23113# include <assert.h>
23114#endif
23115#undef SSL_CTX_set_not_resumbl_sess_cb
23116#ifdef __cplusplus
23117extern "C"
23118#endif
23119char SSL_CTX_set_not_resumbl_sess_cb ();
23120#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23121choke me
23122#endif
23123
23124int main (void)
23125{
23126return SSL_CTX_set_not_resumbl_sess_cb ();
23127 ;
23128 return 0;
23129}
23130
23131_ACEOF
23132if ac_fn_c_try_link "$LINENO"; then :
23133
23134 tst_api="0x110"
23135
23136fi
23137rm -f core conftest.err conftest.$ac_objext \
23138 conftest$ac_exeext conftest.$ac_ext
23139 ;;
23140 *)
23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142/* end confdefs.h. */
23143
23144
23145#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23146#ifdef __STDC__
23147# include <limits.h>
23148#else
23149# include <assert.h>
23150#endif
23151#undef SSL_CTX_set_not_resumable_session_callback
23152#ifdef __cplusplus
23153extern "C"
23154#endif
23155char SSL_CTX_set_not_resumable_session_callback ();
23156#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23157choke me
23158#endif
23159
23160int main (void)
23161{
23162return SSL_CTX_set_not_resumable_session_callback ();
23163 ;
23164 return 0;
23165}
23166
23167_ACEOF
23168if ac_fn_c_try_link "$LINENO"; then :
23169
23170 tst_api="0x110"
23171
23172fi
23173rm -f core conftest.err conftest.$ac_objext \
23174 conftest$ac_exeext conftest.$ac_ext
23175 ;;
23176 esac
23177 fi
23178 if test "$tst_api" = "unknown"; then
23179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23180/* end confdefs.h. */
23181
23182
23183#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23184#ifdef __STDC__
23185# include <limits.h>
23186#else
23187# include <assert.h>
23188#endif
23189#undef SSL_CONF_CTX_new
23190#ifdef __cplusplus
23191extern "C"
23192#endif
23193char SSL_CONF_CTX_new ();
23194#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23195choke me
23196#endif
23197
23198int main (void)
23199{
23200return SSL_CONF_CTX_new ();
23201 ;
23202 return 0;
23203}
23204
23205_ACEOF
23206if ac_fn_c_try_link "$LINENO"; then :
23207
23208 tst_api="0x102"
23209
23210fi
23211rm -f core conftest.err conftest.$ac_objext \
23212 conftest$ac_exeext conftest.$ac_ext
23213 fi
23214 if test "$tst_api" = "unknown"; then
23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216/* end confdefs.h. */
23217
23218
23219#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23220#ifdef __STDC__
23221# include <limits.h>
23222#else
23223# include <assert.h>
23224#endif
23225#undef SSL_renegotiate_abbreviated
23226#ifdef __cplusplus
23227extern "C"
23228#endif
23229char SSL_renegotiate_abbreviated ();
23230#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23231choke me
23232#endif
23233
23234int main (void)
23235{
23236return SSL_renegotiate_abbreviated ();
23237 ;
23238 return 0;
23239}
23240
23241_ACEOF
23242if ac_fn_c_try_link "$LINENO"; then :
23243
23244 tst_api="0x101"
23245
23246fi
23247rm -f core conftest.err conftest.$ac_objext \
23248 conftest$ac_exeext conftest.$ac_ext
23249 fi
23250 if test "$tst_api" = "unknown"; then
23251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23252/* end confdefs.h. */
23253
23254
23255#define OBJ_add_sigid innocuous_OBJ_add_sigid
23256#ifdef __STDC__
23257# include <limits.h>
23258#else
23259# include <assert.h>
23260#endif
23261#undef OBJ_add_sigid
23262#ifdef __cplusplus
23263extern "C"
23264#endif
23265char OBJ_add_sigid ();
23266#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23267choke me
23268#endif
23269
23270int main (void)
23271{
23272return OBJ_add_sigid ();
23273 ;
23274 return 0;
23275}
23276
23277_ACEOF
23278if ac_fn_c_try_link "$LINENO"; then :
23279
23280 tst_api="0x100"
23281
23282fi
23283rm -f core conftest.err conftest.$ac_objext \
23284 conftest$ac_exeext conftest.$ac_ext
23285 fi
23286 if test "$tst_api" = "unknown"; then
23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288/* end confdefs.h. */
23289
23290
23291#define ERR_set_mark innocuous_ERR_set_mark
23292#ifdef __STDC__
23293# include <limits.h>
23294#else
23295# include <assert.h>
23296#endif
23297#undef ERR_set_mark
23298#ifdef __cplusplus
23299extern "C"
23300#endif
23301char ERR_set_mark ();
23302#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23303choke me
23304#endif
23305
23306int main (void)
23307{
23308return ERR_set_mark ();
23309 ;
23310 return 0;
23311}
23312
23313_ACEOF
23314if ac_fn_c_try_link "$LINENO"; then :
23315
23316 tst_api="0x098"
23317
23318fi
23319rm -f core conftest.err conftest.$ac_objext \
23320 conftest$ac_exeext conftest.$ac_ext
23321 fi
23322 if test "$tst_api" = "unknown"; then
23323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23324/* end confdefs.h. */
23325
23326
23327#define ERR_peek_last_error innocuous_ERR_peek_last_error
23328#ifdef __STDC__
23329# include <limits.h>
23330#else
23331# include <assert.h>
23332#endif
23333#undef ERR_peek_last_error
23334#ifdef __cplusplus
23335extern "C"
23336#endif
23337char ERR_peek_last_error ();
23338#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23339choke me
23340#endif
23341
23342int main (void)
23343{
23344return ERR_peek_last_error ();
23345 ;
23346 return 0;
23347}
23348
23349_ACEOF
23350if ac_fn_c_try_link "$LINENO"; then :
23351
23352 tst_api="0x097"
23353
23354fi
23355rm -f core conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
23357 fi
23358 if test "$tst_api" = "unknown"; then
23359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23360/* end confdefs.h. */
23361
23362
23363#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23364#ifdef __STDC__
23365# include <limits.h>
23366#else
23367# include <assert.h>
23368#endif
23369#undef c2i_ASN1_OBJECT
23370#ifdef __cplusplus
23371extern "C"
23372#endif
23373char c2i_ASN1_OBJECT ();
23374#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23375choke me
23376#endif
23377
23378int main (void)
23379{
23380return c2i_ASN1_OBJECT ();
23381 ;
23382 return 0;
23383}
23384
23385_ACEOF
23386if ac_fn_c_try_link "$LINENO"; then :
23387
23388 tst_api="0x096"
23389
23390fi
23391rm -f core conftest.err conftest.$ac_objext \
23392 conftest$ac_exeext conftest.$ac_ext
23393 fi
23394 if test "$tst_api" = "unknown"; then
23395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23396/* end confdefs.h. */
23397
23398
23399#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23400#ifdef __STDC__
23401# include <limits.h>
23402#else
23403# include <assert.h>
23404#endif
23405#undef SSL_CTX_set_purpose
23406#ifdef __cplusplus
23407extern "C"
23408#endif
23409char SSL_CTX_set_purpose ();
23410#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23411choke me
23412#endif
23413
23414int main (void)
23415{
23416return SSL_CTX_set_purpose ();
23417 ;
23418 return 0;
23419}
23420
23421_ACEOF
23422if ac_fn_c_try_link "$LINENO"; then :
23423
23424 tst_api="0x095"
23425
23426fi
23427rm -f core conftest.err conftest.$ac_objext \
23428 conftest$ac_exeext conftest.$ac_ext
23429 fi
23430 if test "$tst_api" = "unknown"; then
23431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23432/* end confdefs.h. */
23433
23434
23435#define OBJ_obj2txt innocuous_OBJ_obj2txt
23436#ifdef __STDC__
23437# include <limits.h>
23438#else
23439# include <assert.h>
23440#endif
23441#undef OBJ_obj2txt
23442#ifdef __cplusplus
23443extern "C"
23444#endif
23445char OBJ_obj2txt ();
23446#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23447choke me
23448#endif
23449
23450int main (void)
23451{
23452return OBJ_obj2txt ();
23453 ;
23454 return 0;
23455}
23456
23457_ACEOF
23458if ac_fn_c_try_link "$LINENO"; then :
23459
23460 tst_api="0x094"
23461
23462fi
23463rm -f core conftest.err conftest.$ac_objext \
23464 conftest$ac_exeext conftest.$ac_ext
23465 fi
23466 if test "$tst_api" = "unknown"; then
23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23468/* end confdefs.h. */
23469
23470
23471#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23472#ifdef __STDC__
23473# include <limits.h>
23474#else
23475# include <assert.h>
23476#endif
23477#undef SSL_get_verify_depth
23478#ifdef __cplusplus
23479extern "C"
23480#endif
23481char SSL_get_verify_depth ();
23482#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23483choke me
23484#endif
23485
23486int main (void)
23487{
23488return SSL_get_verify_depth ();
23489 ;
23490 return 0;
23491}
23492
23493_ACEOF
23494if ac_fn_c_try_link "$LINENO"; then :
23495
23496 tst_api="0x093"
23497
23498fi
23499rm -f core conftest.err conftest.$ac_objext \
23500 conftest$ac_exeext conftest.$ac_ext
23501 fi
23502 if test "$tst_api" = "unknown"; then
23503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504/* end confdefs.h. */
23505
23506
23507#define SSL_library_init innocuous_SSL_library_init
23508#ifdef __STDC__
23509# include <limits.h>
23510#else
23511# include <assert.h>
23512#endif
23513#undef SSL_library_init
23514#ifdef __cplusplus
23515extern "C"
23516#endif
23517char SSL_library_init ();
23518#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23519choke me
23520#endif
23521
23522int main (void)
23523{
23524return SSL_library_init ();
23525 ;
23526 return 0;
23527}
23528
23529_ACEOF
23530if ac_fn_c_try_link "$LINENO"; then :
23531
23532 tst_api="0x092"
23533
23534fi
23535rm -f core conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
23537 fi
23538 if test "$tst_api" = "unknown"; then
23539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23540/* end confdefs.h. */
23541
23542
23543#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23544#ifdef __STDC__
23545# include <limits.h>
23546#else
23547# include <assert.h>
23548#endif
23549#undef SSL_CTX_set_cipher_list
23550#ifdef __cplusplus
23551extern "C"
23552#endif
23553char SSL_CTX_set_cipher_list ();
23554#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23555choke me
23556#endif
23557
23558int main (void)
23559{
23560return SSL_CTX_set_cipher_list ();
23561 ;
23562 return 0;
23563}
23564
23565_ACEOF
23566if ac_fn_c_try_link "$LINENO"; then :
23567
23568 tst_api="0x091"
23569
23570fi
23571rm -f core conftest.err conftest.$ac_objext \
23572 conftest$ac_exeext conftest.$ac_ext
23573 fi
23574 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023575 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023576 0x110) tst_show="1.1.0" ;;
23577 0x102) tst_show="1.0.2" ;;
23578 0x101) tst_show="1.0.1" ;;
23579 0x100) tst_show="1.0.0" ;;
23580 0x099) tst_show="0.9.9" ;;
23581 0x098) tst_show="0.9.8" ;;
23582 0x097) tst_show="0.9.7" ;;
23583 0x096) tst_show="0.9.6" ;;
23584 0x095) tst_show="0.9.5" ;;
23585 0x094) tst_show="0.9.4" ;;
23586 0x093) tst_show="0.9.3" ;;
23587 0x092) tst_show="0.9.2" ;;
23588 0x091) tst_show="0.9.1" ;;
23589 *) tst_show="unknown" ;;
23590 esac
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23592$as_echo "$tst_show" >&6; }
23593 #
23594 curl_openssl_api_library=$tst_api
23595
23596 #
23597 tst_match="yes"
23598 #
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23600$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23601 if test "$curl_openssl_api_headers" = "unknown" ||
23602 test "$curl_openssl_api_library" = "unknown"; then
23603 tst_match="fail"
23604 tst_warns="Can not compare OpenSSL headers and library versions."
23605 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23606 tst_match="no"
23607 tst_warns="OpenSSL headers and library versions do not match."
23608 fi
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23610$as_echo "$tst_match" >&6; }
23611 if test "$tst_match" != "yes"; then
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23613$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23614 fi
23615
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023616 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023617 fi
23618
Alex Deymo486467e2017-12-19 19:04:07 +010023619 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023620fi
23621
23622
23623if test X"$OPENSSL_ENABLED" = X"1"; then
23624
23625# Check whether --with-egd-socket was given.
23626if test "${with_egd_socket+set}" = set; then :
23627 withval=$with_egd_socket; EGD_SOCKET="$withval"
23628
23629fi
23630
23631 if test -n "$EGD_SOCKET" ; then
23632
23633cat >>confdefs.h <<_ACEOF
23634#define EGD_SOCKET "$EGD_SOCKET"
23635_ACEOF
23636
23637 fi
23638
23639
23640# Check whether --with-random was given.
23641if test "${with_random+set}" = set; then :
23642 withval=$with_random; RANDOM_FILE="$withval"
23643else
23644
23645 if test x$cross_compiling != xyes; then
23646 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23648$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23649if eval \${$as_ac_File+:} false; then :
23650 $as_echo_n "(cached) " >&6
23651else
23652 test "$cross_compiling" = yes &&
23653 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23654if test -r ""/dev/urandom""; then
23655 eval "$as_ac_File=yes"
23656else
23657 eval "$as_ac_File=no"
23658fi
23659fi
23660eval ac_res=\$$as_ac_File
23661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23662$as_echo "$ac_res" >&6; }
23663if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23664 RANDOM_FILE="/dev/urandom"
23665fi
23666
23667 else
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23669$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23670 fi
23671
23672
23673fi
23674
23675 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23676
23677
23678cat >>confdefs.h <<_ACEOF
23679#define RANDOM_FILE "$RANDOM_FILE"
23680_ACEOF
23681
23682 fi
23683fi
23684
23685if test "$OPENSSL_ENABLED" = "1"; then
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23687$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23688if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23689 $as_echo_n "(cached) " >&6
23690else
23691 ac_check_lib_save_LIBS=$LIBS
23692LIBS="-lcrypto $LIBS"
23693cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23694/* end confdefs.h. */
23695
23696
23697#ifdef __cplusplus
23698extern "C"
23699#endif
23700char SRP_Calc_client_key ();
23701int main (void)
23702{
23703return SRP_Calc_client_key ();
23704 ;
23705 return 0;
23706}
23707_ACEOF
23708if ac_fn_c_try_link "$LINENO"; then :
23709 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23710else
23711 ac_cv_lib_crypto_SRP_Calc_client_key=no
23712fi
23713rm -f core conftest.err conftest.$ac_objext \
23714 conftest$ac_exeext conftest.$ac_ext
23715LIBS=$ac_check_lib_save_LIBS
23716fi
23717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23718$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23719if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23720
23721
23722$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23723
23724 HAVE_OPENSSL_SRP=1
23725
23726
23727fi
23728
23729fi
23730
Elliott Hughesa93fb052018-12-12 14:22:48 -080023731if test X"$OPENSSL_ENABLED" = X"1"; then
23732# Check whether --enable-openssl-auto-load-config was given.
23733if test "${enable_openssl_auto_load_config+set}" = set; then :
23734 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23736$as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23737
23738$as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23739
23740 fi
23741
23742fi
23743
23744fi
23745
Elliott Hughes82be86d2017-09-20 17:00:17 -070023746
23747OPT_GNUTLS=no
23748
23749
23750# Check whether --with-gnutls was given.
23751if test "${with_gnutls+set}" = set; then :
23752 withval=$with_gnutls; OPT_GNUTLS=$withval
23753fi
23754
23755
Alex Deymo486467e2017-12-19 19:04:07 +010023756if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23757 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023758
23759 if test X"$OPT_GNUTLS" != Xno; then
23760
23761 addld=""
23762 addlib=""
23763 gtlslib=""
23764 version=""
23765 addcflags=""
23766
23767 if test "x$OPT_GNUTLS" = "xyes"; then
23768
23769 if test -n "$PKG_CONFIG"; then
23770 PKGCONFIG="$PKG_CONFIG"
23771 else
23772 if test -n "$ac_tool_prefix"; then
23773 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23774set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23776$as_echo_n "checking for $ac_word... " >&6; }
23777if ${ac_cv_path_PKGCONFIG+:} false; then :
23778 $as_echo_n "(cached) " >&6
23779else
23780 case $PKGCONFIG in
23781 [\\/]* | ?:[\\/]*)
23782 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23783 ;;
23784 *)
23785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23786as_dummy="$PATH:/usr/bin:/usr/local/bin"
23787for as_dir in $as_dummy
23788do
23789 IFS=$as_save_IFS
23790 test -z "$as_dir" && as_dir=.
23791 for ac_exec_ext in '' $ac_executable_extensions; do
23792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23793 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23795 break 2
23796 fi
23797done
23798 done
23799IFS=$as_save_IFS
23800
23801 ;;
23802esac
23803fi
23804PKGCONFIG=$ac_cv_path_PKGCONFIG
23805if test -n "$PKGCONFIG"; then
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23807$as_echo "$PKGCONFIG" >&6; }
23808else
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23810$as_echo "no" >&6; }
23811fi
23812
23813
23814fi
23815if test -z "$ac_cv_path_PKGCONFIG"; then
23816 ac_pt_PKGCONFIG=$PKGCONFIG
23817 # Extract the first word of "pkg-config", so it can be a program name with args.
23818set dummy pkg-config; ac_word=$2
23819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23820$as_echo_n "checking for $ac_word... " >&6; }
23821if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23822 $as_echo_n "(cached) " >&6
23823else
23824 case $ac_pt_PKGCONFIG in
23825 [\\/]* | ?:[\\/]*)
23826 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23827 ;;
23828 *)
23829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23830as_dummy="$PATH:/usr/bin:/usr/local/bin"
23831for as_dir in $as_dummy
23832do
23833 IFS=$as_save_IFS
23834 test -z "$as_dir" && as_dir=.
23835 for ac_exec_ext in '' $ac_executable_extensions; do
23836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23837 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23839 break 2
23840 fi
23841done
23842 done
23843IFS=$as_save_IFS
23844
23845 ;;
23846esac
23847fi
23848ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23849if test -n "$ac_pt_PKGCONFIG"; then
23850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23851$as_echo "$ac_pt_PKGCONFIG" >&6; }
23852else
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23854$as_echo "no" >&6; }
23855fi
23856
23857 if test "x$ac_pt_PKGCONFIG" = x; then
23858 PKGCONFIG="no"
23859 else
23860 case $cross_compiling:$ac_tool_warned in
23861yes:)
23862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23864ac_tool_warned=yes ;;
23865esac
23866 PKGCONFIG=$ac_pt_PKGCONFIG
23867 fi
23868else
23869 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23870fi
23871
23872 fi
23873
23874 if test "x$PKGCONFIG" != "xno"; then
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23876$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23877 itexists=`
23878 if test -n ""; then
23879 PKG_CONFIG_LIBDIR=""
23880 export PKG_CONFIG_LIBDIR
23881 fi
23882 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23883
23884 if test -z "$itexists"; then
23885 PKGCONFIG="no"
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23887$as_echo "no" >&6; }
23888 else
23889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23890$as_echo "found" >&6; }
23891 fi
23892 fi
23893
23894
23895 if test "$PKGCONFIG" != "no" ; then
23896 addlib=`$PKGCONFIG --libs-only-l gnutls`
23897 addld=`$PKGCONFIG --libs-only-L gnutls`
23898 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23899 version=`$PKGCONFIG --modversion gnutls`
23900 gtlslib=`echo $addld | $SED -e 's/-L//'`
23901 else
23902 check=`libgnutls-config --version 2>/dev/null`
23903 if test -n "$check"; then
23904 addlib=`libgnutls-config --libs`
23905 addcflags=`libgnutls-config --cflags`
23906 version=`libgnutls-config --version`
23907 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23908 fi
23909 fi
23910 else
23911 cfg=$OPT_GNUTLS/bin/libgnutls-config
23912 check=`$cfg --version 2>/dev/null`
23913 if test -n "$check"; then
23914 addlib=`$cfg --libs`
23915 addcflags=`$cfg --cflags`
23916 version=`$cfg --version`
23917 gtlslib=`$cfg --prefix`/lib$libsuff
23918 else
23919 addlib=-lgnutls
23920 addld=-L$OPT_GNUTLS/lib$libsuff
23921 addcflags=-I$OPT_GNUTLS/include
23922 version="" # we just don't know
23923 gtlslib=$OPT_GNUTLS/lib$libsuff
23924 fi
23925 fi
23926
23927 if test -z "$version"; then
23928 version="unknown"
23929 fi
23930
23931 if test -n "$addlib"; then
23932
23933 CLEANLIBS="$LIBS"
23934 CLEANCPPFLAGS="$CPPFLAGS"
23935 CLEANLDFLAGS="$LDFLAGS"
23936
23937 LIBS="$addlib $LIBS"
23938 LDFLAGS="$LDFLAGS $addld"
23939 if test "$addcflags" != "-I/usr/include"; then
23940 CPPFLAGS="$CPPFLAGS $addcflags"
23941 fi
23942
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23944$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23945if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23946 $as_echo_n "(cached) " >&6
23947else
23948 ac_check_lib_save_LIBS=$LIBS
23949LIBS="-lgnutls $LIBS"
23950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23951/* end confdefs.h. */
23952
23953
23954#ifdef __cplusplus
23955extern "C"
23956#endif
23957char gnutls_check_version ();
23958int main (void)
23959{
23960return gnutls_check_version ();
23961 ;
23962 return 0;
23963}
23964_ACEOF
23965if ac_fn_c_try_link "$LINENO"; then :
23966 ac_cv_lib_gnutls_gnutls_check_version=yes
23967else
23968 ac_cv_lib_gnutls_gnutls_check_version=no
23969fi
23970rm -f core conftest.err conftest.$ac_objext \
23971 conftest$ac_exeext conftest.$ac_ext
23972LIBS=$ac_check_lib_save_LIBS
23973fi
23974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23975$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
23976if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
23977
23978
23979$as_echo "#define USE_GNUTLS 1" >>confdefs.h
23980
23981 USE_GNUTLS=1
23982
23983 GNUTLS_ENABLED=1
23984 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010023985 ssl_msg="GnuTLS"
23986 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070023987
23988else
23989
23990 LIBS="$CLEANLIBS"
23991 CPPFLAGS="$CLEANCPPFLAGS"
23992
23993fi
23994
23995
23996 if test "x$USE_GNUTLS" = "xyes"; then
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
23998$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023999 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024000 if test -n "$gtlslib"; then
24001 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024002 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24003 export CURL_LIBRARY_PATH
24004 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24005$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024006 fi
24007 fi
24008 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24009do :
24010 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24011ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24012if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24013 cat >>confdefs.h <<_ACEOF
24014#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24015_ACEOF
24016
24017fi
24018done
24019
24020 fi
24021
24022 fi
24023
24024 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024025 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024026fi
24027
24028
24029if test "$GNUTLS_ENABLED" = "1"; then
24030 USE_GNUTLS_NETTLE=
24031 # First check if we can detect either crypto library via transitive linking
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24033$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24034if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24035 $as_echo_n "(cached) " >&6
24036else
24037 ac_check_lib_save_LIBS=$LIBS
24038LIBS="-lgnutls $LIBS"
24039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24040/* end confdefs.h. */
24041
24042
24043#ifdef __cplusplus
24044extern "C"
24045#endif
24046char nettle_MD5Init ();
24047int main (void)
24048{
24049return nettle_MD5Init ();
24050 ;
24051 return 0;
24052}
24053_ACEOF
24054if ac_fn_c_try_link "$LINENO"; then :
24055 ac_cv_lib_gnutls_nettle_MD5Init=yes
24056else
24057 ac_cv_lib_gnutls_nettle_MD5Init=no
24058fi
24059rm -f core conftest.err conftest.$ac_objext \
24060 conftest$ac_exeext conftest.$ac_ext
24061LIBS=$ac_check_lib_save_LIBS
24062fi
24063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24064$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24065if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24066 USE_GNUTLS_NETTLE=1
24067fi
24068
24069 if test "$USE_GNUTLS_NETTLE" = ""; then
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24071$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24072if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24073 $as_echo_n "(cached) " >&6
24074else
24075 ac_check_lib_save_LIBS=$LIBS
24076LIBS="-lgnutls $LIBS"
24077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24078/* end confdefs.h. */
24079
24080
24081#ifdef __cplusplus
24082extern "C"
24083#endif
24084char gcry_control ();
24085int main (void)
24086{
24087return gcry_control ();
24088 ;
24089 return 0;
24090}
24091_ACEOF
24092if ac_fn_c_try_link "$LINENO"; then :
24093 ac_cv_lib_gnutls_gcry_control=yes
24094else
24095 ac_cv_lib_gnutls_gcry_control=no
24096fi
24097rm -f core conftest.err conftest.$ac_objext \
24098 conftest$ac_exeext conftest.$ac_ext
24099LIBS=$ac_check_lib_save_LIBS
24100fi
24101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24102$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24103if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24104 USE_GNUTLS_NETTLE=0
24105fi
24106
24107 fi
24108 # If not, try linking directly to both of them to see if they are available
24109 if test "$USE_GNUTLS_NETTLE" = ""; then
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24111$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24112if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24113 $as_echo_n "(cached) " >&6
24114else
24115 ac_check_lib_save_LIBS=$LIBS
24116LIBS="-lnettle $LIBS"
24117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24118/* end confdefs.h. */
24119
24120
24121#ifdef __cplusplus
24122extern "C"
24123#endif
24124char nettle_MD5Init ();
24125int main (void)
24126{
24127return nettle_MD5Init ();
24128 ;
24129 return 0;
24130}
24131_ACEOF
24132if ac_fn_c_try_link "$LINENO"; then :
24133 ac_cv_lib_nettle_nettle_MD5Init=yes
24134else
24135 ac_cv_lib_nettle_nettle_MD5Init=no
24136fi
24137rm -f core conftest.err conftest.$ac_objext \
24138 conftest$ac_exeext conftest.$ac_ext
24139LIBS=$ac_check_lib_save_LIBS
24140fi
24141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24142$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24143if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24144 USE_GNUTLS_NETTLE=1
24145fi
24146
24147 fi
24148 if test "$USE_GNUTLS_NETTLE" = ""; then
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24150$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24151if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24152 $as_echo_n "(cached) " >&6
24153else
24154 ac_check_lib_save_LIBS=$LIBS
24155LIBS="-lgcrypt $LIBS"
24156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24157/* end confdefs.h. */
24158
24159
24160#ifdef __cplusplus
24161extern "C"
24162#endif
24163char gcry_control ();
24164int main (void)
24165{
24166return gcry_control ();
24167 ;
24168 return 0;
24169}
24170_ACEOF
24171if ac_fn_c_try_link "$LINENO"; then :
24172 ac_cv_lib_gcrypt_gcry_control=yes
24173else
24174 ac_cv_lib_gcrypt_gcry_control=no
24175fi
24176rm -f core conftest.err conftest.$ac_objext \
24177 conftest$ac_exeext conftest.$ac_ext
24178LIBS=$ac_check_lib_save_LIBS
24179fi
24180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24181$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24182if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24183 USE_GNUTLS_NETTLE=0
24184fi
24185
24186 fi
24187 if test "$USE_GNUTLS_NETTLE" = ""; then
24188 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24189 fi
24190 if test "$USE_GNUTLS_NETTLE" = "1"; then
24191
24192$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24193
24194 USE_GNUTLS_NETTLE=1
24195
24196 LIBS="-lnettle $LIBS"
24197 else
24198 LIBS="-lgcrypt $LIBS"
24199 fi
24200fi
24201
24202if test "$GNUTLS_ENABLED" = "1"; then
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24204$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24205if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24206 $as_echo_n "(cached) " >&6
24207else
24208 ac_check_lib_save_LIBS=$LIBS
24209LIBS="-lgnutls $LIBS"
24210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24211/* end confdefs.h. */
24212
24213
24214#ifdef __cplusplus
24215extern "C"
24216#endif
24217char gnutls_srp_verifier ();
24218int main (void)
24219{
24220return gnutls_srp_verifier ();
24221 ;
24222 return 0;
24223}
24224_ACEOF
24225if ac_fn_c_try_link "$LINENO"; then :
24226 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24227else
24228 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24229fi
24230rm -f core conftest.err conftest.$ac_objext \
24231 conftest$ac_exeext conftest.$ac_ext
24232LIBS=$ac_check_lib_save_LIBS
24233fi
24234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24235$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24236if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24237
24238
24239$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24240
24241 HAVE_GNUTLS_SRP=1
24242
24243
24244fi
24245
24246fi
24247
24248
24249OPT_POLARSSL=no
24250
24251_cppflags=$CPPFLAGS
24252_ldflags=$LDFLAGS
24253
24254# Check whether --with-polarssl was given.
24255if test "${with_polarssl+set}" = set; then :
24256 withval=$with_polarssl; OPT_POLARSSL=$withval
24257fi
24258
24259
Alex Deymo486467e2017-12-19 19:04:07 +010024260if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24261 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024262
24263 if test X"$OPT_POLARSSL" != Xno; then
24264
24265 if test "$OPT_POLARSSL" = "yes"; then
24266 OPT_POLARSSL=""
24267 fi
24268
24269 if test -z "$OPT_POLARSSL" ; then
24270
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24272$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24273if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24274 $as_echo_n "(cached) " >&6
24275else
24276 ac_check_lib_save_LIBS=$LIBS
24277LIBS="-lpolarssl $LIBS"
24278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279/* end confdefs.h. */
24280
24281
24282#ifdef __cplusplus
24283extern "C"
24284#endif
24285char havege_init ();
24286int main (void)
24287{
24288return havege_init ();
24289 ;
24290 return 0;
24291}
24292_ACEOF
24293if ac_fn_c_try_link "$LINENO"; then :
24294 ac_cv_lib_polarssl_havege_init=yes
24295else
24296 ac_cv_lib_polarssl_havege_init=no
24297fi
24298rm -f core conftest.err conftest.$ac_objext \
24299 conftest$ac_exeext conftest.$ac_ext
24300LIBS=$ac_check_lib_save_LIBS
24301fi
24302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24303$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24304if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24305
24306
24307$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24308
24309 USE_POLARSSL=1
24310
24311 POLARSSL_ENABLED=1
24312 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024313 ssl_msg="PolarSSL"
24314 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024315
24316fi
24317
24318 fi
24319
24320 addld=""
24321 addlib=""
24322 addcflags=""
24323 polarssllib=""
24324
24325 if test "x$USE_POLARSSL" != "xyes"; then
24326 addld=-L$OPT_POLARSSL/lib$libsuff
24327 addcflags=-I$OPT_POLARSSL/include
24328 polarssllib=$OPT_POLARSSL/lib$libsuff
24329
24330 LDFLAGS="$LDFLAGS $addld"
24331 if test "$addcflags" != "-I/usr/include"; then
24332 CPPFLAGS="$CPPFLAGS $addcflags"
24333 fi
24334
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24336$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24337if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24338 $as_echo_n "(cached) " >&6
24339else
24340 ac_check_lib_save_LIBS=$LIBS
24341LIBS="-lpolarssl $LIBS"
24342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343/* end confdefs.h. */
24344
24345
24346#ifdef __cplusplus
24347extern "C"
24348#endif
24349char ssl_init ();
24350int main (void)
24351{
24352return ssl_init ();
24353 ;
24354 return 0;
24355}
24356_ACEOF
24357if ac_fn_c_try_link "$LINENO"; then :
24358 ac_cv_lib_polarssl_ssl_init=yes
24359else
24360 ac_cv_lib_polarssl_ssl_init=no
24361fi
24362rm -f core conftest.err conftest.$ac_objext \
24363 conftest$ac_exeext conftest.$ac_ext
24364LIBS=$ac_check_lib_save_LIBS
24365fi
24366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24367$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24368if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24369
24370
24371$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24372
24373 USE_POLARSSL=1
24374
24375 POLARSSL_ENABLED=1
24376 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024377 ssl_msg="PolarSSL"
24378 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024379
24380else
24381
24382 CPPFLAGS=$_cppflags
24383 LDFLAGS=$_ldflags
24384
24385fi
24386
24387 fi
24388
24389 if test "x$USE_POLARSSL" = "xyes"; then
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24391$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024392 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024393 LIBS="-lpolarssl $LIBS"
24394
24395 if test -n "$polarssllib"; then
24396 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024397 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24398 export CURL_LIBRARY_PATH
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24400$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024401 fi
24402 fi
24403 fi
24404
24405 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024406 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024407fi
24408
24409
24410OPT_MBEDTLS=no
24411
24412_cppflags=$CPPFLAGS
24413_ldflags=$LDFLAGS
24414
24415# Check whether --with-mbedtls was given.
24416if test "${with_mbedtls+set}" = set; then :
24417 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24418fi
24419
24420
Alex Deymo486467e2017-12-19 19:04:07 +010024421if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24422 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024423
24424 if test X"$OPT_MBEDTLS" != Xno; then
24425
24426 if test "$OPT_MBEDTLS" = "yes"; then
24427 OPT_MBEDTLS=""
24428 fi
24429
24430 if test -z "$OPT_MBEDTLS" ; then
24431
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24433$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24434if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24435 $as_echo_n "(cached) " >&6
24436else
24437 ac_check_lib_save_LIBS=$LIBS
24438LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440/* end confdefs.h. */
24441
24442
24443#ifdef __cplusplus
24444extern "C"
24445#endif
24446char mbedtls_havege_init ();
24447int main (void)
24448{
24449return mbedtls_havege_init ();
24450 ;
24451 return 0;
24452}
24453_ACEOF
24454if ac_fn_c_try_link "$LINENO"; then :
24455 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24456else
24457 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24458fi
24459rm -f core conftest.err conftest.$ac_objext \
24460 conftest$ac_exeext conftest.$ac_ext
24461LIBS=$ac_check_lib_save_LIBS
24462fi
24463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24464$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24465if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24466
24467
24468$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24469
24470 USE_MBEDTLS=1
24471
24472 MBEDTLS_ENABLED=1
24473 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024474 ssl_msg="mbedTLS"
24475 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024476
24477fi
24478
24479 fi
24480
24481 addld=""
24482 addlib=""
24483 addcflags=""
24484 mbedtlslib=""
24485
24486 if test "x$USE_MBEDTLS" != "xyes"; then
24487 addld=-L$OPT_MBEDTLS/lib$libsuff
24488 addcflags=-I$OPT_MBEDTLS/include
24489 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24490
24491 LDFLAGS="$LDFLAGS $addld"
24492 if test "$addcflags" != "-I/usr/include"; then
24493 CPPFLAGS="$CPPFLAGS $addcflags"
24494 fi
24495
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24497$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24498if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24499 $as_echo_n "(cached) " >&6
24500else
24501 ac_check_lib_save_LIBS=$LIBS
24502LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24504/* end confdefs.h. */
24505
24506
24507#ifdef __cplusplus
24508extern "C"
24509#endif
24510char mbedtls_ssl_init ();
24511int main (void)
24512{
24513return mbedtls_ssl_init ();
24514 ;
24515 return 0;
24516}
24517_ACEOF
24518if ac_fn_c_try_link "$LINENO"; then :
24519 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24520else
24521 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24522fi
24523rm -f core conftest.err conftest.$ac_objext \
24524 conftest$ac_exeext conftest.$ac_ext
24525LIBS=$ac_check_lib_save_LIBS
24526fi
24527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24528$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24529if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24530
24531
24532$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24533
24534 USE_MBEDTLS=1
24535
24536 MBEDTLS_ENABLED=1
24537 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024538 ssl_msg="mbedTLS"
24539 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024540
24541else
24542
24543 CPPFLAGS=$_cppflags
24544 LDFLAGS=$_ldflags
24545
24546fi
24547
24548 fi
24549
24550 if test "x$USE_MBEDTLS" = "xyes"; then
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24552$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024553 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024554
24555 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24556
24557 if test -n "$mbedtlslib"; then
24558 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024559 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24560 export CURL_LIBRARY_PATH
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24562$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024563 fi
24564 fi
24565 fi
24566
24567 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024568 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024569fi
24570
24571
24572OPT_CYASSL=no
24573
24574_cppflags=$CPPFLAGS
24575_ldflags=$LDFLAGS
24576
24577# Check whether --with-cyassl was given.
24578if test "${with_cyassl+set}" = set; then :
24579 withval=$with_cyassl; OPT_CYASSL=$withval
24580fi
24581
24582
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024583
24584# Check whether --with-wolfssl was given.
24585if test "${with_wolfssl+set}" = set; then :
24586 withval=$with_wolfssl; OPT_CYASSL=$withval
24587fi
24588
24589
Alex Deymo486467e2017-12-19 19:04:07 +010024590if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24591 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024592
24593 if test X"$OPT_CYASSL" != Xno; then
24594
24595 if test "$OPT_CYASSL" = "yes"; then
24596 OPT_CYASSL=""
24597 fi
24598
24599
24600 cyassllibname=cyassl
24601
24602 if test -z "$OPT_CYASSL" ; then
24603
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24605$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24606if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24607 $as_echo_n "(cached) " >&6
24608else
24609 ac_check_lib_save_LIBS=$LIBS
24610LIBS="-lcyassl $LIBS"
24611cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24612/* end confdefs.h. */
24613
24614
24615#ifdef __cplusplus
24616extern "C"
24617#endif
24618char CyaSSL_Init ();
24619int main (void)
24620{
24621return CyaSSL_Init ();
24622 ;
24623 return 0;
24624}
24625_ACEOF
24626if ac_fn_c_try_link "$LINENO"; then :
24627 ac_cv_lib_cyassl_CyaSSL_Init=yes
24628else
24629 ac_cv_lib_cyassl_CyaSSL_Init=no
24630fi
24631rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
24633LIBS=$ac_check_lib_save_LIBS
24634fi
24635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24636$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24637if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24638
24639
24640$as_echo "#define USE_CYASSL 1" >>confdefs.h
24641
24642 USE_CYASSL=1
24643
24644 CYASSL_ENABLED=1
24645 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024646 ssl_msg="CyaSSL"
24647 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024648
24649fi
24650
24651 fi
24652
24653 addld=""
24654 addlib=""
24655 addcflags=""
24656 cyassllib=""
24657
24658 if test "x$USE_CYASSL" != "xyes"; then
24659 addld=-L$OPT_CYASSL/lib$libsuff
24660 addcflags=-I$OPT_CYASSL/include
24661 cyassllib=$OPT_CYASSL/lib$libsuff
24662
24663 LDFLAGS="$LDFLAGS $addld"
24664 if test "$addcflags" != "-I/usr/include"; then
24665 CPPFLAGS="$CPPFLAGS $addcflags"
24666 fi
24667
24668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24669$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24670if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24671 $as_echo_n "(cached) " >&6
24672else
24673 ac_check_lib_save_LIBS=$LIBS
24674LIBS="-lcyassl $LIBS"
24675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24676/* end confdefs.h. */
24677
24678
24679#ifdef __cplusplus
24680extern "C"
24681#endif
24682char CyaSSL_Init ();
24683int main (void)
24684{
24685return CyaSSL_Init ();
24686 ;
24687 return 0;
24688}
24689_ACEOF
24690if ac_fn_c_try_link "$LINENO"; then :
24691 ac_cv_lib_cyassl_CyaSSL_Init=yes
24692else
24693 ac_cv_lib_cyassl_CyaSSL_Init=no
24694fi
24695rm -f core conftest.err conftest.$ac_objext \
24696 conftest$ac_exeext conftest.$ac_ext
24697LIBS=$ac_check_lib_save_LIBS
24698fi
24699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24700$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24701if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24702
24703
24704$as_echo "#define USE_CYASSL 1" >>confdefs.h
24705
24706 USE_CYASSL=1
24707
24708 CYASSL_ENABLED=1
24709 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024710 ssl_msg="CyaSSL"
24711 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024712
24713else
24714
24715 CPPFLAGS=$_cppflags
24716 LDFLAGS=$_ldflags
24717 cyassllib=""
24718
24719fi
24720
24721 fi
24722
24723 addld=""
24724 addlib=""
24725 addcflags=""
24726
24727 if test "x$USE_CYASSL" != "xyes"; then
24728 addld=-L$OPT_CYASSL/lib$libsuff
24729 addcflags=-I$OPT_CYASSL/include
24730 cyassllib=$OPT_CYASSL/lib$libsuff
24731
24732 LDFLAGS="$LDFLAGS $addld"
24733 if test "$addcflags" != "-I/usr/include"; then
24734 CPPFLAGS="$CPPFLAGS $addcflags"
24735 fi
24736
24737 cyassllibname=wolfssl
24738 my_ac_save_LIBS="$LIBS"
24739 LIBS="-l$cyassllibname -lm $LIBS"
24740
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24742$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24744/* end confdefs.h. */
24745
24746
24747/* These aren't needed for detection and confuse WolfSSL.
24748 They are set up properly later if it is detected. */
24749#undef SIZEOF_LONG
24750#undef SIZEOF_LONG_LONG
24751#include <cyassl/ssl.h>
24752
24753int main (void)
24754{
24755
24756 return CyaSSL_Init();
24757
24758 ;
24759 return 0;
24760}
24761
24762_ACEOF
24763if ac_fn_c_try_link "$LINENO"; then :
24764
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24766$as_echo "yes" >&6; }
24767
24768$as_echo "#define USE_CYASSL 1" >>confdefs.h
24769
24770 USE_CYASSL=1
24771
24772 CYASSL_ENABLED=1
24773 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024774 ssl_msg="WolfSSL"
24775 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024776
24777else
24778
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24780$as_echo "no" >&6; }
24781 CPPFLAGS=$_cppflags
24782 LDFLAGS=$_ldflags
24783 cyassllib=""
24784
24785fi
24786rm -f core conftest.err conftest.$ac_objext \
24787 conftest$ac_exeext conftest.$ac_ext
24788 LIBS="$my_ac_save_LIBS"
24789 fi
24790
24791 if test "x$USE_CYASSL" = "xyes"; then
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24793$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024794 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024795
Elliott Hughes72d948d2018-08-03 14:37:21 -070024796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024797$as_echo_n "checking size of long long... " >&6; }
24798if ${ac_cv_sizeof_long_long+:} false; then :
24799 $as_echo_n "(cached) " >&6
24800else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024801 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24803/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024804
Elliott Hughes72d948d2018-08-03 14:37:21 -070024805#include <sys/types.h>
24806
24807
24808int main (void)
24809{
24810switch (0) case 0: case (sizeof (long long) == $ac_size):;
24811 ;
24812 return 0;
24813}
24814_ACEOF
24815if ac_fn_c_try_compile "$LINENO"; then :
24816 ac_cv_sizeof_long_long=$ac_size
24817fi
24818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24819 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24820done
24821
Elliott Hughes82be86d2017-09-20 17:00:17 -070024822fi
24823
Elliott Hughes72d948d2018-08-03 14:37:21 -070024824if test x$ac_cv_sizeof_long_long = x ; then
24825 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024826fi
24827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24828$as_echo "$ac_cv_sizeof_long_long" >&6; }
24829
Elliott Hughes82be86d2017-09-20 17:00:17 -070024830cat >>confdefs.h <<_ACEOF
24831#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24832_ACEOF
24833
24834
24835
24836 for ac_header in cyassl/options.h
24837do :
24838 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24839if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24840 cat >>confdefs.h <<_ACEOF
24841#define HAVE_CYASSL_OPTIONS_H 1
24842_ACEOF
24843
24844fi
24845
24846done
24847
24848
24849 for ac_header in cyassl/error-ssl.h
24850do :
24851 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24852if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24853 cat >>confdefs.h <<_ACEOF
24854#define HAVE_CYASSL_ERROR_SSL_H 1
24855_ACEOF
24856
24857fi
24858
24859done
24860
24861
24862 LIBS="-l$cyassllibname -lm $LIBS"
24863
24864 if test "x$cyassllibname" = "xwolfssl"; then
24865 for ac_func in wolfSSLv3_client_method \
Elliott Hughes82be86d2017-09-20 17:00:17 -070024866 wolfSSL_get_peer_certificate \
24867 wolfSSL_UseALPN
24868do :
24869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24870ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24871if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24872 cat >>confdefs.h <<_ACEOF
24873#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24874_ACEOF
24875
24876fi
24877done
24878
24879 else
24880 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24881 CyaSSL_get_peer_certificate
24882do :
24883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24884ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24885if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24886 cat >>confdefs.h <<_ACEOF
24887#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24888_ACEOF
24889
24890fi
24891done
24892
24893 fi
24894
24895 if test -n "$cyassllib"; then
24896 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024897 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24898 export CURL_LIBRARY_PATH
24899 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24900$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024901 fi
24902 fi
24903
24904 fi
24905
24906 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024907 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024908fi
24909
24910
Elliott Hughesa93fb052018-12-12 14:22:48 -080024911OPT_MESALINK=no
24912
24913_cppflags=$CPPFLAGS
24914_ldflags=$LDFLAGS
24915
24916# Check whether --with-mesalink was given.
24917if test "${with_mesalink+set}" = set; then :
24918 withval=$with_mesalink; OPT_MESALINK=$withval
24919fi
24920
24921
24922if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24923 ssl_msg=
24924
24925 if test X"$OPT_MESALINK" != Xno; then
24926
24927 if test "$OPT_MESALINK" = "yes"; then
24928 OPT_MESALINK=""
24929 fi
24930
24931 if test -z "$OPT_MESALINK" ; then
24932
24933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24934$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24935if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24936 $as_echo_n "(cached) " >&6
24937else
24938 ac_check_lib_save_LIBS=$LIBS
24939LIBS="-lmesalink $LIBS"
24940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24941/* end confdefs.h. */
24942
24943
24944#ifdef __cplusplus
24945extern "C"
24946#endif
24947char mesalink_library_init ();
24948int main (void)
24949{
24950return mesalink_library_init ();
24951 ;
24952 return 0;
24953}
24954_ACEOF
24955if ac_fn_c_try_link "$LINENO"; then :
24956 ac_cv_lib_mesalink_mesalink_library_init=yes
24957else
24958 ac_cv_lib_mesalink_mesalink_library_init=no
24959fi
24960rm -f core conftest.err conftest.$ac_objext \
24961 conftest$ac_exeext conftest.$ac_ext
24962LIBS=$ac_check_lib_save_LIBS
24963fi
24964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24965$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24966if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24967
24968
24969$as_echo "#define USE_MESALINK 1" >>confdefs.h
24970
24971 USE_MESALINK=1
24972
24973 MESALINK_ENABLED=1
24974 USE_MESALINK="yes"
24975 ssl_msg="MesaLink"
24976 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24977
24978fi
24979
24980 fi
24981
24982 addld=""
24983 addlib=""
24984 addcflags=""
24985 mesalinklib=""
24986
24987 if test "x$USE_MESALINK" != "xyes"; then
24988 addld=-L$OPT_MESALINK/lib$libsuff
24989 addcflags=-I$OPT_MESALINK/include
24990 mesalinklib=$OPT_MESALINK/lib$libsuff
24991
24992 LDFLAGS="$LDFLAGS $addld"
24993 if test "$addcflags" != "-I/usr/include"; then
24994 CPPFLAGS="$CPPFLAGS $addcflags"
24995 fi
24996
24997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24998$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24999if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
25000 $as_echo_n "(cached) " >&6
25001else
25002 ac_check_lib_save_LIBS=$LIBS
25003LIBS="-lmesalink $LIBS"
25004cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25005/* end confdefs.h. */
25006
25007
25008#ifdef __cplusplus
25009extern "C"
25010#endif
25011char mesalink_library_init ();
25012int main (void)
25013{
25014return mesalink_library_init ();
25015 ;
25016 return 0;
25017}
25018_ACEOF
25019if ac_fn_c_try_link "$LINENO"; then :
25020 ac_cv_lib_mesalink_mesalink_library_init=yes
25021else
25022 ac_cv_lib_mesalink_mesalink_library_init=no
25023fi
25024rm -f core conftest.err conftest.$ac_objext \
25025 conftest$ac_exeext conftest.$ac_ext
25026LIBS=$ac_check_lib_save_LIBS
25027fi
25028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
25029$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
25030if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
25031
25032
25033$as_echo "#define USE_MESALINK 1" >>confdefs.h
25034
25035 USE_MESALINK=1
25036
25037 MESALINK_ENABLED=1
25038 USE_MESALINK="yes"
25039 ssl_msg="MesaLink"
25040 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25041
25042else
25043
25044 CPPFLAGS=$_cppflags
25045 LDFLAGS=$_ldflags
25046
25047fi
25048
25049 fi
25050
25051 if test "x$USE_MESALINK" = "xyes"; then
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
25053$as_echo "$as_me: detected MesaLink" >&6;}
25054
25055 LIBS="-lmesalink $LIBS"
25056
25057 if test -n "$mesalinklib"; then
25058 if test "x$cross_compiling" != "xyes"; then
25059 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
25060 export LD_LIBRARY_PATH
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
25062$as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
25063 fi
25064 fi
25065 fi
25066
25067 fi
25068 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25069fi
25070
25071
Elliott Hughes82be86d2017-09-20 17:00:17 -070025072OPT_NSS=no
25073
25074
25075# Check whether --with-nss was given.
25076if test "${with_nss+set}" = set; then :
25077 withval=$with_nss; OPT_NSS=$withval
25078fi
25079
25080
Alex Deymo486467e2017-12-19 19:04:07 +010025081if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25082 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025083
25084 if test X"$OPT_NSS" != Xno; then
25085
25086 addld=""
25087 addlib=""
25088 addcflags=""
25089 nssprefix=""
25090 version=""
25091
25092 if test "x$OPT_NSS" = "xyes"; then
25093
25094
25095 if test -n "$PKG_CONFIG"; then
25096 PKGCONFIG="$PKG_CONFIG"
25097 else
25098 if test -n "$ac_tool_prefix"; then
25099 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25100set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25102$as_echo_n "checking for $ac_word... " >&6; }
25103if ${ac_cv_path_PKGCONFIG+:} false; then :
25104 $as_echo_n "(cached) " >&6
25105else
25106 case $PKGCONFIG in
25107 [\\/]* | ?:[\\/]*)
25108 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25109 ;;
25110 *)
25111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25112as_dummy="$PATH:/usr/bin:/usr/local/bin"
25113for as_dir in $as_dummy
25114do
25115 IFS=$as_save_IFS
25116 test -z "$as_dir" && as_dir=.
25117 for ac_exec_ext in '' $ac_executable_extensions; do
25118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25119 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25121 break 2
25122 fi
25123done
25124 done
25125IFS=$as_save_IFS
25126
25127 ;;
25128esac
25129fi
25130PKGCONFIG=$ac_cv_path_PKGCONFIG
25131if test -n "$PKGCONFIG"; then
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25133$as_echo "$PKGCONFIG" >&6; }
25134else
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25136$as_echo "no" >&6; }
25137fi
25138
25139
25140fi
25141if test -z "$ac_cv_path_PKGCONFIG"; then
25142 ac_pt_PKGCONFIG=$PKGCONFIG
25143 # Extract the first word of "pkg-config", so it can be a program name with args.
25144set dummy pkg-config; ac_word=$2
25145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25146$as_echo_n "checking for $ac_word... " >&6; }
25147if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25148 $as_echo_n "(cached) " >&6
25149else
25150 case $ac_pt_PKGCONFIG in
25151 [\\/]* | ?:[\\/]*)
25152 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25153 ;;
25154 *)
25155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25156as_dummy="$PATH:/usr/bin:/usr/local/bin"
25157for as_dir in $as_dummy
25158do
25159 IFS=$as_save_IFS
25160 test -z "$as_dir" && as_dir=.
25161 for ac_exec_ext in '' $ac_executable_extensions; do
25162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25163 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25165 break 2
25166 fi
25167done
25168 done
25169IFS=$as_save_IFS
25170
25171 ;;
25172esac
25173fi
25174ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25175if test -n "$ac_pt_PKGCONFIG"; then
25176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25177$as_echo "$ac_pt_PKGCONFIG" >&6; }
25178else
25179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25180$as_echo "no" >&6; }
25181fi
25182
25183 if test "x$ac_pt_PKGCONFIG" = x; then
25184 PKGCONFIG="no"
25185 else
25186 case $cross_compiling:$ac_tool_warned in
25187yes:)
25188{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25189$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25190ac_tool_warned=yes ;;
25191esac
25192 PKGCONFIG=$ac_pt_PKGCONFIG
25193 fi
25194else
25195 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25196fi
25197
25198 fi
25199
25200 if test "x$PKGCONFIG" != "xno"; then
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25202$as_echo_n "checking for nss options with pkg-config... " >&6; }
25203 itexists=`
25204 if test -n ""; then
25205 PKG_CONFIG_LIBDIR=""
25206 export PKG_CONFIG_LIBDIR
25207 fi
25208 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25209
25210 if test -z "$itexists"; then
25211 PKGCONFIG="no"
25212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25213$as_echo "no" >&6; }
25214 else
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25216$as_echo "found" >&6; }
25217 fi
25218 fi
25219
25220
25221 if test "$PKGCONFIG" != "no" ; then
25222 addlib=`$PKGCONFIG --libs nss`
25223 addcflags=`$PKGCONFIG --cflags nss`
25224 version=`$PKGCONFIG --modversion nss`
25225 nssprefix=`$PKGCONFIG --variable=prefix nss`
25226 else
25227
25228 check=`nss-config --version 2>/dev/null`
25229 if test -n "$check"; then
25230 addlib=`nss-config --libs`
25231 addcflags=`nss-config --cflags`
25232 version=`nss-config --version`
25233 nssprefix=`nss-config --prefix`
25234 else
25235 addlib="-lnss3"
25236 addcflags=""
25237 version="unknown"
25238 fi
25239 fi
25240 else
25241 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25242 if test -f "$NSS_PCDIR/nss.pc"; then
25243
25244 if test -n "$PKG_CONFIG"; then
25245 PKGCONFIG="$PKG_CONFIG"
25246 else
25247 if test -n "$ac_tool_prefix"; then
25248 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25249set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25251$as_echo_n "checking for $ac_word... " >&6; }
25252if ${ac_cv_path_PKGCONFIG+:} false; then :
25253 $as_echo_n "(cached) " >&6
25254else
25255 case $PKGCONFIG in
25256 [\\/]* | ?:[\\/]*)
25257 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25258 ;;
25259 *)
25260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25261as_dummy="$PATH:/usr/bin:/usr/local/bin"
25262for as_dir in $as_dummy
25263do
25264 IFS=$as_save_IFS
25265 test -z "$as_dir" && as_dir=.
25266 for ac_exec_ext in '' $ac_executable_extensions; do
25267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25268 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25270 break 2
25271 fi
25272done
25273 done
25274IFS=$as_save_IFS
25275
25276 ;;
25277esac
25278fi
25279PKGCONFIG=$ac_cv_path_PKGCONFIG
25280if test -n "$PKGCONFIG"; then
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25282$as_echo "$PKGCONFIG" >&6; }
25283else
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25285$as_echo "no" >&6; }
25286fi
25287
25288
25289fi
25290if test -z "$ac_cv_path_PKGCONFIG"; then
25291 ac_pt_PKGCONFIG=$PKGCONFIG
25292 # Extract the first word of "pkg-config", so it can be a program name with args.
25293set dummy pkg-config; ac_word=$2
25294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25295$as_echo_n "checking for $ac_word... " >&6; }
25296if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25297 $as_echo_n "(cached) " >&6
25298else
25299 case $ac_pt_PKGCONFIG in
25300 [\\/]* | ?:[\\/]*)
25301 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25302 ;;
25303 *)
25304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25305as_dummy="$PATH:/usr/bin:/usr/local/bin"
25306for as_dir in $as_dummy
25307do
25308 IFS=$as_save_IFS
25309 test -z "$as_dir" && as_dir=.
25310 for ac_exec_ext in '' $ac_executable_extensions; do
25311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25312 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25314 break 2
25315 fi
25316done
25317 done
25318IFS=$as_save_IFS
25319
25320 ;;
25321esac
25322fi
25323ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25324if test -n "$ac_pt_PKGCONFIG"; then
25325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25326$as_echo "$ac_pt_PKGCONFIG" >&6; }
25327else
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25329$as_echo "no" >&6; }
25330fi
25331
25332 if test "x$ac_pt_PKGCONFIG" = x; then
25333 PKGCONFIG="no"
25334 else
25335 case $cross_compiling:$ac_tool_warned in
25336yes:)
25337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25339ac_tool_warned=yes ;;
25340esac
25341 PKGCONFIG=$ac_pt_PKGCONFIG
25342 fi
25343else
25344 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25345fi
25346
25347 fi
25348
25349 if test "x$PKGCONFIG" != "xno"; then
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25351$as_echo_n "checking for nss options with pkg-config... " >&6; }
25352 itexists=`
25353 if test -n "$NSS_PCDIR"; then
25354 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25355 export PKG_CONFIG_LIBDIR
25356 fi
25357 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25358
25359 if test -z "$itexists"; then
25360 PKGCONFIG="no"
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25362$as_echo "no" >&6; }
25363 else
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25365$as_echo "found" >&6; }
25366 fi
25367 fi
25368
25369 if test "$PKGCONFIG" != "no" ; then
25370 addld=`
25371 if test -n "$NSS_PCDIR"; then
25372 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25373 export PKG_CONFIG_LIBDIR
25374 fi
25375 $PKGCONFIG --libs-only-L nss`
25376 addlib=`
25377 if test -n "$NSS_PCDIR"; then
25378 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25379 export PKG_CONFIG_LIBDIR
25380 fi
25381 $PKGCONFIG --libs-only-l nss`
25382 addcflags=`
25383 if test -n "$NSS_PCDIR"; then
25384 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25385 export PKG_CONFIG_LIBDIR
25386 fi
25387 $PKGCONFIG --cflags nss`
25388 version=`
25389 if test -n "$NSS_PCDIR"; then
25390 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25391 export PKG_CONFIG_LIBDIR
25392 fi
25393 $PKGCONFIG --modversion nss`
25394 nssprefix=`
25395 if test -n "$NSS_PCDIR"; then
25396 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25397 export PKG_CONFIG_LIBDIR
25398 fi
25399 $PKGCONFIG --variable=prefix nss`
25400 fi
25401 fi
25402 fi
25403
25404 if test -z "$addlib"; then
25405 # Without pkg-config, we'll kludge in some defaults
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25407$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25408 addld="-L$OPT_NSS/lib"
25409 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25410 addcflags="-I$OPT_NSS/include"
25411 version="unknown"
25412 nssprefix=$OPT_NSS
25413 fi
25414
25415 CLEANLDFLAGS="$LDFLAGS"
25416 CLEANLIBS="$LIBS"
25417 CLEANCPPFLAGS="$CPPFLAGS"
25418
25419 LDFLAGS="$addld $LDFLAGS"
25420 LIBS="$addlib $LIBS"
25421 if test "$addcflags" != "-I/usr/include"; then
25422 CPPFLAGS="$CPPFLAGS $addcflags"
25423 fi
25424
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25426$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25427if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25428 $as_echo_n "(cached) " >&6
25429else
25430 ac_check_lib_save_LIBS=$LIBS
25431LIBS="-lnss3 $LIBS"
25432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433/* end confdefs.h. */
25434
25435
25436#ifdef __cplusplus
25437extern "C"
25438#endif
25439char SSL_VersionRangeSet ();
25440int main (void)
25441{
25442return SSL_VersionRangeSet ();
25443 ;
25444 return 0;
25445}
25446_ACEOF
25447if ac_fn_c_try_link "$LINENO"; then :
25448 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25449else
25450 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25451fi
25452rm -f core conftest.err conftest.$ac_objext \
25453 conftest$ac_exeext conftest.$ac_ext
25454LIBS=$ac_check_lib_save_LIBS
25455fi
25456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25457$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25458if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25459
25460
25461$as_echo "#define USE_NSS 1" >>confdefs.h
25462
25463 USE_NSS=1
25464
25465 USE_NSS="yes"
25466 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025467 ssl_msg="NSS"
25468 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025469
25470else
25471
25472 LDFLAGS="$CLEANLDFLAGS"
25473 LIBS="$CLEANLIBS"
25474 CPPFLAGS="$CLEANCPPFLAGS"
25475
25476fi
25477
25478
25479 if test "x$USE_NSS" = "xyes"; then
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25481$as_echo "$as_me: detected NSS version $version" >&6;}
25482
Elliott Hughescac39802018-04-27 16:19:43 -070025483 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25484if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25485
25486
25487$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25488
25489
25490fi
25491
25492
Elliott Hughes82be86d2017-09-20 17:00:17 -070025493 NSS_LIBS=$addlib
25494
25495
25496 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025497 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25498 export CURL_LIBRARY_PATH
25499 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25500$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025501 fi
25502
25503 fi
25504 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025505 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025506fi
Alex Deymo486467e2017-12-19 19:04:07 +010025507
Haibo Huang65021c72019-03-27 15:37:23 -070025508case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$AMISSL_ENABLED" in
Alex Deymo486467e2017-12-19 19:04:07 +010025509x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25511$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
Haibo Huang65021c72019-03-27 15:37:23 -070025512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink or --with-amissl to address this." >&5
25513$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --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 +010025514 ;;
25515x1)
25516 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025517
25518 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025519 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25520$as_echo "$as_me: built with one SSL backend" >&6;}
25521 ;;
25522*)
25523 # more than one SSL backend is enabled
25524
25525 SSL_ENABLED="1"
25526
25527 CURL_WITH_MULTI_SSL="1"
25528
25529$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25530
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25532$as_echo "$as_me: built with multiple SSL backends" >&6;}
25533 ;;
25534esac
25535
25536if test -n "$ssl_backends"; then
25537 curl_ssl_msg="enabled ($ssl_backends)"
25538fi
25539
25540if test no = "$VALID_DEFAULT_SSL_BACKEND"
25541then
25542 if test -n "$SSL_ENABLED"
25543 then
25544 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25545 else
25546 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25547 fi
25548elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25549then
25550
25551cat >>confdefs.h <<_ACEOF
25552#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25553_ACEOF
25554
Elliott Hughes82be86d2017-09-20 17:00:17 -070025555fi
25556
25557
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025558if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025559
25560
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25562$as_echo_n "checking default CA cert bundle/path... " >&6; }
25563
25564
25565# Check whether --with-ca-bundle was given.
25566if test "${with_ca_bundle+set}" = set; then :
25567 withval=$with_ca_bundle;
25568 want_ca="$withval"
25569 if test "x$want_ca" = "xyes"; then
25570 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25571 fi
25572
25573else
25574 want_ca="unset"
25575fi
25576
25577
25578# Check whether --with-ca-path was given.
25579if test "${with_ca_path+set}" = set; then :
25580 withval=$with_ca_path;
25581 want_capath="$withval"
25582 if test "x$want_capath" = "xyes"; then
25583 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25584 fi
25585
25586else
25587 want_capath="unset"
25588fi
25589
25590
25591 ca_warning=" (warning: certs not found)"
25592 capath_warning=" (warning: certs not found)"
25593 check_capath=""
25594
25595 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25596 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25597 ca="$want_ca"
25598 capath="$want_capath"
25599 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25600 ca="$want_ca"
25601 capath="no"
25602 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25603 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25604 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25605 fi
25606 capath="$want_capath"
25607 ca="no"
25608 else
25609 ca="no"
25610 capath="no"
25611 if test "x$cross_compiling" != "xyes"; then
25612 if test "x$want_ca" = "xunset"; then
25613 if test "x$prefix" != xNONE; then
25614 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25615 else
25616 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25617 fi
25618
25619 for a in /etc/ssl/certs/ca-certificates.crt \
25620 /etc/pki/tls/certs/ca-bundle.crt \
25621 /usr/share/ssl/certs/ca-bundle.crt \
25622 /usr/local/share/certs/ca-root-nss.crt \
25623 /etc/ssl/cert.pem \
25624 "$cac"; do
25625 if test -f "$a"; then
25626 ca="$a"
25627 break
25628 fi
25629 done
25630 fi
25631 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25632 "x$OPENSSL_ENABLED" = "x1"; then
25633 check_capath="/etc/ssl/certs/"
25634 fi
25635 else
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25637$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25638 fi
25639 fi
25640
25641 if test "x$ca" = "xno" || test -f "$ca"; then
25642 ca_warning=""
25643 fi
25644
25645 if test "x$capath" != "xno"; then
25646 check_capath="$capath"
25647 fi
25648
25649 if test ! -z "$check_capath"; then
25650 for a in "$check_capath"; do
25651 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
25652 if test "x$capath" = "xno"; then
25653 capath="$a"
25654 fi
25655 capath_warning=""
25656 break
25657 fi
25658 done
25659 fi
25660
25661 if test "x$capath" = "xno"; then
25662 capath_warning=""
25663 fi
25664
25665 if test "x$ca" != "xno"; then
25666 CURL_CA_BUNDLE='"'$ca'"'
25667
25668cat >>confdefs.h <<_ACEOF
25669#define CURL_CA_BUNDLE "$ca"
25670_ACEOF
25671
25672
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25674$as_echo "$ca" >&6; }
25675 fi
25676 if test "x$capath" != "xno"; then
25677 CURL_CA_PATH="\"$capath\""
25678
25679cat >>confdefs.h <<_ACEOF
25680#define CURL_CA_PATH "$capath"
25681_ACEOF
25682
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25684$as_echo "$capath (capath)" >&6; }
25685 fi
25686 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25688$as_echo "no" >&6; }
25689 fi
25690
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25692$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25693
25694# Check whether --with-ca-fallback was given.
25695if test "${with_ca_fallback+set}" = set; then :
25696 withval=$with_ca_fallback;
25697 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25698 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25699 fi
25700
25701else
25702 with_ca_fallback="no"
25703fi
25704
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25706$as_echo "$with_ca_fallback" >&6; }
25707 if test "x$with_ca_fallback" = "xyes"; then
25708 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25709 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25710 fi
25711
25712cat >>confdefs.h <<_ACEOF
25713#define CURL_CA_FALLBACK 1
25714_ACEOF
25715
25716 fi
25717
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025718fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025719
25720
25721
25722# Check whether --with-libpsl was given.
25723if test "${with_libpsl+set}" = set; then :
25724 withval=$with_libpsl; with_libpsl=$withval
25725else
25726 with_libpsl=yes
25727fi
25728
25729if test $with_libpsl != "no"; then
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25731$as_echo_n "checking for library containing psl_builtin... " >&6; }
25732if ${ac_cv_search_psl_builtin+:} false; then :
25733 $as_echo_n "(cached) " >&6
25734else
25735 ac_func_search_save_LIBS=$LIBS
25736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25737/* end confdefs.h. */
25738
25739
25740#ifdef __cplusplus
25741extern "C"
25742#endif
25743char psl_builtin ();
25744int main (void)
25745{
25746return psl_builtin ();
25747 ;
25748 return 0;
25749}
25750_ACEOF
25751for ac_lib in '' psl; do
25752 if test -z "$ac_lib"; then
25753 ac_res="none required"
25754 else
25755 ac_res=-l$ac_lib
25756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25757 fi
25758 if ac_fn_c_try_link "$LINENO"; then :
25759 ac_cv_search_psl_builtin=$ac_res
25760fi
25761rm -f core conftest.err conftest.$ac_objext \
25762 conftest$ac_exeext
25763 if ${ac_cv_search_psl_builtin+:} false; then :
25764 break
25765fi
25766done
25767if ${ac_cv_search_psl_builtin+:} false; then :
25768
25769else
25770 ac_cv_search_psl_builtin=no
25771fi
25772rm conftest.$ac_ext
25773LIBS=$ac_func_search_save_LIBS
25774fi
25775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25776$as_echo "$ac_cv_search_psl_builtin" >&6; }
25777ac_res=$ac_cv_search_psl_builtin
25778if test "$ac_res" != no; then :
25779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Haibo Huang65021c72019-03-27 15:37:23 -070025780 curl_psl_msg="enabled";
Elliott Hughes82be86d2017-09-20 17:00:17 -070025781
25782$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25783
25784
25785else
25786 curl_psl_msg="no (libpsl not found)";
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25788$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25789
25790
25791fi
25792
25793fi
Haibo Huang65021c72019-03-27 15:37:23 -070025794 if test "$curl_psl_msg" = "enabled"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025795 USE_LIBPSL_TRUE=
25796 USE_LIBPSL_FALSE='#'
25797else
25798 USE_LIBPSL_TRUE='#'
25799 USE_LIBPSL_FALSE=
25800fi
25801
25802
25803
25804OPT_LIBMETALINK=no
25805
25806
25807# Check whether --with-libmetalink was given.
25808if test "${with_libmetalink+set}" = set; then :
25809 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25810fi
25811
25812
25813if test X"$OPT_LIBMETALINK" != Xno; then
25814
25815 addld=""
25816 addlib=""
25817 addcflags=""
25818 version=""
25819 libmetalinklib=""
25820
25821 PKGTEST="no"
25822 if test "x$OPT_LIBMETALINK" = "xyes"; then
25823 PKGTEST="yes"
25824
25825 if test -n "$PKG_CONFIG"; then
25826 PKGCONFIG="$PKG_CONFIG"
25827 else
25828 if test -n "$ac_tool_prefix"; then
25829 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25830set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25832$as_echo_n "checking for $ac_word... " >&6; }
25833if ${ac_cv_path_PKGCONFIG+:} false; then :
25834 $as_echo_n "(cached) " >&6
25835else
25836 case $PKGCONFIG in
25837 [\\/]* | ?:[\\/]*)
25838 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25839 ;;
25840 *)
25841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25842as_dummy="$PATH:/usr/bin:/usr/local/bin"
25843for as_dir in $as_dummy
25844do
25845 IFS=$as_save_IFS
25846 test -z "$as_dir" && as_dir=.
25847 for ac_exec_ext in '' $ac_executable_extensions; do
25848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25849 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25851 break 2
25852 fi
25853done
25854 done
25855IFS=$as_save_IFS
25856
25857 ;;
25858esac
25859fi
25860PKGCONFIG=$ac_cv_path_PKGCONFIG
25861if test -n "$PKGCONFIG"; then
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25863$as_echo "$PKGCONFIG" >&6; }
25864else
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25866$as_echo "no" >&6; }
25867fi
25868
25869
25870fi
25871if test -z "$ac_cv_path_PKGCONFIG"; then
25872 ac_pt_PKGCONFIG=$PKGCONFIG
25873 # Extract the first word of "pkg-config", so it can be a program name with args.
25874set dummy pkg-config; ac_word=$2
25875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25876$as_echo_n "checking for $ac_word... " >&6; }
25877if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25878 $as_echo_n "(cached) " >&6
25879else
25880 case $ac_pt_PKGCONFIG in
25881 [\\/]* | ?:[\\/]*)
25882 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25883 ;;
25884 *)
25885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25886as_dummy="$PATH:/usr/bin:/usr/local/bin"
25887for as_dir in $as_dummy
25888do
25889 IFS=$as_save_IFS
25890 test -z "$as_dir" && as_dir=.
25891 for ac_exec_ext in '' $ac_executable_extensions; do
25892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25893 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25895 break 2
25896 fi
25897done
25898 done
25899IFS=$as_save_IFS
25900
25901 ;;
25902esac
25903fi
25904ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25905if test -n "$ac_pt_PKGCONFIG"; then
25906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25907$as_echo "$ac_pt_PKGCONFIG" >&6; }
25908else
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25910$as_echo "no" >&6; }
25911fi
25912
25913 if test "x$ac_pt_PKGCONFIG" = x; then
25914 PKGCONFIG="no"
25915 else
25916 case $cross_compiling:$ac_tool_warned in
25917yes:)
25918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25920ac_tool_warned=yes ;;
25921esac
25922 PKGCONFIG=$ac_pt_PKGCONFIG
25923 fi
25924else
25925 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25926fi
25927
25928 fi
25929
25930 if test "x$PKGCONFIG" != "xno"; then
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25932$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25933 itexists=`
25934 if test -n ""; then
25935 PKG_CONFIG_LIBDIR=""
25936 export PKG_CONFIG_LIBDIR
25937 fi
25938 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25939
25940 if test -z "$itexists"; then
25941 PKGCONFIG="no"
25942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25943$as_echo "no" >&6; }
25944 else
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25946$as_echo "found" >&6; }
25947 fi
25948 fi
25949
25950 else
25951 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25953$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25954 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25955 PKGTEST="yes"
25956 fi
25957 if test "$PKGTEST" = "yes"; then
25958
25959 if test -n "$PKG_CONFIG"; then
25960 PKGCONFIG="$PKG_CONFIG"
25961 else
25962 if test -n "$ac_tool_prefix"; then
25963 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25964set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25966$as_echo_n "checking for $ac_word... " >&6; }
25967if ${ac_cv_path_PKGCONFIG+:} false; then :
25968 $as_echo_n "(cached) " >&6
25969else
25970 case $PKGCONFIG in
25971 [\\/]* | ?:[\\/]*)
25972 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25973 ;;
25974 *)
25975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25976as_dummy="$PATH:/usr/bin:/usr/local/bin"
25977for as_dir in $as_dummy
25978do
25979 IFS=$as_save_IFS
25980 test -z "$as_dir" && as_dir=.
25981 for ac_exec_ext in '' $ac_executable_extensions; do
25982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25983 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25985 break 2
25986 fi
25987done
25988 done
25989IFS=$as_save_IFS
25990
25991 ;;
25992esac
25993fi
25994PKGCONFIG=$ac_cv_path_PKGCONFIG
25995if test -n "$PKGCONFIG"; then
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25997$as_echo "$PKGCONFIG" >&6; }
25998else
25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26000$as_echo "no" >&6; }
26001fi
26002
26003
26004fi
26005if test -z "$ac_cv_path_PKGCONFIG"; then
26006 ac_pt_PKGCONFIG=$PKGCONFIG
26007 # Extract the first word of "pkg-config", so it can be a program name with args.
26008set dummy pkg-config; ac_word=$2
26009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26010$as_echo_n "checking for $ac_word... " >&6; }
26011if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26012 $as_echo_n "(cached) " >&6
26013else
26014 case $ac_pt_PKGCONFIG in
26015 [\\/]* | ?:[\\/]*)
26016 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26017 ;;
26018 *)
26019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26020as_dummy="$PATH:/usr/bin:/usr/local/bin"
26021for as_dir in $as_dummy
26022do
26023 IFS=$as_save_IFS
26024 test -z "$as_dir" && as_dir=.
26025 for ac_exec_ext in '' $ac_executable_extensions; do
26026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26027 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26029 break 2
26030 fi
26031done
26032 done
26033IFS=$as_save_IFS
26034
26035 ;;
26036esac
26037fi
26038ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26039if test -n "$ac_pt_PKGCONFIG"; then
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26041$as_echo "$ac_pt_PKGCONFIG" >&6; }
26042else
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26044$as_echo "no" >&6; }
26045fi
26046
26047 if test "x$ac_pt_PKGCONFIG" = x; then
26048 PKGCONFIG="no"
26049 else
26050 case $cross_compiling:$ac_tool_warned in
26051yes:)
26052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26054ac_tool_warned=yes ;;
26055esac
26056 PKGCONFIG=$ac_pt_PKGCONFIG
26057 fi
26058else
26059 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26060fi
26061
26062 fi
26063
26064 if test "x$PKGCONFIG" != "xno"; then
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26066$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26067 itexists=`
26068 if test -n "$LIBMETALINK_PCDIR"; then
26069 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26070 export PKG_CONFIG_LIBDIR
26071 fi
26072 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26073
26074 if test -z "$itexists"; then
26075 PKGCONFIG="no"
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26077$as_echo "no" >&6; }
26078 else
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26080$as_echo "found" >&6; }
26081 fi
26082 fi
26083
26084 fi
26085 fi
26086 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26087 addlib=`
26088 if test -n "$LIBMETALINK_PCDIR"; then
26089 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26090 export PKG_CONFIG_LIBDIR
26091 fi
26092 $PKGCONFIG --libs-only-l libmetalink`
26093 addld=`
26094 if test -n "$LIBMETALINK_PCDIR"; then
26095 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26096 export PKG_CONFIG_LIBDIR
26097 fi
26098 $PKGCONFIG --libs-only-L libmetalink`
26099 addcflags=`
26100 if test -n "$LIBMETALINK_PCDIR"; then
26101 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26102 export PKG_CONFIG_LIBDIR
26103 fi
26104 $PKGCONFIG --cflags-only-I libmetalink`
26105 version=`
26106 if test -n "$LIBMETALINK_PCDIR"; then
26107 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26108 export PKG_CONFIG_LIBDIR
26109 fi
26110 $PKGCONFIG --modversion libmetalink`
26111 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26112 fi
26113 if test -n "$addlib"; then
26114
26115 clean_CPPFLAGS="$CPPFLAGS"
26116 clean_LDFLAGS="$LDFLAGS"
26117 clean_LIBS="$LIBS"
26118 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26119 LDFLAGS="$clean_LDFLAGS $addld"
26120 LIBS="$addlib $clean_LIBS"
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26122$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124/* end confdefs.h. */
26125
26126
26127# include <metalink/metalink.h>
26128
26129int main (void)
26130{
26131
26132 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26133 return 1;
26134
26135 ;
26136 return 0;
26137}
26138
26139_ACEOF
26140if ac_fn_c_try_link "$LINENO"; then :
26141
26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26143$as_echo "yes ($version)" >&6; }
26144 want_metalink="yes"
26145
26146else
26147
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26149$as_echo "no ($version)" >&6; }
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26151$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26152 want_metalink="no"
26153
26154fi
26155rm -f core conftest.err conftest.$ac_objext \
26156 conftest$ac_exeext conftest.$ac_ext
26157 CPPFLAGS="$clean_CPPFLAGS"
26158 LDFLAGS="$clean_LDFLAGS"
26159 LIBS="$clean_LIBS"
26160 if test "$want_metalink" = "yes"; then
26161
26162$as_echo "#define USE_METALINK 1" >>confdefs.h
26163
26164 LIBMETALINK_LIBS=$addlib
26165 LIBMETALINK_LDFLAGS=$addld
26166 LIBMETALINK_CPPFLAGS=$addcflags
26167
26168
26169
26170 curl_mtlnk_msg="enabled"
26171 fi
26172
26173 fi
26174fi
26175
26176
26177OPT_LIBSSH2=off
26178
26179# Check whether --with-libssh2 was given.
26180if test "${with_libssh2+set}" = set; then :
26181 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026182else
26183 OPT_LIBSSH2=no
26184fi
26185
26186
26187
26188OPT_LIBSSH=off
26189
26190# Check whether --with-libssh was given.
26191if test "${with_libssh+set}" = set; then :
26192 withval=$with_libssh; OPT_LIBSSH=$withval
26193else
26194 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026195fi
26196
26197
26198if test X"$OPT_LIBSSH2" != Xno; then
26199 CLEANLDFLAGS="$LDFLAGS"
26200 CLEANCPPFLAGS="$CPPFLAGS"
26201 CLEANLIBS="$LIBS"
26202
26203 case "$OPT_LIBSSH2" in
26204 yes)
26205
26206 if test -n "$PKG_CONFIG"; then
26207 PKGCONFIG="$PKG_CONFIG"
26208 else
26209 if test -n "$ac_tool_prefix"; then
26210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26211set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26213$as_echo_n "checking for $ac_word... " >&6; }
26214if ${ac_cv_path_PKGCONFIG+:} false; then :
26215 $as_echo_n "(cached) " >&6
26216else
26217 case $PKGCONFIG in
26218 [\\/]* | ?:[\\/]*)
26219 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26220 ;;
26221 *)
26222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26223as_dummy="$PATH:/usr/bin:/usr/local/bin"
26224for as_dir in $as_dummy
26225do
26226 IFS=$as_save_IFS
26227 test -z "$as_dir" && as_dir=.
26228 for ac_exec_ext in '' $ac_executable_extensions; do
26229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26230 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26232 break 2
26233 fi
26234done
26235 done
26236IFS=$as_save_IFS
26237
26238 ;;
26239esac
26240fi
26241PKGCONFIG=$ac_cv_path_PKGCONFIG
26242if test -n "$PKGCONFIG"; then
26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26244$as_echo "$PKGCONFIG" >&6; }
26245else
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26247$as_echo "no" >&6; }
26248fi
26249
26250
26251fi
26252if test -z "$ac_cv_path_PKGCONFIG"; then
26253 ac_pt_PKGCONFIG=$PKGCONFIG
26254 # Extract the first word of "pkg-config", so it can be a program name with args.
26255set dummy pkg-config; ac_word=$2
26256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26257$as_echo_n "checking for $ac_word... " >&6; }
26258if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26259 $as_echo_n "(cached) " >&6
26260else
26261 case $ac_pt_PKGCONFIG in
26262 [\\/]* | ?:[\\/]*)
26263 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26264 ;;
26265 *)
26266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26267as_dummy="$PATH:/usr/bin:/usr/local/bin"
26268for as_dir in $as_dummy
26269do
26270 IFS=$as_save_IFS
26271 test -z "$as_dir" && as_dir=.
26272 for ac_exec_ext in '' $ac_executable_extensions; do
26273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26274 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26276 break 2
26277 fi
26278done
26279 done
26280IFS=$as_save_IFS
26281
26282 ;;
26283esac
26284fi
26285ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26286if test -n "$ac_pt_PKGCONFIG"; then
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26288$as_echo "$ac_pt_PKGCONFIG" >&6; }
26289else
26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26291$as_echo "no" >&6; }
26292fi
26293
26294 if test "x$ac_pt_PKGCONFIG" = x; then
26295 PKGCONFIG="no"
26296 else
26297 case $cross_compiling:$ac_tool_warned in
26298yes:)
26299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26301ac_tool_warned=yes ;;
26302esac
26303 PKGCONFIG=$ac_pt_PKGCONFIG
26304 fi
26305else
26306 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26307fi
26308
26309 fi
26310
26311 if test "x$PKGCONFIG" != "xno"; then
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26313$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26314 itexists=`
26315 if test -n ""; then
26316 PKG_CONFIG_LIBDIR=""
26317 export PKG_CONFIG_LIBDIR
26318 fi
26319 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26320
26321 if test -z "$itexists"; then
26322 PKGCONFIG="no"
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26324$as_echo "no" >&6; }
26325 else
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26327$as_echo "found" >&6; }
26328 fi
26329 fi
26330
26331
26332 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026333 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026334 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26335 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26336 version=`$PKGCONFIG --modversion libssh2`
26337 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26338 fi
26339
26340 ;;
26341 off)
26342 ;;
26343 *)
26344 PREFIX_SSH2=$OPT_LIBSSH2
26345 ;;
26346 esac
26347
26348 if test -n "$PREFIX_SSH2"; then
26349 LIB_SSH2="-lssh2"
26350 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26351 CPP_SSH2=-I${PREFIX_SSH2}/include
26352 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26353 fi
26354
26355 LDFLAGS="$LDFLAGS $LD_SSH2"
26356 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26357 LIBS="$LIB_SSH2 $LIBS"
26358
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26360$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26361if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26362 $as_echo_n "(cached) " >&6
26363else
26364 ac_check_lib_save_LIBS=$LIBS
26365LIBS="-lssh2 $LIBS"
26366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26367/* end confdefs.h. */
26368
26369
26370#ifdef __cplusplus
26371extern "C"
26372#endif
26373char libssh2_channel_open_ex ();
26374int main (void)
26375{
26376return libssh2_channel_open_ex ();
26377 ;
26378 return 0;
26379}
26380_ACEOF
26381if ac_fn_c_try_link "$LINENO"; then :
26382 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26383else
26384 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26385fi
26386rm -f core conftest.err conftest.$ac_objext \
26387 conftest$ac_exeext conftest.$ac_ext
26388LIBS=$ac_check_lib_save_LIBS
26389fi
26390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26391$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26392if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26393 cat >>confdefs.h <<_ACEOF
26394#define HAVE_LIBSSH2 1
26395_ACEOF
26396
26397 LIBS="-lssh2 $LIBS"
26398
26399fi
26400
26401
26402 for ac_header in libssh2.h
26403do :
26404 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26405if test "x$ac_cv_header_libssh2_h" = xyes; then :
26406 cat >>confdefs.h <<_ACEOF
26407#define HAVE_LIBSSH2_H 1
26408_ACEOF
26409 curl_ssh_msg="enabled (libSSH2)"
26410 LIBSSH2_ENABLED=1
26411
26412$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26413
26414 USE_LIBSSH2=1
26415
26416
26417fi
26418
26419done
26420
26421
26422 if test X"$OPT_LIBSSH2" != Xoff &&
26423 test "$LIBSSH2_ENABLED" != "1"; then
26424 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26425 fi
26426
26427 if test "$LIBSSH2_ENABLED" = "1"; then
26428 if test -n "$DIR_SSH2"; then
26429
26430 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026431 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26432 export CURL_LIBRARY_PATH
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26434$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026435 fi
26436 fi
26437 else
26438 LDFLAGS=$CLEANLDFLAGS
26439 CPPFLAGS=$CLEANCPPFLAGS
26440 LIBS=$CLEANLIBS
26441 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026442elif test X"$OPT_LIBSSH" != Xno; then
26443 CLEANLDFLAGS="$LDFLAGS"
26444 CLEANCPPFLAGS="$CPPFLAGS"
26445 CLEANLIBS="$LIBS"
26446
26447 case "$OPT_LIBSSH" in
26448 yes)
26449
26450 if test -n "$PKG_CONFIG"; then
26451 PKGCONFIG="$PKG_CONFIG"
26452 else
26453 if test -n "$ac_tool_prefix"; then
26454 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26455set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26457$as_echo_n "checking for $ac_word... " >&6; }
26458if ${ac_cv_path_PKGCONFIG+:} false; then :
26459 $as_echo_n "(cached) " >&6
26460else
26461 case $PKGCONFIG in
26462 [\\/]* | ?:[\\/]*)
26463 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26464 ;;
26465 *)
26466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26467as_dummy="$PATH:/usr/bin:/usr/local/bin"
26468for as_dir in $as_dummy
26469do
26470 IFS=$as_save_IFS
26471 test -z "$as_dir" && as_dir=.
26472 for ac_exec_ext in '' $ac_executable_extensions; do
26473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26474 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26476 break 2
26477 fi
26478done
26479 done
26480IFS=$as_save_IFS
26481
26482 ;;
26483esac
26484fi
26485PKGCONFIG=$ac_cv_path_PKGCONFIG
26486if test -n "$PKGCONFIG"; then
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26488$as_echo "$PKGCONFIG" >&6; }
26489else
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26491$as_echo "no" >&6; }
26492fi
26493
26494
26495fi
26496if test -z "$ac_cv_path_PKGCONFIG"; then
26497 ac_pt_PKGCONFIG=$PKGCONFIG
26498 # Extract the first word of "pkg-config", so it can be a program name with args.
26499set dummy pkg-config; ac_word=$2
26500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26501$as_echo_n "checking for $ac_word... " >&6; }
26502if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26503 $as_echo_n "(cached) " >&6
26504else
26505 case $ac_pt_PKGCONFIG in
26506 [\\/]* | ?:[\\/]*)
26507 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26508 ;;
26509 *)
26510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26511as_dummy="$PATH:/usr/bin:/usr/local/bin"
26512for as_dir in $as_dummy
26513do
26514 IFS=$as_save_IFS
26515 test -z "$as_dir" && as_dir=.
26516 for ac_exec_ext in '' $ac_executable_extensions; do
26517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26518 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26520 break 2
26521 fi
26522done
26523 done
26524IFS=$as_save_IFS
26525
26526 ;;
26527esac
26528fi
26529ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26530if test -n "$ac_pt_PKGCONFIG"; then
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26532$as_echo "$ac_pt_PKGCONFIG" >&6; }
26533else
26534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26535$as_echo "no" >&6; }
26536fi
26537
26538 if test "x$ac_pt_PKGCONFIG" = x; then
26539 PKGCONFIG="no"
26540 else
26541 case $cross_compiling:$ac_tool_warned in
26542yes:)
26543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26545ac_tool_warned=yes ;;
26546esac
26547 PKGCONFIG=$ac_pt_PKGCONFIG
26548 fi
26549else
26550 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26551fi
26552
26553 fi
26554
26555 if test "x$PKGCONFIG" != "xno"; then
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26557$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26558 itexists=`
26559 if test -n ""; then
26560 PKG_CONFIG_LIBDIR=""
26561 export PKG_CONFIG_LIBDIR
26562 fi
26563 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26564
26565 if test -z "$itexists"; then
26566 PKGCONFIG="no"
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26568$as_echo "no" >&6; }
26569 else
26570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26571$as_echo "found" >&6; }
26572 fi
26573 fi
26574
26575
26576 if test "$PKGCONFIG" != "no" ; then
26577 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26578 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26579 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26580 version=`$PKGCONFIG --modversion libssh`
26581 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26582 fi
26583
26584 ;;
26585 off)
26586 ;;
26587 *)
26588 PREFIX_SSH=$OPT_LIBSSH
26589 ;;
26590 esac
26591
26592 if test -n "$PREFIX_SSH"; then
26593 LIB_SSH="-lssh"
26594 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26595 CPP_SSH=-I${PREFIX_SSH}/include
26596 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26597 fi
26598
26599 LDFLAGS="$LDFLAGS $LD_SSH"
26600 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26601 LIBS="$LIB_SSH $LIBS"
26602
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26604$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26605if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26606 $as_echo_n "(cached) " >&6
26607else
26608 ac_check_lib_save_LIBS=$LIBS
26609LIBS="-lssh $LIBS"
26610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26611/* end confdefs.h. */
26612
26613
26614#ifdef __cplusplus
26615extern "C"
26616#endif
26617char ssh_new ();
26618int main (void)
26619{
26620return ssh_new ();
26621 ;
26622 return 0;
26623}
26624_ACEOF
26625if ac_fn_c_try_link "$LINENO"; then :
26626 ac_cv_lib_ssh_ssh_new=yes
26627else
26628 ac_cv_lib_ssh_ssh_new=no
26629fi
26630rm -f core conftest.err conftest.$ac_objext \
26631 conftest$ac_exeext conftest.$ac_ext
26632LIBS=$ac_check_lib_save_LIBS
26633fi
26634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26635$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26636if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26637 cat >>confdefs.h <<_ACEOF
26638#define HAVE_LIBSSH 1
26639_ACEOF
26640
26641 LIBS="-lssh $LIBS"
26642
26643fi
26644
26645
26646 for ac_header in libssh/libssh.h
26647do :
26648 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26649if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26650 cat >>confdefs.h <<_ACEOF
26651#define HAVE_LIBSSH_LIBSSH_H 1
26652_ACEOF
26653 curl_ssh_msg="enabled (libSSH)"
26654 LIBSSH_ENABLED=1
26655
26656$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26657
26658 USE_LIBSSH=1
26659
26660
26661fi
26662
26663done
26664
26665
26666 if test X"$OPT_LIBSSH" != Xoff &&
26667 test "$LIBSSH_ENABLED" != "1"; then
26668 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26669 fi
26670
26671 if test "$LIBSSH_ENABLED" = "1"; then
26672 if test -n "$DIR_SSH"; then
26673
26674 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026675 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26676 export CURL_LIBRARY_PATH
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26678$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026679 fi
26680 fi
26681 else
26682 LDFLAGS=$CLEANLDFLAGS
26683 CPPFLAGS=$CLEANCPPFLAGS
26684 LIBS=$CLEANLIBS
26685 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026686fi
26687
26688
26689OPT_LIBRTMP=off
26690
26691# Check whether --with-librtmp was given.
26692if test "${with_librtmp+set}" = set; then :
26693 withval=$with_librtmp; OPT_LIBRTMP=$withval
26694fi
26695
26696
26697if test X"$OPT_LIBRTMP" != Xno; then
26698 CLEANLDFLAGS="$LDFLAGS"
26699 CLEANCPPFLAGS="$CPPFLAGS"
26700 CLEANLIBS="$LIBS"
26701
26702 case "$OPT_LIBRTMP" in
26703 yes)
26704
26705 if test -n "$PKG_CONFIG"; then
26706 PKGCONFIG="$PKG_CONFIG"
26707 else
26708 if test -n "$ac_tool_prefix"; then
26709 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26710set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26712$as_echo_n "checking for $ac_word... " >&6; }
26713if ${ac_cv_path_PKGCONFIG+:} false; then :
26714 $as_echo_n "(cached) " >&6
26715else
26716 case $PKGCONFIG in
26717 [\\/]* | ?:[\\/]*)
26718 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26719 ;;
26720 *)
26721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26722as_dummy="$PATH:/usr/bin:/usr/local/bin"
26723for as_dir in $as_dummy
26724do
26725 IFS=$as_save_IFS
26726 test -z "$as_dir" && as_dir=.
26727 for ac_exec_ext in '' $ac_executable_extensions; do
26728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26729 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26731 break 2
26732 fi
26733done
26734 done
26735IFS=$as_save_IFS
26736
26737 ;;
26738esac
26739fi
26740PKGCONFIG=$ac_cv_path_PKGCONFIG
26741if test -n "$PKGCONFIG"; then
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26743$as_echo "$PKGCONFIG" >&6; }
26744else
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26746$as_echo "no" >&6; }
26747fi
26748
26749
26750fi
26751if test -z "$ac_cv_path_PKGCONFIG"; then
26752 ac_pt_PKGCONFIG=$PKGCONFIG
26753 # Extract the first word of "pkg-config", so it can be a program name with args.
26754set dummy pkg-config; ac_word=$2
26755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26756$as_echo_n "checking for $ac_word... " >&6; }
26757if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26758 $as_echo_n "(cached) " >&6
26759else
26760 case $ac_pt_PKGCONFIG in
26761 [\\/]* | ?:[\\/]*)
26762 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26763 ;;
26764 *)
26765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26766as_dummy="$PATH:/usr/bin:/usr/local/bin"
26767for as_dir in $as_dummy
26768do
26769 IFS=$as_save_IFS
26770 test -z "$as_dir" && as_dir=.
26771 for ac_exec_ext in '' $ac_executable_extensions; do
26772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26773 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26775 break 2
26776 fi
26777done
26778 done
26779IFS=$as_save_IFS
26780
26781 ;;
26782esac
26783fi
26784ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26785if test -n "$ac_pt_PKGCONFIG"; then
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26787$as_echo "$ac_pt_PKGCONFIG" >&6; }
26788else
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26790$as_echo "no" >&6; }
26791fi
26792
26793 if test "x$ac_pt_PKGCONFIG" = x; then
26794 PKGCONFIG="no"
26795 else
26796 case $cross_compiling:$ac_tool_warned in
26797yes:)
26798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26800ac_tool_warned=yes ;;
26801esac
26802 PKGCONFIG=$ac_pt_PKGCONFIG
26803 fi
26804else
26805 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26806fi
26807
26808 fi
26809
26810 if test "x$PKGCONFIG" != "xno"; then
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26812$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26813 itexists=`
26814 if test -n ""; then
26815 PKG_CONFIG_LIBDIR=""
26816 export PKG_CONFIG_LIBDIR
26817 fi
26818 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26819
26820 if test -z "$itexists"; then
26821 PKGCONFIG="no"
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26823$as_echo "no" >&6; }
26824 else
26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26826$as_echo "found" >&6; }
26827 fi
26828 fi
26829
26830
26831 if test "$PKGCONFIG" != "no" ; then
26832 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26833 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26834 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26835 version=`$PKGCONFIG --modversion librtmp`
26836 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26837 else
26838 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26839 fi
26840
26841 ;;
26842 off)
26843 LIB_RTMP="-lrtmp"
26844 ;;
26845 *)
26846 LIB_RTMP="-lrtmp"
26847 PREFIX_RTMP=$OPT_LIBRTMP
26848 ;;
26849 esac
26850
26851 if test -n "$PREFIX_RTMP"; then
26852 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26853 CPP_RTMP=-I${PREFIX_RTMP}/include
26854 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26855 fi
26856
26857 LDFLAGS="$LDFLAGS $LD_RTMP"
26858 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26859 LIBS="$LIB_RTMP $LIBS"
26860
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26862$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26863if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26864 $as_echo_n "(cached) " >&6
26865else
26866 ac_check_lib_save_LIBS=$LIBS
26867LIBS="-lrtmp $LIBS"
26868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26869/* end confdefs.h. */
26870
26871
26872#ifdef __cplusplus
26873extern "C"
26874#endif
26875char RTMP_Init ();
26876int main (void)
26877{
26878return RTMP_Init ();
26879 ;
26880 return 0;
26881}
26882_ACEOF
26883if ac_fn_c_try_link "$LINENO"; then :
26884 ac_cv_lib_rtmp_RTMP_Init=yes
26885else
26886 ac_cv_lib_rtmp_RTMP_Init=no
26887fi
26888rm -f core conftest.err conftest.$ac_objext \
26889 conftest$ac_exeext conftest.$ac_ext
26890LIBS=$ac_check_lib_save_LIBS
26891fi
26892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26893$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26894if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26895
26896 for ac_header in librtmp/rtmp.h
26897do :
26898 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26899if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26900 cat >>confdefs.h <<_ACEOF
26901#define HAVE_LIBRTMP_RTMP_H 1
26902_ACEOF
26903 curl_rtmp_msg="enabled (librtmp)"
26904 LIBRTMP_ENABLED=1
26905
26906$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26907
26908 USE_LIBRTMP=1
26909
26910
26911fi
26912
26913done
26914
26915
26916else
26917 LDFLAGS=$CLEANLDFLAGS
26918 CPPFLAGS=$CLEANCPPFLAGS
26919 LIBS=$CLEANLIBS
26920
26921fi
26922
26923
26924 if test X"$OPT_LIBRTMP" != Xoff &&
26925 test "$LIBRTMP_ENABLED" != "1"; then
26926 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26927 fi
26928
26929fi
26930
26931
26932versioned_symbols_flavour=
26933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26934$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26935# Check whether --enable-versioned-symbols was given.
26936if test "${enable_versioned_symbols+set}" = set; then :
26937 enableval=$enable_versioned_symbols; case "$enableval" in
26938 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26939$as_echo "yes" >&6; }
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26941$as_echo_n "checking if libraries can be versioned... " >&6; }
26942 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26943 if test -z "$GLD"; then
26944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26945$as_echo "no" >&6; }
26946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26947$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26948 else
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26950$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026951 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26952 versioned_symbols_flavour="MULTISSL_"
26953 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026954 versioned_symbols_flavour="OPENSSL_"
26955 elif test "x$GNUTLS_ENABLED" = "x1"; then
26956 versioned_symbols_flavour="GNUTLS_"
26957 elif test "x$NSS_ENABLED" = "x1"; then
26958 versioned_symbols_flavour="NSS_"
26959 elif test "x$POLARSSL_ENABLED" = "x1"; then
26960 versioned_symbols_flavour="POLARSSL_"
26961 elif test "x$CYASSL_ENABLED" = "x1"; then
26962 versioned_symbols_flavour="CYASSL_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026963 elif test "x$WINSSL_ENABLED" = "x1"; then
Haibo Huang65021c72019-03-27 15:37:23 -070026964 versioned_symbols_flavour="SCHANNEL_"
26965 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
26966 versioned_symbols_flavour="SECURE_TRANSPORT_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026967 else
26968 versioned_symbols_flavour=""
26969 fi
26970 versioned_symbols="yes"
26971 fi
26972 ;;
26973
26974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26975$as_echo "no" >&6; }
26976 ;;
26977 esac
26978
26979else
26980
26981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26982$as_echo "no" >&6; }
26983
26984
26985fi
26986
26987
26988CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26989
26990 if test "x$versioned_symbols" = 'xyes'; then
26991 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26992 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26993else
26994 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26995 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26996fi
26997
26998
26999
27000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27001$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27002OPT_WINIDN="default"
27003
27004# Check whether --with-winidn was given.
27005if test "${with_winidn+set}" = set; then :
27006 withval=$with_winidn; OPT_WINIDN=$withval
27007fi
27008
27009case "$OPT_WINIDN" in
27010 no|default)
27011 want_winidn="no"
27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27013$as_echo "no" >&6; }
27014 ;;
27015 yes)
27016 want_winidn="yes"
27017 want_winidn_path="default"
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27019$as_echo "yes" >&6; }
27020 ;;
27021 *)
27022 want_winidn="yes"
27023 want_winidn_path="$withval"
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27025$as_echo "yes ($withval)" >&6; }
27026 ;;
27027esac
27028
27029if test "$want_winidn" = "yes"; then
27030 clean_CPPFLAGS="$CPPFLAGS"
27031 clean_LDFLAGS="$LDFLAGS"
27032 clean_LIBS="$LIBS"
27033 WINIDN_LIBS="-lnormaliz"
27034 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27035 #
27036 if test "$want_winidn_path" != "default"; then
27037 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27038 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27039 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27040 fi
27041 #
27042 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27043 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27044 LIBS="$WINIDN_LIBS $LIBS"
27045 #
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27047$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27049/* end confdefs.h. */
27050
27051
27052 #include <windows.h>
27053
27054int main (void)
27055{
27056
27057 IdnToUnicode(0, NULL, 0, NULL, 0);
27058
27059 ;
27060 return 0;
27061}
27062
27063_ACEOF
27064if ac_fn_c_try_link "$LINENO"; then :
27065
27066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27067$as_echo "yes" >&6; }
27068 tst_links_winidn="yes"
27069
27070else
27071
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27073$as_echo "no" >&6; }
27074 tst_links_winidn="no"
27075
27076fi
27077rm -f core conftest.err conftest.$ac_objext \
27078 conftest$ac_exeext conftest.$ac_ext
27079 #
27080 if test "$tst_links_winidn" = "yes"; then
27081
27082$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27083
27084
27085$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27086
27087 IDN_ENABLED=1
27088
27089 curl_idn_msg="enabled (Windows-native)"
27090 else
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27092$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27093 CPPFLAGS="$clean_CPPFLAGS"
27094 LDFLAGS="$clean_LDFLAGS"
27095 LIBS="$clean_LIBS"
27096 fi
27097fi
27098
27099
27100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27101$as_echo_n "checking whether to build with libidn2... " >&6; }
27102OPT_IDN="default"
27103
27104# Check whether --with-libidn2 was given.
27105if test "${with_libidn2+set}" = set; then :
27106 withval=$with_libidn2; OPT_IDN=$withval
27107fi
27108
27109case "$OPT_IDN" in
27110 no)
27111 want_idn="no"
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27113$as_echo "no" >&6; }
27114 ;;
27115 default)
27116 want_idn="yes"
27117 want_idn_path="default"
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27119$as_echo "(assumed) yes" >&6; }
27120 ;;
27121 yes)
27122 want_idn="yes"
27123 want_idn_path="default"
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27125$as_echo "yes" >&6; }
27126 ;;
27127 *)
27128 want_idn="yes"
27129 want_idn_path="$withval"
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27131$as_echo "yes ($withval)" >&6; }
27132 ;;
27133esac
27134
27135if test "$want_idn" = "yes"; then
27136 clean_CPPFLAGS="$CPPFLAGS"
27137 clean_LDFLAGS="$LDFLAGS"
27138 clean_LIBS="$LIBS"
27139 PKGCONFIG="no"
27140 #
27141 if test "$want_idn_path" != "default"; then
27142 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27143
27144 if test -n "$PKG_CONFIG"; then
27145 PKGCONFIG="$PKG_CONFIG"
27146 else
27147 if test -n "$ac_tool_prefix"; then
27148 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27149set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27151$as_echo_n "checking for $ac_word... " >&6; }
27152if ${ac_cv_path_PKGCONFIG+:} false; then :
27153 $as_echo_n "(cached) " >&6
27154else
27155 case $PKGCONFIG in
27156 [\\/]* | ?:[\\/]*)
27157 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27158 ;;
27159 *)
27160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27161as_dummy="$PATH:/usr/bin:/usr/local/bin"
27162for as_dir in $as_dummy
27163do
27164 IFS=$as_save_IFS
27165 test -z "$as_dir" && as_dir=.
27166 for ac_exec_ext in '' $ac_executable_extensions; do
27167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27168 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27170 break 2
27171 fi
27172done
27173 done
27174IFS=$as_save_IFS
27175
27176 ;;
27177esac
27178fi
27179PKGCONFIG=$ac_cv_path_PKGCONFIG
27180if test -n "$PKGCONFIG"; then
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27182$as_echo "$PKGCONFIG" >&6; }
27183else
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27185$as_echo "no" >&6; }
27186fi
27187
27188
27189fi
27190if test -z "$ac_cv_path_PKGCONFIG"; then
27191 ac_pt_PKGCONFIG=$PKGCONFIG
27192 # Extract the first word of "pkg-config", so it can be a program name with args.
27193set dummy pkg-config; ac_word=$2
27194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27195$as_echo_n "checking for $ac_word... " >&6; }
27196if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27197 $as_echo_n "(cached) " >&6
27198else
27199 case $ac_pt_PKGCONFIG in
27200 [\\/]* | ?:[\\/]*)
27201 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27202 ;;
27203 *)
27204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27205as_dummy="$PATH:/usr/bin:/usr/local/bin"
27206for as_dir in $as_dummy
27207do
27208 IFS=$as_save_IFS
27209 test -z "$as_dir" && as_dir=.
27210 for ac_exec_ext in '' $ac_executable_extensions; do
27211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27212 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27214 break 2
27215 fi
27216done
27217 done
27218IFS=$as_save_IFS
27219
27220 ;;
27221esac
27222fi
27223ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27224if test -n "$ac_pt_PKGCONFIG"; then
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27226$as_echo "$ac_pt_PKGCONFIG" >&6; }
27227else
27228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27229$as_echo "no" >&6; }
27230fi
27231
27232 if test "x$ac_pt_PKGCONFIG" = x; then
27233 PKGCONFIG="no"
27234 else
27235 case $cross_compiling:$ac_tool_warned in
27236yes:)
27237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27239ac_tool_warned=yes ;;
27240esac
27241 PKGCONFIG=$ac_pt_PKGCONFIG
27242 fi
27243else
27244 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27245fi
27246
27247 fi
27248
27249 if test "x$PKGCONFIG" != "xno"; then
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27251$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27252 itexists=`
27253 if test -n "$IDN_PCDIR"; then
27254 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27255 export PKG_CONFIG_LIBDIR
27256 fi
27257 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27258
27259 if test -z "$itexists"; then
27260 PKGCONFIG="no"
27261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27262$as_echo "no" >&6; }
27263 else
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27265$as_echo "found" >&6; }
27266 fi
27267 fi
27268
27269 if test "$PKGCONFIG" != "no"; then
27270 IDN_LIBS=`
27271 if test -n "$IDN_PCDIR"; then
27272 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27273 export PKG_CONFIG_LIBDIR
27274 fi
27275 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27276 IDN_LDFLAGS=`
27277 if test -n "$IDN_PCDIR"; then
27278 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27279 export PKG_CONFIG_LIBDIR
27280 fi
27281 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27282 IDN_CPPFLAGS=`
27283 if test -n "$IDN_PCDIR"; then
27284 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27285 export PKG_CONFIG_LIBDIR
27286 fi
27287 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27288 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27289 else
27290 IDN_LIBS="-lidn2"
27291 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27292 IDN_CPPFLAGS="-I$want_idn_path/include"
27293 IDN_DIR="$want_idn_path/lib$libsuff"
27294 fi
27295 else
27296
27297 if test -n "$PKG_CONFIG"; then
27298 PKGCONFIG="$PKG_CONFIG"
27299 else
27300 if test -n "$ac_tool_prefix"; then
27301 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27302set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27304$as_echo_n "checking for $ac_word... " >&6; }
27305if ${ac_cv_path_PKGCONFIG+:} false; then :
27306 $as_echo_n "(cached) " >&6
27307else
27308 case $PKGCONFIG in
27309 [\\/]* | ?:[\\/]*)
27310 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27311 ;;
27312 *)
27313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27314as_dummy="$PATH:/usr/bin:/usr/local/bin"
27315for as_dir in $as_dummy
27316do
27317 IFS=$as_save_IFS
27318 test -z "$as_dir" && as_dir=.
27319 for ac_exec_ext in '' $ac_executable_extensions; do
27320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27321 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27323 break 2
27324 fi
27325done
27326 done
27327IFS=$as_save_IFS
27328
27329 ;;
27330esac
27331fi
27332PKGCONFIG=$ac_cv_path_PKGCONFIG
27333if test -n "$PKGCONFIG"; then
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27335$as_echo "$PKGCONFIG" >&6; }
27336else
27337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27338$as_echo "no" >&6; }
27339fi
27340
27341
27342fi
27343if test -z "$ac_cv_path_PKGCONFIG"; then
27344 ac_pt_PKGCONFIG=$PKGCONFIG
27345 # Extract the first word of "pkg-config", so it can be a program name with args.
27346set dummy pkg-config; ac_word=$2
27347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27348$as_echo_n "checking for $ac_word... " >&6; }
27349if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27350 $as_echo_n "(cached) " >&6
27351else
27352 case $ac_pt_PKGCONFIG in
27353 [\\/]* | ?:[\\/]*)
27354 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27355 ;;
27356 *)
27357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27358as_dummy="$PATH:/usr/bin:/usr/local/bin"
27359for as_dir in $as_dummy
27360do
27361 IFS=$as_save_IFS
27362 test -z "$as_dir" && as_dir=.
27363 for ac_exec_ext in '' $ac_executable_extensions; do
27364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27365 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27367 break 2
27368 fi
27369done
27370 done
27371IFS=$as_save_IFS
27372
27373 ;;
27374esac
27375fi
27376ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27377if test -n "$ac_pt_PKGCONFIG"; then
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27379$as_echo "$ac_pt_PKGCONFIG" >&6; }
27380else
27381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27382$as_echo "no" >&6; }
27383fi
27384
27385 if test "x$ac_pt_PKGCONFIG" = x; then
27386 PKGCONFIG="no"
27387 else
27388 case $cross_compiling:$ac_tool_warned in
27389yes:)
27390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27392ac_tool_warned=yes ;;
27393esac
27394 PKGCONFIG=$ac_pt_PKGCONFIG
27395 fi
27396else
27397 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27398fi
27399
27400 fi
27401
27402 if test "x$PKGCONFIG" != "xno"; then
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27404$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27405 itexists=`
27406 if test -n ""; then
27407 PKG_CONFIG_LIBDIR=""
27408 export PKG_CONFIG_LIBDIR
27409 fi
27410 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27411
27412 if test -z "$itexists"; then
27413 PKGCONFIG="no"
27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27415$as_echo "no" >&6; }
27416 else
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27418$as_echo "found" >&6; }
27419 fi
27420 fi
27421
27422 if test "$PKGCONFIG" != "no"; then
27423 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27424 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27425 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27426 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27427 else
27428 IDN_LIBS="-lidn2"
27429 fi
27430 fi
27431 #
27432 if test "$PKGCONFIG" != "no"; then
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27434$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27435 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27436$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27437 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27438$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27440$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27441 else
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27443$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27444 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27445$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27447$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27449$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27450 fi
27451 #
27452 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27453 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27454 LIBS="$IDN_LIBS $LIBS"
27455 #
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27457$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459/* end confdefs.h. */
27460
27461
27462#define idn2_lookup_ul innocuous_idn2_lookup_ul
27463#ifdef __STDC__
27464# include <limits.h>
27465#else
27466# include <assert.h>
27467#endif
27468#undef idn2_lookup_ul
27469#ifdef __cplusplus
27470extern "C"
27471#endif
27472char idn2_lookup_ul ();
27473#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27474choke me
27475#endif
27476
27477int main (void)
27478{
27479return idn2_lookup_ul ();
27480 ;
27481 return 0;
27482}
27483
27484_ACEOF
27485if ac_fn_c_try_link "$LINENO"; then :
27486
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27488$as_echo "yes" >&6; }
27489 tst_links_libidn="yes"
27490
27491else
27492
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27494$as_echo "no" >&6; }
27495 tst_links_libidn="no"
27496
27497fi
27498rm -f core conftest.err conftest.$ac_objext \
27499 conftest$ac_exeext conftest.$ac_ext
27500 #
27501 for ac_header in idn2.h
27502do :
27503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27504ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27505if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27506 cat >>confdefs.h <<_ACEOF
27507#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27508_ACEOF
27509
27510fi
27511
27512done
27513
27514
27515 if test "$tst_links_libidn" = "yes"; then
27516
27517$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27518
27519
27520 IDN_ENABLED=1
27521
27522 curl_idn_msg="enabled (libidn2)"
27523 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027524 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27525 export CURL_LIBRARY_PATH
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27527$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027528 fi
27529 else
27530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27531$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27532 CPPFLAGS="$clean_CPPFLAGS"
27533 LDFLAGS="$clean_LDFLAGS"
27534 LIBS="$clean_LIBS"
27535 fi
27536fi
27537
27538
27539
27540
27541
27542OPT_H2="yes"
27543
27544if test "x$disable_http" = "xyes"; then
27545 # without HTTP, nghttp2 is no use
27546 OPT_H2="no"
27547fi
27548
27549
27550# Check whether --with-nghttp2 was given.
27551if test "${with_nghttp2+set}" = set; then :
27552 withval=$with_nghttp2; OPT_H2=$withval
27553fi
27554
27555case "$OPT_H2" in
27556 no)
27557 want_h2="no"
27558 ;;
27559 yes)
27560 want_h2="default"
27561 want_h2_path=""
27562 ;;
27563 *)
27564 want_h2="yes"
27565 want_h2_path="$withval/lib/pkgconfig"
27566 ;;
27567esac
27568
27569curl_h2_msg="disabled (--with-nghttp2)"
27570if test X"$want_h2" != Xno; then
27571 CLEANLDFLAGS="$LDFLAGS"
27572 CLEANCPPFLAGS="$CPPFLAGS"
27573 CLEANLIBS="$LIBS"
27574
27575
27576 if test -n "$PKG_CONFIG"; then
27577 PKGCONFIG="$PKG_CONFIG"
27578 else
27579 if test -n "$ac_tool_prefix"; then
27580 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27581set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27583$as_echo_n "checking for $ac_word... " >&6; }
27584if ${ac_cv_path_PKGCONFIG+:} false; then :
27585 $as_echo_n "(cached) " >&6
27586else
27587 case $PKGCONFIG in
27588 [\\/]* | ?:[\\/]*)
27589 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27590 ;;
27591 *)
27592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27593as_dummy="$PATH:/usr/bin:/usr/local/bin"
27594for as_dir in $as_dummy
27595do
27596 IFS=$as_save_IFS
27597 test -z "$as_dir" && as_dir=.
27598 for ac_exec_ext in '' $ac_executable_extensions; do
27599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27600 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27602 break 2
27603 fi
27604done
27605 done
27606IFS=$as_save_IFS
27607
27608 ;;
27609esac
27610fi
27611PKGCONFIG=$ac_cv_path_PKGCONFIG
27612if test -n "$PKGCONFIG"; then
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27614$as_echo "$PKGCONFIG" >&6; }
27615else
27616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27617$as_echo "no" >&6; }
27618fi
27619
27620
27621fi
27622if test -z "$ac_cv_path_PKGCONFIG"; then
27623 ac_pt_PKGCONFIG=$PKGCONFIG
27624 # Extract the first word of "pkg-config", so it can be a program name with args.
27625set dummy pkg-config; ac_word=$2
27626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27627$as_echo_n "checking for $ac_word... " >&6; }
27628if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27629 $as_echo_n "(cached) " >&6
27630else
27631 case $ac_pt_PKGCONFIG in
27632 [\\/]* | ?:[\\/]*)
27633 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27634 ;;
27635 *)
27636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27637as_dummy="$PATH:/usr/bin:/usr/local/bin"
27638for as_dir in $as_dummy
27639do
27640 IFS=$as_save_IFS
27641 test -z "$as_dir" && as_dir=.
27642 for ac_exec_ext in '' $ac_executable_extensions; do
27643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27644 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27646 break 2
27647 fi
27648done
27649 done
27650IFS=$as_save_IFS
27651
27652 ;;
27653esac
27654fi
27655ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27656if test -n "$ac_pt_PKGCONFIG"; then
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27658$as_echo "$ac_pt_PKGCONFIG" >&6; }
27659else
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27661$as_echo "no" >&6; }
27662fi
27663
27664 if test "x$ac_pt_PKGCONFIG" = x; then
27665 PKGCONFIG="no"
27666 else
27667 case $cross_compiling:$ac_tool_warned in
27668yes:)
27669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27671ac_tool_warned=yes ;;
27672esac
27673 PKGCONFIG=$ac_pt_PKGCONFIG
27674 fi
27675else
27676 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27677fi
27678
27679 fi
27680
27681 if test "x$PKGCONFIG" != "xno"; then
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27683$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27684 itexists=`
27685 if test -n "$want_h2_path"; then
27686 PKG_CONFIG_LIBDIR="$want_h2_path"
27687 export PKG_CONFIG_LIBDIR
27688 fi
27689 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27690
27691 if test -z "$itexists"; then
27692 PKGCONFIG="no"
27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27694$as_echo "no" >&6; }
27695 else
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27697$as_echo "found" >&6; }
27698 fi
27699 fi
27700
27701
27702 if test "$PKGCONFIG" != "no" ; then
27703 LIB_H2=`
27704 if test -n "$want_h2_path"; then
27705 PKG_CONFIG_LIBDIR="$want_h2_path"
27706 export PKG_CONFIG_LIBDIR
27707 fi
27708
27709 $PKGCONFIG --libs-only-l libnghttp2`
27710 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27711$as_echo "$as_me: -l is $LIB_H2" >&6;}
27712
27713 CPP_H2=`
27714 if test -n "$want_h2_path"; then
27715 PKG_CONFIG_LIBDIR="$want_h2_path"
27716 export PKG_CONFIG_LIBDIR
27717 fi
27718 $PKGCONFIG --cflags-only-I libnghttp2`
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27720$as_echo "$as_me: -I is $CPP_H2" >&6;}
27721
27722 LD_H2=`
27723 if test -n "$want_h2_path"; then
27724 PKG_CONFIG_LIBDIR="$want_h2_path"
27725 export PKG_CONFIG_LIBDIR
27726 fi
27727
27728 $PKGCONFIG --libs-only-L libnghttp2`
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27730$as_echo "$as_me: -L is $LD_H2" >&6;}
27731
27732 LDFLAGS="$LDFLAGS $LD_H2"
27733 CPPFLAGS="$CPPFLAGS $CPP_H2"
27734 LIBS="$LIB_H2 $LIBS"
27735
27736 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27737 # >= 1.0.0
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27739$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27740if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27741 $as_echo_n "(cached) " >&6
27742else
27743 ac_check_lib_save_LIBS=$LIBS
27744LIBS="-lnghttp2 $LIBS"
27745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27746/* end confdefs.h. */
27747
27748
27749#ifdef __cplusplus
27750extern "C"
27751#endif
27752char nghttp2_option_set_no_recv_client_magic ();
27753int main (void)
27754{
27755return nghttp2_option_set_no_recv_client_magic ();
27756 ;
27757 return 0;
27758}
27759_ACEOF
27760if ac_fn_c_try_link "$LINENO"; then :
27761 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27762else
27763 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27764fi
27765rm -f core conftest.err conftest.$ac_objext \
27766 conftest$ac_exeext conftest.$ac_ext
27767LIBS=$ac_check_lib_save_LIBS
27768fi
27769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27770$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27771if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27772
27773 for ac_header in nghttp2/nghttp2.h
27774do :
27775 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27776if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27777 cat >>confdefs.h <<_ACEOF
27778#define HAVE_NGHTTP2_NGHTTP2_H 1
27779_ACEOF
27780 curl_h2_msg="enabled (nghttp2)"
27781 NGHTTP2_ENABLED=1
27782
27783$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27784
27785 USE_NGHTTP2=1
27786
27787
27788fi
27789
27790done
27791
27792
27793else
27794 LDFLAGS=$CLEANLDFLAGS
27795 CPPFLAGS=$CLEANCPPFLAGS
27796 LIBS=$CLEANLIBS
27797
27798fi
27799
27800
27801 else
27802 if test X"$want_h2" != Xdefault; then
27803 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27804 fi
27805 fi
27806
27807fi
27808
27809
27810OPT_ZSH_FPATH=default
27811
27812# Check whether --with-zsh-functions-dir was given.
27813if test "${with_zsh_functions_dir+set}" = set; then :
27814 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27815fi
27816
27817case "$OPT_ZSH_FPATH" in
27818 no)
27819 ;;
27820 default|yes)
27821 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27822
27823 ;;
27824 *)
27825 ZSH_FUNCTIONS_DIR="$withval"
27826
27827 ;;
27828esac
27829
27830
Haibo Huang65021c72019-03-27 15:37:23 -070027831OPT_FISH_FPATH=default
27832
27833# Check whether --with-fish-functions-dir was given.
27834if test "${with_fish_functions_dir+set}" = set; then :
27835 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
27836fi
27837
27838case "$OPT_FISH_FPATH" in
27839 no)
27840 ;;
27841 default|yes)
27842 FISH_FUNCTIONS_DIR="$datarootdir/fish/completions"
27843
27844 ;;
27845 *)
27846 FISH_FUNCTIONS_DIR="$withval"
27847
27848 ;;
27849esac
27850
27851
Elliott Hughes82be86d2017-09-20 17:00:17 -070027852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27853$as_echo_n "checking for ANSI C header files... " >&6; }
27854if ${ac_cv_header_stdc+:} false; then :
27855 $as_echo_n "(cached) " >&6
27856else
27857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27858/* end confdefs.h. */
27859#include <stdlib.h>
27860#include <stdarg.h>
27861#include <string.h>
27862#include <float.h>
27863
27864int main (void)
27865{
27866
27867 ;
27868 return 0;
27869}
27870_ACEOF
27871if ac_fn_c_try_compile "$LINENO"; then :
27872 ac_cv_header_stdc=yes
27873else
27874 ac_cv_header_stdc=no
27875fi
27876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27877
27878if test $ac_cv_header_stdc = yes; then
27879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27881/* end confdefs.h. */
27882#include <string.h>
27883
27884_ACEOF
27885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27886 $EGREP "memchr" >/dev/null 2>&1; then :
27887
27888else
27889 ac_cv_header_stdc=no
27890fi
27891rm -f conftest*
27892
27893fi
27894
27895if test $ac_cv_header_stdc = yes; then
27896 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27898/* end confdefs.h. */
27899#include <stdlib.h>
27900
27901_ACEOF
27902if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27903 $EGREP "free" >/dev/null 2>&1; then :
27904
27905else
27906 ac_cv_header_stdc=no
27907fi
27908rm -f conftest*
27909
27910fi
27911
27912if test $ac_cv_header_stdc = yes; then
27913 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27914 if test "$cross_compiling" = yes; then :
27915 :
27916else
27917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27918/* end confdefs.h. */
27919#include <ctype.h>
27920#include <stdlib.h>
27921#if ((' ' & 0x0FF) == 0x020)
27922# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27923# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27924#else
27925# define ISLOWER(c) \
27926 (('a' <= (c) && (c) <= 'i') \
27927 || ('j' <= (c) && (c) <= 'r') \
27928 || ('s' <= (c) && (c) <= 'z'))
27929# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27930#endif
27931
27932#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27933int
27934main ()
27935{
27936 int i;
27937 for (i = 0; i < 256; i++)
27938 if (XOR (islower (i), ISLOWER (i))
27939 || toupper (i) != TOUPPER (i))
27940 return 2;
27941 return 0;
27942}
27943_ACEOF
27944if ac_fn_c_try_run "$LINENO"; then :
27945
27946else
27947 ac_cv_header_stdc=no
27948fi
27949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27950 conftest.$ac_objext conftest.beam conftest.$ac_ext
27951fi
27952
27953fi
27954fi
27955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27956$as_echo "$ac_cv_header_stdc" >&6; }
27957if test $ac_cv_header_stdc = yes; then
27958
27959$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27960
27961fi
27962
27963
27964
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27966$as_echo_n "checking for malloc.h... " >&6; }
27967if ${curl_cv_header_malloc_h+:} false; then :
27968 $as_echo_n "(cached) " >&6
27969else
27970
27971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27972/* end confdefs.h. */
27973
27974
27975#include <malloc.h>
27976
27977int main (void)
27978{
27979
27980 void *p = malloc(10);
27981 void *q = calloc(10,10);
27982 free(p);
27983 free(q);
27984
27985 ;
27986 return 0;
27987}
27988
27989_ACEOF
27990if ac_fn_c_try_compile "$LINENO"; then :
27991
27992 curl_cv_header_malloc_h="yes"
27993
27994else
27995
27996 curl_cv_header_malloc_h="no"
27997
27998fi
27999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28000
28001fi
28002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28003$as_echo "$curl_cv_header_malloc_h" >&6; }
28004 if test "$curl_cv_header_malloc_h" = "yes"; then
28005
28006cat >>confdefs.h <<_ACEOF
28007#define HAVE_MALLOC_H 1
28008_ACEOF
28009
28010 #
28011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28012/* end confdefs.h. */
28013
28014
28015#include <stdlib.h>
28016
28017int main (void)
28018{
28019
28020 void *p = malloc(10);
28021 void *q = calloc(10,10);
28022 free(p);
28023 free(q);
28024
28025 ;
28026 return 0;
28027}
28028
28029_ACEOF
28030if ac_fn_c_try_compile "$LINENO"; then :
28031
28032 curl_cv_need_header_malloc_h="no"
28033
28034else
28035
28036 curl_cv_need_header_malloc_h="yes"
28037
28038fi
28039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28040 #
28041 case "$curl_cv_need_header_malloc_h" in
28042 yes)
28043
28044cat >>confdefs.h <<_ACEOF
28045#define NEED_MALLOC_H 1
28046_ACEOF
28047
28048 ;;
28049 esac
28050 fi
28051
28052
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28054$as_echo_n "checking for memory.h... " >&6; }
28055if ${curl_cv_header_memory_h+:} false; then :
28056 $as_echo_n "(cached) " >&6
28057else
28058
28059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28060/* end confdefs.h. */
28061
28062
28063#include <memory.h>
28064
28065int main (void)
28066{
28067
28068 void *p = malloc(10);
28069 void *q = calloc(10,10);
28070 free(p);
28071 free(q);
28072
28073 ;
28074 return 0;
28075}
28076
28077_ACEOF
28078if ac_fn_c_try_compile "$LINENO"; then :
28079
28080 curl_cv_header_memory_h="yes"
28081
28082else
28083
28084 curl_cv_header_memory_h="no"
28085
28086fi
28087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28088
28089fi
28090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28091$as_echo "$curl_cv_header_memory_h" >&6; }
28092 if test "$curl_cv_header_memory_h" = "yes"; then
28093
28094cat >>confdefs.h <<_ACEOF
28095#define HAVE_MEMORY_H 1
28096_ACEOF
28097
28098 #
28099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28100/* end confdefs.h. */
28101
28102
28103#include <stdlib.h>
28104
28105int main (void)
28106{
28107
28108 void *p = malloc(10);
28109 void *q = calloc(10,10);
28110 free(p);
28111 free(q);
28112
28113 ;
28114 return 0;
28115}
28116
28117_ACEOF
28118if ac_fn_c_try_compile "$LINENO"; then :
28119
28120 curl_cv_need_header_memory_h="no"
28121
28122else
28123
28124 curl_cv_need_header_memory_h="yes"
28125
28126fi
28127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28128 #
28129 case "$curl_cv_need_header_memory_h" in
28130 yes)
28131
28132cat >>confdefs.h <<_ACEOF
28133#define NEED_MEMORY_H 1
28134_ACEOF
28135
28136 ;;
28137 esac
28138 fi
28139
28140
28141for ac_header in sys/types.h \
28142 sys/time.h \
28143 sys/select.h \
28144 sys/socket.h \
28145 sys/ioctl.h \
28146 sys/uio.h \
28147 assert.h \
28148 unistd.h \
28149 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028150 arpa/inet.h \
28151 net/if.h \
28152 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028153 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028154 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028155 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028156 netinet/tcp.h \
28157 netdb.h \
28158 sys/sockio.h \
28159 sys/stat.h \
28160 sys/param.h \
28161 termios.h \
28162 termio.h \
28163 sgtty.h \
28164 fcntl.h \
28165 alloca.h \
28166 time.h \
28167 io.h \
28168 pwd.h \
28169 utime.h \
28170 sys/utime.h \
28171 sys/poll.h \
28172 poll.h \
28173 socket.h \
28174 sys/resource.h \
28175 libgen.h \
28176 locale.h \
28177 errno.h \
28178 stdbool.h \
28179 arpa/tftp.h \
28180 sys/filio.h \
28181 sys/wait.h \
28182 setjmp.h
28183do :
28184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28185ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28186#ifdef HAVE_SYS_TYPES_H
28187#include <sys/types.h>
28188#endif
28189#ifdef HAVE_SYS_TIME_H
28190#include <sys/time.h>
28191#endif
28192#ifdef HAVE_SYS_SELECT_H
28193#include <sys/select.h>
28194#endif
28195#ifdef HAVE_SYS_SOCKET_H
28196#include <sys/socket.h>
28197#endif
28198#ifdef HAVE_NETINET_IN_H
28199#include <netinet/in.h>
28200#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028201#ifdef HAVE_NETINET_IN6_H
28202#include <netinet/in6.h>
28203#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028204#ifdef HAVE_SYS_UN_H
28205#include <sys/un.h>
28206#endif
28207
28208
28209"
28210if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28211 cat >>confdefs.h <<_ACEOF
28212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28213_ACEOF
28214
28215fi
28216
28217done
28218
28219
Haibo Huang65021c72019-03-27 15:37:23 -070028220
Elliott Hughes82be86d2017-09-20 17:00:17 -070028221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28222$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28223if ${ac_cv_c_const+:} false; then :
28224 $as_echo_n "(cached) " >&6
28225else
28226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28227/* end confdefs.h. */
28228
28229int main (void)
28230{
28231
28232#ifndef __cplusplus
28233 /* Ultrix mips cc rejects this sort of thing. */
28234 typedef int charset[2];
28235 const charset cs = { 0, 0 };
28236 /* SunOS 4.1.1 cc rejects this. */
28237 char const *const *pcpcc;
28238 char **ppc;
28239 /* NEC SVR4.0.2 mips cc rejects this. */
28240 struct point {int x, y;};
28241 static struct point const zero = {0,0};
28242 /* AIX XL C 1.02.0.0 rejects this.
28243 It does not let you subtract one const X* pointer from another in
28244 an arm of an if-expression whose if-part is not a constant
28245 expression */
28246 const char *g = "string";
28247 pcpcc = &g + (g ? g-g : 0);
28248 /* HPUX 7.0 cc rejects these. */
28249 ++pcpcc;
28250 ppc = (char**) pcpcc;
28251 pcpcc = (char const *const *) ppc;
28252 { /* SCO 3.2v4 cc rejects this sort of thing. */
28253 char tx;
28254 char *t = &tx;
28255 char const *s = 0 ? (char *) 0 : (char const *) 0;
28256
28257 *t++ = 0;
28258 if (s) return 0;
28259 }
28260 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28261 int x[] = {25, 17};
28262 const int *foo = &x[0];
28263 ++foo;
28264 }
28265 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28266 typedef const int *iptr;
28267 iptr p = 0;
28268 ++p;
28269 }
28270 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28271 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28272 struct s { int j; const int *ap[3]; } bx;
28273 struct s *b = &bx; b->j = 5;
28274 }
28275 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28276 const int foo = 10;
28277 if (!foo) return 0;
28278 }
28279 return !cs[0] && !zero.x;
28280#endif
28281
28282 ;
28283 return 0;
28284}
28285_ACEOF
28286if ac_fn_c_try_compile "$LINENO"; then :
28287 ac_cv_c_const=yes
28288else
28289 ac_cv_c_const=no
28290fi
28291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28292fi
28293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28294$as_echo "$ac_cv_c_const" >&6; }
28295if test $ac_cv_c_const = no; then
28296
28297$as_echo "#define const /**/" >>confdefs.h
28298
28299fi
28300
28301
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28303$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28304if ${curl_cv_variadic_macros_c99+:} false; then :
28305 $as_echo_n "(cached) " >&6
28306else
28307
28308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28309/* end confdefs.h. */
28310
28311
28312#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28313#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28314 int fun3(int arg1, int arg2, int arg3);
28315 int fun2(int arg1, int arg2);
28316 int fun3(int arg1, int arg2, int arg3)
28317 { return arg1 + arg2 + arg3; }
28318 int fun2(int arg1, int arg2)
28319 { return arg1 + arg2; }
28320
28321int main (void)
28322{
28323
28324 int res3 = c99_vmacro3(1, 2, 3);
28325 int res2 = c99_vmacro2(1, 2);
28326
28327 ;
28328 return 0;
28329}
28330
28331_ACEOF
28332if ac_fn_c_try_compile "$LINENO"; then :
28333
28334 curl_cv_variadic_macros_c99="yes"
28335
28336else
28337
28338 curl_cv_variadic_macros_c99="no"
28339
28340fi
28341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28342
28343fi
28344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28345$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28346 case "$curl_cv_variadic_macros_c99" in
28347 yes)
28348
28349cat >>confdefs.h <<_ACEOF
28350#define HAVE_VARIADIC_MACROS_C99 1
28351_ACEOF
28352
28353 ;;
28354 esac
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28356$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28357if ${curl_cv_variadic_macros_gcc+:} false; then :
28358 $as_echo_n "(cached) " >&6
28359else
28360
28361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28362/* end confdefs.h. */
28363
28364
28365#define gcc_vmacro3(first, args...) fun3(first, args)
28366#define gcc_vmacro2(first, args...) fun2(first, args)
28367 int fun3(int arg1, int arg2, int arg3);
28368 int fun2(int arg1, int arg2);
28369 int fun3(int arg1, int arg2, int arg3)
28370 { return arg1 + arg2 + arg3; }
28371 int fun2(int arg1, int arg2)
28372 { return arg1 + arg2; }
28373
28374int main (void)
28375{
28376
28377 int res3 = gcc_vmacro3(1, 2, 3);
28378 int res2 = gcc_vmacro2(1, 2);
28379
28380 ;
28381 return 0;
28382}
28383
28384_ACEOF
28385if ac_fn_c_try_compile "$LINENO"; then :
28386
28387 curl_cv_variadic_macros_gcc="yes"
28388
28389else
28390
28391 curl_cv_variadic_macros_gcc="no"
28392
28393fi
28394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28395
28396fi
28397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28398$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28399 case "$curl_cv_variadic_macros_gcc" in
28400 yes)
28401
28402cat >>confdefs.h <<_ACEOF
28403#define HAVE_VARIADIC_MACROS_GCC 1
28404_ACEOF
28405
28406 ;;
28407 esac
28408
28409ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28410if test "x$ac_cv_type_size_t" = xyes; then :
28411
28412else
28413
28414cat >>confdefs.h <<_ACEOF
28415#define size_t unsigned int
28416_ACEOF
28417
28418fi
28419
28420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28421$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28422if ${ac_cv_header_time+:} false; then :
28423 $as_echo_n "(cached) " >&6
28424else
28425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28426/* end confdefs.h. */
28427#include <sys/types.h>
28428#include <sys/time.h>
28429#include <time.h>
28430
28431int main (void)
28432{
28433if ((struct tm *) 0)
28434return 0;
28435 ;
28436 return 0;
28437}
28438_ACEOF
28439if ac_fn_c_try_compile "$LINENO"; then :
28440 ac_cv_header_time=yes
28441else
28442 ac_cv_header_time=no
28443fi
28444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28445fi
28446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28447$as_echo "$ac_cv_header_time" >&6; }
28448if test $ac_cv_header_time = yes; then
28449
28450$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28451
28452fi
28453
28454
28455 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28456do :
28457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28458ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28459if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28460 cat >>confdefs.h <<_ACEOF
28461#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28462_ACEOF
28463
28464fi
28465
28466done
28467
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28469$as_echo_n "checking for struct timeval... " >&6; }
28470if ${curl_cv_struct_timeval+:} false; then :
28471 $as_echo_n "(cached) " >&6
28472else
28473
28474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28475/* end confdefs.h. */
28476
28477
28478#undef inline
28479#ifdef HAVE_WINDOWS_H
28480#ifndef WIN32_LEAN_AND_MEAN
28481#define WIN32_LEAN_AND_MEAN
28482#endif
28483#include <windows.h>
28484#ifdef HAVE_WINSOCK2_H
28485#include <winsock2.h>
28486#else
28487#ifdef HAVE_WINSOCK_H
28488#include <winsock.h>
28489#endif
28490#endif
28491#endif
28492#ifdef HAVE_SYS_TYPES_H
28493#include <sys/types.h>
28494#endif
28495#ifdef HAVE_SYS_TIME_H
28496#include <sys/time.h>
28497#ifdef TIME_WITH_SYS_TIME
28498#include <time.h>
28499#endif
28500#else
28501#ifdef HAVE_TIME_H
28502#include <time.h>
28503#endif
28504#endif
28505#ifdef HAVE_SYS_SOCKET_H
28506#include <sys/socket.h>
28507#endif
28508
28509int main (void)
28510{
28511
28512 struct timeval ts;
28513 ts.tv_sec = 0;
28514 ts.tv_usec = 0;
28515
28516 ;
28517 return 0;
28518}
28519
28520_ACEOF
28521if ac_fn_c_try_compile "$LINENO"; then :
28522
28523 curl_cv_struct_timeval="yes"
28524
28525else
28526
28527 curl_cv_struct_timeval="no"
28528
28529fi
28530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28531
28532fi
28533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28534$as_echo "$curl_cv_struct_timeval" >&6; }
28535 case "$curl_cv_struct_timeval" in
28536 yes)
28537
28538cat >>confdefs.h <<_ACEOF
28539#define HAVE_STRUCT_TIMEVAL 1
28540_ACEOF
28541
28542 ;;
28543 esac
28544
28545
28546
28547 if test "x$cross_compiling" != xyes; then
28548
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28550$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028551
28552
28553 old=$LD_LIBRARY_PATH
28554 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28555 export LD_LIBRARY_PATH
28556 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28559as_fn_error $? "cannot run test program while cross compiling
28560See \`config.log' for more details" "$LINENO" 5; }
28561else
28562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28563/* end confdefs.h. */
28564
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070028565int main()
Elliott Hughes82be86d2017-09-20 17:00:17 -070028566{
28567 return 0;
28568}
28569
28570_ACEOF
28571if ac_fn_c_try_run "$LINENO"; then :
28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28573$as_echo "fine" >&6; }
28574else
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28576$as_echo "failed" >&6; }
28577 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28578
28579fi
28580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28581 conftest.$ac_objext conftest.beam conftest.$ac_ext
28582fi
28583
Elliott Hughes72d948d2018-08-03 14:37:21 -070028584 LD_LIBRARY_PATH=$old # restore
28585
Elliott Hughes82be86d2017-09-20 17:00:17 -070028586
28587 fi
28588
28589
Elliott Hughes82be86d2017-09-20 17:00:17 -070028590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28591$as_echo_n "checking size of size_t... " >&6; }
28592if ${ac_cv_sizeof_size_t+:} false; then :
28593 $as_echo_n "(cached) " >&6
28594else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028595 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28597/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028598
Elliott Hughes72d948d2018-08-03 14:37:21 -070028599#include <sys/types.h>
28600
28601
28602int main (void)
28603{
28604switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28605 ;
28606 return 0;
28607}
28608_ACEOF
28609if ac_fn_c_try_compile "$LINENO"; then :
28610 ac_cv_sizeof_size_t=$ac_size
28611fi
28612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28613 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28614done
28615
Elliott Hughes82be86d2017-09-20 17:00:17 -070028616fi
28617
Elliott Hughes72d948d2018-08-03 14:37:21 -070028618if test x$ac_cv_sizeof_size_t = x ; then
28619 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028620fi
28621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28622$as_echo "$ac_cv_sizeof_size_t" >&6; }
28623
Elliott Hughes82be86d2017-09-20 17:00:17 -070028624cat >>confdefs.h <<_ACEOF
28625#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28626_ACEOF
28627
28628
Elliott Hughes82be86d2017-09-20 17:00:17 -070028629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28630$as_echo_n "checking size of long... " >&6; }
28631if ${ac_cv_sizeof_long+:} false; then :
28632 $as_echo_n "(cached) " >&6
28633else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028634 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28636/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028637
Elliott Hughes72d948d2018-08-03 14:37:21 -070028638#include <sys/types.h>
28639
28640
28641int main (void)
28642{
28643switch (0) case 0: case (sizeof (long) == $ac_size):;
28644 ;
28645 return 0;
28646}
28647_ACEOF
28648if ac_fn_c_try_compile "$LINENO"; then :
28649 ac_cv_sizeof_long=$ac_size
28650fi
28651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28652 if test x$ac_cv_sizeof_long != x ; then break; fi
28653done
28654
Elliott Hughes82be86d2017-09-20 17:00:17 -070028655fi
28656
Elliott Hughes72d948d2018-08-03 14:37:21 -070028657if test x$ac_cv_sizeof_long = x ; then
28658 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028659fi
28660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28661$as_echo "$ac_cv_sizeof_long" >&6; }
28662
Elliott Hughes82be86d2017-09-20 17:00:17 -070028663cat >>confdefs.h <<_ACEOF
28664#define SIZEOF_LONG $ac_cv_sizeof_long
28665_ACEOF
28666
28667
Elliott Hughes82be86d2017-09-20 17:00:17 -070028668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28669$as_echo_n "checking size of int... " >&6; }
28670if ${ac_cv_sizeof_int+:} false; then :
28671 $as_echo_n "(cached) " >&6
28672else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028673 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28675/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028676
Elliott Hughes72d948d2018-08-03 14:37:21 -070028677#include <sys/types.h>
28678
28679
28680int main (void)
28681{
28682switch (0) case 0: case (sizeof (int) == $ac_size):;
28683 ;
28684 return 0;
28685}
28686_ACEOF
28687if ac_fn_c_try_compile "$LINENO"; then :
28688 ac_cv_sizeof_int=$ac_size
28689fi
28690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28691 if test x$ac_cv_sizeof_int != x ; then break; fi
28692done
28693
Elliott Hughes82be86d2017-09-20 17:00:17 -070028694fi
28695
Elliott Hughes72d948d2018-08-03 14:37:21 -070028696if test x$ac_cv_sizeof_int = x ; then
28697 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028698fi
28699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28700$as_echo "$ac_cv_sizeof_int" >&6; }
28701
Elliott Hughes82be86d2017-09-20 17:00:17 -070028702cat >>confdefs.h <<_ACEOF
28703#define SIZEOF_INT $ac_cv_sizeof_int
28704_ACEOF
28705
28706
Elliott Hughes82be86d2017-09-20 17:00:17 -070028707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28708$as_echo_n "checking size of short... " >&6; }
28709if ${ac_cv_sizeof_short+:} false; then :
28710 $as_echo_n "(cached) " >&6
28711else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028712 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28714/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028715
Elliott Hughes72d948d2018-08-03 14:37:21 -070028716#include <sys/types.h>
28717
28718
28719int main (void)
28720{
28721switch (0) case 0: case (sizeof (short) == $ac_size):;
28722 ;
28723 return 0;
28724}
28725_ACEOF
28726if ac_fn_c_try_compile "$LINENO"; then :
28727 ac_cv_sizeof_short=$ac_size
28728fi
28729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28730 if test x$ac_cv_sizeof_short != x ; then break; fi
28731done
28732
Elliott Hughes82be86d2017-09-20 17:00:17 -070028733fi
28734
Elliott Hughes72d948d2018-08-03 14:37:21 -070028735if test x$ac_cv_sizeof_short = x ; then
28736 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028737fi
28738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28739$as_echo "$ac_cv_sizeof_short" >&6; }
28740
Elliott Hughes82be86d2017-09-20 17:00:17 -070028741cat >>confdefs.h <<_ACEOF
28742#define SIZEOF_SHORT $ac_cv_sizeof_short
28743_ACEOF
28744
28745
Elliott Hughes82be86d2017-09-20 17:00:17 -070028746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28747$as_echo_n "checking size of time_t... " >&6; }
28748if ${ac_cv_sizeof_time_t+:} false; then :
28749 $as_echo_n "(cached) " >&6
28750else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028751 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28753/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028754
Elliott Hughes72d948d2018-08-03 14:37:21 -070028755#include <sys/types.h>
28756
28757
28758int main (void)
28759{
28760switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28761 ;
28762 return 0;
28763}
28764_ACEOF
28765if ac_fn_c_try_compile "$LINENO"; then :
28766 ac_cv_sizeof_time_t=$ac_size
28767fi
28768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28770done
28771
Elliott Hughes82be86d2017-09-20 17:00:17 -070028772fi
28773
Elliott Hughes72d948d2018-08-03 14:37:21 -070028774if test x$ac_cv_sizeof_time_t = x ; then
28775 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028776fi
28777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28778$as_echo "$ac_cv_sizeof_time_t" >&6; }
28779
Elliott Hughes82be86d2017-09-20 17:00:17 -070028780cat >>confdefs.h <<_ACEOF
28781#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28782_ACEOF
28783
28784
Elliott Hughes82be86d2017-09-20 17:00:17 -070028785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28786$as_echo_n "checking size of off_t... " >&6; }
28787if ${ac_cv_sizeof_off_t+:} false; then :
28788 $as_echo_n "(cached) " >&6
28789else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028790 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28792/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028793
Elliott Hughes72d948d2018-08-03 14:37:21 -070028794#include <sys/types.h>
28795
28796
28797int main (void)
28798{
28799switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28800 ;
28801 return 0;
28802}
28803_ACEOF
28804if ac_fn_c_try_compile "$LINENO"; then :
28805 ac_cv_sizeof_off_t=$ac_size
28806fi
28807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28808 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28809done
28810
Elliott Hughes82be86d2017-09-20 17:00:17 -070028811fi
28812
Elliott Hughes72d948d2018-08-03 14:37:21 -070028813if test x$ac_cv_sizeof_off_t = x ; then
28814 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028815fi
28816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28817$as_echo "$ac_cv_sizeof_off_t" >&6; }
28818
Elliott Hughes82be86d2017-09-20 17:00:17 -070028819cat >>confdefs.h <<_ACEOF
28820#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28821_ACEOF
28822
28823
28824
Alex Deymo486467e2017-12-19 19:04:07 +010028825o=$CPPFLAGS
28826CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28828$as_echo_n "checking size of curl_off_t... " >&6; }
28829if ${ac_cv_sizeof_curl_off_t+:} false; then :
28830 $as_echo_n "(cached) " >&6
28831else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028832 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28834/* end confdefs.h. */
28835
28836#include <sys/types.h>
28837
Alex Deymo486467e2017-12-19 19:04:07 +010028838#include <curl/system.h>
28839
Alex Deymo486467e2017-12-19 19:04:07 +010028840
Elliott Hughes72d948d2018-08-03 14:37:21 -070028841int main (void)
28842{
28843switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28844 ;
28845 return 0;
28846}
28847_ACEOF
28848if ac_fn_c_try_compile "$LINENO"; then :
28849 ac_cv_sizeof_curl_off_t=$ac_size
28850fi
28851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28852 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28853done
28854
Elliott Hughes82be86d2017-09-20 17:00:17 -070028855fi
28856
Elliott Hughes72d948d2018-08-03 14:37:21 -070028857if test x$ac_cv_sizeof_curl_off_t = x ; then
28858 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028859fi
28860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28861$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28862
Alex Deymo486467e2017-12-19 19:04:07 +010028863cat >>confdefs.h <<_ACEOF
28864#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28865_ACEOF
28866
28867
28868CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028869
28870ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28871if test "x$ac_cv_type_long_long" = xyes; then :
28872
28873$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28874
28875 longlong="yes"
28876
28877fi
28878
28879
28880if test "xyes" = "x$longlong"; then
28881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28882$as_echo_n "checking if numberLL works... " >&6; }
28883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28884/* end confdefs.h. */
28885
28886
28887
28888int main (void)
28889{
28890
28891 long long val = 1000LL;
28892
28893 ;
28894 return 0;
28895}
28896
28897_ACEOF
28898if ac_fn_c_try_compile "$LINENO"; then :
28899
28900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28901$as_echo "yes" >&6; }
28902
28903$as_echo "#define HAVE_LL 1" >>confdefs.h
28904
28905
28906else
28907
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28909$as_echo "no" >&6; }
28910
28911fi
28912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28913fi
28914
28915
28916# check for ssize_t
28917ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28918if test "x$ac_cv_type_ssize_t" = xyes; then :
28919
28920else
28921
28922$as_echo "#define ssize_t int" >>confdefs.h
28923
28924fi
28925
28926
28927# check for bool type
28928ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28929#ifdef HAVE_SYS_TYPES_H
28930#include <sys/types.h>
28931#endif
28932#ifdef HAVE_STDBOOL_H
28933#include <stdbool.h>
28934#endif
28935
28936"
28937if test "x$ac_cv_type_bool" = xyes; then :
28938
28939
28940$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28941
28942
28943fi
28944
28945
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028946# check for sa_family_t
28947ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
28948#ifdef HAVE_SYS_SOCKET_H
28949#include <sys/socket.h>
28950#endif
28951
28952"
28953if test "x$ac_cv_type_sa_family_t" = xyes; then :
28954
28955$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
28956
28957else
28958
28959 # The windows name?
28960 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
28961#ifdef HAVE_SYS_SOCKET_H
28962#include <sys/socket.h>
28963#endif
28964
28965"
28966if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
28967
28968$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
28969
28970else
28971
28972$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
28973
28974fi
28975
28976
28977fi
28978
28979
Elliott Hughescac39802018-04-27 16:19:43 -070028980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28981$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070028982
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028983
28984 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070028985 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28986 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028987 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989$as_echo "no" >&6; }
28990
28991else
28992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28993/* end confdefs.h. */
28994
Elliott Hughescac39802018-04-27 16:19:43 -070028995 #include <time.h>
28996 #include <limits.h>
28997 time_t t = -1;
28998 return (t > 0);
28999
29000_ACEOF
29001if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070029002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29003$as_echo "yes" >&6; }
29004
29005$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
29006
29007
29008else
Elliott Hughescac39802018-04-27 16:19:43 -070029009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010$as_echo "no" >&6; }
29011
29012fi
29013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29014 conftest.$ac_objext conftest.beam conftest.$ac_ext
29015fi
29016
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029017 LD_LIBRARY_PATH=$old # restore
29018
Elliott Hughescac39802018-04-27 16:19:43 -070029019
Elliott Hughes82be86d2017-09-20 17:00:17 -070029020
Elliott Hughes82be86d2017-09-20 17:00:17 -070029021curl_includes_poll="\
29022/* includes start */
29023#ifdef HAVE_SYS_TYPES_H
29024# include <sys/types.h>
29025#endif
29026#ifdef HAVE_POLL_H
29027# include <poll.h>
29028#endif
29029#ifdef HAVE_SYS_POLL_H
29030# include <sys/poll.h>
29031#endif
29032/* includes end */"
29033 for ac_header in sys/types.h poll.h sys/poll.h
29034do :
29035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29036ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29037"
29038if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29039 cat >>confdefs.h <<_ACEOF
29040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29041_ACEOF
29042
29043fi
29044
29045done
29046
29047
29048
29049 #
29050 tst_poll_events_macro_defined="unknown"
29051 #
29052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29053/* end confdefs.h. */
29054
29055
29056 $curl_includes_poll
29057
29058int main (void)
29059{
29060
29061#if defined(events) || defined(revents)
29062 return 0;
29063#else
29064 force compilation error
29065#endif
29066
29067 ;
29068 return 0;
29069}
29070
29071_ACEOF
29072if ac_fn_c_try_compile "$LINENO"; then :
29073
29074 tst_poll_events_macro_defined="yes"
29075
29076else
29077
29078 tst_poll_events_macro_defined="no"
29079
29080fi
29081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29082 #
29083 if test "$tst_poll_events_macro_defined" = "yes"; then
29084 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29085
29086cat >>confdefs.h <<_EOF
29087#define CURL_PULL_SYS_POLL_H 1
29088_EOF
29089
29090 fi
29091 fi
29092 #
29093
29094
29095
29096 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29097#undef inline
29098#ifdef HAVE_WINDOWS_H
29099#ifndef WIN32_LEAN_AND_MEAN
29100#define WIN32_LEAN_AND_MEAN
29101#endif
29102#include <windows.h>
29103#ifdef HAVE_WINSOCK2_H
29104#include <winsock2.h>
29105#else
29106#ifdef HAVE_WINSOCK_H
29107#include <winsock.h>
29108#endif
29109#endif
29110#else
29111#ifdef HAVE_SYS_TYPES_H
29112#include <sys/types.h>
29113#endif
29114#ifdef HAVE_SYS_SOCKET_H
29115#include <sys/socket.h>
29116#endif
29117#ifdef HAVE_NETINET_IN_H
29118#include <netinet/in.h>
29119#endif
29120#ifdef HAVE_ARPA_INET_H
29121#include <arpa/inet.h>
29122#endif
29123#endif
29124
29125"
29126if test "x$ac_cv_type_in_addr_t" = xyes; then :
29127
29128else
29129
29130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29131$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29132if ${curl_cv_in_addr_t_equiv+:} false; then :
29133 $as_echo_n "(cached) " >&6
29134else
29135
29136 curl_cv_in_addr_t_equiv="unknown"
29137 for t in "unsigned long" int size_t unsigned long; do
29138 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29140/* end confdefs.h. */
29141
29142
29143#undef inline
29144#ifdef HAVE_WINDOWS_H
29145#ifndef WIN32_LEAN_AND_MEAN
29146#define WIN32_LEAN_AND_MEAN
29147#endif
29148#include <windows.h>
29149#ifdef HAVE_WINSOCK2_H
29150#include <winsock2.h>
29151#else
29152#ifdef HAVE_WINSOCK_H
29153#include <winsock.h>
29154#endif
29155#endif
29156#else
29157#ifdef HAVE_SYS_TYPES_H
29158#include <sys/types.h>
29159#endif
29160#ifdef HAVE_SYS_SOCKET_H
29161#include <sys/socket.h>
29162#endif
29163#ifdef HAVE_NETINET_IN_H
29164#include <netinet/in.h>
29165#endif
29166#ifdef HAVE_ARPA_INET_H
29167#include <arpa/inet.h>
29168#endif
29169#endif
29170
29171int main (void)
29172{
29173
29174 $t data = inet_addr ("1.2.3.4");
29175
29176 ;
29177 return 0;
29178}
29179
29180_ACEOF
29181if ac_fn_c_try_link "$LINENO"; then :
29182
29183 curl_cv_in_addr_t_equiv="$t"
29184
29185fi
29186rm -f core conftest.err conftest.$ac_objext \
29187 conftest$ac_exeext conftest.$ac_ext
29188 fi
29189 done
29190
29191fi
29192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29193$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29194 case "$curl_cv_in_addr_t_equiv" in
29195 unknown)
29196 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29197 ;;
29198 *)
29199
29200cat >>confdefs.h <<_ACEOF
29201#define in_addr_t $curl_cv_in_addr_t_equiv
29202_ACEOF
29203
29204 ;;
29205 esac
29206
29207fi
29208
29209
29210
29211
29212 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29213#undef inline
29214#ifdef HAVE_WINDOWS_H
29215#ifndef WIN32_LEAN_AND_MEAN
29216#define WIN32_LEAN_AND_MEAN
29217#endif
29218#include <windows.h>
29219#ifdef HAVE_WINSOCK2_H
29220#include <winsock2.h>
29221#endif
29222#else
29223#ifdef HAVE_SYS_TYPES_H
29224#include <sys/types.h>
29225#endif
29226#ifdef HAVE_SYS_SOCKET_H
29227#include <sys/socket.h>
29228#endif
29229#ifdef HAVE_NETINET_IN_H
29230#include <netinet/in.h>
29231#endif
29232#ifdef HAVE_ARPA_INET_H
29233#include <arpa/inet.h>
29234#endif
29235#endif
29236
29237"
29238if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29239
29240$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29241
29242fi
29243
29244
29245
29246
29247 for ac_header in signal.h
29248do :
29249 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29250if test "x$ac_cv_header_signal_h" = xyes; then :
29251 cat >>confdefs.h <<_ACEOF
29252#define HAVE_SIGNAL_H 1
29253_ACEOF
29254
29255fi
29256
29257done
29258
29259 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29260#ifdef HAVE_SIGNAL_H
29261#include <signal.h>
29262#endif
29263
29264"
29265if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29266
29267
29268$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29269
29270
29271fi
29272
29273 case "$ac_cv_type_sig_atomic_t" in
29274 yes)
29275 #
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29277$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29279/* end confdefs.h. */
29280
29281
29282#ifdef HAVE_SIGNAL_H
29283#include <signal.h>
29284#endif
29285
29286int main (void)
29287{
29288
29289 static volatile sig_atomic_t dummy = 0;
29290
29291 ;
29292 return 0;
29293}
29294
29295_ACEOF
29296if ac_fn_c_try_link "$LINENO"; then :
29297
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29299$as_echo "no" >&6; }
29300 curl_cv_sig_atomic_t_volatile="no"
29301
29302else
29303
29304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29305$as_echo "yes" >&6; }
29306 curl_cv_sig_atomic_t_volatile="yes"
29307
29308fi
29309rm -f core conftest.err conftest.$ac_objext \
29310 conftest$ac_exeext conftest.$ac_ext
29311 #
29312 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29313
29314$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29315
29316 fi
29317 ;;
29318 esac
29319
29320
29321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29322$as_echo_n "checking return type of signal handlers... " >&6; }
29323if ${ac_cv_type_signal+:} false; then :
29324 $as_echo_n "(cached) " >&6
29325else
29326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29327/* end confdefs.h. */
29328#include <sys/types.h>
29329#include <signal.h>
29330
29331int main (void)
29332{
29333return *(signal (0, 0)) (0) == 1;
29334 ;
29335 return 0;
29336}
29337_ACEOF
29338if ac_fn_c_try_compile "$LINENO"; then :
29339 ac_cv_type_signal=int
29340else
29341 ac_cv_type_signal=void
29342fi
29343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29344fi
29345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29346$as_echo "$ac_cv_type_signal" >&6; }
29347
29348cat >>confdefs.h <<_ACEOF
29349#define RETSIGTYPE $ac_cv_type_signal
29350_ACEOF
29351
29352
29353
29354
29355 for ac_header in sys/select.h sys/socket.h
29356do :
29357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29360 cat >>confdefs.h <<_ACEOF
29361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29362_ACEOF
29363
29364fi
29365
29366done
29367
29368 #
29369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29370$as_echo_n "checking for select... " >&6; }
29371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29372/* end confdefs.h. */
29373
29374
29375#undef inline
29376#ifdef HAVE_WINDOWS_H
29377#ifndef WIN32_LEAN_AND_MEAN
29378#define WIN32_LEAN_AND_MEAN
29379#endif
29380#include <windows.h>
29381#ifdef HAVE_WINSOCK2_H
29382#include <winsock2.h>
29383#else
29384#ifdef HAVE_WINSOCK_H
29385#include <winsock.h>
29386#endif
29387#endif
29388#endif
29389#ifdef HAVE_SYS_TYPES_H
29390#include <sys/types.h>
29391#endif
29392#ifdef HAVE_SYS_TIME_H
29393#include <sys/time.h>
29394#ifdef TIME_WITH_SYS_TIME
29395#include <time.h>
29396#endif
29397#else
29398#ifdef HAVE_TIME_H
29399#include <time.h>
29400#endif
29401#endif
29402#ifndef HAVE_WINDOWS_H
Haibo Huang65021c72019-03-27 15:37:23 -070029403#ifdef HAVE_PROTO_BSDSOCKET_H
29404#include <proto/bsdsocket.h>
29405struct Library *SocketBase = NULL;
29406#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
29407#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029408#ifdef HAVE_SYS_SELECT_H
29409#include <sys/select.h>
29410#endif
29411#ifdef HAVE_SYS_SOCKET_H
29412#include <sys/socket.h>
29413#endif
29414#endif
29415
29416int main (void)
29417{
29418
29419 select(0, 0, 0, 0, 0);
29420
29421 ;
29422 return 0;
29423}
29424
29425_ACEOF
29426if ac_fn_c_try_link "$LINENO"; then :
29427
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29429$as_echo "yes" >&6; }
29430 curl_cv_select="yes"
29431
29432else
29433
29434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29435$as_echo "no" >&6; }
29436 curl_cv_select="no"
29437
29438fi
29439rm -f core conftest.err conftest.$ac_objext \
29440 conftest$ac_exeext conftest.$ac_ext
29441 #
29442 if test "$curl_cv_select" = "yes"; then
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29444$as_echo_n "checking types of args and return type for select... " >&6; }
29445if ${curl_cv_func_select_args+:} false; then :
29446 $as_echo_n "(cached) " >&6
29447else
29448
29449 curl_cv_func_select_args="unknown"
29450 for sel_retv in 'int' 'ssize_t'; do
29451 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29452 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29453 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29454 if test "$curl_cv_func_select_args" = "unknown"; then
29455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29456/* end confdefs.h. */
29457
29458
29459#undef inline
29460#ifdef HAVE_WINDOWS_H
29461#ifndef WIN32_LEAN_AND_MEAN
29462#define WIN32_LEAN_AND_MEAN
29463#endif
29464#include <windows.h>
29465#ifdef HAVE_WINSOCK2_H
29466#include <winsock2.h>
29467#else
29468#ifdef HAVE_WINSOCK_H
29469#include <winsock.h>
29470#endif
29471#endif
29472#define SELECTCALLCONV PASCAL
29473#endif
29474#ifdef HAVE_SYS_TYPES_H
29475#include <sys/types.h>
29476#endif
29477#ifdef HAVE_SYS_TIME_H
29478#include <sys/time.h>
29479#ifdef TIME_WITH_SYS_TIME
29480#include <time.h>
29481#endif
29482#else
29483#ifdef HAVE_TIME_H
29484#include <time.h>
29485#endif
29486#endif
29487#ifndef HAVE_WINDOWS_H
Haibo Huang65021c72019-03-27 15:37:23 -070029488#ifdef HAVE_PROTO_BSDSOCKET_H
29489#include <proto/bsdsocket.h>
29490struct Library *SocketBase = NULL;
29491#define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
29492#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029493#ifdef HAVE_SYS_SELECT_H
29494#include <sys/select.h>
29495#endif
29496#ifdef HAVE_SYS_SOCKET_H
29497#include <sys/socket.h>
29498#endif
29499#define SELECTCALLCONV
29500#endif
29501#ifndef HAVE_STRUCT_TIMEVAL
29502 struct timeval {
29503 long tv_sec;
29504 long tv_usec;
29505 };
29506#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029507#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029508 extern $sel_retv SELECTCALLCONV
Haibo Huang51d9d882019-02-06 01:36:06 -080029509 select($sel_arg1,
Elliott Hughes82be86d2017-09-20 17:00:17 -070029510 $sel_arg234,
29511 $sel_arg234,
29512 $sel_arg234,
29513 $sel_arg5);
Haibo Huang65021c72019-03-27 15:37:23 -070029514#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029515
29516int main (void)
29517{
29518
29519 $sel_arg1 nfds=0;
29520 $sel_arg234 rfds=0;
29521 $sel_arg234 wfds=0;
29522 $sel_arg234 efds=0;
29523 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29524
29525 ;
29526 return 0;
29527}
29528
29529_ACEOF
29530if ac_fn_c_try_compile "$LINENO"; then :
29531
29532 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29533
29534fi
29535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29536 fi
29537 done
29538 done
29539 done
29540 done
29541
29542fi
29543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29544$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29545 if test "$curl_cv_func_select_args" = "unknown"; then
29546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29547$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29549$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29550 else
29551 select_prev_IFS=$IFS; IFS=','
29552 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29553 IFS=$select_prev_IFS
29554 shift
29555 #
29556 sel_qual_type_arg5=$3
29557 #
29558
29559cat >>confdefs.h <<_ACEOF
29560#define SELECT_TYPE_ARG1 $1
29561_ACEOF
29562
29563
29564cat >>confdefs.h <<_ACEOF
29565#define SELECT_TYPE_ARG234 $2
29566_ACEOF
29567
29568
29569cat >>confdefs.h <<_ACEOF
29570#define SELECT_TYPE_RETV $4
29571_ACEOF
29572
29573 #
29574 prev_sh_opts=$-
29575 #
29576 case $prev_sh_opts in
29577 *f*)
29578 ;;
29579 *)
29580 set -f
29581 ;;
29582 esac
29583 #
29584 case "$sel_qual_type_arg5" in
29585 const*)
29586 sel_qual_arg5=const
29587 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29588 ;;
29589 *)
29590 sel_qual_arg5=
29591 sel_type_arg5=$sel_qual_type_arg5
29592 ;;
29593 esac
29594 #
29595
29596cat >>confdefs.h <<_ACEOF
29597#define SELECT_QUAL_ARG5 $sel_qual_arg5
29598_ACEOF
29599
29600
29601cat >>confdefs.h <<_ACEOF
29602#define SELECT_TYPE_ARG5 $sel_type_arg5
29603_ACEOF
29604
29605 #
29606 case $prev_sh_opts in
29607 *f*)
29608 ;;
29609 *)
29610 set +f
29611 ;;
29612 esac
29613 #
29614
29615cat >>confdefs.h <<_ACEOF
29616#define HAVE_SELECT 1
29617_ACEOF
29618
29619 curl_cv_func_select="yes"
29620 fi
29621 fi
29622
29623
29624
29625 for ac_header in sys/types.h sys/socket.h
29626do :
29627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29628ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29629if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29630 cat >>confdefs.h <<_ACEOF
29631#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29632_ACEOF
29633
29634fi
29635
29636done
29637
29638 #
29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29640$as_echo_n "checking for recv... " >&6; }
29641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29642/* end confdefs.h. */
29643
29644
29645#undef inline
29646#ifdef HAVE_WINDOWS_H
29647#ifndef WIN32_LEAN_AND_MEAN
29648#define WIN32_LEAN_AND_MEAN
29649#endif
29650#include <windows.h>
29651#ifdef HAVE_WINSOCK2_H
29652#include <winsock2.h>
29653#else
29654#ifdef HAVE_WINSOCK_H
29655#include <winsock.h>
29656#endif
29657#endif
29658#else
Haibo Huang65021c72019-03-27 15:37:23 -070029659#ifdef HAVE_PROTO_BSDSOCKET_H
29660#include <proto/bsdsocket.h>
29661struct Library *SocketBase = NULL;
29662#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029663#ifdef HAVE_SYS_TYPES_H
29664#include <sys/types.h>
29665#endif
29666#ifdef HAVE_SYS_SOCKET_H
29667#include <sys/socket.h>
29668#endif
29669#endif
29670
29671int main (void)
29672{
29673
29674 recv(0, 0, 0, 0);
29675
29676 ;
29677 return 0;
29678}
29679
29680_ACEOF
29681if ac_fn_c_try_link "$LINENO"; then :
29682
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29684$as_echo "yes" >&6; }
29685 curl_cv_recv="yes"
29686
29687else
29688
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29690$as_echo "no" >&6; }
29691 curl_cv_recv="no"
29692
29693fi
29694rm -f core conftest.err conftest.$ac_objext \
29695 conftest$ac_exeext conftest.$ac_ext
29696 #
29697 if test "$curl_cv_recv" = "yes"; then
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29699$as_echo_n "checking types of args and return type for recv... " >&6; }
29700if ${curl_cv_func_recv_args+:} false; then :
29701 $as_echo_n "(cached) " >&6
29702else
29703
29704 curl_cv_func_recv_args="unknown"
29705 for recv_retv in 'int' 'ssize_t'; do
29706 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29707 for recv_arg2 in 'char *' 'void *'; do
29708 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29709 for recv_arg4 in 'int' 'unsigned int'; do
29710 if test "$curl_cv_func_recv_args" = "unknown"; then
29711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29712/* end confdefs.h. */
29713
29714
29715#undef inline
29716#ifdef HAVE_WINDOWS_H
29717#ifndef WIN32_LEAN_AND_MEAN
29718#define WIN32_LEAN_AND_MEAN
29719#endif
29720#include <windows.h>
29721#ifdef HAVE_WINSOCK2_H
29722#include <winsock2.h>
29723#else
29724#ifdef HAVE_WINSOCK_H
29725#include <winsock.h>
29726#endif
29727#endif
29728#define RECVCALLCONV PASCAL
29729#else
Haibo Huang65021c72019-03-27 15:37:23 -070029730#ifdef HAVE_PROTO_BSDSOCKET_H
29731#include <proto/bsdsocket.h>
29732struct Library *SocketBase = NULL;
29733#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029734#ifdef HAVE_SYS_TYPES_H
29735#include <sys/types.h>
29736#endif
29737#ifdef HAVE_SYS_SOCKET_H
29738#include <sys/socket.h>
29739#endif
29740#define RECVCALLCONV
29741#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029742#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029743 extern $recv_retv RECVCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070029744 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
Haibo Huang65021c72019-03-27 15:37:23 -070029745#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029746
29747int main (void)
29748{
29749
29750 $recv_arg1 s=0;
29751 $recv_arg2 buf=0;
29752 $recv_arg3 len=0;
29753 $recv_arg4 flags=0;
29754 $recv_retv res = recv(s, buf, len, flags);
29755
29756 ;
29757 return 0;
29758}
29759
29760_ACEOF
29761if ac_fn_c_try_compile "$LINENO"; then :
29762
29763 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29764
29765fi
29766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29767 fi
29768 done
29769 done
29770 done
29771 done
29772 done
29773
29774fi
29775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29776$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29777 if test "$curl_cv_func_recv_args" = "unknown"; then
29778 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29779 else
29780 recv_prev_IFS=$IFS; IFS=','
29781 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29782 IFS=$recv_prev_IFS
29783 shift
29784 #
29785
29786cat >>confdefs.h <<_ACEOF
29787#define RECV_TYPE_ARG1 $1
29788_ACEOF
29789
29790
29791cat >>confdefs.h <<_ACEOF
29792#define RECV_TYPE_ARG2 $2
29793_ACEOF
29794
29795
29796cat >>confdefs.h <<_ACEOF
29797#define RECV_TYPE_ARG3 $3
29798_ACEOF
29799
29800
29801cat >>confdefs.h <<_ACEOF
29802#define RECV_TYPE_ARG4 $4
29803_ACEOF
29804
29805
29806cat >>confdefs.h <<_ACEOF
29807#define RECV_TYPE_RETV $5
29808_ACEOF
29809
29810 #
29811
29812cat >>confdefs.h <<_ACEOF
29813#define HAVE_RECV 1
29814_ACEOF
29815
29816 curl_cv_func_recv="yes"
29817 fi
29818 else
29819 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29820 fi
29821
29822
29823 for ac_header in sys/types.h sys/socket.h
29824do :
29825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29826ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29827if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29828 cat >>confdefs.h <<_ACEOF
29829#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29830_ACEOF
29831
29832fi
29833
29834done
29835
29836 #
29837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29838$as_echo_n "checking for send... " >&6; }
29839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29840/* end confdefs.h. */
29841
29842
29843#undef inline
29844#ifdef HAVE_WINDOWS_H
29845#ifndef WIN32_LEAN_AND_MEAN
29846#define WIN32_LEAN_AND_MEAN
29847#endif
29848#include <windows.h>
29849#ifdef HAVE_WINSOCK2_H
29850#include <winsock2.h>
29851#else
29852#ifdef HAVE_WINSOCK_H
29853#include <winsock.h>
29854#endif
29855#endif
29856#else
Haibo Huang65021c72019-03-27 15:37:23 -070029857#ifdef HAVE_PROTO_BSDSOCKET_H
29858#include <proto/bsdsocket.h>
29859struct Library *SocketBase = NULL;
29860#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029861#ifdef HAVE_SYS_TYPES_H
29862#include <sys/types.h>
29863#endif
29864#ifdef HAVE_SYS_SOCKET_H
29865#include <sys/socket.h>
29866#endif
29867#endif
29868
29869int main (void)
29870{
29871
29872 send(0, 0, 0, 0);
29873
29874 ;
29875 return 0;
29876}
29877
29878_ACEOF
29879if ac_fn_c_try_link "$LINENO"; then :
29880
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29882$as_echo "yes" >&6; }
29883 curl_cv_send="yes"
29884
29885else
29886
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29888$as_echo "no" >&6; }
29889 curl_cv_send="no"
29890
29891fi
29892rm -f core conftest.err conftest.$ac_objext \
29893 conftest$ac_exeext conftest.$ac_ext
29894 #
29895 if test "$curl_cv_send" = "yes"; then
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29897$as_echo_n "checking types of args and return type for send... " >&6; }
29898if ${curl_cv_func_send_args+:} false; then :
29899 $as_echo_n "(cached) " >&6
29900else
29901
29902 curl_cv_func_send_args="unknown"
29903 for send_retv in 'int' 'ssize_t'; do
29904 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29905 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29906 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29907 for send_arg4 in 'int' 'unsigned int'; do
29908 if test "$curl_cv_func_send_args" = "unknown"; then
29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910/* end confdefs.h. */
29911
29912
29913#undef inline
29914#ifdef HAVE_WINDOWS_H
29915#ifndef WIN32_LEAN_AND_MEAN
29916#define WIN32_LEAN_AND_MEAN
29917#endif
29918#include <windows.h>
29919#ifdef HAVE_WINSOCK2_H
29920#include <winsock2.h>
29921#else
29922#ifdef HAVE_WINSOCK_H
29923#include <winsock.h>
29924#endif
29925#endif
29926#define SENDCALLCONV PASCAL
29927#else
Haibo Huang65021c72019-03-27 15:37:23 -070029928#ifdef HAVE_PROTO_BSDSOCKET_H
29929#include <proto/bsdsocket.h>
29930struct Library *SocketBase = NULL;
29931#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029932#ifdef HAVE_SYS_TYPES_H
29933#include <sys/types.h>
29934#endif
29935#ifdef HAVE_SYS_SOCKET_H
29936#include <sys/socket.h>
29937#endif
29938#define SENDCALLCONV
29939#endif
Haibo Huang65021c72019-03-27 15:37:23 -070029940#ifndef HAVE_PROTO_BSDSOCKET_H
Elliott Hughes82be86d2017-09-20 17:00:17 -070029941 extern $send_retv SENDCALLCONV
Elliott Hughes82be86d2017-09-20 17:00:17 -070029942 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
Haibo Huang65021c72019-03-27 15:37:23 -070029943#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070029944
29945int main (void)
29946{
29947
29948 $send_arg1 s=0;
29949 $send_arg3 len=0;
29950 $send_arg4 flags=0;
29951 $send_retv res = send(s, 0, len, flags);
29952
29953 ;
29954 return 0;
29955}
29956
29957_ACEOF
29958if ac_fn_c_try_compile "$LINENO"; then :
29959
29960 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29961
29962fi
29963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29964 fi
29965 done
29966 done
29967 done
29968 done
29969 done
29970
29971fi
29972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29973$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29974 if test "$curl_cv_func_send_args" = "unknown"; then
29975 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29976 else
29977 send_prev_IFS=$IFS; IFS=','
29978 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29979 IFS=$send_prev_IFS
29980 shift
29981 #
29982 send_qual_type_arg2=$2
29983 #
29984
29985cat >>confdefs.h <<_ACEOF
29986#define SEND_TYPE_ARG1 $1
29987_ACEOF
29988
29989
29990cat >>confdefs.h <<_ACEOF
29991#define SEND_TYPE_ARG3 $3
29992_ACEOF
29993
29994
29995cat >>confdefs.h <<_ACEOF
29996#define SEND_TYPE_ARG4 $4
29997_ACEOF
29998
29999
30000cat >>confdefs.h <<_ACEOF
30001#define SEND_TYPE_RETV $5
30002_ACEOF
30003
30004 #
30005 prev_sh_opts=$-
30006 #
30007 case $prev_sh_opts in
30008 *f*)
30009 ;;
30010 *)
30011 set -f
30012 ;;
30013 esac
30014 #
30015 case "$send_qual_type_arg2" in
30016 const*)
30017 send_qual_arg2=const
30018 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30019 ;;
30020 *)
30021 send_qual_arg2=
30022 send_type_arg2=$send_qual_type_arg2
30023 ;;
30024 esac
30025 #
30026
30027cat >>confdefs.h <<_ACEOF
30028#define SEND_QUAL_ARG2 $send_qual_arg2
30029_ACEOF
30030
30031
30032cat >>confdefs.h <<_ACEOF
30033#define SEND_TYPE_ARG2 $send_type_arg2
30034_ACEOF
30035
30036 #
30037 case $prev_sh_opts in
30038 *f*)
30039 ;;
30040 *)
30041 set +f
30042 ;;
30043 esac
30044 #
30045
30046cat >>confdefs.h <<_ACEOF
30047#define HAVE_SEND 1
30048_ACEOF
30049
30050 curl_cv_func_send="yes"
30051 fi
30052 else
30053 as_fn_error $? "Unable to link function send" "$LINENO" 5
30054 fi
30055
30056
30057 for ac_header in sys/types.h sys/socket.h
30058do :
30059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30060ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30061if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30062 cat >>confdefs.h <<_ACEOF
30063#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30064_ACEOF
30065
30066fi
30067
30068done
30069
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30071$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30072if ${curl_cv_msg_nosignal+:} false; then :
30073 $as_echo_n "(cached) " >&6
30074else
30075
30076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30077/* end confdefs.h. */
30078
30079
30080#undef inline
30081#ifdef HAVE_WINDOWS_H
30082#ifndef WIN32_LEAN_AND_MEAN
30083#define WIN32_LEAN_AND_MEAN
30084#endif
30085#include <windows.h>
30086#ifdef HAVE_WINSOCK2_H
30087#include <winsock2.h>
30088#else
30089#ifdef HAVE_WINSOCK_H
30090#include <winsock.h>
30091#endif
30092#endif
30093#else
Haibo Huang65021c72019-03-27 15:37:23 -070030094#ifdef HAVE_PROTO_BSDSOCKET_H
30095#include <proto/bsdsocket.h>
30096struct Library *SocketBase = NULL;
30097#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070030098#ifdef HAVE_SYS_TYPES_H
30099#include <sys/types.h>
30100#endif
30101#ifdef HAVE_SYS_SOCKET_H
30102#include <sys/socket.h>
30103#endif
30104#endif
30105
30106int main (void)
30107{
30108
30109 int flag=MSG_NOSIGNAL;
30110
30111 ;
30112 return 0;
30113}
30114
30115_ACEOF
30116if ac_fn_c_try_compile "$LINENO"; then :
30117
30118 curl_cv_msg_nosignal="yes"
30119
30120else
30121
30122 curl_cv_msg_nosignal="no"
30123
30124fi
30125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30126
30127fi
30128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30129$as_echo "$curl_cv_msg_nosignal" >&6; }
30130 case "$curl_cv_msg_nosignal" in
30131 yes)
30132
30133cat >>confdefs.h <<_ACEOF
30134#define HAVE_MSG_NOSIGNAL 1
30135_ACEOF
30136
30137 ;;
30138 esac
30139
30140
30141
30142curl_includes_unistd="\
30143/* includes start */
30144#ifdef HAVE_SYS_TYPES_H
30145# include <sys/types.h>
30146#endif
30147#ifdef HAVE_UNISTD_H
30148# include <unistd.h>
30149#endif
30150/* includes end */"
30151 for ac_header in sys/types.h unistd.h
30152do :
30153 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30154ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30155"
30156if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30157 cat >>confdefs.h <<_ACEOF
30158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30159_ACEOF
30160
30161fi
30162
30163done
30164
30165
30166
30167 #
30168 tst_links_alarm="unknown"
30169 tst_proto_alarm="unknown"
30170 tst_compi_alarm="unknown"
30171 tst_allow_alarm="unknown"
30172 #
30173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30174$as_echo_n "checking if alarm can be linked... " >&6; }
30175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30176/* end confdefs.h. */
30177
30178
30179#define alarm innocuous_alarm
30180#ifdef __STDC__
30181# include <limits.h>
30182#else
30183# include <assert.h>
30184#endif
30185#undef alarm
30186#ifdef __cplusplus
30187extern "C"
30188#endif
30189char alarm ();
30190#if defined __stub_alarm || defined __stub___alarm
30191choke me
30192#endif
30193
30194int main (void)
30195{
30196return alarm ();
30197 ;
30198 return 0;
30199}
30200
30201_ACEOF
30202if ac_fn_c_try_link "$LINENO"; then :
30203
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30205$as_echo "yes" >&6; }
30206 tst_links_alarm="yes"
30207
30208else
30209
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30211$as_echo "no" >&6; }
30212 tst_links_alarm="no"
30213
30214fi
30215rm -f core conftest.err conftest.$ac_objext \
30216 conftest$ac_exeext conftest.$ac_ext
30217 #
30218 if test "$tst_links_alarm" = "yes"; then
30219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30220$as_echo_n "checking if alarm is prototyped... " >&6; }
30221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30222/* end confdefs.h. */
30223
30224 $curl_includes_unistd
30225
30226_ACEOF
30227if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30228 $EGREP "alarm" >/dev/null 2>&1; then :
30229
30230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30231$as_echo "yes" >&6; }
30232 tst_proto_alarm="yes"
30233
30234else
30235
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30237$as_echo "no" >&6; }
30238 tst_proto_alarm="no"
30239
30240fi
30241rm -f conftest*
30242
30243 fi
30244 #
30245 if test "$tst_proto_alarm" = "yes"; then
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30247$as_echo_n "checking if alarm is compilable... " >&6; }
30248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30249/* end confdefs.h. */
30250
30251
30252 $curl_includes_unistd
30253
30254int main (void)
30255{
30256
30257 if(0 != alarm(0))
30258 return 1;
30259
30260 ;
30261 return 0;
30262}
30263
30264_ACEOF
30265if ac_fn_c_try_compile "$LINENO"; then :
30266
30267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30268$as_echo "yes" >&6; }
30269 tst_compi_alarm="yes"
30270
30271else
30272
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30274$as_echo "no" >&6; }
30275 tst_compi_alarm="no"
30276
30277fi
30278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30279 fi
30280 #
30281 if test "$tst_compi_alarm" = "yes"; then
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30283$as_echo_n "checking if alarm usage allowed... " >&6; }
30284 if test "x$curl_disallow_alarm" != "xyes"; then
30285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30286$as_echo "yes" >&6; }
30287 tst_allow_alarm="yes"
30288 else
30289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30290$as_echo "no" >&6; }
30291 tst_allow_alarm="no"
30292 fi
30293 fi
30294 #
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30296$as_echo_n "checking if alarm might be used... " >&6; }
30297 if test "$tst_links_alarm" = "yes" &&
30298 test "$tst_proto_alarm" = "yes" &&
30299 test "$tst_compi_alarm" = "yes" &&
30300 test "$tst_allow_alarm" = "yes"; then
30301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30302$as_echo "yes" >&6; }
30303
30304cat >>confdefs.h <<_ACEOF
30305#define HAVE_ALARM 1
30306_ACEOF
30307
30308 curl_cv_func_alarm="yes"
30309 else
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30311$as_echo "no" >&6; }
30312 curl_cv_func_alarm="no"
30313 fi
30314
30315
30316curl_includes_string="\
30317/* includes start */
30318#ifdef HAVE_SYS_TYPES_H
30319# include <sys/types.h>
30320#endif
30321#ifdef HAVE_STRING_H
30322# include <string.h>
30323#endif
30324#ifdef HAVE_STRINGS_H
30325# include <strings.h>
30326#endif
30327/* includes end */"
30328 for ac_header in sys/types.h string.h strings.h
30329do :
30330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30331ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30332"
30333if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30334 cat >>confdefs.h <<_ACEOF
30335#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30336_ACEOF
30337
30338fi
30339
30340done
30341
30342
30343
30344curl_includes_libgen="\
30345/* includes start */
30346#ifdef HAVE_SYS_TYPES_H
30347# include <sys/types.h>
30348#endif
30349#ifdef HAVE_LIBGEN_H
30350# include <libgen.h>
30351#endif
30352/* includes end */"
30353 for ac_header in sys/types.h libgen.h
30354do :
30355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30356ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30357"
30358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30359 cat >>confdefs.h <<_ACEOF
30360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30361_ACEOF
30362
30363fi
30364
30365done
30366
30367
30368
30369 #
30370 tst_links_basename="unknown"
30371 tst_proto_basename="unknown"
30372 tst_compi_basename="unknown"
30373 tst_allow_basename="unknown"
30374 #
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30376$as_echo_n "checking if basename can be linked... " >&6; }
30377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30378/* end confdefs.h. */
30379
30380
30381#define basename innocuous_basename
30382#ifdef __STDC__
30383# include <limits.h>
30384#else
30385# include <assert.h>
30386#endif
30387#undef basename
30388#ifdef __cplusplus
30389extern "C"
30390#endif
30391char basename ();
30392#if defined __stub_basename || defined __stub___basename
30393choke me
30394#endif
30395
30396int main (void)
30397{
30398return basename ();
30399 ;
30400 return 0;
30401}
30402
30403_ACEOF
30404if ac_fn_c_try_link "$LINENO"; then :
30405
30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30407$as_echo "yes" >&6; }
30408 tst_links_basename="yes"
30409
30410else
30411
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30413$as_echo "no" >&6; }
30414 tst_links_basename="no"
30415
30416fi
30417rm -f core conftest.err conftest.$ac_objext \
30418 conftest$ac_exeext conftest.$ac_ext
30419 #
30420 if test "$tst_links_basename" = "yes"; then
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30422$as_echo_n "checking if basename is prototyped... " >&6; }
30423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30424/* end confdefs.h. */
30425
30426 $curl_includes_string
30427 $curl_includes_libgen
30428 $curl_includes_unistd
30429
30430_ACEOF
30431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30432 $EGREP "basename" >/dev/null 2>&1; then :
30433
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30435$as_echo "yes" >&6; }
30436 tst_proto_basename="yes"
30437
30438else
30439
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30441$as_echo "no" >&6; }
30442 tst_proto_basename="no"
30443
30444fi
30445rm -f conftest*
30446
30447 fi
30448 #
30449 if test "$tst_proto_basename" = "yes"; then
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30451$as_echo_n "checking if basename is compilable... " >&6; }
30452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30453/* end confdefs.h. */
30454
30455
30456 $curl_includes_string
30457 $curl_includes_libgen
30458 $curl_includes_unistd
30459
30460int main (void)
30461{
30462
30463 if(0 != basename(0))
30464 return 1;
30465
30466 ;
30467 return 0;
30468}
30469
30470_ACEOF
30471if ac_fn_c_try_compile "$LINENO"; then :
30472
30473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30474$as_echo "yes" >&6; }
30475 tst_compi_basename="yes"
30476
30477else
30478
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30480$as_echo "no" >&6; }
30481 tst_compi_basename="no"
30482
30483fi
30484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30485 fi
30486 #
30487 if test "$tst_compi_basename" = "yes"; then
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30489$as_echo_n "checking if basename usage allowed... " >&6; }
30490 if test "x$curl_disallow_basename" != "xyes"; then
30491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30492$as_echo "yes" >&6; }
30493 tst_allow_basename="yes"
30494 else
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30496$as_echo "no" >&6; }
30497 tst_allow_basename="no"
30498 fi
30499 fi
30500 #
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30502$as_echo_n "checking if basename might be used... " >&6; }
30503 if test "$tst_links_basename" = "yes" &&
30504 test "$tst_proto_basename" = "yes" &&
30505 test "$tst_compi_basename" = "yes" &&
30506 test "$tst_allow_basename" = "yes"; then
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30508$as_echo "yes" >&6; }
30509
30510cat >>confdefs.h <<_ACEOF
30511#define HAVE_BASENAME 1
30512_ACEOF
30513
30514 curl_cv_func_basename="yes"
30515 else
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30517$as_echo "no" >&6; }
30518 curl_cv_func_basename="no"
30519 fi
30520
30521
30522curl_includes_socket="\
30523/* includes start */
30524#ifdef HAVE_SYS_TYPES_H
30525# include <sys/types.h>
30526#endif
30527#ifdef HAVE_SOCKET_H
30528# include <socket.h>
30529#endif
30530/* includes end */"
30531 for ac_header in sys/types.h socket.h
30532do :
30533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30534ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30535"
30536if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30537 cat >>confdefs.h <<_ACEOF
30538#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30539_ACEOF
30540
30541fi
30542
30543done
30544
30545
30546
30547 #
30548 tst_links_closesocket="unknown"
30549 tst_proto_closesocket="unknown"
30550 tst_compi_closesocket="unknown"
30551 tst_allow_closesocket="unknown"
30552 #
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30554$as_echo_n "checking if closesocket can be linked... " >&6; }
30555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30556/* end confdefs.h. */
30557
30558
30559 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030560 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030561 $curl_includes_socket
30562
30563int main (void)
30564{
30565
30566 if(0 != closesocket(0))
30567 return 1;
30568
30569 ;
30570 return 0;
30571}
30572
30573_ACEOF
30574if ac_fn_c_try_link "$LINENO"; then :
30575
30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30577$as_echo "yes" >&6; }
30578 tst_links_closesocket="yes"
30579
30580else
30581
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30583$as_echo "no" >&6; }
30584 tst_links_closesocket="no"
30585
30586fi
30587rm -f core conftest.err conftest.$ac_objext \
30588 conftest$ac_exeext conftest.$ac_ext
30589 #
30590 if test "$tst_links_closesocket" = "yes"; then
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30592$as_echo_n "checking if closesocket is prototyped... " >&6; }
30593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30594/* end confdefs.h. */
30595
30596 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030597 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030598 $curl_includes_socket
30599
30600_ACEOF
30601if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30602 $EGREP "closesocket" >/dev/null 2>&1; then :
30603
30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30605$as_echo "yes" >&6; }
30606 tst_proto_closesocket="yes"
30607
30608else
30609
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30611$as_echo "no" >&6; }
30612 tst_proto_closesocket="no"
30613
30614fi
30615rm -f conftest*
30616
30617 fi
30618 #
30619 if test "$tst_proto_closesocket" = "yes"; then
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30621$as_echo_n "checking if closesocket is compilable... " >&6; }
30622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30623/* end confdefs.h. */
30624
30625
30626 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030627 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030628 $curl_includes_socket
30629
30630int main (void)
30631{
30632
30633 if(0 != closesocket(0))
30634 return 1;
30635
30636 ;
30637 return 0;
30638}
30639
30640_ACEOF
30641if ac_fn_c_try_compile "$LINENO"; then :
30642
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30644$as_echo "yes" >&6; }
30645 tst_compi_closesocket="yes"
30646
30647else
30648
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30650$as_echo "no" >&6; }
30651 tst_compi_closesocket="no"
30652
30653fi
30654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30655 fi
30656 #
30657 if test "$tst_compi_closesocket" = "yes"; then
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30659$as_echo_n "checking if closesocket usage allowed... " >&6; }
30660 if test "x$curl_disallow_closesocket" != "xyes"; then
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30662$as_echo "yes" >&6; }
30663 tst_allow_closesocket="yes"
30664 else
30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30666$as_echo "no" >&6; }
30667 tst_allow_closesocket="no"
30668 fi
30669 fi
30670 #
30671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30672$as_echo_n "checking if closesocket might be used... " >&6; }
30673 if test "$tst_links_closesocket" = "yes" &&
30674 test "$tst_proto_closesocket" = "yes" &&
30675 test "$tst_compi_closesocket" = "yes" &&
30676 test "$tst_allow_closesocket" = "yes"; then
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30678$as_echo "yes" >&6; }
30679
30680cat >>confdefs.h <<_ACEOF
30681#define HAVE_CLOSESOCKET 1
30682_ACEOF
30683
30684 curl_cv_func_closesocket="yes"
30685 else
30686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30687$as_echo "no" >&6; }
30688 curl_cv_func_closesocket="no"
30689 fi
30690
30691
Elliott Hughesa93fb052018-12-12 14:22:48 -080030692curl_includes_sys_socket="\
30693/* includes start */
30694#ifdef HAVE_SYS_TYPES_H
30695# include <sys/types.h>
30696#endif
30697#ifdef HAVE_SYS_SOCKET_H
30698# include <sys/socket.h>
30699#endif
30700/* includes end */"
30701 for ac_header in sys/types.h sys/socket.h
30702do :
30703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30704ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30705"
30706if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30707 cat >>confdefs.h <<_ACEOF
30708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30709_ACEOF
30710
30711fi
30712
30713done
30714
30715
30716
Elliott Hughes82be86d2017-09-20 17:00:17 -070030717 #
30718 tst_links_closesocket_camel="unknown"
30719 tst_proto_closesocket_camel="unknown"
30720 tst_compi_closesocket_camel="unknown"
30721 tst_allow_closesocket_camel="unknown"
30722 #
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30724$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30726/* end confdefs.h. */
30727
30728
30729 $curl_includes_sys_socket
30730
30731int main (void)
30732{
30733
30734 if(0 != CloseSocket(0))
30735 return 1;
30736
30737 ;
30738 return 0;
30739}
30740
30741_ACEOF
30742if ac_fn_c_try_link "$LINENO"; then :
30743
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30745$as_echo "yes" >&6; }
30746 tst_links_closesocket_camel="yes"
30747
30748else
30749
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30751$as_echo "no" >&6; }
30752 tst_links_closesocket_camel="no"
30753
30754fi
30755rm -f core conftest.err conftest.$ac_objext \
30756 conftest$ac_exeext conftest.$ac_ext
30757 #
30758 if test "$tst_links_closesocket_camel" = "yes"; then
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30760$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30762/* end confdefs.h. */
30763
30764 $curl_includes_sys_socket
30765
30766_ACEOF
30767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30768 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30769
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30771$as_echo "yes" >&6; }
30772 tst_proto_closesocket_camel="yes"
30773
30774else
30775
30776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30777$as_echo "no" >&6; }
30778 tst_proto_closesocket_camel="no"
30779
30780fi
30781rm -f conftest*
30782
30783 fi
30784 #
30785 if test "$tst_proto_closesocket_camel" = "yes"; then
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30787$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30789/* end confdefs.h. */
30790
30791
30792 $curl_includes_sys_socket
30793
30794int main (void)
30795{
30796
30797 if(0 != CloseSocket(0))
30798 return 1;
30799
30800 ;
30801 return 0;
30802}
30803
30804_ACEOF
30805if ac_fn_c_try_compile "$LINENO"; then :
30806
30807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30808$as_echo "yes" >&6; }
30809 tst_compi_closesocket_camel="yes"
30810
30811else
30812
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30814$as_echo "no" >&6; }
30815 tst_compi_closesocket_camel="no"
30816
30817fi
30818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30819 fi
30820 #
30821 if test "$tst_compi_closesocket_camel" = "yes"; then
30822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30823$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30824 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30826$as_echo "yes" >&6; }
30827 tst_allow_closesocket_camel="yes"
30828 else
30829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30830$as_echo "no" >&6; }
30831 tst_allow_closesocket_camel="no"
30832 fi
30833 fi
30834 #
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30836$as_echo_n "checking if CloseSocket might be used... " >&6; }
30837 if test "$tst_links_closesocket_camel" = "yes" &&
30838 test "$tst_proto_closesocket_camel" = "yes" &&
30839 test "$tst_compi_closesocket_camel" = "yes" &&
30840 test "$tst_allow_closesocket_camel" = "yes"; then
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30842$as_echo "yes" >&6; }
30843
30844cat >>confdefs.h <<_ACEOF
30845#define HAVE_CLOSESOCKET_CAMEL 1
30846_ACEOF
30847
30848 curl_cv_func_closesocket_camel="yes"
30849 else
30850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30851$as_echo "no" >&6; }
30852 curl_cv_func_closesocket_camel="no"
30853 fi
30854
30855
30856 #
30857 tst_links_connect="unknown"
30858 tst_proto_connect="unknown"
30859 tst_compi_connect="unknown"
30860 tst_allow_connect="unknown"
30861 #
30862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30863$as_echo_n "checking if connect can be linked... " >&6; }
30864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30865/* end confdefs.h. */
30866
30867
30868 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030869 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030870 $curl_includes_sys_socket
30871 $curl_includes_socket
30872
30873int main (void)
30874{
30875
30876 if(0 != connect(0, 0, 0))
30877 return 1;
30878
30879 ;
30880 return 0;
30881}
30882
30883_ACEOF
30884if ac_fn_c_try_link "$LINENO"; then :
30885
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30887$as_echo "yes" >&6; }
30888 tst_links_connect="yes"
30889
30890else
30891
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30893$as_echo "no" >&6; }
30894 tst_links_connect="no"
30895
30896fi
30897rm -f core conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
30899 #
30900 if test "$tst_links_connect" = "yes"; then
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30902$as_echo_n "checking if connect is prototyped... " >&6; }
30903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30904/* end confdefs.h. */
30905
30906 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030907 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030908 $curl_includes_sys_socket
30909 $curl_includes_socket
30910
30911_ACEOF
30912if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30913 $EGREP "connect" >/dev/null 2>&1; then :
30914
30915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30916$as_echo "yes" >&6; }
30917 tst_proto_connect="yes"
30918
30919else
30920
30921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30922$as_echo "no" >&6; }
30923 tst_proto_connect="no"
30924
30925fi
30926rm -f conftest*
30927
30928 fi
30929 #
30930 if test "$tst_proto_connect" = "yes"; then
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30932$as_echo_n "checking if connect is compilable... " >&6; }
30933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30934/* end confdefs.h. */
30935
30936
30937 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070030938 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070030939 $curl_includes_sys_socket
30940 $curl_includes_socket
30941
30942int main (void)
30943{
30944
30945 if(0 != connect(0, 0, 0))
30946 return 1;
30947
30948 ;
30949 return 0;
30950}
30951
30952_ACEOF
30953if ac_fn_c_try_compile "$LINENO"; then :
30954
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30956$as_echo "yes" >&6; }
30957 tst_compi_connect="yes"
30958
30959else
30960
30961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30962$as_echo "no" >&6; }
30963 tst_compi_connect="no"
30964
30965fi
30966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30967 fi
30968 #
30969 if test "$tst_compi_connect" = "yes"; then
30970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30971$as_echo_n "checking if connect usage allowed... " >&6; }
30972 if test "x$curl_disallow_connect" != "xyes"; then
30973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30974$as_echo "yes" >&6; }
30975 tst_allow_connect="yes"
30976 else
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30978$as_echo "no" >&6; }
30979 tst_allow_connect="no"
30980 fi
30981 fi
30982 #
30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30984$as_echo_n "checking if connect might be used... " >&6; }
30985 if test "$tst_links_connect" = "yes" &&
30986 test "$tst_proto_connect" = "yes" &&
30987 test "$tst_compi_connect" = "yes" &&
30988 test "$tst_allow_connect" = "yes"; then
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30990$as_echo "yes" >&6; }
30991
30992cat >>confdefs.h <<_ACEOF
30993#define HAVE_CONNECT 1
30994_ACEOF
30995
30996 curl_cv_func_connect="yes"
30997 else
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30999$as_echo "no" >&6; }
31000 curl_cv_func_connect="no"
31001 fi
31002
31003
31004curl_includes_fcntl="\
31005/* includes start */
31006#ifdef HAVE_SYS_TYPES_H
31007# include <sys/types.h>
31008#endif
31009#ifdef HAVE_UNISTD_H
31010# include <unistd.h>
31011#endif
31012#ifdef HAVE_FCNTL_H
31013# include <fcntl.h>
31014#endif
31015/* includes end */"
31016 for ac_header in sys/types.h unistd.h fcntl.h
31017do :
31018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31019ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31020"
31021if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31022 cat >>confdefs.h <<_ACEOF
31023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31024_ACEOF
31025
31026fi
31027
31028done
31029
31030
31031
31032 #
31033 tst_links_fcntl="unknown"
31034 tst_proto_fcntl="unknown"
31035 tst_compi_fcntl="unknown"
31036 tst_allow_fcntl="unknown"
31037 #
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31039$as_echo_n "checking if fcntl can be linked... " >&6; }
31040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31041/* end confdefs.h. */
31042
31043
31044#define fcntl innocuous_fcntl
31045#ifdef __STDC__
31046# include <limits.h>
31047#else
31048# include <assert.h>
31049#endif
31050#undef fcntl
31051#ifdef __cplusplus
31052extern "C"
31053#endif
31054char fcntl ();
31055#if defined __stub_fcntl || defined __stub___fcntl
31056choke me
31057#endif
31058
31059int main (void)
31060{
31061return fcntl ();
31062 ;
31063 return 0;
31064}
31065
31066_ACEOF
31067if ac_fn_c_try_link "$LINENO"; then :
31068
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31070$as_echo "yes" >&6; }
31071 tst_links_fcntl="yes"
31072
31073else
31074
31075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31076$as_echo "no" >&6; }
31077 tst_links_fcntl="no"
31078
31079fi
31080rm -f core conftest.err conftest.$ac_objext \
31081 conftest$ac_exeext conftest.$ac_ext
31082 #
31083 if test "$tst_links_fcntl" = "yes"; then
31084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31085$as_echo_n "checking if fcntl is prototyped... " >&6; }
31086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31087/* end confdefs.h. */
31088
31089 $curl_includes_fcntl
31090
31091_ACEOF
31092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31093 $EGREP "fcntl" >/dev/null 2>&1; then :
31094
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31096$as_echo "yes" >&6; }
31097 tst_proto_fcntl="yes"
31098
31099else
31100
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102$as_echo "no" >&6; }
31103 tst_proto_fcntl="no"
31104
31105fi
31106rm -f conftest*
31107
31108 fi
31109 #
31110 if test "$tst_proto_fcntl" = "yes"; then
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31112$as_echo_n "checking if fcntl is compilable... " >&6; }
31113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31114/* end confdefs.h. */
31115
31116
31117 $curl_includes_fcntl
31118
31119int main (void)
31120{
31121
31122 if(0 != fcntl(0, 0, 0))
31123 return 1;
31124
31125 ;
31126 return 0;
31127}
31128
31129_ACEOF
31130if ac_fn_c_try_compile "$LINENO"; then :
31131
31132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31133$as_echo "yes" >&6; }
31134 tst_compi_fcntl="yes"
31135
31136else
31137
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31139$as_echo "no" >&6; }
31140 tst_compi_fcntl="no"
31141
31142fi
31143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31144 fi
31145 #
31146 if test "$tst_compi_fcntl" = "yes"; then
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31148$as_echo_n "checking if fcntl usage allowed... " >&6; }
31149 if test "x$curl_disallow_fcntl" != "xyes"; then
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31151$as_echo "yes" >&6; }
31152 tst_allow_fcntl="yes"
31153 else
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31155$as_echo "no" >&6; }
31156 tst_allow_fcntl="no"
31157 fi
31158 fi
31159 #
31160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31161$as_echo_n "checking if fcntl might be used... " >&6; }
31162 if test "$tst_links_fcntl" = "yes" &&
31163 test "$tst_proto_fcntl" = "yes" &&
31164 test "$tst_compi_fcntl" = "yes" &&
31165 test "$tst_allow_fcntl" = "yes"; then
31166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31167$as_echo "yes" >&6; }
31168
31169cat >>confdefs.h <<_ACEOF
31170#define HAVE_FCNTL 1
31171_ACEOF
31172
31173 curl_cv_func_fcntl="yes"
31174
31175 #
31176 tst_compi_fcntl_o_nonblock="unknown"
31177 tst_allow_fcntl_o_nonblock="unknown"
31178 #
31179 case $host_os in
31180 sunos4* | aix3* | beos*)
31181 curl_disallow_fcntl_o_nonblock="yes"
31182 ;;
31183 esac
31184 #
31185 if test "$curl_cv_func_fcntl" = "yes"; then
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31187$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31189/* end confdefs.h. */
31190
31191
31192 $curl_includes_fcntl
31193
31194int main (void)
31195{
31196
31197 int flags = 0;
31198 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31199 return 1;
31200
31201 ;
31202 return 0;
31203}
31204
31205_ACEOF
31206if ac_fn_c_try_compile "$LINENO"; then :
31207
31208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31209$as_echo "yes" >&6; }
31210 tst_compi_fcntl_o_nonblock="yes"
31211
31212else
31213
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215$as_echo "no" >&6; }
31216 tst_compi_fcntl_o_nonblock="no"
31217
31218fi
31219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220 fi
31221 #
31222 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31224$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31225 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31227$as_echo "yes" >&6; }
31228 tst_allow_fcntl_o_nonblock="yes"
31229 else
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31231$as_echo "no" >&6; }
31232 tst_allow_fcntl_o_nonblock="no"
31233 fi
31234 fi
31235 #
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31237$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31238 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31239 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31241$as_echo "yes" >&6; }
31242
31243cat >>confdefs.h <<_ACEOF
31244#define HAVE_FCNTL_O_NONBLOCK 1
31245_ACEOF
31246
31247 curl_cv_func_fcntl_o_nonblock="yes"
31248 else
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31250$as_echo "no" >&6; }
31251 curl_cv_func_fcntl_o_nonblock="no"
31252 fi
31253
31254 else
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256$as_echo "no" >&6; }
31257 curl_cv_func_fcntl="no"
31258 fi
31259
31260
Elliott Hughesa93fb052018-12-12 14:22:48 -080031261curl_includes_ws2tcpip="\
31262/* includes start */
31263#ifdef HAVE_WINDOWS_H
31264# ifndef WIN32_LEAN_AND_MEAN
31265# define WIN32_LEAN_AND_MEAN
31266# endif
31267# include <windows.h>
31268# ifdef HAVE_WINSOCK2_H
31269# include <winsock2.h>
31270# ifdef HAVE_WS2TCPIP_H
31271# include <ws2tcpip.h>
31272# endif
31273# endif
31274#endif
31275/* includes end */"
31276
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31278$as_echo_n "checking for windows.h... " >&6; }
31279if ${curl_cv_header_windows_h+:} false; then :
31280 $as_echo_n "(cached) " >&6
31281else
31282
31283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31284/* end confdefs.h. */
31285
31286
31287#undef inline
31288#ifndef WIN32_LEAN_AND_MEAN
31289#define WIN32_LEAN_AND_MEAN
31290#endif
31291#include <windows.h>
31292
31293int main (void)
31294{
31295
31296#if defined(__CYGWIN__) || defined(__CEGCC__)
31297 HAVE_WINDOWS_H shall not be defined.
31298#else
31299 int dummy=2*WINVER;
31300#endif
31301
31302 ;
31303 return 0;
31304}
31305
31306_ACEOF
31307if ac_fn_c_try_compile "$LINENO"; then :
31308
31309 curl_cv_header_windows_h="yes"
31310
31311else
31312
31313 curl_cv_header_windows_h="no"
31314
31315fi
31316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31317
31318fi
31319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
31320$as_echo "$curl_cv_header_windows_h" >&6; }
31321 case "$curl_cv_header_windows_h" in
31322 yes)
31323
31324cat >>confdefs.h <<_ACEOF
31325#define HAVE_WINDOWS_H 1
31326_ACEOF
31327
31328 ;;
31329 esac
31330
31331
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31333$as_echo_n "checking for winsock2.h... " >&6; }
31334if ${curl_cv_header_winsock2_h+:} false; then :
31335 $as_echo_n "(cached) " >&6
31336else
31337
31338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31339/* end confdefs.h. */
31340
31341
31342#undef inline
31343#ifndef WIN32_LEAN_AND_MEAN
31344#define WIN32_LEAN_AND_MEAN
31345#endif
31346#include <windows.h>
31347#include <winsock2.h>
31348
31349int main (void)
31350{
31351
31352#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31353 HAVE_WINSOCK2_H shall not be defined.
31354#else
31355 int dummy=2*IPPROTO_ESP;
31356#endif
31357
31358 ;
31359 return 0;
31360}
31361
31362_ACEOF
31363if ac_fn_c_try_compile "$LINENO"; then :
31364
31365 curl_cv_header_winsock2_h="yes"
31366
31367else
31368
31369 curl_cv_header_winsock2_h="no"
31370
31371fi
31372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31373
31374fi
31375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31376$as_echo "$curl_cv_header_winsock2_h" >&6; }
31377 case "$curl_cv_header_winsock2_h" in
31378 yes)
31379
31380cat >>confdefs.h <<_ACEOF
31381#define HAVE_WINSOCK2_H 1
31382_ACEOF
31383
31384 ;;
31385 esac
31386
31387
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31389$as_echo_n "checking for ws2tcpip.h... " >&6; }
31390if ${curl_cv_header_ws2tcpip_h+:} false; then :
31391 $as_echo_n "(cached) " >&6
31392else
31393
31394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31395/* end confdefs.h. */
31396
31397
31398#undef inline
31399#ifndef WIN32_LEAN_AND_MEAN
31400#define WIN32_LEAN_AND_MEAN
31401#endif
31402#include <windows.h>
31403#include <winsock2.h>
31404#include <ws2tcpip.h>
31405
31406int main (void)
31407{
31408
31409#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31410 HAVE_WS2TCPIP_H shall not be defined.
31411#else
31412 int dummy=2*IP_PKTINFO;
31413#endif
31414
31415 ;
31416 return 0;
31417}
31418
31419_ACEOF
31420if ac_fn_c_try_compile "$LINENO"; then :
31421
31422 curl_cv_header_ws2tcpip_h="yes"
31423
31424else
31425
31426 curl_cv_header_ws2tcpip_h="no"
31427
31428fi
31429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31430
31431fi
31432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31433$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31434 case "$curl_cv_header_ws2tcpip_h" in
31435 yes)
31436
31437cat >>confdefs.h <<_ACEOF
31438#define HAVE_WS2TCPIP_H 1
31439_ACEOF
31440
31441 ;;
31442 esac
31443
31444
31445
Elliott Hughes82be86d2017-09-20 17:00:17 -070031446curl_includes_netdb="\
31447/* includes start */
31448#ifdef HAVE_SYS_TYPES_H
31449# include <sys/types.h>
31450#endif
31451#ifdef HAVE_NETDB_H
31452# include <netdb.h>
31453#endif
31454/* includes end */"
31455 for ac_header in sys/types.h netdb.h
31456do :
31457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31458ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31459"
31460if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31461 cat >>confdefs.h <<_ACEOF
31462#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31463_ACEOF
31464
31465fi
31466
31467done
31468
31469
31470
31471 #
31472 tst_links_freeaddrinfo="unknown"
31473 tst_proto_freeaddrinfo="unknown"
31474 tst_compi_freeaddrinfo="unknown"
31475 tst_allow_freeaddrinfo="unknown"
31476 #
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31478$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31480/* end confdefs.h. */
31481
31482
31483 $curl_includes_ws2tcpip
31484 $curl_includes_sys_socket
31485 $curl_includes_netdb
31486
31487int main (void)
31488{
31489
31490 freeaddrinfo(0);
31491
31492 ;
31493 return 0;
31494}
31495
31496_ACEOF
31497if ac_fn_c_try_link "$LINENO"; then :
31498
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31500$as_echo "yes" >&6; }
31501 tst_links_freeaddrinfo="yes"
31502
31503else
31504
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31506$as_echo "no" >&6; }
31507 tst_links_freeaddrinfo="no"
31508
31509fi
31510rm -f core conftest.err conftest.$ac_objext \
31511 conftest$ac_exeext conftest.$ac_ext
31512 #
31513 if test "$tst_links_freeaddrinfo" = "yes"; then
31514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31515$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31517/* end confdefs.h. */
31518
31519 $curl_includes_ws2tcpip
31520 $curl_includes_sys_socket
31521 $curl_includes_netdb
31522
31523_ACEOF
31524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31525 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31526
31527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31528$as_echo "yes" >&6; }
31529 tst_proto_freeaddrinfo="yes"
31530
31531else
31532
31533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31534$as_echo "no" >&6; }
31535 tst_proto_freeaddrinfo="no"
31536
31537fi
31538rm -f conftest*
31539
31540 fi
31541 #
31542 if test "$tst_proto_freeaddrinfo" = "yes"; then
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31544$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546/* end confdefs.h. */
31547
31548
31549 $curl_includes_ws2tcpip
31550 $curl_includes_sys_socket
31551 $curl_includes_netdb
31552
31553int main (void)
31554{
31555
31556 freeaddrinfo(0);
31557
31558 ;
31559 return 0;
31560}
31561
31562_ACEOF
31563if ac_fn_c_try_compile "$LINENO"; then :
31564
31565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31566$as_echo "yes" >&6; }
31567 tst_compi_freeaddrinfo="yes"
31568
31569else
31570
31571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31572$as_echo "no" >&6; }
31573 tst_compi_freeaddrinfo="no"
31574
31575fi
31576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577 fi
31578 #
31579 if test "$tst_compi_freeaddrinfo" = "yes"; then
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31581$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31582 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31584$as_echo "yes" >&6; }
31585 tst_allow_freeaddrinfo="yes"
31586 else
31587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31588$as_echo "no" >&6; }
31589 tst_allow_freeaddrinfo="no"
31590 fi
31591 fi
31592 #
31593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31594$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31595 if test "$tst_links_freeaddrinfo" = "yes" &&
31596 test "$tst_proto_freeaddrinfo" = "yes" &&
31597 test "$tst_compi_freeaddrinfo" = "yes" &&
31598 test "$tst_allow_freeaddrinfo" = "yes"; then
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31600$as_echo "yes" >&6; }
31601
31602cat >>confdefs.h <<_ACEOF
31603#define HAVE_FREEADDRINFO 1
31604_ACEOF
31605
31606 curl_cv_func_freeaddrinfo="yes"
31607 else
31608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31609$as_echo "no" >&6; }
31610 curl_cv_func_freeaddrinfo="no"
31611 fi
31612
31613
31614curl_includes_ifaddrs="\
31615/* includes start */
31616#ifdef HAVE_SYS_TYPES_H
31617# include <sys/types.h>
31618#endif
31619#ifdef HAVE_SYS_SOCKET_H
31620# include <sys/socket.h>
31621#endif
31622#ifdef HAVE_NETINET_IN_H
31623# include <netinet/in.h>
31624#endif
31625#ifdef HAVE_IFADDRS_H
31626# include <ifaddrs.h>
31627#endif
31628/* includes end */"
31629 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31630do :
31631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31632ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31633"
31634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31635 cat >>confdefs.h <<_ACEOF
31636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31637_ACEOF
31638
31639fi
31640
31641done
31642
31643
31644
31645 #
31646 tst_links_freeifaddrs="unknown"
31647 tst_proto_freeifaddrs="unknown"
31648 tst_compi_freeifaddrs="unknown"
31649 tst_allow_freeifaddrs="unknown"
31650 #
31651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31652$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31654/* end confdefs.h. */
31655
31656
31657#define freeifaddrs innocuous_freeifaddrs
31658#ifdef __STDC__
31659# include <limits.h>
31660#else
31661# include <assert.h>
31662#endif
31663#undef freeifaddrs
31664#ifdef __cplusplus
31665extern "C"
31666#endif
31667char freeifaddrs ();
31668#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31669choke me
31670#endif
31671
31672int main (void)
31673{
31674return freeifaddrs ();
31675 ;
31676 return 0;
31677}
31678
31679_ACEOF
31680if ac_fn_c_try_link "$LINENO"; then :
31681
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31683$as_echo "yes" >&6; }
31684 tst_links_freeifaddrs="yes"
31685
31686else
31687
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31689$as_echo "no" >&6; }
31690 tst_links_freeifaddrs="no"
31691
31692fi
31693rm -f core conftest.err conftest.$ac_objext \
31694 conftest$ac_exeext conftest.$ac_ext
31695 #
31696 if test "$tst_links_freeifaddrs" = "yes"; then
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31698$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31700/* end confdefs.h. */
31701
31702 $curl_includes_ifaddrs
31703
31704_ACEOF
31705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31706 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31707
31708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31709$as_echo "yes" >&6; }
31710 tst_proto_freeifaddrs="yes"
31711
31712else
31713
31714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31715$as_echo "no" >&6; }
31716 tst_proto_freeifaddrs="no"
31717
31718fi
31719rm -f conftest*
31720
31721 fi
31722 #
31723 if test "$tst_proto_freeifaddrs" = "yes"; then
31724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31725$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31727/* end confdefs.h. */
31728
31729
31730 $curl_includes_ifaddrs
31731
31732int main (void)
31733{
31734
31735 freeifaddrs(0);
31736
31737 ;
31738 return 0;
31739}
31740
31741_ACEOF
31742if ac_fn_c_try_compile "$LINENO"; then :
31743
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31745$as_echo "yes" >&6; }
31746 tst_compi_freeifaddrs="yes"
31747
31748else
31749
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31751$as_echo "no" >&6; }
31752 tst_compi_freeifaddrs="no"
31753
31754fi
31755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31756 fi
31757 #
31758 if test "$tst_compi_freeifaddrs" = "yes"; then
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31760$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31761 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31763$as_echo "yes" >&6; }
31764 tst_allow_freeifaddrs="yes"
31765 else
31766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31767$as_echo "no" >&6; }
31768 tst_allow_freeifaddrs="no"
31769 fi
31770 fi
31771 #
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31773$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31774 if test "$tst_links_freeifaddrs" = "yes" &&
31775 test "$tst_proto_freeifaddrs" = "yes" &&
31776 test "$tst_compi_freeifaddrs" = "yes" &&
31777 test "$tst_allow_freeifaddrs" = "yes"; then
31778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31779$as_echo "yes" >&6; }
31780
31781cat >>confdefs.h <<_ACEOF
31782#define HAVE_FREEIFADDRS 1
31783_ACEOF
31784
31785 curl_cv_func_freeifaddrs="yes"
31786 else
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31788$as_echo "no" >&6; }
31789 curl_cv_func_freeifaddrs="no"
31790 fi
31791
31792
31793curl_includes_sys_xattr="\
31794/* includes start */
31795#ifdef HAVE_SYS_TYPES_H
31796# include <sys/types.h>
31797#endif
31798#ifdef HAVE_SYS_XATTR_H
31799# include <sys/xattr.h>
31800#endif
31801/* includes end */"
31802 for ac_header in sys/types.h sys/xattr.h
31803do :
31804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31805ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31806"
31807if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31808 cat >>confdefs.h <<_ACEOF
31809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31810_ACEOF
31811
31812fi
31813
31814done
31815
31816
31817
31818 #
31819 tst_links_fsetxattr="unknown"
31820 tst_proto_fsetxattr="unknown"
31821 tst_compi_fsetxattr="unknown"
31822 tst_allow_fsetxattr="unknown"
31823 tst_nargs_fsetxattr="unknown"
31824 #
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31826$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31828/* end confdefs.h. */
31829
31830
31831#define fsetxattr innocuous_fsetxattr
31832#ifdef __STDC__
31833# include <limits.h>
31834#else
31835# include <assert.h>
31836#endif
31837#undef fsetxattr
31838#ifdef __cplusplus
31839extern "C"
31840#endif
31841char fsetxattr ();
31842#if defined __stub_fsetxattr || defined __stub___fsetxattr
31843choke me
31844#endif
31845
31846int main (void)
31847{
31848return fsetxattr ();
31849 ;
31850 return 0;
31851}
31852
31853_ACEOF
31854if ac_fn_c_try_link "$LINENO"; then :
31855
31856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31857$as_echo "yes" >&6; }
31858 tst_links_fsetxattr="yes"
31859
31860else
31861
31862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31863$as_echo "no" >&6; }
31864 tst_links_fsetxattr="no"
31865
31866fi
31867rm -f core conftest.err conftest.$ac_objext \
31868 conftest$ac_exeext conftest.$ac_ext
31869 #
31870 if test "$tst_links_fsetxattr" = "yes"; then
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
31872$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
31873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31874/* end confdefs.h. */
31875
31876 $curl_includes_sys_xattr
31877
31878_ACEOF
31879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31880 $EGREP "fsetxattr" >/dev/null 2>&1; then :
31881
31882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31883$as_echo "yes" >&6; }
31884 tst_proto_fsetxattr="yes"
31885
31886else
31887
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31889$as_echo "no" >&6; }
31890 tst_proto_fsetxattr="no"
31891
31892fi
31893rm -f conftest*
31894
31895 fi
31896 #
31897 if test "$tst_proto_fsetxattr" = "yes"; then
31898 if test "$tst_nargs_fsetxattr" = "unknown"; then
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
31900$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
31901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31902/* end confdefs.h. */
31903
31904
31905 $curl_includes_sys_xattr
31906
31907int main (void)
31908{
31909
31910 if(0 != fsetxattr(0, 0, 0, 0, 0))
31911 return 1;
31912
31913 ;
31914 return 0;
31915}
31916
31917_ACEOF
31918if ac_fn_c_try_compile "$LINENO"; then :
31919
31920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31921$as_echo "yes" >&6; }
31922 tst_compi_fsetxattr="yes"
31923 tst_nargs_fsetxattr="5"
31924
31925else
31926
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31928$as_echo "no" >&6; }
31929 tst_compi_fsetxattr="no"
31930
31931fi
31932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31933 fi
31934 if test "$tst_nargs_fsetxattr" = "unknown"; then
31935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
31936$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
31937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31938/* end confdefs.h. */
31939
31940
31941 $curl_includes_sys_xattr
31942
31943int main (void)
31944{
31945
31946 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
31947 return 1;
31948
31949 ;
31950 return 0;
31951}
31952
31953_ACEOF
31954if ac_fn_c_try_compile "$LINENO"; then :
31955
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31957$as_echo "yes" >&6; }
31958 tst_compi_fsetxattr="yes"
31959 tst_nargs_fsetxattr="6"
31960
31961else
31962
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31964$as_echo "no" >&6; }
31965 tst_compi_fsetxattr="no"
31966
31967fi
31968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31969 fi
31970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
31971$as_echo_n "checking if fsetxattr is compilable... " >&6; }
31972 if test "$tst_compi_fsetxattr" = "yes"; then
31973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31974$as_echo "yes" >&6; }
31975 else
31976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31977$as_echo "no" >&6; }
31978 fi
31979 fi
31980 #
31981 if test "$tst_compi_fsetxattr" = "yes"; then
31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
31983$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
31984 if test "x$curl_disallow_fsetxattr" != "xyes"; then
31985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31986$as_echo "yes" >&6; }
31987 tst_allow_fsetxattr="yes"
31988 else
31989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31990$as_echo "no" >&6; }
31991 tst_allow_fsetxattr="no"
31992 fi
31993 fi
31994 #
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
31996$as_echo_n "checking if fsetxattr might be used... " >&6; }
31997 if test "$tst_links_fsetxattr" = "yes" &&
31998 test "$tst_proto_fsetxattr" = "yes" &&
31999 test "$tst_compi_fsetxattr" = "yes" &&
32000 test "$tst_allow_fsetxattr" = "yes"; then
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32002$as_echo "yes" >&6; }
32003
32004cat >>confdefs.h <<_ACEOF
32005#define HAVE_FSETXATTR 1
32006_ACEOF
32007
32008 #
32009 if test "$tst_nargs_fsetxattr" -eq "5"; then
32010
32011$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32012
32013 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32014
32015$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32016
32017 fi
32018 #
32019 curl_cv_func_fsetxattr="yes"
32020 else
32021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32022$as_echo "no" >&6; }
32023 curl_cv_func_fsetxattr="no"
32024 fi
32025
32026
32027 #
32028 tst_links_ftruncate="unknown"
32029 tst_proto_ftruncate="unknown"
32030 tst_compi_ftruncate="unknown"
32031 tst_allow_ftruncate="unknown"
32032 #
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32034$as_echo_n "checking if ftruncate can be linked... " >&6; }
32035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32036/* end confdefs.h. */
32037
32038
32039#define ftruncate innocuous_ftruncate
32040#ifdef __STDC__
32041# include <limits.h>
32042#else
32043# include <assert.h>
32044#endif
32045#undef ftruncate
32046#ifdef __cplusplus
32047extern "C"
32048#endif
32049char ftruncate ();
32050#if defined __stub_ftruncate || defined __stub___ftruncate
32051choke me
32052#endif
32053
32054int main (void)
32055{
32056return ftruncate ();
32057 ;
32058 return 0;
32059}
32060
32061_ACEOF
32062if ac_fn_c_try_link "$LINENO"; then :
32063
32064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32065$as_echo "yes" >&6; }
32066 tst_links_ftruncate="yes"
32067
32068else
32069
32070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32071$as_echo "no" >&6; }
32072 tst_links_ftruncate="no"
32073
32074fi
32075rm -f core conftest.err conftest.$ac_objext \
32076 conftest$ac_exeext conftest.$ac_ext
32077 #
32078 if test "$tst_links_ftruncate" = "yes"; then
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32080$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32082/* end confdefs.h. */
32083
32084 $curl_includes_unistd
32085
32086_ACEOF
32087if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32088 $EGREP "ftruncate" >/dev/null 2>&1; then :
32089
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32091$as_echo "yes" >&6; }
32092 tst_proto_ftruncate="yes"
32093
32094else
32095
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32097$as_echo "no" >&6; }
32098 tst_proto_ftruncate="no"
32099
32100fi
32101rm -f conftest*
32102
32103 fi
32104 #
32105 if test "$tst_proto_ftruncate" = "yes"; then
32106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32107$as_echo_n "checking if ftruncate is compilable... " >&6; }
32108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32109/* end confdefs.h. */
32110
32111
32112 $curl_includes_unistd
32113
32114int main (void)
32115{
32116
32117 if(0 != ftruncate(0, 0))
32118 return 1;
32119
32120 ;
32121 return 0;
32122}
32123
32124_ACEOF
32125if ac_fn_c_try_compile "$LINENO"; then :
32126
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32128$as_echo "yes" >&6; }
32129 tst_compi_ftruncate="yes"
32130
32131else
32132
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32134$as_echo "no" >&6; }
32135 tst_compi_ftruncate="no"
32136
32137fi
32138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32139 fi
32140 #
32141 if test "$tst_compi_ftruncate" = "yes"; then
32142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32143$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32144 if test "x$curl_disallow_ftruncate" != "xyes"; then
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32146$as_echo "yes" >&6; }
32147 tst_allow_ftruncate="yes"
32148 else
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32150$as_echo "no" >&6; }
32151 tst_allow_ftruncate="no"
32152 fi
32153 fi
32154 #
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32156$as_echo_n "checking if ftruncate might be used... " >&6; }
32157 if test "$tst_links_ftruncate" = "yes" &&
32158 test "$tst_proto_ftruncate" = "yes" &&
32159 test "$tst_compi_ftruncate" = "yes" &&
32160 test "$tst_allow_ftruncate" = "yes"; then
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32162$as_echo "yes" >&6; }
32163
32164cat >>confdefs.h <<_ACEOF
32165#define HAVE_FTRUNCATE 1
32166_ACEOF
32167
32168 curl_cv_func_ftruncate="yes"
32169 else
32170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32171$as_echo "no" >&6; }
32172 curl_cv_func_ftruncate="no"
32173 fi
32174
32175
32176curl_includes_stdlib="\
32177/* includes start */
32178#ifdef HAVE_SYS_TYPES_H
32179# include <sys/types.h>
32180#endif
32181#ifdef HAVE_STDLIB_H
32182# include <stdlib.h>
32183#endif
32184/* includes end */"
32185 for ac_header in sys/types.h stdlib.h
32186do :
32187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32188ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32189"
32190if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32191 cat >>confdefs.h <<_ACEOF
32192#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32193_ACEOF
32194
32195fi
32196
32197done
32198
32199
32200
32201 #
32202 tst_links_getaddrinfo="unknown"
32203 tst_proto_getaddrinfo="unknown"
32204 tst_compi_getaddrinfo="unknown"
32205 tst_works_getaddrinfo="unknown"
32206 tst_allow_getaddrinfo="unknown"
32207 tst_tsafe_getaddrinfo="unknown"
32208 #
32209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32210$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32212/* end confdefs.h. */
32213
32214
32215 $curl_includes_ws2tcpip
32216 $curl_includes_sys_socket
32217 $curl_includes_netdb
32218
32219int main (void)
32220{
32221
32222 if(0 != getaddrinfo(0, 0, 0, 0))
32223 return 1;
32224
32225 ;
32226 return 0;
32227}
32228
32229_ACEOF
32230if ac_fn_c_try_link "$LINENO"; then :
32231
32232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32233$as_echo "yes" >&6; }
32234 tst_links_getaddrinfo="yes"
32235
32236else
32237
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32239$as_echo "no" >&6; }
32240 tst_links_getaddrinfo="no"
32241
32242fi
32243rm -f core conftest.err conftest.$ac_objext \
32244 conftest$ac_exeext conftest.$ac_ext
32245 #
32246 if test "$tst_links_getaddrinfo" = "yes"; then
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32248$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32250/* end confdefs.h. */
32251
32252 $curl_includes_ws2tcpip
32253 $curl_includes_sys_socket
32254 $curl_includes_netdb
32255
32256_ACEOF
32257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32258 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32259
32260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32261$as_echo "yes" >&6; }
32262 tst_proto_getaddrinfo="yes"
32263
32264else
32265
32266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32267$as_echo "no" >&6; }
32268 tst_proto_getaddrinfo="no"
32269
32270fi
32271rm -f conftest*
32272
32273 fi
32274 #
32275 if test "$tst_proto_getaddrinfo" = "yes"; then
32276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32277$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32279/* end confdefs.h. */
32280
32281
32282 $curl_includes_ws2tcpip
32283 $curl_includes_sys_socket
32284 $curl_includes_netdb
32285
32286int main (void)
32287{
32288
32289 if(0 != getaddrinfo(0, 0, 0, 0))
32290 return 1;
32291
32292 ;
32293 return 0;
32294}
32295
32296_ACEOF
32297if ac_fn_c_try_compile "$LINENO"; then :
32298
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32300$as_echo "yes" >&6; }
32301 tst_compi_getaddrinfo="yes"
32302
32303else
32304
32305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32306$as_echo "no" >&6; }
32307 tst_compi_getaddrinfo="no"
32308
32309fi
32310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32311 fi
32312 #
32313 if test "x$cross_compiling" != "xyes" &&
32314 test "$tst_compi_getaddrinfo" = "yes"; then
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32316$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080032317
32318
32319 old=$LD_LIBRARY_PATH
32320 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32321 export LD_LIBRARY_PATH
32322 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070032323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32325as_fn_error $? "cannot run test program while cross compiling
32326See \`config.log' for more details" "$LINENO" 5; }
32327else
32328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32329/* end confdefs.h. */
32330
32331
32332 $curl_includes_ws2tcpip
32333 $curl_includes_stdlib
32334 $curl_includes_string
32335 $curl_includes_sys_socket
32336 $curl_includes_netdb
32337
32338int main (void)
32339{
32340
32341 struct addrinfo hints;
32342 struct addrinfo *ai = 0;
32343 int error;
32344
32345 #ifdef HAVE_WINSOCK2_H
32346 WSADATA wsa;
32347 if (WSAStartup(MAKEWORD(2,2), &wsa))
32348 exit(2);
32349 #endif
32350
32351 memset(&hints, 0, sizeof(hints));
32352 hints.ai_flags = AI_NUMERICHOST;
32353 hints.ai_family = AF_UNSPEC;
32354 hints.ai_socktype = SOCK_STREAM;
32355 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32356 if(error || !ai)
32357 exit(1); /* fail */
32358 else
32359 exit(0);
32360
32361 ;
32362 return 0;
32363}
32364
32365_ACEOF
32366if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080032367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032368$as_echo "yes" >&6; }
32369 tst_works_getaddrinfo="yes"
32370
32371else
Elliott Hughesa93fb052018-12-12 14:22:48 -080032372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032373$as_echo "no" >&6; }
32374 tst_works_getaddrinfo="no"
32375
32376fi
32377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32378 conftest.$ac_objext conftest.beam conftest.$ac_ext
32379fi
32380
Elliott Hughesa93fb052018-12-12 14:22:48 -080032381 LD_LIBRARY_PATH=$old # restore
32382
Elliott Hughes82be86d2017-09-20 17:00:17 -070032383 fi
32384 #
32385 if test "$tst_compi_getaddrinfo" = "yes" &&
32386 test "$tst_works_getaddrinfo" != "no"; then
32387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32388$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32389 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32391$as_echo "yes" >&6; }
32392 tst_allow_getaddrinfo="yes"
32393 else
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32395$as_echo "no" >&6; }
32396 tst_allow_getaddrinfo="no"
32397 fi
32398 fi
32399 #
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32401$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32402 if test "$tst_links_getaddrinfo" = "yes" &&
32403 test "$tst_proto_getaddrinfo" = "yes" &&
32404 test "$tst_compi_getaddrinfo" = "yes" &&
32405 test "$tst_allow_getaddrinfo" = "yes" &&
32406 test "$tst_works_getaddrinfo" != "no"; then
32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32408$as_echo "yes" >&6; }
32409
32410cat >>confdefs.h <<_ACEOF
32411#define HAVE_GETADDRINFO 1
32412_ACEOF
32413
32414 curl_cv_func_getaddrinfo="yes"
32415 else
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32417$as_echo "no" >&6; }
32418 curl_cv_func_getaddrinfo="no"
32419 curl_cv_func_getaddrinfo_threadsafe="no"
32420 fi
32421 #
32422 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32424$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32425 case $host_os in
32426 aix[1234].* | aix5.[01].*)
32427 tst_tsafe_getaddrinfo="no"
32428 ;;
32429 aix*)
32430 tst_tsafe_getaddrinfo="yes"
32431 ;;
32432 darwin[12345].*)
32433 tst_tsafe_getaddrinfo="no"
32434 ;;
32435 darwin*)
32436 tst_tsafe_getaddrinfo="yes"
32437 ;;
32438 freebsd[1234].* | freebsd5.[1234]*)
32439 tst_tsafe_getaddrinfo="no"
32440 ;;
32441 freebsd*)
32442 tst_tsafe_getaddrinfo="yes"
32443 ;;
32444 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32445 tst_tsafe_getaddrinfo="no"
32446 ;;
32447 hpux*)
32448 tst_tsafe_getaddrinfo="yes"
32449 ;;
32450 netbsd[123].*)
32451 tst_tsafe_getaddrinfo="no"
32452 ;;
32453 netbsd*)
32454 tst_tsafe_getaddrinfo="yes"
32455 ;;
32456 *bsd*)
32457 tst_tsafe_getaddrinfo="no"
32458 ;;
32459 solaris2*)
32460 tst_tsafe_getaddrinfo="yes"
32461 ;;
32462 esac
32463 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32464 test "$curl_cv_native_windows" = "yes"; then
32465 tst_tsafe_getaddrinfo="yes"
32466 fi
32467 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32468
32469
32470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32471/* end confdefs.h. */
32472
32473
32474 $curl_includes_sys_socket
32475 $curl_includes_netdb
32476
32477int main (void)
32478{
32479#ifdef h_errno
32480 return 0;
32481#else
32482 force compilation error
32483#endif
32484}
32485
32486
32487_ACEOF
32488if ac_fn_c_try_compile "$LINENO"; then :
32489
32490 tst_symbol_defined="yes"
32491
32492else
32493
32494 tst_symbol_defined="no"
32495
32496fi
32497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32498 if test "$tst_symbol_defined" = "yes"; then
32499 curl_cv_have_def_h_errno=yes
32500
32501 else
32502 curl_cv_have_def_h_errno=no
32503
32504 fi
32505
32506 if test "$curl_cv_have_def_h_errno" = "yes"; then
32507 tst_h_errno_macro="yes"
32508 else
32509 tst_h_errno_macro="no"
32510 fi
32511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32512/* end confdefs.h. */
32513
32514
32515 $curl_includes_sys_socket
32516 $curl_includes_netdb
32517
32518int main (void)
32519{
32520
32521 h_errno = 2;
32522 if(0 != h_errno)
32523 return 1;
32524
32525 ;
32526 return 0;
32527}
32528
32529_ACEOF
32530if ac_fn_c_try_compile "$LINENO"; then :
32531
32532 tst_h_errno_modifiable_lvalue="yes"
32533
32534else
32535
32536 tst_h_errno_modifiable_lvalue="no"
32537
32538fi
32539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32541/* end confdefs.h. */
32542
32543
32544
32545int main (void)
32546{
32547
32548#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32549 return 0;
32550#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32551 return 0;
32552#else
32553 force compilation error
32554#endif
32555
32556 ;
32557 return 0;
32558}
32559
32560_ACEOF
32561if ac_fn_c_try_compile "$LINENO"; then :
32562
32563 tst_h_errno_sbs_issue_7="yes"
32564
32565else
32566
32567 tst_h_errno_sbs_issue_7="no"
32568
32569fi
32570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32571 if test "$tst_h_errno_macro" = "no" &&
32572 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32573 test "$tst_h_errno_sbs_issue_7" = "no"; then
32574 tst_tsafe_getaddrinfo="no"
32575 else
32576 tst_tsafe_getaddrinfo="yes"
32577 fi
32578 fi
32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32580$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32581 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32582
32583cat >>confdefs.h <<_ACEOF
32584#define HAVE_GETADDRINFO_THREADSAFE 1
32585_ACEOF
32586
32587 curl_cv_func_getaddrinfo_threadsafe="yes"
32588 else
32589 curl_cv_func_getaddrinfo_threadsafe="no"
32590 fi
32591 fi
32592
32593
32594 #
32595 tst_links_gai_strerror="unknown"
32596 tst_proto_gai_strerror="unknown"
32597 tst_compi_gai_strerror="unknown"
32598 tst_allow_gai_strerror="unknown"
32599 #
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32601$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32603/* end confdefs.h. */
32604
32605
32606 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032607 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032608 $curl_includes_netdb
32609
32610int main (void)
32611{
32612
32613 if(0 != gai_strerror(0))
32614 return 1;
32615
32616 ;
32617 return 0;
32618}
32619
32620_ACEOF
32621if ac_fn_c_try_link "$LINENO"; then :
32622
32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32624$as_echo "yes" >&6; }
32625 tst_links_gai_strerror="yes"
32626
32627else
32628
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630$as_echo "no" >&6; }
32631 tst_links_gai_strerror="no"
32632
32633fi
32634rm -f core conftest.err conftest.$ac_objext \
32635 conftest$ac_exeext conftest.$ac_ext
32636 #
32637 if test "$tst_links_gai_strerror" = "yes"; then
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32639$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32641/* end confdefs.h. */
32642
32643 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032644 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032645 $curl_includes_netdb
32646
32647_ACEOF
32648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32649 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32650
32651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32652$as_echo "yes" >&6; }
32653 tst_proto_gai_strerror="yes"
32654
32655else
32656
32657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32658$as_echo "no" >&6; }
32659 tst_proto_gai_strerror="no"
32660
32661fi
32662rm -f conftest*
32663
32664 fi
32665 #
32666 if test "$tst_proto_gai_strerror" = "yes"; then
32667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32668$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32670/* end confdefs.h. */
32671
32672
32673 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032674 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032675 $curl_includes_netdb
32676
32677int main (void)
32678{
32679
32680 if(0 != gai_strerror(0))
32681 return 1;
32682
32683 ;
32684 return 0;
32685}
32686
32687_ACEOF
32688if ac_fn_c_try_compile "$LINENO"; then :
32689
32690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32691$as_echo "yes" >&6; }
32692 tst_compi_gai_strerror="yes"
32693
32694else
32695
32696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32697$as_echo "no" >&6; }
32698 tst_compi_gai_strerror="no"
32699
32700fi
32701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32702 fi
32703 #
32704 if test "$tst_compi_gai_strerror" = "yes"; then
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32706$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32707 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32709$as_echo "yes" >&6; }
32710 tst_allow_gai_strerror="yes"
32711 else
32712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32713$as_echo "no" >&6; }
32714 tst_allow_gai_strerror="no"
32715 fi
32716 fi
32717 #
32718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32719$as_echo_n "checking if gai_strerror might be used... " >&6; }
32720 if test "$tst_links_gai_strerror" = "yes" &&
32721 test "$tst_proto_gai_strerror" = "yes" &&
32722 test "$tst_compi_gai_strerror" = "yes" &&
32723 test "$tst_allow_gai_strerror" = "yes"; then
32724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32725$as_echo "yes" >&6; }
32726
32727cat >>confdefs.h <<_ACEOF
32728#define HAVE_GAI_STRERROR 1
32729_ACEOF
32730
32731 curl_cv_func_gai_strerror="yes"
32732 else
32733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32734$as_echo "no" >&6; }
32735 curl_cv_func_gai_strerror="no"
32736 fi
32737
32738
32739 #
32740 tst_links_gethostbyaddr="unknown"
32741 tst_proto_gethostbyaddr="unknown"
32742 tst_compi_gethostbyaddr="unknown"
32743 tst_allow_gethostbyaddr="unknown"
32744 #
32745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32746$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32748/* end confdefs.h. */
32749
32750
32751 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032752 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032753 $curl_includes_netdb
32754
32755int main (void)
32756{
32757
32758 if(0 != gethostbyaddr(0, 0, 0))
32759 return 1;
32760
32761 ;
32762 return 0;
32763}
32764
32765_ACEOF
32766if ac_fn_c_try_link "$LINENO"; then :
32767
32768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32769$as_echo "yes" >&6; }
32770 tst_links_gethostbyaddr="yes"
32771
32772else
32773
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32775$as_echo "no" >&6; }
32776 tst_links_gethostbyaddr="no"
32777
32778fi
32779rm -f core conftest.err conftest.$ac_objext \
32780 conftest$ac_exeext conftest.$ac_ext
32781 #
32782 if test "$tst_links_gethostbyaddr" = "yes"; then
32783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32784$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32786/* end confdefs.h. */
32787
32788 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032789 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032790 $curl_includes_netdb
32791
32792_ACEOF
32793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32794 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32795
32796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32797$as_echo "yes" >&6; }
32798 tst_proto_gethostbyaddr="yes"
32799
32800else
32801
32802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32803$as_echo "no" >&6; }
32804 tst_proto_gethostbyaddr="no"
32805
32806fi
32807rm -f conftest*
32808
32809 fi
32810 #
32811 if test "$tst_proto_gethostbyaddr" = "yes"; then
32812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32813$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32815/* end confdefs.h. */
32816
32817
32818 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070032819 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070032820 $curl_includes_netdb
32821
32822int main (void)
32823{
32824
32825 if(0 != gethostbyaddr(0, 0, 0))
32826 return 1;
32827
32828 ;
32829 return 0;
32830}
32831
32832_ACEOF
32833if ac_fn_c_try_compile "$LINENO"; then :
32834
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32836$as_echo "yes" >&6; }
32837 tst_compi_gethostbyaddr="yes"
32838
32839else
32840
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32842$as_echo "no" >&6; }
32843 tst_compi_gethostbyaddr="no"
32844
32845fi
32846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32847 fi
32848 #
32849 if test "$tst_compi_gethostbyaddr" = "yes"; then
32850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32851$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32852 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32854$as_echo "yes" >&6; }
32855 tst_allow_gethostbyaddr="yes"
32856 else
32857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32858$as_echo "no" >&6; }
32859 tst_allow_gethostbyaddr="no"
32860 fi
32861 fi
32862 #
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
32864$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
32865 if test "$tst_links_gethostbyaddr" = "yes" &&
32866 test "$tst_proto_gethostbyaddr" = "yes" &&
32867 test "$tst_compi_gethostbyaddr" = "yes" &&
32868 test "$tst_allow_gethostbyaddr" = "yes"; then
32869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32870$as_echo "yes" >&6; }
32871
32872cat >>confdefs.h <<_ACEOF
32873#define HAVE_GETHOSTBYADDR 1
32874_ACEOF
32875
32876 curl_cv_func_gethostbyaddr="yes"
32877 else
32878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32879$as_echo "no" >&6; }
32880 curl_cv_func_gethostbyaddr="no"
32881 fi
32882
32883
32884 #
32885 tst_links_gethostbyaddr_r="unknown"
32886 tst_proto_gethostbyaddr_r="unknown"
32887 tst_compi_gethostbyaddr_r="unknown"
32888 tst_allow_gethostbyaddr_r="unknown"
32889 tst_nargs_gethostbyaddr_r="unknown"
32890 #
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
32892$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
32893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32894/* end confdefs.h. */
32895
32896
32897#define gethostbyaddr_r innocuous_gethostbyaddr_r
32898#ifdef __STDC__
32899# include <limits.h>
32900#else
32901# include <assert.h>
32902#endif
32903#undef gethostbyaddr_r
32904#ifdef __cplusplus
32905extern "C"
32906#endif
32907char gethostbyaddr_r ();
32908#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
32909choke me
32910#endif
32911
32912int main (void)
32913{
32914return gethostbyaddr_r ();
32915 ;
32916 return 0;
32917}
32918
32919_ACEOF
32920if ac_fn_c_try_link "$LINENO"; then :
32921
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32923$as_echo "yes" >&6; }
32924 tst_links_gethostbyaddr_r="yes"
32925
32926else
32927
32928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32929$as_echo "no" >&6; }
32930 tst_links_gethostbyaddr_r="no"
32931
32932fi
32933rm -f core conftest.err conftest.$ac_objext \
32934 conftest$ac_exeext conftest.$ac_ext
32935 #
32936 if test "$tst_links_gethostbyaddr_r" = "yes"; then
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
32938$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
32939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32940/* end confdefs.h. */
32941
32942 $curl_includes_netdb
32943
32944_ACEOF
32945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32946 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
32947
32948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32949$as_echo "yes" >&6; }
32950 tst_proto_gethostbyaddr_r="yes"
32951
32952else
32953
32954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32955$as_echo "no" >&6; }
32956 tst_proto_gethostbyaddr_r="no"
32957
32958fi
32959rm -f conftest*
32960
32961 fi
32962 #
32963 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
32964 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
32966$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
32967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32968/* end confdefs.h. */
32969
32970
32971 $curl_includes_netdb
32972
32973int main (void)
32974{
32975
32976 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
32977 return 1;
32978
32979 ;
32980 return 0;
32981}
32982
32983_ACEOF
32984if ac_fn_c_try_compile "$LINENO"; then :
32985
32986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32987$as_echo "yes" >&6; }
32988 tst_compi_gethostbyaddr_r="yes"
32989 tst_nargs_gethostbyaddr_r="5"
32990
32991else
32992
32993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32994$as_echo "no" >&6; }
32995 tst_compi_gethostbyaddr_r="no"
32996
32997fi
32998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32999 fi
33000 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33002$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33004/* end confdefs.h. */
33005
33006
33007 $curl_includes_netdb
33008
33009int main (void)
33010{
33011
33012 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33013 return 1;
33014
33015 ;
33016 return 0;
33017}
33018
33019_ACEOF
33020if ac_fn_c_try_compile "$LINENO"; then :
33021
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33023$as_echo "yes" >&6; }
33024 tst_compi_gethostbyaddr_r="yes"
33025 tst_nargs_gethostbyaddr_r="7"
33026
33027else
33028
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33030$as_echo "no" >&6; }
33031 tst_compi_gethostbyaddr_r="no"
33032
33033fi
33034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33035 fi
33036 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33038$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33040/* end confdefs.h. */
33041
33042
33043 $curl_includes_netdb
33044
33045int main (void)
33046{
33047
33048 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33049 return 1;
33050
33051 ;
33052 return 0;
33053}
33054
33055_ACEOF
33056if ac_fn_c_try_compile "$LINENO"; then :
33057
33058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33059$as_echo "yes" >&6; }
33060 tst_compi_gethostbyaddr_r="yes"
33061 tst_nargs_gethostbyaddr_r="8"
33062
33063else
33064
33065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33066$as_echo "no" >&6; }
33067 tst_compi_gethostbyaddr_r="no"
33068
33069fi
33070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071 fi
33072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33073$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33074 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33076$as_echo "yes" >&6; }
33077 else
33078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33079$as_echo "no" >&6; }
33080 fi
33081 fi
33082 #
33083 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33085$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33086 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33088$as_echo "yes" >&6; }
33089 tst_allow_gethostbyaddr_r="yes"
33090 else
33091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33092$as_echo "no" >&6; }
33093 tst_allow_gethostbyaddr_r="no"
33094 fi
33095 fi
33096 #
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33098$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33099 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33100 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33101 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33102 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33104$as_echo "yes" >&6; }
33105
33106cat >>confdefs.h <<_ACEOF
33107#define HAVE_GETHOSTBYADDR_R 1
33108_ACEOF
33109
33110 #
33111 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33112
33113$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33114
33115 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33116
33117$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33118
33119 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33120
33121$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33122
33123 fi
33124 #
33125 curl_cv_func_gethostbyaddr_r="yes"
33126 else
33127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33128$as_echo "no" >&6; }
33129 curl_cv_func_gethostbyaddr_r="no"
33130 fi
33131
33132
33133 #
33134 tst_links_gethostbyname="unknown"
33135 tst_proto_gethostbyname="unknown"
33136 tst_compi_gethostbyname="unknown"
33137 tst_allow_gethostbyname="unknown"
33138 #
33139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33140$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33142/* end confdefs.h. */
33143
33144
33145 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033146 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033147 $curl_includes_netdb
33148
33149int main (void)
33150{
33151
33152 if(0 != gethostbyname(0))
33153 return 1;
33154
33155 ;
33156 return 0;
33157}
33158
33159_ACEOF
33160if ac_fn_c_try_link "$LINENO"; then :
33161
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33163$as_echo "yes" >&6; }
33164 tst_links_gethostbyname="yes"
33165
33166else
33167
33168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33169$as_echo "no" >&6; }
33170 tst_links_gethostbyname="no"
33171
33172fi
33173rm -f core conftest.err conftest.$ac_objext \
33174 conftest$ac_exeext conftest.$ac_ext
33175 #
33176 if test "$tst_links_gethostbyname" = "yes"; then
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33178$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33180/* end confdefs.h. */
33181
33182 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033183 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033184 $curl_includes_netdb
33185
33186_ACEOF
33187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33188 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33189
33190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33191$as_echo "yes" >&6; }
33192 tst_proto_gethostbyname="yes"
33193
33194else
33195
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33197$as_echo "no" >&6; }
33198 tst_proto_gethostbyname="no"
33199
33200fi
33201rm -f conftest*
33202
33203 fi
33204 #
33205 if test "$tst_proto_gethostbyname" = "yes"; then
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33207$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33209/* end confdefs.h. */
33210
33211
33212 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033213 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033214 $curl_includes_netdb
33215
33216int main (void)
33217{
33218
33219 if(0 != gethostbyname(0))
33220 return 1;
33221
33222 ;
33223 return 0;
33224}
33225
33226_ACEOF
33227if ac_fn_c_try_compile "$LINENO"; then :
33228
33229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33230$as_echo "yes" >&6; }
33231 tst_compi_gethostbyname="yes"
33232
33233else
33234
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33236$as_echo "no" >&6; }
33237 tst_compi_gethostbyname="no"
33238
33239fi
33240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33241 fi
33242 #
33243 if test "$tst_compi_gethostbyname" = "yes"; then
33244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33245$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33246 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33248$as_echo "yes" >&6; }
33249 tst_allow_gethostbyname="yes"
33250 else
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33252$as_echo "no" >&6; }
33253 tst_allow_gethostbyname="no"
33254 fi
33255 fi
33256 #
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33258$as_echo_n "checking if gethostbyname might be used... " >&6; }
33259 if test "$tst_links_gethostbyname" = "yes" &&
33260 test "$tst_proto_gethostbyname" = "yes" &&
33261 test "$tst_compi_gethostbyname" = "yes" &&
33262 test "$tst_allow_gethostbyname" = "yes"; then
33263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33264$as_echo "yes" >&6; }
33265
33266cat >>confdefs.h <<_ACEOF
33267#define HAVE_GETHOSTBYNAME 1
33268_ACEOF
33269
33270 curl_cv_func_gethostbyname="yes"
33271 else
33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33273$as_echo "no" >&6; }
33274 curl_cv_func_gethostbyname="no"
33275 fi
33276
33277
33278 #
33279 tst_links_gethostbyname_r="unknown"
33280 tst_proto_gethostbyname_r="unknown"
33281 tst_compi_gethostbyname_r="unknown"
33282 tst_allow_gethostbyname_r="unknown"
33283 tst_nargs_gethostbyname_r="unknown"
33284 #
33285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33286$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33288/* end confdefs.h. */
33289
33290
33291#define gethostbyname_r innocuous_gethostbyname_r
33292#ifdef __STDC__
33293# include <limits.h>
33294#else
33295# include <assert.h>
33296#endif
33297#undef gethostbyname_r
33298#ifdef __cplusplus
33299extern "C"
33300#endif
33301char gethostbyname_r ();
33302#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33303choke me
33304#endif
33305
33306int main (void)
33307{
33308return gethostbyname_r ();
33309 ;
33310 return 0;
33311}
33312
33313_ACEOF
33314if ac_fn_c_try_link "$LINENO"; then :
33315
33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33317$as_echo "yes" >&6; }
33318 tst_links_gethostbyname_r="yes"
33319
33320else
33321
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33323$as_echo "no" >&6; }
33324 tst_links_gethostbyname_r="no"
33325
33326fi
33327rm -f core conftest.err conftest.$ac_objext \
33328 conftest$ac_exeext conftest.$ac_ext
33329 #
33330 if test "$tst_links_gethostbyname_r" = "yes"; then
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33332$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33334/* end confdefs.h. */
33335
33336 $curl_includes_netdb
33337
33338_ACEOF
33339if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33340 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33341
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33343$as_echo "yes" >&6; }
33344 tst_proto_gethostbyname_r="yes"
33345
33346else
33347
33348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33349$as_echo "no" >&6; }
33350 tst_proto_gethostbyname_r="no"
33351
33352fi
33353rm -f conftest*
33354
33355 fi
33356 #
33357 if test "$tst_proto_gethostbyname_r" = "yes"; then
33358 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33360$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33362/* end confdefs.h. */
33363
33364
33365 $curl_includes_netdb
33366
33367int main (void)
33368{
33369
33370 if(0 != gethostbyname_r(0, 0, 0))
33371 return 1;
33372
33373 ;
33374 return 0;
33375}
33376
33377_ACEOF
33378if ac_fn_c_try_compile "$LINENO"; then :
33379
33380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33381$as_echo "yes" >&6; }
33382 tst_compi_gethostbyname_r="yes"
33383 tst_nargs_gethostbyname_r="3"
33384
33385else
33386
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33388$as_echo "no" >&6; }
33389 tst_compi_gethostbyname_r="no"
33390
33391fi
33392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33393 fi
33394 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33396$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33398/* end confdefs.h. */
33399
33400
33401 $curl_includes_netdb
33402
33403int main (void)
33404{
33405
33406 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33407 return 1;
33408
33409 ;
33410 return 0;
33411}
33412
33413_ACEOF
33414if ac_fn_c_try_compile "$LINENO"; then :
33415
33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33417$as_echo "yes" >&6; }
33418 tst_compi_gethostbyname_r="yes"
33419 tst_nargs_gethostbyname_r="5"
33420
33421else
33422
33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33424$as_echo "no" >&6; }
33425 tst_compi_gethostbyname_r="no"
33426
33427fi
33428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33429 fi
33430 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33432$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33434/* end confdefs.h. */
33435
33436
33437 $curl_includes_netdb
33438
33439int main (void)
33440{
33441
33442 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33443 return 1;
33444
33445 ;
33446 return 0;
33447}
33448
33449_ACEOF
33450if ac_fn_c_try_compile "$LINENO"; then :
33451
33452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33453$as_echo "yes" >&6; }
33454 tst_compi_gethostbyname_r="yes"
33455 tst_nargs_gethostbyname_r="6"
33456
33457else
33458
33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33460$as_echo "no" >&6; }
33461 tst_compi_gethostbyname_r="no"
33462
33463fi
33464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33465 fi
33466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33467$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33468 if test "$tst_compi_gethostbyname_r" = "yes"; then
33469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33470$as_echo "yes" >&6; }
33471 else
33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33473$as_echo "no" >&6; }
33474 fi
33475 fi
33476 #
33477 if test "$tst_compi_gethostbyname_r" = "yes"; then
33478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33479$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33480 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33482$as_echo "yes" >&6; }
33483 tst_allow_gethostbyname_r="yes"
33484 else
33485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33486$as_echo "no" >&6; }
33487 tst_allow_gethostbyname_r="no"
33488 fi
33489 fi
33490 #
33491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33492$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33493 if test "$tst_links_gethostbyname_r" = "yes" &&
33494 test "$tst_proto_gethostbyname_r" = "yes" &&
33495 test "$tst_compi_gethostbyname_r" = "yes" &&
33496 test "$tst_allow_gethostbyname_r" = "yes"; then
33497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33498$as_echo "yes" >&6; }
33499
33500cat >>confdefs.h <<_ACEOF
33501#define HAVE_GETHOSTBYNAME_R 1
33502_ACEOF
33503
33504 #
33505 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33506
33507$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33508
33509 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33510
33511$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33512
33513 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33514
33515$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33516
33517 fi
33518 #
33519 curl_cv_func_gethostbyname_r="yes"
33520 else
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33522$as_echo "no" >&6; }
33523 curl_cv_func_gethostbyname_r="no"
33524 fi
33525
33526
Elliott Hughesa93fb052018-12-12 14:22:48 -080033527curl_preprocess_callconv="\
33528/* preprocess start */
33529#ifdef HAVE_WINDOWS_H
33530# define FUNCALLCONV __stdcall
33531#else
33532# define FUNCALLCONV
33533#endif
33534/* preprocess end */"
33535
33536
Haibo Huang65021c72019-03-27 15:37:23 -070033537 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070033538 tst_links_gethostname="unknown"
33539 tst_proto_gethostname="unknown"
33540 tst_compi_gethostname="unknown"
33541 tst_allow_gethostname="unknown"
33542 #
33543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33544$as_echo_n "checking if gethostname can be linked... " >&6; }
33545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33546/* end confdefs.h. */
33547
33548
33549 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033550 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033551 $curl_includes_unistd
33552
33553int main (void)
33554{
33555
33556 if(0 != gethostname(0, 0))
33557 return 1;
33558
33559 ;
33560 return 0;
33561}
33562
33563_ACEOF
33564if ac_fn_c_try_link "$LINENO"; then :
33565
33566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33567$as_echo "yes" >&6; }
33568 tst_links_gethostname="yes"
33569
33570else
33571
33572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33573$as_echo "no" >&6; }
33574 tst_links_gethostname="no"
33575
33576fi
33577rm -f core conftest.err conftest.$ac_objext \
33578 conftest$ac_exeext conftest.$ac_ext
33579 #
33580 if test "$tst_links_gethostname" = "yes"; then
33581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33582$as_echo_n "checking if gethostname is prototyped... " >&6; }
33583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33584/* end confdefs.h. */
33585
33586 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033587 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033588 $curl_includes_unistd
33589
33590_ACEOF
33591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33592 $EGREP "gethostname" >/dev/null 2>&1; then :
33593
33594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33595$as_echo "yes" >&6; }
33596 tst_proto_gethostname="yes"
33597
33598else
33599
33600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33601$as_echo "no" >&6; }
33602 tst_proto_gethostname="no"
33603
33604fi
33605rm -f conftest*
33606
33607 fi
33608 #
33609 if test "$tst_proto_gethostname" = "yes"; then
33610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33611$as_echo_n "checking if gethostname is compilable... " >&6; }
33612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33613/* end confdefs.h. */
33614
33615
33616 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033617 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033618 $curl_includes_unistd
33619
33620int main (void)
33621{
33622
33623 if(0 != gethostname(0, 0))
33624 return 1;
33625
33626 ;
33627 return 0;
33628}
33629
33630_ACEOF
33631if ac_fn_c_try_compile "$LINENO"; then :
33632
33633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33634$as_echo "yes" >&6; }
33635 tst_compi_gethostname="yes"
33636
33637else
33638
33639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33640$as_echo "no" >&6; }
33641 tst_compi_gethostname="no"
33642
33643fi
33644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33645 fi
33646 #
33647 if test "$tst_compi_gethostname" = "yes"; then
33648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33649$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33650 tst_gethostname_type_arg2="unknown"
33651 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33652 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33653 if test "$tst_gethostname_type_arg2" = "unknown"; then
33654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33655/* end confdefs.h. */
33656
33657
33658 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070033659 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070033660 $curl_includes_unistd
33661 $curl_preprocess_callconv
33662 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33663
33664int main (void)
33665{
33666
33667 if(0 != gethostname(0, 0))
33668 return 1;
33669
33670 ;
33671 return 0;
33672}
33673
33674_ACEOF
33675if ac_fn_c_try_compile "$LINENO"; then :
33676
33677 tst_gethostname_type_arg2="$tst_arg2"
33678
33679fi
33680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33681 fi
33682 done
33683 done
33684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33685$as_echo "$tst_gethostname_type_arg2" >&6; }
33686 if test "$tst_gethostname_type_arg2" != "unknown"; then
33687
33688cat >>confdefs.h <<_ACEOF
33689#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33690_ACEOF
33691
33692 fi
33693 fi
33694 #
33695 if test "$tst_compi_gethostname" = "yes"; then
33696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33697$as_echo_n "checking if gethostname usage allowed... " >&6; }
33698 if test "x$curl_disallow_gethostname" != "xyes"; then
33699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33700$as_echo "yes" >&6; }
33701 tst_allow_gethostname="yes"
33702 else
33703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33704$as_echo "no" >&6; }
33705 tst_allow_gethostname="no"
33706 fi
33707 fi
33708 #
33709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33710$as_echo_n "checking if gethostname might be used... " >&6; }
33711 if test "$tst_links_gethostname" = "yes" &&
33712 test "$tst_proto_gethostname" = "yes" &&
33713 test "$tst_compi_gethostname" = "yes" &&
33714 test "$tst_allow_gethostname" = "yes"; then
33715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33716$as_echo "yes" >&6; }
33717
33718cat >>confdefs.h <<_ACEOF
33719#define HAVE_GETHOSTNAME 1
33720_ACEOF
33721
33722 curl_cv_func_gethostname="yes"
33723 else
33724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33725$as_echo "no" >&6; }
33726 curl_cv_func_gethostname="no"
33727 fi
33728
33729
33730 #
33731 tst_links_getifaddrs="unknown"
33732 tst_proto_getifaddrs="unknown"
33733 tst_compi_getifaddrs="unknown"
33734 tst_works_getifaddrs="unknown"
33735 tst_allow_getifaddrs="unknown"
33736 #
33737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33738$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33740/* end confdefs.h. */
33741
33742
33743#define getifaddrs innocuous_getifaddrs
33744#ifdef __STDC__
33745# include <limits.h>
33746#else
33747# include <assert.h>
33748#endif
33749#undef getifaddrs
33750#ifdef __cplusplus
33751extern "C"
33752#endif
33753char getifaddrs ();
33754#if defined __stub_getifaddrs || defined __stub___getifaddrs
33755choke me
33756#endif
33757
33758int main (void)
33759{
33760return getifaddrs ();
33761 ;
33762 return 0;
33763}
33764
33765_ACEOF
33766if ac_fn_c_try_link "$LINENO"; then :
33767
33768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33769$as_echo "yes" >&6; }
33770 tst_links_getifaddrs="yes"
33771
33772else
33773
33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33775$as_echo "no" >&6; }
33776 tst_links_getifaddrs="no"
33777
33778fi
33779rm -f core conftest.err conftest.$ac_objext \
33780 conftest$ac_exeext conftest.$ac_ext
33781 #
33782 if test "$tst_links_getifaddrs" = "yes"; then
33783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33784$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33786/* end confdefs.h. */
33787
33788 $curl_includes_ifaddrs
33789
33790_ACEOF
33791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33792 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33793
33794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33795$as_echo "yes" >&6; }
33796 tst_proto_getifaddrs="yes"
33797
33798else
33799
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33801$as_echo "no" >&6; }
33802 tst_proto_getifaddrs="no"
33803
33804fi
33805rm -f conftest*
33806
33807 fi
33808 #
33809 if test "$tst_proto_getifaddrs" = "yes"; then
33810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33811$as_echo_n "checking if getifaddrs is compilable... " >&6; }
33812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33813/* end confdefs.h. */
33814
33815
33816 $curl_includes_ifaddrs
33817
33818int main (void)
33819{
33820
33821 if(0 != getifaddrs(0))
33822 return 1;
33823
33824 ;
33825 return 0;
33826}
33827
33828_ACEOF
33829if ac_fn_c_try_compile "$LINENO"; then :
33830
33831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33832$as_echo "yes" >&6; }
33833 tst_compi_getifaddrs="yes"
33834
33835else
33836
33837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33838$as_echo "no" >&6; }
33839 tst_compi_getifaddrs="no"
33840
33841fi
33842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33843 fi
33844 #
33845 if test "x$cross_compiling" != "xyes" &&
33846 test "$tst_compi_getifaddrs" = "yes"; then
33847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33848$as_echo_n "checking if getifaddrs seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080033849
33850
33851 old=$LD_LIBRARY_PATH
33852 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
33853 export LD_LIBRARY_PATH
33854 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070033855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33857as_fn_error $? "cannot run test program while cross compiling
33858See \`config.log' for more details" "$LINENO" 5; }
33859else
33860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33861/* end confdefs.h. */
33862
33863
33864 $curl_includes_stdlib
33865 $curl_includes_ifaddrs
33866
33867int main (void)
33868{
33869
33870 struct ifaddrs *ifa = 0;
33871 int error;
33872
33873 error = getifaddrs(&ifa);
33874 if(error || !ifa)
33875 exit(1); /* fail */
33876 else
33877 exit(0);
33878
33879 ;
33880 return 0;
33881}
33882
33883_ACEOF
33884if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080033885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070033886$as_echo "yes" >&6; }
33887 tst_works_getifaddrs="yes"
33888
33889else
Elliott Hughesa93fb052018-12-12 14:22:48 -080033890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070033891$as_echo "no" >&6; }
33892 tst_works_getifaddrs="no"
33893
33894fi
33895rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33896 conftest.$ac_objext conftest.beam conftest.$ac_ext
33897fi
33898
Elliott Hughesa93fb052018-12-12 14:22:48 -080033899 LD_LIBRARY_PATH=$old # restore
33900
Elliott Hughes82be86d2017-09-20 17:00:17 -070033901 fi
33902 #
33903 if test "$tst_compi_getifaddrs" = "yes" &&
33904 test "$tst_works_getifaddrs" != "no"; then
33905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
33906$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
33907 if test "x$curl_disallow_getifaddrs" != "xyes"; then
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33909$as_echo "yes" >&6; }
33910 tst_allow_getifaddrs="yes"
33911 else
33912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33913$as_echo "no" >&6; }
33914 tst_allow_getifaddrs="no"
33915 fi
33916 fi
33917 #
33918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
33919$as_echo_n "checking if getifaddrs might be used... " >&6; }
33920 if test "$tst_links_getifaddrs" = "yes" &&
33921 test "$tst_proto_getifaddrs" = "yes" &&
33922 test "$tst_compi_getifaddrs" = "yes" &&
33923 test "$tst_allow_getifaddrs" = "yes" &&
33924 test "$tst_works_getifaddrs" != "no"; then
33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33926$as_echo "yes" >&6; }
33927
33928cat >>confdefs.h <<_ACEOF
33929#define HAVE_GETIFADDRS 1
33930_ACEOF
33931
33932 curl_cv_func_getifaddrs="yes"
33933 else
33934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33935$as_echo "no" >&6; }
33936 curl_cv_func_getifaddrs="no"
33937 fi
33938
33939
33940 #
33941 tst_links_getservbyport_r="unknown"
33942 tst_proto_getservbyport_r="unknown"
33943 tst_compi_getservbyport_r="unknown"
33944 tst_allow_getservbyport_r="unknown"
33945 tst_nargs_getservbyport_r="unknown"
33946 #
33947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
33948$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
33949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33950/* end confdefs.h. */
33951
33952
33953#define getservbyport_r innocuous_getservbyport_r
33954#ifdef __STDC__
33955# include <limits.h>
33956#else
33957# include <assert.h>
33958#endif
33959#undef getservbyport_r
33960#ifdef __cplusplus
33961extern "C"
33962#endif
33963char getservbyport_r ();
33964#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
33965choke me
33966#endif
33967
33968int main (void)
33969{
33970return getservbyport_r ();
33971 ;
33972 return 0;
33973}
33974
33975_ACEOF
33976if ac_fn_c_try_link "$LINENO"; then :
33977
33978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33979$as_echo "yes" >&6; }
33980 tst_links_getservbyport_r="yes"
33981
33982else
33983
33984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33985$as_echo "no" >&6; }
33986 tst_links_getservbyport_r="no"
33987
33988fi
33989rm -f core conftest.err conftest.$ac_objext \
33990 conftest$ac_exeext conftest.$ac_ext
33991 #
33992 if test "$tst_links_getservbyport_r" = "yes"; then
33993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
33994$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
33995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33996/* end confdefs.h. */
33997
33998 $curl_includes_netdb
33999
34000_ACEOF
34001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34002 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34003
34004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34005$as_echo "yes" >&6; }
34006 tst_proto_getservbyport_r="yes"
34007
34008else
34009
34010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34011$as_echo "no" >&6; }
34012 tst_proto_getservbyport_r="no"
34013
34014fi
34015rm -f conftest*
34016
34017 fi
34018 #
34019 if test "$tst_proto_getservbyport_r" = "yes"; then
34020 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34022$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34024/* end confdefs.h. */
34025
34026
34027 $curl_includes_netdb
34028
34029int main (void)
34030{
34031
34032 if(0 != getservbyport_r(0, 0, 0, 0))
34033 return 1;
34034
34035 ;
34036 return 0;
34037}
34038
34039_ACEOF
34040if ac_fn_c_try_compile "$LINENO"; then :
34041
34042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34043$as_echo "yes" >&6; }
34044 tst_compi_getservbyport_r="yes"
34045 tst_nargs_getservbyport_r="4"
34046
34047else
34048
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34050$as_echo "no" >&6; }
34051 tst_compi_getservbyport_r="no"
34052
34053fi
34054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34055 fi
34056 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34058$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34060/* end confdefs.h. */
34061
34062
34063 $curl_includes_netdb
34064
34065int main (void)
34066{
34067
34068 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34069 return 1;
34070
34071 ;
34072 return 0;
34073}
34074
34075_ACEOF
34076if ac_fn_c_try_compile "$LINENO"; then :
34077
34078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34079$as_echo "yes" >&6; }
34080 tst_compi_getservbyport_r="yes"
34081 tst_nargs_getservbyport_r="5"
34082
34083else
34084
34085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34086$as_echo "no" >&6; }
34087 tst_compi_getservbyport_r="no"
34088
34089fi
34090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34091 fi
34092 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34094$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34096/* end confdefs.h. */
34097
34098
34099 $curl_includes_netdb
34100
34101int main (void)
34102{
34103
34104 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34105 return 1;
34106
34107 ;
34108 return 0;
34109}
34110
34111_ACEOF
34112if ac_fn_c_try_compile "$LINENO"; then :
34113
34114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34115$as_echo "yes" >&6; }
34116 tst_compi_getservbyport_r="yes"
34117 tst_nargs_getservbyport_r="6"
34118
34119else
34120
34121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34122$as_echo "no" >&6; }
34123 tst_compi_getservbyport_r="no"
34124
34125fi
34126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34127 fi
34128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34129$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34130 if test "$tst_compi_getservbyport_r" = "yes"; then
34131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34132$as_echo "yes" >&6; }
34133 else
34134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34135$as_echo "no" >&6; }
34136 fi
34137 fi
34138 #
34139 if test "$tst_compi_getservbyport_r" = "yes"; then
34140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34141$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34142 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34144$as_echo "yes" >&6; }
34145 tst_allow_getservbyport_r="yes"
34146 else
34147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34148$as_echo "no" >&6; }
34149 tst_allow_getservbyport_r="no"
34150 fi
34151 fi
34152 #
34153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34154$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34155 if test "$tst_links_getservbyport_r" = "yes" &&
34156 test "$tst_proto_getservbyport_r" = "yes" &&
34157 test "$tst_compi_getservbyport_r" = "yes" &&
34158 test "$tst_allow_getservbyport_r" = "yes"; then
34159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34160$as_echo "yes" >&6; }
34161
34162cat >>confdefs.h <<_ACEOF
34163#define HAVE_GETSERVBYPORT_R 1
34164_ACEOF
34165
34166
34167cat >>confdefs.h <<_ACEOF
34168#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34169_ACEOF
34170
34171 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34172
34173$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34174
34175 else
34176
34177$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34178
34179 fi
34180 curl_cv_func_getservbyport_r="yes"
34181 else
34182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34183$as_echo "no" >&6; }
34184 curl_cv_func_getservbyport_r="no"
34185 fi
34186
34187
34188curl_includes_time="\
34189/* includes start */
34190#ifdef HAVE_SYS_TYPES_H
34191# include <sys/types.h>
34192#endif
34193#ifdef HAVE_SYS_TIME_H
34194# include <sys/time.h>
34195# ifdef TIME_WITH_SYS_TIME
34196# include <time.h>
34197# endif
34198#else
34199# ifdef HAVE_TIME_H
34200# include <time.h>
34201# endif
34202#endif
34203/* includes end */"
34204 for ac_header in sys/types.h sys/time.h time.h
34205do :
34206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34207ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34208"
34209if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34210 cat >>confdefs.h <<_ACEOF
34211#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34212_ACEOF
34213
34214fi
34215
34216done
34217
34218
34219
34220 #
34221 tst_links_gmtime_r="unknown"
34222 tst_proto_gmtime_r="unknown"
34223 tst_compi_gmtime_r="unknown"
34224 tst_works_gmtime_r="unknown"
34225 tst_allow_gmtime_r="unknown"
34226 #
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34228$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34230/* end confdefs.h. */
34231
34232
34233#define gmtime_r innocuous_gmtime_r
34234#ifdef __STDC__
34235# include <limits.h>
34236#else
34237# include <assert.h>
34238#endif
34239#undef gmtime_r
34240#ifdef __cplusplus
34241extern "C"
34242#endif
34243char gmtime_r ();
34244#if defined __stub_gmtime_r || defined __stub___gmtime_r
34245choke me
34246#endif
34247
34248int main (void)
34249{
34250return gmtime_r ();
34251 ;
34252 return 0;
34253}
34254
34255_ACEOF
34256if ac_fn_c_try_link "$LINENO"; then :
34257
34258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34259$as_echo "yes" >&6; }
34260 tst_links_gmtime_r="yes"
34261
34262else
34263
34264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34265$as_echo "no" >&6; }
34266 tst_links_gmtime_r="no"
34267
34268fi
34269rm -f core conftest.err conftest.$ac_objext \
34270 conftest$ac_exeext conftest.$ac_ext
34271 #
34272 if test "$tst_links_gmtime_r" = "yes"; then
34273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34274$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34276/* end confdefs.h. */
34277
34278 $curl_includes_time
34279
34280_ACEOF
34281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34282 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34283
34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34285$as_echo "yes" >&6; }
34286 tst_proto_gmtime_r="yes"
34287
34288else
34289
34290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34291$as_echo "no" >&6; }
34292 tst_proto_gmtime_r="no"
34293
34294fi
34295rm -f conftest*
34296
34297 fi
34298 #
34299 if test "$tst_proto_gmtime_r" = "yes"; then
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34301$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34303/* end confdefs.h. */
34304
34305
34306 $curl_includes_time
34307
34308int main (void)
34309{
34310
34311 if(0 != gmtime_r(0, 0))
34312 return 1;
34313
34314 ;
34315 return 0;
34316}
34317
34318_ACEOF
34319if ac_fn_c_try_compile "$LINENO"; then :
34320
34321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34322$as_echo "yes" >&6; }
34323 tst_compi_gmtime_r="yes"
34324
34325else
34326
34327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34328$as_echo "no" >&6; }
34329 tst_compi_gmtime_r="no"
34330
34331fi
34332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34333 fi
34334 #
34335 if test "x$cross_compiling" != "xyes" &&
34336 test "$tst_compi_gmtime_r" = "yes"; then
34337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34338$as_echo_n "checking if gmtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034339
34340
34341 old=$LD_LIBRARY_PATH
34342 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34343 export LD_LIBRARY_PATH
34344 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34347as_fn_error $? "cannot run test program while cross compiling
34348See \`config.log' for more details" "$LINENO" 5; }
34349else
34350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34351/* end confdefs.h. */
34352
34353
34354 $curl_includes_stdlib
34355 $curl_includes_time
34356
34357int main (void)
34358{
34359
34360 time_t local = 1170352587;
34361 struct tm *gmt = 0;
34362 struct tm result;
34363 gmt = gmtime_r(&local, &result);
34364 if(gmt)
34365 exit(0);
34366 else
34367 exit(1);
34368
34369 ;
34370 return 0;
34371}
34372
34373_ACEOF
34374if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034376$as_echo "yes" >&6; }
34377 tst_works_gmtime_r="yes"
34378
34379else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034381$as_echo "no" >&6; }
34382 tst_works_gmtime_r="no"
34383
34384fi
34385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34386 conftest.$ac_objext conftest.beam conftest.$ac_ext
34387fi
34388
Elliott Hughesa93fb052018-12-12 14:22:48 -080034389 LD_LIBRARY_PATH=$old # restore
34390
Elliott Hughes82be86d2017-09-20 17:00:17 -070034391 fi
34392 #
34393 if test "$tst_compi_gmtime_r" = "yes" &&
34394 test "$tst_works_gmtime_r" != "no"; then
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34396$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34397 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34399$as_echo "yes" >&6; }
34400 tst_allow_gmtime_r="yes"
34401 else
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34403$as_echo "no" >&6; }
34404 tst_allow_gmtime_r="no"
34405 fi
34406 fi
34407 #
34408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34409$as_echo_n "checking if gmtime_r might be used... " >&6; }
34410 if test "$tst_links_gmtime_r" = "yes" &&
34411 test "$tst_proto_gmtime_r" = "yes" &&
34412 test "$tst_compi_gmtime_r" = "yes" &&
34413 test "$tst_allow_gmtime_r" = "yes" &&
34414 test "$tst_works_gmtime_r" != "no"; then
34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34416$as_echo "yes" >&6; }
34417
34418cat >>confdefs.h <<_ACEOF
34419#define HAVE_GMTIME_R 1
34420_ACEOF
34421
34422 curl_cv_func_gmtime_r="yes"
34423 else
34424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34425$as_echo "no" >&6; }
34426 curl_cv_func_gmtime_r="no"
34427 fi
34428
34429
34430curl_includes_arpa_inet="\
34431/* includes start */
34432#ifdef HAVE_SYS_TYPES_H
34433# include <sys/types.h>
34434#endif
34435#ifdef HAVE_SYS_SOCKET_H
34436# include <sys/socket.h>
34437#endif
34438#ifdef HAVE_NETINET_IN_H
34439# include <netinet/in.h>
34440#endif
34441#ifdef HAVE_ARPA_INET_H
34442# include <arpa/inet.h>
34443#endif
34444#ifdef HAVE_WINSOCK2_H
34445#include <winsock2.h>
34446#include <ws2tcpip.h>
34447#endif
34448/* includes end */"
34449 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34450do :
34451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34452ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34453"
34454if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34455 cat >>confdefs.h <<_ACEOF
34456#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34457_ACEOF
34458
34459fi
34460
34461done
34462
34463
34464
34465 #
34466 tst_links_inet_ntoa_r="unknown"
34467 tst_proto_inet_ntoa_r="unknown"
34468 tst_compi_inet_ntoa_r="unknown"
34469 tst_allow_inet_ntoa_r="unknown"
34470 tst_nargs_inet_ntoa_r="unknown"
34471 #
34472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34473$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34475/* end confdefs.h. */
34476
34477
34478#define inet_ntoa_r innocuous_inet_ntoa_r
34479#ifdef __STDC__
34480# include <limits.h>
34481#else
34482# include <assert.h>
34483#endif
34484#undef inet_ntoa_r
34485#ifdef __cplusplus
34486extern "C"
34487#endif
34488char inet_ntoa_r ();
34489#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34490choke me
34491#endif
34492
34493int main (void)
34494{
34495return inet_ntoa_r ();
34496 ;
34497 return 0;
34498}
34499
34500_ACEOF
34501if ac_fn_c_try_link "$LINENO"; then :
34502
34503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34504$as_echo "yes" >&6; }
34505 tst_links_inet_ntoa_r="yes"
34506
34507else
34508
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34510$as_echo "no" >&6; }
34511 tst_links_inet_ntoa_r="no"
34512
34513fi
34514rm -f core conftest.err conftest.$ac_objext \
34515 conftest$ac_exeext conftest.$ac_ext
34516 #
34517 if test "$tst_links_inet_ntoa_r" = "yes"; then
34518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34519$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34521/* end confdefs.h. */
34522
34523 $curl_includes_arpa_inet
34524
34525_ACEOF
34526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34527 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34528
34529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34530$as_echo "yes" >&6; }
34531 tst_proto_inet_ntoa_r="yes"
34532
34533else
34534
34535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34536$as_echo "no" >&6; }
34537 tst_proto_inet_ntoa_r="no"
34538
34539fi
34540rm -f conftest*
34541
34542 fi
34543 #
34544 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34545 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34547$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34549/* end confdefs.h. */
34550
34551
34552 $curl_includes_arpa_inet
34553
34554int main (void)
34555{
34556
34557 struct in_addr addr;
34558 if(0 != inet_ntoa_r(addr, 0))
34559 return 1;
34560
34561 ;
34562 return 0;
34563}
34564
34565_ACEOF
34566if ac_fn_c_try_compile "$LINENO"; then :
34567
34568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34569$as_echo "yes" >&6; }
34570 tst_compi_inet_ntoa_r="yes"
34571 tst_nargs_inet_ntoa_r="2"
34572
34573else
34574
34575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34576$as_echo "no" >&6; }
34577 tst_compi_inet_ntoa_r="no"
34578
34579fi
34580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34581 fi
34582 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34584$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34586/* end confdefs.h. */
34587
34588
34589 $curl_includes_arpa_inet
34590
34591int main (void)
34592{
34593
34594 struct in_addr addr;
34595 if(0 != inet_ntoa_r(addr, 0, 0))
34596 return 1;
34597
34598 ;
34599 return 0;
34600}
34601
34602_ACEOF
34603if ac_fn_c_try_compile "$LINENO"; then :
34604
34605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34606$as_echo "yes" >&6; }
34607 tst_compi_inet_ntoa_r="yes"
34608 tst_nargs_inet_ntoa_r="3"
34609
34610else
34611
34612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34613$as_echo "no" >&6; }
34614 tst_compi_inet_ntoa_r="no"
34615
34616fi
34617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34618 fi
34619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34620$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34621 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34623$as_echo "yes" >&6; }
34624 else
34625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34626$as_echo "no" >&6; }
34627 fi
34628 fi
34629 #
34630 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34632$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34633 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34635$as_echo "yes" >&6; }
34636 tst_allow_inet_ntoa_r="yes"
34637 else
34638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34639$as_echo "no" >&6; }
34640 tst_allow_inet_ntoa_r="no"
34641 fi
34642 fi
34643 #
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34645$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34646 if test "$tst_links_inet_ntoa_r" = "yes" &&
34647 test "$tst_proto_inet_ntoa_r" = "yes" &&
34648 test "$tst_compi_inet_ntoa_r" = "yes" &&
34649 test "$tst_allow_inet_ntoa_r" = "yes"; then
34650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34651$as_echo "yes" >&6; }
34652
34653cat >>confdefs.h <<_ACEOF
34654#define HAVE_INET_NTOA_R 1
34655_ACEOF
34656
34657 #
34658 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34659
34660$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34661
34662 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34663
34664$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34665
34666 fi
34667 #
34668 curl_cv_func_inet_ntoa_r="yes"
34669 else
34670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34671$as_echo "no" >&6; }
34672 curl_cv_func_inet_ntoa_r="no"
34673 fi
34674
34675
34676 #
34677 tst_links_inet_ntop="unknown"
34678 tst_proto_inet_ntop="unknown"
34679 tst_compi_inet_ntop="unknown"
34680 tst_works_inet_ntop="unknown"
34681 tst_allow_inet_ntop="unknown"
34682 #
34683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34684$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34686/* end confdefs.h. */
34687
34688
34689#define inet_ntop innocuous_inet_ntop
34690#ifdef __STDC__
34691# include <limits.h>
34692#else
34693# include <assert.h>
34694#endif
34695#undef inet_ntop
34696#ifdef __cplusplus
34697extern "C"
34698#endif
34699char inet_ntop ();
34700#if defined __stub_inet_ntop || defined __stub___inet_ntop
34701choke me
34702#endif
34703
34704int main (void)
34705{
34706return inet_ntop ();
34707 ;
34708 return 0;
34709}
34710
34711_ACEOF
34712if ac_fn_c_try_link "$LINENO"; then :
34713
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34715$as_echo "yes" >&6; }
34716 tst_links_inet_ntop="yes"
34717
34718else
34719
34720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34721$as_echo "no" >&6; }
34722 tst_links_inet_ntop="no"
34723
34724fi
34725rm -f core conftest.err conftest.$ac_objext \
34726 conftest$ac_exeext conftest.$ac_ext
34727 #
34728 if test "$tst_links_inet_ntop" = "yes"; then
34729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34730$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34732/* end confdefs.h. */
34733
34734 $curl_includes_arpa_inet
34735
34736_ACEOF
34737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34738 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34739
34740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34741$as_echo "yes" >&6; }
34742 tst_proto_inet_ntop="yes"
34743
34744else
34745
34746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34747$as_echo "no" >&6; }
34748 tst_proto_inet_ntop="no"
34749
34750fi
34751rm -f conftest*
34752
34753 fi
34754 #
34755 if test "$tst_proto_inet_ntop" = "yes"; then
34756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34757$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34759/* end confdefs.h. */
34760
34761
34762 $curl_includes_arpa_inet
34763
34764int main (void)
34765{
34766
34767 if(0 != inet_ntop(0, 0, 0, 0))
34768 return 1;
34769
34770 ;
34771 return 0;
34772}
34773
34774_ACEOF
34775if ac_fn_c_try_compile "$LINENO"; then :
34776
34777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34778$as_echo "yes" >&6; }
34779 tst_compi_inet_ntop="yes"
34780
34781else
34782
34783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34784$as_echo "no" >&6; }
34785 tst_compi_inet_ntop="no"
34786
34787fi
34788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34789 fi
34790 #
34791 if test "x$cross_compiling" != "xyes" &&
34792 test "$tst_compi_inet_ntop" = "yes"; then
34793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34794$as_echo_n "checking if inet_ntop seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034795
34796
34797 old=$LD_LIBRARY_PATH
34798 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34799 export LD_LIBRARY_PATH
34800 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34803as_fn_error $? "cannot run test program while cross compiling
34804See \`config.log' for more details" "$LINENO" 5; }
34805else
34806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34807/* end confdefs.h. */
34808
34809
34810 $curl_includes_stdlib
34811 $curl_includes_arpa_inet
34812 $curl_includes_string
34813
34814int main (void)
34815{
34816
34817 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34818 char ipv4res[sizeof "255.255.255.255"];
34819 unsigned char ipv6a[26];
34820 unsigned char ipv4a[5];
34821 char *ipv6ptr = 0;
34822 char *ipv4ptr = 0;
34823 /* - */
34824 ipv4res[0] = '\0';
34825 ipv4a[0] = 0xc0;
34826 ipv4a[1] = 0xa8;
34827 ipv4a[2] = 0x64;
34828 ipv4a[3] = 0x01;
34829 ipv4a[4] = 0x01;
34830 /* - */
34831 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34832 if(!ipv4ptr)
34833 exit(1); /* fail */
34834 if(ipv4ptr != ipv4res)
34835 exit(1); /* fail */
34836 if(!ipv4ptr[0])
34837 exit(1); /* fail */
34838 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34839 exit(1); /* fail */
34840 /* - */
34841 ipv6res[0] = '\0';
34842 memset(ipv6a, 0, sizeof(ipv6a));
34843 ipv6a[0] = 0xfe;
34844 ipv6a[1] = 0x80;
34845 ipv6a[8] = 0x02;
34846 ipv6a[9] = 0x14;
34847 ipv6a[10] = 0x4f;
34848 ipv6a[11] = 0xff;
34849 ipv6a[12] = 0xfe;
34850 ipv6a[13] = 0x0b;
34851 ipv6a[14] = 0x76;
34852 ipv6a[15] = 0xc8;
34853 ipv6a[25] = 0x01;
34854 /* - */
34855 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34856 if(!ipv6ptr)
34857 exit(1); /* fail */
34858 if(ipv6ptr != ipv6res)
34859 exit(1); /* fail */
34860 if(!ipv6ptr[0])
34861 exit(1); /* fail */
34862 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34863 exit(1); /* fail */
34864 /* - */
34865 exit(0);
34866
34867 ;
34868 return 0;
34869}
34870
34871_ACEOF
34872if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034874$as_echo "yes" >&6; }
34875 tst_works_inet_ntop="yes"
34876
34877else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034879$as_echo "no" >&6; }
34880 tst_works_inet_ntop="no"
34881
34882fi
34883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34884 conftest.$ac_objext conftest.beam conftest.$ac_ext
34885fi
34886
Elliott Hughesa93fb052018-12-12 14:22:48 -080034887 LD_LIBRARY_PATH=$old # restore
34888
Elliott Hughes82be86d2017-09-20 17:00:17 -070034889 fi
34890 #
34891 if test "$tst_compi_inet_ntop" = "yes" &&
34892 test "$tst_works_inet_ntop" != "no"; then
34893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
34894$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
34895 if test "x$curl_disallow_inet_ntop" != "xyes"; then
34896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34897$as_echo "yes" >&6; }
34898 tst_allow_inet_ntop="yes"
34899 else
34900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34901$as_echo "no" >&6; }
34902 tst_allow_inet_ntop="no"
34903 fi
34904 fi
34905 #
34906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
34907$as_echo_n "checking if inet_ntop might be used... " >&6; }
34908 if test "$tst_links_inet_ntop" = "yes" &&
34909 test "$tst_proto_inet_ntop" = "yes" &&
34910 test "$tst_compi_inet_ntop" = "yes" &&
34911 test "$tst_allow_inet_ntop" = "yes" &&
34912 test "$tst_works_inet_ntop" != "no"; then
34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34914$as_echo "yes" >&6; }
34915
34916cat >>confdefs.h <<_ACEOF
34917#define HAVE_INET_NTOP 1
34918_ACEOF
34919
34920 curl_cv_func_inet_ntop="yes"
34921 else
34922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34923$as_echo "no" >&6; }
34924 curl_cv_func_inet_ntop="no"
34925 fi
34926
34927
34928 #
34929 tst_links_inet_pton="unknown"
34930 tst_proto_inet_pton="unknown"
34931 tst_compi_inet_pton="unknown"
34932 tst_works_inet_pton="unknown"
34933 tst_allow_inet_pton="unknown"
34934 #
34935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
34936$as_echo_n "checking if inet_pton can be linked... " >&6; }
34937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34938/* end confdefs.h. */
34939
34940
34941#define inet_pton innocuous_inet_pton
34942#ifdef __STDC__
34943# include <limits.h>
34944#else
34945# include <assert.h>
34946#endif
34947#undef inet_pton
34948#ifdef __cplusplus
34949extern "C"
34950#endif
34951char inet_pton ();
34952#if defined __stub_inet_pton || defined __stub___inet_pton
34953choke me
34954#endif
34955
34956int main (void)
34957{
34958return inet_pton ();
34959 ;
34960 return 0;
34961}
34962
34963_ACEOF
34964if ac_fn_c_try_link "$LINENO"; then :
34965
34966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34967$as_echo "yes" >&6; }
34968 tst_links_inet_pton="yes"
34969
34970else
34971
34972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34973$as_echo "no" >&6; }
34974 tst_links_inet_pton="no"
34975
34976fi
34977rm -f core conftest.err conftest.$ac_objext \
34978 conftest$ac_exeext conftest.$ac_ext
34979 #
34980 if test "$tst_links_inet_pton" = "yes"; then
34981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
34982$as_echo_n "checking if inet_pton is prototyped... " >&6; }
34983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34984/* end confdefs.h. */
34985
34986 $curl_includes_arpa_inet
34987
34988_ACEOF
34989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34990 $EGREP "inet_pton" >/dev/null 2>&1; then :
34991
34992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34993$as_echo "yes" >&6; }
34994 tst_proto_inet_pton="yes"
34995
34996else
34997
34998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34999$as_echo "no" >&6; }
35000 tst_proto_inet_pton="no"
35001
35002fi
35003rm -f conftest*
35004
35005 fi
35006 #
35007 if test "$tst_proto_inet_pton" = "yes"; then
35008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35009$as_echo_n "checking if inet_pton is compilable... " >&6; }
35010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35011/* end confdefs.h. */
35012
35013
35014 $curl_includes_arpa_inet
35015
35016int main (void)
35017{
35018
35019 if(0 != inet_pton(0, 0, 0))
35020 return 1;
35021
35022 ;
35023 return 0;
35024}
35025
35026_ACEOF
35027if ac_fn_c_try_compile "$LINENO"; then :
35028
35029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35030$as_echo "yes" >&6; }
35031 tst_compi_inet_pton="yes"
35032
35033else
35034
35035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35036$as_echo "no" >&6; }
35037 tst_compi_inet_pton="no"
35038
35039fi
35040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35041 fi
35042 #
35043 if test "x$cross_compiling" != "xyes" &&
35044 test "$tst_compi_inet_pton" = "yes"; then
35045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35046$as_echo_n "checking if inet_pton seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035047
35048
35049 old=$LD_LIBRARY_PATH
35050 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35051 export LD_LIBRARY_PATH
35052 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35055as_fn_error $? "cannot run test program while cross compiling
35056See \`config.log' for more details" "$LINENO" 5; }
35057else
35058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35059/* end confdefs.h. */
35060
35061
35062 $curl_includes_stdlib
35063 $curl_includes_arpa_inet
35064 $curl_includes_string
35065
35066int main (void)
35067{
35068
35069 unsigned char ipv6a[16+1];
35070 unsigned char ipv4a[4+1];
35071 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35072 const char *ipv4src = "192.168.100.1";
35073 /* - */
35074 memset(ipv4a, 1, sizeof(ipv4a));
35075 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35076 exit(1); /* fail */
35077 /* - */
35078 if( (ipv4a[0] != 0xc0) ||
35079 (ipv4a[1] != 0xa8) ||
35080 (ipv4a[2] != 0x64) ||
35081 (ipv4a[3] != 0x01) ||
35082 (ipv4a[4] != 0x01) )
35083 exit(1); /* fail */
35084 /* - */
35085 memset(ipv6a, 1, sizeof(ipv6a));
35086 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35087 exit(1); /* fail */
35088 /* - */
35089 if( (ipv6a[0] != 0xfe) ||
35090 (ipv6a[1] != 0x80) ||
35091 (ipv6a[8] != 0x02) ||
35092 (ipv6a[9] != 0x14) ||
35093 (ipv6a[10] != 0x4f) ||
35094 (ipv6a[11] != 0xff) ||
35095 (ipv6a[12] != 0xfe) ||
35096 (ipv6a[13] != 0x0b) ||
35097 (ipv6a[14] != 0x76) ||
35098 (ipv6a[15] != 0xc8) ||
35099 (ipv6a[16] != 0x01) )
35100 exit(1); /* fail */
35101 /* - */
35102 if( (ipv6a[2] != 0x0) ||
35103 (ipv6a[3] != 0x0) ||
35104 (ipv6a[4] != 0x0) ||
35105 (ipv6a[5] != 0x0) ||
35106 (ipv6a[6] != 0x0) ||
35107 (ipv6a[7] != 0x0) )
35108 exit(1); /* fail */
35109 /* - */
35110 exit(0);
35111
35112 ;
35113 return 0;
35114}
35115
35116_ACEOF
35117if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035119$as_echo "yes" >&6; }
35120 tst_works_inet_pton="yes"
35121
35122else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035124$as_echo "no" >&6; }
35125 tst_works_inet_pton="no"
35126
35127fi
35128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35129 conftest.$ac_objext conftest.beam conftest.$ac_ext
35130fi
35131
Elliott Hughesa93fb052018-12-12 14:22:48 -080035132 LD_LIBRARY_PATH=$old # restore
35133
Elliott Hughes82be86d2017-09-20 17:00:17 -070035134 fi
35135 #
35136 if test "$tst_compi_inet_pton" = "yes" &&
35137 test "$tst_works_inet_pton" != "no"; then
35138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35139$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35140 if test "x$curl_disallow_inet_pton" != "xyes"; then
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35142$as_echo "yes" >&6; }
35143 tst_allow_inet_pton="yes"
35144 else
35145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35146$as_echo "no" >&6; }
35147 tst_allow_inet_pton="no"
35148 fi
35149 fi
35150 #
35151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35152$as_echo_n "checking if inet_pton might be used... " >&6; }
35153 if test "$tst_links_inet_pton" = "yes" &&
35154 test "$tst_proto_inet_pton" = "yes" &&
35155 test "$tst_compi_inet_pton" = "yes" &&
35156 test "$tst_allow_inet_pton" = "yes" &&
35157 test "$tst_works_inet_pton" != "no"; then
35158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35159$as_echo "yes" >&6; }
35160
35161cat >>confdefs.h <<_ACEOF
35162#define HAVE_INET_PTON 1
35163_ACEOF
35164
35165 curl_cv_func_inet_pton="yes"
35166 else
35167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35168$as_echo "no" >&6; }
35169 curl_cv_func_inet_pton="no"
35170 fi
35171
35172
35173curl_includes_stropts="\
35174/* includes start */
35175#ifdef HAVE_SYS_TYPES_H
35176# include <sys/types.h>
35177#endif
35178#ifdef HAVE_UNISTD_H
35179# include <unistd.h>
35180#endif
35181#ifdef HAVE_SYS_SOCKET_H
35182# include <sys/socket.h>
35183#endif
35184#ifdef HAVE_SYS_IOCTL_H
35185# include <sys/ioctl.h>
35186#endif
35187#ifdef HAVE_STROPTS_H
35188# include <stropts.h>
35189#endif
35190/* includes end */"
35191 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35192do :
35193 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35194ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35195"
35196if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35197 cat >>confdefs.h <<_ACEOF
35198#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35199_ACEOF
35200
35201fi
35202
35203done
35204
35205
35206
35207 #
35208 tst_links_ioctl="unknown"
35209 tst_proto_ioctl="unknown"
35210 tst_compi_ioctl="unknown"
35211 tst_allow_ioctl="unknown"
35212 #
35213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35214$as_echo_n "checking if ioctl can be linked... " >&6; }
35215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35216/* end confdefs.h. */
35217
35218
35219#define ioctl innocuous_ioctl
35220#ifdef __STDC__
35221# include <limits.h>
35222#else
35223# include <assert.h>
35224#endif
35225#undef ioctl
35226#ifdef __cplusplus
35227extern "C"
35228#endif
35229char ioctl ();
35230#if defined __stub_ioctl || defined __stub___ioctl
35231choke me
35232#endif
35233
35234int main (void)
35235{
35236return ioctl ();
35237 ;
35238 return 0;
35239}
35240
35241_ACEOF
35242if ac_fn_c_try_link "$LINENO"; then :
35243
35244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35245$as_echo "yes" >&6; }
35246 tst_links_ioctl="yes"
35247
35248else
35249
35250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35251$as_echo "no" >&6; }
35252 tst_links_ioctl="no"
35253
35254fi
35255rm -f core conftest.err conftest.$ac_objext \
35256 conftest$ac_exeext conftest.$ac_ext
35257 #
35258 if test "$tst_links_ioctl" = "yes"; then
35259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35260$as_echo_n "checking if ioctl is prototyped... " >&6; }
35261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35262/* end confdefs.h. */
35263
35264 $curl_includes_stropts
35265
35266_ACEOF
35267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35268 $EGREP "ioctl" >/dev/null 2>&1; then :
35269
35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35271$as_echo "yes" >&6; }
35272 tst_proto_ioctl="yes"
35273
35274else
35275
35276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35277$as_echo "no" >&6; }
35278 tst_proto_ioctl="no"
35279
35280fi
35281rm -f conftest*
35282
35283 fi
35284 #
35285 if test "$tst_proto_ioctl" = "yes"; then
35286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35287$as_echo_n "checking if ioctl is compilable... " >&6; }
35288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35289/* end confdefs.h. */
35290
35291
35292 $curl_includes_stropts
35293
35294int main (void)
35295{
35296
35297 if(0 != ioctl(0, 0, 0))
35298 return 1;
35299
35300 ;
35301 return 0;
35302}
35303
35304_ACEOF
35305if ac_fn_c_try_compile "$LINENO"; then :
35306
35307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35308$as_echo "yes" >&6; }
35309 tst_compi_ioctl="yes"
35310
35311else
35312
35313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35314$as_echo "no" >&6; }
35315 tst_compi_ioctl="no"
35316
35317fi
35318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35319 fi
35320 #
35321 if test "$tst_compi_ioctl" = "yes"; then
35322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35323$as_echo_n "checking if ioctl usage allowed... " >&6; }
35324 if test "x$curl_disallow_ioctl" != "xyes"; then
35325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35326$as_echo "yes" >&6; }
35327 tst_allow_ioctl="yes"
35328 else
35329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35330$as_echo "no" >&6; }
35331 tst_allow_ioctl="no"
35332 fi
35333 fi
35334 #
35335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35336$as_echo_n "checking if ioctl might be used... " >&6; }
35337 if test "$tst_links_ioctl" = "yes" &&
35338 test "$tst_proto_ioctl" = "yes" &&
35339 test "$tst_compi_ioctl" = "yes" &&
35340 test "$tst_allow_ioctl" = "yes"; then
35341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35342$as_echo "yes" >&6; }
35343
35344cat >>confdefs.h <<_ACEOF
35345#define HAVE_IOCTL 1
35346_ACEOF
35347
35348 curl_cv_func_ioctl="yes"
35349
35350 #
35351 tst_compi_ioctl_fionbio="unknown"
35352 tst_allow_ioctl_fionbio="unknown"
35353 #
35354 if test "$curl_cv_func_ioctl" = "yes"; then
35355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35356$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35358/* end confdefs.h. */
35359
35360
35361 $curl_includes_stropts
35362
35363int main (void)
35364{
35365
35366 int flags = 0;
35367 if(0 != ioctl(0, FIONBIO, &flags))
35368 return 1;
35369
35370 ;
35371 return 0;
35372}
35373
35374_ACEOF
35375if ac_fn_c_try_compile "$LINENO"; then :
35376
35377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35378$as_echo "yes" >&6; }
35379 tst_compi_ioctl_fionbio="yes"
35380
35381else
35382
35383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35384$as_echo "no" >&6; }
35385 tst_compi_ioctl_fionbio="no"
35386
35387fi
35388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35389 fi
35390 #
35391 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35393$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35394 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35396$as_echo "yes" >&6; }
35397 tst_allow_ioctl_fionbio="yes"
35398 else
35399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35400$as_echo "no" >&6; }
35401 tst_allow_ioctl_fionbio="no"
35402 fi
35403 fi
35404 #
35405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35406$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35407 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35408 test "$tst_allow_ioctl_fionbio" = "yes"; then
35409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35410$as_echo "yes" >&6; }
35411
35412cat >>confdefs.h <<_ACEOF
35413#define HAVE_IOCTL_FIONBIO 1
35414_ACEOF
35415
35416 curl_cv_func_ioctl_fionbio="yes"
35417 else
35418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35419$as_echo "no" >&6; }
35420 curl_cv_func_ioctl_fionbio="no"
35421 fi
35422
35423
35424 #
35425 tst_compi_ioctl_siocgifaddr="unknown"
35426 tst_allow_ioctl_siocgifaddr="unknown"
35427 #
35428 if test "$curl_cv_func_ioctl" = "yes"; then
35429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35430$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35432/* end confdefs.h. */
35433
35434
35435 $curl_includes_stropts
35436 #include <net/if.h>
35437
35438int main (void)
35439{
35440
35441 struct ifreq ifr;
35442 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35443 return 1;
35444
35445 ;
35446 return 0;
35447}
35448
35449_ACEOF
35450if ac_fn_c_try_compile "$LINENO"; then :
35451
35452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35453$as_echo "yes" >&6; }
35454 tst_compi_ioctl_siocgifaddr="yes"
35455
35456else
35457
35458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35459$as_echo "no" >&6; }
35460 tst_compi_ioctl_siocgifaddr="no"
35461
35462fi
35463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35464 fi
35465 #
35466 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35468$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35469 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35471$as_echo "yes" >&6; }
35472 tst_allow_ioctl_siocgifaddr="yes"
35473 else
35474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35475$as_echo "no" >&6; }
35476 tst_allow_ioctl_siocgifaddr="no"
35477 fi
35478 fi
35479 #
35480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35481$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35482 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35483 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35485$as_echo "yes" >&6; }
35486
35487cat >>confdefs.h <<_ACEOF
35488#define HAVE_IOCTL_SIOCGIFADDR 1
35489_ACEOF
35490
35491 curl_cv_func_ioctl_siocgifaddr="yes"
35492 else
35493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35494$as_echo "no" >&6; }
35495 curl_cv_func_ioctl_siocgifaddr="no"
35496 fi
35497
35498 else
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35500$as_echo "no" >&6; }
35501 curl_cv_func_ioctl="no"
35502 fi
35503
35504
35505 #
35506 tst_links_ioctlsocket="unknown"
35507 tst_proto_ioctlsocket="unknown"
35508 tst_compi_ioctlsocket="unknown"
35509 tst_allow_ioctlsocket="unknown"
35510 #
35511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35512$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35514/* end confdefs.h. */
35515
35516
35517 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035518 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035519
35520int main (void)
35521{
35522
35523 if(0 != ioctlsocket(0, 0, 0))
35524 return 1;
35525
35526 ;
35527 return 0;
35528}
35529
35530_ACEOF
35531if ac_fn_c_try_link "$LINENO"; then :
35532
35533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35534$as_echo "yes" >&6; }
35535 tst_links_ioctlsocket="yes"
35536
35537else
35538
35539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35540$as_echo "no" >&6; }
35541 tst_links_ioctlsocket="no"
35542
35543fi
35544rm -f core conftest.err conftest.$ac_objext \
35545 conftest$ac_exeext conftest.$ac_ext
35546 #
35547 if test "$tst_links_ioctlsocket" = "yes"; then
35548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35549$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35551/* end confdefs.h. */
35552
35553 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035554 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035555
35556_ACEOF
35557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35558 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35559
35560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35561$as_echo "yes" >&6; }
35562 tst_proto_ioctlsocket="yes"
35563
35564else
35565
35566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35567$as_echo "no" >&6; }
35568 tst_proto_ioctlsocket="no"
35569
35570fi
35571rm -f conftest*
35572
35573 fi
35574 #
35575 if test "$tst_proto_ioctlsocket" = "yes"; then
35576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35577$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35579/* end confdefs.h. */
35580
35581
35582 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035583 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035584
35585int main (void)
35586{
35587
35588 if(0 != ioctlsocket(0, 0, 0))
35589 return 1;
35590
35591 ;
35592 return 0;
35593}
35594
35595_ACEOF
35596if ac_fn_c_try_compile "$LINENO"; then :
35597
35598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35599$as_echo "yes" >&6; }
35600 tst_compi_ioctlsocket="yes"
35601
35602else
35603
35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35605$as_echo "no" >&6; }
35606 tst_compi_ioctlsocket="no"
35607
35608fi
35609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35610 fi
35611 #
35612 if test "$tst_compi_ioctlsocket" = "yes"; then
35613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35614$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35615 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35617$as_echo "yes" >&6; }
35618 tst_allow_ioctlsocket="yes"
35619 else
35620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35621$as_echo "no" >&6; }
35622 tst_allow_ioctlsocket="no"
35623 fi
35624 fi
35625 #
35626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35627$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35628 if test "$tst_links_ioctlsocket" = "yes" &&
35629 test "$tst_proto_ioctlsocket" = "yes" &&
35630 test "$tst_compi_ioctlsocket" = "yes" &&
35631 test "$tst_allow_ioctlsocket" = "yes"; then
35632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35633$as_echo "yes" >&6; }
35634
35635cat >>confdefs.h <<_ACEOF
35636#define HAVE_IOCTLSOCKET 1
35637_ACEOF
35638
35639 curl_cv_func_ioctlsocket="yes"
35640
35641 #
35642 tst_compi_ioctlsocket_fionbio="unknown"
35643 tst_allow_ioctlsocket_fionbio="unknown"
35644 #
35645 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35647$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35649/* end confdefs.h. */
35650
35651
35652 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070035653 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070035654
35655int main (void)
35656{
35657
35658 int flags = 0;
35659 if(0 != ioctlsocket(0, FIONBIO, &flags))
35660 return 1;
35661
35662 ;
35663 return 0;
35664}
35665
35666_ACEOF
35667if ac_fn_c_try_compile "$LINENO"; then :
35668
35669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35670$as_echo "yes" >&6; }
35671 tst_compi_ioctlsocket_fionbio="yes"
35672
35673else
35674
35675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35676$as_echo "no" >&6; }
35677 tst_compi_ioctlsocket_fionbio="no"
35678
35679fi
35680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35681 fi
35682 #
35683 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35685$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35686 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35688$as_echo "yes" >&6; }
35689 tst_allow_ioctlsocket_fionbio="yes"
35690 else
35691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35692$as_echo "no" >&6; }
35693 tst_allow_ioctlsocket_fionbio="no"
35694 fi
35695 fi
35696 #
35697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35698$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35699 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35700 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35702$as_echo "yes" >&6; }
35703
35704cat >>confdefs.h <<_ACEOF
35705#define HAVE_IOCTLSOCKET_FIONBIO 1
35706_ACEOF
35707
35708 curl_cv_func_ioctlsocket_fionbio="yes"
35709 else
35710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35711$as_echo "no" >&6; }
35712 curl_cv_func_ioctlsocket_fionbio="no"
35713 fi
35714
35715 else
35716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35717$as_echo "no" >&6; }
35718 curl_cv_func_ioctlsocket="no"
35719 fi
35720
35721
35722 #
35723 tst_links_ioctlsocket_camel="unknown"
35724 tst_proto_ioctlsocket_camel="unknown"
35725 tst_compi_ioctlsocket_camel="unknown"
35726 tst_allow_ioctlsocket_camel="unknown"
35727 #
35728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35729$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35731/* end confdefs.h. */
35732
35733
35734#define IoctlSocket innocuous_IoctlSocket
35735#ifdef __STDC__
35736# include <limits.h>
35737#else
35738# include <assert.h>
35739#endif
35740#undef IoctlSocket
35741#ifdef __cplusplus
35742extern "C"
35743#endif
35744char IoctlSocket ();
35745#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35746choke me
35747#endif
35748
35749int main (void)
35750{
35751return IoctlSocket ();
35752 ;
35753 return 0;
35754}
35755
35756_ACEOF
35757if ac_fn_c_try_link "$LINENO"; then :
35758
35759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35760$as_echo "yes" >&6; }
35761 tst_links_ioctlsocket_camel="yes"
35762
35763else
35764
35765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35766$as_echo "no" >&6; }
35767 tst_links_ioctlsocket_camel="no"
35768
35769fi
35770rm -f core conftest.err conftest.$ac_objext \
35771 conftest$ac_exeext conftest.$ac_ext
35772 #
35773 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35775$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35777/* end confdefs.h. */
35778
35779 $curl_includes_stropts
35780
35781_ACEOF
35782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35783 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35784
35785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35786$as_echo "yes" >&6; }
35787 tst_proto_ioctlsocket_camel="yes"
35788
35789else
35790
35791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35792$as_echo "no" >&6; }
35793 tst_proto_ioctlsocket_camel="no"
35794
35795fi
35796rm -f conftest*
35797
35798 fi
35799 #
35800 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35802$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35804/* end confdefs.h. */
35805
35806
35807 $curl_includes_stropts
35808
35809int main (void)
35810{
35811
35812 if(0 != IoctlSocket(0, 0, 0))
35813 return 1;
35814
35815 ;
35816 return 0;
35817}
35818
35819_ACEOF
35820if ac_fn_c_try_compile "$LINENO"; then :
35821
35822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35823$as_echo "yes" >&6; }
35824 tst_compi_ioctlsocket_camel="yes"
35825
35826else
35827
35828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35829$as_echo "no" >&6; }
35830 tst_compi_ioctlsocket_camel="no"
35831
35832fi
35833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35834 fi
35835 #
35836 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35838$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35839 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35841$as_echo "yes" >&6; }
35842 tst_allow_ioctlsocket_camel="yes"
35843 else
35844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35845$as_echo "no" >&6; }
35846 tst_allow_ioctlsocket_camel="no"
35847 fi
35848 fi
35849 #
35850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35851$as_echo_n "checking if IoctlSocket might be used... " >&6; }
35852 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35853 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35854 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35855 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35857$as_echo "yes" >&6; }
35858
35859cat >>confdefs.h <<_ACEOF
35860#define HAVE_IOCTLSOCKET_CAMEL 1
35861_ACEOF
35862
35863 curl_cv_func_ioctlsocket_camel="yes"
35864
35865 #
35866 tst_compi_ioctlsocket_camel_fionbio="unknown"
35867 tst_allow_ioctlsocket_camel_fionbio="unknown"
35868 #
35869 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35871$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35873/* end confdefs.h. */
35874
35875
35876 $curl_includes_stropts
35877
35878int main (void)
35879{
35880
35881 long flags = 0;
35882 if(0 != ioctlsocket(0, FIONBIO, &flags))
35883 return 1;
35884
35885 ;
35886 return 0;
35887}
35888
35889_ACEOF
35890if ac_fn_c_try_compile "$LINENO"; then :
35891
35892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35893$as_echo "yes" >&6; }
35894 tst_compi_ioctlsocket_camel_fionbio="yes"
35895
35896else
35897
35898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35899$as_echo "no" >&6; }
35900 tst_compi_ioctlsocket_camel_fionbio="no"
35901
35902fi
35903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35904 fi
35905 #
35906 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
35907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
35908$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
35909 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
35910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35911$as_echo "yes" >&6; }
35912 tst_allow_ioctlsocket_camel_fionbio="yes"
35913 else
35914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35915$as_echo "no" >&6; }
35916 tst_allow_ioctlsocket_camel_fionbio="no"
35917 fi
35918 fi
35919 #
35920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
35921$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
35922 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
35923 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
35924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35925$as_echo "yes" >&6; }
35926
35927cat >>confdefs.h <<_ACEOF
35928#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
35929_ACEOF
35930
35931 curl_cv_func_ioctlsocket_camel_fionbio="yes"
35932 else
35933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35934$as_echo "no" >&6; }
35935 curl_cv_func_ioctlsocket_camel_fionbio="no"
35936 fi
35937
35938 else
35939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35940$as_echo "no" >&6; }
35941 curl_cv_func_ioctlsocket_camel="no"
35942 fi
35943
35944
35945 #
35946 tst_links_localtime_r="unknown"
35947 tst_proto_localtime_r="unknown"
35948 tst_compi_localtime_r="unknown"
35949 tst_works_localtime_r="unknown"
35950 tst_allow_localtime_r="unknown"
35951 #
35952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
35953$as_echo_n "checking if localtime_r can be linked... " >&6; }
35954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35955/* end confdefs.h. */
35956
35957
35958#define localtime_r innocuous_localtime_r
35959#ifdef __STDC__
35960# include <limits.h>
35961#else
35962# include <assert.h>
35963#endif
35964#undef localtime_r
35965#ifdef __cplusplus
35966extern "C"
35967#endif
35968char localtime_r ();
35969#if defined __stub_localtime_r || defined __stub___localtime_r
35970choke me
35971#endif
35972
35973int main (void)
35974{
35975return localtime_r ();
35976 ;
35977 return 0;
35978}
35979
35980_ACEOF
35981if ac_fn_c_try_link "$LINENO"; then :
35982
35983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35984$as_echo "yes" >&6; }
35985 tst_links_localtime_r="yes"
35986
35987else
35988
35989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35990$as_echo "no" >&6; }
35991 tst_links_localtime_r="no"
35992
35993fi
35994rm -f core conftest.err conftest.$ac_objext \
35995 conftest$ac_exeext conftest.$ac_ext
35996 #
35997 if test "$tst_links_localtime_r" = "yes"; then
35998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
35999$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36001/* end confdefs.h. */
36002
36003 $curl_includes_time
36004
36005_ACEOF
36006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36007 $EGREP "localtime_r" >/dev/null 2>&1; then :
36008
36009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36010$as_echo "yes" >&6; }
36011 tst_proto_localtime_r="yes"
36012
36013else
36014
36015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36016$as_echo "no" >&6; }
36017 tst_proto_localtime_r="no"
36018
36019fi
36020rm -f conftest*
36021
36022 fi
36023 #
36024 if test "$tst_proto_localtime_r" = "yes"; then
36025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36026$as_echo_n "checking if localtime_r is compilable... " >&6; }
36027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36028/* end confdefs.h. */
36029
36030
36031 $curl_includes_time
36032
36033int main (void)
36034{
36035
36036 if(0 != localtime_r(0, 0))
36037 return 1;
36038
36039 ;
36040 return 0;
36041}
36042
36043_ACEOF
36044if ac_fn_c_try_compile "$LINENO"; then :
36045
36046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36047$as_echo "yes" >&6; }
36048 tst_compi_localtime_r="yes"
36049
36050else
36051
36052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36053$as_echo "no" >&6; }
36054 tst_compi_localtime_r="no"
36055
36056fi
36057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36058 fi
36059 #
36060 if test "x$cross_compiling" != "xyes" &&
36061 test "$tst_compi_localtime_r" = "yes"; then
36062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36063$as_echo_n "checking if localtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036064
36065
36066 old=$LD_LIBRARY_PATH
36067 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36068 export LD_LIBRARY_PATH
36069 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36072as_fn_error $? "cannot run test program while cross compiling
36073See \`config.log' for more details" "$LINENO" 5; }
36074else
36075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36076/* end confdefs.h. */
36077
36078
36079 $curl_includes_stdlib
36080 $curl_includes_time
36081
36082int main (void)
36083{
36084
36085 time_t clock = 1170352587;
36086 struct tm *tmp = 0;
36087 struct tm result;
36088 tmp = localtime_r(&clock, &result);
36089 if(tmp)
36090 exit(0);
36091 else
36092 exit(1);
36093
36094 ;
36095 return 0;
36096}
36097
36098_ACEOF
36099if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036101$as_echo "yes" >&6; }
36102 tst_works_localtime_r="yes"
36103
36104else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036106$as_echo "no" >&6; }
36107 tst_works_localtime_r="no"
36108
36109fi
36110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36111 conftest.$ac_objext conftest.beam conftest.$ac_ext
36112fi
36113
Elliott Hughesa93fb052018-12-12 14:22:48 -080036114 LD_LIBRARY_PATH=$old # restore
36115
Elliott Hughes82be86d2017-09-20 17:00:17 -070036116 fi
36117 #
36118 if test "$tst_compi_localtime_r" = "yes" &&
36119 test "$tst_works_localtime_r" != "no"; then
36120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36121$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36122 if test "x$curl_disallow_localtime_r" != "xyes"; then
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36124$as_echo "yes" >&6; }
36125 tst_allow_localtime_r="yes"
36126 else
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36128$as_echo "no" >&6; }
36129 tst_allow_localtime_r="no"
36130 fi
36131 fi
36132 #
36133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36134$as_echo_n "checking if localtime_r might be used... " >&6; }
36135 if test "$tst_links_localtime_r" = "yes" &&
36136 test "$tst_proto_localtime_r" = "yes" &&
36137 test "$tst_compi_localtime_r" = "yes" &&
36138 test "$tst_allow_localtime_r" = "yes" &&
36139 test "$tst_works_localtime_r" != "no"; then
36140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36141$as_echo "yes" >&6; }
36142
36143cat >>confdefs.h <<_ACEOF
36144#define HAVE_LOCALTIME_R 1
36145_ACEOF
36146
36147 curl_cv_func_localtime_r="yes"
36148 else
36149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36150$as_echo "no" >&6; }
36151 curl_cv_func_localtime_r="no"
36152 fi
36153
36154
36155 #
36156 tst_links_memrchr="unknown"
36157 tst_macro_memrchr="unknown"
36158 tst_proto_memrchr="unknown"
36159 tst_compi_memrchr="unknown"
36160 tst_allow_memrchr="unknown"
36161 #
36162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36163$as_echo_n "checking if memrchr can be linked... " >&6; }
36164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36165/* end confdefs.h. */
36166
36167
36168#define memrchr innocuous_memrchr
36169#ifdef __STDC__
36170# include <limits.h>
36171#else
36172# include <assert.h>
36173#endif
36174#undef memrchr
36175#ifdef __cplusplus
36176extern "C"
36177#endif
36178char memrchr ();
36179#if defined __stub_memrchr || defined __stub___memrchr
36180choke me
36181#endif
36182
36183int main (void)
36184{
36185return memrchr ();
36186 ;
36187 return 0;
36188}
36189
36190_ACEOF
36191if ac_fn_c_try_link "$LINENO"; then :
36192
36193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36194$as_echo "yes" >&6; }
36195 tst_links_memrchr="yes"
36196
36197else
36198
36199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36200$as_echo "no" >&6; }
36201 tst_links_memrchr="no"
36202
36203fi
36204rm -f core conftest.err conftest.$ac_objext \
36205 conftest$ac_exeext conftest.$ac_ext
36206 #
36207 if test "$tst_links_memrchr" = "no"; then
36208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36209$as_echo_n "checking if memrchr seems a macro... " >&6; }
36210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36211/* end confdefs.h. */
36212
36213
36214 $curl_includes_string
36215
36216int main (void)
36217{
36218
36219 if(0 != memrchr(0, 0, 0))
36220 return 1;
36221
36222 ;
36223 return 0;
36224}
36225
36226_ACEOF
36227if ac_fn_c_try_link "$LINENO"; then :
36228
36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36230$as_echo "yes" >&6; }
36231 tst_macro_memrchr="yes"
36232
36233else
36234
36235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36236$as_echo "no" >&6; }
36237 tst_macro_memrchr="no"
36238
36239fi
36240rm -f core conftest.err conftest.$ac_objext \
36241 conftest$ac_exeext conftest.$ac_ext
36242 fi
36243 #
36244 if test "$tst_links_memrchr" = "yes"; then
36245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36246$as_echo_n "checking if memrchr is prototyped... " >&6; }
36247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36248/* end confdefs.h. */
36249
36250 $curl_includes_string
36251
36252_ACEOF
36253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36254 $EGREP "memrchr" >/dev/null 2>&1; then :
36255
36256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36257$as_echo "yes" >&6; }
36258 tst_proto_memrchr="yes"
36259
36260else
36261
36262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36263$as_echo "no" >&6; }
36264 tst_proto_memrchr="no"
36265
36266fi
36267rm -f conftest*
36268
36269 fi
36270 #
36271 if test "$tst_proto_memrchr" = "yes" ||
36272 test "$tst_macro_memrchr" = "yes"; then
36273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36274$as_echo_n "checking if memrchr is compilable... " >&6; }
36275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36276/* end confdefs.h. */
36277
36278
36279 $curl_includes_string
36280
36281int main (void)
36282{
36283
36284 if(0 != memrchr(0, 0, 0))
36285 return 1;
36286
36287 ;
36288 return 0;
36289}
36290
36291_ACEOF
36292if ac_fn_c_try_compile "$LINENO"; then :
36293
36294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36295$as_echo "yes" >&6; }
36296 tst_compi_memrchr="yes"
36297
36298else
36299
36300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36301$as_echo "no" >&6; }
36302 tst_compi_memrchr="no"
36303
36304fi
36305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36306 fi
36307 #
36308 if test "$tst_compi_memrchr" = "yes"; then
36309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36310$as_echo_n "checking if memrchr usage allowed... " >&6; }
36311 if test "x$curl_disallow_memrchr" != "xyes"; then
36312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36313$as_echo "yes" >&6; }
36314 tst_allow_memrchr="yes"
36315 else
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36317$as_echo "no" >&6; }
36318 tst_allow_memrchr="no"
36319 fi
36320 fi
36321 #
36322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36323$as_echo_n "checking if memrchr might be used... " >&6; }
36324 if (test "$tst_proto_memrchr" = "yes" ||
36325 test "$tst_macro_memrchr" = "yes") &&
36326 test "$tst_compi_memrchr" = "yes" &&
36327 test "$tst_allow_memrchr" = "yes"; then
36328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36329$as_echo "yes" >&6; }
36330
36331cat >>confdefs.h <<_ACEOF
36332#define HAVE_MEMRCHR 1
36333_ACEOF
36334
36335 curl_cv_func_memrchr="yes"
36336 else
36337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36338$as_echo "no" >&6; }
36339 curl_cv_func_memrchr="no"
36340 fi
36341
36342
36343 #
36344 tst_links_poll="unknown"
36345 tst_proto_poll="unknown"
36346 tst_compi_poll="unknown"
36347 tst_works_poll="unknown"
36348 tst_allow_poll="unknown"
36349 #
36350 case $host_os in
36351 darwin*|interix*)
36352 curl_disallow_poll="yes"
36353 tst_compi_poll="no"
36354 ;;
36355 esac
36356 #
36357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36358$as_echo_n "checking if poll can be linked... " >&6; }
36359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36360/* end confdefs.h. */
36361
36362
36363 $curl_includes_poll
36364
36365int main (void)
36366{
36367
36368 if(0 != poll(0, 0, 0))
36369 return 1;
36370
36371 ;
36372 return 0;
36373}
36374
36375_ACEOF
36376if ac_fn_c_try_link "$LINENO"; then :
36377
36378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36379$as_echo "yes" >&6; }
36380 tst_links_poll="yes"
36381
36382else
36383
36384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36385$as_echo "no" >&6; }
36386 tst_links_poll="no"
36387
36388fi
36389rm -f core conftest.err conftest.$ac_objext \
36390 conftest$ac_exeext conftest.$ac_ext
36391 #
36392 if test "$tst_links_poll" = "yes"; then
36393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36394$as_echo_n "checking if poll is prototyped... " >&6; }
36395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36396/* end confdefs.h. */
36397
36398 $curl_includes_poll
36399
36400_ACEOF
36401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36402 $EGREP "poll" >/dev/null 2>&1; then :
36403
36404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36405$as_echo "yes" >&6; }
36406 tst_proto_poll="yes"
36407
36408else
36409
36410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36411$as_echo "no" >&6; }
36412 tst_proto_poll="no"
36413
36414fi
36415rm -f conftest*
36416
36417 fi
36418 #
36419 if test "$tst_proto_poll" = "yes"; then
36420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36421$as_echo_n "checking if poll is compilable... " >&6; }
36422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36423/* end confdefs.h. */
36424
36425
36426 $curl_includes_poll
36427
36428int main (void)
36429{
36430
36431 if(0 != poll(0, 0, 0))
36432 return 1;
36433
36434 ;
36435 return 0;
36436}
36437
36438_ACEOF
36439if ac_fn_c_try_compile "$LINENO"; then :
36440
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36442$as_echo "yes" >&6; }
36443 tst_compi_poll="yes"
36444
36445else
36446
36447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36448$as_echo "no" >&6; }
36449 tst_compi_poll="no"
36450
36451fi
36452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36453 fi
36454 #
36455 if test "x$cross_compiling" != "xyes" &&
36456 test "$tst_compi_poll" = "yes"; then
36457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36458$as_echo_n "checking if poll seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036459
36460
36461 old=$LD_LIBRARY_PATH
36462 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36463 export LD_LIBRARY_PATH
36464 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36467as_fn_error $? "cannot run test program while cross compiling
36468See \`config.log' for more details" "$LINENO" 5; }
36469else
36470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36471/* end confdefs.h. */
36472
36473
36474 $curl_includes_stdlib
36475 $curl_includes_poll
36476 $curl_includes_time
36477
36478int main (void)
36479{
36480
36481 /* detect the original poll() breakage */
36482 if(0 != poll(0, 0, 10))
36483 exit(1); /* fail */
36484 else {
36485 /* detect the 10.12 poll() breakage */
36486 struct timeval before, after;
36487 int rc;
36488 size_t us;
36489
36490 gettimeofday(&before, NULL);
36491 rc = poll(NULL, 0, 500);
36492 gettimeofday(&after, NULL);
36493
36494 us = (after.tv_sec - before.tv_sec) * 1000000 +
36495 (after.tv_usec - before.tv_usec);
36496
36497 if(us < 400000)
36498 exit(1);
36499 }
36500
36501 ;
36502 return 0;
36503}
36504
36505_ACEOF
36506if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036508$as_echo "yes" >&6; }
36509 tst_works_poll="yes"
36510
36511else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036513$as_echo "no" >&6; }
36514 tst_works_poll="no"
36515
36516fi
36517rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36518 conftest.$ac_objext conftest.beam conftest.$ac_ext
36519fi
36520
Elliott Hughesa93fb052018-12-12 14:22:48 -080036521 LD_LIBRARY_PATH=$old # restore
36522
Elliott Hughes82be86d2017-09-20 17:00:17 -070036523 fi
36524 #
36525 if test "$tst_compi_poll" = "yes" &&
36526 test "$tst_works_poll" != "no"; then
36527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36528$as_echo_n "checking if poll usage allowed... " >&6; }
36529 if test "x$curl_disallow_poll" != "xyes"; then
36530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36531$as_echo "yes" >&6; }
36532 tst_allow_poll="yes"
36533 else
36534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36535$as_echo "no" >&6; }
36536 tst_allow_poll="no"
36537 fi
36538 fi
36539 #
36540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36541$as_echo_n "checking if poll might be used... " >&6; }
36542 if test "$tst_links_poll" = "yes" &&
36543 test "$tst_proto_poll" = "yes" &&
36544 test "$tst_compi_poll" = "yes" &&
36545 test "$tst_allow_poll" = "yes" &&
36546 test "$tst_works_poll" != "no"; then
36547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36548$as_echo "yes" >&6; }
36549
36550cat >>confdefs.h <<_ACEOF
36551#define HAVE_POLL 1
36552_ACEOF
36553
36554
36555cat >>confdefs.h <<_ACEOF
36556#define HAVE_POLL_FINE 1
36557_ACEOF
36558
36559 curl_cv_func_poll="yes"
36560 else
36561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36562$as_echo "no" >&6; }
36563 curl_cv_func_poll="no"
36564 fi
36565
36566
36567 #
36568 tst_links_setsockopt="unknown"
36569 tst_proto_setsockopt="unknown"
36570 tst_compi_setsockopt="unknown"
36571 tst_allow_setsockopt="unknown"
36572 #
36573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36574$as_echo_n "checking if setsockopt can be linked... " >&6; }
36575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36576/* end confdefs.h. */
36577
36578
36579 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036580 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036581 $curl_includes_sys_socket
36582
36583int main (void)
36584{
36585
36586 if(0 != setsockopt(0, 0, 0, 0, 0))
36587 return 1;
36588
36589 ;
36590 return 0;
36591}
36592
36593_ACEOF
36594if ac_fn_c_try_link "$LINENO"; then :
36595
36596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36597$as_echo "yes" >&6; }
36598 tst_links_setsockopt="yes"
36599
36600else
36601
36602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36603$as_echo "no" >&6; }
36604 tst_links_setsockopt="no"
36605
36606fi
36607rm -f core conftest.err conftest.$ac_objext \
36608 conftest$ac_exeext conftest.$ac_ext
36609 #
36610 if test "$tst_links_setsockopt" = "yes"; then
36611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36612$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36614/* end confdefs.h. */
36615
36616 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036617 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036618 $curl_includes_sys_socket
36619
36620_ACEOF
36621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36622 $EGREP "setsockopt" >/dev/null 2>&1; then :
36623
36624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36625$as_echo "yes" >&6; }
36626 tst_proto_setsockopt="yes"
36627
36628else
36629
36630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36631$as_echo "no" >&6; }
36632 tst_proto_setsockopt="no"
36633
36634fi
36635rm -f conftest*
36636
36637 fi
36638 #
36639 if test "$tst_proto_setsockopt" = "yes"; then
36640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36641$as_echo_n "checking if setsockopt is compilable... " >&6; }
36642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36643/* end confdefs.h. */
36644
36645
36646 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036647 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036648 $curl_includes_sys_socket
36649
36650int main (void)
36651{
36652
36653 if(0 != setsockopt(0, 0, 0, 0, 0))
36654 return 1;
36655
36656 ;
36657 return 0;
36658}
36659
36660_ACEOF
36661if ac_fn_c_try_compile "$LINENO"; then :
36662
36663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36664$as_echo "yes" >&6; }
36665 tst_compi_setsockopt="yes"
36666
36667else
36668
36669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36670$as_echo "no" >&6; }
36671 tst_compi_setsockopt="no"
36672
36673fi
36674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36675 fi
36676 #
36677 if test "$tst_compi_setsockopt" = "yes"; then
36678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36679$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36680 if test "x$curl_disallow_setsockopt" != "xyes"; then
36681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36682$as_echo "yes" >&6; }
36683 tst_allow_setsockopt="yes"
36684 else
36685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36686$as_echo "no" >&6; }
36687 tst_allow_setsockopt="no"
36688 fi
36689 fi
36690 #
36691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36692$as_echo_n "checking if setsockopt might be used... " >&6; }
36693 if test "$tst_links_setsockopt" = "yes" &&
36694 test "$tst_proto_setsockopt" = "yes" &&
36695 test "$tst_compi_setsockopt" = "yes" &&
36696 test "$tst_allow_setsockopt" = "yes"; then
36697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36698$as_echo "yes" >&6; }
36699
36700cat >>confdefs.h <<_ACEOF
36701#define HAVE_SETSOCKOPT 1
36702_ACEOF
36703
36704 curl_cv_func_setsockopt="yes"
36705
36706 #
36707 tst_compi_setsockopt_so_nonblock="unknown"
36708 tst_allow_setsockopt_so_nonblock="unknown"
36709 #
36710 if test "$curl_cv_func_setsockopt" = "yes"; then
36711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36712$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36714/* end confdefs.h. */
36715
36716
36717 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070036718 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070036719 $curl_includes_sys_socket
36720
36721int main (void)
36722{
36723
36724 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36725 return 1;
36726
36727 ;
36728 return 0;
36729}
36730
36731_ACEOF
36732if ac_fn_c_try_compile "$LINENO"; then :
36733
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36735$as_echo "yes" >&6; }
36736 tst_compi_setsockopt_so_nonblock="yes"
36737
36738else
36739
36740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36741$as_echo "no" >&6; }
36742 tst_compi_setsockopt_so_nonblock="no"
36743
36744fi
36745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36746 fi
36747 #
36748 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36750$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36751 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36753$as_echo "yes" >&6; }
36754 tst_allow_setsockopt_so_nonblock="yes"
36755 else
36756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36757$as_echo "no" >&6; }
36758 tst_allow_setsockopt_so_nonblock="no"
36759 fi
36760 fi
36761 #
36762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36763$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36764 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36765 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36767$as_echo "yes" >&6; }
36768
36769cat >>confdefs.h <<_ACEOF
36770#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36771_ACEOF
36772
36773 curl_cv_func_setsockopt_so_nonblock="yes"
36774 else
36775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36776$as_echo "no" >&6; }
36777 curl_cv_func_setsockopt_so_nonblock="no"
36778 fi
36779
36780 else
36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36782$as_echo "no" >&6; }
36783 curl_cv_func_setsockopt="no"
36784 fi
36785
36786
36787curl_includes_signal="\
36788/* includes start */
36789#ifdef HAVE_SYS_TYPES_H
36790# include <sys/types.h>
36791#endif
36792#ifdef HAVE_SIGNAL_H
36793# include <signal.h>
36794#endif
36795/* includes end */"
36796 for ac_header in sys/types.h signal.h
36797do :
36798 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36799ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36800"
36801if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36802 cat >>confdefs.h <<_ACEOF
36803#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36804_ACEOF
36805
36806fi
36807
36808done
36809
36810
36811
36812 #
36813 tst_links_sigaction="unknown"
36814 tst_proto_sigaction="unknown"
36815 tst_compi_sigaction="unknown"
36816 tst_allow_sigaction="unknown"
36817 #
36818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36819$as_echo_n "checking if sigaction can be linked... " >&6; }
36820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36821/* end confdefs.h. */
36822
36823
36824#define sigaction innocuous_sigaction
36825#ifdef __STDC__
36826# include <limits.h>
36827#else
36828# include <assert.h>
36829#endif
36830#undef sigaction
36831#ifdef __cplusplus
36832extern "C"
36833#endif
36834char sigaction ();
36835#if defined __stub_sigaction || defined __stub___sigaction
36836choke me
36837#endif
36838
36839int main (void)
36840{
36841return sigaction ();
36842 ;
36843 return 0;
36844}
36845
36846_ACEOF
36847if ac_fn_c_try_link "$LINENO"; then :
36848
36849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36850$as_echo "yes" >&6; }
36851 tst_links_sigaction="yes"
36852
36853else
36854
36855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36856$as_echo "no" >&6; }
36857 tst_links_sigaction="no"
36858
36859fi
36860rm -f core conftest.err conftest.$ac_objext \
36861 conftest$ac_exeext conftest.$ac_ext
36862 #
36863 if test "$tst_links_sigaction" = "yes"; then
36864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36865$as_echo_n "checking if sigaction is prototyped... " >&6; }
36866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36867/* end confdefs.h. */
36868
36869 $curl_includes_signal
36870
36871_ACEOF
36872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36873 $EGREP "sigaction" >/dev/null 2>&1; then :
36874
36875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36876$as_echo "yes" >&6; }
36877 tst_proto_sigaction="yes"
36878
36879else
36880
36881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36882$as_echo "no" >&6; }
36883 tst_proto_sigaction="no"
36884
36885fi
36886rm -f conftest*
36887
36888 fi
36889 #
36890 if test "$tst_proto_sigaction" = "yes"; then
36891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
36892$as_echo_n "checking if sigaction is compilable... " >&6; }
36893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36894/* end confdefs.h. */
36895
36896
36897 $curl_includes_signal
36898
36899int main (void)
36900{
36901
36902 if(0 != sigaction(0, 0, 0))
36903 return 1;
36904
36905 ;
36906 return 0;
36907}
36908
36909_ACEOF
36910if ac_fn_c_try_compile "$LINENO"; then :
36911
36912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36913$as_echo "yes" >&6; }
36914 tst_compi_sigaction="yes"
36915
36916else
36917
36918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36919$as_echo "no" >&6; }
36920 tst_compi_sigaction="no"
36921
36922fi
36923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36924 fi
36925 #
36926 if test "$tst_compi_sigaction" = "yes"; then
36927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
36928$as_echo_n "checking if sigaction usage allowed... " >&6; }
36929 if test "x$curl_disallow_sigaction" != "xyes"; then
36930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36931$as_echo "yes" >&6; }
36932 tst_allow_sigaction="yes"
36933 else
36934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36935$as_echo "no" >&6; }
36936 tst_allow_sigaction="no"
36937 fi
36938 fi
36939 #
36940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
36941$as_echo_n "checking if sigaction might be used... " >&6; }
36942 if test "$tst_links_sigaction" = "yes" &&
36943 test "$tst_proto_sigaction" = "yes" &&
36944 test "$tst_compi_sigaction" = "yes" &&
36945 test "$tst_allow_sigaction" = "yes"; then
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36947$as_echo "yes" >&6; }
36948
36949cat >>confdefs.h <<_ACEOF
36950#define HAVE_SIGACTION 1
36951_ACEOF
36952
36953 curl_cv_func_sigaction="yes"
36954 else
36955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36956$as_echo "no" >&6; }
36957 curl_cv_func_sigaction="no"
36958 fi
36959
36960
36961 #
36962 tst_links_siginterrupt="unknown"
36963 tst_proto_siginterrupt="unknown"
36964 tst_compi_siginterrupt="unknown"
36965 tst_allow_siginterrupt="unknown"
36966 #
36967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
36968$as_echo_n "checking if siginterrupt can be linked... " >&6; }
36969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36970/* end confdefs.h. */
36971
36972
36973#define siginterrupt innocuous_siginterrupt
36974#ifdef __STDC__
36975# include <limits.h>
36976#else
36977# include <assert.h>
36978#endif
36979#undef siginterrupt
36980#ifdef __cplusplus
36981extern "C"
36982#endif
36983char siginterrupt ();
36984#if defined __stub_siginterrupt || defined __stub___siginterrupt
36985choke me
36986#endif
36987
36988int main (void)
36989{
36990return siginterrupt ();
36991 ;
36992 return 0;
36993}
36994
36995_ACEOF
36996if ac_fn_c_try_link "$LINENO"; then :
36997
36998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36999$as_echo "yes" >&6; }
37000 tst_links_siginterrupt="yes"
37001
37002else
37003
37004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37005$as_echo "no" >&6; }
37006 tst_links_siginterrupt="no"
37007
37008fi
37009rm -f core conftest.err conftest.$ac_objext \
37010 conftest$ac_exeext conftest.$ac_ext
37011 #
37012 if test "$tst_links_siginterrupt" = "yes"; then
37013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37014$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37016/* end confdefs.h. */
37017
37018 $curl_includes_signal
37019
37020_ACEOF
37021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37022 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37023
37024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37025$as_echo "yes" >&6; }
37026 tst_proto_siginterrupt="yes"
37027
37028else
37029
37030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37031$as_echo "no" >&6; }
37032 tst_proto_siginterrupt="no"
37033
37034fi
37035rm -f conftest*
37036
37037 fi
37038 #
37039 if test "$tst_proto_siginterrupt" = "yes"; then
37040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37041$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37043/* end confdefs.h. */
37044
37045
37046 $curl_includes_signal
37047
37048int main (void)
37049{
37050
37051 if(0 != siginterrupt(0, 0))
37052 return 1;
37053
37054 ;
37055 return 0;
37056}
37057
37058_ACEOF
37059if ac_fn_c_try_compile "$LINENO"; then :
37060
37061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37062$as_echo "yes" >&6; }
37063 tst_compi_siginterrupt="yes"
37064
37065else
37066
37067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37068$as_echo "no" >&6; }
37069 tst_compi_siginterrupt="no"
37070
37071fi
37072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37073 fi
37074 #
37075 if test "$tst_compi_siginterrupt" = "yes"; then
37076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37077$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37078 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37080$as_echo "yes" >&6; }
37081 tst_allow_siginterrupt="yes"
37082 else
37083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37084$as_echo "no" >&6; }
37085 tst_allow_siginterrupt="no"
37086 fi
37087 fi
37088 #
37089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37090$as_echo_n "checking if siginterrupt might be used... " >&6; }
37091 if test "$tst_links_siginterrupt" = "yes" &&
37092 test "$tst_proto_siginterrupt" = "yes" &&
37093 test "$tst_compi_siginterrupt" = "yes" &&
37094 test "$tst_allow_siginterrupt" = "yes"; then
37095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37096$as_echo "yes" >&6; }
37097
37098cat >>confdefs.h <<_ACEOF
37099#define HAVE_SIGINTERRUPT 1
37100_ACEOF
37101
37102 curl_cv_func_siginterrupt="yes"
37103 else
37104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37105$as_echo "no" >&6; }
37106 curl_cv_func_siginterrupt="no"
37107 fi
37108
37109
37110 #
37111 tst_links_signal="unknown"
37112 tst_proto_signal="unknown"
37113 tst_compi_signal="unknown"
37114 tst_allow_signal="unknown"
37115 #
37116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37117$as_echo_n "checking if signal can be linked... " >&6; }
37118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37119/* end confdefs.h. */
37120
37121
37122#define signal innocuous_signal
37123#ifdef __STDC__
37124# include <limits.h>
37125#else
37126# include <assert.h>
37127#endif
37128#undef signal
37129#ifdef __cplusplus
37130extern "C"
37131#endif
37132char signal ();
37133#if defined __stub_signal || defined __stub___signal
37134choke me
37135#endif
37136
37137int main (void)
37138{
37139return signal ();
37140 ;
37141 return 0;
37142}
37143
37144_ACEOF
37145if ac_fn_c_try_link "$LINENO"; then :
37146
37147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37148$as_echo "yes" >&6; }
37149 tst_links_signal="yes"
37150
37151else
37152
37153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37154$as_echo "no" >&6; }
37155 tst_links_signal="no"
37156
37157fi
37158rm -f core conftest.err conftest.$ac_objext \
37159 conftest$ac_exeext conftest.$ac_ext
37160 #
37161 if test "$tst_links_signal" = "yes"; then
37162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37163$as_echo_n "checking if signal is prototyped... " >&6; }
37164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37165/* end confdefs.h. */
37166
37167 $curl_includes_signal
37168
37169_ACEOF
37170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37171 $EGREP "signal" >/dev/null 2>&1; then :
37172
37173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37174$as_echo "yes" >&6; }
37175 tst_proto_signal="yes"
37176
37177else
37178
37179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37180$as_echo "no" >&6; }
37181 tst_proto_signal="no"
37182
37183fi
37184rm -f conftest*
37185
37186 fi
37187 #
37188 if test "$tst_proto_signal" = "yes"; then
37189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37190$as_echo_n "checking if signal is compilable... " >&6; }
37191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37192/* end confdefs.h. */
37193
37194
37195 $curl_includes_signal
37196
37197int main (void)
37198{
37199
37200 if(0 != signal(0, 0))
37201 return 1;
37202
37203 ;
37204 return 0;
37205}
37206
37207_ACEOF
37208if ac_fn_c_try_compile "$LINENO"; then :
37209
37210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37211$as_echo "yes" >&6; }
37212 tst_compi_signal="yes"
37213
37214else
37215
37216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37217$as_echo "no" >&6; }
37218 tst_compi_signal="no"
37219
37220fi
37221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37222 fi
37223 #
37224 if test "$tst_compi_signal" = "yes"; then
37225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37226$as_echo_n "checking if signal usage allowed... " >&6; }
37227 if test "x$curl_disallow_signal" != "xyes"; then
37228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37229$as_echo "yes" >&6; }
37230 tst_allow_signal="yes"
37231 else
37232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37233$as_echo "no" >&6; }
37234 tst_allow_signal="no"
37235 fi
37236 fi
37237 #
37238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37239$as_echo_n "checking if signal might be used... " >&6; }
37240 if test "$tst_links_signal" = "yes" &&
37241 test "$tst_proto_signal" = "yes" &&
37242 test "$tst_compi_signal" = "yes" &&
37243 test "$tst_allow_signal" = "yes"; then
37244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37245$as_echo "yes" >&6; }
37246
37247cat >>confdefs.h <<_ACEOF
37248#define HAVE_SIGNAL 1
37249_ACEOF
37250
37251 curl_cv_func_signal="yes"
37252 else
37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37254$as_echo "no" >&6; }
37255 curl_cv_func_signal="no"
37256 fi
37257
37258
37259curl_includes_setjmp="\
37260/* includes start */
37261#ifdef HAVE_SYS_TYPES_H
37262# include <sys/types.h>
37263#endif
37264#ifdef HAVE_SETJMP_H
37265# include <setjmp.h>
37266#endif
37267/* includes end */"
37268 for ac_header in sys/types.h setjmp.h
37269do :
37270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37271ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37272"
37273if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37274 cat >>confdefs.h <<_ACEOF
37275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37276_ACEOF
37277
37278fi
37279
37280done
37281
37282
37283
37284 #
37285 tst_links_sigsetjmp="unknown"
37286 tst_macro_sigsetjmp="unknown"
37287 tst_proto_sigsetjmp="unknown"
37288 tst_compi_sigsetjmp="unknown"
37289 tst_allow_sigsetjmp="unknown"
37290 #
37291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37292$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37294/* end confdefs.h. */
37295
37296
37297#define sigsetjmp innocuous_sigsetjmp
37298#ifdef __STDC__
37299# include <limits.h>
37300#else
37301# include <assert.h>
37302#endif
37303#undef sigsetjmp
37304#ifdef __cplusplus
37305extern "C"
37306#endif
37307char sigsetjmp ();
37308#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37309choke me
37310#endif
37311
37312int main (void)
37313{
37314return sigsetjmp ();
37315 ;
37316 return 0;
37317}
37318
37319_ACEOF
37320if ac_fn_c_try_link "$LINENO"; then :
37321
37322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37323$as_echo "yes" >&6; }
37324 tst_links_sigsetjmp="yes"
37325
37326else
37327
37328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37329$as_echo "no" >&6; }
37330 tst_links_sigsetjmp="no"
37331
37332fi
37333rm -f core conftest.err conftest.$ac_objext \
37334 conftest$ac_exeext conftest.$ac_ext
37335 #
37336 if test "$tst_links_sigsetjmp" = "no"; then
37337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37338$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37340/* end confdefs.h. */
37341
37342
37343 $curl_includes_setjmp
37344
37345int main (void)
37346{
37347
37348 sigjmp_buf env;
37349 if(0 != sigsetjmp(env, 0))
37350 return 1;
37351
37352 ;
37353 return 0;
37354}
37355
37356_ACEOF
37357if ac_fn_c_try_link "$LINENO"; then :
37358
37359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37360$as_echo "yes" >&6; }
37361 tst_macro_sigsetjmp="yes"
37362
37363else
37364
37365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37366$as_echo "no" >&6; }
37367 tst_macro_sigsetjmp="no"
37368
37369fi
37370rm -f core conftest.err conftest.$ac_objext \
37371 conftest$ac_exeext conftest.$ac_ext
37372 fi
37373 #
37374 if test "$tst_links_sigsetjmp" = "yes"; then
37375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37376$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37378/* end confdefs.h. */
37379
37380 $curl_includes_setjmp
37381
37382_ACEOF
37383if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37384 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37385
37386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37387$as_echo "yes" >&6; }
37388 tst_proto_sigsetjmp="yes"
37389
37390else
37391
37392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37393$as_echo "no" >&6; }
37394 tst_proto_sigsetjmp="no"
37395
37396fi
37397rm -f conftest*
37398
37399 fi
37400 #
37401 if test "$tst_proto_sigsetjmp" = "yes" ||
37402 test "$tst_macro_sigsetjmp" = "yes"; then
37403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37404$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37406/* end confdefs.h. */
37407
37408
37409 $curl_includes_setjmp
37410
37411int main (void)
37412{
37413
37414 sigjmp_buf env;
37415 if(0 != sigsetjmp(env, 0))
37416 return 1;
37417
37418 ;
37419 return 0;
37420}
37421
37422_ACEOF
37423if ac_fn_c_try_compile "$LINENO"; then :
37424
37425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37426$as_echo "yes" >&6; }
37427 tst_compi_sigsetjmp="yes"
37428
37429else
37430
37431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37432$as_echo "no" >&6; }
37433 tst_compi_sigsetjmp="no"
37434
37435fi
37436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37437 fi
37438 #
37439 if test "$tst_compi_sigsetjmp" = "yes"; then
37440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37441$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37442 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37444$as_echo "yes" >&6; }
37445 tst_allow_sigsetjmp="yes"
37446 else
37447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37448$as_echo "no" >&6; }
37449 tst_allow_sigsetjmp="no"
37450 fi
37451 fi
37452 #
37453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37454$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37455 if (test "$tst_proto_sigsetjmp" = "yes" ||
37456 test "$tst_macro_sigsetjmp" = "yes") &&
37457 test "$tst_compi_sigsetjmp" = "yes" &&
37458 test "$tst_allow_sigsetjmp" = "yes"; then
37459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37460$as_echo "yes" >&6; }
37461
37462cat >>confdefs.h <<_ACEOF
37463#define HAVE_SIGSETJMP 1
37464_ACEOF
37465
37466 curl_cv_func_sigsetjmp="yes"
37467 else
37468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37469$as_echo "no" >&6; }
37470 curl_cv_func_sigsetjmp="no"
37471 fi
37472
37473
37474 #
37475 tst_links_socket="unknown"
37476 tst_proto_socket="unknown"
37477 tst_compi_socket="unknown"
37478 tst_allow_socket="unknown"
37479 #
37480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37481$as_echo_n "checking if socket can be linked... " >&6; }
37482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37483/* end confdefs.h. */
37484
37485
37486 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037487 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037488 $curl_includes_sys_socket
37489 $curl_includes_socket
37490
37491int main (void)
37492{
37493
37494 if(0 != socket(0, 0, 0))
37495 return 1;
37496
37497 ;
37498 return 0;
37499}
37500
37501_ACEOF
37502if ac_fn_c_try_link "$LINENO"; then :
37503
37504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37505$as_echo "yes" >&6; }
37506 tst_links_socket="yes"
37507
37508else
37509
37510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37511$as_echo "no" >&6; }
37512 tst_links_socket="no"
37513
37514fi
37515rm -f core conftest.err conftest.$ac_objext \
37516 conftest$ac_exeext conftest.$ac_ext
37517 #
37518 if test "$tst_links_socket" = "yes"; then
37519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37520$as_echo_n "checking if socket is prototyped... " >&6; }
37521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37522/* end confdefs.h. */
37523
37524 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037525 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037526 $curl_includes_sys_socket
37527 $curl_includes_socket
37528
37529_ACEOF
37530if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37531 $EGREP "socket" >/dev/null 2>&1; then :
37532
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37534$as_echo "yes" >&6; }
37535 tst_proto_socket="yes"
37536
37537else
37538
37539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37540$as_echo "no" >&6; }
37541 tst_proto_socket="no"
37542
37543fi
37544rm -f conftest*
37545
37546 fi
37547 #
37548 if test "$tst_proto_socket" = "yes"; then
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37550$as_echo_n "checking if socket is compilable... " >&6; }
37551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552/* end confdefs.h. */
37553
37554
37555 $curl_includes_winsock2
Haibo Huang65021c72019-03-27 15:37:23 -070037556 $curl_includes_bsdsocket
Elliott Hughes82be86d2017-09-20 17:00:17 -070037557 $curl_includes_sys_socket
37558 $curl_includes_socket
37559
37560int main (void)
37561{
37562
37563 if(0 != socket(0, 0, 0))
37564 return 1;
37565
37566 ;
37567 return 0;
37568}
37569
37570_ACEOF
37571if ac_fn_c_try_compile "$LINENO"; then :
37572
37573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37574$as_echo "yes" >&6; }
37575 tst_compi_socket="yes"
37576
37577else
37578
37579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37580$as_echo "no" >&6; }
37581 tst_compi_socket="no"
37582
37583fi
37584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37585 fi
37586 #
37587 if test "$tst_compi_socket" = "yes"; then
37588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37589$as_echo_n "checking if socket usage allowed... " >&6; }
37590 if test "x$curl_disallow_socket" != "xyes"; then
37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37592$as_echo "yes" >&6; }
37593 tst_allow_socket="yes"
37594 else
37595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37596$as_echo "no" >&6; }
37597 tst_allow_socket="no"
37598 fi
37599 fi
37600 #
37601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37602$as_echo_n "checking if socket might be used... " >&6; }
37603 if test "$tst_links_socket" = "yes" &&
37604 test "$tst_proto_socket" = "yes" &&
37605 test "$tst_compi_socket" = "yes" &&
37606 test "$tst_allow_socket" = "yes"; then
37607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37608$as_echo "yes" >&6; }
37609
37610cat >>confdefs.h <<_ACEOF
37611#define HAVE_SOCKET 1
37612_ACEOF
37613
37614 curl_cv_func_socket="yes"
37615 else
37616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37617$as_echo "no" >&6; }
37618 curl_cv_func_socket="no"
37619 fi
37620
37621
37622 #
37623 tst_links_socketpair="unknown"
37624 tst_proto_socketpair="unknown"
37625 tst_compi_socketpair="unknown"
37626 tst_allow_socketpair="unknown"
37627 #
37628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37629$as_echo_n "checking if socketpair can be linked... " >&6; }
37630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631/* end confdefs.h. */
37632
37633
37634#define socketpair innocuous_socketpair
37635#ifdef __STDC__
37636# include <limits.h>
37637#else
37638# include <assert.h>
37639#endif
37640#undef socketpair
37641#ifdef __cplusplus
37642extern "C"
37643#endif
37644char socketpair ();
37645#if defined __stub_socketpair || defined __stub___socketpair
37646choke me
37647#endif
37648
37649int main (void)
37650{
37651return socketpair ();
37652 ;
37653 return 0;
37654}
37655
37656_ACEOF
37657if ac_fn_c_try_link "$LINENO"; then :
37658
37659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37660$as_echo "yes" >&6; }
37661 tst_links_socketpair="yes"
37662
37663else
37664
37665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37666$as_echo "no" >&6; }
37667 tst_links_socketpair="no"
37668
37669fi
37670rm -f core conftest.err conftest.$ac_objext \
37671 conftest$ac_exeext conftest.$ac_ext
37672 #
37673 if test "$tst_links_socketpair" = "yes"; then
37674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37675$as_echo_n "checking if socketpair is prototyped... " >&6; }
37676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37677/* end confdefs.h. */
37678
37679 $curl_includes_sys_socket
37680 $curl_includes_socket
37681
37682_ACEOF
37683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37684 $EGREP "socketpair" >/dev/null 2>&1; then :
37685
37686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37687$as_echo "yes" >&6; }
37688 tst_proto_socketpair="yes"
37689
37690else
37691
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37693$as_echo "no" >&6; }
37694 tst_proto_socketpair="no"
37695
37696fi
37697rm -f conftest*
37698
37699 fi
37700 #
37701 if test "$tst_proto_socketpair" = "yes"; then
37702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37703$as_echo_n "checking if socketpair is compilable... " >&6; }
37704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37705/* end confdefs.h. */
37706
37707
37708 $curl_includes_sys_socket
37709 $curl_includes_socket
37710
37711int main (void)
37712{
37713
37714 int sv[2];
37715 if(0 != socketpair(0, 0, 0, sv))
37716 return 1;
37717
37718 ;
37719 return 0;
37720}
37721
37722_ACEOF
37723if ac_fn_c_try_compile "$LINENO"; then :
37724
37725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37726$as_echo "yes" >&6; }
37727 tst_compi_socketpair="yes"
37728
37729else
37730
37731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37732$as_echo "no" >&6; }
37733 tst_compi_socketpair="no"
37734
37735fi
37736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37737 fi
37738 #
37739 if test "$tst_compi_socketpair" = "yes"; then
37740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37741$as_echo_n "checking if socketpair usage allowed... " >&6; }
37742 if test "x$curl_disallow_socketpair" != "xyes"; then
37743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37744$as_echo "yes" >&6; }
37745 tst_allow_socketpair="yes"
37746 else
37747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37748$as_echo "no" >&6; }
37749 tst_allow_socketpair="no"
37750 fi
37751 fi
37752 #
37753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37754$as_echo_n "checking if socketpair might be used... " >&6; }
37755 if test "$tst_links_socketpair" = "yes" &&
37756 test "$tst_proto_socketpair" = "yes" &&
37757 test "$tst_compi_socketpair" = "yes" &&
37758 test "$tst_allow_socketpair" = "yes"; then
37759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37760$as_echo "yes" >&6; }
37761
37762cat >>confdefs.h <<_ACEOF
37763#define HAVE_SOCKETPAIR 1
37764_ACEOF
37765
37766 curl_cv_func_socketpair="yes"
37767 else
37768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37769$as_echo "no" >&6; }
37770 curl_cv_func_socketpair="no"
37771 fi
37772
37773
37774 #
37775 tst_links_strcasecmp="unknown"
37776 tst_proto_strcasecmp="unknown"
37777 tst_compi_strcasecmp="unknown"
37778 tst_allow_strcasecmp="unknown"
37779 #
37780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37781$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37783/* end confdefs.h. */
37784
37785
37786#define strcasecmp innocuous_strcasecmp
37787#ifdef __STDC__
37788# include <limits.h>
37789#else
37790# include <assert.h>
37791#endif
37792#undef strcasecmp
37793#ifdef __cplusplus
37794extern "C"
37795#endif
37796char strcasecmp ();
37797#if defined __stub_strcasecmp || defined __stub___strcasecmp
37798choke me
37799#endif
37800
37801int main (void)
37802{
37803return strcasecmp ();
37804 ;
37805 return 0;
37806}
37807
37808_ACEOF
37809if ac_fn_c_try_link "$LINENO"; then :
37810
37811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37812$as_echo "yes" >&6; }
37813 tst_links_strcasecmp="yes"
37814
37815else
37816
37817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37818$as_echo "no" >&6; }
37819 tst_links_strcasecmp="no"
37820
37821fi
37822rm -f core conftest.err conftest.$ac_objext \
37823 conftest$ac_exeext conftest.$ac_ext
37824 #
37825 if test "$tst_links_strcasecmp" = "yes"; then
37826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37827$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37829/* end confdefs.h. */
37830
37831 $curl_includes_string
37832
37833_ACEOF
37834if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37835 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37836
37837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37838$as_echo "yes" >&6; }
37839 tst_proto_strcasecmp="yes"
37840
37841else
37842
37843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37844$as_echo "no" >&6; }
37845 tst_proto_strcasecmp="no"
37846
37847fi
37848rm -f conftest*
37849
37850 fi
37851 #
37852 if test "$tst_proto_strcasecmp" = "yes"; then
37853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37854$as_echo_n "checking if strcasecmp is compilable... " >&6; }
37855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37856/* end confdefs.h. */
37857
37858
37859 $curl_includes_string
37860
37861int main (void)
37862{
37863
37864 if(0 != strcasecmp(0, 0))
37865 return 1;
37866
37867 ;
37868 return 0;
37869}
37870
37871_ACEOF
37872if ac_fn_c_try_compile "$LINENO"; then :
37873
37874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37875$as_echo "yes" >&6; }
37876 tst_compi_strcasecmp="yes"
37877
37878else
37879
37880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37881$as_echo "no" >&6; }
37882 tst_compi_strcasecmp="no"
37883
37884fi
37885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37886 fi
37887 #
37888 if test "$tst_compi_strcasecmp" = "yes"; then
37889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
37890$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
37891 if test "x$curl_disallow_strcasecmp" != "xyes"; then
37892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37893$as_echo "yes" >&6; }
37894 tst_allow_strcasecmp="yes"
37895 else
37896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37897$as_echo "no" >&6; }
37898 tst_allow_strcasecmp="no"
37899 fi
37900 fi
37901 #
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
37903$as_echo_n "checking if strcasecmp might be used... " >&6; }
37904 if test "$tst_links_strcasecmp" = "yes" &&
37905 test "$tst_proto_strcasecmp" = "yes" &&
37906 test "$tst_compi_strcasecmp" = "yes" &&
37907 test "$tst_allow_strcasecmp" = "yes"; then
37908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37909$as_echo "yes" >&6; }
37910
37911cat >>confdefs.h <<_ACEOF
37912#define HAVE_STRCASECMP 1
37913_ACEOF
37914
37915 curl_cv_func_strcasecmp="yes"
37916 else
37917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37918$as_echo "no" >&6; }
37919 curl_cv_func_strcasecmp="no"
37920 fi
37921
37922
37923 #
37924 tst_links_strcmpi="unknown"
37925 tst_proto_strcmpi="unknown"
37926 tst_compi_strcmpi="unknown"
37927 tst_allow_strcmpi="unknown"
37928 #
37929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
37930$as_echo_n "checking if strcmpi can be linked... " >&6; }
37931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37932/* end confdefs.h. */
37933
37934
37935#define strcmpi innocuous_strcmpi
37936#ifdef __STDC__
37937# include <limits.h>
37938#else
37939# include <assert.h>
37940#endif
37941#undef strcmpi
37942#ifdef __cplusplus
37943extern "C"
37944#endif
37945char strcmpi ();
37946#if defined __stub_strcmpi || defined __stub___strcmpi
37947choke me
37948#endif
37949
37950int main (void)
37951{
37952return strcmpi ();
37953 ;
37954 return 0;
37955}
37956
37957_ACEOF
37958if ac_fn_c_try_link "$LINENO"; then :
37959
37960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37961$as_echo "yes" >&6; }
37962 tst_links_strcmpi="yes"
37963
37964else
37965
37966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37967$as_echo "no" >&6; }
37968 tst_links_strcmpi="no"
37969
37970fi
37971rm -f core conftest.err conftest.$ac_objext \
37972 conftest$ac_exeext conftest.$ac_ext
37973 #
37974 if test "$tst_links_strcmpi" = "yes"; then
37975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
37976$as_echo_n "checking if strcmpi is prototyped... " >&6; }
37977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37978/* end confdefs.h. */
37979
37980 $curl_includes_string
37981
37982_ACEOF
37983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37984 $EGREP "strcmpi" >/dev/null 2>&1; then :
37985
37986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37987$as_echo "yes" >&6; }
37988 tst_proto_strcmpi="yes"
37989
37990else
37991
37992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37993$as_echo "no" >&6; }
37994 tst_proto_strcmpi="no"
37995
37996fi
37997rm -f conftest*
37998
37999 fi
38000 #
38001 if test "$tst_proto_strcmpi" = "yes"; then
38002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38003$as_echo_n "checking if strcmpi is compilable... " >&6; }
38004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38005/* end confdefs.h. */
38006
38007
38008 $curl_includes_string
38009
38010int main (void)
38011{
38012
38013 if(0 != strcmpi(0, 0))
38014 return 1;
38015
38016 ;
38017 return 0;
38018}
38019
38020_ACEOF
38021if ac_fn_c_try_compile "$LINENO"; then :
38022
38023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38024$as_echo "yes" >&6; }
38025 tst_compi_strcmpi="yes"
38026
38027else
38028
38029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38030$as_echo "no" >&6; }
38031 tst_compi_strcmpi="no"
38032
38033fi
38034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38035 fi
38036 #
38037 if test "$tst_compi_strcmpi" = "yes"; then
38038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38039$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38040 if test "x$curl_disallow_strcmpi" != "xyes"; then
38041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38042$as_echo "yes" >&6; }
38043 tst_allow_strcmpi="yes"
38044 else
38045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38046$as_echo "no" >&6; }
38047 tst_allow_strcmpi="no"
38048 fi
38049 fi
38050 #
38051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38052$as_echo_n "checking if strcmpi might be used... " >&6; }
38053 if test "$tst_links_strcmpi" = "yes" &&
38054 test "$tst_proto_strcmpi" = "yes" &&
38055 test "$tst_compi_strcmpi" = "yes" &&
38056 test "$tst_allow_strcmpi" = "yes"; then
38057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38058$as_echo "yes" >&6; }
38059
38060cat >>confdefs.h <<_ACEOF
38061#define HAVE_STRCMPI 1
38062_ACEOF
38063
38064 curl_cv_func_strcmpi="yes"
38065 else
38066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38067$as_echo "no" >&6; }
38068 curl_cv_func_strcmpi="no"
38069 fi
38070
38071
38072 #
38073 tst_links_strdup="unknown"
38074 tst_proto_strdup="unknown"
38075 tst_compi_strdup="unknown"
38076 tst_allow_strdup="unknown"
38077 #
38078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38079$as_echo_n "checking if strdup can be linked... " >&6; }
38080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38081/* end confdefs.h. */
38082
38083
38084#define strdup innocuous_strdup
38085#ifdef __STDC__
38086# include <limits.h>
38087#else
38088# include <assert.h>
38089#endif
38090#undef strdup
38091#ifdef __cplusplus
38092extern "C"
38093#endif
38094char strdup ();
38095#if defined __stub_strdup || defined __stub___strdup
38096choke me
38097#endif
38098
38099int main (void)
38100{
38101return strdup ();
38102 ;
38103 return 0;
38104}
38105
38106_ACEOF
38107if ac_fn_c_try_link "$LINENO"; then :
38108
38109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38110$as_echo "yes" >&6; }
38111 tst_links_strdup="yes"
38112
38113else
38114
38115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38116$as_echo "no" >&6; }
38117 tst_links_strdup="no"
38118
38119fi
38120rm -f core conftest.err conftest.$ac_objext \
38121 conftest$ac_exeext conftest.$ac_ext
38122 #
38123 if test "$tst_links_strdup" = "yes"; then
38124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38125$as_echo_n "checking if strdup is prototyped... " >&6; }
38126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38127/* end confdefs.h. */
38128
38129 $curl_includes_string
38130
38131_ACEOF
38132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38133 $EGREP "strdup" >/dev/null 2>&1; then :
38134
38135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38136$as_echo "yes" >&6; }
38137 tst_proto_strdup="yes"
38138
38139else
38140
38141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38142$as_echo "no" >&6; }
38143 tst_proto_strdup="no"
38144
38145fi
38146rm -f conftest*
38147
38148 fi
38149 #
38150 if test "$tst_proto_strdup" = "yes"; then
38151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38152$as_echo_n "checking if strdup is compilable... " >&6; }
38153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38154/* end confdefs.h. */
38155
38156
38157 $curl_includes_string
38158
38159int main (void)
38160{
38161
38162 if(0 != strdup(0))
38163 return 1;
38164
38165 ;
38166 return 0;
38167}
38168
38169_ACEOF
38170if ac_fn_c_try_compile "$LINENO"; then :
38171
38172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38173$as_echo "yes" >&6; }
38174 tst_compi_strdup="yes"
38175
38176else
38177
38178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38179$as_echo "no" >&6; }
38180 tst_compi_strdup="no"
38181
38182fi
38183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38184 fi
38185 #
38186 if test "$tst_compi_strdup" = "yes"; then
38187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38188$as_echo_n "checking if strdup usage allowed... " >&6; }
38189 if test "x$curl_disallow_strdup" != "xyes"; then
38190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38191$as_echo "yes" >&6; }
38192 tst_allow_strdup="yes"
38193 else
38194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38195$as_echo "no" >&6; }
38196 tst_allow_strdup="no"
38197 fi
38198 fi
38199 #
38200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38201$as_echo_n "checking if strdup might be used... " >&6; }
38202 if test "$tst_links_strdup" = "yes" &&
38203 test "$tst_proto_strdup" = "yes" &&
38204 test "$tst_compi_strdup" = "yes" &&
38205 test "$tst_allow_strdup" = "yes"; then
38206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38207$as_echo "yes" >&6; }
38208
38209cat >>confdefs.h <<_ACEOF
38210#define HAVE_STRDUP 1
38211_ACEOF
38212
38213 curl_cv_func_strdup="yes"
38214 else
38215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38216$as_echo "no" >&6; }
38217 curl_cv_func_strdup="no"
38218 fi
38219
38220
38221 #
38222 tst_links_strerror_r="unknown"
38223 tst_proto_strerror_r="unknown"
38224 tst_compi_strerror_r="unknown"
38225 tst_glibc_strerror_r="unknown"
38226 tst_posix_strerror_r="unknown"
38227 tst_allow_strerror_r="unknown"
38228 tst_works_glibc_strerror_r="unknown"
38229 tst_works_posix_strerror_r="unknown"
38230 tst_glibc_strerror_r_type_arg3="unknown"
38231 tst_posix_strerror_r_type_arg3="unknown"
38232 #
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38234$as_echo_n "checking if strerror_r can be linked... " >&6; }
38235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38236/* end confdefs.h. */
38237
38238
38239#define strerror_r innocuous_strerror_r
38240#ifdef __STDC__
38241# include <limits.h>
38242#else
38243# include <assert.h>
38244#endif
38245#undef strerror_r
38246#ifdef __cplusplus
38247extern "C"
38248#endif
38249char strerror_r ();
38250#if defined __stub_strerror_r || defined __stub___strerror_r
38251choke me
38252#endif
38253
38254int main (void)
38255{
38256return strerror_r ();
38257 ;
38258 return 0;
38259}
38260
38261_ACEOF
38262if ac_fn_c_try_link "$LINENO"; then :
38263
38264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38265$as_echo "yes" >&6; }
38266 tst_links_strerror_r="yes"
38267
38268else
38269
38270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38271$as_echo "no" >&6; }
38272 tst_links_strerror_r="no"
38273
38274fi
38275rm -f core conftest.err conftest.$ac_objext \
38276 conftest$ac_exeext conftest.$ac_ext
38277 #
38278 if test "$tst_links_strerror_r" = "yes"; then
38279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38280$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38282/* end confdefs.h. */
38283
38284 $curl_includes_string
38285
38286_ACEOF
38287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38288 $EGREP "strerror_r" >/dev/null 2>&1; then :
38289
38290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38291$as_echo "yes" >&6; }
38292 tst_proto_strerror_r="yes"
38293
38294else
38295
38296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38297$as_echo "no" >&6; }
38298 tst_proto_strerror_r="no"
38299
38300fi
38301rm -f conftest*
38302
38303 fi
38304 #
38305 if test "$tst_proto_strerror_r" = "yes"; then
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38307$as_echo_n "checking if strerror_r is compilable... " >&6; }
38308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38309/* end confdefs.h. */
38310
38311
38312 $curl_includes_string
38313
38314int main (void)
38315{
38316
38317 if(0 != strerror_r(0, 0, 0))
38318 return 1;
38319
38320 ;
38321 return 0;
38322}
38323
38324_ACEOF
38325if ac_fn_c_try_compile "$LINENO"; then :
38326
38327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38328$as_echo "yes" >&6; }
38329 tst_compi_strerror_r="yes"
38330
38331else
38332
38333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38334$as_echo "no" >&6; }
38335 tst_compi_strerror_r="no"
38336
38337fi
38338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38339 fi
38340 #
38341 if test "$tst_compi_strerror_r" = "yes"; then
38342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38343$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38344 tst_glibc_strerror_r_type_arg3="unknown"
38345 for arg3 in 'size_t' 'int' 'unsigned int'; do
38346 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38348/* end confdefs.h. */
38349
38350
38351 $curl_includes_string
38352 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38353
38354int main (void)
38355{
38356
38357 if(0 != strerror_r(0, 0, 0))
38358 return 1;
38359
38360 ;
38361 return 0;
38362}
38363
38364_ACEOF
38365if ac_fn_c_try_compile "$LINENO"; then :
38366
38367 tst_glibc_strerror_r_type_arg3="$arg3"
38368
38369fi
38370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38371 fi
38372 done
38373 case "$tst_glibc_strerror_r_type_arg3" in
38374 unknown)
38375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38376$as_echo "no" >&6; }
38377 tst_glibc_strerror_r="no"
38378 ;;
38379 *)
38380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38381$as_echo "yes" >&6; }
38382 tst_glibc_strerror_r="yes"
38383 ;;
38384 esac
38385 fi
38386 #
38387 if test "x$cross_compiling" != "xyes" &&
38388 test "$tst_glibc_strerror_r" = "yes"; then
38389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38390$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038391
38392
38393 old=$LD_LIBRARY_PATH
38394 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38395 export LD_LIBRARY_PATH
38396 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38399as_fn_error $? "cannot run test program while cross compiling
38400See \`config.log' for more details" "$LINENO" 5; }
38401else
38402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38403/* end confdefs.h. */
38404
38405
38406 $curl_includes_stdlib
38407 $curl_includes_string
38408# include <errno.h>
38409
38410int main (void)
38411{
38412
38413 char buffer[1024];
38414 char *string = 0;
38415 buffer[0] = '\0';
38416 string = strerror_r(EACCES, buffer, sizeof(buffer));
38417 if(!string)
38418 exit(1); /* fail */
38419 if(!string[0])
38420 exit(1); /* fail */
38421 else
38422 exit(0);
38423
38424 ;
38425 return 0;
38426}
38427
38428_ACEOF
38429if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038431$as_echo "yes" >&6; }
38432 tst_works_glibc_strerror_r="yes"
38433
38434else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038436$as_echo "no" >&6; }
38437 tst_works_glibc_strerror_r="no"
38438
38439fi
38440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38441 conftest.$ac_objext conftest.beam conftest.$ac_ext
38442fi
38443
Elliott Hughesa93fb052018-12-12 14:22:48 -080038444 LD_LIBRARY_PATH=$old # restore
38445
Elliott Hughes82be86d2017-09-20 17:00:17 -070038446 fi
38447 #
38448 if test "$tst_compi_strerror_r" = "yes" &&
38449 test "$tst_works_glibc_strerror_r" != "yes"; then
38450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38451$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38452 tst_posix_strerror_r_type_arg3="unknown"
38453 for arg3 in 'size_t' 'int' 'unsigned int'; do
38454 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38456/* end confdefs.h. */
38457
38458
38459 $curl_includes_string
38460 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38461
38462int main (void)
38463{
38464
38465 if(0 != strerror_r(0, 0, 0))
38466 return 1;
38467
38468 ;
38469 return 0;
38470}
38471
38472_ACEOF
38473if ac_fn_c_try_compile "$LINENO"; then :
38474
38475 tst_posix_strerror_r_type_arg3="$arg3"
38476
38477fi
38478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38479 fi
38480 done
38481 case "$tst_posix_strerror_r_type_arg3" in
38482 unknown)
38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38484$as_echo "no" >&6; }
38485 tst_posix_strerror_r="no"
38486 ;;
38487 *)
38488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38489$as_echo "yes" >&6; }
38490 tst_posix_strerror_r="yes"
38491 ;;
38492 esac
38493 fi
38494 #
38495 if test "x$cross_compiling" != "xyes" &&
38496 test "$tst_posix_strerror_r" = "yes"; then
38497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38498$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038499
38500
38501 old=$LD_LIBRARY_PATH
38502 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38503 export LD_LIBRARY_PATH
38504 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38507as_fn_error $? "cannot run test program while cross compiling
38508See \`config.log' for more details" "$LINENO" 5; }
38509else
38510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38511/* end confdefs.h. */
38512
38513
38514 $curl_includes_stdlib
38515 $curl_includes_string
38516# include <errno.h>
38517
38518int main (void)
38519{
38520
38521 char buffer[1024];
38522 int error = 1;
38523 buffer[0] = '\0';
38524 error = strerror_r(EACCES, buffer, sizeof(buffer));
38525 if(error)
38526 exit(1); /* fail */
38527 if(buffer[0] == '\0')
38528 exit(1); /* fail */
38529 else
38530 exit(0);
38531
38532 ;
38533 return 0;
38534}
38535
38536_ACEOF
38537if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038539$as_echo "yes" >&6; }
38540 tst_works_posix_strerror_r="yes"
38541
38542else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038544$as_echo "no" >&6; }
38545 tst_works_posix_strerror_r="no"
38546
38547fi
38548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38549 conftest.$ac_objext conftest.beam conftest.$ac_ext
38550fi
38551
Elliott Hughesa93fb052018-12-12 14:22:48 -080038552 LD_LIBRARY_PATH=$old # restore
38553
Elliott Hughes82be86d2017-09-20 17:00:17 -070038554 fi
38555 #
38556 if test "$tst_works_glibc_strerror_r" = "yes"; then
38557 tst_posix_strerror_r="no"
38558 fi
38559 if test "$tst_works_posix_strerror_r" = "yes"; then
38560 tst_glibc_strerror_r="no"
38561 fi
38562 if test "$tst_glibc_strerror_r" = "yes" &&
38563 test "$tst_works_glibc_strerror_r" != "no" &&
38564 test "$tst_posix_strerror_r" != "yes"; then
38565 tst_allow_strerror_r="check"
38566 fi
38567 if test "$tst_posix_strerror_r" = "yes" &&
38568 test "$tst_works_posix_strerror_r" != "no" &&
38569 test "$tst_glibc_strerror_r" != "yes"; then
38570 tst_allow_strerror_r="check"
38571 fi
38572 if test "$tst_allow_strerror_r" = "check"; then
38573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38574$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38575 if test "x$curl_disallow_strerror_r" != "xyes"; then
38576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38577$as_echo "yes" >&6; }
38578 tst_allow_strerror_r="yes"
38579 else
38580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38581$as_echo "no" >&6; }
38582 tst_allow_strerror_r="no"
38583 fi
38584 fi
38585 #
38586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38587$as_echo_n "checking if strerror_r might be used... " >&6; }
38588 if test "$tst_links_strerror_r" = "yes" &&
38589 test "$tst_proto_strerror_r" = "yes" &&
38590 test "$tst_compi_strerror_r" = "yes" &&
38591 test "$tst_allow_strerror_r" = "yes"; then
38592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38593$as_echo "yes" >&6; }
38594 if test "$tst_glibc_strerror_r" = "yes"; then
38595
38596cat >>confdefs.h <<_ACEOF
38597#define HAVE_STRERROR_R 1
38598_ACEOF
38599
38600
38601cat >>confdefs.h <<_ACEOF
38602#define HAVE_GLIBC_STRERROR_R 1
38603_ACEOF
38604
38605
38606cat >>confdefs.h <<_ACEOF
38607#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38608_ACEOF
38609
38610 fi
38611 if test "$tst_posix_strerror_r" = "yes"; then
38612
38613cat >>confdefs.h <<_ACEOF
38614#define HAVE_STRERROR_R 1
38615_ACEOF
38616
38617
38618cat >>confdefs.h <<_ACEOF
38619#define HAVE_POSIX_STRERROR_R 1
38620_ACEOF
38621
38622
38623cat >>confdefs.h <<_ACEOF
38624#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38625_ACEOF
38626
38627 fi
38628 curl_cv_func_strerror_r="yes"
38629 else
38630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38631$as_echo "no" >&6; }
38632 curl_cv_func_strerror_r="no"
38633 fi
38634 #
38635 if test "$tst_compi_strerror_r" = "yes" &&
38636 test "$tst_allow_strerror_r" = "unknown"; then
38637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38638$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38639 fi
38640 #
38641
38642
38643 #
38644 tst_links_stricmp="unknown"
38645 tst_proto_stricmp="unknown"
38646 tst_compi_stricmp="unknown"
38647 tst_allow_stricmp="unknown"
38648 #
38649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38650$as_echo_n "checking if stricmp can be linked... " >&6; }
38651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38652/* end confdefs.h. */
38653
38654
38655#define stricmp innocuous_stricmp
38656#ifdef __STDC__
38657# include <limits.h>
38658#else
38659# include <assert.h>
38660#endif
38661#undef stricmp
38662#ifdef __cplusplus
38663extern "C"
38664#endif
38665char stricmp ();
38666#if defined __stub_stricmp || defined __stub___stricmp
38667choke me
38668#endif
38669
38670int main (void)
38671{
38672return stricmp ();
38673 ;
38674 return 0;
38675}
38676
38677_ACEOF
38678if ac_fn_c_try_link "$LINENO"; then :
38679
38680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38681$as_echo "yes" >&6; }
38682 tst_links_stricmp="yes"
38683
38684else
38685
38686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38687$as_echo "no" >&6; }
38688 tst_links_stricmp="no"
38689
38690fi
38691rm -f core conftest.err conftest.$ac_objext \
38692 conftest$ac_exeext conftest.$ac_ext
38693 #
38694 if test "$tst_links_stricmp" = "yes"; then
38695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38696$as_echo_n "checking if stricmp is prototyped... " >&6; }
38697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38698/* end confdefs.h. */
38699
38700 $curl_includes_string
38701
38702_ACEOF
38703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38704 $EGREP "stricmp" >/dev/null 2>&1; then :
38705
38706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38707$as_echo "yes" >&6; }
38708 tst_proto_stricmp="yes"
38709
38710else
38711
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38713$as_echo "no" >&6; }
38714 tst_proto_stricmp="no"
38715
38716fi
38717rm -f conftest*
38718
38719 fi
38720 #
38721 if test "$tst_proto_stricmp" = "yes"; then
38722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38723$as_echo_n "checking if stricmp is compilable... " >&6; }
38724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38725/* end confdefs.h. */
38726
38727
38728 $curl_includes_string
38729
38730int main (void)
38731{
38732
38733 if(0 != stricmp(0, 0))
38734 return 1;
38735
38736 ;
38737 return 0;
38738}
38739
38740_ACEOF
38741if ac_fn_c_try_compile "$LINENO"; then :
38742
38743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38744$as_echo "yes" >&6; }
38745 tst_compi_stricmp="yes"
38746
38747else
38748
38749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38750$as_echo "no" >&6; }
38751 tst_compi_stricmp="no"
38752
38753fi
38754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38755 fi
38756 #
38757 if test "$tst_compi_stricmp" = "yes"; then
38758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38759$as_echo_n "checking if stricmp usage allowed... " >&6; }
38760 if test "x$curl_disallow_stricmp" != "xyes"; then
38761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38762$as_echo "yes" >&6; }
38763 tst_allow_stricmp="yes"
38764 else
38765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38766$as_echo "no" >&6; }
38767 tst_allow_stricmp="no"
38768 fi
38769 fi
38770 #
38771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38772$as_echo_n "checking if stricmp might be used... " >&6; }
38773 if test "$tst_links_stricmp" = "yes" &&
38774 test "$tst_proto_stricmp" = "yes" &&
38775 test "$tst_compi_stricmp" = "yes" &&
38776 test "$tst_allow_stricmp" = "yes"; then
38777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38778$as_echo "yes" >&6; }
38779
38780cat >>confdefs.h <<_ACEOF
38781#define HAVE_STRICMP 1
38782_ACEOF
38783
38784 curl_cv_func_stricmp="yes"
38785 else
38786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38787$as_echo "no" >&6; }
38788 curl_cv_func_stricmp="no"
38789 fi
38790
38791
38792 #
38793 tst_links_strncasecmp="unknown"
38794 tst_proto_strncasecmp="unknown"
38795 tst_compi_strncasecmp="unknown"
38796 tst_allow_strncasecmp="unknown"
38797 #
38798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38799$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38801/* end confdefs.h. */
38802
38803
38804#define strncasecmp innocuous_strncasecmp
38805#ifdef __STDC__
38806# include <limits.h>
38807#else
38808# include <assert.h>
38809#endif
38810#undef strncasecmp
38811#ifdef __cplusplus
38812extern "C"
38813#endif
38814char strncasecmp ();
38815#if defined __stub_strncasecmp || defined __stub___strncasecmp
38816choke me
38817#endif
38818
38819int main (void)
38820{
38821return strncasecmp ();
38822 ;
38823 return 0;
38824}
38825
38826_ACEOF
38827if ac_fn_c_try_link "$LINENO"; then :
38828
38829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38830$as_echo "yes" >&6; }
38831 tst_links_strncasecmp="yes"
38832
38833else
38834
38835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38836$as_echo "no" >&6; }
38837 tst_links_strncasecmp="no"
38838
38839fi
38840rm -f core conftest.err conftest.$ac_objext \
38841 conftest$ac_exeext conftest.$ac_ext
38842 #
38843 if test "$tst_links_strncasecmp" = "yes"; then
38844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38845$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38847/* end confdefs.h. */
38848
38849 $curl_includes_string
38850
38851_ACEOF
38852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38853 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38854
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38856$as_echo "yes" >&6; }
38857 tst_proto_strncasecmp="yes"
38858
38859else
38860
38861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38862$as_echo "no" >&6; }
38863 tst_proto_strncasecmp="no"
38864
38865fi
38866rm -f conftest*
38867
38868 fi
38869 #
38870 if test "$tst_proto_strncasecmp" = "yes"; then
38871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38872$as_echo_n "checking if strncasecmp is compilable... " >&6; }
38873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38874/* end confdefs.h. */
38875
38876
38877 $curl_includes_string
38878
38879int main (void)
38880{
38881
38882 if(0 != strncasecmp(0, 0, 0))
38883 return 1;
38884
38885 ;
38886 return 0;
38887}
38888
38889_ACEOF
38890if ac_fn_c_try_compile "$LINENO"; then :
38891
38892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38893$as_echo "yes" >&6; }
38894 tst_compi_strncasecmp="yes"
38895
38896else
38897
38898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38899$as_echo "no" >&6; }
38900 tst_compi_strncasecmp="no"
38901
38902fi
38903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38904 fi
38905 #
38906 if test "$tst_compi_strncasecmp" = "yes"; then
38907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
38908$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
38909 if test "x$curl_disallow_strncasecmp" != "xyes"; then
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38911$as_echo "yes" >&6; }
38912 tst_allow_strncasecmp="yes"
38913 else
38914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38915$as_echo "no" >&6; }
38916 tst_allow_strncasecmp="no"
38917 fi
38918 fi
38919 #
38920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
38921$as_echo_n "checking if strncasecmp might be used... " >&6; }
38922 if test "$tst_links_strncasecmp" = "yes" &&
38923 test "$tst_proto_strncasecmp" = "yes" &&
38924 test "$tst_compi_strncasecmp" = "yes" &&
38925 test "$tst_allow_strncasecmp" = "yes"; then
38926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38927$as_echo "yes" >&6; }
38928
38929cat >>confdefs.h <<_ACEOF
38930#define HAVE_STRNCASECMP 1
38931_ACEOF
38932
38933 curl_cv_func_strncasecmp="yes"
38934 else
38935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38936$as_echo "no" >&6; }
38937 curl_cv_func_strncasecmp="no"
38938 fi
38939
38940
38941 #
38942 tst_links_strncmpi="unknown"
38943 tst_proto_strncmpi="unknown"
38944 tst_compi_strncmpi="unknown"
38945 tst_allow_strncmpi="unknown"
38946 #
38947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
38948$as_echo_n "checking if strncmpi can be linked... " >&6; }
38949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38950/* end confdefs.h. */
38951
38952
38953#define strncmpi innocuous_strncmpi
38954#ifdef __STDC__
38955# include <limits.h>
38956#else
38957# include <assert.h>
38958#endif
38959#undef strncmpi
38960#ifdef __cplusplus
38961extern "C"
38962#endif
38963char strncmpi ();
38964#if defined __stub_strncmpi || defined __stub___strncmpi
38965choke me
38966#endif
38967
38968int main (void)
38969{
38970return strncmpi ();
38971 ;
38972 return 0;
38973}
38974
38975_ACEOF
38976if ac_fn_c_try_link "$LINENO"; then :
38977
38978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38979$as_echo "yes" >&6; }
38980 tst_links_strncmpi="yes"
38981
38982else
38983
38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38985$as_echo "no" >&6; }
38986 tst_links_strncmpi="no"
38987
38988fi
38989rm -f core conftest.err conftest.$ac_objext \
38990 conftest$ac_exeext conftest.$ac_ext
38991 #
38992 if test "$tst_links_strncmpi" = "yes"; then
38993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
38994$as_echo_n "checking if strncmpi is prototyped... " >&6; }
38995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38996/* end confdefs.h. */
38997
38998 $curl_includes_string
38999
39000_ACEOF
39001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39002 $EGREP "strncmpi" >/dev/null 2>&1; then :
39003
39004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39005$as_echo "yes" >&6; }
39006 tst_proto_strncmpi="yes"
39007
39008else
39009
39010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39011$as_echo "no" >&6; }
39012 tst_proto_strncmpi="no"
39013
39014fi
39015rm -f conftest*
39016
39017 fi
39018 #
39019 if test "$tst_proto_strncmpi" = "yes"; then
39020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39021$as_echo_n "checking if strncmpi is compilable... " >&6; }
39022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39023/* end confdefs.h. */
39024
39025
39026 $curl_includes_string
39027
39028int main (void)
39029{
39030
39031 if(0 != strncmpi(0, 0))
39032 return 1;
39033
39034 ;
39035 return 0;
39036}
39037
39038_ACEOF
39039if ac_fn_c_try_compile "$LINENO"; then :
39040
39041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39042$as_echo "yes" >&6; }
39043 tst_compi_strncmpi="yes"
39044
39045else
39046
39047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39048$as_echo "no" >&6; }
39049 tst_compi_strncmpi="no"
39050
39051fi
39052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39053 fi
39054 #
39055 if test "$tst_compi_strncmpi" = "yes"; then
39056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39057$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39058 if test "x$curl_disallow_strncmpi" != "xyes"; then
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39060$as_echo "yes" >&6; }
39061 tst_allow_strncmpi="yes"
39062 else
39063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39064$as_echo "no" >&6; }
39065 tst_allow_strncmpi="no"
39066 fi
39067 fi
39068 #
39069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39070$as_echo_n "checking if strncmpi might be used... " >&6; }
39071 if test "$tst_links_strncmpi" = "yes" &&
39072 test "$tst_proto_strncmpi" = "yes" &&
39073 test "$tst_compi_strncmpi" = "yes" &&
39074 test "$tst_allow_strncmpi" = "yes"; then
39075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39076$as_echo "yes" >&6; }
39077
39078cat >>confdefs.h <<_ACEOF
39079#define HAVE_STRNCMPI 1
39080_ACEOF
39081
39082 curl_cv_func_strncmpi="yes"
39083 else
39084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39085$as_echo "no" >&6; }
39086 curl_cv_func_strncmpi="no"
39087 fi
39088
39089
39090 #
39091 tst_links_strnicmp="unknown"
39092 tst_proto_strnicmp="unknown"
39093 tst_compi_strnicmp="unknown"
39094 tst_allow_strnicmp="unknown"
39095 #
39096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39097$as_echo_n "checking if strnicmp can be linked... " >&6; }
39098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39099/* end confdefs.h. */
39100
39101
39102#define strnicmp innocuous_strnicmp
39103#ifdef __STDC__
39104# include <limits.h>
39105#else
39106# include <assert.h>
39107#endif
39108#undef strnicmp
39109#ifdef __cplusplus
39110extern "C"
39111#endif
39112char strnicmp ();
39113#if defined __stub_strnicmp || defined __stub___strnicmp
39114choke me
39115#endif
39116
39117int main (void)
39118{
39119return strnicmp ();
39120 ;
39121 return 0;
39122}
39123
39124_ACEOF
39125if ac_fn_c_try_link "$LINENO"; then :
39126
39127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39128$as_echo "yes" >&6; }
39129 tst_links_strnicmp="yes"
39130
39131else
39132
39133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39134$as_echo "no" >&6; }
39135 tst_links_strnicmp="no"
39136
39137fi
39138rm -f core conftest.err conftest.$ac_objext \
39139 conftest$ac_exeext conftest.$ac_ext
39140 #
39141 if test "$tst_links_strnicmp" = "yes"; then
39142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39143$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39145/* end confdefs.h. */
39146
39147 $curl_includes_string
39148
39149_ACEOF
39150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39151 $EGREP "strnicmp" >/dev/null 2>&1; then :
39152
39153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39154$as_echo "yes" >&6; }
39155 tst_proto_strnicmp="yes"
39156
39157else
39158
39159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39160$as_echo "no" >&6; }
39161 tst_proto_strnicmp="no"
39162
39163fi
39164rm -f conftest*
39165
39166 fi
39167 #
39168 if test "$tst_proto_strnicmp" = "yes"; then
39169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39170$as_echo_n "checking if strnicmp is compilable... " >&6; }
39171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39172/* end confdefs.h. */
39173
39174
39175 $curl_includes_string
39176
39177int main (void)
39178{
39179
39180 if(0 != strnicmp(0, 0))
39181 return 1;
39182
39183 ;
39184 return 0;
39185}
39186
39187_ACEOF
39188if ac_fn_c_try_compile "$LINENO"; then :
39189
39190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39191$as_echo "yes" >&6; }
39192 tst_compi_strnicmp="yes"
39193
39194else
39195
39196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39197$as_echo "no" >&6; }
39198 tst_compi_strnicmp="no"
39199
39200fi
39201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39202 fi
39203 #
39204 if test "$tst_compi_strnicmp" = "yes"; then
39205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39206$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39207 if test "x$curl_disallow_strnicmp" != "xyes"; then
39208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39209$as_echo "yes" >&6; }
39210 tst_allow_strnicmp="yes"
39211 else
39212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39213$as_echo "no" >&6; }
39214 tst_allow_strnicmp="no"
39215 fi
39216 fi
39217 #
39218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39219$as_echo_n "checking if strnicmp might be used... " >&6; }
39220 if test "$tst_links_strnicmp" = "yes" &&
39221 test "$tst_proto_strnicmp" = "yes" &&
39222 test "$tst_compi_strnicmp" = "yes" &&
39223 test "$tst_allow_strnicmp" = "yes"; then
39224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39225$as_echo "yes" >&6; }
39226
39227cat >>confdefs.h <<_ACEOF
39228#define HAVE_STRNICMP 1
39229_ACEOF
39230
39231 curl_cv_func_strnicmp="yes"
39232 else
39233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39234$as_echo "no" >&6; }
39235 curl_cv_func_strnicmp="no"
39236 fi
39237
39238
39239 #
39240 tst_links_strstr="unknown"
39241 tst_proto_strstr="unknown"
39242 tst_compi_strstr="unknown"
39243 tst_allow_strstr="unknown"
39244 #
39245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39246$as_echo_n "checking if strstr can be linked... " >&6; }
39247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39248/* end confdefs.h. */
39249
39250
39251#define strstr innocuous_strstr
39252#ifdef __STDC__
39253# include <limits.h>
39254#else
39255# include <assert.h>
39256#endif
39257#undef strstr
39258#ifdef __cplusplus
39259extern "C"
39260#endif
39261char strstr ();
39262#if defined __stub_strstr || defined __stub___strstr
39263choke me
39264#endif
39265
39266int main (void)
39267{
39268return strstr ();
39269 ;
39270 return 0;
39271}
39272
39273_ACEOF
39274if ac_fn_c_try_link "$LINENO"; then :
39275
39276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39277$as_echo "yes" >&6; }
39278 tst_links_strstr="yes"
39279
39280else
39281
39282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39283$as_echo "no" >&6; }
39284 tst_links_strstr="no"
39285
39286fi
39287rm -f core conftest.err conftest.$ac_objext \
39288 conftest$ac_exeext conftest.$ac_ext
39289 #
39290 if test "$tst_links_strstr" = "yes"; then
39291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39292$as_echo_n "checking if strstr is prototyped... " >&6; }
39293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39294/* end confdefs.h. */
39295
39296 $curl_includes_string
39297
39298_ACEOF
39299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39300 $EGREP "strstr" >/dev/null 2>&1; then :
39301
39302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39303$as_echo "yes" >&6; }
39304 tst_proto_strstr="yes"
39305
39306else
39307
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39309$as_echo "no" >&6; }
39310 tst_proto_strstr="no"
39311
39312fi
39313rm -f conftest*
39314
39315 fi
39316 #
39317 if test "$tst_proto_strstr" = "yes"; then
39318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39319$as_echo_n "checking if strstr is compilable... " >&6; }
39320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39321/* end confdefs.h. */
39322
39323
39324 $curl_includes_string
39325
39326int main (void)
39327{
39328
39329 if(0 != strstr(0, 0))
39330 return 1;
39331
39332 ;
39333 return 0;
39334}
39335
39336_ACEOF
39337if ac_fn_c_try_compile "$LINENO"; then :
39338
39339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39340$as_echo "yes" >&6; }
39341 tst_compi_strstr="yes"
39342
39343else
39344
39345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39346$as_echo "no" >&6; }
39347 tst_compi_strstr="no"
39348
39349fi
39350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39351 fi
39352 #
39353 if test "$tst_compi_strstr" = "yes"; then
39354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39355$as_echo_n "checking if strstr usage allowed... " >&6; }
39356 if test "x$curl_disallow_strstr" != "xyes"; then
39357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39358$as_echo "yes" >&6; }
39359 tst_allow_strstr="yes"
39360 else
39361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39362$as_echo "no" >&6; }
39363 tst_allow_strstr="no"
39364 fi
39365 fi
39366 #
39367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39368$as_echo_n "checking if strstr might be used... " >&6; }
39369 if test "$tst_links_strstr" = "yes" &&
39370 test "$tst_proto_strstr" = "yes" &&
39371 test "$tst_compi_strstr" = "yes" &&
39372 test "$tst_allow_strstr" = "yes"; then
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39374$as_echo "yes" >&6; }
39375
39376cat >>confdefs.h <<_ACEOF
39377#define HAVE_STRSTR 1
39378_ACEOF
39379
39380 curl_cv_func_strstr="yes"
39381 else
39382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39383$as_echo "no" >&6; }
39384 curl_cv_func_strstr="no"
39385 fi
39386
39387
39388 #
39389 tst_links_strtok_r="unknown"
39390 tst_proto_strtok_r="unknown"
39391 tst_compi_strtok_r="unknown"
39392 tst_allow_strtok_r="unknown"
39393 #
39394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39395$as_echo_n "checking if strtok_r can be linked... " >&6; }
39396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39397/* end confdefs.h. */
39398
39399
39400#define strtok_r innocuous_strtok_r
39401#ifdef __STDC__
39402# include <limits.h>
39403#else
39404# include <assert.h>
39405#endif
39406#undef strtok_r
39407#ifdef __cplusplus
39408extern "C"
39409#endif
39410char strtok_r ();
39411#if defined __stub_strtok_r || defined __stub___strtok_r
39412choke me
39413#endif
39414
39415int main (void)
39416{
39417return strtok_r ();
39418 ;
39419 return 0;
39420}
39421
39422_ACEOF
39423if ac_fn_c_try_link "$LINENO"; then :
39424
39425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39426$as_echo "yes" >&6; }
39427 tst_links_strtok_r="yes"
39428
39429else
39430
39431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39432$as_echo "no" >&6; }
39433 tst_links_strtok_r="no"
39434
39435fi
39436rm -f core conftest.err conftest.$ac_objext \
39437 conftest$ac_exeext conftest.$ac_ext
39438 #
39439 if test "$tst_links_strtok_r" = "yes"; then
39440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39441$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39443/* end confdefs.h. */
39444
39445 $curl_includes_string
39446
39447_ACEOF
39448if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39449 $EGREP "strtok_r" >/dev/null 2>&1; then :
39450
39451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39452$as_echo "yes" >&6; }
39453 tst_proto_strtok_r="yes"
39454
39455else
39456
39457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39458$as_echo "no" >&6; }
39459 tst_proto_strtok_r="no"
39460
39461fi
39462rm -f conftest*
39463
39464 fi
39465 #
39466 if test "$tst_proto_strtok_r" = "yes"; then
39467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39468$as_echo_n "checking if strtok_r is compilable... " >&6; }
39469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39470/* end confdefs.h. */
39471
39472
39473 $curl_includes_string
39474
39475int main (void)
39476{
39477
39478 if(0 != strtok_r(0, 0, 0))
39479 return 1;
39480
39481 ;
39482 return 0;
39483}
39484
39485_ACEOF
39486if ac_fn_c_try_compile "$LINENO"; then :
39487
39488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39489$as_echo "yes" >&6; }
39490 tst_compi_strtok_r="yes"
39491
39492else
39493
39494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39495$as_echo "no" >&6; }
39496 tst_compi_strtok_r="no"
39497
39498fi
39499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39500 fi
39501 #
39502 if test "$tst_compi_strtok_r" = "yes"; then
39503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39504$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39505 if test "x$curl_disallow_strtok_r" != "xyes"; then
39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39507$as_echo "yes" >&6; }
39508 tst_allow_strtok_r="yes"
39509 else
39510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39511$as_echo "no" >&6; }
39512 tst_allow_strtok_r="no"
39513 fi
39514 fi
39515 #
39516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39517$as_echo_n "checking if strtok_r might be used... " >&6; }
39518 if test "$tst_links_strtok_r" = "yes" &&
39519 test "$tst_proto_strtok_r" = "yes" &&
39520 test "$tst_compi_strtok_r" = "yes" &&
39521 test "$tst_allow_strtok_r" = "yes"; then
39522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39523$as_echo "yes" >&6; }
39524
39525cat >>confdefs.h <<_ACEOF
39526#define HAVE_STRTOK_R 1
39527_ACEOF
39528
39529 curl_cv_func_strtok_r="yes"
39530 else
39531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39532$as_echo "no" >&6; }
39533 curl_cv_func_strtok_r="no"
39534 fi
39535
39536
39537 #
39538 tst_links_strtoll="unknown"
39539 tst_proto_strtoll="unknown"
39540 tst_compi_strtoll="unknown"
39541 tst_allow_strtoll="unknown"
39542 #
39543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39544$as_echo_n "checking if strtoll can be linked... " >&6; }
39545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39546/* end confdefs.h. */
39547
39548
39549#define strtoll innocuous_strtoll
39550#ifdef __STDC__
39551# include <limits.h>
39552#else
39553# include <assert.h>
39554#endif
39555#undef strtoll
39556#ifdef __cplusplus
39557extern "C"
39558#endif
39559char strtoll ();
39560#if defined __stub_strtoll || defined __stub___strtoll
39561choke me
39562#endif
39563
39564int main (void)
39565{
39566return strtoll ();
39567 ;
39568 return 0;
39569}
39570
39571_ACEOF
39572if ac_fn_c_try_link "$LINENO"; then :
39573
39574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39575$as_echo "yes" >&6; }
39576 tst_links_strtoll="yes"
39577
39578else
39579
39580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39581$as_echo "no" >&6; }
39582 tst_links_strtoll="no"
39583
39584fi
39585rm -f core conftest.err conftest.$ac_objext \
39586 conftest$ac_exeext conftest.$ac_ext
39587 #
39588 if test "$tst_links_strtoll" = "yes"; then
39589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39590$as_echo_n "checking if strtoll is prototyped... " >&6; }
39591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39592/* end confdefs.h. */
39593
39594 $curl_includes_stdlib
39595
39596_ACEOF
39597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39598 $EGREP "strtoll" >/dev/null 2>&1; then :
39599
39600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39601$as_echo "yes" >&6; }
39602 tst_proto_strtoll="yes"
39603
39604else
39605
39606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39607$as_echo "no" >&6; }
39608 tst_proto_strtoll="no"
39609
39610fi
39611rm -f conftest*
39612
39613 fi
39614 #
39615 if test "$tst_proto_strtoll" = "yes"; then
39616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39617$as_echo_n "checking if strtoll is compilable... " >&6; }
39618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39619/* end confdefs.h. */
39620
39621
39622 $curl_includes_stdlib
39623
39624int main (void)
39625{
39626
39627 if(0 != strtoll(0, 0, 0))
39628 return 1;
39629
39630 ;
39631 return 0;
39632}
39633
39634_ACEOF
39635if ac_fn_c_try_compile "$LINENO"; then :
39636
39637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39638$as_echo "yes" >&6; }
39639 tst_compi_strtoll="yes"
39640
39641else
39642
39643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39644$as_echo "no" >&6; }
39645 tst_compi_strtoll="no"
39646
39647fi
39648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39649 fi
39650 #
39651 if test "$tst_compi_strtoll" = "yes"; then
39652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39653$as_echo_n "checking if strtoll usage allowed... " >&6; }
39654 if test "x$curl_disallow_strtoll" != "xyes"; then
39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39656$as_echo "yes" >&6; }
39657 tst_allow_strtoll="yes"
39658 else
39659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39660$as_echo "no" >&6; }
39661 tst_allow_strtoll="no"
39662 fi
39663 fi
39664 #
39665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39666$as_echo_n "checking if strtoll might be used... " >&6; }
39667 if test "$tst_links_strtoll" = "yes" &&
39668 test "$tst_proto_strtoll" = "yes" &&
39669 test "$tst_compi_strtoll" = "yes" &&
39670 test "$tst_allow_strtoll" = "yes"; then
39671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39672$as_echo "yes" >&6; }
39673
39674cat >>confdefs.h <<_ACEOF
39675#define HAVE_STRTOLL 1
39676_ACEOF
39677
39678 curl_cv_func_strtoll="yes"
39679 else
39680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39681$as_echo "no" >&6; }
39682 curl_cv_func_strtoll="no"
39683 fi
39684
39685
39686curl_includes_sys_uio="\
39687/* includes start */
39688#ifdef HAVE_SYS_TYPES_H
39689# include <sys/types.h>
39690#endif
39691#ifdef HAVE_SYS_UIO_H
39692# include <sys/uio.h>
39693#endif
39694/* includes end */"
39695 for ac_header in sys/types.h sys/uio.h
39696do :
39697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39699"
39700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39701 cat >>confdefs.h <<_ACEOF
39702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39703_ACEOF
39704
39705fi
39706
39707done
39708
39709
39710
39711 #
39712 tst_links_writev="unknown"
39713 tst_proto_writev="unknown"
39714 tst_compi_writev="unknown"
39715 tst_allow_writev="unknown"
39716 #
39717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39718$as_echo_n "checking if writev can be linked... " >&6; }
39719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39720/* end confdefs.h. */
39721
39722
39723#define writev innocuous_writev
39724#ifdef __STDC__
39725# include <limits.h>
39726#else
39727# include <assert.h>
39728#endif
39729#undef writev
39730#ifdef __cplusplus
39731extern "C"
39732#endif
39733char writev ();
39734#if defined __stub_writev || defined __stub___writev
39735choke me
39736#endif
39737
39738int main (void)
39739{
39740return writev ();
39741 ;
39742 return 0;
39743}
39744
39745_ACEOF
39746if ac_fn_c_try_link "$LINENO"; then :
39747
39748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39749$as_echo "yes" >&6; }
39750 tst_links_writev="yes"
39751
39752else
39753
39754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39755$as_echo "no" >&6; }
39756 tst_links_writev="no"
39757
39758fi
39759rm -f core conftest.err conftest.$ac_objext \
39760 conftest$ac_exeext conftest.$ac_ext
39761 #
39762 if test "$tst_links_writev" = "yes"; then
39763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39764$as_echo_n "checking if writev is prototyped... " >&6; }
39765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39766/* end confdefs.h. */
39767
39768 $curl_includes_sys_uio
39769
39770_ACEOF
39771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39772 $EGREP "writev" >/dev/null 2>&1; then :
39773
39774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39775$as_echo "yes" >&6; }
39776 tst_proto_writev="yes"
39777
39778else
39779
39780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39781$as_echo "no" >&6; }
39782 tst_proto_writev="no"
39783
39784fi
39785rm -f conftest*
39786
39787 fi
39788 #
39789 if test "$tst_proto_writev" = "yes"; then
39790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39791$as_echo_n "checking if writev is compilable... " >&6; }
39792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39793/* end confdefs.h. */
39794
39795
39796 $curl_includes_sys_uio
39797
39798int main (void)
39799{
39800
39801 if(0 != writev(0, 0, 0))
39802 return 1;
39803
39804 ;
39805 return 0;
39806}
39807
39808_ACEOF
39809if ac_fn_c_try_compile "$LINENO"; then :
39810
39811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39812$as_echo "yes" >&6; }
39813 tst_compi_writev="yes"
39814
39815else
39816
39817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39818$as_echo "no" >&6; }
39819 tst_compi_writev="no"
39820
39821fi
39822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39823 fi
39824 #
39825 if test "$tst_compi_writev" = "yes"; then
39826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39827$as_echo_n "checking if writev usage allowed... " >&6; }
39828 if test "x$curl_disallow_writev" != "xyes"; then
39829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39830$as_echo "yes" >&6; }
39831 tst_allow_writev="yes"
39832 else
39833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39834$as_echo "no" >&6; }
39835 tst_allow_writev="no"
39836 fi
39837 fi
39838 #
39839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39840$as_echo_n "checking if writev might be used... " >&6; }
39841 if test "$tst_links_writev" = "yes" &&
39842 test "$tst_proto_writev" = "yes" &&
39843 test "$tst_compi_writev" = "yes" &&
39844 test "$tst_allow_writev" = "yes"; then
39845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39846$as_echo "yes" >&6; }
39847
39848cat >>confdefs.h <<_ACEOF
39849#define HAVE_WRITEV 1
39850_ACEOF
39851
39852 curl_cv_func_writev="yes"
39853 else
39854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39855$as_echo "no" >&6; }
39856 curl_cv_func_writev="no"
39857 fi
39858
39859
39860case $host in
39861 *msdosdjgpp)
39862 ac_cv_func_pipe=no
39863 skipcheck_pipe=yes
39864 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39865$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39866 ;;
39867esac
39868
Elliott Hughes72d948d2018-08-03 14:37:21 -070039869ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
39870 #include <sys/types.h>
39871"
39872if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
39873 ac_have_decl=1
39874else
39875 ac_have_decl=0
39876fi
39877
39878cat >>confdefs.h <<_ACEOF
39879#define HAVE_DECL_GETPWUID_R $ac_have_decl
39880_ACEOF
39881if test $ac_have_decl = 1; then :
39882
39883else
39884
39885$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
39886
39887fi
39888
39889
39890
39891for ac_func in fnmatch \
39892 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070039893 getpass_r \
39894 getppid \
39895 getpwuid \
39896 getpwuid_r \
39897 getrlimit \
39898 gettimeofday \
39899 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010039900 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070039901 pipe \
39902 setlocale \
39903 setmode \
39904 setrlimit \
39905 utime \
39906 utimes
39907
39908do :
39909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
39910ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
39911if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
39912 cat >>confdefs.h <<_ACEOF
39913#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
39914_ACEOF
39915
39916
39917else
39918
39919 func="$ac_func"
39920 eval skipcheck=\$skipcheck_$func
39921 if test "x$skipcheck" != "xyes"; then
39922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
39923$as_echo_n "checking deeper for $func... " >&6; }
39924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39925/* end confdefs.h. */
39926
39927
39928
39929int main (void)
39930{
39931
39932 $func ();
39933
39934 ;
39935 return 0;
39936}
39937
39938_ACEOF
39939if ac_fn_c_try_link "$LINENO"; then :
39940
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39942$as_echo "yes" >&6; }
39943 eval "ac_cv_func_$func=yes"
39944
39945cat >>confdefs.h <<_ACEOF
39946#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
39947_ACEOF
39948
39949
39950else
39951
39952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
39953$as_echo "but still no" >&6; }
39954
39955fi
39956rm -f core conftest.err conftest.$ac_objext \
39957 conftest$ac_exeext conftest.$ac_ext
39958 fi
39959
39960fi
39961done
39962
39963
Elliott Hughes82be86d2017-09-20 17:00:17 -070039964if test "$ipv6" = "yes"; then
39965 if test "$curl_cv_func_getaddrinfo" = "yes"; then
39966
39967$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
39968
39969 IPV6_ENABLED=1
39970
39971 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070039972fi
39973
39974
39975 #
39976 tst_method="unknown"
39977
39978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
39979$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
39980 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
39981 tst_method="fcntl O_NONBLOCK"
39982 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
39983 tst_method="ioctl FIONBIO"
39984 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
39985 tst_method="ioctlsocket FIONBIO"
39986 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
39987 tst_method="IoctlSocket FIONBIO"
39988 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
39989 tst_method="setsockopt SO_NONBLOCK"
39990 fi
39991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
39992$as_echo "$tst_method" >&6; }
39993 if test "$tst_method" = "unknown"; then
39994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
39995$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
39996 fi
39997
39998
39999
40000# Extract the first word of "perl", so it can be a program name with args.
40001set dummy perl; ac_word=$2
40002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40003$as_echo_n "checking for $ac_word... " >&6; }
40004if ${ac_cv_path_PERL+:} false; then :
40005 $as_echo_n "(cached) " >&6
40006else
40007 case $PERL in
40008 [\\/]* | ?:[\\/]*)
40009 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40010 ;;
40011 *)
40012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40013as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40014for as_dir in $as_dummy
40015do
40016 IFS=$as_save_IFS
40017 test -z "$as_dir" && as_dir=.
40018 for ac_exec_ext in '' $ac_executable_extensions; do
40019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40020 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40022 break 2
40023 fi
40024done
40025 done
40026IFS=$as_save_IFS
40027
40028 ;;
40029esac
40030fi
40031PERL=$ac_cv_path_PERL
40032if test -n "$PERL"; then
40033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40034$as_echo "$PERL" >&6; }
40035else
40036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40037$as_echo "no" >&6; }
40038fi
40039
40040
40041
40042
40043for ac_prog in gnroff nroff
40044do
40045 # Extract the first word of "$ac_prog", so it can be a program name with args.
40046set dummy $ac_prog; ac_word=$2
40047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40048$as_echo_n "checking for $ac_word... " >&6; }
40049if ${ac_cv_path_NROFF+:} false; then :
40050 $as_echo_n "(cached) " >&6
40051else
40052 case $NROFF in
40053 [\\/]* | ?:[\\/]*)
40054 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40055 ;;
40056 *)
40057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40058as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40059for as_dir in $as_dummy
40060do
40061 IFS=$as_save_IFS
40062 test -z "$as_dir" && as_dir=.
40063 for ac_exec_ext in '' $ac_executable_extensions; do
40064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40065 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40067 break 2
40068 fi
40069done
40070 done
40071IFS=$as_save_IFS
40072
40073 ;;
40074esac
40075fi
40076NROFF=$ac_cv_path_NROFF
40077if test -n "$NROFF"; then
40078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40079$as_echo "$NROFF" >&6; }
40080else
40081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40082$as_echo "no" >&6; }
40083fi
40084
40085
40086 test -n "$NROFF" && break
40087done
40088
40089
40090
40091if test -n "$NROFF"; then
40092
40093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40094$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40095 MANOPT="-man"
40096 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40097 if test -z "$mancheck"; then
40098 MANOPT="-mandoc"
40099 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40100 if test -z "$mancheck"; then
40101 MANOPT=""
40102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40103$as_echo "failed" >&6; }
40104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40105$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40106 else
40107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40108$as_echo "$MANOPT" >&6; }
40109 fi
40110 else
40111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40112$as_echo "$MANOPT" >&6; }
40113 fi
40114
40115fi
40116
40117if test -z "$MANOPT"
40118then
40119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40120$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40121 USE_MANUAL="no";
40122fi
40123
40124
40125if test "$USE_MANUAL" = "1"; then
40126
40127$as_echo "#define USE_MANUAL 1" >>confdefs.h
40128
40129 curl_manual_msg="enabled"
40130fi
40131
40132 if test x"$USE_MANUAL" = x1; then
40133 USE_MANUAL_TRUE=
40134 USE_MANUAL_FALSE='#'
40135else
40136 USE_MANUAL_TRUE='#'
40137 USE_MANUAL_FALSE=
40138fi
40139
40140
40141
40142
40143
40144 #
40145 if test "$want_ares" = "yes"; then
40146 clean_CPPFLAGS="$CPPFLAGS"
40147 clean_LDFLAGS="$LDFLAGS"
40148 clean_LIBS="$LIBS"
40149 embedded_ares="unknown"
40150 configure_runpath=`pwd`
40151 embedded_ares_builddir="$configure_runpath/ares"
40152 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040153 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40154
40155 if test -n "$PKG_CONFIG"; then
40156 PKGCONFIG="$PKG_CONFIG"
40157 else
40158 if test -n "$ac_tool_prefix"; then
40159 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40160set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40162$as_echo_n "checking for $ac_word... " >&6; }
40163if ${ac_cv_path_PKGCONFIG+:} false; then :
40164 $as_echo_n "(cached) " >&6
40165else
40166 case $PKGCONFIG in
40167 [\\/]* | ?:[\\/]*)
40168 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40169 ;;
40170 *)
40171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40172as_dummy="$PATH:/usr/bin:/usr/local/bin"
40173for as_dir in $as_dummy
40174do
40175 IFS=$as_save_IFS
40176 test -z "$as_dir" && as_dir=.
40177 for ac_exec_ext in '' $ac_executable_extensions; do
40178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40179 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40181 break 2
40182 fi
40183done
40184 done
40185IFS=$as_save_IFS
40186
40187 ;;
40188esac
40189fi
40190PKGCONFIG=$ac_cv_path_PKGCONFIG
40191if test -n "$PKGCONFIG"; then
40192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40193$as_echo "$PKGCONFIG" >&6; }
40194else
40195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40196$as_echo "no" >&6; }
40197fi
40198
40199
40200fi
40201if test -z "$ac_cv_path_PKGCONFIG"; then
40202 ac_pt_PKGCONFIG=$PKGCONFIG
40203 # Extract the first word of "pkg-config", so it can be a program name with args.
40204set dummy pkg-config; ac_word=$2
40205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40206$as_echo_n "checking for $ac_word... " >&6; }
40207if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40208 $as_echo_n "(cached) " >&6
40209else
40210 case $ac_pt_PKGCONFIG in
40211 [\\/]* | ?:[\\/]*)
40212 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40213 ;;
40214 *)
40215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40216as_dummy="$PATH:/usr/bin:/usr/local/bin"
40217for as_dir in $as_dummy
40218do
40219 IFS=$as_save_IFS
40220 test -z "$as_dir" && as_dir=.
40221 for ac_exec_ext in '' $ac_executable_extensions; do
40222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40223 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40225 break 2
40226 fi
40227done
40228 done
40229IFS=$as_save_IFS
40230
40231 ;;
40232esac
40233fi
40234ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40235if test -n "$ac_pt_PKGCONFIG"; then
40236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40237$as_echo "$ac_pt_PKGCONFIG" >&6; }
40238else
40239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40240$as_echo "no" >&6; }
40241fi
40242
40243 if test "x$ac_pt_PKGCONFIG" = x; then
40244 PKGCONFIG="no"
40245 else
40246 case $cross_compiling:$ac_tool_warned in
40247yes:)
40248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40250ac_tool_warned=yes ;;
40251esac
40252 PKGCONFIG=$ac_pt_PKGCONFIG
40253 fi
40254else
40255 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40256fi
40257
40258 fi
40259
40260 if test "x$PKGCONFIG" != "xno"; then
40261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40262$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40263 itexists=`
40264 if test -n "$ARES_PCDIR"; then
40265 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40266 export PKG_CONFIG_LIBDIR
40267 fi
40268 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40269
40270 if test -z "$itexists"; then
40271 PKGCONFIG="no"
40272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40273$as_echo "no" >&6; }
40274 else
40275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40276$as_echo "found" >&6; }
40277 fi
40278 fi
40279
40280 if test "$PKGCONFIG" != "no" ; then
40281 ares_LIBS=`
40282 if test -n "$ARES_PCDIR"; then
40283 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40284 export PKG_CONFIG_LIBDIR
40285 fi
40286
40287 $PKGCONFIG --libs-only-l libcares`
40288 ares_LDFLAGS=`
40289 if test -n "$ARES_PCDIR"; then
40290 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40291 export PKG_CONFIG_LIBDIR
40292 fi
40293
40294 $PKGCONFIG --libs-only-L libcares`
40295 ares_CPPFLAGS=`
40296 if test -n "$ARES_PCDIR"; then
40297 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40298 export PKG_CONFIG_LIBDIR
40299 fi
40300
40301 $PKGCONFIG --cflags-only-I libcares`
40302 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40303$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40304 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40305$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40306 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40307$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40308 else
40309 ares_CPPFLAGS="-I$want_ares_path/include"
40310 ares_LDFLAGS="-L$want_ares_path/lib"
40311 ares_LIBS="-lcares"
40312 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040313 else
40314 if test -d "$srcdir/ares"; then
40315 embedded_ares="yes"
40316 subdirs="$subdirs ares"
40317
40318 ares_CPPFLAGS=""
40319 ares_LDFLAGS="-L$embedded_ares_builddir"
40320 ares_LIBS="-lcares"
40321 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040322
40323 if test -n "$PKG_CONFIG"; then
40324 PKGCONFIG="$PKG_CONFIG"
40325 else
40326 if test -n "$ac_tool_prefix"; then
40327 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40328set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40330$as_echo_n "checking for $ac_word... " >&6; }
40331if ${ac_cv_path_PKGCONFIG+:} false; then :
40332 $as_echo_n "(cached) " >&6
40333else
40334 case $PKGCONFIG in
40335 [\\/]* | ?:[\\/]*)
40336 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40337 ;;
40338 *)
40339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40340as_dummy="$PATH:/usr/bin:/usr/local/bin"
40341for as_dir in $as_dummy
40342do
40343 IFS=$as_save_IFS
40344 test -z "$as_dir" && as_dir=.
40345 for ac_exec_ext in '' $ac_executable_extensions; do
40346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40347 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40349 break 2
40350 fi
40351done
40352 done
40353IFS=$as_save_IFS
40354
40355 ;;
40356esac
40357fi
40358PKGCONFIG=$ac_cv_path_PKGCONFIG
40359if test -n "$PKGCONFIG"; then
40360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40361$as_echo "$PKGCONFIG" >&6; }
40362else
40363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40364$as_echo "no" >&6; }
40365fi
40366
40367
40368fi
40369if test -z "$ac_cv_path_PKGCONFIG"; then
40370 ac_pt_PKGCONFIG=$PKGCONFIG
40371 # Extract the first word of "pkg-config", so it can be a program name with args.
40372set dummy pkg-config; ac_word=$2
40373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40374$as_echo_n "checking for $ac_word... " >&6; }
40375if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40376 $as_echo_n "(cached) " >&6
40377else
40378 case $ac_pt_PKGCONFIG in
40379 [\\/]* | ?:[\\/]*)
40380 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40381 ;;
40382 *)
40383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40384as_dummy="$PATH:/usr/bin:/usr/local/bin"
40385for as_dir in $as_dummy
40386do
40387 IFS=$as_save_IFS
40388 test -z "$as_dir" && as_dir=.
40389 for ac_exec_ext in '' $ac_executable_extensions; do
40390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40391 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40393 break 2
40394 fi
40395done
40396 done
40397IFS=$as_save_IFS
40398
40399 ;;
40400esac
40401fi
40402ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40403if test -n "$ac_pt_PKGCONFIG"; then
40404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40405$as_echo "$ac_pt_PKGCONFIG" >&6; }
40406else
40407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40408$as_echo "no" >&6; }
40409fi
40410
40411 if test "x$ac_pt_PKGCONFIG" = x; then
40412 PKGCONFIG="no"
40413 else
40414 case $cross_compiling:$ac_tool_warned in
40415yes:)
40416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40418ac_tool_warned=yes ;;
40419esac
40420 PKGCONFIG=$ac_pt_PKGCONFIG
40421 fi
40422else
40423 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40424fi
40425
40426 fi
40427
40428 if test "x$PKGCONFIG" != "xno"; then
40429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40430$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40431 itexists=`
40432 if test -n ""; then
40433 PKG_CONFIG_LIBDIR=""
40434 export PKG_CONFIG_LIBDIR
40435 fi
40436 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40437
40438 if test -z "$itexists"; then
40439 PKGCONFIG="no"
40440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40441$as_echo "no" >&6; }
40442 else
40443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40444$as_echo "found" >&6; }
40445 fi
40446 fi
40447
40448 if test "$PKGCONFIG" != "no" ; then
40449 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40450 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40451 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40452 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40453$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40455$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40456 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40457$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40458 else
40459 ares_CPPFLAGS=""
40460 ares_LDFLAGS=""
40461 ares_LIBS="-lcares"
40462 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040463 fi
40464 fi
40465 #
40466 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40467 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40468 LIBS="$ares_LIBS $clean_LIBS"
40469 #
40470 if test "$embedded_ares" != "yes"; then
40471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40472$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40474/* end confdefs.h. */
40475
40476
40477#include <ares.h>
40478 /* set of dummy functions in case c-ares was built with debug */
40479 void curl_dofree() { }
40480 void curl_sclose() { }
40481 void curl_domalloc() { }
40482 void curl_docalloc() { }
40483 void curl_socket() { }
40484
40485int main (void)
40486{
40487
40488 ares_channel channel;
40489 ares_cancel(channel); /* added in 1.2.0 */
40490 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40491 ares_dup(&channel, channel); /* added in 1.6.0 */
40492
40493 ;
40494 return 0;
40495}
40496
40497_ACEOF
40498if ac_fn_c_try_link "$LINENO"; then :
40499
40500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40501$as_echo "yes" >&6; }
40502
40503else
40504
40505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40506$as_echo "no" >&6; }
40507 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40508 CPPFLAGS="$clean_CPPFLAGS"
40509 LDFLAGS="$clean_LDFLAGS"
40510 LIBS="$clean_LIBS"
40511 # prevent usage
40512 want_ares="no"
40513
40514fi
40515rm -f core conftest.err conftest.$ac_objext \
40516 conftest$ac_exeext conftest.$ac_ext
40517 fi
40518 if test "$want_ares" = "yes"; then
40519
40520$as_echo "#define USE_ARES 1" >>confdefs.h
40521
40522 USE_ARES=1
40523
40524 curl_res_msg="c-ares"
40525 fi
40526 fi
40527
40528 if test x$embedded_ares = xyes; then
40529 USE_EMBEDDED_ARES_TRUE=
40530 USE_EMBEDDED_ARES_FALSE='#'
40531else
40532 USE_EMBEDDED_ARES_TRUE='#'
40533 USE_EMBEDDED_ARES_FALSE=
40534fi
40535
40536
40537if test "x$curl_cv_native_windows" != "xyes" &&
40538 test "x$enable_shared" = "xyes"; then
40539 build_libhostname=yes
40540else
40541 build_libhostname=no
40542fi
40543 if test x$build_libhostname = xyes; then
40544 BUILD_LIBHOSTNAME_TRUE=
40545 BUILD_LIBHOSTNAME_FALSE='#'
40546else
40547 BUILD_LIBHOSTNAME_TRUE='#'
40548 BUILD_LIBHOSTNAME_FALSE=
40549fi
40550
40551
40552if test "x$want_ares" != xyes; then
40553
40554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40555$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40556 OPT_THRES="default"
40557 # Check whether --enable-threaded_resolver was given.
40558if test "${enable_threaded_resolver+set}" = set; then :
40559 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40560fi
40561
40562 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040563 no)
40564 want_thres="no"
40565 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040566 *)
40567 want_thres="yes"
40568 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040569 esac
40570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40571$as_echo "$want_thres" >&6; }
40572
40573fi
40574
40575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40576$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40577# Check whether --enable-pthreads was given.
40578if test "${enable_pthreads+set}" = set; then :
40579 enableval=$enable_pthreads; case "$enableval" in
40580 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40581$as_echo "no" >&6; }
40582 want_pthreads=no
40583 ;;
40584 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40585$as_echo "yes" >&6; }
40586 want_pthreads=yes
40587 ;;
40588 esac
40589else
40590
40591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40592$as_echo "auto" >&6; }
40593 want_pthreads=auto
40594
40595
40596fi
40597
40598
40599if test "$want_pthreads" != "no"; then
40600 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40601 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40602 fi
40603 if test "$dontwant_rt" != "no"; then
40604 if test "$want_pthreads" = "yes"; then
40605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40606$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40607 fi
40608 want_pthreads=no
40609 fi
40610fi
40611
40612if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40613 want_pthreads=no
40614fi
40615
40616if test "$want_pthreads" != "no"; then
40617 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40618if test "x$ac_cv_header_pthread_h" = xyes; then :
40619
40620$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40621
40622 save_CFLAGS="$CFLAGS"
40623
40624 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40625if test "x$ac_cv_func_pthread_create" = xyes; then :
40626 USE_THREADS_POSIX=1
40627fi
40628
40629
Elliott Hughesa93fb052018-12-12 14:22:48 -080040630 case $host in
40631 *-hp-hpux*)
40632 USE_THREADS_POSIX=""
40633 ;;
40634 *)
40635 ;;
40636 esac
40637
Elliott Hughes82be86d2017-09-20 17:00:17 -070040638 if test "$USE_THREADS_POSIX" != "1"
40639 then
40640 CFLAGS="$CFLAGS -pthread"
40641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40642$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40643if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40644 $as_echo_n "(cached) " >&6
40645else
40646 ac_check_lib_save_LIBS=$LIBS
40647LIBS="-lpthread $LIBS"
40648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40649/* end confdefs.h. */
40650
40651
40652#ifdef __cplusplus
40653extern "C"
40654#endif
40655char pthread_create ();
40656int main (void)
40657{
40658return pthread_create ();
40659 ;
40660 return 0;
40661}
40662_ACEOF
40663if ac_fn_c_try_link "$LINENO"; then :
40664 ac_cv_lib_pthread_pthread_create=yes
40665else
40666 ac_cv_lib_pthread_pthread_create=no
40667fi
40668rm -f core conftest.err conftest.$ac_objext \
40669 conftest$ac_exeext conftest.$ac_ext
40670LIBS=$ac_check_lib_save_LIBS
40671fi
40672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40673$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40674if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40675 USE_THREADS_POSIX=1
40676else
40677 CFLAGS="$save_CFLAGS"
40678fi
40679
40680 fi
40681
40682 if test "x$USE_THREADS_POSIX" = "x1"
40683 then
40684
40685$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40686
40687 curl_res_msg="POSIX threaded"
40688 fi
40689
40690fi
40691
40692
40693fi
40694
40695if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40696 if test "$want_pthreads" = "yes"; then
40697 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40698 fi
40699 if test "$curl_cv_native_windows" = "yes"; then
40700 USE_THREADS_WIN32=1
40701
40702$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40703
40704 curl_res_msg="Win32 threaded"
40705 else
40706 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40707 fi
40708fi
40709
40710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40711$as_echo_n "checking whether to enable verbose strings... " >&6; }
40712# Check whether --enable-verbose was given.
40713if test "${enable_verbose+set}" = set; then :
40714 enableval=$enable_verbose; case "$enableval" in
40715 no)
40716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40717$as_echo "no" >&6; }
40718
40719$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40720
40721 curl_verbose_msg="no"
40722 ;;
40723 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40724$as_echo "yes" >&6; }
40725 ;;
40726 esac
40727else
40728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40729$as_echo "yes" >&6; }
40730
40731fi
40732
40733
40734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40735$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40736# Check whether --enable-sspi was given.
40737if test "${enable_sspi+set}" = set; then :
40738 enableval=$enable_sspi; case "$enableval" in
40739 yes)
40740 if test "$curl_cv_native_windows" = "yes"; then
40741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40742$as_echo "yes" >&6; }
40743
40744$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40745
40746 USE_WINDOWS_SSPI=1
40747
40748 curl_sspi_msg="enabled"
40749 else
40750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40751$as_echo "no" >&6; }
40752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40753$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40754 fi
40755 ;;
40756 *)
40757 if test "x$WINSSL_ENABLED" = "x1"; then
40758 # --with-winssl implies --enable-sspi
40759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40760$as_echo "yes" >&6; }
40761 else
40762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40763$as_echo "no" >&6; }
40764 fi
40765 ;;
40766 esac
40767else
40768 if test "x$WINSSL_ENABLED" = "x1"; then
40769 # --with-winssl implies --enable-sspi
40770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40771$as_echo "yes" >&6; }
40772 else
40773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40774$as_echo "no" >&6; }
40775 fi
40776
40777fi
40778
40779
40780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40781$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40782# Check whether --enable-crypto-auth was given.
40783if test "${enable_crypto_auth+set}" = set; then :
40784 enableval=$enable_crypto_auth; case "$enableval" in
40785 no)
40786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40787$as_echo "no" >&6; }
40788
40789$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40790
40791 CURL_DISABLE_CRYPTO_AUTH=1
40792 ;;
40793 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40794$as_echo "yes" >&6; }
40795 ;;
40796 esac
40797else
40798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40799$as_echo "yes" >&6; }
40800
40801fi
40802
40803
40804
40805 OPT_NTLM_WB="default"
40806 # Check whether --enable-ntlm-wb was given.
40807if test "${enable_ntlm_wb+set}" = set; then :
40808 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40809fi
40810
40811 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40812 case "$OPT_NTLM_WB" in
40813 no)
40814 want_ntlm_wb="no"
40815 ;;
40816 default)
40817 want_ntlm_wb="yes"
40818 ;;
40819 *)
40820 want_ntlm_wb="yes"
40821 if test -n "$enableval" && test "$enableval" != "yes"; then
40822 want_ntlm_wb_file="$enableval"
40823 fi
40824 ;;
40825 esac
40826
40827
40828
40829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40830$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40831 if test "$curl_cv_native_windows" = "yes" ||
40832 test "x$SSL_ENABLED" = "x"; then
40833 want_ntlm_wb_file=""
40834 want_ntlm_wb="no"
40835 fi
40836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40837$as_echo "$want_ntlm_wb" >&6; }
40838 if test "$want_ntlm_wb" = "yes"; then
40839
40840$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40841
40842
40843cat >>confdefs.h <<_ACEOF
40844#define NTLM_WB_FILE "$want_ntlm_wb_file"
40845_ACEOF
40846
40847 NTLM_WB_ENABLED=1
40848 fi
40849
40850
40851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40852$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40853# Check whether --enable-tls-srp was given.
40854if test "${enable_tls_srp+set}" = set; then :
40855 enableval=$enable_tls_srp; case "$enableval" in
40856 no)
40857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40858$as_echo "no" >&6; }
40859
40860$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40861
40862 want_tls_srp=no
40863 ;;
40864 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40865$as_echo "yes" >&6; }
40866 want_tls_srp=yes
40867 ;;
40868 esac
40869else
40870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40871$as_echo "yes" >&6; }
40872 want_tls_srp=yes
40873
40874fi
40875
40876
40877if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40878
40879$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
40880
40881 USE_TLS_SRP=1
40882 curl_tls_srp_msg="enabled"
40883fi
40884
40885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
40886$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
40887# Check whether --enable-unix-sockets was given.
40888if test "${enable_unix_sockets+set}" = set; then :
40889 enableval=$enable_unix_sockets; case "$enableval" in
40890 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40891$as_echo "no" >&6; }
40892 want_unix_sockets=no
40893 ;;
40894 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40895$as_echo "yes" >&6; }
40896 want_unix_sockets=yes
40897 ;;
40898 esac
40899else
40900
40901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40902$as_echo "auto" >&6; }
40903 want_unix_sockets=auto
40904
40905
40906fi
40907
40908if test "x$want_unix_sockets" != "xno"; then
40909 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
40910 #include <sys/un.h>
40911
40912"
40913if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
40914
40915
40916$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
40917
40918 USE_UNIX_SOCKETS=1
40919
40920 curl_unix_sockets_msg="enabled"
40921
40922else
40923
40924 if test "x$want_unix_sockets" = "xyes"; then
40925 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
40926 fi
40927
40928fi
40929
40930fi
40931
40932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
40933$as_echo_n "checking whether to enable support for cookies... " >&6; }
40934# Check whether --enable-cookies was given.
40935if test "${enable_cookies+set}" = set; then :
40936 enableval=$enable_cookies; case "$enableval" in
40937 no)
40938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40939$as_echo "no" >&6; }
40940
40941$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
40942
40943 ;;
40944 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40945$as_echo "yes" >&6; }
40946 ;;
40947 esac
40948else
40949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40950$as_echo "yes" >&6; }
40951
40952fi
40953
40954
Haibo Huang65021c72019-03-27 15:37:23 -070040955curl_altsvc_msg="no (--enable-alt-svc)";
40956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
40957$as_echo_n "checking whether to support alt-svc... " >&6; }
40958# Check whether --enable-alt-svc was given.
40959if test "${enable_alt_svc+set}" = set; then :
40960 enableval=$enable_alt_svc; case "$enableval" in
40961 no)
40962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40963$as_echo "no" >&6; }
40964 ;;
40965 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40966$as_echo "yes" >&6; }
40967 curl_altsvc_msg="enabled";
40968 enable_altsvc="yes"
40969 experimental="alt-svc"
40970 ;;
40971 esac
40972else
40973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40974$as_echo "no" >&6; }
40975
40976fi
40977
40978
40979if test "$enable_altsvc" = "yes"; then
40980
40981$as_echo "#define USE_ALTSVC 1" >>confdefs.h
40982
40983 experimental="alt-svc"
40984fi
40985
Elliott Hughes82be86d2017-09-20 17:00:17 -070040986
40987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
40988$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
40989 CFLAG_CURL_SYMBOL_HIDING=""
40990 doing_symbol_hiding="no"
40991 if test x"$curl_cv_native_windows" != "xyes" &&
40992 test "$want_symbol_hiding" = "yes" &&
40993 test "$supports_symbol_hiding" = "yes"; then
40994 doing_symbol_hiding="yes"
40995 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
40996
40997cat >>confdefs.h <<_ACEOF
40998#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
40999_ACEOF
41000
41001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41002$as_echo "yes" >&6; }
41003 else
41004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41005$as_echo "no" >&6; }
41006 fi
41007 if test x$doing_symbol_hiding = xyes; then
41008 DOING_CURL_SYMBOL_HIDING_TRUE=
41009 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41010else
41011 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41012 DOING_CURL_SYMBOL_HIDING_FALSE=
41013fi
41014
41015
41016
41017
Elliott Hughes82be86d2017-09-20 17:00:17 -070041018LIBCURL_LIBS=$LIBS
41019
41020
41021
41022
41023
41024BLANK_AT_MAKETIME=
41025
41026
41027 if test x$cross_compiling = xyes; then
41028 CROSSCOMPILING_TRUE=
41029 CROSSCOMPILING_FALSE='#'
41030else
41031 CROSSCOMPILING_TRUE='#'
41032 CROSSCOMPILING_FALSE=
41033fi
41034
41035
41036ENABLE_SHARED="$enable_shared"
41037
41038
41039ENABLE_STATIC="$enable_static"
41040
41041
41042
41043
41044if test "x$OPENSSL_ENABLED" = "x1"; then
41045 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41046elif test -n "$SSL_ENABLED"; then
41047 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41048fi
41049if test "x$IPV6_ENABLED" = "x1"; then
41050 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41051fi
41052if test "x$USE_UNIX_SOCKETS" = "x1"; then
41053 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41054fi
41055if test "x$HAVE_LIBZ" = "x1"; then
41056 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41057fi
Alex Deymo486467e2017-12-19 19:04:07 +010041058if test "x$HAVE_BROTLI" = "x1"; then
41059 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41060fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041061if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41062 -o "x$USE_THREADS_WIN32" = "x1"; then
41063 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41064fi
41065if test "x$IDN_ENABLED" = "x1"; then
41066 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41067fi
41068if test "x$USE_WINDOWS_SSPI" = "x1"; then
41069 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41070fi
41071
41072if test "x$HAVE_GSSAPI" = "x1"; then
41073 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41074fi
41075
Haibo Huang65021c72019-03-27 15:37:23 -070041076if test "x$curl_psl_msg" = "xenabled"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041077 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41078fi
41079
Haibo Huang65021c72019-03-27 15:37:23 -070041080if test "x$enable_altsvc" = "xyes"; then
41081 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
41082fi
41083
Elliott Hughes82be86d2017-09-20 17:00:17 -070041084if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41085 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41086 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41087fi
41088
41089if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41090 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41091 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41092fi
41093
41094if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41095 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41096 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
Haibo Huang65021c72019-03-27 15:37:23 -070041097 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041098 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41099
41100 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41101 "x$NTLM_WB_ENABLED" = "x1"; then
41102 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41103 fi
41104 fi
41105fi
41106
41107if test "x$USE_TLS_SRP" = "x1"; then
41108 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41109fi
41110
41111if test "x$USE_NGHTTP2" = "x1"; then
41112 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41113fi
41114
Alex Deymo486467e2017-12-19 19:04:07 +010041115if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41116 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41117fi
41118
Elliott Hughes82be86d2017-09-20 17:00:17 -070041119if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41120 -o "x$NSS_ENABLED" = "x1"; then
41121 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41122fi
41123
41124
41125
41126if test "x$CURL_DISABLE_HTTP" != "x1"; then
41127 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41128 if test "x$SSL_ENABLED" = "x1"; then
41129 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41130 fi
41131fi
41132if test "x$CURL_DISABLE_FTP" != "x1"; then
41133 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41134 if test "x$SSL_ENABLED" = "x1"; then
41135 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41136 fi
41137fi
41138if test "x$CURL_DISABLE_FILE" != "x1"; then
41139 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41140fi
41141if test "x$CURL_DISABLE_TELNET" != "x1"; then
41142 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41143fi
41144if test "x$CURL_DISABLE_LDAP" != "x1"; then
41145 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41146 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41147 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41148 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41149 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41150 fi
41151 fi
41152fi
41153if test "x$CURL_DISABLE_DICT" != "x1"; then
41154 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41155fi
41156if test "x$CURL_DISABLE_TFTP" != "x1"; then
41157 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41158fi
41159if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41160 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41161fi
41162if test "x$CURL_DISABLE_POP3" != "x1"; then
41163 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41164 if test "x$SSL_ENABLED" = "x1"; then
41165 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41166 fi
41167fi
41168if test "x$CURL_DISABLE_IMAP" != "x1"; then
41169 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41170 if test "x$SSL_ENABLED" = "x1"; then
41171 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41172 fi
41173fi
41174if test "x$CURL_DISABLE_SMB" != "x1" \
41175 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41176 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41177 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
Haibo Huang65021c72019-03-27 15:37:23 -070041178 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \); then
Elliott Hughes82be86d2017-09-20 17:00:17 -070041179 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41180 if test "x$SSL_ENABLED" = "x1"; then
41181 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41182 fi
41183fi
41184if test "x$CURL_DISABLE_SMTP" != "x1"; then
41185 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41186 if test "x$SSL_ENABLED" = "x1"; then
41187 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41188 fi
41189fi
41190if test "x$USE_LIBSSH2" = "x1"; then
41191 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41192 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41193fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041194if test "x$USE_LIBSSH" = "x1"; then
41195 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41196 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41197fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041198if test "x$CURL_DISABLE_RTSP" != "x1"; then
41199 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41200fi
41201if test "x$USE_LIBRTMP" = "x1"; then
41202 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41203fi
41204
41205SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41206
41207
41208
41209
41210squeeze CFLAGS
41211squeeze CPPFLAGS
41212squeeze DEFS
41213squeeze LDFLAGS
41214squeeze LIBS
41215
41216squeeze LIBCURL_LIBS
41217squeeze CURL_NETWORK_LIBS
41218squeeze CURL_NETWORK_AND_TIME_LIBS
41219
41220squeeze SUPPORT_FEATURES
41221squeeze SUPPORT_PROTOCOLS
41222
41223
41224
41225 xc_bad_var_libs=no
41226 for xc_word in $LIBS; do
41227 case "$xc_word" in
41228 -l* | --library=*)
41229 :
41230 ;;
41231 *)
41232 xc_bad_var_libs=yes
41233 ;;
41234 esac
41235 done
41236 if test $xc_bad_var_libs = yes; then
41237 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41238$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41239 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41240$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41241 fi
41242
41243
41244 xc_bad_var_ldflags=no
41245 for xc_word in $LDFLAGS; do
41246 case "$xc_word" in
41247 -D*)
41248 xc_bad_var_ldflags=yes
41249 ;;
41250 -U*)
41251 xc_bad_var_ldflags=yes
41252 ;;
41253 -I*)
41254 xc_bad_var_ldflags=yes
41255 ;;
41256 -l* | --library=*)
41257 xc_bad_var_ldflags=yes
41258 ;;
41259 esac
41260 done
41261 if test $xc_bad_var_ldflags = yes; then
41262 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41263$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41264 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41265 for xc_word in $LDFLAGS; do
41266 case "$xc_word" in
41267 -D*)
41268 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41269$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41270 ;;
41271 -U*)
41272 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41273$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41274 ;;
41275 -I*)
41276 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41277$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41278 ;;
41279 -l* | --library=*)
41280 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41281$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41282 ;;
41283 esac
41284 done
41285 fi
41286
41287
41288 xc_bad_var_cppflags=no
41289 for xc_word in $CPPFLAGS; do
41290 case "$xc_word" in
41291 -rpath*)
41292 xc_bad_var_cppflags=yes
41293 ;;
41294 -L* | --library-path=*)
41295 xc_bad_var_cppflags=yes
41296 ;;
41297 -l* | --library=*)
41298 xc_bad_var_cppflags=yes
41299 ;;
41300 esac
41301 done
41302 if test $xc_bad_var_cppflags = yes; then
41303 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41304$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41305 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41306 for xc_word in $CPPFLAGS; do
41307 case "$xc_word" in
41308 -rpath*)
41309 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41310$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41311 ;;
41312 -L* | --library-path=*)
41313 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41314$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41315 ;;
41316 -l* | --library=*)
41317 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41318$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41319 ;;
41320 esac
41321 done
41322 fi
41323
41324
41325 xc_bad_var_cflags=no
41326 for xc_word in $CFLAGS; do
41327 case "$xc_word" in
41328 -D*)
41329 xc_bad_var_cflags=yes
41330 ;;
41331 -U*)
41332 xc_bad_var_cflags=yes
41333 ;;
41334 -I*)
41335 xc_bad_var_cflags=yes
41336 ;;
41337 -rpath*)
41338 xc_bad_var_cflags=yes
41339 ;;
41340 -L* | --library-path=*)
41341 xc_bad_var_cflags=yes
41342 ;;
41343 -l* | --library=*)
41344 xc_bad_var_cflags=yes
41345 ;;
41346 esac
41347 done
41348 if test $xc_bad_var_cflags = yes; then
41349 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41350$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41351 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41352 for xc_word in $CFLAGS; do
41353 case "$xc_word" in
41354 -D*)
41355 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41356$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41357 ;;
41358 -U*)
41359 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41360$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41361 ;;
41362 -I*)
41363 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41364$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41365 ;;
41366 -rpath*)
41367 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41368$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41369 ;;
41370 -L* | --library-path=*)
41371 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41372$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41373 ;;
41374 -l* | --library=*)
41375 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41376$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41377 ;;
41378 esac
41379 done
41380 fi
41381
41382 if test $xc_bad_var_libs = yes ||
41383 test $xc_bad_var_cflags = yes ||
41384 test $xc_bad_var_ldflags = yes ||
41385 test $xc_bad_var_cppflags = yes; then
41386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41387$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41388 fi
41389
41390
Elliott Hughes0128fe42018-02-27 14:57:55 -080041391SSL_BACKENDS=${ssl_backends}
41392
41393
Elliott Hughes82be86d2017-09-20 17:00:17 -070041394if test "x$want_curldebug_assumed" = "xyes" &&
41395 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41396 ac_configure_args="$ac_configure_args --enable-curldebug"
41397fi
41398
Haibo Huang21926d52019-01-08 14:27:10 -080041399ac_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 -070041400
41401cat >confcache <<\_ACEOF
41402# This file is a shell script that caches the results of configure
41403# tests run on this system so they can be shared between configure
41404# scripts and configure runs, see configure's option --config-cache.
41405# It is not useful on other systems. If it contains results you don't
41406# want to keep, you may remove or edit it.
41407#
41408# config.status only pays attention to the cache file if you give it
41409# the --recheck option to rerun configure.
41410#
41411# `ac_cv_env_foo' variables (set or unset) will be overridden when
41412# loading this file, other *unset* `ac_cv_foo' will be assigned the
41413# following values.
41414
41415_ACEOF
41416
41417# The following way of writing the cache mishandles newlines in values,
41418# but we know of no workaround that is simple, portable, and efficient.
41419# So, we kill variables containing newlines.
41420# Ultrix sh set writes to stderr and can't be redirected directly,
41421# and sets the high bit in the cache file unless we assign to the vars.
41422(
41423 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41424 eval ac_val=\$$ac_var
41425 case $ac_val in #(
41426 *${as_nl}*)
41427 case $ac_var in #(
41428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41429$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41430 esac
41431 case $ac_var in #(
41432 _ | IFS | as_nl) ;; #(
41433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41434 *) { eval $ac_var=; unset $ac_var;} ;;
41435 esac ;;
41436 esac
41437 done
41438
41439 (set) 2>&1 |
41440 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41441 *${as_nl}ac_space=\ *)
41442 # `set' does not quote correctly, so add quotes: double-quote
41443 # substitution turns \\\\ into \\, and sed turns \\ into \.
41444 sed -n \
41445 "s/'/'\\\\''/g;
41446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41447 ;; #(
41448 *)
41449 # `set' quotes correctly as required by POSIX, so do not add quotes.
41450 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41451 ;;
41452 esac |
41453 sort
41454) |
41455 sed '
41456 /^ac_cv_env_/b end
41457 t clear
41458 :clear
41459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41460 t end
41461 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41462 :end' >>confcache
41463if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41464 if test -w "$cache_file"; then
41465 if test "x$cache_file" != "x/dev/null"; then
41466 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41467$as_echo "$as_me: updating cache $cache_file" >&6;}
41468 if test ! -f "$cache_file" || test -h "$cache_file"; then
41469 cat confcache >"$cache_file"
41470 else
41471 case $cache_file in #(
41472 */* | ?:*)
41473 mv -f confcache "$cache_file"$$ &&
41474 mv -f "$cache_file"$$ "$cache_file" ;; #(
41475 *)
41476 mv -f confcache "$cache_file" ;;
41477 esac
41478 fi
41479 fi
41480 else
41481 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41482$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41483 fi
41484fi
41485rm -f confcache
41486
41487test "x$prefix" = xNONE && prefix=$ac_default_prefix
41488# Let make expand exec_prefix.
41489test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41490
41491DEFS=-DHAVE_CONFIG_H
41492
41493ac_libobjs=
41494ac_ltlibobjs=
41495U=
41496for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41497 # 1. Remove the extension, and $U if already installed.
41498 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41499 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41500 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41501 # will be set to the directory where LIBOBJS objects are built.
41502 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41503 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41504done
41505LIBOBJS=$ac_libobjs
41506
41507LTLIBOBJS=$ac_ltlibobjs
41508
41509
41510if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41511 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41512Usually this means the macro was only invoked conditionally." "$LINENO" 5
41513fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41515$as_echo_n "checking that generated files are newer than configure... " >&6; }
41516 if test -n "$am_sleep_pid"; then
41517 # Hide warnings about reused PIDs.
41518 wait $am_sleep_pid 2>/dev/null
41519 fi
41520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41521$as_echo "done" >&6; }
41522if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41523 as_fn_error $? "conditional \"AMDEP\" was never defined.
41524Usually this means the macro was only invoked conditionally." "$LINENO" 5
41525fi
41526if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41527 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41528Usually this means the macro was only invoked conditionally." "$LINENO" 5
41529fi
41530 if test -n "$EXEEXT"; then
41531 am__EXEEXT_TRUE=
41532 am__EXEEXT_FALSE='#'
41533else
41534 am__EXEEXT_TRUE='#'
41535 am__EXEEXT_FALSE=
41536fi
41537
41538if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41539 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41540Usually this means the macro was only invoked conditionally." "$LINENO" 5
41541fi
41542if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41543 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41544Usually this means the macro was only invoked conditionally." "$LINENO" 5
41545fi
41546if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41547 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41548Usually this means the macro was only invoked conditionally." "$LINENO" 5
41549fi
41550if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41551 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41552Usually this means the macro was only invoked conditionally." "$LINENO" 5
41553fi
41554if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41555 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41556Usually this means the macro was only invoked conditionally." "$LINENO" 5
41557fi
41558if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41559 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41560Usually this means the macro was only invoked conditionally." "$LINENO" 5
41561fi
41562if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41563 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41564Usually this means the macro was only invoked conditionally." "$LINENO" 5
41565fi
41566if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41567 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41568Usually this means the macro was only invoked conditionally." "$LINENO" 5
41569fi
41570if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41571 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41572Usually this means the macro was only invoked conditionally." "$LINENO" 5
41573fi
Alex Deymo486467e2017-12-19 19:04:07 +010041574if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41575 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41576Usually this means the macro was only invoked conditionally." "$LINENO" 5
41577fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041578if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41579 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41580Usually this means the macro was only invoked conditionally." "$LINENO" 5
41581fi
41582if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41583 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41584Usually this means the macro was only invoked conditionally." "$LINENO" 5
41585fi
41586if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41587 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41588Usually this means the macro was only invoked conditionally." "$LINENO" 5
41589fi
41590if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41591 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41592Usually this means the macro was only invoked conditionally." "$LINENO" 5
41593fi
41594if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41595 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41596Usually this means the macro was only invoked conditionally." "$LINENO" 5
41597fi
41598if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41599 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41600Usually this means the macro was only invoked conditionally." "$LINENO" 5
41601fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041602if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41603 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41604Usually this means the macro was only invoked conditionally." "$LINENO" 5
41605fi
41606
41607: "${CONFIG_STATUS=./config.status}"
41608ac_write_fail=0
41609ac_clean_files_save=$ac_clean_files
41610ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41611{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41612$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41613as_write_fail=0
41614cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41615#! $SHELL
41616# Generated by $as_me.
41617# Run this file to recreate the current configuration.
41618# Compiler output produced by configure, useful for debugging
41619# configure, is in config.log if it exists.
41620
41621debug=false
41622ac_cs_recheck=false
41623ac_cs_silent=false
41624
41625SHELL=\${CONFIG_SHELL-$SHELL}
41626export SHELL
41627_ASEOF
41628cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41629## -------------------- ##
41630## M4sh Initialization. ##
41631## -------------------- ##
41632
41633# Be more Bourne compatible
41634DUALCASE=1; export DUALCASE # for MKS sh
41635if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41636 emulate sh
41637 NULLCMD=:
41638 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41639 # is contrary to our usage. Disable this feature.
41640 alias -g '${1+"$@"}'='"$@"'
41641 setopt NO_GLOB_SUBST
41642else
41643 case `(set -o) 2>/dev/null` in #(
41644 *posix*) :
41645 set -o posix ;; #(
41646 *) :
41647 ;;
41648esac
41649fi
41650
41651
41652as_nl='
41653'
41654export as_nl
41655# Printing a long string crashes Solaris 7 /usr/bin/printf.
41656as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41657as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41658as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41659# Prefer a ksh shell builtin over an external printf program on Solaris,
41660# but without wasting forks for bash or zsh.
41661if test -z "$BASH_VERSION$ZSH_VERSION" \
41662 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41663 as_echo='print -r --'
41664 as_echo_n='print -rn --'
41665elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41666 as_echo='printf %s\n'
41667 as_echo_n='printf %s'
41668else
41669 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41670 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41671 as_echo_n='/usr/ucb/echo -n'
41672 else
41673 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41674 as_echo_n_body='eval
41675 arg=$1;
41676 case $arg in #(
41677 *"$as_nl"*)
41678 expr "X$arg" : "X\\(.*\\)$as_nl";
41679 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41680 esac;
41681 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41682 '
41683 export as_echo_n_body
41684 as_echo_n='sh -c $as_echo_n_body as_echo'
41685 fi
41686 export as_echo_body
41687 as_echo='sh -c $as_echo_body as_echo'
41688fi
41689
41690
41691
41692# IFS
41693# We need space, tab and new line, in precisely that order. Quoting is
41694# there to prevent editors from complaining about space-tab.
41695# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41696# splitting by setting IFS to empty value.)
41697IFS=" "" $as_nl"
41698
41699# Find who we are. Look in the path if we contain no directory separator.
41700as_myself=
41701case $0 in #((
41702 *[\\/]* ) as_myself=$0 ;;
41703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41704for as_dir in $PATH
41705do
41706 IFS=$as_save_IFS
41707 test -z "$as_dir" && as_dir=.
41708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41709 done
41710IFS=$as_save_IFS
41711
41712 ;;
41713esac
41714# We did not find ourselves, most probably we were run as `sh COMMAND'
41715# in which case we are not to be found in the path.
41716if test "x$as_myself" = x; then
41717 as_myself=$0
41718fi
41719if test ! -f "$as_myself"; then
41720 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41721 exit 1
41722fi
41723
41724# Unset variables that we do not need and which cause bugs (e.g. in
41725# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41726# suppresses any "Segmentation fault" message there. '((' could
41727# trigger a bug in pdksh 5.2.14.
41728for as_var in BASH_ENV ENV MAIL MAILPATH
41729do eval test x\${$as_var+set} = xset \
41730 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41731done
41732PS1='$ '
41733PS2='> '
41734PS4='+ '
41735
41736# NLS nuisances.
41737LC_ALL=C
41738export LC_ALL
41739LANGUAGE=C
41740export LANGUAGE
41741
41742# CDPATH.
41743(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41744
41745
41746# as_fn_error STATUS ERROR [LINENO LOG_FD]
41747# ----------------------------------------
41748# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41749# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41750# script with STATUS, using 1 if that was 0.
41751as_fn_error ()
41752{
41753 as_status=$1; test $as_status -eq 0 && as_status=1
41754 if test "$4"; then
41755 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41756 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41757 fi
41758 $as_echo "$as_me: error: $2" >&2
41759 as_fn_exit $as_status
41760} # as_fn_error
41761
41762
41763# as_fn_set_status STATUS
41764# -----------------------
41765# Set $? to STATUS, without forking.
41766as_fn_set_status ()
41767{
41768 return $1
41769} # as_fn_set_status
41770
41771# as_fn_exit STATUS
41772# -----------------
41773# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41774as_fn_exit ()
41775{
41776 set +e
41777 as_fn_set_status $1
41778 exit $1
41779} # as_fn_exit
41780
41781# as_fn_unset VAR
41782# ---------------
41783# Portably unset VAR.
41784as_fn_unset ()
41785{
41786 { eval $1=; unset $1;}
41787}
41788as_unset=as_fn_unset
41789# as_fn_append VAR VALUE
41790# ----------------------
41791# Append the text in VALUE to the end of the definition contained in VAR. Take
41792# advantage of any shell optimizations that allow amortized linear growth over
41793# repeated appends, instead of the typical quadratic growth present in naive
41794# implementations.
41795if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41796 eval 'as_fn_append ()
41797 {
41798 eval $1+=\$2
41799 }'
41800else
41801 as_fn_append ()
41802 {
41803 eval $1=\$$1\$2
41804 }
41805fi # as_fn_append
41806
41807# as_fn_arith ARG...
41808# ------------------
41809# Perform arithmetic evaluation on the ARGs, and store the result in the
41810# global $as_val. Take advantage of shells that can avoid forks. The arguments
41811# must be portable across $(()) and expr.
41812if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41813 eval 'as_fn_arith ()
41814 {
41815 as_val=$(( $* ))
41816 }'
41817else
41818 as_fn_arith ()
41819 {
41820 as_val=`expr "$@" || test $? -eq 1`
41821 }
41822fi # as_fn_arith
41823
41824
41825if expr a : '\(a\)' >/dev/null 2>&1 &&
41826 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41827 as_expr=expr
41828else
41829 as_expr=false
41830fi
41831
41832if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41833 as_basename=basename
41834else
41835 as_basename=false
41836fi
41837
41838if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41839 as_dirname=dirname
41840else
41841 as_dirname=false
41842fi
41843
41844as_me=`$as_basename -- "$0" ||
41845$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41846 X"$0" : 'X\(//\)$' \| \
41847 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41848$as_echo X/"$0" |
41849 sed '/^.*\/\([^/][^/]*\)\/*$/{
41850 s//\1/
41851 q
41852 }
41853 /^X\/\(\/\/\)$/{
41854 s//\1/
41855 q
41856 }
41857 /^X\/\(\/\).*/{
41858 s//\1/
41859 q
41860 }
41861 s/.*/./; q'`
41862
41863# Avoid depending upon Character Ranges.
41864as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41865as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41866as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41867as_cr_digits='0123456789'
41868as_cr_alnum=$as_cr_Letters$as_cr_digits
41869
41870ECHO_C= ECHO_N= ECHO_T=
41871case `echo -n x` in #(((((
41872-n*)
41873 case `echo 'xy\c'` in
41874 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41875 xy) ECHO_C='\c';;
41876 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41877 ECHO_T=' ';;
41878 esac;;
41879*)
41880 ECHO_N='-n';;
41881esac
41882
41883rm -f conf$$ conf$$.exe conf$$.file
41884if test -d conf$$.dir; then
41885 rm -f conf$$.dir/conf$$.file
41886else
41887 rm -f conf$$.dir
41888 mkdir conf$$.dir 2>/dev/null
41889fi
41890if (echo >conf$$.file) 2>/dev/null; then
41891 if ln -s conf$$.file conf$$ 2>/dev/null; then
41892 as_ln_s='ln -s'
41893 # ... but there are two gotchas:
41894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41896 # In both cases, we have to default to `cp -pR'.
41897 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41898 as_ln_s='cp -pR'
41899 elif ln conf$$.file conf$$ 2>/dev/null; then
41900 as_ln_s=ln
41901 else
41902 as_ln_s='cp -pR'
41903 fi
41904else
41905 as_ln_s='cp -pR'
41906fi
41907rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41908rmdir conf$$.dir 2>/dev/null
41909
41910
41911# as_fn_mkdir_p
41912# -------------
41913# Create "$as_dir" as a directory, including parents if necessary.
41914as_fn_mkdir_p ()
41915{
41916
41917 case $as_dir in #(
41918 -*) as_dir=./$as_dir;;
41919 esac
41920 test -d "$as_dir" || eval $as_mkdir_p || {
41921 as_dirs=
41922 while :; do
41923 case $as_dir in #(
41924 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41925 *) as_qdir=$as_dir;;
41926 esac
41927 as_dirs="'$as_qdir' $as_dirs"
41928 as_dir=`$as_dirname -- "$as_dir" ||
41929$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41930 X"$as_dir" : 'X\(//\)[^/]' \| \
41931 X"$as_dir" : 'X\(//\)$' \| \
41932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41933$as_echo X"$as_dir" |
41934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41935 s//\1/
41936 q
41937 }
41938 /^X\(\/\/\)[^/].*/{
41939 s//\1/
41940 q
41941 }
41942 /^X\(\/\/\)$/{
41943 s//\1/
41944 q
41945 }
41946 /^X\(\/\).*/{
41947 s//\1/
41948 q
41949 }
41950 s/.*/./; q'`
41951 test -d "$as_dir" && break
41952 done
41953 test -z "$as_dirs" || eval "mkdir $as_dirs"
41954 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
41955
41956
41957} # as_fn_mkdir_p
41958if mkdir -p . 2>/dev/null; then
41959 as_mkdir_p='mkdir -p "$as_dir"'
41960else
41961 test -d ./-p && rmdir ./-p
41962 as_mkdir_p=false
41963fi
41964
41965
41966# as_fn_executable_p FILE
41967# -----------------------
41968# Test if FILE is an executable regular file.
41969as_fn_executable_p ()
41970{
41971 test -f "$1" && test -x "$1"
41972} # as_fn_executable_p
41973as_test_x='test -x'
41974as_executable_p=as_fn_executable_p
41975
41976# Sed expression to map a string onto a valid CPP name.
41977as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41978
41979# Sed expression to map a string onto a valid variable name.
41980as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41981
41982
41983exec 6>&1
41984## ----------------------------------- ##
41985## Main body of $CONFIG_STATUS script. ##
41986## ----------------------------------- ##
41987_ASEOF
41988test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
41989
41990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41991# Save the log message, to keep $0 and so on meaningful, and to
41992# report actual input values of CONFIG_FILES etc. instead of their
41993# values after options handling.
41994ac_log="
41995This file was extended by curl $as_me -, which was
41996generated by GNU Autoconf 2.69. Invocation command line was
41997
41998 CONFIG_FILES = $CONFIG_FILES
41999 CONFIG_HEADERS = $CONFIG_HEADERS
42000 CONFIG_LINKS = $CONFIG_LINKS
42001 CONFIG_COMMANDS = $CONFIG_COMMANDS
42002 $ $0 $@
42003
42004on `(hostname || uname -n) 2>/dev/null | sed 1q`
42005"
42006
42007_ACEOF
42008
42009case $ac_config_files in *"
42010"*) set x $ac_config_files; shift; ac_config_files=$*;;
42011esac
42012
42013case $ac_config_headers in *"
42014"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42015esac
42016
42017
42018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42019# Files that config.status was made for.
42020config_files="$ac_config_files"
42021config_headers="$ac_config_headers"
42022config_commands="$ac_config_commands"
42023
42024_ACEOF
42025
42026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42027ac_cs_usage="\
42028\`$as_me' instantiates files and other configuration actions
42029from templates according to the current configuration. Unless the files
42030and actions are specified as TAGs, all are instantiated by default.
42031
42032Usage: $0 [OPTION]... [TAG]...
42033
42034 -h, --help print this help, then exit
42035 -V, --version print version number and configuration settings, then exit
42036 --config print configuration, then exit
42037 -q, --quiet, --silent
42038 do not print progress messages
42039 -d, --debug don't remove temporary files
42040 --recheck update $as_me by reconfiguring in the same conditions
42041 --file=FILE[:TEMPLATE]
42042 instantiate the configuration file FILE
42043 --header=FILE[:TEMPLATE]
42044 instantiate the configuration header FILE
42045
42046Configuration files:
42047$config_files
42048
42049Configuration headers:
42050$config_headers
42051
42052Configuration commands:
42053$config_commands
42054
42055Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42056
42057_ACEOF
42058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42059ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42060ac_cs_version="\\
42061curl config.status -
42062configured by $0, generated by GNU Autoconf 2.69,
42063 with options \\"\$ac_cs_config\\"
42064
42065Copyright (C) 2012 Free Software Foundation, Inc.
42066This config.status script is free software; the Free Software Foundation
42067gives unlimited permission to copy, distribute and modify it."
42068
42069ac_pwd='$ac_pwd'
42070srcdir='$srcdir'
42071INSTALL='$INSTALL'
42072MKDIR_P='$MKDIR_P'
42073AWK='$AWK'
42074test -n "\$AWK" || AWK=awk
42075_ACEOF
42076
42077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42078# The default lists apply if the user does not specify any file.
42079ac_need_defaults=:
42080while test $# != 0
42081do
42082 case $1 in
42083 --*=?*)
42084 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42085 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42086 ac_shift=:
42087 ;;
42088 --*=)
42089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42090 ac_optarg=
42091 ac_shift=:
42092 ;;
42093 *)
42094 ac_option=$1
42095 ac_optarg=$2
42096 ac_shift=shift
42097 ;;
42098 esac
42099
42100 case $ac_option in
42101 # Handling of the options.
42102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42103 ac_cs_recheck=: ;;
42104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42105 $as_echo "$ac_cs_version"; exit ;;
42106 --config | --confi | --conf | --con | --co | --c )
42107 $as_echo "$ac_cs_config"; exit ;;
42108 --debug | --debu | --deb | --de | --d | -d )
42109 debug=: ;;
42110 --file | --fil | --fi | --f )
42111 $ac_shift
42112 case $ac_optarg in
42113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42114 '') as_fn_error $? "missing file argument" ;;
42115 esac
42116 as_fn_append CONFIG_FILES " '$ac_optarg'"
42117 ac_need_defaults=false;;
42118 --header | --heade | --head | --hea )
42119 $ac_shift
42120 case $ac_optarg in
42121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42122 esac
42123 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42124 ac_need_defaults=false;;
42125 --he | --h)
42126 # Conflict between --help and --header
42127 as_fn_error $? "ambiguous option: \`$1'
42128Try \`$0 --help' for more information.";;
42129 --help | --hel | -h )
42130 $as_echo "$ac_cs_usage"; exit ;;
42131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42133 ac_cs_silent=: ;;
42134
42135 # This is an error.
42136 -*) as_fn_error $? "unrecognized option: \`$1'
42137Try \`$0 --help' for more information." ;;
42138
42139 *) as_fn_append ac_config_targets " $1"
42140 ac_need_defaults=false ;;
42141
42142 esac
42143 shift
42144done
42145
42146ac_configure_extra_args=
42147
42148if $ac_cs_silent; then
42149 exec 6>/dev/null
42150 ac_configure_extra_args="$ac_configure_extra_args --silent"
42151fi
42152
42153_ACEOF
42154cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42155if \$ac_cs_recheck; then
42156 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42157 shift
42158 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42159 CONFIG_SHELL='$SHELL'
42160 export CONFIG_SHELL
42161 exec "\$@"
42162fi
42163
42164_ACEOF
42165cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42166exec 5>>config.log
42167{
42168 echo
42169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42170## Running $as_me. ##
42171_ASBOX
42172 $as_echo "$ac_log"
42173} >&5
42174
42175_ACEOF
42176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42177#
42178# INIT-COMMANDS
42179#
42180AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42181
42182
42183# The HP-UX ksh and POSIX shell print the target directory to stdout
42184# if CDPATH is set.
42185(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42186
42187sed_quote_subst='$sed_quote_subst'
42188double_quote_subst='$double_quote_subst'
42189delay_variable_subst='$delay_variable_subst'
42190macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42191macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42192AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42193DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42194OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42195enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42196enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42197pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42198enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42199shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42200SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42201ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42202PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42203host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42204host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42205host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42206build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42207build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42208build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42209SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42210Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42211GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42212EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42213FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42214LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42215NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42216LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42217max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42218ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42219exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42220lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42221lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42222lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42223lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42224lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42225reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42226reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42227deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42228file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42229file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42230want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42231sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42232AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42233AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42234archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42235STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42236RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42237old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42238old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42239old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42240lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42241CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42242CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42243compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42244GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42245lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42246lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42247lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42248lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42249lt_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"`'
42250lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42251nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42252lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42253lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42254objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42255MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42256lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42257lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42258lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42259lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42260lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42261need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42262MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42263DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42264NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42265LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42266OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42267OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42268libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42269shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42270extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42271archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42272enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42273export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42274whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42275compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42276old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42277old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42278archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42279archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42280module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42281module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42282with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42283allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42284no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42285hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42286hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42287hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42288hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42289hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42290hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42291hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42292inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42293link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42294always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42295export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42296exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42297include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42298prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42299postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42300file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42301variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42302need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42303need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42304version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42305runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42306shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42307shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42308libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42309library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42310soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42311install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42312postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42313postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42314finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42315finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42316hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42317sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42318configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42319configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42320hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42321enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42322enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42323enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42324old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42325striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42326
42327LTCC='$LTCC'
42328LTCFLAGS='$LTCFLAGS'
42329compiler='$compiler_DEFAULT'
42330
42331# A function that is used when there is no print builtin or printf.
42332func_fallback_echo ()
42333{
42334 eval 'cat <<_LTECHO_EOF
42335\$1
42336_LTECHO_EOF'
42337}
42338
42339# Quote evaled strings.
42340for var in AS \
42341DLLTOOL \
42342OBJDUMP \
42343SHELL \
42344ECHO \
42345PATH_SEPARATOR \
42346SED \
42347GREP \
42348EGREP \
42349FGREP \
42350LD \
42351NM \
42352LN_S \
42353lt_SP2NL \
42354lt_NL2SP \
42355reload_flag \
42356deplibs_check_method \
42357file_magic_cmd \
42358file_magic_glob \
42359want_nocaseglob \
42360sharedlib_from_linklib_cmd \
42361AR \
42362AR_FLAGS \
42363archiver_list_spec \
42364STRIP \
42365RANLIB \
42366CC \
42367CFLAGS \
42368compiler \
42369lt_cv_sys_global_symbol_pipe \
42370lt_cv_sys_global_symbol_to_cdecl \
42371lt_cv_sys_global_symbol_to_import \
42372lt_cv_sys_global_symbol_to_c_name_address \
42373lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42374lt_cv_nm_interface \
42375nm_file_list_spec \
42376lt_cv_truncate_bin \
42377lt_prog_compiler_no_builtin_flag \
42378lt_prog_compiler_pic \
42379lt_prog_compiler_wl \
42380lt_prog_compiler_static \
42381lt_cv_prog_compiler_c_o \
42382need_locks \
42383MANIFEST_TOOL \
42384DSYMUTIL \
42385NMEDIT \
42386LIPO \
42387OTOOL \
42388OTOOL64 \
42389shrext_cmds \
42390export_dynamic_flag_spec \
42391whole_archive_flag_spec \
42392compiler_needs_object \
42393with_gnu_ld \
42394allow_undefined_flag \
42395no_undefined_flag \
42396hardcode_libdir_flag_spec \
42397hardcode_libdir_separator \
42398exclude_expsyms \
42399include_expsyms \
42400file_list_spec \
42401variables_saved_for_relink \
42402libname_spec \
42403library_names_spec \
42404soname_spec \
42405install_override_mode \
42406finish_eval \
42407old_striplib \
42408striplib; do
42409 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42410 *[\\\\\\\`\\"\\\$]*)
42411 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42412 ;;
42413 *)
42414 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42415 ;;
42416 esac
42417done
42418
42419# Double-quote double-evaled strings.
42420for var in reload_cmds \
42421old_postinstall_cmds \
42422old_postuninstall_cmds \
42423old_archive_cmds \
42424extract_expsyms_cmds \
42425old_archive_from_new_cmds \
42426old_archive_from_expsyms_cmds \
42427archive_cmds \
42428archive_expsym_cmds \
42429module_cmds \
42430module_expsym_cmds \
42431export_symbols_cmds \
42432prelink_cmds \
42433postlink_cmds \
42434postinstall_cmds \
42435postuninstall_cmds \
42436finish_cmds \
42437sys_lib_search_path_spec \
42438configure_time_dlsearch_path \
42439configure_time_lt_sys_library_path; do
42440 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42441 *[\\\\\\\`\\"\\\$]*)
42442 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42443 ;;
42444 *)
42445 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42446 ;;
42447 esac
42448done
42449
42450ac_aux_dir='$ac_aux_dir'
42451
42452# See if we are running on zsh, and set the options that allow our
42453# commands through without removal of \ escapes INIT.
42454if test -n "\${ZSH_VERSION+set}"; then
42455 setopt NO_GLOB_SUBST
42456fi
42457
42458
42459 PACKAGE='$PACKAGE'
42460 VERSION='$VERSION'
42461 RM='$RM'
42462 ofile='$ofile'
42463
42464
42465
42466
42467_ACEOF
42468
42469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42470
42471# Handling of arguments.
42472for ac_config_target in $ac_config_targets
42473do
42474 case $ac_config_target in
42475 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42476 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42477 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42478 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42479 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42480 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42481 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42482 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42483 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42484 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42485 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42486 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42487 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42488 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42489 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42490 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42491 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42492 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42493 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42494 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42495 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42496 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042497 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042498 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042499 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42500 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42501
42502 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42503 esac
42504done
42505
42506
42507# If the user did not use the arguments to specify the items to instantiate,
42508# then the envvar interface is used. Set only those that are not.
42509# We use the long form for the default assignment because of an extremely
42510# bizarre bug on SunOS 4.1.3.
42511if $ac_need_defaults; then
42512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42513 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42514 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42515fi
42516
42517# Have a temporary directory for convenience. Make it in the build tree
42518# simply because there is no reason against having it here, and in addition,
42519# creating and moving files from /tmp can sometimes cause problems.
42520# Hook for its removal unless debugging.
42521# Note that there is a small window in which the directory will not be cleaned:
42522# after its creation but before its name has been assigned to `$tmp'.
42523$debug ||
42524{
42525 tmp= ac_tmp=
42526 trap 'exit_status=$?
42527 : "${ac_tmp:=$tmp}"
42528 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42529' 0
42530 trap 'as_fn_exit 1' 1 2 13 15
42531}
42532# Create a (secure) tmp directory for tmp files.
42533
42534{
42535 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42536 test -d "$tmp"
42537} ||
42538{
42539 tmp=./conf$$-$RANDOM
42540 (umask 077 && mkdir "$tmp")
42541} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42542ac_tmp=$tmp
42543
42544# Set up the scripts for CONFIG_FILES section.
42545# No need to generate them if there are no CONFIG_FILES.
42546# This happens for instance with `./config.status config.h'.
42547if test -n "$CONFIG_FILES"; then
42548
42549
42550ac_cr=`echo X | tr X '\015'`
42551# On cygwin, bash can eat \r inside `` if the user requested igncr.
42552# But we know of no other shell where ac_cr would be empty at this
42553# point, so we can use a bashism as a fallback.
42554if test "x$ac_cr" = x; then
42555 eval ac_cr=\$\'\\r\'
42556fi
42557ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42558if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42559 ac_cs_awk_cr='\\r'
42560else
42561 ac_cs_awk_cr=$ac_cr
42562fi
42563
42564echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42565_ACEOF
42566
42567
42568{
42569 echo "cat >conf$$subs.awk <<_ACEOF" &&
42570 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42571 echo "_ACEOF"
42572} >conf$$subs.sh ||
42573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42574ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42575ac_delim='%!_!# '
42576for ac_last_try in false false false false false :; do
42577 . ./conf$$subs.sh ||
42578 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42579
42580 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42581 if test $ac_delim_n = $ac_delim_num; then
42582 break
42583 elif $ac_last_try; then
42584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42585 else
42586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42587 fi
42588done
42589rm -f conf$$subs.sh
42590
42591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42592cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42593_ACEOF
42594sed -n '
42595h
42596s/^/S["/; s/!.*/"]=/
42597p
42598g
42599s/^[^!]*!//
42600:repl
42601t repl
42602s/'"$ac_delim"'$//
42603t delim
42604:nl
42605h
42606s/\(.\{148\}\)..*/\1/
42607t more1
42608s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42609p
42610n
42611b repl
42612:more1
42613s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42614p
42615g
42616s/.\{148\}//
42617t nl
42618:delim
42619h
42620s/\(.\{148\}\)..*/\1/
42621t more2
42622s/["\\]/\\&/g; s/^/"/; s/$/"/
42623p
42624b
42625:more2
42626s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42627p
42628g
42629s/.\{148\}//
42630t delim
42631' <conf$$subs.awk | sed '
42632/^[^""]/{
42633 N
42634 s/\n//
42635}
42636' >>$CONFIG_STATUS || ac_write_fail=1
42637rm -f conf$$subs.awk
42638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42639_ACAWK
42640cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42641 for (key in S) S_is_set[key] = 1
42642 FS = ""
42643
42644}
42645{
42646 line = $ 0
42647 nfields = split(line, field, "@")
42648 substed = 0
42649 len = length(field[1])
42650 for (i = 2; i < nfields; i++) {
42651 key = field[i]
42652 keylen = length(key)
42653 if (S_is_set[key]) {
42654 value = S[key]
42655 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42656 len += length(value) + length(field[++i])
42657 substed = 1
42658 } else
42659 len += 1 + keylen
42660 }
42661
42662 print line
42663}
42664
42665_ACAWK
42666_ACEOF
42667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42668if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42669 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42670else
42671 cat
42672fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42673 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42674_ACEOF
42675
42676# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42677# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42678# trailing colons and then remove the whole line if VPATH becomes empty
42679# (actually we leave an empty line to preserve line numbers).
42680if test "x$srcdir" = x.; then
42681 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42682h
42683s///
42684s/^/:/
42685s/[ ]*$/:/
42686s/:\$(srcdir):/:/g
42687s/:\${srcdir}:/:/g
42688s/:@srcdir@:/:/g
42689s/^:*//
42690s/:*$//
42691x
42692s/\(=[ ]*\).*/\1/
42693G
42694s/\n//
42695s/^[^=]*=[ ]*$//
42696}'
42697fi
42698
42699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42700fi # test -n "$CONFIG_FILES"
42701
42702# Set up the scripts for CONFIG_HEADERS section.
42703# No need to generate them if there are no CONFIG_HEADERS.
42704# This happens for instance with `./config.status Makefile'.
42705if test -n "$CONFIG_HEADERS"; then
42706cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42707BEGIN {
42708_ACEOF
42709
42710# Transform confdefs.h into an awk script `defines.awk', embedded as
42711# here-document in config.status, that substitutes the proper values into
42712# config.h.in to produce config.h.
42713
42714# Create a delimiter string that does not exist in confdefs.h, to ease
42715# handling of long lines.
42716ac_delim='%!_!# '
42717for ac_last_try in false false :; do
42718 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42719 if test -z "$ac_tt"; then
42720 break
42721 elif $ac_last_try; then
42722 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42723 else
42724 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42725 fi
42726done
42727
42728# For the awk script, D is an array of macro values keyed by name,
42729# likewise P contains macro parameters if any. Preserve backslash
42730# newline sequences.
42731
42732ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42733sed -n '
42734s/.\{148\}/&'"$ac_delim"'/g
42735t rset
42736:rset
42737s/^[ ]*#[ ]*define[ ][ ]*/ /
42738t def
42739d
42740:def
42741s/\\$//
42742t bsnl
42743s/["\\]/\\&/g
42744s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42745D["\1"]=" \3"/p
42746s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42747d
42748:bsnl
42749s/["\\]/\\&/g
42750s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42751D["\1"]=" \3\\\\\\n"\\/p
42752t cont
42753s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42754t cont
42755d
42756:cont
42757n
42758s/.\{148\}/&'"$ac_delim"'/g
42759t clear
42760:clear
42761s/\\$//
42762t bsnlc
42763s/["\\]/\\&/g; s/^/"/; s/$/"/p
42764d
42765:bsnlc
42766s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42767b cont
42768' <confdefs.h | sed '
42769s/'"$ac_delim"'/"\\\
42770"/g' >>$CONFIG_STATUS || ac_write_fail=1
42771
42772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42773 for (key in D) D_is_set[key] = 1
42774 FS = ""
42775}
42776/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42777 line = \$ 0
42778 split(line, arg, " ")
42779 if (arg[1] == "#") {
42780 defundef = arg[2]
42781 mac1 = arg[3]
42782 } else {
42783 defundef = substr(arg[1], 2)
42784 mac1 = arg[2]
42785 }
42786 split(mac1, mac2, "(") #)
42787 macro = mac2[1]
42788 prefix = substr(line, 1, index(line, defundef) - 1)
42789 if (D_is_set[macro]) {
42790 # Preserve the white space surrounding the "#".
42791 print prefix "define", macro P[macro] D[macro]
42792 next
42793 } else {
42794 # Replace #undef with comments. This is necessary, for example,
42795 # in the case of _POSIX_SOURCE, which is predefined and required
42796 # on some systems where configure will not decide to define it.
42797 if (defundef == "undef") {
42798 print "/*", prefix defundef, macro, "*/"
42799 next
42800 }
42801 }
42802}
42803{ print }
42804_ACAWK
42805_ACEOF
42806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42807 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42808fi # test -n "$CONFIG_HEADERS"
42809
42810
42811eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42812shift
42813for ac_tag
42814do
42815 case $ac_tag in
42816 :[FHLC]) ac_mode=$ac_tag; continue;;
42817 esac
42818 case $ac_mode$ac_tag in
42819 :[FHL]*:*);;
42820 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42821 :[FH]-) ac_tag=-:-;;
42822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42823 esac
42824 ac_save_IFS=$IFS
42825 IFS=:
42826 set x $ac_tag
42827 IFS=$ac_save_IFS
42828 shift
42829 ac_file=$1
42830 shift
42831
42832 case $ac_mode in
42833 :L) ac_source=$1;;
42834 :[FH])
42835 ac_file_inputs=
42836 for ac_f
42837 do
42838 case $ac_f in
42839 -) ac_f="$ac_tmp/stdin";;
42840 *) # Look for the file first in the build tree, then in the source tree
42841 # (if the path is not absolute). The absolute path cannot be DOS-style,
42842 # because $ac_f cannot contain `:'.
42843 test -f "$ac_f" ||
42844 case $ac_f in
42845 [\\/$]*) false;;
42846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42847 esac ||
42848 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42849 esac
42850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42851 as_fn_append ac_file_inputs " '$ac_f'"
42852 done
42853
42854 # Let's still pretend it is `configure' which instantiates (i.e., don't
42855 # use $as_me), people would be surprised to read:
42856 # /* config.h. Generated by config.status. */
42857 configure_input='Generated from '`
42858 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42859 `' by configure.'
42860 if test x"$ac_file" != x-; then
42861 configure_input="$ac_file. $configure_input"
42862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42863$as_echo "$as_me: creating $ac_file" >&6;}
42864 fi
42865 # Neutralize special characters interpreted by sed in replacement strings.
42866 case $configure_input in #(
42867 *\&* | *\|* | *\\* )
42868 ac_sed_conf_input=`$as_echo "$configure_input" |
42869 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42870 *) ac_sed_conf_input=$configure_input;;
42871 esac
42872
42873 case $ac_tag in
42874 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42875 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42876 esac
42877 ;;
42878 esac
42879
42880 ac_dir=`$as_dirname -- "$ac_file" ||
42881$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42882 X"$ac_file" : 'X\(//\)[^/]' \| \
42883 X"$ac_file" : 'X\(//\)$' \| \
42884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42885$as_echo X"$ac_file" |
42886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42887 s//\1/
42888 q
42889 }
42890 /^X\(\/\/\)[^/].*/{
42891 s//\1/
42892 q
42893 }
42894 /^X\(\/\/\)$/{
42895 s//\1/
42896 q
42897 }
42898 /^X\(\/\).*/{
42899 s//\1/
42900 q
42901 }
42902 s/.*/./; q'`
42903 as_dir="$ac_dir"; as_fn_mkdir_p
42904 ac_builddir=.
42905
42906case "$ac_dir" in
42907.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42908*)
42909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42910 # A ".." for each directory in $ac_dir_suffix.
42911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42912 case $ac_top_builddir_sub in
42913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42915 esac ;;
42916esac
42917ac_abs_top_builddir=$ac_pwd
42918ac_abs_builddir=$ac_pwd$ac_dir_suffix
42919# for backward compatibility:
42920ac_top_builddir=$ac_top_build_prefix
42921
42922case $srcdir in
42923 .) # We are building in place.
42924 ac_srcdir=.
42925 ac_top_srcdir=$ac_top_builddir_sub
42926 ac_abs_top_srcdir=$ac_pwd ;;
42927 [\\/]* | ?:[\\/]* ) # Absolute name.
42928 ac_srcdir=$srcdir$ac_dir_suffix;
42929 ac_top_srcdir=$srcdir
42930 ac_abs_top_srcdir=$srcdir ;;
42931 *) # Relative name.
42932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42933 ac_top_srcdir=$ac_top_build_prefix$srcdir
42934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42935esac
42936ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42937
42938
42939 case $ac_mode in
42940 :F)
42941 #
42942 # CONFIG_FILE
42943 #
42944
42945 case $INSTALL in
42946 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42947 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
42948 esac
42949 ac_MKDIR_P=$MKDIR_P
42950 case $MKDIR_P in
42951 [\\/$]* | ?:[\\/]* ) ;;
42952 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
42953 esac
42954_ACEOF
42955
42956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42957# If the template does not know about datarootdir, expand it.
42958# FIXME: This hack should be removed a few years after 2.60.
42959ac_datarootdir_hack=; ac_datarootdir_seen=
42960ac_sed_dataroot='
42961/datarootdir/ {
42962 p
42963 q
42964}
42965/@datadir@/p
42966/@docdir@/p
42967/@infodir@/p
42968/@localedir@/p
42969/@mandir@/p'
42970case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42971*datarootdir*) ac_datarootdir_seen=yes;;
42972*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
42973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42974$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42975_ACEOF
42976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42977 ac_datarootdir_hack='
42978 s&@datadir@&$datadir&g
42979 s&@docdir@&$docdir&g
42980 s&@infodir@&$infodir&g
42981 s&@localedir@&$localedir&g
42982 s&@mandir@&$mandir&g
42983 s&\\\${datarootdir}&$datarootdir&g' ;;
42984esac
42985_ACEOF
42986
42987# Neutralize VPATH when `$srcdir' = `.'.
42988# Shell code in configure.ac might set extrasub.
42989# FIXME: do we really want to maintain this feature?
42990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42991ac_sed_extra="$ac_vpsub
42992$extrasub
42993_ACEOF
42994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42995:t
42996/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42997s|@configure_input@|$ac_sed_conf_input|;t t
42998s&@top_builddir@&$ac_top_builddir_sub&;t t
42999s&@top_build_prefix@&$ac_top_build_prefix&;t t
43000s&@srcdir@&$ac_srcdir&;t t
43001s&@abs_srcdir@&$ac_abs_srcdir&;t t
43002s&@top_srcdir@&$ac_top_srcdir&;t t
43003s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43004s&@builddir@&$ac_builddir&;t t
43005s&@abs_builddir@&$ac_abs_builddir&;t t
43006s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43007s&@INSTALL@&$ac_INSTALL&;t t
43008s&@MKDIR_P@&$ac_MKDIR_P&;t t
43009$ac_datarootdir_hack
43010"
43011eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43012 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43013
43014test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43015 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43016 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43017 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43019which seems to be undefined. Please make sure it is defined" >&5
43020$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43021which seems to be undefined. Please make sure it is defined" >&2;}
43022
43023 rm -f "$ac_tmp/stdin"
43024 case $ac_file in
43025 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43026 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43027 esac \
43028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43029 ;;
43030 :H)
43031 #
43032 # CONFIG_HEADER
43033 #
43034 if test x"$ac_file" != x-; then
43035 {
43036 $as_echo "/* $configure_input */" \
43037 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43038 } >"$ac_tmp/config.h" \
43039 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43040 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43041 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43042$as_echo "$as_me: $ac_file is unchanged" >&6;}
43043 else
43044 rm -f "$ac_file"
43045 mv "$ac_tmp/config.h" "$ac_file" \
43046 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43047 fi
43048 else
43049 $as_echo "/* $configure_input */" \
43050 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43051 || as_fn_error $? "could not create -" "$LINENO" 5
43052 fi
43053# Compute "$ac_file"'s index in $config_headers.
43054_am_arg="$ac_file"
43055_am_stamp_count=1
43056for _am_header in $config_headers :; do
43057 case $_am_header in
43058 $_am_arg | $_am_arg:* )
43059 break ;;
43060 * )
43061 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43062 esac
43063done
43064echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43065$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43066 X"$_am_arg" : 'X\(//\)[^/]' \| \
43067 X"$_am_arg" : 'X\(//\)$' \| \
43068 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43069$as_echo X"$_am_arg" |
43070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43071 s//\1/
43072 q
43073 }
43074 /^X\(\/\/\)[^/].*/{
43075 s//\1/
43076 q
43077 }
43078 /^X\(\/\/\)$/{
43079 s//\1/
43080 q
43081 }
43082 /^X\(\/\).*/{
43083 s//\1/
43084 q
43085 }
43086 s/.*/./; q'`/stamp-h$_am_stamp_count
43087 ;;
43088
43089 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43090$as_echo "$as_me: executing $ac_file commands" >&6;}
43091 ;;
43092 esac
43093
43094
43095 case $ac_file$ac_mode in
43096 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43097 # Older Autoconf quotes --file arguments for eval, but not when files
43098 # are listed without --file. Let's play safe and only enable the eval
43099 # if we detect the quoting.
43100 case $CONFIG_FILES in
43101 *\'*) eval set x "$CONFIG_FILES" ;;
43102 *) set x $CONFIG_FILES ;;
43103 esac
43104 shift
43105 for mf
43106 do
43107 # Strip MF so we end up with the name of the file.
43108 mf=`echo "$mf" | sed -e 's/:.*$//'`
43109 # Check whether this is an Automake generated Makefile or not.
43110 # We used to match only the files named 'Makefile.in', but
43111 # some people rename them; so instead we look at the file content.
43112 # Grep'ing the first line is not enough: some people post-process
43113 # each Makefile.in and add a new line on top of each file to say so.
43114 # Grep'ing the whole file is not good either: AIX grep has a line
43115 # limit of 2048, but all sed's we know have understand at least 4000.
43116 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43117 dirpart=`$as_dirname -- "$mf" ||
43118$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43119 X"$mf" : 'X\(//\)[^/]' \| \
43120 X"$mf" : 'X\(//\)$' \| \
43121 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43122$as_echo X"$mf" |
43123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43124 s//\1/
43125 q
43126 }
43127 /^X\(\/\/\)[^/].*/{
43128 s//\1/
43129 q
43130 }
43131 /^X\(\/\/\)$/{
43132 s//\1/
43133 q
43134 }
43135 /^X\(\/\).*/{
43136 s//\1/
43137 q
43138 }
43139 s/.*/./; q'`
43140 else
43141 continue
43142 fi
43143 # Extract the definition of DEPDIR, am__include, and am__quote
43144 # from the Makefile without running 'make'.
43145 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43146 test -z "$DEPDIR" && continue
43147 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43148 test -z "$am__include" && continue
43149 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43150 # Find all dependency output files, they are included files with
43151 # $(DEPDIR) in their names. We invoke sed twice because it is the
43152 # simplest approach to changing $(DEPDIR) to its actual value in the
43153 # expansion.
43154 for file in `sed -n "
43155 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43156 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43157 # Make sure the directory exists.
43158 test -f "$dirpart/$file" && continue
43159 fdir=`$as_dirname -- "$file" ||
43160$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43161 X"$file" : 'X\(//\)[^/]' \| \
43162 X"$file" : 'X\(//\)$' \| \
43163 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43164$as_echo X"$file" |
43165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43166 s//\1/
43167 q
43168 }
43169 /^X\(\/\/\)[^/].*/{
43170 s//\1/
43171 q
43172 }
43173 /^X\(\/\/\)$/{
43174 s//\1/
43175 q
43176 }
43177 /^X\(\/\).*/{
43178 s//\1/
43179 q
43180 }
43181 s/.*/./; q'`
43182 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43183 # echo "creating $dirpart/$file"
43184 echo '# dummy' > "$dirpart/$file"
43185 done
43186 done
43187}
43188 ;;
43189 "libtool":C)
43190
43191 # See if we are running on zsh, and set the options that allow our
43192 # commands through without removal of \ escapes.
43193 if test -n "${ZSH_VERSION+set}"; then
43194 setopt NO_GLOB_SUBST
43195 fi
43196
43197 cfgfile=${ofile}T
43198 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43199 $RM "$cfgfile"
43200
43201 cat <<_LT_EOF >> "$cfgfile"
43202#! $SHELL
43203# Generated automatically by $as_me ($PACKAGE) $VERSION
43204# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43205
43206# Provide generalized library-building support services.
43207# Written by Gordon Matzigkeit, 1996
43208
43209# Copyright (C) 2014 Free Software Foundation, Inc.
43210# This is free software; see the source for copying conditions. There is NO
43211# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43212
43213# GNU Libtool is free software; you can redistribute it and/or modify
43214# it under the terms of the GNU General Public License as published by
43215# the Free Software Foundation; either version 2 of of the License, or
43216# (at your option) any later version.
43217#
43218# As a special exception to the GNU General Public License, if you
43219# distribute this file as part of a program or library that is built
43220# using GNU Libtool, you may include this file under the same
43221# distribution terms that you use for the rest of that program.
43222#
43223# GNU Libtool is distributed in the hope that it will be useful, but
43224# WITHOUT ANY WARRANTY; without even the implied warranty of
43225# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43226# GNU General Public License for more details.
43227#
43228# You should have received a copy of the GNU General Public License
43229# along with this program. If not, see <http://www.gnu.org/licenses/>.
43230
43231
43232# The names of the tagged configurations supported by this script.
43233available_tags=''
43234
43235# Configured defaults for sys_lib_dlsearch_path munging.
43236: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43237
43238# ### BEGIN LIBTOOL CONFIG
43239
43240# Which release of libtool.m4 was used?
43241macro_version=$macro_version
43242macro_revision=$macro_revision
43243
43244# Assembler program.
43245AS=$lt_AS
43246
43247# DLL creation program.
43248DLLTOOL=$lt_DLLTOOL
43249
43250# Object dumper program.
43251OBJDUMP=$lt_OBJDUMP
43252
43253# Whether or not to build shared libraries.
43254build_libtool_libs=$enable_shared
43255
43256# Whether or not to build static libraries.
43257build_old_libs=$enable_static
43258
43259# What type of objects to build.
43260pic_mode=$pic_mode
43261
43262# Whether or not to optimize for fast installation.
43263fast_install=$enable_fast_install
43264
43265# Shared archive member basename,for filename based shared library versioning on AIX.
43266shared_archive_member_spec=$shared_archive_member_spec
43267
43268# Shell to use when invoking shell scripts.
43269SHELL=$lt_SHELL
43270
43271# An echo program that protects backslashes.
43272ECHO=$lt_ECHO
43273
43274# The PATH separator for the build system.
43275PATH_SEPARATOR=$lt_PATH_SEPARATOR
43276
43277# The host system.
43278host_alias=$host_alias
43279host=$host
43280host_os=$host_os
43281
43282# The build system.
43283build_alias=$build_alias
43284build=$build
43285build_os=$build_os
43286
43287# A sed program that does not truncate output.
43288SED=$lt_SED
43289
43290# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43291Xsed="\$SED -e 1s/^X//"
43292
43293# A grep program that handles long lines.
43294GREP=$lt_GREP
43295
43296# An ERE matcher.
43297EGREP=$lt_EGREP
43298
43299# A literal string matcher.
43300FGREP=$lt_FGREP
43301
43302# A BSD- or MS-compatible name lister.
43303NM=$lt_NM
43304
43305# Whether we need soft or hard links.
43306LN_S=$lt_LN_S
43307
43308# What is the maximum length of a command?
43309max_cmd_len=$max_cmd_len
43310
43311# Object file suffix (normally "o").
43312objext=$ac_objext
43313
43314# Executable file suffix (normally "").
43315exeext=$exeext
43316
43317# whether the shell understands "unset".
43318lt_unset=$lt_unset
43319
43320# turn spaces into newlines.
43321SP2NL=$lt_lt_SP2NL
43322
43323# turn newlines into spaces.
43324NL2SP=$lt_lt_NL2SP
43325
43326# convert \$build file names to \$host format.
43327to_host_file_cmd=$lt_cv_to_host_file_cmd
43328
43329# convert \$build files to toolchain format.
43330to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43331
43332# Method to check whether dependent libraries are shared objects.
43333deplibs_check_method=$lt_deplibs_check_method
43334
43335# Command to use when deplibs_check_method = "file_magic".
43336file_magic_cmd=$lt_file_magic_cmd
43337
43338# How to find potential files when deplibs_check_method = "file_magic".
43339file_magic_glob=$lt_file_magic_glob
43340
43341# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43342want_nocaseglob=$lt_want_nocaseglob
43343
43344# Command to associate shared and link libraries.
43345sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43346
43347# The archiver.
43348AR=$lt_AR
43349
43350# Flags to create an archive.
43351AR_FLAGS=$lt_AR_FLAGS
43352
43353# How to feed a file listing to the archiver.
43354archiver_list_spec=$lt_archiver_list_spec
43355
43356# A symbol stripping program.
43357STRIP=$lt_STRIP
43358
43359# Commands used to install an old-style archive.
43360RANLIB=$lt_RANLIB
43361old_postinstall_cmds=$lt_old_postinstall_cmds
43362old_postuninstall_cmds=$lt_old_postuninstall_cmds
43363
43364# Whether to use a lock for old archive extraction.
43365lock_old_archive_extraction=$lock_old_archive_extraction
43366
43367# A C compiler.
43368LTCC=$lt_CC
43369
43370# LTCC compiler flags.
43371LTCFLAGS=$lt_CFLAGS
43372
43373# Take the output of nm and produce a listing of raw symbols and C names.
43374global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43375
43376# Transform the output of nm in a proper C declaration.
43377global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43378
43379# Transform the output of nm into a list of symbols to manually relocate.
43380global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43381
43382# Transform the output of nm in a C name address pair.
43383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43384
43385# Transform the output of nm in a C name address pair when lib prefix is needed.
43386global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43387
43388# The name lister interface.
43389nm_interface=$lt_lt_cv_nm_interface
43390
43391# Specify filename containing input files for \$NM.
43392nm_file_list_spec=$lt_nm_file_list_spec
43393
43394# The root where to search for dependent libraries,and where our libraries should be installed.
43395lt_sysroot=$lt_sysroot
43396
43397# Command to truncate a binary pipe.
43398lt_truncate_bin=$lt_lt_cv_truncate_bin
43399
43400# The name of the directory that contains temporary libtool files.
43401objdir=$objdir
43402
43403# Used to examine libraries when file_magic_cmd begins with "file".
43404MAGIC_CMD=$MAGIC_CMD
43405
43406# Must we lock files when doing compilation?
43407need_locks=$lt_need_locks
43408
43409# Manifest tool.
43410MANIFEST_TOOL=$lt_MANIFEST_TOOL
43411
43412# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43413DSYMUTIL=$lt_DSYMUTIL
43414
43415# Tool to change global to local symbols on Mac OS X.
43416NMEDIT=$lt_NMEDIT
43417
43418# Tool to manipulate fat objects and archives on Mac OS X.
43419LIPO=$lt_LIPO
43420
43421# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43422OTOOL=$lt_OTOOL
43423
43424# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43425OTOOL64=$lt_OTOOL64
43426
43427# Old archive suffix (normally "a").
43428libext=$libext
43429
43430# Shared library suffix (normally ".so").
43431shrext_cmds=$lt_shrext_cmds
43432
43433# The commands to extract the exported symbol list from a shared archive.
43434extract_expsyms_cmds=$lt_extract_expsyms_cmds
43435
43436# Variables whose values should be saved in libtool wrapper scripts and
43437# restored at link time.
43438variables_saved_for_relink=$lt_variables_saved_for_relink
43439
43440# Do we need the "lib" prefix for modules?
43441need_lib_prefix=$need_lib_prefix
43442
43443# Do we need a version for libraries?
43444need_version=$need_version
43445
43446# Library versioning type.
43447version_type=$version_type
43448
43449# Shared library runtime path variable.
43450runpath_var=$runpath_var
43451
43452# Shared library path variable.
43453shlibpath_var=$shlibpath_var
43454
43455# Is shlibpath searched before the hard-coded library search path?
43456shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43457
43458# Format of library name prefix.
43459libname_spec=$lt_libname_spec
43460
43461# List of archive names. First name is the real one, the rest are links.
43462# The last name is the one that the linker finds with -lNAME
43463library_names_spec=$lt_library_names_spec
43464
43465# The coded name of the library, if different from the real name.
43466soname_spec=$lt_soname_spec
43467
43468# Permission mode override for installation of shared libraries.
43469install_override_mode=$lt_install_override_mode
43470
43471# Command to use after installation of a shared archive.
43472postinstall_cmds=$lt_postinstall_cmds
43473
43474# Command to use after uninstallation of a shared archive.
43475postuninstall_cmds=$lt_postuninstall_cmds
43476
43477# Commands used to finish a libtool library installation in a directory.
43478finish_cmds=$lt_finish_cmds
43479
43480# As "finish_cmds", except a single script fragment to be evaled but
43481# not shown.
43482finish_eval=$lt_finish_eval
43483
43484# Whether we should hardcode library paths into libraries.
43485hardcode_into_libs=$hardcode_into_libs
43486
43487# Compile-time system search path for libraries.
43488sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43489
43490# Detected run-time system search path for libraries.
43491sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43492
43493# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43494configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43495
43496# Whether dlopen is supported.
43497dlopen_support=$enable_dlopen
43498
43499# Whether dlopen of programs is supported.
43500dlopen_self=$enable_dlopen_self
43501
43502# Whether dlopen of statically linked programs is supported.
43503dlopen_self_static=$enable_dlopen_self_static
43504
43505# Commands to strip libraries.
43506old_striplib=$lt_old_striplib
43507striplib=$lt_striplib
43508
43509
43510# The linker used to build libraries.
43511LD=$lt_LD
43512
43513# How to create reloadable object files.
43514reload_flag=$lt_reload_flag
43515reload_cmds=$lt_reload_cmds
43516
43517# Commands used to build an old-style archive.
43518old_archive_cmds=$lt_old_archive_cmds
43519
43520# A language specific compiler.
43521CC=$lt_compiler
43522
43523# Is the compiler the GNU compiler?
43524with_gcc=$GCC
43525
43526# Compiler flag to turn off builtin functions.
43527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43528
43529# Additional compiler flags for building library objects.
43530pic_flag=$lt_lt_prog_compiler_pic
43531
43532# How to pass a linker flag through the compiler.
43533wl=$lt_lt_prog_compiler_wl
43534
43535# Compiler flag to prevent dynamic linking.
43536link_static_flag=$lt_lt_prog_compiler_static
43537
43538# Does compiler simultaneously support -c and -o options?
43539compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43540
43541# Whether or not to add -lc for building shared libraries.
43542build_libtool_need_lc=$archive_cmds_need_lc
43543
43544# Whether or not to disallow shared libs when runtime libs are static.
43545allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43546
43547# Compiler flag to allow reflexive dlopens.
43548export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43549
43550# Compiler flag to generate shared objects directly from archives.
43551whole_archive_flag_spec=$lt_whole_archive_flag_spec
43552
43553# Whether the compiler copes with passing no objects directly.
43554compiler_needs_object=$lt_compiler_needs_object
43555
43556# Create an old-style archive from a shared archive.
43557old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43558
43559# Create a temporary old-style archive to link instead of a shared archive.
43560old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43561
43562# Commands used to build a shared archive.
43563archive_cmds=$lt_archive_cmds
43564archive_expsym_cmds=$lt_archive_expsym_cmds
43565
43566# Commands used to build a loadable module if different from building
43567# a shared archive.
43568module_cmds=$lt_module_cmds
43569module_expsym_cmds=$lt_module_expsym_cmds
43570
43571# Whether we are building with GNU ld or not.
43572with_gnu_ld=$lt_with_gnu_ld
43573
43574# Flag that allows shared libraries with undefined symbols to be built.
43575allow_undefined_flag=$lt_allow_undefined_flag
43576
43577# Flag that enforces no undefined symbols.
43578no_undefined_flag=$lt_no_undefined_flag
43579
43580# Flag to hardcode \$libdir into a binary during linking.
43581# This must work even if \$libdir does not exist
43582hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43583
43584# Whether we need a single "-rpath" flag with a separated argument.
43585hardcode_libdir_separator=$lt_hardcode_libdir_separator
43586
43587# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43588# DIR into the resulting binary.
43589hardcode_direct=$hardcode_direct
43590
43591# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43592# DIR into the resulting binary and the resulting library dependency is
43593# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43594# library is relocated.
43595hardcode_direct_absolute=$hardcode_direct_absolute
43596
43597# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43598# into the resulting binary.
43599hardcode_minus_L=$hardcode_minus_L
43600
43601# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43602# into the resulting binary.
43603hardcode_shlibpath_var=$hardcode_shlibpath_var
43604
43605# Set to "yes" if building a shared library automatically hardcodes DIR
43606# into the library and all subsequent libraries and executables linked
43607# against it.
43608hardcode_automatic=$hardcode_automatic
43609
43610# Set to yes if linker adds runtime paths of dependent libraries
43611# to runtime path list.
43612inherit_rpath=$inherit_rpath
43613
43614# Whether libtool must link a program against all its dependency libraries.
43615link_all_deplibs=$link_all_deplibs
43616
43617# Set to "yes" if exported symbols are required.
43618always_export_symbols=$always_export_symbols
43619
43620# The commands to list exported symbols.
43621export_symbols_cmds=$lt_export_symbols_cmds
43622
43623# Symbols that should not be listed in the preloaded symbols.
43624exclude_expsyms=$lt_exclude_expsyms
43625
43626# Symbols that must always be exported.
43627include_expsyms=$lt_include_expsyms
43628
43629# Commands necessary for linking programs (against libraries) with templates.
43630prelink_cmds=$lt_prelink_cmds
43631
43632# Commands necessary for finishing linking programs.
43633postlink_cmds=$lt_postlink_cmds
43634
43635# Specify filename containing input files.
43636file_list_spec=$lt_file_list_spec
43637
43638# How to hardcode a shared library path into an executable.
43639hardcode_action=$hardcode_action
43640
43641# ### END LIBTOOL CONFIG
43642
43643_LT_EOF
43644
43645 cat <<'_LT_EOF' >> "$cfgfile"
43646
43647# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43648
43649# func_munge_path_list VARIABLE PATH
43650# -----------------------------------
43651# VARIABLE is name of variable containing _space_ separated list of
43652# directories to be munged by the contents of PATH, which is string
43653# having a format:
43654# "DIR[:DIR]:"
43655# string "DIR[ DIR]" will be prepended to VARIABLE
43656# ":DIR[:DIR]"
43657# string "DIR[ DIR]" will be appended to VARIABLE
43658# "DIRP[:DIRP]::[DIRA:]DIRA"
43659# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43660# "DIRA[ DIRA]" will be appended to VARIABLE
43661# "DIR[:DIR]"
43662# VARIABLE will be replaced by "DIR[ DIR]"
43663func_munge_path_list ()
43664{
43665 case x$2 in
43666 x)
43667 ;;
43668 *:)
43669 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43670 ;;
43671 x:*)
43672 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43673 ;;
43674 *::*)
43675 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43676 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43677 ;;
43678 *)
43679 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43680 ;;
43681 esac
43682}
43683
43684
43685# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43686func_cc_basename ()
43687{
43688 for cc_temp in $*""; do
43689 case $cc_temp in
43690 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43691 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43692 \-*) ;;
43693 *) break;;
43694 esac
43695 done
43696 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43697}
43698
43699
43700# ### END FUNCTIONS SHARED WITH CONFIGURE
43701
43702_LT_EOF
43703
43704 case $host_os in
43705 aix3*)
43706 cat <<\_LT_EOF >> "$cfgfile"
43707# AIX sometimes has problems with the GCC collect2 program. For some
43708# reason, if we set the COLLECT_NAMES environment variable, the problems
43709# vanish in a puff of smoke.
43710if test set != "${COLLECT_NAMES+set}"; then
43711 COLLECT_NAMES=
43712 export COLLECT_NAMES
43713fi
43714_LT_EOF
43715 ;;
43716 esac
43717
43718
43719ltmain=$ac_aux_dir/ltmain.sh
43720
43721
43722 # We use sed instead of cat because bash on DJGPP gets confused if
43723 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43724 # text mode, it properly converts lines to CR/LF. This bash problem
43725 # is reportedly fixed, but why not run on old versions too?
43726 sed '$q' "$ltmain" >> "$cfgfile" \
43727 || (rm -f "$cfgfile"; exit 1)
43728
43729 mv -f "$cfgfile" "$ofile" ||
43730 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43731 chmod +x "$ofile"
43732
43733 ;;
43734
43735 esac
43736done # for ac_tag
43737
43738
43739as_fn_exit 0
43740_ACEOF
43741ac_clean_files=$ac_clean_files_save
43742
43743test $ac_write_fail = 0 ||
43744 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43745
43746
43747# configure is writing to config.log, and then calls config.status.
43748# config.status does its own redirection, appending to config.log.
43749# Unfortunately, on DOS this fails, as config.log is still kept open
43750# by configure, so config.status won't be able to write to it; its
43751# output is simply discarded. So we exec the FD to /dev/null,
43752# effectively closing config.log, so it can be properly (re)opened and
43753# appended to by config.status. When coming back to configure, we
43754# need to make the FD available again.
43755if test "$no_create" != yes; then
43756 ac_cs_success=:
43757 ac_config_status_args=
43758 test "$silent" = yes &&
43759 ac_config_status_args="$ac_config_status_args --quiet"
43760 exec 5>/dev/null
43761 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43762 exec 5>>config.log
43763 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43764 # would make configure fail if this is the last instruction.
43765 $ac_cs_success || as_fn_exit 1
43766fi
43767
43768#
43769# CONFIG_SUBDIRS section.
43770#
43771if test "$no_recursion" != yes; then
43772
43773 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43774 # so they do not pile up.
43775 ac_sub_configure_args=
43776 ac_prev=
43777 eval "set x $ac_configure_args"
43778 shift
43779 for ac_arg
43780 do
43781 if test -n "$ac_prev"; then
43782 ac_prev=
43783 continue
43784 fi
43785 case $ac_arg in
43786 -cache-file | --cache-file | --cache-fil | --cache-fi \
43787 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43788 ac_prev=cache_file ;;
43789 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43790 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43791 | --c=*)
43792 ;;
43793 --config-cache | -C)
43794 ;;
43795 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43796 ac_prev=srcdir ;;
43797 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43798 ;;
43799 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43800 ac_prev=prefix ;;
43801 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43802 ;;
43803 --disable-option-checking)
43804 ;;
43805 *)
43806 case $ac_arg in
43807 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43808 esac
43809 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43810 esac
43811 done
43812
43813 # Always prepend --prefix to ensure using the same prefix
43814 # in subdir configurations.
43815 ac_arg="--prefix=$prefix"
43816 case $ac_arg in
43817 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43818 esac
43819 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43820
43821 # Pass --silent
43822 if test "$silent" = yes; then
43823 ac_sub_configure_args="--silent $ac_sub_configure_args"
43824 fi
43825
43826 # Always prepend --disable-option-checking to silence warnings, since
43827 # different subdirs can have different --enable and --with options.
43828 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43829
43830 ac_popdir=`pwd`
43831 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43832
43833 # Do not complain, so a configure script can configure whichever
43834 # parts of a large source tree are present.
43835 test -d "$srcdir/$ac_dir" || continue
43836
43837 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43838 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43839 $as_echo "$ac_msg" >&6
43840 as_dir="$ac_dir"; as_fn_mkdir_p
43841 ac_builddir=.
43842
43843case "$ac_dir" in
43844.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43845*)
43846 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43847 # A ".." for each directory in $ac_dir_suffix.
43848 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43849 case $ac_top_builddir_sub in
43850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43852 esac ;;
43853esac
43854ac_abs_top_builddir=$ac_pwd
43855ac_abs_builddir=$ac_pwd$ac_dir_suffix
43856# for backward compatibility:
43857ac_top_builddir=$ac_top_build_prefix
43858
43859case $srcdir in
43860 .) # We are building in place.
43861 ac_srcdir=.
43862 ac_top_srcdir=$ac_top_builddir_sub
43863 ac_abs_top_srcdir=$ac_pwd ;;
43864 [\\/]* | ?:[\\/]* ) # Absolute name.
43865 ac_srcdir=$srcdir$ac_dir_suffix;
43866 ac_top_srcdir=$srcdir
43867 ac_abs_top_srcdir=$srcdir ;;
43868 *) # Relative name.
43869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43870 ac_top_srcdir=$ac_top_build_prefix$srcdir
43871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43872esac
43873ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43874
43875
43876 cd "$ac_dir"
43877
43878 # Check for guested configure; otherwise get Cygnus style configure.
43879 if test -f "$ac_srcdir/configure.gnu"; then
43880 ac_sub_configure=$ac_srcdir/configure.gnu
43881 elif test -f "$ac_srcdir/configure"; then
43882 ac_sub_configure=$ac_srcdir/configure
43883 elif test -f "$ac_srcdir/configure.in"; then
43884 # This should be Cygnus configure.
43885 ac_sub_configure=$ac_aux_dir/configure
43886 else
43887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43888$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43889 ac_sub_configure=
43890 fi
43891
43892 # The recursion is here.
43893 if test -n "$ac_sub_configure"; then
43894 # Make the cache file name correct relative to the subdirectory.
43895 case $cache_file in
43896 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43897 *) # Relative name.
43898 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43899 esac
43900
43901 { $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
43902$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43903 # The eval makes quoting arguments work.
43904 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43905 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43906 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43907 fi
43908
43909 cd "$ac_popdir"
43910 done
43911fi
43912if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
43913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43914$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
43915fi
43916
43917
43918
43919 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
43920 if test -z "$tmp_cpp"; then
43921 tmp_cpp='cpp'
43922 fi
43923 cat >./tests/configurehelp.pm <<_EOF
43924# This is a generated file. Do not edit.
43925
43926package configurehelp;
43927
43928use strict;
43929use warnings;
43930use Exporter;
43931
43932use vars qw(
43933 @ISA
43934 @EXPORT_OK
43935 \$Cpreprocessor
43936 );
43937
43938@ISA = qw(Exporter);
43939
43940@EXPORT_OK = qw(
43941 \$Cpreprocessor
43942 );
43943
43944\$Cpreprocessor = '$tmp_cpp';
43945
439461;
43947_EOF
43948
43949
43950
43951## ---------------------------------- ##
43952## Start of distclean amending code ##
43953## ---------------------------------- ##
43954
43955for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
43956do
43957
43958if test ! -f "$xc_subdir/Makefile"; then
43959 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
43960 exit 1
43961fi
43962
43963# Fetch dependency tracking file list from Makefile include lines.
43964
43965xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
43966xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
43967
43968# --disable-dependency-tracking might have been used, consequently
43969# there is nothing to amend without a dependency tracking file list.
43970
43971if test $xc_cnt_words -gt 0; then
43972
43973{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
43974$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
43975
43976# Build Makefile specific patch hunk.
43977
43978xc_p="$xc_subdir/xc_patch.tmp"
43979
43980xc_rm_depfiles=`echo "$xc_inc_lines" \
43981 | $SED 's%include% -rm -f%' 2>/dev/null`
43982
43983xc_dep_subdirs=`echo "$xc_inc_lines" \
43984 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
43985 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
43986 | sort | uniq`
43987
43988echo "$xc_rm_depfiles" >$xc_p
43989
43990for xc_dep_dir in $xc_dep_subdirs; do
43991 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
43992 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
43993 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
43994 echo "${xc_tab}fi" >>$xc_p
43995done
43996
43997# Build Makefile patching sed scripts.
43998
43999xc_s1="$xc_subdir/xc_script_1.tmp"
44000xc_s2="$xc_subdir/xc_script_2.tmp"
44001xc_s3="$xc_subdir/xc_script_3.tmp"
44002
44003cat >$xc_s1 <<\_EOT
44004/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44005 s/^.*(DEPDIR)/___xc_depdir_line___/
44006}
44007/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44008 s/^.*(DEPDIR)/___xc_depdir_line___/
44009}
44010_EOT
44011
44012cat >$xc_s2 <<\_EOT
44013/___xc_depdir_line___$/{
44014 N
44015 /___xc_depdir_line___$/D
44016}
44017_EOT
44018
44019cat >$xc_s3 <<_EOT
44020/^___xc_depdir_line___/{
44021 r $xc_p
44022 d
44023}
44024_EOT
44025
44026# Apply patch to Makefile and cleanup.
44027
44028$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44029$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44030$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44031
44032if test -f "$xc_subdir/Makefile.tmp3"; then
44033 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44034fi
44035
44036test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44037test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44038test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44039
44040test -f "$xc_p" && rm -f "$xc_p"
44041test -f "$xc_s1" && rm -f "$xc_s1"
44042test -f "$xc_s2" && rm -f "$xc_s2"
44043test -f "$xc_s3" && rm -f "$xc_s3"
44044
44045fi
44046
44047done
44048
44049## -------------------------------- ##
44050## End of distclean amending code ##
44051## -------------------------------- ##
44052
44053
44054
44055{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44056
Elliott Hughes82be86d2017-09-20 17:00:17 -070044057 Host setup: ${host}
44058 Install prefix: ${prefix}
44059 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044060 CFLAGS: ${CFLAGS}
44061 CPPFLAGS: ${CPPFLAGS}
44062 LDFLAGS: ${LDFLAGS}
44063 LIBS: ${LIBS}
44064
44065 curl version: ${CURLVERSION}
Haibo Huang65021c72019-03-27 15:37:23 -070044066 SSL: ${curl_ssl_msg}
44067 SSH: ${curl_ssh_msg}
44068 zlib: ${curl_zlib_msg}
44069 brotli: ${curl_brotli_msg}
44070 GSS-API: ${curl_gss_msg}
44071 TLS-SRP: ${curl_tls_srp_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044072 resolver: ${curl_res_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044073 IPv6: ${curl_ipv6_msg}
44074 Unix sockets: ${curl_unix_sockets_msg}
44075 IDN: ${curl_idn_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044076 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44077 Built-in manual: ${curl_manual_msg}
44078 --libcurl option: ${curl_libcurl_msg}
44079 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080044080 Code coverage: ${curl_coverage_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044081 SSPI: ${curl_sspi_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044082 ca cert bundle: ${ca}${ca_warning}
44083 ca cert path: ${capath}${capath_warning}
44084 ca fallback: ${with_ca_fallback}
Haibo Huang65021c72019-03-27 15:37:23 -070044085 LDAP: ${curl_ldap_msg}
44086 LDAPS: ${curl_ldaps_msg}
44087 RTSP: ${curl_rtsp_msg}
44088 RTMP: ${curl_rtmp_msg}
44089 Metalink: ${curl_mtlnk_msg}
44090 PSL: ${curl_psl_msg}
44091 Alt-svc: ${curl_altsvc_msg}
44092 HTTP2: ${curl_h2_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044093 Protocols: ${SUPPORT_PROTOCOLS}
Haibo Huang65021c72019-03-27 15:37:23 -070044094 Features: ${SUPPORT_FEATURES}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044095" >&5
44096$as_echo "$as_me: Configured to build curl/libcurl:
44097
Elliott Hughes82be86d2017-09-20 17:00:17 -070044098 Host setup: ${host}
44099 Install prefix: ${prefix}
44100 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044101 CFLAGS: ${CFLAGS}
44102 CPPFLAGS: ${CPPFLAGS}
44103 LDFLAGS: ${LDFLAGS}
44104 LIBS: ${LIBS}
44105
44106 curl version: ${CURLVERSION}
Haibo Huang65021c72019-03-27 15:37:23 -070044107 SSL: ${curl_ssl_msg}
44108 SSH: ${curl_ssh_msg}
44109 zlib: ${curl_zlib_msg}
44110 brotli: ${curl_brotli_msg}
44111 GSS-API: ${curl_gss_msg}
44112 TLS-SRP: ${curl_tls_srp_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044113 resolver: ${curl_res_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044114 IPv6: ${curl_ipv6_msg}
44115 Unix sockets: ${curl_unix_sockets_msg}
44116 IDN: ${curl_idn_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044117 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44118 Built-in manual: ${curl_manual_msg}
44119 --libcurl option: ${curl_libcurl_msg}
44120 Verbose errors: ${curl_verbose_msg}
Haibo Huang51d9d882019-02-06 01:36:06 -080044121 Code coverage: ${curl_coverage_msg}
Haibo Huang65021c72019-03-27 15:37:23 -070044122 SSPI: ${curl_sspi_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044123 ca cert bundle: ${ca}${ca_warning}
44124 ca cert path: ${capath}${capath_warning}
44125 ca fallback: ${with_ca_fallback}
Haibo Huang65021c72019-03-27 15:37:23 -070044126 LDAP: ${curl_ldap_msg}
44127 LDAPS: ${curl_ldaps_msg}
44128 RTSP: ${curl_rtsp_msg}
44129 RTMP: ${curl_rtmp_msg}
44130 Metalink: ${curl_mtlnk_msg}
44131 PSL: ${curl_psl_msg}
44132 Alt-svc: ${curl_altsvc_msg}
44133 HTTP2: ${curl_h2_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044134 Protocols: ${SUPPORT_PROTOCOLS}
Haibo Huang65021c72019-03-27 15:37:23 -070044135 Features: ${SUPPORT_FEATURES}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044136" >&6;}
Haibo Huang65021c72019-03-27 15:37:23 -070044137if test -n "$experimental"; then
44138 cat >&2 << _EOF
44139 WARNING: $experimental is enabled but marked EXPERIMENTAL. Use with caution!
44140_EOF
44141fi