blob: fdad6a87fb7fb84032d397ca9b9eb4cc4c4fff70 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14#
15# Copyright (c) 1998 - 2022 Daniel Stenberg, <daniel@haxx.se>
16# This configure script may be copied, distributed and modified under the
17# terms of the curl license; see COPYING for more details
18
19## -------------------------------- ##
20## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
21## -------------------------------- ##
22
23xc_configure_preamble_ver_major='1'
24xc_configure_preamble_ver_minor='0'
25
26#
27# Set IFS to space, tab and newline.
28#
29
30xc_space=' '
31xc_tab=' '
32xc_newline='
33'
34IFS="$xc_space$xc_tab$xc_newline"
35
36#
37# Set internationalization behavior variables.
38#
39
40LANG='C'
41LC_ALL='C'
42LANGUAGE='C'
43export LANG
44export LC_ALL
45export LANGUAGE
46
47#
48# Some useful variables.
49#
50
51xc_msg_warn='configure: WARNING:'
52xc_msg_abrt='Can not continue.'
53xc_msg_err='configure: error:'
54
55#
56# Verify that 'echo' command is available, otherwise abort.
57#
58
59xc_tst_str='unknown'
60(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61case "x$xc_tst_str" in # ((
62 xsuccess)
63 :
64 ;;
65 *)
66 # Try built-in echo, and fail.
67 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
68 exit 1
69 ;;
70esac
71
72#
73# Verify that 'test' command is available, otherwise abort.
74#
75
76xc_tst_str='unknown'
77(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78case "x$xc_tst_str" in # ((
79 xsuccess)
80 :
81 ;;
82 *)
83 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
84 exit 1
85 ;;
86esac
87
88#
89# Verify that 'PATH' variable is set, otherwise abort.
90#
91
92xc_tst_str='unknown'
93(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94case "x$xc_tst_str" in # ((
95 xsuccess)
96 :
97 ;;
98 *)
99 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
100 exit 1
101 ;;
102esac
103
104#
105# Verify that 'expr' command is available, otherwise abort.
106#
107
108xc_tst_str='unknown'
109xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110case "x$xc_tst_str" in # ((
111 x7)
112 :
113 ;;
114 *)
115 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
116 exit 1
117 ;;
118esac
119
120#
121# Verify that 'sed' utility is found within 'PATH', otherwise abort.
122#
123
124xc_tst_str='unknown'
125xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126 | sed -e 's:unknown:success:' 2>/dev/null`
127case "x$xc_tst_str" in # ((
128 xsuccess)
129 :
130 ;;
131 *)
132 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
133 exit 1
134 ;;
135esac
136
137#
138# Verify that 'grep' utility is found within 'PATH', otherwise abort.
139#
140
141xc_tst_str='unknown'
142(`echo "$xc_tst_str" 2>/dev/null \
143 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144case "x$xc_tst_str" in # ((
145 xsuccess)
146 :
147 ;;
148 *)
149 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
150 exit 1
151 ;;
152esac
153
154#
155# Verify that 'tr' utility is found within 'PATH', otherwise abort.
156#
157
158xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160 | tr -d "0123456789$xc_tab" 2>/dev/null`
161case "x$xc_tst_str" in # ((
162 xsuccess)
163 :
164 ;;
165 *)
166 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
167 exit 1
168 ;;
169esac
170
171#
172# Verify that 'wc' utility is found within 'PATH', otherwise abort.
173#
174
175xc_tst_str='unknown unknown unknown unknown'
176xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178case "x$xc_tst_str" in # ((
179 x4)
180 :
181 ;;
182 *)
183 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
184 exit 1
185 ;;
186esac
187
188#
189# Verify that 'cat' utility is found within 'PATH', otherwise abort.
190#
191
192xc_tst_str='unknown'
193xc_tst_str=`cat <<_EOT 2>/dev/null \
194 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
195unknown
196unknown
197unknown
198_EOT`
199case "x$xc_tst_str" in # ((
200 x3)
201 :
202 ;;
203 *)
204 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
205 exit 1
206 ;;
207esac
208
209#
210# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
211#
212
213# Directory count in 'PATH' when using a colon separator.
214xc_tst_dirs_col='x'
215xc_tst_prev_IFS=$IFS; IFS=':'
216for xc_tst_dir in $PATH; do
217 IFS=$xc_tst_prev_IFS
218 xc_tst_dirs_col="x$xc_tst_dirs_col"
219done
220IFS=$xc_tst_prev_IFS
221xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222
223# Directory count in 'PATH' when using a semicolon separator.
224xc_tst_dirs_sem='x'
225xc_tst_prev_IFS=$IFS; IFS=';'
226for xc_tst_dir in $PATH; do
227 IFS=$xc_tst_prev_IFS
228 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
229done
230IFS=$xc_tst_prev_IFS
231xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232
233if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234 # When both counting methods give the same result we do not want to
235 # chose one over the other, and consider auto-detection not possible.
236 if test -z "$PATH_SEPARATOR"; then
237 # User should provide the correct 'PATH_SEPARATOR' definition.
238 # Until then, guess that it is colon!
239 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
240 PATH_SEPARATOR=':'
241 fi
242else
243 # Separator with the greater directory count is the auto-detected one.
244 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245 xc_tst_auto_separator=';'
246 else
247 xc_tst_auto_separator=':'
248 fi
249 if test -z "$PATH_SEPARATOR"; then
250 # Simply use the auto-detected one when not already set.
251 PATH_SEPARATOR=$xc_tst_auto_separator
252 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254 fi
255fi
256xc_PATH_SEPARATOR=$PATH_SEPARATOR
257
258xc_configure_preamble_result='yes'
259
260
261## -------------------- ##
262## M4sh Initialization. ##
263## -------------------- ##
264
265# Be more Bourne compatible
266DUALCASE=1; export DUALCASE # for MKS sh
267as_nop=:
268if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
269then :
270 emulate sh
271 NULLCMD=:
272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273 # is contrary to our usage. Disable this feature.
274 alias -g '${1+"$@"}'='"$@"'
275 setopt NO_GLOB_SUBST
276else $as_nop
277 case `(set -o) 2>/dev/null` in #(
278 *posix*) :
279 set -o posix ;; #(
280 *) :
281 ;;
282esac
283fi
284
285
286
287# Reset variables that may have inherited troublesome values from
288# the environment.
289
290# IFS needs to be set, to space, tab, and newline, in precisely that order.
291# (If _AS_PATH_WALK were called with IFS unset, it would have the
292# side effect of setting IFS to empty, thus disabling word splitting.)
293# Quoting is to prevent editors from complaining about space-tab.
294as_nl='
295'
296export as_nl
297IFS=" "" $as_nl"
298
299PS1='$ '
300PS2='> '
301PS4='+ '
302
303# Ensure predictable behavior from utilities with locale-dependent output.
304LC_ALL=C
305export LC_ALL
306LANGUAGE=C
307export LANGUAGE
308
309# We cannot yet rely on "unset" to work, but we need these variables
310# to be unset--not just set to an empty or harmless value--now, to
311# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
312# also avoids known problems related to "unset" and subshell syntax
313# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315do eval test \${$as_var+y} \
316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
317done
318
319# Ensure that fds 0, 1, and 2 are open.
320if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
323
324
325
326# Find who we are. Look in the path if we contain no directory separator.
327as_myself=
328case $0 in #((
329 *[\\/]* ) as_myself=$0 ;;
330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
331for as_dir in $PATH
332do
333 IFS=$as_save_IFS
334 case $as_dir in #(((
335 '') as_dir=./ ;;
336 */) ;;
337 *) as_dir=$as_dir/ ;;
338 esac
339 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
340 done
341IFS=$as_save_IFS
342
343 ;;
344esac
345# We did not find ourselves, most probably we were run as `sh COMMAND'
346# in which case we are not to be found in the path.
347if test "x$as_myself" = x; then
348 as_myself=$0
349fi
350if test ! -f "$as_myself"; then
351 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352 exit 1
353fi
354
355
356# Use a proper internal environment variable to ensure we don't fall
357 # into an infinite loop, continuously re-executing ourselves.
358 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359 _as_can_reexec=no; export _as_can_reexec;
360 # We cannot yet assume a decent shell, so we have to provide a
361# neutralization value for shells without unset; and this also
362# works around shells that cannot unset nonexistent variables.
363# Preserve -v and -x to the replacement shell.
364BASH_ENV=/dev/null
365ENV=/dev/null
366(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367case $- in # ((((
368 *v*x* | *x*v* ) as_opts=-vx ;;
369 *v* ) as_opts=-v ;;
370 *x* ) as_opts=-x ;;
371 * ) as_opts= ;;
372esac
373exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374# Admittedly, this is quite paranoid, since all the known shells bail
375# out after a failed `exec'.
376printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
377exit 255
378 fi
379 # We don't want this to propagate to other subprocesses.
380 { _as_can_reexec=; unset _as_can_reexec;}
381if test "x$CONFIG_SHELL" = x; then
382 as_bourne_compatible="as_nop=:
383if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
384then :
385 emulate sh
386 NULLCMD=:
387 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388 # is contrary to our usage. Disable this feature.
389 alias -g '\${1+\"\$@\"}'='\"\$@\"'
390 setopt NO_GLOB_SUBST
391else \$as_nop
392 case \`(set -o) 2>/dev/null\` in #(
393 *posix*) :
394 set -o posix ;; #(
395 *) :
396 ;;
397esac
398fi
399"
400 as_required="as_fn_return () { (exit \$1); }
401as_fn_success () { as_fn_return 0; }
402as_fn_failure () { as_fn_return 1; }
403as_fn_ret_success () { return 0; }
404as_fn_ret_failure () { return 1; }
405
406exitcode=0
407as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411if ( set x; as_fn_ret_success y && test x = \"\$1\" )
412then :
413
414else \$as_nop
415 exitcode=1; echo positional parameters were not saved.
416fi
417test x\$exitcode = x0 || exit 1
418blah=\$(echo \$(echo blah))
419test x\"\$blah\" = xblah || exit 1
420test -x / || exit 1"
421 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425test \$(( 1 + 1 )) = 2 || exit 1
426
427 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431 PATH=/empty FPATH=/empty; export PATH FPATH
432 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434 if (eval "$as_required") 2>/dev/null
435then :
436 as_have_required=yes
437else $as_nop
438 as_have_required=no
439fi
440 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
441then :
442
443else $as_nop
444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
445as_found=false
446for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
447do
448 IFS=$as_save_IFS
449 case $as_dir in #(((
450 '') as_dir=./ ;;
451 */) ;;
452 *) as_dir=$as_dir/ ;;
453 esac
454 as_found=:
455 case $as_dir in #(
456 /*)
457 for as_base in sh bash ksh sh5; do
458 # Try only shells that exist, to save several forks.
459 as_shell=$as_dir$as_base
460 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
462then :
463 CONFIG_SHELL=$as_shell as_have_required=yes
464 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
465then :
466 break 2
467fi
468fi
469 done;;
470 esac
471 as_found=false
472done
473IFS=$as_save_IFS
474if $as_found
475then :
476
477else $as_nop
478 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
480then :
481 CONFIG_SHELL=$SHELL as_have_required=yes
482fi
483fi
484
485
486 if test "x$CONFIG_SHELL" != x
487then :
488 export CONFIG_SHELL
489 # We cannot yet assume a decent shell, so we have to provide a
490# neutralization value for shells without unset; and this also
491# works around shells that cannot unset nonexistent variables.
492# Preserve -v and -x to the replacement shell.
493BASH_ENV=/dev/null
494ENV=/dev/null
495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496case $- in # ((((
497 *v*x* | *x*v* ) as_opts=-vx ;;
498 *v* ) as_opts=-v ;;
499 *x* ) as_opts=-x ;;
500 * ) as_opts= ;;
501esac
502exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503# Admittedly, this is quite paranoid, since all the known shells bail
504# out after a failed `exec'.
505printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509 if test x$as_have_required = xno
510then :
511 printf "%s\n" "$0: This script requires a shell more modern than all"
512 printf "%s\n" "$0: the shells that I found on your system."
513 if test ${ZSH_VERSION+y} ; then
514 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
516 else
517 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518$0: mailing list: https://curl.se/mail/ about your system,
519$0: including any error possibly output before this
520$0: message. Then install a modern shell, or manually run
521$0: the script under such a shell if you do have one."
522 fi
523 exit 1
524fi
525fi
526fi
527SHELL=${CONFIG_SHELL-/bin/sh}
528export SHELL
529# Unset more variables known to interfere with behavior of common tools.
530CLICOLOR_FORCE= GREP_OPTIONS=
531unset CLICOLOR_FORCE GREP_OPTIONS
532
533## --------------------- ##
534## M4sh Shell Functions. ##
535## --------------------- ##
536# as_fn_unset VAR
537# ---------------
538# Portably unset VAR.
539as_fn_unset ()
540{
541 { eval $1=; unset $1;}
542}
543as_unset=as_fn_unset
544
545
546# as_fn_set_status STATUS
547# -----------------------
548# Set $? to STATUS, without forking.
549as_fn_set_status ()
550{
551 return $1
552} # as_fn_set_status
553
554# as_fn_exit STATUS
555# -----------------
556# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
557as_fn_exit ()
558{
559 set +e
560 as_fn_set_status $1
561 exit $1
562} # as_fn_exit
563# as_fn_nop
564# ---------
565# Do nothing but, unlike ":", preserve the value of $?.
566as_fn_nop ()
567{
568 return $?
569}
570as_nop=as_fn_nop
571
572# as_fn_mkdir_p
573# -------------
574# Create "$as_dir" as a directory, including parents if necessary.
575as_fn_mkdir_p ()
576{
577
578 case $as_dir in #(
579 -*) as_dir=./$as_dir;;
580 esac
581 test -d "$as_dir" || eval $as_mkdir_p || {
582 as_dirs=
583 while :; do
584 case $as_dir in #(
585 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
586 *) as_qdir=$as_dir;;
587 esac
588 as_dirs="'$as_qdir' $as_dirs"
589 as_dir=`$as_dirname -- "$as_dir" ||
590$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591 X"$as_dir" : 'X\(//\)[^/]' \| \
592 X"$as_dir" : 'X\(//\)$' \| \
593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594printf "%s\n" X"$as_dir" |
595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
596 s//\1/
597 q
598 }
599 /^X\(\/\/\)[^/].*/{
600 s//\1/
601 q
602 }
603 /^X\(\/\/\)$/{
604 s//\1/
605 q
606 }
607 /^X\(\/\).*/{
608 s//\1/
609 q
610 }
611 s/.*/./; q'`
612 test -d "$as_dir" && break
613 done
614 test -z "$as_dirs" || eval "mkdir $as_dirs"
615 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
616
617
618} # as_fn_mkdir_p
619
620# as_fn_executable_p FILE
621# -----------------------
622# Test if FILE is an executable regular file.
623as_fn_executable_p ()
624{
625 test -f "$1" && test -x "$1"
626} # as_fn_executable_p
627# as_fn_append VAR VALUE
628# ----------------------
629# Append the text in VALUE to the end of the definition contained in VAR. Take
630# advantage of any shell optimizations that allow amortized linear growth over
631# repeated appends, instead of the typical quadratic growth present in naive
632# implementations.
633if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
634then :
635 eval 'as_fn_append ()
636 {
637 eval $1+=\$2
638 }'
639else $as_nop
640 as_fn_append ()
641 {
642 eval $1=\$$1\$2
643 }
644fi # as_fn_append
645
646# as_fn_arith ARG...
647# ------------------
648# Perform arithmetic evaluation on the ARGs, and store the result in the
649# global $as_val. Take advantage of shells that can avoid forks. The arguments
650# must be portable across $(()) and expr.
651if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
652then :
653 eval 'as_fn_arith ()
654 {
655 as_val=$(( $* ))
656 }'
657else $as_nop
658 as_fn_arith ()
659 {
660 as_val=`expr "$@" || test $? -eq 1`
661 }
662fi # as_fn_arith
663
664# as_fn_nop
665# ---------
666# Do nothing but, unlike ":", preserve the value of $?.
667as_fn_nop ()
668{
669 return $?
670}
671as_nop=as_fn_nop
672
673# as_fn_error STATUS ERROR [LINENO LOG_FD]
674# ----------------------------------------
675# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677# script with STATUS, using 1 if that was 0.
678as_fn_error ()
679{
680 as_status=$1; test $as_status -eq 0 && as_status=1
681 if test "$4"; then
682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
684 fi
685 printf "%s\n" "$as_me: error: $2" >&2
686 as_fn_exit $as_status
687} # as_fn_error
688
689if expr a : '\(a\)' >/dev/null 2>&1 &&
690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
691 as_expr=expr
692else
693 as_expr=false
694fi
695
696if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
697 as_basename=basename
698else
699 as_basename=false
700fi
701
702if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
703 as_dirname=dirname
704else
705 as_dirname=false
706fi
707
708as_me=`$as_basename -- "$0" ||
709$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710 X"$0" : 'X\(//\)$' \| \
711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712printf "%s\n" X/"$0" |
713 sed '/^.*\/\([^/][^/]*\)\/*$/{
714 s//\1/
715 q
716 }
717 /^X\/\(\/\/\)$/{
718 s//\1/
719 q
720 }
721 /^X\/\(\/\).*/{
722 s//\1/
723 q
724 }
725 s/.*/./; q'`
726
727# Avoid depending upon Character Ranges.
728as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731as_cr_digits='0123456789'
732as_cr_alnum=$as_cr_Letters$as_cr_digits
733
734
735 as_lineno_1=$LINENO as_lineno_1a=$LINENO
736 as_lineno_2=$LINENO as_lineno_2a=$LINENO
737 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
740 sed -n '
741 p
742 /[$]LINENO/=
743 ' <$as_myself |
744 sed '
745 s/[$]LINENO.*/&-/
746 t lineno
747 b
748 :lineno
749 N
750 :loop
751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
752 t loop
753 s/-\n.*//
754 ' >$as_me.lineno &&
755 chmod +x "$as_me.lineno" ||
756 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
757
758 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759 # already done that, so ensure we don't try to do so again and fall
760 # in an infinite loop. This has already happened in practice.
761 _as_can_reexec=no; export _as_can_reexec
762 # Don't try to exec as it changes $[0], causing all sort of problems
763 # (the dirname of $[0] is not the place where we might find the
764 # original and so on. Autoconf is especially sensitive to this).
765 . "./$as_me.lineno"
766 # Exit status is that of the last command.
767 exit
768}
769
770
771# Determine whether it's possible to make 'echo' print without a newline.
772# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773# for compatibility with existing Makefiles.
774ECHO_C= ECHO_N= ECHO_T=
775case `echo -n x` in #(((((
776-n*)
777 case `echo 'xy\c'` in
778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
779 xy) ECHO_C='\c';;
780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
781 ECHO_T=' ';;
782 esac;;
783*)
784 ECHO_N='-n';;
785esac
786
787# For backward compatibility with old third-party macros, we provide
788# the shell variables $as_echo and $as_echo_n. New code should use
789# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790as_echo='printf %s\n'
791as_echo_n='printf %s'
792
793
794rm -f conf$$ conf$$.exe conf$$.file
795if test -d conf$$.dir; then
796 rm -f conf$$.dir/conf$$.file
797else
798 rm -f conf$$.dir
799 mkdir conf$$.dir 2>/dev/null
800fi
801if (echo >conf$$.file) 2>/dev/null; then
802 if ln -s conf$$.file conf$$ 2>/dev/null; then
803 as_ln_s='ln -s'
804 # ... but there are two gotchas:
805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807 # In both cases, we have to default to `cp -pR'.
808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
809 as_ln_s='cp -pR'
810 elif ln conf$$.file conf$$ 2>/dev/null; then
811 as_ln_s=ln
812 else
813 as_ln_s='cp -pR'
814 fi
815else
816 as_ln_s='cp -pR'
817fi
818rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819rmdir conf$$.dir 2>/dev/null
820
821if mkdir -p . 2>/dev/null; then
822 as_mkdir_p='mkdir -p "$as_dir"'
823else
824 test -d ./-p && rmdir ./-p
825 as_mkdir_p=false
826fi
827
828as_test_x='test -x'
829as_executable_p=as_fn_executable_p
830
831# Sed expression to map a string onto a valid CPP name.
832as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
833
834# Sed expression to map a string onto a valid variable name.
835as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
836
837SHELL=${CONFIG_SHELL-/bin/sh}
838
839
840test -n "$DJDIR" || exec 7<&0 </dev/null
841exec 6>&1
842
843# Name of the host.
844# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845# so uname gets run too.
846ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
847
848#
849# Initializations.
850#
851ac_default_prefix=/usr/local
852ac_clean_files=
853ac_config_libobj_dir=.
854LIBOBJS=
855cross_compiling=no
856subdirs=
857MFLAGS=
858MAKEFLAGS=
859
860# Identity of this package.
861PACKAGE_NAME='curl'
862PACKAGE_TARNAME='curl'
863PACKAGE_VERSION='-'
864PACKAGE_STRING='curl -'
865PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
866PACKAGE_URL=''
867
868ac_unique_file="lib/urldata.h"
869# Factoring default headers for most tests.
870ac_includes_default="\
871#include <stddef.h>
872#ifdef HAVE_STDIO_H
873# include <stdio.h>
874#endif
875#ifdef HAVE_STDLIB_H
876# include <stdlib.h>
877#endif
878#ifdef HAVE_STRING_H
879# include <string.h>
880#endif
881#ifdef HAVE_INTTYPES_H
882# include <inttypes.h>
883#endif
884#ifdef HAVE_STDINT_H
885# include <stdint.h>
886#endif
887#ifdef HAVE_STRINGS_H
888# include <strings.h>
889#endif
890#ifdef HAVE_SYS_TYPES_H
891# include <sys/types.h>
892#endif
893#ifdef HAVE_SYS_STAT_H
894# include <sys/stat.h>
895#endif
896#ifdef HAVE_UNISTD_H
897# include <unistd.h>
898#endif"
899
900ac_header_c_list=
901ac_subst_vars='am__EXEEXT_FALSE
902am__EXEEXT_TRUE
903LTLIBOBJS
904LIBOBJS
905SSL_BACKENDS
906SUPPORT_PROTOCOLS
907SUPPORT_FEATURES
908LIBCURL_NO_SHARED
909ENABLE_STATIC
910ENABLE_SHARED
911CROSSCOMPILING_FALSE
912CROSSCOMPILING_TRUE
913BLANK_AT_MAKETIME
914CURL_NETWORK_AND_TIME_LIBS
915CURL_NETWORK_LIBS
916LIBCURL_LIBS
917CFLAG_CURL_SYMBOL_HIDING
918DOING_CURL_SYMBOL_HIDING_FALSE
919DOING_CURL_SYMBOL_HIDING_TRUE
920USE_UNIX_SOCKETS
921BUILD_LIBHOSTNAME_FALSE
922BUILD_LIBHOSTNAME_TRUE
923USE_ARES
924USE_MANUAL_FALSE
925USE_MANUAL_TRUE
926MANOPT
927NROFF
928PERL
929FISH_FUNCTIONS_DIR
930ZSH_FUNCTIONS_DIR
931USE_MSH3
932USE_QUICHE
933USE_NGHTTP3
934USE_NGTCP2_CRYPTO_WOLFSSL
935USE_NGTCP2_CRYPTO_GNUTLS
936USE_NGTCP2_CRYPTO_OPENSSL
937USE_NGTCP2
938USE_NGHTTP2
939IDN_ENABLED
940CURL_PLIST_VERSION
941CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
942CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
943CURL_LT_SHLIB_VERSIONED_FLAVOUR
944USE_LIBRTMP
945USE_WOLFSSH
946USE_LIBSSH
947USE_LIBSSH2
948USE_GSASL_FALSE
949USE_GSASL_TRUE
950USE_LIBPSL_FALSE
951USE_LIBPSL_TRUE
952CURL_CA_BUNDLE
953CURL_WITH_MULTI_SSL
954SSL_ENABLED
955NSS_LIBS
956USE_NSS
957USE_RUSTLS
958USE_BEARSSL
959USE_WOLFSSL
960USE_MBEDTLS
961HAVE_GNUTLS_SRP
962USE_GNUTLS
963HAVE_OPENSSL_SRP
964RANDOM_FILE
965SSL_LIBS
966USE_SECTRANSP
967USE_WINDOWS_SSPI
968USE_SCHANNEL
969DEFAULT_SSL_BACKEND
970BUILD_STUB_GSS_FALSE
971BUILD_STUB_GSS_TRUE
972IPV6_ENABLED
973USE_OPENLDAP
974HAVE_ZSTD
975HAVE_BROTLI
976ZLIB_LIBS
977HAVE_LIBZ_FALSE
978HAVE_LIBZ_TRUE
979HAVE_LIBZ
980HAVE_PROTO_BSDSOCKET_H
981CURL_DISABLE_MQTT
982CURL_DISABLE_GOPHER
983CURL_DISABLE_SMTP
984CURL_DISABLE_SMB
985CURL_DISABLE_IMAP
986CURL_DISABLE_POP3
987CURL_DISABLE_TFTP
988CURL_DISABLE_TELNET
989CURL_DISABLE_DICT
990CURL_DISABLE_PROXY
991USE_HYPER
992PKGCONFIG
993HAVE_LDAP_SSL
994CURL_DISABLE_LDAPS
995CURL_DISABLE_LDAP
996CURL_DISABLE_FILE
997CURL_DISABLE_FTP
998CURL_DISABLE_RTSP
999CURL_DISABLE_HTTP
1000OS_WINDOWS_FALSE
1001OS_WINDOWS_TRUE
1002USE_WIN32_CRYPTO
1003USE_WIN32_SMALL_FILES
1004USE_WIN32_LARGE_FILES
1005DOING_NATIVE_WINDOWS_FALSE
1006DOING_NATIVE_WINDOWS_TRUE
1007BUILD_UNITTESTS_FALSE
1008BUILD_UNITTESTS_TRUE
1009CURLDEBUG_FALSE
1010CURLDEBUG_TRUE
1011CURL_CFLAG_EXTRAS
1012USE_EXPLICIT_LIB_DEPS_FALSE
1013USE_EXPLICIT_LIB_DEPS_TRUE
1014REQUIRE_LIB_DEPS
1015CPPFLAG_CURL_STATICLIB
1016USE_CPPFLAG_CURL_STATICLIB_FALSE
1017USE_CPPFLAG_CURL_STATICLIB_TRUE
1018CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1019CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1020CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1021CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1022CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1023CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1024RC
1025LT_SYS_LIBRARY_PATH
1026OTOOL64
1027OTOOL
1028LIPO
1029NMEDIT
1030DSYMUTIL
1031MANIFEST_TOOL
1032RANLIB
1033ac_ct_AR
1034FILECMD
1035LN_S
1036NM
1037ac_ct_DUMPBIN
1038DUMPBIN
1039LD
1040FGREP
1041LIBTOOL
1042OBJDUMP
1043DLLTOOL
1044AS
1045AR_FLAGS
1046host_os
1047host_vendor
1048host_cpu
1049host
1050build_os
1051build_vendor
1052build_cpu
1053build
1054PKGADD_VENDOR
1055PKGADD_NAME
1056PKGADD_PKG
1057VERSIONNUM
1058CURLVERSION
1059CSCOPE
1060ETAGS
1061CTAGS
1062am__fastdepCC_FALSE
1063am__fastdepCC_TRUE
1064CCDEPMODE
1065am__nodep
1066AMDEPBACKSLASH
1067AMDEP_FALSE
1068AMDEP_TRUE
1069am__include
1070DEPDIR
1071am__untar
1072am__tar
1073AMTAR
1074am__leading_dot
1075SET_MAKE
1076AWK
1077mkdir_p
1078MKDIR_P
1079INSTALL_STRIP_PROGRAM
1080STRIP
1081install_sh
1082MAKEINFO
1083AUTOHEADER
1084AUTOMAKE
1085AUTOCONF
1086ACLOCAL
1087VERSION
1088PACKAGE
1089CYGPATH_W
1090am__isrc
1091LCOV
1092GCOV
1093CPP
1094OBJEXT
1095EXEEXT
1096ac_ct_CC
1097CPPFLAGS
1098LDFLAGS
1099CFLAGS
1100CC
1101INSTALL_DATA
1102INSTALL_SCRIPT
1103INSTALL_PROGRAM
1104libext
1105AR
1106EGREP
1107GREP
1108SED
1109CONFIGURE_OPTIONS
1110AM_BACKSLASH
1111AM_DEFAULT_VERBOSITY
1112AM_DEFAULT_V
1113AM_V
1114MAINT
1115MAINTAINER_MODE_FALSE
1116MAINTAINER_MODE_TRUE
1117target_alias
1118host_alias
1119build_alias
1120LIBS
1121ECHO_T
1122ECHO_N
1123ECHO_C
1124DEFS
1125mandir
1126localedir
1127libdir
1128psdir
1129pdfdir
1130dvidir
1131htmldir
1132infodir
1133docdir
1134oldincludedir
1135includedir
1136runstatedir
1137localstatedir
1138sharedstatedir
1139sysconfdir
1140datadir
1141datarootdir
1142libexecdir
1143sbindir
1144bindir
1145program_transform_name
1146prefix
1147exec_prefix
1148PACKAGE_URL
1149PACKAGE_BUGREPORT
1150PACKAGE_STRING
1151PACKAGE_VERSION
1152PACKAGE_TARNAME
1153PACKAGE_NAME
1154SHELL
1155PATH_SEPARATOR
1156am__quote'
1157ac_subst_files=''
1158ac_user_opts='
1159enable_option_checking
1160enable_maintainer_mode
1161enable_silent_rules
1162enable_debug
1163enable_optimize
1164enable_warnings
1165enable_werror
1166enable_curldebug
1167enable_symbol_hiding
1168enable_ares
1169enable_rt
1170enable_ech
1171enable_code_coverage
1172enable_dependency_tracking
1173with_schannel
1174with_secure_transport
1175with_amissl
1176with_ssl
1177with_openssl
1178with_gnutls
1179with_mbedtls
1180with_wolfssl
1181with_bearssl
1182with_rustls
1183with_nss_deprecated
1184with_nss
1185with_darwinssl
1186enable_largefile
1187enable_shared
1188enable_static
1189with_pic
1190enable_fast_install
1191with_aix_soname
1192with_gnu_ld
1193with_sysroot
1194enable_libtool_lock
1195enable_http
1196enable_ftp
1197enable_file
1198enable_ldap
1199enable_ldaps
1200with_hyper
1201enable_rtsp
1202enable_proxy
1203enable_dict
1204enable_telnet
1205enable_tftp
1206enable_pop3
1207enable_imap
1208enable_smb
1209enable_smtp
1210enable_gopher
1211enable_mqtt
1212enable_manual
1213enable_libcurl_option
1214enable_libgcc
1215with_zlib
1216with_brotli
1217with_zstd
1218with_ldap_lib
1219with_lber_lib
1220enable_ipv6
1221with_gssapi_includes
1222with_gssapi_libs
1223with_gssapi
1224with_default_ssl_backend
1225with_egd_socket
1226with_random
1227enable_openssl_auto_load_config
1228with_ca_bundle
1229with_ca_path
1230with_ca_fallback
1231with_libpsl
1232with_libgsasl
1233with_libmetalink
1234with_libssh2
1235with_libssh
1236with_wolfssh
1237with_librtmp
1238enable_versioned_symbols
1239with_winidn
1240with_libidn2
1241with_nghttp2
1242with_ngtcp2
1243with_nghttp3
1244with_quiche
1245with_msh3
1246with_zsh_functions_dir
1247with_fish_functions_dir
1248with_n64_deprecated
1249enable_threaded_resolver
1250enable_pthreads
1251enable_verbose
1252enable_sspi
1253enable_crypto_auth
1254enable_ntlm
1255enable_ntlm_wb
1256enable_tls_srp
1257enable_unix_sockets
1258enable_cookies
1259enable_socketpair
1260enable_http_auth
1261enable_doh
1262enable_mime
1263enable_dateparse
1264enable_netrc
1265enable_progress_meter
1266enable_dnsshuffle
1267enable_get_easy_options
1268enable_alt_svc
1269enable_headers_api
1270enable_hsts
1271enable_websockets
1272'
1273 ac_precious_vars='build_alias
1274host_alias
1275target_alias
1276CC
1277CFLAGS
1278LDFLAGS
1279LIBS
1280CPPFLAGS
1281CPP
1282LT_SYS_LIBRARY_PATH'
1283
1284
1285# Initialize some variables set by options.
1286ac_init_help=
1287ac_init_version=false
1288ac_unrecognized_opts=
1289ac_unrecognized_sep=
1290# The variables have the same names as the options, with
1291# dashes changed to underlines.
1292cache_file=/dev/null
1293exec_prefix=NONE
1294no_create=
1295no_recursion=
1296prefix=NONE
1297program_prefix=NONE
1298program_suffix=NONE
1299program_transform_name=s,x,x,
1300silent=
1301site=
1302srcdir=
1303verbose=
1304x_includes=NONE
1305x_libraries=NONE
1306
1307# Installation directory options.
1308# These are left unexpanded so users can "make install exec_prefix=/foo"
1309# and all the variables that are supposed to be based on exec_prefix
1310# by default will actually change.
1311# Use braces instead of parens because sh, perl, etc. also accept them.
1312# (The list follows the same order as the GNU Coding Standards.)
1313bindir='${exec_prefix}/bin'
1314sbindir='${exec_prefix}/sbin'
1315libexecdir='${exec_prefix}/libexec'
1316datarootdir='${prefix}/share'
1317datadir='${datarootdir}'
1318sysconfdir='${prefix}/etc'
1319sharedstatedir='${prefix}/com'
1320localstatedir='${prefix}/var'
1321runstatedir='${localstatedir}/run'
1322includedir='${prefix}/include'
1323oldincludedir='/usr/include'
1324docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1325infodir='${datarootdir}/info'
1326htmldir='${docdir}'
1327dvidir='${docdir}'
1328pdfdir='${docdir}'
1329psdir='${docdir}'
1330libdir='${exec_prefix}/lib'
1331localedir='${datarootdir}/locale'
1332mandir='${datarootdir}/man'
1333
1334ac_prev=
1335ac_dashdash=
1336for ac_option
1337do
1338 # If the previous option needs an argument, assign it.
1339 if test -n "$ac_prev"; then
1340 eval $ac_prev=\$ac_option
1341 ac_prev=
1342 continue
1343 fi
1344
1345 case $ac_option in
1346 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1347 *=) ac_optarg= ;;
1348 *) ac_optarg=yes ;;
1349 esac
1350
1351 case $ac_dashdash$ac_option in
1352 --)
1353 ac_dashdash=yes ;;
1354
1355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1356 ac_prev=bindir ;;
1357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1358 bindir=$ac_optarg ;;
1359
1360 -build | --build | --buil | --bui | --bu)
1361 ac_prev=build_alias ;;
1362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1363 build_alias=$ac_optarg ;;
1364
1365 -cache-file | --cache-file | --cache-fil | --cache-fi \
1366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1367 ac_prev=cache_file ;;
1368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1370 cache_file=$ac_optarg ;;
1371
1372 --config-cache | -C)
1373 cache_file=config.cache ;;
1374
1375 -datadir | --datadir | --datadi | --datad)
1376 ac_prev=datadir ;;
1377 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1378 datadir=$ac_optarg ;;
1379
1380 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1381 | --dataroo | --dataro | --datar)
1382 ac_prev=datarootdir ;;
1383 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1384 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1385 datarootdir=$ac_optarg ;;
1386
1387 -disable-* | --disable-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1395 *"
1396"enable_$ac_useropt"
1397"*) ;;
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1400 esac
1401 eval enable_$ac_useropt=no ;;
1402
1403 -docdir | --docdir | --docdi | --doc | --do)
1404 ac_prev=docdir ;;
1405 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1406 docdir=$ac_optarg ;;
1407
1408 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1409 ac_prev=dvidir ;;
1410 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1411 dvidir=$ac_optarg ;;
1412
1413 -enable-* | --enable-*)
1414 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1415 # Reject names that are not valid shell variable names.
1416 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1417 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1418 ac_useropt_orig=$ac_useropt
1419 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1420 case $ac_user_opts in
1421 *"
1422"enable_$ac_useropt"
1423"*) ;;
1424 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1425 ac_unrecognized_sep=', ';;
1426 esac
1427 eval enable_$ac_useropt=\$ac_optarg ;;
1428
1429 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1430 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1431 | --exec | --exe | --ex)
1432 ac_prev=exec_prefix ;;
1433 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1434 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1435 | --exec=* | --exe=* | --ex=*)
1436 exec_prefix=$ac_optarg ;;
1437
1438 -gas | --gas | --ga | --g)
1439 # Obsolete; use --with-gas.
1440 with_gas=yes ;;
1441
1442 -help | --help | --hel | --he | -h)
1443 ac_init_help=long ;;
1444 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1445 ac_init_help=recursive ;;
1446 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1447 ac_init_help=short ;;
1448
1449 -host | --host | --hos | --ho)
1450 ac_prev=host_alias ;;
1451 -host=* | --host=* | --hos=* | --ho=*)
1452 host_alias=$ac_optarg ;;
1453
1454 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1455 ac_prev=htmldir ;;
1456 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1457 | --ht=*)
1458 htmldir=$ac_optarg ;;
1459
1460 -includedir | --includedir | --includedi | --included | --include \
1461 | --includ | --inclu | --incl | --inc)
1462 ac_prev=includedir ;;
1463 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1464 | --includ=* | --inclu=* | --incl=* | --inc=*)
1465 includedir=$ac_optarg ;;
1466
1467 -infodir | --infodir | --infodi | --infod | --info | --inf)
1468 ac_prev=infodir ;;
1469 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1470 infodir=$ac_optarg ;;
1471
1472 -libdir | --libdir | --libdi | --libd)
1473 ac_prev=libdir ;;
1474 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1475 libdir=$ac_optarg ;;
1476
1477 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1478 | --libexe | --libex | --libe)
1479 ac_prev=libexecdir ;;
1480 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1481 | --libexe=* | --libex=* | --libe=*)
1482 libexecdir=$ac_optarg ;;
1483
1484 -localedir | --localedir | --localedi | --localed | --locale)
1485 ac_prev=localedir ;;
1486 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1487 localedir=$ac_optarg ;;
1488
1489 -localstatedir | --localstatedir | --localstatedi | --localstated \
1490 | --localstate | --localstat | --localsta | --localst | --locals)
1491 ac_prev=localstatedir ;;
1492 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1493 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1494 localstatedir=$ac_optarg ;;
1495
1496 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1497 ac_prev=mandir ;;
1498 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1499 mandir=$ac_optarg ;;
1500
1501 -nfp | --nfp | --nf)
1502 # Obsolete; use --without-fp.
1503 with_fp=no ;;
1504
1505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1506 | --no-cr | --no-c | -n)
1507 no_create=yes ;;
1508
1509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1511 no_recursion=yes ;;
1512
1513 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1514 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1515 | --oldin | --oldi | --old | --ol | --o)
1516 ac_prev=oldincludedir ;;
1517 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1518 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1519 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1520 oldincludedir=$ac_optarg ;;
1521
1522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1523 ac_prev=prefix ;;
1524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1525 prefix=$ac_optarg ;;
1526
1527 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1528 | --program-pre | --program-pr | --program-p)
1529 ac_prev=program_prefix ;;
1530 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1531 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1532 program_prefix=$ac_optarg ;;
1533
1534 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1535 | --program-suf | --program-su | --program-s)
1536 ac_prev=program_suffix ;;
1537 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1538 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1539 program_suffix=$ac_optarg ;;
1540
1541 -program-transform-name | --program-transform-name \
1542 | --program-transform-nam | --program-transform-na \
1543 | --program-transform-n | --program-transform- \
1544 | --program-transform | --program-transfor \
1545 | --program-transfo | --program-transf \
1546 | --program-trans | --program-tran \
1547 | --progr-tra | --program-tr | --program-t)
1548 ac_prev=program_transform_name ;;
1549 -program-transform-name=* | --program-transform-name=* \
1550 | --program-transform-nam=* | --program-transform-na=* \
1551 | --program-transform-n=* | --program-transform-=* \
1552 | --program-transform=* | --program-transfor=* \
1553 | --program-transfo=* | --program-transf=* \
1554 | --program-trans=* | --program-tran=* \
1555 | --progr-tra=* | --program-tr=* | --program-t=*)
1556 program_transform_name=$ac_optarg ;;
1557
1558 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1559 ac_prev=pdfdir ;;
1560 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1561 pdfdir=$ac_optarg ;;
1562
1563 -psdir | --psdir | --psdi | --psd | --ps)
1564 ac_prev=psdir ;;
1565 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1566 psdir=$ac_optarg ;;
1567
1568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569 | -silent | --silent | --silen | --sile | --sil)
1570 silent=yes ;;
1571
1572 -runstatedir | --runstatedir | --runstatedi | --runstated \
1573 | --runstate | --runstat | --runsta | --runst | --runs \
1574 | --run | --ru | --r)
1575 ac_prev=runstatedir ;;
1576 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1577 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1578 | --run=* | --ru=* | --r=*)
1579 runstatedir=$ac_optarg ;;
1580
1581 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1582 ac_prev=sbindir ;;
1583 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1584 | --sbi=* | --sb=*)
1585 sbindir=$ac_optarg ;;
1586
1587 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1588 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1589 | --sharedst | --shareds | --shared | --share | --shar \
1590 | --sha | --sh)
1591 ac_prev=sharedstatedir ;;
1592 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1593 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1594 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1595 | --sha=* | --sh=*)
1596 sharedstatedir=$ac_optarg ;;
1597
1598 -site | --site | --sit)
1599 ac_prev=site ;;
1600 -site=* | --site=* | --sit=*)
1601 site=$ac_optarg ;;
1602
1603 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1604 ac_prev=srcdir ;;
1605 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1606 srcdir=$ac_optarg ;;
1607
1608 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1609 | --syscon | --sysco | --sysc | --sys | --sy)
1610 ac_prev=sysconfdir ;;
1611 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1612 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1613 sysconfdir=$ac_optarg ;;
1614
1615 -target | --target | --targe | --targ | --tar | --ta | --t)
1616 ac_prev=target_alias ;;
1617 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1618 target_alias=$ac_optarg ;;
1619
1620 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1621 verbose=yes ;;
1622
1623 -version | --version | --versio | --versi | --vers | -V)
1624 ac_init_version=: ;;
1625
1626 -with-* | --with-*)
1627 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1628 # Reject names that are not valid shell variable names.
1629 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1630 as_fn_error $? "invalid package name: \`$ac_useropt'"
1631 ac_useropt_orig=$ac_useropt
1632 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1633 case $ac_user_opts in
1634 *"
1635"with_$ac_useropt"
1636"*) ;;
1637 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1638 ac_unrecognized_sep=', ';;
1639 esac
1640 eval with_$ac_useropt=\$ac_optarg ;;
1641
1642 -without-* | --without-*)
1643 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1644 # Reject names that are not valid shell variable names.
1645 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1646 as_fn_error $? "invalid package name: \`$ac_useropt'"
1647 ac_useropt_orig=$ac_useropt
1648 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1649 case $ac_user_opts in
1650 *"
1651"with_$ac_useropt"
1652"*) ;;
1653 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1654 ac_unrecognized_sep=', ';;
1655 esac
1656 eval with_$ac_useropt=no ;;
1657
1658 --x)
1659 # Obsolete; use --with-x.
1660 with_x=yes ;;
1661
1662 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1663 | --x-incl | --x-inc | --x-in | --x-i)
1664 ac_prev=x_includes ;;
1665 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1666 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1667 x_includes=$ac_optarg ;;
1668
1669 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1670 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1671 ac_prev=x_libraries ;;
1672 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1673 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1674 x_libraries=$ac_optarg ;;
1675
1676 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1677Try \`$0 --help' for more information"
1678 ;;
1679
1680 *=*)
1681 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1682 # Reject names that are not valid shell variable names.
1683 case $ac_envvar in #(
1684 '' | [0-9]* | *[!_$as_cr_alnum]* )
1685 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1686 esac
1687 eval $ac_envvar=\$ac_optarg
1688 export $ac_envvar ;;
1689
1690 *)
1691 # FIXME: should be removed in autoconf 3.0.
1692 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1693 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1694 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1695 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1696 ;;
1697
1698 esac
1699done
1700
1701if test -n "$ac_prev"; then
1702 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1703 as_fn_error $? "missing argument to $ac_option"
1704fi
1705
1706if test -n "$ac_unrecognized_opts"; then
1707 case $enable_option_checking in
1708 no) ;;
1709 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1710 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1711 esac
1712fi
1713
1714# Check all directory arguments for consistency.
1715for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1716 datadir sysconfdir sharedstatedir localstatedir includedir \
1717 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1718 libdir localedir mandir runstatedir
1719do
1720 eval ac_val=\$$ac_var
1721 # Remove trailing slashes.
1722 case $ac_val in
1723 */ )
1724 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1725 eval $ac_var=\$ac_val;;
1726 esac
1727 # Be sure to have absolute directory names.
1728 case $ac_val in
1729 [\\/$]* | ?:[\\/]* ) continue;;
1730 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1731 esac
1732 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1733done
1734
1735# There might be people who depend on the old broken behavior: `$host'
1736# used to hold the argument of --host etc.
1737# FIXME: To remove some day.
1738build=$build_alias
1739host=$host_alias
1740target=$target_alias
1741
1742# FIXME: To remove some day.
1743if test "x$host_alias" != x; then
1744 if test "x$build_alias" = x; then
1745 cross_compiling=maybe
1746 elif test "x$build_alias" != "x$host_alias"; then
1747 cross_compiling=yes
1748 fi
1749fi
1750
1751ac_tool_prefix=
1752test -n "$host_alias" && ac_tool_prefix=$host_alias-
1753
1754test "$silent" = yes && exec 6>/dev/null
1755
1756
1757ac_pwd=`pwd` && test -n "$ac_pwd" &&
1758ac_ls_di=`ls -di .` &&
1759ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1760 as_fn_error $? "working directory cannot be determined"
1761test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1762 as_fn_error $? "pwd does not report name of working directory"
1763
1764
1765# Find the source files, if location was not specified.
1766if test -z "$srcdir"; then
1767 ac_srcdir_defaulted=yes
1768 # Try the directory containing this script, then the parent directory.
1769 ac_confdir=`$as_dirname -- "$as_myself" ||
1770$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1771 X"$as_myself" : 'X\(//\)[^/]' \| \
1772 X"$as_myself" : 'X\(//\)$' \| \
1773 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1774printf "%s\n" X"$as_myself" |
1775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1776 s//\1/
1777 q
1778 }
1779 /^X\(\/\/\)[^/].*/{
1780 s//\1/
1781 q
1782 }
1783 /^X\(\/\/\)$/{
1784 s//\1/
1785 q
1786 }
1787 /^X\(\/\).*/{
1788 s//\1/
1789 q
1790 }
1791 s/.*/./; q'`
1792 srcdir=$ac_confdir
1793 if test ! -r "$srcdir/$ac_unique_file"; then
1794 srcdir=..
1795 fi
1796else
1797 ac_srcdir_defaulted=no
1798fi
1799if test ! -r "$srcdir/$ac_unique_file"; then
1800 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1801 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1802fi
1803ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1804ac_abs_confdir=`(
1805 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1806 pwd)`
1807# When building in place, set srcdir=.
1808if test "$ac_abs_confdir" = "$ac_pwd"; then
1809 srcdir=.
1810fi
1811# Remove unnecessary trailing slashes from srcdir.
1812# Double slashes in file names in object file debugging info
1813# mess up M-x gdb in Emacs.
1814case $srcdir in
1815*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1816esac
1817for ac_var in $ac_precious_vars; do
1818 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_env_${ac_var}_value=\$${ac_var}
1820 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1821 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1822done
1823
1824#
1825# Report the --help message.
1826#
1827if test "$ac_init_help" = "long"; then
1828 # Omit some internal or obsolete options to make the list less imposing.
1829 # This message is too long to be a string in the A/UX 3.1 sh.
1830 cat <<_ACEOF
1831\`configure' configures curl - to adapt to many kinds of systems.
1832
1833Usage: $0 [OPTION]... [VAR=VALUE]...
1834
1835To assign environment variables (e.g., CC, CFLAGS...), specify them as
1836VAR=VALUE. See below for descriptions of some of the useful variables.
1837
1838Defaults for the options are specified in brackets.
1839
1840Configuration:
1841 -h, --help display this help and exit
1842 --help=short display options specific to this package
1843 --help=recursive display the short help of all the included packages
1844 -V, --version display version information and exit
1845 -q, --quiet, --silent do not print \`checking ...' messages
1846 --cache-file=FILE cache test results in FILE [disabled]
1847 -C, --config-cache alias for \`--cache-file=config.cache'
1848 -n, --no-create do not create output files
1849 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1850
1851Installation directories:
1852 --prefix=PREFIX install architecture-independent files in PREFIX
1853 [$ac_default_prefix]
1854 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1855 [PREFIX]
1856
1857By default, \`make install' will install all the files in
1858\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1859an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1860for instance \`--prefix=\$HOME'.
1861
1862For better control, use the options below.
1863
1864Fine tuning of the installation directories:
1865 --bindir=DIR user executables [EPREFIX/bin]
1866 --sbindir=DIR system admin executables [EPREFIX/sbin]
1867 --libexecdir=DIR program executables [EPREFIX/libexec]
1868 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1869 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1870 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1871 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1872 --libdir=DIR object code libraries [EPREFIX/lib]
1873 --includedir=DIR C header files [PREFIX/include]
1874 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1875 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1876 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1877 --infodir=DIR info documentation [DATAROOTDIR/info]
1878 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1879 --mandir=DIR man documentation [DATAROOTDIR/man]
1880 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1881 --htmldir=DIR html documentation [DOCDIR]
1882 --dvidir=DIR dvi documentation [DOCDIR]
1883 --pdfdir=DIR pdf documentation [DOCDIR]
1884 --psdir=DIR ps documentation [DOCDIR]
1885_ACEOF
1886
1887 cat <<\_ACEOF
1888
1889Program names:
1890 --program-prefix=PREFIX prepend PREFIX to installed program names
1891 --program-suffix=SUFFIX append SUFFIX to installed program names
1892 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1893
1894System types:
1895 --build=BUILD configure for building on BUILD [guessed]
1896 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1897_ACEOF
1898fi
1899
1900if test -n "$ac_init_help"; then
1901 case $ac_init_help in
1902 short | recursive ) echo "Configuration of curl -:";;
1903 esac
1904 cat <<\_ACEOF
1905
1906Optional Features:
1907 --disable-option-checking ignore unrecognized --enable/--with options
1908 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1909 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1910 --enable-maintainer-mode
1911 enable make rules and dependencies not useful (and
1912 sometimes confusing) to the casual installer
1913 --enable-silent-rules less verbose build output (undo: "make V=1")
1914 --disable-silent-rules verbose build output (undo: "make V=0")
1915 --enable-debug Enable debug build options
1916 --disable-debug Disable debug build options
1917 --enable-optimize Enable compiler optimizations
1918 --disable-optimize Disable compiler optimizations
1919 --enable-warnings Enable strict compiler warnings
1920 --disable-warnings Disable strict compiler warnings
1921 --enable-werror Enable compiler warnings as errors
1922 --disable-werror Disable compiler warnings as errors
1923 --enable-curldebug Enable curl debug memory tracking
1924 --disable-curldebug Disable curl debug memory tracking
1925 --enable-symbol-hiding Enable hiding of library internal symbols
1926 --disable-symbol-hiding Disable hiding of library internal symbols
1927 --enable-ares[=PATH] Enable c-ares for DNS lookups
1928 --disable-ares Disable c-ares for DNS lookups
1929 --disable-rt disable dependency on -lrt
1930 --enable-ech Enable ECH support
1931 --disable-ech Disable ECH support
1932 --enable-code-coverage Provide code coverage
1933 --enable-dependency-tracking
1934 do not reject slow dependency extractors
1935 --disable-dependency-tracking
1936 speeds up one-time build
1937 --disable-largefile omit support for large files
1938 --enable-shared[=PKGS] build shared libraries [default=yes]
1939 --enable-static[=PKGS] build static libraries [default=yes]
1940 --enable-fast-install[=PKGS]
1941 optimize for fast installation [default=yes]
1942 --disable-libtool-lock avoid locking (might break parallel builds)
1943 --enable-http Enable HTTP support
1944 --disable-http Disable HTTP support
1945 --enable-ftp Enable FTP support
1946 --disable-ftp Disable FTP support
1947 --enable-file Enable FILE support
1948 --disable-file Disable FILE support
1949 --enable-ldap Enable LDAP support
1950 --disable-ldap Disable LDAP support
1951 --enable-ldaps Enable LDAPS support
1952 --disable-ldaps Disable LDAPS support
1953 --enable-rtsp Enable RTSP support
1954 --disable-rtsp Disable RTSP support
1955 --enable-proxy Enable proxy support
1956 --disable-proxy Disable proxy support
1957 --enable-dict Enable DICT support
1958 --disable-dict Disable DICT support
1959 --enable-telnet Enable TELNET support
1960 --disable-telnet Disable TELNET support
1961 --enable-tftp Enable TFTP support
1962 --disable-tftp Disable TFTP support
1963 --enable-pop3 Enable POP3 support
1964 --disable-pop3 Disable POP3 support
1965 --enable-imap Enable IMAP support
1966 --disable-imap Disable IMAP support
1967 --enable-smb Enable SMB/CIFS support
1968 --disable-smb Disable SMB/CIFS support
1969 --enable-smtp Enable SMTP support
1970 --disable-smtp Disable SMTP support
1971 --enable-gopher Enable Gopher support
1972 --disable-gopher Disable Gopher support
1973 --enable-mqtt Enable MQTT support
1974 --disable-mqtt Disable MQTT support
1975 --enable-manual Enable built-in manual
1976 --disable-manual Disable built-in manual
1977 --enable-libcurl-option Enable --libcurl C code generation support
1978 --disable-libcurl-option
1979 Disable --libcurl C code generation support
1980 --enable-libgcc use libgcc when linking
1981 --enable-ipv6 Enable IPv6 (with IPv4) support
1982 --disable-ipv6 Disable IPv6 support
1983 --enable-openssl-auto-load-config
1984 Enable automatic loading of OpenSSL configuration
1985 --disable-openssl-auto-load-config
1986 Disable automatic loading of OpenSSL configuration
1987 --enable-versioned-symbols
1988 Enable versioned symbols in shared library
1989 --disable-versioned-symbols
1990 Disable versioned symbols in shared library
1991 --enable-threaded-resolver
1992 Enable threaded resolver
1993 --disable-threaded-resolver
1994 Disable threaded resolver
1995 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1996 --disable-pthreads Disable POSIX threads
1997 --enable-verbose Enable verbose strings
1998 --disable-verbose Disable verbose strings
1999 --enable-sspi Enable SSPI
2000 --disable-sspi Disable SSPI
2001 --enable-crypto-auth Enable cryptographic authentication
2002 --disable-crypto-auth Disable cryptographic authentication
2003 --enable-ntlm Enable NTLM support
2004 --disable-ntlm Disable NTLM support
2005 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2006 helper, where FILE is ntlm_auth's absolute filename
2007 (default: /usr/bin/ntlm_auth)
2008 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
2009 helper
2010 --enable-tls-srp Enable TLS-SRP authentication
2011 --disable-tls-srp Disable TLS-SRP authentication
2012 --enable-unix-sockets Enable Unix domain sockets
2013 --disable-unix-sockets Disable Unix domain sockets
2014 --enable-cookies Enable cookies support
2015 --disable-cookies Disable cookies support
2016 --enable-socketpair Enable socketpair support
2017 --disable-socketpair Disable socketpair support
2018 --enable-http-auth Enable HTTP authentication support
2019 --disable-http-auth Disable HTTP authentication support
2020 --enable-doh Enable DoH support
2021 --disable-doh Disable DoH support
2022 --enable-mime Enable mime API support
2023 --disable-mime Disable mime API support
2024 --enable-dateparse Enable date parsing
2025 --disable-dateparse Disable date parsing
2026 --enable-netrc Enable netrc parsing
2027 --disable-netrc Disable netrc parsing
2028 --enable-progress-meter Enable progress-meter
2029 --disable-progress-meter
2030 Disable progress-meter
2031 --enable-dnsshuffle Enable DNS shuffling
2032 --disable-dnsshuffle Disable DNS shuffling
2033 --enable-get-easy-options
2034 Enable curl_easy_options
2035 --disable-get-easy-options
2036 Disable curl_easy_options
2037 --enable-alt-svc Enable alt-svc support
2038 --disable-alt-svc Disable alt-svc support
2039 --enable-headers-api Enable headers-api support
2040 --disable-headers-api Disable headers-api support
2041 --enable-hsts Enable HSTS support
2042 --disable-hsts Disable HSTS support
2043 --enable-websockets Enable WebSockets support
2044 --disable-websockets Disable WebSockets support
2045
2046Optional Packages:
2047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2049 --with-schannel enable Windows native SSL/TLS
2050 --with-secure-transport enable Apple OS native SSL/TLS
2051 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
2052 --with-ssl=PATH old version of --with-openssl
2053 --without-ssl build without any TLS library
2054 --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL
2055 installation (default: /usr/local/ssl); when
2056 possible, set the PKG_CONFIG_PATH environment
2057 variable instead of using this option
2058 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
2059 installation root
2060 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2061 installation root
2062 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2063 installation root (default: system lib default)
2064 --with-bearssl=PATH where to look for BearSSL, PATH points to the
2065 installation root
2066 --with-rustls=PATH where to look for rustls, PATH points to the
2067 installation root
2068 --with-nss-deprecated confirm you realize NSS is going away
2069 --with-nss=PATH where to look for NSS, PATH points to the
2070 installation root
2071
2072 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2073 both]
2074 --with-aix-soname=aix|svr4|both
2075 shared library versioning (aka "SONAME") variant to
2076 provide on AIX, [default=aix].
2077 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2078 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2079 compiler's sysroot if not specified).
2080 --with-hyper=PATH Enable hyper usage
2081 --without-hyper Disable hyper usage
2082 --with-zlib=PATH search for zlib in PATH
2083 --without-zlib disable use of zlib
2084 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
2085 installation; when possible, set the PKG_CONFIG_PATH
2086 environment variable instead of using this option
2087 --without-brotli disable BROTLI
2088 --with-zstd=PATH Where to look for libzstd, PATH points to the
2089 libzstd installation; when possible, set the
2090 PKG_CONFIG_PATH environment variable instead of
2091 using this option
2092 --without-zstd disable libzstd
2093 --with-ldap-lib=libname Specify name of ldap lib file
2094 --with-lber-lib=libname Specify name of lber lib file
2095 --with-gssapi-includes=DIR
2096 Specify location of GSS-API headers
2097 --with-gssapi-libs=DIR Specify location of GSS-API libs
2098 --with-gssapi=DIR Where to look for GSS-API
2099 --with-default-ssl-backend=NAME
2100 Use NAME as default SSL backend
2101 --without-default-ssl-backend
2102 Use implicit default SSL backend
2103 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
2104 --with-random=FILE read randomness from FILE (default=/dev/urandom)
2105 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2106 /etc/ca-bundle.crt)
2107 --without-ca-bundle Don't use a default CA bundle
2108 --with-ca-path=DIRECTORY
2109 Path to a directory containing CA certificates
2110 stored individually, with their filenames in a hash
2111 format. This option can be used with the OpenSSL,
2112 GnuTLS and mbedTLS backends. Refer to OpenSSL
2113 c_rehash for details. (example: /etc/certificates)
2114 --without-ca-path Don't use a default CA path
2115 --with-ca-fallback Use the built in CA store of the SSL library
2116 --without-ca-fallback Don't use the built in CA store of the SSL library
2117 --without-libpsl disable support for libpsl cookie checking
2118 --without-libgsasl disable libgsasl support for SCRAM
2119 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2120 libssh2 installation; when possible, set the
2121 PKG_CONFIG_PATH environment variable instead of
2122 using this option
2123 --with-libssh2 enable libssh2
2124 --with-libssh=PATH Where to look for libssh, PATH points to the libssh
2125 installation; when possible, set the PKG_CONFIG_PATH
2126 environment variable instead of using this option
2127 --with-libssh enable libssh
2128 --with-wolfssh=PATH Where to look for wolfssh, PATH points to the
2129 wolfSSH installation; when possible, set the
2130 PKG_CONFIG_PATH environment variable instead of
2131 using this option
2132 --with-wolfssh enable wolfssh
2133 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2134 LIBRTMP installation; when possible, set the
2135 PKG_CONFIG_PATH environment variable instead of
2136 using this option
2137 --without-librtmp disable LIBRTMP
2138 --with-winidn=PATH enable Windows native IDN
2139 --without-winidn disable Windows native IDN
2140 --with-libidn2=PATH Enable libidn2 usage
2141 --without-libidn2 Disable libidn2 usage
2142 --with-nghttp2=PATH Enable nghttp2 usage
2143 --without-nghttp2 Disable nghttp2 usage
2144 --with-ngtcp2=PATH Enable ngtcp2 usage
2145 --without-ngtcp2 Disable ngtcp2 usage
2146 --with-nghttp3=PATH Enable nghttp3 usage
2147 --without-nghttp3 Disable nghttp3 usage
2148 --with-quiche=PATH Enable quiche usage
2149 --without-quiche Disable quiche usage
2150 --with-msh3=PATH Enable msh3 usage
2151 --without-msh3 Disable msh3 usage
2152 --with-zsh-functions-dir=PATH
2153 Install zsh completions to PATH
2154 --without-zsh-functions-dir
2155 Do not install zsh completions
2156 --with-fish-functions-dir=PATH
2157 Install fish completions to PATH
2158 --without-fish-functions-dir
2159 Do not install fish completions
2160 --with-n64-deprecated confirm you realize support for systems without 64
2161 bit data types is going away
2162
2163Some influential environment variables:
2164 CC C compiler command
2165 CFLAGS C compiler flags
2166 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2167 nonstandard directory <lib dir>
2168 LIBS libraries to pass to the linker, e.g. -l<library>
2169 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2170 you have headers in a nonstandard directory <include dir>
2171 CPP C preprocessor
2172 LT_SYS_LIBRARY_PATH
2173 User-defined run-time library search path.
2174
2175Use these variables to override the choices made by `configure' or to help
2176it to find libraries and programs with nonstandard names/locations.
2177
2178Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2179_ACEOF
2180ac_status=$?
2181fi
2182
2183if test "$ac_init_help" = "recursive"; then
2184 # If there are subdirs, report their specific --help.
2185 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2186 test -d "$ac_dir" ||
2187 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2188 continue
2189 ac_builddir=.
2190
2191case "$ac_dir" in
2192.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2193*)
2194 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2195 # A ".." for each directory in $ac_dir_suffix.
2196 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2197 case $ac_top_builddir_sub in
2198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2200 esac ;;
2201esac
2202ac_abs_top_builddir=$ac_pwd
2203ac_abs_builddir=$ac_pwd$ac_dir_suffix
2204# for backward compatibility:
2205ac_top_builddir=$ac_top_build_prefix
2206
2207case $srcdir in
2208 .) # We are building in place.
2209 ac_srcdir=.
2210 ac_top_srcdir=$ac_top_builddir_sub
2211 ac_abs_top_srcdir=$ac_pwd ;;
2212 [\\/]* | ?:[\\/]* ) # Absolute name.
2213 ac_srcdir=$srcdir$ac_dir_suffix;
2214 ac_top_srcdir=$srcdir
2215 ac_abs_top_srcdir=$srcdir ;;
2216 *) # Relative name.
2217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2218 ac_top_srcdir=$ac_top_build_prefix$srcdir
2219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2220esac
2221ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2222
2223 cd "$ac_dir" || { ac_status=$?; continue; }
2224 # Check for configure.gnu first; this name is used for a wrapper for
2225 # Metaconfig's "Configure" on case-insensitive file systems.
2226 if test -f "$ac_srcdir/configure.gnu"; then
2227 echo &&
2228 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2229 elif test -f "$ac_srcdir/configure"; then
2230 echo &&
2231 $SHELL "$ac_srcdir/configure" --help=recursive
2232 else
2233 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2234 fi || ac_status=$?
2235 cd "$ac_pwd" || { ac_status=$?; break; }
2236 done
2237fi
2238
2239test -n "$ac_init_help" && exit $ac_status
2240if $ac_init_version; then
2241 cat <<\_ACEOF
2242curl configure -
2243generated by GNU Autoconf 2.71
2244
2245Copyright (C) 2021 Free Software Foundation, Inc.
2246This configure script is free software; the Free Software Foundation
2247gives unlimited permission to copy, distribute and modify it.
2248
2249Copyright (c) 1998 - 2022 Daniel Stenberg, <daniel@haxx.se>
2250This configure script may be copied, distributed and modified under the
2251terms of the curl license; see COPYING for more details
2252_ACEOF
2253 exit
2254fi
2255
2256## ------------------------ ##
2257## Autoconf initialization. ##
2258## ------------------------ ##
2259
2260# ac_fn_c_try_compile LINENO
2261# --------------------------
2262# Try to compile conftest.$ac_ext, and return whether this succeeded.
2263ac_fn_c_try_compile ()
2264{
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 rm -f conftest.$ac_objext conftest.beam
2267 if { { ac_try="$ac_compile"
2268case "(($ac_try" in
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2271esac
2272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273printf "%s\n" "$ac_try_echo"; } >&5
2274 (eval "$ac_compile") 2>conftest.err
2275 ac_status=$?
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2280 fi
2281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } && {
2283 test -z "$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2285 } && test -s conftest.$ac_objext
2286then :
2287 ac_retval=0
2288else $as_nop
2289 printf "%s\n" "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
2292 ac_retval=1
2293fi
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 as_fn_set_status $ac_retval
2296
2297} # ac_fn_c_try_compile
2298
2299# ac_fn_c_try_cpp LINENO
2300# ----------------------
2301# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2302ac_fn_c_try_cpp ()
2303{
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 if { { ac_try="$ac_cpp conftest.$ac_ext"
2306case "(($ac_try" in
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2309esac
2310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311printf "%s\n" "$ac_try_echo"; } >&5
2312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2313 ac_status=$?
2314 if test -s conftest.err; then
2315 grep -v '^ *+' conftest.err >conftest.er1
2316 cat conftest.er1 >&5
2317 mv -f conftest.er1 conftest.err
2318 fi
2319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } > conftest.i && {
2321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2322 test ! -s conftest.err
2323 }
2324then :
2325 ac_retval=0
2326else $as_nop
2327 printf "%s\n" "$as_me: failed program was:" >&5
2328sed 's/^/| /' conftest.$ac_ext >&5
2329
2330 ac_retval=1
2331fi
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status $ac_retval
2334
2335} # ac_fn_c_try_cpp
2336
2337# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2338# -------------------------------------------------------
2339# Tests whether HEADER exists and can be compiled using the include files in
2340# INCLUDES, setting the cache variable VAR accordingly.
2341ac_fn_c_check_header_compile ()
2342{
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345printf %s "checking for $2... " >&6; }
2346if eval test \${$3+y}
2347then :
2348 printf %s "(cached) " >&6
2349else $as_nop
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351/* end confdefs.h. */
2352$4
2353#include <$2>
2354_ACEOF
2355if ac_fn_c_try_compile "$LINENO"
2356then :
2357 eval "$3=yes"
2358else $as_nop
2359 eval "$3=no"
2360fi
2361rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2362fi
2363eval ac_res=\$$3
2364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365printf "%s\n" "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367
2368} # ac_fn_c_check_header_compile
2369
2370# ac_fn_c_try_link LINENO
2371# -----------------------
2372# Try to link conftest.$ac_ext, and return whether this succeeded.
2373ac_fn_c_try_link ()
2374{
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2377 if { { ac_try="$ac_link"
2378case "(($ac_try" in
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2381esac
2382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2383printf "%s\n" "$ac_try_echo"; } >&5
2384 (eval "$ac_link") 2>conftest.err
2385 ac_status=$?
2386 if test -s conftest.err; then
2387 grep -v '^ *+' conftest.err >conftest.er1
2388 cat conftest.er1 >&5
2389 mv -f conftest.er1 conftest.err
2390 fi
2391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2392 test $ac_status = 0; } && {
2393 test -z "$ac_c_werror_flag" ||
2394 test ! -s conftest.err
2395 } && test -s conftest$ac_exeext && {
2396 test "$cross_compiling" = yes ||
2397 test -x conftest$ac_exeext
2398 }
2399then :
2400 ac_retval=0
2401else $as_nop
2402 printf "%s\n" "$as_me: failed program was:" >&5
2403sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_retval=1
2406fi
2407 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2408 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2409 # interfere with the next link command; also delete a directory that is
2410 # left behind by Apple's compiler. We do this before executing the actions.
2411 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 as_fn_set_status $ac_retval
2414
2415} # ac_fn_c_try_link
2416
2417# ac_fn_c_check_func LINENO FUNC VAR
2418# ----------------------------------
2419# Tests whether FUNC exists, setting the cache variable VAR accordingly
2420ac_fn_c_check_func ()
2421{
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424printf %s "checking for $2... " >&6; }
2425if eval test \${$3+y}
2426then :
2427 printf %s "(cached) " >&6
2428else $as_nop
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430/* end confdefs.h. */
2431
2432#define $2 innocuous_$2
2433#ifdef __STDC__
2434# include <limits.h>
2435#else
2436# include <assert.h>
2437#endif
2438#undef $2
2439#ifdef __cplusplus
2440extern "C"
2441#endif
2442char $2 ();
2443#if defined __stub_$2 || defined __stub___$2
2444choke me
2445#endif
2446
2447int main (void)
2448{
2449return $2 ();
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454if ac_fn_c_try_link "$LINENO"
2455then :
2456 eval "$3=yes"
2457else $as_nop
2458 eval "$3=no"
2459fi
2460rm -f core conftest.err conftest.$ac_objext conftest.beam \
2461 conftest$ac_exeext conftest.$ac_ext
2462fi
2463eval ac_res=\$$3
2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465printf "%s\n" "$ac_res" >&6; }
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2467
2468} # ac_fn_c_check_func
2469
2470# ac_fn_c_try_run LINENO
2471# ----------------------
2472# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2473# executables *can* be run.
2474ac_fn_c_try_run ()
2475{
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 if { { ac_try="$ac_link"
2478case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2481esac
2482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483printf "%s\n" "$ac_try_echo"; } >&5
2484 (eval "$ac_link") 2>&5
2485 ac_status=$?
2486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2488 { { case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2491esac
2492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493printf "%s\n" "$ac_try_echo"; } >&5
2494 (eval "$ac_try") 2>&5
2495 ac_status=$?
2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; }; }
2498then :
2499 ac_retval=0
2500else $as_nop
2501 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2502 printf "%s\n" "$as_me: failed program was:" >&5
2503sed 's/^/| /' conftest.$ac_ext >&5
2504
2505 ac_retval=$ac_status
2506fi
2507 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2509 as_fn_set_status $ac_retval
2510
2511} # ac_fn_c_try_run
2512
2513# ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2514# -------------------------------------------------------
2515# Tests whether TYPE exists after having included INCLUDES, setting cache
2516# variable VAR accordingly.
2517ac_fn_c_check_type ()
2518{
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521printf %s "checking for $2... " >&6; }
2522if eval test \${$3+y}
2523then :
2524 printf %s "(cached) " >&6
2525else $as_nop
2526 eval "$3=no"
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528/* end confdefs.h. */
2529$4
2530int main (void)
2531{
2532if (sizeof ($2))
2533 return 0;
2534 ;
2535 return 0;
2536}
2537_ACEOF
2538if ac_fn_c_try_compile "$LINENO"
2539then :
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541/* end confdefs.h. */
2542$4
2543int main (void)
2544{
2545if (sizeof (($2)))
2546 return 0;
2547 ;
2548 return 0;
2549}
2550_ACEOF
2551if ac_fn_c_try_compile "$LINENO"
2552then :
2553
2554else $as_nop
2555 eval "$3=yes"
2556fi
2557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2558fi
2559rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2560fi
2561eval ac_res=\$$3
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563printf "%s\n" "$ac_res" >&6; }
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2565
2566} # ac_fn_c_check_type
2567
2568# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2569# ------------------------------------------------------------------
2570# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2571# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2572ac_fn_check_decl ()
2573{
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 as_decl_name=`echo $2|sed 's/ *(.*//'`
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2577printf %s "checking whether $as_decl_name is declared... " >&6; }
2578if eval test \${$3+y}
2579then :
2580 printf %s "(cached) " >&6
2581else $as_nop
2582 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2583 eval ac_save_FLAGS=\$$6
2584 as_fn_append $6 " $5"
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586/* end confdefs.h. */
2587$4
2588int main (void)
2589{
2590#ifndef $as_decl_name
2591#ifdef __cplusplus
2592 (void) $as_decl_use;
2593#else
2594 (void) $as_decl_name;
2595#endif
2596#endif
2597
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"
2603then :
2604 eval "$3=yes"
2605else $as_nop
2606 eval "$3=no"
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2609 eval $6=\$ac_save_FLAGS
2610
2611fi
2612eval ac_res=\$$3
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614printf "%s\n" "$ac_res" >&6; }
2615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2616
2617} # ac_fn_check_decl
2618
2619# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2620# ----------------------------------------------------
2621# Tries to find if the field MEMBER exists in type AGGR, after including
2622# INCLUDES, setting cache variable VAR accordingly.
2623ac_fn_c_check_member ()
2624{
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2627printf %s "checking for $2.$3... " >&6; }
2628if eval test \${$4+y}
2629then :
2630 printf %s "(cached) " >&6
2631else $as_nop
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633/* end confdefs.h. */
2634$5
2635int main (void)
2636{
2637static $2 ac_aggr;
2638if (ac_aggr.$3)
2639return 0;
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644if ac_fn_c_try_compile "$LINENO"
2645then :
2646 eval "$4=yes"
2647else $as_nop
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$5
2651int main (void)
2652{
2653static $2 ac_aggr;
2654if (sizeof ac_aggr.$3)
2655return 0;
2656 ;
2657 return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"
2661then :
2662 eval "$4=yes"
2663else $as_nop
2664 eval "$4=no"
2665fi
2666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2667fi
2668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2669fi
2670eval ac_res=\$$4
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2672printf "%s\n" "$ac_res" >&6; }
2673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2674
2675} # ac_fn_c_check_member
2676ac_configure_args_raw=
2677for ac_arg
2678do
2679 case $ac_arg in
2680 *\'*)
2681 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2682 esac
2683 as_fn_append ac_configure_args_raw " '$ac_arg'"
2684done
2685
2686case $ac_configure_args_raw in
2687 *$as_nl*)
2688 ac_safe_unquote= ;;
2689 *)
2690 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2691 ac_unsafe_a="$ac_unsafe_z#~"
2692 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2693 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2694esac
2695
2696cat >config.log <<_ACEOF
2697This file contains any messages produced by compilers while
2698running configure, to aid debugging if configure makes a mistake.
2699
2700It was created by curl $as_me -, which was
2701generated by GNU Autoconf 2.71. Invocation command line was
2702
2703 $ $0$ac_configure_args_raw
2704
2705_ACEOF
2706exec 5>>config.log
2707{
2708cat <<_ASUNAME
2709## --------- ##
2710## Platform. ##
2711## --------- ##
2712
2713hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717uname -v = `(uname -v) 2>/dev/null || echo unknown`
2718
2719/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2721
2722/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2729
2730_ASUNAME
2731
2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733for as_dir in $PATH
2734do
2735 IFS=$as_save_IFS
2736 case $as_dir in #(((
2737 '') as_dir=./ ;;
2738 */) ;;
2739 *) as_dir=$as_dir/ ;;
2740 esac
2741 printf "%s\n" "PATH: $as_dir"
2742 done
2743IFS=$as_save_IFS
2744
2745} >&5
2746
2747cat >&5 <<_ACEOF
2748
2749
2750## ----------- ##
2751## Core tests. ##
2752## ----------- ##
2753
2754_ACEOF
2755
2756
2757# Keep a trace of the command line.
2758# Strip out --no-create and --no-recursion so they do not pile up.
2759# Strip out --silent because we don't want to record it for future runs.
2760# Also quote any args containing shell meta-characters.
2761# Make two passes to allow for proper duplicate-argument suppression.
2762ac_configure_args=
2763ac_configure_args0=
2764ac_configure_args1=
2765ac_must_keep_next=false
2766for ac_pass in 1 2
2767do
2768 for ac_arg
2769 do
2770 case $ac_arg in
2771 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2773 | -silent | --silent | --silen | --sile | --sil)
2774 continue ;;
2775 *\'*)
2776 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2777 esac
2778 case $ac_pass in
2779 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2780 2)
2781 as_fn_append ac_configure_args1 " '$ac_arg'"
2782 if test $ac_must_keep_next = true; then
2783 ac_must_keep_next=false # Got value, back to normal.
2784 else
2785 case $ac_arg in
2786 *=* | --config-cache | -C | -disable-* | --disable-* \
2787 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2788 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2789 | -with-* | --with-* | -without-* | --without-* | --x)
2790 case "$ac_configure_args0 " in
2791 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2792 esac
2793 ;;
2794 -* ) ac_must_keep_next=true ;;
2795 esac
2796 fi
2797 as_fn_append ac_configure_args " '$ac_arg'"
2798 ;;
2799 esac
2800 done
2801done
2802{ ac_configure_args0=; unset ac_configure_args0;}
2803{ ac_configure_args1=; unset ac_configure_args1;}
2804
2805# When interrupted or exit'd, cleanup temporary files, and complete
2806# config.log. We remove comments because anyway the quotes in there
2807# would cause problems or look ugly.
2808# WARNING: Use '\'' to represent an apostrophe within the trap.
2809# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2810trap 'exit_status=$?
2811 # Sanitize IFS.
2812 IFS=" "" $as_nl"
2813 # Save into config.log some information that might help in debugging.
2814 {
2815 echo
2816
2817 printf "%s\n" "## ---------------- ##
2818## Cache variables. ##
2819## ---------------- ##"
2820 echo
2821 # The following way of writing the cache mishandles newlines in values,
2822(
2823 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2824 eval ac_val=\$$ac_var
2825 case $ac_val in #(
2826 *${as_nl}*)
2827 case $ac_var in #(
2828 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2829printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2830 esac
2831 case $ac_var in #(
2832 _ | IFS | as_nl) ;; #(
2833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2834 *) { eval $ac_var=; unset $ac_var;} ;;
2835 esac ;;
2836 esac
2837 done
2838 (set) 2>&1 |
2839 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2840 *${as_nl}ac_space=\ *)
2841 sed -n \
2842 "s/'\''/'\''\\\\'\'''\''/g;
2843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2844 ;; #(
2845 *)
2846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2847 ;;
2848 esac |
2849 sort
2850)
2851 echo
2852
2853 printf "%s\n" "## ----------------- ##
2854## Output variables. ##
2855## ----------------- ##"
2856 echo
2857 for ac_var in $ac_subst_vars
2858 do
2859 eval ac_val=\$$ac_var
2860 case $ac_val in
2861 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2862 esac
2863 printf "%s\n" "$ac_var='\''$ac_val'\''"
2864 done | sort
2865 echo
2866
2867 if test -n "$ac_subst_files"; then
2868 printf "%s\n" "## ------------------- ##
2869## File substitutions. ##
2870## ------------------- ##"
2871 echo
2872 for ac_var in $ac_subst_files
2873 do
2874 eval ac_val=\$$ac_var
2875 case $ac_val in
2876 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2877 esac
2878 printf "%s\n" "$ac_var='\''$ac_val'\''"
2879 done | sort
2880 echo
2881 fi
2882
2883 if test -s confdefs.h; then
2884 printf "%s\n" "## ----------- ##
2885## confdefs.h. ##
2886## ----------- ##"
2887 echo
2888 cat confdefs.h
2889 echo
2890 fi
2891 test "$ac_signal" != 0 &&
2892 printf "%s\n" "$as_me: caught signal $ac_signal"
2893 printf "%s\n" "$as_me: exit $exit_status"
2894 } >&5
2895 rm -f core *.core core.conftest.* &&
2896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2897 exit $exit_status
2898' 0
2899for ac_signal in 1 2 13 15; do
2900 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2901done
2902ac_signal=0
2903
2904# confdefs.h avoids OS command line length limits that DEFS can exceed.
2905rm -f -r conftest* confdefs.h
2906
2907printf "%s\n" "/* confdefs.h */" > confdefs.h
2908
2909# Predefined preprocessor variables.
2910
2911printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2912
2913printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2914
2915printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2916
2917printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2918
2919printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2920
2921printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2922
2923
2924# Let the site file select an alternate cache file if it wants to.
2925# Prefer an explicitly selected file to automatically selected ones.
2926if test -n "$CONFIG_SITE"; then
2927 ac_site_files="$CONFIG_SITE"
2928elif test "x$prefix" != xNONE; then
2929 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2930else
2931 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2932fi
2933
2934for ac_site_file in $ac_site_files
2935do
2936 case $ac_site_file in #(
2937 */*) :
2938 ;; #(
2939 *) :
2940 ac_site_file=./$ac_site_file ;;
2941esac
2942 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2944printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2945 sed 's/^/| /' "$ac_site_file" >&5
2946 . "$ac_site_file" \
2947 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2949as_fn_error $? "failed to load site script $ac_site_file
2950See \`config.log' for more details" "$LINENO" 5; }
2951 fi
2952done
2953
2954if test -r "$cache_file"; then
2955 # Some versions of bash will fail to source /dev/null (special files
2956 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2957 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2959printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2960 case $cache_file in
2961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2962 *) . "./$cache_file";;
2963 esac
2964 fi
2965else
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2967printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2968 >$cache_file
2969fi
2970
2971# Test code for whether the C compiler supports C89 (global declarations)
2972ac_c_conftest_c89_globals='
2973/* Does the compiler advertise C89 conformance?
2974 Do not test the value of __STDC__, because some compilers set it to 0
2975 while being otherwise adequately conformant. */
2976#if !defined __STDC__
2977# error "Compiler does not advertise C89 conformance"
2978#endif
2979
2980#include <stddef.h>
2981#include <stdarg.h>
2982struct stat;
2983/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2984struct buf { int x; };
2985struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2986static char *e (p, i)
2987 char **p;
2988 int i;
2989{
2990 return p[i];
2991}
2992static char *f (char * (*g) (char **, int), char **p, ...)
2993{
2994 char *s;
2995 va_list v;
2996 va_start (v,p);
2997 s = g (p, va_arg (v,int));
2998 va_end (v);
2999 return s;
3000}
3001
3002/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3003 function prototypes and stuff, but not \xHH hex character constants.
3004 These do not provoke an error unfortunately, instead are silently treated
3005 as an "x". The following induces an error, until -std is added to get
3006 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3007 array size at least. It is necessary to write \x00 == 0 to get something
3008 that is true only with -std. */
3009int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3010
3011/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3012 inside strings and character constants. */
3013#define FOO(x) '\''x'\''
3014int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3015
3016int test (int i, double x);
3017struct s1 {int (*f) (int a);};
3018struct s2 {int (*f) (double a);};
3019int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3020 int, int);'
3021
3022# Test code for whether the C compiler supports C89 (body of main).
3023ac_c_conftest_c89_main='
3024ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3025'
3026
3027# Test code for whether the C compiler supports C99 (global declarations)
3028ac_c_conftest_c99_globals='
3029// Does the compiler advertise C99 conformance?
3030#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3031# error "Compiler does not advertise C99 conformance"
3032#endif
3033
3034#include <stdbool.h>
3035extern int puts (const char *);
3036extern int printf (const char *, ...);
3037extern int dprintf (int, const char *, ...);
3038extern void *malloc (size_t);
3039
3040// Check varargs macros. These examples are taken from C99 6.10.3.5.
3041// dprintf is used instead of fprintf to avoid needing to declare
3042// FILE and stderr.
3043#define debug(...) dprintf (2, __VA_ARGS__)
3044#define showlist(...) puts (#__VA_ARGS__)
3045#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3046static void
3047test_varargs_macros (void)
3048{
3049 int x = 1234;
3050 int y = 5678;
3051 debug ("Flag");
3052 debug ("X = %d\n", x);
3053 showlist (The first, second, and third items.);
3054 report (x>y, "x is %d but y is %d", x, y);
3055}
3056
3057// Check long long types.
3058#define BIG64 18446744073709551615ull
3059#define BIG32 4294967295ul
3060#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3061#if !BIG_OK
3062 #error "your preprocessor is broken"
3063#endif
3064#if BIG_OK
3065#else
3066 #error "your preprocessor is broken"
3067#endif
3068static long long int bignum = -9223372036854775807LL;
3069static unsigned long long int ubignum = BIG64;
3070
3071struct incomplete_array
3072{
3073 int datasize;
3074 double data[];
3075};
3076
3077struct named_init {
3078 int number;
3079 const wchar_t *name;
3080 double average;
3081};
3082
3083typedef const char *ccp;
3084
3085static inline int
3086test_restrict (ccp restrict text)
3087{
3088 // See if C++-style comments work.
3089 // Iterate through items via the restricted pointer.
3090 // Also check for declarations in for loops.
3091 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3092 continue;
3093 return 0;
3094}
3095
3096// Check varargs and va_copy.
3097static bool
3098test_varargs (const char *format, ...)
3099{
3100 va_list args;
3101 va_start (args, format);
3102 va_list args_copy;
3103 va_copy (args_copy, args);
3104
3105 const char *str = "";
3106 int number = 0;
3107 float fnumber = 0;
3108
3109 while (*format)
3110 {
3111 switch (*format++)
3112 {
3113 case '\''s'\'': // string
3114 str = va_arg (args_copy, const char *);
3115 break;
3116 case '\''d'\'': // int
3117 number = va_arg (args_copy, int);
3118 break;
3119 case '\''f'\'': // float
3120 fnumber = va_arg (args_copy, double);
3121 break;
3122 default:
3123 break;
3124 }
3125 }
3126 va_end (args_copy);
3127 va_end (args);
3128
3129 return *str && number && fnumber;
3130}
3131'
3132
3133# Test code for whether the C compiler supports C99 (body of main).
3134ac_c_conftest_c99_main='
3135 // Check bool.
3136 _Bool success = false;
3137 success |= (argc != 0);
3138
3139 // Check restrict.
3140 if (test_restrict ("String literal") == 0)
3141 success = true;
3142 char *restrict newvar = "Another string";
3143
3144 // Check varargs.
3145 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3146 test_varargs_macros ();
3147
3148 // Check flexible array members.
3149 struct incomplete_array *ia =
3150 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3151 ia->datasize = 10;
3152 for (int i = 0; i < ia->datasize; ++i)
3153 ia->data[i] = i * 1.234;
3154
3155 // Check named initializers.
3156 struct named_init ni = {
3157 .number = 34,
3158 .name = L"Test wide string",
3159 .average = 543.34343,
3160 };
3161
3162 ni.number = 58;
3163
3164 int dynamic_array[ni.number];
3165 dynamic_array[0] = argv[0][0];
3166 dynamic_array[ni.number - 1] = 543;
3167
3168 // work around unused variable warnings
3169 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3170 || dynamic_array[ni.number - 1] != 543);
3171'
3172
3173# Test code for whether the C compiler supports C11 (global declarations)
3174ac_c_conftest_c11_globals='
3175// Does the compiler advertise C11 conformance?
3176#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3177# error "Compiler does not advertise C11 conformance"
3178#endif
3179
3180// Check _Alignas.
3181char _Alignas (double) aligned_as_double;
3182char _Alignas (0) no_special_alignment;
3183extern char aligned_as_int;
3184char _Alignas (0) _Alignas (int) aligned_as_int;
3185
3186// Check _Alignof.
3187enum
3188{
3189 int_alignment = _Alignof (int),
3190 int_array_alignment = _Alignof (int[100]),
3191 char_alignment = _Alignof (char)
3192};
3193_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3194
3195// Check _Noreturn.
3196int _Noreturn does_not_return (void) { for (;;) continue; }
3197
3198// Check _Static_assert.
3199struct test_static_assert
3200{
3201 int x;
3202 _Static_assert (sizeof (int) <= sizeof (long int),
3203 "_Static_assert does not work in struct");
3204 long int y;
3205};
3206
3207// Check UTF-8 literals.
3208#define u8 syntax error!
3209char const utf8_literal[] = u8"happens to be ASCII" "another string";
3210
3211// Check duplicate typedefs.
3212typedef long *long_ptr;
3213typedef long int *long_ptr;
3214typedef long_ptr long_ptr;
3215
3216// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3217struct anonymous
3218{
3219 union {
3220 struct { int i; int j; };
3221 struct { int k; long int l; } w;
3222 };
3223 int m;
3224} v1;
3225'
3226
3227# Test code for whether the C compiler supports C11 (body of main).
3228ac_c_conftest_c11_main='
3229 _Static_assert ((offsetof (struct anonymous, i)
3230 == offsetof (struct anonymous, w.k)),
3231 "Anonymous union alignment botch");
3232 v1.i = 2;
3233 v1.w.k = 5;
3234 ok |= v1.i != 5;
3235'
3236
3237# Test code for whether the C compiler supports C11 (complete).
3238ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3239${ac_c_conftest_c99_globals}
3240${ac_c_conftest_c11_globals}
3241
3242int
3243main (int argc, char **argv)
3244{
3245 int ok = 0;
3246 ${ac_c_conftest_c89_main}
3247 ${ac_c_conftest_c99_main}
3248 ${ac_c_conftest_c11_main}
3249 return ok;
3250}
3251"
3252
3253# Test code for whether the C compiler supports C99 (complete).
3254ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3255${ac_c_conftest_c99_globals}
3256
3257int
3258main (int argc, char **argv)
3259{
3260 int ok = 0;
3261 ${ac_c_conftest_c89_main}
3262 ${ac_c_conftest_c99_main}
3263 return ok;
3264}
3265"
3266
3267# Test code for whether the C compiler supports C89 (complete).
3268ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3269
3270int
3271main (int argc, char **argv)
3272{
3273 int ok = 0;
3274 ${ac_c_conftest_c89_main}
3275 return ok;
3276}
3277"
3278
3279as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3280as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3281as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3282as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3283as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3284as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3285as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3286as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3287as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3288
3289# Auxiliary files required by this configure script.
3290ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3291
3292# Locations in which to look for auxiliary files.
3293ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3294
3295# Search for a directory containing all of the required auxiliary files,
3296# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3297# If we don't find one directory that contains all the files we need,
3298# we report the set of missing files from the *first* directory in
3299# $ac_aux_dir_candidates and give up.
3300ac_missing_aux_files=""
3301ac_first_candidate=:
3302printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304as_found=false
3305for as_dir in $ac_aux_dir_candidates
3306do
3307 IFS=$as_save_IFS
3308 case $as_dir in #(((
3309 '') as_dir=./ ;;
3310 */) ;;
3311 *) as_dir=$as_dir/ ;;
3312 esac
3313 as_found=:
3314
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3316 ac_aux_dir_found=yes
3317 ac_install_sh=
3318 for ac_aux in $ac_aux_files
3319 do
3320 # As a special case, if "install-sh" is required, that requirement
3321 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3322 # and $ac_install_sh is set appropriately for whichever one is found.
3323 if test x"$ac_aux" = x"install-sh"
3324 then
3325 if test -f "${as_dir}install-sh"; then
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3327 ac_install_sh="${as_dir}install-sh -c"
3328 elif test -f "${as_dir}install.sh"; then
3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3330 ac_install_sh="${as_dir}install.sh -c"
3331 elif test -f "${as_dir}shtool"; then
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3333 ac_install_sh="${as_dir}shtool install -c"
3334 else
3335 ac_aux_dir_found=no
3336 if $ac_first_candidate; then
3337 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3338 else
3339 break
3340 fi
3341 fi
3342 else
3343 if test -f "${as_dir}${ac_aux}"; then
3344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3345 else
3346 ac_aux_dir_found=no
3347 if $ac_first_candidate; then
3348 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3349 else
3350 break
3351 fi
3352 fi
3353 fi
3354 done
3355 if test "$ac_aux_dir_found" = yes; then
3356 ac_aux_dir="$as_dir"
3357 break
3358 fi
3359 ac_first_candidate=false
3360
3361 as_found=false
3362done
3363IFS=$as_save_IFS
3364if $as_found
3365then :
3366
3367else $as_nop
3368 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3369fi
3370
3371
3372# These three variables are undocumented and unsupported,
3373# and are intended to be withdrawn in a future Autoconf release.
3374# They can cause serious problems if a builder's source tree is in a directory
3375# whose full name contains unusual characters.
3376if test -f "${ac_aux_dir}config.guess"; then
3377 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3378fi
3379if test -f "${ac_aux_dir}config.sub"; then
3380 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3381fi
3382if test -f "$ac_aux_dir/configure"; then
3383 ac_configure="$SHELL ${ac_aux_dir}configure"
3384fi
3385
3386# Check that the precious variables saved in the cache have kept the same
3387# value.
3388ac_cache_corrupted=false
3389for ac_var in $ac_precious_vars; do
3390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3391 eval ac_new_set=\$ac_env_${ac_var}_set
3392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3393 eval ac_new_val=\$ac_env_${ac_var}_value
3394 case $ac_old_set,$ac_new_set in
3395 set,)
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3397printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3398 ac_cache_corrupted=: ;;
3399 ,set)
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3401printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3402 ac_cache_corrupted=: ;;
3403 ,);;
3404 *)
3405 if test "x$ac_old_val" != "x$ac_new_val"; then
3406 # differences in whitespace do not lead to failure.
3407 ac_old_val_w=`echo x $ac_old_val`
3408 ac_new_val_w=`echo x $ac_new_val`
3409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3411printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3412 ac_cache_corrupted=:
3413 else
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3415printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3416 eval $ac_var=\$ac_old_val
3417 fi
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3419printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3421printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3422 fi;;
3423 esac
3424 # Pass precious variables to config.status.
3425 if test "$ac_new_set" = set; then
3426 case $ac_new_val in
3427 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3428 *) ac_arg=$ac_var=$ac_new_val ;;
3429 esac
3430 case " $ac_configure_args " in
3431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3433 esac
3434 fi
3435done
3436if $ac_cache_corrupted; then
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3440printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3441 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3442 and start over" "$LINENO" 5
3443fi
3444## -------------------- ##
3445## Main body of script. ##
3446## -------------------- ##
3447
3448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
3454
3455
3456
3457
3458
3459
3460# using curl-override.m4
3461
3462
3463
3464
3465
3466ac_config_headers="$ac_config_headers lib/curl_config.h"
3467
3468
3469
3470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3471printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3472 # Check whether --enable-maintainer-mode was given.
3473if test ${enable_maintainer_mode+y}
3474then :
3475 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3476else $as_nop
3477 USE_MAINTAINER_MODE=no
3478fi
3479
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3481printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3482 if test $USE_MAINTAINER_MODE = yes; then
3483 MAINTAINER_MODE_TRUE=
3484 MAINTAINER_MODE_FALSE='#'
3485else
3486 MAINTAINER_MODE_TRUE='#'
3487 MAINTAINER_MODE_FALSE=
3488fi
3489
3490 MAINT=$MAINTAINER_MODE_TRUE
3491
3492
3493# Check whether --enable-silent-rules was given.
3494if test ${enable_silent_rules+y}
3495then :
3496 enableval=$enable_silent_rules;
3497fi
3498
3499case $enable_silent_rules in # (((
3500 yes) AM_DEFAULT_VERBOSITY=0;;
3501 no) AM_DEFAULT_VERBOSITY=1;;
3502 *) AM_DEFAULT_VERBOSITY=0;;
3503esac
3504am_make=${MAKE-make}
3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3506printf %s "checking whether $am_make supports nested variables... " >&6; }
3507if test ${am_cv_make_support_nested_variables+y}
3508then :
3509 printf %s "(cached) " >&6
3510else $as_nop
3511 if printf "%s\n" 'TRUE=$(BAR$(V))
3512BAR0=false
3513BAR1=true
3514V=1
3515am__doit:
3516 @$(TRUE)
3517.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3518 am_cv_make_support_nested_variables=yes
3519else
3520 am_cv_make_support_nested_variables=no
3521fi
3522fi
3523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3524printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3525if test $am_cv_make_support_nested_variables = yes; then
3526 AM_V='$(V)'
3527 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3528else
3529 AM_V=$AM_DEFAULT_VERBOSITY
3530 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3531fi
3532AM_BACKSLASH='\'
3533
3534
3535
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3537printf %s "checking whether to enable debug build options... " >&6; }
3538 OPT_DEBUG_BUILD="default"
3539 # Check whether --enable-debug was given.
3540if test ${enable_debug+y}
3541then :
3542 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3543fi
3544
3545 case "$OPT_DEBUG_BUILD" in
3546 no)
3547 want_debug="no"
3548 ;;
3549 default)
3550 want_debug="no"
3551 ;;
3552 *)
3553 want_debug="yes"
3554
3555printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3556
3557 ;;
3558 esac
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3560printf "%s\n" "$want_debug" >&6; }
3561
3562
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3564printf %s "checking whether to enable compiler optimizer... " >&6; }
3565 OPT_COMPILER_OPTIMIZE="default"
3566 # Check whether --enable-optimize was given.
3567if test ${enable_optimize+y}
3568then :
3569 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3570fi
3571
3572 case "$OPT_COMPILER_OPTIMIZE" in
3573 no)
3574 want_optimize="no"
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576printf "%s\n" "no" >&6; }
3577 ;;
3578 default)
3579 if test "$want_debug" = "yes"; then
3580 want_optimize="assume_no"
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3582printf "%s\n" "(assumed) no" >&6; }
3583 else
3584 want_optimize="assume_yes"
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3586printf "%s\n" "(assumed) yes" >&6; }
3587 fi
3588 ;;
3589 *)
3590 want_optimize="yes"
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592printf "%s\n" "yes" >&6; }
3593 ;;
3594 esac
3595
3596
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3598printf %s "checking whether to enable strict compiler warnings... " >&6; }
3599 OPT_COMPILER_WARNINGS="default"
3600 # Check whether --enable-warnings was given.
3601if test ${enable_warnings+y}
3602then :
3603 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3604fi
3605
3606 case "$OPT_COMPILER_WARNINGS" in
3607 no)
3608 want_warnings="no"
3609 ;;
3610 default)
3611 want_warnings="$want_debug"
3612 ;;
3613 *)
3614 want_warnings="yes"
3615 ;;
3616 esac
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3618printf "%s\n" "$want_warnings" >&6; }
3619
3620
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3622printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3623 OPT_COMPILER_WERROR="default"
3624 # Check whether --enable-werror was given.
3625if test ${enable_werror+y}
3626then :
3627 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3628fi
3629
3630 case "$OPT_COMPILER_WERROR" in
3631 no)
3632 want_werror="no"
3633 ;;
3634 default)
3635 want_werror="no"
3636 ;;
3637 *)
3638 want_werror="yes"
3639 ;;
3640 esac
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3642printf "%s\n" "$want_werror" >&6; }
3643
3644
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3646printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3647 OPT_CURLDEBUG_BUILD="default"
3648 # Check whether --enable-curldebug was given.
3649if test ${enable_curldebug+y}
3650then :
3651 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3652fi
3653
3654 case "$OPT_CURLDEBUG_BUILD" in
3655 no)
3656 want_curldebug="no"
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658printf "%s\n" "no" >&6; }
3659 ;;
3660 default)
3661 if test "$want_debug" = "yes"; then
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3663printf "%s\n" "(assumed) yes" >&6; }
3664
3665printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3666
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669printf "%s\n" "no" >&6; }
3670 fi
3671 want_curldebug_assumed="yes"
3672 want_curldebug="$want_debug"
3673 ;;
3674 *)
3675 want_curldebug="yes"
3676
3677printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3678
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680printf "%s\n" "yes" >&6; }
3681 ;;
3682 esac
3683
3684
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3686printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3687 OPT_SYMBOL_HIDING="default"
3688 # Check whether --enable-symbol-hiding was given.
3689if test ${enable_symbol_hiding+y}
3690then :
3691 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3692fi
3693
3694 case "$OPT_SYMBOL_HIDING" in
3695 no)
3696 want_symbol_hiding="no"
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698printf "%s\n" "no" >&6; }
3699 ;;
3700 default)
3701 want_symbol_hiding="yes"
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703printf "%s\n" "yes" >&6; }
3704 ;;
3705 *)
3706 want_symbol_hiding="yes"
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708printf "%s\n" "yes" >&6; }
3709 ;;
3710 esac
3711
3712
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3714printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3715 OPT_ARES="default"
3716 # Check whether --enable-ares was given.
3717if test ${enable_ares+y}
3718then :
3719 enableval=$enable_ares; OPT_ARES=$enableval
3720fi
3721
3722 case "$OPT_ARES" in
3723 no)
3724 want_ares="no"
3725 ;;
3726 default)
3727 want_ares="no"
3728 ;;
3729 *)
3730 want_ares="yes"
3731 if test -n "$enableval" && test "$enableval" != "yes"; then
3732 want_ares_path="$enableval"
3733 fi
3734 ;;
3735 esac
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3737printf "%s\n" "$want_ares" >&6; }
3738
3739
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3741printf %s "checking whether to disable dependency on -lrt... " >&6; }
3742 OPT_RT="default"
3743 # Check whether --enable-rt was given.
3744if test ${enable_rt+y}
3745then :
3746 enableval=$enable_rt; OPT_RT=$enableval
3747fi
3748
3749 case "$OPT_RT" in
3750 no)
3751 dontwant_rt="yes"
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3753printf "%s\n" "yes" >&6; }
3754 ;;
3755 default)
3756 dontwant_rt="no"
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3758printf "%s\n" "(assumed no)" >&6; }
3759 ;;
3760 *)
3761 dontwant_rt="no"
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763printf "%s\n" "no" >&6; }
3764 ;;
3765 esac
3766
3767
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3769printf %s "checking whether to enable ECH support... " >&6; }
3770 OPT_ECH="default"
3771 # Check whether --enable-ech was given.
3772if test ${enable_ech+y}
3773then :
3774 enableval=$enable_ech; OPT_ECH=$enableval
3775fi
3776
3777 case "$OPT_ECH" in
3778 no)
3779 want_ech="no"
3780 curl_ech_msg="no (--enable-ech)"
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782printf "%s\n" "no" >&6; }
3783 ;;
3784 default)
3785 want_ech="no"
3786 curl_ech_msg="no (--enable-ech)"
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788printf "%s\n" "no" >&6; }
3789 ;;
3790 *)
3791 want_ech="yes"
3792 curl_ech_msg="enabled (--disable-ech)"
3793 experimental="ech"
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3795printf "%s\n" "yes" >&6; }
3796 ;;
3797 esac
3798
3799
3800#
3801# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3802#
3803
3804if test -z "$xc_configure_preamble_result"; then
3805 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3806fi
3807
3808#
3809# Check that 'PATH_SEPARATOR' has already been set.
3810#
3811
3812if test -z "$xc_PATH_SEPARATOR"; then
3813 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3814fi
3815if test -z "$PATH_SEPARATOR"; then
3816 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3817fi
3818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3819printf %s "checking for path separator... " >&6; }
3820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3821printf "%s\n" "$PATH_SEPARATOR" >&6; }
3822if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3824printf %s "checking for initial path separator... " >&6; }
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3826printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3827 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3828fi
3829
3830
3831#
3832# save the configure arguments
3833#
3834CONFIGURE_OPTIONS="\"$ac_configure_args\""
3835
3836
3837if test -z "$SED"; then
3838 # Extract the first word of "sed", so it can be a program name with args.
3839set dummy sed; ac_word=$2
3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841printf %s "checking for $ac_word... " >&6; }
3842if test ${ac_cv_path_SED+y}
3843then :
3844 printf %s "(cached) " >&6
3845else $as_nop
3846 case $SED in
3847 [\\/]* | ?:[\\/]*)
3848 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3849 ;;
3850 *)
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852as_dummy="$PATH:/usr/bin:/usr/local/bin"
3853for as_dir in $as_dummy
3854do
3855 IFS=$as_save_IFS
3856 case $as_dir in #(((
3857 '') as_dir=./ ;;
3858 */) ;;
3859 *) as_dir=$as_dir/ ;;
3860 esac
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3863 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3865 break 2
3866 fi
3867done
3868 done
3869IFS=$as_save_IFS
3870
3871 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3872 ;;
3873esac
3874fi
3875SED=$ac_cv_path_SED
3876if test -n "$SED"; then
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3878printf "%s\n" "$SED" >&6; }
3879else
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881printf "%s\n" "no" >&6; }
3882fi
3883
3884
3885 if test -z "$SED" || test "$SED" = "not_found"; then
3886 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3887 fi
3888fi
3889
3890
3891if test -z "$GREP"; then
3892 # Extract the first word of "grep", so it can be a program name with args.
3893set dummy grep; ac_word=$2
3894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895printf %s "checking for $ac_word... " >&6; }
3896if test ${ac_cv_path_GREP+y}
3897then :
3898 printf %s "(cached) " >&6
3899else $as_nop
3900 case $GREP in
3901 [\\/]* | ?:[\\/]*)
3902 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3903 ;;
3904 *)
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906as_dummy="$PATH:/usr/bin:/usr/local/bin"
3907for as_dir in $as_dummy
3908do
3909 IFS=$as_save_IFS
3910 case $as_dir in #(((
3911 '') as_dir=./ ;;
3912 */) ;;
3913 *) as_dir=$as_dir/ ;;
3914 esac
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3917 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3919 break 2
3920 fi
3921done
3922 done
3923IFS=$as_save_IFS
3924
3925 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3926 ;;
3927esac
3928fi
3929GREP=$ac_cv_path_GREP
3930if test -n "$GREP"; then
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3932printf "%s\n" "$GREP" >&6; }
3933else
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935printf "%s\n" "no" >&6; }
3936fi
3937
3938
3939 if test -z "$GREP" || test "$GREP" = "not_found"; then
3940 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3941 fi
3942fi
3943
3944
3945if test -z "$EGREP"; then
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3947printf %s "checking that grep -E works... " >&6; }
3948 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3949 EGREP="$GREP -E"
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951printf "%s\n" "yes" >&6; }
3952 else
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954printf "%s\n" "no" >&6; }
3955 # Extract the first word of "egrep", so it can be a program name with args.
3956set dummy egrep; ac_word=$2
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958printf %s "checking for $ac_word... " >&6; }
3959if test ${ac_cv_path_EGREP+y}
3960then :
3961 printf %s "(cached) " >&6
3962else $as_nop
3963 case $EGREP in
3964 [\\/]* | ?:[\\/]*)
3965 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3966 ;;
3967 *)
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969as_dummy="$PATH:/usr/bin:/usr/local/bin"
3970for as_dir in $as_dummy
3971do
3972 IFS=$as_save_IFS
3973 case $as_dir in #(((
3974 '') as_dir=./ ;;
3975 */) ;;
3976 *) as_dir=$as_dir/ ;;
3977 esac
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3980 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3982 break 2
3983 fi
3984done
3985 done
3986IFS=$as_save_IFS
3987
3988 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3989 ;;
3990esac
3991fi
3992EGREP=$ac_cv_path_EGREP
3993if test -n "$EGREP"; then
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3995printf "%s\n" "$EGREP" >&6; }
3996else
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998printf "%s\n" "no" >&6; }
3999fi
4000
4001
4002 fi
4003fi
4004if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4005 as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4006fi
4007
4008
4009if test -z "$AR"; then
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4012set dummy ${ac_tool_prefix}ar; ac_word=$2
4013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014printf %s "checking for $ac_word... " >&6; }
4015if test ${ac_cv_path_AR+y}
4016then :
4017 printf %s "(cached) " >&6
4018else $as_nop
4019 case $AR in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4022 ;;
4023 *)
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025as_dummy="$PATH:/usr/bin:/usr/local/bin"
4026for as_dir in $as_dummy
4027do
4028 IFS=$as_save_IFS
4029 case $as_dir in #(((
4030 '') as_dir=./ ;;
4031 */) ;;
4032 *) as_dir=$as_dir/ ;;
4033 esac
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4038 break 2
4039 fi
4040done
4041 done
4042IFS=$as_save_IFS
4043
4044 ;;
4045esac
4046fi
4047AR=$ac_cv_path_AR
4048if test -n "$AR"; then
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4050printf "%s\n" "$AR" >&6; }
4051else
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053printf "%s\n" "no" >&6; }
4054fi
4055
4056
4057fi
4058if test -z "$ac_cv_path_AR"; then
4059 ac_pt_AR=$AR
4060 # Extract the first word of "ar", so it can be a program name with args.
4061set dummy ar; ac_word=$2
4062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063printf %s "checking for $ac_word... " >&6; }
4064if test ${ac_cv_path_ac_pt_AR+y}
4065then :
4066 printf %s "(cached) " >&6
4067else $as_nop
4068 case $ac_pt_AR in
4069 [\\/]* | ?:[\\/]*)
4070 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4071 ;;
4072 *)
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074as_dummy="$PATH:/usr/bin:/usr/local/bin"
4075for as_dir in $as_dummy
4076do
4077 IFS=$as_save_IFS
4078 case $as_dir in #(((
4079 '') as_dir=./ ;;
4080 */) ;;
4081 *) as_dir=$as_dir/ ;;
4082 esac
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089done
4090 done
4091IFS=$as_save_IFS
4092
4093 ;;
4094esac
4095fi
4096ac_pt_AR=$ac_cv_path_ac_pt_AR
4097if test -n "$ac_pt_AR"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4099printf "%s\n" "$ac_pt_AR" >&6; }
4100else
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102printf "%s\n" "no" >&6; }
4103fi
4104
4105 if test "x$ac_pt_AR" = x; then
4106 AR="not_found"
4107 else
4108 case $cross_compiling:$ac_tool_warned in
4109yes:)
4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112ac_tool_warned=yes ;;
4113esac
4114 AR=$ac_pt_AR
4115 fi
4116else
4117 AR="$ac_cv_path_AR"
4118fi
4119
4120 if test -z "$AR" || test "$AR" = "not_found"; then
4121 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4122 fi
4123fi
4124
4125
4126
4127
4128CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4129
4130 xc_prog_cc_prev_IFS=$IFS
4131 xc_prog_cc_prev_LIBS=$LIBS
4132 xc_prog_cc_prev_CFLAGS=$CFLAGS
4133 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4134 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4135
4136
4137
4138 xc_bad_var_libs=no
4139 for xc_word in $LIBS; do
4140 case "$xc_word" in
4141 -l* | --library=*)
4142 :
4143 ;;
4144 *)
4145 xc_bad_var_libs=yes
4146 ;;
4147 esac
4148 done
4149 if test $xc_bad_var_libs = yes; then
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4151printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4153printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4154 fi
4155
4156
4157 xc_bad_var_ldflags=no
4158 for xc_word in $LDFLAGS; do
4159 case "$xc_word" in
4160 -D*)
4161 xc_bad_var_ldflags=yes
4162 ;;
4163 -U*)
4164 xc_bad_var_ldflags=yes
4165 ;;
4166 -I*)
4167 xc_bad_var_ldflags=yes
4168 ;;
4169 -l* | --library=*)
4170 xc_bad_var_ldflags=yes
4171 ;;
4172 esac
4173 done
4174 if test $xc_bad_var_ldflags = yes; then
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4176printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4177 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4178 for xc_word in $LDFLAGS; do
4179 case "$xc_word" in
4180 -D*)
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4182printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4183 ;;
4184 -U*)
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4186printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4187 ;;
4188 -I*)
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4190printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4191 ;;
4192 -l* | --library=*)
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4194printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4195 ;;
4196 esac
4197 done
4198 fi
4199
4200
4201 xc_bad_var_cppflags=no
4202 for xc_word in $CPPFLAGS; do
4203 case "$xc_word" in
4204 -rpath*)
4205 xc_bad_var_cppflags=yes
4206 ;;
4207 -L* | --library-path=*)
4208 xc_bad_var_cppflags=yes
4209 ;;
4210 -l* | --library=*)
4211 xc_bad_var_cppflags=yes
4212 ;;
4213 esac
4214 done
4215 if test $xc_bad_var_cppflags = yes; then
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4217printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4218 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4219 for xc_word in $CPPFLAGS; do
4220 case "$xc_word" in
4221 -rpath*)
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4223printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4224 ;;
4225 -L* | --library-path=*)
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4227printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4228 ;;
4229 -l* | --library=*)
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4231printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4232 ;;
4233 esac
4234 done
4235 fi
4236
4237
4238 xc_bad_var_cflags=no
4239 for xc_word in $CFLAGS; do
4240 case "$xc_word" in
4241 -D*)
4242 xc_bad_var_cflags=yes
4243 ;;
4244 -U*)
4245 xc_bad_var_cflags=yes
4246 ;;
4247 -I*)
4248 xc_bad_var_cflags=yes
4249 ;;
4250 -rpath*)
4251 xc_bad_var_cflags=yes
4252 ;;
4253 -L* | --library-path=*)
4254 xc_bad_var_cflags=yes
4255 ;;
4256 -l* | --library=*)
4257 xc_bad_var_cflags=yes
4258 ;;
4259 esac
4260 done
4261 if test $xc_bad_var_cflags = yes; then
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4263printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4264 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4265 for xc_word in $CFLAGS; do
4266 case "$xc_word" in
4267 -D*)
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4269printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4270 ;;
4271 -U*)
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4273printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4274 ;;
4275 -I*)
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4277printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4278 ;;
4279 -rpath*)
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4281printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4282 ;;
4283 -L* | --library-path=*)
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4285printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4286 ;;
4287 -l* | --library=*)
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4289printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4290 ;;
4291 esac
4292 done
4293 fi
4294
4295 if test $xc_bad_var_libs = yes ||
4296 test $xc_bad_var_cflags = yes ||
4297 test $xc_bad_var_ldflags = yes ||
4298 test $xc_bad_var_cppflags = yes; then
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4300printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4301 fi
4302
4303
4304
4305 # Find a good install program. We prefer a C program (faster),
4306# so one script is as good as another. But avoid the broken or
4307# incompatible versions:
4308# SysV /etc/install, /usr/sbin/install
4309# SunOS /usr/etc/install
4310# IRIX /sbin/install
4311# AIX /bin/install
4312# AmigaOS /C/install, which installs bootblocks on floppy discs
4313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4314# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4316# OS/2's system install, which has a completely different semantic
4317# ./install, which can be erroneously created by make from ./install.sh.
4318# Reject install programs that cannot install multiple files.
4319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4320printf %s "checking for a BSD-compatible install... " >&6; }
4321if test -z "$INSTALL"; then
4322if test ${ac_cv_path_install+y}
4323then :
4324 printf %s "(cached) " >&6
4325else $as_nop
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329 IFS=$as_save_IFS
4330 case $as_dir in #(((
4331 '') as_dir=./ ;;
4332 */) ;;
4333 *) as_dir=$as_dir/ ;;
4334 esac
4335 # Account for fact that we put trailing slashes in our PATH walk.
4336case $as_dir in #((
4337 ./ | /[cC]/* | \
4338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4339 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4340 /usr/ucb/* ) ;;
4341 *)
4342 # OSF1 and SCO ODT 3.0 have their own names for install.
4343 # Don't use installbsd from OSF since it installs stuff as root
4344 # by default.
4345 for ac_prog in ginstall scoinst install; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4348 if test $ac_prog = install &&
4349 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4350 # AIX install. It has an incompatible calling convention.
4351 :
4352 elif test $ac_prog = install &&
4353 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4354 # program-specific install script used by HP pwplus--don't use.
4355 :
4356 else
4357 rm -rf conftest.one conftest.two conftest.dir
4358 echo one > conftest.one
4359 echo two > conftest.two
4360 mkdir conftest.dir
4361 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4362 test -s conftest.one && test -s conftest.two &&
4363 test -s conftest.dir/conftest.one &&
4364 test -s conftest.dir/conftest.two
4365 then
4366 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4367 break 3
4368 fi
4369 fi
4370 fi
4371 done
4372 done
4373 ;;
4374esac
4375
4376 done
4377IFS=$as_save_IFS
4378
4379rm -rf conftest.one conftest.two conftest.dir
4380
4381fi
4382 if test ${ac_cv_path_install+y}; then
4383 INSTALL=$ac_cv_path_install
4384 else
4385 # As a last resort, use the slow shell script. Don't cache a
4386 # value for INSTALL within a source directory, because that will
4387 # break other packages using the cache if that directory is
4388 # removed, or if the value is a relative name.
4389 INSTALL=$ac_install_sh
4390 fi
4391fi
4392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4393printf "%s\n" "$INSTALL" >&6; }
4394
4395# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4396# It thinks the first close brace ends the variable substitution.
4397test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4398
4399test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4400
4401test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413# Expand $ac_aux_dir to an absolute path.
4414am_aux_dir=`cd "$ac_aux_dir" && pwd`
4415
4416ac_ext=c
4417ac_cpp='$CPP $CPPFLAGS'
4418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425printf %s "checking for $ac_word... " >&6; }
4426if test ${ac_cv_prog_CC+y}
4427then :
4428 printf %s "(cached) " >&6
4429else $as_nop
4430 if test -n "$CC"; then
4431 ac_cv_prog_CC="$CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 case $as_dir in #(((
4438 '') as_dir=./ ;;
4439 */) ;;
4440 *) as_dir=$as_dir/ ;;
4441 esac
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449 done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454CC=$ac_cv_prog_CC
4455if test -n "$CC"; then
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4457printf "%s\n" "$CC" >&6; }
4458else
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460printf "%s\n" "no" >&6; }
4461fi
4462
4463
4464fi
4465if test -z "$ac_cv_prog_CC"; then
4466 ac_ct_CC=$CC
4467 # Extract the first word of "gcc", so it can be a program name with args.
4468set dummy gcc; ac_word=$2
4469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470printf %s "checking for $ac_word... " >&6; }
4471if test ${ac_cv_prog_ac_ct_CC+y}
4472then :
4473 printf %s "(cached) " >&6
4474else $as_nop
4475 if test -n "$ac_ct_CC"; then
4476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481 IFS=$as_save_IFS
4482 case $as_dir in #(((
4483 '') as_dir=./ ;;
4484 */) ;;
4485 *) as_dir=$as_dir/ ;;
4486 esac
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_ac_ct_CC="gcc"
4490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494 done
4495IFS=$as_save_IFS
4496
4497fi
4498fi
4499ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500if test -n "$ac_ct_CC"; then
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4502printf "%s\n" "$ac_ct_CC" >&6; }
4503else
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505printf "%s\n" "no" >&6; }
4506fi
4507
4508 if test "x$ac_ct_CC" = x; then
4509 CC=""
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512yes:)
4513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515ac_tool_warned=yes ;;
4516esac
4517 CC=$ac_ct_CC
4518 fi
4519else
4520 CC="$ac_cv_prog_CC"
4521fi
4522
4523if test -z "$CC"; then
4524 if test -n "$ac_tool_prefix"; then
4525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4526set dummy ${ac_tool_prefix}cc; ac_word=$2
4527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528printf %s "checking for $ac_word... " >&6; }
4529if test ${ac_cv_prog_CC+y}
4530then :
4531 printf %s "(cached) " >&6
4532else $as_nop
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4535else
4536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537for as_dir in $PATH
4538do
4539 IFS=$as_save_IFS
4540 case $as_dir in #(((
4541 '') as_dir=./ ;;
4542 */) ;;
4543 *) as_dir=$as_dir/ ;;
4544 esac
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_CC="${ac_tool_prefix}cc"
4548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551done
4552 done
4553IFS=$as_save_IFS
4554
4555fi
4556fi
4557CC=$ac_cv_prog_CC
4558if test -n "$CC"; then
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560printf "%s\n" "$CC" >&6; }
4561else
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563printf "%s\n" "no" >&6; }
4564fi
4565
4566
4567 fi
4568fi
4569if test -z "$CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571set dummy cc; ac_word=$2
4572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573printf %s "checking for $ac_word... " >&6; }
4574if test ${ac_cv_prog_CC+y}
4575then :
4576 printf %s "(cached) " >&6
4577else $as_nop
4578 if test -n "$CC"; then
4579 ac_cv_prog_CC="$CC" # Let the user override the test.
4580else
4581 ac_prog_rejected=no
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 case $as_dir in #(((
4587 '') as_dir=./ ;;
4588 */) ;;
4589 *) as_dir=$as_dir/ ;;
4590 esac
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4593 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4594 ac_prog_rejected=yes
4595 continue
4596 fi
4597 ac_cv_prog_CC="cc"
4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602 done
4603IFS=$as_save_IFS
4604
4605if test $ac_prog_rejected = yes; then
4606 # We found a bogon in the path, so make sure we never use it.
4607 set dummy $ac_cv_prog_CC
4608 shift
4609 if test $# != 0; then
4610 # We chose a different compiler from the bogus one.
4611 # However, it has the same basename, so the bogon will be chosen
4612 # first if we set CC to just the basename; use the full file name.
4613 shift
4614 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4615 fi
4616fi
4617fi
4618fi
4619CC=$ac_cv_prog_CC
4620if test -n "$CC"; then
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622printf "%s\n" "$CC" >&6; }
4623else
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625printf "%s\n" "no" >&6; }
4626fi
4627
4628
4629fi
4630if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4632 for ac_prog in cl.exe
4633 do
4634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4635set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637printf %s "checking for $ac_word... " >&6; }
4638if test ${ac_cv_prog_CC+y}
4639then :
4640 printf %s "(cached) " >&6
4641else $as_nop
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 case $as_dir in #(((
4650 '') as_dir=./ ;;
4651 */) ;;
4652 *) as_dir=$as_dir/ ;;
4653 esac
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660done
4661 done
4662IFS=$as_save_IFS
4663
4664fi
4665fi
4666CC=$ac_cv_prog_CC
4667if test -n "$CC"; then
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669printf "%s\n" "$CC" >&6; }
4670else
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672printf "%s\n" "no" >&6; }
4673fi
4674
4675
4676 test -n "$CC" && break
4677 done
4678fi
4679if test -z "$CC"; then
4680 ac_ct_CC=$CC
4681 for ac_prog in cl.exe
4682do
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684set dummy $ac_prog; ac_word=$2
4685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686printf %s "checking for $ac_word... " >&6; }
4687if test ${ac_cv_prog_ac_ct_CC+y}
4688then :
4689 printf %s "(cached) " >&6
4690else $as_nop
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4693else
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 case $as_dir in #(((
4699 '') as_dir=./ ;;
4700 */) ;;
4701 *) as_dir=$as_dir/ ;;
4702 esac
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_ac_ct_CC="$ac_prog"
4706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710 done
4711IFS=$as_save_IFS
4712
4713fi
4714fi
4715ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716if test -n "$ac_ct_CC"; then
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718printf "%s\n" "$ac_ct_CC" >&6; }
4719else
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721printf "%s\n" "no" >&6; }
4722fi
4723
4724
4725 test -n "$ac_ct_CC" && break
4726done
4727
4728 if test "x$ac_ct_CC" = x; then
4729 CC=""
4730 else
4731 case $cross_compiling:$ac_tool_warned in
4732yes:)
4733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735ac_tool_warned=yes ;;
4736esac
4737 CC=$ac_ct_CC
4738 fi
4739fi
4740
4741fi
4742if test -z "$CC"; then
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4745set dummy ${ac_tool_prefix}clang; ac_word=$2
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747printf %s "checking for $ac_word... " >&6; }
4748if test ${ac_cv_prog_CC+y}
4749then :
4750 printf %s "(cached) " >&6
4751else $as_nop
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 case $as_dir in #(((
4760 '') as_dir=./ ;;
4761 */) ;;
4762 *) as_dir=$as_dir/ ;;
4763 esac
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_CC="${ac_tool_prefix}clang"
4767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4768 break 2
4769 fi
4770done
4771 done
4772IFS=$as_save_IFS
4773
4774fi
4775fi
4776CC=$ac_cv_prog_CC
4777if test -n "$CC"; then
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779printf "%s\n" "$CC" >&6; }
4780else
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782printf "%s\n" "no" >&6; }
4783fi
4784
4785
4786fi
4787if test -z "$ac_cv_prog_CC"; then
4788 ac_ct_CC=$CC
4789 # Extract the first word of "clang", so it can be a program name with args.
4790set dummy clang; ac_word=$2
4791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792printf %s "checking for $ac_word... " >&6; }
4793if test ${ac_cv_prog_ac_ct_CC+y}
4794then :
4795 printf %s "(cached) " >&6
4796else $as_nop
4797 if test -n "$ac_ct_CC"; then
4798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4799else
4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803 IFS=$as_save_IFS
4804 case $as_dir in #(((
4805 '') as_dir=./ ;;
4806 */) ;;
4807 *) as_dir=$as_dir/ ;;
4808 esac
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_ac_ct_CC="clang"
4812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816 done
4817IFS=$as_save_IFS
4818
4819fi
4820fi
4821ac_ct_CC=$ac_cv_prog_ac_ct_CC
4822if test -n "$ac_ct_CC"; then
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4824printf "%s\n" "$ac_ct_CC" >&6; }
4825else
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827printf "%s\n" "no" >&6; }
4828fi
4829
4830 if test "x$ac_ct_CC" = x; then
4831 CC=""
4832 else
4833 case $cross_compiling:$ac_tool_warned in
4834yes:)
4835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837ac_tool_warned=yes ;;
4838esac
4839 CC=$ac_ct_CC
4840 fi
4841else
4842 CC="$ac_cv_prog_CC"
4843fi
4844
4845fi
4846
4847
4848test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4849printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4850as_fn_error $? "no acceptable C compiler found in \$PATH
4851See \`config.log' for more details" "$LINENO" 5; }
4852
4853# Provide some information about the compiler.
4854printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4855set X $ac_compile
4856ac_compiler=$2
4857for ac_option in --version -v -V -qversion -version; do
4858 { { ac_try="$ac_compiler $ac_option >&5"
4859case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862esac
4863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864printf "%s\n" "$ac_try_echo"; } >&5
4865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4866 ac_status=$?
4867 if test -s conftest.err; then
4868 sed '10a\
4869... rest of stderr output deleted ...
4870 10q' conftest.err >conftest.er1
4871 cat conftest.er1 >&5
4872 fi
4873 rm -f conftest.er1 conftest.err
4874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }
4876done
4877
4878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879/* end confdefs.h. */
4880
4881int main (void)
4882{
4883
4884 ;
4885 return 0;
4886}
4887_ACEOF
4888ac_clean_files_save=$ac_clean_files
4889ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4890# Try to create an executable without -o first, disregard a.out.
4891# It will help us diagnose broken compilers, and finding out an intuition
4892# of exeext.
4893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4894printf %s "checking whether the C compiler works... " >&6; }
4895ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4896
4897# The possible output files:
4898ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4899
4900ac_rmfiles=
4901for ac_file in $ac_files
4902do
4903 case $ac_file in
4904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4905 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4906 esac
4907done
4908rm -f $ac_rmfiles
4909
4910if { { ac_try="$ac_link_default"
4911case "(($ac_try" in
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4914esac
4915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4916printf "%s\n" "$ac_try_echo"; } >&5
4917 (eval "$ac_link_default") 2>&5
4918 ac_status=$?
4919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4920 test $ac_status = 0; }
4921then :
4922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4923# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4924# in a Makefile. We should not override ac_cv_exeext if it was cached,
4925# so that the user can short-circuit this test for compilers unknown to
4926# Autoconf.
4927for ac_file in $ac_files ''
4928do
4929 test -f "$ac_file" || continue
4930 case $ac_file in
4931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4932 ;;
4933 [ab].out )
4934 # We found the default executable, but exeext='' is most
4935 # certainly right.
4936 break;;
4937 *.* )
4938 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4939 then :; else
4940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4941 fi
4942 # We set ac_cv_exeext here because the later test for it is not
4943 # safe: cross compilers may not add the suffix if given an `-o'
4944 # argument, so we may need to know it at that point already.
4945 # Even if this section looks crufty: it has the advantage of
4946 # actually working.
4947 break;;
4948 * )
4949 break;;
4950 esac
4951done
4952test "$ac_cv_exeext" = no && ac_cv_exeext=
4953
4954else $as_nop
4955 ac_file=''
4956fi
4957if test -z "$ac_file"
4958then :
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960printf "%s\n" "no" >&6; }
4961printf "%s\n" "$as_me: failed program was:" >&5
4962sed 's/^/| /' conftest.$ac_ext >&5
4963
4964{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4966as_fn_error 77 "C compiler cannot create executables
4967See \`config.log' for more details" "$LINENO" 5; }
4968else $as_nop
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970printf "%s\n" "yes" >&6; }
4971fi
4972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4973printf %s "checking for C compiler default output file name... " >&6; }
4974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4975printf "%s\n" "$ac_file" >&6; }
4976ac_exeext=$ac_cv_exeext
4977
4978rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4979ac_clean_files=$ac_clean_files_save
4980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4981printf %s "checking for suffix of executables... " >&6; }
4982if { { ac_try="$ac_link"
4983case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4986esac
4987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988printf "%s\n" "$ac_try_echo"; } >&5
4989 (eval "$ac_link") 2>&5
4990 ac_status=$?
4991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }
4993then :
4994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4995# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4996# work properly (i.e., refer to `conftest.exe'), while it won't with
4997# `rm'.
4998for ac_file in conftest.exe conftest conftest.*; do
4999 test -f "$ac_file" || continue
5000 case $ac_file in
5001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5003 break;;
5004 * ) break;;
5005 esac
5006done
5007else $as_nop
5008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5010as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5011See \`config.log' for more details" "$LINENO" 5; }
5012fi
5013rm -f conftest conftest$ac_cv_exeext
5014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5015printf "%s\n" "$ac_cv_exeext" >&6; }
5016
5017rm -f conftest.$ac_ext
5018EXEEXT=$ac_cv_exeext
5019ac_exeext=$EXEEXT
5020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021/* end confdefs.h. */
5022#include <stdio.h>
5023int main (void)
5024{
5025FILE *f = fopen ("conftest.out", "w");
5026 return ferror (f) || fclose (f) != 0;
5027
5028 ;
5029 return 0;
5030}
5031_ACEOF
5032ac_clean_files="$ac_clean_files conftest.out"
5033# Check that the compiler produces executables we can run. If not, either
5034# the compiler is broken, or we cross compile.
5035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5036printf %s "checking whether we are cross compiling... " >&6; }
5037if test "$cross_compiling" != yes; then
5038 { { ac_try="$ac_link"
5039case "(($ac_try" in
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5042esac
5043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044printf "%s\n" "$ac_try_echo"; } >&5
5045 (eval "$ac_link") 2>&5
5046 ac_status=$?
5047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }
5049 if { ac_try='./conftest$ac_cv_exeext'
5050 { { case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053esac
5054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5055printf "%s\n" "$ac_try_echo"; } >&5
5056 (eval "$ac_try") 2>&5
5057 ac_status=$?
5058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }; }; then
5060 cross_compiling=no
5061 else
5062 if test "$cross_compiling" = maybe; then
5063 cross_compiling=yes
5064 else
5065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5067as_fn_error 77 "cannot run C compiled programs.
5068If you meant to cross compile, use \`--host'.
5069See \`config.log' for more details" "$LINENO" 5; }
5070 fi
5071 fi
5072fi
5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5074printf "%s\n" "$cross_compiling" >&6; }
5075
5076rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5077ac_clean_files=$ac_clean_files_save
5078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5079printf %s "checking for suffix of object files... " >&6; }
5080if test ${ac_cv_objext+y}
5081then :
5082 printf %s "(cached) " >&6
5083else $as_nop
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085/* end confdefs.h. */
5086
5087int main (void)
5088{
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
5094rm -f conftest.o conftest.obj
5095if { { ac_try="$ac_compile"
5096case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099esac
5100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101printf "%s\n" "$ac_try_echo"; } >&5
5102 (eval "$ac_compile") 2>&5
5103 ac_status=$?
5104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }
5106then :
5107 for ac_file in conftest.o conftest.obj conftest.*; do
5108 test -f "$ac_file" || continue;
5109 case $ac_file in
5110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5112 break;;
5113 esac
5114done
5115else $as_nop
5116 printf "%s\n" "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5120printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5121as_fn_error $? "cannot compute suffix of object files: cannot compile
5122See \`config.log' for more details" "$LINENO" 5; }
5123fi
5124rm -f conftest.$ac_cv_objext conftest.$ac_ext
5125fi
5126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5127printf "%s\n" "$ac_cv_objext" >&6; }
5128OBJEXT=$ac_cv_objext
5129ac_objext=$OBJEXT
5130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5131printf %s "checking whether the compiler supports GNU C... " >&6; }
5132if test ${ac_cv_c_compiler_gnu+y}
5133then :
5134 printf %s "(cached) " >&6
5135else $as_nop
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h. */
5138
5139int main (void)
5140{
5141#ifndef __GNUC__
5142 choke me
5143#endif
5144
5145 ;
5146 return 0;
5147}
5148_ACEOF
5149if ac_fn_c_try_compile "$LINENO"
5150then :
5151 ac_compiler_gnu=yes
5152else $as_nop
5153 ac_compiler_gnu=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5156ac_cv_c_compiler_gnu=$ac_compiler_gnu
5157
5158fi
5159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5160printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5161ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162
5163if test $ac_compiler_gnu = yes; then
5164 GCC=yes
5165else
5166 GCC=
5167fi
5168ac_test_CFLAGS=${CFLAGS+y}
5169ac_save_CFLAGS=$CFLAGS
5170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5171printf %s "checking whether $CC accepts -g... " >&6; }
5172if test ${ac_cv_prog_cc_g+y}
5173then :
5174 printf %s "(cached) " >&6
5175else $as_nop
5176 ac_save_c_werror_flag=$ac_c_werror_flag
5177 ac_c_werror_flag=yes
5178 ac_cv_prog_cc_g=no
5179 CFLAGS="-g"
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181/* end confdefs.h. */
5182
5183int main (void)
5184{
5185
5186 ;
5187 return 0;
5188}
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"
5191then :
5192 ac_cv_prog_cc_g=yes
5193else $as_nop
5194 CFLAGS=""
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h. */
5197
5198int main (void)
5199{
5200
5201 ;
5202 return 0;
5203}
5204_ACEOF
5205if ac_fn_c_try_compile "$LINENO"
5206then :
5207
5208else $as_nop
5209 ac_c_werror_flag=$ac_save_c_werror_flag
5210 CFLAGS="-g"
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h. */
5213
5214int main (void)
5215{
5216
5217 ;
5218 return 0;
5219}
5220_ACEOF
5221if ac_fn_c_try_compile "$LINENO"
5222then :
5223 ac_cv_prog_cc_g=yes
5224fi
5225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226fi
5227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5228fi
5229rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5230 ac_c_werror_flag=$ac_save_c_werror_flag
5231fi
5232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5233printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5234if test $ac_test_CFLAGS; then
5235 CFLAGS=$ac_save_CFLAGS
5236elif test $ac_cv_prog_cc_g = yes; then
5237 if test "$GCC" = yes; then
5238 CFLAGS="-g -O2"
5239 else
5240 CFLAGS="-g"
5241 fi
5242else
5243 if test "$GCC" = yes; then
5244 CFLAGS="-O2"
5245 else
5246 CFLAGS=
5247 fi
5248fi
5249ac_prog_cc_stdc=no
5250if test x$ac_prog_cc_stdc = xno
5251then :
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5253printf %s "checking for $CC option to enable C11 features... " >&6; }
5254if test ${ac_cv_prog_cc_c11+y}
5255then :
5256 printf %s "(cached) " >&6
5257else $as_nop
5258 ac_cv_prog_cc_c11=no
5259ac_save_CC=$CC
5260cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261/* end confdefs.h. */
5262$ac_c_conftest_c11_program
5263_ACEOF
5264for ac_arg in '' -std=gnu11
5265do
5266 CC="$ac_save_CC $ac_arg"
5267 if ac_fn_c_try_compile "$LINENO"
5268then :
5269 ac_cv_prog_cc_c11=$ac_arg
5270fi
5271rm -f core conftest.err conftest.$ac_objext conftest.beam
5272 test "x$ac_cv_prog_cc_c11" != "xno" && break
5273done
5274rm -f conftest.$ac_ext
5275CC=$ac_save_CC
5276fi
5277
5278if test "x$ac_cv_prog_cc_c11" = xno
5279then :
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281printf "%s\n" "unsupported" >&6; }
5282else $as_nop
5283 if test "x$ac_cv_prog_cc_c11" = x
5284then :
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5286printf "%s\n" "none needed" >&6; }
5287else $as_nop
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5289printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5290 CC="$CC $ac_cv_prog_cc_c11"
5291fi
5292 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5293 ac_prog_cc_stdc=c11
5294fi
5295fi
5296if test x$ac_prog_cc_stdc = xno
5297then :
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5299printf %s "checking for $CC option to enable C99 features... " >&6; }
5300if test ${ac_cv_prog_cc_c99+y}
5301then :
5302 printf %s "(cached) " >&6
5303else $as_nop
5304 ac_cv_prog_cc_c99=no
5305ac_save_CC=$CC
5306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h. */
5308$ac_c_conftest_c99_program
5309_ACEOF
5310for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5311do
5312 CC="$ac_save_CC $ac_arg"
5313 if ac_fn_c_try_compile "$LINENO"
5314then :
5315 ac_cv_prog_cc_c99=$ac_arg
5316fi
5317rm -f core conftest.err conftest.$ac_objext conftest.beam
5318 test "x$ac_cv_prog_cc_c99" != "xno" && break
5319done
5320rm -f conftest.$ac_ext
5321CC=$ac_save_CC
5322fi
5323
5324if test "x$ac_cv_prog_cc_c99" = xno
5325then :
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5327printf "%s\n" "unsupported" >&6; }
5328else $as_nop
5329 if test "x$ac_cv_prog_cc_c99" = x
5330then :
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5332printf "%s\n" "none needed" >&6; }
5333else $as_nop
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5335printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5336 CC="$CC $ac_cv_prog_cc_c99"
5337fi
5338 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5339 ac_prog_cc_stdc=c99
5340fi
5341fi
5342if test x$ac_prog_cc_stdc = xno
5343then :
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5345printf %s "checking for $CC option to enable C89 features... " >&6; }
5346if test ${ac_cv_prog_cc_c89+y}
5347then :
5348 printf %s "(cached) " >&6
5349else $as_nop
5350 ac_cv_prog_cc_c89=no
5351ac_save_CC=$CC
5352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353/* end confdefs.h. */
5354$ac_c_conftest_c89_program
5355_ACEOF
5356for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5357do
5358 CC="$ac_save_CC $ac_arg"
5359 if ac_fn_c_try_compile "$LINENO"
5360then :
5361 ac_cv_prog_cc_c89=$ac_arg
5362fi
5363rm -f core conftest.err conftest.$ac_objext conftest.beam
5364 test "x$ac_cv_prog_cc_c89" != "xno" && break
5365done
5366rm -f conftest.$ac_ext
5367CC=$ac_save_CC
5368fi
5369
5370if test "x$ac_cv_prog_cc_c89" = xno
5371then :
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5373printf "%s\n" "unsupported" >&6; }
5374else $as_nop
5375 if test "x$ac_cv_prog_cc_c89" = x
5376then :
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378printf "%s\n" "none needed" >&6; }
5379else $as_nop
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5381printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5382 CC="$CC $ac_cv_prog_cc_c89"
5383fi
5384 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5385 ac_prog_cc_stdc=c89
5386fi
5387fi
5388
5389ac_ext=c
5390ac_cpp='$CPP $CPPFLAGS'
5391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393ac_compiler_gnu=$ac_cv_c_compiler_gnu
5394
5395
5396 ac_ext=c
5397ac_cpp='$CPP $CPPFLAGS'
5398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5402printf %s "checking whether $CC understands -c and -o together... " >&6; }
5403if test ${am_cv_prog_cc_c_o+y}
5404then :
5405 printf %s "(cached) " >&6
5406else $as_nop
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h. */
5409
5410int main (void)
5411{
5412
5413 ;
5414 return 0;
5415}
5416_ACEOF
5417 # Make sure it works both with $CC and with simple cc.
5418 # Following AC_PROG_CC_C_O, we do the test twice because some
5419 # compilers refuse to overwrite an existing .o file with -o,
5420 # though they will create one.
5421 am_cv_prog_cc_c_o=yes
5422 for am_i in 1 2; do
5423 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5424 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } \
5428 && test -f conftest2.$ac_objext; then
5429 : OK
5430 else
5431 am_cv_prog_cc_c_o=no
5432 break
5433 fi
5434 done
5435 rm -f core conftest*
5436 unset am_i
5437fi
5438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5439printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5440if test "$am_cv_prog_cc_c_o" != yes; then
5441 # Losing compiler, so override with the script.
5442 # FIXME: It is wrong to rewrite CC.
5443 # But if we don't then we get into trouble of one sort or another.
5444 # A longer-term fix would be to have automake use am__CC in this case,
5445 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5446 CC="$am_aux_dir/compile $CC"
5447fi
5448ac_ext=c
5449ac_cpp='$CPP $CPPFLAGS'
5450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452ac_compiler_gnu=$ac_cv_c_compiler_gnu
5453
5454
5455
5456ac_ext=c
5457ac_cpp='$CPP $CPPFLAGS'
5458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5462printf %s "checking how to run the C preprocessor... " >&6; }
5463# On Suns, sometimes $CPP names a directory.
5464if test -n "$CPP" && test -d "$CPP"; then
5465 CPP=
5466fi
5467if test -z "$CPP"; then
5468 if test ${ac_cv_prog_CPP+y}
5469then :
5470 printf %s "(cached) " >&6
5471else $as_nop
5472 # Double quotes because $CC needs to be expanded
5473 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5474 do
5475 ac_preproc_ok=false
5476for ac_c_preproc_warn_flag in '' yes
5477do
5478 # Use a header file that comes with gcc, so configuring glibc
5479 # with a fresh cross-compiler works.
5480 # On the NeXT, cc -E runs the code through the compiler's parser,
5481 # not just through cpp. "Syntax error" is here to catch this case.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483/* end confdefs.h. */
5484#include <limits.h>
5485 Syntax error
5486_ACEOF
5487if ac_fn_c_try_cpp "$LINENO"
5488then :
5489
5490else $as_nop
5491 # Broken: fails on valid input.
5492continue
5493fi
5494rm -f conftest.err conftest.i conftest.$ac_ext
5495
5496 # OK, works on sane cases. Now check whether nonexistent headers
5497 # can be detected and how.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499/* end confdefs.h. */
5500#include <ac_nonexistent.h>
5501_ACEOF
5502if ac_fn_c_try_cpp "$LINENO"
5503then :
5504 # Broken: success on invalid input.
5505continue
5506else $as_nop
5507 # Passes both tests.
5508ac_preproc_ok=:
5509break
5510fi
5511rm -f conftest.err conftest.i conftest.$ac_ext
5512
5513done
5514# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5515rm -f conftest.i conftest.err conftest.$ac_ext
5516if $ac_preproc_ok
5517then :
5518 break
5519fi
5520
5521 done
5522 ac_cv_prog_CPP=$CPP
5523
5524fi
5525 CPP=$ac_cv_prog_CPP
5526else
5527 ac_cv_prog_CPP=$CPP
5528fi
5529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5530printf "%s\n" "$CPP" >&6; }
5531ac_preproc_ok=false
5532for ac_c_preproc_warn_flag in '' yes
5533do
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539/* end confdefs.h. */
5540#include <limits.h>
5541 Syntax error
5542_ACEOF
5543if ac_fn_c_try_cpp "$LINENO"
5544then :
5545
5546else $as_nop
5547 # Broken: fails on valid input.
5548continue
5549fi
5550rm -f conftest.err conftest.i conftest.$ac_ext
5551
5552 # OK, works on sane cases. Now check whether nonexistent headers
5553 # can be detected and how.
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555/* end confdefs.h. */
5556#include <ac_nonexistent.h>
5557_ACEOF
5558if ac_fn_c_try_cpp "$LINENO"
5559then :
5560 # Broken: success on invalid input.
5561continue
5562else $as_nop
5563 # Passes both tests.
5564ac_preproc_ok=:
5565break
5566fi
5567rm -f conftest.err conftest.i conftest.$ac_ext
5568
5569done
5570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571rm -f conftest.i conftest.err conftest.$ac_ext
5572if $ac_preproc_ok
5573then :
5574
5575else $as_nop
5576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5578as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5579See \`config.log' for more details" "$LINENO" 5; }
5580fi
5581
5582ac_ext=c
5583ac_cpp='$CPP $CPPFLAGS'
5584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586ac_compiler_gnu=$ac_cv_c_compiler_gnu
5587
5588
5589 IFS=$xc_prog_cc_prev_IFS
5590 LIBS=$xc_prog_cc_prev_LIBS
5591 CFLAGS=$xc_prog_cc_prev_CFLAGS
5592 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5593 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5594
5595
5596
5597
5598
5599
5600ac_header= ac_cache=
5601for ac_item in $ac_header_c_list
5602do
5603 if test $ac_cache; then
5604 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5605 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5606 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5607 fi
5608 ac_header= ac_cache=
5609 elif test $ac_header; then
5610 ac_cache=$ac_item
5611 else
5612 ac_header=$ac_item
5613 fi
5614done
5615
5616
5617
5618
5619
5620
5621
5622
5623if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5624then :
5625
5626printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5627
5628fi
5629
5630 for ac_header in stdatomic.h
5631do :
5632 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5633if test "x$ac_cv_header_stdatomic_h" = xyes
5634then :
5635 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5636
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5638printf %s "checking if _Atomic is available... " >&6; }
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640/* end confdefs.h. */
5641
5642
5643 $curl_includes_unistd
5644
5645int main (void)
5646{
5647
5648 _Atomic int i = 0;
5649 i = 4; // Force an atomic-write operation.
5650
5651 ;
5652 return 0;
5653}
5654
5655_ACEOF
5656if ac_fn_c_try_link "$LINENO"
5657then :
5658
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660printf "%s\n" "yes" >&6; }
5661
5662printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5663
5664 tst_atomic="yes"
5665
5666else $as_nop
5667
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669printf "%s\n" "no" >&6; }
5670 tst_atomic="no"
5671
5672fi
5673rm -f core conftest.err conftest.$ac_objext conftest.beam \
5674 conftest$ac_exeext conftest.$ac_ext
5675
5676fi
5677
5678done
5679
5680
5681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5682printf %s "checking for a sed that does not truncate output... " >&6; }
5683if test ${ac_cv_path_SED+y}
5684then :
5685 printf %s "(cached) " >&6
5686else $as_nop
5687 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5688 for ac_i in 1 2 3 4 5 6 7; do
5689 ac_script="$ac_script$as_nl$ac_script"
5690 done
5691 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5692 { ac_script=; unset ac_script;}
5693 if test -z "$SED"; then
5694 ac_path_SED_found=false
5695 # Loop through the user's path and test for each of PROGNAME-LIST
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697for as_dir in $PATH
5698do
5699 IFS=$as_save_IFS
5700 case $as_dir in #(((
5701 '') as_dir=./ ;;
5702 */) ;;
5703 *) as_dir=$as_dir/ ;;
5704 esac
5705 for ac_prog in sed gsed
5706 do
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5709 as_fn_executable_p "$ac_path_SED" || continue
5710# Check for GNU ac_path_SED and select it if it is found.
5711 # Check for GNU $ac_path_SED
5712case `"$ac_path_SED" --version 2>&1` in
5713*GNU*)
5714 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5715*)
5716 ac_count=0
5717 printf %s 0123456789 >"conftest.in"
5718 while :
5719 do
5720 cat "conftest.in" "conftest.in" >"conftest.tmp"
5721 mv "conftest.tmp" "conftest.in"
5722 cp "conftest.in" "conftest.nl"
5723 printf "%s\n" '' >> "conftest.nl"
5724 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726 as_fn_arith $ac_count + 1 && ac_count=$as_val
5727 if test $ac_count -gt ${ac_path_SED_max-0}; then
5728 # Best one so far, save it but keep looking for a better one
5729 ac_cv_path_SED="$ac_path_SED"
5730 ac_path_SED_max=$ac_count
5731 fi
5732 # 10*(2^10) chars as input seems more than enough
5733 test $ac_count -gt 10 && break
5734 done
5735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736esac
5737
5738 $ac_path_SED_found && break 3
5739 done
5740 done
5741 done
5742IFS=$as_save_IFS
5743 if test -z "$ac_cv_path_SED"; then
5744 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5745 fi
5746else
5747 ac_cv_path_SED=$SED
5748fi
5749
5750fi
5751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5752printf "%s\n" "$ac_cv_path_SED" >&6; }
5753 SED="$ac_cv_path_SED"
5754 rm -f conftest.sed
5755
5756
5757
5758
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5760printf %s "checking for code coverage support... " >&6; }
5761 coverage="no"
5762 curl_coverage_msg="disabled"
5763
5764 # Check whether --enable-code-coverage was given.
5765if test ${enable_code_coverage+y}
5766then :
5767 enableval=$enable_code_coverage; coverage="$enableval"
5768fi
5769
5770
5771 if test "$GCC" != "yes"
5772then :
5773 coverage="no"
5774fi
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5776printf "%s\n" "$coverage" >&6; }
5777
5778 if test "x$coverage" = "xyes"; then
5779 curl_coverage_msg="enabled"
5780
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5783set dummy ${ac_tool_prefix}gcov; ac_word=$2
5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785printf %s "checking for $ac_word... " >&6; }
5786if test ${ac_cv_prog_GCOV+y}
5787then :
5788 printf %s "(cached) " >&6
5789else $as_nop
5790 if test -n "$GCOV"; then
5791 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5792else
5793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794for as_dir in $PATH
5795do
5796 IFS=$as_save_IFS
5797 case $as_dir in #(((
5798 '') as_dir=./ ;;
5799 */) ;;
5800 *) as_dir=$as_dir/ ;;
5801 esac
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809 done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814GCOV=$ac_cv_prog_GCOV
5815if test -n "$GCOV"; then
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5817printf "%s\n" "$GCOV" >&6; }
5818else
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820printf "%s\n" "no" >&6; }
5821fi
5822
5823
5824fi
5825if test -z "$ac_cv_prog_GCOV"; then
5826 ac_ct_GCOV=$GCOV
5827 # Extract the first word of "gcov", so it can be a program name with args.
5828set dummy gcov; ac_word=$2
5829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830printf %s "checking for $ac_word... " >&6; }
5831if test ${ac_cv_prog_ac_ct_GCOV+y}
5832then :
5833 printf %s "(cached) " >&6
5834else $as_nop
5835 if test -n "$ac_ct_GCOV"; then
5836 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841 IFS=$as_save_IFS
5842 case $as_dir in #(((
5843 '') as_dir=./ ;;
5844 */) ;;
5845 *) as_dir=$as_dir/ ;;
5846 esac
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_GCOV="gcov"
5850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853done
5854 done
5855IFS=$as_save_IFS
5856
5857fi
5858fi
5859ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5860if test -n "$ac_ct_GCOV"; then
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5862printf "%s\n" "$ac_ct_GCOV" >&6; }
5863else
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865printf "%s\n" "no" >&6; }
5866fi
5867
5868 if test "x$ac_ct_GCOV" = x; then
5869 GCOV="gcov"
5870 else
5871 case $cross_compiling:$ac_tool_warned in
5872yes:)
5873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875ac_tool_warned=yes ;;
5876esac
5877 GCOV=$ac_ct_GCOV
5878 fi
5879else
5880 GCOV="$ac_cv_prog_GCOV"
5881fi
5882
5883 if test -z "$GCOV"; then
5884 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5885 fi
5886 # Extract the first word of "lcov", so it can be a program name with args.
5887set dummy lcov; ac_word=$2
5888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889printf %s "checking for $ac_word... " >&6; }
5890if test ${ac_cv_prog_LCOV+y}
5891then :
5892 printf %s "(cached) " >&6
5893else $as_nop
5894 if test -n "$LCOV"; then
5895 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900 IFS=$as_save_IFS
5901 case $as_dir in #(((
5902 '') as_dir=./ ;;
5903 */) ;;
5904 *) as_dir=$as_dir/ ;;
5905 esac
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_LCOV="lcov"
5909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5910 break 2
5911 fi
5912done
5913 done
5914IFS=$as_save_IFS
5915
5916fi
5917fi
5918LCOV=$ac_cv_prog_LCOV
5919if test -n "$LCOV"; then
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5921printf "%s\n" "$LCOV" >&6; }
5922else
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924printf "%s\n" "no" >&6; }
5925fi
5926
5927
5928 if test -z "$LCOV"; then
5929 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5930 fi
5931
5932 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5933 CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5934 LIBS="$LIBS -lgcov"
5935 fi
5936
5937
5938am__api_version='1.16'
5939
5940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5941printf %s "checking whether build environment is sane... " >&6; }
5942# Reject unsafe characters in $srcdir or the absolute working directory
5943# name. Accept space and tab only in the latter.
5944am_lf='
5945'
5946case `pwd` in
5947 *[\\\"\#\$\&\'\`$am_lf]*)
5948 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5949esac
5950case $srcdir in
5951 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5952 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5953esac
5954
5955# Do 'set' in a subshell so we don't clobber the current shell's
5956# arguments. Must try -L first in case configure is actually a
5957# symlink; some systems play weird games with the mod time of symlinks
5958# (eg FreeBSD returns the mod time of the symlink's containing
5959# directory).
5960if (
5961 am_has_slept=no
5962 for am_try in 1 2; do
5963 echo "timestamp, slept: $am_has_slept" > conftest.file
5964 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5965 if test "$*" = "X"; then
5966 # -L didn't work.
5967 set X `ls -t "$srcdir/configure" conftest.file`
5968 fi
5969 if test "$*" != "X $srcdir/configure conftest.file" \
5970 && test "$*" != "X conftest.file $srcdir/configure"; then
5971
5972 # If neither matched, then we have a broken ls. This can happen
5973 # if, for instance, CONFIG_SHELL is bash and it inherits a
5974 # broken ls alias from the environment. This has actually
5975 # happened. Such a system could not be considered "sane".
5976 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5977 alias in your environment" "$LINENO" 5
5978 fi
5979 if test "$2" = conftest.file || test $am_try -eq 2; then
5980 break
5981 fi
5982 # Just in case.
5983 sleep 1
5984 am_has_slept=yes
5985 done
5986 test "$2" = conftest.file
5987 )
5988then
5989 # Ok.
5990 :
5991else
5992 as_fn_error $? "newly created file is older than distributed files!
5993Check your system clock" "$LINENO" 5
5994fi
5995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5996printf "%s\n" "yes" >&6; }
5997# If we didn't sleep, we still need to ensure time stamps of config.status and
5998# generated files are strictly newer.
5999am_sleep_pid=
6000if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6001 ( sleep 1 ) &
6002 am_sleep_pid=$!
6003fi
6004
6005rm -f conftest.file
6006
6007test "$program_prefix" != NONE &&
6008 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6009# Use a double $ so make ignores it.
6010test "$program_suffix" != NONE &&
6011 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6012# Double any \ or $.
6013# By default was `s,x,x', remove it if useless.
6014ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6015program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6016
6017
6018 if test x"${MISSING+set}" != xset; then
6019 MISSING="\${SHELL} '$am_aux_dir/missing'"
6020fi
6021# Use eval to expand $SHELL
6022if eval "$MISSING --is-lightweight"; then
6023 am_missing_run="$MISSING "
6024else
6025 am_missing_run=
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6027printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6028fi
6029
6030if test x"${install_sh+set}" != xset; then
6031 case $am_aux_dir in
6032 *\ * | *\ *)
6033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6034 *)
6035 install_sh="\${SHELL} $am_aux_dir/install-sh"
6036 esac
6037fi
6038
6039# Installed binaries are usually stripped using 'strip' when the user
6040# run "make install-strip". However 'strip' might not be the right
6041# tool to use in cross-compilation environments, therefore Automake
6042# will honor the 'STRIP' environment variable to overrule this program.
6043if test "$cross_compiling" != no; then
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6046set dummy ${ac_tool_prefix}strip; ac_word=$2
6047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048printf %s "checking for $ac_word... " >&6; }
6049if test ${ac_cv_prog_STRIP+y}
6050then :
6051 printf %s "(cached) " >&6
6052else $as_nop
6053 if test -n "$STRIP"; then
6054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6055else
6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH
6058do
6059 IFS=$as_save_IFS
6060 case $as_dir in #(((
6061 '') as_dir=./ ;;
6062 */) ;;
6063 *) as_dir=$as_dir/ ;;
6064 esac
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072 done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077STRIP=$ac_cv_prog_STRIP
6078if test -n "$STRIP"; then
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6080printf "%s\n" "$STRIP" >&6; }
6081else
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083printf "%s\n" "no" >&6; }
6084fi
6085
6086
6087fi
6088if test -z "$ac_cv_prog_STRIP"; then
6089 ac_ct_STRIP=$STRIP
6090 # Extract the first word of "strip", so it can be a program name with args.
6091set dummy strip; ac_word=$2
6092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093printf %s "checking for $ac_word... " >&6; }
6094if test ${ac_cv_prog_ac_ct_STRIP+y}
6095then :
6096 printf %s "(cached) " >&6
6097else $as_nop
6098 if test -n "$ac_ct_STRIP"; then
6099 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 case $as_dir in #(((
6106 '') as_dir=./ ;;
6107 */) ;;
6108 *) as_dir=$as_dir/ ;;
6109 esac
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_STRIP="strip"
6113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6114 break 2
6115 fi
6116done
6117 done
6118IFS=$as_save_IFS
6119
6120fi
6121fi
6122ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123if test -n "$ac_ct_STRIP"; then
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6125printf "%s\n" "$ac_ct_STRIP" >&6; }
6126else
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128printf "%s\n" "no" >&6; }
6129fi
6130
6131 if test "x$ac_ct_STRIP" = x; then
6132 STRIP=":"
6133 else
6134 case $cross_compiling:$ac_tool_warned in
6135yes:)
6136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140 STRIP=$ac_ct_STRIP
6141 fi
6142else
6143 STRIP="$ac_cv_prog_STRIP"
6144fi
6145
6146fi
6147INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6148
6149
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6151printf %s "checking for a race-free mkdir -p... " >&6; }
6152if test -z "$MKDIR_P"; then
6153 if test ${ac_cv_path_mkdir+y}
6154then :
6155 printf %s "(cached) " >&6
6156else $as_nop
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6159do
6160 IFS=$as_save_IFS
6161 case $as_dir in #(((
6162 '') as_dir=./ ;;
6163 */) ;;
6164 *) as_dir=$as_dir/ ;;
6165 esac
6166 for ac_prog in mkdir gmkdir; do
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6169 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6170 'mkdir ('*'coreutils) '* | \
6171 'BusyBox '* | \
6172 'mkdir (fileutils) '4.1*)
6173 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6174 break 3;;
6175 esac
6176 done
6177 done
6178 done
6179IFS=$as_save_IFS
6180
6181fi
6182
6183 test -d ./--version && rmdir ./--version
6184 if test ${ac_cv_path_mkdir+y}; then
6185 MKDIR_P="$ac_cv_path_mkdir -p"
6186 else
6187 # As a last resort, use the slow shell script. Don't cache a
6188 # value for MKDIR_P within a source directory, because that will
6189 # break other packages using the cache if that directory is
6190 # removed, or if the value is a relative name.
6191 MKDIR_P="$ac_install_sh -d"
6192 fi
6193fi
6194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6195printf "%s\n" "$MKDIR_P" >&6; }
6196
6197for ac_prog in gawk mawk nawk awk
6198do
6199 # Extract the first word of "$ac_prog", so it can be a program name with args.
6200set dummy $ac_prog; ac_word=$2
6201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202printf %s "checking for $ac_word... " >&6; }
6203if test ${ac_cv_prog_AWK+y}
6204then :
6205 printf %s "(cached) " >&6
6206else $as_nop
6207 if test -n "$AWK"; then
6208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6209else
6210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH
6212do
6213 IFS=$as_save_IFS
6214 case $as_dir in #(((
6215 '') as_dir=./ ;;
6216 */) ;;
6217 *) as_dir=$as_dir/ ;;
6218 esac
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6221 ac_cv_prog_AWK="$ac_prog"
6222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6223 break 2
6224 fi
6225done
6226 done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231AWK=$ac_cv_prog_AWK
6232if test -n "$AWK"; then
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6234printf "%s\n" "$AWK" >&6; }
6235else
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237printf "%s\n" "no" >&6; }
6238fi
6239
6240
6241 test -n "$AWK" && break
6242done
6243
6244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6245printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6246set x ${MAKE-make}
6247ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6248if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6249then :
6250 printf %s "(cached) " >&6
6251else $as_nop
6252 cat >conftest.make <<\_ACEOF
6253SHELL = /bin/sh
6254all:
6255 @echo '@@@%%%=$(MAKE)=@@@%%%'
6256_ACEOF
6257# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6258case `${MAKE-make} -f conftest.make 2>/dev/null` in
6259 *@@@%%%=?*=@@@%%%*)
6260 eval ac_cv_prog_make_${ac_make}_set=yes;;
6261 *)
6262 eval ac_cv_prog_make_${ac_make}_set=no;;
6263esac
6264rm -f conftest.make
6265fi
6266if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6268printf "%s\n" "yes" >&6; }
6269 SET_MAKE=
6270else
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272printf "%s\n" "no" >&6; }
6273 SET_MAKE="MAKE=${MAKE-make}"
6274fi
6275
6276rm -rf .tst 2>/dev/null
6277mkdir .tst 2>/dev/null
6278if test -d .tst; then
6279 am__leading_dot=.
6280else
6281 am__leading_dot=_
6282fi
6283rmdir .tst 2>/dev/null
6284
6285DEPDIR="${am__leading_dot}deps"
6286
6287ac_config_commands="$ac_config_commands depfiles"
6288
6289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6290printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6291cat > confinc.mk << 'END'
6292am__doit:
6293 @echo this is the am__doit target >confinc.out
6294.PHONY: am__doit
6295END
6296am__include="#"
6297am__quote=
6298# BSD make does it like this.
6299echo '.include "confinc.mk" # ignored' > confmf.BSD
6300# Other make implementations (GNU, Solaris 10, AIX) do it like this.
6301echo 'include confinc.mk # ignored' > confmf.GNU
6302_am_result=no
6303for s in GNU BSD; do
6304 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6305 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }
6309 case $?:`cat confinc.out 2>/dev/null` in #(
6310 '0:this is the am__doit target') :
6311 case $s in #(
6312 BSD) :
6313 am__include='.include' am__quote='"' ;; #(
6314 *) :
6315 am__include='include' am__quote='' ;;
6316esac ;; #(
6317 *) :
6318 ;;
6319esac
6320 if test "$am__include" != "#"; then
6321 _am_result="yes ($s style)"
6322 break
6323 fi
6324done
6325rm -f confinc.* confmf.*
6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6327printf "%s\n" "${_am_result}" >&6; }
6328
6329# Check whether --enable-dependency-tracking was given.
6330if test ${enable_dependency_tracking+y}
6331then :
6332 enableval=$enable_dependency_tracking;
6333fi
6334
6335if test "x$enable_dependency_tracking" != xno; then
6336 am_depcomp="$ac_aux_dir/depcomp"
6337 AMDEPBACKSLASH='\'
6338 am__nodep='_no'
6339fi
6340 if test "x$enable_dependency_tracking" != xno; then
6341 AMDEP_TRUE=
6342 AMDEP_FALSE='#'
6343else
6344 AMDEP_TRUE='#'
6345 AMDEP_FALSE=
6346fi
6347
6348
6349## --------------------------------------- ##
6350## Start of automake initialization code ##
6351## --------------------------------------- ##
6352
6353if test "`cd $srcdir && pwd`" != "`pwd`"; then
6354 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6355 # is not polluted with repeated "-I."
6356 am__isrc=' -I$(srcdir)'
6357 # test to see if srcdir already configured
6358 if test -f $srcdir/config.status; then
6359 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6360 fi
6361fi
6362
6363# test whether we have cygpath
6364if test -z "$CYGPATH_W"; then
6365 if (cygpath --version) >/dev/null 2>/dev/null; then
6366 CYGPATH_W='cygpath -w'
6367 else
6368 CYGPATH_W=echo
6369 fi
6370fi
6371
6372
6373# Define the identity of the package.
6374 PACKAGE='curl'
6375 VERSION='-'
6376
6377
6378printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6379
6380
6381printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6382
6383# Some tools Automake needs.
6384
6385ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6386
6387
6388AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6389
6390
6391AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6392
6393
6394AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6395
6396
6397MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6398
6399# For better backward compatibility. To be removed once Automake 1.9.x
6400# dies out for good. For more background, see:
6401# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6402# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6403mkdir_p='$(MKDIR_P)'
6404
6405# We need awk for the "check" target (and possibly the TAP driver). The
6406# system "awk" is bad on some platforms.
6407# Always define AMTAR for backward compatibility. Yes, it's still used
6408# in the wild :-( We should find a proper way to deprecate it ...
6409AMTAR='$${TAR-tar}'
6410
6411
6412# We'll loop over all known methods to create a tar archive until one works.
6413_am_tools='gnutar pax cpio none'
6414
6415am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6416
6417
6418
6419
6420
6421depcc="$CC" am_compiler_list=
6422
6423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6424printf %s "checking dependency style of $depcc... " >&6; }
6425if test ${am_cv_CC_dependencies_compiler_type+y}
6426then :
6427 printf %s "(cached) " >&6
6428else $as_nop
6429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6430 # We make a subdir and do the tests there. Otherwise we can end up
6431 # making bogus files that we don't know about and never remove. For
6432 # instance it was reported that on HP-UX the gcc test will end up
6433 # making a dummy file named 'D' -- because '-MD' means "put the output
6434 # in D".
6435 rm -rf conftest.dir
6436 mkdir conftest.dir
6437 # Copy depcomp to subdir because otherwise we won't find it if we're
6438 # using a relative directory.
6439 cp "$am_depcomp" conftest.dir
6440 cd conftest.dir
6441 # We will build objects and dependencies in a subdirectory because
6442 # it helps to detect inapplicable dependency modes. For instance
6443 # both Tru64's cc and ICC support -MD to output dependencies as a
6444 # side effect of compilation, but ICC will put the dependencies in
6445 # the current directory while Tru64 will put them in the object
6446 # directory.
6447 mkdir sub
6448
6449 am_cv_CC_dependencies_compiler_type=none
6450 if test "$am_compiler_list" = ""; then
6451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6452 fi
6453 am__universal=false
6454 case " $depcc " in #(
6455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6456 esac
6457
6458 for depmode in $am_compiler_list; do
6459 # Setup a source with many dependencies, because some compilers
6460 # like to wrap large dependency lists on column 80 (with \), and
6461 # we should not choose a depcomp mode which is confused by this.
6462 #
6463 # We need to recreate these files for each test, as the compiler may
6464 # overwrite some of them when testing with obscure command lines.
6465 # This happens at least with the AIX C compiler.
6466 : > sub/conftest.c
6467 for i in 1 2 3 4 5 6; do
6468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6469 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6470 # Solaris 10 /bin/sh.
6471 echo '/* dummy */' > sub/conftst$i.h
6472 done
6473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6474
6475 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6476 # mode. It turns out that the SunPro C++ compiler does not properly
6477 # handle '-M -o', and we need to detect this. Also, some Intel
6478 # versions had trouble with output in subdirs.
6479 am__obj=sub/conftest.${OBJEXT-o}
6480 am__minus_obj="-o $am__obj"
6481 case $depmode in
6482 gcc)
6483 # This depmode causes a compiler race in universal mode.
6484 test "$am__universal" = false || continue
6485 ;;
6486 nosideeffect)
6487 # After this tag, mechanisms are not by side-effect, so they'll
6488 # only be used when explicitly requested.
6489 if test "x$enable_dependency_tracking" = xyes; then
6490 continue
6491 else
6492 break
6493 fi
6494 ;;
6495 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6496 # This compiler won't grok '-c -o', but also, the minuso test has
6497 # not run yet. These depmodes are late enough in the game, and
6498 # so weak that their functioning should not be impacted.
6499 am__obj=conftest.${OBJEXT-o}
6500 am__minus_obj=
6501 ;;
6502 none) break ;;
6503 esac
6504 if depmode=$depmode \
6505 source=sub/conftest.c object=$am__obj \
6506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6508 >/dev/null 2>conftest.err &&
6509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6513 # icc doesn't choke on unknown options, it will just issue warnings
6514 # or remarks (even with -Werror). So we grep stderr for any message
6515 # that says an option was ignored or not supported.
6516 # When given -MP, icc 7.0 and 7.1 complain thusly:
6517 # icc: Command line warning: ignoring option '-M'; no argument required
6518 # The diagnosis changed in icc 8.0:
6519 # icc: Command line remark: option '-MP' not supported
6520 if (grep 'ignoring option' conftest.err ||
6521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6522 am_cv_CC_dependencies_compiler_type=$depmode
6523 break
6524 fi
6525 fi
6526 done
6527
6528 cd ..
6529 rm -rf conftest.dir
6530else
6531 am_cv_CC_dependencies_compiler_type=none
6532fi
6533
6534fi
6535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6536printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6537CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6538
6539 if
6540 test "x$enable_dependency_tracking" != xno \
6541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6542 am__fastdepCC_TRUE=
6543 am__fastdepCC_FALSE='#'
6544else
6545 am__fastdepCC_TRUE='#'
6546 am__fastdepCC_FALSE=
6547fi
6548
6549
6550# Variables for tags utilities; see am/tags.am
6551if test -z "$CTAGS"; then
6552 CTAGS=ctags
6553fi
6554
6555if test -z "$ETAGS"; then
6556 ETAGS=etags
6557fi
6558
6559if test -z "$CSCOPE"; then
6560 CSCOPE=cscope
6561fi
6562
6563
6564
6565# POSIX will say in a future version that running "rm -f" with no argument
6566# is OK; and we want to be able to make that assumption in our Makefile
6567# recipes. So use an aggressive probe to check that the usage we want is
6568# actually supported "in the wild" to an acceptable degree.
6569# See automake bug#10828.
6570# To make any issue more visible, cause the running configure to be aborted
6571# by default if the 'rm' program in use doesn't match our expectations; the
6572# user can still override this though.
6573if rm -f && rm -fr && rm -rf; then : OK; else
6574 cat >&2 <<'END'
6575Oops!
6576
6577Your 'rm' program seems unable to run without file operands specified
6578on the command line, even when the '-f' option is present. This is contrary
6579to the behaviour of most rm programs out there, and not conforming with
6580the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6581
6582Please tell bug-automake@gnu.org about your system, including the value
6583of your $PATH and any error possibly output before this message. This
6584can help us improve future automake versions.
6585
6586END
6587 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6588 echo 'Configuration will proceed anyway, since you have set the' >&2
6589 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6590 echo >&2
6591 else
6592 cat >&2 <<'END'
6593Aborting the configuration process, to ensure you take notice of the issue.
6594
6595You can download and install GNU coreutils to get an 'rm' implementation
6596that behaves properly: <https://www.gnu.org/software/coreutils/>.
6597
6598If you want to complete the configuration process using your problematic
6599'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6600to "yes", and re-run configure.
6601
6602END
6603 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6604 fi
6605fi
6606
6607## ------------------------------------- ##
6608## End of automake initialization code ##
6609## ------------------------------------- ##
6610
6611
6612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6613printf %s "checking curl version... " >&6; }
6614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6615printf "%s\n" "$CURLVERSION" >&6; }
6616
6617
6618
6619VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6620
6621
6622PKGADD_PKG="HAXXcurl"
6623PKGADD_NAME="curl - a client that groks URLs"
6624PKGADD_VENDOR="curl.se"
6625
6626
6627
6628
6629 curl_ssl_msg="no (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6630 curl_ssh_msg="no (--with-{libssh,libssh2})"
6631 curl_zlib_msg="no (--with-zlib)"
6632 curl_brotli_msg="no (--with-brotli)"
6633 curl_zstd_msg="no (--with-zstd)"
6634 curl_gss_msg="no (--with-gssapi)"
6635 curl_gsasl_msg="no (--with-gsasl)"
6636curl_tls_srp_msg="no (--enable-tls-srp)"
6637 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6638 curl_ipv6_msg="no (--enable-ipv6)"
6639curl_unix_sockets_msg="no (--enable-unix-sockets)"
6640 curl_idn_msg="no (--with-{libidn2,winidn})"
6641 curl_manual_msg="no (--enable-manual)"
6642curl_libcurl_msg="enabled (--disable-libcurl-option)"
6643curl_verbose_msg="enabled (--disable-verbose)"
6644 curl_sspi_msg="no (--enable-sspi)"
6645 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6646 curl_ldaps_msg="no (--enable-ldaps)"
6647 curl_rtsp_msg="no (--enable-rtsp)"
6648 curl_rtmp_msg="no (--with-librtmp)"
6649 curl_psl_msg="no (--with-libpsl)"
6650 curl_altsvc_msg="enabled (--disable-alt-svc)"
6651curl_headers_msg="enabled (--disable-headers-api)"
6652 curl_hsts_msg="enabled (--disable-hsts)"
6653 curl_ws_msg="no (--enable-websockets)"
6654 ssl_backends=
6655 curl_h1_msg="enabled (internal)"
6656 curl_h2_msg="no (--with-nghttp2, --with-hyper)"
6657 curl_h3_msg="no (--with-ngtcp2, --with-quiche --with-msh3)"
6658
6659enable_altsvc="yes"
6660hsts="yes"
6661
6662INITIAL_LDFLAGS=$LDFLAGS
6663INITIAL_LIBS=$LIBS
6664
6665OPT_SCHANNEL=no
6666
6667# Check whether --with-schannel was given.
6668if test ${with_schannel+y}
6669then :
6670 withval=$with_schannel; OPT_SCHANNEL=$withval
6671 TLSCHOICE="schannel"
6672fi
6673
6674
6675OPT_SECURETRANSPORT=no
6676
6677# Check whether --with-secure-transport was given.
6678if test ${with_secure_transport+y}
6679then :
6680 withval=$with_secure_transport;
6681 OPT_SECURETRANSPORT=$withval
6682 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6683
6684fi
6685
6686
6687OPT_AMISSL=no
6688
6689# Check whether --with-amissl was given.
6690if test ${with_amissl+y}
6691then :
6692 withval=$with_amissl;
6693 OPT_AMISSL=$withval
6694 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6695
6696fi
6697
6698
6699OPT_OPENSSL=no
6700ca="no"
6701
6702# Check whether --with-ssl was given.
6703if test ${with_ssl+y}
6704then :
6705 withval=$with_ssl;
6706 OPT_SSL=$withval
6707 OPT_OPENSSL=$withval
6708 if test X"$withval" != Xno; then
6709 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6710 else
6711 SSL_DISABLED="D"
6712 fi
6713
6714fi
6715
6716
6717
6718# Check whether --with-openssl was given.
6719if test ${with_openssl+y}
6720then :
6721 withval=$with_openssl;
6722 OPT_OPENSSL=$withval
6723 if test X"$withval" != Xno; then
6724 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6725 fi
6726
6727fi
6728
6729
6730OPT_GNUTLS=no
6731
6732# Check whether --with-gnutls was given.
6733if test ${with_gnutls+y}
6734then :
6735 withval=$with_gnutls;
6736 OPT_GNUTLS=$withval
6737 if test X"$withval" != Xno; then
6738 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6739 fi
6740
6741fi
6742
6743
6744OPT_MBEDTLS=no
6745
6746# Check whether --with-mbedtls was given.
6747if test ${with_mbedtls+y}
6748then :
6749 withval=$with_mbedtls;
6750 OPT_MBEDTLS=$withval
6751 if test X"$withval" != Xno; then
6752 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6753 fi
6754
6755fi
6756
6757
6758OPT_WOLFSSL=no
6759
6760# Check whether --with-wolfssl was given.
6761if test ${with_wolfssl+y}
6762then :
6763 withval=$with_wolfssl;
6764 OPT_WOLFSSL=$withval
6765 if test X"$withval" != Xno; then
6766 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6767 fi
6768
6769fi
6770
6771
6772OPT_BEARSSL=no
6773
6774# Check whether --with-bearssl was given.
6775if test ${with_bearssl+y}
6776then :
6777 withval=$with_bearssl;
6778 OPT_BEARSSL=$withval
6779 if test X"$withval" != Xno; then
6780 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6781 fi
6782
6783fi
6784
6785
6786OPT_RUSTLS=no
6787
6788# Check whether --with-rustls was given.
6789if test ${with_rustls+y}
6790then :
6791 withval=$with_rustls;
6792 OPT_RUSTLS=$withval
6793 if test X"$withval" != Xno; then
6794 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6795 experimental="$experimental rustls"
6796 fi
6797
6798fi
6799
6800
6801OPT_NSS_AWARE=no
6802
6803# Check whether --with-nss-deprecated was given.
6804if test ${with_nss_deprecated+y}
6805then :
6806 withval=$with_nss_deprecated; if test X"$withval" != Xno; then
6807 OPT_NSS_AWARE=$withval
6808 fi
6809
6810fi
6811
6812
6813OPT_NSS=no
6814
6815# Check whether --with-nss was given.
6816if test ${with_nss+y}
6817then :
6818 withval=$with_nss; OPT_NSS=$withval
6819 if test X"$withval" != Xno; then
6820
6821 if test X"$OPT_NSS_AWARE" = "Xno" ; then
6822 as_fn_error $? "NSS use must be confirmed using --with-nss-deprecated. NSS support will be dropped from curl in August 2022. See docs/DEPRECATE.md" "$LINENO" 5
6823 fi
6824
6825 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }NSS"
6826 fi
6827
6828fi
6829
6830
6831if test -z "$TLSCHOICE"; then
6832 if test "x$OPT_SSL" != "xno"; then
6833 as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
6834
6835Select from these:
6836
6837 --with-amissl
6838 --with-bearssl
6839 --with-gnutls
6840 --with-mbedtls
6841 --with-nss
6842 --with-openssl (also works for BoringSSL and libressl)
6843 --with-rustls
6844 --with-schannel
6845 --with-secure-transport
6846 --with-wolfssl
6847" "$LINENO" 5
6848 fi
6849fi
6850
6851
6852# Check whether --with-darwinssl was given.
6853if test ${with_darwinssl+y}
6854then :
6855 withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
6856fi
6857
6858
6859
6860
6861
6862 # Make sure we can run config.sub.
6863$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6864 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6865
6866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6867printf %s "checking build system type... " >&6; }
6868if test ${ac_cv_build+y}
6869then :
6870 printf %s "(cached) " >&6
6871else $as_nop
6872 ac_build_alias=$build_alias
6873test "x$ac_build_alias" = x &&
6874 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6875test "x$ac_build_alias" = x &&
6876 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6877ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6878 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6879
6880fi
6881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6882printf "%s\n" "$ac_cv_build" >&6; }
6883case $ac_cv_build in
6884*-*-*) ;;
6885*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6886esac
6887build=$ac_cv_build
6888ac_save_IFS=$IFS; IFS='-'
6889set x $ac_cv_build
6890shift
6891build_cpu=$1
6892build_vendor=$2
6893shift; shift
6894# Remember, the first character of IFS is used to create $*,
6895# except with old shells:
6896build_os=$*
6897IFS=$ac_save_IFS
6898case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6899
6900
6901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6902printf %s "checking host system type... " >&6; }
6903if test ${ac_cv_host+y}
6904then :
6905 printf %s "(cached) " >&6
6906else $as_nop
6907 if test "x$host_alias" = x; then
6908 ac_cv_host=$ac_cv_build
6909else
6910 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6911 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6912fi
6913
6914fi
6915{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6916printf "%s\n" "$ac_cv_host" >&6; }
6917case $ac_cv_host in
6918*-*-*) ;;
6919*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6920esac
6921host=$ac_cv_host
6922ac_save_IFS=$IFS; IFS='-'
6923set x $ac_cv_host
6924shift
6925host_cpu=$1
6926host_vendor=$2
6927shift; shift
6928# Remember, the first character of IFS is used to create $*,
6929# except with old shells:
6930host_os=$*
6931IFS=$ac_save_IFS
6932case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6933
6934
6935
6936printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
6937
6938
6939# Silence warning: ar: 'u' modifier ignored since 'D' is the default
6940AR_FLAGS=cr
6941
6942
6943
6944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6945printf %s "checking for grep that handles long lines and -e... " >&6; }
6946if test ${ac_cv_path_GREP+y}
6947then :
6948 printf %s "(cached) " >&6
6949else $as_nop
6950 if test -z "$GREP"; then
6951 ac_path_GREP_found=false
6952 # Loop through the user's path and test for each of PROGNAME-LIST
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6955do
6956 IFS=$as_save_IFS
6957 case $as_dir in #(((
6958 '') as_dir=./ ;;
6959 */) ;;
6960 *) as_dir=$as_dir/ ;;
6961 esac
6962 for ac_prog in grep ggrep
6963 do
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6966 as_fn_executable_p "$ac_path_GREP" || continue
6967# Check for GNU ac_path_GREP and select it if it is found.
6968 # Check for GNU $ac_path_GREP
6969case `"$ac_path_GREP" --version 2>&1` in
6970*GNU*)
6971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6972*)
6973 ac_count=0
6974 printf %s 0123456789 >"conftest.in"
6975 while :
6976 do
6977 cat "conftest.in" "conftest.in" >"conftest.tmp"
6978 mv "conftest.tmp" "conftest.in"
6979 cp "conftest.in" "conftest.nl"
6980 printf "%s\n" 'GREP' >> "conftest.nl"
6981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6983 as_fn_arith $ac_count + 1 && ac_count=$as_val
6984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6985 # Best one so far, save it but keep looking for a better one
6986 ac_cv_path_GREP="$ac_path_GREP"
6987 ac_path_GREP_max=$ac_count
6988 fi
6989 # 10*(2^10) chars as input seems more than enough
6990 test $ac_count -gt 10 && break
6991 done
6992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6993esac
6994
6995 $ac_path_GREP_found && break 3
6996 done
6997 done
6998 done
6999IFS=$as_save_IFS
7000 if test -z "$ac_cv_path_GREP"; then
7001 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7002 fi
7003else
7004 ac_cv_path_GREP=$GREP
7005fi
7006
7007fi
7008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7009printf "%s\n" "$ac_cv_path_GREP" >&6; }
7010 GREP="$ac_cv_path_GREP"
7011
7012
7013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7014printf %s "checking for egrep... " >&6; }
7015if test ${ac_cv_path_EGREP+y}
7016then :
7017 printf %s "(cached) " >&6
7018else $as_nop
7019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7020 then ac_cv_path_EGREP="$GREP -E"
7021 else
7022 if test -z "$EGREP"; then
7023 ac_path_EGREP_found=false
7024 # Loop through the user's path and test for each of PROGNAME-LIST
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7027do
7028 IFS=$as_save_IFS
7029 case $as_dir in #(((
7030 '') as_dir=./ ;;
7031 */) ;;
7032 *) as_dir=$as_dir/ ;;
7033 esac
7034 for ac_prog in egrep
7035 do
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7038 as_fn_executable_p "$ac_path_EGREP" || continue
7039# Check for GNU ac_path_EGREP and select it if it is found.
7040 # Check for GNU $ac_path_EGREP
7041case `"$ac_path_EGREP" --version 2>&1` in
7042*GNU*)
7043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7044*)
7045 ac_count=0
7046 printf %s 0123456789 >"conftest.in"
7047 while :
7048 do
7049 cat "conftest.in" "conftest.in" >"conftest.tmp"
7050 mv "conftest.tmp" "conftest.in"
7051 cp "conftest.in" "conftest.nl"
7052 printf "%s\n" 'EGREP' >> "conftest.nl"
7053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7055 as_fn_arith $ac_count + 1 && ac_count=$as_val
7056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7057 # Best one so far, save it but keep looking for a better one
7058 ac_cv_path_EGREP="$ac_path_EGREP"
7059 ac_path_EGREP_max=$ac_count
7060 fi
7061 # 10*(2^10) chars as input seems more than enough
7062 test $ac_count -gt 10 && break
7063 done
7064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7065esac
7066
7067 $ac_path_EGREP_found && break 3
7068 done
7069 done
7070 done
7071IFS=$as_save_IFS
7072 if test -z "$ac_cv_path_EGREP"; then
7073 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7074 fi
7075else
7076 ac_cv_path_EGREP=$EGREP
7077fi
7078
7079 fi
7080fi
7081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7082printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7083 EGREP="$ac_cv_path_EGREP"
7084
7085
7086
7087
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7089printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h. */
7092
7093#ifdef _AIX
7094 yes_this_is_aix
7095#endif
7096
7097_ACEOF
7098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "yes_this_is_aix" >/dev/null 2>&1
7100then :
7101
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7103printf "%s\n" "yes" >&6; }
7104 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7105
7106
7107else $as_nop
7108
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110printf "%s\n" "no" >&6; }
7111
7112fi
7113rm -rf conftest*
7114
7115
7116
7117
7118 #
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7120printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h. */
7123
7124
7125
7126int main (void)
7127{
7128
7129#ifdef _THREAD_SAFE
7130 int dummy=1;
7131#else
7132 force compilation error
7133#endif
7134
7135 ;
7136 return 0;
7137}
7138
7139_ACEOF
7140if ac_fn_c_try_compile "$LINENO"
7141then :
7142
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144printf "%s\n" "yes" >&6; }
7145 tmp_thread_safe_initially_defined="yes"
7146
7147else $as_nop
7148
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150printf "%s\n" "no" >&6; }
7151 tmp_thread_safe_initially_defined="no"
7152
7153fi
7154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7155 #
7156 if test "$tmp_thread_safe_initially_defined" = "no"; then
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7158printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7159
7160 case $host_os in
7161 aix[123].* | aix4.[012].*)
7162 tmp_need_thread_safe="no"
7163 ;;
7164 aix*)
7165 tmp_need_thread_safe="yes"
7166 ;;
7167 *)
7168 tmp_need_thread_safe="no"
7169 ;;
7170 esac
7171
7172 if test "$tmp_need_thread_safe" = "yes"; then
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174printf "%s\n" "yes" >&6; }
7175 else
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177printf "%s\n" "no" >&6; }
7178 fi
7179 fi
7180 #
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7182printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7183 if test "$tmp_thread_safe_initially_defined" = "yes" ||
7184 test "$tmp_need_thread_safe" = "yes"; then
7185
7186
7187printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7188
7189cat >>confdefs.h <<_EOF
7190#ifndef _THREAD_SAFE
7191# define _THREAD_SAFE
7192#endif
7193_EOF
7194
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7196printf "%s\n" "yes" >&6; }
7197 else
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199printf "%s\n" "no" >&6; }
7200 fi
7201 #
7202
7203
7204 #
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7206printf %s "checking if _REENTRANT is already defined... " >&6; }
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h. */
7209
7210
7211
7212int main (void)
7213{
7214
7215#ifdef _REENTRANT
7216 int dummy=1;
7217#else
7218 force compilation error
7219#endif
7220
7221 ;
7222 return 0;
7223}
7224
7225_ACEOF
7226if ac_fn_c_try_compile "$LINENO"
7227then :
7228
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230printf "%s\n" "yes" >&6; }
7231 tmp_reentrant_initially_defined="yes"
7232
7233else $as_nop
7234
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236printf "%s\n" "no" >&6; }
7237 tmp_reentrant_initially_defined="no"
7238
7239fi
7240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7241 #
7242 if test "$tmp_reentrant_initially_defined" = "no"; then
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7244printf %s "checking if _REENTRANT is actually needed... " >&6; }
7245
7246 case $host_os in
7247 solaris*)
7248 tmp_need_reentrant="yes"
7249 ;;
7250 *)
7251 tmp_need_reentrant="no"
7252 ;;
7253 esac
7254
7255 if test "$tmp_need_reentrant" = "no"; then
7256
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h. */
7259
7260
7261#include <errno.h>
7262
7263int main (void)
7264{
7265
7266 if(0 != errno)
7267 return 1;
7268
7269 ;
7270 return 0;
7271}
7272
7273_ACEOF
7274if ac_fn_c_try_compile "$LINENO"
7275then :
7276
7277 tmp_errno="yes"
7278
7279else $as_nop
7280
7281 tmp_errno="no"
7282
7283fi
7284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7285 if test "$tmp_errno" = "yes"; then
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h. */
7288
7289
7290#include <errno.h>
7291
7292int main (void)
7293{
7294
7295#ifdef errno
7296 int dummy=1;
7297#else
7298 force compilation error
7299#endif
7300
7301 ;
7302 return 0;
7303}
7304
7305_ACEOF
7306if ac_fn_c_try_compile "$LINENO"
7307then :
7308
7309 tmp_errno="errno_macro_defined"
7310
7311else $as_nop
7312
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314/* end confdefs.h. */
7315
7316
7317#define _REENTRANT
7318#include <errno.h>
7319
7320int main (void)
7321{
7322
7323#ifdef errno
7324 int dummy=1;
7325#else
7326 force compilation error
7327#endif
7328
7329 ;
7330 return 0;
7331}
7332
7333_ACEOF
7334if ac_fn_c_try_compile "$LINENO"
7335then :
7336
7337 tmp_errno="errno_macro_needs_reentrant"
7338 tmp_need_reentrant="yes"
7339
7340fi
7341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7342
7343fi
7344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7345 fi
7346
7347 fi
7348 if test "$tmp_need_reentrant" = "no"; then
7349
7350 if test "$tmp_need_reentrant" = "no"; then
7351
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h. */
7354
7355
7356#define gmtime_r innocuous_gmtime_r
7357#ifdef __STDC__
7358# include <limits.h>
7359#else
7360# include <assert.h>
7361#endif
7362#undef gmtime_r
7363#ifdef __cplusplus
7364extern "C"
7365#endif
7366char gmtime_r ();
7367#if defined __stub_gmtime_r || defined __stub___gmtime_r
7368choke me
7369#endif
7370
7371int main (void)
7372{
7373return gmtime_r ();
7374 ;
7375 return 0;
7376}
7377
7378_ACEOF
7379if ac_fn_c_try_link "$LINENO"
7380then :
7381
7382 tmp_gmtime_r="yes"
7383
7384else $as_nop
7385
7386 tmp_gmtime_r="no"
7387
7388fi
7389rm -f core conftest.err conftest.$ac_objext conftest.beam \
7390 conftest$ac_exeext conftest.$ac_ext
7391 if test "$tmp_gmtime_r" = "yes"; then
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393/* end confdefs.h. */
7394
7395#include <sys/types.h>
7396#include <time.h>
7397
7398_ACEOF
7399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400 $EGREP "gmtime_r" >/dev/null 2>&1
7401then :
7402
7403 tmp_gmtime_r="proto_declared"
7404
7405else $as_nop
7406
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408/* end confdefs.h. */
7409
7410#define _REENTRANT
7411#include <sys/types.h>
7412#include <time.h>
7413
7414_ACEOF
7415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416 $EGREP "gmtime_r" >/dev/null 2>&1
7417then :
7418
7419 tmp_gmtime_r="proto_needs_reentrant"
7420 tmp_need_reentrant="yes"
7421
7422fi
7423rm -rf conftest*
7424
7425
7426fi
7427rm -rf conftest*
7428
7429 fi
7430
7431 fi
7432 if test "$tmp_need_reentrant" = "no"; then
7433
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435/* end confdefs.h. */
7436
7437
7438#define localtime_r innocuous_localtime_r
7439#ifdef __STDC__
7440# include <limits.h>
7441#else
7442# include <assert.h>
7443#endif
7444#undef localtime_r
7445#ifdef __cplusplus
7446extern "C"
7447#endif
7448char localtime_r ();
7449#if defined __stub_localtime_r || defined __stub___localtime_r
7450choke me
7451#endif
7452
7453int main (void)
7454{
7455return localtime_r ();
7456 ;
7457 return 0;
7458}
7459
7460_ACEOF
7461if ac_fn_c_try_link "$LINENO"
7462then :
7463
7464 tmp_localtime_r="yes"
7465
7466else $as_nop
7467
7468 tmp_localtime_r="no"
7469
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.beam \
7472 conftest$ac_exeext conftest.$ac_ext
7473 if test "$tmp_localtime_r" = "yes"; then
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475/* end confdefs.h. */
7476
7477#include <sys/types.h>
7478#include <time.h>
7479
7480_ACEOF
7481if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "localtime_r" >/dev/null 2>&1
7483then :
7484
7485 tmp_localtime_r="proto_declared"
7486
7487else $as_nop
7488
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490/* end confdefs.h. */
7491
7492#define _REENTRANT
7493#include <sys/types.h>
7494#include <time.h>
7495
7496_ACEOF
7497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498 $EGREP "localtime_r" >/dev/null 2>&1
7499then :
7500
7501 tmp_localtime_r="proto_needs_reentrant"
7502 tmp_need_reentrant="yes"
7503
7504fi
7505rm -rf conftest*
7506
7507
7508fi
7509rm -rf conftest*
7510
7511 fi
7512
7513 fi
7514 if test "$tmp_need_reentrant" = "no"; then
7515
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h. */
7518
7519
7520#define strerror_r innocuous_strerror_r
7521#ifdef __STDC__
7522# include <limits.h>
7523#else
7524# include <assert.h>
7525#endif
7526#undef strerror_r
7527#ifdef __cplusplus
7528extern "C"
7529#endif
7530char strerror_r ();
7531#if defined __stub_strerror_r || defined __stub___strerror_r
7532choke me
7533#endif
7534
7535int main (void)
7536{
7537return strerror_r ();
7538 ;
7539 return 0;
7540}
7541
7542_ACEOF
7543if ac_fn_c_try_link "$LINENO"
7544then :
7545
7546 tmp_strerror_r="yes"
7547
7548else $as_nop
7549
7550 tmp_strerror_r="no"
7551
7552fi
7553rm -f core conftest.err conftest.$ac_objext conftest.beam \
7554 conftest$ac_exeext conftest.$ac_ext
7555 if test "$tmp_strerror_r" = "yes"; then
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h. */
7558
7559#include <sys/types.h>
7560#include <string.h>
7561
7562_ACEOF
7563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564 $EGREP "strerror_r" >/dev/null 2>&1
7565then :
7566
7567 tmp_strerror_r="proto_declared"
7568
7569else $as_nop
7570
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h. */
7573
7574#define _REENTRANT
7575#include <sys/types.h>
7576#include <string.h>
7577
7578_ACEOF
7579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7580 $EGREP "strerror_r" >/dev/null 2>&1
7581then :
7582
7583 tmp_strerror_r="proto_needs_reentrant"
7584 tmp_need_reentrant="yes"
7585
7586fi
7587rm -rf conftest*
7588
7589
7590fi
7591rm -rf conftest*
7592
7593 fi
7594
7595 fi
7596 if test "$tmp_need_reentrant" = "no"; then
7597
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599/* end confdefs.h. */
7600
7601
7602#define strtok_r innocuous_strtok_r
7603#ifdef __STDC__
7604# include <limits.h>
7605#else
7606# include <assert.h>
7607#endif
7608#undef strtok_r
7609#ifdef __cplusplus
7610extern "C"
7611#endif
7612char strtok_r ();
7613#if defined __stub_strtok_r || defined __stub___strtok_r
7614choke me
7615#endif
7616
7617int main (void)
7618{
7619return strtok_r ();
7620 ;
7621 return 0;
7622}
7623
7624_ACEOF
7625if ac_fn_c_try_link "$LINENO"
7626then :
7627
7628 tmp_strtok_r="yes"
7629
7630else $as_nop
7631
7632 tmp_strtok_r="no"
7633
7634fi
7635rm -f core conftest.err conftest.$ac_objext conftest.beam \
7636 conftest$ac_exeext conftest.$ac_ext
7637 if test "$tmp_strtok_r" = "yes"; then
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639/* end confdefs.h. */
7640
7641#include <sys/types.h>
7642#include <string.h>
7643
7644_ACEOF
7645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646 $EGREP "strtok_r" >/dev/null 2>&1
7647then :
7648
7649 tmp_strtok_r="proto_declared"
7650
7651else $as_nop
7652
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h. */
7655
7656#define _REENTRANT
7657#include <sys/types.h>
7658#include <string.h>
7659
7660_ACEOF
7661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662 $EGREP "strtok_r" >/dev/null 2>&1
7663then :
7664
7665 tmp_strtok_r="proto_needs_reentrant"
7666 tmp_need_reentrant="yes"
7667
7668fi
7669rm -rf conftest*
7670
7671
7672fi
7673rm -rf conftest*
7674
7675 fi
7676
7677 fi
7678 if test "$tmp_need_reentrant" = "no"; then
7679
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681/* end confdefs.h. */
7682
7683
7684#define gethostbyname_r innocuous_gethostbyname_r
7685#ifdef __STDC__
7686# include <limits.h>
7687#else
7688# include <assert.h>
7689#endif
7690#undef gethostbyname_r
7691#ifdef __cplusplus
7692extern "C"
7693#endif
7694char gethostbyname_r ();
7695#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7696choke me
7697#endif
7698
7699int main (void)
7700{
7701return gethostbyname_r ();
7702 ;
7703 return 0;
7704}
7705
7706_ACEOF
7707if ac_fn_c_try_link "$LINENO"
7708then :
7709
7710 tmp_gethostbyname_r="yes"
7711
7712else $as_nop
7713
7714 tmp_gethostbyname_r="no"
7715
7716fi
7717rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718 conftest$ac_exeext conftest.$ac_ext
7719 if test "$tmp_gethostbyname_r" = "yes"; then
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721/* end confdefs.h. */
7722
7723#include <sys/types.h>
7724#include <netdb.h>
7725
7726_ACEOF
7727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "gethostbyname_r" >/dev/null 2>&1
7729then :
7730
7731 tmp_gethostbyname_r="proto_declared"
7732
7733else $as_nop
7734
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736/* end confdefs.h. */
7737
7738#define _REENTRANT
7739#include <sys/types.h>
7740#include <netdb.h>
7741
7742_ACEOF
7743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744 $EGREP "gethostbyname_r" >/dev/null 2>&1
7745then :
7746
7747 tmp_gethostbyname_r="proto_needs_reentrant"
7748 tmp_need_reentrant="yes"
7749
7750fi
7751rm -rf conftest*
7752
7753
7754fi
7755rm -rf conftest*
7756
7757 fi
7758
7759 fi
7760 if test "$tmp_need_reentrant" = "no"; then
7761
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763/* end confdefs.h. */
7764
7765
7766#define getprotobyname_r innocuous_getprotobyname_r
7767#ifdef __STDC__
7768# include <limits.h>
7769#else
7770# include <assert.h>
7771#endif
7772#undef getprotobyname_r
7773#ifdef __cplusplus
7774extern "C"
7775#endif
7776char getprotobyname_r ();
7777#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7778choke me
7779#endif
7780
7781int main (void)
7782{
7783return getprotobyname_r ();
7784 ;
7785 return 0;
7786}
7787
7788_ACEOF
7789if ac_fn_c_try_link "$LINENO"
7790then :
7791
7792 tmp_getprotobyname_r="yes"
7793
7794else $as_nop
7795
7796 tmp_getprotobyname_r="no"
7797
7798fi
7799rm -f core conftest.err conftest.$ac_objext conftest.beam \
7800 conftest$ac_exeext conftest.$ac_ext
7801 if test "$tmp_getprotobyname_r" = "yes"; then
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803/* end confdefs.h. */
7804
7805#include <sys/types.h>
7806#include <netdb.h>
7807
7808_ACEOF
7809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 $EGREP "getprotobyname_r" >/dev/null 2>&1
7811then :
7812
7813 tmp_getprotobyname_r="proto_declared"
7814
7815else $as_nop
7816
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818/* end confdefs.h. */
7819
7820#define _REENTRANT
7821#include <sys/types.h>
7822#include <netdb.h>
7823
7824_ACEOF
7825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826 $EGREP "getprotobyname_r" >/dev/null 2>&1
7827then :
7828
7829 tmp_getprotobyname_r="proto_needs_reentrant"
7830 tmp_need_reentrant="yes"
7831
7832fi
7833rm -rf conftest*
7834
7835
7836fi
7837rm -rf conftest*
7838
7839 fi
7840
7841 fi
7842
7843 fi
7844 if test "$tmp_need_reentrant" = "yes"; then
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7846printf "%s\n" "yes" >&6; }
7847 else
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849printf "%s\n" "no" >&6; }
7850 fi
7851 fi
7852 #
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7854printf %s "checking if _REENTRANT is onwards defined... " >&6; }
7855 if test "$tmp_reentrant_initially_defined" = "yes" ||
7856 test "$tmp_need_reentrant" = "yes"; then
7857
7858
7859printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
7860
7861cat >>confdefs.h <<_EOF
7862#ifndef _REENTRANT
7863# define _REENTRANT
7864#endif
7865_EOF
7866
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868printf "%s\n" "yes" >&6; }
7869 else
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871printf "%s\n" "no" >&6; }
7872 fi
7873 #
7874
7875
7876# Check whether --enable-largefile was given.
7877if test ${enable_largefile+y}
7878then :
7879 enableval=$enable_largefile;
7880fi
7881
7882if test "$enable_largefile" != no; then
7883
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7885printf %s "checking for special C compiler options needed for large files... " >&6; }
7886if test ${ac_cv_sys_largefile_CC+y}
7887then :
7888 printf %s "(cached) " >&6
7889else $as_nop
7890 ac_cv_sys_largefile_CC=no
7891 if test "$GCC" != yes; then
7892 ac_save_CC=$CC
7893 while :; do
7894 # IRIX 6.2 and later do not support large files by default,
7895 # so use the C compiler's -n32 option if that helps.
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897/* end confdefs.h. */
7898#include <sys/types.h>
7899 /* Check that off_t can represent 2**63 - 1 correctly.
7900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7901 since some C++ compilers masquerading as C compilers
7902 incorrectly reject 9223372036854775807. */
7903#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7905 && LARGE_OFF_T % 2147483647 == 1)
7906 ? 1 : -1];
7907int main (void)
7908{
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914 if ac_fn_c_try_compile "$LINENO"
7915then :
7916 break
7917fi
7918rm -f core conftest.err conftest.$ac_objext conftest.beam
7919 CC="$CC -n32"
7920 if ac_fn_c_try_compile "$LINENO"
7921then :
7922 ac_cv_sys_largefile_CC=' -n32'; break
7923fi
7924rm -f core conftest.err conftest.$ac_objext conftest.beam
7925 break
7926 done
7927 CC=$ac_save_CC
7928 rm -f conftest.$ac_ext
7929 fi
7930fi
7931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7932printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7933 if test "$ac_cv_sys_largefile_CC" != no; then
7934 CC=$CC$ac_cv_sys_largefile_CC
7935 fi
7936
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7938printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7939if test ${ac_cv_sys_file_offset_bits+y}
7940then :
7941 printf %s "(cached) " >&6
7942else $as_nop
7943 while :; do
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h. */
7946#include <sys/types.h>
7947 /* Check that off_t can represent 2**63 - 1 correctly.
7948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7949 since some C++ compilers masquerading as C compilers
7950 incorrectly reject 9223372036854775807. */
7951#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7953 && LARGE_OFF_T % 2147483647 == 1)
7954 ? 1 : -1];
7955int main (void)
7956{
7957
7958 ;
7959 return 0;
7960}
7961_ACEOF
7962if ac_fn_c_try_compile "$LINENO"
7963then :
7964 ac_cv_sys_file_offset_bits=no; break
7965fi
7966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968/* end confdefs.h. */
7969#define _FILE_OFFSET_BITS 64
7970#include <sys/types.h>
7971 /* Check that off_t can represent 2**63 - 1 correctly.
7972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7973 since some C++ compilers masquerading as C compilers
7974 incorrectly reject 9223372036854775807. */
7975#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7977 && LARGE_OFF_T % 2147483647 == 1)
7978 ? 1 : -1];
7979int main (void)
7980{
7981
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986if ac_fn_c_try_compile "$LINENO"
7987then :
7988 ac_cv_sys_file_offset_bits=64; break
7989fi
7990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7991 ac_cv_sys_file_offset_bits=unknown
7992 break
7993done
7994fi
7995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7996printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7997case $ac_cv_sys_file_offset_bits in #(
7998 no | unknown) ;;
7999 *)
8000printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8001;;
8002esac
8003rm -rf conftest*
8004 if test $ac_cv_sys_file_offset_bits = unknown; then
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8006printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8007if test ${ac_cv_sys_large_files+y}
8008then :
8009 printf %s "(cached) " >&6
8010else $as_nop
8011 while :; do
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013/* end confdefs.h. */
8014#include <sys/types.h>
8015 /* Check that off_t can represent 2**63 - 1 correctly.
8016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8017 since some C++ compilers masquerading as C compilers
8018 incorrectly reject 9223372036854775807. */
8019#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8021 && LARGE_OFF_T % 2147483647 == 1)
8022 ? 1 : -1];
8023int main (void)
8024{
8025
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030if ac_fn_c_try_compile "$LINENO"
8031then :
8032 ac_cv_sys_large_files=no; break
8033fi
8034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036/* end confdefs.h. */
8037#define _LARGE_FILES 1
8038#include <sys/types.h>
8039 /* Check that off_t can represent 2**63 - 1 correctly.
8040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8041 since some C++ compilers masquerading as C compilers
8042 incorrectly reject 9223372036854775807. */
8043#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8045 && LARGE_OFF_T % 2147483647 == 1)
8046 ? 1 : -1];
8047int main (void)
8048{
8049
8050 ;
8051 return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_compile "$LINENO"
8055then :
8056 ac_cv_sys_large_files=1; break
8057fi
8058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8059 ac_cv_sys_large_files=unknown
8060 break
8061done
8062fi
8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8064printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8065case $ac_cv_sys_large_files in #(
8066 no | unknown) ;;
8067 *)
8068printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8069;;
8070esac
8071rm -rf conftest*
8072 fi
8073fi
8074
8075
8076case `pwd` in
8077 *\ * | *\ *)
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8079printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8080esac
8081
8082
8083
8084macro_version='2.4.7'
8085macro_revision='2.4.7'
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100ltmain=$ac_aux_dir/ltmain.sh
8101
8102# Backslashify metacharacters that are still active within
8103# double-quoted strings.
8104sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8105
8106# Same as above, but do not quote variable references.
8107double_quote_subst='s/\(["`\\]\)/\\\1/g'
8108
8109# Sed substitution to delay expansion of an escaped shell variable in a
8110# double_quote_subst'ed string.
8111delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8112
8113# Sed substitution to delay expansion of an escaped single quote.
8114delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8115
8116# Sed substitution to avoid accidental globbing in evaled expressions
8117no_glob_subst='s/\*/\\\*/g'
8118
8119ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8120ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8121ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8122
8123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8124printf %s "checking how to print strings... " >&6; }
8125# Test print first, because it will be a builtin if present.
8126if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8127 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8128 ECHO='print -r --'
8129elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8130 ECHO='printf %s\n'
8131else
8132 # Use this function as a fallback that always works.
8133 func_fallback_echo ()
8134 {
8135 eval 'cat <<_LTECHO_EOF
8136$1
8137_LTECHO_EOF'
8138 }
8139 ECHO='func_fallback_echo'
8140fi
8141
8142# func_echo_all arg...
8143# Invoke $ECHO with all args, space-separated.
8144func_echo_all ()
8145{
8146 $ECHO ""
8147}
8148
8149case $ECHO in
8150 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8151printf "%s\n" "printf" >&6; } ;;
8152 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8153printf "%s\n" "print -r" >&6; } ;;
8154 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8155printf "%s\n" "cat" >&6; } ;;
8156esac
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8172printf %s "checking for a sed that does not truncate output... " >&6; }
8173if test ${ac_cv_path_SED+y}
8174then :
8175 printf %s "(cached) " >&6
8176else $as_nop
8177 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8178 for ac_i in 1 2 3 4 5 6 7; do
8179 ac_script="$ac_script$as_nl$ac_script"
8180 done
8181 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8182 { ac_script=; unset ac_script;}
8183 if test -z "$SED"; then
8184 ac_path_SED_found=false
8185 # Loop through the user's path and test for each of PROGNAME-LIST
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187for as_dir in $PATH
8188do
8189 IFS=$as_save_IFS
8190 case $as_dir in #(((
8191 '') as_dir=./ ;;
8192 */) ;;
8193 *) as_dir=$as_dir/ ;;
8194 esac
8195 for ac_prog in sed gsed
8196 do
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8199 as_fn_executable_p "$ac_path_SED" || continue
8200# Check for GNU ac_path_SED and select it if it is found.
8201 # Check for GNU $ac_path_SED
8202case `"$ac_path_SED" --version 2>&1` in
8203*GNU*)
8204 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8205*)
8206 ac_count=0
8207 printf %s 0123456789 >"conftest.in"
8208 while :
8209 do
8210 cat "conftest.in" "conftest.in" >"conftest.tmp"
8211 mv "conftest.tmp" "conftest.in"
8212 cp "conftest.in" "conftest.nl"
8213 printf "%s\n" '' >> "conftest.nl"
8214 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8216 as_fn_arith $ac_count + 1 && ac_count=$as_val
8217 if test $ac_count -gt ${ac_path_SED_max-0}; then
8218 # Best one so far, save it but keep looking for a better one
8219 ac_cv_path_SED="$ac_path_SED"
8220 ac_path_SED_max=$ac_count
8221 fi
8222 # 10*(2^10) chars as input seems more than enough
8223 test $ac_count -gt 10 && break
8224 done
8225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8226esac
8227
8228 $ac_path_SED_found && break 3
8229 done
8230 done
8231 done
8232IFS=$as_save_IFS
8233 if test -z "$ac_cv_path_SED"; then
8234 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8235 fi
8236else
8237 ac_cv_path_SED=$SED
8238fi
8239
8240fi
8241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8242printf "%s\n" "$ac_cv_path_SED" >&6; }
8243 SED="$ac_cv_path_SED"
8244 rm -f conftest.sed
8245
8246test -z "$SED" && SED=sed
8247Xsed="$SED -e 1s/^X//"
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8260printf %s "checking for fgrep... " >&6; }
8261if test ${ac_cv_path_FGREP+y}
8262then :
8263 printf %s "(cached) " >&6
8264else $as_nop
8265 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8266 then ac_cv_path_FGREP="$GREP -F"
8267 else
8268 if test -z "$FGREP"; then
8269 ac_path_FGREP_found=false
8270 # Loop through the user's path and test for each of PROGNAME-LIST
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8273do
8274 IFS=$as_save_IFS
8275 case $as_dir in #(((
8276 '') as_dir=./ ;;
8277 */) ;;
8278 *) as_dir=$as_dir/ ;;
8279 esac
8280 for ac_prog in fgrep
8281 do
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8284 as_fn_executable_p "$ac_path_FGREP" || continue
8285# Check for GNU ac_path_FGREP and select it if it is found.
8286 # Check for GNU $ac_path_FGREP
8287case `"$ac_path_FGREP" --version 2>&1` in
8288*GNU*)
8289 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8290*)
8291 ac_count=0
8292 printf %s 0123456789 >"conftest.in"
8293 while :
8294 do
8295 cat "conftest.in" "conftest.in" >"conftest.tmp"
8296 mv "conftest.tmp" "conftest.in"
8297 cp "conftest.in" "conftest.nl"
8298 printf "%s\n" 'FGREP' >> "conftest.nl"
8299 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8301 as_fn_arith $ac_count + 1 && ac_count=$as_val
8302 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8303 # Best one so far, save it but keep looking for a better one
8304 ac_cv_path_FGREP="$ac_path_FGREP"
8305 ac_path_FGREP_max=$ac_count
8306 fi
8307 # 10*(2^10) chars as input seems more than enough
8308 test $ac_count -gt 10 && break
8309 done
8310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8311esac
8312
8313 $ac_path_FGREP_found && break 3
8314 done
8315 done
8316 done
8317IFS=$as_save_IFS
8318 if test -z "$ac_cv_path_FGREP"; then
8319 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8320 fi
8321else
8322 ac_cv_path_FGREP=$FGREP
8323fi
8324
8325 fi
8326fi
8327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8328printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8329 FGREP="$ac_cv_path_FGREP"
8330
8331
8332test -z "$GREP" && GREP=grep
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352# Check whether --with-gnu-ld was given.
8353if test ${with_gnu_ld+y}
8354then :
8355 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8356else $as_nop
8357 with_gnu_ld=no
8358fi
8359
8360ac_prog=ld
8361if test yes = "$GCC"; then
8362 # Check if gcc -print-prog-name=ld gives a path.
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8364printf %s "checking for ld used by $CC... " >&6; }
8365 case $host in
8366 *-*-mingw*)
8367 # gcc leaves a trailing carriage return, which upsets mingw
8368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8369 *)
8370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8371 esac
8372 case $ac_prog in
8373 # Accept absolute paths.
8374 [\\/]* | ?:[\\/]*)
8375 re_direlt='/[^/][^/]*/\.\./'
8376 # Canonicalize the pathname of ld
8377 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8378 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8379 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8380 done
8381 test -z "$LD" && LD=$ac_prog
8382 ;;
8383 "")
8384 # If it fails, then pretend we aren't using GCC.
8385 ac_prog=ld
8386 ;;
8387 *)
8388 # If it is relative, then search for the first ld in PATH.
8389 with_gnu_ld=unknown
8390 ;;
8391 esac
8392elif test yes = "$with_gnu_ld"; then
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8394printf %s "checking for GNU ld... " >&6; }
8395else
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8397printf %s "checking for non-GNU ld... " >&6; }
8398fi
8399if test ${lt_cv_path_LD+y}
8400then :
8401 printf %s "(cached) " >&6
8402else $as_nop
8403 if test -z "$LD"; then
8404 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8405 for ac_dir in $PATH; do
8406 IFS=$lt_save_ifs
8407 test -z "$ac_dir" && ac_dir=.
8408 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8409 lt_cv_path_LD=$ac_dir/$ac_prog
8410 # Check to see if the program is GNU ld. I'd rather use --version,
8411 # but apparently some variants of GNU ld only accept -v.
8412 # Break only if it was the GNU/non-GNU ld that we prefer.
8413 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8414 *GNU* | *'with BFD'*)
8415 test no != "$with_gnu_ld" && break
8416 ;;
8417 *)
8418 test yes != "$with_gnu_ld" && break
8419 ;;
8420 esac
8421 fi
8422 done
8423 IFS=$lt_save_ifs
8424else
8425 lt_cv_path_LD=$LD # Let the user override the test with a path.
8426fi
8427fi
8428
8429LD=$lt_cv_path_LD
8430if test -n "$LD"; then
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432printf "%s\n" "$LD" >&6; }
8433else
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435printf "%s\n" "no" >&6; }
8436fi
8437test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8439printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8440if test ${lt_cv_prog_gnu_ld+y}
8441then :
8442 printf %s "(cached) " >&6
8443else $as_nop
8444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8445case `$LD -v 2>&1 </dev/null` in
8446*GNU* | *'with BFD'*)
8447 lt_cv_prog_gnu_ld=yes
8448 ;;
8449*)
8450 lt_cv_prog_gnu_ld=no
8451 ;;
8452esac
8453fi
8454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8455printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8456with_gnu_ld=$lt_cv_prog_gnu_ld
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8467printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8468if test ${lt_cv_path_NM+y}
8469then :
8470 printf %s "(cached) " >&6
8471else $as_nop
8472 if test -n "$NM"; then
8473 # Let the user override the test.
8474 lt_cv_path_NM=$NM
8475else
8476 lt_nm_to_check=${ac_tool_prefix}nm
8477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8478 lt_nm_to_check="$lt_nm_to_check nm"
8479 fi
8480 for lt_tmp_nm in $lt_nm_to_check; do
8481 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8483 IFS=$lt_save_ifs
8484 test -z "$ac_dir" && ac_dir=.
8485 tmp_nm=$ac_dir/$lt_tmp_nm
8486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8487 # Check to see if the nm accepts a BSD-compat flag.
8488 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8489 # nm: unknown option "B" ignored
8490 # Tru64's nm complains that /dev/null is an invalid object file
8491 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8492 case $build_os in
8493 mingw*) lt_bad_file=conftest.nm/nofile ;;
8494 *) lt_bad_file=/dev/null ;;
8495 esac
8496 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8497 *$lt_bad_file* | *'Invalid file or object type'*)
8498 lt_cv_path_NM="$tmp_nm -B"
8499 break 2
8500 ;;
8501 *)
8502 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8503 */dev/null*)
8504 lt_cv_path_NM="$tmp_nm -p"
8505 break 2
8506 ;;
8507 *)
8508 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8509 continue # so that we can try to find one that supports BSD flags
8510 ;;
8511 esac
8512 ;;
8513 esac
8514 fi
8515 done
8516 IFS=$lt_save_ifs
8517 done
8518 : ${lt_cv_path_NM=no}
8519fi
8520fi
8521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8522printf "%s\n" "$lt_cv_path_NM" >&6; }
8523if test no != "$lt_cv_path_NM"; then
8524 NM=$lt_cv_path_NM
8525else
8526 # Didn't find any BSD compatible name lister, look for dumpbin.
8527 if test -n "$DUMPBIN"; then :
8528 # Let the user override the test.
8529 else
8530 if test -n "$ac_tool_prefix"; then
8531 for ac_prog in dumpbin "link -dump"
8532 do
8533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8534set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536printf %s "checking for $ac_word... " >&6; }
8537if test ${ac_cv_prog_DUMPBIN+y}
8538then :
8539 printf %s "(cached) " >&6
8540else $as_nop
8541 if test -n "$DUMPBIN"; then
8542 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 case $as_dir in #(((
8549 '') as_dir=./ ;;
8550 */) ;;
8551 *) as_dir=$as_dir/ ;;
8552 esac
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8555 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8557 break 2
8558 fi
8559done
8560 done
8561IFS=$as_save_IFS
8562
8563fi
8564fi
8565DUMPBIN=$ac_cv_prog_DUMPBIN
8566if test -n "$DUMPBIN"; then
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8568printf "%s\n" "$DUMPBIN" >&6; }
8569else
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571printf "%s\n" "no" >&6; }
8572fi
8573
8574
8575 test -n "$DUMPBIN" && break
8576 done
8577fi
8578if test -z "$DUMPBIN"; then
8579 ac_ct_DUMPBIN=$DUMPBIN
8580 for ac_prog in dumpbin "link -dump"
8581do
8582 # Extract the first word of "$ac_prog", so it can be a program name with args.
8583set dummy $ac_prog; ac_word=$2
8584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585printf %s "checking for $ac_word... " >&6; }
8586if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8587then :
8588 printf %s "(cached) " >&6
8589else $as_nop
8590 if test -n "$ac_ct_DUMPBIN"; then
8591 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8592else
8593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8594for as_dir in $PATH
8595do
8596 IFS=$as_save_IFS
8597 case $as_dir in #(((
8598 '') as_dir=./ ;;
8599 */) ;;
8600 *) as_dir=$as_dir/ ;;
8601 esac
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8606 break 2
8607 fi
8608done
8609 done
8610IFS=$as_save_IFS
8611
8612fi
8613fi
8614ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8615if test -n "$ac_ct_DUMPBIN"; then
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8617printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8618else
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620printf "%s\n" "no" >&6; }
8621fi
8622
8623
8624 test -n "$ac_ct_DUMPBIN" && break
8625done
8626
8627 if test "x$ac_ct_DUMPBIN" = x; then
8628 DUMPBIN=":"
8629 else
8630 case $cross_compiling:$ac_tool_warned in
8631yes:)
8632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8633printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8634ac_tool_warned=yes ;;
8635esac
8636 DUMPBIN=$ac_ct_DUMPBIN
8637 fi
8638fi
8639
8640 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
8641 *COFF*)
8642 DUMPBIN="$DUMPBIN -symbols -headers"
8643 ;;
8644 *)
8645 DUMPBIN=:
8646 ;;
8647 esac
8648 fi
8649
8650 if test : != "$DUMPBIN"; then
8651 NM=$DUMPBIN
8652 fi
8653fi
8654test -z "$NM" && NM=nm
8655
8656
8657
8658
8659
8660
8661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8662printf %s "checking the name lister ($NM) interface... " >&6; }
8663if test ${lt_cv_nm_interface+y}
8664then :
8665 printf %s "(cached) " >&6
8666else $as_nop
8667 lt_cv_nm_interface="BSD nm"
8668 echo "int some_variable = 0;" > conftest.$ac_ext
8669 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8670 (eval "$ac_compile" 2>conftest.err)
8671 cat conftest.err >&5
8672 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8673 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8674 cat conftest.err >&5
8675 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8676 cat conftest.out >&5
8677 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8678 lt_cv_nm_interface="MS dumpbin"
8679 fi
8680 rm -f conftest*
8681fi
8682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8683printf "%s\n" "$lt_cv_nm_interface" >&6; }
8684
8685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8686printf %s "checking whether ln -s works... " >&6; }
8687LN_S=$as_ln_s
8688if test "$LN_S" = "ln -s"; then
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8690printf "%s\n" "yes" >&6; }
8691else
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8693printf "%s\n" "no, using $LN_S" >&6; }
8694fi
8695
8696# find the maximum length of command line arguments
8697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8698printf %s "checking the maximum length of command line arguments... " >&6; }
8699if test ${lt_cv_sys_max_cmd_len+y}
8700then :
8701 printf %s "(cached) " >&6
8702else $as_nop
8703 i=0
8704 teststring=ABCD
8705
8706 case $build_os in
8707 msdosdjgpp*)
8708 # On DJGPP, this test can blow up pretty badly due to problems in libc
8709 # (any single argument exceeding 2000 bytes causes a buffer overrun
8710 # during glob expansion). Even if it were fixed, the result of this
8711 # check would be larger than it should be.
8712 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8713 ;;
8714
8715 gnu*)
8716 # Under GNU Hurd, this test is not required because there is
8717 # no limit to the length of command line arguments.
8718 # Libtool will interpret -1 as no limit whatsoever
8719 lt_cv_sys_max_cmd_len=-1;
8720 ;;
8721
8722 cygwin* | mingw* | cegcc*)
8723 # On Win9x/ME, this test blows up -- it succeeds, but takes
8724 # about 5 minutes as the teststring grows exponentially.
8725 # Worse, since 9x/ME are not pre-emptively multitasking,
8726 # you end up with a "frozen" computer, even though with patience
8727 # the test eventually succeeds (with a max line length of 256k).
8728 # Instead, let's just punt: use the minimum linelength reported by
8729 # all of the supported platforms: 8192 (on NT/2K/XP).
8730 lt_cv_sys_max_cmd_len=8192;
8731 ;;
8732
8733 mint*)
8734 # On MiNT this can take a long time and run out of memory.
8735 lt_cv_sys_max_cmd_len=8192;
8736 ;;
8737
8738 amigaos*)
8739 # On AmigaOS with pdksh, this test takes hours, literally.
8740 # So we just punt and use a minimum line length of 8192.
8741 lt_cv_sys_max_cmd_len=8192;
8742 ;;
8743
8744 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8745 # This has been around since 386BSD, at least. Likely further.
8746 if test -x /sbin/sysctl; then
8747 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8748 elif test -x /usr/sbin/sysctl; then
8749 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8750 else
8751 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8752 fi
8753 # And add a safety zone
8754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8756 ;;
8757
8758 interix*)
8759 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8760 lt_cv_sys_max_cmd_len=196608
8761 ;;
8762
8763 os2*)
8764 # The test takes a long time on OS/2.
8765 lt_cv_sys_max_cmd_len=8192
8766 ;;
8767
8768 osf*)
8769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8771 # nice to cause kernel panics so lets avoid the loop below.
8772 # First set a reasonable default.
8773 lt_cv_sys_max_cmd_len=16384
8774 #
8775 if test -x /sbin/sysconfig; then
8776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8778 esac
8779 fi
8780 ;;
8781 sco3.2v5*)
8782 lt_cv_sys_max_cmd_len=102400
8783 ;;
8784 sysv5* | sco5v6* | sysv4.2uw2*)
8785 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8786 if test -n "$kargmax"; then
8787 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8788 else
8789 lt_cv_sys_max_cmd_len=32768
8790 fi
8791 ;;
8792 *)
8793 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8794 if test -n "$lt_cv_sys_max_cmd_len" && \
8795 test undefined != "$lt_cv_sys_max_cmd_len"; then
8796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8798 else
8799 # Make teststring a little bigger before we do anything with it.
8800 # a 1K string should be a reasonable start.
8801 for i in 1 2 3 4 5 6 7 8; do
8802 teststring=$teststring$teststring
8803 done
8804 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8805 # If test is not a shell built-in, we'll probably end up computing a
8806 # maximum length that is only half of the actual maximum length, but
8807 # we can't tell.
8808 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8809 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8810 test 17 != "$i" # 1/2 MB should be enough
8811 do
8812 i=`expr $i + 1`
8813 teststring=$teststring$teststring
8814 done
8815 # Only check the string length outside the loop.
8816 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8817 teststring=
8818 # Add a significant safety factor because C++ compilers can tack on
8819 # massive amounts of additional arguments before passing them to the
8820 # linker. It appears as though 1/2 is a usable value.
8821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8822 fi
8823 ;;
8824 esac
8825
8826fi
8827
8828if test -n "$lt_cv_sys_max_cmd_len"; then
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8830printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8831else
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8833printf "%s\n" "none" >&6; }
8834fi
8835max_cmd_len=$lt_cv_sys_max_cmd_len
8836
8837
8838
8839
8840
8841
8842: ${CP="cp -f"}
8843: ${MV="mv -f"}
8844: ${RM="rm -f"}
8845
8846if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8847 lt_unset=unset
8848else
8849 lt_unset=false
8850fi
8851
8852
8853
8854
8855
8856# test EBCDIC or ASCII
8857case `echo X|tr X '\101'` in
8858 A) # ASCII based system
8859 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8860 lt_SP2NL='tr \040 \012'
8861 lt_NL2SP='tr \015\012 \040\040'
8862 ;;
8863 *) # EBCDIC based system
8864 lt_SP2NL='tr \100 \n'
8865 lt_NL2SP='tr \r\n \100\100'
8866 ;;
8867esac
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8878printf %s "checking how to convert $build file names to $host format... " >&6; }
8879if test ${lt_cv_to_host_file_cmd+y}
8880then :
8881 printf %s "(cached) " >&6
8882else $as_nop
8883 case $host in
8884 *-*-mingw* )
8885 case $build in
8886 *-*-mingw* ) # actually msys
8887 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8888 ;;
8889 *-*-cygwin* )
8890 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8891 ;;
8892 * ) # otherwise, assume *nix
8893 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8894 ;;
8895 esac
8896 ;;
8897 *-*-cygwin* )
8898 case $build in
8899 *-*-mingw* ) # actually msys
8900 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8901 ;;
8902 *-*-cygwin* )
8903 lt_cv_to_host_file_cmd=func_convert_file_noop
8904 ;;
8905 * ) # otherwise, assume *nix
8906 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8907 ;;
8908 esac
8909 ;;
8910 * ) # unhandled hosts (and "normal" native builds)
8911 lt_cv_to_host_file_cmd=func_convert_file_noop
8912 ;;
8913esac
8914
8915fi
8916
8917to_host_file_cmd=$lt_cv_to_host_file_cmd
8918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8919printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8920
8921
8922
8923
8924
8925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8926printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8927if test ${lt_cv_to_tool_file_cmd+y}
8928then :
8929 printf %s "(cached) " >&6
8930else $as_nop
8931 #assume ordinary cross tools, or native build.
8932lt_cv_to_tool_file_cmd=func_convert_file_noop
8933case $host in
8934 *-*-mingw* )
8935 case $build in
8936 *-*-mingw* ) # actually msys
8937 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8938 ;;
8939 esac
8940 ;;
8941esac
8942
8943fi
8944
8945to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8947printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8948
8949
8950
8951
8952
8953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8954printf %s "checking for $LD option to reload object files... " >&6; }
8955if test ${lt_cv_ld_reload_flag+y}
8956then :
8957 printf %s "(cached) " >&6
8958else $as_nop
8959 lt_cv_ld_reload_flag='-r'
8960fi
8961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8962printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8963reload_flag=$lt_cv_ld_reload_flag
8964case $reload_flag in
8965"" | " "*) ;;
8966*) reload_flag=" $reload_flag" ;;
8967esac
8968reload_cmds='$LD$reload_flag -o $output$reload_objs'
8969case $host_os in
8970 cygwin* | mingw* | pw32* | cegcc*)
8971 if test yes != "$GCC"; then
8972 reload_cmds=false
8973 fi
8974 ;;
8975 darwin*)
8976 if test yes = "$GCC"; then
8977 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8978 else
8979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8980 fi
8981 ;;
8982esac
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992if test -n "$ac_tool_prefix"; then
8993 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
8994set dummy ${ac_tool_prefix}file; ac_word=$2
8995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996printf %s "checking for $ac_word... " >&6; }
8997if test ${ac_cv_prog_FILECMD+y}
8998then :
8999 printf %s "(cached) " >&6
9000else $as_nop
9001 if test -n "$FILECMD"; then
9002 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 case $as_dir in #(((
9009 '') as_dir=./ ;;
9010 */) ;;
9011 *) as_dir=$as_dir/ ;;
9012 esac
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9017 break 2
9018 fi
9019done
9020 done
9021IFS=$as_save_IFS
9022
9023fi
9024fi
9025FILECMD=$ac_cv_prog_FILECMD
9026if test -n "$FILECMD"; then
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9028printf "%s\n" "$FILECMD" >&6; }
9029else
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031printf "%s\n" "no" >&6; }
9032fi
9033
9034
9035fi
9036if test -z "$ac_cv_prog_FILECMD"; then
9037 ac_ct_FILECMD=$FILECMD
9038 # Extract the first word of "file", so it can be a program name with args.
9039set dummy file; ac_word=$2
9040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041printf %s "checking for $ac_word... " >&6; }
9042if test ${ac_cv_prog_ac_ct_FILECMD+y}
9043then :
9044 printf %s "(cached) " >&6
9045else $as_nop
9046 if test -n "$ac_ct_FILECMD"; then
9047 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9048else
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 case $as_dir in #(((
9054 '') as_dir=./ ;;
9055 */) ;;
9056 *) as_dir=$as_dir/ ;;
9057 esac
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_ac_ct_FILECMD="file"
9061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064done
9065 done
9066IFS=$as_save_IFS
9067
9068fi
9069fi
9070ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9071if test -n "$ac_ct_FILECMD"; then
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9073printf "%s\n" "$ac_ct_FILECMD" >&6; }
9074else
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076printf "%s\n" "no" >&6; }
9077fi
9078
9079 if test "x$ac_ct_FILECMD" = x; then
9080 FILECMD=":"
9081 else
9082 case $cross_compiling:$ac_tool_warned in
9083yes:)
9084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9085printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9086ac_tool_warned=yes ;;
9087esac
9088 FILECMD=$ac_ct_FILECMD
9089 fi
9090else
9091 FILECMD="$ac_cv_prog_FILECMD"
9092fi
9093
9094
9095
9096
9097
9098
9099
9100if test -n "$ac_tool_prefix"; then
9101 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9102set dummy ${ac_tool_prefix}objdump; ac_word=$2
9103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104printf %s "checking for $ac_word... " >&6; }
9105if test ${ac_cv_prog_OBJDUMP+y}
9106then :
9107 printf %s "(cached) " >&6
9108else $as_nop
9109 if test -n "$OBJDUMP"; then
9110 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9111else
9112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113for as_dir in $PATH
9114do
9115 IFS=$as_save_IFS
9116 case $as_dir in #(((
9117 '') as_dir=./ ;;
9118 */) ;;
9119 *) as_dir=$as_dir/ ;;
9120 esac
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9123 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9125 break 2
9126 fi
9127done
9128 done
9129IFS=$as_save_IFS
9130
9131fi
9132fi
9133OBJDUMP=$ac_cv_prog_OBJDUMP
9134if test -n "$OBJDUMP"; then
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9136printf "%s\n" "$OBJDUMP" >&6; }
9137else
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139printf "%s\n" "no" >&6; }
9140fi
9141
9142
9143fi
9144if test -z "$ac_cv_prog_OBJDUMP"; then
9145 ac_ct_OBJDUMP=$OBJDUMP
9146 # Extract the first word of "objdump", so it can be a program name with args.
9147set dummy objdump; ac_word=$2
9148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149printf %s "checking for $ac_word... " >&6; }
9150if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9151then :
9152 printf %s "(cached) " >&6
9153else $as_nop
9154 if test -n "$ac_ct_OBJDUMP"; then
9155 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9156else
9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158for as_dir in $PATH
9159do
9160 IFS=$as_save_IFS
9161 case $as_dir in #(((
9162 '') as_dir=./ ;;
9163 */) ;;
9164 *) as_dir=$as_dir/ ;;
9165 esac
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9168 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9170 break 2
9171 fi
9172done
9173 done
9174IFS=$as_save_IFS
9175
9176fi
9177fi
9178ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9179if test -n "$ac_ct_OBJDUMP"; then
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9181printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9182else
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184printf "%s\n" "no" >&6; }
9185fi
9186
9187 if test "x$ac_ct_OBJDUMP" = x; then
9188 OBJDUMP="false"
9189 else
9190 case $cross_compiling:$ac_tool_warned in
9191yes:)
9192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9193printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9194ac_tool_warned=yes ;;
9195esac
9196 OBJDUMP=$ac_ct_OBJDUMP
9197 fi
9198else
9199 OBJDUMP="$ac_cv_prog_OBJDUMP"
9200fi
9201
9202test -z "$OBJDUMP" && OBJDUMP=objdump
9203
9204
9205
9206
9207
9208
9209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9210printf %s "checking how to recognize dependent libraries... " >&6; }
9211if test ${lt_cv_deplibs_check_method+y}
9212then :
9213 printf %s "(cached) " >&6
9214else $as_nop
9215 lt_cv_file_magic_cmd='$MAGIC_CMD'
9216lt_cv_file_magic_test_file=
9217lt_cv_deplibs_check_method='unknown'
9218# Need to set the preceding variable on all platforms that support
9219# interlibrary dependencies.
9220# 'none' -- dependencies not supported.
9221# 'unknown' -- same as none, but documents that we really don't know.
9222# 'pass_all' -- all dependencies passed with no checks.
9223# 'test_compile' -- check by making test program.
9224# 'file_magic [[regex]]' -- check by looking for files in library path
9225# that responds to the $file_magic_cmd with a given extended regex.
9226# If you have 'file' or equivalent on your system and you're not sure
9227# whether 'pass_all' will *always* work, you probably want this one.
9228
9229case $host_os in
9230aix[4-9]*)
9231 lt_cv_deplibs_check_method=pass_all
9232 ;;
9233
9234beos*)
9235 lt_cv_deplibs_check_method=pass_all
9236 ;;
9237
9238bsdi[45]*)
9239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9240 lt_cv_file_magic_cmd='$FILECMD -L'
9241 lt_cv_file_magic_test_file=/shlib/libc.so
9242 ;;
9243
9244cygwin*)
9245 # func_win32_libid is a shell function defined in ltmain.sh
9246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9247 lt_cv_file_magic_cmd='func_win32_libid'
9248 ;;
9249
9250mingw* | pw32*)
9251 # Base MSYS/MinGW do not provide the 'file' command needed by
9252 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9253 # unless we find 'file', for example because we are cross-compiling.
9254 if ( file / ) >/dev/null 2>&1; then
9255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9256 lt_cv_file_magic_cmd='func_win32_libid'
9257 else
9258 # Keep this pattern in sync with the one in func_win32_libid.
9259 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9260 lt_cv_file_magic_cmd='$OBJDUMP -f'
9261 fi
9262 ;;
9263
9264cegcc*)
9265 # use the weaker test based on 'objdump'. See mingw*.
9266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9267 lt_cv_file_magic_cmd='$OBJDUMP -f'
9268 ;;
9269
9270darwin* | rhapsody*)
9271 lt_cv_deplibs_check_method=pass_all
9272 ;;
9273
9274freebsd* | dragonfly* | midnightbsd*)
9275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9276 case $host_cpu in
9277 i*86 )
9278 # Not sure whether the presence of OpenBSD here was a mistake.
9279 # Let's accept both of them until this is cleared up.
9280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9281 lt_cv_file_magic_cmd=$FILECMD
9282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9283 ;;
9284 esac
9285 else
9286 lt_cv_deplibs_check_method=pass_all
9287 fi
9288 ;;
9289
9290haiku*)
9291 lt_cv_deplibs_check_method=pass_all
9292 ;;
9293
9294hpux10.20* | hpux11*)
9295 lt_cv_file_magic_cmd=$FILECMD
9296 case $host_cpu in
9297 ia64*)
9298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9300 ;;
9301 hppa*64*)
9302 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]'
9303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9304 ;;
9305 *)
9306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9308 ;;
9309 esac
9310 ;;
9311
9312interix[3-9]*)
9313 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9315 ;;
9316
9317irix5* | irix6* | nonstopux*)
9318 case $LD in
9319 *-32|*"-32 ") libmagic=32-bit;;
9320 *-n32|*"-n32 ") libmagic=N32;;
9321 *-64|*"-64 ") libmagic=64-bit;;
9322 *) libmagic=never-match;;
9323 esac
9324 lt_cv_deplibs_check_method=pass_all
9325 ;;
9326
9327# This must be glibc/ELF.
9328linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9329 lt_cv_deplibs_check_method=pass_all
9330 ;;
9331
9332netbsd* | netbsdelf*-gnu)
9333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9335 else
9336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9337 fi
9338 ;;
9339
9340newos6*)
9341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9342 lt_cv_file_magic_cmd=$FILECMD
9343 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9344 ;;
9345
9346*nto* | *qnx*)
9347 lt_cv_deplibs_check_method=pass_all
9348 ;;
9349
9350openbsd* | bitrig*)
9351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9353 else
9354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9355 fi
9356 ;;
9357
9358osf3* | osf4* | osf5*)
9359 lt_cv_deplibs_check_method=pass_all
9360 ;;
9361
9362rdos*)
9363 lt_cv_deplibs_check_method=pass_all
9364 ;;
9365
9366solaris*)
9367 lt_cv_deplibs_check_method=pass_all
9368 ;;
9369
9370sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9371 lt_cv_deplibs_check_method=pass_all
9372 ;;
9373
9374sysv4 | sysv4.3*)
9375 case $host_vendor in
9376 motorola)
9377 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]'
9378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9379 ;;
9380 ncr)
9381 lt_cv_deplibs_check_method=pass_all
9382 ;;
9383 sequent)
9384 lt_cv_file_magic_cmd='/bin/file'
9385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9386 ;;
9387 sni)
9388 lt_cv_file_magic_cmd='/bin/file'
9389 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9390 lt_cv_file_magic_test_file=/lib/libc.so
9391 ;;
9392 siemens)
9393 lt_cv_deplibs_check_method=pass_all
9394 ;;
9395 pc)
9396 lt_cv_deplibs_check_method=pass_all
9397 ;;
9398 esac
9399 ;;
9400
9401tpf*)
9402 lt_cv_deplibs_check_method=pass_all
9403 ;;
9404os2*)
9405 lt_cv_deplibs_check_method=pass_all
9406 ;;
9407esac
9408
9409fi
9410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9411printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9412
9413file_magic_glob=
9414want_nocaseglob=no
9415if test "$build" = "$host"; then
9416 case $host_os in
9417 mingw* | pw32*)
9418 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9419 want_nocaseglob=yes
9420 else
9421 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9422 fi
9423 ;;
9424 esac
9425fi
9426
9427file_magic_cmd=$lt_cv_file_magic_cmd
9428deplibs_check_method=$lt_cv_deplibs_check_method
9429test -z "$deplibs_check_method" && deplibs_check_method=unknown
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452if test -n "$ac_tool_prefix"; then
9453 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9454set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456printf %s "checking for $ac_word... " >&6; }
9457if test ${ac_cv_prog_DLLTOOL+y}
9458then :
9459 printf %s "(cached) " >&6
9460else $as_nop
9461 if test -n "$DLLTOOL"; then
9462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9463else
9464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467 IFS=$as_save_IFS
9468 case $as_dir in #(((
9469 '') as_dir=./ ;;
9470 */) ;;
9471 *) as_dir=$as_dir/ ;;
9472 esac
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9475 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9477 break 2
9478 fi
9479done
9480 done
9481IFS=$as_save_IFS
9482
9483fi
9484fi
9485DLLTOOL=$ac_cv_prog_DLLTOOL
9486if test -n "$DLLTOOL"; then
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9488printf "%s\n" "$DLLTOOL" >&6; }
9489else
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491printf "%s\n" "no" >&6; }
9492fi
9493
9494
9495fi
9496if test -z "$ac_cv_prog_DLLTOOL"; then
9497 ac_ct_DLLTOOL=$DLLTOOL
9498 # Extract the first word of "dlltool", so it can be a program name with args.
9499set dummy dlltool; ac_word=$2
9500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501printf %s "checking for $ac_word... " >&6; }
9502if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9503then :
9504 printf %s "(cached) " >&6
9505else $as_nop
9506 if test -n "$ac_ct_DLLTOOL"; then
9507 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9508else
9509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9510for as_dir in $PATH
9511do
9512 IFS=$as_save_IFS
9513 case $as_dir in #(((
9514 '') as_dir=./ ;;
9515 */) ;;
9516 *) as_dir=$as_dir/ ;;
9517 esac
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9520 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9522 break 2
9523 fi
9524done
9525 done
9526IFS=$as_save_IFS
9527
9528fi
9529fi
9530ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9531if test -n "$ac_ct_DLLTOOL"; then
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9533printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9534else
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536printf "%s\n" "no" >&6; }
9537fi
9538
9539 if test "x$ac_ct_DLLTOOL" = x; then
9540 DLLTOOL="false"
9541 else
9542 case $cross_compiling:$ac_tool_warned in
9543yes:)
9544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9545printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9546ac_tool_warned=yes ;;
9547esac
9548 DLLTOOL=$ac_ct_DLLTOOL
9549 fi
9550else
9551 DLLTOOL="$ac_cv_prog_DLLTOOL"
9552fi
9553
9554test -z "$DLLTOOL" && DLLTOOL=dlltool
9555
9556
9557
9558
9559
9560
9561
9562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9563printf %s "checking how to associate runtime and link libraries... " >&6; }
9564if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9565then :
9566 printf %s "(cached) " >&6
9567else $as_nop
9568 lt_cv_sharedlib_from_linklib_cmd='unknown'
9569
9570case $host_os in
9571cygwin* | mingw* | pw32* | cegcc*)
9572 # two different shell functions defined in ltmain.sh;
9573 # decide which one to use based on capabilities of $DLLTOOL
9574 case `$DLLTOOL --help 2>&1` in
9575 *--identify-strict*)
9576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9577 ;;
9578 *)
9579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9580 ;;
9581 esac
9582 ;;
9583*)
9584 # fallback: assume linklib IS sharedlib
9585 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9586 ;;
9587esac
9588
9589fi
9590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9591printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9592sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9593test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9594
9595
9596
9597
9598
9599
9600
9601if test -n "$ac_tool_prefix"; then
9602 for ac_prog in ar
9603 do
9604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607printf %s "checking for $ac_word... " >&6; }
9608if test ${ac_cv_prog_AR+y}
9609then :
9610 printf %s "(cached) " >&6
9611else $as_nop
9612 if test -n "$AR"; then
9613 ac_cv_prog_AR="$AR" # Let the user override the test.
9614else
9615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616for as_dir in $PATH
9617do
9618 IFS=$as_save_IFS
9619 case $as_dir in #(((
9620 '') as_dir=./ ;;
9621 */) ;;
9622 *) as_dir=$as_dir/ ;;
9623 esac
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9626 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9628 break 2
9629 fi
9630done
9631 done
9632IFS=$as_save_IFS
9633
9634fi
9635fi
9636AR=$ac_cv_prog_AR
9637if test -n "$AR"; then
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9639printf "%s\n" "$AR" >&6; }
9640else
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642printf "%s\n" "no" >&6; }
9643fi
9644
9645
9646 test -n "$AR" && break
9647 done
9648fi
9649if test -z "$AR"; then
9650 ac_ct_AR=$AR
9651 for ac_prog in ar
9652do
9653 # Extract the first word of "$ac_prog", so it can be a program name with args.
9654set dummy $ac_prog; ac_word=$2
9655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656printf %s "checking for $ac_word... " >&6; }
9657if test ${ac_cv_prog_ac_ct_AR+y}
9658then :
9659 printf %s "(cached) " >&6
9660else $as_nop
9661 if test -n "$ac_ct_AR"; then
9662 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9663else
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 case $as_dir in #(((
9669 '') as_dir=./ ;;
9670 */) ;;
9671 *) as_dir=$as_dir/ ;;
9672 esac
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9675 ac_cv_prog_ac_ct_AR="$ac_prog"
9676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9677 break 2
9678 fi
9679done
9680 done
9681IFS=$as_save_IFS
9682
9683fi
9684fi
9685ac_ct_AR=$ac_cv_prog_ac_ct_AR
9686if test -n "$ac_ct_AR"; then
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9688printf "%s\n" "$ac_ct_AR" >&6; }
9689else
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691printf "%s\n" "no" >&6; }
9692fi
9693
9694
9695 test -n "$ac_ct_AR" && break
9696done
9697
9698 if test "x$ac_ct_AR" = x; then
9699 AR="false"
9700 else
9701 case $cross_compiling:$ac_tool_warned in
9702yes:)
9703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9704printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9705ac_tool_warned=yes ;;
9706esac
9707 AR=$ac_ct_AR
9708 fi
9709fi
9710
9711: ${AR=ar}
9712
9713
9714
9715
9716
9717
9718# Use ARFLAGS variable as AR's operation code to sync the variable naming with
9719# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9720# higher priority because thats what people were doing historically (setting
9721# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9722# variable obsoleted/removed.
9723
9724test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9725lt_ar_flags=$AR_FLAGS
9726
9727
9728
9729
9730
9731
9732# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9733# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9734
9735
9736
9737
9738
9739
9740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9741printf %s "checking for archiver @FILE support... " >&6; }
9742if test ${lt_cv_ar_at_file+y}
9743then :
9744 printf %s "(cached) " >&6
9745else $as_nop
9746 lt_cv_ar_at_file=no
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h. */
9749
9750int main (void)
9751{
9752
9753 ;
9754 return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_compile "$LINENO"
9758then :
9759 echo conftest.$ac_objext > conftest.lst
9760 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9762 (eval $lt_ar_try) 2>&5
9763 ac_status=$?
9764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765 test $ac_status = 0; }
9766 if test 0 -eq "$ac_status"; then
9767 # Ensure the archiver fails upon bogus file names.
9768 rm -f conftest.$ac_objext libconftest.a
9769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9770 (eval $lt_ar_try) 2>&5
9771 ac_status=$?
9772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9773 test $ac_status = 0; }
9774 if test 0 -ne "$ac_status"; then
9775 lt_cv_ar_at_file=@
9776 fi
9777 fi
9778 rm -f conftest.* libconftest.a
9779
9780fi
9781rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9782
9783fi
9784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9785printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9786
9787if test no = "$lt_cv_ar_at_file"; then
9788 archiver_list_spec=
9789else
9790 archiver_list_spec=$lt_cv_ar_at_file
9791fi
9792
9793
9794
9795
9796
9797
9798
9799if test -n "$ac_tool_prefix"; then
9800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9801set dummy ${ac_tool_prefix}strip; ac_word=$2
9802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803printf %s "checking for $ac_word... " >&6; }
9804if test ${ac_cv_prog_STRIP+y}
9805then :
9806 printf %s "(cached) " >&6
9807else $as_nop
9808 if test -n "$STRIP"; then
9809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9810else
9811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812for as_dir in $PATH
9813do
9814 IFS=$as_save_IFS
9815 case $as_dir in #(((
9816 '') as_dir=./ ;;
9817 */) ;;
9818 *) as_dir=$as_dir/ ;;
9819 esac
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826done
9827 done
9828IFS=$as_save_IFS
9829
9830fi
9831fi
9832STRIP=$ac_cv_prog_STRIP
9833if test -n "$STRIP"; then
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9835printf "%s\n" "$STRIP" >&6; }
9836else
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838printf "%s\n" "no" >&6; }
9839fi
9840
9841
9842fi
9843if test -z "$ac_cv_prog_STRIP"; then
9844 ac_ct_STRIP=$STRIP
9845 # Extract the first word of "strip", so it can be a program name with args.
9846set dummy strip; ac_word=$2
9847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848printf %s "checking for $ac_word... " >&6; }
9849if test ${ac_cv_prog_ac_ct_STRIP+y}
9850then :
9851 printf %s "(cached) " >&6
9852else $as_nop
9853 if test -n "$ac_ct_STRIP"; then
9854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9855else
9856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857for as_dir in $PATH
9858do
9859 IFS=$as_save_IFS
9860 case $as_dir in #(((
9861 '') as_dir=./ ;;
9862 */) ;;
9863 *) as_dir=$as_dir/ ;;
9864 esac
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9867 ac_cv_prog_ac_ct_STRIP="strip"
9868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871done
9872 done
9873IFS=$as_save_IFS
9874
9875fi
9876fi
9877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9878if test -n "$ac_ct_STRIP"; then
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9880printf "%s\n" "$ac_ct_STRIP" >&6; }
9881else
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883printf "%s\n" "no" >&6; }
9884fi
9885
9886 if test "x$ac_ct_STRIP" = x; then
9887 STRIP=":"
9888 else
9889 case $cross_compiling:$ac_tool_warned in
9890yes:)
9891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9892printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9893ac_tool_warned=yes ;;
9894esac
9895 STRIP=$ac_ct_STRIP
9896 fi
9897else
9898 STRIP="$ac_cv_prog_STRIP"
9899fi
9900
9901test -z "$STRIP" && STRIP=:
9902
9903
9904
9905
9906
9907
9908if test -n "$ac_tool_prefix"; then
9909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9910set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912printf %s "checking for $ac_word... " >&6; }
9913if test ${ac_cv_prog_RANLIB+y}
9914then :
9915 printf %s "(cached) " >&6
9916else $as_nop
9917 if test -n "$RANLIB"; then
9918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9919else
9920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921for as_dir in $PATH
9922do
9923 IFS=$as_save_IFS
9924 case $as_dir in #(((
9925 '') as_dir=./ ;;
9926 */) ;;
9927 *) as_dir=$as_dir/ ;;
9928 esac
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9933 break 2
9934 fi
9935done
9936 done
9937IFS=$as_save_IFS
9938
9939fi
9940fi
9941RANLIB=$ac_cv_prog_RANLIB
9942if test -n "$RANLIB"; then
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9944printf "%s\n" "$RANLIB" >&6; }
9945else
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947printf "%s\n" "no" >&6; }
9948fi
9949
9950
9951fi
9952if test -z "$ac_cv_prog_RANLIB"; then
9953 ac_ct_RANLIB=$RANLIB
9954 # Extract the first word of "ranlib", so it can be a program name with args.
9955set dummy ranlib; ac_word=$2
9956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957printf %s "checking for $ac_word... " >&6; }
9958if test ${ac_cv_prog_ac_ct_RANLIB+y}
9959then :
9960 printf %s "(cached) " >&6
9961else $as_nop
9962 if test -n "$ac_ct_RANLIB"; then
9963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9964else
9965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9966for as_dir in $PATH
9967do
9968 IFS=$as_save_IFS
9969 case $as_dir in #(((
9970 '') as_dir=./ ;;
9971 */) ;;
9972 *) as_dir=$as_dir/ ;;
9973 esac
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9976 ac_cv_prog_ac_ct_RANLIB="ranlib"
9977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9978 break 2
9979 fi
9980done
9981 done
9982IFS=$as_save_IFS
9983
9984fi
9985fi
9986ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9987if test -n "$ac_ct_RANLIB"; then
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9989printf "%s\n" "$ac_ct_RANLIB" >&6; }
9990else
9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992printf "%s\n" "no" >&6; }
9993fi
9994
9995 if test "x$ac_ct_RANLIB" = x; then
9996 RANLIB=":"
9997 else
9998 case $cross_compiling:$ac_tool_warned in
9999yes:)
10000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10001printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10002ac_tool_warned=yes ;;
10003esac
10004 RANLIB=$ac_ct_RANLIB
10005 fi
10006else
10007 RANLIB="$ac_cv_prog_RANLIB"
10008fi
10009
10010test -z "$RANLIB" && RANLIB=:
10011
10012
10013
10014
10015
10016
10017# Determine commands to create old-style static archives.
10018old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10019old_postinstall_cmds='chmod 644 $oldlib'
10020old_postuninstall_cmds=
10021
10022if test -n "$RANLIB"; then
10023 case $host_os in
10024 bitrig* | openbsd*)
10025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10026 ;;
10027 *)
10028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10029 ;;
10030 esac
10031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10032fi
10033
10034case $host_os in
10035 darwin*)
10036 lock_old_archive_extraction=yes ;;
10037 *)
10038 lock_old_archive_extraction=no ;;
10039esac
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079# If no C compiler was specified, use CC.
10080LTCC=${LTCC-"$CC"}
10081
10082# If no C compiler flags were specified, use CFLAGS.
10083LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10084
10085# Allow CC to be a program name with arguments.
10086compiler=$CC
10087
10088
10089# Check for command to grab the raw symbol name followed by C symbol from nm.
10090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10091printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10092if test ${lt_cv_sys_global_symbol_pipe+y}
10093then :
10094 printf %s "(cached) " >&6
10095else $as_nop
10096
10097# These are sane defaults that work on at least a few old systems.
10098# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10099
10100# Character class describing NM global symbol codes.
10101symcode='[BCDEGRST]'
10102
10103# Regexp to match symbols that can be accessed directly from C.
10104sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10105
10106# Define system-specific variables.
10107case $host_os in
10108aix*)
10109 symcode='[BCDT]'
10110 ;;
10111cygwin* | mingw* | pw32* | cegcc*)
10112 symcode='[ABCDGISTW]'
10113 ;;
10114hpux*)
10115 if test ia64 = "$host_cpu"; then
10116 symcode='[ABCDEGRST]'
10117 fi
10118 ;;
10119irix* | nonstopux*)
10120 symcode='[BCDEGRST]'
10121 ;;
10122osf*)
10123 symcode='[BCDEGQRST]'
10124 ;;
10125solaris*)
10126 symcode='[BDRT]'
10127 ;;
10128sco3.2v5*)
10129 symcode='[DT]'
10130 ;;
10131sysv4.2uw2*)
10132 symcode='[DT]'
10133 ;;
10134sysv5* | sco5v6* | unixware* | OpenUNIX*)
10135 symcode='[ABDT]'
10136 ;;
10137sysv4)
10138 symcode='[DFNSTU]'
10139 ;;
10140esac
10141
10142# If we're using GNU nm, then use its standard symbol codes.
10143case `$NM -V 2>&1` in
10144*GNU* | *'with BFD'*)
10145 symcode='[ABCDGIRSTW]' ;;
10146esac
10147
10148if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10149 # Gets list of data symbols to import.
10150 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10151 # Adjust the below global symbol transforms to fixup imported variables.
10152 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10153 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10154 lt_c_name_lib_hook="\
10155 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10156 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10157else
10158 # Disable hooks by default.
10159 lt_cv_sys_global_symbol_to_import=
10160 lt_cdecl_hook=
10161 lt_c_name_hook=
10162 lt_c_name_lib_hook=
10163fi
10164
10165# Transform an extracted symbol line into a proper C declaration.
10166# Some systems (esp. on ia64) link data and code symbols differently,
10167# so use this general approach.
10168lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10169$lt_cdecl_hook\
10170" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10171" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10172
10173# Transform an extracted symbol line into symbol name and symbol address
10174lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10175$lt_c_name_hook\
10176" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10177" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10178
10179# Transform an extracted symbol line into symbol name with lib prefix and
10180# symbol address.
10181lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10182$lt_c_name_lib_hook\
10183" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10184" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10185" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10186
10187# Handle CRLF in mingw tool chain
10188opt_cr=
10189case $build_os in
10190mingw*)
10191 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10192 ;;
10193esac
10194
10195# Try without a prefix underscore, then with it.
10196for ac_symprfx in "" "_"; do
10197
10198 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10199 symxfrm="\\1 $ac_symprfx\\2 \\2"
10200
10201 # Write the raw and C identifiers.
10202 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10203 # Fake it for dumpbin and say T for any non-static function,
10204 # D for any global variable and I for any imported variable.
10205 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10206 # which start with @ or ?.
10207 lt_cv_sys_global_symbol_pipe="$AWK '"\
10208" {last_section=section; section=\$ 3};"\
10209" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10210" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10211" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10212" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10213" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10214" \$ 0!~/External *\|/{next};"\
10215" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10216" {if(hide[section]) next};"\
10217" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10218" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10219" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10220" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10221" ' prfx=^$ac_symprfx"
10222 else
10223 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10224 fi
10225 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10226
10227 # Check to see that the pipe works correctly.
10228 pipe_works=no
10229
10230 rm -f conftest*
10231 cat > conftest.$ac_ext <<_LT_EOF
10232#ifdef __cplusplus
10233extern "C" {
10234#endif
10235char nm_test_var;
10236void nm_test_func(void);
10237void nm_test_func(void){}
10238#ifdef __cplusplus
10239}
10240#endif
10241int main(){nm_test_var='a';nm_test_func();return(0);}
10242_LT_EOF
10243
10244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245 (eval $ac_compile) 2>&5
10246 ac_status=$?
10247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248 test $ac_status = 0; }; then
10249 # Now try to grab the symbols.
10250 nlist=conftest.nm
10251 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10252 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10253 # Try sorting and uniquifying the output.
10254 if sort "$nlist" | uniq > "$nlist"T; then
10255 mv -f "$nlist"T "$nlist"
10256 else
10257 rm -f "$nlist"T
10258 fi
10259
10260 # Make sure that we snagged all the symbols we need.
10261 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10262 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10263 cat <<_LT_EOF > conftest.$ac_ext
10264/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10265#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10266/* DATA imports from DLLs on WIN32 can't be const, because runtime
10267 relocations are performed -- see ld's documentation on pseudo-relocs. */
10268# define LT_DLSYM_CONST
10269#elif defined __osf__
10270/* This system does not cope well with relocations in const data. */
10271# define LT_DLSYM_CONST
10272#else
10273# define LT_DLSYM_CONST const
10274#endif
10275
10276#ifdef __cplusplus
10277extern "C" {
10278#endif
10279
10280_LT_EOF
10281 # Now generate the symbol file.
10282 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10283
10284 cat <<_LT_EOF >> conftest.$ac_ext
10285
10286/* The mapping between symbol names and symbols. */
10287LT_DLSYM_CONST struct {
10288 const char *name;
10289 void *address;
10290}
10291lt__PROGRAM__LTX_preloaded_symbols[] =
10292{
10293 { "@PROGRAM@", (void *) 0 },
10294_LT_EOF
10295 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10296 cat <<\_LT_EOF >> conftest.$ac_ext
10297 {0, (void *) 0}
10298};
10299
10300/* This works around a problem in FreeBSD linker */
10301#ifdef FREEBSD_WORKAROUND
10302static const void *lt_preloaded_setup() {
10303 return lt__PROGRAM__LTX_preloaded_symbols;
10304}
10305#endif
10306
10307#ifdef __cplusplus
10308}
10309#endif
10310_LT_EOF
10311 # Now try linking the two files.
10312 mv conftest.$ac_objext conftstm.$ac_objext
10313 lt_globsym_save_LIBS=$LIBS
10314 lt_globsym_save_CFLAGS=$CFLAGS
10315 LIBS=conftstm.$ac_objext
10316 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10318 (eval $ac_link) 2>&5
10319 ac_status=$?
10320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10322 pipe_works=yes
10323 fi
10324 LIBS=$lt_globsym_save_LIBS
10325 CFLAGS=$lt_globsym_save_CFLAGS
10326 else
10327 echo "cannot find nm_test_func in $nlist" >&5
10328 fi
10329 else
10330 echo "cannot find nm_test_var in $nlist" >&5
10331 fi
10332 else
10333 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10334 fi
10335 else
10336 echo "$progname: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10338 fi
10339 rm -rf conftest* conftst*
10340
10341 # Do not use the global_symbol_pipe unless it works.
10342 if test yes = "$pipe_works"; then
10343 break
10344 else
10345 lt_cv_sys_global_symbol_pipe=
10346 fi
10347done
10348
10349fi
10350
10351if test -z "$lt_cv_sys_global_symbol_pipe"; then
10352 lt_cv_sys_global_symbol_to_cdecl=
10353fi
10354if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10356printf "%s\n" "failed" >&6; }
10357else
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10359printf "%s\n" "ok" >&6; }
10360fi
10361
10362# Response file support.
10363if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10364 nm_file_list_spec='@'
10365elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10366 nm_file_list_spec='@'
10367fi
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10406printf %s "checking for sysroot... " >&6; }
10407
10408# Check whether --with-sysroot was given.
10409if test ${with_sysroot+y}
10410then :
10411 withval=$with_sysroot;
10412else $as_nop
10413 with_sysroot=no
10414fi
10415
10416
10417lt_sysroot=
10418case $with_sysroot in #(
10419 yes)
10420 if test yes = "$GCC"; then
10421 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10422 fi
10423 ;; #(
10424 /*)
10425 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10426 ;; #(
10427 no|'')
10428 ;; #(
10429 *)
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10431printf "%s\n" "$with_sysroot" >&6; }
10432 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10433 ;;
10434esac
10435
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10437printf "%s\n" "${lt_sysroot:-no}" >&6; }
10438
10439
10440
10441
10442
10443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10444printf %s "checking for a working dd... " >&6; }
10445if test ${ac_cv_path_lt_DD+y}
10446then :
10447 printf %s "(cached) " >&6
10448else $as_nop
10449 printf 0123456789abcdef0123456789abcdef >conftest.i
10450cat conftest.i conftest.i >conftest2.i
10451: ${lt_DD:=$DD}
10452if test -z "$lt_DD"; then
10453 ac_path_lt_DD_found=false
10454 # Loop through the user's path and test for each of PROGNAME-LIST
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456for as_dir in $PATH
10457do
10458 IFS=$as_save_IFS
10459 case $as_dir in #(((
10460 '') as_dir=./ ;;
10461 */) ;;
10462 *) as_dir=$as_dir/ ;;
10463 esac
10464 for ac_prog in dd
10465 do
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10468 as_fn_executable_p "$ac_path_lt_DD" || continue
10469if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10470 cmp -s conftest.i conftest.out \
10471 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10472fi
10473 $ac_path_lt_DD_found && break 3
10474 done
10475 done
10476 done
10477IFS=$as_save_IFS
10478 if test -z "$ac_cv_path_lt_DD"; then
10479 :
10480 fi
10481else
10482 ac_cv_path_lt_DD=$lt_DD
10483fi
10484
10485rm -f conftest.i conftest2.i conftest.out
10486fi
10487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10488printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10489
10490
10491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10492printf %s "checking how to truncate binary pipes... " >&6; }
10493if test ${lt_cv_truncate_bin+y}
10494then :
10495 printf %s "(cached) " >&6
10496else $as_nop
10497 printf 0123456789abcdef0123456789abcdef >conftest.i
10498cat conftest.i conftest.i >conftest2.i
10499lt_cv_truncate_bin=
10500if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10501 cmp -s conftest.i conftest.out \
10502 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10503fi
10504rm -f conftest.i conftest2.i conftest.out
10505test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10506fi
10507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10508printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10509
10510
10511
10512
10513
10514
10515
10516# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10517func_cc_basename ()
10518{
10519 for cc_temp in $*""; do
10520 case $cc_temp in
10521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10523 \-*) ;;
10524 *) break;;
10525 esac
10526 done
10527 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10528}
10529
10530# Check whether --enable-libtool-lock was given.
10531if test ${enable_libtool_lock+y}
10532then :
10533 enableval=$enable_libtool_lock;
10534fi
10535
10536test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10537
10538# Some flags need to be propagated to the compiler or linker for good
10539# libtool support.
10540case $host in
10541ia64-*-hpux*)
10542 # Find out what ABI is being produced by ac_compile, and set mode
10543 # options accordingly.
10544 echo 'int i;' > conftest.$ac_ext
10545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10546 (eval $ac_compile) 2>&5
10547 ac_status=$?
10548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549 test $ac_status = 0; }; then
10550 case `$FILECMD conftest.$ac_objext` in
10551 *ELF-32*)
10552 HPUX_IA64_MODE=32
10553 ;;
10554 *ELF-64*)
10555 HPUX_IA64_MODE=64
10556 ;;
10557 esac
10558 fi
10559 rm -rf conftest*
10560 ;;
10561*-*-irix6*)
10562 # Find out what ABI is being produced by ac_compile, and set linker
10563 # options accordingly.
10564 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10566 (eval $ac_compile) 2>&5
10567 ac_status=$?
10568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10569 test $ac_status = 0; }; then
10570 if test yes = "$lt_cv_prog_gnu_ld"; then
10571 case `$FILECMD conftest.$ac_objext` in
10572 *32-bit*)
10573 LD="${LD-ld} -melf32bsmip"
10574 ;;
10575 *N32*)
10576 LD="${LD-ld} -melf32bmipn32"
10577 ;;
10578 *64-bit*)
10579 LD="${LD-ld} -melf64bmip"
10580 ;;
10581 esac
10582 else
10583 case `$FILECMD conftest.$ac_objext` in
10584 *32-bit*)
10585 LD="${LD-ld} -32"
10586 ;;
10587 *N32*)
10588 LD="${LD-ld} -n32"
10589 ;;
10590 *64-bit*)
10591 LD="${LD-ld} -64"
10592 ;;
10593 esac
10594 fi
10595 fi
10596 rm -rf conftest*
10597 ;;
10598
10599mips64*-*linux*)
10600 # Find out what ABI is being produced by ac_compile, and set linker
10601 # options accordingly.
10602 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10604 (eval $ac_compile) 2>&5
10605 ac_status=$?
10606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10607 test $ac_status = 0; }; then
10608 emul=elf
10609 case `$FILECMD conftest.$ac_objext` in
10610 *32-bit*)
10611 emul="${emul}32"
10612 ;;
10613 *64-bit*)
10614 emul="${emul}64"
10615 ;;
10616 esac
10617 case `$FILECMD conftest.$ac_objext` in
10618 *MSB*)
10619 emul="${emul}btsmip"
10620 ;;
10621 *LSB*)
10622 emul="${emul}ltsmip"
10623 ;;
10624 esac
10625 case `$FILECMD conftest.$ac_objext` in
10626 *N32*)
10627 emul="${emul}n32"
10628 ;;
10629 esac
10630 LD="${LD-ld} -m $emul"
10631 fi
10632 rm -rf conftest*
10633 ;;
10634
10635x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10636s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10637 # Find out what ABI is being produced by ac_compile, and set linker
10638 # options accordingly. Note that the listed cases only cover the
10639 # situations where additional linker options are needed (such as when
10640 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10641 # vice versa); the common cases where no linker options are needed do
10642 # not appear in the list.
10643 echo 'int i;' > conftest.$ac_ext
10644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10645 (eval $ac_compile) 2>&5
10646 ac_status=$?
10647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648 test $ac_status = 0; }; then
10649 case `$FILECMD conftest.o` in
10650 *32-bit*)
10651 case $host in
10652 x86_64-*kfreebsd*-gnu)
10653 LD="${LD-ld} -m elf_i386_fbsd"
10654 ;;
10655 x86_64-*linux*)
10656 case `$FILECMD conftest.o` in
10657 *x86-64*)
10658 LD="${LD-ld} -m elf32_x86_64"
10659 ;;
10660 *)
10661 LD="${LD-ld} -m elf_i386"
10662 ;;
10663 esac
10664 ;;
10665 powerpc64le-*linux*)
10666 LD="${LD-ld} -m elf32lppclinux"
10667 ;;
10668 powerpc64-*linux*)
10669 LD="${LD-ld} -m elf32ppclinux"
10670 ;;
10671 s390x-*linux*)
10672 LD="${LD-ld} -m elf_s390"
10673 ;;
10674 sparc64-*linux*)
10675 LD="${LD-ld} -m elf32_sparc"
10676 ;;
10677 esac
10678 ;;
10679 *64-bit*)
10680 case $host in
10681 x86_64-*kfreebsd*-gnu)
10682 LD="${LD-ld} -m elf_x86_64_fbsd"
10683 ;;
10684 x86_64-*linux*)
10685 LD="${LD-ld} -m elf_x86_64"
10686 ;;
10687 powerpcle-*linux*)
10688 LD="${LD-ld} -m elf64lppc"
10689 ;;
10690 powerpc-*linux*)
10691 LD="${LD-ld} -m elf64ppc"
10692 ;;
10693 s390*-*linux*|s390*-*tpf*)
10694 LD="${LD-ld} -m elf64_s390"
10695 ;;
10696 sparc*-*linux*)
10697 LD="${LD-ld} -m elf64_sparc"
10698 ;;
10699 esac
10700 ;;
10701 esac
10702 fi
10703 rm -rf conftest*
10704 ;;
10705
10706*-*-sco3.2v5*)
10707 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10708 SAVE_CFLAGS=$CFLAGS
10709 CFLAGS="$CFLAGS -belf"
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10711printf %s "checking whether the C compiler needs -belf... " >&6; }
10712if test ${lt_cv_cc_needs_belf+y}
10713then :
10714 printf %s "(cached) " >&6
10715else $as_nop
10716 ac_ext=c
10717ac_cpp='$CPP $CPPFLAGS'
10718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10720ac_compiler_gnu=$ac_cv_c_compiler_gnu
10721
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723/* end confdefs.h. */
10724
10725int main (void)
10726{
10727
10728 ;
10729 return 0;
10730}
10731_ACEOF
10732if ac_fn_c_try_link "$LINENO"
10733then :
10734 lt_cv_cc_needs_belf=yes
10735else $as_nop
10736 lt_cv_cc_needs_belf=no
10737fi
10738rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739 conftest$ac_exeext conftest.$ac_ext
10740 ac_ext=c
10741ac_cpp='$CPP $CPPFLAGS'
10742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744ac_compiler_gnu=$ac_cv_c_compiler_gnu
10745
10746fi
10747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10748printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10749 if test yes != "$lt_cv_cc_needs_belf"; then
10750 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10751 CFLAGS=$SAVE_CFLAGS
10752 fi
10753 ;;
10754*-*solaris*)
10755 # Find out what ABI is being produced by ac_compile, and set linker
10756 # options accordingly.
10757 echo 'int i;' > conftest.$ac_ext
10758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10759 (eval $ac_compile) 2>&5
10760 ac_status=$?
10761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762 test $ac_status = 0; }; then
10763 case `$FILECMD conftest.o` in
10764 *64-bit*)
10765 case $lt_cv_prog_gnu_ld in
10766 yes*)
10767 case $host in
10768 i?86-*-solaris*|x86_64-*-solaris*)
10769 LD="${LD-ld} -m elf_x86_64"
10770 ;;
10771 sparc*-*-solaris*)
10772 LD="${LD-ld} -m elf64_sparc"
10773 ;;
10774 esac
10775 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10776 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10777 LD=${LD-ld}_sol2
10778 fi
10779 ;;
10780 *)
10781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10782 LD="${LD-ld} -64"
10783 fi
10784 ;;
10785 esac
10786 ;;
10787 esac
10788 fi
10789 rm -rf conftest*
10790 ;;
10791esac
10792
10793need_locks=$enable_libtool_lock
10794
10795if test -n "$ac_tool_prefix"; then
10796 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10797set dummy ${ac_tool_prefix}mt; ac_word=$2
10798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799printf %s "checking for $ac_word... " >&6; }
10800if test ${ac_cv_prog_MANIFEST_TOOL+y}
10801then :
10802 printf %s "(cached) " >&6
10803else $as_nop
10804 if test -n "$MANIFEST_TOOL"; then
10805 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10806else
10807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808for as_dir in $PATH
10809do
10810 IFS=$as_save_IFS
10811 case $as_dir in #(((
10812 '') as_dir=./ ;;
10813 */) ;;
10814 *) as_dir=$as_dir/ ;;
10815 esac
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10818 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10820 break 2
10821 fi
10822done
10823 done
10824IFS=$as_save_IFS
10825
10826fi
10827fi
10828MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10829if test -n "$MANIFEST_TOOL"; then
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10831printf "%s\n" "$MANIFEST_TOOL" >&6; }
10832else
10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834printf "%s\n" "no" >&6; }
10835fi
10836
10837
10838fi
10839if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10840 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10841 # Extract the first word of "mt", so it can be a program name with args.
10842set dummy mt; ac_word=$2
10843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844printf %s "checking for $ac_word... " >&6; }
10845if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10846then :
10847 printf %s "(cached) " >&6
10848else $as_nop
10849 if test -n "$ac_ct_MANIFEST_TOOL"; then
10850 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10851else
10852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853for as_dir in $PATH
10854do
10855 IFS=$as_save_IFS
10856 case $as_dir in #(((
10857 '') as_dir=./ ;;
10858 */) ;;
10859 *) as_dir=$as_dir/ ;;
10860 esac
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10865 break 2
10866 fi
10867done
10868 done
10869IFS=$as_save_IFS
10870
10871fi
10872fi
10873ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10874if test -n "$ac_ct_MANIFEST_TOOL"; then
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10876printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10877else
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879printf "%s\n" "no" >&6; }
10880fi
10881
10882 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10883 MANIFEST_TOOL=":"
10884 else
10885 case $cross_compiling:$ac_tool_warned in
10886yes:)
10887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889ac_tool_warned=yes ;;
10890esac
10891 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10892 fi
10893else
10894 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10895fi
10896
10897test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10899printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10900if test ${lt_cv_path_mainfest_tool+y}
10901then :
10902 printf %s "(cached) " >&6
10903else $as_nop
10904 lt_cv_path_mainfest_tool=no
10905 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10906 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10907 cat conftest.err >&5
10908 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10909 lt_cv_path_mainfest_tool=yes
10910 fi
10911 rm -f conftest*
10912fi
10913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10914printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10915if test yes != "$lt_cv_path_mainfest_tool"; then
10916 MANIFEST_TOOL=:
10917fi
10918
10919
10920
10921
10922
10923
10924 case $host_os in
10925 rhapsody* | darwin*)
10926 if test -n "$ac_tool_prefix"; then
10927 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10928set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930printf %s "checking for $ac_word... " >&6; }
10931if test ${ac_cv_prog_DSYMUTIL+y}
10932then :
10933 printf %s "(cached) " >&6
10934else $as_nop
10935 if test -n "$DSYMUTIL"; then
10936 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10937else
10938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939for as_dir in $PATH
10940do
10941 IFS=$as_save_IFS
10942 case $as_dir in #(((
10943 '') as_dir=./ ;;
10944 */) ;;
10945 *) as_dir=$as_dir/ ;;
10946 esac
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10951 break 2
10952 fi
10953done
10954 done
10955IFS=$as_save_IFS
10956
10957fi
10958fi
10959DSYMUTIL=$ac_cv_prog_DSYMUTIL
10960if test -n "$DSYMUTIL"; then
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10962printf "%s\n" "$DSYMUTIL" >&6; }
10963else
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965printf "%s\n" "no" >&6; }
10966fi
10967
10968
10969fi
10970if test -z "$ac_cv_prog_DSYMUTIL"; then
10971 ac_ct_DSYMUTIL=$DSYMUTIL
10972 # Extract the first word of "dsymutil", so it can be a program name with args.
10973set dummy dsymutil; ac_word=$2
10974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975printf %s "checking for $ac_word... " >&6; }
10976if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10977then :
10978 printf %s "(cached) " >&6
10979else $as_nop
10980 if test -n "$ac_ct_DSYMUTIL"; then
10981 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10982else
10983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984for as_dir in $PATH
10985do
10986 IFS=$as_save_IFS
10987 case $as_dir in #(((
10988 '') as_dir=./ ;;
10989 */) ;;
10990 *) as_dir=$as_dir/ ;;
10991 esac
10992 for ac_exec_ext in '' $ac_executable_extensions; do
10993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10994 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10996 break 2
10997 fi
10998done
10999 done
11000IFS=$as_save_IFS
11001
11002fi
11003fi
11004ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11005if test -n "$ac_ct_DSYMUTIL"; then
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11007printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11008else
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010printf "%s\n" "no" >&6; }
11011fi
11012
11013 if test "x$ac_ct_DSYMUTIL" = x; then
11014 DSYMUTIL=":"
11015 else
11016 case $cross_compiling:$ac_tool_warned in
11017yes:)
11018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11019printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020ac_tool_warned=yes ;;
11021esac
11022 DSYMUTIL=$ac_ct_DSYMUTIL
11023 fi
11024else
11025 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11026fi
11027
11028 if test -n "$ac_tool_prefix"; then
11029 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11030set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032printf %s "checking for $ac_word... " >&6; }
11033if test ${ac_cv_prog_NMEDIT+y}
11034then :
11035 printf %s "(cached) " >&6
11036else $as_nop
11037 if test -n "$NMEDIT"; then
11038 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11039else
11040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041for as_dir in $PATH
11042do
11043 IFS=$as_save_IFS
11044 case $as_dir in #(((
11045 '') as_dir=./ ;;
11046 */) ;;
11047 *) as_dir=$as_dir/ ;;
11048 esac
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11051 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11053 break 2
11054 fi
11055done
11056 done
11057IFS=$as_save_IFS
11058
11059fi
11060fi
11061NMEDIT=$ac_cv_prog_NMEDIT
11062if test -n "$NMEDIT"; then
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11064printf "%s\n" "$NMEDIT" >&6; }
11065else
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067printf "%s\n" "no" >&6; }
11068fi
11069
11070
11071fi
11072if test -z "$ac_cv_prog_NMEDIT"; then
11073 ac_ct_NMEDIT=$NMEDIT
11074 # Extract the first word of "nmedit", so it can be a program name with args.
11075set dummy nmedit; ac_word=$2
11076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077printf %s "checking for $ac_word... " >&6; }
11078if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11079then :
11080 printf %s "(cached) " >&6
11081else $as_nop
11082 if test -n "$ac_ct_NMEDIT"; then
11083 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11084else
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 case $as_dir in #(((
11090 '') as_dir=./ ;;
11091 */) ;;
11092 *) as_dir=$as_dir/ ;;
11093 esac
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11096 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11098 break 2
11099 fi
11100done
11101 done
11102IFS=$as_save_IFS
11103
11104fi
11105fi
11106ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11107if test -n "$ac_ct_NMEDIT"; then
11108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11109printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11110else
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112printf "%s\n" "no" >&6; }
11113fi
11114
11115 if test "x$ac_ct_NMEDIT" = x; then
11116 NMEDIT=":"
11117 else
11118 case $cross_compiling:$ac_tool_warned in
11119yes:)
11120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11121printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11122ac_tool_warned=yes ;;
11123esac
11124 NMEDIT=$ac_ct_NMEDIT
11125 fi
11126else
11127 NMEDIT="$ac_cv_prog_NMEDIT"
11128fi
11129
11130 if test -n "$ac_tool_prefix"; then
11131 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11132set dummy ${ac_tool_prefix}lipo; ac_word=$2
11133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134printf %s "checking for $ac_word... " >&6; }
11135if test ${ac_cv_prog_LIPO+y}
11136then :
11137 printf %s "(cached) " >&6
11138else $as_nop
11139 if test -n "$LIPO"; then
11140 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11141else
11142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143for as_dir in $PATH
11144do
11145 IFS=$as_save_IFS
11146 case $as_dir in #(((
11147 '') as_dir=./ ;;
11148 */) ;;
11149 *) as_dir=$as_dir/ ;;
11150 esac
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11155 break 2
11156 fi
11157done
11158 done
11159IFS=$as_save_IFS
11160
11161fi
11162fi
11163LIPO=$ac_cv_prog_LIPO
11164if test -n "$LIPO"; then
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11166printf "%s\n" "$LIPO" >&6; }
11167else
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169printf "%s\n" "no" >&6; }
11170fi
11171
11172
11173fi
11174if test -z "$ac_cv_prog_LIPO"; then
11175 ac_ct_LIPO=$LIPO
11176 # Extract the first word of "lipo", so it can be a program name with args.
11177set dummy lipo; ac_word=$2
11178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179printf %s "checking for $ac_word... " >&6; }
11180if test ${ac_cv_prog_ac_ct_LIPO+y}
11181then :
11182 printf %s "(cached) " >&6
11183else $as_nop
11184 if test -n "$ac_ct_LIPO"; then
11185 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11186else
11187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188for as_dir in $PATH
11189do
11190 IFS=$as_save_IFS
11191 case $as_dir in #(((
11192 '') as_dir=./ ;;
11193 */) ;;
11194 *) as_dir=$as_dir/ ;;
11195 esac
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11198 ac_cv_prog_ac_ct_LIPO="lipo"
11199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11200 break 2
11201 fi
11202done
11203 done
11204IFS=$as_save_IFS
11205
11206fi
11207fi
11208ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11209if test -n "$ac_ct_LIPO"; then
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11211printf "%s\n" "$ac_ct_LIPO" >&6; }
11212else
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214printf "%s\n" "no" >&6; }
11215fi
11216
11217 if test "x$ac_ct_LIPO" = x; then
11218 LIPO=":"
11219 else
11220 case $cross_compiling:$ac_tool_warned in
11221yes:)
11222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11223printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11224ac_tool_warned=yes ;;
11225esac
11226 LIPO=$ac_ct_LIPO
11227 fi
11228else
11229 LIPO="$ac_cv_prog_LIPO"
11230fi
11231
11232 if test -n "$ac_tool_prefix"; then
11233 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11234set dummy ${ac_tool_prefix}otool; ac_word=$2
11235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236printf %s "checking for $ac_word... " >&6; }
11237if test ${ac_cv_prog_OTOOL+y}
11238then :
11239 printf %s "(cached) " >&6
11240else $as_nop
11241 if test -n "$OTOOL"; then
11242 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11243else
11244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245for as_dir in $PATH
11246do
11247 IFS=$as_save_IFS
11248 case $as_dir in #(((
11249 '') as_dir=./ ;;
11250 */) ;;
11251 *) as_dir=$as_dir/ ;;
11252 esac
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11255 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11257 break 2
11258 fi
11259done
11260 done
11261IFS=$as_save_IFS
11262
11263fi
11264fi
11265OTOOL=$ac_cv_prog_OTOOL
11266if test -n "$OTOOL"; then
11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11268printf "%s\n" "$OTOOL" >&6; }
11269else
11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271printf "%s\n" "no" >&6; }
11272fi
11273
11274
11275fi
11276if test -z "$ac_cv_prog_OTOOL"; then
11277 ac_ct_OTOOL=$OTOOL
11278 # Extract the first word of "otool", so it can be a program name with args.
11279set dummy otool; ac_word=$2
11280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281printf %s "checking for $ac_word... " >&6; }
11282if test ${ac_cv_prog_ac_ct_OTOOL+y}
11283then :
11284 printf %s "(cached) " >&6
11285else $as_nop
11286 if test -n "$ac_ct_OTOOL"; then
11287 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11288else
11289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 case $as_dir in #(((
11294 '') as_dir=./ ;;
11295 */) ;;
11296 *) as_dir=$as_dir/ ;;
11297 esac
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_ac_ct_OTOOL="otool"
11301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11302 break 2
11303 fi
11304done
11305 done
11306IFS=$as_save_IFS
11307
11308fi
11309fi
11310ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11311if test -n "$ac_ct_OTOOL"; then
11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11313printf "%s\n" "$ac_ct_OTOOL" >&6; }
11314else
11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316printf "%s\n" "no" >&6; }
11317fi
11318
11319 if test "x$ac_ct_OTOOL" = x; then
11320 OTOOL=":"
11321 else
11322 case $cross_compiling:$ac_tool_warned in
11323yes:)
11324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11325printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11326ac_tool_warned=yes ;;
11327esac
11328 OTOOL=$ac_ct_OTOOL
11329 fi
11330else
11331 OTOOL="$ac_cv_prog_OTOOL"
11332fi
11333
11334 if test -n "$ac_tool_prefix"; then
11335 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11336set dummy ${ac_tool_prefix}otool64; ac_word=$2
11337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338printf %s "checking for $ac_word... " >&6; }
11339if test ${ac_cv_prog_OTOOL64+y}
11340then :
11341 printf %s "(cached) " >&6
11342else $as_nop
11343 if test -n "$OTOOL64"; then
11344 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 case $as_dir in #(((
11351 '') as_dir=./ ;;
11352 */) ;;
11353 *) as_dir=$as_dir/ ;;
11354 esac
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11357 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11359 break 2
11360 fi
11361done
11362 done
11363IFS=$as_save_IFS
11364
11365fi
11366fi
11367OTOOL64=$ac_cv_prog_OTOOL64
11368if test -n "$OTOOL64"; then
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11370printf "%s\n" "$OTOOL64" >&6; }
11371else
11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373printf "%s\n" "no" >&6; }
11374fi
11375
11376
11377fi
11378if test -z "$ac_cv_prog_OTOOL64"; then
11379 ac_ct_OTOOL64=$OTOOL64
11380 # Extract the first word of "otool64", so it can be a program name with args.
11381set dummy otool64; ac_word=$2
11382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383printf %s "checking for $ac_word... " >&6; }
11384if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11385then :
11386 printf %s "(cached) " >&6
11387else $as_nop
11388 if test -n "$ac_ct_OTOOL64"; then
11389 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 case $as_dir in #(((
11396 '') as_dir=./ ;;
11397 */) ;;
11398 *) as_dir=$as_dir/ ;;
11399 esac
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_ac_ct_OTOOL64="otool64"
11403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11404 break 2
11405 fi
11406done
11407 done
11408IFS=$as_save_IFS
11409
11410fi
11411fi
11412ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11413if test -n "$ac_ct_OTOOL64"; then
11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11415printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11416else
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418printf "%s\n" "no" >&6; }
11419fi
11420
11421 if test "x$ac_ct_OTOOL64" = x; then
11422 OTOOL64=":"
11423 else
11424 case $cross_compiling:$ac_tool_warned in
11425yes:)
11426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11427printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11428ac_tool_warned=yes ;;
11429esac
11430 OTOOL64=$ac_ct_OTOOL64
11431 fi
11432else
11433 OTOOL64="$ac_cv_prog_OTOOL64"
11434fi
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11463printf %s "checking for -single_module linker flag... " >&6; }
11464if test ${lt_cv_apple_cc_single_mod+y}
11465then :
11466 printf %s "(cached) " >&6
11467else $as_nop
11468 lt_cv_apple_cc_single_mod=no
11469 if test -z "$LT_MULTI_MODULE"; then
11470 # By default we will add the -single_module flag. You can override
11471 # by either setting the environment variable LT_MULTI_MODULE
11472 # non-empty at configure time, or by adding -multi_module to the
11473 # link flags.
11474 rm -rf libconftest.dylib*
11475 echo "int foo(void){return 1;}" > conftest.c
11476 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11477-dynamiclib -Wl,-single_module conftest.c" >&5
11478 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11479 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11480 _lt_result=$?
11481 # If there is a non-empty error log, and "single_module"
11482 # appears in it, assume the flag caused a linker warning
11483 if test -s conftest.err && $GREP single_module conftest.err; then
11484 cat conftest.err >&5
11485 # Otherwise, if the output was created with a 0 exit code from
11486 # the compiler, it worked.
11487 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11488 lt_cv_apple_cc_single_mod=yes
11489 else
11490 cat conftest.err >&5
11491 fi
11492 rm -rf libconftest.dylib*
11493 rm -f conftest.*
11494 fi
11495fi
11496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11497printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11498
11499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11500printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11501if test ${lt_cv_ld_exported_symbols_list+y}
11502then :
11503 printf %s "(cached) " >&6
11504else $as_nop
11505 lt_cv_ld_exported_symbols_list=no
11506 save_LDFLAGS=$LDFLAGS
11507 echo "_main" > conftest.sym
11508 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510/* end confdefs.h. */
11511
11512int main (void)
11513{
11514
11515 ;
11516 return 0;
11517}
11518_ACEOF
11519if ac_fn_c_try_link "$LINENO"
11520then :
11521 lt_cv_ld_exported_symbols_list=yes
11522else $as_nop
11523 lt_cv_ld_exported_symbols_list=no
11524fi
11525rm -f core conftest.err conftest.$ac_objext conftest.beam \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LDFLAGS=$save_LDFLAGS
11528
11529fi
11530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11531printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11532
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11534printf %s "checking for -force_load linker flag... " >&6; }
11535if test ${lt_cv_ld_force_load+y}
11536then :
11537 printf %s "(cached) " >&6
11538else $as_nop
11539 lt_cv_ld_force_load=no
11540 cat > conftest.c << _LT_EOF
11541int forced_loaded() { return 2;}
11542_LT_EOF
11543 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11544 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11545 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11546 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11547 echo "$RANLIB libconftest.a" >&5
11548 $RANLIB libconftest.a 2>&5
11549 cat > conftest.c << _LT_EOF
11550int main() { return 0;}
11551_LT_EOF
11552 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11553 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11554 _lt_result=$?
11555 if test -s conftest.err && $GREP force_load conftest.err; then
11556 cat conftest.err >&5
11557 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11558 lt_cv_ld_force_load=yes
11559 else
11560 cat conftest.err >&5
11561 fi
11562 rm -f conftest.err libconftest.a conftest conftest.c
11563 rm -rf conftest.dSYM
11564
11565fi
11566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11567printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11568 case $host_os in
11569 rhapsody* | darwin1.[012])
11570 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11571 darwin1.*)
11572 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11573 darwin*)
11574 case $MACOSX_DEPLOYMENT_TARGET,$host in
11575 10.[012],*|,*powerpc*-darwin[5-8]*)
11576 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11577 *)
11578 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11579 esac
11580 ;;
11581 esac
11582 if test yes = "$lt_cv_apple_cc_single_mod"; then
11583 _lt_dar_single_mod='$single_module'
11584 fi
11585 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11586 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11587 else
11588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11589 fi
11590 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11591 _lt_dsymutil='~$DSYMUTIL $lib || :'
11592 else
11593 _lt_dsymutil=
11594 fi
11595 ;;
11596 esac
11597
11598# func_munge_path_list VARIABLE PATH
11599# -----------------------------------
11600# VARIABLE is name of variable containing _space_ separated list of
11601# directories to be munged by the contents of PATH, which is string
11602# having a format:
11603# "DIR[:DIR]:"
11604# string "DIR[ DIR]" will be prepended to VARIABLE
11605# ":DIR[:DIR]"
11606# string "DIR[ DIR]" will be appended to VARIABLE
11607# "DIRP[:DIRP]::[DIRA:]DIRA"
11608# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11609# "DIRA[ DIRA]" will be appended to VARIABLE
11610# "DIR[:DIR]"
11611# VARIABLE will be replaced by "DIR[ DIR]"
11612func_munge_path_list ()
11613{
11614 case x$2 in
11615 x)
11616 ;;
11617 *:)
11618 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11619 ;;
11620 x:*)
11621 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11622 ;;
11623 *::*)
11624 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11625 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11626 ;;
11627 *)
11628 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11629 ;;
11630 esac
11631}
11632
11633ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11634"
11635if test "x$ac_cv_header_dlfcn_h" = xyes
11636then :
11637 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11638
11639fi
11640
11641# ------------------------------------ #
11642# Determine libtool default behavior #
11643# ------------------------------------ #
11644
11645#
11646# Default behavior is to enable shared and static libraries on systems
11647# where libtool knows how to build both library versions, and does not
11648# require separate configuration and build runs for each flavor.
11649#
11650
11651xc_lt_want_enable_shared='yes'
11652xc_lt_want_enable_static='yes'
11653
11654#
11655# User may have disabled shared or static libraries.
11656#
11657case "x$enable_shared" in # (
11658 xno)
11659 xc_lt_want_enable_shared='no'
11660 ;;
11661esac
11662case "x$enable_static" in # (
11663 xno)
11664 xc_lt_want_enable_static='no'
11665 ;;
11666esac
11667if test "x$xc_lt_want_enable_shared" = 'xno' &&
11668 test "x$xc_lt_want_enable_static" = 'xno'; then
11669 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11670fi
11671
11672#
11673# Default behavior on systems that require independent configuration
11674# and build runs for shared and static is to enable shared libraries
11675# and disable static ones. On these systems option '--disable-shared'
11676# must be used in order to build a proper static library.
11677#
11678
11679if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11680 test "x$xc_lt_want_enable_static" = 'xyes'; then
11681 case $host_os in # (
11682 pw32* | cegcc* | os2* | aix*)
11683 xc_lt_want_enable_static='no'
11684 ;;
11685 esac
11686fi
11687
11688#
11689# Make libtool aware of current shared and static library preferences
11690# taking in account that, depending on host characteristics, libtool
11691# may modify these option preferences later in this configure script.
11692#
11693
11694enable_shared=$xc_lt_want_enable_shared
11695enable_static=$xc_lt_want_enable_static
11696
11697#
11698# Default behavior is to build PIC objects for shared libraries and
11699# non-PIC objects for static libraries.
11700#
11701
11702xc_lt_want_with_pic='default'
11703
11704#
11705# User may have specified PIC preference.
11706#
11707
11708case "x$with_pic" in # ((
11709 xno)
11710 xc_lt_want_with_pic='no'
11711 ;;
11712 xyes)
11713 xc_lt_want_with_pic='yes'
11714 ;;
11715esac
11716
11717#
11718# Default behavior on some systems where building a shared library out
11719# of non-PIC compiled objects will fail with following linker error
11720# "relocation R_X86_64_32 can not be used when making a shared object"
11721# is to build PIC objects even for static libraries. This behavior may
11722# be overridden using 'configure --disable-shared --without-pic'.
11723#
11724
11725if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11726 case $host_cpu in # (
11727 x86_64 | amd64 | ia64)
11728 case $host_os in # (
11729 linux* | freebsd* | midnightbsd*)
11730 xc_lt_want_with_pic='yes'
11731 ;;
11732 esac
11733 ;;
11734 esac
11735fi
11736
11737#
11738# Make libtool aware of current PIC preference taking in account that,
11739# depending on host characteristics, libtool may modify PIC default
11740# behavior to fit host system idiosyncrasies later in this script.
11741#
11742
11743with_pic=$xc_lt_want_with_pic
11744
11745## ----------------------- ##
11746## Start of libtool code ##
11747## ----------------------- ##
11748
11749
11750
11751
11752# Set options
11753enable_win32_dll=yes
11754
11755case $host in
11756*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11757 if test -n "$ac_tool_prefix"; then
11758 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11759set dummy ${ac_tool_prefix}as; ac_word=$2
11760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761printf %s "checking for $ac_word... " >&6; }
11762if test ${ac_cv_prog_AS+y}
11763then :
11764 printf %s "(cached) " >&6
11765else $as_nop
11766 if test -n "$AS"; then
11767 ac_cv_prog_AS="$AS" # Let the user override the test.
11768else
11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770for as_dir in $PATH
11771do
11772 IFS=$as_save_IFS
11773 case $as_dir in #(((
11774 '') as_dir=./ ;;
11775 */) ;;
11776 *) as_dir=$as_dir/ ;;
11777 esac
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11780 ac_cv_prog_AS="${ac_tool_prefix}as"
11781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11782 break 2
11783 fi
11784done
11785 done
11786IFS=$as_save_IFS
11787
11788fi
11789fi
11790AS=$ac_cv_prog_AS
11791if test -n "$AS"; then
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11793printf "%s\n" "$AS" >&6; }
11794else
11795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796printf "%s\n" "no" >&6; }
11797fi
11798
11799
11800fi
11801if test -z "$ac_cv_prog_AS"; then
11802 ac_ct_AS=$AS
11803 # Extract the first word of "as", so it can be a program name with args.
11804set dummy as; ac_word=$2
11805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806printf %s "checking for $ac_word... " >&6; }
11807if test ${ac_cv_prog_ac_ct_AS+y}
11808then :
11809 printf %s "(cached) " >&6
11810else $as_nop
11811 if test -n "$ac_ct_AS"; then
11812 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11813else
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 case $as_dir in #(((
11819 '') as_dir=./ ;;
11820 */) ;;
11821 *) as_dir=$as_dir/ ;;
11822 esac
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11825 ac_cv_prog_ac_ct_AS="as"
11826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11827 break 2
11828 fi
11829done
11830 done
11831IFS=$as_save_IFS
11832
11833fi
11834fi
11835ac_ct_AS=$ac_cv_prog_ac_ct_AS
11836if test -n "$ac_ct_AS"; then
11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11838printf "%s\n" "$ac_ct_AS" >&6; }
11839else
11840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841printf "%s\n" "no" >&6; }
11842fi
11843
11844 if test "x$ac_ct_AS" = x; then
11845 AS="false"
11846 else
11847 case $cross_compiling:$ac_tool_warned in
11848yes:)
11849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851ac_tool_warned=yes ;;
11852esac
11853 AS=$ac_ct_AS
11854 fi
11855else
11856 AS="$ac_cv_prog_AS"
11857fi
11858
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11861set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863printf %s "checking for $ac_word... " >&6; }
11864if test ${ac_cv_prog_DLLTOOL+y}
11865then :
11866 printf %s "(cached) " >&6
11867else $as_nop
11868 if test -n "$DLLTOOL"; then
11869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11870else
11871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872for as_dir in $PATH
11873do
11874 IFS=$as_save_IFS
11875 case $as_dir in #(((
11876 '') as_dir=./ ;;
11877 */) ;;
11878 *) as_dir=$as_dir/ ;;
11879 esac
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886done
11887 done
11888IFS=$as_save_IFS
11889
11890fi
11891fi
11892DLLTOOL=$ac_cv_prog_DLLTOOL
11893if test -n "$DLLTOOL"; then
11894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11895printf "%s\n" "$DLLTOOL" >&6; }
11896else
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898printf "%s\n" "no" >&6; }
11899fi
11900
11901
11902fi
11903if test -z "$ac_cv_prog_DLLTOOL"; then
11904 ac_ct_DLLTOOL=$DLLTOOL
11905 # Extract the first word of "dlltool", so it can be a program name with args.
11906set dummy dlltool; ac_word=$2
11907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908printf %s "checking for $ac_word... " >&6; }
11909if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11910then :
11911 printf %s "(cached) " >&6
11912else $as_nop
11913 if test -n "$ac_ct_DLLTOOL"; then
11914 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11915else
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919 IFS=$as_save_IFS
11920 case $as_dir in #(((
11921 '') as_dir=./ ;;
11922 */) ;;
11923 *) as_dir=$as_dir/ ;;
11924 esac
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11927 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11929 break 2
11930 fi
11931done
11932 done
11933IFS=$as_save_IFS
11934
11935fi
11936fi
11937ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11938if test -n "$ac_ct_DLLTOOL"; then
11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11940printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11941else
11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943printf "%s\n" "no" >&6; }
11944fi
11945
11946 if test "x$ac_ct_DLLTOOL" = x; then
11947 DLLTOOL="false"
11948 else
11949 case $cross_compiling:$ac_tool_warned in
11950yes:)
11951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11952printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11953ac_tool_warned=yes ;;
11954esac
11955 DLLTOOL=$ac_ct_DLLTOOL
11956 fi
11957else
11958 DLLTOOL="$ac_cv_prog_DLLTOOL"
11959fi
11960
11961 if test -n "$ac_tool_prefix"; then
11962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11963set dummy ${ac_tool_prefix}objdump; ac_word=$2
11964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965printf %s "checking for $ac_word... " >&6; }
11966if test ${ac_cv_prog_OBJDUMP+y}
11967then :
11968 printf %s "(cached) " >&6
11969else $as_nop
11970 if test -n "$OBJDUMP"; then
11971 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11972else
11973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974for as_dir in $PATH
11975do
11976 IFS=$as_save_IFS
11977 case $as_dir in #(((
11978 '') as_dir=./ ;;
11979 */) ;;
11980 *) as_dir=$as_dir/ ;;
11981 esac
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11984 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11986 break 2
11987 fi
11988done
11989 done
11990IFS=$as_save_IFS
11991
11992fi
11993fi
11994OBJDUMP=$ac_cv_prog_OBJDUMP
11995if test -n "$OBJDUMP"; then
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11997printf "%s\n" "$OBJDUMP" >&6; }
11998else
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000printf "%s\n" "no" >&6; }
12001fi
12002
12003
12004fi
12005if test -z "$ac_cv_prog_OBJDUMP"; then
12006 ac_ct_OBJDUMP=$OBJDUMP
12007 # Extract the first word of "objdump", so it can be a program name with args.
12008set dummy objdump; ac_word=$2
12009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010printf %s "checking for $ac_word... " >&6; }
12011if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12012then :
12013 printf %s "(cached) " >&6
12014else $as_nop
12015 if test -n "$ac_ct_OBJDUMP"; then
12016 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12017else
12018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $PATH
12020do
12021 IFS=$as_save_IFS
12022 case $as_dir in #(((
12023 '') as_dir=./ ;;
12024 */) ;;
12025 *) as_dir=$as_dir/ ;;
12026 esac
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12029 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12031 break 2
12032 fi
12033done
12034 done
12035IFS=$as_save_IFS
12036
12037fi
12038fi
12039ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12040if test -n "$ac_ct_OBJDUMP"; then
12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12042printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12043else
12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045printf "%s\n" "no" >&6; }
12046fi
12047
12048 if test "x$ac_ct_OBJDUMP" = x; then
12049 OBJDUMP="false"
12050 else
12051 case $cross_compiling:$ac_tool_warned in
12052yes:)
12053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12054printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12055ac_tool_warned=yes ;;
12056esac
12057 OBJDUMP=$ac_ct_OBJDUMP
12058 fi
12059else
12060 OBJDUMP="$ac_cv_prog_OBJDUMP"
12061fi
12062
12063 ;;
12064esac
12065
12066test -z "$AS" && AS=as
12067
12068
12069
12070
12071
12072test -z "$DLLTOOL" && DLLTOOL=dlltool
12073
12074
12075
12076
12077
12078test -z "$OBJDUMP" && OBJDUMP=objdump
12079
12080
12081
12082
12083
12084
12085
12086 enable_dlopen=no
12087
12088
12089
12090 # Check whether --enable-shared was given.
12091if test ${enable_shared+y}
12092then :
12093 enableval=$enable_shared; p=${PACKAGE-default}
12094 case $enableval in
12095 yes) enable_shared=yes ;;
12096 no) enable_shared=no ;;
12097 *)
12098 enable_shared=no
12099 # Look at the argument we got. We use all the common list separators.
12100 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12101 for pkg in $enableval; do
12102 IFS=$lt_save_ifs
12103 if test "X$pkg" = "X$p"; then
12104 enable_shared=yes
12105 fi
12106 done
12107 IFS=$lt_save_ifs
12108 ;;
12109 esac
12110else $as_nop
12111 enable_shared=yes
12112fi
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122 # Check whether --enable-static was given.
12123if test ${enable_static+y}
12124then :
12125 enableval=$enable_static; p=${PACKAGE-default}
12126 case $enableval in
12127 yes) enable_static=yes ;;
12128 no) enable_static=no ;;
12129 *)
12130 enable_static=no
12131 # Look at the argument we got. We use all the common list separators.
12132 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12133 for pkg in $enableval; do
12134 IFS=$lt_save_ifs
12135 if test "X$pkg" = "X$p"; then
12136 enable_static=yes
12137 fi
12138 done
12139 IFS=$lt_save_ifs
12140 ;;
12141 esac
12142else $as_nop
12143 enable_static=yes
12144fi
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155# Check whether --with-pic was given.
12156if test ${with_pic+y}
12157then :
12158 withval=$with_pic; lt_p=${PACKAGE-default}
12159 case $withval in
12160 yes|no) pic_mode=$withval ;;
12161 *)
12162 pic_mode=default
12163 # Look at the argument we got. We use all the common list separators.
12164 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12165 for lt_pkg in $withval; do
12166 IFS=$lt_save_ifs
12167 if test "X$lt_pkg" = "X$lt_p"; then
12168 pic_mode=yes
12169 fi
12170 done
12171 IFS=$lt_save_ifs
12172 ;;
12173 esac
12174else $as_nop
12175 pic_mode=default
12176fi
12177
12178
12179
12180
12181
12182
12183
12184
12185 # Check whether --enable-fast-install was given.
12186if test ${enable_fast_install+y}
12187then :
12188 enableval=$enable_fast_install; p=${PACKAGE-default}
12189 case $enableval in
12190 yes) enable_fast_install=yes ;;
12191 no) enable_fast_install=no ;;
12192 *)
12193 enable_fast_install=no
12194 # Look at the argument we got. We use all the common list separators.
12195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12196 for pkg in $enableval; do
12197 IFS=$lt_save_ifs
12198 if test "X$pkg" = "X$p"; then
12199 enable_fast_install=yes
12200 fi
12201 done
12202 IFS=$lt_save_ifs
12203 ;;
12204 esac
12205else $as_nop
12206 enable_fast_install=yes
12207fi
12208
12209
12210
12211
12212
12213
12214
12215
12216 shared_archive_member_spec=
12217case $host,$enable_shared in
12218power*-*-aix[5-9]*,yes)
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12220printf %s "checking which variant of shared library versioning to provide... " >&6; }
12221
12222# Check whether --with-aix-soname was given.
12223if test ${with_aix_soname+y}
12224then :
12225 withval=$with_aix_soname; case $withval in
12226 aix|svr4|both)
12227 ;;
12228 *)
12229 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12230 ;;
12231 esac
12232 lt_cv_with_aix_soname=$with_aix_soname
12233else $as_nop
12234 if test ${lt_cv_with_aix_soname+y}
12235then :
12236 printf %s "(cached) " >&6
12237else $as_nop
12238 lt_cv_with_aix_soname=aix
12239fi
12240
12241 with_aix_soname=$lt_cv_with_aix_soname
12242fi
12243
12244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12245printf "%s\n" "$with_aix_soname" >&6; }
12246 if test aix != "$with_aix_soname"; then
12247 # For the AIX way of multilib, we name the shared archive member
12248 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12249 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12250 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12251 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12252 if test 64 = "${OBJECT_MODE-32}"; then
12253 shared_archive_member_spec=shr_64
12254 else
12255 shared_archive_member_spec=shr
12256 fi
12257 fi
12258 ;;
12259*)
12260 with_aix_soname=aix
12261 ;;
12262esac
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273# This can be used to rebuild libtool when needed
12274LIBTOOL_DEPS=$ltmain
12275
12276# Always use our own libtool.
12277LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308test -z "$LN_S" && LN_S="ln -s"
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323if test -n "${ZSH_VERSION+set}"; then
12324 setopt NO_GLOB_SUBST
12325fi
12326
12327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12328printf %s "checking for objdir... " >&6; }
12329if test ${lt_cv_objdir+y}
12330then :
12331 printf %s "(cached) " >&6
12332else $as_nop
12333 rm -f .libs 2>/dev/null
12334mkdir .libs 2>/dev/null
12335if test -d .libs; then
12336 lt_cv_objdir=.libs
12337else
12338 # MS-DOS does not allow filenames that begin with a dot.
12339 lt_cv_objdir=_libs
12340fi
12341rmdir .libs 2>/dev/null
12342fi
12343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12344printf "%s\n" "$lt_cv_objdir" >&6; }
12345objdir=$lt_cv_objdir
12346
12347
12348
12349
12350
12351printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12352
12353
12354
12355
12356case $host_os in
12357aix3*)
12358 # AIX sometimes has problems with the GCC collect2 program. For some
12359 # reason, if we set the COLLECT_NAMES environment variable, the problems
12360 # vanish in a puff of smoke.
12361 if test set != "${COLLECT_NAMES+set}"; then
12362 COLLECT_NAMES=
12363 export COLLECT_NAMES
12364 fi
12365 ;;
12366esac
12367
12368# Global variables:
12369ofile=libtool
12370can_build_shared=yes
12371
12372# All known linkers require a '.a' archive for static linking (except MSVC and
12373# ICC, which need '.lib').
12374libext=a
12375
12376with_gnu_ld=$lt_cv_prog_gnu_ld
12377
12378old_CC=$CC
12379old_CFLAGS=$CFLAGS
12380
12381# Set sane defaults for various variables
12382test -z "$CC" && CC=cc
12383test -z "$LTCC" && LTCC=$CC
12384test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12385test -z "$LD" && LD=ld
12386test -z "$ac_objext" && ac_objext=o
12387
12388func_cc_basename $compiler
12389cc_basename=$func_cc_basename_result
12390
12391
12392# Only perform the check for file, if the check method requires it
12393test -z "$MAGIC_CMD" && MAGIC_CMD=file
12394case $deplibs_check_method in
12395file_magic*)
12396 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12398printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12399if test ${lt_cv_path_MAGIC_CMD+y}
12400then :
12401 printf %s "(cached) " >&6
12402else $as_nop
12403 case $MAGIC_CMD in
12404[\\/*] | ?:[\\/]*)
12405 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12406 ;;
12407*)
12408 lt_save_MAGIC_CMD=$MAGIC_CMD
12409 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12411 for ac_dir in $ac_dummy; do
12412 IFS=$lt_save_ifs
12413 test -z "$ac_dir" && ac_dir=.
12414 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12415 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12416 if test -n "$file_magic_test_file"; then
12417 case $deplibs_check_method in
12418 "file_magic "*)
12419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12420 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12422 $EGREP "$file_magic_regex" > /dev/null; then
12423 :
12424 else
12425 cat <<_LT_EOF 1>&2
12426
12427*** Warning: the command libtool uses to detect shared libraries,
12428*** $file_magic_cmd, produces output that libtool cannot recognize.
12429*** The result is that libtool may fail to recognize shared libraries
12430*** as such. This will affect the creation of libtool libraries that
12431*** depend on shared libraries, but programs linked with such libtool
12432*** libraries will work regardless of this problem. Nevertheless, you
12433*** may want to report the problem to your system manager and/or to
12434*** bug-libtool@gnu.org
12435
12436_LT_EOF
12437 fi ;;
12438 esac
12439 fi
12440 break
12441 fi
12442 done
12443 IFS=$lt_save_ifs
12444 MAGIC_CMD=$lt_save_MAGIC_CMD
12445 ;;
12446esac
12447fi
12448
12449MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12450if test -n "$MAGIC_CMD"; then
12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12452printf "%s\n" "$MAGIC_CMD" >&6; }
12453else
12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455printf "%s\n" "no" >&6; }
12456fi
12457
12458
12459
12460
12461
12462if test -z "$lt_cv_path_MAGIC_CMD"; then
12463 if test -n "$ac_tool_prefix"; then
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12465printf %s "checking for file... " >&6; }
12466if test ${lt_cv_path_MAGIC_CMD+y}
12467then :
12468 printf %s "(cached) " >&6
12469else $as_nop
12470 case $MAGIC_CMD in
12471[\\/*] | ?:[\\/]*)
12472 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12473 ;;
12474*)
12475 lt_save_MAGIC_CMD=$MAGIC_CMD
12476 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12478 for ac_dir in $ac_dummy; do
12479 IFS=$lt_save_ifs
12480 test -z "$ac_dir" && ac_dir=.
12481 if test -f "$ac_dir/file"; then
12482 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12483 if test -n "$file_magic_test_file"; then
12484 case $deplibs_check_method in
12485 "file_magic "*)
12486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12487 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12489 $EGREP "$file_magic_regex" > /dev/null; then
12490 :
12491 else
12492 cat <<_LT_EOF 1>&2
12493
12494*** Warning: the command libtool uses to detect shared libraries,
12495*** $file_magic_cmd, produces output that libtool cannot recognize.
12496*** The result is that libtool may fail to recognize shared libraries
12497*** as such. This will affect the creation of libtool libraries that
12498*** depend on shared libraries, but programs linked with such libtool
12499*** libraries will work regardless of this problem. Nevertheless, you
12500*** may want to report the problem to your system manager and/or to
12501*** bug-libtool@gnu.org
12502
12503_LT_EOF
12504 fi ;;
12505 esac
12506 fi
12507 break
12508 fi
12509 done
12510 IFS=$lt_save_ifs
12511 MAGIC_CMD=$lt_save_MAGIC_CMD
12512 ;;
12513esac
12514fi
12515
12516MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12517if test -n "$MAGIC_CMD"; then
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12519printf "%s\n" "$MAGIC_CMD" >&6; }
12520else
12521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522printf "%s\n" "no" >&6; }
12523fi
12524
12525
12526 else
12527 MAGIC_CMD=:
12528 fi
12529fi
12530
12531 fi
12532 ;;
12533esac
12534
12535# Use C for the default configuration in the libtool script
12536
12537lt_save_CC=$CC
12538ac_ext=c
12539ac_cpp='$CPP $CPPFLAGS'
12540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542ac_compiler_gnu=$ac_cv_c_compiler_gnu
12543
12544
12545# Source file extension for C test sources.
12546ac_ext=c
12547
12548# Object file extension for compiled C test sources.
12549objext=o
12550objext=$objext
12551
12552# Code to be used in simple compile tests
12553lt_simple_compile_test_code="int some_variable = 0;"
12554
12555# Code to be used in simple link tests
12556lt_simple_link_test_code='int main(){return(0);}'
12557
12558
12559
12560
12561
12562
12563
12564# If no C compiler was specified, use CC.
12565LTCC=${LTCC-"$CC"}
12566
12567# If no C compiler flags were specified, use CFLAGS.
12568LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12569
12570# Allow CC to be a program name with arguments.
12571compiler=$CC
12572
12573# Save the default compiler, since it gets overwritten when the other
12574# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12575compiler_DEFAULT=$CC
12576
12577# save warnings/boilerplate of simple test code
12578ac_outfile=conftest.$ac_objext
12579echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12580eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12581_lt_compiler_boilerplate=`cat conftest.err`
12582$RM conftest*
12583
12584ac_outfile=conftest.$ac_objext
12585echo "$lt_simple_link_test_code" >conftest.$ac_ext
12586eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12587_lt_linker_boilerplate=`cat conftest.err`
12588$RM -r conftest*
12589
12590
12591## CAVEAT EMPTOR:
12592## There is no encapsulation within the following macros, do not change
12593## the running order or otherwise move them around unless you know exactly
12594## what you are doing...
12595if test -n "$compiler"; then
12596
12597lt_prog_compiler_no_builtin_flag=
12598
12599if test yes = "$GCC"; then
12600 case $cc_basename in
12601 nvcc*)
12602 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12603 *)
12604 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12605 esac
12606
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12608printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12609if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12610then :
12611 printf %s "(cached) " >&6
12612else $as_nop
12613 lt_cv_prog_compiler_rtti_exceptions=no
12614 ac_outfile=conftest.$ac_objext
12615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12616 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12617 # Insert the option either (1) after the last *FLAGS variable, or
12618 # (2) before a word containing "conftest.", or (3) at the end.
12619 # Note that $ac_compile itself does not contain backslashes and begins
12620 # with a dollar sign (not a hyphen), so the echo should work correctly.
12621 # The option is referenced via a variable to avoid confusing sed.
12622 lt_compile=`echo "$ac_compile" | $SED \
12623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12625 -e 's:$: $lt_compiler_flag:'`
12626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12627 (eval "$lt_compile" 2>conftest.err)
12628 ac_status=$?
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 if (exit $ac_status) && test -s "$ac_outfile"; then
12632 # The compiler can only warn and ignore the option if not recognized
12633 # So say no if there are warnings other than the usual output.
12634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12637 lt_cv_prog_compiler_rtti_exceptions=yes
12638 fi
12639 fi
12640 $RM conftest*
12641
12642fi
12643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12644printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12645
12646if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12647 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12648else
12649 :
12650fi
12651
12652fi
12653
12654
12655
12656
12657
12658
12659 lt_prog_compiler_wl=
12660lt_prog_compiler_pic=
12661lt_prog_compiler_static=
12662
12663
12664 if test yes = "$GCC"; then
12665 lt_prog_compiler_wl='-Wl,'
12666 lt_prog_compiler_static='-static'
12667
12668 case $host_os in
12669 aix*)
12670 # All AIX code is PIC.
12671 if test ia64 = "$host_cpu"; then
12672 # AIX 5 now supports IA64 processor
12673 lt_prog_compiler_static='-Bstatic'
12674 fi
12675 lt_prog_compiler_pic='-fPIC'
12676 ;;
12677
12678 amigaos*)
12679 case $host_cpu in
12680 powerpc)
12681 # see comment about AmigaOS4 .so support
12682 lt_prog_compiler_pic='-fPIC'
12683 ;;
12684 m68k)
12685 # FIXME: we need at least 68020 code to build shared libraries, but
12686 # adding the '-m68020' flag to GCC prevents building anything better,
12687 # like '-m68040'.
12688 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12689 ;;
12690 esac
12691 ;;
12692
12693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12694 # PIC is the default for these OSes.
12695 ;;
12696
12697 mingw* | cygwin* | pw32* | os2* | cegcc*)
12698 # This hack is so that the source file can tell whether it is being
12699 # built for inclusion in a dll (and should export symbols for example).
12700 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12701 # (--disable-auto-import) libraries
12702 lt_prog_compiler_pic='-DDLL_EXPORT'
12703 case $host_os in
12704 os2*)
12705 lt_prog_compiler_static='$wl-static'
12706 ;;
12707 esac
12708 ;;
12709
12710 darwin* | rhapsody*)
12711 # PIC is the default on this platform
12712 # Common symbols not allowed in MH_DYLIB files
12713 lt_prog_compiler_pic='-fno-common'
12714 ;;
12715
12716 haiku*)
12717 # PIC is the default for Haiku.
12718 # The "-static" flag exists, but is broken.
12719 lt_prog_compiler_static=
12720 ;;
12721
12722 hpux*)
12723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12725 # sets the default TLS model and affects inlining.
12726 case $host_cpu in
12727 hppa*64*)
12728 # +Z the default
12729 ;;
12730 *)
12731 lt_prog_compiler_pic='-fPIC'
12732 ;;
12733 esac
12734 ;;
12735
12736 interix[3-9]*)
12737 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12738 # Instead, we relocate shared libraries at runtime.
12739 ;;
12740
12741 msdosdjgpp*)
12742 # Just because we use GCC doesn't mean we suddenly get shared libraries
12743 # on systems that don't support them.
12744 lt_prog_compiler_can_build_shared=no
12745 enable_shared=no
12746 ;;
12747
12748 *nto* | *qnx*)
12749 # QNX uses GNU C++, but need to define -shared option too, otherwise
12750 # it will coredump.
12751 lt_prog_compiler_pic='-fPIC -shared'
12752 ;;
12753
12754 sysv4*MP*)
12755 if test -d /usr/nec; then
12756 lt_prog_compiler_pic=-Kconform_pic
12757 fi
12758 ;;
12759
12760 *)
12761 lt_prog_compiler_pic='-fPIC'
12762 ;;
12763 esac
12764
12765 case $cc_basename in
12766 nvcc*) # Cuda Compiler Driver 2.2
12767 lt_prog_compiler_wl='-Xlinker '
12768 if test -n "$lt_prog_compiler_pic"; then
12769 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12770 fi
12771 ;;
12772 esac
12773 else
12774 # PORTME Check for flag to pass linker flags through the system compiler.
12775 case $host_os in
12776 aix*)
12777 lt_prog_compiler_wl='-Wl,'
12778 if test ia64 = "$host_cpu"; then
12779 # AIX 5 now supports IA64 processor
12780 lt_prog_compiler_static='-Bstatic'
12781 else
12782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12783 fi
12784 ;;
12785
12786 darwin* | rhapsody*)
12787 # PIC is the default on this platform
12788 # Common symbols not allowed in MH_DYLIB files
12789 lt_prog_compiler_pic='-fno-common'
12790 case $cc_basename in
12791 nagfor*)
12792 # NAG Fortran compiler
12793 lt_prog_compiler_wl='-Wl,-Wl,,'
12794 lt_prog_compiler_pic='-PIC'
12795 lt_prog_compiler_static='-Bstatic'
12796 ;;
12797 esac
12798 ;;
12799
12800 mingw* | cygwin* | pw32* | os2* | cegcc*)
12801 # This hack is so that the source file can tell whether it is being
12802 # built for inclusion in a dll (and should export symbols for example).
12803 lt_prog_compiler_pic='-DDLL_EXPORT'
12804 case $host_os in
12805 os2*)
12806 lt_prog_compiler_static='$wl-static'
12807 ;;
12808 esac
12809 ;;
12810
12811 hpux9* | hpux10* | hpux11*)
12812 lt_prog_compiler_wl='-Wl,'
12813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12814 # not for PA HP-UX.
12815 case $host_cpu in
12816 hppa*64*|ia64*)
12817 # +Z the default
12818 ;;
12819 *)
12820 lt_prog_compiler_pic='+Z'
12821 ;;
12822 esac
12823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12824 lt_prog_compiler_static='$wl-a ${wl}archive'
12825 ;;
12826
12827 irix5* | irix6* | nonstopux*)
12828 lt_prog_compiler_wl='-Wl,'
12829 # PIC (with -KPIC) is the default.
12830 lt_prog_compiler_static='-non_shared'
12831 ;;
12832
12833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12834 case $cc_basename in
12835 # old Intel for x86_64, which still supported -KPIC.
12836 ecc*)
12837 lt_prog_compiler_wl='-Wl,'
12838 lt_prog_compiler_pic='-KPIC'
12839 lt_prog_compiler_static='-static'
12840 ;;
12841 # flang / f18. f95 an alias for gfortran or flang on Debian
12842 flang* | f18* | f95*)
12843 lt_prog_compiler_wl='-Wl,'
12844 lt_prog_compiler_pic='-fPIC'
12845 lt_prog_compiler_static='-static'
12846 ;;
12847 # icc used to be incompatible with GCC.
12848 # ICC 10 doesn't accept -KPIC any more.
12849 icc* | ifort*)
12850 lt_prog_compiler_wl='-Wl,'
12851 lt_prog_compiler_pic='-fPIC'
12852 lt_prog_compiler_static='-static'
12853 ;;
12854 # Lahey Fortran 8.1.
12855 lf95*)
12856 lt_prog_compiler_wl='-Wl,'
12857 lt_prog_compiler_pic='--shared'
12858 lt_prog_compiler_static='--static'
12859 ;;
12860 nagfor*)
12861 # NAG Fortran compiler
12862 lt_prog_compiler_wl='-Wl,-Wl,,'
12863 lt_prog_compiler_pic='-PIC'
12864 lt_prog_compiler_static='-Bstatic'
12865 ;;
12866 tcc*)
12867 # Fabrice Bellard et al's Tiny C Compiler
12868 lt_prog_compiler_wl='-Wl,'
12869 lt_prog_compiler_pic='-fPIC'
12870 lt_prog_compiler_static='-static'
12871 ;;
12872 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12873 # Portland Group compilers (*not* the Pentium gcc compiler,
12874 # which looks to be a dead project)
12875 lt_prog_compiler_wl='-Wl,'
12876 lt_prog_compiler_pic='-fpic'
12877 lt_prog_compiler_static='-Bstatic'
12878 ;;
12879 ccc*)
12880 lt_prog_compiler_wl='-Wl,'
12881 # All Alpha code is PIC.
12882 lt_prog_compiler_static='-non_shared'
12883 ;;
12884 xl* | bgxl* | bgf* | mpixl*)
12885 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12886 lt_prog_compiler_wl='-Wl,'
12887 lt_prog_compiler_pic='-qpic'
12888 lt_prog_compiler_static='-qstaticlink'
12889 ;;
12890 *)
12891 case `$CC -V 2>&1 | $SED 5q` in
12892 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12894 lt_prog_compiler_pic='-KPIC'
12895 lt_prog_compiler_static='-Bstatic'
12896 lt_prog_compiler_wl=''
12897 ;;
12898 *Sun\ F* | *Sun*Fortran*)
12899 lt_prog_compiler_pic='-KPIC'
12900 lt_prog_compiler_static='-Bstatic'
12901 lt_prog_compiler_wl='-Qoption ld '
12902 ;;
12903 *Sun\ C*)
12904 # Sun C 5.9
12905 lt_prog_compiler_pic='-KPIC'
12906 lt_prog_compiler_static='-Bstatic'
12907 lt_prog_compiler_wl='-Wl,'
12908 ;;
12909 *Intel*\ [CF]*Compiler*)
12910 lt_prog_compiler_wl='-Wl,'
12911 lt_prog_compiler_pic='-fPIC'
12912 lt_prog_compiler_static='-static'
12913 ;;
12914 *Portland\ Group*)
12915 lt_prog_compiler_wl='-Wl,'
12916 lt_prog_compiler_pic='-fpic'
12917 lt_prog_compiler_static='-Bstatic'
12918 ;;
12919 esac
12920 ;;
12921 esac
12922 ;;
12923
12924 newsos6)
12925 lt_prog_compiler_pic='-KPIC'
12926 lt_prog_compiler_static='-Bstatic'
12927 ;;
12928
12929 *nto* | *qnx*)
12930 # QNX uses GNU C++, but need to define -shared option too, otherwise
12931 # it will coredump.
12932 lt_prog_compiler_pic='-fPIC -shared'
12933 ;;
12934
12935 osf3* | osf4* | osf5*)
12936 lt_prog_compiler_wl='-Wl,'
12937 # All OSF/1 code is PIC.
12938 lt_prog_compiler_static='-non_shared'
12939 ;;
12940
12941 rdos*)
12942 lt_prog_compiler_static='-non_shared'
12943 ;;
12944
12945 solaris*)
12946 lt_prog_compiler_pic='-KPIC'
12947 lt_prog_compiler_static='-Bstatic'
12948 case $cc_basename in
12949 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12950 lt_prog_compiler_wl='-Qoption ld ';;
12951 *)
12952 lt_prog_compiler_wl='-Wl,';;
12953 esac
12954 ;;
12955
12956 sunos4*)
12957 lt_prog_compiler_wl='-Qoption ld '
12958 lt_prog_compiler_pic='-PIC'
12959 lt_prog_compiler_static='-Bstatic'
12960 ;;
12961
12962 sysv4 | sysv4.2uw2* | sysv4.3*)
12963 lt_prog_compiler_wl='-Wl,'
12964 lt_prog_compiler_pic='-KPIC'
12965 lt_prog_compiler_static='-Bstatic'
12966 ;;
12967
12968 sysv4*MP*)
12969 if test -d /usr/nec; then
12970 lt_prog_compiler_pic='-Kconform_pic'
12971 lt_prog_compiler_static='-Bstatic'
12972 fi
12973 ;;
12974
12975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12976 lt_prog_compiler_wl='-Wl,'
12977 lt_prog_compiler_pic='-KPIC'
12978 lt_prog_compiler_static='-Bstatic'
12979 ;;
12980
12981 unicos*)
12982 lt_prog_compiler_wl='-Wl,'
12983 lt_prog_compiler_can_build_shared=no
12984 ;;
12985
12986 uts4*)
12987 lt_prog_compiler_pic='-pic'
12988 lt_prog_compiler_static='-Bstatic'
12989 ;;
12990
12991 *)
12992 lt_prog_compiler_can_build_shared=no
12993 ;;
12994 esac
12995 fi
12996
12997case $host_os in
12998 # For platforms that do not support PIC, -DPIC is meaningless:
12999 *djgpp*)
13000 lt_prog_compiler_pic=
13001 ;;
13002 *)
13003 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13004 ;;
13005esac
13006
13007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13008printf %s "checking for $compiler option to produce PIC... " >&6; }
13009if test ${lt_cv_prog_compiler_pic+y}
13010then :
13011 printf %s "(cached) " >&6
13012else $as_nop
13013 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13014fi
13015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13016printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13017lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13018
13019#
13020# Check to make sure the PIC flag actually works.
13021#
13022if test -n "$lt_prog_compiler_pic"; then
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13024printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13025if test ${lt_cv_prog_compiler_pic_works+y}
13026then :
13027 printf %s "(cached) " >&6
13028else $as_nop
13029 lt_cv_prog_compiler_pic_works=no
13030 ac_outfile=conftest.$ac_objext
13031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13032 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13033 # Insert the option either (1) after the last *FLAGS variable, or
13034 # (2) before a word containing "conftest.", or (3) at the end.
13035 # Note that $ac_compile itself does not contain backslashes and begins
13036 # with a dollar sign (not a hyphen), so the echo should work correctly.
13037 # The option is referenced via a variable to avoid confusing sed.
13038 lt_compile=`echo "$ac_compile" | $SED \
13039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13041 -e 's:$: $lt_compiler_flag:'`
13042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13043 (eval "$lt_compile" 2>conftest.err)
13044 ac_status=$?
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 if (exit $ac_status) && test -s "$ac_outfile"; then
13048 # The compiler can only warn and ignore the option if not recognized
13049 # So say no if there are warnings other than the usual output.
13050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13053 lt_cv_prog_compiler_pic_works=yes
13054 fi
13055 fi
13056 $RM conftest*
13057
13058fi
13059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13060printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13061
13062if test yes = "$lt_cv_prog_compiler_pic_works"; then
13063 case $lt_prog_compiler_pic in
13064 "" | " "*) ;;
13065 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13066 esac
13067else
13068 lt_prog_compiler_pic=
13069 lt_prog_compiler_can_build_shared=no
13070fi
13071
13072fi
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084#
13085# Check to make sure the static flag actually works.
13086#
13087wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13089printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13090if test ${lt_cv_prog_compiler_static_works+y}
13091then :
13092 printf %s "(cached) " >&6
13093else $as_nop
13094 lt_cv_prog_compiler_static_works=no
13095 save_LDFLAGS=$LDFLAGS
13096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13099 # The linker can only warn and ignore the option if not recognized
13100 # So say no if there are warnings
13101 if test -s conftest.err; then
13102 # Append any errors to the config.log.
13103 cat conftest.err 1>&5
13104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13106 if diff conftest.exp conftest.er2 >/dev/null; then
13107 lt_cv_prog_compiler_static_works=yes
13108 fi
13109 else
13110 lt_cv_prog_compiler_static_works=yes
13111 fi
13112 fi
13113 $RM -r conftest*
13114 LDFLAGS=$save_LDFLAGS
13115
13116fi
13117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13118printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13119
13120if test yes = "$lt_cv_prog_compiler_static_works"; then
13121 :
13122else
13123 lt_prog_compiler_static=
13124fi
13125
13126
13127
13128
13129
13130
13131
13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13133printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13134if test ${lt_cv_prog_compiler_c_o+y}
13135then :
13136 printf %s "(cached) " >&6
13137else $as_nop
13138 lt_cv_prog_compiler_c_o=no
13139 $RM -r conftest 2>/dev/null
13140 mkdir conftest
13141 cd conftest
13142 mkdir out
13143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13144
13145 lt_compiler_flag="-o out/conftest2.$ac_objext"
13146 # Insert the option either (1) after the last *FLAGS variable, or
13147 # (2) before a word containing "conftest.", or (3) at the end.
13148 # Note that $ac_compile itself does not contain backslashes and begins
13149 # with a dollar sign (not a hyphen), so the echo should work correctly.
13150 lt_compile=`echo "$ac_compile" | $SED \
13151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13153 -e 's:$: $lt_compiler_flag:'`
13154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13155 (eval "$lt_compile" 2>out/conftest.err)
13156 ac_status=$?
13157 cat out/conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13160 then
13161 # The compiler can only warn and ignore the option if not recognized
13162 # So say no if there are warnings
13163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13166 lt_cv_prog_compiler_c_o=yes
13167 fi
13168 fi
13169 chmod u+w . 2>&5
13170 $RM conftest*
13171 # SGI C++ compiler will create directory out/ii_files/ for
13172 # template instantiation
13173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13174 $RM out/* && rmdir out
13175 cd ..
13176 $RM -r conftest
13177 $RM conftest*
13178
13179fi
13180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13181printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13182
13183
13184
13185
13186
13187
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13189printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13190if test ${lt_cv_prog_compiler_c_o+y}
13191then :
13192 printf %s "(cached) " >&6
13193else $as_nop
13194 lt_cv_prog_compiler_c_o=no
13195 $RM -r conftest 2>/dev/null
13196 mkdir conftest
13197 cd conftest
13198 mkdir out
13199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13200
13201 lt_compiler_flag="-o out/conftest2.$ac_objext"
13202 # Insert the option either (1) after the last *FLAGS variable, or
13203 # (2) before a word containing "conftest.", or (3) at the end.
13204 # Note that $ac_compile itself does not contain backslashes and begins
13205 # with a dollar sign (not a hyphen), so the echo should work correctly.
13206 lt_compile=`echo "$ac_compile" | $SED \
13207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13209 -e 's:$: $lt_compiler_flag:'`
13210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13211 (eval "$lt_compile" 2>out/conftest.err)
13212 ac_status=$?
13213 cat out/conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13216 then
13217 # The compiler can only warn and ignore the option if not recognized
13218 # So say no if there are warnings
13219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13222 lt_cv_prog_compiler_c_o=yes
13223 fi
13224 fi
13225 chmod u+w . 2>&5
13226 $RM conftest*
13227 # SGI C++ compiler will create directory out/ii_files/ for
13228 # template instantiation
13229 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13230 $RM out/* && rmdir out
13231 cd ..
13232 $RM -r conftest
13233 $RM conftest*
13234
13235fi
13236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13237printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13238
13239
13240
13241
13242hard_links=nottested
13243if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13244 # do not overwrite the value of need_locks provided by the user
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13246printf %s "checking if we can lock with hard links... " >&6; }
13247 hard_links=yes
13248 $RM conftest*
13249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13250 touch conftest.a
13251 ln conftest.a conftest.b 2>&5 || hard_links=no
13252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13254printf "%s\n" "$hard_links" >&6; }
13255 if test no = "$hard_links"; then
13256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13257printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13258 need_locks=warn
13259 fi
13260else
13261 need_locks=no
13262fi
13263
13264
13265
13266
13267
13268
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13270printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13271
13272 runpath_var=
13273 allow_undefined_flag=
13274 always_export_symbols=no
13275 archive_cmds=
13276 archive_expsym_cmds=
13277 compiler_needs_object=no
13278 enable_shared_with_static_runtimes=no
13279 export_dynamic_flag_spec=
13280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13281 hardcode_automatic=no
13282 hardcode_direct=no
13283 hardcode_direct_absolute=no
13284 hardcode_libdir_flag_spec=
13285 hardcode_libdir_separator=
13286 hardcode_minus_L=no
13287 hardcode_shlibpath_var=unsupported
13288 inherit_rpath=no
13289 link_all_deplibs=unknown
13290 module_cmds=
13291 module_expsym_cmds=
13292 old_archive_from_new_cmds=
13293 old_archive_from_expsyms_cmds=
13294 thread_safe_flag_spec=
13295 whole_archive_flag_spec=
13296 # include_expsyms should be a list of space-separated symbols to be *always*
13297 # included in the symbol list
13298 include_expsyms=
13299 # exclude_expsyms can be an extended regexp of symbols to exclude
13300 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13301 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13302 # as well as any symbol that contains 'd'.
13303 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13305 # platforms (ab)use it in PIC code, but their linkers get confused if
13306 # the symbol is explicitly referenced. Since portable code cannot
13307 # rely on this symbol name, it's probably fine to never include it in
13308 # preloaded symbol tables.
13309 # Exclude shared library initialization/finalization symbols.
13310 extract_expsyms_cmds=
13311
13312 case $host_os in
13313 cygwin* | mingw* | pw32* | cegcc*)
13314 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13315 # When not using gcc, we currently assume that we are using
13316 # Microsoft Visual C++ or Intel C++ Compiler.
13317 if test yes != "$GCC"; then
13318 with_gnu_ld=no
13319 fi
13320 ;;
13321 interix*)
13322 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13323 with_gnu_ld=yes
13324 ;;
13325 openbsd* | bitrig*)
13326 with_gnu_ld=no
13327 ;;
13328 linux* | k*bsd*-gnu | gnu*)
13329 link_all_deplibs=no
13330 ;;
13331 esac
13332
13333 ld_shlibs=yes
13334
13335 # On some targets, GNU ld is compatible enough with the native linker
13336 # that we're better off using the native interface for both.
13337 lt_use_gnu_ld_interface=no
13338 if test yes = "$with_gnu_ld"; then
13339 case $host_os in
13340 aix*)
13341 # The AIX port of GNU ld has always aspired to compatibility
13342 # with the native linker. However, as the warning in the GNU ld
13343 # block says, versions before 2.19.5* couldn't really create working
13344 # shared libraries, regardless of the interface used.
13345 case `$LD -v 2>&1` in
13346 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13347 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13348 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13349 *)
13350 lt_use_gnu_ld_interface=yes
13351 ;;
13352 esac
13353 ;;
13354 *)
13355 lt_use_gnu_ld_interface=yes
13356 ;;
13357 esac
13358 fi
13359
13360 if test yes = "$lt_use_gnu_ld_interface"; then
13361 # If archive_cmds runs LD, not CC, wlarc should be empty
13362 wlarc='$wl'
13363
13364 # Set some defaults for GNU ld with shared library support. These
13365 # are reset later if shared libraries are not supported. Putting them
13366 # here allows them to be overridden if necessary.
13367 runpath_var=LD_RUN_PATH
13368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13369 export_dynamic_flag_spec='$wl--export-dynamic'
13370 # ancient GNU ld didn't support --whole-archive et. al.
13371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13372 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13373 else
13374 whole_archive_flag_spec=
13375 fi
13376 supports_anon_versioning=no
13377 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13378 *GNU\ gold*) supports_anon_versioning=yes ;;
13379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13382 *\ 2.11.*) ;; # other 2.11 versions
13383 *) supports_anon_versioning=yes ;;
13384 esac
13385
13386 # See if GNU ld supports shared libraries.
13387 case $host_os in
13388 aix[3-9]*)
13389 # On AIX/PPC, the GNU linker is very broken
13390 if test ia64 != "$host_cpu"; then
13391 ld_shlibs=no
13392 cat <<_LT_EOF 1>&2
13393
13394*** Warning: the GNU linker, at least up to release 2.19, is reported
13395*** to be unable to reliably create shared libraries on AIX.
13396*** Therefore, libtool is disabling shared libraries support. If you
13397*** really care for shared libraries, you may want to install binutils
13398*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13399*** You will then need to restart the configuration process.
13400
13401_LT_EOF
13402 fi
13403 ;;
13404
13405 amigaos*)
13406 case $host_cpu in
13407 powerpc)
13408 # see comment about AmigaOS4 .so support
13409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13410 archive_expsym_cmds=''
13411 ;;
13412 m68k)
13413 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)'
13414 hardcode_libdir_flag_spec='-L$libdir'
13415 hardcode_minus_L=yes
13416 ;;
13417 esac
13418 ;;
13419
13420 beos*)
13421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13422 allow_undefined_flag=unsupported
13423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13424 # support --undefined. This deserves some investigation. FIXME
13425 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13426 else
13427 ld_shlibs=no
13428 fi
13429 ;;
13430
13431 cygwin* | mingw* | pw32* | cegcc*)
13432 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13433 # as there is no search path for DLLs.
13434 hardcode_libdir_flag_spec='-L$libdir'
13435 export_dynamic_flag_spec='$wl--export-all-symbols'
13436 allow_undefined_flag=unsupported
13437 always_export_symbols=no
13438 enable_shared_with_static_runtimes=yes
13439 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'
13440 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13441
13442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13444 # If the export-symbols file already is a .def file, use it as
13445 # is; otherwise, prepend EXPORTS...
13446 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13447 cp $export_symbols $output_objdir/$soname.def;
13448 else
13449 echo EXPORTS > $output_objdir/$soname.def;
13450 cat $export_symbols >> $output_objdir/$soname.def;
13451 fi~
13452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13453 else
13454 ld_shlibs=no
13455 fi
13456 ;;
13457
13458 haiku*)
13459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13460 link_all_deplibs=yes
13461 ;;
13462
13463 os2*)
13464 hardcode_libdir_flag_spec='-L$libdir'
13465 hardcode_minus_L=yes
13466 allow_undefined_flag=unsupported
13467 shrext_cmds=.dll
13468 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13469 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13470 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13471 $ECHO EXPORTS >> $output_objdir/$libname.def~
13472 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13473 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13474 emximp -o $lib $output_objdir/$libname.def'
13475 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13476 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13477 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13478 $ECHO EXPORTS >> $output_objdir/$libname.def~
13479 prefix_cmds="$SED"~
13480 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13481 prefix_cmds="$prefix_cmds -e 1d";
13482 fi~
13483 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13484 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13485 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13486 emximp -o $lib $output_objdir/$libname.def'
13487 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13488 enable_shared_with_static_runtimes=yes
13489 file_list_spec='@'
13490 ;;
13491
13492 interix[3-9]*)
13493 hardcode_direct=no
13494 hardcode_shlibpath_var=no
13495 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13496 export_dynamic_flag_spec='$wl-E'
13497 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13498 # Instead, shared libraries are loaded at an image base (0x10000000 by
13499 # default) and relocated if they conflict, which is a slow very memory
13500 # consuming and fragmenting process. To avoid this, we pick a random,
13501 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13502 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13504 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'
13505 ;;
13506
13507 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13508 tmp_diet=no
13509 if test linux-dietlibc = "$host_os"; then
13510 case $cc_basename in
13511 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13512 esac
13513 fi
13514 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13515 && test no = "$tmp_diet"
13516 then
13517 tmp_addflag=' $pic_flag'
13518 tmp_sharedflag='-shared'
13519 case $cc_basename,$host_cpu in
13520 pgcc*) # Portland Group C compiler
13521 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'
13522 tmp_addflag=' $pic_flag'
13523 ;;
13524 pgf77* | pgf90* | pgf95* | pgfortran*)
13525 # Portland Group f77 and f90 compilers
13526 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'
13527 tmp_addflag=' $pic_flag -Mnomain' ;;
13528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13529 tmp_addflag=' -i_dynamic' ;;
13530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13531 tmp_addflag=' -i_dynamic -nofor_main' ;;
13532 ifc* | ifort*) # Intel Fortran compiler
13533 tmp_addflag=' -nofor_main' ;;
13534 lf95*) # Lahey Fortran 8.1
13535 whole_archive_flag_spec=
13536 tmp_sharedflag='--shared' ;;
13537 nagfor*) # NAGFOR 5.3
13538 tmp_sharedflag='-Wl,-shared' ;;
13539 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13540 tmp_sharedflag='-qmkshrobj'
13541 tmp_addflag= ;;
13542 nvcc*) # Cuda Compiler Driver 2.2
13543 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'
13544 compiler_needs_object=yes
13545 ;;
13546 esac
13547 case `$CC -V 2>&1 | $SED 5q` in
13548 *Sun\ C*) # Sun C 5.9
13549 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'
13550 compiler_needs_object=yes
13551 tmp_sharedflag='-G' ;;
13552 *Sun\ F*) # Sun Fortran 8.3
13553 tmp_sharedflag='-G' ;;
13554 esac
13555 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13556
13557 if test yes = "$supports_anon_versioning"; then
13558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13559 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13560 echo "local: *; };" >> $output_objdir/$libname.ver~
13561 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13562 fi
13563
13564 case $cc_basename in
13565 tcc*)
13566 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13567 export_dynamic_flag_spec='-rdynamic'
13568 ;;
13569 xlf* | bgf* | bgxlf* | mpixlf*)
13570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13572 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13573 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13574 if test yes = "$supports_anon_versioning"; then
13575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13576 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13577 echo "local: *; };" >> $output_objdir/$libname.ver~
13578 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13579 fi
13580 ;;
13581 esac
13582 else
13583 ld_shlibs=no
13584 fi
13585 ;;
13586
13587 netbsd* | netbsdelf*-gnu)
13588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13590 wlarc=
13591 else
13592 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13593 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13594 fi
13595 ;;
13596
13597 solaris*)
13598 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13599 ld_shlibs=no
13600 cat <<_LT_EOF 1>&2
13601
13602*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13603*** create shared libraries on Solaris systems. Therefore, libtool
13604*** is disabling shared libraries support. We urge you to upgrade GNU
13605*** binutils to release 2.9.1 or newer. Another option is to modify
13606*** your PATH or compiler configuration so that the native linker is
13607*** used, and then restart.
13608
13609_LT_EOF
13610 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13613 else
13614 ld_shlibs=no
13615 fi
13616 ;;
13617
13618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13619 case `$LD -v 2>&1` in
13620 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13621 ld_shlibs=no
13622 cat <<_LT_EOF 1>&2
13623
13624*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13625*** reliably create shared libraries on SCO systems. Therefore, libtool
13626*** is disabling shared libraries support. We urge you to upgrade GNU
13627*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13628*** your PATH or compiler configuration so that the native linker is
13629*** used, and then restart.
13630
13631_LT_EOF
13632 ;;
13633 *)
13634 # For security reasons, it is highly recommended that you always
13635 # use absolute paths for naming shared libraries, and exclude the
13636 # DT_RUNPATH tag from executables and libraries. But doing so
13637 # requires that you compile everything twice, which is a pain.
13638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13642 else
13643 ld_shlibs=no
13644 fi
13645 ;;
13646 esac
13647 ;;
13648
13649 sunos4*)
13650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13651 wlarc=
13652 hardcode_direct=yes
13653 hardcode_shlibpath_var=no
13654 ;;
13655
13656 *)
13657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13660 else
13661 ld_shlibs=no
13662 fi
13663 ;;
13664 esac
13665
13666 if test no = "$ld_shlibs"; then
13667 runpath_var=
13668 hardcode_libdir_flag_spec=
13669 export_dynamic_flag_spec=
13670 whole_archive_flag_spec=
13671 fi
13672 else
13673 # PORTME fill in a description of your system's linker (not GNU ld)
13674 case $host_os in
13675 aix3*)
13676 allow_undefined_flag=unsupported
13677 always_export_symbols=yes
13678 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'
13679 # Note: this linker hardcodes the directories in LIBPATH if there
13680 # are no directories specified by -L.
13681 hardcode_minus_L=yes
13682 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13683 # Neither direct hardcoding nor static linking is supported with a
13684 # broken collect2.
13685 hardcode_direct=unsupported
13686 fi
13687 ;;
13688
13689 aix[4-9]*)
13690 if test ia64 = "$host_cpu"; then
13691 # On IA64, the linker does run time linking by default, so we don't
13692 # have to do anything special.
13693 aix_use_runtimelinking=no
13694 exp_sym_flag='-Bexport'
13695 no_entry_flag=
13696 else
13697 # If we're using GNU nm, then we don't want the "-C" option.
13698 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13699 # Without the "-l" option, or with the "-B" option, AIX nm treats
13700 # weak defined symbols like other global defined symbols, whereas
13701 # GNU nm marks them as "W".
13702 # While the 'weak' keyword is ignored in the Export File, we need
13703 # it in the Import File for the 'aix-soname' feature, so we have
13704 # to replace the "-B" option with "-P" for AIX nm.
13705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13706 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'
13707 else
13708 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
13709 fi
13710 aix_use_runtimelinking=no
13711
13712 # Test if we are trying to use run time linking or normal
13713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13714 # have runtime linking enabled, and use it for executables.
13715 # For shared libraries, we enable/disable runtime linking
13716 # depending on the kind of the shared library created -
13717 # when "with_aix_soname,aix_use_runtimelinking" is:
13718 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13719 # "aix,yes" lib.so shared, rtl:yes, for executables
13720 # lib.a static archive
13721 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13722 # lib.a(lib.so.V) shared, rtl:no, for executables
13723 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13724 # lib.a(lib.so.V) shared, rtl:no
13725 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13726 # lib.a static archive
13727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13728 for ld_flag in $LDFLAGS; do
13729 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13730 aix_use_runtimelinking=yes
13731 break
13732 fi
13733 done
13734 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13735 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13736 # so we don't have lib.a shared libs to link our executables.
13737 # We have to force runtime linking in this case.
13738 aix_use_runtimelinking=yes
13739 LDFLAGS="$LDFLAGS -Wl,-brtl"
13740 fi
13741 ;;
13742 esac
13743
13744 exp_sym_flag='-bexport'
13745 no_entry_flag='-bnoentry'
13746 fi
13747
13748 # When large executables or shared objects are built, AIX ld can
13749 # have problems creating the table of contents. If linking a library
13750 # or program results in "error TOC overflow" add -mminimal-toc to
13751 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13752 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13753
13754 archive_cmds=''
13755 hardcode_direct=yes
13756 hardcode_direct_absolute=yes
13757 hardcode_libdir_separator=':'
13758 link_all_deplibs=yes
13759 file_list_spec='$wl-f,'
13760 case $with_aix_soname,$aix_use_runtimelinking in
13761 aix,*) ;; # traditional, no import file
13762 svr4,* | *,yes) # use import file
13763 # The Import File defines what to hardcode.
13764 hardcode_direct=no
13765 hardcode_direct_absolute=no
13766 ;;
13767 esac
13768
13769 if test yes = "$GCC"; then
13770 case $host_os in aix4.[012]|aix4.[012].*)
13771 # We only want to do this on AIX 4.2 and lower, the check
13772 # below for broken collect2 doesn't work under 4.3+
13773 collect2name=`$CC -print-prog-name=collect2`
13774 if test -f "$collect2name" &&
13775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13776 then
13777 # We have reworked collect2
13778 :
13779 else
13780 # We have old collect2
13781 hardcode_direct=unsupported
13782 # It fails to find uninstalled libraries when the uninstalled
13783 # path is not listed in the libpath. Setting hardcode_minus_L
13784 # to unsupported forces relinking
13785 hardcode_minus_L=yes
13786 hardcode_libdir_flag_spec='-L$libdir'
13787 hardcode_libdir_separator=
13788 fi
13789 ;;
13790 esac
13791 shared_flag='-shared'
13792 if test yes = "$aix_use_runtimelinking"; then
13793 shared_flag="$shared_flag "'$wl-G'
13794 fi
13795 # Need to ensure runtime linking is disabled for the traditional
13796 # shared library, or the linker may eventually find shared libraries
13797 # /with/ Import File - we do not want to mix them.
13798 shared_flag_aix='-shared'
13799 shared_flag_svr4='-shared $wl-G'
13800 else
13801 # not using gcc
13802 if test ia64 = "$host_cpu"; then
13803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13804 # chokes on -Wl,-G. The following line is correct:
13805 shared_flag='-G'
13806 else
13807 if test yes = "$aix_use_runtimelinking"; then
13808 shared_flag='$wl-G'
13809 else
13810 shared_flag='$wl-bM:SRE'
13811 fi
13812 shared_flag_aix='$wl-bM:SRE'
13813 shared_flag_svr4='$wl-G'
13814 fi
13815 fi
13816
13817 export_dynamic_flag_spec='$wl-bexpall'
13818 # It seems that -bexpall does not export symbols beginning with
13819 # underscore (_), so it is better to generate a list of symbols to export.
13820 always_export_symbols=yes
13821 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13822 # Warning - without using the other runtime loading flags (-brtl),
13823 # -berok will link without error, but may produce a broken library.
13824 allow_undefined_flag='-berok'
13825 # Determine the default libpath from the value encoded in an
13826 # empty executable.
13827 if test set = "${lt_cv_aix_libpath+set}"; then
13828 aix_libpath=$lt_cv_aix_libpath
13829else
13830 if test ${lt_cv_aix_libpath_+y}
13831then :
13832 printf %s "(cached) " >&6
13833else $as_nop
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835/* end confdefs.h. */
13836
13837int main (void)
13838{
13839
13840 ;
13841 return 0;
13842}
13843_ACEOF
13844if ac_fn_c_try_link "$LINENO"
13845then :
13846
13847 lt_aix_libpath_sed='
13848 /Import File Strings/,/^$/ {
13849 /^0/ {
13850 s/^0 *\([^ ]*\) *$/\1/
13851 p
13852 }
13853 }'
13854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13855 # Check for a 64-bit object if we didn't find anything.
13856 if test -z "$lt_cv_aix_libpath_"; then
13857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13858 fi
13859fi
13860rm -f core conftest.err conftest.$ac_objext conftest.beam \
13861 conftest$ac_exeext conftest.$ac_ext
13862 if test -z "$lt_cv_aix_libpath_"; then
13863 lt_cv_aix_libpath_=/usr/lib:/lib
13864 fi
13865
13866fi
13867
13868 aix_libpath=$lt_cv_aix_libpath_
13869fi
13870
13871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13872 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
13873 else
13874 if test ia64 = "$host_cpu"; then
13875 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13876 allow_undefined_flag="-z nodefs"
13877 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"
13878 else
13879 # Determine the default libpath from the value encoded in an
13880 # empty executable.
13881 if test set = "${lt_cv_aix_libpath+set}"; then
13882 aix_libpath=$lt_cv_aix_libpath
13883else
13884 if test ${lt_cv_aix_libpath_+y}
13885then :
13886 printf %s "(cached) " >&6
13887else $as_nop
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889/* end confdefs.h. */
13890
13891int main (void)
13892{
13893
13894 ;
13895 return 0;
13896}
13897_ACEOF
13898if ac_fn_c_try_link "$LINENO"
13899then :
13900
13901 lt_aix_libpath_sed='
13902 /Import File Strings/,/^$/ {
13903 /^0/ {
13904 s/^0 *\([^ ]*\) *$/\1/
13905 p
13906 }
13907 }'
13908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13909 # Check for a 64-bit object if we didn't find anything.
13910 if test -z "$lt_cv_aix_libpath_"; then
13911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13912 fi
13913fi
13914rm -f core conftest.err conftest.$ac_objext conftest.beam \
13915 conftest$ac_exeext conftest.$ac_ext
13916 if test -z "$lt_cv_aix_libpath_"; then
13917 lt_cv_aix_libpath_=/usr/lib:/lib
13918 fi
13919
13920fi
13921
13922 aix_libpath=$lt_cv_aix_libpath_
13923fi
13924
13925 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13926 # Warning - without using the other run time loading flags,
13927 # -berok will link without error, but may produce a broken library.
13928 no_undefined_flag=' $wl-bernotok'
13929 allow_undefined_flag=' $wl-berok'
13930 if test yes = "$with_gnu_ld"; then
13931 # We only use this code for GNU lds that support --whole-archive.
13932 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13933 else
13934 # Exported symbols can be pulled into shared objects from archives
13935 whole_archive_flag_spec='$convenience'
13936 fi
13937 archive_cmds_need_lc=yes
13938 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13939 # -brtl affects multiple linker settings, -berok does not and is overridden later
13940 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13941 if test svr4 != "$with_aix_soname"; then
13942 # This is similar to how AIX traditionally builds its shared libraries.
13943 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'
13944 fi
13945 if test aix != "$with_aix_soname"; then
13946 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'
13947 else
13948 # used by -dlpreopen to get the symbols
13949 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13950 fi
13951 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13952 fi
13953 fi
13954 ;;
13955
13956 amigaos*)
13957 case $host_cpu in
13958 powerpc)
13959 # see comment about AmigaOS4 .so support
13960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13961 archive_expsym_cmds=''
13962 ;;
13963 m68k)
13964 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)'
13965 hardcode_libdir_flag_spec='-L$libdir'
13966 hardcode_minus_L=yes
13967 ;;
13968 esac
13969 ;;
13970
13971 bsdi[45]*)
13972 export_dynamic_flag_spec=-rdynamic
13973 ;;
13974
13975 cygwin* | mingw* | pw32* | cegcc*)
13976 # When not using gcc, we currently assume that we are using
13977 # Microsoft Visual C++ or Intel C++ Compiler.
13978 # hardcode_libdir_flag_spec is actually meaningless, as there is
13979 # no search path for DLLs.
13980 case $cc_basename in
13981 cl* | icl*)
13982 # Native MSVC or ICC
13983 hardcode_libdir_flag_spec=' '
13984 allow_undefined_flag=unsupported
13985 always_export_symbols=yes
13986 file_list_spec='@'
13987 # Tell ltmain to make .lib files, not .a files.
13988 libext=lib
13989 # Tell ltmain to make .dll files, not .so files.
13990 shrext_cmds=.dll
13991 # FIXME: Setting linknames here is a bad hack.
13992 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13993 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13994 cp "$export_symbols" "$output_objdir/$soname.def";
13995 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13996 else
13997 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13998 fi~
13999 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14000 linknames='
14001 # The linker will not automatically build a static lib if we build a DLL.
14002 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14003 enable_shared_with_static_runtimes=yes
14004 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14006 # Don't use ranlib
14007 old_postinstall_cmds='chmod 644 $oldlib'
14008 postlink_cmds='lt_outputfile="@OUTPUT@"~
14009 lt_tool_outputfile="@TOOL_OUTPUT@"~
14010 case $lt_outputfile in
14011 *.exe|*.EXE) ;;
14012 *)
14013 lt_outputfile=$lt_outputfile.exe
14014 lt_tool_outputfile=$lt_tool_outputfile.exe
14015 ;;
14016 esac~
14017 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14018 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14019 $RM "$lt_outputfile.manifest";
14020 fi'
14021 ;;
14022 *)
14023 # Assume MSVC and ICC wrapper
14024 hardcode_libdir_flag_spec=' '
14025 allow_undefined_flag=unsupported
14026 # Tell ltmain to make .lib files, not .a files.
14027 libext=lib
14028 # Tell ltmain to make .dll files, not .so files.
14029 shrext_cmds=.dll
14030 # FIXME: Setting linknames here is a bad hack.
14031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14032 # The linker will automatically build a .lib file if we build a DLL.
14033 old_archive_from_new_cmds='true'
14034 # FIXME: Should let the user specify the lib program.
14035 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14036 enable_shared_with_static_runtimes=yes
14037 ;;
14038 esac
14039 ;;
14040
14041 darwin* | rhapsody*)
14042
14043
14044 archive_cmds_need_lc=no
14045 hardcode_direct=no
14046 hardcode_automatic=yes
14047 hardcode_shlibpath_var=unsupported
14048 if test yes = "$lt_cv_ld_force_load"; then
14049 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\"`'
14050
14051 else
14052 whole_archive_flag_spec=''
14053 fi
14054 link_all_deplibs=yes
14055 allow_undefined_flag=$_lt_dar_allow_undefined
14056 case $cc_basename in
14057 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14058 *) _lt_dar_can_shared=$GCC ;;
14059 esac
14060 if test yes = "$_lt_dar_can_shared"; then
14061 output_verbose_link_cmd=func_echo_all
14062 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14063 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14064 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"
14065 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"
14066
14067 else
14068 ld_shlibs=no
14069 fi
14070
14071 ;;
14072
14073 dgux*)
14074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14075 hardcode_libdir_flag_spec='-L$libdir'
14076 hardcode_shlibpath_var=no
14077 ;;
14078
14079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14080 # support. Future versions do this automatically, but an explicit c++rt0.o
14081 # does not break anything, and helps significantly (at the cost of a little
14082 # extra space).
14083 freebsd2.2*)
14084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14085 hardcode_libdir_flag_spec='-R$libdir'
14086 hardcode_direct=yes
14087 hardcode_shlibpath_var=no
14088 ;;
14089
14090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14091 freebsd2.*)
14092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14093 hardcode_direct=yes
14094 hardcode_minus_L=yes
14095 hardcode_shlibpath_var=no
14096 ;;
14097
14098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14099 freebsd* | dragonfly* | midnightbsd*)
14100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14101 hardcode_libdir_flag_spec='-R$libdir'
14102 hardcode_direct=yes
14103 hardcode_shlibpath_var=no
14104 ;;
14105
14106 hpux9*)
14107 if test yes = "$GCC"; then
14108 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14109 else
14110 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14111 fi
14112 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14113 hardcode_libdir_separator=:
14114 hardcode_direct=yes
14115
14116 # hardcode_minus_L: Not really in the search PATH,
14117 # but as the default location of the library.
14118 hardcode_minus_L=yes
14119 export_dynamic_flag_spec='$wl-E'
14120 ;;
14121
14122 hpux10*)
14123 if test yes,no = "$GCC,$with_gnu_ld"; then
14124 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14125 else
14126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14127 fi
14128 if test no = "$with_gnu_ld"; then
14129 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14130 hardcode_libdir_separator=:
14131 hardcode_direct=yes
14132 hardcode_direct_absolute=yes
14133 export_dynamic_flag_spec='$wl-E'
14134 # hardcode_minus_L: Not really in the search PATH,
14135 # but as the default location of the library.
14136 hardcode_minus_L=yes
14137 fi
14138 ;;
14139
14140 hpux11*)
14141 if test yes,no = "$GCC,$with_gnu_ld"; then
14142 case $host_cpu in
14143 hppa*64*)
14144 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14145 ;;
14146 ia64*)
14147 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14148 ;;
14149 *)
14150 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14151 ;;
14152 esac
14153 else
14154 case $host_cpu in
14155 hppa*64*)
14156 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14157 ;;
14158 ia64*)
14159 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14160 ;;
14161 *)
14162
14163 # Older versions of the 11.00 compiler do not understand -b yet
14164 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14166printf %s "checking if $CC understands -b... " >&6; }
14167if test ${lt_cv_prog_compiler__b+y}
14168then :
14169 printf %s "(cached) " >&6
14170else $as_nop
14171 lt_cv_prog_compiler__b=no
14172 save_LDFLAGS=$LDFLAGS
14173 LDFLAGS="$LDFLAGS -b"
14174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176 # The linker can only warn and ignore the option if not recognized
14177 # So say no if there are warnings
14178 if test -s conftest.err; then
14179 # Append any errors to the config.log.
14180 cat conftest.err 1>&5
14181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183 if diff conftest.exp conftest.er2 >/dev/null; then
14184 lt_cv_prog_compiler__b=yes
14185 fi
14186 else
14187 lt_cv_prog_compiler__b=yes
14188 fi
14189 fi
14190 $RM -r conftest*
14191 LDFLAGS=$save_LDFLAGS
14192
14193fi
14194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14195printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14196
14197if test yes = "$lt_cv_prog_compiler__b"; then
14198 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14199else
14200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14201fi
14202
14203 ;;
14204 esac
14205 fi
14206 if test no = "$with_gnu_ld"; then
14207 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14208 hardcode_libdir_separator=:
14209
14210 case $host_cpu in
14211 hppa*64*|ia64*)
14212 hardcode_direct=no
14213 hardcode_shlibpath_var=no
14214 ;;
14215 *)
14216 hardcode_direct=yes
14217 hardcode_direct_absolute=yes
14218 export_dynamic_flag_spec='$wl-E'
14219
14220 # hardcode_minus_L: Not really in the search PATH,
14221 # but as the default location of the library.
14222 hardcode_minus_L=yes
14223 ;;
14224 esac
14225 fi
14226 ;;
14227
14228 irix5* | irix6* | nonstopux*)
14229 if test yes = "$GCC"; then
14230 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'
14231 # Try to use the -exported_symbol ld option, if it does not
14232 # work, assume that -exports_file does not work either and
14233 # implicitly export all symbols.
14234 # This should be the same for all languages, so no per-tag cache variable.
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14236printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14237if test ${lt_cv_irix_exported_symbol+y}
14238then :
14239 printf %s "(cached) " >&6
14240else $as_nop
14241 save_LDFLAGS=$LDFLAGS
14242 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244/* end confdefs.h. */
14245int foo (void) { return 0; }
14246_ACEOF
14247if ac_fn_c_try_link "$LINENO"
14248then :
14249 lt_cv_irix_exported_symbol=yes
14250else $as_nop
14251 lt_cv_irix_exported_symbol=no
14252fi
14253rm -f core conftest.err conftest.$ac_objext conftest.beam \
14254 conftest$ac_exeext conftest.$ac_ext
14255 LDFLAGS=$save_LDFLAGS
14256fi
14257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14258printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14259 if test yes = "$lt_cv_irix_exported_symbol"; then
14260 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'
14261 fi
14262 link_all_deplibs=no
14263 else
14264 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'
14265 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'
14266 fi
14267 archive_cmds_need_lc='no'
14268 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14269 hardcode_libdir_separator=:
14270 inherit_rpath=yes
14271 link_all_deplibs=yes
14272 ;;
14273
14274 linux*)
14275 case $cc_basename in
14276 tcc*)
14277 # Fabrice Bellard et al's Tiny C Compiler
14278 ld_shlibs=yes
14279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14281 ;;
14282 esac
14283 ;;
14284
14285 netbsd* | netbsdelf*-gnu)
14286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14288 else
14289 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14290 fi
14291 hardcode_libdir_flag_spec='-R$libdir'
14292 hardcode_direct=yes
14293 hardcode_shlibpath_var=no
14294 ;;
14295
14296 newsos6)
14297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_direct=yes
14299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14300 hardcode_libdir_separator=:
14301 hardcode_shlibpath_var=no
14302 ;;
14303
14304 *nto* | *qnx*)
14305 ;;
14306
14307 openbsd* | bitrig*)
14308 if test -f /usr/libexec/ld.so; then
14309 hardcode_direct=yes
14310 hardcode_shlibpath_var=no
14311 hardcode_direct_absolute=yes
14312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14314 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14315 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14316 export_dynamic_flag_spec='$wl-E'
14317 else
14318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14320 fi
14321 else
14322 ld_shlibs=no
14323 fi
14324 ;;
14325
14326 os2*)
14327 hardcode_libdir_flag_spec='-L$libdir'
14328 hardcode_minus_L=yes
14329 allow_undefined_flag=unsupported
14330 shrext_cmds=.dll
14331 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14332 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14333 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14334 $ECHO EXPORTS >> $output_objdir/$libname.def~
14335 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14336 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14337 emximp -o $lib $output_objdir/$libname.def'
14338 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14339 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14340 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14341 $ECHO EXPORTS >> $output_objdir/$libname.def~
14342 prefix_cmds="$SED"~
14343 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14344 prefix_cmds="$prefix_cmds -e 1d";
14345 fi~
14346 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14347 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14348 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14349 emximp -o $lib $output_objdir/$libname.def'
14350 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14351 enable_shared_with_static_runtimes=yes
14352 file_list_spec='@'
14353 ;;
14354
14355 osf3*)
14356 if test yes = "$GCC"; then
14357 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14358 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'
14359 else
14360 allow_undefined_flag=' -expect_unresolved \*'
14361 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'
14362 fi
14363 archive_cmds_need_lc='no'
14364 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14365 hardcode_libdir_separator=:
14366 ;;
14367
14368 osf4* | osf5*) # as osf3* with the addition of -msym flag
14369 if test yes = "$GCC"; then
14370 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14371 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'
14372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14373 else
14374 allow_undefined_flag=' -expect_unresolved \*'
14375 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'
14376 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~
14377 $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'
14378
14379 # Both c and cxx compiler support -rpath directly
14380 hardcode_libdir_flag_spec='-rpath $libdir'
14381 fi
14382 archive_cmds_need_lc='no'
14383 hardcode_libdir_separator=:
14384 ;;
14385
14386 solaris*)
14387 no_undefined_flag=' -z defs'
14388 if test yes = "$GCC"; then
14389 wlarc='$wl'
14390 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14392 $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'
14393 else
14394 case `$CC -V 2>&1` in
14395 *"Compilers 5.0"*)
14396 wlarc=''
14397 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14399 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14400 ;;
14401 *)
14402 wlarc='$wl'
14403 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14405 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14406 ;;
14407 esac
14408 fi
14409 hardcode_libdir_flag_spec='-R$libdir'
14410 hardcode_shlibpath_var=no
14411 case $host_os in
14412 solaris2.[0-5] | solaris2.[0-5].*) ;;
14413 *)
14414 # The compiler driver will combine and reorder linker options,
14415 # but understands '-z linker_flag'. GCC discards it without '$wl',
14416 # but is careful enough not to reorder.
14417 # Supported since Solaris 2.6 (maybe 2.5.1?)
14418 if test yes = "$GCC"; then
14419 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14420 else
14421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14422 fi
14423 ;;
14424 esac
14425 link_all_deplibs=yes
14426 ;;
14427
14428 sunos4*)
14429 if test sequent = "$host_vendor"; then
14430 # Use $CC to link under sequent, because it throws in some extra .o
14431 # files that make .init and .fini sections work.
14432 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14433 else
14434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14435 fi
14436 hardcode_libdir_flag_spec='-L$libdir'
14437 hardcode_direct=yes
14438 hardcode_minus_L=yes
14439 hardcode_shlibpath_var=no
14440 ;;
14441
14442 sysv4)
14443 case $host_vendor in
14444 sni)
14445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 hardcode_direct=yes # is this really true???
14447 ;;
14448 siemens)
14449 ## LD is ld it makes a PLAMLIB
14450 ## CC just makes a GrossModule.
14451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14452 reload_cmds='$CC -r -o $output$reload_objs'
14453 hardcode_direct=no
14454 ;;
14455 motorola)
14456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14458 ;;
14459 esac
14460 runpath_var='LD_RUN_PATH'
14461 hardcode_shlibpath_var=no
14462 ;;
14463
14464 sysv4.3*)
14465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14466 hardcode_shlibpath_var=no
14467 export_dynamic_flag_spec='-Bexport'
14468 ;;
14469
14470 sysv4*MP*)
14471 if test -d /usr/nec; then
14472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_shlibpath_var=no
14474 runpath_var=LD_RUN_PATH
14475 hardcode_runpath_var=yes
14476 ld_shlibs=yes
14477 fi
14478 ;;
14479
14480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14481 no_undefined_flag='$wl-z,text'
14482 archive_cmds_need_lc=no
14483 hardcode_shlibpath_var=no
14484 runpath_var='LD_RUN_PATH'
14485
14486 if test yes = "$GCC"; then
14487 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14489 else
14490 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 fi
14493 ;;
14494
14495 sysv5* | sco3.2v5* | sco5v6*)
14496 # Note: We CANNOT use -z defs as we might desire, because we do not
14497 # link with -lc, and that would cause any symbols used from libc to
14498 # always be unresolved, which means just about no library would
14499 # ever link correctly. If we're not using GNU ld we use -z text
14500 # though, which does catch some bad symbols but isn't as heavy-handed
14501 # as -z defs.
14502 no_undefined_flag='$wl-z,text'
14503 allow_undefined_flag='$wl-z,nodefs'
14504 archive_cmds_need_lc=no
14505 hardcode_shlibpath_var=no
14506 hardcode_libdir_flag_spec='$wl-R,$libdir'
14507 hardcode_libdir_separator=':'
14508 link_all_deplibs=yes
14509 export_dynamic_flag_spec='$wl-Bexport'
14510 runpath_var='LD_RUN_PATH'
14511
14512 if test yes = "$GCC"; then
14513 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14515 else
14516 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518 fi
14519 ;;
14520
14521 uts4*)
14522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_libdir_flag_spec='-L$libdir'
14524 hardcode_shlibpath_var=no
14525 ;;
14526
14527 *)
14528 ld_shlibs=no
14529 ;;
14530 esac
14531
14532 if test sni = "$host_vendor"; then
14533 case $host in
14534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14535 export_dynamic_flag_spec='$wl-Blargedynsym'
14536 ;;
14537 esac
14538 fi
14539 fi
14540
14541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14542printf "%s\n" "$ld_shlibs" >&6; }
14543test no = "$ld_shlibs" && can_build_shared=no
14544
14545with_gnu_ld=$with_gnu_ld
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561#
14562# Do we need to explicitly link libc?
14563#
14564case "x$archive_cmds_need_lc" in
14565x|xyes)
14566 # Assume -lc should be added
14567 archive_cmds_need_lc=yes
14568
14569 if test yes,yes = "$GCC,$enable_shared"; then
14570 case $archive_cmds in
14571 *'~'*)
14572 # FIXME: we may have to deal with multi-command sequences.
14573 ;;
14574 '$CC '*)
14575 # Test whether the compiler implicitly links with -lc since on some
14576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14577 # to ld, don't add -lc before -lgcc.
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14579printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14580if test ${lt_cv_archive_cmds_need_lc+y}
14581then :
14582 printf %s "(cached) " >&6
14583else $as_nop
14584 $RM conftest*
14585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14586
14587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588 (eval $ac_compile) 2>&5
14589 ac_status=$?
14590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; } 2>conftest.err; then
14592 soname=conftest
14593 lib=conftest
14594 libobjs=conftest.$ac_objext
14595 deplibs=
14596 wl=$lt_prog_compiler_wl
14597 pic_flag=$lt_prog_compiler_pic
14598 compiler_flags=-v
14599 linker_flags=-v
14600 verstring=
14601 output_objdir=.
14602 libname=conftest
14603 lt_save_allow_undefined_flag=$allow_undefined_flag
14604 allow_undefined_flag=
14605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14606 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14607 ac_status=$?
14608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; }
14610 then
14611 lt_cv_archive_cmds_need_lc=no
14612 else
14613 lt_cv_archive_cmds_need_lc=yes
14614 fi
14615 allow_undefined_flag=$lt_save_allow_undefined_flag
14616 else
14617 cat conftest.err 1>&5
14618 fi
14619 $RM conftest*
14620
14621fi
14622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14623printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14624 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14625 ;;
14626 esac
14627 fi
14628 ;;
14629esac
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
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14783printf %s "checking dynamic linker characteristics... " >&6; }
14784
14785if test yes = "$GCC"; then
14786 case $host_os in
14787 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14788 *) lt_awk_arg='/^libraries:/' ;;
14789 esac
14790 case $host_os in
14791 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14792 *) lt_sed_strip_eq='s|=/|/|g' ;;
14793 esac
14794 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14795 case $lt_search_path_spec in
14796 *\;*)
14797 # if the path contains ";" then we assume it to be the separator
14798 # otherwise default to the standard path separator (i.e. ":") - it is
14799 # assumed that no part of a normal pathname contains ";" but that should
14800 # okay in the real world where ";" in dirpaths is itself problematic.
14801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14802 ;;
14803 *)
14804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14805 ;;
14806 esac
14807 # Ok, now we have the path, separated by spaces, we can step through it
14808 # and add multilib dir if necessary...
14809 lt_tmp_lt_search_path_spec=
14810 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14811 # ...but if some path component already ends with the multilib dir we assume
14812 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14813 case "$lt_multi_os_dir; $lt_search_path_spec " in
14814 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14815 lt_multi_os_dir=
14816 ;;
14817 esac
14818 for lt_sys_path in $lt_search_path_spec; do
14819 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14821 elif test -n "$lt_multi_os_dir"; then
14822 test -d "$lt_sys_path" && \
14823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14824 fi
14825 done
14826 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14827BEGIN {RS = " "; FS = "/|\n";} {
14828 lt_foo = "";
14829 lt_count = 0;
14830 for (lt_i = NF; lt_i > 0; lt_i--) {
14831 if ($lt_i != "" && $lt_i != ".") {
14832 if ($lt_i == "..") {
14833 lt_count++;
14834 } else {
14835 if (lt_count == 0) {
14836 lt_foo = "/" $lt_i lt_foo;
14837 } else {
14838 lt_count--;
14839 }
14840 }
14841 }
14842 }
14843 if (lt_foo != "") { lt_freq[lt_foo]++; }
14844 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14845}'`
14846 # AWK program above erroneously prepends '/' to C:/dos/paths
14847 # for these hosts.
14848 case $host_os in
14849 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14850 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14851 esac
14852 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14853else
14854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14855fi
14856library_names_spec=
14857libname_spec='lib$name'
14858soname_spec=
14859shrext_cmds=.so
14860postinstall_cmds=
14861postuninstall_cmds=
14862finish_cmds=
14863finish_eval=
14864shlibpath_var=
14865shlibpath_overrides_runpath=unknown
14866version_type=none
14867dynamic_linker="$host_os ld.so"
14868sys_lib_dlsearch_path_spec="/lib /usr/lib"
14869need_lib_prefix=unknown
14870hardcode_into_libs=no
14871
14872# when you set need_version to no, make sure it does not cause -set_version
14873# flags to be left without arguments
14874need_version=unknown
14875
14876
14877
14878case $host_os in
14879aix3*)
14880 version_type=linux # correct to gnu/linux during the next big refactor
14881 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14882 shlibpath_var=LIBPATH
14883
14884 # AIX 3 has no versioning support, so we append a major version to the name.
14885 soname_spec='$libname$release$shared_ext$major'
14886 ;;
14887
14888aix[4-9]*)
14889 version_type=linux # correct to gnu/linux during the next big refactor
14890 need_lib_prefix=no
14891 need_version=no
14892 hardcode_into_libs=yes
14893 if test ia64 = "$host_cpu"; then
14894 # AIX 5 supports IA64
14895 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 else
14898 # With GCC up to 2.95.x, collect2 would create an import file
14899 # for dependence libraries. The import file would start with
14900 # the line '#! .'. This would cause the generated library to
14901 # depend on '.', always an invalid library. This was fixed in
14902 # development snapshots of GCC prior to 3.0.
14903 case $host_os in
14904 aix4 | aix4.[01] | aix4.[01].*)
14905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14906 echo ' yes '
14907 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14908 :
14909 else
14910 can_build_shared=no
14911 fi
14912 ;;
14913 esac
14914 # Using Import Files as archive members, it is possible to support
14915 # filename-based versioning of shared library archives on AIX. While
14916 # this would work for both with and without runtime linking, it will
14917 # prevent static linking of such archives. So we do filename-based
14918 # shared library versioning with .so extension only, which is used
14919 # when both runtime linking and shared linking is enabled.
14920 # Unfortunately, runtime linking may impact performance, so we do
14921 # not want this to be the default eventually. Also, we use the
14922 # versioned .so libs for executables only if there is the -brtl
14923 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14924 # To allow for filename-based versioning support, we need to create
14925 # libNAME.so.V as an archive file, containing:
14926 # *) an Import File, referring to the versioned filename of the
14927 # archive as well as the shared archive member, telling the
14928 # bitwidth (32 or 64) of that shared object, and providing the
14929 # list of exported symbols of that shared object, eventually
14930 # decorated with the 'weak' keyword
14931 # *) the shared object with the F_LOADONLY flag set, to really avoid
14932 # it being seen by the linker.
14933 # At run time we better use the real file rather than another symlink,
14934 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14935
14936 case $with_aix_soname,$aix_use_runtimelinking in
14937 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14938 # soname into executable. Probably we can add versioning support to
14939 # collect2, so additional links can be useful in future.
14940 aix,yes) # traditional libtool
14941 dynamic_linker='AIX unversionable lib.so'
14942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14943 # instead of lib<name>.a to let people know that these are not
14944 # typical AIX shared libraries.
14945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14946 ;;
14947 aix,no) # traditional AIX only
14948 dynamic_linker='AIX lib.a(lib.so.V)'
14949 # We preserve .a as extension for shared libraries through AIX4.2
14950 # and later when we are not doing run time linking.
14951 library_names_spec='$libname$release.a $libname.a'
14952 soname_spec='$libname$release$shared_ext$major'
14953 ;;
14954 svr4,*) # full svr4 only
14955 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14956 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14957 # We do not specify a path in Import Files, so LIBPATH fires.
14958 shlibpath_overrides_runpath=yes
14959 ;;
14960 *,yes) # both, prefer svr4
14961 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14962 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14963 # unpreferred sharedlib libNAME.a needs extra handling
14964 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"'
14965 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"'
14966 # We do not specify a path in Import Files, so LIBPATH fires.
14967 shlibpath_overrides_runpath=yes
14968 ;;
14969 *,no) # both, prefer aix
14970 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14971 library_names_spec='$libname$release.a $libname.a'
14972 soname_spec='$libname$release$shared_ext$major'
14973 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14974 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)'
14975 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"'
14976 ;;
14977 esac
14978 shlibpath_var=LIBPATH
14979 fi
14980 ;;
14981
14982amigaos*)
14983 case $host_cpu in
14984 powerpc)
14985 # Since July 2007 AmigaOS4 officially supports .so libraries.
14986 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14988 ;;
14989 m68k)
14990 library_names_spec='$libname.ixlibrary $libname.a'
14991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14992 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'
14993 ;;
14994 esac
14995 ;;
14996
14997beos*)
14998 library_names_spec='$libname$shared_ext'
14999 dynamic_linker="$host_os ld.so"
15000 shlibpath_var=LIBRARY_PATH
15001 ;;
15002
15003bsdi[45]*)
15004 version_type=linux # correct to gnu/linux during the next big refactor
15005 need_version=no
15006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15007 soname_spec='$libname$release$shared_ext$major'
15008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15012 # the default ld.so.conf also contains /usr/contrib/lib and
15013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15014 # libtool to hard-code these into programs
15015 ;;
15016
15017cygwin* | mingw* | pw32* | cegcc*)
15018 version_type=windows
15019 shrext_cmds=.dll
15020 need_version=no
15021 need_lib_prefix=no
15022
15023 case $GCC,$cc_basename in
15024 yes,*)
15025 # gcc
15026 library_names_spec='$libname.dll.a'
15027 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15028 postinstall_cmds='base_file=`basename \$file`~
15029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15030 dldir=$destdir/`dirname \$dlpath`~
15031 test -d \$dldir || mkdir -p \$dldir~
15032 $install_prog $dir/$dlname \$dldir/$dlname~
15033 chmod a+x \$dldir/$dlname~
15034 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15035 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15036 fi'
15037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15038 dlpath=$dir/\$dldll~
15039 $RM \$dlpath'
15040 shlibpath_overrides_runpath=yes
15041
15042 case $host_os in
15043 cygwin*)
15044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15045 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15046
15047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15048 ;;
15049 mingw* | cegcc*)
15050 # MinGW DLLs use traditional 'lib' prefix
15051 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15052 ;;
15053 pw32*)
15054 # pw32 DLLs use 'pw' prefix rather than 'lib'
15055 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15056 ;;
15057 esac
15058 dynamic_linker='Win32 ld.exe'
15059 ;;
15060
15061 *,cl* | *,icl*)
15062 # Native MSVC or ICC
15063 libname_spec='$name'
15064 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15065 library_names_spec='$libname.dll.lib'
15066
15067 case $build_os in
15068 mingw*)
15069 sys_lib_search_path_spec=
15070 lt_save_ifs=$IFS
15071 IFS=';'
15072 for lt_path in $LIB
15073 do
15074 IFS=$lt_save_ifs
15075 # Let DOS variable expansion print the short 8.3 style file name.
15076 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15077 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15078 done
15079 IFS=$lt_save_ifs
15080 # Convert to MSYS style.
15081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15082 ;;
15083 cygwin*)
15084 # Convert to unix form, then to dos form, then back to unix form
15085 # but this time dos style (no spaces!) so that the unix form looks
15086 # like /cygdrive/c/PROGRA~1:/cygdr...
15087 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15088 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15089 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15090 ;;
15091 *)
15092 sys_lib_search_path_spec=$LIB
15093 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15094 # It is most probably a Windows format PATH.
15095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15096 else
15097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15098 fi
15099 # FIXME: find the short name or the path components, as spaces are
15100 # common. (e.g. "Program Files" -> "PROGRA~1")
15101 ;;
15102 esac
15103
15104 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15105 postinstall_cmds='base_file=`basename \$file`~
15106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15107 dldir=$destdir/`dirname \$dlpath`~
15108 test -d \$dldir || mkdir -p \$dldir~
15109 $install_prog $dir/$dlname \$dldir/$dlname'
15110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15111 dlpath=$dir/\$dldll~
15112 $RM \$dlpath'
15113 shlibpath_overrides_runpath=yes
15114 dynamic_linker='Win32 link.exe'
15115 ;;
15116
15117 *)
15118 # Assume MSVC and ICC wrapper
15119 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15120 dynamic_linker='Win32 ld.exe'
15121 ;;
15122 esac
15123 # FIXME: first we should search . and the directory the executable is in
15124 shlibpath_var=PATH
15125 ;;
15126
15127darwin* | rhapsody*)
15128 dynamic_linker="$host_os dyld"
15129 version_type=darwin
15130 need_lib_prefix=no
15131 need_version=no
15132 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15133 soname_spec='$libname$release$major$shared_ext'
15134 shlibpath_overrides_runpath=yes
15135 shlibpath_var=DYLD_LIBRARY_PATH
15136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15137
15138 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15140 ;;
15141
15142dgux*)
15143 version_type=linux # correct to gnu/linux during the next big refactor
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15147 soname_spec='$libname$release$shared_ext$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15149 ;;
15150
15151freebsd* | dragonfly* | midnightbsd*)
15152 # DragonFly does not have aout. When/if they implement a new
15153 # versioning mechanism, adjust this.
15154 if test -x /usr/bin/objformat; then
15155 objformat=`/usr/bin/objformat`
15156 else
15157 case $host_os in
15158 freebsd[23].*) objformat=aout ;;
15159 *) objformat=elf ;;
15160 esac
15161 fi
15162 version_type=freebsd-$objformat
15163 case $version_type in
15164 freebsd-elf*)
15165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15166 soname_spec='$libname$release$shared_ext$major'
15167 need_version=no
15168 need_lib_prefix=no
15169 ;;
15170 freebsd-*)
15171 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15172 need_version=yes
15173 ;;
15174 esac
15175 shlibpath_var=LD_LIBRARY_PATH
15176 case $host_os in
15177 freebsd2.*)
15178 shlibpath_overrides_runpath=yes
15179 ;;
15180 freebsd3.[01]* | freebsdelf3.[01]*)
15181 shlibpath_overrides_runpath=yes
15182 hardcode_into_libs=yes
15183 ;;
15184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15186 shlibpath_overrides_runpath=no
15187 hardcode_into_libs=yes
15188 ;;
15189 *) # from 4.6 on, and DragonFly
15190 shlibpath_overrides_runpath=yes
15191 hardcode_into_libs=yes
15192 ;;
15193 esac
15194 ;;
15195
15196haiku*)
15197 version_type=linux # correct to gnu/linux during the next big refactor
15198 need_lib_prefix=no
15199 need_version=no
15200 dynamic_linker="$host_os runtime_loader"
15201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15202 soname_spec='$libname$release$shared_ext$major'
15203 shlibpath_var=LIBRARY_PATH
15204 shlibpath_overrides_runpath=no
15205 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15206 hardcode_into_libs=yes
15207 ;;
15208
15209hpux9* | hpux10* | hpux11*)
15210 # Give a soname corresponding to the major version so that dld.sl refuses to
15211 # link against other versions.
15212 version_type=sunos
15213 need_lib_prefix=no
15214 need_version=no
15215 case $host_cpu in
15216 ia64*)
15217 shrext_cmds='.so'
15218 hardcode_into_libs=yes
15219 dynamic_linker="$host_os dld.so"
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15223 soname_spec='$libname$release$shared_ext$major'
15224 if test 32 = "$HPUX_IA64_MODE"; then
15225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15226 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15227 else
15228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15229 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15230 fi
15231 ;;
15232 hppa*64*)
15233 shrext_cmds='.sl'
15234 hardcode_into_libs=yes
15235 dynamic_linker="$host_os dld.sl"
15236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15239 soname_spec='$libname$release$shared_ext$major'
15240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15242 ;;
15243 *)
15244 shrext_cmds='.sl'
15245 dynamic_linker="$host_os dld.sl"
15246 shlibpath_var=SHLIB_PATH
15247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15249 soname_spec='$libname$release$shared_ext$major'
15250 ;;
15251 esac
15252 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15253 postinstall_cmds='chmod 555 $lib'
15254 # or fails outright, so override atomically:
15255 install_override_mode=555
15256 ;;
15257
15258interix[3-9]*)
15259 version_type=linux # correct to gnu/linux during the next big refactor
15260 need_lib_prefix=no
15261 need_version=no
15262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15263 soname_spec='$libname$release$shared_ext$major'
15264 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=no
15267 hardcode_into_libs=yes
15268 ;;
15269
15270irix5* | irix6* | nonstopux*)
15271 case $host_os in
15272 nonstopux*) version_type=nonstopux ;;
15273 *)
15274 if test yes = "$lt_cv_prog_gnu_ld"; then
15275 version_type=linux # correct to gnu/linux during the next big refactor
15276 else
15277 version_type=irix
15278 fi ;;
15279 esac
15280 need_lib_prefix=no
15281 need_version=no
15282 soname_spec='$libname$release$shared_ext$major'
15283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15284 case $host_os in
15285 irix5* | nonstopux*)
15286 libsuff= shlibsuff=
15287 ;;
15288 *)
15289 case $LD in # libtool.m4 will add one of these switches to LD
15290 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15291 libsuff= shlibsuff= libmagic=32-bit;;
15292 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15293 libsuff=32 shlibsuff=N32 libmagic=N32;;
15294 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15295 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15296 *) libsuff= shlibsuff= libmagic=never-match;;
15297 esac
15298 ;;
15299 esac
15300 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15301 shlibpath_overrides_runpath=no
15302 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15303 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15304 hardcode_into_libs=yes
15305 ;;
15306
15307# No shared lib support for Linux oldld, aout, or coff.
15308linux*oldld* | linux*aout* | linux*coff*)
15309 dynamic_linker=no
15310 ;;
15311
15312linux*android*)
15313 version_type=none # Android doesn't support versioned libraries.
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='$libname$release$shared_ext'
15317 soname_spec='$libname$release$shared_ext'
15318 finish_cmds=
15319 shlibpath_var=LD_LIBRARY_PATH
15320 shlibpath_overrides_runpath=yes
15321
15322 # This implies no fast_install, which is unacceptable.
15323 # Some rework will be needed to allow for fast_install
15324 # before this can be enabled.
15325 hardcode_into_libs=yes
15326
15327 dynamic_linker='Android linker'
15328 # Don't embed -rpath directories since the linker doesn't support them.
15329 hardcode_libdir_flag_spec='-L$libdir'
15330 ;;
15331
15332# This must be glibc/ELF.
15333linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15334 version_type=linux # correct to gnu/linux during the next big refactor
15335 need_lib_prefix=no
15336 need_version=no
15337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15338 soname_spec='$libname$release$shared_ext$major'
15339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=no
15342
15343 # Some binutils ld are patched to set DT_RUNPATH
15344 if test ${lt_cv_shlibpath_overrides_runpath+y}
15345then :
15346 printf %s "(cached) " >&6
15347else $as_nop
15348 lt_cv_shlibpath_overrides_runpath=no
15349 save_LDFLAGS=$LDFLAGS
15350 save_libdir=$libdir
15351 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15352 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354/* end confdefs.h. */
15355
15356int main (void)
15357{
15358
15359 ;
15360 return 0;
15361}
15362_ACEOF
15363if ac_fn_c_try_link "$LINENO"
15364then :
15365 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15366then :
15367 lt_cv_shlibpath_overrides_runpath=yes
15368fi
15369fi
15370rm -f core conftest.err conftest.$ac_objext conftest.beam \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LDFLAGS=$save_LDFLAGS
15373 libdir=$save_libdir
15374
15375fi
15376
15377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15378
15379 # This implies no fast_install, which is unacceptable.
15380 # Some rework will be needed to allow for fast_install
15381 # before this can be enabled.
15382 hardcode_into_libs=yes
15383
15384 # Ideally, we could use ldconfig to report *all* directores which are
15385 # searched for libraries, however this is still not possible. Aside from not
15386 # being certain /sbin/ldconfig is available, command
15387 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15388 # even though it is searched at run-time. Try to do the best guess by
15389 # appending ld.so.conf contents (and includes) to the search path.
15390 if test -f /etc/ld.so.conf; then
15391 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' ' '`
15392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15393 fi
15394
15395 # We used to test for /lib/ld.so.1 and disable shared libraries on
15396 # powerpc, because MkLinux only supported shared libraries with the
15397 # GNU dynamic linker. Since this was broken with cross compilers,
15398 # most powerpc-linux boxes support dynamic linking these days and
15399 # people can always --disable-shared, the test was removed, and we
15400 # assume the GNU/Linux dynamic linker is in use.
15401 dynamic_linker='GNU/Linux ld.so'
15402 ;;
15403
15404netbsdelf*-gnu)
15405 version_type=linux
15406 need_lib_prefix=no
15407 need_version=no
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 shlibpath_overrides_runpath=no
15412 hardcode_into_libs=yes
15413 dynamic_linker='NetBSD ld.elf_so'
15414 ;;
15415
15416netbsd*)
15417 version_type=sunos
15418 need_lib_prefix=no
15419 need_version=no
15420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15423 dynamic_linker='NetBSD (a.out) ld.so'
15424 else
15425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15426 soname_spec='$libname$release$shared_ext$major'
15427 dynamic_linker='NetBSD ld.elf_so'
15428 fi
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15431 hardcode_into_libs=yes
15432 ;;
15433
15434newsos6)
15435 version_type=linux # correct to gnu/linux during the next big refactor
15436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=yes
15439 ;;
15440
15441*nto* | *qnx*)
15442 version_type=qnx
15443 need_lib_prefix=no
15444 need_version=no
15445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15446 soname_spec='$libname$release$shared_ext$major'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 shlibpath_overrides_runpath=no
15449 hardcode_into_libs=yes
15450 dynamic_linker='ldqnx.so'
15451 ;;
15452
15453openbsd* | bitrig*)
15454 version_type=sunos
15455 sys_lib_dlsearch_path_spec=/usr/lib
15456 need_lib_prefix=no
15457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15458 need_version=no
15459 else
15460 need_version=yes
15461 fi
15462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes
15466 ;;
15467
15468os2*)
15469 libname_spec='$name'
15470 version_type=windows
15471 shrext_cmds=.dll
15472 need_version=no
15473 need_lib_prefix=no
15474 # OS/2 can only load a DLL with a base name of 8 characters or less.
15475 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15476 v=$($ECHO $release$versuffix | tr -d .-);
15477 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15478 $ECHO $n$v`$shared_ext'
15479 library_names_spec='${libname}_dll.$libext'
15480 dynamic_linker='OS/2 ld.exe'
15481 shlibpath_var=BEGINLIBPATH
15482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15484 postinstall_cmds='base_file=`basename \$file`~
15485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15486 dldir=$destdir/`dirname \$dlpath`~
15487 test -d \$dldir || mkdir -p \$dldir~
15488 $install_prog $dir/$dlname \$dldir/$dlname~
15489 chmod a+x \$dldir/$dlname~
15490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15492 fi'
15493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15494 dlpath=$dir/\$dldll~
15495 $RM \$dlpath'
15496 ;;
15497
15498osf3* | osf4* | osf5*)
15499 version_type=osf
15500 need_lib_prefix=no
15501 need_version=no
15502 soname_spec='$libname$release$shared_ext$major'
15503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15507 ;;
15508
15509rdos*)
15510 dynamic_linker=no
15511 ;;
15512
15513solaris*)
15514 version_type=linux # correct to gnu/linux during the next big refactor
15515 need_lib_prefix=no
15516 need_version=no
15517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518 soname_spec='$libname$release$shared_ext$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15521 hardcode_into_libs=yes
15522 # ldd complains unless libraries are executable
15523 postinstall_cmds='chmod +x $lib'
15524 ;;
15525
15526sunos4*)
15527 version_type=sunos
15528 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes
15532 if test yes = "$with_gnu_ld"; then
15533 need_lib_prefix=no
15534 fi
15535 need_version=yes
15536 ;;
15537
15538sysv4 | sysv4.3*)
15539 version_type=linux # correct to gnu/linux during the next big refactor
15540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15541 soname_spec='$libname$release$shared_ext$major'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 case $host_vendor in
15544 sni)
15545 shlibpath_overrides_runpath=no
15546 need_lib_prefix=no
15547 runpath_var=LD_RUN_PATH
15548 ;;
15549 siemens)
15550 need_lib_prefix=no
15551 ;;
15552 motorola)
15553 need_lib_prefix=no
15554 need_version=no
15555 shlibpath_overrides_runpath=no
15556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15557 ;;
15558 esac
15559 ;;
15560
15561sysv4*MP*)
15562 if test -d /usr/nec; then
15563 version_type=linux # correct to gnu/linux during the next big refactor
15564 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15565 soname_spec='$libname$shared_ext.$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 fi
15568 ;;
15569
15570sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15571 version_type=sco
15572 need_lib_prefix=no
15573 need_version=no
15574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15575 soname_spec='$libname$release$shared_ext$major'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=yes
15578 hardcode_into_libs=yes
15579 if test yes = "$with_gnu_ld"; then
15580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15581 else
15582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15583 case $host_os in
15584 sco3.2v5*)
15585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15586 ;;
15587 esac
15588 fi
15589 sys_lib_dlsearch_path_spec='/usr/lib'
15590 ;;
15591
15592tpf*)
15593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15594 version_type=linux # correct to gnu/linux during the next big refactor
15595 need_lib_prefix=no
15596 need_version=no
15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=no
15600 hardcode_into_libs=yes
15601 ;;
15602
15603uts4*)
15604 version_type=linux # correct to gnu/linux during the next big refactor
15605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15606 soname_spec='$libname$release$shared_ext$major'
15607 shlibpath_var=LD_LIBRARY_PATH
15608 ;;
15609
15610*)
15611 dynamic_linker=no
15612 ;;
15613esac
15614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15615printf "%s\n" "$dynamic_linker" >&6; }
15616test no = "$dynamic_linker" && can_build_shared=no
15617
15618variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15619if test yes = "$GCC"; then
15620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15621fi
15622
15623if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15624 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15625fi
15626
15627if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15628 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15629fi
15630
15631# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15632configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15633
15634# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15635func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15636
15637# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15638configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15737printf %s "checking how to hardcode library paths into programs... " >&6; }
15738hardcode_action=
15739if test -n "$hardcode_libdir_flag_spec" ||
15740 test -n "$runpath_var" ||
15741 test yes = "$hardcode_automatic"; then
15742
15743 # We can hardcode non-existent directories.
15744 if test no != "$hardcode_direct" &&
15745 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15746 # have to relink, otherwise we might link with an installed library
15747 # when we should be linking with a yet-to-be-installed one
15748 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15749 test no != "$hardcode_minus_L"; then
15750 # Linking always hardcodes the temporary library directory.
15751 hardcode_action=relink
15752 else
15753 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15754 hardcode_action=immediate
15755 fi
15756else
15757 # We cannot hardcode anything, or else we can only hardcode existing
15758 # directories.
15759 hardcode_action=unsupported
15760fi
15761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15762printf "%s\n" "$hardcode_action" >&6; }
15763
15764if test relink = "$hardcode_action" ||
15765 test yes = "$inherit_rpath"; then
15766 # Fast installation is not supported
15767 enable_fast_install=no
15768elif test yes = "$shlibpath_overrides_runpath" ||
15769 test no = "$enable_shared"; then
15770 # Fast installation is not necessary
15771 enable_fast_install=needless
15772fi
15773
15774
15775
15776
15777
15778
15779 if test yes != "$enable_dlopen"; then
15780 enable_dlopen=unknown
15781 enable_dlopen_self=unknown
15782 enable_dlopen_self_static=unknown
15783else
15784 lt_cv_dlopen=no
15785 lt_cv_dlopen_libs=
15786
15787 case $host_os in
15788 beos*)
15789 lt_cv_dlopen=load_add_on
15790 lt_cv_dlopen_libs=
15791 lt_cv_dlopen_self=yes
15792 ;;
15793
15794 mingw* | pw32* | cegcc*)
15795 lt_cv_dlopen=LoadLibrary
15796 lt_cv_dlopen_libs=
15797 ;;
15798
15799 cygwin*)
15800 lt_cv_dlopen=dlopen
15801 lt_cv_dlopen_libs=
15802 ;;
15803
15804 darwin*)
15805 # if libdl is installed we need to link against it
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15807printf %s "checking for dlopen in -ldl... " >&6; }
15808if test ${ac_cv_lib_dl_dlopen+y}
15809then :
15810 printf %s "(cached) " >&6
15811else $as_nop
15812 ac_check_lib_save_LIBS=$LIBS
15813LIBS="-ldl $LIBS"
15814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815/* end confdefs.h. */
15816
15817
15818#ifdef __cplusplus
15819extern "C"
15820#endif
15821char dlopen ();
15822int main (void)
15823{
15824return dlopen ();
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829if ac_fn_c_try_link "$LINENO"
15830then :
15831 ac_cv_lib_dl_dlopen=yes
15832else $as_nop
15833 ac_cv_lib_dl_dlopen=no
15834fi
15835rm -f core conftest.err conftest.$ac_objext conftest.beam \
15836 conftest$ac_exeext conftest.$ac_ext
15837LIBS=$ac_check_lib_save_LIBS
15838fi
15839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15840printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15841if test "x$ac_cv_lib_dl_dlopen" = xyes
15842then :
15843 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15844else $as_nop
15845
15846 lt_cv_dlopen=dyld
15847 lt_cv_dlopen_libs=
15848 lt_cv_dlopen_self=yes
15849
15850fi
15851
15852 ;;
15853
15854 tpf*)
15855 # Don't try to run any link tests for TPF. We know it's impossible
15856 # because TPF is a cross-compiler, and we know how we open DSOs.
15857 lt_cv_dlopen=dlopen
15858 lt_cv_dlopen_libs=
15859 lt_cv_dlopen_self=no
15860 ;;
15861
15862 *)
15863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15864if test "x$ac_cv_func_shl_load" = xyes
15865then :
15866 lt_cv_dlopen=shl_load
15867else $as_nop
15868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15869printf %s "checking for shl_load in -ldld... " >&6; }
15870if test ${ac_cv_lib_dld_shl_load+y}
15871then :
15872 printf %s "(cached) " >&6
15873else $as_nop
15874 ac_check_lib_save_LIBS=$LIBS
15875LIBS="-ldld $LIBS"
15876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h. */
15878
15879
15880#ifdef __cplusplus
15881extern "C"
15882#endif
15883char shl_load ();
15884int main (void)
15885{
15886return shl_load ();
15887 ;
15888 return 0;
15889}
15890_ACEOF
15891if ac_fn_c_try_link "$LINENO"
15892then :
15893 ac_cv_lib_dld_shl_load=yes
15894else $as_nop
15895 ac_cv_lib_dld_shl_load=no
15896fi
15897rm -f core conftest.err conftest.$ac_objext conftest.beam \
15898 conftest$ac_exeext conftest.$ac_ext
15899LIBS=$ac_check_lib_save_LIBS
15900fi
15901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15902printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15903if test "x$ac_cv_lib_dld_shl_load" = xyes
15904then :
15905 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15906else $as_nop
15907 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15908if test "x$ac_cv_func_dlopen" = xyes
15909then :
15910 lt_cv_dlopen=dlopen
15911else $as_nop
15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15913printf %s "checking for dlopen in -ldl... " >&6; }
15914if test ${ac_cv_lib_dl_dlopen+y}
15915then :
15916 printf %s "(cached) " >&6
15917else $as_nop
15918 ac_check_lib_save_LIBS=$LIBS
15919LIBS="-ldl $LIBS"
15920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921/* end confdefs.h. */
15922
15923
15924#ifdef __cplusplus
15925extern "C"
15926#endif
15927char dlopen ();
15928int main (void)
15929{
15930return dlopen ();
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935if ac_fn_c_try_link "$LINENO"
15936then :
15937 ac_cv_lib_dl_dlopen=yes
15938else $as_nop
15939 ac_cv_lib_dl_dlopen=no
15940fi
15941rm -f core conftest.err conftest.$ac_objext conftest.beam \
15942 conftest$ac_exeext conftest.$ac_ext
15943LIBS=$ac_check_lib_save_LIBS
15944fi
15945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15946printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15947if test "x$ac_cv_lib_dl_dlopen" = xyes
15948then :
15949 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15950else $as_nop
15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15952printf %s "checking for dlopen in -lsvld... " >&6; }
15953if test ${ac_cv_lib_svld_dlopen+y}
15954then :
15955 printf %s "(cached) " >&6
15956else $as_nop
15957 ac_check_lib_save_LIBS=$LIBS
15958LIBS="-lsvld $LIBS"
15959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960/* end confdefs.h. */
15961
15962
15963#ifdef __cplusplus
15964extern "C"
15965#endif
15966char dlopen ();
15967int main (void)
15968{
15969return dlopen ();
15970 ;
15971 return 0;
15972}
15973_ACEOF
15974if ac_fn_c_try_link "$LINENO"
15975then :
15976 ac_cv_lib_svld_dlopen=yes
15977else $as_nop
15978 ac_cv_lib_svld_dlopen=no
15979fi
15980rm -f core conftest.err conftest.$ac_objext conftest.beam \
15981 conftest$ac_exeext conftest.$ac_ext
15982LIBS=$ac_check_lib_save_LIBS
15983fi
15984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15985printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15986if test "x$ac_cv_lib_svld_dlopen" = xyes
15987then :
15988 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15989else $as_nop
15990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15991printf %s "checking for dld_link in -ldld... " >&6; }
15992if test ${ac_cv_lib_dld_dld_link+y}
15993then :
15994 printf %s "(cached) " >&6
15995else $as_nop
15996 ac_check_lib_save_LIBS=$LIBS
15997LIBS="-ldld $LIBS"
15998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999/* end confdefs.h. */
16000
16001
16002#ifdef __cplusplus
16003extern "C"
16004#endif
16005char dld_link ();
16006int main (void)
16007{
16008return dld_link ();
16009 ;
16010 return 0;
16011}
16012_ACEOF
16013if ac_fn_c_try_link "$LINENO"
16014then :
16015 ac_cv_lib_dld_dld_link=yes
16016else $as_nop
16017 ac_cv_lib_dld_dld_link=no
16018fi
16019rm -f core conftest.err conftest.$ac_objext conftest.beam \
16020 conftest$ac_exeext conftest.$ac_ext
16021LIBS=$ac_check_lib_save_LIBS
16022fi
16023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16024printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16025if test "x$ac_cv_lib_dld_dld_link" = xyes
16026then :
16027 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16028fi
16029
16030
16031fi
16032
16033
16034fi
16035
16036
16037fi
16038
16039
16040fi
16041
16042
16043fi
16044
16045 ;;
16046 esac
16047
16048 if test no = "$lt_cv_dlopen"; then
16049 enable_dlopen=no
16050 else
16051 enable_dlopen=yes
16052 fi
16053
16054 case $lt_cv_dlopen in
16055 dlopen)
16056 save_CPPFLAGS=$CPPFLAGS
16057 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16058
16059 save_LDFLAGS=$LDFLAGS
16060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16061
16062 save_LIBS=$LIBS
16063 LIBS="$lt_cv_dlopen_libs $LIBS"
16064
16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16066printf %s "checking whether a program can dlopen itself... " >&6; }
16067if test ${lt_cv_dlopen_self+y}
16068then :
16069 printf %s "(cached) " >&6
16070else $as_nop
16071 if test yes = "$cross_compiling"; then :
16072 lt_cv_dlopen_self=cross
16073else
16074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16075 lt_status=$lt_dlunknown
16076 cat > conftest.$ac_ext <<_LT_EOF
16077#line $LINENO "configure"
16078#include "confdefs.h"
16079
16080#if HAVE_DLFCN_H
16081#include <dlfcn.h>
16082#endif
16083
16084#include <stdio.h>
16085
16086#ifdef RTLD_GLOBAL
16087# define LT_DLGLOBAL RTLD_GLOBAL
16088#else
16089# ifdef DL_GLOBAL
16090# define LT_DLGLOBAL DL_GLOBAL
16091# else
16092# define LT_DLGLOBAL 0
16093# endif
16094#endif
16095
16096/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16097 find out it does not work in some platform. */
16098#ifndef LT_DLLAZY_OR_NOW
16099# ifdef RTLD_LAZY
16100# define LT_DLLAZY_OR_NOW RTLD_LAZY
16101# else
16102# ifdef DL_LAZY
16103# define LT_DLLAZY_OR_NOW DL_LAZY
16104# else
16105# ifdef RTLD_NOW
16106# define LT_DLLAZY_OR_NOW RTLD_NOW
16107# else
16108# ifdef DL_NOW
16109# define LT_DLLAZY_OR_NOW DL_NOW
16110# else
16111# define LT_DLLAZY_OR_NOW 0
16112# endif
16113# endif
16114# endif
16115# endif
16116#endif
16117
16118/* When -fvisibility=hidden is used, assume the code has been annotated
16119 correspondingly for the symbols needed. */
16120#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16121int fnord () __attribute__((visibility("default")));
16122#endif
16123
16124int fnord () { return 42; }
16125int main ()
16126{
16127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16128 int status = $lt_dlunknown;
16129
16130 if (self)
16131 {
16132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16133 else
16134 {
16135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16136 else puts (dlerror ());
16137 }
16138 /* dlclose (self); */
16139 }
16140 else
16141 puts (dlerror ());
16142
16143 return status;
16144}
16145_LT_EOF
16146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16147 (eval $ac_link) 2>&5
16148 ac_status=$?
16149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16150 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16151 (./conftest; exit; ) >&5 2>/dev/null
16152 lt_status=$?
16153 case x$lt_status in
16154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16156 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16157 esac
16158 else :
16159 # compilation failed
16160 lt_cv_dlopen_self=no
16161 fi
16162fi
16163rm -fr conftest*
16164
16165
16166fi
16167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16168printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16169
16170 if test yes = "$lt_cv_dlopen_self"; then
16171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16173printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16174if test ${lt_cv_dlopen_self_static+y}
16175then :
16176 printf %s "(cached) " >&6
16177else $as_nop
16178 if test yes = "$cross_compiling"; then :
16179 lt_cv_dlopen_self_static=cross
16180else
16181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16182 lt_status=$lt_dlunknown
16183 cat > conftest.$ac_ext <<_LT_EOF
16184#line $LINENO "configure"
16185#include "confdefs.h"
16186
16187#if HAVE_DLFCN_H
16188#include <dlfcn.h>
16189#endif
16190
16191#include <stdio.h>
16192
16193#ifdef RTLD_GLOBAL
16194# define LT_DLGLOBAL RTLD_GLOBAL
16195#else
16196# ifdef DL_GLOBAL
16197# define LT_DLGLOBAL DL_GLOBAL
16198# else
16199# define LT_DLGLOBAL 0
16200# endif
16201#endif
16202
16203/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16204 find out it does not work in some platform. */
16205#ifndef LT_DLLAZY_OR_NOW
16206# ifdef RTLD_LAZY
16207# define LT_DLLAZY_OR_NOW RTLD_LAZY
16208# else
16209# ifdef DL_LAZY
16210# define LT_DLLAZY_OR_NOW DL_LAZY
16211# else
16212# ifdef RTLD_NOW
16213# define LT_DLLAZY_OR_NOW RTLD_NOW
16214# else
16215# ifdef DL_NOW
16216# define LT_DLLAZY_OR_NOW DL_NOW
16217# else
16218# define LT_DLLAZY_OR_NOW 0
16219# endif
16220# endif
16221# endif
16222# endif
16223#endif
16224
16225/* When -fvisibility=hidden is used, assume the code has been annotated
16226 correspondingly for the symbols needed. */
16227#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16228int fnord () __attribute__((visibility("default")));
16229#endif
16230
16231int fnord () { return 42; }
16232int main ()
16233{
16234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16235 int status = $lt_dlunknown;
16236
16237 if (self)
16238 {
16239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16240 else
16241 {
16242 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16243 else puts (dlerror ());
16244 }
16245 /* dlclose (self); */
16246 }
16247 else
16248 puts (dlerror ());
16249
16250 return status;
16251}
16252_LT_EOF
16253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16254 (eval $ac_link) 2>&5
16255 ac_status=$?
16256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16257 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16258 (./conftest; exit; ) >&5 2>/dev/null
16259 lt_status=$?
16260 case x$lt_status in
16261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16263 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16264 esac
16265 else :
16266 # compilation failed
16267 lt_cv_dlopen_self_static=no
16268 fi
16269fi
16270rm -fr conftest*
16271
16272
16273fi
16274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16275printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16276 fi
16277
16278 CPPFLAGS=$save_CPPFLAGS
16279 LDFLAGS=$save_LDFLAGS
16280 LIBS=$save_LIBS
16281 ;;
16282 esac
16283
16284 case $lt_cv_dlopen_self in
16285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16286 *) enable_dlopen_self=unknown ;;
16287 esac
16288
16289 case $lt_cv_dlopen_self_static in
16290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16291 *) enable_dlopen_self_static=unknown ;;
16292 esac
16293fi
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311striplib=
16312old_striplib=
16313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16314printf %s "checking whether stripping libraries is possible... " >&6; }
16315if test -z "$STRIP"; then
16316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16317printf "%s\n" "no" >&6; }
16318else
16319 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16320 old_striplib="$STRIP --strip-debug"
16321 striplib="$STRIP --strip-unneeded"
16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16323printf "%s\n" "yes" >&6; }
16324 else
16325 case $host_os in
16326 darwin*)
16327 # FIXME - insert some real tests, host_os isn't really good enough
16328 striplib="$STRIP -x"
16329 old_striplib="$STRIP -S"
16330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331printf "%s\n" "yes" >&6; }
16332 ;;
16333 freebsd*)
16334 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16335 old_striplib="$STRIP --strip-debug"
16336 striplib="$STRIP --strip-unneeded"
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16338printf "%s\n" "yes" >&6; }
16339 else
16340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341printf "%s\n" "no" >&6; }
16342 fi
16343 ;;
16344 *)
16345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346printf "%s\n" "no" >&6; }
16347 ;;
16348 esac
16349 fi
16350fi
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363 # Report what library types will actually be built
16364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16365printf %s "checking if libtool supports shared libraries... " >&6; }
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16367printf "%s\n" "$can_build_shared" >&6; }
16368
16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16370printf %s "checking whether to build shared libraries... " >&6; }
16371 test no = "$can_build_shared" && enable_shared=no
16372
16373 # On AIX, shared libraries and static libraries use the same namespace, and
16374 # are all built from PIC.
16375 case $host_os in
16376 aix3*)
16377 test yes = "$enable_shared" && enable_static=no
16378 if test -n "$RANLIB"; then
16379 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16380 postinstall_cmds='$RANLIB $lib'
16381 fi
16382 ;;
16383
16384 aix[4-9]*)
16385 if test ia64 != "$host_cpu"; then
16386 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16387 yes,aix,yes) ;; # shared object as lib.so file only
16388 yes,svr4,*) ;; # shared object as lib.so archive member only
16389 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16390 esac
16391 fi
16392 ;;
16393 esac
16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16395printf "%s\n" "$enable_shared" >&6; }
16396
16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16398printf %s "checking whether to build static libraries... " >&6; }
16399 # Make sure either enable_shared or enable_static is yes.
16400 test yes = "$enable_shared" || enable_static=yes
16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16402printf "%s\n" "$enable_static" >&6; }
16403
16404
16405
16406
16407fi
16408ac_ext=c
16409ac_cpp='$CPP $CPPFLAGS'
16410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412ac_compiler_gnu=$ac_cv_c_compiler_gnu
16413
16414CC=$lt_save_CC
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430 ac_config_commands="$ac_config_commands libtool"
16431
16432
16433
16434
16435# Only expand once:
16436
16437
16438## --------------------- ##
16439## End of libtool code ##
16440## --------------------- ##
16441
16442#
16443# Verify if finally libtool shared libraries will be built
16444#
16445
16446case "x$enable_shared" in # ((
16447 xyes | xno)
16448 xc_lt_build_shared=$enable_shared
16449 ;;
16450 *)
16451 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16452 ;;
16453esac
16454
16455#
16456# Verify if finally libtool static libraries will be built
16457#
16458
16459case "x$enable_static" in # ((
16460 xyes | xno)
16461 xc_lt_build_static=$enable_static
16462 ;;
16463 *)
16464 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16465 ;;
16466esac
16467
16468#
16469# Verify if libtool shared libraries should be linked using flag -version-info
16470#
16471
16472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16473printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16474xc_lt_shlib_use_version_info='yes'
16475if test "x$version_type" = 'xnone'; then
16476 xc_lt_shlib_use_version_info='no'
16477fi
16478case $host_os in # (
16479 amigaos*)
16480 xc_lt_shlib_use_version_info='yes'
16481 ;;
16482esac
16483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16484printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16485
16486#
16487# Verify if libtool shared libraries should be linked using flag -no-undefined
16488#
16489
16490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16491printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16492xc_lt_shlib_use_no_undefined='no'
16493if test "x$allow_undefined" = 'xno'; then
16494 xc_lt_shlib_use_no_undefined='yes'
16495elif test "x$allow_undefined_flag" = 'xunsupported'; then
16496 xc_lt_shlib_use_no_undefined='yes'
16497fi
16498case $host_os in # (
16499 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16500 xc_lt_shlib_use_no_undefined='yes'
16501 ;;
16502esac
16503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16504printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16505
16506#
16507# Verify if libtool shared libraries should be linked using flag -mimpure-text
16508#
16509
16510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16511printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16512xc_lt_shlib_use_mimpure_text='no'
16513case $host_os in # (
16514 solaris2*)
16515 if test "x$GCC" = 'xyes'; then
16516 xc_lt_shlib_use_mimpure_text='yes'
16517 fi
16518 ;;
16519esac
16520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16521printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16522
16523#
16524# Find out whether libtool libraries would be built with PIC
16525#
16526
16527case "x$pic_mode" in # ((((
16528 xdefault)
16529 xc_lt_build_shared_with_pic='yes'
16530 xc_lt_build_static_with_pic='no'
16531 ;;
16532 xyes)
16533 xc_lt_build_shared_with_pic='yes'
16534 xc_lt_build_static_with_pic='yes'
16535 ;;
16536 xno)
16537 xc_lt_build_shared_with_pic='no'
16538 xc_lt_build_static_with_pic='no'
16539 ;;
16540 *)
16541 xc_lt_build_shared_with_pic='unknown'
16542 xc_lt_build_static_with_pic='unknown'
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16544printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16545 ;;
16546esac
16547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16548printf %s "checking whether to build shared libraries with PIC... " >&6; }
16549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16550printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16552printf %s "checking whether to build static libraries with PIC... " >&6; }
16553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16554printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16555
16556#
16557# Verify if libtool shared libraries will be built while static not built
16558#
16559
16560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16561printf %s "checking whether to build shared libraries only... " >&6; }
16562if test "$xc_lt_build_shared" = 'yes' &&
16563 test "$xc_lt_build_static" = 'no'; then
16564 xc_lt_build_shared_only='yes'
16565else
16566 xc_lt_build_shared_only='no'
16567fi
16568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16569printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16570
16571#
16572# Verify if libtool static libraries will be built while shared not built
16573#
16574
16575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
16576printf %s "checking whether to build static libraries only... " >&6; }
16577if test "$xc_lt_build_static" = 'yes' &&
16578 test "$xc_lt_build_shared" = 'no'; then
16579 xc_lt_build_static_only='yes'
16580else
16581 xc_lt_build_static_only='no'
16582fi
16583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
16584printf "%s\n" "$xc_lt_build_static_only" >&6; }
16585
16586
16587
16588
16589if test -n "$ac_tool_prefix"; then
16590 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16591set dummy ${ac_tool_prefix}windres; ac_word=$2
16592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16593printf %s "checking for $ac_word... " >&6; }
16594if test ${ac_cv_prog_RC+y}
16595then :
16596 printf %s "(cached) " >&6
16597else $as_nop
16598 if test -n "$RC"; then
16599 ac_cv_prog_RC="$RC" # Let the user override the test.
16600else
16601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16602for as_dir in $PATH
16603do
16604 IFS=$as_save_IFS
16605 case $as_dir in #(((
16606 '') as_dir=./ ;;
16607 */) ;;
16608 *) as_dir=$as_dir/ ;;
16609 esac
16610 for ac_exec_ext in '' $ac_executable_extensions; do
16611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16612 ac_cv_prog_RC="${ac_tool_prefix}windres"
16613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16614 break 2
16615 fi
16616done
16617 done
16618IFS=$as_save_IFS
16619
16620fi
16621fi
16622RC=$ac_cv_prog_RC
16623if test -n "$RC"; then
16624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16625printf "%s\n" "$RC" >&6; }
16626else
16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628printf "%s\n" "no" >&6; }
16629fi
16630
16631
16632fi
16633if test -z "$ac_cv_prog_RC"; then
16634 ac_ct_RC=$RC
16635 # Extract the first word of "windres", so it can be a program name with args.
16636set dummy windres; ac_word=$2
16637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638printf %s "checking for $ac_word... " >&6; }
16639if test ${ac_cv_prog_ac_ct_RC+y}
16640then :
16641 printf %s "(cached) " >&6
16642else $as_nop
16643 if test -n "$ac_ct_RC"; then
16644 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16645else
16646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647for as_dir in $PATH
16648do
16649 IFS=$as_save_IFS
16650 case $as_dir in #(((
16651 '') as_dir=./ ;;
16652 */) ;;
16653 *) as_dir=$as_dir/ ;;
16654 esac
16655 for ac_exec_ext in '' $ac_executable_extensions; do
16656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16657 ac_cv_prog_ac_ct_RC="windres"
16658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16659 break 2
16660 fi
16661done
16662 done
16663IFS=$as_save_IFS
16664
16665fi
16666fi
16667ac_ct_RC=$ac_cv_prog_ac_ct_RC
16668if test -n "$ac_ct_RC"; then
16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16670printf "%s\n" "$ac_ct_RC" >&6; }
16671else
16672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673printf "%s\n" "no" >&6; }
16674fi
16675
16676 if test "x$ac_ct_RC" = x; then
16677 RC=""
16678 else
16679 case $cross_compiling:$ac_tool_warned in
16680yes:)
16681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16682printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16683ac_tool_warned=yes ;;
16684esac
16685 RC=$ac_ct_RC
16686 fi
16687else
16688 RC="$ac_cv_prog_RC"
16689fi
16690
16691
16692
16693
16694# Source file extension for RC test sources.
16695ac_ext=rc
16696
16697# Object file extension for compiled RC test sources.
16698objext=o
16699objext_RC=$objext
16700
16701# Code to be used in simple compile tests
16702lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16703
16704# Code to be used in simple link tests
16705lt_simple_link_test_code=$lt_simple_compile_test_code
16706
16707# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16708
16709
16710
16711
16712
16713
16714# If no C compiler was specified, use CC.
16715LTCC=${LTCC-"$CC"}
16716
16717# If no C compiler flags were specified, use CFLAGS.
16718LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16719
16720# Allow CC to be a program name with arguments.
16721compiler=$CC
16722
16723
16724# save warnings/boilerplate of simple test code
16725ac_outfile=conftest.$ac_objext
16726echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16727eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16728_lt_compiler_boilerplate=`cat conftest.err`
16729$RM conftest*
16730
16731ac_outfile=conftest.$ac_objext
16732echo "$lt_simple_link_test_code" >conftest.$ac_ext
16733eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16734_lt_linker_boilerplate=`cat conftest.err`
16735$RM -r conftest*
16736
16737
16738# Allow CC to be a program name with arguments.
16739lt_save_CC=$CC
16740lt_save_CFLAGS=$CFLAGS
16741lt_save_GCC=$GCC
16742GCC=
16743CC=${RC-"windres"}
16744CFLAGS=
16745compiler=$CC
16746compiler_RC=$CC
16747func_cc_basename $compiler
16748cc_basename=$func_cc_basename_result
16749
16750lt_cv_prog_compiler_c_o_RC=yes
16751
16752if test -n "$compiler"; then
16753 :
16754
16755
16756
16757fi
16758
16759GCC=$lt_save_GCC
16760ac_ext=c
16761ac_cpp='$CPP $CPPFLAGS'
16762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16764ac_compiler_gnu=$ac_cv_c_compiler_gnu
16765
16766CC=$lt_save_CC
16767CFLAGS=$lt_save_CFLAGS
16768
16769
16770#
16771# Automake conditionals based on libtool related checks
16772#
16773
16774 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
16775 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
16776 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
16777else
16778 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16779 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16780fi
16781
16782 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16783 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16784 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16785else
16786 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16787 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16788fi
16789
16790 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16791 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16792 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16793else
16794 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16795 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16796fi
16797
16798
16799#
16800# Due to libtool and automake machinery limitations of not allowing
16801# specifying separate CPPFLAGS or CFLAGS when compiling objects for
16802# inclusion of these in shared or static libraries, we are forced to
16803# build using separate configure runs for shared and static libraries
16804# on systems where different CPPFLAGS or CFLAGS are mandatory in order
16805# to compile objects for each kind of library. Notice that relying on
16806# the '-DPIC' CFLAG that libtool provides is not valid given that the
16807# user might for example choose to build static libraries with PIC.
16808#
16809
16810#
16811# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16812# targeting a static library and not building its shared counterpart.
16813#
16814
16815 if test "x$xc_lt_build_static_only" = 'xyes'; then
16816 USE_CPPFLAG_CURL_STATICLIB_TRUE=
16817 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16818else
16819 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16820 USE_CPPFLAG_CURL_STATICLIB_FALSE=
16821fi
16822
16823
16824#
16825# Make staticlib CPPFLAG variable and its definition visible in output
16826# files unconditionally, providing an empty definition unless strictly
16827# targeting a static library and not building its shared counterpart.
16828#
16829
16830CPPFLAG_CURL_STATICLIB=
16831if test "x$xc_lt_build_static_only" = 'xyes'; then
16832 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16833fi
16834
16835
16836
16837# Determine whether all dependent libraries must be specified when linking
16838if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16839then
16840 REQUIRE_LIB_DEPS=no
16841else
16842 REQUIRE_LIB_DEPS=yes
16843fi
16844
16845 if test x$REQUIRE_LIB_DEPS = xyes; then
16846 USE_EXPLICIT_LIB_DEPS_TRUE=
16847 USE_EXPLICIT_LIB_DEPS_FALSE='#'
16848else
16849 USE_EXPLICIT_LIB_DEPS_TRUE='#'
16850 USE_EXPLICIT_LIB_DEPS_FALSE=
16851fi
16852
16853
16854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16855printf %s "checking for inline... " >&6; }
16856if test ${ac_cv_c_inline+y}
16857then :
16858 printf %s "(cached) " >&6
16859else $as_nop
16860 ac_cv_c_inline=no
16861for ac_kw in inline __inline__ __inline; do
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863/* end confdefs.h. */
16864#ifndef __cplusplus
16865typedef int foo_t;
16866static $ac_kw foo_t static_foo (void) {return 0; }
16867$ac_kw foo_t foo (void) {return 0; }
16868#endif
16869
16870_ACEOF
16871if ac_fn_c_try_compile "$LINENO"
16872then :
16873 ac_cv_c_inline=$ac_kw
16874fi
16875rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16876 test "$ac_cv_c_inline" != no && break
16877done
16878
16879fi
16880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16881printf "%s\n" "$ac_cv_c_inline" >&6; }
16882
16883case $ac_cv_c_inline in
16884 inline | yes) ;;
16885 *)
16886 case $ac_cv_c_inline in
16887 no) ac_val=;;
16888 *) ac_val=$ac_cv_c_inline;;
16889 esac
16890 cat >>confdefs.h <<_ACEOF
16891#ifndef __cplusplus
16892#define inline $ac_val
16893#endif
16894_ACEOF
16895 ;;
16896esac
16897
16898
16899
16900
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
16902printf %s "checking if cpp -P is needed... " >&6; }
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904/* end confdefs.h. */
16905
16906 #include <errno.h>
16907TEST EINVAL TEST
16908
16909_ACEOF
16910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16911 $EGREP "TEST.*TEST" >/dev/null 2>&1
16912then :
16913 cpp=no
16914else $as_nop
16915 cpp=yes
16916fi
16917rm -rf conftest*
16918
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
16920printf "%s\n" "$cpp" >&6; }
16921
16922 if test "x$cpp" = "xyes"; then
16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
16924printf %s "checking if cpp -P works... " >&6; }
16925 OLDCPPFLAGS=$CPPFLAGS
16926 CPPFLAGS="$CPPFLAGS -P"
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928/* end confdefs.h. */
16929
16930 #include <errno.h>
16931TEST EINVAL TEST
16932
16933_ACEOF
16934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16935 $EGREP "TEST.*TEST" >/dev/null 2>&1
16936then :
16937 cpp_p=yes
16938else $as_nop
16939 cpp_p=no
16940fi
16941rm -rf conftest*
16942
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
16944printf "%s\n" "$cpp_p" >&6; }
16945
16946 if test "x$cpp_p" = "xno"; then
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16948printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16949 # without -P
16950 CPPPFLAG=""
16951 else
16952 # with -P
16953 CPPPFLAG="-P"
16954 fi
16955 CPPFLAGS=$OLDCPPFLAGS
16956 else
16957 # without -P
16958 CPPPFLAG=""
16959 fi
16960
16961
16962 #
16963 compiler_id="unknown"
16964 compiler_num="0"
16965 #
16966 flags_dbg_yes="unknown"
16967 flags_opt_all="unknown"
16968 flags_opt_yes="unknown"
16969 flags_opt_off="unknown"
16970 #
16971 flags_prefer_cppflags="no"
16972 #
16973
16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16975printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
16976
16977 OLDCPPFLAGS=$CPPFLAGS
16978 # CPPPFLAG comes from CURL_CPP_P
16979 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16980 if test -z "$SED"; then
16981 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16982 fi
16983 if test -z "$GREP"; then
16984 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16985 fi
16986
16987 tmp_exp=""
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989/* end confdefs.h. */
16990
16991
16992#ifdef __DECC
16993CURL_DEF_TOKEN __DECC
16994#endif
16995
16996
16997_ACEOF
16998if ac_fn_c_try_cpp "$LINENO"
16999then :
17000
17001 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17002 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17003 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17004 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17005 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17006 tmp_exp=""
17007 fi
17008
17009fi
17010rm -f conftest.err conftest.i conftest.$ac_ext
17011 if test -z "$tmp_exp"; then
17012 curl_cv_have_def___DECC=no
17013
17014 else
17015 curl_cv_have_def___DECC=yes
17016 curl_cv_def___DECC=$tmp_exp
17017
17018 fi
17019 CPPFLAGS=$OLDCPPFLAGS
17020
17021
17022 OLDCPPFLAGS=$CPPFLAGS
17023 # CPPPFLAG comes from CURL_CPP_P
17024 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17025 if test -z "$SED"; then
17026 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17027 fi
17028 if test -z "$GREP"; then
17029 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17030 fi
17031
17032 tmp_exp=""
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034/* end confdefs.h. */
17035
17036
17037#ifdef __DECC_VER
17038CURL_DEF_TOKEN __DECC_VER
17039#endif
17040
17041
17042_ACEOF
17043if ac_fn_c_try_cpp "$LINENO"
17044then :
17045
17046 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17047 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17048 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17049 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17050 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17051 tmp_exp=""
17052 fi
17053
17054fi
17055rm -f conftest.err conftest.i conftest.$ac_ext
17056 if test -z "$tmp_exp"; then
17057 curl_cv_have_def___DECC_VER=no
17058
17059 else
17060 curl_cv_have_def___DECC_VER=yes
17061 curl_cv_def___DECC_VER=$tmp_exp
17062
17063 fi
17064 CPPFLAGS=$OLDCPPFLAGS
17065
17066 if test "$curl_cv_have_def___DECC" = "yes" &&
17067 test "$curl_cv_have_def___DECC_VER" = "yes"; then
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17069printf "%s\n" "yes" >&6; }
17070 compiler_id="DEC_C"
17071 flags_dbg_yes="-g2"
17072 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17073 flags_opt_yes="-O1"
17074 flags_opt_off="-O0"
17075 else
17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077printf "%s\n" "no" >&6; }
17078 fi
17079
17080
17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17082printf %s "checking if compiler is HP-UX C... " >&6; }
17083
17084 OLDCPPFLAGS=$CPPFLAGS
17085 # CPPPFLAG comes from CURL_CPP_P
17086 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17087 if test -z "$SED"; then
17088 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17089 fi
17090 if test -z "$GREP"; then
17091 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17092 fi
17093
17094 tmp_exp=""
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096/* end confdefs.h. */
17097
17098
17099#ifdef __HP_cc
17100CURL_DEF_TOKEN __HP_cc
17101#endif
17102
17103
17104_ACEOF
17105if ac_fn_c_try_cpp "$LINENO"
17106then :
17107
17108 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17109 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17110 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17111 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17112 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17113 tmp_exp=""
17114 fi
17115
17116fi
17117rm -f conftest.err conftest.i conftest.$ac_ext
17118 if test -z "$tmp_exp"; then
17119 curl_cv_have_def___HP_cc=no
17120
17121 else
17122 curl_cv_have_def___HP_cc=yes
17123 curl_cv_def___HP_cc=$tmp_exp
17124
17125 fi
17126 CPPFLAGS=$OLDCPPFLAGS
17127
17128 if test "$curl_cv_have_def___HP_cc" = "yes"; then
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130printf "%s\n" "yes" >&6; }
17131 compiler_id="HP_UX_C"
17132 flags_dbg_yes="-g"
17133 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17134 flags_opt_yes="+O2"
17135 flags_opt_off="+O0"
17136 else
17137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138printf "%s\n" "no" >&6; }
17139 fi
17140
17141
17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17143printf %s "checking if compiler is IBM C... " >&6; }
17144
17145 OLDCPPFLAGS=$CPPFLAGS
17146 # CPPPFLAG comes from CURL_CPP_P
17147 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17148 if test -z "$SED"; then
17149 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17150 fi
17151 if test -z "$GREP"; then
17152 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17153 fi
17154
17155 tmp_exp=""
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157/* end confdefs.h. */
17158
17159
17160#ifdef __IBMC__
17161CURL_DEF_TOKEN __IBMC__
17162#endif
17163
17164
17165_ACEOF
17166if ac_fn_c_try_cpp "$LINENO"
17167then :
17168
17169 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17170 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17171 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17172 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17173 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17174 tmp_exp=""
17175 fi
17176
17177fi
17178rm -f conftest.err conftest.i conftest.$ac_ext
17179 if test -z "$tmp_exp"; then
17180 curl_cv_have_def___IBMC__=no
17181
17182 else
17183 curl_cv_have_def___IBMC__=yes
17184 curl_cv_def___IBMC__=$tmp_exp
17185
17186 fi
17187 CPPFLAGS=$OLDCPPFLAGS
17188
17189 if test "$curl_cv_have_def___IBMC__" = "yes"; then
17190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17191printf "%s\n" "yes" >&6; }
17192 compiler_id="IBM_C"
17193 flags_dbg_yes="-g"
17194 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17195 flags_opt_all="$flags_opt_all -qnooptimize"
17196 flags_opt_all="$flags_opt_all -qoptimize=0"
17197 flags_opt_all="$flags_opt_all -qoptimize=1"
17198 flags_opt_all="$flags_opt_all -qoptimize=2"
17199 flags_opt_all="$flags_opt_all -qoptimize=3"
17200 flags_opt_all="$flags_opt_all -qoptimize=4"
17201 flags_opt_all="$flags_opt_all -qoptimize=5"
17202 flags_opt_yes="-O2"
17203 flags_opt_off="-qnooptimize"
17204 flags_prefer_cppflags="yes"
17205 else
17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17207printf "%s\n" "no" >&6; }
17208 fi
17209
17210
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17212printf %s "checking if compiler is Intel C... " >&6; }
17213
17214 OLDCPPFLAGS=$CPPFLAGS
17215 # CPPPFLAG comes from CURL_CPP_P
17216 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17217 if test -z "$SED"; then
17218 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17219 fi
17220 if test -z "$GREP"; then
17221 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17222 fi
17223
17224 tmp_exp=""
17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226/* end confdefs.h. */
17227
17228
17229#ifdef __INTEL_COMPILER
17230CURL_DEF_TOKEN __INTEL_COMPILER
17231#endif
17232
17233
17234_ACEOF
17235if ac_fn_c_try_cpp "$LINENO"
17236then :
17237
17238 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17239 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17240 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17241 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17242 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17243 tmp_exp=""
17244 fi
17245
17246fi
17247rm -f conftest.err conftest.i conftest.$ac_ext
17248 if test -z "$tmp_exp"; then
17249 curl_cv_have_def___INTEL_COMPILER=no
17250
17251 else
17252 curl_cv_have_def___INTEL_COMPILER=yes
17253 curl_cv_def___INTEL_COMPILER=$tmp_exp
17254
17255 fi
17256 CPPFLAGS=$OLDCPPFLAGS
17257
17258 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17260printf "%s\n" "yes" >&6; }
17261 compiler_num="$curl_cv_def___INTEL_COMPILER"
17262
17263 OLDCPPFLAGS=$CPPFLAGS
17264 # CPPPFLAG comes from CURL_CPP_P
17265 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17266 if test -z "$SED"; then
17267 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17268 fi
17269 if test -z "$GREP"; then
17270 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17271 fi
17272
17273 tmp_exp=""
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275/* end confdefs.h. */
17276
17277
17278#ifdef __unix__
17279CURL_DEF_TOKEN __unix__
17280#endif
17281
17282
17283_ACEOF
17284if ac_fn_c_try_cpp "$LINENO"
17285then :
17286
17287 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17288 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17289 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17290 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17291 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17292 tmp_exp=""
17293 fi
17294
17295fi
17296rm -f conftest.err conftest.i conftest.$ac_ext
17297 if test -z "$tmp_exp"; then
17298 curl_cv_have_def___unix__=no
17299
17300 else
17301 curl_cv_have_def___unix__=yes
17302 curl_cv_def___unix__=$tmp_exp
17303
17304 fi
17305 CPPFLAGS=$OLDCPPFLAGS
17306
17307 if test "$curl_cv_have_def___unix__" = "yes"; then
17308 compiler_id="INTEL_UNIX_C"
17309 flags_dbg_yes="-g"
17310 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17311 flags_opt_yes="-O2"
17312 flags_opt_off="-O0"
17313 else
17314 compiler_id="INTEL_WINDOWS_C"
17315 flags_dbg_yes="/Zi /Oy-"
17316 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17317 flags_opt_yes="/O2"
17318 flags_opt_off="/Od"
17319 fi
17320 else
17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322printf "%s\n" "no" >&6; }
17323 fi
17324
17325
17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17327printf %s "checking if compiler is clang... " >&6; }
17328
17329 OLDCPPFLAGS=$CPPFLAGS
17330 # CPPPFLAG comes from CURL_CPP_P
17331 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17332 if test -z "$SED"; then
17333 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17334 fi
17335 if test -z "$GREP"; then
17336 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17337 fi
17338
17339 tmp_exp=""
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341/* end confdefs.h. */
17342
17343
17344#ifdef __clang__
17345CURL_DEF_TOKEN __clang__
17346#endif
17347
17348
17349_ACEOF
17350if ac_fn_c_try_cpp "$LINENO"
17351then :
17352
17353 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17354 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17355 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17356 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17357 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17358 tmp_exp=""
17359 fi
17360
17361fi
17362rm -f conftest.err conftest.i conftest.$ac_ext
17363 if test -z "$tmp_exp"; then
17364 curl_cv_have_def___clang__=no
17365
17366 else
17367 curl_cv_have_def___clang__=yes
17368 curl_cv_def___clang__=$tmp_exp
17369
17370 fi
17371 CPPFLAGS=$OLDCPPFLAGS
17372
17373 if test "$curl_cv_have_def___clang__" = "yes"; then
17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375printf "%s\n" "yes" >&6; }
17376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17377printf %s "checking if compiler is xlclang... " >&6; }
17378
17379 OLDCPPFLAGS=$CPPFLAGS
17380 # CPPPFLAG comes from CURL_CPP_P
17381 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17382 if test -z "$SED"; then
17383 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17384 fi
17385 if test -z "$GREP"; then
17386 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17387 fi
17388
17389 tmp_exp=""
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391/* end confdefs.h. */
17392
17393
17394#ifdef __ibmxl__
17395CURL_DEF_TOKEN __ibmxl__
17396#endif
17397
17398
17399_ACEOF
17400if ac_fn_c_try_cpp "$LINENO"
17401then :
17402
17403 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17404 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17405 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17406 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17407 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17408 tmp_exp=""
17409 fi
17410
17411fi
17412rm -f conftest.err conftest.i conftest.$ac_ext
17413 if test -z "$tmp_exp"; then
17414 curl_cv_have_def___ibmxl__=no
17415
17416 else
17417 curl_cv_have_def___ibmxl__=yes
17418 curl_cv_def___ibmxl__=$tmp_exp
17419
17420 fi
17421 CPPFLAGS=$OLDCPPFLAGS
17422
17423 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17425printf "%s\n" "yes" >&6; }
17426 compiler_id="XLCLANG"
17427 else
17428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17429printf "%s\n" "no" >&6; }
17430 compiler_id="CLANG"
17431 fi
17432 fullclangver=`$CC -v 2>&1 | grep version`
17433 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17434 if test -z "$clangver"; then
17435 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17436 clangver="3.7"
17437 else
17438 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17439 fi
17440 fi
17441 clangvhi=`echo $clangver | cut -d . -f1`
17442 clangvlo=`echo $clangver | cut -d . -f2`
17443 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17444 flags_dbg_yes="-g"
17445 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17446 flags_opt_yes="-O2"
17447 flags_opt_off="-O0"
17448 else
17449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17450printf "%s\n" "no" >&6; }
17451 fi
17452
17453
17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17455printf %s "checking if compiler is GNU C... " >&6; }
17456
17457 OLDCPPFLAGS=$CPPFLAGS
17458 # CPPPFLAG comes from CURL_CPP_P
17459 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17460 if test -z "$SED"; then
17461 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17462 fi
17463 if test -z "$GREP"; then
17464 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17465 fi
17466
17467 tmp_exp=""
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469/* end confdefs.h. */
17470
17471
17472#ifdef __GNUC__
17473CURL_DEF_TOKEN __GNUC__
17474#endif
17475
17476
17477_ACEOF
17478if ac_fn_c_try_cpp "$LINENO"
17479then :
17480
17481 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17482 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17483 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17484 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17485 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17486 tmp_exp=""
17487 fi
17488
17489fi
17490rm -f conftest.err conftest.i conftest.$ac_ext
17491 if test -z "$tmp_exp"; then
17492 curl_cv_have_def___GNUC__=no
17493
17494 else
17495 curl_cv_have_def___GNUC__=yes
17496 curl_cv_def___GNUC__=$tmp_exp
17497
17498 fi
17499 CPPFLAGS=$OLDCPPFLAGS
17500
17501 if test "$curl_cv_have_def___GNUC__" = "yes" &&
17502 test "$compiler_id" = "unknown"; then
17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17504printf "%s\n" "yes" >&6; }
17505 compiler_id="GNU_C"
17506 gccver=`$CC -dumpversion`
17507 gccvhi=`echo $gccver | cut -d . -f1`
17508 gccvlo=`echo $gccver | cut -d . -f2`
17509 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17510 flags_dbg_yes="-g"
17511 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17512 flags_opt_yes="-O2"
17513 flags_opt_off="-O0"
17514
17515 OLDCPPFLAGS=$CPPFLAGS
17516 # CPPPFLAG comes from CURL_CPP_P
17517 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17518 if test -z "$SED"; then
17519 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17520 fi
17521 if test -z "$GREP"; then
17522 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17523 fi
17524
17525 tmp_exp=""
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527/* end confdefs.h. */
17528
17529
17530#ifdef _WIN32
17531CURL_DEF_TOKEN _WIN32
17532#endif
17533
17534
17535_ACEOF
17536if ac_fn_c_try_cpp "$LINENO"
17537then :
17538
17539 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17540 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17541 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17542 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17543 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17544 tmp_exp=""
17545 fi
17546
17547fi
17548rm -f conftest.err conftest.i conftest.$ac_ext
17549 if test -z "$tmp_exp"; then
17550 curl_cv_have_def__WIN32=no
17551
17552 else
17553 curl_cv_have_def__WIN32=yes
17554 curl_cv_def__WIN32=$tmp_exp
17555
17556 fi
17557 CPPFLAGS=$OLDCPPFLAGS
17558
17559 else
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561printf "%s\n" "no" >&6; }
17562 fi
17563
17564
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17566printf %s "checking if compiler is LCC... " >&6; }
17567
17568 OLDCPPFLAGS=$CPPFLAGS
17569 # CPPPFLAG comes from CURL_CPP_P
17570 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17571 if test -z "$SED"; then
17572 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17573 fi
17574 if test -z "$GREP"; then
17575 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17576 fi
17577
17578 tmp_exp=""
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580/* end confdefs.h. */
17581
17582
17583#ifdef __LCC__
17584CURL_DEF_TOKEN __LCC__
17585#endif
17586
17587
17588_ACEOF
17589if ac_fn_c_try_cpp "$LINENO"
17590then :
17591
17592 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17593 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17594 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17595 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17596 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
17597 tmp_exp=""
17598 fi
17599
17600fi
17601rm -f conftest.err conftest.i conftest.$ac_ext
17602 if test -z "$tmp_exp"; then
17603 curl_cv_have_def___LCC__=no
17604
17605 else
17606 curl_cv_have_def___LCC__=yes
17607 curl_cv_def___LCC__=$tmp_exp
17608
17609 fi
17610 CPPFLAGS=$OLDCPPFLAGS
17611
17612 if test "$curl_cv_have_def___LCC__" = "yes"; then
17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614printf "%s\n" "yes" >&6; }
17615 compiler_id="LCC"
17616 flags_dbg_yes="-g"
17617 flags_opt_all=""
17618 flags_opt_yes=""
17619 flags_opt_off=""
17620 else
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17622printf "%s\n" "no" >&6; }
17623 fi
17624
17625
17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
17627printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
17628
17629 OLDCPPFLAGS=$CPPFLAGS
17630 # CPPPFLAG comes from CURL_CPP_P
17631 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17632 if test -z "$SED"; then
17633 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17634 fi
17635 if test -z "$GREP"; then
17636 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17637 fi
17638
17639 tmp_exp=""
17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641/* end confdefs.h. */
17642
17643
17644#ifdef __GNUC__
17645CURL_DEF_TOKEN __GNUC__
17646#endif
17647
17648
17649_ACEOF
17650if ac_fn_c_try_cpp "$LINENO"
17651then :
17652
17653 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17654 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17655 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17656 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17657 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17658 tmp_exp=""
17659 fi
17660
17661fi
17662rm -f conftest.err conftest.i conftest.$ac_ext
17663 if test -z "$tmp_exp"; then
17664 curl_cv_have_def___GNUC__=no
17665
17666 else
17667 curl_cv_have_def___GNUC__=yes
17668 curl_cv_def___GNUC__=$tmp_exp
17669
17670 fi
17671 CPPFLAGS=$OLDCPPFLAGS
17672
17673
17674 OLDCPPFLAGS=$CPPFLAGS
17675 # CPPPFLAG comes from CURL_CPP_P
17676 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17677 if test -z "$SED"; then
17678 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17679 fi
17680 if test -z "$GREP"; then
17681 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17682 fi
17683
17684 tmp_exp=""
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686/* end confdefs.h. */
17687
17688
17689#ifdef _COMPILER_VERSION
17690CURL_DEF_TOKEN _COMPILER_VERSION
17691#endif
17692
17693
17694_ACEOF
17695if ac_fn_c_try_cpp "$LINENO"
17696then :
17697
17698 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17699 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17700 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17701 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17702 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
17703 tmp_exp=""
17704 fi
17705
17706fi
17707rm -f conftest.err conftest.i conftest.$ac_ext
17708 if test -z "$tmp_exp"; then
17709 curl_cv_have_def__COMPILER_VERSION=no
17710
17711 else
17712 curl_cv_have_def__COMPILER_VERSION=yes
17713 curl_cv_def__COMPILER_VERSION=$tmp_exp
17714
17715 fi
17716 CPPFLAGS=$OLDCPPFLAGS
17717
17718
17719 OLDCPPFLAGS=$CPPFLAGS
17720 # CPPPFLAG comes from CURL_CPP_P
17721 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17722 if test -z "$SED"; then
17723 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17724 fi
17725 if test -z "$GREP"; then
17726 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17727 fi
17728
17729 tmp_exp=""
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731/* end confdefs.h. */
17732
17733
17734#ifdef _SGI_COMPILER_VERSION
17735CURL_DEF_TOKEN _SGI_COMPILER_VERSION
17736#endif
17737
17738
17739_ACEOF
17740if ac_fn_c_try_cpp "$LINENO"
17741then :
17742
17743 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17744 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17745 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17746 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17747 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
17748 tmp_exp=""
17749 fi
17750
17751fi
17752rm -f conftest.err conftest.i conftest.$ac_ext
17753 if test -z "$tmp_exp"; then
17754 curl_cv_have_def__SGI_COMPILER_VERSION=no
17755
17756 else
17757 curl_cv_have_def__SGI_COMPILER_VERSION=yes
17758 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
17759
17760 fi
17761 CPPFLAGS=$OLDCPPFLAGS
17762
17763 if test "$curl_cv_have_def___GNUC__" = "no" &&
17764 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
17765 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
17766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17767printf "%s\n" "yes" >&6; }
17768 compiler_id="SGI_MIPSPRO_C"
17769 flags_dbg_yes="-g"
17770 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17771 flags_opt_yes="-O2"
17772 flags_opt_off="-O0"
17773 else
17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775printf "%s\n" "no" >&6; }
17776 fi
17777
17778
17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
17780printf %s "checking if compiler is SGI MIPS C... " >&6; }
17781
17782 OLDCPPFLAGS=$CPPFLAGS
17783 # CPPPFLAG comes from CURL_CPP_P
17784 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17785 if test -z "$SED"; then
17786 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17787 fi
17788 if test -z "$GREP"; then
17789 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17790 fi
17791
17792 tmp_exp=""
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794/* end confdefs.h. */
17795
17796
17797#ifdef __GNUC__
17798CURL_DEF_TOKEN __GNUC__
17799#endif
17800
17801
17802_ACEOF
17803if ac_fn_c_try_cpp "$LINENO"
17804then :
17805
17806 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17807 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17808 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17809 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17810 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17811 tmp_exp=""
17812 fi
17813
17814fi
17815rm -f conftest.err conftest.i conftest.$ac_ext
17816 if test -z "$tmp_exp"; then
17817 curl_cv_have_def___GNUC__=no
17818
17819 else
17820 curl_cv_have_def___GNUC__=yes
17821 curl_cv_def___GNUC__=$tmp_exp
17822
17823 fi
17824 CPPFLAGS=$OLDCPPFLAGS
17825
17826
17827 OLDCPPFLAGS=$CPPFLAGS
17828 # CPPPFLAG comes from CURL_CPP_P
17829 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17830 if test -z "$SED"; then
17831 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17832 fi
17833 if test -z "$GREP"; then
17834 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17835 fi
17836
17837 tmp_exp=""
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839/* end confdefs.h. */
17840
17841
17842#ifdef __sgi
17843CURL_DEF_TOKEN __sgi
17844#endif
17845
17846
17847_ACEOF
17848if ac_fn_c_try_cpp "$LINENO"
17849then :
17850
17851 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17852 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17853 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17854 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17855 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
17856 tmp_exp=""
17857 fi
17858
17859fi
17860rm -f conftest.err conftest.i conftest.$ac_ext
17861 if test -z "$tmp_exp"; then
17862 curl_cv_have_def___sgi=no
17863
17864 else
17865 curl_cv_have_def___sgi=yes
17866 curl_cv_def___sgi=$tmp_exp
17867
17868 fi
17869 CPPFLAGS=$OLDCPPFLAGS
17870
17871 if test "$curl_cv_have_def___GNUC__" = "no" &&
17872 test "$curl_cv_have_def___sgi" = "yes" &&
17873 test "$compiler_id" = "unknown"; then
17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17875printf "%s\n" "yes" >&6; }
17876 compiler_id="SGI_MIPS_C"
17877 flags_dbg_yes="-g"
17878 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17879 flags_opt_yes="-O2"
17880 flags_opt_off="-O0"
17881 else
17882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17883printf "%s\n" "no" >&6; }
17884 fi
17885
17886
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17888printf %s "checking if compiler is SunPro C... " >&6; }
17889
17890 OLDCPPFLAGS=$CPPFLAGS
17891 # CPPPFLAG comes from CURL_CPP_P
17892 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17893 if test -z "$SED"; then
17894 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17895 fi
17896 if test -z "$GREP"; then
17897 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17898 fi
17899
17900 tmp_exp=""
17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902/* end confdefs.h. */
17903
17904
17905#ifdef __SUNPRO_C
17906CURL_DEF_TOKEN __SUNPRO_C
17907#endif
17908
17909
17910_ACEOF
17911if ac_fn_c_try_cpp "$LINENO"
17912then :
17913
17914 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17915 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17916 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17917 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17918 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17919 tmp_exp=""
17920 fi
17921
17922fi
17923rm -f conftest.err conftest.i conftest.$ac_ext
17924 if test -z "$tmp_exp"; then
17925 curl_cv_have_def___SUNPRO_C=no
17926
17927 else
17928 curl_cv_have_def___SUNPRO_C=yes
17929 curl_cv_def___SUNPRO_C=$tmp_exp
17930
17931 fi
17932 CPPFLAGS=$OLDCPPFLAGS
17933
17934 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17936printf "%s\n" "yes" >&6; }
17937 compiler_id="SUNPRO_C"
17938 flags_dbg_yes="-g"
17939 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17940 flags_opt_yes="-xO2"
17941 flags_opt_off=""
17942 else
17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944printf "%s\n" "no" >&6; }
17945 fi
17946
17947
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17949printf %s "checking if compiler is Tiny C... " >&6; }
17950
17951 OLDCPPFLAGS=$CPPFLAGS
17952 # CPPPFLAG comes from CURL_CPP_P
17953 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17954 if test -z "$SED"; then
17955 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17956 fi
17957 if test -z "$GREP"; then
17958 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17959 fi
17960
17961 tmp_exp=""
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963/* end confdefs.h. */
17964
17965
17966#ifdef __TINYC__
17967CURL_DEF_TOKEN __TINYC__
17968#endif
17969
17970
17971_ACEOF
17972if ac_fn_c_try_cpp "$LINENO"
17973then :
17974
17975 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17976 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17977 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17978 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17979 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17980 tmp_exp=""
17981 fi
17982
17983fi
17984rm -f conftest.err conftest.i conftest.$ac_ext
17985 if test -z "$tmp_exp"; then
17986 curl_cv_have_def___TINYC__=no
17987
17988 else
17989 curl_cv_have_def___TINYC__=yes
17990 curl_cv_def___TINYC__=$tmp_exp
17991
17992 fi
17993 CPPFLAGS=$OLDCPPFLAGS
17994
17995 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17997printf "%s\n" "yes" >&6; }
17998 compiler_id="TINY_C"
17999 flags_dbg_yes="-g"
18000 flags_opt_all=""
18001 flags_opt_yes=""
18002 flags_opt_off=""
18003 else
18004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005printf "%s\n" "no" >&6; }
18006 fi
18007
18008 #
18009 if test "$compiler_id" = "unknown"; then
18010 cat <<_EOF 1>&2
18011***
18012*** Warning: This configure script does not have information about the
18013*** compiler you are using, relative to the flags required to enable or
18014*** disable generation of debug info, optimization options or warnings.
18015***
18016*** Whatever settings are present in CFLAGS will be used for this run.
18017***
18018*** If you wish to help the curl project to better support your compiler
18019*** you can report this and the required info on the libcurl development
18020*** mailing list: https://lists.haxx.selistinfo/curl-library/
18021***
18022_EOF
18023 fi
18024
18025
18026squeeze() {
18027 _sqz_result=""
18028 eval _sqz_input=\$$1
18029 for _sqz_token in $_sqz_input; do
18030 if test -z "$_sqz_result"; then
18031 _sqz_result="$_sqz_token"
18032 else
18033 _sqz_result="$_sqz_result $_sqz_token"
18034 fi
18035 done
18036 eval $1=\$_sqz_result
18037 return 0
18038}
18039
18040
18041 #
18042 if test "$compiler_id" != "unknown"; then
18043 #
18044 tmp_save_CPPFLAGS="$CPPFLAGS"
18045 tmp_save_CFLAGS="$CFLAGS"
18046 tmp_CPPFLAGS=""
18047 tmp_CFLAGS=""
18048 #
18049 case "$compiler_id" in
18050 #
18051 CLANG)
18052 #
18053 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18054 tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
18055 ;;
18056 #
18057 DEC_C)
18058 #
18059 tmp_CFLAGS="$tmp_CFLAGS -std1"
18060 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18061 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18062 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18063 ;;
18064 #
18065 GNU_C)
18066 #
18067 if test "$compiler_num" -ge "295"; then
18068 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18069 fi
18070 ;;
18071 #
18072 HP_UX_C)
18073 #
18074 tmp_CFLAGS="$tmp_CFLAGS -z"
18075 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18076 ;;
18077 #
18078 IBM_C)
18079 #
18080 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18081 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18082 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18083 ;;
18084 #
18085 INTEL_UNIX_C)
18086 #
18087 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18088 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18089 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18090 ;;
18091 #
18092 INTEL_WINDOWS_C)
18093 #
18094 tmp_CFLAGS="$tmp_CFLAGS"
18095 ;;
18096 #
18097 LCC)
18098 #
18099 tmp_CFLAGS="$tmp_CFLAGS -n"
18100 ;;
18101 #
18102 SGI_MIPS_C)
18103 #
18104 tmp_CFLAGS="$tmp_CFLAGS"
18105 ;;
18106 #
18107 SGI_MIPSPRO_C)
18108 #
18109 tmp_CFLAGS="$tmp_CFLAGS"
18110 ;;
18111 #
18112 SUNPRO_C)
18113 #
18114 tmp_CFLAGS="$tmp_CFLAGS"
18115 ;;
18116 #
18117 TINY_C)
18118 #
18119 tmp_CFLAGS="$tmp_CFLAGS"
18120 ;;
18121 #
18122 esac
18123 #
18124 squeeze tmp_CPPFLAGS
18125 squeeze tmp_CFLAGS
18126 #
18127 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18129printf %s "checking if compiler accepts some basic options... " >&6; }
18130 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18131 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18132 squeeze CPPFLAGS
18133 squeeze CFLAGS
18134
18135 tmp_compiler_works="unknown"
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137/* end confdefs.h. */
18138
18139
18140
18141int main (void)
18142{
18143
18144 int i = 1;
18145 return i;
18146
18147 ;
18148 return 0;
18149}
18150
18151_ACEOF
18152if ac_fn_c_try_compile "$LINENO"
18153then :
18154
18155 tmp_compiler_works="yes"
18156
18157else $as_nop
18158
18159 tmp_compiler_works="no"
18160 echo " " >&6
18161 sed 's/^/cc-fail: /' conftest.err >&6
18162 echo " " >&6
18163
18164fi
18165rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18166 if test "$tmp_compiler_works" = "yes"; then
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168/* end confdefs.h. */
18169
18170
18171
18172int main (void)
18173{
18174
18175 int i = 1;
18176 return i;
18177
18178 ;
18179 return 0;
18180}
18181
18182_ACEOF
18183if ac_fn_c_try_link "$LINENO"
18184then :
18185
18186 tmp_compiler_works="yes"
18187
18188else $as_nop
18189
18190 tmp_compiler_works="no"
18191 echo " " >&6
18192 sed 's/^/link-fail: /' conftest.err >&6
18193 echo " " >&6
18194
18195fi
18196rm -f core conftest.err conftest.$ac_objext conftest.beam \
18197 conftest$ac_exeext conftest.$ac_ext
18198 fi
18199 if test "x$cross_compiling" != "xyes" &&
18200 test "$tmp_compiler_works" = "yes"; then
18201
18202 case $host_os in
18203 darwin*)
18204 if test "$cross_compiling" = yes
18205then :
18206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18207printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18208as_fn_error $? "cannot run test program while cross compiling
18209See \`config.log' for more details" "$LINENO" 5; }
18210else $as_nop
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212/* end confdefs.h. */
18213
18214
18215# ifdef __STDC__
18216# include <stdlib.h>
18217# endif
18218
18219int main (void)
18220{
18221
18222 int i = 0;
18223 exit(i);
18224
18225 ;
18226 return 0;
18227}
18228
18229_ACEOF
18230if ac_fn_c_try_run "$LINENO"
18231then :
18232 tmp_compiler_works="yes"
18233
18234else $as_nop
18235 tmp_compiler_works="no"
18236 echo " " >&6
18237 echo "run-fail: test program exited with status $ac_status" >&6
18238 echo " " >&6
18239
18240fi
18241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18242 conftest.$ac_objext conftest.beam conftest.$ac_ext
18243fi
18244
18245 ;;
18246 *)
18247 old=$LD_LIBRARY_PATH
18248 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18249 export LD_LIBRARY_PATH
18250 if test "$cross_compiling" = yes
18251then :
18252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18253printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18254as_fn_error $? "cannot run test program while cross compiling
18255See \`config.log' for more details" "$LINENO" 5; }
18256else $as_nop
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258/* end confdefs.h. */
18259
18260
18261# ifdef __STDC__
18262# include <stdlib.h>
18263# endif
18264
18265int main (void)
18266{
18267
18268 int i = 0;
18269 exit(i);
18270
18271 ;
18272 return 0;
18273}
18274
18275_ACEOF
18276if ac_fn_c_try_run "$LINENO"
18277then :
18278 tmp_compiler_works="yes"
18279
18280else $as_nop
18281 tmp_compiler_works="no"
18282 echo " " >&6
18283 echo "run-fail: test program exited with status $ac_status" >&6
18284 echo " " >&6
18285
18286fi
18287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18288 conftest.$ac_objext conftest.beam conftest.$ac_ext
18289fi
18290
18291 LD_LIBRARY_PATH=$old # restore
18292 ;;
18293 esac
18294
18295 fi
18296 if test "$tmp_compiler_works" = "yes"; then
18297
18298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299printf "%s\n" "yes" >&6; }
18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18301printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18302
18303 else
18304
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306printf "%s\n" "no" >&6; }
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18308printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18309 CPPFLAGS="$tmp_save_CPPFLAGS"
18310 CFLAGS="$tmp_save_CFLAGS"
18311
18312 fi
18313
18314 fi
18315 #
18316 fi
18317
18318
18319 #
18320 if test "$compiler_id" != "unknown"; then
18321 #
18322 tmp_save_CFLAGS="$CFLAGS"
18323 tmp_save_CPPFLAGS="$CPPFLAGS"
18324 #
18325 tmp_options=""
18326 tmp_CFLAGS="$CFLAGS"
18327 tmp_CPPFLAGS="$CPPFLAGS"
18328 #
18329 if test "$want_debug" = "yes"; then
18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18331printf %s "checking if compiler accepts debug enabling options... " >&6; }
18332 tmp_options="$flags_dbg_yes"
18333 fi
18334 #
18335 if test "$flags_prefer_cppflags" = "yes"; then
18336 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18337 CFLAGS="$tmp_CFLAGS"
18338 else
18339 CPPFLAGS="$tmp_CPPFLAGS"
18340 CFLAGS="$tmp_CFLAGS $tmp_options"
18341 fi
18342 squeeze CPPFLAGS
18343 squeeze CFLAGS
18344 fi
18345
18346
18347 #
18348 if test "$compiler_id" != "unknown"; then
18349 #
18350 tmp_save_CFLAGS="$CFLAGS"
18351 tmp_save_CPPFLAGS="$CPPFLAGS"
18352 #
18353 tmp_options=""
18354 tmp_CFLAGS="$CFLAGS"
18355 tmp_CPPFLAGS="$CPPFLAGS"
18356 honor_optimize_option="yes"
18357 #
18358 #
18359 if test "$want_optimize" = "assume_no" ||
18360 test "$want_optimize" = "assume_yes"; then
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18362printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18363
18364
18365 ac_var_match_word="no"
18366 for word1 in $tmp_CFLAGS; do
18367 for word2 in $flags_opt_all; do
18368 if test "$word1" = "$word2"; then
18369 ac_var_match_word="yes"
18370 fi
18371 done
18372 done
18373
18374 if test "$ac_var_match_word" = "yes"; then
18375
18376 honor_optimize_option="no"
18377
18378
18379 fi
18380
18381
18382
18383 ac_var_match_word="no"
18384 for word1 in $tmp_CPPFLAGS; do
18385 for word2 in $flags_opt_all; do
18386 if test "$word1" = "$word2"; then
18387 ac_var_match_word="yes"
18388 fi
18389 done
18390 done
18391
18392 if test "$ac_var_match_word" = "yes"; then
18393
18394 honor_optimize_option="no"
18395
18396
18397 fi
18398
18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18400printf "%s\n" "$honor_optimize_option" >&6; }
18401 if test "$honor_optimize_option" = "yes"; then
18402 if test "$want_optimize" = "assume_yes"; then
18403 want_optimize="yes"
18404 fi
18405 if test "$want_optimize" = "assume_no"; then
18406 want_optimize="no"
18407 fi
18408 fi
18409 fi
18410 #
18411 if test "$honor_optimize_option" = "yes"; then
18412
18413 ac_var_stripped=""
18414 for word1 in $tmp_CFLAGS; do
18415 ac_var_strip_word="no"
18416 for word2 in $flags_opt_all; do
18417 if test "$word1" = "$word2"; then
18418 ac_var_strip_word="yes"
18419 fi
18420 done
18421 if test "$ac_var_strip_word" = "no"; then
18422 ac_var_stripped="$ac_var_stripped $word1"
18423 fi
18424 done
18425 tmp_CFLAGS="$ac_var_stripped"
18426 squeeze tmp_CFLAGS
18427
18428
18429 ac_var_stripped=""
18430 for word1 in $tmp_CPPFLAGS; do
18431 ac_var_strip_word="no"
18432 for word2 in $flags_opt_all; do
18433 if test "$word1" = "$word2"; then
18434 ac_var_strip_word="yes"
18435 fi
18436 done
18437 if test "$ac_var_strip_word" = "no"; then
18438 ac_var_stripped="$ac_var_stripped $word1"
18439 fi
18440 done
18441 tmp_CPPFLAGS="$ac_var_stripped"
18442 squeeze tmp_CPPFLAGS
18443
18444 if test "$want_optimize" = "yes"; then
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18446printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18447 tmp_options="$flags_opt_yes"
18448 fi
18449 if test "$want_optimize" = "no"; then
18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18451printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18452 tmp_options="$flags_opt_off"
18453 fi
18454 if test "$flags_prefer_cppflags" = "yes"; then
18455 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18456 CFLAGS="$tmp_CFLAGS"
18457 else
18458 CPPFLAGS="$tmp_CPPFLAGS"
18459 CFLAGS="$tmp_CFLAGS $tmp_options"
18460 fi
18461 squeeze CPPFLAGS
18462 squeeze CFLAGS
18463
18464 tmp_compiler_works="unknown"
18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466/* end confdefs.h. */
18467
18468
18469
18470int main (void)
18471{
18472
18473 int i = 1;
18474 return i;
18475
18476 ;
18477 return 0;
18478}
18479
18480_ACEOF
18481if ac_fn_c_try_compile "$LINENO"
18482then :
18483
18484 tmp_compiler_works="yes"
18485
18486else $as_nop
18487
18488 tmp_compiler_works="no"
18489 echo " " >&6
18490 sed 's/^/cc-fail: /' conftest.err >&6
18491 echo " " >&6
18492
18493fi
18494rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18495 if test "$tmp_compiler_works" = "yes"; then
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h. */
18498
18499
18500
18501int main (void)
18502{
18503
18504 int i = 1;
18505 return i;
18506
18507 ;
18508 return 0;
18509}
18510
18511_ACEOF
18512if ac_fn_c_try_link "$LINENO"
18513then :
18514
18515 tmp_compiler_works="yes"
18516
18517else $as_nop
18518
18519 tmp_compiler_works="no"
18520 echo " " >&6
18521 sed 's/^/link-fail: /' conftest.err >&6
18522 echo " " >&6
18523
18524fi
18525rm -f core conftest.err conftest.$ac_objext conftest.beam \
18526 conftest$ac_exeext conftest.$ac_ext
18527 fi
18528 if test "x$cross_compiling" != "xyes" &&
18529 test "$tmp_compiler_works" = "yes"; then
18530
18531 case $host_os in
18532 darwin*)
18533 if test "$cross_compiling" = yes
18534then :
18535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18536printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18537as_fn_error $? "cannot run test program while cross compiling
18538See \`config.log' for more details" "$LINENO" 5; }
18539else $as_nop
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541/* end confdefs.h. */
18542
18543
18544# ifdef __STDC__
18545# include <stdlib.h>
18546# endif
18547
18548int main (void)
18549{
18550
18551 int i = 0;
18552 exit(i);
18553
18554 ;
18555 return 0;
18556}
18557
18558_ACEOF
18559if ac_fn_c_try_run "$LINENO"
18560then :
18561 tmp_compiler_works="yes"
18562
18563else $as_nop
18564 tmp_compiler_works="no"
18565 echo " " >&6
18566 echo "run-fail: test program exited with status $ac_status" >&6
18567 echo " " >&6
18568
18569fi
18570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18571 conftest.$ac_objext conftest.beam conftest.$ac_ext
18572fi
18573
18574 ;;
18575 *)
18576 old=$LD_LIBRARY_PATH
18577 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18578 export LD_LIBRARY_PATH
18579 if test "$cross_compiling" = yes
18580then :
18581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18582printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18583as_fn_error $? "cannot run test program while cross compiling
18584See \`config.log' for more details" "$LINENO" 5; }
18585else $as_nop
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h. */
18588
18589
18590# ifdef __STDC__
18591# include <stdlib.h>
18592# endif
18593
18594int main (void)
18595{
18596
18597 int i = 0;
18598 exit(i);
18599
18600 ;
18601 return 0;
18602}
18603
18604_ACEOF
18605if ac_fn_c_try_run "$LINENO"
18606then :
18607 tmp_compiler_works="yes"
18608
18609else $as_nop
18610 tmp_compiler_works="no"
18611 echo " " >&6
18612 echo "run-fail: test program exited with status $ac_status" >&6
18613 echo " " >&6
18614
18615fi
18616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18617 conftest.$ac_objext conftest.beam conftest.$ac_ext
18618fi
18619
18620 LD_LIBRARY_PATH=$old # restore
18621 ;;
18622 esac
18623
18624 fi
18625 if test "$tmp_compiler_works" = "yes"; then
18626
18627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628printf "%s\n" "yes" >&6; }
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
18630printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
18631
18632 else
18633
18634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635printf "%s\n" "no" >&6; }
18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
18637printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
18638 CPPFLAGS="$tmp_save_CPPFLAGS"
18639 CFLAGS="$tmp_save_CFLAGS"
18640
18641 fi
18642
18643 fi
18644 #
18645 fi
18646
18647
18648 #
18649 if test "$compiler_id" != "unknown"; then
18650 #
18651 tmp_save_CPPFLAGS="$CPPFLAGS"
18652 tmp_save_CFLAGS="$CFLAGS"
18653 tmp_CPPFLAGS=""
18654 tmp_CFLAGS=""
18655 #
18656 case "$compiler_id" in
18657 #
18658 CLANG)
18659 #
18660 if test "$want_warnings" = "yes"; then
18661 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18662
18663 ac_var_added_warnings=""
18664 for warning in all extra; do
18665
18666 ac_var_match_word="no"
18667 for word1 in $CFLAGS; do
18668 for word2 in -Wno-$warning -W$warning; do
18669 if test "$word1" = "$word2"; then
18670 ac_var_match_word="yes"
18671 fi
18672 done
18673 done
18674
18675 if test "$ac_var_match_word" = "no"; then
18676 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18677 fi
18678 done
18679 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18680 squeeze tmp_CFLAGS
18681
18682
18683 ac_var_added_warnings=""
18684 for warning in pointer-arith write-strings; do
18685
18686 ac_var_match_word="no"
18687 for word1 in $CFLAGS; do
18688 for word2 in -Wno-$warning -W$warning; do
18689 if test "$word1" = "$word2"; then
18690 ac_var_match_word="yes"
18691 fi
18692 done
18693 done
18694
18695 if test "$ac_var_match_word" = "no"; then
18696 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18697 fi
18698 done
18699 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18700 squeeze tmp_CFLAGS
18701
18702
18703 ac_var_added_warnings=""
18704 for warning in shadow; do
18705
18706 ac_var_match_word="no"
18707 for word1 in $CFLAGS; do
18708 for word2 in -Wno-$warning -W$warning; do
18709 if test "$word1" = "$word2"; then
18710 ac_var_match_word="yes"
18711 fi
18712 done
18713 done
18714
18715 if test "$ac_var_match_word" = "no"; then
18716 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18717 fi
18718 done
18719 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18720 squeeze tmp_CFLAGS
18721
18722
18723 ac_var_added_warnings=""
18724 for warning in inline nested-externs; do
18725
18726 ac_var_match_word="no"
18727 for word1 in $CFLAGS; do
18728 for word2 in -Wno-$warning -W$warning; do
18729 if test "$word1" = "$word2"; then
18730 ac_var_match_word="yes"
18731 fi
18732 done
18733 done
18734
18735 if test "$ac_var_match_word" = "no"; then
18736 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18737 fi
18738 done
18739 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18740 squeeze tmp_CFLAGS
18741
18742
18743 ac_var_added_warnings=""
18744 for warning in missing-declarations; do
18745
18746 ac_var_match_word="no"
18747 for word1 in $CFLAGS; do
18748 for word2 in -Wno-$warning -W$warning; do
18749 if test "$word1" = "$word2"; then
18750 ac_var_match_word="yes"
18751 fi
18752 done
18753 done
18754
18755 if test "$ac_var_match_word" = "no"; then
18756 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18757 fi
18758 done
18759 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18760 squeeze tmp_CFLAGS
18761
18762
18763 ac_var_added_warnings=""
18764 for warning in missing-prototypes; do
18765
18766 ac_var_match_word="no"
18767 for word1 in $CFLAGS; do
18768 for word2 in -Wno-$warning -W$warning; do
18769 if test "$word1" = "$word2"; then
18770 ac_var_match_word="yes"
18771 fi
18772 done
18773 done
18774
18775 if test "$ac_var_match_word" = "no"; then
18776 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18777 fi
18778 done
18779 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18780 squeeze tmp_CFLAGS
18781
18782 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18783
18784 ac_var_added_warnings=""
18785 for warning in float-equal; do
18786
18787 ac_var_match_word="no"
18788 for word1 in $CFLAGS; do
18789 for word2 in -Wno-$warning -W$warning; do
18790 if test "$word1" = "$word2"; then
18791 ac_var_match_word="yes"
18792 fi
18793 done
18794 done
18795
18796 if test "$ac_var_match_word" = "no"; then
18797 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18798 fi
18799 done
18800 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18801 squeeze tmp_CFLAGS
18802
18803
18804 ac_var_added_warnings=""
18805 for warning in no-multichar sign-compare; do
18806
18807 ac_var_match_word="no"
18808 for word1 in $CFLAGS; do
18809 for word2 in -Wno-$warning -W$warning; do
18810 if test "$word1" = "$word2"; then
18811 ac_var_match_word="yes"
18812 fi
18813 done
18814 done
18815
18816 if test "$ac_var_match_word" = "no"; then
18817 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18818 fi
18819 done
18820 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18821 squeeze tmp_CFLAGS
18822
18823
18824 ac_var_added_warnings=""
18825 for warning in undef; do
18826
18827 ac_var_match_word="no"
18828 for word1 in $CFLAGS; do
18829 for word2 in -Wno-$warning -W$warning; do
18830 if test "$word1" = "$word2"; then
18831 ac_var_match_word="yes"
18832 fi
18833 done
18834 done
18835
18836 if test "$ac_var_match_word" = "no"; then
18837 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18838 fi
18839 done
18840 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18841 squeeze tmp_CFLAGS
18842
18843 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18844
18845 ac_var_added_warnings=""
18846 for warning in endif-labels strict-prototypes; do
18847
18848 ac_var_match_word="no"
18849 for word1 in $CFLAGS; do
18850 for word2 in -Wno-$warning -W$warning; do
18851 if test "$word1" = "$word2"; then
18852 ac_var_match_word="yes"
18853 fi
18854 done
18855 done
18856
18857 if test "$ac_var_match_word" = "no"; then
18858 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18859 fi
18860 done
18861 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18862 squeeze tmp_CFLAGS
18863
18864
18865 ac_var_added_warnings=""
18866 for warning in declaration-after-statement; do
18867
18868 ac_var_match_word="no"
18869 for word1 in $CFLAGS; do
18870 for word2 in -Wno-$warning -W$warning; do
18871 if test "$word1" = "$word2"; then
18872 ac_var_match_word="yes"
18873 fi
18874 done
18875 done
18876
18877 if test "$ac_var_match_word" = "no"; then
18878 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18879 fi
18880 done
18881 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18882 squeeze tmp_CFLAGS
18883
18884
18885 ac_var_added_warnings=""
18886 for warning in cast-align; do
18887
18888 ac_var_match_word="no"
18889 for word1 in $CFLAGS; do
18890 for word2 in -Wno-$warning -W$warning; do
18891 if test "$word1" = "$word2"; then
18892 ac_var_match_word="yes"
18893 fi
18894 done
18895 done
18896
18897 if test "$ac_var_match_word" = "no"; then
18898 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18899 fi
18900 done
18901 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18902 squeeze tmp_CFLAGS
18903
18904 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18905
18906 ac_var_added_warnings=""
18907 for warning in shorten-64-to-32; do
18908
18909 ac_var_match_word="no"
18910 for word1 in $CFLAGS; do
18911 for word2 in -Wno-$warning -W$warning; do
18912 if test "$word1" = "$word2"; then
18913 ac_var_match_word="yes"
18914 fi
18915 done
18916 done
18917
18918 if test "$ac_var_match_word" = "no"; then
18919 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18920 fi
18921 done
18922 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18923 squeeze tmp_CFLAGS
18924
18925 #
18926 if test "$compiler_num" -ge "101"; then
18927
18928 ac_var_added_warnings=""
18929 for warning in unused; do
18930
18931 ac_var_match_word="no"
18932 for word1 in $CFLAGS; do
18933 for word2 in -Wno-$warning -W$warning; do
18934 if test "$word1" = "$word2"; then
18935 ac_var_match_word="yes"
18936 fi
18937 done
18938 done
18939
18940 if test "$ac_var_match_word" = "no"; then
18941 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18942 fi
18943 done
18944 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18945 squeeze tmp_CFLAGS
18946
18947 fi
18948 #
18949 if test "$compiler_num" -ge "208"; then
18950
18951 ac_var_added_warnings=""
18952 for warning in vla; do
18953
18954 ac_var_match_word="no"
18955 for word1 in $CFLAGS; do
18956 for word2 in -Wno-$warning -W$warning; do
18957 if test "$word1" = "$word2"; then
18958 ac_var_match_word="yes"
18959 fi
18960 done
18961 done
18962
18963 if test "$ac_var_match_word" = "no"; then
18964 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18965 fi
18966 done
18967 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18968 squeeze tmp_CFLAGS
18969
18970 fi
18971 #
18972 if test "$compiler_num" -ge "209"; then
18973
18974 ac_var_added_warnings=""
18975 for warning in shift-sign-overflow; do
18976
18977 ac_var_match_word="no"
18978 for word1 in $CFLAGS; do
18979 for word2 in -Wno-$warning -W$warning; do
18980 if test "$word1" = "$word2"; then
18981 ac_var_match_word="yes"
18982 fi
18983 done
18984 done
18985
18986 if test "$ac_var_match_word" = "no"; then
18987 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18988 fi
18989 done
18990 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18991 squeeze tmp_CFLAGS
18992
18993 fi
18994 #
18995 if test "$compiler_num" -ge "302"; then
18996 case $host_os in
18997 cygwin* | mingw*)
18998 ;;
18999 *)
19000
19001 ac_var_added_warnings=""
19002 for warning in missing-variable-declarations; do
19003
19004 ac_var_match_word="no"
19005 for word1 in $CFLAGS; do
19006 for word2 in -Wno-$warning -W$warning; do
19007 if test "$word1" = "$word2"; then
19008 ac_var_match_word="yes"
19009 fi
19010 done
19011 done
19012
19013 if test "$ac_var_match_word" = "no"; then
19014 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19015 fi
19016 done
19017 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19018 squeeze tmp_CFLAGS
19019
19020 ;;
19021 esac
19022 fi
19023 #
19024 if test "$compiler_num" -ge "306"; then
19025
19026 ac_var_added_warnings=""
19027 for warning in double-promotion; do
19028
19029 ac_var_match_word="no"
19030 for word1 in $CFLAGS; do
19031 for word2 in -Wno-$warning -W$warning; do
19032 if test "$word1" = "$word2"; then
19033 ac_var_match_word="yes"
19034 fi
19035 done
19036 done
19037
19038 if test "$ac_var_match_word" = "no"; then
19039 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19040 fi
19041 done
19042 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19043 squeeze tmp_CFLAGS
19044
19045 fi
19046 #
19047 if test "$compiler_num" -ge "309"; then
19048
19049 ac_var_added_warnings=""
19050 for warning in comma; do
19051
19052 ac_var_match_word="no"
19053 for word1 in $CFLAGS; do
19054 for word2 in -Wno-$warning -W$warning; do
19055 if test "$word1" = "$word2"; then
19056 ac_var_match_word="yes"
19057 fi
19058 done
19059 done
19060
19061 if test "$ac_var_match_word" = "no"; then
19062 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19063 fi
19064 done
19065 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19066 squeeze tmp_CFLAGS
19067
19068 # avoid the varargs warning, fixed in 4.0
19069 # https://bugs.llvm.org/show_bug.cgi?id=29140
19070 if test "$compiler_num" -lt "400"; then
19071 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19072 fi
19073 fi
19074 if test "$compiler_num" -ge "700"; then
19075
19076 ac_var_added_warnings=""
19077 for warning in assign-enum; do
19078
19079 ac_var_match_word="no"
19080 for word1 in $CFLAGS; do
19081 for word2 in -Wno-$warning -W$warning; do
19082 if test "$word1" = "$word2"; then
19083 ac_var_match_word="yes"
19084 fi
19085 done
19086 done
19087
19088 if test "$ac_var_match_word" = "no"; then
19089 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19090 fi
19091 done
19092 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19093 squeeze tmp_CFLAGS
19094
19095
19096 ac_var_added_warnings=""
19097 for warning in extra-semi-stmt; do
19098
19099 ac_var_match_word="no"
19100 for word1 in $CFLAGS; do
19101 for word2 in -Wno-$warning -W$warning; do
19102 if test "$word1" = "$word2"; then
19103 ac_var_match_word="yes"
19104 fi
19105 done
19106 done
19107
19108 if test "$ac_var_match_word" = "no"; then
19109 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19110 fi
19111 done
19112 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19113 squeeze tmp_CFLAGS
19114
19115 fi
19116 fi
19117 ;;
19118 #
19119 DEC_C)
19120 #
19121 if test "$want_warnings" = "yes"; then
19122 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19123 fi
19124 ;;
19125 #
19126 GNU_C)
19127 #
19128 if test "$want_warnings" = "yes"; then
19129 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
19130 #
19131 if test "x$cross_compiling" != "xyes" ||
19132 test "$compiler_num" -ge "300"; then
19133 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19134 fi
19135 #
19136
19137 ac_var_added_warnings=""
19138 for warning in all; do
19139
19140 ac_var_match_word="no"
19141 for word1 in $CFLAGS; do
19142 for word2 in -Wno-$warning -W$warning; do
19143 if test "$word1" = "$word2"; then
19144 ac_var_match_word="yes"
19145 fi
19146 done
19147 done
19148
19149 if test "$ac_var_match_word" = "no"; then
19150 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19151 fi
19152 done
19153 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19154 squeeze tmp_CFLAGS
19155
19156 tmp_CFLAGS="$tmp_CFLAGS -W"
19157 #
19158 if test "$compiler_num" -ge "104"; then
19159
19160 ac_var_added_warnings=""
19161 for warning in pointer-arith write-strings; do
19162
19163 ac_var_match_word="no"
19164 for word1 in $CFLAGS; do
19165 for word2 in -Wno-$warning -W$warning; do
19166 if test "$word1" = "$word2"; then
19167 ac_var_match_word="yes"
19168 fi
19169 done
19170 done
19171
19172 if test "$ac_var_match_word" = "no"; then
19173 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19174 fi
19175 done
19176 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19177 squeeze tmp_CFLAGS
19178
19179 if test "x$cross_compiling" != "xyes" ||
19180 test "$compiler_num" -ge "300"; then
19181
19182 ac_var_added_warnings=""
19183 for warning in unused shadow; do
19184
19185 ac_var_match_word="no"
19186 for word1 in $CFLAGS; do
19187 for word2 in -Wno-$warning -W$warning; do
19188 if test "$word1" = "$word2"; then
19189 ac_var_match_word="yes"
19190 fi
19191 done
19192 done
19193
19194 if test "$ac_var_match_word" = "no"; then
19195 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19196 fi
19197 done
19198 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19199 squeeze tmp_CFLAGS
19200
19201 fi
19202 fi
19203 #
19204 if test "$compiler_num" -ge "207"; then
19205
19206 ac_var_added_warnings=""
19207 for warning in inline nested-externs; do
19208
19209 ac_var_match_word="no"
19210 for word1 in $CFLAGS; do
19211 for word2 in -Wno-$warning -W$warning; do
19212 if test "$word1" = "$word2"; then
19213 ac_var_match_word="yes"
19214 fi
19215 done
19216 done
19217
19218 if test "$ac_var_match_word" = "no"; then
19219 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19220 fi
19221 done
19222 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19223 squeeze tmp_CFLAGS
19224
19225 if test "x$cross_compiling" != "xyes" ||
19226 test "$compiler_num" -ge "300"; then
19227
19228 ac_var_added_warnings=""
19229 for warning in missing-declarations; do
19230
19231 ac_var_match_word="no"
19232 for word1 in $CFLAGS; do
19233 for word2 in -Wno-$warning -W$warning; do
19234 if test "$word1" = "$word2"; then
19235 ac_var_match_word="yes"
19236 fi
19237 done
19238 done
19239
19240 if test "$ac_var_match_word" = "no"; then
19241 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19242 fi
19243 done
19244 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19245 squeeze tmp_CFLAGS
19246
19247
19248 ac_var_added_warnings=""
19249 for warning in missing-prototypes; do
19250
19251 ac_var_match_word="no"
19252 for word1 in $CFLAGS; do
19253 for word2 in -Wno-$warning -W$warning; do
19254 if test "$word1" = "$word2"; then
19255 ac_var_match_word="yes"
19256 fi
19257 done
19258 done
19259
19260 if test "$ac_var_match_word" = "no"; then
19261 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19262 fi
19263 done
19264 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19265 squeeze tmp_CFLAGS
19266
19267 fi
19268 fi
19269 #
19270 if test "$compiler_num" -ge "295"; then
19271 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19272
19273 ac_var_added_warnings=""
19274 for warning in bad-function-cast; do
19275
19276 ac_var_match_word="no"
19277 for word1 in $CFLAGS; do
19278 for word2 in -Wno-$warning -W$warning; do
19279 if test "$word1" = "$word2"; then
19280 ac_var_match_word="yes"
19281 fi
19282 done
19283 done
19284
19285 if test "$ac_var_match_word" = "no"; then
19286 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19287 fi
19288 done
19289 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19290 squeeze tmp_CFLAGS
19291
19292 fi
19293 #
19294 if test "$compiler_num" -ge "296"; then
19295
19296 ac_var_added_warnings=""
19297 for warning in float-equal; do
19298
19299 ac_var_match_word="no"
19300 for word1 in $CFLAGS; do
19301 for word2 in -Wno-$warning -W$warning; do
19302 if test "$word1" = "$word2"; then
19303 ac_var_match_word="yes"
19304 fi
19305 done
19306 done
19307
19308 if test "$ac_var_match_word" = "no"; then
19309 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19310 fi
19311 done
19312 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19313 squeeze tmp_CFLAGS
19314
19315 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19316
19317 ac_var_added_warnings=""
19318 for warning in sign-compare; do
19319
19320 ac_var_match_word="no"
19321 for word1 in $CFLAGS; do
19322 for word2 in -Wno-$warning -W$warning; do
19323 if test "$word1" = "$word2"; then
19324 ac_var_match_word="yes"
19325 fi
19326 done
19327 done
19328
19329 if test "$ac_var_match_word" = "no"; then
19330 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19331 fi
19332 done
19333 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19334 squeeze tmp_CFLAGS
19335
19336
19337 ac_var_added_warnings=""
19338 for warning in undef; do
19339
19340 ac_var_match_word="no"
19341 for word1 in $CFLAGS; do
19342 for word2 in -Wno-$warning -W$warning; do
19343 if test "$word1" = "$word2"; then
19344 ac_var_match_word="yes"
19345 fi
19346 done
19347 done
19348
19349 if test "$ac_var_match_word" = "no"; then
19350 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19351 fi
19352 done
19353 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19354 squeeze tmp_CFLAGS
19355
19356 fi
19357 #
19358 if test "$compiler_num" -ge "297"; then
19359 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19360 fi
19361 #
19362 if test "$compiler_num" -ge "300"; then
19363 tmp_CFLAGS="$tmp_CFLAGS"
19364 fi
19365 #
19366 if test "$compiler_num" -ge "303"; then
19367
19368 ac_var_added_warnings=""
19369 for warning in endif-labels strict-prototypes; do
19370
19371 ac_var_match_word="no"
19372 for word1 in $CFLAGS; do
19373 for word2 in -Wno-$warning -W$warning; do
19374 if test "$word1" = "$word2"; then
19375 ac_var_match_word="yes"
19376 fi
19377 done
19378 done
19379
19380 if test "$ac_var_match_word" = "no"; then
19381 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19382 fi
19383 done
19384 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19385 squeeze tmp_CFLAGS
19386
19387 fi
19388 #
19389 if test "$compiler_num" -ge "304"; then
19390
19391 ac_var_added_warnings=""
19392 for warning in declaration-after-statement; do
19393
19394 ac_var_match_word="no"
19395 for word1 in $CFLAGS; do
19396 for word2 in -Wno-$warning -W$warning; do
19397 if test "$word1" = "$word2"; then
19398 ac_var_match_word="yes"
19399 fi
19400 done
19401 done
19402
19403 if test "$ac_var_match_word" = "no"; then
19404 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19405 fi
19406 done
19407 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19408 squeeze tmp_CFLAGS
19409
19410
19411 ac_var_added_warnings=""
19412 for warning in old-style-definition; do
19413
19414 ac_var_match_word="no"
19415 for word1 in $CFLAGS; do
19416 for word2 in -Wno-$warning -W$warning; do
19417 if test "$word1" = "$word2"; then
19418 ac_var_match_word="yes"
19419 fi
19420 done
19421 done
19422
19423 if test "$ac_var_match_word" = "no"; then
19424 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19425 fi
19426 done
19427 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19428 squeeze tmp_CFLAGS
19429
19430 fi
19431 #
19432 if test "$compiler_num" -ge "400"; then
19433 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
19434 fi
19435 #
19436 if test "$compiler_num" -ge "402"; then
19437
19438 ac_var_added_warnings=""
19439 for warning in cast-align; do
19440
19441 ac_var_match_word="no"
19442 for word1 in $CFLAGS; do
19443 for word2 in -Wno-$warning -W$warning; do
19444 if test "$word1" = "$word2"; then
19445 ac_var_match_word="yes"
19446 fi
19447 done
19448 done
19449
19450 if test "$ac_var_match_word" = "no"; then
19451 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19452 fi
19453 done
19454 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19455 squeeze tmp_CFLAGS
19456
19457 fi
19458 #
19459 if test "$compiler_num" -ge "403"; then
19460
19461 ac_var_added_warnings=""
19462 for warning in type-limits old-style-declaration; do
19463
19464 ac_var_match_word="no"
19465 for word1 in $CFLAGS; do
19466 for word2 in -Wno-$warning -W$warning; do
19467 if test "$word1" = "$word2"; then
19468 ac_var_match_word="yes"
19469 fi
19470 done
19471 done
19472
19473 if test "$ac_var_match_word" = "no"; then
19474 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19475 fi
19476 done
19477 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19478 squeeze tmp_CFLAGS
19479
19480
19481 ac_var_added_warnings=""
19482 for warning in missing-parameter-type empty-body; do
19483
19484 ac_var_match_word="no"
19485 for word1 in $CFLAGS; do
19486 for word2 in -Wno-$warning -W$warning; do
19487 if test "$word1" = "$word2"; then
19488 ac_var_match_word="yes"
19489 fi
19490 done
19491 done
19492
19493 if test "$ac_var_match_word" = "no"; then
19494 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19495 fi
19496 done
19497 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19498 squeeze tmp_CFLAGS
19499
19500
19501 ac_var_added_warnings=""
19502 for warning in clobbered ignored-qualifiers; do
19503
19504 ac_var_match_word="no"
19505 for word1 in $CFLAGS; do
19506 for word2 in -Wno-$warning -W$warning; do
19507 if test "$word1" = "$word2"; then
19508 ac_var_match_word="yes"
19509 fi
19510 done
19511 done
19512
19513 if test "$ac_var_match_word" = "no"; then
19514 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19515 fi
19516 done
19517 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19518 squeeze tmp_CFLAGS
19519
19520
19521 ac_var_added_warnings=""
19522 for warning in conversion; do
19523
19524 ac_var_match_word="no"
19525 for word1 in $CFLAGS; do
19526 for word2 in -Wno-$warning -W$warning; do
19527 if test "$word1" = "$word2"; then
19528 ac_var_match_word="yes"
19529 fi
19530 done
19531 done
19532
19533 if test "$ac_var_match_word" = "no"; then
19534 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19535 fi
19536 done
19537 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19538 squeeze tmp_CFLAGS
19539
19540 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19541
19542 ac_var_added_warnings=""
19543 for warning in vla; do
19544
19545 ac_var_match_word="no"
19546 for word1 in $CFLAGS; do
19547 for word2 in -Wno-$warning -W$warning; do
19548 if test "$word1" = "$word2"; then
19549 ac_var_match_word="yes"
19550 fi
19551 done
19552 done
19553
19554 if test "$ac_var_match_word" = "no"; then
19555 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19556 fi
19557 done
19558 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19559 squeeze tmp_CFLAGS
19560
19561 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
19562 fi
19563 #
19564 if test "$compiler_num" -ge "405"; then
19565 if test "$curl_cv_have_def__WIN32" = "yes"; then
19566 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
19567 fi
19568 fi
19569 #
19570 if test "$compiler_num" -ge "406"; then
19571
19572 ac_var_added_warnings=""
19573 for warning in double-promotion; do
19574
19575 ac_var_match_word="no"
19576 for word1 in $CFLAGS; do
19577 for word2 in -Wno-$warning -W$warning; do
19578 if test "$word1" = "$word2"; then
19579 ac_var_match_word="yes"
19580 fi
19581 done
19582 done
19583
19584 if test "$ac_var_match_word" = "no"; then
19585 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19586 fi
19587 done
19588 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19589 squeeze tmp_CFLAGS
19590
19591 fi
19592 #
19593 if test "$compiler_num" -ge "408"; then
19594 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
19595 fi
19596 #
19597 if test "$compiler_num" -ge "500"; then
19598 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
19599 fi
19600 #
19601 if test "$compiler_num" -ge "600"; then
19602
19603 ac_var_added_warnings=""
19604 for warning in shift-negative-value; do
19605
19606 ac_var_match_word="no"
19607 for word1 in $CFLAGS; do
19608 for word2 in -Wno-$warning -W$warning; do
19609 if test "$word1" = "$word2"; then
19610 ac_var_match_word="yes"
19611 fi
19612 done
19613 done
19614
19615 if test "$ac_var_match_word" = "no"; then
19616 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19617 fi
19618 done
19619 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19620 squeeze tmp_CFLAGS
19621
19622 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
19623
19624 ac_var_added_warnings=""
19625 for warning in null-dereference; do
19626
19627 ac_var_match_word="no"
19628 for word1 in $CFLAGS; do
19629 for word2 in -Wno-$warning -W$warning; do
19630 if test "$word1" = "$word2"; then
19631 ac_var_match_word="yes"
19632 fi
19633 done
19634 done
19635
19636 if test "$ac_var_match_word" = "no"; then
19637 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19638 fi
19639 done
19640 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19641 squeeze tmp_CFLAGS
19642
19643 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
19644
19645 ac_var_added_warnings=""
19646 for warning in duplicated-cond; do
19647
19648 ac_var_match_word="no"
19649 for word1 in $CFLAGS; do
19650 for word2 in -Wno-$warning -W$warning; do
19651 if test "$word1" = "$word2"; then
19652 ac_var_match_word="yes"
19653 fi
19654 done
19655 done
19656
19657 if test "$ac_var_match_word" = "no"; then
19658 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19659 fi
19660 done
19661 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19662 squeeze tmp_CFLAGS
19663
19664
19665 ac_var_added_warnings=""
19666 for warning in unused-const-variable; do
19667
19668 ac_var_match_word="no"
19669 for word1 in $CFLAGS; do
19670 for word2 in -Wno-$warning -W$warning; do
19671 if test "$word1" = "$word2"; then
19672 ac_var_match_word="yes"
19673 fi
19674 done
19675 done
19676
19677 if test "$ac_var_match_word" = "no"; then
19678 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19679 fi
19680 done
19681 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19682 squeeze tmp_CFLAGS
19683
19684 fi
19685 #
19686 if test "$compiler_num" -ge "700"; then
19687
19688 ac_var_added_warnings=""
19689 for warning in duplicated-branches; do
19690
19691 ac_var_match_word="no"
19692 for word1 in $CFLAGS; do
19693 for word2 in -Wno-$warning -W$warning; do
19694 if test "$word1" = "$word2"; then
19695 ac_var_match_word="yes"
19696 fi
19697 done
19698 done
19699
19700 if test "$ac_var_match_word" = "no"; then
19701 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19702 fi
19703 done
19704 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19705 squeeze tmp_CFLAGS
19706
19707
19708 ac_var_added_warnings=""
19709 for warning in restrict; do
19710
19711 ac_var_match_word="no"
19712 for word1 in $CFLAGS; do
19713 for word2 in -Wno-$warning -W$warning; do
19714 if test "$word1" = "$word2"; then
19715 ac_var_match_word="yes"
19716 fi
19717 done
19718 done
19719
19720 if test "$ac_var_match_word" = "no"; then
19721 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19722 fi
19723 done
19724 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19725 squeeze tmp_CFLAGS
19726
19727
19728 ac_var_added_warnings=""
19729 for warning in alloc-zero; do
19730
19731 ac_var_match_word="no"
19732 for word1 in $CFLAGS; do
19733 for word2 in -Wno-$warning -W$warning; do
19734 if test "$word1" = "$word2"; then
19735 ac_var_match_word="yes"
19736 fi
19737 done
19738 done
19739
19740 if test "$ac_var_match_word" = "no"; then
19741 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19742 fi
19743 done
19744 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19745 squeeze tmp_CFLAGS
19746
19747 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
19748 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
19749 if test "$compiler_num" -lt "1200"; then
19750 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
19751 fi
19752 fi
19753 #
19754 if test "$compiler_num" -ge "1000"; then
19755
19756 ac_var_added_warnings=""
19757 for warning in arith-conversion; do
19758
19759 ac_var_match_word="no"
19760 for word1 in $CFLAGS; do
19761 for word2 in -Wno-$warning -W$warning; do
19762 if test "$word1" = "$word2"; then
19763 ac_var_match_word="yes"
19764 fi
19765 done
19766 done
19767
19768 if test "$ac_var_match_word" = "no"; then
19769 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19770 fi
19771 done
19772 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19773 squeeze tmp_CFLAGS
19774
19775
19776 ac_var_added_warnings=""
19777 for warning in enum-conversion; do
19778
19779 ac_var_match_word="no"
19780 for word1 in $CFLAGS; do
19781 for word2 in -Wno-$warning -W$warning; do
19782 if test "$word1" = "$word2"; then
19783 ac_var_match_word="yes"
19784 fi
19785 done
19786 done
19787
19788 if test "$ac_var_match_word" = "no"; then
19789 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19790 fi
19791 done
19792 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19793 squeeze tmp_CFLAGS
19794
19795 fi
19796 #
19797 fi
19798 #
19799 if test "$compiler_num" -ge "300"; then
19800 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19801 else
19802 if test "x$cross_compiling" = "xyes"; then
19803 if test "$compiler_num" -ge "104"; then
19804 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
19805 fi
19806 if test "$compiler_num" -ge "207"; then
19807 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
19808 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
19809 fi
19810 fi
19811 fi
19812 ;;
19813 #
19814 HP_UX_C)
19815 #
19816 if test "$want_warnings" = "yes"; then
19817 tmp_CFLAGS="$tmp_CFLAGS +w1"
19818 fi
19819 ;;
19820 #
19821 IBM_C)
19822 #
19823 tmp_CFLAGS="$tmp_CFLAGS"
19824 ;;
19825 #
19826 INTEL_UNIX_C)
19827 #
19828 if test "$want_warnings" = "yes"; then
19829 if test "$compiler_num" -gt "600"; then
19830 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
19831 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
19832 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
19833 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
19834 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
19835 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
19836 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
19837 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
19838 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
19839 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
19840 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
19841 fi
19842 fi
19843 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
19844 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
19845 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
19846 ;;
19847 #
19848 INTEL_WINDOWS_C)
19849 #
19850 tmp_CFLAGS="$tmp_CFLAGS"
19851 ;;
19852 #
19853 LCC)
19854 #
19855 if test "$want_warnings" = "yes"; then
19856 tmp_CFLAGS="$tmp_CFLAGS"
19857 fi
19858 ;;
19859 #
19860 SGI_MIPS_C)
19861 #
19862 if test "$want_warnings" = "yes"; then
19863 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19864 fi
19865 ;;
19866 #
19867 SGI_MIPSPRO_C)
19868 #
19869 if test "$want_warnings" = "yes"; then
19870 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19871 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
19872 fi
19873 ;;
19874 #
19875 SUNPRO_C)
19876 #
19877 if test "$want_warnings" = "yes"; then
19878 tmp_CFLAGS="$tmp_CFLAGS -v"
19879 fi
19880 ;;
19881 #
19882 TINY_C)
19883 #
19884 if test "$want_warnings" = "yes"; then
19885
19886 ac_var_added_warnings=""
19887 for warning in all; do
19888
19889 ac_var_match_word="no"
19890 for word1 in $CFLAGS; do
19891 for word2 in -Wno-$warning -W$warning; do
19892 if test "$word1" = "$word2"; then
19893 ac_var_match_word="yes"
19894 fi
19895 done
19896 done
19897
19898 if test "$ac_var_match_word" = "no"; then
19899 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19900 fi
19901 done
19902 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19903 squeeze tmp_CFLAGS
19904
19905
19906 ac_var_added_warnings=""
19907 for warning in write-strings; do
19908
19909 ac_var_match_word="no"
19910 for word1 in $CFLAGS; do
19911 for word2 in -Wno-$warning -W$warning; do
19912 if test "$word1" = "$word2"; then
19913 ac_var_match_word="yes"
19914 fi
19915 done
19916 done
19917
19918 if test "$ac_var_match_word" = "no"; then
19919 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19920 fi
19921 done
19922 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19923 squeeze tmp_CFLAGS
19924
19925
19926 ac_var_added_warnings=""
19927 for warning in unsupported; do
19928
19929 ac_var_match_word="no"
19930 for word1 in $CFLAGS; do
19931 for word2 in -Wno-$warning -W$warning; do
19932 if test "$word1" = "$word2"; then
19933 ac_var_match_word="yes"
19934 fi
19935 done
19936 done
19937
19938 if test "$ac_var_match_word" = "no"; then
19939 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19940 fi
19941 done
19942 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19943 squeeze tmp_CFLAGS
19944
19945 fi
19946 ;;
19947 #
19948 esac
19949 #
19950 squeeze tmp_CPPFLAGS
19951 squeeze tmp_CFLAGS
19952 #
19953 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
19955printf %s "checking if compiler accepts strict warning options... " >&6; }
19956 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
19957 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19958 squeeze CPPFLAGS
19959 squeeze CFLAGS
19960
19961 tmp_compiler_works="unknown"
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963/* end confdefs.h. */
19964
19965
19966
19967int main (void)
19968{
19969
19970 int i = 1;
19971 return i;
19972
19973 ;
19974 return 0;
19975}
19976
19977_ACEOF
19978if ac_fn_c_try_compile "$LINENO"
19979then :
19980
19981 tmp_compiler_works="yes"
19982
19983else $as_nop
19984
19985 tmp_compiler_works="no"
19986 echo " " >&6
19987 sed 's/^/cc-fail: /' conftest.err >&6
19988 echo " " >&6
19989
19990fi
19991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19992 if test "$tmp_compiler_works" = "yes"; then
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994/* end confdefs.h. */
19995
19996
19997
19998int main (void)
19999{
20000
20001 int i = 1;
20002 return i;
20003
20004 ;
20005 return 0;
20006}
20007
20008_ACEOF
20009if ac_fn_c_try_link "$LINENO"
20010then :
20011
20012 tmp_compiler_works="yes"
20013
20014else $as_nop
20015
20016 tmp_compiler_works="no"
20017 echo " " >&6
20018 sed 's/^/link-fail: /' conftest.err >&6
20019 echo " " >&6
20020
20021fi
20022rm -f core conftest.err conftest.$ac_objext conftest.beam \
20023 conftest$ac_exeext conftest.$ac_ext
20024 fi
20025 if test "x$cross_compiling" != "xyes" &&
20026 test "$tmp_compiler_works" = "yes"; then
20027
20028 case $host_os in
20029 darwin*)
20030 if test "$cross_compiling" = yes
20031then :
20032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20033printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20034as_fn_error $? "cannot run test program while cross compiling
20035See \`config.log' for more details" "$LINENO" 5; }
20036else $as_nop
20037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038/* end confdefs.h. */
20039
20040
20041# ifdef __STDC__
20042# include <stdlib.h>
20043# endif
20044
20045int main (void)
20046{
20047
20048 int i = 0;
20049 exit(i);
20050
20051 ;
20052 return 0;
20053}
20054
20055_ACEOF
20056if ac_fn_c_try_run "$LINENO"
20057then :
20058 tmp_compiler_works="yes"
20059
20060else $as_nop
20061 tmp_compiler_works="no"
20062 echo " " >&6
20063 echo "run-fail: test program exited with status $ac_status" >&6
20064 echo " " >&6
20065
20066fi
20067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20068 conftest.$ac_objext conftest.beam conftest.$ac_ext
20069fi
20070
20071 ;;
20072 *)
20073 old=$LD_LIBRARY_PATH
20074 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20075 export LD_LIBRARY_PATH
20076 if test "$cross_compiling" = yes
20077then :
20078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20079printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20080as_fn_error $? "cannot run test program while cross compiling
20081See \`config.log' for more details" "$LINENO" 5; }
20082else $as_nop
20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084/* end confdefs.h. */
20085
20086
20087# ifdef __STDC__
20088# include <stdlib.h>
20089# endif
20090
20091int main (void)
20092{
20093
20094 int i = 0;
20095 exit(i);
20096
20097 ;
20098 return 0;
20099}
20100
20101_ACEOF
20102if ac_fn_c_try_run "$LINENO"
20103then :
20104 tmp_compiler_works="yes"
20105
20106else $as_nop
20107 tmp_compiler_works="no"
20108 echo " " >&6
20109 echo "run-fail: test program exited with status $ac_status" >&6
20110 echo " " >&6
20111
20112fi
20113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20114 conftest.$ac_objext conftest.beam conftest.$ac_ext
20115fi
20116
20117 LD_LIBRARY_PATH=$old # restore
20118 ;;
20119 esac
20120
20121 fi
20122 if test "$tmp_compiler_works" = "yes"; then
20123
20124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20125printf "%s\n" "yes" >&6; }
20126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20127printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20128
20129 else
20130
20131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20132printf "%s\n" "no" >&6; }
20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20134printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20135 CPPFLAGS="$tmp_save_CPPFLAGS"
20136 CFLAGS="$tmp_save_CFLAGS"
20137
20138 fi
20139
20140 fi
20141 #
20142 fi
20143
20144
20145if test "$compiler_id" = "INTEL_UNIX_C"; then
20146 #
20147 if test "$compiler_num" -ge "1000"; then
20148 CFLAGS="$CFLAGS -shared-intel"
20149 elif test "$compiler_num" -ge "900"; then
20150 CFLAGS="$CFLAGS -i-dynamic"
20151 fi
20152 #
20153fi
20154
20155CURL_CFLAG_EXTRAS=""
20156if test X"$want_werror" = Xyes; then
20157 CURL_CFLAG_EXTRAS="-Werror"
20158 if test "$compiler_id" = "GNU_C"; then
20159 if test "$compiler_num" -ge "500"; then
20160 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
20161 fi
20162 fi
20163fi
20164
20165
20166
20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
20168printf %s "checking if compiler halts on compilation errors... " >&6; }
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170/* end confdefs.h. */
20171
20172
20173
20174int main (void)
20175{
20176
20177 force compilation error
20178
20179 ;
20180 return 0;
20181}
20182
20183_ACEOF
20184if ac_fn_c_try_compile "$LINENO"
20185then :
20186
20187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188printf "%s\n" "no" >&6; }
20189 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
20190
20191else $as_nop
20192
20193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194printf "%s\n" "yes" >&6; }
20195
20196fi
20197rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20198
20199
20200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
20201printf %s "checking if compiler halts on negative sized arrays... " >&6; }
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203/* end confdefs.h. */
20204
20205
20206 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
20207
20208int main (void)
20209{
20210
20211 bad_t dummy;
20212
20213 ;
20214 return 0;
20215}
20216
20217_ACEOF
20218if ac_fn_c_try_compile "$LINENO"
20219then :
20220
20221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20222printf "%s\n" "no" >&6; }
20223 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
20224
20225else $as_nop
20226
20227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228printf "%s\n" "yes" >&6; }
20229
20230fi
20231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20232
20233
20234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
20235printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237/* end confdefs.h. */
20238
20239
20240# include <stdlib.h>
20241 int rand(int n);
20242 int rand(int n)
20243 {
20244 if(n)
20245 return ++n;
20246 else
20247 return n;
20248 }
20249
20250int main (void)
20251{
20252
20253 int i[2]={0,0};
20254 int j = rand(i[0]);
20255 if(j)
20256 return j;
20257
20258 ;
20259 return 0;
20260}
20261
20262_ACEOF
20263if ac_fn_c_try_compile "$LINENO"
20264then :
20265
20266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20267printf "%s\n" "no" >&6; }
20268 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
20269
20270else $as_nop
20271
20272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20273printf "%s\n" "yes" >&6; }
20274
20275fi
20276rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20277
20278
20279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
20280printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
20281 supports_symbol_hiding="no"
20282 symbol_hiding_CFLAGS=""
20283 symbol_hiding_EXTERN=""
20284 tmp_CFLAGS=""
20285 tmp_EXTERN=""
20286 case "$compiler_id" in
20287 CLANG)
20288 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20289 tmp_CFLAGS="-fvisibility=hidden"
20290 supports_symbol_hiding="yes"
20291 ;;
20292 GNU_C)
20293 if test "$compiler_num" -ge "304"; then
20294 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
20295 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20296 tmp_CFLAGS="-fvisibility=hidden"
20297 supports_symbol_hiding="yes"
20298 fi
20299 fi
20300 ;;
20301 INTEL_UNIX_C)
20302 if test "$compiler_num" -ge "900"; then
20303 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
20304 tmp_save_CFLAGS="$CFLAGS"
20305 CFLAGS="$CFLAGS -fvisibility=hidden"
20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307/* end confdefs.h. */
20308
20309
20310# include <stdio.h>
20311
20312int main (void)
20313{
20314
20315 printf("icc fvisibility bug test");
20316
20317 ;
20318 return 0;
20319}
20320
20321_ACEOF
20322if ac_fn_c_try_link "$LINENO"
20323then :
20324
20325 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20326 tmp_CFLAGS="-fvisibility=hidden"
20327 supports_symbol_hiding="yes"
20328
20329fi
20330rm -f core conftest.err conftest.$ac_objext conftest.beam \
20331 conftest$ac_exeext conftest.$ac_ext
20332 CFLAGS="$tmp_save_CFLAGS"
20333 fi
20334 fi
20335 ;;
20336 SUNPRO_C)
20337 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
20338 tmp_EXTERN="__global"
20339 tmp_CFLAGS="-xldscope=hidden"
20340 supports_symbol_hiding="yes"
20341 fi
20342 ;;
20343 esac
20344 if test "$supports_symbol_hiding" = "yes"; then
20345 tmp_save_CFLAGS="$CFLAGS"
20346 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20347 squeeze CFLAGS
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349/* end confdefs.h. */
20350
20351
20352 $tmp_EXTERN char *dummy(char *buff);
20353 char *dummy(char *buff)
20354 {
20355 if(buff)
20356 return ++buff;
20357 else
20358 return buff;
20359 }
20360
20361int main (void)
20362{
20363
20364 char b[16];
20365 char *r = dummy(&b[0]);
20366 if(r)
20367 return (int)*r;
20368
20369 ;
20370 return 0;
20371}
20372
20373_ACEOF
20374if ac_fn_c_try_compile "$LINENO"
20375then :
20376
20377 supports_symbol_hiding="yes"
20378 if test -f conftest.err; then
20379 grep 'visibility' conftest.err >/dev/null
20380 if test "$?" -eq "0"; then
20381 supports_symbol_hiding="no"
20382 fi
20383 fi
20384
20385else $as_nop
20386
20387 supports_symbol_hiding="no"
20388 echo " " >&6
20389 sed 's/^/cc-src: /' conftest.$ac_ext >&6
20390 sed 's/^/cc-err: /' conftest.err >&6
20391 echo " " >&6
20392
20393fi
20394rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20395 CFLAGS="$tmp_save_CFLAGS"
20396 fi
20397 if test "$supports_symbol_hiding" = "yes"; then
20398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20399printf "%s\n" "yes" >&6; }
20400 symbol_hiding_CFLAGS="$tmp_CFLAGS"
20401 symbol_hiding_EXTERN="$tmp_EXTERN"
20402 else
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20404printf "%s\n" "no" >&6; }
20405 fi
20406
20407
20408
20409 supports_curldebug="unknown"
20410 if test "$want_curldebug" = "yes"; then
20411 if test "x$enable_shared" != "xno" &&
20412 test "x$enable_shared" != "xyes"; then
20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
20414printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
20415 supports_curldebug="no"
20416 fi
20417 if test "x$enable_static" != "xno" &&
20418 test "x$enable_static" != "xyes"; then
20419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
20420printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
20421 supports_curldebug="no"
20422 fi
20423 if test "$supports_curldebug" != "no"; then
20424 if test "$enable_shared" = "yes" &&
20425 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20426 supports_curldebug="no"
20427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
20428printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
20429 fi
20430 fi
20431 fi
20432 #
20433 if test "$want_curldebug" = "yes"; then
20434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
20435printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
20436 test "$supports_curldebug" = "no" || supports_curldebug="yes"
20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
20438printf "%s\n" "$supports_curldebug" >&6; }
20439 if test "$supports_curldebug" = "no"; then
20440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
20441printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
20442 want_curldebug="no"
20443 fi
20444 fi
20445
20446 if test x$want_curldebug = xyes; then
20447 CURLDEBUG_TRUE=
20448 CURLDEBUG_FALSE='#'
20449else
20450 CURLDEBUG_TRUE='#'
20451 CURLDEBUG_FALSE=
20452fi
20453
20454
20455supports_unittests=yes
20456# cross-compilation of unit tests static library/programs fails when
20457# libcurl shared library is built. This might be due to a libtool or
20458# automake issue. In this case we disable unit tests.
20459if test "x$cross_compiling" != "xno" &&
20460 test "x$enable_shared" != "xno"; then
20461 supports_unittests=no
20462fi
20463
20464# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
20465# a problem related with OpenSSL headers and library versions not matching.
20466# Disable unit tests while time to further investigate this is found.
20467case $host in
20468 mips-sgi-irix6.5)
20469 if test "$compiler_id" = "GNU_C"; then
20470 supports_unittests=no
20471 fi
20472 ;;
20473esac
20474
20475# All AIX autobuilds fails unit tests linking against unittests library
20476# due to unittests library being built with no symbols or members. Libtool ?
20477# Disable unit tests while time to further investigate this is found.
20478case $host_os in
20479 aix*)
20480 supports_unittests=no
20481 ;;
20482esac
20483
20484if test "x$want_debug" = "xyes" &&
20485 test "x$supports_unittests" = "xyes"; then
20486 want_unittests=yes
20487else
20488 want_unittests=no
20489fi
20490 if test x$want_unittests = xyes; then
20491 BUILD_UNITTESTS_TRUE=
20492 BUILD_UNITTESTS_FALSE='#'
20493else
20494 BUILD_UNITTESTS_TRUE='#'
20495 BUILD_UNITTESTS_FALSE=
20496fi
20497
20498
20499# For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
20500# version to Windows XP (0x501) if it hasn't already been defined by the user.
20501# Without this override original MinGW defaults the version to Windows NT 4.0.
20502# Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
20503case $host in
20504 *-*-mingw32*)
20505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
20506printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
20507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508/* end confdefs.h. */
20509
20510
20511#include <_mingw.h>
20512
20513int main (void)
20514{
20515
20516#if defined(__MINGW64_VERSION_MAJOR) || \
20517 defined(WINVER) || \
20518 defined(_WIN32_WINNT)
20519#error
20520#endif
20521
20522 ;
20523 return 0;
20524}
20525
20526_ACEOF
20527if ac_fn_c_try_compile "$LINENO"
20528then :
20529
20530 CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
20531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20532printf "%s\n" "yes" >&6; }
20533
20534else $as_nop
20535
20536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20537printf "%s\n" "no" >&6; }
20538
20539fi
20540rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20541 ;;
20542esac
20543
20544# Detect original MinGW (not MinGW-w64)
20545curl_mingw_original=no
20546case $host in
20547 *-*-mingw32*)
20548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking using original MinGW (not MinGW-w64)" >&5
20549printf %s "checking using original MinGW (not MinGW-w64)... " >&6; }
20550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551/* end confdefs.h. */
20552
20553
20554#include <_mingw.h>
20555
20556int main (void)
20557{
20558
20559#if defined(__MINGW64_VERSION_MAJOR)
20560#error
20561#endif
20562
20563 ;
20564 return 0;
20565}
20566
20567_ACEOF
20568if ac_fn_c_try_compile "$LINENO"
20569then :
20570
20571 curl_mingw_original=yes
20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573printf "%s\n" "yes" >&6; }
20574
20575else $as_nop
20576
20577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20578printf "%s\n" "no" >&6; }
20579
20580fi
20581rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20582 ;;
20583esac
20584
20585
20586
20587
20588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20589printf %s "checking for windows.h... " >&6; }
20590if test ${curl_cv_header_windows_h+y}
20591then :
20592 printf %s "(cached) " >&6
20593else $as_nop
20594
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596/* end confdefs.h. */
20597
20598
20599#undef inline
20600#ifndef WIN32_LEAN_AND_MEAN
20601#define WIN32_LEAN_AND_MEAN
20602#endif
20603#include <windows.h>
20604
20605int main (void)
20606{
20607
20608#if defined(__CYGWIN__) || defined(__CEGCC__)
20609 HAVE_WINDOWS_H shall not be defined.
20610#else
20611 int dummy=2*WINVER;
20612#endif
20613
20614 ;
20615 return 0;
20616}
20617
20618_ACEOF
20619if ac_fn_c_try_compile "$LINENO"
20620then :
20621
20622 curl_cv_header_windows_h="yes"
20623
20624else $as_nop
20625
20626 curl_cv_header_windows_h="no"
20627
20628fi
20629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20630
20631fi
20632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20633printf "%s\n" "$curl_cv_header_windows_h" >&6; }
20634 case "$curl_cv_header_windows_h" in
20635 yes)
20636
20637printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
20638
20639 ;;
20640 esac
20641
20642
20643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
20644printf %s "checking whether build target is a native Windows one... " >&6; }
20645if test ${curl_cv_native_windows+y}
20646then :
20647 printf %s "(cached) " >&6
20648else $as_nop
20649
20650 if test "$curl_cv_header_windows_h" = "no"; then
20651 curl_cv_native_windows="no"
20652 else
20653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654/* end confdefs.h. */
20655
20656
20657
20658int main (void)
20659{
20660
20661#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
20662 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
20663 int dummy=1;
20664#else
20665 Not a native Windows build target.
20666#endif
20667
20668 ;
20669 return 0;
20670}
20671
20672_ACEOF
20673if ac_fn_c_try_compile "$LINENO"
20674then :
20675
20676 curl_cv_native_windows="yes"
20677
20678else $as_nop
20679
20680 curl_cv_native_windows="no"
20681
20682fi
20683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20684 fi
20685
20686fi
20687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
20688printf "%s\n" "$curl_cv_native_windows" >&6; }
20689 if test "x$curl_cv_native_windows" = xyes; then
20690 DOING_NATIVE_WINDOWS_TRUE=
20691 DOING_NATIVE_WINDOWS_FALSE='#'
20692else
20693 DOING_NATIVE_WINDOWS_TRUE='#'
20694 DOING_NATIVE_WINDOWS_FALSE=
20695fi
20696
20697
20698case X-"$curl_cv_native_windows" in
20699 X-yes)
20700
20701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20702printf %s "checking for winsock2.h... " >&6; }
20703if test ${curl_cv_header_winsock2_h+y}
20704then :
20705 printf %s "(cached) " >&6
20706else $as_nop
20707
20708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709/* end confdefs.h. */
20710
20711
20712#undef inline
20713#ifndef WIN32_LEAN_AND_MEAN
20714#define WIN32_LEAN_AND_MEAN
20715#endif
20716#include <windows.h>
20717#include <winsock2.h>
20718
20719int main (void)
20720{
20721
20722#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20723 HAVE_WINSOCK2_H shall not be defined.
20724#else
20725 int dummy=2*IPPROTO_ESP;
20726#endif
20727
20728 ;
20729 return 0;
20730}
20731
20732_ACEOF
20733if ac_fn_c_try_compile "$LINENO"
20734then :
20735
20736 curl_cv_header_winsock2_h="yes"
20737
20738else $as_nop
20739
20740 curl_cv_header_winsock2_h="no"
20741
20742fi
20743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20744
20745fi
20746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20747printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
20748 case "$curl_cv_header_winsock2_h" in
20749 yes)
20750
20751printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
20752
20753 ;;
20754 esac
20755
20756
20757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
20758printf %s "checking for ws2tcpip.h... " >&6; }
20759if test ${curl_cv_header_ws2tcpip_h+y}
20760then :
20761 printf %s "(cached) " >&6
20762else $as_nop
20763
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765/* end confdefs.h. */
20766
20767
20768#undef inline
20769#ifndef WIN32_LEAN_AND_MEAN
20770#define WIN32_LEAN_AND_MEAN
20771#endif
20772#include <windows.h>
20773#include <winsock2.h>
20774#include <ws2tcpip.h>
20775
20776int main (void)
20777{
20778
20779#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20780 HAVE_WS2TCPIP_H shall not be defined.
20781#else
20782 int dummy=2*IP_PKTINFO;
20783#endif
20784
20785 ;
20786 return 0;
20787}
20788
20789_ACEOF
20790if ac_fn_c_try_compile "$LINENO"
20791then :
20792
20793 curl_cv_header_ws2tcpip_h="yes"
20794
20795else $as_nop
20796
20797 curl_cv_header_ws2tcpip_h="no"
20798
20799fi
20800rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20801
20802fi
20803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
20804printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
20805 case "$curl_cv_header_ws2tcpip_h" in
20806 yes)
20807
20808printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
20809
20810 ;;
20811 esac
20812
20813
20814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
20815printf %s "checking for wincrypt.h... " >&6; }
20816if test ${curl_cv_header_wincrypt_h+y}
20817then :
20818 printf %s "(cached) " >&6
20819else $as_nop
20820
20821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822/* end confdefs.h. */
20823
20824
20825#undef inline
20826#ifndef WIN32_LEAN_AND_MEAN
20827#define WIN32_LEAN_AND_MEAN
20828#endif
20829#include <windows.h>
20830#include <wincrypt.h>
20831
20832int main (void)
20833{
20834
20835 int dummy=2*PROV_RSA_FULL;
20836
20837 ;
20838 return 0;
20839}
20840
20841_ACEOF
20842if ac_fn_c_try_compile "$LINENO"
20843then :
20844
20845 curl_cv_header_wincrypt_h="yes"
20846
20847else $as_nop
20848
20849 curl_cv_header_wincrypt_h="no"
20850
20851fi
20852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20853
20854fi
20855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
20856printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
20857 case "$curl_cv_header_wincrypt_h" in
20858 yes)
20859
20860printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
20861
20862 ;;
20863 esac
20864
20865
20866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
20867printf %s "checking for winldap.h... " >&6; }
20868if test ${curl_cv_header_winldap_h+y}
20869then :
20870 printf %s "(cached) " >&6
20871else $as_nop
20872
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874/* end confdefs.h. */
20875
20876
20877#undef inline
20878#ifdef HAVE_WINDOWS_H
20879#ifndef WIN32_LEAN_AND_MEAN
20880#define WIN32_LEAN_AND_MEAN
20881#endif
20882#include <windows.h>
20883#endif
20884#include <winldap.h>
20885
20886int main (void)
20887{
20888
20889#if defined(__CYGWIN__) || defined(__CEGCC__)
20890 HAVE_WINLDAP_H shall not be defined.
20891#else
20892 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20893 ULONG res = ldap_unbind(ldp);
20894#endif
20895
20896 ;
20897 return 0;
20898}
20899
20900_ACEOF
20901if ac_fn_c_try_compile "$LINENO"
20902then :
20903
20904 curl_cv_header_winldap_h="yes"
20905
20906else $as_nop
20907
20908 curl_cv_header_winldap_h="no"
20909
20910fi
20911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20912
20913fi
20914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
20915printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
20916 case "$curl_cv_header_winldap_h" in
20917 yes)
20918
20919printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
20920
20921 ;;
20922 esac
20923
20924 ;;
20925 *)
20926 curl_cv_header_winsock2_h="no"
20927 curl_cv_header_ws2tcpip_h="no"
20928 curl_cv_header_wincrypt_h="no"
20929 curl_cv_header_winldap_h="no"
20930 ;;
20931esac
20932
20933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
20934printf %s "checking whether build target supports WIN32 file API... " >&6; }
20935 curl_win32_file_api="no"
20936 if test "$curl_cv_header_windows_h" = "yes"; then
20937 if test x"$enable_largefile" != "xno"; then
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939/* end confdefs.h. */
20940
20941
20942
20943int main (void)
20944{
20945
20946#if !defined(_WIN32_WCE) && \
20947 (defined(__MINGW32__) || \
20948 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
20949 int dummy=1;
20950#else
20951 WIN32 large file API not supported.
20952#endif
20953
20954 ;
20955 return 0;
20956}
20957
20958_ACEOF
20959if ac_fn_c_try_compile "$LINENO"
20960then :
20961
20962 curl_win32_file_api="win32_large_files"
20963
20964fi
20965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20966 fi
20967 if test "$curl_win32_file_api" = "no"; then
20968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969/* end confdefs.h. */
20970
20971
20972
20973int main (void)
20974{
20975
20976#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
20977 int dummy=1;
20978#else
20979 WIN32 small file API not supported.
20980#endif
20981
20982 ;
20983 return 0;
20984}
20985
20986_ACEOF
20987if ac_fn_c_try_compile "$LINENO"
20988then :
20989
20990 curl_win32_file_api="win32_small_files"
20991
20992fi
20993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20994 fi
20995 fi
20996 case "$curl_win32_file_api" in
20997 win32_large_files)
20998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
20999printf "%s\n" "yes (large file enabled)" >&6; }
21000
21001printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21002
21003 USE_WIN32_LARGE_FILES=1
21004
21005 ;;
21006 win32_small_files)
21007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21008printf "%s\n" "yes (large file disabled)" >&6; }
21009
21010printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21011
21012 USE_WIN32_SMALL_FILES=1
21013
21014 ;;
21015 *)
21016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017printf "%s\n" "no" >&6; }
21018 ;;
21019 esac
21020
21021
21022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21023printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21024 curl_win32_crypto_api="no"
21025 if test "$curl_cv_header_wincrypt_h" = "yes"; then
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027/* end confdefs.h. */
21028
21029
21030#undef inline
21031#ifndef WIN32_LEAN_AND_MEAN
21032#define WIN32_LEAN_AND_MEAN
21033#endif
21034#include <windows.h>
21035#include <wincrypt.h>
21036
21037int main (void)
21038{
21039
21040 HCRYPTPROV hCryptProv;
21041 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21042 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21043 CryptReleaseContext(hCryptProv, 0);
21044 }
21045
21046 ;
21047 return 0;
21048}
21049
21050_ACEOF
21051if ac_fn_c_try_compile "$LINENO"
21052then :
21053
21054 curl_win32_crypto_api="yes"
21055
21056fi
21057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21058 fi
21059 case "$curl_win32_crypto_api" in
21060 yes)
21061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21062printf "%s\n" "yes" >&6; }
21063
21064printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21065
21066 USE_WIN32_CRYPTO=1
21067
21068 ;;
21069 *)
21070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071printf "%s\n" "no" >&6; }
21072 ;;
21073 esac
21074
21075
21076
21077
21078 tst_cflags="no"
21079 case $host_os in
21080 darwin*)
21081 tst_cflags="yes"
21082 ;;
21083 esac
21084
21085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21086printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21088printf "%s\n" "$tst_cflags" >&6; };
21089
21090 if test "$tst_cflags" = "yes"; then
21091 old_CFLAGS=$CFLAGS
21092 CFLAGS="$CFLAGS -Werror=partial-availability"
21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21094printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21096/* end confdefs.h. */
21097
21098int main (void)
21099{
21100
21101 ;
21102 return 0;
21103}
21104_ACEOF
21105if ac_fn_c_try_compile "$LINENO"
21106then :
21107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21108printf "%s\n" "yes" >&6; }
21109else $as_nop
21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21111printf "%s\n" "no" >&6; }
21112 CFLAGS=$old_CFLAGS
21113fi
21114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21115 fi
21116
21117
21118
21119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
21120printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
21121case $host_os in
21122 darwin*)
21123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21124/* end confdefs.h. */
21125
21126
21127#include <TargetConditionals.h>
21128
21129int main (void)
21130{
21131
21132#if (TARGET_OS_OSX)
21133 return 0;
21134#else
21135#error Not a macOS
21136#endif
21137
21138 ;
21139 return 0;
21140}
21141
21142_ACEOF
21143if ac_fn_c_try_compile "$LINENO"
21144then :
21145
21146 build_for_macos="yes"
21147
21148else $as_nop
21149
21150 build_for_macos="no"
21151
21152fi
21153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21154 if test "x$build_for_macos" != xno; then
21155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21156printf "%s\n" "yes" >&6; }
21157 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
21158 else
21159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160printf "%s\n" "no" >&6; }
21161 fi
21162 ;;
21163 *)
21164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165printf "%s\n" "no" >&6; }
21166esac
21167
21168
21169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21170printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21172/* end confdefs.h. */
21173
21174
21175#include <stdlib.h>
21176
21177int main (void)
21178{
21179
21180 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21181
21182 ;
21183 return 0;
21184}
21185
21186_ACEOF
21187if ac_fn_c_try_compile "$LINENO"
21188then :
21189
21190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21191printf "%s\n" "yes" >&6; }
21192
21193printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21194
21195
21196else $as_nop
21197
21198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21199printf "%s\n" "no" >&6; }
21200
21201fi
21202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21203
21204
21205 if test "$curl_cv_native_windows" = "yes"; then
21206 OS_WINDOWS_TRUE=
21207 OS_WINDOWS_FALSE='#'
21208else
21209 OS_WINDOWS_TRUE='#'
21210 OS_WINDOWS_FALSE=
21211fi
21212
21213
21214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
21215printf %s "checking whether to support http... " >&6; }
21216# Check whether --enable-http was given.
21217if test ${enable_http+y}
21218then :
21219 enableval=$enable_http; case "$enableval" in
21220 no)
21221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21222printf "%s\n" "no" >&6; }
21223
21224printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
21225
21226 disable_http="yes"
21227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
21228printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
21229 CURL_DISABLE_HTTP=1
21230
21231
21232printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21233
21234 CURL_DISABLE_RTSP=1
21235
21236
21237printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
21238
21239
21240printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
21241
21242 curl_h1_msg="no (--enable-http, --with-hyper)"
21243 curl_altsvc_msg="no";
21244 curl_hsts_msg="no (--enable-hsts)";
21245 enable_altsvc="no"
21246 hsts="no"
21247 ;;
21248 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21249printf "%s\n" "yes" >&6; }
21250 ;;
21251 esac
21252else $as_nop
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21254printf "%s\n" "yes" >&6; }
21255
21256fi
21257
21258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
21259printf %s "checking whether to support ftp... " >&6; }
21260# Check whether --enable-ftp was given.
21261if test ${enable_ftp+y}
21262then :
21263 enableval=$enable_ftp; case "$enableval" in
21264 no)
21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266printf "%s\n" "no" >&6; }
21267
21268printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
21269
21270 CURL_DISABLE_FTP=1
21271
21272 ;;
21273 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21274printf "%s\n" "yes" >&6; }
21275 ;;
21276 esac
21277else $as_nop
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21279printf "%s\n" "yes" >&6; }
21280
21281fi
21282
21283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
21284printf %s "checking whether to support file... " >&6; }
21285# Check whether --enable-file was given.
21286if test ${enable_file+y}
21287then :
21288 enableval=$enable_file; case "$enableval" in
21289 no)
21290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21291printf "%s\n" "no" >&6; }
21292
21293printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
21294
21295 CURL_DISABLE_FILE=1
21296
21297 ;;
21298 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21299printf "%s\n" "yes" >&6; }
21300 ;;
21301 esac
21302else $as_nop
21303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21304printf "%s\n" "yes" >&6; }
21305
21306fi
21307
21308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
21309printf %s "checking whether to support ldap... " >&6; }
21310# Check whether --enable-ldap was given.
21311if test ${enable_ldap+y}
21312then :
21313 enableval=$enable_ldap; case "$enableval" in
21314 no)
21315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316printf "%s\n" "no" >&6; }
21317
21318printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21319
21320 CURL_DISABLE_LDAP=1
21321
21322 ;;
21323 yes)
21324 ldap_askedfor="yes"
21325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21326printf "%s\n" "yes" >&6; }
21327 ;;
21328 *)
21329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21330printf "%s\n" "yes" >&6; }
21331 ;;
21332 esac
21333else $as_nop
21334
21335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21336printf "%s\n" "yes" >&6; }
21337
21338fi
21339
21340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
21341printf %s "checking whether to support ldaps... " >&6; }
21342# Check whether --enable-ldaps was given.
21343if test ${enable_ldaps+y}
21344then :
21345 enableval=$enable_ldaps; case "$enableval" in
21346 no)
21347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348printf "%s\n" "no" >&6; }
21349
21350printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21351
21352 CURL_DISABLE_LDAPS=1
21353
21354 ;;
21355 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
21357printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
21358
21359printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21360
21361 CURL_DISABLE_LDAPS=1
21362
21363 else
21364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21365printf "%s\n" "yes" >&6; }
21366
21367printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21368
21369 HAVE_LDAP_SSL=1
21370
21371 fi
21372 ;;
21373 esac
21374else $as_nop
21375
21376 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21378printf "%s\n" "no" >&6; }
21379
21380printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21381
21382 CURL_DISABLE_LDAPS=1
21383
21384 else
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21386printf "%s\n" "yes" >&6; }
21387
21388printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21389
21390 HAVE_LDAP_SSL=1
21391
21392 fi
21393
21394fi
21395
21396
21397
21398OPT_HYPER="no"
21399
21400
21401# Check whether --with-hyper was given.
21402if test ${with_hyper+y}
21403then :
21404 withval=$with_hyper; OPT_HYPER=$withval
21405fi
21406
21407case "$OPT_HYPER" in
21408 no)
21409 want_hyper="no"
21410 ;;
21411 yes)
21412 want_hyper="default"
21413 want_hyper_path=""
21414 ;;
21415 *)
21416 want_hyper="yes"
21417 want_hyper_path="$withval"
21418 ;;
21419esac
21420
21421if test X"$want_hyper" != Xno; then
21422 if test "x$disable_http" = "xyes"; then
21423 as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
21424 fi
21425
21426 CLEANLDFLAGS="$LDFLAGS"
21427 CLEANCPPFLAGS="$CPPFLAGS"
21428 CLEANLIBS="$LIBS"
21429
21430
21431 if test -n "$PKG_CONFIG"; then
21432 PKGCONFIG="$PKG_CONFIG"
21433 else
21434 if test -n "$ac_tool_prefix"; then
21435 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21436set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21438printf %s "checking for $ac_word... " >&6; }
21439if test ${ac_cv_path_PKGCONFIG+y}
21440then :
21441 printf %s "(cached) " >&6
21442else $as_nop
21443 case $PKGCONFIG in
21444 [\\/]* | ?:[\\/]*)
21445 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21446 ;;
21447 *)
21448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21449as_dummy="$PATH:/usr/bin:/usr/local/bin"
21450for as_dir in $as_dummy
21451do
21452 IFS=$as_save_IFS
21453 case $as_dir in #(((
21454 '') as_dir=./ ;;
21455 */) ;;
21456 *) as_dir=$as_dir/ ;;
21457 esac
21458 for ac_exec_ext in '' $ac_executable_extensions; do
21459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21460 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21462 break 2
21463 fi
21464done
21465 done
21466IFS=$as_save_IFS
21467
21468 ;;
21469esac
21470fi
21471PKGCONFIG=$ac_cv_path_PKGCONFIG
21472if test -n "$PKGCONFIG"; then
21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21474printf "%s\n" "$PKGCONFIG" >&6; }
21475else
21476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21477printf "%s\n" "no" >&6; }
21478fi
21479
21480
21481fi
21482if test -z "$ac_cv_path_PKGCONFIG"; then
21483 ac_pt_PKGCONFIG=$PKGCONFIG
21484 # Extract the first word of "pkg-config", so it can be a program name with args.
21485set dummy pkg-config; ac_word=$2
21486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21487printf %s "checking for $ac_word... " >&6; }
21488if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
21489then :
21490 printf %s "(cached) " >&6
21491else $as_nop
21492 case $ac_pt_PKGCONFIG in
21493 [\\/]* | ?:[\\/]*)
21494 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21495 ;;
21496 *)
21497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498as_dummy="$PATH:/usr/bin:/usr/local/bin"
21499for as_dir in $as_dummy
21500do
21501 IFS=$as_save_IFS
21502 case $as_dir in #(((
21503 '') as_dir=./ ;;
21504 */) ;;
21505 *) as_dir=$as_dir/ ;;
21506 esac
21507 for ac_exec_ext in '' $ac_executable_extensions; do
21508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21509 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21511 break 2
21512 fi
21513done
21514 done
21515IFS=$as_save_IFS
21516
21517 ;;
21518esac
21519fi
21520ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21521if test -n "$ac_pt_PKGCONFIG"; then
21522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21523printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
21524else
21525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21526printf "%s\n" "no" >&6; }
21527fi
21528
21529 if test "x$ac_pt_PKGCONFIG" = x; then
21530 PKGCONFIG="no"
21531 else
21532 case $cross_compiling:$ac_tool_warned in
21533yes:)
21534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21535printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21536ac_tool_warned=yes ;;
21537esac
21538 PKGCONFIG=$ac_pt_PKGCONFIG
21539 fi
21540else
21541 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21542fi
21543
21544 fi
21545
21546 if test "x$PKGCONFIG" != "xno"; then
21547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
21548printf %s "checking for hyper options with pkg-config... " >&6; }
21549 itexists=`
21550 if test -n "$want_hyper_path"; then
21551 PKG_CONFIG_LIBDIR="$want_hyper_path"
21552 export PKG_CONFIG_LIBDIR
21553 fi
21554 $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
21555
21556 if test -z "$itexists"; then
21557 PKGCONFIG="no"
21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559printf "%s\n" "no" >&6; }
21560 else
21561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
21562printf "%s\n" "found" >&6; }
21563 fi
21564 fi
21565
21566
21567 if test "$PKGCONFIG" != "no" ; then
21568 LIB_HYPER=`
21569 if test -n "$want_hyper_path"; then
21570 PKG_CONFIG_LIBDIR="$want_hyper_path"
21571 export PKG_CONFIG_LIBDIR
21572 fi
21573
21574 $PKGCONFIG --libs-only-l hyper`
21575 CPP_HYPER=`
21576 if test -n "$want_hyper_path"; then
21577 PKG_CONFIG_LIBDIR="$want_hyper_path"
21578 export PKG_CONFIG_LIBDIR
21579 fi
21580 $PKGCONFIG --cflags-only-I hyper`
21581 LD_HYPER=`
21582 if test -n "$want_hyper_path"; then
21583 PKG_CONFIG_LIBDIR="$want_hyper_path"
21584 export PKG_CONFIG_LIBDIR
21585 fi
21586
21587 $PKGCONFIG --libs-only-L hyper`
21588 else
21589 LIB_HYPER="-lhyper -ldl -lpthread -lm"
21590 if test X"$want_hyper" != Xdefault; then
21591 CPP_HYPER=-I"$want_hyper_path/capi/include"
21592 LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
21593 fi
21594 fi
21595 if test -n "$LIB_HYPER"; then
21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
21597printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
21598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
21599printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
21600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
21601printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
21602
21603 LDFLAGS="$LDFLAGS $LD_HYPER"
21604 CPPFLAGS="$CPPFLAGS $CPP_HYPER"
21605 LIBS="$LIB_HYPER $LIBS"
21606
21607 if test "x$cross_compiling" != "xyes"; then
21608 DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
21609 fi
21610
21611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
21612printf %s "checking for hyper_io_new in -lhyper... " >&6; }
21613if test ${ac_cv_lib_hyper_hyper_io_new+y}
21614then :
21615 printf %s "(cached) " >&6
21616else $as_nop
21617 ac_check_lib_save_LIBS=$LIBS
21618LIBS="-lhyper $LIBS"
21619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620/* end confdefs.h. */
21621
21622
21623#ifdef __cplusplus
21624extern "C"
21625#endif
21626char hyper_io_new ();
21627int main (void)
21628{
21629return hyper_io_new ();
21630 ;
21631 return 0;
21632}
21633_ACEOF
21634if ac_fn_c_try_link "$LINENO"
21635then :
21636 ac_cv_lib_hyper_hyper_io_new=yes
21637else $as_nop
21638 ac_cv_lib_hyper_hyper_io_new=no
21639fi
21640rm -f core conftest.err conftest.$ac_objext conftest.beam \
21641 conftest$ac_exeext conftest.$ac_ext
21642LIBS=$ac_check_lib_save_LIBS
21643fi
21644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
21645printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
21646if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
21647then :
21648
21649 for ac_header in hyper.h
21650do :
21651 ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
21652if test "x$ac_cv_header_hyper_h" = xyes
21653then :
21654 printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
21655 experimental="$experimental Hyper"
21656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
21657printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
21658 curl_h1_msg="enabled (Hyper)"
21659 curl_h2_msg=$curl_h1_msg
21660 HYPER_ENABLED=1
21661
21662printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
21663
21664 USE_HYPER=1
21665
21666 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
21667 export CURL_LIBRARY_PATH
21668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
21669printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
21670fi
21671
21672done
21673
21674else $as_nop
21675 for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
21676 if test -f "$d/libhyper.a"; then
21677 as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
21678 fi
21679 done
21680 as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
21681
21682fi
21683
21684 fi
21685fi
21686
21687if test X"$want_hyper" != Xno; then
21688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
21689printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
21690
21691printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21692
21693 CURL_DISABLE_RTSP=1
21694
21695
21696else
21697
21698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
21699printf %s "checking whether to support rtsp... " >&6; }
21700 # Check whether --enable-rtsp was given.
21701if test ${enable_rtsp+y}
21702then :
21703 enableval=$enable_rtsp; case "$enableval" in
21704 no)
21705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21706printf "%s\n" "no" >&6; }
21707
21708printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21709
21710 CURL_DISABLE_RTSP=1
21711
21712 ;;
21713 *)
21714 if test x$CURL_DISABLE_HTTP = x1 ; then
21715 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
21716 else
21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21718printf "%s\n" "yes" >&6; }
21719 curl_rtsp_msg="enabled"
21720 fi
21721 ;;
21722 esac
21723else $as_nop
21724 if test "x$CURL_DISABLE_HTTP" != "x1"; then
21725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21726printf "%s\n" "yes" >&6; }
21727 curl_rtsp_msg="enabled"
21728 else
21729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730printf "%s\n" "no" >&6; }
21731 fi
21732
21733fi
21734
21735fi
21736
21737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
21738printf %s "checking whether to support proxies... " >&6; }
21739# Check whether --enable-proxy was given.
21740if test ${enable_proxy+y}
21741then :
21742 enableval=$enable_proxy; case "$enableval" in
21743 no)
21744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21745printf "%s\n" "no" >&6; }
21746
21747printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
21748
21749 CURL_DISABLE_PROXY=1
21750
21751 https_proxy="no"
21752 ;;
21753 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21754printf "%s\n" "yes" >&6; }
21755 ;;
21756 esac
21757else $as_nop
21758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21759printf "%s\n" "yes" >&6; }
21760
21761fi
21762
21763
21764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
21765printf %s "checking whether to support dict... " >&6; }
21766# Check whether --enable-dict was given.
21767if test ${enable_dict+y}
21768then :
21769 enableval=$enable_dict; case "$enableval" in
21770 no)
21771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21772printf "%s\n" "no" >&6; }
21773
21774printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
21775
21776 CURL_DISABLE_DICT=1
21777
21778 ;;
21779 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21780printf "%s\n" "yes" >&6; }
21781 ;;
21782 esac
21783else $as_nop
21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21785printf "%s\n" "yes" >&6; }
21786
21787fi
21788
21789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
21790printf %s "checking whether to support telnet... " >&6; }
21791# Check whether --enable-telnet was given.
21792if test ${enable_telnet+y}
21793then :
21794 enableval=$enable_telnet; case "$enableval" in
21795 no)
21796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21797printf "%s\n" "no" >&6; }
21798
21799printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
21800
21801 CURL_DISABLE_TELNET=1
21802
21803 ;;
21804 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21805printf "%s\n" "yes" >&6; }
21806 ;;
21807 esac
21808else $as_nop
21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21810printf "%s\n" "yes" >&6; }
21811
21812fi
21813
21814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
21815printf %s "checking whether to support tftp... " >&6; }
21816# Check whether --enable-tftp was given.
21817if test ${enable_tftp+y}
21818then :
21819 enableval=$enable_tftp; case "$enableval" in
21820 no)
21821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822printf "%s\n" "no" >&6; }
21823
21824printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
21825
21826 CURL_DISABLE_TFTP=1
21827
21828 ;;
21829 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830printf "%s\n" "yes" >&6; }
21831 ;;
21832 esac
21833else $as_nop
21834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21835printf "%s\n" "yes" >&6; }
21836
21837fi
21838
21839
21840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
21841printf %s "checking whether to support pop3... " >&6; }
21842# Check whether --enable-pop3 was given.
21843if test ${enable_pop3+y}
21844then :
21845 enableval=$enable_pop3; case "$enableval" in
21846 no)
21847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848printf "%s\n" "no" >&6; }
21849
21850printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
21851
21852 CURL_DISABLE_POP3=1
21853
21854 ;;
21855 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21856printf "%s\n" "yes" >&6; }
21857 ;;
21858 esac
21859else $as_nop
21860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21861printf "%s\n" "yes" >&6; }
21862
21863fi
21864
21865
21866
21867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
21868printf %s "checking whether to support imap... " >&6; }
21869# Check whether --enable-imap was given.
21870if test ${enable_imap+y}
21871then :
21872 enableval=$enable_imap; case "$enableval" in
21873 no)
21874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875printf "%s\n" "no" >&6; }
21876
21877printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
21878
21879 CURL_DISABLE_IMAP=1
21880
21881 ;;
21882 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21883printf "%s\n" "yes" >&6; }
21884 ;;
21885 esac
21886else $as_nop
21887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21888printf "%s\n" "yes" >&6; }
21889
21890fi
21891
21892
21893
21894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
21895printf %s "checking whether to support smb... " >&6; }
21896# Check whether --enable-smb was given.
21897if test ${enable_smb+y}
21898then :
21899 enableval=$enable_smb; case "$enableval" in
21900 no)
21901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902printf "%s\n" "no" >&6; }
21903
21904printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
21905
21906 CURL_DISABLE_SMB=1
21907
21908 ;;
21909 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21910printf "%s\n" "yes" >&6; }
21911 ;;
21912 esac
21913else $as_nop
21914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21915printf "%s\n" "yes" >&6; }
21916
21917fi
21918
21919
21920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
21921printf %s "checking whether to support smtp... " >&6; }
21922# Check whether --enable-smtp was given.
21923if test ${enable_smtp+y}
21924then :
21925 enableval=$enable_smtp; case "$enableval" in
21926 no)
21927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21928printf "%s\n" "no" >&6; }
21929
21930printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
21931
21932 CURL_DISABLE_SMTP=1
21933
21934 ;;
21935 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21936printf "%s\n" "yes" >&6; }
21937 ;;
21938 esac
21939else $as_nop
21940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941printf "%s\n" "yes" >&6; }
21942
21943fi
21944
21945
21946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
21947printf %s "checking whether to support gopher... " >&6; }
21948# Check whether --enable-gopher was given.
21949if test ${enable_gopher+y}
21950then :
21951 enableval=$enable_gopher; case "$enableval" in
21952 no)
21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954printf "%s\n" "no" >&6; }
21955
21956printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
21957
21958 CURL_DISABLE_GOPHER=1
21959
21960 ;;
21961 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21962printf "%s\n" "yes" >&6; }
21963 ;;
21964 esac
21965else $as_nop
21966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21967printf "%s\n" "yes" >&6; }
21968
21969fi
21970
21971
21972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
21973printf %s "checking whether to support mqtt... " >&6; }
21974# Check whether --enable-mqtt was given.
21975if test ${enable_mqtt+y}
21976then :
21977 enableval=$enable_mqtt; case "$enableval" in
21978 no)
21979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21980printf "%s\n" "no" >&6; }
21981
21982printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
21983
21984 CURL_DISABLE_MQTT=1
21985
21986 ;;
21987 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21988printf "%s\n" "yes" >&6; }
21989 ;;
21990 esac
21991else $as_nop
21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21993printf "%s\n" "no" >&6; }
21994
21995fi
21996
21997
21998
21999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22000printf %s "checking whether to provide built-in manual... " >&6; }
22001# Check whether --enable-manual was given.
22002if test ${enable_manual+y}
22003then :
22004 enableval=$enable_manual; case "$enableval" in
22005 no)
22006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007printf "%s\n" "no" >&6; }
22008 ;;
22009 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010printf "%s\n" "yes" >&6; }
22011 USE_MANUAL="1"
22012 ;;
22013 esac
22014else $as_nop
22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22016printf "%s\n" "yes" >&6; }
22017 USE_MANUAL="1"
22018
22019fi
22020
22021
22022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22023printf %s "checking whether to enable generation of C code... " >&6; }
22024# Check whether --enable-libcurl_option was given.
22025if test ${enable_libcurl_option+y}
22026then :
22027 enableval=$enable_libcurl_option; case "$enableval" in
22028 no)
22029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22030printf "%s\n" "no" >&6; }
22031
22032printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22033
22034 curl_libcurl_msg="no"
22035 ;;
22036 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22037printf "%s\n" "yes" >&6; }
22038 ;;
22039 esac
22040else $as_nop
22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22042printf "%s\n" "yes" >&6; }
22043
22044fi
22045
22046
22047
22048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22049printf %s "checking whether to use libgcc... " >&6; }
22050# Check whether --enable-libgcc was given.
22051if test ${enable_libgcc+y}
22052then :
22053 enableval=$enable_libgcc; case "$enableval" in
22054 yes)
22055 LIBS="-lgcc $LIBS"
22056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22057printf "%s\n" "yes" >&6; }
22058 ;;
22059 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22060printf "%s\n" "no" >&6; }
22061 ;;
22062 esac
22063else $as_nop
22064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065printf "%s\n" "no" >&6; }
22066
22067fi
22068
22069
22070
22071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22072printf %s "checking if X/Open network library is required... " >&6; }
22073 tst_lib_xnet_required="no"
22074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075/* end confdefs.h. */
22076
22077
22078int main (void)
22079{
22080#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22081 return 0;
22082#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22083 return 0;
22084#else
22085 force compilation error
22086#endif
22087}
22088
22089
22090_ACEOF
22091if ac_fn_c_try_compile "$LINENO"
22092then :
22093
22094 tst_lib_xnet_required="yes"
22095 LIBS="-lxnet $LIBS"
22096
22097fi
22098rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22100printf "%s\n" "$tst_lib_xnet_required" >&6; }
22101
22102
22103ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22104if test "x$ac_cv_func_gethostbyname" = xyes
22105then :
22106 HAVE_GETHOSTBYNAME="1"
22107
22108else $as_nop
22109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22110printf %s "checking for gethostbyname in -lnsl... " >&6; }
22111if test ${ac_cv_lib_nsl_gethostbyname+y}
22112then :
22113 printf %s "(cached) " >&6
22114else $as_nop
22115 ac_check_lib_save_LIBS=$LIBS
22116LIBS="-lnsl $LIBS"
22117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118/* end confdefs.h. */
22119
22120
22121#ifdef __cplusplus
22122extern "C"
22123#endif
22124char gethostbyname ();
22125int main (void)
22126{
22127return gethostbyname ();
22128 ;
22129 return 0;
22130}
22131_ACEOF
22132if ac_fn_c_try_link "$LINENO"
22133then :
22134 ac_cv_lib_nsl_gethostbyname=yes
22135else $as_nop
22136 ac_cv_lib_nsl_gethostbyname=no
22137fi
22138rm -f core conftest.err conftest.$ac_objext conftest.beam \
22139 conftest$ac_exeext conftest.$ac_ext
22140LIBS=$ac_check_lib_save_LIBS
22141fi
22142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22143printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22144if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22145then :
22146 HAVE_GETHOSTBYNAME="1"
22147 LIBS="-lnsl $LIBS"
22148
22149fi
22150
22151
22152fi
22153
22154
22155if test "$HAVE_GETHOSTBYNAME" != "1"
22156then
22157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22158printf %s "checking for gethostbyname in -lsocket... " >&6; }
22159if test ${ac_cv_lib_socket_gethostbyname+y}
22160then :
22161 printf %s "(cached) " >&6
22162else $as_nop
22163 ac_check_lib_save_LIBS=$LIBS
22164LIBS="-lsocket $LIBS"
22165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166/* end confdefs.h. */
22167
22168
22169#ifdef __cplusplus
22170extern "C"
22171#endif
22172char gethostbyname ();
22173int main (void)
22174{
22175return gethostbyname ();
22176 ;
22177 return 0;
22178}
22179_ACEOF
22180if ac_fn_c_try_link "$LINENO"
22181then :
22182 ac_cv_lib_socket_gethostbyname=yes
22183else $as_nop
22184 ac_cv_lib_socket_gethostbyname=no
22185fi
22186rm -f core conftest.err conftest.$ac_objext conftest.beam \
22187 conftest$ac_exeext conftest.$ac_ext
22188LIBS=$ac_check_lib_save_LIBS
22189fi
22190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22191printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22192if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22193then :
22194 HAVE_GETHOSTBYNAME="1"
22195 LIBS="-lsocket $LIBS"
22196
22197fi
22198
22199fi
22200
22201if test "$HAVE_GETHOSTBYNAME" != "1"
22202then
22203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22204printf %s "checking for gethostbyname in -lwatt... " >&6; }
22205if test ${ac_cv_lib_watt_gethostbyname+y}
22206then :
22207 printf %s "(cached) " >&6
22208else $as_nop
22209 ac_check_lib_save_LIBS=$LIBS
22210LIBS="-lwatt $LIBS"
22211cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212/* end confdefs.h. */
22213
22214
22215#ifdef __cplusplus
22216extern "C"
22217#endif
22218char gethostbyname ();
22219int main (void)
22220{
22221return gethostbyname ();
22222 ;
22223 return 0;
22224}
22225_ACEOF
22226if ac_fn_c_try_link "$LINENO"
22227then :
22228 ac_cv_lib_watt_gethostbyname=yes
22229else $as_nop
22230 ac_cv_lib_watt_gethostbyname=no
22231fi
22232rm -f core conftest.err conftest.$ac_objext conftest.beam \
22233 conftest$ac_exeext conftest.$ac_ext
22234LIBS=$ac_check_lib_save_LIBS
22235fi
22236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
22237printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
22238if test "x$ac_cv_lib_watt_gethostbyname" = xyes
22239then :
22240 HAVE_GETHOSTBYNAME="1"
22241 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
22242 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
22243 LIBS="-lwatt $LIBS"
22244
22245fi
22246
22247fi
22248
22249if test "$HAVE_GETHOSTBYNAME" != "1"
22250then
22251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22252printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
22253 my_ac_save_LIBS=$LIBS
22254 LIBS="-lnsl -lsocket $LIBS"
22255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256/* end confdefs.h. */
22257
22258
22259
22260int main (void)
22261{
22262
22263 gethostbyname();
22264
22265 ;
22266 return 0;
22267}
22268
22269_ACEOF
22270if ac_fn_c_try_link "$LINENO"
22271then :
22272
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274printf "%s\n" "yes" >&6; }
22275 HAVE_GETHOSTBYNAME="1"
22276
22277else $as_nop
22278
22279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280printf "%s\n" "no" >&6; }
22281 LIBS=$my_ac_save_LIBS
22282
22283fi
22284rm -f core conftest.err conftest.$ac_objext conftest.beam \
22285 conftest$ac_exeext conftest.$ac_ext
22286fi
22287
22288if test "$HAVE_GETHOSTBYNAME" != "1"
22289then
22290 if test "$curl_cv_header_windows_h" = "yes"; then
22291 if test "$curl_cv_header_winsock2_h" = "yes"; then
22292 winsock_LIB="-lws2_32"
22293 fi
22294 if test ! -z "$winsock_LIB"; then
22295 my_ac_save_LIBS=$LIBS
22296 LIBS="$winsock_LIB $LIBS"
22297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22298printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
22299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300/* end confdefs.h. */
22301
22302
22303#ifdef HAVE_WINDOWS_H
22304#ifndef WIN32_LEAN_AND_MEAN
22305#define WIN32_LEAN_AND_MEAN
22306#endif
22307#include <windows.h>
22308#ifdef HAVE_WINSOCK2_H
22309#include <winsock2.h>
22310#endif
22311#endif
22312
22313int main (void)
22314{
22315
22316 gethostbyname("www.dummysite.com");
22317
22318 ;
22319 return 0;
22320}
22321
22322_ACEOF
22323if ac_fn_c_try_link "$LINENO"
22324then :
22325
22326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22327printf "%s\n" "yes" >&6; }
22328 HAVE_GETHOSTBYNAME="1"
22329
22330else $as_nop
22331
22332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22333printf "%s\n" "no" >&6; }
22334 winsock_LIB=""
22335 LIBS=$my_ac_save_LIBS
22336
22337fi
22338rm -f core conftest.err conftest.$ac_objext conftest.beam \
22339 conftest$ac_exeext conftest.$ac_ext
22340 fi
22341 fi
22342fi
22343
22344if test "$HAVE_GETHOSTBYNAME" != "1"
22345then
22346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22347printf %s "checking for gethostbyname for Minix 3... " >&6; }
22348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349/* end confdefs.h. */
22350
22351
22352/* Older Minix versions may need <net/gen/netdb.h> here instead */
22353#include <netdb.h>
22354
22355int main (void)
22356{
22357
22358 gethostbyname("www.dummysite.com");
22359
22360 ;
22361 return 0;
22362}
22363
22364_ACEOF
22365if ac_fn_c_try_link "$LINENO"
22366then :
22367
22368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22369printf "%s\n" "yes" >&6; }
22370 HAVE_GETHOSTBYNAME="1"
22371
22372else $as_nop
22373
22374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22375printf "%s\n" "no" >&6; }
22376
22377fi
22378rm -f core conftest.err conftest.$ac_objext conftest.beam \
22379 conftest$ac_exeext conftest.$ac_ext
22380fi
22381
22382if test "$HAVE_GETHOSTBYNAME" != "1"
22383then
22384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22385printf %s "checking for gethostbyname for eCos... " >&6; }
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387/* end confdefs.h. */
22388
22389
22390#include <stdio.h>
22391#include <netdb.h>
22392
22393int main (void)
22394{
22395
22396 gethostbyname("www.dummysite.com");
22397
22398 ;
22399 return 0;
22400}
22401
22402_ACEOF
22403if ac_fn_c_try_link "$LINENO"
22404then :
22405
22406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22407printf "%s\n" "yes" >&6; }
22408 HAVE_GETHOSTBYNAME="1"
22409
22410else $as_nop
22411
22412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22413printf "%s\n" "no" >&6; }
22414
22415fi
22416rm -f core conftest.err conftest.$ac_objext conftest.beam \
22417 conftest$ac_exeext conftest.$ac_ext
22418fi
22419
22420if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
22421then
22422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
22423printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
22424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425/* end confdefs.h. */
22426
22427
22428 #define __USE_INLINE__
22429 #include <proto/bsdsocket.h>
22430 #ifdef __amigaos4__
22431 struct SocketIFace *ISocket = NULL;
22432 #else
22433 struct Library *SocketBase = NULL;
22434 #endif
22435
22436int main (void)
22437{
22438
22439 gethostbyname("www.dummysite.com");
22440
22441 ;
22442 return 0;
22443}
22444
22445_ACEOF
22446if ac_fn_c_try_link "$LINENO"
22447then :
22448
22449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22450printf "%s\n" "yes" >&6; }
22451 HAVE_GETHOSTBYNAME="1"
22452 HAVE_PROTO_BSDSOCKET_H="1"
22453
22454printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22455
22456 HAVE_PROTO_BSDSOCKET_H=1
22457
22458
22459else $as_nop
22460
22461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22462printf "%s\n" "no" >&6; }
22463
22464fi
22465rm -f core conftest.err conftest.$ac_objext conftest.beam \
22466 conftest$ac_exeext conftest.$ac_ext
22467fi
22468
22469if test "$HAVE_GETHOSTBYNAME" != "1"
22470then
22471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
22472printf %s "checking for gethostbyname in -lnetwork... " >&6; }
22473if test ${ac_cv_lib_network_gethostbyname+y}
22474then :
22475 printf %s "(cached) " >&6
22476else $as_nop
22477 ac_check_lib_save_LIBS=$LIBS
22478LIBS="-lnetwork $LIBS"
22479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480/* end confdefs.h. */
22481
22482
22483#ifdef __cplusplus
22484extern "C"
22485#endif
22486char gethostbyname ();
22487int main (void)
22488{
22489return gethostbyname ();
22490 ;
22491 return 0;
22492}
22493_ACEOF
22494if ac_fn_c_try_link "$LINENO"
22495then :
22496 ac_cv_lib_network_gethostbyname=yes
22497else $as_nop
22498 ac_cv_lib_network_gethostbyname=no
22499fi
22500rm -f core conftest.err conftest.$ac_objext conftest.beam \
22501 conftest$ac_exeext conftest.$ac_ext
22502LIBS=$ac_check_lib_save_LIBS
22503fi
22504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
22505printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
22506if test "x$ac_cv_lib_network_gethostbyname" = xyes
22507then :
22508 HAVE_GETHOSTBYNAME="1"
22509 LIBS="-lnetwork $LIBS"
22510
22511fi
22512
22513fi
22514
22515if test "$HAVE_GETHOSTBYNAME" != "1"; then
22516 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22517fi
22518
22519
22520curl_includes_winsock2="\
22521/* includes start */
22522#ifdef HAVE_WINDOWS_H
22523# ifndef WIN32_LEAN_AND_MEAN
22524# define WIN32_LEAN_AND_MEAN
22525# endif
22526# include <windows.h>
22527# ifdef HAVE_WINSOCK2_H
22528# include <winsock2.h>
22529# endif
22530#endif
22531/* includes end */"
22532
22533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22534printf %s "checking for windows.h... " >&6; }
22535if test ${curl_cv_header_windows_h+y}
22536then :
22537 printf %s "(cached) " >&6
22538else $as_nop
22539
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541/* end confdefs.h. */
22542
22543
22544#undef inline
22545#ifndef WIN32_LEAN_AND_MEAN
22546#define WIN32_LEAN_AND_MEAN
22547#endif
22548#include <windows.h>
22549
22550int main (void)
22551{
22552
22553#if defined(__CYGWIN__) || defined(__CEGCC__)
22554 HAVE_WINDOWS_H shall not be defined.
22555#else
22556 int dummy=2*WINVER;
22557#endif
22558
22559 ;
22560 return 0;
22561}
22562
22563_ACEOF
22564if ac_fn_c_try_compile "$LINENO"
22565then :
22566
22567 curl_cv_header_windows_h="yes"
22568
22569else $as_nop
22570
22571 curl_cv_header_windows_h="no"
22572
22573fi
22574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22575
22576fi
22577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
22578printf "%s\n" "$curl_cv_header_windows_h" >&6; }
22579 case "$curl_cv_header_windows_h" in
22580 yes)
22581
22582printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
22583
22584 ;;
22585 esac
22586
22587
22588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22589printf %s "checking for winsock2.h... " >&6; }
22590if test ${curl_cv_header_winsock2_h+y}
22591then :
22592 printf %s "(cached) " >&6
22593else $as_nop
22594
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596/* end confdefs.h. */
22597
22598
22599#undef inline
22600#ifndef WIN32_LEAN_AND_MEAN
22601#define WIN32_LEAN_AND_MEAN
22602#endif
22603#include <windows.h>
22604#include <winsock2.h>
22605
22606int main (void)
22607{
22608
22609#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22610 HAVE_WINSOCK2_H shall not be defined.
22611#else
22612 int dummy=2*IPPROTO_ESP;
22613#endif
22614
22615 ;
22616 return 0;
22617}
22618
22619_ACEOF
22620if ac_fn_c_try_compile "$LINENO"
22621then :
22622
22623 curl_cv_header_winsock2_h="yes"
22624
22625else $as_nop
22626
22627 curl_cv_header_winsock2_h="no"
22628
22629fi
22630rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22631
22632fi
22633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
22634printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
22635 case "$curl_cv_header_winsock2_h" in
22636 yes)
22637
22638printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
22639
22640 ;;
22641 esac
22642
22643
22644
22645curl_includes_bsdsocket="\
22646/* includes start */
22647#if defined(HAVE_PROTO_BSDSOCKET_H)
22648# define __NO_NET_API
22649# define __USE_INLINE__
22650# include <proto/bsdsocket.h>
22651# ifdef HAVE_SYS_IOCTL_H
22652# include <sys/ioctl.h>
22653# endif
22654# ifdef __amigaos4__
22655struct SocketIFace *ISocket = NULL;
22656# else
22657struct Library *SocketBase = NULL;
22658# endif
22659# define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
22660#endif
22661/* includes end */"
22662 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
22663"
22664if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
22665then :
22666 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22667
22668fi
22669
22670
22671
22672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22673printf %s "checking for connect in libraries... " >&6; }
22674 tst_connect_save_LIBS="$LIBS"
22675 tst_connect_need_LIBS="unknown"
22676 for tst_lib in '' '-lsocket' ; do
22677 if test "$tst_connect_need_LIBS" = "unknown"; then
22678 LIBS="$tst_lib $tst_connect_save_LIBS"
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680/* end confdefs.h. */
22681
22682
22683 $curl_includes_winsock2
22684 $curl_includes_bsdsocket
22685 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
22686 int connect(int, void*, int);
22687 #endif
22688
22689int main (void)
22690{
22691
22692 if(0 != connect(0, 0, 0))
22693 return 1;
22694
22695 ;
22696 return 0;
22697}
22698
22699_ACEOF
22700if ac_fn_c_try_link "$LINENO"
22701then :
22702
22703 tst_connect_need_LIBS="$tst_lib"
22704
22705fi
22706rm -f core conftest.err conftest.$ac_objext conftest.beam \
22707 conftest$ac_exeext conftest.$ac_ext
22708 fi
22709 done
22710 LIBS="$tst_connect_save_LIBS"
22711 #
22712 case X-"$tst_connect_need_LIBS" in
22713 X-unknown)
22714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22715printf "%s\n" "cannot find connect" >&6; }
22716 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22717 ;;
22718 X-)
22719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22720printf "%s\n" "yes" >&6; }
22721 ;;
22722 *)
22723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22724printf "%s\n" "$tst_connect_need_LIBS" >&6; }
22725 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22726 ;;
22727 esac
22728
22729
22730CURL_NETWORK_LIBS=$LIBS
22731
22732
22733 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22734if test "x$ac_cv_header_sys_types_h" = xyes
22735then :
22736 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
22737
22738fi
22739ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22740if test "x$ac_cv_header_sys_time_h" = xyes
22741then :
22742 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22743
22744fi
22745
22746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22747printf %s "checking for monotonic clock_gettime... " >&6; }
22748 #
22749 if test "x$dontwant_rt" = "xno" ; then
22750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22751/* end confdefs.h. */
22752
22753
22754#ifdef HAVE_SYS_TYPES_H
22755#include <sys/types.h>
22756#endif
22757#ifdef HAVE_SYS_TIME_H
22758#include <sys/time.h>
22759#endif
22760#include <time.h>
22761
22762int main (void)
22763{
22764
22765 struct timespec ts;
22766 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22767
22768 ;
22769 return 0;
22770}
22771
22772_ACEOF
22773if ac_fn_c_try_compile "$LINENO"
22774then :
22775
22776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22777printf "%s\n" "yes" >&6; }
22778 curl_func_clock_gettime="yes"
22779
22780else $as_nop
22781
22782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22783printf "%s\n" "no" >&6; }
22784 curl_func_clock_gettime="no"
22785
22786fi
22787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22788 fi
22789
22790
22791 #
22792 if test "$curl_func_clock_gettime" = "yes"; then
22793 #
22794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
22795printf %s "checking for clock_gettime in libraries... " >&6; }
22796 #
22797 curl_cv_save_LIBS="$LIBS"
22798 curl_cv_gclk_LIBS="unknown"
22799 #
22800 for x_xlibs in '' '-lrt' '-lposix4' ; do
22801 if test "$curl_cv_gclk_LIBS" = "unknown"; then
22802 if test -z "$x_xlibs"; then
22803 LIBS="$curl_cv_save_LIBS"
22804 else
22805 LIBS="$x_xlibs $curl_cv_save_LIBS"
22806 fi
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808/* end confdefs.h. */
22809
22810
22811#ifdef HAVE_SYS_TYPES_H
22812#include <sys/types.h>
22813#endif
22814#ifdef HAVE_SYS_TIME_H
22815#include <sys/time.h>
22816#endif
22817#include <time.h>
22818
22819int main (void)
22820{
22821
22822 struct timespec ts;
22823 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22824
22825 ;
22826 return 0;
22827}
22828
22829_ACEOF
22830if ac_fn_c_try_link "$LINENO"
22831then :
22832
22833 curl_cv_gclk_LIBS="$x_xlibs"
22834
22835fi
22836rm -f core conftest.err conftest.$ac_objext conftest.beam \
22837 conftest$ac_exeext conftest.$ac_ext
22838 fi
22839 done
22840 #
22841 LIBS="$curl_cv_save_LIBS"
22842 #
22843 case X-"$curl_cv_gclk_LIBS" in
22844 X-unknown)
22845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
22846printf "%s\n" "cannot find clock_gettime" >&6; }
22847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22848printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22849 curl_func_clock_gettime="no"
22850 ;;
22851 X-)
22852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
22853printf "%s\n" "no additional lib required" >&6; }
22854 curl_func_clock_gettime="yes"
22855 ;;
22856 *)
22857 if test -z "$curl_cv_save_LIBS"; then
22858 LIBS="$curl_cv_gclk_LIBS"
22859 else
22860 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
22861 fi
22862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
22863printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
22864 curl_func_clock_gettime="yes"
22865 ;;
22866 esac
22867 #
22868 if test "x$cross_compiling" != "xyes" &&
22869 test "$curl_func_clock_gettime" = "yes"; then
22870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
22871printf %s "checking if monotonic clock_gettime works... " >&6; }
22872
22873 case $host_os in
22874 darwin*)
22875 if test "$cross_compiling" = yes
22876then :
22877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22879as_fn_error $? "cannot run test program while cross compiling
22880See \`config.log' for more details" "$LINENO" 5; }
22881else $as_nop
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883/* end confdefs.h. */
22884
22885
22886#ifdef HAVE_STDLIB_H
22887#include <stdlib.h>
22888#endif
22889#ifdef HAVE_SYS_TYPES_H
22890#include <sys/types.h>
22891#endif
22892#ifdef HAVE_SYS_TIME_H
22893#include <sys/time.h>
22894#endif
22895#include <time.h>
22896
22897int main (void)
22898{
22899
22900 struct timespec ts;
22901 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22902 exit(0);
22903 else
22904 exit(1);
22905
22906 ;
22907 return 0;
22908}
22909
22910_ACEOF
22911if ac_fn_c_try_run "$LINENO"
22912then :
22913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22914printf "%s\n" "yes" >&6; }
22915
22916else $as_nop
22917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22918printf "%s\n" "no" >&6; }
22919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22920printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22921 curl_func_clock_gettime="no"
22922 LIBS="$curl_cv_save_LIBS"
22923
22924fi
22925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926 conftest.$ac_objext conftest.beam conftest.$ac_ext
22927fi
22928
22929 ;;
22930 *)
22931 old=$LD_LIBRARY_PATH
22932 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
22933 export LD_LIBRARY_PATH
22934 if test "$cross_compiling" = yes
22935then :
22936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22937printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22938as_fn_error $? "cannot run test program while cross compiling
22939See \`config.log' for more details" "$LINENO" 5; }
22940else $as_nop
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942/* end confdefs.h. */
22943
22944
22945#ifdef HAVE_STDLIB_H
22946#include <stdlib.h>
22947#endif
22948#ifdef HAVE_SYS_TYPES_H
22949#include <sys/types.h>
22950#endif
22951#ifdef HAVE_SYS_TIME_H
22952#include <sys/time.h>
22953#endif
22954#include <time.h>
22955
22956int main (void)
22957{
22958
22959 struct timespec ts;
22960 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22961 exit(0);
22962 else
22963 exit(1);
22964
22965 ;
22966 return 0;
22967}
22968
22969_ACEOF
22970if ac_fn_c_try_run "$LINENO"
22971then :
22972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22973printf "%s\n" "yes" >&6; }
22974
22975else $as_nop
22976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22977printf "%s\n" "no" >&6; }
22978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22979printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22980 curl_func_clock_gettime="no"
22981 LIBS="$curl_cv_save_LIBS"
22982
22983fi
22984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22985 conftest.$ac_objext conftest.beam conftest.$ac_ext
22986fi
22987
22988 LD_LIBRARY_PATH=$old # restore
22989 ;;
22990 esac
22991
22992 fi
22993 #
22994 case "$curl_func_clock_gettime" in
22995 yes)
22996
22997printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
22998
22999 ;;
23000 esac
23001 #
23002 fi
23003 #
23004
23005
23006CURL_NETWORK_AND_TIME_LIBS=$LIBS
23007
23008
23009
23010clean_CPPFLAGS=$CPPFLAGS
23011clean_LDFLAGS=$LDFLAGS
23012clean_LIBS=$LIBS
23013ZLIB_LIBS=""
23014
23015# Check whether --with-zlib was given.
23016if test ${with_zlib+y}
23017then :
23018 withval=$with_zlib; OPT_ZLIB="$withval"
23019fi
23020
23021
23022if test "$OPT_ZLIB" = "no" ; then
23023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23024printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23025else
23026 if test "$OPT_ZLIB" = "yes" ; then
23027 OPT_ZLIB=""
23028 fi
23029
23030 if test -z "$OPT_ZLIB" ; then
23031
23032 if test -n "$PKG_CONFIG"; then
23033 PKGCONFIG="$PKG_CONFIG"
23034 else
23035 if test -n "$ac_tool_prefix"; then
23036 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23037set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23039printf %s "checking for $ac_word... " >&6; }
23040if test ${ac_cv_path_PKGCONFIG+y}
23041then :
23042 printf %s "(cached) " >&6
23043else $as_nop
23044 case $PKGCONFIG in
23045 [\\/]* | ?:[\\/]*)
23046 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23047 ;;
23048 *)
23049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23050as_dummy="$PATH:/usr/bin:/usr/local/bin"
23051for as_dir in $as_dummy
23052do
23053 IFS=$as_save_IFS
23054 case $as_dir in #(((
23055 '') as_dir=./ ;;
23056 */) ;;
23057 *) as_dir=$as_dir/ ;;
23058 esac
23059 for ac_exec_ext in '' $ac_executable_extensions; do
23060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23061 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23063 break 2
23064 fi
23065done
23066 done
23067IFS=$as_save_IFS
23068
23069 ;;
23070esac
23071fi
23072PKGCONFIG=$ac_cv_path_PKGCONFIG
23073if test -n "$PKGCONFIG"; then
23074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23075printf "%s\n" "$PKGCONFIG" >&6; }
23076else
23077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078printf "%s\n" "no" >&6; }
23079fi
23080
23081
23082fi
23083if test -z "$ac_cv_path_PKGCONFIG"; then
23084 ac_pt_PKGCONFIG=$PKGCONFIG
23085 # Extract the first word of "pkg-config", so it can be a program name with args.
23086set dummy pkg-config; ac_word=$2
23087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23088printf %s "checking for $ac_word... " >&6; }
23089if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23090then :
23091 printf %s "(cached) " >&6
23092else $as_nop
23093 case $ac_pt_PKGCONFIG in
23094 [\\/]* | ?:[\\/]*)
23095 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23096 ;;
23097 *)
23098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23099as_dummy="$PATH:/usr/bin:/usr/local/bin"
23100for as_dir in $as_dummy
23101do
23102 IFS=$as_save_IFS
23103 case $as_dir in #(((
23104 '') as_dir=./ ;;
23105 */) ;;
23106 *) as_dir=$as_dir/ ;;
23107 esac
23108 for ac_exec_ext in '' $ac_executable_extensions; do
23109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23110 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23112 break 2
23113 fi
23114done
23115 done
23116IFS=$as_save_IFS
23117
23118 ;;
23119esac
23120fi
23121ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23122if test -n "$ac_pt_PKGCONFIG"; then
23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23124printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23125else
23126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23127printf "%s\n" "no" >&6; }
23128fi
23129
23130 if test "x$ac_pt_PKGCONFIG" = x; then
23131 PKGCONFIG="no"
23132 else
23133 case $cross_compiling:$ac_tool_warned in
23134yes:)
23135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23136printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23137ac_tool_warned=yes ;;
23138esac
23139 PKGCONFIG=$ac_pt_PKGCONFIG
23140 fi
23141else
23142 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23143fi
23144
23145 fi
23146
23147 if test "x$PKGCONFIG" != "xno"; then
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23149printf %s "checking for zlib options with pkg-config... " >&6; }
23150 itexists=`
23151 if test -n ""; then
23152 PKG_CONFIG_LIBDIR=""
23153 export PKG_CONFIG_LIBDIR
23154 fi
23155 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
23156
23157 if test -z "$itexists"; then
23158 PKGCONFIG="no"
23159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23160printf "%s\n" "no" >&6; }
23161 else
23162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23163printf "%s\n" "found" >&6; }
23164 fi
23165 fi
23166
23167
23168 if test "$PKGCONFIG" != "no" ; then
23169 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
23170 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
23171 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
23172 OPT_ZLIB=""
23173 HAVE_LIBZ="1"
23174 fi
23175
23176 if test -z "$HAVE_LIBZ"; then
23177
23178
23179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
23180printf %s "checking for inflateEnd in -lz... " >&6; }
23181if test ${ac_cv_lib_z_inflateEnd+y}
23182then :
23183 printf %s "(cached) " >&6
23184else $as_nop
23185 ac_check_lib_save_LIBS=$LIBS
23186LIBS="-lz $LIBS"
23187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188/* end confdefs.h. */
23189
23190
23191#ifdef __cplusplus
23192extern "C"
23193#endif
23194char inflateEnd ();
23195int main (void)
23196{
23197return inflateEnd ();
23198 ;
23199 return 0;
23200}
23201_ACEOF
23202if ac_fn_c_try_link "$LINENO"
23203then :
23204 ac_cv_lib_z_inflateEnd=yes
23205else $as_nop
23206 ac_cv_lib_z_inflateEnd=no
23207fi
23208rm -f core conftest.err conftest.$ac_objext conftest.beam \
23209 conftest$ac_exeext conftest.$ac_ext
23210LIBS=$ac_check_lib_save_LIBS
23211fi
23212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
23213printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
23214if test "x$ac_cv_lib_z_inflateEnd" = xyes
23215then :
23216 HAVE_LIBZ="1"
23217 LIBS="-lz $LIBS"
23218else $as_nop
23219 OPT_ZLIB="/usr/local"
23220fi
23221
23222 fi
23223 fi
23224
23225 if test -n "$OPT_ZLIB"; then
23226 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
23227 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
23228 fi
23229
23230 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23231if test "x$ac_cv_header_zlib_h" = xyes
23232then :
23233
23234 HAVE_ZLIB_H="1"
23235 if test "$HAVE_LIBZ" != "1"; then
23236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
23237printf %s "checking for gzread in -lz... " >&6; }
23238if test ${ac_cv_lib_z_gzread+y}
23239then :
23240 printf %s "(cached) " >&6
23241else $as_nop
23242 ac_check_lib_save_LIBS=$LIBS
23243LIBS="-lz $LIBS"
23244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245/* end confdefs.h. */
23246
23247
23248#ifdef __cplusplus
23249extern "C"
23250#endif
23251char gzread ();
23252int main (void)
23253{
23254return gzread ();
23255 ;
23256 return 0;
23257}
23258_ACEOF
23259if ac_fn_c_try_link "$LINENO"
23260then :
23261 ac_cv_lib_z_gzread=yes
23262else $as_nop
23263 ac_cv_lib_z_gzread=no
23264fi
23265rm -f core conftest.err conftest.$ac_objext conftest.beam \
23266 conftest$ac_exeext conftest.$ac_ext
23267LIBS=$ac_check_lib_save_LIBS
23268fi
23269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
23270printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
23271if test "x$ac_cv_lib_z_gzread" = xyes
23272then :
23273
23274 HAVE_LIBZ="1"
23275 LIBS="-lz $LIBS"
23276
23277else $as_nop
23278 CPPFLAGS=$clean_CPPFLAGS
23279 LDFLAGS=$clean_LDFLAGS
23280fi
23281
23282 fi
23283
23284else $as_nop
23285
23286 CPPFLAGS=$clean_CPPFLAGS
23287 LDFLAGS=$clean_LDFLAGS
23288
23289fi
23290
23291
23292 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
23293 then
23294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
23295printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
23296 HAVE_LIBZ=""
23297 CPPFLAGS=$clean_CPPFLAGS
23298 LDFLAGS=$clean_LDFLAGS
23299 LIBS=$clean_LIBS
23300 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
23301 then
23302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
23303printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
23304 CPPFLAGS=$clean_CPPFLAGS
23305 LDFLAGS=$clean_LDFLAGS
23306 LIBS=$clean_LIBS
23307 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
23308 then
23309
23310
23311printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23312
23313
23314 ZLIB_LIBS="-lz"
23315 LIBS="-lz $clean_LIBS"
23316
23317 AMFIXLIB="1"
23318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
23319printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
23320 curl_zlib_msg="enabled"
23321 fi
23322fi
23323
23324 if test x"$AMFIXLIB" = x1; then
23325 HAVE_LIBZ_TRUE=
23326 HAVE_LIBZ_FALSE='#'
23327else
23328 HAVE_LIBZ_TRUE='#'
23329 HAVE_LIBZ_FALSE=
23330fi
23331
23332
23333
23334
23335
23336OPT_BROTLI=off
23337
23338# Check whether --with-brotli was given.
23339if test ${with_brotli+y}
23340then :
23341 withval=$with_brotli; OPT_BROTLI=$withval
23342fi
23343
23344
23345if test X"$OPT_BROTLI" != Xno; then
23346 CLEANLDFLAGS="$LDFLAGS"
23347 CLEANCPPFLAGS="$CPPFLAGS"
23348 CLEANLIBS="$LIBS"
23349
23350 case "$OPT_BROTLI" in
23351 yes)
23352
23353 if test -n "$PKG_CONFIG"; then
23354 PKGCONFIG="$PKG_CONFIG"
23355 else
23356 if test -n "$ac_tool_prefix"; then
23357 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23358set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23360printf %s "checking for $ac_word... " >&6; }
23361if test ${ac_cv_path_PKGCONFIG+y}
23362then :
23363 printf %s "(cached) " >&6
23364else $as_nop
23365 case $PKGCONFIG in
23366 [\\/]* | ?:[\\/]*)
23367 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23368 ;;
23369 *)
23370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23371as_dummy="$PATH:/usr/bin:/usr/local/bin"
23372for as_dir in $as_dummy
23373do
23374 IFS=$as_save_IFS
23375 case $as_dir in #(((
23376 '') as_dir=./ ;;
23377 */) ;;
23378 *) as_dir=$as_dir/ ;;
23379 esac
23380 for ac_exec_ext in '' $ac_executable_extensions; do
23381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23382 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23384 break 2
23385 fi
23386done
23387 done
23388IFS=$as_save_IFS
23389
23390 ;;
23391esac
23392fi
23393PKGCONFIG=$ac_cv_path_PKGCONFIG
23394if test -n "$PKGCONFIG"; then
23395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23396printf "%s\n" "$PKGCONFIG" >&6; }
23397else
23398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399printf "%s\n" "no" >&6; }
23400fi
23401
23402
23403fi
23404if test -z "$ac_cv_path_PKGCONFIG"; then
23405 ac_pt_PKGCONFIG=$PKGCONFIG
23406 # Extract the first word of "pkg-config", so it can be a program name with args.
23407set dummy pkg-config; ac_word=$2
23408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23409printf %s "checking for $ac_word... " >&6; }
23410if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23411then :
23412 printf %s "(cached) " >&6
23413else $as_nop
23414 case $ac_pt_PKGCONFIG in
23415 [\\/]* | ?:[\\/]*)
23416 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23417 ;;
23418 *)
23419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23420as_dummy="$PATH:/usr/bin:/usr/local/bin"
23421for as_dir in $as_dummy
23422do
23423 IFS=$as_save_IFS
23424 case $as_dir in #(((
23425 '') as_dir=./ ;;
23426 */) ;;
23427 *) as_dir=$as_dir/ ;;
23428 esac
23429 for ac_exec_ext in '' $ac_executable_extensions; do
23430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23431 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23433 break 2
23434 fi
23435done
23436 done
23437IFS=$as_save_IFS
23438
23439 ;;
23440esac
23441fi
23442ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23443if test -n "$ac_pt_PKGCONFIG"; then
23444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23445printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23446else
23447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23448printf "%s\n" "no" >&6; }
23449fi
23450
23451 if test "x$ac_pt_PKGCONFIG" = x; then
23452 PKGCONFIG="no"
23453 else
23454 case $cross_compiling:$ac_tool_warned in
23455yes:)
23456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23457printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23458ac_tool_warned=yes ;;
23459esac
23460 PKGCONFIG=$ac_pt_PKGCONFIG
23461 fi
23462else
23463 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23464fi
23465
23466 fi
23467
23468 if test "x$PKGCONFIG" != "xno"; then
23469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
23470printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
23471 itexists=`
23472 if test -n ""; then
23473 PKG_CONFIG_LIBDIR=""
23474 export PKG_CONFIG_LIBDIR
23475 fi
23476 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
23477
23478 if test -z "$itexists"; then
23479 PKGCONFIG="no"
23480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23481printf "%s\n" "no" >&6; }
23482 else
23483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23484printf "%s\n" "found" >&6; }
23485 fi
23486 fi
23487
23488
23489 if test "$PKGCONFIG" != "no" ; then
23490 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
23491 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
23492 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
23493 version=`$PKGCONFIG --modversion libbrotlidec`
23494 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
23495 fi
23496
23497 ;;
23498 off)
23499 ;;
23500 *)
23501 PREFIX_BROTLI=$OPT_BROTLI
23502 ;;
23503 esac
23504
23505 if test -n "$PREFIX_BROTLI"; then
23506 LIB_BROTLI="-lbrotlidec"
23507 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
23508 CPP_BROTLI=-I${PREFIX_BROTLI}/include
23509 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
23510 fi
23511
23512 LDFLAGS="$LDFLAGS $LD_BROTLI"
23513 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
23514 LIBS="$LIB_BROTLI $LIBS"
23515
23516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
23517printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
23518if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
23519then :
23520 printf %s "(cached) " >&6
23521else $as_nop
23522 ac_check_lib_save_LIBS=$LIBS
23523LIBS="-lbrotlidec $LIBS"
23524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525/* end confdefs.h. */
23526
23527
23528#ifdef __cplusplus
23529extern "C"
23530#endif
23531char BrotliDecoderDecompress ();
23532int main (void)
23533{
23534return BrotliDecoderDecompress ();
23535 ;
23536 return 0;
23537}
23538_ACEOF
23539if ac_fn_c_try_link "$LINENO"
23540then :
23541 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
23542else $as_nop
23543 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
23544fi
23545rm -f core conftest.err conftest.$ac_objext conftest.beam \
23546 conftest$ac_exeext conftest.$ac_ext
23547LIBS=$ac_check_lib_save_LIBS
23548fi
23549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
23550printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
23551if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
23552then :
23553 printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
23554
23555 LIBS="-lbrotlidec $LIBS"
23556
23557fi
23558
23559
23560 for ac_header in brotli/decode.h
23561do :
23562 ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
23563if test "x$ac_cv_header_brotli_decode_h" = xyes
23564then :
23565 printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
23566 curl_brotli_msg="enabled (libbrotlidec)"
23567 HAVE_BROTLI=1
23568
23569printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
23570
23571 HAVE_BROTLI=1
23572
23573
23574fi
23575
23576done
23577
23578 if test X"$OPT_BROTLI" != Xoff &&
23579 test "$HAVE_BROTLI" != "1"; then
23580 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
23581 fi
23582
23583 if test "$HAVE_BROTLI" = "1"; then
23584 if test -n "$DIR_BROTLI"; then
23585
23586 if test "x$cross_compiling" != "xyes"; then
23587 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
23588 export CURL_LIBRARY_PATH
23589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
23590printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
23591 fi
23592 fi
23593 else
23594 LDFLAGS=$CLEANLDFLAGS
23595 CPPFLAGS=$CLEANCPPFLAGS
23596 LIBS=$CLEANLIBS
23597 fi
23598fi
23599
23600
23601OPT_ZSTD=off
23602
23603# Check whether --with-zstd was given.
23604if test ${with_zstd+y}
23605then :
23606 withval=$with_zstd; OPT_ZSTD=$withval
23607fi
23608
23609
23610if test X"$OPT_ZSTD" != Xno; then
23611 CLEANLDFLAGS="$LDFLAGS"
23612 CLEANCPPFLAGS="$CPPFLAGS"
23613 CLEANLIBS="$LIBS"
23614
23615 case "$OPT_ZSTD" in
23616 yes)
23617
23618 if test -n "$PKG_CONFIG"; then
23619 PKGCONFIG="$PKG_CONFIG"
23620 else
23621 if test -n "$ac_tool_prefix"; then
23622 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23623set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23624{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23625printf %s "checking for $ac_word... " >&6; }
23626if test ${ac_cv_path_PKGCONFIG+y}
23627then :
23628 printf %s "(cached) " >&6
23629else $as_nop
23630 case $PKGCONFIG in
23631 [\\/]* | ?:[\\/]*)
23632 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23633 ;;
23634 *)
23635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23636as_dummy="$PATH:/usr/bin:/usr/local/bin"
23637for as_dir in $as_dummy
23638do
23639 IFS=$as_save_IFS
23640 case $as_dir in #(((
23641 '') as_dir=./ ;;
23642 */) ;;
23643 *) as_dir=$as_dir/ ;;
23644 esac
23645 for ac_exec_ext in '' $ac_executable_extensions; do
23646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23647 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23649 break 2
23650 fi
23651done
23652 done
23653IFS=$as_save_IFS
23654
23655 ;;
23656esac
23657fi
23658PKGCONFIG=$ac_cv_path_PKGCONFIG
23659if test -n "$PKGCONFIG"; then
23660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23661printf "%s\n" "$PKGCONFIG" >&6; }
23662else
23663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23664printf "%s\n" "no" >&6; }
23665fi
23666
23667
23668fi
23669if test -z "$ac_cv_path_PKGCONFIG"; then
23670 ac_pt_PKGCONFIG=$PKGCONFIG
23671 # Extract the first word of "pkg-config", so it can be a program name with args.
23672set dummy pkg-config; ac_word=$2
23673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23674printf %s "checking for $ac_word... " >&6; }
23675if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23676then :
23677 printf %s "(cached) " >&6
23678else $as_nop
23679 case $ac_pt_PKGCONFIG in
23680 [\\/]* | ?:[\\/]*)
23681 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23682 ;;
23683 *)
23684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23685as_dummy="$PATH:/usr/bin:/usr/local/bin"
23686for as_dir in $as_dummy
23687do
23688 IFS=$as_save_IFS
23689 case $as_dir in #(((
23690 '') as_dir=./ ;;
23691 */) ;;
23692 *) as_dir=$as_dir/ ;;
23693 esac
23694 for ac_exec_ext in '' $ac_executable_extensions; do
23695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23696 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23698 break 2
23699 fi
23700done
23701 done
23702IFS=$as_save_IFS
23703
23704 ;;
23705esac
23706fi
23707ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23708if test -n "$ac_pt_PKGCONFIG"; then
23709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23710printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23711else
23712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23713printf "%s\n" "no" >&6; }
23714fi
23715
23716 if test "x$ac_pt_PKGCONFIG" = x; then
23717 PKGCONFIG="no"
23718 else
23719 case $cross_compiling:$ac_tool_warned in
23720yes:)
23721{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23722printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23723ac_tool_warned=yes ;;
23724esac
23725 PKGCONFIG=$ac_pt_PKGCONFIG
23726 fi
23727else
23728 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23729fi
23730
23731 fi
23732
23733 if test "x$PKGCONFIG" != "xno"; then
23734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
23735printf %s "checking for libzstd options with pkg-config... " >&6; }
23736 itexists=`
23737 if test -n ""; then
23738 PKG_CONFIG_LIBDIR=""
23739 export PKG_CONFIG_LIBDIR
23740 fi
23741 $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
23742
23743 if test -z "$itexists"; then
23744 PKGCONFIG="no"
23745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746printf "%s\n" "no" >&6; }
23747 else
23748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23749printf "%s\n" "found" >&6; }
23750 fi
23751 fi
23752
23753
23754 if test "$PKGCONFIG" != "no" ; then
23755 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
23756 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
23757 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
23758 version=`$PKGCONFIG --modversion libzstd`
23759 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
23760 fi
23761
23762 ;;
23763 off)
23764 ;;
23765 *)
23766 PREFIX_ZSTD=$OPT_ZSTD
23767 ;;
23768 esac
23769
23770 if test -n "$PREFIX_ZSTD"; then
23771 LIB_ZSTD="-lzstd"
23772 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
23773 CPP_ZSTD=-I${PREFIX_ZSTD}/include
23774 DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
23775 fi
23776
23777 LDFLAGS="$LDFLAGS $LD_ZSTD"
23778 CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
23779 LIBS="$LIB_ZSTD $LIBS"
23780
23781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
23782printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
23783if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
23784then :
23785 printf %s "(cached) " >&6
23786else $as_nop
23787 ac_check_lib_save_LIBS=$LIBS
23788LIBS="-lzstd $LIBS"
23789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790/* end confdefs.h. */
23791
23792
23793#ifdef __cplusplus
23794extern "C"
23795#endif
23796char ZSTD_createDStream ();
23797int main (void)
23798{
23799return ZSTD_createDStream ();
23800 ;
23801 return 0;
23802}
23803_ACEOF
23804if ac_fn_c_try_link "$LINENO"
23805then :
23806 ac_cv_lib_zstd_ZSTD_createDStream=yes
23807else $as_nop
23808 ac_cv_lib_zstd_ZSTD_createDStream=no
23809fi
23810rm -f core conftest.err conftest.$ac_objext conftest.beam \
23811 conftest$ac_exeext conftest.$ac_ext
23812LIBS=$ac_check_lib_save_LIBS
23813fi
23814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
23815printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
23816if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
23817then :
23818 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
23819
23820 LIBS="-lzstd $LIBS"
23821
23822fi
23823
23824
23825 for ac_header in zstd.h
23826do :
23827 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
23828if test "x$ac_cv_header_zstd_h" = xyes
23829then :
23830 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
23831 curl_zstd_msg="enabled (libzstd)"
23832 HAVE_ZSTD=1
23833
23834printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
23835
23836 HAVE_ZSTD=1
23837
23838
23839fi
23840
23841done
23842
23843 if test X"$OPT_ZSTD" != Xoff &&
23844 test "$HAVE_ZSTD" != "1"; then
23845 as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
23846 fi
23847
23848 if test "$HAVE_ZSTD" = "1"; then
23849 if test -n "$DIR_ZSTD"; then
23850
23851 if test "x$cross_compiling" != "xyes"; then
23852 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
23853 export CURL_LIBRARY_PATH
23854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
23855printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
23856 fi
23857 fi
23858 else
23859 LDFLAGS=$CLEANLDFLAGS
23860 CPPFLAGS=$CLEANCPPFLAGS
23861 LIBS=$CLEANLIBS
23862 fi
23863fi
23864
23865
23866LDAPLIBNAME=""
23867
23868# Check whether --with-ldap-lib was given.
23869if test ${with_ldap_lib+y}
23870then :
23871 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
23872fi
23873
23874
23875LBERLIBNAME=""
23876
23877# Check whether --with-lber-lib was given.
23878if test ${with_lber_lib+y}
23879then :
23880 withval=$with_lber_lib; LBERLIBNAME="$withval"
23881fi
23882
23883
23884if test x$CURL_DISABLE_LDAP != x1 ; then
23885
23886
23887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
23888printf %s "checking for lber.h... " >&6; }
23889if test ${curl_cv_header_lber_h+y}
23890then :
23891 printf %s "(cached) " >&6
23892else $as_nop
23893
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895/* end confdefs.h. */
23896
23897
23898#undef inline
23899#ifdef HAVE_WINDOWS_H
23900#ifndef WIN32_LEAN_AND_MEAN
23901#define WIN32_LEAN_AND_MEAN
23902#endif
23903#include <windows.h>
23904#else
23905#ifdef HAVE_SYS_TYPES_H
23906#include <sys/types.h>
23907#endif
23908#endif
23909#ifndef NULL
23910#define NULL (void *)0
23911#endif
23912#include <lber.h>
23913
23914int main (void)
23915{
23916
23917 BerValue *bvp = NULL;
23918 BerElement *bep = ber_init(bvp);
23919 ber_free(bep, 1);
23920
23921 ;
23922 return 0;
23923}
23924
23925_ACEOF
23926if ac_fn_c_try_compile "$LINENO"
23927then :
23928
23929 curl_cv_header_lber_h="yes"
23930
23931else $as_nop
23932
23933 curl_cv_header_lber_h="no"
23934
23935fi
23936rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23937
23938fi
23939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
23940printf "%s\n" "$curl_cv_header_lber_h" >&6; }
23941 if test "$curl_cv_header_lber_h" = "yes"; then
23942
23943printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
23944
23945 #
23946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23947/* end confdefs.h. */
23948
23949
23950#undef inline
23951#ifdef HAVE_WINDOWS_H
23952#ifndef WIN32_LEAN_AND_MEAN
23953#define WIN32_LEAN_AND_MEAN
23954#endif
23955#include <windows.h>
23956#else
23957#ifdef HAVE_SYS_TYPES_H
23958#include <sys/types.h>
23959#endif
23960#endif
23961#ifndef NULL
23962#define NULL (void *)0
23963#endif
23964#ifndef LDAP_DEPRECATED
23965#define LDAP_DEPRECATED 1
23966#endif
23967#include <ldap.h>
23968
23969int main (void)
23970{
23971
23972 BerValue *bvp = NULL;
23973 BerElement *bep = ber_init(bvp);
23974 ber_free(bep, 1);
23975
23976 ;
23977 return 0;
23978}
23979
23980_ACEOF
23981if ac_fn_c_try_compile "$LINENO"
23982then :
23983
23984 curl_cv_need_header_lber_h="no"
23985
23986else $as_nop
23987
23988 curl_cv_need_header_lber_h="yes"
23989
23990fi
23991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23992 #
23993 case "$curl_cv_need_header_lber_h" in
23994 yes)
23995
23996printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
23997
23998 ;;
23999 esac
24000 fi
24001
24002
24003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24004printf %s "checking for ldap.h... " >&6; }
24005if test ${curl_cv_header_ldap_h+y}
24006then :
24007 printf %s "(cached) " >&6
24008else $as_nop
24009
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011/* end confdefs.h. */
24012
24013
24014#undef inline
24015#ifdef HAVE_WINDOWS_H
24016#ifndef WIN32_LEAN_AND_MEAN
24017#define WIN32_LEAN_AND_MEAN
24018#endif
24019#include <windows.h>
24020#else
24021#ifdef HAVE_SYS_TYPES_H
24022#include <sys/types.h>
24023#endif
24024#endif
24025#ifndef LDAP_DEPRECATED
24026#define LDAP_DEPRECATED 1
24027#endif
24028#ifdef NEED_LBER_H
24029#include <lber.h>
24030#endif
24031#include <ldap.h>
24032
24033int main (void)
24034{
24035
24036 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24037 int res = ldap_unbind(ldp);
24038
24039 ;
24040 return 0;
24041}
24042
24043_ACEOF
24044if ac_fn_c_try_compile "$LINENO"
24045then :
24046
24047 curl_cv_header_ldap_h="yes"
24048
24049else $as_nop
24050
24051 curl_cv_header_ldap_h="no"
24052
24053fi
24054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24055
24056fi
24057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24058printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24059 case "$curl_cv_header_ldap_h" in
24060 yes)
24061
24062printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24063
24064 ;;
24065 esac
24066
24067
24068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24069printf %s "checking for ldap_ssl.h... " >&6; }
24070if test ${curl_cv_header_ldap_ssl_h+y}
24071then :
24072 printf %s "(cached) " >&6
24073else $as_nop
24074
24075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24076/* end confdefs.h. */
24077
24078
24079#undef inline
24080#ifdef HAVE_WINDOWS_H
24081#ifndef WIN32_LEAN_AND_MEAN
24082#define WIN32_LEAN_AND_MEAN
24083#endif
24084#include <windows.h>
24085#else
24086#ifdef HAVE_SYS_TYPES_H
24087#include <sys/types.h>
24088#endif
24089#endif
24090#ifndef LDAP_DEPRECATED
24091#define LDAP_DEPRECATED 1
24092#endif
24093#ifdef NEED_LBER_H
24094#include <lber.h>
24095#endif
24096#ifdef HAVE_LDAP_H
24097#include <ldap.h>
24098#endif
24099#include <ldap_ssl.h>
24100
24101int main (void)
24102{
24103
24104 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
24105
24106 ;
24107 return 0;
24108}
24109
24110_ACEOF
24111if ac_fn_c_try_compile "$LINENO"
24112then :
24113
24114 curl_cv_header_ldap_ssl_h="yes"
24115
24116else $as_nop
24117
24118 curl_cv_header_ldap_ssl_h="no"
24119
24120fi
24121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24122
24123fi
24124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24125printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24126 case "$curl_cv_header_ldap_ssl_h" in
24127 yes)
24128
24129printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24130
24131 ;;
24132 esac
24133
24134
24135 if test -z "$LDAPLIBNAME" ; then
24136 if test "$curl_cv_native_windows" = "yes"; then
24137 LDAPLIBNAME="wldap32"
24138 LBERLIBNAME="no"
24139 fi
24140 fi
24141
24142 if test "$LDAPLIBNAME" ; then
24143 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
24144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
24145printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
24146if eval test \${$as_ac_Lib+y}
24147then :
24148 printf %s "(cached) " >&6
24149else $as_nop
24150 ac_check_lib_save_LIBS=$LIBS
24151LIBS="-l"$LDAPLIBNAME" $LIBS"
24152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153/* end confdefs.h. */
24154
24155
24156#ifdef __cplusplus
24157extern "C"
24158#endif
24159char ldap_init ();
24160int main (void)
24161{
24162return ldap_init ();
24163 ;
24164 return 0;
24165}
24166_ACEOF
24167if ac_fn_c_try_link "$LINENO"
24168then :
24169 eval "$as_ac_Lib=yes"
24170else $as_nop
24171 eval "$as_ac_Lib=no"
24172fi
24173rm -f core conftest.err conftest.$ac_objext conftest.beam \
24174 conftest$ac_exeext conftest.$ac_ext
24175LIBS=$ac_check_lib_save_LIBS
24176fi
24177eval ac_res=\$$as_ac_Lib
24178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24179printf "%s\n" "$ac_res" >&6; }
24180if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24181then :
24182 cat >>confdefs.h <<_ACEOF
24183#define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
24184_ACEOF
24185
24186 LIBS="-l"$LDAPLIBNAME" $LIBS"
24187
24188else $as_nop
24189
24190 if test -n "$ldap_askedfor"; then
24191 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24192 fi
24193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
24194printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
24195
24196printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24197
24198 CURL_DISABLE_LDAP=1
24199
24200
24201printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24202
24203 CURL_DISABLE_LDAPS=1
24204
24205fi
24206
24207 else
24208
24209 #
24210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
24211printf %s "checking for LDAP libraries... " >&6; }
24212 #
24213 u_libs=""
24214 #
24215
24216 #
24217 curl_cv_save_LIBS="$LIBS"
24218 curl_cv_ldap_LIBS="unknown"
24219 #
24220 for x_nlibs in '' "$u_libs" \
24221 '-lldap' \
24222 '-lldap -llber' \
24223 '-llber -lldap' \
24224 '-lldapssl -lldapx -lldapsdk' \
24225 '-lldapsdk -lldapx -lldapssl' \
24226 '-lldap -llber -lssl -lcrypto' ; do
24227
24228 if test "$curl_cv_ldap_LIBS" = "unknown"; then
24229 if test -z "$x_nlibs"; then
24230 LIBS="$curl_cv_save_LIBS"
24231 else
24232 LIBS="$x_nlibs $curl_cv_save_LIBS"
24233 fi
24234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24235/* end confdefs.h. */
24236
24237
24238#undef inline
24239#ifdef HAVE_WINDOWS_H
24240#ifndef WIN32_LEAN_AND_MEAN
24241#define WIN32_LEAN_AND_MEAN
24242#endif
24243#include <windows.h>
24244#else
24245#ifdef HAVE_SYS_TYPES_H
24246#include <sys/types.h>
24247#endif
24248#endif
24249#ifndef NULL
24250#define NULL (void *)0
24251#endif
24252#ifndef LDAP_DEPRECATED
24253#define LDAP_DEPRECATED 1
24254#endif
24255#ifdef NEED_LBER_H
24256#include <lber.h>
24257#endif
24258#ifdef HAVE_LDAP_H
24259#include <ldap.h>
24260#endif
24261
24262int main (void)
24263{
24264
24265 BerValue *bvp = NULL;
24266 BerElement *bep = ber_init(bvp);
24267 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24268 int res = ldap_unbind(ldp);
24269 ber_free(bep, 1);
24270
24271 ;
24272 return 0;
24273}
24274
24275_ACEOF
24276if ac_fn_c_try_link "$LINENO"
24277then :
24278
24279 curl_cv_ldap_LIBS="$x_nlibs"
24280
24281fi
24282rm -f core conftest.err conftest.$ac_objext conftest.beam \
24283 conftest$ac_exeext conftest.$ac_ext
24284 fi
24285 done
24286 #
24287 LIBS="$curl_cv_save_LIBS"
24288 #
24289 case X-"$curl_cv_ldap_LIBS" in
24290 X-unknown)
24291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
24292printf "%s\n" "cannot find LDAP libraries" >&6; }
24293 ;;
24294 X-)
24295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24296printf "%s\n" "no additional lib required" >&6; }
24297 ;;
24298 *)
24299 if test -z "$curl_cv_save_LIBS"; then
24300 LIBS="$curl_cv_ldap_LIBS"
24301 else
24302 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
24303 fi
24304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
24305printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
24306 ;;
24307 esac
24308 #
24309
24310 case X-"$curl_cv_ldap_LIBS" in
24311 X-unknown)
24312 if test -n "$ldap_askedfor"; then
24313 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24314 fi
24315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
24316printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
24317
24318printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24319
24320 CURL_DISABLE_LDAP=1
24321
24322
24323printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24324
24325 CURL_DISABLE_LDAPS=1
24326
24327 ;;
24328 esac
24329 fi
24330fi
24331
24332if test x$CURL_DISABLE_LDAP != x1 ; then
24333
24334 if test "$LBERLIBNAME" ; then
24335 if test "$LBERLIBNAME" != "no" ; then
24336 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24338printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24339if eval test \${$as_ac_Lib+y}
24340then :
24341 printf %s "(cached) " >&6
24342else $as_nop
24343 ac_check_lib_save_LIBS=$LIBS
24344LIBS="-l"$LBERLIBNAME" $LIBS"
24345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24346/* end confdefs.h. */
24347
24348
24349#ifdef __cplusplus
24350extern "C"
24351#endif
24352char ber_free ();
24353int main (void)
24354{
24355return ber_free ();
24356 ;
24357 return 0;
24358}
24359_ACEOF
24360if ac_fn_c_try_link "$LINENO"
24361then :
24362 eval "$as_ac_Lib=yes"
24363else $as_nop
24364 eval "$as_ac_Lib=no"
24365fi
24366rm -f core conftest.err conftest.$ac_objext conftest.beam \
24367 conftest$ac_exeext conftest.$ac_ext
24368LIBS=$ac_check_lib_save_LIBS
24369fi
24370eval ac_res=\$$as_ac_Lib
24371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24372printf "%s\n" "$ac_res" >&6; }
24373if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24374then :
24375 cat >>confdefs.h <<_ACEOF
24376#define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24377_ACEOF
24378
24379 LIBS="-l"$LBERLIBNAME" $LIBS"
24380
24381else $as_nop
24382
24383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24384printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24385
24386printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24387
24388 CURL_DISABLE_LDAP=1
24389
24390
24391printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24392
24393 CURL_DISABLE_LDAPS=1
24394
24395fi
24396
24397 fi
24398 fi
24399fi
24400
24401if test x$CURL_DISABLE_LDAP != x1 ; then
24402 ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
24403if test "x$ac_cv_func_ldap_url_parse" = xyes
24404then :
24405 printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
24406
24407fi
24408
24409
24410 if test "$LDAPLIBNAME" = "wldap32"; then
24411 curl_ldap_msg="enabled (winldap)"
24412
24413printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
24414
24415 else
24416 curl_ldap_msg="enabled (OpenLDAP)"
24417 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
24418
24419printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
24420
24421 USE_OPENLDAP=1
24422
24423 fi
24424 fi
24425fi
24426
24427if test x$CURL_DISABLE_LDAPS != x1 ; then
24428 curl_ldaps_msg="enabled"
24429fi
24430
24431
24432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
24433printf %s "checking whether to enable IPv6... " >&6; }
24434# Check whether --enable-ipv6 was given.
24435if test ${enable_ipv6+y}
24436then :
24437 enableval=$enable_ipv6; case "$enableval" in
24438 no)
24439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440printf "%s\n" "no" >&6; }
24441 ipv6=no
24442 ;;
24443 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24444printf "%s\n" "yes" >&6; }
24445 ipv6=yes
24446 ;;
24447 esac
24448else $as_nop
24449 if test "$cross_compiling" = yes
24450then :
24451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24452printf "%s\n" "yes" >&6; }
24453 ipv6=yes
24454
24455else $as_nop
24456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24457/* end confdefs.h. */
24458
24459/* are AF_INET6 and sockaddr_in6 available? */
24460#include <sys/types.h>
24461#ifdef HAVE_WINSOCK2_H
24462#include <winsock2.h>
24463#include <ws2tcpip.h>
24464#else
24465#include <sys/socket.h>
24466#include <netinet/in.h>
24467#if defined (__TANDEM)
24468# include <netinet/in6.h>
24469#endif
24470#endif
24471#include <stdlib.h> /* for exit() */
24472main()
24473{
24474 struct sockaddr_in6 s;
24475 (void)s;
24476 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
24477 exit(1);
24478 else
24479 exit(0);
24480}
24481
24482
24483_ACEOF
24484if ac_fn_c_try_run "$LINENO"
24485then :
24486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24487printf "%s\n" "yes" >&6; }
24488 ipv6=yes
24489else $as_nop
24490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491printf "%s\n" "no" >&6; }
24492 ipv6=no
24493fi
24494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24495 conftest.$ac_objext conftest.beam conftest.$ac_ext
24496fi
24497
24498fi
24499
24500
24501if test "$ipv6" = yes; then
24502 curl_ipv6_msg="enabled"
24503
24504printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
24505
24506 IPV6_ENABLED=1
24507
24508
24509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
24510printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
24511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24512/* end confdefs.h. */
24513
24514#include <sys/types.h>
24515#ifdef HAVE_WINSOCK2_H
24516#include <winsock2.h>
24517#include <ws2tcpip.h>
24518#else
24519#include <netinet/in.h>
24520#if defined (__TANDEM)
24521# include <netinet/in6.h>
24522#endif
24523#endif
24524
24525int main (void)
24526{
24527
24528 struct sockaddr_in6 s;
24529 s.sin6_scope_id = 0;
24530
24531 ;
24532 return 0;
24533}
24534_ACEOF
24535if ac_fn_c_try_compile "$LINENO"
24536then :
24537
24538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24539printf "%s\n" "yes" >&6; }
24540
24541printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
24542
24543
24544else $as_nop
24545
24546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24547printf "%s\n" "no" >&6; }
24548
24549fi
24550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24551fi
24552
24553
24554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
24555printf %s "checking if argv can be written to... " >&6; }
24556
24557 case $host_os in
24558 darwin*)
24559 if test "$cross_compiling" = yes
24560then :
24561 curl_cv_writable_argv=cross
24562
24563else $as_nop
24564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24565/* end confdefs.h. */
24566
24567int main(int argc, char **argv)
24568{
24569 (void)argc;
24570 argv[0][0] = ' ';
24571 return (argv[0][0] == ' ')?0:1;
24572}
24573
24574_ACEOF
24575if ac_fn_c_try_run "$LINENO"
24576then :
24577 curl_cv_writable_argv=yes
24578
24579else $as_nop
24580 curl_cv_writable_argv=no
24581
24582fi
24583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24584 conftest.$ac_objext conftest.beam conftest.$ac_ext
24585fi
24586
24587 ;;
24588 *)
24589 old=$LD_LIBRARY_PATH
24590 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
24591 export LD_LIBRARY_PATH
24592 if test "$cross_compiling" = yes
24593then :
24594 curl_cv_writable_argv=cross
24595
24596else $as_nop
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598/* end confdefs.h. */
24599
24600int main(int argc, char **argv)
24601{
24602 (void)argc;
24603 argv[0][0] = ' ';
24604 return (argv[0][0] == ' ')?0:1;
24605}
24606
24607_ACEOF
24608if ac_fn_c_try_run "$LINENO"
24609then :
24610 curl_cv_writable_argv=yes
24611
24612else $as_nop
24613 curl_cv_writable_argv=no
24614
24615fi
24616rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24617 conftest.$ac_objext conftest.beam conftest.$ac_ext
24618fi
24619
24620 LD_LIBRARY_PATH=$old # restore
24621 ;;
24622 esac
24623
24624case $curl_cv_writable_argv in
24625yes)
24626
24627printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
24628
24629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24630printf "%s\n" "yes" >&6; }
24631 ;;
24632no)
24633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24634printf "%s\n" "no" >&6; }
24635 ;;
24636*)
24637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24638printf "%s\n" "no" >&6; }
24639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
24640printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
24641 ;;
24642esac
24643
24644
24645
24646GSSAPI_ROOT="/usr"
24647
24648# Check whether --with-gssapi-includes was given.
24649if test ${with_gssapi_includes+y}
24650then :
24651 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
24652 want_gss="yes"
24653
24654fi
24655
24656
24657
24658# Check whether --with-gssapi-libs was given.
24659if test ${with_gssapi_libs+y}
24660then :
24661 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
24662 want_gss="yes"
24663
24664fi
24665
24666
24667
24668# Check whether --with-gssapi was given.
24669if test ${with_gssapi+y}
24670then :
24671 withval=$with_gssapi;
24672 GSSAPI_ROOT="$withval"
24673 if test x"$GSSAPI_ROOT" != xno; then
24674 want_gss="yes"
24675 if test x"$GSSAPI_ROOT" = xyes; then
24676 GSSAPI_ROOT="/usr"
24677 fi
24678 fi
24679
24680fi
24681
24682
24683: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
24684
24685save_CPPFLAGS="$CPPFLAGS"
24686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
24687printf %s "checking if GSS-API support is requested... " >&6; }
24688if test x"$want_gss" = xyes; then
24689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24690printf "%s\n" "yes" >&6; }
24691
24692 if test $GSSAPI_ROOT != "/usr"; then
24693
24694 if test -n "$PKG_CONFIG"; then
24695 PKGCONFIG="$PKG_CONFIG"
24696 else
24697 if test -n "$ac_tool_prefix"; then
24698 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24699set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24701printf %s "checking for $ac_word... " >&6; }
24702if test ${ac_cv_path_PKGCONFIG+y}
24703then :
24704 printf %s "(cached) " >&6
24705else $as_nop
24706 case $PKGCONFIG in
24707 [\\/]* | ?:[\\/]*)
24708 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24709 ;;
24710 *)
24711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24712as_dummy="$PATH:/usr/bin:/usr/local/bin"
24713for as_dir in $as_dummy
24714do
24715 IFS=$as_save_IFS
24716 case $as_dir in #(((
24717 '') as_dir=./ ;;
24718 */) ;;
24719 *) as_dir=$as_dir/ ;;
24720 esac
24721 for ac_exec_ext in '' $ac_executable_extensions; do
24722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24723 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24725 break 2
24726 fi
24727done
24728 done
24729IFS=$as_save_IFS
24730
24731 ;;
24732esac
24733fi
24734PKGCONFIG=$ac_cv_path_PKGCONFIG
24735if test -n "$PKGCONFIG"; then
24736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24737printf "%s\n" "$PKGCONFIG" >&6; }
24738else
24739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24740printf "%s\n" "no" >&6; }
24741fi
24742
24743
24744fi
24745if test -z "$ac_cv_path_PKGCONFIG"; then
24746 ac_pt_PKGCONFIG=$PKGCONFIG
24747 # Extract the first word of "pkg-config", so it can be a program name with args.
24748set dummy pkg-config; ac_word=$2
24749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24750printf %s "checking for $ac_word... " >&6; }
24751if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24752then :
24753 printf %s "(cached) " >&6
24754else $as_nop
24755 case $ac_pt_PKGCONFIG in
24756 [\\/]* | ?:[\\/]*)
24757 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24758 ;;
24759 *)
24760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761as_dummy="$PATH:/usr/bin:/usr/local/bin"
24762for as_dir in $as_dummy
24763do
24764 IFS=$as_save_IFS
24765 case $as_dir in #(((
24766 '') as_dir=./ ;;
24767 */) ;;
24768 *) as_dir=$as_dir/ ;;
24769 esac
24770 for ac_exec_ext in '' $ac_executable_extensions; do
24771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24772 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24774 break 2
24775 fi
24776done
24777 done
24778IFS=$as_save_IFS
24779
24780 ;;
24781esac
24782fi
24783ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24784if test -n "$ac_pt_PKGCONFIG"; then
24785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24786printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24787else
24788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24789printf "%s\n" "no" >&6; }
24790fi
24791
24792 if test "x$ac_pt_PKGCONFIG" = x; then
24793 PKGCONFIG="no"
24794 else
24795 case $cross_compiling:$ac_tool_warned in
24796yes:)
24797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24799ac_tool_warned=yes ;;
24800esac
24801 PKGCONFIG=$ac_pt_PKGCONFIG
24802 fi
24803else
24804 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24805fi
24806
24807 fi
24808
24809 if test "x$PKGCONFIG" != "xno"; then
24810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24811printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24812 itexists=`
24813 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
24814 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
24815 export PKG_CONFIG_LIBDIR
24816 fi
24817 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24818
24819 if test -z "$itexists"; then
24820 PKGCONFIG="no"
24821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24822printf "%s\n" "no" >&6; }
24823 else
24824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24825printf "%s\n" "found" >&6; }
24826 fi
24827 fi
24828
24829 else
24830
24831 if test -n "$PKG_CONFIG"; then
24832 PKGCONFIG="$PKG_CONFIG"
24833 else
24834 if test -n "$ac_tool_prefix"; then
24835 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24836set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24838printf %s "checking for $ac_word... " >&6; }
24839if test ${ac_cv_path_PKGCONFIG+y}
24840then :
24841 printf %s "(cached) " >&6
24842else $as_nop
24843 case $PKGCONFIG in
24844 [\\/]* | ?:[\\/]*)
24845 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24846 ;;
24847 *)
24848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24849as_dummy="$PATH:/usr/bin:/usr/local/bin"
24850for as_dir in $as_dummy
24851do
24852 IFS=$as_save_IFS
24853 case $as_dir in #(((
24854 '') as_dir=./ ;;
24855 */) ;;
24856 *) as_dir=$as_dir/ ;;
24857 esac
24858 for ac_exec_ext in '' $ac_executable_extensions; do
24859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24860 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24862 break 2
24863 fi
24864done
24865 done
24866IFS=$as_save_IFS
24867
24868 ;;
24869esac
24870fi
24871PKGCONFIG=$ac_cv_path_PKGCONFIG
24872if test -n "$PKGCONFIG"; then
24873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24874printf "%s\n" "$PKGCONFIG" >&6; }
24875else
24876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24877printf "%s\n" "no" >&6; }
24878fi
24879
24880
24881fi
24882if test -z "$ac_cv_path_PKGCONFIG"; then
24883 ac_pt_PKGCONFIG=$PKGCONFIG
24884 # Extract the first word of "pkg-config", so it can be a program name with args.
24885set dummy pkg-config; ac_word=$2
24886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24887printf %s "checking for $ac_word... " >&6; }
24888if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24889then :
24890 printf %s "(cached) " >&6
24891else $as_nop
24892 case $ac_pt_PKGCONFIG in
24893 [\\/]* | ?:[\\/]*)
24894 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24895 ;;
24896 *)
24897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24898as_dummy="$PATH:/usr/bin:/usr/local/bin"
24899for as_dir in $as_dummy
24900do
24901 IFS=$as_save_IFS
24902 case $as_dir in #(((
24903 '') as_dir=./ ;;
24904 */) ;;
24905 *) as_dir=$as_dir/ ;;
24906 esac
24907 for ac_exec_ext in '' $ac_executable_extensions; do
24908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24909 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24911 break 2
24912 fi
24913done
24914 done
24915IFS=$as_save_IFS
24916
24917 ;;
24918esac
24919fi
24920ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24921if test -n "$ac_pt_PKGCONFIG"; then
24922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24923printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24924else
24925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24926printf "%s\n" "no" >&6; }
24927fi
24928
24929 if test "x$ac_pt_PKGCONFIG" = x; then
24930 PKGCONFIG="no"
24931 else
24932 case $cross_compiling:$ac_tool_warned in
24933yes:)
24934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24935printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24936ac_tool_warned=yes ;;
24937esac
24938 PKGCONFIG=$ac_pt_PKGCONFIG
24939 fi
24940else
24941 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24942fi
24943
24944 fi
24945
24946 if test "x$PKGCONFIG" != "xno"; then
24947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24948printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24949 itexists=`
24950 if test -n ""; then
24951 PKG_CONFIG_LIBDIR=""
24952 export PKG_CONFIG_LIBDIR
24953 fi
24954 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24955
24956 if test -z "$itexists"; then
24957 PKGCONFIG="no"
24958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24959printf "%s\n" "no" >&6; }
24960 else
24961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24962printf "%s\n" "found" >&6; }
24963 fi
24964 fi
24965
24966 fi
24967 if test -z "$GSSAPI_INCS"; then
24968 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
24969 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
24970 elif test "$PKGCONFIG" != "no" ; then
24971 GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
24972 elif test -f "$KRB5CONFIG"; then
24973 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
24974 elif test "$GSSAPI_ROOT" != "yes"; then
24975 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
24976 fi
24977 fi
24978
24979 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24980
24981 ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
24982if test "x$ac_cv_header_gss_h" = xyes
24983then :
24984
24985
24986printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
24987
24988 gnu_gss=yes
24989
24990else $as_nop
24991
24992 for ac_header in gssapi/gssapi.h
24993do :
24994 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
24995if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
24996then :
24997 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
24998
24999else $as_nop
25000 not_mit=1
25001fi
25002
25003done
25004 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25005do :
25006 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25007ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25008$ac_includes_default
25009#ifdef HAVE_GSSAPI_GSSAPI_H
25010#include <gssapi/gssapi.h>
25011#endif
25012
25013"
25014if eval test \"x\$"$as_ac_Header"\" = x"yes"
25015then :
25016 cat >>confdefs.h <<_ACEOF
25017#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25018_ACEOF
25019
25020else $as_nop
25021 not_mit=1
25022fi
25023
25024done
25025 if test "x$not_mit" = "x1"; then
25026 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25027if test "x$ac_cv_header_gssapi_h" = xyes
25028then :
25029
25030
25031printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
25032
25033
25034else $as_nop
25035
25036 want_gss=no
25037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25038printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25039
25040
25041fi
25042
25043 else
25044
25045printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
25046
25047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25048printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25050/* end confdefs.h. */
25051
25052
25053#include <gssapi/gssapi.h>
25054#include <gssapi/gssapi_generic.h>
25055#include <gssapi/gssapi_krb5.h>
25056
25057int main (void)
25058{
25059
25060 gss_import_name(
25061 (OM_uint32 *)0,
25062 (gss_buffer_t)0,
25063 GSS_C_NT_HOSTBASED_SERVICE,
25064 (gss_name_t *)0);
25065
25066 ;
25067 return 0;
25068}
25069
25070_ACEOF
25071if ac_fn_c_try_compile "$LINENO"
25072then :
25073
25074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25075printf "%s\n" "yes" >&6; }
25076
25077else $as_nop
25078
25079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25080printf "%s\n" "no" >&6; }
25081
25082printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25083
25084
25085fi
25086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25087 fi
25088
25089
25090fi
25091
25092else
25093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25094printf "%s\n" "no" >&6; }
25095fi
25096if test x"$want_gss" = xyes; then
25097
25098printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25099
25100 HAVE_GSSAPI=1
25101 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25102
25103 if test -n "$gnu_gss"; then
25104 curl_gss_msg="enabled (GNU GSS)"
25105 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25106 LIBS="-lgss $LIBS"
25107 elif test -z "$GSSAPI_LIB_DIR"; then
25108 case $host in
25109 *-*-darwin*)
25110 LIBS="-lgssapi_krb5 -lresolv $LIBS"
25111 ;;
25112 *)
25113 if test $GSSAPI_ROOT != "/usr"; then
25114
25115 if test -n "$PKG_CONFIG"; then
25116 PKGCONFIG="$PKG_CONFIG"
25117 else
25118 if test -n "$ac_tool_prefix"; then
25119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25120set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25122printf %s "checking for $ac_word... " >&6; }
25123if test ${ac_cv_path_PKGCONFIG+y}
25124then :
25125 printf %s "(cached) " >&6
25126else $as_nop
25127 case $PKGCONFIG in
25128 [\\/]* | ?:[\\/]*)
25129 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25130 ;;
25131 *)
25132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25133as_dummy="$PATH:/usr/bin:/usr/local/bin"
25134for as_dir in $as_dummy
25135do
25136 IFS=$as_save_IFS
25137 case $as_dir in #(((
25138 '') as_dir=./ ;;
25139 */) ;;
25140 *) as_dir=$as_dir/ ;;
25141 esac
25142 for ac_exec_ext in '' $ac_executable_extensions; do
25143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25144 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25146 break 2
25147 fi
25148done
25149 done
25150IFS=$as_save_IFS
25151
25152 ;;
25153esac
25154fi
25155PKGCONFIG=$ac_cv_path_PKGCONFIG
25156if test -n "$PKGCONFIG"; then
25157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25158printf "%s\n" "$PKGCONFIG" >&6; }
25159else
25160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25161printf "%s\n" "no" >&6; }
25162fi
25163
25164
25165fi
25166if test -z "$ac_cv_path_PKGCONFIG"; then
25167 ac_pt_PKGCONFIG=$PKGCONFIG
25168 # Extract the first word of "pkg-config", so it can be a program name with args.
25169set dummy pkg-config; ac_word=$2
25170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171printf %s "checking for $ac_word... " >&6; }
25172if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25173then :
25174 printf %s "(cached) " >&6
25175else $as_nop
25176 case $ac_pt_PKGCONFIG in
25177 [\\/]* | ?:[\\/]*)
25178 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25179 ;;
25180 *)
25181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25182as_dummy="$PATH:/usr/bin:/usr/local/bin"
25183for as_dir in $as_dummy
25184do
25185 IFS=$as_save_IFS
25186 case $as_dir in #(((
25187 '') as_dir=./ ;;
25188 */) ;;
25189 *) as_dir=$as_dir/ ;;
25190 esac
25191 for ac_exec_ext in '' $ac_executable_extensions; do
25192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25193 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25195 break 2
25196 fi
25197done
25198 done
25199IFS=$as_save_IFS
25200
25201 ;;
25202esac
25203fi
25204ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25205if test -n "$ac_pt_PKGCONFIG"; then
25206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25207printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25208else
25209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25210printf "%s\n" "no" >&6; }
25211fi
25212
25213 if test "x$ac_pt_PKGCONFIG" = x; then
25214 PKGCONFIG="no"
25215 else
25216 case $cross_compiling:$ac_tool_warned in
25217yes:)
25218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25219printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25220ac_tool_warned=yes ;;
25221esac
25222 PKGCONFIG=$ac_pt_PKGCONFIG
25223 fi
25224else
25225 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25226fi
25227
25228 fi
25229
25230 if test "x$PKGCONFIG" != "xno"; then
25231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25232printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25233 itexists=`
25234 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25235 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25236 export PKG_CONFIG_LIBDIR
25237 fi
25238 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25239
25240 if test -z "$itexists"; then
25241 PKGCONFIG="no"
25242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25243printf "%s\n" "no" >&6; }
25244 else
25245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25246printf "%s\n" "found" >&6; }
25247 fi
25248 fi
25249
25250 else
25251
25252 if test -n "$PKG_CONFIG"; then
25253 PKGCONFIG="$PKG_CONFIG"
25254 else
25255 if test -n "$ac_tool_prefix"; then
25256 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25257set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25259printf %s "checking for $ac_word... " >&6; }
25260if test ${ac_cv_path_PKGCONFIG+y}
25261then :
25262 printf %s "(cached) " >&6
25263else $as_nop
25264 case $PKGCONFIG in
25265 [\\/]* | ?:[\\/]*)
25266 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25267 ;;
25268 *)
25269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25270as_dummy="$PATH:/usr/bin:/usr/local/bin"
25271for as_dir in $as_dummy
25272do
25273 IFS=$as_save_IFS
25274 case $as_dir in #(((
25275 '') as_dir=./ ;;
25276 */) ;;
25277 *) as_dir=$as_dir/ ;;
25278 esac
25279 for ac_exec_ext in '' $ac_executable_extensions; do
25280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25281 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25283 break 2
25284 fi
25285done
25286 done
25287IFS=$as_save_IFS
25288
25289 ;;
25290esac
25291fi
25292PKGCONFIG=$ac_cv_path_PKGCONFIG
25293if test -n "$PKGCONFIG"; then
25294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25295printf "%s\n" "$PKGCONFIG" >&6; }
25296else
25297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25298printf "%s\n" "no" >&6; }
25299fi
25300
25301
25302fi
25303if test -z "$ac_cv_path_PKGCONFIG"; then
25304 ac_pt_PKGCONFIG=$PKGCONFIG
25305 # Extract the first word of "pkg-config", so it can be a program name with args.
25306set dummy pkg-config; ac_word=$2
25307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25308printf %s "checking for $ac_word... " >&6; }
25309if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25310then :
25311 printf %s "(cached) " >&6
25312else $as_nop
25313 case $ac_pt_PKGCONFIG in
25314 [\\/]* | ?:[\\/]*)
25315 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25316 ;;
25317 *)
25318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25319as_dummy="$PATH:/usr/bin:/usr/local/bin"
25320for as_dir in $as_dummy
25321do
25322 IFS=$as_save_IFS
25323 case $as_dir in #(((
25324 '') as_dir=./ ;;
25325 */) ;;
25326 *) as_dir=$as_dir/ ;;
25327 esac
25328 for ac_exec_ext in '' $ac_executable_extensions; do
25329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25330 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25332 break 2
25333 fi
25334done
25335 done
25336IFS=$as_save_IFS
25337
25338 ;;
25339esac
25340fi
25341ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25342if test -n "$ac_pt_PKGCONFIG"; then
25343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25344printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25345else
25346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25347printf "%s\n" "no" >&6; }
25348fi
25349
25350 if test "x$ac_pt_PKGCONFIG" = x; then
25351 PKGCONFIG="no"
25352 else
25353 case $cross_compiling:$ac_tool_warned in
25354yes:)
25355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25356printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25357ac_tool_warned=yes ;;
25358esac
25359 PKGCONFIG=$ac_pt_PKGCONFIG
25360 fi
25361else
25362 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25363fi
25364
25365 fi
25366
25367 if test "x$PKGCONFIG" != "xno"; then
25368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25369printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25370 itexists=`
25371 if test -n ""; then
25372 PKG_CONFIG_LIBDIR=""
25373 export PKG_CONFIG_LIBDIR
25374 fi
25375 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25376
25377 if test -z "$itexists"; then
25378 PKGCONFIG="no"
25379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25380printf "%s\n" "no" >&6; }
25381 else
25382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25383printf "%s\n" "found" >&6; }
25384 fi
25385 fi
25386
25387 fi
25388 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25389 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
25390 LIBS="$gss_libs $LIBS"
25391 elif test "$PKGCONFIG" != "no" ; then
25392 gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
25393 LIBS="$gss_libs $LIBS"
25394 elif test -f "$KRB5CONFIG"; then
25395 gss_libs=`$KRB5CONFIG --libs gssapi`
25396 LIBS="$gss_libs $LIBS"
25397 else
25398 case $host in
25399 *-hp-hpux*)
25400 gss_libname="gss"
25401 ;;
25402 *)
25403 gss_libname="gssapi"
25404 ;;
25405 esac
25406
25407 if test "$GSSAPI_ROOT" != "yes"; then
25408 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
25409 LIBS="-l$gss_libname $LIBS"
25410 else
25411 LIBS="-l$gss_libname $LIBS"
25412 fi
25413 fi
25414 ;;
25415 esac
25416 else
25417 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25418 case $host in
25419 *-hp-hpux*)
25420 LIBS="-lgss $LIBS"
25421 ;;
25422 *)
25423 LIBS="-lgssapi $LIBS"
25424 ;;
25425 esac
25426 fi
25427else
25428 CPPFLAGS="$save_CPPFLAGS"
25429fi
25430
25431if test x"$want_gss" = xyes; then
25432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
25433printf %s "checking if we can link against GSS-API library... " >&6; }
25434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25435/* end confdefs.h. */
25436
25437
25438#define gss_init_sec_context innocuous_gss_init_sec_context
25439#ifdef __STDC__
25440# include <limits.h>
25441#else
25442# include <assert.h>
25443#endif
25444#undef gss_init_sec_context
25445#ifdef __cplusplus
25446extern "C"
25447#endif
25448char gss_init_sec_context ();
25449#if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
25450choke me
25451#endif
25452
25453int main (void)
25454{
25455return gss_init_sec_context ();
25456 ;
25457 return 0;
25458}
25459
25460_ACEOF
25461if ac_fn_c_try_link "$LINENO"
25462then :
25463
25464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25465printf "%s\n" "yes" >&6; }
25466
25467else $as_nop
25468
25469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25470printf "%s\n" "no" >&6; }
25471 as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
25472
25473fi
25474rm -f core conftest.err conftest.$ac_objext conftest.beam \
25475 conftest$ac_exeext conftest.$ac_ext
25476fi
25477
25478build_libstubgss=no
25479if test x"$want_gss" = "xyes"; then
25480 build_libstubgss=yes
25481fi
25482
25483 if test "x$build_libstubgss" = "xyes"; then
25484 BUILD_STUB_GSS_TRUE=
25485 BUILD_STUB_GSS_FALSE='#'
25486else
25487 BUILD_STUB_GSS_TRUE='#'
25488 BUILD_STUB_GSS_FALSE=
25489fi
25490
25491
25492
25493DEFAULT_SSL_BACKEND=no
25494VALID_DEFAULT_SSL_BACKEND=
25495
25496# Check whether --with-default-ssl-backend was given.
25497if test ${with_default_ssl_backend+y}
25498then :
25499 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
25500fi
25501
25502case "$DEFAULT_SSL_BACKEND" in
25503 no)
25504 ;;
25505 default|yes)
25506 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
25507 ;;
25508 *)
25509
25510 VALID_DEFAULT_SSL_BACKEND=no
25511 ;;
25512esac
25513
25514
25515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
25516printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
25517if test "x$OPT_SCHANNEL" != xno; then
25518 ssl_msg=
25519 if test "x$OPT_SCHANNEL" != "xno" &&
25520 test "x$curl_cv_native_windows" = "xyes"; then
25521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25522printf "%s\n" "yes" >&6; }
25523
25524printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
25525
25526 USE_SCHANNEL=1
25527
25528 ssl_msg="Schannel"
25529 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25530 SCHANNEL_ENABLED=1
25531 # --with-schannel implies --enable-sspi
25532
25533printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
25534
25535 USE_WINDOWS_SSPI=1
25536
25537 curl_sspi_msg="enabled"
25538 else
25539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25540printf "%s\n" "no" >&6; }
25541 fi
25542 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25543else
25544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545printf "%s\n" "no" >&6; }
25546fi
25547
25548
25549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
25550printf %s "checking whether to enable Secure Transport... " >&6; }
25551if test "x$OPT_SECURETRANSPORT" != xno; then
25552 if test "x$OPT_SECURETRANSPORT" != "xno" &&
25553 (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
25554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25555printf "%s\n" "yes" >&6; }
25556
25557printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
25558
25559 USE_SECTRANSP=1
25560
25561 ssl_msg="Secure Transport"
25562 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25563 SECURETRANSPORT_ENABLED=1
25564 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
25565 else
25566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25567printf "%s\n" "no" >&6; }
25568 fi
25569 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25570else
25571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25572printf "%s\n" "no" >&6; }
25573fi
25574
25575
25576
25577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
25578printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
25579if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
25580 if test "x$OPT_AMISSL" != xno; then
25581 ssl_msg=
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583/* end confdefs.h. */
25584
25585
25586 #include <libraries/amisslmaster.h>
25587 #include <openssl/opensslv.h>
25588
25589int main (void)
25590{
25591
25592 #if defined(AMISSL_CURRENT_VERSION) && (AMISSL_CURRENT_VERSION >= AMISSL_V303) && \
25593 defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) && \
25594 defined(PROTO_AMISSL_H)
25595 return 0;
25596 #else
25597 #error not AmiSSL v5 / OpenSSL 3
25598 #endif
25599
25600 ;
25601 return 0;
25602}
25603
25604_ACEOF
25605if ac_fn_c_try_compile "$LINENO"
25606then :
25607
25608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25609printf "%s\n" "yes" >&6; }
25610 ssl_msg="AmiSSL"
25611 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25612 AMISSL_ENABLED=1
25613 OPENSSL_ENABLED=1
25614 # Use AmiSSL's built-in ca bundle
25615 check_for_ca_bundle=1
25616 with_ca_fallback=yes
25617 LIBS="-lamisslstubs -lamisslauto $LIBS"
25618
25619printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
25620
25621
25622printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
25623
25624
25625printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
25626
25627 ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
25628if test "x$ac_cv_header_openssl_x509_h" = xyes
25629then :
25630 printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
25631
25632fi
25633ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
25634if test "x$ac_cv_header_openssl_rsa_h" = xyes
25635then :
25636 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
25637
25638fi
25639ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
25640if test "x$ac_cv_header_openssl_crypto_h" = xyes
25641then :
25642 printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
25643
25644fi
25645ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
25646if test "x$ac_cv_header_openssl_pem_h" = xyes
25647then :
25648 printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
25649
25650fi
25651ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
25652if test "x$ac_cv_header_openssl_ssl_h" = xyes
25653then :
25654 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
25655
25656fi
25657ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
25658if test "x$ac_cv_header_openssl_err_h" = xyes
25659then :
25660 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
25661
25662fi
25663
25664 CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
25665
25666else $as_nop
25667
25668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25669printf "%s\n" "no" >&6; }
25670
25671fi
25672rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25673 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25674 else
25675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25676printf "%s\n" "no" >&6; }
25677 fi
25678else
25679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25680printf "%s\n" "no" >&6; }
25681fi
25682
25683
25684
25685if test "x$OPT_OPENSSL" != xno; then
25686 ssl_msg=
25687
25688 CLEANLDFLAGS="$LDFLAGS"
25689 CLEANCPPFLAGS="$CPPFLAGS"
25690 CLEANLIBS="$LIBS"
25691
25692 case $host in
25693 *-*-msys* | *-*-mingw*)
25694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
25695printf %s "checking for gdi32... " >&6; }
25696 my_ac_save_LIBS=$LIBS
25697 LIBS="-lgdi32 $LIBS"
25698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25699/* end confdefs.h. */
25700
25701 #include <windef.h>
25702 #include <wingdi.h>
25703
25704int main (void)
25705{
25706
25707 GdiFlush();
25708
25709 ;
25710 return 0;
25711}
25712_ACEOF
25713if ac_fn_c_try_link "$LINENO"
25714then :
25715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25716printf "%s\n" "yes" >&6; }
25717else $as_nop
25718 LIBS=$my_ac_save_LIBS
25719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25720printf "%s\n" "no" >&6; }
25721
25722fi
25723rm -f core conftest.err conftest.$ac_objext conftest.beam \
25724 conftest$ac_exeext conftest.$ac_ext
25725 ;;
25726 esac
25727
25728 case "$OPT_OPENSSL" in
25729 yes)
25730 PKGTEST="yes"
25731 PREFIX_OPENSSL=
25732 ;;
25733 *)
25734 PKGTEST="no"
25735 PREFIX_OPENSSL=$OPT_OPENSSL
25736
25737 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
25738 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
25739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
25740printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
25741 PKGTEST="yes"
25742 fi
25743
25744 if test "$PKGTEST" != "yes"; then
25745 # try lib64 instead
25746 OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
25747 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
25748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
25749printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
25750 PKGTEST="yes"
25751 fi
25752 fi
25753
25754 if test "$PKGTEST" != "yes"; then
25755 if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
25756 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
25757 fi
25758 fi
25759
25760 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
25761 if test "$PREFIX_OPENSSL" != "/usr" ; then
25762 SSL_LDFLAGS="-L$LIB_OPENSSL"
25763 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
25764 fi
25765 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
25766 ;;
25767 esac
25768
25769 if test "$PKGTEST" = "yes"; then
25770
25771
25772 if test -n "$PKG_CONFIG"; then
25773 PKGCONFIG="$PKG_CONFIG"
25774 else
25775 if test -n "$ac_tool_prefix"; then
25776 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25777set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25779printf %s "checking for $ac_word... " >&6; }
25780if test ${ac_cv_path_PKGCONFIG+y}
25781then :
25782 printf %s "(cached) " >&6
25783else $as_nop
25784 case $PKGCONFIG in
25785 [\\/]* | ?:[\\/]*)
25786 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25787 ;;
25788 *)
25789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25790as_dummy="$PATH:/usr/bin:/usr/local/bin"
25791for as_dir in $as_dummy
25792do
25793 IFS=$as_save_IFS
25794 case $as_dir in #(((
25795 '') as_dir=./ ;;
25796 */) ;;
25797 *) as_dir=$as_dir/ ;;
25798 esac
25799 for ac_exec_ext in '' $ac_executable_extensions; do
25800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25801 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25803 break 2
25804 fi
25805done
25806 done
25807IFS=$as_save_IFS
25808
25809 ;;
25810esac
25811fi
25812PKGCONFIG=$ac_cv_path_PKGCONFIG
25813if test -n "$PKGCONFIG"; then
25814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25815printf "%s\n" "$PKGCONFIG" >&6; }
25816else
25817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25818printf "%s\n" "no" >&6; }
25819fi
25820
25821
25822fi
25823if test -z "$ac_cv_path_PKGCONFIG"; then
25824 ac_pt_PKGCONFIG=$PKGCONFIG
25825 # Extract the first word of "pkg-config", so it can be a program name with args.
25826set dummy pkg-config; ac_word=$2
25827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25828printf %s "checking for $ac_word... " >&6; }
25829if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25830then :
25831 printf %s "(cached) " >&6
25832else $as_nop
25833 case $ac_pt_PKGCONFIG in
25834 [\\/]* | ?:[\\/]*)
25835 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25836 ;;
25837 *)
25838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25839as_dummy="$PATH:/usr/bin:/usr/local/bin"
25840for as_dir in $as_dummy
25841do
25842 IFS=$as_save_IFS
25843 case $as_dir in #(((
25844 '') as_dir=./ ;;
25845 */) ;;
25846 *) as_dir=$as_dir/ ;;
25847 esac
25848 for ac_exec_ext in '' $ac_executable_extensions; do
25849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25850 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25852 break 2
25853 fi
25854done
25855 done
25856IFS=$as_save_IFS
25857
25858 ;;
25859esac
25860fi
25861ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25862if test -n "$ac_pt_PKGCONFIG"; then
25863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25864printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25865else
25866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25867printf "%s\n" "no" >&6; }
25868fi
25869
25870 if test "x$ac_pt_PKGCONFIG" = x; then
25871 PKGCONFIG="no"
25872 else
25873 case $cross_compiling:$ac_tool_warned in
25874yes:)
25875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25876printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25877ac_tool_warned=yes ;;
25878esac
25879 PKGCONFIG=$ac_pt_PKGCONFIG
25880 fi
25881else
25882 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25883fi
25884
25885 fi
25886
25887 if test "x$PKGCONFIG" != "xno"; then
25888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
25889printf %s "checking for openssl options with pkg-config... " >&6; }
25890 itexists=`
25891 if test -n "$OPENSSL_PCDIR"; then
25892 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25893 export PKG_CONFIG_LIBDIR
25894 fi
25895 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
25896
25897 if test -z "$itexists"; then
25898 PKGCONFIG="no"
25899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900printf "%s\n" "no" >&6; }
25901 else
25902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25903printf "%s\n" "found" >&6; }
25904 fi
25905 fi
25906
25907
25908 if test "$PKGCONFIG" != "no" ; then
25909 SSL_LIBS=`
25910 if test -n "$OPENSSL_PCDIR"; then
25911 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25912 export PKG_CONFIG_LIBDIR
25913 fi
25914 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
25915
25916 SSL_LDFLAGS=`
25917 if test -n "$OPENSSL_PCDIR"; then
25918 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25919 export PKG_CONFIG_LIBDIR
25920 fi
25921 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
25922
25923 SSL_CPPFLAGS=`
25924 if test -n "$OPENSSL_PCDIR"; then
25925 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25926 export PKG_CONFIG_LIBDIR
25927 fi
25928 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
25929
25930
25931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
25932printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
25933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
25934printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
25935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
25936printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
25937
25938 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
25939
25940 LIBS="$SSL_LIBS $LIBS"
25941 fi
25942 fi
25943
25944 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
25945 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
25946
25947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
25948printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
25949if test ${ac_cv_lib_crypto_HMAC_Update+y}
25950then :
25951 printf %s "(cached) " >&6
25952else $as_nop
25953 ac_check_lib_save_LIBS=$LIBS
25954LIBS="-lcrypto $LIBS"
25955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956/* end confdefs.h. */
25957
25958
25959#ifdef __cplusplus
25960extern "C"
25961#endif
25962char HMAC_Update ();
25963int main (void)
25964{
25965return HMAC_Update ();
25966 ;
25967 return 0;
25968}
25969_ACEOF
25970if ac_fn_c_try_link "$LINENO"
25971then :
25972 ac_cv_lib_crypto_HMAC_Update=yes
25973else $as_nop
25974 ac_cv_lib_crypto_HMAC_Update=no
25975fi
25976rm -f core conftest.err conftest.$ac_objext conftest.beam \
25977 conftest$ac_exeext conftest.$ac_ext
25978LIBS=$ac_check_lib_save_LIBS
25979fi
25980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
25981printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
25982if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
25983then :
25984
25985 HAVECRYPTO="yes"
25986 LIBS="-lcrypto $LIBS"
25987
25988else $as_nop
25989
25990 if test -n "$LIB_OPENSSL" ; then
25991 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
25992 fi
25993 if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
25994 # only set this if pkg-config wasn't used
25995 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
25996 fi
25997 # Linking previously failed, try extra paths from --with-openssl or
25998 # pkg-config. Use a different function name to avoid reusing the earlier
25999 # cached result.
26000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26001printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26002if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26003then :
26004 printf %s "(cached) " >&6
26005else $as_nop
26006 ac_check_lib_save_LIBS=$LIBS
26007LIBS="-lcrypto $LIBS"
26008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009/* end confdefs.h. */
26010
26011
26012#ifdef __cplusplus
26013extern "C"
26014#endif
26015char HMAC_Init_ex ();
26016int main (void)
26017{
26018return HMAC_Init_ex ();
26019 ;
26020 return 0;
26021}
26022_ACEOF
26023if ac_fn_c_try_link "$LINENO"
26024then :
26025 ac_cv_lib_crypto_HMAC_Init_ex=yes
26026else $as_nop
26027 ac_cv_lib_crypto_HMAC_Init_ex=no
26028fi
26029rm -f core conftest.err conftest.$ac_objext conftest.beam \
26030 conftest$ac_exeext conftest.$ac_ext
26031LIBS=$ac_check_lib_save_LIBS
26032fi
26033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26034printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26035if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26036then :
26037
26038 HAVECRYPTO="yes"
26039 LIBS="-lcrypto $LIBS"
26040else $as_nop
26041
26042
26043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26044printf %s "checking OpenSSL linking with -ldl... " >&6; }
26045 LIBS="-lcrypto $CLEANLIBS -ldl"
26046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047/* end confdefs.h. */
26048
26049 #include <openssl/err.h>
26050
26051int main (void)
26052{
26053
26054 ERR_clear_error();
26055
26056 ;
26057 return 0;
26058}
26059_ACEOF
26060if ac_fn_c_try_link "$LINENO"
26061then :
26062
26063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26064printf "%s\n" "yes" >&6; }
26065 HAVECRYPTO="yes"
26066
26067else $as_nop
26068
26069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26070printf "%s\n" "no" >&6; }
26071
26072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26073printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26074 LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076/* end confdefs.h. */
26077
26078
26079 #include <openssl/err.h>
26080
26081int main (void)
26082{
26083
26084 ERR_clear_error();
26085
26086 ;
26087 return 0;
26088}
26089_ACEOF
26090if ac_fn_c_try_link "$LINENO"
26091then :
26092
26093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26094printf "%s\n" "yes" >&6; }
26095 HAVECRYPTO="yes"
26096
26097else $as_nop
26098
26099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26100printf "%s\n" "no" >&6; }
26101 LDFLAGS="$CLEANLDFLAGS"
26102 CPPFLAGS="$CLEANCPPFLAGS"
26103 LIBS="$CLEANLIBS"
26104
26105
26106fi
26107rm -f core conftest.err conftest.$ac_objext conftest.beam \
26108 conftest$ac_exeext conftest.$ac_ext
26109
26110
26111fi
26112rm -f core conftest.err conftest.$ac_objext conftest.beam \
26113 conftest$ac_exeext conftest.$ac_ext
26114
26115
26116fi
26117
26118
26119fi
26120
26121
26122 if test X"$HAVECRYPTO" = X"yes"; then
26123
26124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26125printf %s "checking for SSL_connect in -lssl... " >&6; }
26126if test ${ac_cv_lib_ssl_SSL_connect+y}
26127then :
26128 printf %s "(cached) " >&6
26129else $as_nop
26130 ac_check_lib_save_LIBS=$LIBS
26131LIBS="-lssl $LIBS"
26132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26133/* end confdefs.h. */
26134
26135
26136#ifdef __cplusplus
26137extern "C"
26138#endif
26139char SSL_connect ();
26140int main (void)
26141{
26142return SSL_connect ();
26143 ;
26144 return 0;
26145}
26146_ACEOF
26147if ac_fn_c_try_link "$LINENO"
26148then :
26149 ac_cv_lib_ssl_SSL_connect=yes
26150else $as_nop
26151 ac_cv_lib_ssl_SSL_connect=no
26152fi
26153rm -f core conftest.err conftest.$ac_objext conftest.beam \
26154 conftest$ac_exeext conftest.$ac_ext
26155LIBS=$ac_check_lib_save_LIBS
26156fi
26157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26158printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26159if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26160then :
26161 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26162
26163 LIBS="-lssl $LIBS"
26164
26165fi
26166
26167
26168 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
26170printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
26171 OLIBS=$LIBS
26172 LIBS="-lRSAglue -lrsaref $LIBS"
26173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26174printf %s "checking for SSL_connect in -lssl... " >&6; }
26175if test ${ac_cv_lib_ssl_SSL_connect+y}
26176then :
26177 printf %s "(cached) " >&6
26178else $as_nop
26179 ac_check_lib_save_LIBS=$LIBS
26180LIBS="-lssl $LIBS"
26181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26182/* end confdefs.h. */
26183
26184
26185#ifdef __cplusplus
26186extern "C"
26187#endif
26188char SSL_connect ();
26189int main (void)
26190{
26191return SSL_connect ();
26192 ;
26193 return 0;
26194}
26195_ACEOF
26196if ac_fn_c_try_link "$LINENO"
26197then :
26198 ac_cv_lib_ssl_SSL_connect=yes
26199else $as_nop
26200 ac_cv_lib_ssl_SSL_connect=no
26201fi
26202rm -f core conftest.err conftest.$ac_objext conftest.beam \
26203 conftest$ac_exeext conftest.$ac_ext
26204LIBS=$ac_check_lib_save_LIBS
26205fi
26206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26207printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26208if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26209then :
26210 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26211
26212 LIBS="-lssl $LIBS"
26213
26214fi
26215
26216 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218printf "%s\n" "no" >&6; }
26219 LIBS=$OLIBS
26220 else
26221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222printf "%s\n" "yes" >&6; }
26223 fi
26224
26225 else
26226
26227 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
26228do :
26229 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26230ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26231if eval test \"x\$"$as_ac_Header"\" = x"yes"
26232then :
26233 cat >>confdefs.h <<_ACEOF
26234#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26235_ACEOF
26236 ssl_msg="OpenSSL"
26237 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26238 OPENSSL_ENABLED=1
26239
26240printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26241
26242fi
26243
26244done
26245
26246 if test $ac_cv_header_openssl_x509_h = no; then
26247 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
26248if test "x$ac_cv_header_x509_h" = xyes
26249then :
26250 printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
26251
26252fi
26253ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
26254if test "x$ac_cv_header_rsa_h" = xyes
26255then :
26256 printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
26257
26258fi
26259ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
26260if test "x$ac_cv_header_crypto_h" = xyes
26261then :
26262 printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
26263
26264fi
26265ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
26266if test "x$ac_cv_header_pem_h" = xyes
26267then :
26268 printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
26269
26270fi
26271ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
26272if test "x$ac_cv_header_ssl_h" = xyes
26273then :
26274 printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
26275
26276fi
26277ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
26278if test "x$ac_cv_header_err_h" = xyes
26279then :
26280 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
26281
26282fi
26283
26284
26285 if test $ac_cv_header_x509_h = yes &&
26286 test $ac_cv_header_crypto_h = yes &&
26287 test $ac_cv_header_ssl_h = yes; then
26288 ssl_msg="OpenSSL"
26289 OPENSSL_ENABLED=1
26290 fi
26291 fi
26292 fi
26293
26294 if test X"$OPENSSL_ENABLED" != X"1"; then
26295 LIBS="$CLEANLIBS"
26296 fi
26297
26298 if test X"$OPT_OPENSSL" != Xoff &&
26299 test "$OPENSSL_ENABLED" != "1"; then
26300 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
26301 fi
26302 fi
26303
26304 if test X"$OPENSSL_ENABLED" = X"1"; then
26305
26306 ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
26307if test "x$ac_cv_func_RAND_egd" = xyes
26308then :
26309 printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
26310
26311fi
26312
26313
26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
26315printf %s "checking for BoringSSL... " >&6; }
26316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26317/* end confdefs.h. */
26318
26319
26320 #include <openssl/base.h>
26321
26322int main (void)
26323{
26324
26325 #ifndef OPENSSL_IS_BORINGSSL
26326 #error not boringssl
26327 #endif
26328
26329 ;
26330 return 0;
26331}
26332
26333_ACEOF
26334if ac_fn_c_try_compile "$LINENO"
26335then :
26336
26337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26338printf "%s\n" "yes" >&6; }
26339
26340printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
26341
26342 ssl_msg="BoringSSL"
26343
26344else $as_nop
26345
26346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26347printf "%s\n" "no" >&6; }
26348
26349fi
26350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26351
26352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
26353printf %s "checking for libressl... " >&6; }
26354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26355/* end confdefs.h. */
26356
26357
26358#include <openssl/opensslv.h>
26359
26360int main (void)
26361{
26362
26363 int dummy = LIBRESSL_VERSION_NUMBER;
26364
26365 ;
26366 return 0;
26367}
26368
26369_ACEOF
26370if ac_fn_c_try_compile "$LINENO"
26371then :
26372
26373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26374printf "%s\n" "yes" >&6; }
26375
26376printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
26377
26378 ssl_msg="libressl"
26379
26380else $as_nop
26381
26382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26383printf "%s\n" "no" >&6; }
26384
26385fi
26386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26387
26388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
26389printf %s "checking for OpenSSL >= v3... " >&6; }
26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391/* end confdefs.h. */
26392
26393
26394#include <openssl/opensslv.h>
26395
26396int main (void)
26397{
26398
26399 #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
26400 return 0;
26401 #else
26402 #error older than 3
26403 #endif
26404
26405 ;
26406 return 0;
26407}
26408
26409_ACEOF
26410if ac_fn_c_try_compile "$LINENO"
26411then :
26412
26413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26414printf "%s\n" "yes" >&6; }
26415
26416printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26417
26418 CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
26419 ssl_msg="OpenSSL v3+"
26420
26421else $as_nop
26422
26423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26424printf "%s\n" "no" >&6; }
26425
26426fi
26427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26428 fi
26429
26430 if test "$OPENSSL_ENABLED" = "1"; then
26431 if test -n "$LIB_OPENSSL"; then
26432 if test "x$cross_compiling" != "xyes"; then
26433 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
26434 export CURL_LIBRARY_PATH
26435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
26436printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
26437 fi
26438 fi
26439 check_for_ca_bundle=1
26440 fi
26441
26442 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26443fi
26444
26445if test X"$OPT_OPENSSL" != Xno &&
26446 test "$OPENSSL_ENABLED" != "1"; then
26447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
26448printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
26449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
26450printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
26451 as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
26452fi
26453
26454
26455if test X"$OPENSSL_ENABLED" = X"1"; then
26456
26457# Check whether --with-egd-socket was given.
26458if test ${with_egd_socket+y}
26459then :
26460 withval=$with_egd_socket; EGD_SOCKET="$withval"
26461
26462fi
26463
26464 if test -n "$EGD_SOCKET" ; then
26465
26466printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
26467
26468 fi
26469
26470
26471# Check whether --with-random was given.
26472if test ${with_random+y}
26473then :
26474 withval=$with_random; RANDOM_FILE="$withval"
26475else $as_nop
26476
26477 if test x$cross_compiling != xyes; then
26478 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26480printf %s "checking for \"/dev/urandom\"... " >&6; }
26481if eval test \${$as_ac_File+y}
26482then :
26483 printf %s "(cached) " >&6
26484else $as_nop
26485 test "$cross_compiling" = yes &&
26486 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26487if test -r ""/dev/urandom""; then
26488 eval "$as_ac_File=yes"
26489else
26490 eval "$as_ac_File=no"
26491fi
26492fi
26493eval ac_res=\$$as_ac_File
26494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26495printf "%s\n" "$ac_res" >&6; }
26496if eval test \"x\$"$as_ac_File"\" = x"yes"
26497then :
26498 RANDOM_FILE="/dev/urandom"
26499fi
26500
26501 else
26502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
26503printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
26504 fi
26505
26506
26507fi
26508
26509 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26510
26511
26512printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
26513
26514 fi
26515fi
26516
26517if test "$OPENSSL_ENABLED" = "1"; then
26518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
26519printf %s "checking for SRP support in OpenSSL... " >&6; }
26520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26521/* end confdefs.h. */
26522
26523
26524#include <openssl/ssl.h>
26525
26526int main (void)
26527{
26528
26529 SSL_CTX_set_srp_username(NULL, "");
26530 SSL_CTX_set_srp_password(NULL, "");
26531
26532 ;
26533 return 0;
26534}
26535
26536_ACEOF
26537if ac_fn_c_try_link "$LINENO"
26538then :
26539
26540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26541printf "%s\n" "yes" >&6; }
26542
26543printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
26544
26545 HAVE_OPENSSL_SRP=1
26546
26547
26548else $as_nop
26549
26550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26551printf "%s\n" "no" >&6; }
26552
26553fi
26554rm -f core conftest.err conftest.$ac_objext conftest.beam \
26555 conftest$ac_exeext conftest.$ac_ext
26556fi
26557
26558if test X"$OPENSSL_ENABLED" = X"1"; then
26559# Check whether --enable-openssl-auto-load-config was given.
26560if test ${enable_openssl_auto_load_config+y}
26561then :
26562 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
26563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
26564printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
26565
26566printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
26567
26568 fi
26569
26570fi
26571
26572fi
26573
26574
26575
26576if test "x$OPT_GNUTLS" != xno; then
26577 ssl_msg=
26578
26579 if test X"$OPT_GNUTLS" != Xno; then
26580
26581 addld=""
26582 addlib=""
26583 gtlslib=""
26584 version=""
26585 addcflags=""
26586
26587 if test "x$OPT_GNUTLS" = "xyes"; then
26588
26589 if test -n "$PKG_CONFIG"; then
26590 PKGCONFIG="$PKG_CONFIG"
26591 else
26592 if test -n "$ac_tool_prefix"; then
26593 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26594set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26596printf %s "checking for $ac_word... " >&6; }
26597if test ${ac_cv_path_PKGCONFIG+y}
26598then :
26599 printf %s "(cached) " >&6
26600else $as_nop
26601 case $PKGCONFIG in
26602 [\\/]* | ?:[\\/]*)
26603 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26604 ;;
26605 *)
26606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26607as_dummy="$PATH:/usr/bin:/usr/local/bin"
26608for as_dir in $as_dummy
26609do
26610 IFS=$as_save_IFS
26611 case $as_dir in #(((
26612 '') as_dir=./ ;;
26613 */) ;;
26614 *) as_dir=$as_dir/ ;;
26615 esac
26616 for ac_exec_ext in '' $ac_executable_extensions; do
26617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26618 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26620 break 2
26621 fi
26622done
26623 done
26624IFS=$as_save_IFS
26625
26626 ;;
26627esac
26628fi
26629PKGCONFIG=$ac_cv_path_PKGCONFIG
26630if test -n "$PKGCONFIG"; then
26631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26632printf "%s\n" "$PKGCONFIG" >&6; }
26633else
26634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26635printf "%s\n" "no" >&6; }
26636fi
26637
26638
26639fi
26640if test -z "$ac_cv_path_PKGCONFIG"; then
26641 ac_pt_PKGCONFIG=$PKGCONFIG
26642 # Extract the first word of "pkg-config", so it can be a program name with args.
26643set dummy pkg-config; ac_word=$2
26644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26645printf %s "checking for $ac_word... " >&6; }
26646if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26647then :
26648 printf %s "(cached) " >&6
26649else $as_nop
26650 case $ac_pt_PKGCONFIG in
26651 [\\/]* | ?:[\\/]*)
26652 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26653 ;;
26654 *)
26655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26656as_dummy="$PATH:/usr/bin:/usr/local/bin"
26657for as_dir in $as_dummy
26658do
26659 IFS=$as_save_IFS
26660 case $as_dir in #(((
26661 '') as_dir=./ ;;
26662 */) ;;
26663 *) as_dir=$as_dir/ ;;
26664 esac
26665 for ac_exec_ext in '' $ac_executable_extensions; do
26666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26667 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26669 break 2
26670 fi
26671done
26672 done
26673IFS=$as_save_IFS
26674
26675 ;;
26676esac
26677fi
26678ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26679if test -n "$ac_pt_PKGCONFIG"; then
26680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26681printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26682else
26683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26684printf "%s\n" "no" >&6; }
26685fi
26686
26687 if test "x$ac_pt_PKGCONFIG" = x; then
26688 PKGCONFIG="no"
26689 else
26690 case $cross_compiling:$ac_tool_warned in
26691yes:)
26692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26693printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26694ac_tool_warned=yes ;;
26695esac
26696 PKGCONFIG=$ac_pt_PKGCONFIG
26697 fi
26698else
26699 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26700fi
26701
26702 fi
26703
26704 if test "x$PKGCONFIG" != "xno"; then
26705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
26706printf %s "checking for gnutls options with pkg-config... " >&6; }
26707 itexists=`
26708 if test -n ""; then
26709 PKG_CONFIG_LIBDIR=""
26710 export PKG_CONFIG_LIBDIR
26711 fi
26712 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
26713
26714 if test -z "$itexists"; then
26715 PKGCONFIG="no"
26716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26717printf "%s\n" "no" >&6; }
26718 else
26719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26720printf "%s\n" "found" >&6; }
26721 fi
26722 fi
26723
26724
26725 if test "$PKGCONFIG" != "no" ; then
26726 addlib=`$PKGCONFIG --libs-only-l gnutls`
26727 addld=`$PKGCONFIG --libs-only-L gnutls`
26728 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
26729 version=`$PKGCONFIG --modversion gnutls`
26730 gtlslib=`echo $addld | $SED -e 's/^-L//'`
26731 else
26732 check=`libgnutls-config --version 2>/dev/null`
26733 if test -n "$check"; then
26734 addlib=`libgnutls-config --libs`
26735 addcflags=`libgnutls-config --cflags`
26736 version=`libgnutls-config --version`
26737 gtlslib=`libgnutls-config --prefix`/lib$libsuff
26738 fi
26739 fi
26740 else
26741 cfg=$OPT_GNUTLS/bin/libgnutls-config
26742 check=`$cfg --version 2>/dev/null`
26743 if test -n "$check"; then
26744 addlib=`$cfg --libs`
26745 addcflags=`$cfg --cflags`
26746 version=`$cfg --version`
26747 gtlslib=`$cfg --prefix`/lib$libsuff
26748 else
26749 addlib=-lgnutls
26750 addld=-L$OPT_GNUTLS/lib$libsuff
26751 addcflags=-I$OPT_GNUTLS/include
26752 version="" # we just don't know
26753 gtlslib=$OPT_GNUTLS/lib$libsuff
26754 fi
26755 fi
26756
26757 if test -z "$version"; then
26758 version="unknown"
26759 fi
26760
26761 if test -n "$addlib"; then
26762
26763 CLEANLIBS="$LIBS"
26764 CLEANCPPFLAGS="$CPPFLAGS"
26765 CLEANLDFLAGS="$LDFLAGS"
26766
26767 LIBS="$addlib $LIBS"
26768 LDFLAGS="$LDFLAGS $addld"
26769 if test "$addcflags" != "-I/usr/include"; then
26770 CPPFLAGS="$CPPFLAGS $addcflags"
26771 fi
26772
26773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
26774printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
26775if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
26776then :
26777 printf %s "(cached) " >&6
26778else $as_nop
26779 ac_check_lib_save_LIBS=$LIBS
26780LIBS="-lgnutls $LIBS"
26781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782/* end confdefs.h. */
26783
26784
26785#ifdef __cplusplus
26786extern "C"
26787#endif
26788char gnutls_x509_crt_get_dn2 ();
26789int main (void)
26790{
26791return gnutls_x509_crt_get_dn2 ();
26792 ;
26793 return 0;
26794}
26795_ACEOF
26796if ac_fn_c_try_link "$LINENO"
26797then :
26798 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
26799else $as_nop
26800 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
26801fi
26802rm -f core conftest.err conftest.$ac_objext conftest.beam \
26803 conftest$ac_exeext conftest.$ac_ext
26804LIBS=$ac_check_lib_save_LIBS
26805fi
26806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
26807printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
26808if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
26809then :
26810
26811
26812printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
26813
26814 USE_GNUTLS=1
26815
26816 GNUTLS_ENABLED=1
26817 USE_GNUTLS="yes"
26818 ssl_msg="GnuTLS"
26819 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26820
26821else $as_nop
26822
26823 LIBS="$CLEANLIBS"
26824 CPPFLAGS="$CLEANCPPFLAGS"
26825
26826fi
26827
26828
26829 if test "x$USE_GNUTLS" = "xyes"; then
26830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
26831printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
26832 check_for_ca_bundle=1
26833 if test -n "$gtlslib"; then
26834 if test "x$cross_compiling" != "xyes"; then
26835 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
26836 export CURL_LIBRARY_PATH
26837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
26838printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
26839 fi
26840 fi
26841 fi
26842
26843 fi
26844
26845 fi
26846 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26847fi
26848
26849
26850if test "$GNUTLS_ENABLED" = "1"; then
26851 USE_GNUTLS_NETTLE=
26852 # First check if we can detect either crypto library via transitive linking
26853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
26854printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
26855if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
26856then :
26857 printf %s "(cached) " >&6
26858else $as_nop
26859 ac_check_lib_save_LIBS=$LIBS
26860LIBS="-lgnutls $LIBS"
26861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862/* end confdefs.h. */
26863
26864
26865#ifdef __cplusplus
26866extern "C"
26867#endif
26868char nettle_MD5Init ();
26869int main (void)
26870{
26871return nettle_MD5Init ();
26872 ;
26873 return 0;
26874}
26875_ACEOF
26876if ac_fn_c_try_link "$LINENO"
26877then :
26878 ac_cv_lib_gnutls_nettle_MD5Init=yes
26879else $as_nop
26880 ac_cv_lib_gnutls_nettle_MD5Init=no
26881fi
26882rm -f core conftest.err conftest.$ac_objext conftest.beam \
26883 conftest$ac_exeext conftest.$ac_ext
26884LIBS=$ac_check_lib_save_LIBS
26885fi
26886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
26887printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
26888if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
26889then :
26890 USE_GNUTLS_NETTLE=1
26891fi
26892
26893
26894 # If not, try linking directly to both of them to see if they are available
26895 if test "$USE_GNUTLS_NETTLE" = ""; then
26896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
26897printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
26898if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
26899then :
26900 printf %s "(cached) " >&6
26901else $as_nop
26902 ac_check_lib_save_LIBS=$LIBS
26903LIBS="-lnettle $LIBS"
26904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26905/* end confdefs.h. */
26906
26907
26908#ifdef __cplusplus
26909extern "C"
26910#endif
26911char nettle_MD5Init ();
26912int main (void)
26913{
26914return nettle_MD5Init ();
26915 ;
26916 return 0;
26917}
26918_ACEOF
26919if ac_fn_c_try_link "$LINENO"
26920then :
26921 ac_cv_lib_nettle_nettle_MD5Init=yes
26922else $as_nop
26923 ac_cv_lib_nettle_nettle_MD5Init=no
26924fi
26925rm -f core conftest.err conftest.$ac_objext conftest.beam \
26926 conftest$ac_exeext conftest.$ac_ext
26927LIBS=$ac_check_lib_save_LIBS
26928fi
26929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
26930printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
26931if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
26932then :
26933 USE_GNUTLS_NETTLE=1
26934fi
26935
26936 fi
26937 if test "$USE_GNUTLS_NETTLE" = ""; then
26938 as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
26939 fi
26940 LIBS="-lnettle $LIBS"
26941fi
26942
26943if test "$GNUTLS_ENABLED" = "1"; then
26944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
26945printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
26946if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
26947then :
26948 printf %s "(cached) " >&6
26949else $as_nop
26950 ac_check_lib_save_LIBS=$LIBS
26951LIBS="-lgnutls $LIBS"
26952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26953/* end confdefs.h. */
26954
26955
26956#ifdef __cplusplus
26957extern "C"
26958#endif
26959char gnutls_srp_verifier ();
26960int main (void)
26961{
26962return gnutls_srp_verifier ();
26963 ;
26964 return 0;
26965}
26966_ACEOF
26967if ac_fn_c_try_link "$LINENO"
26968then :
26969 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
26970else $as_nop
26971 ac_cv_lib_gnutls_gnutls_srp_verifier=no
26972fi
26973rm -f core conftest.err conftest.$ac_objext conftest.beam \
26974 conftest$ac_exeext conftest.$ac_ext
26975LIBS=$ac_check_lib_save_LIBS
26976fi
26977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
26978printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
26979if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
26980then :
26981
26982
26983printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
26984
26985 HAVE_GNUTLS_SRP=1
26986
26987
26988fi
26989
26990fi
26991
26992
26993
26994
26995if test "x$OPT_MBEDTLS" != xno; then
26996 _cppflags=$CPPFLAGS
26997 _ldflags=$LDFLAGS
26998 ssl_msg=
26999
27000 if test X"$OPT_MBEDTLS" != Xno; then
27001
27002 if test "$OPT_MBEDTLS" = "yes"; then
27003 OPT_MBEDTLS=""
27004 fi
27005
27006 if test -z "$OPT_MBEDTLS" ; then
27007
27008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27009printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27010if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27011then :
27012 printf %s "(cached) " >&6
27013else $as_nop
27014 ac_check_lib_save_LIBS=$LIBS
27015LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017/* end confdefs.h. */
27018
27019
27020#ifdef __cplusplus
27021extern "C"
27022#endif
27023char mbedtls_havege_init ();
27024int main (void)
27025{
27026return mbedtls_havege_init ();
27027 ;
27028 return 0;
27029}
27030_ACEOF
27031if ac_fn_c_try_link "$LINENO"
27032then :
27033 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27034else $as_nop
27035 ac_cv_lib_mbedtls_mbedtls_havege_init=no
27036fi
27037rm -f core conftest.err conftest.$ac_objext conftest.beam \
27038 conftest$ac_exeext conftest.$ac_ext
27039LIBS=$ac_check_lib_save_LIBS
27040fi
27041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27042printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27043if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27044then :
27045
27046
27047printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27048
27049 USE_MBEDTLS=1
27050
27051 MBEDTLS_ENABLED=1
27052 USE_MBEDTLS="yes"
27053 ssl_msg="mbedTLS"
27054 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27055
27056fi
27057
27058 fi
27059
27060 addld=""
27061 addlib=""
27062 addcflags=""
27063 mbedtlslib=""
27064
27065 if test "x$USE_MBEDTLS" != "xyes"; then
27066 addld=-L$OPT_MBEDTLS/lib$libsuff
27067 addcflags=-I$OPT_MBEDTLS/include
27068 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27069
27070 LDFLAGS="$LDFLAGS $addld"
27071 if test "$addcflags" != "-I/usr/include"; then
27072 CPPFLAGS="$CPPFLAGS $addcflags"
27073 fi
27074
27075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27076printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27077if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27078then :
27079 printf %s "(cached) " >&6
27080else $as_nop
27081 ac_check_lib_save_LIBS=$LIBS
27082LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084/* end confdefs.h. */
27085
27086
27087#ifdef __cplusplus
27088extern "C"
27089#endif
27090char mbedtls_ssl_init ();
27091int main (void)
27092{
27093return mbedtls_ssl_init ();
27094 ;
27095 return 0;
27096}
27097_ACEOF
27098if ac_fn_c_try_link "$LINENO"
27099then :
27100 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27101else $as_nop
27102 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27103fi
27104rm -f core conftest.err conftest.$ac_objext conftest.beam \
27105 conftest$ac_exeext conftest.$ac_ext
27106LIBS=$ac_check_lib_save_LIBS
27107fi
27108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27109printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27110if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27111then :
27112
27113
27114printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27115
27116 USE_MBEDTLS=1
27117
27118 MBEDTLS_ENABLED=1
27119 USE_MBEDTLS="yes"
27120 ssl_msg="mbedTLS"
27121 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27122
27123else $as_nop
27124
27125 CPPFLAGS=$_cppflags
27126 LDFLAGS=$_ldflags
27127
27128fi
27129
27130 fi
27131
27132 if test "x$USE_MBEDTLS" = "xyes"; then
27133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27134printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27135 check_for_ca_bundle=1
27136
27137 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27138
27139 if test -n "$mbedtlslib"; then
27140 if test "x$cross_compiling" != "xyes"; then
27141 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27142 export CURL_LIBRARY_PATH
27143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27144printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27145 fi
27146 fi
27147 fi
27148
27149 fi
27150 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27151fi
27152
27153
27154
27155
27156case "$OPT_WOLFSSL" in
27157 yes|no)
27158 wolfpkg=""
27159 ;;
27160 *)
27161 wolfpkg="$withval/lib/pkgconfig"
27162 ;;
27163esac
27164
27165if test "x$OPT_WOLFSSL" != xno; then
27166 _cppflags=$CPPFLAGS
27167 _ldflags=$LDFLAGS
27168
27169 ssl_msg=
27170
27171 if test X"$OPT_WOLFSSL" != Xno; then
27172
27173 if test "$OPT_WOLFSSL" = "yes"; then
27174 OPT_WOLFSSL=""
27175 fi
27176
27177
27178 if test -n "$PKG_CONFIG"; then
27179 PKGCONFIG="$PKG_CONFIG"
27180 else
27181 if test -n "$ac_tool_prefix"; then
27182 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27183set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27185printf %s "checking for $ac_word... " >&6; }
27186if test ${ac_cv_path_PKGCONFIG+y}
27187then :
27188 printf %s "(cached) " >&6
27189else $as_nop
27190 case $PKGCONFIG in
27191 [\\/]* | ?:[\\/]*)
27192 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27193 ;;
27194 *)
27195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27196as_dummy="$PATH:/usr/bin:/usr/local/bin"
27197for as_dir in $as_dummy
27198do
27199 IFS=$as_save_IFS
27200 case $as_dir in #(((
27201 '') as_dir=./ ;;
27202 */) ;;
27203 *) as_dir=$as_dir/ ;;
27204 esac
27205 for ac_exec_ext in '' $ac_executable_extensions; do
27206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27207 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27209 break 2
27210 fi
27211done
27212 done
27213IFS=$as_save_IFS
27214
27215 ;;
27216esac
27217fi
27218PKGCONFIG=$ac_cv_path_PKGCONFIG
27219if test -n "$PKGCONFIG"; then
27220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27221printf "%s\n" "$PKGCONFIG" >&6; }
27222else
27223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27224printf "%s\n" "no" >&6; }
27225fi
27226
27227
27228fi
27229if test -z "$ac_cv_path_PKGCONFIG"; then
27230 ac_pt_PKGCONFIG=$PKGCONFIG
27231 # Extract the first word of "pkg-config", so it can be a program name with args.
27232set dummy pkg-config; ac_word=$2
27233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27234printf %s "checking for $ac_word... " >&6; }
27235if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27236then :
27237 printf %s "(cached) " >&6
27238else $as_nop
27239 case $ac_pt_PKGCONFIG in
27240 [\\/]* | ?:[\\/]*)
27241 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27242 ;;
27243 *)
27244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245as_dummy="$PATH:/usr/bin:/usr/local/bin"
27246for as_dir in $as_dummy
27247do
27248 IFS=$as_save_IFS
27249 case $as_dir in #(((
27250 '') as_dir=./ ;;
27251 */) ;;
27252 *) as_dir=$as_dir/ ;;
27253 esac
27254 for ac_exec_ext in '' $ac_executable_extensions; do
27255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27256 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27258 break 2
27259 fi
27260done
27261 done
27262IFS=$as_save_IFS
27263
27264 ;;
27265esac
27266fi
27267ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27268if test -n "$ac_pt_PKGCONFIG"; then
27269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27270printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27271else
27272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27273printf "%s\n" "no" >&6; }
27274fi
27275
27276 if test "x$ac_pt_PKGCONFIG" = x; then
27277 PKGCONFIG="no"
27278 else
27279 case $cross_compiling:$ac_tool_warned in
27280yes:)
27281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27282printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27283ac_tool_warned=yes ;;
27284esac
27285 PKGCONFIG=$ac_pt_PKGCONFIG
27286 fi
27287else
27288 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27289fi
27290
27291 fi
27292
27293 if test "x$PKGCONFIG" != "xno"; then
27294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27295printf %s "checking for wolfssl options with pkg-config... " >&6; }
27296 itexists=`
27297 if test -n "$wolfpkg"; then
27298 PKG_CONFIG_LIBDIR="$wolfpkg"
27299 export PKG_CONFIG_LIBDIR
27300 fi
27301 $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27302
27303 if test -z "$itexists"; then
27304 PKGCONFIG="no"
27305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306printf "%s\n" "no" >&6; }
27307 else
27308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27309printf "%s\n" "found" >&6; }
27310 fi
27311 fi
27312
27313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
27314printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
27315
27316 addld=""
27317 addlib=""
27318 addcflags=""
27319 if test "$PKGCONFIG" != "no" ; then
27320 addlib=`
27321 if test -n "$wolfpkg"; then
27322 PKG_CONFIG_LIBDIR="$wolfpkg"
27323 export PKG_CONFIG_LIBDIR
27324 fi
27325
27326 $PKGCONFIG --libs-only-l wolfssl`
27327 addld=`
27328 if test -n "$wolfpkg"; then
27329 PKG_CONFIG_LIBDIR="$wolfpkg"
27330 export PKG_CONFIG_LIBDIR
27331 fi
27332
27333 $PKGCONFIG --libs-only-L wolfssl`
27334 addcflags=`
27335 if test -n "$wolfpkg"; then
27336 PKG_CONFIG_LIBDIR="$wolfpkg"
27337 export PKG_CONFIG_LIBDIR
27338 fi
27339
27340 $PKGCONFIG --cflags-only-I wolfssl`
27341 version=`
27342 if test -n "$wolfpkg"; then
27343 PKG_CONFIG_LIBDIR="$wolfpkg"
27344 export PKG_CONFIG_LIBDIR
27345 fi
27346
27347 $PKGCONFIG --modversion wolfssl`
27348 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
27349 else
27350 addlib=-lwolfssl
27351 if test -n "$OPT_WOLFSSL"; then
27352 addld=-L$OPT_WOLFSSL/lib$libsuff
27353 addcflags=-I$OPT_WOLFSSL/include
27354 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
27355 fi
27356 fi
27357
27358 if test "x$USE_WOLFSSL" != "xyes"; then
27359
27360 LDFLAGS="$LDFLAGS $addld"
27361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
27362printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
27363 if test "$addcflags" != "-I/usr/include"; then
27364 CPPFLAGS="$CPPFLAGS $addcflags"
27365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
27366printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
27367 fi
27368
27369 my_ac_save_LIBS="$LIBS"
27370 LIBS="$addlib $LIBS"
27371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
27372printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
27373
27374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
27375printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
27376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27377/* end confdefs.h. */
27378
27379
27380/* These aren't needed for detection and confuse WolfSSL.
27381 They are set up properly later if it is detected. */
27382#undef SIZEOF_LONG
27383#undef SIZEOF_LONG_LONG
27384#include <wolfssl/options.h>
27385#include <wolfssl/ssl.h>
27386
27387int main (void)
27388{
27389
27390 return wolfSSL_Init();
27391
27392 ;
27393 return 0;
27394}
27395
27396_ACEOF
27397if ac_fn_c_try_link "$LINENO"
27398then :
27399
27400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27401printf "%s\n" "yes" >&6; }
27402
27403printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
27404
27405 USE_WOLFSSL=1
27406
27407 WOLFSSL_ENABLED=1
27408 USE_WOLFSSL="yes"
27409 ssl_msg="WolfSSL"
27410 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27411
27412else $as_nop
27413
27414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27415printf "%s\n" "no" >&6; }
27416 CPPFLAGS=$_cppflags
27417 LDFLAGS=$_ldflags
27418 wolfssllibpath=""
27419
27420fi
27421rm -f core conftest.err conftest.$ac_objext conftest.beam \
27422 conftest$ac_exeext conftest.$ac_ext
27423 LIBS="$my_ac_save_LIBS"
27424 fi
27425
27426 if test "x$USE_WOLFSSL" = "xyes"; then
27427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
27428printf "%s\n" "$as_me: detected wolfSSL" >&6;}
27429 check_for_ca_bundle=1
27430
27431
27432
27433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
27434printf %s "checking size of long long... " >&6; }
27435 r=0
27436 for typesize in 8 4 2 16 1; do
27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438/* end confdefs.h. */
27439
27440#include <sys/types.h>
27441
27442
27443int main (void)
27444{
27445switch(0) {
27446 case 0:
27447 case (sizeof(long long) == $typesize):;
27448 }
27449
27450 ;
27451 return 0;
27452}
27453_ACEOF
27454if ac_fn_c_try_compile "$LINENO"
27455then :
27456
27457 r=$typesize
27458else $as_nop
27459
27460 r=0
27461fi
27462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27463 if test $r -gt 0; then
27464 break;
27465 fi
27466 done
27467 if test $r -eq 0; then
27468 as_fn_error $? "Failed to find size of long long" "$LINENO" 5
27469 fi
27470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
27471printf "%s\n" "$r" >&6; }
27472 tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
27473 eval "$tname=$r"
27474
27475
27476printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
27477
27478
27479
27480
27481 LIBS="$addlib -lm $LIBS"
27482
27483 ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
27484if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
27485then :
27486 printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
27487
27488fi
27489ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
27490if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
27491then :
27492 printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
27493
27494fi
27495
27496
27497 ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
27498if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
27499then :
27500
27501
27502printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
27503
27504 WOLFSSL_NTLM=1
27505
27506
27507fi
27508
27509
27510 if test -n "$wolfssllibpath"; then
27511 if test "x$cross_compiling" != "xyes"; then
27512 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
27513 export CURL_LIBRARY_PATH
27514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
27515printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
27516 fi
27517 fi
27518 else
27519 as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
27520 fi
27521
27522 fi
27523 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27524fi
27525
27526
27527
27528
27529if test "x$OPT_BEARSSL" != xno; then
27530 _cppflags=$CPPFLAGS
27531 _ldflags=$LDFLAGS
27532 ssl_msg=
27533
27534 if test X"$OPT_BEARSSL" != Xno; then
27535
27536 if test "$OPT_BEARSSL" = "yes"; then
27537 OPT_BEARSSL=""
27538 fi
27539
27540 if test -z "$OPT_BEARSSL" ; then
27541
27542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27543printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27544if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27545then :
27546 printf %s "(cached) " >&6
27547else $as_nop
27548 ac_check_lib_save_LIBS=$LIBS
27549LIBS="-lbearssl -lbearssl $LIBS"
27550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551/* end confdefs.h. */
27552
27553
27554#ifdef __cplusplus
27555extern "C"
27556#endif
27557char br_ssl_client_init_full ();
27558int main (void)
27559{
27560return br_ssl_client_init_full ();
27561 ;
27562 return 0;
27563}
27564_ACEOF
27565if ac_fn_c_try_link "$LINENO"
27566then :
27567 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27568else $as_nop
27569 ac_cv_lib_bearssl_br_ssl_client_init_full=no
27570fi
27571rm -f core conftest.err conftest.$ac_objext conftest.beam \
27572 conftest$ac_exeext conftest.$ac_ext
27573LIBS=$ac_check_lib_save_LIBS
27574fi
27575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27576printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27577if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27578then :
27579
27580
27581printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27582
27583 USE_BEARSSL=1
27584
27585 BEARSSL_ENABLED=1
27586 USE_BEARSSL="yes"
27587 ssl_msg="BearSSL"
27588 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27589
27590fi
27591
27592 fi
27593
27594 addld=""
27595 addlib=""
27596 addcflags=""
27597 bearssllib=""
27598
27599 if test "x$USE_BEARSSL" != "xyes"; then
27600 addld=-L$OPT_BEARSSL/lib$libsuff
27601 addcflags=-I$OPT_BEARSSL/include
27602 bearssllib=$OPT_BEARSSL/lib$libsuff
27603
27604 LDFLAGS="$LDFLAGS $addld"
27605 if test "$addcflags" != "-I/usr/include"; then
27606 CPPFLAGS="$CPPFLAGS $addcflags"
27607 fi
27608
27609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27610printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27611if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27612then :
27613 printf %s "(cached) " >&6
27614else $as_nop
27615 ac_check_lib_save_LIBS=$LIBS
27616LIBS="-lbearssl -lbearssl $LIBS"
27617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27618/* end confdefs.h. */
27619
27620
27621#ifdef __cplusplus
27622extern "C"
27623#endif
27624char br_ssl_client_init_full ();
27625int main (void)
27626{
27627return br_ssl_client_init_full ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
27632if ac_fn_c_try_link "$LINENO"
27633then :
27634 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27635else $as_nop
27636 ac_cv_lib_bearssl_br_ssl_client_init_full=no
27637fi
27638rm -f core conftest.err conftest.$ac_objext conftest.beam \
27639 conftest$ac_exeext conftest.$ac_ext
27640LIBS=$ac_check_lib_save_LIBS
27641fi
27642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27643printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27644if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27645then :
27646
27647
27648printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27649
27650 USE_BEARSSL=1
27651
27652 BEARSSL_ENABLED=1
27653 USE_BEARSSL="yes"
27654 ssl_msg="BearSSL"
27655 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27656
27657else $as_nop
27658
27659 CPPFLAGS=$_cppflags
27660 LDFLAGS=$_ldflags
27661
27662fi
27663
27664 fi
27665
27666 if test "x$USE_BEARSSL" = "xyes"; then
27667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
27668printf "%s\n" "$as_me: detected BearSSL" >&6;}
27669 check_for_ca_bundle=1
27670
27671 LIBS="-lbearssl $LIBS"
27672
27673 if test -n "$bearssllib"; then
27674 if test "x$cross_compiling" != "xyes"; then
27675 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
27676 export CURL_LIBRARY_PATH
27677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
27678printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
27679 fi
27680 fi
27681 fi
27682
27683 fi
27684 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27685fi
27686
27687
27688
27689if test "x$OPT_RUSTLS" != xno; then
27690 _cppflags=$CPPFLAGS
27691 _ldflags=$LDFLAGS
27692 ssl_msg=
27693
27694 if test X"$OPT_RUSTLS" != Xno; then
27695
27696 if test "$OPT_RUSTLS" = "yes"; then
27697 OPT_RUSTLS=""
27698 fi
27699
27700 if test -z "$OPT_RUSTLS" ; then
27701
27702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
27703printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
27704if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
27705then :
27706 printf %s "(cached) " >&6
27707else $as_nop
27708 ac_check_lib_save_LIBS=$LIBS
27709LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711/* end confdefs.h. */
27712
27713
27714#ifdef __cplusplus
27715extern "C"
27716#endif
27717char rustls_client_session_read ();
27718int main (void)
27719{
27720return rustls_client_session_read ();
27721 ;
27722 return 0;
27723}
27724_ACEOF
27725if ac_fn_c_try_link "$LINENO"
27726then :
27727 ac_cv_lib_rustls_rustls_client_session_read=yes
27728else $as_nop
27729 ac_cv_lib_rustls_rustls_client_session_read=no
27730fi
27731rm -f core conftest.err conftest.$ac_objext conftest.beam \
27732 conftest$ac_exeext conftest.$ac_ext
27733LIBS=$ac_check_lib_save_LIBS
27734fi
27735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
27736printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
27737if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
27738then :
27739
27740
27741printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27742
27743 USE_RUSTLS=1
27744
27745 RUSTLS_ENABLED=1
27746 USE_RUSTLS="yes"
27747 ssl_msg="rustls"
27748 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27749
27750fi
27751
27752 fi
27753
27754 if test "x$USE_RUSTLS" != "xyes"; then
27755 addld=-L$OPT_RUSTLS/lib$libsuff
27756 addcflags=-I$OPT_RUSTLS/include
27757 rustlslib=$OPT_RUSTLS/lib$libsuff
27758
27759 LDFLAGS="$LDFLAGS $addld"
27760 if test "$addcflags" != "-I/usr/include"; then
27761 CPPFLAGS="$CPPFLAGS $addcflags"
27762 fi
27763
27764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
27765printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
27766if test ${ac_cv_lib_rustls_rustls_connection_read+y}
27767then :
27768 printf %s "(cached) " >&6
27769else $as_nop
27770 ac_check_lib_save_LIBS=$LIBS
27771LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27773/* end confdefs.h. */
27774
27775
27776#ifdef __cplusplus
27777extern "C"
27778#endif
27779char rustls_connection_read ();
27780int main (void)
27781{
27782return rustls_connection_read ();
27783 ;
27784 return 0;
27785}
27786_ACEOF
27787if ac_fn_c_try_link "$LINENO"
27788then :
27789 ac_cv_lib_rustls_rustls_connection_read=yes
27790else $as_nop
27791 ac_cv_lib_rustls_rustls_connection_read=no
27792fi
27793rm -f core conftest.err conftest.$ac_objext conftest.beam \
27794 conftest$ac_exeext conftest.$ac_ext
27795LIBS=$ac_check_lib_save_LIBS
27796fi
27797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
27798printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
27799if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
27800then :
27801
27802
27803printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27804
27805 USE_RUSTLS=1
27806
27807 RUSTLS_ENABLED=1
27808 USE_RUSTLS="yes"
27809 ssl_msg="rustls"
27810 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27811
27812else $as_nop
27813 as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
27814fi
27815
27816 fi
27817
27818 if test "x$USE_RUSTLS" = "xyes"; then
27819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
27820printf "%s\n" "$as_me: detected rustls" >&6;}
27821 check_for_ca_bundle=1
27822
27823 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27824
27825 if test -n "$rustlslib"; then
27826 if test "x$cross_compiling" != "xyes"; then
27827 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
27828 export CURL_LIBRARY_PATH
27829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
27830printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
27831 fi
27832 fi
27833 fi
27834
27835 fi
27836 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27837fi
27838
27839
27840if test "x$OPT_NSS" != xno; then
27841 ssl_msg=
27842
27843 if test X"$OPT_NSS" != Xno; then
27844
27845 addld=""
27846 addlib=""
27847 addcflags=""
27848 nssprefix=""
27849 version=""
27850
27851 if test "x$OPT_NSS" = "xyes"; then
27852
27853
27854 if test -n "$PKG_CONFIG"; then
27855 PKGCONFIG="$PKG_CONFIG"
27856 else
27857 if test -n "$ac_tool_prefix"; then
27858 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27859set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27861printf %s "checking for $ac_word... " >&6; }
27862if test ${ac_cv_path_PKGCONFIG+y}
27863then :
27864 printf %s "(cached) " >&6
27865else $as_nop
27866 case $PKGCONFIG in
27867 [\\/]* | ?:[\\/]*)
27868 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27869 ;;
27870 *)
27871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27872as_dummy="$PATH:/usr/bin:/usr/local/bin"
27873for as_dir in $as_dummy
27874do
27875 IFS=$as_save_IFS
27876 case $as_dir in #(((
27877 '') as_dir=./ ;;
27878 */) ;;
27879 *) as_dir=$as_dir/ ;;
27880 esac
27881 for ac_exec_ext in '' $ac_executable_extensions; do
27882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27883 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27885 break 2
27886 fi
27887done
27888 done
27889IFS=$as_save_IFS
27890
27891 ;;
27892esac
27893fi
27894PKGCONFIG=$ac_cv_path_PKGCONFIG
27895if test -n "$PKGCONFIG"; then
27896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27897printf "%s\n" "$PKGCONFIG" >&6; }
27898else
27899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27900printf "%s\n" "no" >&6; }
27901fi
27902
27903
27904fi
27905if test -z "$ac_cv_path_PKGCONFIG"; then
27906 ac_pt_PKGCONFIG=$PKGCONFIG
27907 # Extract the first word of "pkg-config", so it can be a program name with args.
27908set dummy pkg-config; ac_word=$2
27909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27910printf %s "checking for $ac_word... " >&6; }
27911if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27912then :
27913 printf %s "(cached) " >&6
27914else $as_nop
27915 case $ac_pt_PKGCONFIG in
27916 [\\/]* | ?:[\\/]*)
27917 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27918 ;;
27919 *)
27920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27921as_dummy="$PATH:/usr/bin:/usr/local/bin"
27922for as_dir in $as_dummy
27923do
27924 IFS=$as_save_IFS
27925 case $as_dir in #(((
27926 '') as_dir=./ ;;
27927 */) ;;
27928 *) as_dir=$as_dir/ ;;
27929 esac
27930 for ac_exec_ext in '' $ac_executable_extensions; do
27931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27932 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27934 break 2
27935 fi
27936done
27937 done
27938IFS=$as_save_IFS
27939
27940 ;;
27941esac
27942fi
27943ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27944if test -n "$ac_pt_PKGCONFIG"; then
27945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27946printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27947else
27948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27949printf "%s\n" "no" >&6; }
27950fi
27951
27952 if test "x$ac_pt_PKGCONFIG" = x; then
27953 PKGCONFIG="no"
27954 else
27955 case $cross_compiling:$ac_tool_warned in
27956yes:)
27957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27959ac_tool_warned=yes ;;
27960esac
27961 PKGCONFIG=$ac_pt_PKGCONFIG
27962 fi
27963else
27964 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27965fi
27966
27967 fi
27968
27969 if test "x$PKGCONFIG" != "xno"; then
27970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
27971printf %s "checking for nss options with pkg-config... " >&6; }
27972 itexists=`
27973 if test -n ""; then
27974 PKG_CONFIG_LIBDIR=""
27975 export PKG_CONFIG_LIBDIR
27976 fi
27977 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
27978
27979 if test -z "$itexists"; then
27980 PKGCONFIG="no"
27981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27982printf "%s\n" "no" >&6; }
27983 else
27984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27985printf "%s\n" "found" >&6; }
27986 fi
27987 fi
27988
27989
27990 if test "$PKGCONFIG" != "no" ; then
27991 addlib=`$PKGCONFIG --libs nss`
27992 addcflags=`$PKGCONFIG --cflags nss`
27993 version=`$PKGCONFIG --modversion nss`
27994 nssprefix=`$PKGCONFIG --variable=prefix nss`
27995 else
27996
27997 check=`nss-config --version 2>/dev/null`
27998 if test -n "$check"; then
27999 addlib=`nss-config --libs`
28000 addcflags=`nss-config --cflags`
28001 version=`nss-config --version`
28002 nssprefix=`nss-config --prefix`
28003 else
28004 addlib="-lnss3"
28005 addcflags=""
28006 version="unknown"
28007 fi
28008 fi
28009 else
28010 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
28011 if test -f "$NSS_PCDIR/nss.pc"; then
28012
28013 if test -n "$PKG_CONFIG"; then
28014 PKGCONFIG="$PKG_CONFIG"
28015 else
28016 if test -n "$ac_tool_prefix"; then
28017 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28018set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28020printf %s "checking for $ac_word... " >&6; }
28021if test ${ac_cv_path_PKGCONFIG+y}
28022then :
28023 printf %s "(cached) " >&6
28024else $as_nop
28025 case $PKGCONFIG in
28026 [\\/]* | ?:[\\/]*)
28027 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28028 ;;
28029 *)
28030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28031as_dummy="$PATH:/usr/bin:/usr/local/bin"
28032for as_dir in $as_dummy
28033do
28034 IFS=$as_save_IFS
28035 case $as_dir in #(((
28036 '') as_dir=./ ;;
28037 */) ;;
28038 *) as_dir=$as_dir/ ;;
28039 esac
28040 for ac_exec_ext in '' $ac_executable_extensions; do
28041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28042 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28044 break 2
28045 fi
28046done
28047 done
28048IFS=$as_save_IFS
28049
28050 ;;
28051esac
28052fi
28053PKGCONFIG=$ac_cv_path_PKGCONFIG
28054if test -n "$PKGCONFIG"; then
28055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28056printf "%s\n" "$PKGCONFIG" >&6; }
28057else
28058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28059printf "%s\n" "no" >&6; }
28060fi
28061
28062
28063fi
28064if test -z "$ac_cv_path_PKGCONFIG"; then
28065 ac_pt_PKGCONFIG=$PKGCONFIG
28066 # Extract the first word of "pkg-config", so it can be a program name with args.
28067set dummy pkg-config; ac_word=$2
28068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28069printf %s "checking for $ac_word... " >&6; }
28070if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28071then :
28072 printf %s "(cached) " >&6
28073else $as_nop
28074 case $ac_pt_PKGCONFIG in
28075 [\\/]* | ?:[\\/]*)
28076 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28077 ;;
28078 *)
28079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28080as_dummy="$PATH:/usr/bin:/usr/local/bin"
28081for as_dir in $as_dummy
28082do
28083 IFS=$as_save_IFS
28084 case $as_dir in #(((
28085 '') as_dir=./ ;;
28086 */) ;;
28087 *) as_dir=$as_dir/ ;;
28088 esac
28089 for ac_exec_ext in '' $ac_executable_extensions; do
28090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28091 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28093 break 2
28094 fi
28095done
28096 done
28097IFS=$as_save_IFS
28098
28099 ;;
28100esac
28101fi
28102ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28103if test -n "$ac_pt_PKGCONFIG"; then
28104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28105printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28106else
28107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108printf "%s\n" "no" >&6; }
28109fi
28110
28111 if test "x$ac_pt_PKGCONFIG" = x; then
28112 PKGCONFIG="no"
28113 else
28114 case $cross_compiling:$ac_tool_warned in
28115yes:)
28116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28117printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28118ac_tool_warned=yes ;;
28119esac
28120 PKGCONFIG=$ac_pt_PKGCONFIG
28121 fi
28122else
28123 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28124fi
28125
28126 fi
28127
28128 if test "x$PKGCONFIG" != "xno"; then
28129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28130printf %s "checking for nss options with pkg-config... " >&6; }
28131 itexists=`
28132 if test -n "$NSS_PCDIR"; then
28133 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28134 export PKG_CONFIG_LIBDIR
28135 fi
28136 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28137
28138 if test -z "$itexists"; then
28139 PKGCONFIG="no"
28140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28141printf "%s\n" "no" >&6; }
28142 else
28143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28144printf "%s\n" "found" >&6; }
28145 fi
28146 fi
28147
28148 if test "$PKGCONFIG" != "no" ; then
28149 addld=`
28150 if test -n "$NSS_PCDIR"; then
28151 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28152 export PKG_CONFIG_LIBDIR
28153 fi
28154 $PKGCONFIG --libs-only-L nss`
28155 addlib=`
28156 if test -n "$NSS_PCDIR"; then
28157 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28158 export PKG_CONFIG_LIBDIR
28159 fi
28160 $PKGCONFIG --libs-only-l nss`
28161 addcflags=`
28162 if test -n "$NSS_PCDIR"; then
28163 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28164 export PKG_CONFIG_LIBDIR
28165 fi
28166 $PKGCONFIG --cflags nss`
28167 version=`
28168 if test -n "$NSS_PCDIR"; then
28169 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28170 export PKG_CONFIG_LIBDIR
28171 fi
28172 $PKGCONFIG --modversion nss`
28173 nssprefix=`
28174 if test -n "$NSS_PCDIR"; then
28175 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28176 export PKG_CONFIG_LIBDIR
28177 fi
28178 $PKGCONFIG --variable=prefix nss`
28179 fi
28180 fi
28181 fi
28182
28183 if test -z "$addlib"; then
28184 # Without pkg-config, we'll kludge in some defaults
28185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
28186printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
28187 addld="-L$OPT_NSS/lib"
28188 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
28189 addcflags="-I$OPT_NSS/include"
28190 version="unknown"
28191 nssprefix=$OPT_NSS
28192 fi
28193
28194 CLEANLDFLAGS="$LDFLAGS"
28195 CLEANLIBS="$LIBS"
28196 CLEANCPPFLAGS="$CPPFLAGS"
28197
28198 LDFLAGS="$addld $LDFLAGS"
28199 LIBS="$addlib $LIBS"
28200 if test "$addcflags" != "-I/usr/include"; then
28201 CPPFLAGS="$CPPFLAGS $addcflags"
28202 fi
28203
28204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
28205printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
28206if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
28207then :
28208 printf %s "(cached) " >&6
28209else $as_nop
28210 ac_check_lib_save_LIBS=$LIBS
28211LIBS="-lnss3 $LIBS"
28212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28213/* end confdefs.h. */
28214
28215
28216#ifdef __cplusplus
28217extern "C"
28218#endif
28219char SSL_VersionRangeSet ();
28220int main (void)
28221{
28222return SSL_VersionRangeSet ();
28223 ;
28224 return 0;
28225}
28226_ACEOF
28227if ac_fn_c_try_link "$LINENO"
28228then :
28229 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
28230else $as_nop
28231 ac_cv_lib_nss3_SSL_VersionRangeSet=no
28232fi
28233rm -f core conftest.err conftest.$ac_objext conftest.beam \
28234 conftest$ac_exeext conftest.$ac_ext
28235LIBS=$ac_check_lib_save_LIBS
28236fi
28237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
28238printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
28239if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
28240then :
28241
28242
28243printf "%s\n" "#define USE_NSS 1" >>confdefs.h
28244
28245 USE_NSS=1
28246
28247 USE_NSS="yes"
28248 NSS_ENABLED=1
28249 ssl_msg="NSS"
28250 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28251
28252else $as_nop
28253
28254 LDFLAGS="$CLEANLDFLAGS"
28255 LIBS="$CLEANLIBS"
28256 CPPFLAGS="$CLEANCPPFLAGS"
28257
28258fi
28259
28260
28261 if test "x$USE_NSS" = "xyes"; then
28262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
28263printf "%s\n" "$as_me: detected NSS version $version" >&6;}
28264
28265 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
28266if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
28267then :
28268
28269
28270printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
28271
28272
28273fi
28274
28275
28276 NSS_LIBS=$addlib
28277
28278
28279 if test "x$cross_compiling" != "xyes"; then
28280 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
28281 export CURL_LIBRARY_PATH
28282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
28283printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
28284 fi
28285
28286 fi
28287 fi
28288 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28289fi
28290
28291
28292
28293if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28294 LIBS="-ladvapi32 -lcrypt32 $LIBS"
28295fi
28296
28297if test "x$curl_cv_native_windows" = "xyes" &&
28298 test "x$curl_mingw_original" = "xno"; then
28299 LIBS="-lbcrypt $LIBS"
28300fi
28301
28302case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28303in
28304x)
28305 as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28306Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28307 ;;
28308x1)
28309 # one SSL backend is enabled
28310
28311 SSL_ENABLED="1"
28312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28313printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28314 ;;
28315xD)
28316 # explicitly built without TLS
28317 ;;
28318xD*)
28319 as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28320(e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28321Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28322 ;;
28323*)
28324 # more than one SSL backend is enabled
28325
28326 SSL_ENABLED="1"
28327
28328 CURL_WITH_MULTI_SSL="1"
28329
28330printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28331
28332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28333printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28334 ;;
28335esac
28336
28337if test -n "$ssl_backends"; then
28338 curl_ssl_msg="enabled ($ssl_backends)"
28339fi
28340
28341if test no = "$VALID_DEFAULT_SSL_BACKEND"
28342then
28343 if test -n "$SSL_ENABLED"
28344 then
28345 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28346 else
28347 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28348 fi
28349elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28350then
28351
28352printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28353
28354fi
28355
28356
28357if test -n "$check_for_ca_bundle"; then
28358
28359
28360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28361printf %s "checking default CA cert bundle/path... " >&6; }
28362
28363
28364# Check whether --with-ca-bundle was given.
28365if test ${with_ca_bundle+y}
28366then :
28367 withval=$with_ca_bundle;
28368 want_ca="$withval"
28369 if test "x$want_ca" = "xyes"; then
28370 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28371 fi
28372
28373else $as_nop
28374 want_ca="unset"
28375fi
28376
28377
28378# Check whether --with-ca-path was given.
28379if test ${with_ca_path+y}
28380then :
28381 withval=$with_ca_path;
28382 want_capath="$withval"
28383 if test "x$want_capath" = "xyes"; then
28384 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28385 fi
28386
28387else $as_nop
28388 want_capath="unset"
28389fi
28390
28391
28392 ca_warning=" (warning: certs not found)"
28393 capath_warning=" (warning: certs not found)"
28394 check_capath=""
28395
28396 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28397 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28398 ca="$want_ca"
28399 capath="$want_capath"
28400 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28401 ca="$want_ca"
28402 capath="no"
28403 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28404 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
28405 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
28406 fi
28407 capath="$want_capath"
28408 ca="no"
28409 else
28410 ca="no"
28411 capath="no"
28412 if test "x$cross_compiling" != "xyes"; then
28413 if test "x$want_ca" = "xunset"; then
28414 if test "x$prefix" != xNONE; then
28415 cac="${prefix}/share/curl/curl-ca-bundle.crt"
28416 else
28417 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28418 fi
28419
28420 for a in /etc/ssl/certs/ca-certificates.crt \
28421 /etc/pki/tls/certs/ca-bundle.crt \
28422 /usr/share/ssl/certs/ca-bundle.crt \
28423 /usr/local/share/certs/ca-root-nss.crt \
28424 /etc/ssl/cert.pem \
28425 "$cac"; do
28426 if test -f "$a"; then
28427 ca="$a"
28428 break
28429 fi
28430 done
28431 fi
28432 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
28433 "x$OPENSSL_ENABLED" = "x1"; then
28434 check_capath="/etc/ssl/certs/"
28435 fi
28436 else
28437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28438printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28439 fi
28440 fi
28441
28442 if test "x$ca" = "xno" || test -f "$ca"; then
28443 ca_warning=""
28444 fi
28445
28446 if test "x$capath" != "xno"; then
28447 check_capath="$capath"
28448 fi
28449
28450 if test ! -z "$check_capath"; then
28451 for a in "$check_capath"; do
28452 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
28453 if test "x$capath" = "xno"; then
28454 capath="$a"
28455 fi
28456 capath_warning=""
28457 break
28458 fi
28459 done
28460 fi
28461
28462 if test "x$capath" = "xno"; then
28463 capath_warning=""
28464 fi
28465
28466 if test "x$ca" != "xno"; then
28467 CURL_CA_BUNDLE='"'$ca'"'
28468
28469printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28470
28471
28472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28473printf "%s\n" "$ca" >&6; }
28474 fi
28475 if test "x$capath" != "xno"; then
28476 CURL_CA_PATH="\"$capath\""
28477
28478printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28479
28480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28481printf "%s\n" "$capath (capath)" >&6; }
28482 fi
28483 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28485printf "%s\n" "no" >&6; }
28486 fi
28487
28488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28489printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28490
28491# Check whether --with-ca-fallback was given.
28492if test ${with_ca_fallback+y}
28493then :
28494 withval=$with_ca_fallback;
28495 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28496 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28497 fi
28498
28499else $as_nop
28500 with_ca_fallback="no"
28501fi
28502
28503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28504printf "%s\n" "$with_ca_fallback" >&6; }
28505 if test "x$with_ca_fallback" = "xyes"; then
28506 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28507 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28508 fi
28509
28510printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28511
28512 fi
28513
28514fi
28515
28516
28517
28518# Check whether --with-libpsl was given.
28519if test ${with_libpsl+y}
28520then :
28521 withval=$with_libpsl; with_libpsl=$withval
28522else $as_nop
28523 with_libpsl=yes
28524fi
28525
28526if test $with_libpsl != "no"; then
28527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28528printf %s "checking for library containing psl_builtin... " >&6; }
28529if test ${ac_cv_search_psl_builtin+y}
28530then :
28531 printf %s "(cached) " >&6
28532else $as_nop
28533 ac_func_search_save_LIBS=$LIBS
28534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535/* end confdefs.h. */
28536
28537
28538#ifdef __cplusplus
28539extern "C"
28540#endif
28541char psl_builtin ();
28542int main (void)
28543{
28544return psl_builtin ();
28545 ;
28546 return 0;
28547}
28548_ACEOF
28549for ac_lib in '' psl
28550do
28551 if test -z "$ac_lib"; then
28552 ac_res="none required"
28553 else
28554 ac_res=-l$ac_lib
28555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28556 fi
28557 if ac_fn_c_try_link "$LINENO"
28558then :
28559 ac_cv_search_psl_builtin=$ac_res
28560fi
28561rm -f core conftest.err conftest.$ac_objext conftest.beam \
28562 conftest$ac_exeext
28563 if test ${ac_cv_search_psl_builtin+y}
28564then :
28565 break
28566fi
28567done
28568if test ${ac_cv_search_psl_builtin+y}
28569then :
28570
28571else $as_nop
28572 ac_cv_search_psl_builtin=no
28573fi
28574rm conftest.$ac_ext
28575LIBS=$ac_func_search_save_LIBS
28576fi
28577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
28578printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
28579ac_res=$ac_cv_search_psl_builtin
28580if test "$ac_res" != no
28581then :
28582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28583 curl_psl_msg="enabled";
28584
28585printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
28586
28587
28588else $as_nop
28589 curl_psl_msg="no (libpsl not found)";
28590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
28591printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
28592
28593
28594fi
28595
28596fi
28597 if test "$curl_psl_msg" = "enabled"; then
28598 USE_LIBPSL_TRUE=
28599 USE_LIBPSL_FALSE='#'
28600else
28601 USE_LIBPSL_TRUE='#'
28602 USE_LIBPSL_FALSE=
28603fi
28604
28605
28606
28607
28608
28609# Check whether --with-libgsasl was given.
28610if test ${with_libgsasl+y}
28611then :
28612 withval=$with_libgsasl; with_libgsasl=$withval
28613else $as_nop
28614 with_libgsasl=yes
28615fi
28616
28617if test $with_libgsasl != "no"; then
28618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
28619printf %s "checking for library containing gsasl_init... " >&6; }
28620if test ${ac_cv_search_gsasl_init+y}
28621then :
28622 printf %s "(cached) " >&6
28623else $as_nop
28624 ac_func_search_save_LIBS=$LIBS
28625cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28626/* end confdefs.h. */
28627
28628
28629#ifdef __cplusplus
28630extern "C"
28631#endif
28632char gsasl_init ();
28633int main (void)
28634{
28635return gsasl_init ();
28636 ;
28637 return 0;
28638}
28639_ACEOF
28640for ac_lib in '' gsasl
28641do
28642 if test -z "$ac_lib"; then
28643 ac_res="none required"
28644 else
28645 ac_res=-l$ac_lib
28646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28647 fi
28648 if ac_fn_c_try_link "$LINENO"
28649then :
28650 ac_cv_search_gsasl_init=$ac_res
28651fi
28652rm -f core conftest.err conftest.$ac_objext conftest.beam \
28653 conftest$ac_exeext
28654 if test ${ac_cv_search_gsasl_init+y}
28655then :
28656 break
28657fi
28658done
28659if test ${ac_cv_search_gsasl_init+y}
28660then :
28661
28662else $as_nop
28663 ac_cv_search_gsasl_init=no
28664fi
28665rm conftest.$ac_ext
28666LIBS=$ac_func_search_save_LIBS
28667fi
28668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
28669printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
28670ac_res=$ac_cv_search_gsasl_init
28671if test "$ac_res" != no
28672then :
28673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28674 curl_gsasl_msg="enabled";
28675
28676printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
28677
28678
28679else $as_nop
28680 curl_gsasl_msg="no (libgsasl not found)";
28681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
28682printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
28683
28684
28685fi
28686
28687fi
28688 if test "$curl_gsasl_msg" = "enabled"; then
28689 USE_GSASL_TRUE=
28690 USE_GSASL_FALSE='#'
28691else
28692 USE_GSASL_TRUE='#'
28693 USE_GSASL_FALSE=
28694fi
28695
28696
28697
28698# Check whether --with-libmetalink was given.
28699if test ${with_libmetalink+y}
28700then :
28701 withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
28702fi
28703
28704
28705
28706OPT_LIBSSH2=off
28707
28708# Check whether --with-libssh2 was given.
28709if test ${with_libssh2+y}
28710then :
28711 withval=$with_libssh2; OPT_LIBSSH2=$withval
28712else $as_nop
28713 OPT_LIBSSH2=no
28714fi
28715
28716
28717
28718OPT_LIBSSH=off
28719
28720# Check whether --with-libssh was given.
28721if test ${with_libssh+y}
28722then :
28723 withval=$with_libssh; OPT_LIBSSH=$withval
28724else $as_nop
28725 OPT_LIBSSH=no
28726fi
28727
28728
28729OPT_WOLFSSH=off
28730
28731# Check whether --with-wolfssh was given.
28732if test ${with_wolfssh+y}
28733then :
28734 withval=$with_wolfssh; OPT_WOLFSSH=$withval
28735else $as_nop
28736 OPT_WOLFSSH=no
28737fi
28738
28739
28740if test X"$OPT_LIBSSH2" != Xno; then
28741 CLEANLDFLAGS="$LDFLAGS"
28742 CLEANCPPFLAGS="$CPPFLAGS"
28743 CLEANLIBS="$LIBS"
28744
28745 case "$OPT_LIBSSH2" in
28746 yes)
28747
28748 if test -n "$PKG_CONFIG"; then
28749 PKGCONFIG="$PKG_CONFIG"
28750 else
28751 if test -n "$ac_tool_prefix"; then
28752 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28753set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28755printf %s "checking for $ac_word... " >&6; }
28756if test ${ac_cv_path_PKGCONFIG+y}
28757then :
28758 printf %s "(cached) " >&6
28759else $as_nop
28760 case $PKGCONFIG in
28761 [\\/]* | ?:[\\/]*)
28762 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28763 ;;
28764 *)
28765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28766as_dummy="$PATH:/usr/bin:/usr/local/bin"
28767for as_dir in $as_dummy
28768do
28769 IFS=$as_save_IFS
28770 case $as_dir in #(((
28771 '') as_dir=./ ;;
28772 */) ;;
28773 *) as_dir=$as_dir/ ;;
28774 esac
28775 for ac_exec_ext in '' $ac_executable_extensions; do
28776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28777 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28779 break 2
28780 fi
28781done
28782 done
28783IFS=$as_save_IFS
28784
28785 ;;
28786esac
28787fi
28788PKGCONFIG=$ac_cv_path_PKGCONFIG
28789if test -n "$PKGCONFIG"; then
28790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28791printf "%s\n" "$PKGCONFIG" >&6; }
28792else
28793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28794printf "%s\n" "no" >&6; }
28795fi
28796
28797
28798fi
28799if test -z "$ac_cv_path_PKGCONFIG"; then
28800 ac_pt_PKGCONFIG=$PKGCONFIG
28801 # Extract the first word of "pkg-config", so it can be a program name with args.
28802set dummy pkg-config; ac_word=$2
28803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28804printf %s "checking for $ac_word... " >&6; }
28805if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28806then :
28807 printf %s "(cached) " >&6
28808else $as_nop
28809 case $ac_pt_PKGCONFIG in
28810 [\\/]* | ?:[\\/]*)
28811 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28812 ;;
28813 *)
28814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28815as_dummy="$PATH:/usr/bin:/usr/local/bin"
28816for as_dir in $as_dummy
28817do
28818 IFS=$as_save_IFS
28819 case $as_dir in #(((
28820 '') as_dir=./ ;;
28821 */) ;;
28822 *) as_dir=$as_dir/ ;;
28823 esac
28824 for ac_exec_ext in '' $ac_executable_extensions; do
28825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28826 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28828 break 2
28829 fi
28830done
28831 done
28832IFS=$as_save_IFS
28833
28834 ;;
28835esac
28836fi
28837ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28838if test -n "$ac_pt_PKGCONFIG"; then
28839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28840printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28841else
28842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28843printf "%s\n" "no" >&6; }
28844fi
28845
28846 if test "x$ac_pt_PKGCONFIG" = x; then
28847 PKGCONFIG="no"
28848 else
28849 case $cross_compiling:$ac_tool_warned in
28850yes:)
28851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28852printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28853ac_tool_warned=yes ;;
28854esac
28855 PKGCONFIG=$ac_pt_PKGCONFIG
28856 fi
28857else
28858 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28859fi
28860
28861 fi
28862
28863 if test "x$PKGCONFIG" != "xno"; then
28864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
28865printf %s "checking for libssh2 options with pkg-config... " >&6; }
28866 itexists=`
28867 if test -n ""; then
28868 PKG_CONFIG_LIBDIR=""
28869 export PKG_CONFIG_LIBDIR
28870 fi
28871 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
28872
28873 if test -z "$itexists"; then
28874 PKGCONFIG="no"
28875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28876printf "%s\n" "no" >&6; }
28877 else
28878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28879printf "%s\n" "found" >&6; }
28880 fi
28881 fi
28882
28883
28884 if test "$PKGCONFIG" != "no" ; then
28885 LIB_SSH2=`$PKGCONFIG --libs libssh2`
28886 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
28887 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
28888 version=`$PKGCONFIG --modversion libssh2`
28889 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
28890 fi
28891
28892 ;;
28893 off)
28894 ;;
28895 *)
28896 PREFIX_SSH2=$OPT_LIBSSH2
28897 ;;
28898 esac
28899
28900 if test -n "$PREFIX_SSH2"; then
28901 LIB_SSH2="-lssh2"
28902 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
28903 CPP_SSH2=-I${PREFIX_SSH2}/include
28904 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
28905 fi
28906
28907 LDFLAGS="$LDFLAGS $LD_SSH2"
28908 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
28909 LIBS="$LIB_SSH2 $LIBS"
28910
28911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
28912printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
28913if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
28914then :
28915 printf %s "(cached) " >&6
28916else $as_nop
28917 ac_check_lib_save_LIBS=$LIBS
28918LIBS="-lssh2 $LIBS"
28919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28920/* end confdefs.h. */
28921
28922
28923#ifdef __cplusplus
28924extern "C"
28925#endif
28926char libssh2_session_block_directions ();
28927int main (void)
28928{
28929return libssh2_session_block_directions ();
28930 ;
28931 return 0;
28932}
28933_ACEOF
28934if ac_fn_c_try_link "$LINENO"
28935then :
28936 ac_cv_lib_ssh2_libssh2_session_block_directions=yes
28937else $as_nop
28938 ac_cv_lib_ssh2_libssh2_session_block_directions=no
28939fi
28940rm -f core conftest.err conftest.$ac_objext conftest.beam \
28941 conftest$ac_exeext conftest.$ac_ext
28942LIBS=$ac_check_lib_save_LIBS
28943fi
28944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
28945printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
28946if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
28947then :
28948 printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
28949
28950 LIBS="-lssh2 $LIBS"
28951
28952fi
28953
28954
28955 ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
28956if test "x$ac_cv_header_libssh2_h" = xyes
28957then :
28958 curl_ssh_msg="enabled (libSSH2)"
28959 LIBSSH2_ENABLED=1
28960
28961printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
28962
28963 USE_LIBSSH2=1
28964
28965
28966fi
28967
28968
28969 if test X"$OPT_LIBSSH2" != Xoff &&
28970 test "$LIBSSH2_ENABLED" != "1"; then
28971 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
28972 fi
28973
28974 if test "$LIBSSH2_ENABLED" = "1"; then
28975 if test -n "$DIR_SSH2"; then
28976
28977 if test "x$cross_compiling" != "xyes"; then
28978 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
28979 export CURL_LIBRARY_PATH
28980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
28981printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
28982 fi
28983 fi
28984 else
28985 LDFLAGS=$CLEANLDFLAGS
28986 CPPFLAGS=$CLEANCPPFLAGS
28987 LIBS=$CLEANLIBS
28988 fi
28989elif test X"$OPT_LIBSSH" != Xno; then
28990 CLEANLDFLAGS="$LDFLAGS"
28991 CLEANCPPFLAGS="$CPPFLAGS"
28992 CLEANLIBS="$LIBS"
28993
28994 case "$OPT_LIBSSH" in
28995 yes)
28996
28997 if test -n "$PKG_CONFIG"; then
28998 PKGCONFIG="$PKG_CONFIG"
28999 else
29000 if test -n "$ac_tool_prefix"; then
29001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29002set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29004printf %s "checking for $ac_word... " >&6; }
29005if test ${ac_cv_path_PKGCONFIG+y}
29006then :
29007 printf %s "(cached) " >&6
29008else $as_nop
29009 case $PKGCONFIG in
29010 [\\/]* | ?:[\\/]*)
29011 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29012 ;;
29013 *)
29014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29015as_dummy="$PATH:/usr/bin:/usr/local/bin"
29016for as_dir in $as_dummy
29017do
29018 IFS=$as_save_IFS
29019 case $as_dir in #(((
29020 '') as_dir=./ ;;
29021 */) ;;
29022 *) as_dir=$as_dir/ ;;
29023 esac
29024 for ac_exec_ext in '' $ac_executable_extensions; do
29025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29026 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29028 break 2
29029 fi
29030done
29031 done
29032IFS=$as_save_IFS
29033
29034 ;;
29035esac
29036fi
29037PKGCONFIG=$ac_cv_path_PKGCONFIG
29038if test -n "$PKGCONFIG"; then
29039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29040printf "%s\n" "$PKGCONFIG" >&6; }
29041else
29042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043printf "%s\n" "no" >&6; }
29044fi
29045
29046
29047fi
29048if test -z "$ac_cv_path_PKGCONFIG"; then
29049 ac_pt_PKGCONFIG=$PKGCONFIG
29050 # Extract the first word of "pkg-config", so it can be a program name with args.
29051set dummy pkg-config; ac_word=$2
29052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29053printf %s "checking for $ac_word... " >&6; }
29054if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29055then :
29056 printf %s "(cached) " >&6
29057else $as_nop
29058 case $ac_pt_PKGCONFIG in
29059 [\\/]* | ?:[\\/]*)
29060 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29061 ;;
29062 *)
29063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29064as_dummy="$PATH:/usr/bin:/usr/local/bin"
29065for as_dir in $as_dummy
29066do
29067 IFS=$as_save_IFS
29068 case $as_dir in #(((
29069 '') as_dir=./ ;;
29070 */) ;;
29071 *) as_dir=$as_dir/ ;;
29072 esac
29073 for ac_exec_ext in '' $ac_executable_extensions; do
29074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29075 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29077 break 2
29078 fi
29079done
29080 done
29081IFS=$as_save_IFS
29082
29083 ;;
29084esac
29085fi
29086ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29087if test -n "$ac_pt_PKGCONFIG"; then
29088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29089printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29090else
29091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29092printf "%s\n" "no" >&6; }
29093fi
29094
29095 if test "x$ac_pt_PKGCONFIG" = x; then
29096 PKGCONFIG="no"
29097 else
29098 case $cross_compiling:$ac_tool_warned in
29099yes:)
29100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29101printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29102ac_tool_warned=yes ;;
29103esac
29104 PKGCONFIG=$ac_pt_PKGCONFIG
29105 fi
29106else
29107 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29108fi
29109
29110 fi
29111
29112 if test "x$PKGCONFIG" != "xno"; then
29113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29114printf %s "checking for libssh options with pkg-config... " >&6; }
29115 itexists=`
29116 if test -n ""; then
29117 PKG_CONFIG_LIBDIR=""
29118 export PKG_CONFIG_LIBDIR
29119 fi
29120 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29121
29122 if test -z "$itexists"; then
29123 PKGCONFIG="no"
29124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29125printf "%s\n" "no" >&6; }
29126 else
29127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29128printf "%s\n" "found" >&6; }
29129 fi
29130 fi
29131
29132
29133 if test "$PKGCONFIG" != "no" ; then
29134 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29135 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29136 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29137 version=`$PKGCONFIG --modversion libssh`
29138 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29139 fi
29140
29141 ;;
29142 off)
29143 ;;
29144 *)
29145 PREFIX_SSH=$OPT_LIBSSH
29146 ;;
29147 esac
29148
29149 if test -n "$PREFIX_SSH"; then
29150 LIB_SSH="-lssh"
29151 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29152 CPP_SSH=-I${PREFIX_SSH}/include
29153 DIR_SSH=${PREFIX_SSH}/lib$libsuff
29154 fi
29155
29156 LDFLAGS="$LDFLAGS $LD_SSH"
29157 CPPFLAGS="$CPPFLAGS $CPP_SSH"
29158 LIBS="$LIB_SSH $LIBS"
29159
29160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29161printf %s "checking for ssh_new in -lssh... " >&6; }
29162if test ${ac_cv_lib_ssh_ssh_new+y}
29163then :
29164 printf %s "(cached) " >&6
29165else $as_nop
29166 ac_check_lib_save_LIBS=$LIBS
29167LIBS="-lssh $LIBS"
29168cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29169/* end confdefs.h. */
29170
29171
29172#ifdef __cplusplus
29173extern "C"
29174#endif
29175char ssh_new ();
29176int main (void)
29177{
29178return ssh_new ();
29179 ;
29180 return 0;
29181}
29182_ACEOF
29183if ac_fn_c_try_link "$LINENO"
29184then :
29185 ac_cv_lib_ssh_ssh_new=yes
29186else $as_nop
29187 ac_cv_lib_ssh_ssh_new=no
29188fi
29189rm -f core conftest.err conftest.$ac_objext conftest.beam \
29190 conftest$ac_exeext conftest.$ac_ext
29191LIBS=$ac_check_lib_save_LIBS
29192fi
29193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29194printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29195if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29196then :
29197 printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29198
29199 LIBS="-lssh $LIBS"
29200
29201fi
29202
29203
29204 ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29205if test "x$ac_cv_header_libssh_libssh_h" = xyes
29206then :
29207 curl_ssh_msg="enabled (libSSH)"
29208 LIBSSH_ENABLED=1
29209
29210printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29211
29212 USE_LIBSSH=1
29213
29214
29215fi
29216
29217
29218 if test X"$OPT_LIBSSH" != Xoff &&
29219 test "$LIBSSH_ENABLED" != "1"; then
29220 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29221 fi
29222
29223 if test "$LIBSSH_ENABLED" = "1"; then
29224 if test -n "$DIR_SSH"; then
29225
29226 if test "x$cross_compiling" != "xyes"; then
29227 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29228 export CURL_LIBRARY_PATH
29229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29230printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29231 fi
29232 fi
29233 else
29234 LDFLAGS=$CLEANLDFLAGS
29235 CPPFLAGS=$CLEANCPPFLAGS
29236 LIBS=$CLEANLIBS
29237 fi
29238elif test X"$OPT_WOLFSSH" != Xno; then
29239 CLEANLDFLAGS="$LDFLAGS"
29240 CLEANCPPFLAGS="$CPPFLAGS"
29241 CLEANLIBS="$LIBS"
29242
29243
29244 if test "$OPT_WOLFSSH" != yes; then
29245 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29246 LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29247 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29248 fi
29249
29250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29251printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29252if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29253then :
29254 printf %s "(cached) " >&6
29255else $as_nop
29256 ac_check_lib_save_LIBS=$LIBS
29257LIBS="-lwolfssh $LIBS"
29258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259/* end confdefs.h. */
29260
29261
29262#ifdef __cplusplus
29263extern "C"
29264#endif
29265char wolfSSH_Init ();
29266int main (void)
29267{
29268return wolfSSH_Init ();
29269 ;
29270 return 0;
29271}
29272_ACEOF
29273if ac_fn_c_try_link "$LINENO"
29274then :
29275 ac_cv_lib_wolfssh_wolfSSH_Init=yes
29276else $as_nop
29277 ac_cv_lib_wolfssh_wolfSSH_Init=no
29278fi
29279rm -f core conftest.err conftest.$ac_objext conftest.beam \
29280 conftest$ac_exeext conftest.$ac_ext
29281LIBS=$ac_check_lib_save_LIBS
29282fi
29283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29284printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29285if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29286then :
29287 printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29288
29289 LIBS="-lwolfssh $LIBS"
29290
29291fi
29292
29293
29294 for ac_header in wolfssh/ssh.h
29295do :
29296 ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29297if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29298then :
29299 printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29300 curl_ssh_msg="enabled (wolfSSH)"
29301 WOLFSSH_ENABLED=1
29302
29303printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29304
29305 USE_WOLFSSH=1
29306
29307
29308fi
29309
29310done
29311
29312fi
29313
29314
29315OPT_LIBRTMP=off
29316
29317# Check whether --with-librtmp was given.
29318if test ${with_librtmp+y}
29319then :
29320 withval=$with_librtmp; OPT_LIBRTMP=$withval
29321fi
29322
29323
29324if test X"$OPT_LIBRTMP" != Xno; then
29325 CLEANLDFLAGS="$LDFLAGS"
29326 CLEANCPPFLAGS="$CPPFLAGS"
29327 CLEANLIBS="$LIBS"
29328
29329 case "$OPT_LIBRTMP" in
29330 yes)
29331
29332 if test -n "$PKG_CONFIG"; then
29333 PKGCONFIG="$PKG_CONFIG"
29334 else
29335 if test -n "$ac_tool_prefix"; then
29336 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29337set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29338{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29339printf %s "checking for $ac_word... " >&6; }
29340if test ${ac_cv_path_PKGCONFIG+y}
29341then :
29342 printf %s "(cached) " >&6
29343else $as_nop
29344 case $PKGCONFIG in
29345 [\\/]* | ?:[\\/]*)
29346 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29347 ;;
29348 *)
29349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29350as_dummy="$PATH:/usr/bin:/usr/local/bin"
29351for as_dir in $as_dummy
29352do
29353 IFS=$as_save_IFS
29354 case $as_dir in #(((
29355 '') as_dir=./ ;;
29356 */) ;;
29357 *) as_dir=$as_dir/ ;;
29358 esac
29359 for ac_exec_ext in '' $ac_executable_extensions; do
29360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29361 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29363 break 2
29364 fi
29365done
29366 done
29367IFS=$as_save_IFS
29368
29369 ;;
29370esac
29371fi
29372PKGCONFIG=$ac_cv_path_PKGCONFIG
29373if test -n "$PKGCONFIG"; then
29374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29375printf "%s\n" "$PKGCONFIG" >&6; }
29376else
29377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29378printf "%s\n" "no" >&6; }
29379fi
29380
29381
29382fi
29383if test -z "$ac_cv_path_PKGCONFIG"; then
29384 ac_pt_PKGCONFIG=$PKGCONFIG
29385 # Extract the first word of "pkg-config", so it can be a program name with args.
29386set dummy pkg-config; ac_word=$2
29387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29388printf %s "checking for $ac_word... " >&6; }
29389if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29390then :
29391 printf %s "(cached) " >&6
29392else $as_nop
29393 case $ac_pt_PKGCONFIG in
29394 [\\/]* | ?:[\\/]*)
29395 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29396 ;;
29397 *)
29398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29399as_dummy="$PATH:/usr/bin:/usr/local/bin"
29400for as_dir in $as_dummy
29401do
29402 IFS=$as_save_IFS
29403 case $as_dir in #(((
29404 '') as_dir=./ ;;
29405 */) ;;
29406 *) as_dir=$as_dir/ ;;
29407 esac
29408 for ac_exec_ext in '' $ac_executable_extensions; do
29409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29410 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29412 break 2
29413 fi
29414done
29415 done
29416IFS=$as_save_IFS
29417
29418 ;;
29419esac
29420fi
29421ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29422if test -n "$ac_pt_PKGCONFIG"; then
29423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29424printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29425else
29426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29427printf "%s\n" "no" >&6; }
29428fi
29429
29430 if test "x$ac_pt_PKGCONFIG" = x; then
29431 PKGCONFIG="no"
29432 else
29433 case $cross_compiling:$ac_tool_warned in
29434yes:)
29435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29436printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29437ac_tool_warned=yes ;;
29438esac
29439 PKGCONFIG=$ac_pt_PKGCONFIG
29440 fi
29441else
29442 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29443fi
29444
29445 fi
29446
29447 if test "x$PKGCONFIG" != "xno"; then
29448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29449printf %s "checking for librtmp options with pkg-config... " >&6; }
29450 itexists=`
29451 if test -n ""; then
29452 PKG_CONFIG_LIBDIR=""
29453 export PKG_CONFIG_LIBDIR
29454 fi
29455 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29456
29457 if test -z "$itexists"; then
29458 PKGCONFIG="no"
29459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29460printf "%s\n" "no" >&6; }
29461 else
29462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29463printf "%s\n" "found" >&6; }
29464 fi
29465 fi
29466
29467
29468 if test "$PKGCONFIG" != "no" ; then
29469 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29470 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29471 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29472 version=`$PKGCONFIG --modversion librtmp`
29473 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29474 else
29475 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29476 fi
29477
29478 ;;
29479 off)
29480 LIB_RTMP="-lrtmp"
29481 ;;
29482 *)
29483 LIB_RTMP="-lrtmp"
29484 PREFIX_RTMP=$OPT_LIBRTMP
29485 ;;
29486 esac
29487
29488 if test -n "$PREFIX_RTMP"; then
29489 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29490 CPP_RTMP=-I${PREFIX_RTMP}/include
29491 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29492 fi
29493
29494 LDFLAGS="$LDFLAGS $LD_RTMP"
29495 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29496 LIBS="$LIB_RTMP $LIBS"
29497
29498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29499printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29500if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29501then :
29502 printf %s "(cached) " >&6
29503else $as_nop
29504 ac_check_lib_save_LIBS=$LIBS
29505LIBS="-lrtmp $LIBS"
29506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29507/* end confdefs.h. */
29508
29509
29510#ifdef __cplusplus
29511extern "C"
29512#endif
29513char RTMP_Init ();
29514int main (void)
29515{
29516return RTMP_Init ();
29517 ;
29518 return 0;
29519}
29520_ACEOF
29521if ac_fn_c_try_link "$LINENO"
29522then :
29523 ac_cv_lib_rtmp_RTMP_Init=yes
29524else $as_nop
29525 ac_cv_lib_rtmp_RTMP_Init=no
29526fi
29527rm -f core conftest.err conftest.$ac_objext conftest.beam \
29528 conftest$ac_exeext conftest.$ac_ext
29529LIBS=$ac_check_lib_save_LIBS
29530fi
29531{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29532printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29533if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29534then :
29535
29536 for ac_header in librtmp/rtmp.h
29537do :
29538 ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
29539if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
29540then :
29541 printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
29542 curl_rtmp_msg="enabled (librtmp)"
29543 LIBRTMP_ENABLED=1
29544
29545printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
29546
29547 USE_LIBRTMP=1
29548
29549
29550fi
29551
29552done
29553
29554else $as_nop
29555 LDFLAGS=$CLEANLDFLAGS
29556 CPPFLAGS=$CLEANCPPFLAGS
29557 LIBS=$CLEANLIBS
29558
29559fi
29560
29561
29562 if test X"$OPT_LIBRTMP" != Xoff &&
29563 test "$LIBRTMP_ENABLED" != "1"; then
29564 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
29565 fi
29566
29567fi
29568
29569
29570versioned_symbols_flavour=
29571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
29572printf %s "checking whether versioned symbols are wanted... " >&6; }
29573# Check whether --enable-versioned-symbols was given.
29574if test ${enable_versioned_symbols+y}
29575then :
29576 enableval=$enable_versioned_symbols; case "$enableval" in
29577 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29578printf "%s\n" "yes" >&6; }
29579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
29580printf %s "checking if libraries can be versioned... " >&6; }
29581 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
29582 if test -z "$GLD"; then
29583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29584printf "%s\n" "no" >&6; }
29585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
29586printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
29587 else
29588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29589printf "%s\n" "yes" >&6; }
29590 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
29591 versioned_symbols_flavour="MULTISSL_"
29592 elif test "x$OPENSSL_ENABLED" = "x1"; then
29593 versioned_symbols_flavour="OPENSSL_"
29594 elif test "x$GNUTLS_ENABLED" = "x1"; then
29595 versioned_symbols_flavour="GNUTLS_"
29596 elif test "x$NSS_ENABLED" = "x1"; then
29597 versioned_symbols_flavour="NSS_"
29598 elif test "x$WOLFSSL_ENABLED" = "x1"; then
29599 versioned_symbols_flavour="WOLFSSL_"
29600 elif test "x$SCHANNEL_ENABLED" = "x1"; then
29601 versioned_symbols_flavour="SCHANNEL_"
29602 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
29603 versioned_symbols_flavour="SECURE_TRANSPORT_"
29604 else
29605 versioned_symbols_flavour=""
29606 fi
29607 versioned_symbols="yes"
29608 fi
29609 ;;
29610
29611 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29612printf "%s\n" "no" >&6; }
29613 ;;
29614 esac
29615
29616else $as_nop
29617
29618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29619printf "%s\n" "no" >&6; }
29620
29621
29622fi
29623
29624
29625CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
29626
29627 if test "x$versioned_symbols" = 'xyes'; then
29628 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
29629 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
29630else
29631 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
29632 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
29633fi
29634
29635
29636CURL_PLIST_VERSION="$CURLVERSION"
29637
29638
29639
29640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
29641printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
29642OPT_WINIDN="default"
29643
29644# Check whether --with-winidn was given.
29645if test ${with_winidn+y}
29646then :
29647 withval=$with_winidn; OPT_WINIDN=$withval
29648fi
29649
29650case "$OPT_WINIDN" in
29651 no|default)
29652 want_winidn="no"
29653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29654printf "%s\n" "no" >&6; }
29655 ;;
29656 yes)
29657 want_winidn="yes"
29658 want_winidn_path="default"
29659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29660printf "%s\n" "yes" >&6; }
29661 ;;
29662 *)
29663 want_winidn="yes"
29664 want_winidn_path="$withval"
29665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29666printf "%s\n" "yes ($withval)" >&6; }
29667 ;;
29668esac
29669
29670if test "$want_winidn" = "yes"; then
29671 clean_CFLAGS="$CFLAGS"
29672 clean_CPPFLAGS="$CPPFLAGS"
29673 clean_LDFLAGS="$LDFLAGS"
29674 clean_LIBS="$LIBS"
29675 WINIDN_LIBS="-lnormaliz"
29676 WINIDN_CPPFLAGS=""
29677 #
29678 if test "$want_winidn_path" != "default"; then
29679 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
29680 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
29681 WINIDN_DIR="$want_winidn_path/lib$libsuff"
29682 fi
29683 #
29684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29685/* end confdefs.h. */
29686
29687
29688 #include <windows.h>
29689
29690int main (void)
29691{
29692
29693 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
29694 #error
29695 #endif
29696
29697 ;
29698 return 0;
29699}
29700
29701_ACEOF
29702if ac_fn_c_try_compile "$LINENO"
29703then :
29704
29705
29706else $as_nop
29707
29708 CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29709 CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29710 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29711 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29712 WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
29713
29714fi
29715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29716 #
29717 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
29718 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
29719 LIBS="$WINIDN_LIBS $LIBS"
29720 #
29721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
29722printf %s "checking if IdnToUnicode can be linked... " >&6; }
29723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724/* end confdefs.h. */
29725
29726
29727 #include <windows.h>
29728
29729int main (void)
29730{
29731
29732 IdnToUnicode(0, NULL, 0, NULL, 0);
29733
29734 ;
29735 return 0;
29736}
29737
29738_ACEOF
29739if ac_fn_c_try_link "$LINENO"
29740then :
29741
29742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29743printf "%s\n" "yes" >&6; }
29744 tst_links_winidn="yes"
29745
29746else $as_nop
29747
29748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29749printf "%s\n" "no" >&6; }
29750 tst_links_winidn="no"
29751
29752fi
29753rm -f core conftest.err conftest.$ac_objext conftest.beam \
29754 conftest$ac_exeext conftest.$ac_ext
29755 #
29756 if test "$tst_links_winidn" = "yes"; then
29757
29758printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
29759
29760
29761printf "%s\n" "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
29762
29763 IDN_ENABLED=1
29764
29765 curl_idn_msg="enabled (Windows-native)"
29766 else
29767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29768printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29769 CFLAGS="$clean_CFLAGS"
29770 CPPFLAGS="$clean_CPPFLAGS"
29771 LDFLAGS="$clean_LDFLAGS"
29772 LIBS="$clean_LIBS"
29773 fi
29774fi
29775
29776
29777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
29778printf %s "checking whether to build with libidn2... " >&6; }
29779OPT_IDN="default"
29780
29781# Check whether --with-libidn2 was given.
29782if test ${with_libidn2+y}
29783then :
29784 withval=$with_libidn2; OPT_IDN=$withval
29785fi
29786
29787if test "x$tst_links_winidn" = "xyes"; then
29788 want_idn="no"
29789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
29790printf "%s\n" "no (using winidn instead)" >&6; }
29791else
29792 case "$OPT_IDN" in
29793 no)
29794 want_idn="no"
29795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29796printf "%s\n" "no" >&6; }
29797 ;;
29798 default)
29799 want_idn="yes"
29800 want_idn_path="default"
29801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
29802printf "%s\n" "(assumed) yes" >&6; }
29803 ;;
29804 yes)
29805 want_idn="yes"
29806 want_idn_path="default"
29807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29808printf "%s\n" "yes" >&6; }
29809 ;;
29810 *)
29811 want_idn="yes"
29812 want_idn_path="$withval"
29813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29814printf "%s\n" "yes ($withval)" >&6; }
29815 ;;
29816 esac
29817fi
29818
29819if test "$want_idn" = "yes"; then
29820 clean_CPPFLAGS="$CPPFLAGS"
29821 clean_LDFLAGS="$LDFLAGS"
29822 clean_LIBS="$LIBS"
29823 PKGCONFIG="no"
29824 #
29825 if test "$want_idn_path" != "default"; then
29826 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
29827
29828 if test -n "$PKG_CONFIG"; then
29829 PKGCONFIG="$PKG_CONFIG"
29830 else
29831 if test -n "$ac_tool_prefix"; then
29832 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29833set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29835printf %s "checking for $ac_word... " >&6; }
29836if test ${ac_cv_path_PKGCONFIG+y}
29837then :
29838 printf %s "(cached) " >&6
29839else $as_nop
29840 case $PKGCONFIG in
29841 [\\/]* | ?:[\\/]*)
29842 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29843 ;;
29844 *)
29845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29846as_dummy="$PATH:/usr/bin:/usr/local/bin"
29847for as_dir in $as_dummy
29848do
29849 IFS=$as_save_IFS
29850 case $as_dir in #(((
29851 '') as_dir=./ ;;
29852 */) ;;
29853 *) as_dir=$as_dir/ ;;
29854 esac
29855 for ac_exec_ext in '' $ac_executable_extensions; do
29856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29857 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29859 break 2
29860 fi
29861done
29862 done
29863IFS=$as_save_IFS
29864
29865 ;;
29866esac
29867fi
29868PKGCONFIG=$ac_cv_path_PKGCONFIG
29869if test -n "$PKGCONFIG"; then
29870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29871printf "%s\n" "$PKGCONFIG" >&6; }
29872else
29873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29874printf "%s\n" "no" >&6; }
29875fi
29876
29877
29878fi
29879if test -z "$ac_cv_path_PKGCONFIG"; then
29880 ac_pt_PKGCONFIG=$PKGCONFIG
29881 # Extract the first word of "pkg-config", so it can be a program name with args.
29882set dummy pkg-config; ac_word=$2
29883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29884printf %s "checking for $ac_word... " >&6; }
29885if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29886then :
29887 printf %s "(cached) " >&6
29888else $as_nop
29889 case $ac_pt_PKGCONFIG in
29890 [\\/]* | ?:[\\/]*)
29891 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29892 ;;
29893 *)
29894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29895as_dummy="$PATH:/usr/bin:/usr/local/bin"
29896for as_dir in $as_dummy
29897do
29898 IFS=$as_save_IFS
29899 case $as_dir in #(((
29900 '') as_dir=./ ;;
29901 */) ;;
29902 *) as_dir=$as_dir/ ;;
29903 esac
29904 for ac_exec_ext in '' $ac_executable_extensions; do
29905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29906 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29908 break 2
29909 fi
29910done
29911 done
29912IFS=$as_save_IFS
29913
29914 ;;
29915esac
29916fi
29917ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29918if test -n "$ac_pt_PKGCONFIG"; then
29919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29920printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29921else
29922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29923printf "%s\n" "no" >&6; }
29924fi
29925
29926 if test "x$ac_pt_PKGCONFIG" = x; then
29927 PKGCONFIG="no"
29928 else
29929 case $cross_compiling:$ac_tool_warned in
29930yes:)
29931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29932printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29933ac_tool_warned=yes ;;
29934esac
29935 PKGCONFIG=$ac_pt_PKGCONFIG
29936 fi
29937else
29938 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29939fi
29940
29941 fi
29942
29943 if test "x$PKGCONFIG" != "xno"; then
29944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
29945printf %s "checking for libidn2 options with pkg-config... " >&6; }
29946 itexists=`
29947 if test -n "$IDN_PCDIR"; then
29948 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29949 export PKG_CONFIG_LIBDIR
29950 fi
29951 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
29952
29953 if test -z "$itexists"; then
29954 PKGCONFIG="no"
29955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29956printf "%s\n" "no" >&6; }
29957 else
29958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29959printf "%s\n" "found" >&6; }
29960 fi
29961 fi
29962
29963 if test "$PKGCONFIG" != "no"; then
29964 IDN_LIBS=`
29965 if test -n "$IDN_PCDIR"; then
29966 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29967 export PKG_CONFIG_LIBDIR
29968 fi
29969 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
29970 IDN_LDFLAGS=`
29971 if test -n "$IDN_PCDIR"; then
29972 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29973 export PKG_CONFIG_LIBDIR
29974 fi
29975 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
29976 IDN_CPPFLAGS=`
29977 if test -n "$IDN_PCDIR"; then
29978 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29979 export PKG_CONFIG_LIBDIR
29980 fi
29981 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
29982 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
29983 else
29984 IDN_LIBS="-lidn2"
29985 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
29986 IDN_CPPFLAGS="-I$want_idn_path/include"
29987 IDN_DIR="$want_idn_path/lib$libsuff"
29988 fi
29989 else
29990
29991 if test -n "$PKG_CONFIG"; then
29992 PKGCONFIG="$PKG_CONFIG"
29993 else
29994 if test -n "$ac_tool_prefix"; then
29995 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29996set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29998printf %s "checking for $ac_word... " >&6; }
29999if test ${ac_cv_path_PKGCONFIG+y}
30000then :
30001 printf %s "(cached) " >&6
30002else $as_nop
30003 case $PKGCONFIG in
30004 [\\/]* | ?:[\\/]*)
30005 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30006 ;;
30007 *)
30008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30009as_dummy="$PATH:/usr/bin:/usr/local/bin"
30010for as_dir in $as_dummy
30011do
30012 IFS=$as_save_IFS
30013 case $as_dir in #(((
30014 '') as_dir=./ ;;
30015 */) ;;
30016 *) as_dir=$as_dir/ ;;
30017 esac
30018 for ac_exec_ext in '' $ac_executable_extensions; do
30019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30020 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30022 break 2
30023 fi
30024done
30025 done
30026IFS=$as_save_IFS
30027
30028 ;;
30029esac
30030fi
30031PKGCONFIG=$ac_cv_path_PKGCONFIG
30032if test -n "$PKGCONFIG"; then
30033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30034printf "%s\n" "$PKGCONFIG" >&6; }
30035else
30036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30037printf "%s\n" "no" >&6; }
30038fi
30039
30040
30041fi
30042if test -z "$ac_cv_path_PKGCONFIG"; then
30043 ac_pt_PKGCONFIG=$PKGCONFIG
30044 # Extract the first word of "pkg-config", so it can be a program name with args.
30045set dummy pkg-config; ac_word=$2
30046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30047printf %s "checking for $ac_word... " >&6; }
30048if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30049then :
30050 printf %s "(cached) " >&6
30051else $as_nop
30052 case $ac_pt_PKGCONFIG in
30053 [\\/]* | ?:[\\/]*)
30054 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30055 ;;
30056 *)
30057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30058as_dummy="$PATH:/usr/bin:/usr/local/bin"
30059for as_dir in $as_dummy
30060do
30061 IFS=$as_save_IFS
30062 case $as_dir in #(((
30063 '') as_dir=./ ;;
30064 */) ;;
30065 *) as_dir=$as_dir/ ;;
30066 esac
30067 for ac_exec_ext in '' $ac_executable_extensions; do
30068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30069 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30071 break 2
30072 fi
30073done
30074 done
30075IFS=$as_save_IFS
30076
30077 ;;
30078esac
30079fi
30080ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30081if test -n "$ac_pt_PKGCONFIG"; then
30082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30083printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30084else
30085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30086printf "%s\n" "no" >&6; }
30087fi
30088
30089 if test "x$ac_pt_PKGCONFIG" = x; then
30090 PKGCONFIG="no"
30091 else
30092 case $cross_compiling:$ac_tool_warned in
30093yes:)
30094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30095printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30096ac_tool_warned=yes ;;
30097esac
30098 PKGCONFIG=$ac_pt_PKGCONFIG
30099 fi
30100else
30101 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30102fi
30103
30104 fi
30105
30106 if test "x$PKGCONFIG" != "xno"; then
30107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30108printf %s "checking for libidn2 options with pkg-config... " >&6; }
30109 itexists=`
30110 if test -n ""; then
30111 PKG_CONFIG_LIBDIR=""
30112 export PKG_CONFIG_LIBDIR
30113 fi
30114 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30115
30116 if test -z "$itexists"; then
30117 PKGCONFIG="no"
30118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30119printf "%s\n" "no" >&6; }
30120 else
30121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30122printf "%s\n" "found" >&6; }
30123 fi
30124 fi
30125
30126 if test "$PKGCONFIG" != "no"; then
30127 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30128 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30129 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30130 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30131 else
30132 IDN_LIBS="-lidn2"
30133 fi
30134 fi
30135 #
30136 if test "$PKGCONFIG" != "no"; then
30137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30138printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30140printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30142printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30144printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30145 else
30146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30147printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30149printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30151printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30153printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30154 fi
30155 #
30156 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30157 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30158 LIBS="$IDN_LIBS $LIBS"
30159 #
30160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30161printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30163/* end confdefs.h. */
30164
30165
30166#define idn2_lookup_ul innocuous_idn2_lookup_ul
30167#ifdef __STDC__
30168# include <limits.h>
30169#else
30170# include <assert.h>
30171#endif
30172#undef idn2_lookup_ul
30173#ifdef __cplusplus
30174extern "C"
30175#endif
30176char idn2_lookup_ul ();
30177#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30178choke me
30179#endif
30180
30181int main (void)
30182{
30183return idn2_lookup_ul ();
30184 ;
30185 return 0;
30186}
30187
30188_ACEOF
30189if ac_fn_c_try_link "$LINENO"
30190then :
30191
30192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30193printf "%s\n" "yes" >&6; }
30194 tst_links_libidn="yes"
30195
30196else $as_nop
30197
30198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199printf "%s\n" "no" >&6; }
30200 tst_links_libidn="no"
30201
30202fi
30203rm -f core conftest.err conftest.$ac_objext conftest.beam \
30204 conftest$ac_exeext conftest.$ac_ext
30205 #
30206 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30207if test "x$ac_cv_header_idn2_h" = xyes
30208then :
30209 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30210
30211fi
30212
30213
30214 if test "$tst_links_libidn" = "yes"; then
30215
30216printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30217
30218
30219 IDN_ENABLED=1
30220
30221 curl_idn_msg="enabled (libidn2)"
30222 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30223 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30224 export CURL_LIBRARY_PATH
30225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30226printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30227 fi
30228 else
30229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30230printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30231 CPPFLAGS="$clean_CPPFLAGS"
30232 LDFLAGS="$clean_LDFLAGS"
30233 LIBS="$clean_LIBS"
30234 fi
30235fi
30236
30237
30238OPT_H2="yes"
30239
30240if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30241 # without HTTP or with Hyper, nghttp2 is no use
30242 OPT_H2="no"
30243fi
30244
30245
30246# Check whether --with-nghttp2 was given.
30247if test ${with_nghttp2+y}
30248then :
30249 withval=$with_nghttp2; OPT_H2=$withval
30250fi
30251
30252case "$OPT_H2" in
30253 no)
30254 want_nghttp2="no"
30255 ;;
30256 yes)
30257 want_nghttp2="default"
30258 want_nghttp2_path=""
30259 want_nghttp2_pkg_config_path=""
30260 ;;
30261 *)
30262 want_nghttp2="yes"
30263 want_nghttp2_path="$withval"
30264 want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30265 ;;
30266esac
30267
30268if test X"$want_nghttp2" != Xno; then
30269 CLEANLDFLAGS="$LDFLAGS"
30270 CLEANCPPFLAGS="$CPPFLAGS"
30271 CLEANLIBS="$LIBS"
30272
30273
30274 if test -n "$PKG_CONFIG"; then
30275 PKGCONFIG="$PKG_CONFIG"
30276 else
30277 if test -n "$ac_tool_prefix"; then
30278 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30279set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30281printf %s "checking for $ac_word... " >&6; }
30282if test ${ac_cv_path_PKGCONFIG+y}
30283then :
30284 printf %s "(cached) " >&6
30285else $as_nop
30286 case $PKGCONFIG in
30287 [\\/]* | ?:[\\/]*)
30288 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30289 ;;
30290 *)
30291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30292as_dummy="$PATH:/usr/bin:/usr/local/bin"
30293for as_dir in $as_dummy
30294do
30295 IFS=$as_save_IFS
30296 case $as_dir in #(((
30297 '') as_dir=./ ;;
30298 */) ;;
30299 *) as_dir=$as_dir/ ;;
30300 esac
30301 for ac_exec_ext in '' $ac_executable_extensions; do
30302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30303 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30305 break 2
30306 fi
30307done
30308 done
30309IFS=$as_save_IFS
30310
30311 ;;
30312esac
30313fi
30314PKGCONFIG=$ac_cv_path_PKGCONFIG
30315if test -n "$PKGCONFIG"; then
30316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30317printf "%s\n" "$PKGCONFIG" >&6; }
30318else
30319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30320printf "%s\n" "no" >&6; }
30321fi
30322
30323
30324fi
30325if test -z "$ac_cv_path_PKGCONFIG"; then
30326 ac_pt_PKGCONFIG=$PKGCONFIG
30327 # Extract the first word of "pkg-config", so it can be a program name with args.
30328set dummy pkg-config; ac_word=$2
30329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30330printf %s "checking for $ac_word... " >&6; }
30331if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30332then :
30333 printf %s "(cached) " >&6
30334else $as_nop
30335 case $ac_pt_PKGCONFIG in
30336 [\\/]* | ?:[\\/]*)
30337 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30338 ;;
30339 *)
30340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30341as_dummy="$PATH:/usr/bin:/usr/local/bin"
30342for as_dir in $as_dummy
30343do
30344 IFS=$as_save_IFS
30345 case $as_dir in #(((
30346 '') as_dir=./ ;;
30347 */) ;;
30348 *) as_dir=$as_dir/ ;;
30349 esac
30350 for ac_exec_ext in '' $ac_executable_extensions; do
30351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30352 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30354 break 2
30355 fi
30356done
30357 done
30358IFS=$as_save_IFS
30359
30360 ;;
30361esac
30362fi
30363ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30364if test -n "$ac_pt_PKGCONFIG"; then
30365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30366printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30367else
30368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30369printf "%s\n" "no" >&6; }
30370fi
30371
30372 if test "x$ac_pt_PKGCONFIG" = x; then
30373 PKGCONFIG="no"
30374 else
30375 case $cross_compiling:$ac_tool_warned in
30376yes:)
30377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30378printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30379ac_tool_warned=yes ;;
30380esac
30381 PKGCONFIG=$ac_pt_PKGCONFIG
30382 fi
30383else
30384 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30385fi
30386
30387 fi
30388
30389 if test "x$PKGCONFIG" != "xno"; then
30390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30391printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30392 itexists=`
30393 if test -n "$want_nghttp2_pkg_config_path"; then
30394 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30395 export PKG_CONFIG_LIBDIR
30396 fi
30397 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30398
30399 if test -z "$itexists"; then
30400 PKGCONFIG="no"
30401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402printf "%s\n" "no" >&6; }
30403 else
30404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30405printf "%s\n" "found" >&6; }
30406 fi
30407 fi
30408
30409
30410 if test "$PKGCONFIG" != "no" ; then
30411 LIB_H2=`
30412 if test -n "$want_nghttp2_pkg_config_path"; then
30413 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30414 export PKG_CONFIG_LIBDIR
30415 fi
30416
30417 $PKGCONFIG --libs-only-l libnghttp2`
30418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30419printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30420
30421 CPP_H2=`
30422 if test -n "$want_nghttp2_pkg_config_path"; then
30423 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30424 export PKG_CONFIG_LIBDIR
30425 fi
30426 $PKGCONFIG --cflags-only-I libnghttp2`
30427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30428printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30429
30430 LD_H2=`
30431 if test -n "$want_nghttp2_pkg_config_path"; then
30432 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30433 export PKG_CONFIG_LIBDIR
30434 fi
30435
30436 $PKGCONFIG --libs-only-L libnghttp2`
30437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30438printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30439
30440 DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30441 elif test x"$want_nghttp2_path" != x; then
30442 LIB_H2="-lnghttp2"
30443 LD_H2=-L${want_nghttp2_path}/lib$libsuff
30444 CPP_H2=-I${want_nghttp2_path}/include
30445 DIR_H2=${want_nghttp2_path}/lib$libsuff
30446 elif test X"$want_nghttp2" != Xdefault; then
30447 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30448 fi
30449
30450 LDFLAGS="$LDFLAGS $LD_H2"
30451 CPPFLAGS="$CPPFLAGS $CPP_H2"
30452 LIBS="$LIB_H2 $LIBS"
30453
30454 # use nghttp2_session_set_local_window_size to require nghttp2
30455 # >= 1.12.0
30456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
30457printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
30458if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
30459then :
30460 printf %s "(cached) " >&6
30461else $as_nop
30462 ac_check_lib_save_LIBS=$LIBS
30463LIBS="-lnghttp2 $LIBS"
30464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465/* end confdefs.h. */
30466
30467
30468#ifdef __cplusplus
30469extern "C"
30470#endif
30471char nghttp2_session_set_local_window_size ();
30472int main (void)
30473{
30474return nghttp2_session_set_local_window_size ();
30475 ;
30476 return 0;
30477}
30478_ACEOF
30479if ac_fn_c_try_link "$LINENO"
30480then :
30481 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
30482else $as_nop
30483 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
30484fi
30485rm -f core conftest.err conftest.$ac_objext conftest.beam \
30486 conftest$ac_exeext conftest.$ac_ext
30487LIBS=$ac_check_lib_save_LIBS
30488fi
30489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
30490printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
30491if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
30492then :
30493
30494 for ac_header in nghttp2/nghttp2.h
30495do :
30496 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30497if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30498then :
30499 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30500 curl_h2_msg="enabled (nghttp2)"
30501 NGHTTP2_ENABLED=1
30502
30503printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30504
30505 USE_NGHTTP2=1
30506
30507
30508fi
30509
30510done
30511
30512 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30513 export CURL_LIBRARY_PATH
30514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30515printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30516
30517else $as_nop
30518 LDFLAGS=$CLEANLDFLAGS
30519 CPPFLAGS=$CLEANCPPFLAGS
30520 LIBS=$CLEANLIBS
30521
30522fi
30523
30524fi
30525
30526
30527OPT_TCP2="no"
30528
30529if test "x$disable_http" = "xyes"; then
30530 # without HTTP, ngtcp2 is no use
30531 OPT_TCP2="no"
30532fi
30533
30534
30535# Check whether --with-ngtcp2 was given.
30536if test ${with_ngtcp2+y}
30537then :
30538 withval=$with_ngtcp2; OPT_TCP2=$withval
30539fi
30540
30541case "$OPT_TCP2" in
30542 no)
30543 want_tcp2="no"
30544 ;;
30545 yes)
30546 want_tcp2="default"
30547 want_tcp2_path=""
30548 ;;
30549 *)
30550 want_tcp2="yes"
30551 want_tcp2_path="$withval/lib/pkgconfig"
30552 ;;
30553esac
30554
30555curl_tcp2_msg="no (--with-ngtcp2)"
30556if test X"$want_tcp2" != Xno; then
30557 CLEANLDFLAGS="$LDFLAGS"
30558 CLEANCPPFLAGS="$CPPFLAGS"
30559 CLEANLIBS="$LIBS"
30560
30561
30562 if test -n "$PKG_CONFIG"; then
30563 PKGCONFIG="$PKG_CONFIG"
30564 else
30565 if test -n "$ac_tool_prefix"; then
30566 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30567set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30569printf %s "checking for $ac_word... " >&6; }
30570if test ${ac_cv_path_PKGCONFIG+y}
30571then :
30572 printf %s "(cached) " >&6
30573else $as_nop
30574 case $PKGCONFIG in
30575 [\\/]* | ?:[\\/]*)
30576 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30577 ;;
30578 *)
30579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580as_dummy="$PATH:/usr/bin:/usr/local/bin"
30581for as_dir in $as_dummy
30582do
30583 IFS=$as_save_IFS
30584 case $as_dir in #(((
30585 '') as_dir=./ ;;
30586 */) ;;
30587 *) as_dir=$as_dir/ ;;
30588 esac
30589 for ac_exec_ext in '' $ac_executable_extensions; do
30590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30591 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30593 break 2
30594 fi
30595done
30596 done
30597IFS=$as_save_IFS
30598
30599 ;;
30600esac
30601fi
30602PKGCONFIG=$ac_cv_path_PKGCONFIG
30603if test -n "$PKGCONFIG"; then
30604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30605printf "%s\n" "$PKGCONFIG" >&6; }
30606else
30607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30608printf "%s\n" "no" >&6; }
30609fi
30610
30611
30612fi
30613if test -z "$ac_cv_path_PKGCONFIG"; then
30614 ac_pt_PKGCONFIG=$PKGCONFIG
30615 # Extract the first word of "pkg-config", so it can be a program name with args.
30616set dummy pkg-config; ac_word=$2
30617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30618printf %s "checking for $ac_word... " >&6; }
30619if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30620then :
30621 printf %s "(cached) " >&6
30622else $as_nop
30623 case $ac_pt_PKGCONFIG in
30624 [\\/]* | ?:[\\/]*)
30625 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30626 ;;
30627 *)
30628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30629as_dummy="$PATH:/usr/bin:/usr/local/bin"
30630for as_dir in $as_dummy
30631do
30632 IFS=$as_save_IFS
30633 case $as_dir in #(((
30634 '') as_dir=./ ;;
30635 */) ;;
30636 *) as_dir=$as_dir/ ;;
30637 esac
30638 for ac_exec_ext in '' $ac_executable_extensions; do
30639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30640 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30642 break 2
30643 fi
30644done
30645 done
30646IFS=$as_save_IFS
30647
30648 ;;
30649esac
30650fi
30651ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30652if test -n "$ac_pt_PKGCONFIG"; then
30653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30654printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30655else
30656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30657printf "%s\n" "no" >&6; }
30658fi
30659
30660 if test "x$ac_pt_PKGCONFIG" = x; then
30661 PKGCONFIG="no"
30662 else
30663 case $cross_compiling:$ac_tool_warned in
30664yes:)
30665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30666printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30667ac_tool_warned=yes ;;
30668esac
30669 PKGCONFIG=$ac_pt_PKGCONFIG
30670 fi
30671else
30672 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30673fi
30674
30675 fi
30676
30677 if test "x$PKGCONFIG" != "xno"; then
30678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
30679printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
30680 itexists=`
30681 if test -n "$want_tcp2_path"; then
30682 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30683 export PKG_CONFIG_LIBDIR
30684 fi
30685 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
30686
30687 if test -z "$itexists"; then
30688 PKGCONFIG="no"
30689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30690printf "%s\n" "no" >&6; }
30691 else
30692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30693printf "%s\n" "found" >&6; }
30694 fi
30695 fi
30696
30697
30698 if test "$PKGCONFIG" != "no" ; then
30699 LIB_TCP2=`
30700 if test -n "$want_tcp2_path"; then
30701 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30702 export PKG_CONFIG_LIBDIR
30703 fi
30704
30705 $PKGCONFIG --libs-only-l libngtcp2`
30706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
30707printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
30708
30709 CPP_TCP2=`
30710 if test -n "$want_tcp2_path"; then
30711 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30712 export PKG_CONFIG_LIBDIR
30713 fi
30714 $PKGCONFIG --cflags-only-I libngtcp2`
30715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
30716printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
30717
30718 LD_TCP2=`
30719 if test -n "$want_tcp2_path"; then
30720 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30721 export PKG_CONFIG_LIBDIR
30722 fi
30723
30724 $PKGCONFIG --libs-only-L libngtcp2`
30725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
30726printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
30727
30728 LDFLAGS="$LDFLAGS $LD_TCP2"
30729 CPPFLAGS="$CPPFLAGS $CPP_TCP2"
30730 LIBS="$LIB_TCP2 $LIBS"
30731
30732 if test "x$cross_compiling" != "xyes"; then
30733 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
30734 fi
30735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
30736printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
30737if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
30738then :
30739 printf %s "(cached) " >&6
30740else $as_nop
30741 ac_check_lib_save_LIBS=$LIBS
30742LIBS="-lngtcp2 $LIBS"
30743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30744/* end confdefs.h. */
30745
30746
30747#ifdef __cplusplus
30748extern "C"
30749#endif
30750char ngtcp2_conn_client_new_versioned ();
30751int main (void)
30752{
30753return ngtcp2_conn_client_new_versioned ();
30754 ;
30755 return 0;
30756}
30757_ACEOF
30758if ac_fn_c_try_link "$LINENO"
30759then :
30760 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
30761else $as_nop
30762 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
30763fi
30764rm -f core conftest.err conftest.$ac_objext conftest.beam \
30765 conftest$ac_exeext conftest.$ac_ext
30766LIBS=$ac_check_lib_save_LIBS
30767fi
30768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
30769printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
30770if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
30771then :
30772
30773 for ac_header in ngtcp2/ngtcp2.h
30774do :
30775 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
30776if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
30777then :
30778 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
30779 NGTCP2_ENABLED=1
30780
30781printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
30782
30783 USE_NGTCP2=1
30784
30785 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
30786 export CURL_LIBRARY_PATH
30787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
30788printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
30789
30790fi
30791
30792done
30793
30794else $as_nop
30795 LDFLAGS=$CLEANLDFLAGS
30796 CPPFLAGS=$CLEANCPPFLAGS
30797 LIBS=$CLEANLIBS
30798
30799fi
30800
30801
30802 else
30803 if test X"$want_tcp2" != Xdefault; then
30804 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
30805 fi
30806 fi
30807
30808fi
30809
30810if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
30811 CLEANLDFLAGS="$LDFLAGS"
30812 CLEANCPPFLAGS="$CPPFLAGS"
30813 CLEANLIBS="$LIBS"
30814
30815
30816 if test -n "$PKG_CONFIG"; then
30817 PKGCONFIG="$PKG_CONFIG"
30818 else
30819 if test -n "$ac_tool_prefix"; then
30820 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30821set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30823printf %s "checking for $ac_word... " >&6; }
30824if test ${ac_cv_path_PKGCONFIG+y}
30825then :
30826 printf %s "(cached) " >&6
30827else $as_nop
30828 case $PKGCONFIG in
30829 [\\/]* | ?:[\\/]*)
30830 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30831 ;;
30832 *)
30833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30834as_dummy="$PATH:/usr/bin:/usr/local/bin"
30835for as_dir in $as_dummy
30836do
30837 IFS=$as_save_IFS
30838 case $as_dir in #(((
30839 '') as_dir=./ ;;
30840 */) ;;
30841 *) as_dir=$as_dir/ ;;
30842 esac
30843 for ac_exec_ext in '' $ac_executable_extensions; do
30844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30845 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30847 break 2
30848 fi
30849done
30850 done
30851IFS=$as_save_IFS
30852
30853 ;;
30854esac
30855fi
30856PKGCONFIG=$ac_cv_path_PKGCONFIG
30857if test -n "$PKGCONFIG"; then
30858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30859printf "%s\n" "$PKGCONFIG" >&6; }
30860else
30861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30862printf "%s\n" "no" >&6; }
30863fi
30864
30865
30866fi
30867if test -z "$ac_cv_path_PKGCONFIG"; then
30868 ac_pt_PKGCONFIG=$PKGCONFIG
30869 # Extract the first word of "pkg-config", so it can be a program name with args.
30870set dummy pkg-config; ac_word=$2
30871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30872printf %s "checking for $ac_word... " >&6; }
30873if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30874then :
30875 printf %s "(cached) " >&6
30876else $as_nop
30877 case $ac_pt_PKGCONFIG in
30878 [\\/]* | ?:[\\/]*)
30879 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30880 ;;
30881 *)
30882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30883as_dummy="$PATH:/usr/bin:/usr/local/bin"
30884for as_dir in $as_dummy
30885do
30886 IFS=$as_save_IFS
30887 case $as_dir in #(((
30888 '') as_dir=./ ;;
30889 */) ;;
30890 *) as_dir=$as_dir/ ;;
30891 esac
30892 for ac_exec_ext in '' $ac_executable_extensions; do
30893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30894 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30896 break 2
30897 fi
30898done
30899 done
30900IFS=$as_save_IFS
30901
30902 ;;
30903esac
30904fi
30905ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30906if test -n "$ac_pt_PKGCONFIG"; then
30907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30908printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30909else
30910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30911printf "%s\n" "no" >&6; }
30912fi
30913
30914 if test "x$ac_pt_PKGCONFIG" = x; then
30915 PKGCONFIG="no"
30916 else
30917 case $cross_compiling:$ac_tool_warned in
30918yes:)
30919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30920printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30921ac_tool_warned=yes ;;
30922esac
30923 PKGCONFIG=$ac_pt_PKGCONFIG
30924 fi
30925else
30926 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30927fi
30928
30929 fi
30930
30931 if test "x$PKGCONFIG" != "xno"; then
30932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
30933printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
30934 itexists=`
30935 if test -n "$want_tcp2_path"; then
30936 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30937 export PKG_CONFIG_LIBDIR
30938 fi
30939 $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
30940
30941 if test -z "$itexists"; then
30942 PKGCONFIG="no"
30943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30944printf "%s\n" "no" >&6; }
30945 else
30946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30947printf "%s\n" "found" >&6; }
30948 fi
30949 fi
30950
30951
30952 if test "$PKGCONFIG" != "no" ; then
30953 LIB_NGTCP2_CRYPTO_OPENSSL=`
30954 if test -n "$want_tcp2_path"; then
30955 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30956 export PKG_CONFIG_LIBDIR
30957 fi
30958
30959 $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
30960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
30961printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
30962
30963 CPP_NGTCP2_CRYPTO_OPENSSL=`
30964 if test -n "$want_tcp2_path"; then
30965 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30966 export PKG_CONFIG_LIBDIR
30967 fi
30968 $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
30969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
30970printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
30971
30972 LD_NGTCP2_CRYPTO_OPENSSL=`
30973 if test -n "$want_tcp2_path"; then
30974 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30975 export PKG_CONFIG_LIBDIR
30976 fi
30977
30978 $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
30979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
30980printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
30981
30982 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
30983 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
30984 LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
30985
30986 if test "x$cross_compiling" != "xyes"; then
30987 DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
30988 fi
30989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl" >&5
30990printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl... " >&6; }
30991if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb+y}
30992then :
30993 printf %s "(cached) " >&6
30994else $as_nop
30995 ac_check_lib_save_LIBS=$LIBS
30996LIBS="-lngtcp2_crypto_openssl $LIBS"
30997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30998/* end confdefs.h. */
30999
31000
31001#ifdef __cplusplus
31002extern "C"
31003#endif
31004char ngtcp2_crypto_recv_client_initial_cb ();
31005int main (void)
31006{
31007return ngtcp2_crypto_recv_client_initial_cb ();
31008 ;
31009 return 0;
31010}
31011_ACEOF
31012if ac_fn_c_try_link "$LINENO"
31013then :
31014 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=yes
31015else $as_nop
31016 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=no
31017fi
31018rm -f core conftest.err conftest.$ac_objext conftest.beam \
31019 conftest$ac_exeext conftest.$ac_ext
31020LIBS=$ac_check_lib_save_LIBS
31021fi
31022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31023printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31024if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31025then :
31026
31027 for ac_header in ngtcp2/ngtcp2_crypto.h
31028do :
31029 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31030if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31031then :
31032 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31033 NGTCP2_ENABLED=1
31034
31035printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
31036
31037 USE_NGTCP2_CRYPTO_OPENSSL=1
31038
31039 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
31040 export CURL_LIBRARY_PATH
31041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
31042printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
31043
31044fi
31045
31046done
31047
31048else $as_nop
31049 LDFLAGS=$CLEANLDFLAGS
31050 CPPFLAGS=$CLEANCPPFLAGS
31051 LIBS=$CLEANLIBS
31052
31053fi
31054
31055
31056 else
31057 if test X"$want_tcp2" != Xdefault; then
31058 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
31059 fi
31060 fi
31061fi
31062
31063if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31064 CLEANLDFLAGS="$LDFLAGS"
31065 CLEANCPPFLAGS="$CPPFLAGS"
31066 CLEANLIBS="$LIBS"
31067
31068
31069 if test -n "$PKG_CONFIG"; then
31070 PKGCONFIG="$PKG_CONFIG"
31071 else
31072 if test -n "$ac_tool_prefix"; then
31073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31074set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31076printf %s "checking for $ac_word... " >&6; }
31077if test ${ac_cv_path_PKGCONFIG+y}
31078then :
31079 printf %s "(cached) " >&6
31080else $as_nop
31081 case $PKGCONFIG in
31082 [\\/]* | ?:[\\/]*)
31083 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31084 ;;
31085 *)
31086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31087as_dummy="$PATH:/usr/bin:/usr/local/bin"
31088for as_dir in $as_dummy
31089do
31090 IFS=$as_save_IFS
31091 case $as_dir in #(((
31092 '') as_dir=./ ;;
31093 */) ;;
31094 *) as_dir=$as_dir/ ;;
31095 esac
31096 for ac_exec_ext in '' $ac_executable_extensions; do
31097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31098 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31100 break 2
31101 fi
31102done
31103 done
31104IFS=$as_save_IFS
31105
31106 ;;
31107esac
31108fi
31109PKGCONFIG=$ac_cv_path_PKGCONFIG
31110if test -n "$PKGCONFIG"; then
31111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31112printf "%s\n" "$PKGCONFIG" >&6; }
31113else
31114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31115printf "%s\n" "no" >&6; }
31116fi
31117
31118
31119fi
31120if test -z "$ac_cv_path_PKGCONFIG"; then
31121 ac_pt_PKGCONFIG=$PKGCONFIG
31122 # Extract the first word of "pkg-config", so it can be a program name with args.
31123set dummy pkg-config; ac_word=$2
31124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31125printf %s "checking for $ac_word... " >&6; }
31126if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31127then :
31128 printf %s "(cached) " >&6
31129else $as_nop
31130 case $ac_pt_PKGCONFIG in
31131 [\\/]* | ?:[\\/]*)
31132 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31133 ;;
31134 *)
31135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31136as_dummy="$PATH:/usr/bin:/usr/local/bin"
31137for as_dir in $as_dummy
31138do
31139 IFS=$as_save_IFS
31140 case $as_dir in #(((
31141 '') as_dir=./ ;;
31142 */) ;;
31143 *) as_dir=$as_dir/ ;;
31144 esac
31145 for ac_exec_ext in '' $ac_executable_extensions; do
31146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31147 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31149 break 2
31150 fi
31151done
31152 done
31153IFS=$as_save_IFS
31154
31155 ;;
31156esac
31157fi
31158ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31159if test -n "$ac_pt_PKGCONFIG"; then
31160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31161printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31162else
31163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31164printf "%s\n" "no" >&6; }
31165fi
31166
31167 if test "x$ac_pt_PKGCONFIG" = x; then
31168 PKGCONFIG="no"
31169 else
31170 case $cross_compiling:$ac_tool_warned in
31171yes:)
31172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31174ac_tool_warned=yes ;;
31175esac
31176 PKGCONFIG=$ac_pt_PKGCONFIG
31177 fi
31178else
31179 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31180fi
31181
31182 fi
31183
31184 if test "x$PKGCONFIG" != "xno"; then
31185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31186printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31187 itexists=`
31188 if test -n "$want_tcp2_path"; then
31189 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31190 export PKG_CONFIG_LIBDIR
31191 fi
31192 $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31193
31194 if test -z "$itexists"; then
31195 PKGCONFIG="no"
31196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197printf "%s\n" "no" >&6; }
31198 else
31199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31200printf "%s\n" "found" >&6; }
31201 fi
31202 fi
31203
31204
31205 if test "$PKGCONFIG" != "no" ; then
31206 LIB_NGTCP2_CRYPTO_GNUTLS=`
31207 if test -n "$want_tcp2_path"; then
31208 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31209 export PKG_CONFIG_LIBDIR
31210 fi
31211
31212 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31214printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31215
31216 CPP_NGTCP2_CRYPTO_GNUTLS=`
31217 if test -n "$want_tcp2_path"; then
31218 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31219 export PKG_CONFIG_LIBDIR
31220 fi
31221 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31223printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31224
31225 LD_NGTCP2_CRYPTO_GNUTLS=`
31226 if test -n "$want_tcp2_path"; then
31227 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31228 export PKG_CONFIG_LIBDIR
31229 fi
31230
31231 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31233printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31234
31235 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31236 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31237 LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31238
31239 if test "x$cross_compiling" != "xyes"; then
31240 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31241 fi
31242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31243printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31244if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31245then :
31246 printf %s "(cached) " >&6
31247else $as_nop
31248 ac_check_lib_save_LIBS=$LIBS
31249LIBS="-lngtcp2_crypto_gnutls $LIBS"
31250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251/* end confdefs.h. */
31252
31253
31254#ifdef __cplusplus
31255extern "C"
31256#endif
31257char ngtcp2_crypto_recv_client_initial_cb ();
31258int main (void)
31259{
31260return ngtcp2_crypto_recv_client_initial_cb ();
31261 ;
31262 return 0;
31263}
31264_ACEOF
31265if ac_fn_c_try_link "$LINENO"
31266then :
31267 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31268else $as_nop
31269 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31270fi
31271rm -f core conftest.err conftest.$ac_objext conftest.beam \
31272 conftest$ac_exeext conftest.$ac_ext
31273LIBS=$ac_check_lib_save_LIBS
31274fi
31275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31276printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31277if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31278then :
31279
31280 for ac_header in ngtcp2/ngtcp2_crypto.h
31281do :
31282 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31283if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31284then :
31285 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31286 NGTCP2_ENABLED=1
31287
31288printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31289
31290 USE_NGTCP2_CRYPTO_GNUTLS=1
31291
31292 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31293 export CURL_LIBRARY_PATH
31294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31295printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31296
31297fi
31298
31299done
31300
31301else $as_nop
31302 LDFLAGS=$CLEANLDFLAGS
31303 CPPFLAGS=$CLEANCPPFLAGS
31304 LIBS=$CLEANLIBS
31305
31306fi
31307
31308
31309 else
31310 if test X"$want_tcp2" != Xdefault; then
31311 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31312 fi
31313 fi
31314fi
31315
31316if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31317 CLEANLDFLAGS="$LDFLAGS"
31318 CLEANCPPFLAGS="$CPPFLAGS"
31319 CLEANLIBS="$LIBS"
31320
31321
31322 if test -n "$PKG_CONFIG"; then
31323 PKGCONFIG="$PKG_CONFIG"
31324 else
31325 if test -n "$ac_tool_prefix"; then
31326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31327set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31329printf %s "checking for $ac_word... " >&6; }
31330if test ${ac_cv_path_PKGCONFIG+y}
31331then :
31332 printf %s "(cached) " >&6
31333else $as_nop
31334 case $PKGCONFIG in
31335 [\\/]* | ?:[\\/]*)
31336 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31337 ;;
31338 *)
31339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31340as_dummy="$PATH:/usr/bin:/usr/local/bin"
31341for as_dir in $as_dummy
31342do
31343 IFS=$as_save_IFS
31344 case $as_dir in #(((
31345 '') as_dir=./ ;;
31346 */) ;;
31347 *) as_dir=$as_dir/ ;;
31348 esac
31349 for ac_exec_ext in '' $ac_executable_extensions; do
31350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31351 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31353 break 2
31354 fi
31355done
31356 done
31357IFS=$as_save_IFS
31358
31359 ;;
31360esac
31361fi
31362PKGCONFIG=$ac_cv_path_PKGCONFIG
31363if test -n "$PKGCONFIG"; then
31364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31365printf "%s\n" "$PKGCONFIG" >&6; }
31366else
31367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31368printf "%s\n" "no" >&6; }
31369fi
31370
31371
31372fi
31373if test -z "$ac_cv_path_PKGCONFIG"; then
31374 ac_pt_PKGCONFIG=$PKGCONFIG
31375 # Extract the first word of "pkg-config", so it can be a program name with args.
31376set dummy pkg-config; ac_word=$2
31377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31378printf %s "checking for $ac_word... " >&6; }
31379if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31380then :
31381 printf %s "(cached) " >&6
31382else $as_nop
31383 case $ac_pt_PKGCONFIG in
31384 [\\/]* | ?:[\\/]*)
31385 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31386 ;;
31387 *)
31388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31389as_dummy="$PATH:/usr/bin:/usr/local/bin"
31390for as_dir in $as_dummy
31391do
31392 IFS=$as_save_IFS
31393 case $as_dir in #(((
31394 '') as_dir=./ ;;
31395 */) ;;
31396 *) as_dir=$as_dir/ ;;
31397 esac
31398 for ac_exec_ext in '' $ac_executable_extensions; do
31399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31400 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31402 break 2
31403 fi
31404done
31405 done
31406IFS=$as_save_IFS
31407
31408 ;;
31409esac
31410fi
31411ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31412if test -n "$ac_pt_PKGCONFIG"; then
31413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31414printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31415else
31416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31417printf "%s\n" "no" >&6; }
31418fi
31419
31420 if test "x$ac_pt_PKGCONFIG" = x; then
31421 PKGCONFIG="no"
31422 else
31423 case $cross_compiling:$ac_tool_warned in
31424yes:)
31425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31426printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31427ac_tool_warned=yes ;;
31428esac
31429 PKGCONFIG=$ac_pt_PKGCONFIG
31430 fi
31431else
31432 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31433fi
31434
31435 fi
31436
31437 if test "x$PKGCONFIG" != "xno"; then
31438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31439printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31440 itexists=`
31441 if test -n "$want_tcp2_path"; then
31442 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31443 export PKG_CONFIG_LIBDIR
31444 fi
31445 $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31446
31447 if test -z "$itexists"; then
31448 PKGCONFIG="no"
31449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31450printf "%s\n" "no" >&6; }
31451 else
31452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31453printf "%s\n" "found" >&6; }
31454 fi
31455 fi
31456
31457
31458 if test "$PKGCONFIG" != "no" ; then
31459 LIB_NGTCP2_CRYPTO_WOLFSSL=`
31460 if test -n "$want_tcp2_path"; then
31461 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31462 export PKG_CONFIG_LIBDIR
31463 fi
31464
31465 $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31467printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31468
31469 CPP_NGTCP2_CRYPTO_WOLFSSL=`
31470 if test -n "$want_tcp2_path"; then
31471 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31472 export PKG_CONFIG_LIBDIR
31473 fi
31474 $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
31475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
31476printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31477
31478 LD_NGTCP2_CRYPTO_WOLFSSL=`
31479 if test -n "$want_tcp2_path"; then
31480 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31481 export PKG_CONFIG_LIBDIR
31482 fi
31483
31484 $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
31485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
31486printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31487
31488 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
31489 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
31490 LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
31491
31492 if test "x$cross_compiling" != "xyes"; then
31493 DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
31494 fi
31495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
31496printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
31497if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
31498then :
31499 printf %s "(cached) " >&6
31500else $as_nop
31501 ac_check_lib_save_LIBS=$LIBS
31502LIBS="-lngtcp2_crypto_wolfssl $LIBS"
31503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31504/* end confdefs.h. */
31505
31506
31507#ifdef __cplusplus
31508extern "C"
31509#endif
31510char ngtcp2_crypto_recv_client_initial_cb ();
31511int main (void)
31512{
31513return ngtcp2_crypto_recv_client_initial_cb ();
31514 ;
31515 return 0;
31516}
31517_ACEOF
31518if ac_fn_c_try_link "$LINENO"
31519then :
31520 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
31521else $as_nop
31522 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
31523fi
31524rm -f core conftest.err conftest.$ac_objext conftest.beam \
31525 conftest$ac_exeext conftest.$ac_ext
31526LIBS=$ac_check_lib_save_LIBS
31527fi
31528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31529printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31530if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31531then :
31532
31533 for ac_header in ngtcp2/ngtcp2_crypto.h
31534do :
31535 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31536if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31537then :
31538 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31539 NGTCP2_ENABLED=1
31540
31541printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
31542
31543 USE_NGTCP2_CRYPTO_WOLFSSL=1
31544
31545 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
31546 export CURL_LIBRARY_PATH
31547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
31548printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
31549
31550fi
31551
31552done
31553
31554else $as_nop
31555 LDFLAGS=$CLEANLDFLAGS
31556 CPPFLAGS=$CLEANCPPFLAGS
31557 LIBS=$CLEANLIBS
31558
31559fi
31560
31561
31562 else
31563 if test X"$want_tcp2" != Xdefault; then
31564 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
31565 fi
31566 fi
31567fi
31568
31569
31570OPT_NGHTTP3="yes"
31571
31572if test "x$NGTCP2_ENABLED" = "x"; then
31573 # without ngtcp2, nghttp3 is of no use for us
31574 OPT_NGHTTP3="no"
31575fi
31576
31577
31578# Check whether --with-nghttp3 was given.
31579if test ${with_nghttp3+y}
31580then :
31581 withval=$with_nghttp3; OPT_NGHTTP3=$withval
31582fi
31583
31584case "$OPT_NGHTTP3" in
31585 no)
31586 want_nghttp3="no"
31587 ;;
31588 yes)
31589 want_nghttp3="default"
31590 want_nghttp3_path=""
31591 ;;
31592 *)
31593 want_nghttp3="yes"
31594 want_nghttp3_path="$withval/lib/pkgconfig"
31595 ;;
31596esac
31597
31598curl_http3_msg="no (--with-nghttp3)"
31599if test X"$want_nghttp3" != Xno; then
31600 CLEANLDFLAGS="$LDFLAGS"
31601 CLEANCPPFLAGS="$CPPFLAGS"
31602 CLEANLIBS="$LIBS"
31603
31604
31605 if test -n "$PKG_CONFIG"; then
31606 PKGCONFIG="$PKG_CONFIG"
31607 else
31608 if test -n "$ac_tool_prefix"; then
31609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31610set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31612printf %s "checking for $ac_word... " >&6; }
31613if test ${ac_cv_path_PKGCONFIG+y}
31614then :
31615 printf %s "(cached) " >&6
31616else $as_nop
31617 case $PKGCONFIG in
31618 [\\/]* | ?:[\\/]*)
31619 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31620 ;;
31621 *)
31622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31623as_dummy="$PATH:/usr/bin:/usr/local/bin"
31624for as_dir in $as_dummy
31625do
31626 IFS=$as_save_IFS
31627 case $as_dir in #(((
31628 '') as_dir=./ ;;
31629 */) ;;
31630 *) as_dir=$as_dir/ ;;
31631 esac
31632 for ac_exec_ext in '' $ac_executable_extensions; do
31633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31634 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31636 break 2
31637 fi
31638done
31639 done
31640IFS=$as_save_IFS
31641
31642 ;;
31643esac
31644fi
31645PKGCONFIG=$ac_cv_path_PKGCONFIG
31646if test -n "$PKGCONFIG"; then
31647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31648printf "%s\n" "$PKGCONFIG" >&6; }
31649else
31650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31651printf "%s\n" "no" >&6; }
31652fi
31653
31654
31655fi
31656if test -z "$ac_cv_path_PKGCONFIG"; then
31657 ac_pt_PKGCONFIG=$PKGCONFIG
31658 # Extract the first word of "pkg-config", so it can be a program name with args.
31659set dummy pkg-config; ac_word=$2
31660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31661printf %s "checking for $ac_word... " >&6; }
31662if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31663then :
31664 printf %s "(cached) " >&6
31665else $as_nop
31666 case $ac_pt_PKGCONFIG in
31667 [\\/]* | ?:[\\/]*)
31668 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31669 ;;
31670 *)
31671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31672as_dummy="$PATH:/usr/bin:/usr/local/bin"
31673for as_dir in $as_dummy
31674do
31675 IFS=$as_save_IFS
31676 case $as_dir in #(((
31677 '') as_dir=./ ;;
31678 */) ;;
31679 *) as_dir=$as_dir/ ;;
31680 esac
31681 for ac_exec_ext in '' $ac_executable_extensions; do
31682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31683 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31685 break 2
31686 fi
31687done
31688 done
31689IFS=$as_save_IFS
31690
31691 ;;
31692esac
31693fi
31694ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31695if test -n "$ac_pt_PKGCONFIG"; then
31696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31697printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31698else
31699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31700printf "%s\n" "no" >&6; }
31701fi
31702
31703 if test "x$ac_pt_PKGCONFIG" = x; then
31704 PKGCONFIG="no"
31705 else
31706 case $cross_compiling:$ac_tool_warned in
31707yes:)
31708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31709printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31710ac_tool_warned=yes ;;
31711esac
31712 PKGCONFIG=$ac_pt_PKGCONFIG
31713 fi
31714else
31715 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31716fi
31717
31718 fi
31719
31720 if test "x$PKGCONFIG" != "xno"; then
31721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
31722printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
31723 itexists=`
31724 if test -n "$want_nghttp3_path"; then
31725 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31726 export PKG_CONFIG_LIBDIR
31727 fi
31728 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
31729
31730 if test -z "$itexists"; then
31731 PKGCONFIG="no"
31732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31733printf "%s\n" "no" >&6; }
31734 else
31735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31736printf "%s\n" "found" >&6; }
31737 fi
31738 fi
31739
31740
31741 if test "$PKGCONFIG" != "no" ; then
31742 LIB_NGHTTP3=`
31743 if test -n "$want_nghttp3_path"; then
31744 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31745 export PKG_CONFIG_LIBDIR
31746 fi
31747
31748 $PKGCONFIG --libs-only-l libnghttp3`
31749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
31750printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
31751
31752 CPP_NGHTTP3=`
31753 if test -n "$want_nghttp3_path"; then
31754 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31755 export PKG_CONFIG_LIBDIR
31756 fi
31757 $PKGCONFIG --cflags-only-I libnghttp3`
31758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
31759printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
31760
31761 LD_NGHTTP3=`
31762 if test -n "$want_nghttp3_path"; then
31763 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31764 export PKG_CONFIG_LIBDIR
31765 fi
31766
31767 $PKGCONFIG --libs-only-L libnghttp3`
31768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
31769printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
31770
31771 LDFLAGS="$LDFLAGS $LD_NGHTTP3"
31772 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
31773 LIBS="$LIB_NGHTTP3 $LIBS"
31774
31775 if test "x$cross_compiling" != "xyes"; then
31776 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
31777 fi
31778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
31779printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
31780if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
31781then :
31782 printf %s "(cached) " >&6
31783else $as_nop
31784 ac_check_lib_save_LIBS=$LIBS
31785LIBS="-lnghttp3 $LIBS"
31786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31787/* end confdefs.h. */
31788
31789
31790#ifdef __cplusplus
31791extern "C"
31792#endif
31793char nghttp3_conn_client_new_versioned ();
31794int main (void)
31795{
31796return nghttp3_conn_client_new_versioned ();
31797 ;
31798 return 0;
31799}
31800_ACEOF
31801if ac_fn_c_try_link "$LINENO"
31802then :
31803 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
31804else $as_nop
31805 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
31806fi
31807rm -f core conftest.err conftest.$ac_objext conftest.beam \
31808 conftest$ac_exeext conftest.$ac_ext
31809LIBS=$ac_check_lib_save_LIBS
31810fi
31811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
31812printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
31813if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
31814then :
31815
31816 for ac_header in nghttp3/nghttp3.h
31817do :
31818 ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
31819if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
31820then :
31821 printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
31822 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
31823 NGHTTP3_ENABLED=1
31824
31825printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
31826
31827 USE_NGHTTP3=1
31828
31829 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
31830 export CURL_LIBRARY_PATH
31831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
31832printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
31833 experimental="$experimental HTTP3"
31834
31835fi
31836
31837done
31838
31839else $as_nop
31840 LDFLAGS=$CLEANLDFLAGS
31841 CPPFLAGS=$CLEANCPPFLAGS
31842 LIBS=$CLEANLIBS
31843
31844fi
31845
31846
31847 else
31848 if test X"$want_nghttp3" != Xdefault; then
31849 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
31850 fi
31851 fi
31852
31853fi
31854
31855
31856OPT_QUICHE="no"
31857
31858if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
31859 # without HTTP or with ngtcp2, quiche is no use
31860 OPT_QUICHE="no"
31861fi
31862
31863
31864# Check whether --with-quiche was given.
31865if test ${with_quiche+y}
31866then :
31867 withval=$with_quiche; OPT_QUICHE=$withval
31868fi
31869
31870case "$OPT_QUICHE" in
31871 no)
31872 want_quiche="no"
31873 ;;
31874 yes)
31875 want_quiche="default"
31876 want_quiche_path=""
31877 ;;
31878 *)
31879 want_quiche="yes"
31880 want_quiche_path="$withval"
31881 ;;
31882esac
31883
31884if test X"$want_quiche" != Xno; then
31885
31886 if test "$NGHTTP3_ENABLED" = 1; then
31887 as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
31888 fi
31889
31890 CLEANLDFLAGS="$LDFLAGS"
31891 CLEANCPPFLAGS="$CPPFLAGS"
31892 CLEANLIBS="$LIBS"
31893
31894
31895 if test -n "$PKG_CONFIG"; then
31896 PKGCONFIG="$PKG_CONFIG"
31897 else
31898 if test -n "$ac_tool_prefix"; then
31899 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31900set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31902printf %s "checking for $ac_word... " >&6; }
31903if test ${ac_cv_path_PKGCONFIG+y}
31904then :
31905 printf %s "(cached) " >&6
31906else $as_nop
31907 case $PKGCONFIG in
31908 [\\/]* | ?:[\\/]*)
31909 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31910 ;;
31911 *)
31912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31913as_dummy="$PATH:/usr/bin:/usr/local/bin"
31914for as_dir in $as_dummy
31915do
31916 IFS=$as_save_IFS
31917 case $as_dir in #(((
31918 '') as_dir=./ ;;
31919 */) ;;
31920 *) as_dir=$as_dir/ ;;
31921 esac
31922 for ac_exec_ext in '' $ac_executable_extensions; do
31923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31924 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31926 break 2
31927 fi
31928done
31929 done
31930IFS=$as_save_IFS
31931
31932 ;;
31933esac
31934fi
31935PKGCONFIG=$ac_cv_path_PKGCONFIG
31936if test -n "$PKGCONFIG"; then
31937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31938printf "%s\n" "$PKGCONFIG" >&6; }
31939else
31940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31941printf "%s\n" "no" >&6; }
31942fi
31943
31944
31945fi
31946if test -z "$ac_cv_path_PKGCONFIG"; then
31947 ac_pt_PKGCONFIG=$PKGCONFIG
31948 # Extract the first word of "pkg-config", so it can be a program name with args.
31949set dummy pkg-config; ac_word=$2
31950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31951printf %s "checking for $ac_word... " >&6; }
31952if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31953then :
31954 printf %s "(cached) " >&6
31955else $as_nop
31956 case $ac_pt_PKGCONFIG in
31957 [\\/]* | ?:[\\/]*)
31958 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31959 ;;
31960 *)
31961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31962as_dummy="$PATH:/usr/bin:/usr/local/bin"
31963for as_dir in $as_dummy
31964do
31965 IFS=$as_save_IFS
31966 case $as_dir in #(((
31967 '') as_dir=./ ;;
31968 */) ;;
31969 *) as_dir=$as_dir/ ;;
31970 esac
31971 for ac_exec_ext in '' $ac_executable_extensions; do
31972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31973 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31975 break 2
31976 fi
31977done
31978 done
31979IFS=$as_save_IFS
31980
31981 ;;
31982esac
31983fi
31984ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31985if test -n "$ac_pt_PKGCONFIG"; then
31986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31987printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31988else
31989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31990printf "%s\n" "no" >&6; }
31991fi
31992
31993 if test "x$ac_pt_PKGCONFIG" = x; then
31994 PKGCONFIG="no"
31995 else
31996 case $cross_compiling:$ac_tool_warned in
31997yes:)
31998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31999printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32000ac_tool_warned=yes ;;
32001esac
32002 PKGCONFIG=$ac_pt_PKGCONFIG
32003 fi
32004else
32005 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32006fi
32007
32008 fi
32009
32010 if test "x$PKGCONFIG" != "xno"; then
32011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32012printf %s "checking for quiche options with pkg-config... " >&6; }
32013 itexists=`
32014 if test -n "$want_quiche_path"; then
32015 PKG_CONFIG_LIBDIR="$want_quiche_path"
32016 export PKG_CONFIG_LIBDIR
32017 fi
32018 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32019
32020 if test -z "$itexists"; then
32021 PKGCONFIG="no"
32022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32023printf "%s\n" "no" >&6; }
32024 else
32025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32026printf "%s\n" "found" >&6; }
32027 fi
32028 fi
32029
32030
32031 if test "$PKGCONFIG" != "no" ; then
32032 LIB_QUICHE=`
32033 if test -n "$want_quiche_path"; then
32034 PKG_CONFIG_LIBDIR="$want_quiche_path"
32035 export PKG_CONFIG_LIBDIR
32036 fi
32037
32038 $PKGCONFIG --libs-only-l quiche`
32039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32040printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32041
32042 CPP_QUICHE=`
32043 if test -n "$want_quiche_path"; then
32044 PKG_CONFIG_LIBDIR="$want_quiche_path"
32045 export PKG_CONFIG_LIBDIR
32046 fi
32047 $PKGCONFIG --cflags-only-I quiche`
32048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32049printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32050
32051 LD_QUICHE=`
32052 if test -n "$want_quiche_path"; then
32053 PKG_CONFIG_LIBDIR="$want_quiche_path"
32054 export PKG_CONFIG_LIBDIR
32055 fi
32056
32057 $PKGCONFIG --libs-only-L quiche`
32058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32059printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32060
32061 LDFLAGS="$LDFLAGS $LD_QUICHE"
32062 CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32063 LIBS="$LIB_QUICHE $LIBS"
32064
32065 if test "x$cross_compiling" != "xyes"; then
32066 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32067 fi
32068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
32069printf %s "checking for quiche_connect in -lquiche... " >&6; }
32070if test ${ac_cv_lib_quiche_quiche_connect+y}
32071then :
32072 printf %s "(cached) " >&6
32073else $as_nop
32074 ac_check_lib_save_LIBS=$LIBS
32075LIBS="-lquiche $LIBS"
32076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32077/* end confdefs.h. */
32078
32079
32080#ifdef __cplusplus
32081extern "C"
32082#endif
32083char quiche_connect ();
32084int main (void)
32085{
32086return quiche_connect ();
32087 ;
32088 return 0;
32089}
32090_ACEOF
32091if ac_fn_c_try_link "$LINENO"
32092then :
32093 ac_cv_lib_quiche_quiche_connect=yes
32094else $as_nop
32095 ac_cv_lib_quiche_quiche_connect=no
32096fi
32097rm -f core conftest.err conftest.$ac_objext conftest.beam \
32098 conftest$ac_exeext conftest.$ac_ext
32099LIBS=$ac_check_lib_save_LIBS
32100fi
32101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
32102printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
32103if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
32104then :
32105
32106 for ac_header in quiche.h
32107do :
32108 ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32109$ac_includes_default
32110#include <sys/socket.h>
32111
32112
32113"
32114if test "x$ac_cv_header_quiche_h" = xyes
32115then :
32116 printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32117 experimental="$experimental HTTP3"
32118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32119printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32120 curl_h3_msg="enabled (quiche)"
32121 QUICHE_ENABLED=1
32122
32123printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32124
32125 USE_QUICHE=1
32126
32127 ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32128if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32129then :
32130 printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32131
32132fi
32133
32134 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32135 export CURL_LIBRARY_PATH
32136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32137printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32138fi
32139
32140done
32141
32142else $as_nop
32143 as_fn_error $? "couldn't use quiche" "$LINENO" 5
32144
32145fi
32146
32147 else
32148 if test X"$want_quiche" != Xdefault; then
32149 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32150 fi
32151 fi
32152fi
32153
32154
32155OPT_MSH3="no"
32156
32157if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32158 # without HTTP or with ngtcp2, msh3 is no use
32159 OPT_MSH3="no"
32160fi
32161
32162
32163# Check whether --with-msh3 was given.
32164if test ${with_msh3+y}
32165then :
32166 withval=$with_msh3; OPT_MSH3=$withval
32167fi
32168
32169case "$OPT_MSH3" in
32170 no)
32171 want_msh3="no"
32172 ;;
32173 yes)
32174 want_msh3="default"
32175 want_msh3_path=""
32176 ;;
32177 *)
32178 want_msh3="yes"
32179 want_msh3_path="$withval"
32180 ;;
32181esac
32182
32183if test X"$want_msh3" != Xno; then
32184
32185 if test "$NGHTTP3_ENABLED" = 1; then
32186 as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32187 fi
32188
32189 CLEANLDFLAGS="$LDFLAGS"
32190 CLEANCPPFLAGS="$CPPFLAGS"
32191 CLEANLIBS="$LIBS"
32192
32193 if test -n "$want_msh3_path"; then
32194 LD_MSH3="-L$want_msh3_path/lib"
32195 CPP_MSH3="-I$want_msh3_path/include"
32196 DIR_MSH3="$want_msh3_path/lib"
32197 LDFLAGS="$LDFLAGS $LD_MSH3"
32198 CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32199 fi
32200 LIBS="-lmsh3 $LIBS"
32201
32202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32203printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32204if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32205then :
32206 printf %s "(cached) " >&6
32207else $as_nop
32208 ac_check_lib_save_LIBS=$LIBS
32209LIBS="-lmsh3 $LIBS"
32210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32211/* end confdefs.h. */
32212
32213
32214#ifdef __cplusplus
32215extern "C"
32216#endif
32217char MsH3ApiOpen ();
32218int main (void)
32219{
32220return MsH3ApiOpen ();
32221 ;
32222 return 0;
32223}
32224_ACEOF
32225if ac_fn_c_try_link "$LINENO"
32226then :
32227 ac_cv_lib_msh3_MsH3ApiOpen=yes
32228else $as_nop
32229 ac_cv_lib_msh3_MsH3ApiOpen=no
32230fi
32231rm -f core conftest.err conftest.$ac_objext conftest.beam \
32232 conftest$ac_exeext conftest.$ac_ext
32233LIBS=$ac_check_lib_save_LIBS
32234fi
32235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32236printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32237if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32238then :
32239
32240 for ac_header in msh3.h
32241do :
32242 ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32243if test "x$ac_cv_header_msh3_h" = xyes
32244then :
32245 printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32246 curl_h3_msg="enabled (msh3)"
32247 MSH3_ENABLED=1
32248
32249printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32250
32251 USE_MSH3=1
32252
32253 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32254 export CURL_LIBRARY_PATH
32255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32256printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32257else $as_nop
32258 experimental="$experimental HTTP3"
32259
32260fi
32261
32262done
32263
32264else $as_nop
32265 LDFLAGS=$CLEANLDFLAGS
32266 CPPFLAGS=$CLEANCPPFLAGS
32267 LIBS=$CLEANLIBS
32268
32269fi
32270
32271fi
32272
32273
32274OPT_ZSH_FPATH=default
32275
32276# Check whether --with-zsh-functions-dir was given.
32277if test ${with_zsh_functions_dir+y}
32278then :
32279 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32280fi
32281
32282case "$OPT_ZSH_FPATH" in
32283 no)
32284 ;;
32285 default|yes)
32286 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32287
32288 ;;
32289 *)
32290 ZSH_FUNCTIONS_DIR="$withval"
32291
32292 ;;
32293esac
32294
32295
32296OPT_FISH_FPATH=default
32297
32298# Check whether --with-fish-functions-dir was given.
32299if test ${with_fish_functions_dir+y}
32300then :
32301 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32302fi
32303
32304case "$OPT_FISH_FPATH" in
32305 no)
32306 ;;
32307 default|yes)
32308
32309 if test -n "$PKG_CONFIG"; then
32310 PKGCONFIG="$PKG_CONFIG"
32311 else
32312 if test -n "$ac_tool_prefix"; then
32313 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32314set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32316printf %s "checking for $ac_word... " >&6; }
32317if test ${ac_cv_path_PKGCONFIG+y}
32318then :
32319 printf %s "(cached) " >&6
32320else $as_nop
32321 case $PKGCONFIG in
32322 [\\/]* | ?:[\\/]*)
32323 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32324 ;;
32325 *)
32326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32327as_dummy="$PATH:/usr/bin:/usr/local/bin"
32328for as_dir in $as_dummy
32329do
32330 IFS=$as_save_IFS
32331 case $as_dir in #(((
32332 '') as_dir=./ ;;
32333 */) ;;
32334 *) as_dir=$as_dir/ ;;
32335 esac
32336 for ac_exec_ext in '' $ac_executable_extensions; do
32337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32338 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32340 break 2
32341 fi
32342done
32343 done
32344IFS=$as_save_IFS
32345
32346 ;;
32347esac
32348fi
32349PKGCONFIG=$ac_cv_path_PKGCONFIG
32350if test -n "$PKGCONFIG"; then
32351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32352printf "%s\n" "$PKGCONFIG" >&6; }
32353else
32354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32355printf "%s\n" "no" >&6; }
32356fi
32357
32358
32359fi
32360if test -z "$ac_cv_path_PKGCONFIG"; then
32361 ac_pt_PKGCONFIG=$PKGCONFIG
32362 # Extract the first word of "pkg-config", so it can be a program name with args.
32363set dummy pkg-config; ac_word=$2
32364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32365printf %s "checking for $ac_word... " >&6; }
32366if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32367then :
32368 printf %s "(cached) " >&6
32369else $as_nop
32370 case $ac_pt_PKGCONFIG in
32371 [\\/]* | ?:[\\/]*)
32372 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32373 ;;
32374 *)
32375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376as_dummy="$PATH:/usr/bin:/usr/local/bin"
32377for as_dir in $as_dummy
32378do
32379 IFS=$as_save_IFS
32380 case $as_dir in #(((
32381 '') as_dir=./ ;;
32382 */) ;;
32383 *) as_dir=$as_dir/ ;;
32384 esac
32385 for ac_exec_ext in '' $ac_executable_extensions; do
32386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32387 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32389 break 2
32390 fi
32391done
32392 done
32393IFS=$as_save_IFS
32394
32395 ;;
32396esac
32397fi
32398ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32399if test -n "$ac_pt_PKGCONFIG"; then
32400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32401printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32402else
32403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32404printf "%s\n" "no" >&6; }
32405fi
32406
32407 if test "x$ac_pt_PKGCONFIG" = x; then
32408 PKGCONFIG="no"
32409 else
32410 case $cross_compiling:$ac_tool_warned in
32411yes:)
32412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32413printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32414ac_tool_warned=yes ;;
32415esac
32416 PKGCONFIG=$ac_pt_PKGCONFIG
32417 fi
32418else
32419 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32420fi
32421
32422 fi
32423
32424 if test "x$PKGCONFIG" != "xno"; then
32425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32426printf %s "checking for fish options with pkg-config... " >&6; }
32427 itexists=`
32428 if test -n ""; then
32429 PKG_CONFIG_LIBDIR=""
32430 export PKG_CONFIG_LIBDIR
32431 fi
32432 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32433
32434 if test -z "$itexists"; then
32435 PKGCONFIG="no"
32436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32437printf "%s\n" "no" >&6; }
32438 else
32439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32440printf "%s\n" "found" >&6; }
32441 fi
32442 fi
32443
32444 if test "$PKGCONFIG" != "no" ; then
32445 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32446 else
32447 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32448 fi
32449
32450 ;;
32451 *)
32452 FISH_FUNCTIONS_DIR="$withval"
32453
32454 ;;
32455esac
32456
32457ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32458#ifdef HAVE_SYS_TYPES_H
32459#include <sys/types.h>
32460#endif
32461#ifdef HAVE_SYS_TIME_H
32462#include <sys/time.h>
32463#endif
32464#ifdef HAVE_SYS_SELECT_H
32465#include <sys/select.h>
32466#elif defined(HAVE_UNISTD_H)
32467#include <unistd.h>
32468#endif
32469#ifdef HAVE_SYS_SOCKET_H
32470#include <sys/socket.h>
32471#endif
32472#ifdef HAVE_NETINET_IN_H
32473#include <netinet/in.h>
32474#endif
32475#ifdef HAVE_NETINET_IN6_H
32476#include <netinet/in6.h>
32477#endif
32478#ifdef HAVE_SYS_UN_H
32479#include <sys/un.h>
32480#endif
32481
32482
32483"
32484if test "x$ac_cv_header_sys_types_h" = xyes
32485then :
32486 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32487
32488fi
32489ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32490#ifdef HAVE_SYS_TYPES_H
32491#include <sys/types.h>
32492#endif
32493#ifdef HAVE_SYS_TIME_H
32494#include <sys/time.h>
32495#endif
32496#ifdef HAVE_SYS_SELECT_H
32497#include <sys/select.h>
32498#elif defined(HAVE_UNISTD_H)
32499#include <unistd.h>
32500#endif
32501#ifdef HAVE_SYS_SOCKET_H
32502#include <sys/socket.h>
32503#endif
32504#ifdef HAVE_NETINET_IN_H
32505#include <netinet/in.h>
32506#endif
32507#ifdef HAVE_NETINET_IN6_H
32508#include <netinet/in6.h>
32509#endif
32510#ifdef HAVE_SYS_UN_H
32511#include <sys/un.h>
32512#endif
32513
32514
32515"
32516if test "x$ac_cv_header_sys_time_h" = xyes
32517then :
32518 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32519
32520fi
32521ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32522#ifdef HAVE_SYS_TYPES_H
32523#include <sys/types.h>
32524#endif
32525#ifdef HAVE_SYS_TIME_H
32526#include <sys/time.h>
32527#endif
32528#ifdef HAVE_SYS_SELECT_H
32529#include <sys/select.h>
32530#elif defined(HAVE_UNISTD_H)
32531#include <unistd.h>
32532#endif
32533#ifdef HAVE_SYS_SOCKET_H
32534#include <sys/socket.h>
32535#endif
32536#ifdef HAVE_NETINET_IN_H
32537#include <netinet/in.h>
32538#endif
32539#ifdef HAVE_NETINET_IN6_H
32540#include <netinet/in6.h>
32541#endif
32542#ifdef HAVE_SYS_UN_H
32543#include <sys/un.h>
32544#endif
32545
32546
32547"
32548if test "x$ac_cv_header_sys_select_h" = xyes
32549then :
32550 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
32551
32552fi
32553ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
32554#ifdef HAVE_SYS_TYPES_H
32555#include <sys/types.h>
32556#endif
32557#ifdef HAVE_SYS_TIME_H
32558#include <sys/time.h>
32559#endif
32560#ifdef HAVE_SYS_SELECT_H
32561#include <sys/select.h>
32562#elif defined(HAVE_UNISTD_H)
32563#include <unistd.h>
32564#endif
32565#ifdef HAVE_SYS_SOCKET_H
32566#include <sys/socket.h>
32567#endif
32568#ifdef HAVE_NETINET_IN_H
32569#include <netinet/in.h>
32570#endif
32571#ifdef HAVE_NETINET_IN6_H
32572#include <netinet/in6.h>
32573#endif
32574#ifdef HAVE_SYS_UN_H
32575#include <sys/un.h>
32576#endif
32577
32578
32579"
32580if test "x$ac_cv_header_sys_socket_h" = xyes
32581then :
32582 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
32583
32584fi
32585ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
32586#ifdef HAVE_SYS_TYPES_H
32587#include <sys/types.h>
32588#endif
32589#ifdef HAVE_SYS_TIME_H
32590#include <sys/time.h>
32591#endif
32592#ifdef HAVE_SYS_SELECT_H
32593#include <sys/select.h>
32594#elif defined(HAVE_UNISTD_H)
32595#include <unistd.h>
32596#endif
32597#ifdef HAVE_SYS_SOCKET_H
32598#include <sys/socket.h>
32599#endif
32600#ifdef HAVE_NETINET_IN_H
32601#include <netinet/in.h>
32602#endif
32603#ifdef HAVE_NETINET_IN6_H
32604#include <netinet/in6.h>
32605#endif
32606#ifdef HAVE_SYS_UN_H
32607#include <sys/un.h>
32608#endif
32609
32610
32611"
32612if test "x$ac_cv_header_sys_ioctl_h" = xyes
32613then :
32614 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
32615
32616fi
32617ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
32618#ifdef HAVE_SYS_TYPES_H
32619#include <sys/types.h>
32620#endif
32621#ifdef HAVE_SYS_TIME_H
32622#include <sys/time.h>
32623#endif
32624#ifdef HAVE_SYS_SELECT_H
32625#include <sys/select.h>
32626#elif defined(HAVE_UNISTD_H)
32627#include <unistd.h>
32628#endif
32629#ifdef HAVE_SYS_SOCKET_H
32630#include <sys/socket.h>
32631#endif
32632#ifdef HAVE_NETINET_IN_H
32633#include <netinet/in.h>
32634#endif
32635#ifdef HAVE_NETINET_IN6_H
32636#include <netinet/in6.h>
32637#endif
32638#ifdef HAVE_SYS_UN_H
32639#include <sys/un.h>
32640#endif
32641
32642
32643"
32644if test "x$ac_cv_header_sys_uio_h" = xyes
32645then :
32646 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
32647
32648fi
32649ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
32650#ifdef HAVE_SYS_TYPES_H
32651#include <sys/types.h>
32652#endif
32653#ifdef HAVE_SYS_TIME_H
32654#include <sys/time.h>
32655#endif
32656#ifdef HAVE_SYS_SELECT_H
32657#include <sys/select.h>
32658#elif defined(HAVE_UNISTD_H)
32659#include <unistd.h>
32660#endif
32661#ifdef HAVE_SYS_SOCKET_H
32662#include <sys/socket.h>
32663#endif
32664#ifdef HAVE_NETINET_IN_H
32665#include <netinet/in.h>
32666#endif
32667#ifdef HAVE_NETINET_IN6_H
32668#include <netinet/in6.h>
32669#endif
32670#ifdef HAVE_SYS_UN_H
32671#include <sys/un.h>
32672#endif
32673
32674
32675"
32676if test "x$ac_cv_header_assert_h" = xyes
32677then :
32678 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
32679
32680fi
32681ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
32682#ifdef HAVE_SYS_TYPES_H
32683#include <sys/types.h>
32684#endif
32685#ifdef HAVE_SYS_TIME_H
32686#include <sys/time.h>
32687#endif
32688#ifdef HAVE_SYS_SELECT_H
32689#include <sys/select.h>
32690#elif defined(HAVE_UNISTD_H)
32691#include <unistd.h>
32692#endif
32693#ifdef HAVE_SYS_SOCKET_H
32694#include <sys/socket.h>
32695#endif
32696#ifdef HAVE_NETINET_IN_H
32697#include <netinet/in.h>
32698#endif
32699#ifdef HAVE_NETINET_IN6_H
32700#include <netinet/in6.h>
32701#endif
32702#ifdef HAVE_SYS_UN_H
32703#include <sys/un.h>
32704#endif
32705
32706
32707"
32708if test "x$ac_cv_header_unistd_h" = xyes
32709then :
32710 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
32711
32712fi
32713ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
32714#ifdef HAVE_SYS_TYPES_H
32715#include <sys/types.h>
32716#endif
32717#ifdef HAVE_SYS_TIME_H
32718#include <sys/time.h>
32719#endif
32720#ifdef HAVE_SYS_SELECT_H
32721#include <sys/select.h>
32722#elif defined(HAVE_UNISTD_H)
32723#include <unistd.h>
32724#endif
32725#ifdef HAVE_SYS_SOCKET_H
32726#include <sys/socket.h>
32727#endif
32728#ifdef HAVE_NETINET_IN_H
32729#include <netinet/in.h>
32730#endif
32731#ifdef HAVE_NETINET_IN6_H
32732#include <netinet/in6.h>
32733#endif
32734#ifdef HAVE_SYS_UN_H
32735#include <sys/un.h>
32736#endif
32737
32738
32739"
32740if test "x$ac_cv_header_stdlib_h" = xyes
32741then :
32742 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
32743
32744fi
32745ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
32746#ifdef HAVE_SYS_TYPES_H
32747#include <sys/types.h>
32748#endif
32749#ifdef HAVE_SYS_TIME_H
32750#include <sys/time.h>
32751#endif
32752#ifdef HAVE_SYS_SELECT_H
32753#include <sys/select.h>
32754#elif defined(HAVE_UNISTD_H)
32755#include <unistd.h>
32756#endif
32757#ifdef HAVE_SYS_SOCKET_H
32758#include <sys/socket.h>
32759#endif
32760#ifdef HAVE_NETINET_IN_H
32761#include <netinet/in.h>
32762#endif
32763#ifdef HAVE_NETINET_IN6_H
32764#include <netinet/in6.h>
32765#endif
32766#ifdef HAVE_SYS_UN_H
32767#include <sys/un.h>
32768#endif
32769
32770
32771"
32772if test "x$ac_cv_header_arpa_inet_h" = xyes
32773then :
32774 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
32775
32776fi
32777ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
32778#ifdef HAVE_SYS_TYPES_H
32779#include <sys/types.h>
32780#endif
32781#ifdef HAVE_SYS_TIME_H
32782#include <sys/time.h>
32783#endif
32784#ifdef HAVE_SYS_SELECT_H
32785#include <sys/select.h>
32786#elif defined(HAVE_UNISTD_H)
32787#include <unistd.h>
32788#endif
32789#ifdef HAVE_SYS_SOCKET_H
32790#include <sys/socket.h>
32791#endif
32792#ifdef HAVE_NETINET_IN_H
32793#include <netinet/in.h>
32794#endif
32795#ifdef HAVE_NETINET_IN6_H
32796#include <netinet/in6.h>
32797#endif
32798#ifdef HAVE_SYS_UN_H
32799#include <sys/un.h>
32800#endif
32801
32802
32803"
32804if test "x$ac_cv_header_net_if_h" = xyes
32805then :
32806 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
32807
32808fi
32809ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
32810#ifdef HAVE_SYS_TYPES_H
32811#include <sys/types.h>
32812#endif
32813#ifdef HAVE_SYS_TIME_H
32814#include <sys/time.h>
32815#endif
32816#ifdef HAVE_SYS_SELECT_H
32817#include <sys/select.h>
32818#elif defined(HAVE_UNISTD_H)
32819#include <unistd.h>
32820#endif
32821#ifdef HAVE_SYS_SOCKET_H
32822#include <sys/socket.h>
32823#endif
32824#ifdef HAVE_NETINET_IN_H
32825#include <netinet/in.h>
32826#endif
32827#ifdef HAVE_NETINET_IN6_H
32828#include <netinet/in6.h>
32829#endif
32830#ifdef HAVE_SYS_UN_H
32831#include <sys/un.h>
32832#endif
32833
32834
32835"
32836if test "x$ac_cv_header_netinet_in_h" = xyes
32837then :
32838 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
32839
32840fi
32841ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
32842#ifdef HAVE_SYS_TYPES_H
32843#include <sys/types.h>
32844#endif
32845#ifdef HAVE_SYS_TIME_H
32846#include <sys/time.h>
32847#endif
32848#ifdef HAVE_SYS_SELECT_H
32849#include <sys/select.h>
32850#elif defined(HAVE_UNISTD_H)
32851#include <unistd.h>
32852#endif
32853#ifdef HAVE_SYS_SOCKET_H
32854#include <sys/socket.h>
32855#endif
32856#ifdef HAVE_NETINET_IN_H
32857#include <netinet/in.h>
32858#endif
32859#ifdef HAVE_NETINET_IN6_H
32860#include <netinet/in6.h>
32861#endif
32862#ifdef HAVE_SYS_UN_H
32863#include <sys/un.h>
32864#endif
32865
32866
32867"
32868if test "x$ac_cv_header_netinet_in6_h" = xyes
32869then :
32870 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
32871
32872fi
32873ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
32874#ifdef HAVE_SYS_TYPES_H
32875#include <sys/types.h>
32876#endif
32877#ifdef HAVE_SYS_TIME_H
32878#include <sys/time.h>
32879#endif
32880#ifdef HAVE_SYS_SELECT_H
32881#include <sys/select.h>
32882#elif defined(HAVE_UNISTD_H)
32883#include <unistd.h>
32884#endif
32885#ifdef HAVE_SYS_SOCKET_H
32886#include <sys/socket.h>
32887#endif
32888#ifdef HAVE_NETINET_IN_H
32889#include <netinet/in.h>
32890#endif
32891#ifdef HAVE_NETINET_IN6_H
32892#include <netinet/in6.h>
32893#endif
32894#ifdef HAVE_SYS_UN_H
32895#include <sys/un.h>
32896#endif
32897
32898
32899"
32900if test "x$ac_cv_header_sys_un_h" = xyes
32901then :
32902 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
32903
32904fi
32905ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
32906#ifdef HAVE_SYS_TYPES_H
32907#include <sys/types.h>
32908#endif
32909#ifdef HAVE_SYS_TIME_H
32910#include <sys/time.h>
32911#endif
32912#ifdef HAVE_SYS_SELECT_H
32913#include <sys/select.h>
32914#elif defined(HAVE_UNISTD_H)
32915#include <unistd.h>
32916#endif
32917#ifdef HAVE_SYS_SOCKET_H
32918#include <sys/socket.h>
32919#endif
32920#ifdef HAVE_NETINET_IN_H
32921#include <netinet/in.h>
32922#endif
32923#ifdef HAVE_NETINET_IN6_H
32924#include <netinet/in6.h>
32925#endif
32926#ifdef HAVE_SYS_UN_H
32927#include <sys/un.h>
32928#endif
32929
32930
32931"
32932if test "x$ac_cv_header_linux_tcp_h" = xyes
32933then :
32934 printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
32935
32936fi
32937ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
32938#ifdef HAVE_SYS_TYPES_H
32939#include <sys/types.h>
32940#endif
32941#ifdef HAVE_SYS_TIME_H
32942#include <sys/time.h>
32943#endif
32944#ifdef HAVE_SYS_SELECT_H
32945#include <sys/select.h>
32946#elif defined(HAVE_UNISTD_H)
32947#include <unistd.h>
32948#endif
32949#ifdef HAVE_SYS_SOCKET_H
32950#include <sys/socket.h>
32951#endif
32952#ifdef HAVE_NETINET_IN_H
32953#include <netinet/in.h>
32954#endif
32955#ifdef HAVE_NETINET_IN6_H
32956#include <netinet/in6.h>
32957#endif
32958#ifdef HAVE_SYS_UN_H
32959#include <sys/un.h>
32960#endif
32961
32962
32963"
32964if test "x$ac_cv_header_netinet_tcp_h" = xyes
32965then :
32966 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
32967
32968fi
32969ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
32970#ifdef HAVE_SYS_TYPES_H
32971#include <sys/types.h>
32972#endif
32973#ifdef HAVE_SYS_TIME_H
32974#include <sys/time.h>
32975#endif
32976#ifdef HAVE_SYS_SELECT_H
32977#include <sys/select.h>
32978#elif defined(HAVE_UNISTD_H)
32979#include <unistd.h>
32980#endif
32981#ifdef HAVE_SYS_SOCKET_H
32982#include <sys/socket.h>
32983#endif
32984#ifdef HAVE_NETINET_IN_H
32985#include <netinet/in.h>
32986#endif
32987#ifdef HAVE_NETINET_IN6_H
32988#include <netinet/in6.h>
32989#endif
32990#ifdef HAVE_SYS_UN_H
32991#include <sys/un.h>
32992#endif
32993
32994
32995"
32996if test "x$ac_cv_header_netinet_udp_h" = xyes
32997then :
32998 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
32999
33000fi
33001ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33002#ifdef HAVE_SYS_TYPES_H
33003#include <sys/types.h>
33004#endif
33005#ifdef HAVE_SYS_TIME_H
33006#include <sys/time.h>
33007#endif
33008#ifdef HAVE_SYS_SELECT_H
33009#include <sys/select.h>
33010#elif defined(HAVE_UNISTD_H)
33011#include <unistd.h>
33012#endif
33013#ifdef HAVE_SYS_SOCKET_H
33014#include <sys/socket.h>
33015#endif
33016#ifdef HAVE_NETINET_IN_H
33017#include <netinet/in.h>
33018#endif
33019#ifdef HAVE_NETINET_IN6_H
33020#include <netinet/in6.h>
33021#endif
33022#ifdef HAVE_SYS_UN_H
33023#include <sys/un.h>
33024#endif
33025
33026
33027"
33028if test "x$ac_cv_header_netdb_h" = xyes
33029then :
33030 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33031
33032fi
33033ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33034#ifdef HAVE_SYS_TYPES_H
33035#include <sys/types.h>
33036#endif
33037#ifdef HAVE_SYS_TIME_H
33038#include <sys/time.h>
33039#endif
33040#ifdef HAVE_SYS_SELECT_H
33041#include <sys/select.h>
33042#elif defined(HAVE_UNISTD_H)
33043#include <unistd.h>
33044#endif
33045#ifdef HAVE_SYS_SOCKET_H
33046#include <sys/socket.h>
33047#endif
33048#ifdef HAVE_NETINET_IN_H
33049#include <netinet/in.h>
33050#endif
33051#ifdef HAVE_NETINET_IN6_H
33052#include <netinet/in6.h>
33053#endif
33054#ifdef HAVE_SYS_UN_H
33055#include <sys/un.h>
33056#endif
33057
33058
33059"
33060if test "x$ac_cv_header_sys_sockio_h" = xyes
33061then :
33062 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33063
33064fi
33065ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33066#ifdef HAVE_SYS_TYPES_H
33067#include <sys/types.h>
33068#endif
33069#ifdef HAVE_SYS_TIME_H
33070#include <sys/time.h>
33071#endif
33072#ifdef HAVE_SYS_SELECT_H
33073#include <sys/select.h>
33074#elif defined(HAVE_UNISTD_H)
33075#include <unistd.h>
33076#endif
33077#ifdef HAVE_SYS_SOCKET_H
33078#include <sys/socket.h>
33079#endif
33080#ifdef HAVE_NETINET_IN_H
33081#include <netinet/in.h>
33082#endif
33083#ifdef HAVE_NETINET_IN6_H
33084#include <netinet/in6.h>
33085#endif
33086#ifdef HAVE_SYS_UN_H
33087#include <sys/un.h>
33088#endif
33089
33090
33091"
33092if test "x$ac_cv_header_sys_stat_h" = xyes
33093then :
33094 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33095
33096fi
33097ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33098#ifdef HAVE_SYS_TYPES_H
33099#include <sys/types.h>
33100#endif
33101#ifdef HAVE_SYS_TIME_H
33102#include <sys/time.h>
33103#endif
33104#ifdef HAVE_SYS_SELECT_H
33105#include <sys/select.h>
33106#elif defined(HAVE_UNISTD_H)
33107#include <unistd.h>
33108#endif
33109#ifdef HAVE_SYS_SOCKET_H
33110#include <sys/socket.h>
33111#endif
33112#ifdef HAVE_NETINET_IN_H
33113#include <netinet/in.h>
33114#endif
33115#ifdef HAVE_NETINET_IN6_H
33116#include <netinet/in6.h>
33117#endif
33118#ifdef HAVE_SYS_UN_H
33119#include <sys/un.h>
33120#endif
33121
33122
33123"
33124if test "x$ac_cv_header_sys_param_h" = xyes
33125then :
33126 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33127
33128fi
33129ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33130#ifdef HAVE_SYS_TYPES_H
33131#include <sys/types.h>
33132#endif
33133#ifdef HAVE_SYS_TIME_H
33134#include <sys/time.h>
33135#endif
33136#ifdef HAVE_SYS_SELECT_H
33137#include <sys/select.h>
33138#elif defined(HAVE_UNISTD_H)
33139#include <unistd.h>
33140#endif
33141#ifdef HAVE_SYS_SOCKET_H
33142#include <sys/socket.h>
33143#endif
33144#ifdef HAVE_NETINET_IN_H
33145#include <netinet/in.h>
33146#endif
33147#ifdef HAVE_NETINET_IN6_H
33148#include <netinet/in6.h>
33149#endif
33150#ifdef HAVE_SYS_UN_H
33151#include <sys/un.h>
33152#endif
33153
33154
33155"
33156if test "x$ac_cv_header_termios_h" = xyes
33157then :
33158 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33159
33160fi
33161ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33162#ifdef HAVE_SYS_TYPES_H
33163#include <sys/types.h>
33164#endif
33165#ifdef HAVE_SYS_TIME_H
33166#include <sys/time.h>
33167#endif
33168#ifdef HAVE_SYS_SELECT_H
33169#include <sys/select.h>
33170#elif defined(HAVE_UNISTD_H)
33171#include <unistd.h>
33172#endif
33173#ifdef HAVE_SYS_SOCKET_H
33174#include <sys/socket.h>
33175#endif
33176#ifdef HAVE_NETINET_IN_H
33177#include <netinet/in.h>
33178#endif
33179#ifdef HAVE_NETINET_IN6_H
33180#include <netinet/in6.h>
33181#endif
33182#ifdef HAVE_SYS_UN_H
33183#include <sys/un.h>
33184#endif
33185
33186
33187"
33188if test "x$ac_cv_header_termio_h" = xyes
33189then :
33190 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33191
33192fi
33193ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33194#ifdef HAVE_SYS_TYPES_H
33195#include <sys/types.h>
33196#endif
33197#ifdef HAVE_SYS_TIME_H
33198#include <sys/time.h>
33199#endif
33200#ifdef HAVE_SYS_SELECT_H
33201#include <sys/select.h>
33202#elif defined(HAVE_UNISTD_H)
33203#include <unistd.h>
33204#endif
33205#ifdef HAVE_SYS_SOCKET_H
33206#include <sys/socket.h>
33207#endif
33208#ifdef HAVE_NETINET_IN_H
33209#include <netinet/in.h>
33210#endif
33211#ifdef HAVE_NETINET_IN6_H
33212#include <netinet/in6.h>
33213#endif
33214#ifdef HAVE_SYS_UN_H
33215#include <sys/un.h>
33216#endif
33217
33218
33219"
33220if test "x$ac_cv_header_fcntl_h" = xyes
33221then :
33222 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33223
33224fi
33225ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33226#ifdef HAVE_SYS_TYPES_H
33227#include <sys/types.h>
33228#endif
33229#ifdef HAVE_SYS_TIME_H
33230#include <sys/time.h>
33231#endif
33232#ifdef HAVE_SYS_SELECT_H
33233#include <sys/select.h>
33234#elif defined(HAVE_UNISTD_H)
33235#include <unistd.h>
33236#endif
33237#ifdef HAVE_SYS_SOCKET_H
33238#include <sys/socket.h>
33239#endif
33240#ifdef HAVE_NETINET_IN_H
33241#include <netinet/in.h>
33242#endif
33243#ifdef HAVE_NETINET_IN6_H
33244#include <netinet/in6.h>
33245#endif
33246#ifdef HAVE_SYS_UN_H
33247#include <sys/un.h>
33248#endif
33249
33250
33251"
33252if test "x$ac_cv_header_io_h" = xyes
33253then :
33254 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33255
33256fi
33257ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33258#ifdef HAVE_SYS_TYPES_H
33259#include <sys/types.h>
33260#endif
33261#ifdef HAVE_SYS_TIME_H
33262#include <sys/time.h>
33263#endif
33264#ifdef HAVE_SYS_SELECT_H
33265#include <sys/select.h>
33266#elif defined(HAVE_UNISTD_H)
33267#include <unistd.h>
33268#endif
33269#ifdef HAVE_SYS_SOCKET_H
33270#include <sys/socket.h>
33271#endif
33272#ifdef HAVE_NETINET_IN_H
33273#include <netinet/in.h>
33274#endif
33275#ifdef HAVE_NETINET_IN6_H
33276#include <netinet/in6.h>
33277#endif
33278#ifdef HAVE_SYS_UN_H
33279#include <sys/un.h>
33280#endif
33281
33282
33283"
33284if test "x$ac_cv_header_pwd_h" = xyes
33285then :
33286 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33287
33288fi
33289ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33290#ifdef HAVE_SYS_TYPES_H
33291#include <sys/types.h>
33292#endif
33293#ifdef HAVE_SYS_TIME_H
33294#include <sys/time.h>
33295#endif
33296#ifdef HAVE_SYS_SELECT_H
33297#include <sys/select.h>
33298#elif defined(HAVE_UNISTD_H)
33299#include <unistd.h>
33300#endif
33301#ifdef HAVE_SYS_SOCKET_H
33302#include <sys/socket.h>
33303#endif
33304#ifdef HAVE_NETINET_IN_H
33305#include <netinet/in.h>
33306#endif
33307#ifdef HAVE_NETINET_IN6_H
33308#include <netinet/in6.h>
33309#endif
33310#ifdef HAVE_SYS_UN_H
33311#include <sys/un.h>
33312#endif
33313
33314
33315"
33316if test "x$ac_cv_header_utime_h" = xyes
33317then :
33318 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33319
33320fi
33321ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33322#ifdef HAVE_SYS_TYPES_H
33323#include <sys/types.h>
33324#endif
33325#ifdef HAVE_SYS_TIME_H
33326#include <sys/time.h>
33327#endif
33328#ifdef HAVE_SYS_SELECT_H
33329#include <sys/select.h>
33330#elif defined(HAVE_UNISTD_H)
33331#include <unistd.h>
33332#endif
33333#ifdef HAVE_SYS_SOCKET_H
33334#include <sys/socket.h>
33335#endif
33336#ifdef HAVE_NETINET_IN_H
33337#include <netinet/in.h>
33338#endif
33339#ifdef HAVE_NETINET_IN6_H
33340#include <netinet/in6.h>
33341#endif
33342#ifdef HAVE_SYS_UN_H
33343#include <sys/un.h>
33344#endif
33345
33346
33347"
33348if test "x$ac_cv_header_sys_utime_h" = xyes
33349then :
33350 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33351
33352fi
33353ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33354#ifdef HAVE_SYS_TYPES_H
33355#include <sys/types.h>
33356#endif
33357#ifdef HAVE_SYS_TIME_H
33358#include <sys/time.h>
33359#endif
33360#ifdef HAVE_SYS_SELECT_H
33361#include <sys/select.h>
33362#elif defined(HAVE_UNISTD_H)
33363#include <unistd.h>
33364#endif
33365#ifdef HAVE_SYS_SOCKET_H
33366#include <sys/socket.h>
33367#endif
33368#ifdef HAVE_NETINET_IN_H
33369#include <netinet/in.h>
33370#endif
33371#ifdef HAVE_NETINET_IN6_H
33372#include <netinet/in6.h>
33373#endif
33374#ifdef HAVE_SYS_UN_H
33375#include <sys/un.h>
33376#endif
33377
33378
33379"
33380if test "x$ac_cv_header_sys_poll_h" = xyes
33381then :
33382 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33383
33384fi
33385ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33386#ifdef HAVE_SYS_TYPES_H
33387#include <sys/types.h>
33388#endif
33389#ifdef HAVE_SYS_TIME_H
33390#include <sys/time.h>
33391#endif
33392#ifdef HAVE_SYS_SELECT_H
33393#include <sys/select.h>
33394#elif defined(HAVE_UNISTD_H)
33395#include <unistd.h>
33396#endif
33397#ifdef HAVE_SYS_SOCKET_H
33398#include <sys/socket.h>
33399#endif
33400#ifdef HAVE_NETINET_IN_H
33401#include <netinet/in.h>
33402#endif
33403#ifdef HAVE_NETINET_IN6_H
33404#include <netinet/in6.h>
33405#endif
33406#ifdef HAVE_SYS_UN_H
33407#include <sys/un.h>
33408#endif
33409
33410
33411"
33412if test "x$ac_cv_header_poll_h" = xyes
33413then :
33414 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33415
33416fi
33417ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33418#ifdef HAVE_SYS_TYPES_H
33419#include <sys/types.h>
33420#endif
33421#ifdef HAVE_SYS_TIME_H
33422#include <sys/time.h>
33423#endif
33424#ifdef HAVE_SYS_SELECT_H
33425#include <sys/select.h>
33426#elif defined(HAVE_UNISTD_H)
33427#include <unistd.h>
33428#endif
33429#ifdef HAVE_SYS_SOCKET_H
33430#include <sys/socket.h>
33431#endif
33432#ifdef HAVE_NETINET_IN_H
33433#include <netinet/in.h>
33434#endif
33435#ifdef HAVE_NETINET_IN6_H
33436#include <netinet/in6.h>
33437#endif
33438#ifdef HAVE_SYS_UN_H
33439#include <sys/un.h>
33440#endif
33441
33442
33443"
33444if test "x$ac_cv_header_socket_h" = xyes
33445then :
33446 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33447
33448fi
33449ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33450#ifdef HAVE_SYS_TYPES_H
33451#include <sys/types.h>
33452#endif
33453#ifdef HAVE_SYS_TIME_H
33454#include <sys/time.h>
33455#endif
33456#ifdef HAVE_SYS_SELECT_H
33457#include <sys/select.h>
33458#elif defined(HAVE_UNISTD_H)
33459#include <unistd.h>
33460#endif
33461#ifdef HAVE_SYS_SOCKET_H
33462#include <sys/socket.h>
33463#endif
33464#ifdef HAVE_NETINET_IN_H
33465#include <netinet/in.h>
33466#endif
33467#ifdef HAVE_NETINET_IN6_H
33468#include <netinet/in6.h>
33469#endif
33470#ifdef HAVE_SYS_UN_H
33471#include <sys/un.h>
33472#endif
33473
33474
33475"
33476if test "x$ac_cv_header_sys_resource_h" = xyes
33477then :
33478 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33479
33480fi
33481ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33482#ifdef HAVE_SYS_TYPES_H
33483#include <sys/types.h>
33484#endif
33485#ifdef HAVE_SYS_TIME_H
33486#include <sys/time.h>
33487#endif
33488#ifdef HAVE_SYS_SELECT_H
33489#include <sys/select.h>
33490#elif defined(HAVE_UNISTD_H)
33491#include <unistd.h>
33492#endif
33493#ifdef HAVE_SYS_SOCKET_H
33494#include <sys/socket.h>
33495#endif
33496#ifdef HAVE_NETINET_IN_H
33497#include <netinet/in.h>
33498#endif
33499#ifdef HAVE_NETINET_IN6_H
33500#include <netinet/in6.h>
33501#endif
33502#ifdef HAVE_SYS_UN_H
33503#include <sys/un.h>
33504#endif
33505
33506
33507"
33508if test "x$ac_cv_header_libgen_h" = xyes
33509then :
33510 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33511
33512fi
33513ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33514#ifdef HAVE_SYS_TYPES_H
33515#include <sys/types.h>
33516#endif
33517#ifdef HAVE_SYS_TIME_H
33518#include <sys/time.h>
33519#endif
33520#ifdef HAVE_SYS_SELECT_H
33521#include <sys/select.h>
33522#elif defined(HAVE_UNISTD_H)
33523#include <unistd.h>
33524#endif
33525#ifdef HAVE_SYS_SOCKET_H
33526#include <sys/socket.h>
33527#endif
33528#ifdef HAVE_NETINET_IN_H
33529#include <netinet/in.h>
33530#endif
33531#ifdef HAVE_NETINET_IN6_H
33532#include <netinet/in6.h>
33533#endif
33534#ifdef HAVE_SYS_UN_H
33535#include <sys/un.h>
33536#endif
33537
33538
33539"
33540if test "x$ac_cv_header_locale_h" = xyes
33541then :
33542 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33543
33544fi
33545ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
33546#ifdef HAVE_SYS_TYPES_H
33547#include <sys/types.h>
33548#endif
33549#ifdef HAVE_SYS_TIME_H
33550#include <sys/time.h>
33551#endif
33552#ifdef HAVE_SYS_SELECT_H
33553#include <sys/select.h>
33554#elif defined(HAVE_UNISTD_H)
33555#include <unistd.h>
33556#endif
33557#ifdef HAVE_SYS_SOCKET_H
33558#include <sys/socket.h>
33559#endif
33560#ifdef HAVE_NETINET_IN_H
33561#include <netinet/in.h>
33562#endif
33563#ifdef HAVE_NETINET_IN6_H
33564#include <netinet/in6.h>
33565#endif
33566#ifdef HAVE_SYS_UN_H
33567#include <sys/un.h>
33568#endif
33569
33570
33571"
33572if test "x$ac_cv_header_errno_h" = xyes
33573then :
33574 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
33575
33576fi
33577ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33578#ifdef HAVE_SYS_TYPES_H
33579#include <sys/types.h>
33580#endif
33581#ifdef HAVE_SYS_TIME_H
33582#include <sys/time.h>
33583#endif
33584#ifdef HAVE_SYS_SELECT_H
33585#include <sys/select.h>
33586#elif defined(HAVE_UNISTD_H)
33587#include <unistd.h>
33588#endif
33589#ifdef HAVE_SYS_SOCKET_H
33590#include <sys/socket.h>
33591#endif
33592#ifdef HAVE_NETINET_IN_H
33593#include <netinet/in.h>
33594#endif
33595#ifdef HAVE_NETINET_IN6_H
33596#include <netinet/in6.h>
33597#endif
33598#ifdef HAVE_SYS_UN_H
33599#include <sys/un.h>
33600#endif
33601
33602
33603"
33604if test "x$ac_cv_header_stdbool_h" = xyes
33605then :
33606 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33607
33608fi
33609ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
33610#ifdef HAVE_SYS_TYPES_H
33611#include <sys/types.h>
33612#endif
33613#ifdef HAVE_SYS_TIME_H
33614#include <sys/time.h>
33615#endif
33616#ifdef HAVE_SYS_SELECT_H
33617#include <sys/select.h>
33618#elif defined(HAVE_UNISTD_H)
33619#include <unistd.h>
33620#endif
33621#ifdef HAVE_SYS_SOCKET_H
33622#include <sys/socket.h>
33623#endif
33624#ifdef HAVE_NETINET_IN_H
33625#include <netinet/in.h>
33626#endif
33627#ifdef HAVE_NETINET_IN6_H
33628#include <netinet/in6.h>
33629#endif
33630#ifdef HAVE_SYS_UN_H
33631#include <sys/un.h>
33632#endif
33633
33634
33635"
33636if test "x$ac_cv_header_arpa_tftp_h" = xyes
33637then :
33638 printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
33639
33640fi
33641ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33642#ifdef HAVE_SYS_TYPES_H
33643#include <sys/types.h>
33644#endif
33645#ifdef HAVE_SYS_TIME_H
33646#include <sys/time.h>
33647#endif
33648#ifdef HAVE_SYS_SELECT_H
33649#include <sys/select.h>
33650#elif defined(HAVE_UNISTD_H)
33651#include <unistd.h>
33652#endif
33653#ifdef HAVE_SYS_SOCKET_H
33654#include <sys/socket.h>
33655#endif
33656#ifdef HAVE_NETINET_IN_H
33657#include <netinet/in.h>
33658#endif
33659#ifdef HAVE_NETINET_IN6_H
33660#include <netinet/in6.h>
33661#endif
33662#ifdef HAVE_SYS_UN_H
33663#include <sys/un.h>
33664#endif
33665
33666
33667"
33668if test "x$ac_cv_header_sys_filio_h" = xyes
33669then :
33670 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
33671
33672fi
33673ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
33674#ifdef HAVE_SYS_TYPES_H
33675#include <sys/types.h>
33676#endif
33677#ifdef HAVE_SYS_TIME_H
33678#include <sys/time.h>
33679#endif
33680#ifdef HAVE_SYS_SELECT_H
33681#include <sys/select.h>
33682#elif defined(HAVE_UNISTD_H)
33683#include <unistd.h>
33684#endif
33685#ifdef HAVE_SYS_SOCKET_H
33686#include <sys/socket.h>
33687#endif
33688#ifdef HAVE_NETINET_IN_H
33689#include <netinet/in.h>
33690#endif
33691#ifdef HAVE_NETINET_IN6_H
33692#include <netinet/in6.h>
33693#endif
33694#ifdef HAVE_SYS_UN_H
33695#include <sys/un.h>
33696#endif
33697
33698
33699"
33700if test "x$ac_cv_header_sys_wait_h" = xyes
33701then :
33702 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
33703
33704fi
33705ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
33706#ifdef HAVE_SYS_TYPES_H
33707#include <sys/types.h>
33708#endif
33709#ifdef HAVE_SYS_TIME_H
33710#include <sys/time.h>
33711#endif
33712#ifdef HAVE_SYS_SELECT_H
33713#include <sys/select.h>
33714#elif defined(HAVE_UNISTD_H)
33715#include <unistd.h>
33716#endif
33717#ifdef HAVE_SYS_SOCKET_H
33718#include <sys/socket.h>
33719#endif
33720#ifdef HAVE_NETINET_IN_H
33721#include <netinet/in.h>
33722#endif
33723#ifdef HAVE_NETINET_IN6_H
33724#include <netinet/in6.h>
33725#endif
33726#ifdef HAVE_SYS_UN_H
33727#include <sys/un.h>
33728#endif
33729
33730
33731"
33732if test "x$ac_cv_header_setjmp_h" = xyes
33733then :
33734 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
33735
33736fi
33737
33738
33739
33740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
33741printf %s "checking for an ANSI C-conforming const... " >&6; }
33742if test ${ac_cv_c_const+y}
33743then :
33744 printf %s "(cached) " >&6
33745else $as_nop
33746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33747/* end confdefs.h. */
33748
33749int main (void)
33750{
33751
33752#ifndef __cplusplus
33753 /* Ultrix mips cc rejects this sort of thing. */
33754 typedef int charset[2];
33755 const charset cs = { 0, 0 };
33756 /* SunOS 4.1.1 cc rejects this. */
33757 char const *const *pcpcc;
33758 char **ppc;
33759 /* NEC SVR4.0.2 mips cc rejects this. */
33760 struct point {int x, y;};
33761 static struct point const zero = {0,0};
33762 /* IBM XL C 1.02.0.0 rejects this.
33763 It does not let you subtract one const X* pointer from another in
33764 an arm of an if-expression whose if-part is not a constant
33765 expression */
33766 const char *g = "string";
33767 pcpcc = &g + (g ? g-g : 0);
33768 /* HPUX 7.0 cc rejects these. */
33769 ++pcpcc;
33770 ppc = (char**) pcpcc;
33771 pcpcc = (char const *const *) ppc;
33772 { /* SCO 3.2v4 cc rejects this sort of thing. */
33773 char tx;
33774 char *t = &tx;
33775 char const *s = 0 ? (char *) 0 : (char const *) 0;
33776
33777 *t++ = 0;
33778 if (s) return 0;
33779 }
33780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33781 int x[] = {25, 17};
33782 const int *foo = &x[0];
33783 ++foo;
33784 }
33785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33786 typedef const int *iptr;
33787 iptr p = 0;
33788 ++p;
33789 }
33790 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
33791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33792 struct s { int j; const int *ap[3]; } bx;
33793 struct s *b = &bx; b->j = 5;
33794 }
33795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33796 const int foo = 10;
33797 if (!foo) return 0;
33798 }
33799 return !cs[0] && !zero.x;
33800#endif
33801
33802 ;
33803 return 0;
33804}
33805_ACEOF
33806if ac_fn_c_try_compile "$LINENO"
33807then :
33808 ac_cv_c_const=yes
33809else $as_nop
33810 ac_cv_c_const=no
33811fi
33812rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33813fi
33814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
33815printf "%s\n" "$ac_cv_c_const" >&6; }
33816if test $ac_cv_c_const = no; then
33817
33818printf "%s\n" "#define const /**/" >>confdefs.h
33819
33820fi
33821
33822
33823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
33824printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
33825if test ${curl_cv_variadic_macros_c99+y}
33826then :
33827 printf %s "(cached) " >&6
33828else $as_nop
33829
33830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33831/* end confdefs.h. */
33832
33833
33834#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
33835#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
33836 int fun3(int arg1, int arg2, int arg3);
33837 int fun2(int arg1, int arg2);
33838 int fun3(int arg1, int arg2, int arg3)
33839 { return arg1 + arg2 + arg3; }
33840 int fun2(int arg1, int arg2)
33841 { return arg1 + arg2; }
33842
33843int main (void)
33844{
33845
33846 int res3 = c99_vmacro3(1, 2, 3);
33847 int res2 = c99_vmacro2(1, 2);
33848
33849 ;
33850 return 0;
33851}
33852
33853_ACEOF
33854if ac_fn_c_try_compile "$LINENO"
33855then :
33856
33857 curl_cv_variadic_macros_c99="yes"
33858
33859else $as_nop
33860
33861 curl_cv_variadic_macros_c99="no"
33862
33863fi
33864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33865
33866fi
33867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
33868printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
33869 case "$curl_cv_variadic_macros_c99" in
33870 yes)
33871
33872printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
33873
33874 ;;
33875 esac
33876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
33877printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
33878if test ${curl_cv_variadic_macros_gcc+y}
33879then :
33880 printf %s "(cached) " >&6
33881else $as_nop
33882
33883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33884/* end confdefs.h. */
33885
33886
33887#define gcc_vmacro3(first, args...) fun3(first, args)
33888#define gcc_vmacro2(first, args...) fun2(first, args)
33889 int fun3(int arg1, int arg2, int arg3);
33890 int fun2(int arg1, int arg2);
33891 int fun3(int arg1, int arg2, int arg3)
33892 { return arg1 + arg2 + arg3; }
33893 int fun2(int arg1, int arg2)
33894 { return arg1 + arg2; }
33895
33896int main (void)
33897{
33898
33899 int res3 = gcc_vmacro3(1, 2, 3);
33900 int res2 = gcc_vmacro2(1, 2);
33901
33902 ;
33903 return 0;
33904}
33905
33906_ACEOF
33907if ac_fn_c_try_compile "$LINENO"
33908then :
33909
33910 curl_cv_variadic_macros_gcc="yes"
33911
33912else $as_nop
33913
33914 curl_cv_variadic_macros_gcc="no"
33915
33916fi
33917rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33918
33919fi
33920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
33921printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
33922 case "$curl_cv_variadic_macros_gcc" in
33923 yes)
33924
33925printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
33926
33927 ;;
33928 esac
33929
33930ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
33931if test "x$ac_cv_type_size_t" = xyes
33932then :
33933
33934else $as_nop
33935
33936printf "%s\n" "#define size_t unsigned int" >>confdefs.h
33937
33938fi
33939
33940
33941
33942 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33943if test "x$ac_cv_header_sys_types_h" = xyes
33944then :
33945 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33946
33947fi
33948ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
33949if test "x$ac_cv_header_sys_time_h" = xyes
33950then :
33951 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33952
33953fi
33954ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33955if test "x$ac_cv_header_sys_socket_h" = xyes
33956then :
33957 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33958
33959fi
33960
33961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
33962printf %s "checking for struct timeval... " >&6; }
33963if test ${curl_cv_struct_timeval+y}
33964then :
33965 printf %s "(cached) " >&6
33966else $as_nop
33967
33968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33969/* end confdefs.h. */
33970
33971
33972#undef inline
33973#ifdef HAVE_WINDOWS_H
33974#ifndef WIN32_LEAN_AND_MEAN
33975#define WIN32_LEAN_AND_MEAN
33976#endif
33977#include <windows.h>
33978#ifdef HAVE_WINSOCK2_H
33979#include <winsock2.h>
33980#endif
33981#endif
33982#ifdef HAVE_SYS_TYPES_H
33983#include <sys/types.h>
33984#endif
33985#ifdef HAVE_SYS_TIME_H
33986#include <sys/time.h>
33987#endif
33988#include <time.h>
33989#ifdef HAVE_SYS_SOCKET_H
33990#include <sys/socket.h>
33991#endif
33992
33993int main (void)
33994{
33995
33996 struct timeval ts;
33997 ts.tv_sec = 0;
33998 ts.tv_usec = 0;
33999
34000 ;
34001 return 0;
34002}
34003
34004_ACEOF
34005if ac_fn_c_try_compile "$LINENO"
34006then :
34007
34008 curl_cv_struct_timeval="yes"
34009
34010else $as_nop
34011
34012 curl_cv_struct_timeval="no"
34013
34014fi
34015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34016
34017fi
34018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34019printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34020 case "$curl_cv_struct_timeval" in
34021 yes)
34022
34023printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34024
34025 ;;
34026 esac
34027
34028
34029
34030 if test "x$cross_compiling" != xyes; then
34031
34032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34033printf %s "checking run-time libs availability... " >&6; }
34034
34035 case $host_os in
34036 darwin*)
34037 if test "$cross_compiling" = yes
34038then :
34039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34040printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34041as_fn_error $? "cannot run test program while cross compiling
34042See \`config.log' for more details" "$LINENO" 5; }
34043else $as_nop
34044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34045/* end confdefs.h. */
34046
34047int main()
34048{
34049 return 0;
34050}
34051
34052_ACEOF
34053if ac_fn_c_try_run "$LINENO"
34054then :
34055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34056printf "%s\n" "fine" >&6; }
34057else $as_nop
34058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34059printf "%s\n" "failed" >&6; }
34060 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34061
34062fi
34063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34064 conftest.$ac_objext conftest.beam conftest.$ac_ext
34065fi
34066
34067 ;;
34068 *)
34069 old=$LD_LIBRARY_PATH
34070 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34071 export LD_LIBRARY_PATH
34072 if test "$cross_compiling" = yes
34073then :
34074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34075printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34076as_fn_error $? "cannot run test program while cross compiling
34077See \`config.log' for more details" "$LINENO" 5; }
34078else $as_nop
34079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34080/* end confdefs.h. */
34081
34082int main()
34083{
34084 return 0;
34085}
34086
34087_ACEOF
34088if ac_fn_c_try_run "$LINENO"
34089then :
34090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34091printf "%s\n" "fine" >&6; }
34092else $as_nop
34093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34094printf "%s\n" "failed" >&6; }
34095 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34096
34097fi
34098rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34099 conftest.$ac_objext conftest.beam conftest.$ac_ext
34100fi
34101
34102 LD_LIBRARY_PATH=$old # restore
34103 ;;
34104 esac
34105
34106
34107 fi
34108
34109
34110
34111
34112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34113printf %s "checking size of size_t... " >&6; }
34114 r=0
34115 for typesize in 8 4 2 16 1; do
34116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34117/* end confdefs.h. */
34118
34119#include <sys/types.h>
34120
34121
34122int main (void)
34123{
34124switch(0) {
34125 case 0:
34126 case (sizeof(size_t) == $typesize):;
34127 }
34128
34129 ;
34130 return 0;
34131}
34132_ACEOF
34133if ac_fn_c_try_compile "$LINENO"
34134then :
34135
34136 r=$typesize
34137else $as_nop
34138
34139 r=0
34140fi
34141rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34142 if test $r -gt 0; then
34143 break;
34144 fi
34145 done
34146 if test $r -eq 0; then
34147 as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34148 fi
34149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34150printf "%s\n" "$r" >&6; }
34151 tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34152 eval "$tname=$r"
34153
34154
34155printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34156
34157
34158
34159
34160
34161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34162printf %s "checking size of long... " >&6; }
34163 r=0
34164 for typesize in 8 4 2 16 1; do
34165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34166/* end confdefs.h. */
34167
34168#include <sys/types.h>
34169
34170
34171int main (void)
34172{
34173switch(0) {
34174 case 0:
34175 case (sizeof(long) == $typesize):;
34176 }
34177
34178 ;
34179 return 0;
34180}
34181_ACEOF
34182if ac_fn_c_try_compile "$LINENO"
34183then :
34184
34185 r=$typesize
34186else $as_nop
34187
34188 r=0
34189fi
34190rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34191 if test $r -gt 0; then
34192 break;
34193 fi
34194 done
34195 if test $r -eq 0; then
34196 as_fn_error $? "Failed to find size of long" "$LINENO" 5
34197 fi
34198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34199printf "%s\n" "$r" >&6; }
34200 tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34201 eval "$tname=$r"
34202
34203
34204printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34205
34206
34207
34208
34209
34210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34211printf %s "checking size of int... " >&6; }
34212 r=0
34213 for typesize in 8 4 2 16 1; do
34214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34215/* end confdefs.h. */
34216
34217#include <sys/types.h>
34218
34219
34220int main (void)
34221{
34222switch(0) {
34223 case 0:
34224 case (sizeof(int) == $typesize):;
34225 }
34226
34227 ;
34228 return 0;
34229}
34230_ACEOF
34231if ac_fn_c_try_compile "$LINENO"
34232then :
34233
34234 r=$typesize
34235else $as_nop
34236
34237 r=0
34238fi
34239rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34240 if test $r -gt 0; then
34241 break;
34242 fi
34243 done
34244 if test $r -eq 0; then
34245 as_fn_error $? "Failed to find size of int" "$LINENO" 5
34246 fi
34247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34248printf "%s\n" "$r" >&6; }
34249 tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34250 eval "$tname=$r"
34251
34252
34253printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34254
34255
34256
34257
34258
34259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34260printf %s "checking size of time_t... " >&6; }
34261 r=0
34262 for typesize in 8 4 2 16 1; do
34263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34264/* end confdefs.h. */
34265
34266#include <sys/types.h>
34267
34268
34269int main (void)
34270{
34271switch(0) {
34272 case 0:
34273 case (sizeof(time_t) == $typesize):;
34274 }
34275
34276 ;
34277 return 0;
34278}
34279_ACEOF
34280if ac_fn_c_try_compile "$LINENO"
34281then :
34282
34283 r=$typesize
34284else $as_nop
34285
34286 r=0
34287fi
34288rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34289 if test $r -gt 0; then
34290 break;
34291 fi
34292 done
34293 if test $r -eq 0; then
34294 as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34295 fi
34296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34297printf "%s\n" "$r" >&6; }
34298 tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34299 eval "$tname=$r"
34300
34301
34302printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34303
34304
34305
34306
34307
34308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34309printf %s "checking size of off_t... " >&6; }
34310 r=0
34311 for typesize in 8 4 2 16 1; do
34312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34313/* end confdefs.h. */
34314
34315#include <sys/types.h>
34316
34317
34318int main (void)
34319{
34320switch(0) {
34321 case 0:
34322 case (sizeof(off_t) == $typesize):;
34323 }
34324
34325 ;
34326 return 0;
34327}
34328_ACEOF
34329if ac_fn_c_try_compile "$LINENO"
34330then :
34331
34332 r=$typesize
34333else $as_nop
34334
34335 r=0
34336fi
34337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34338 if test $r -gt 0; then
34339 break;
34340 fi
34341 done
34342 if test $r -eq 0; then
34343 as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34344 fi
34345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34346printf "%s\n" "$r" >&6; }
34347 tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34348 eval "$tname=$r"
34349
34350
34351printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34352
34353
34354
34355
34356o=$CPPFLAGS
34357CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34358
34359
34360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34361printf %s "checking size of curl_off_t... " >&6; }
34362 r=0
34363 for typesize in 8 4 2 16 1; do
34364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365/* end confdefs.h. */
34366
34367#include <sys/types.h>
34368
34369#include <curl/system.h>
34370
34371
34372int main (void)
34373{
34374switch(0) {
34375 case 0:
34376 case (sizeof(curl_off_t) == $typesize):;
34377 }
34378
34379 ;
34380 return 0;
34381}
34382_ACEOF
34383if ac_fn_c_try_compile "$LINENO"
34384then :
34385
34386 r=$typesize
34387else $as_nop
34388
34389 r=0
34390fi
34391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34392 if test $r -gt 0; then
34393 break;
34394 fi
34395 done
34396 if test $r -eq 0; then
34397 as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34398 fi
34399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34400printf "%s\n" "$r" >&6; }
34401 tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34402 eval "$tname=$r"
34403
34404
34405printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34406
34407
34408
34409CPPFLAGS=$o
34410
34411ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34412if test "x$ac_cv_type_long_long" = xyes
34413then :
34414
34415printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34416
34417 longlong="yes"
34418
34419fi
34420
34421
34422
34423if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34424
34425# Check whether --with-n64-deprecated was given.
34426if test ${with_n64_deprecated+y}
34427then :
34428 withval=$with_n64_deprecated; if test X"$withval" != Xno; then
34429 OPT_N64_AWARE=$withval
34430 fi
34431
34432fi
34433
34434 if test -z "$OPT_N64_AWARE"; then
34435 as_fn_error $? "support for systems without 64 bit curl_off_t is deprecated, use --with-n64-deprecated until then" "$LINENO" 5
34436 fi
34437fi
34438
34439# check for ssize_t
34440ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34441if test "x$ac_cv_type_ssize_t" = xyes
34442then :
34443
34444else $as_nop
34445
34446printf "%s\n" "#define ssize_t int" >>confdefs.h
34447
34448fi
34449
34450
34451# check for bool type
34452ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34453#ifdef HAVE_SYS_TYPES_H
34454#include <sys/types.h>
34455#endif
34456#ifdef HAVE_STDBOOL_H
34457#include <stdbool.h>
34458#endif
34459
34460"
34461if test "x$ac_cv_type_bool" = xyes
34462then :
34463
34464
34465printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34466
34467
34468fi
34469
34470
34471# check for sa_family_t
34472ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34473#ifdef HAVE_SYS_SOCKET_H
34474#include <sys/socket.h>
34475#endif
34476
34477"
34478if test "x$ac_cv_type_sa_family_t" = xyes
34479then :
34480
34481printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34482
34483else $as_nop
34484
34485 # The windows name?
34486 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34487#ifdef HAVE_SYS_SOCKET_H
34488#include <sys/socket.h>
34489#endif
34490
34491"
34492if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34493then :
34494
34495printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34496
34497else $as_nop
34498
34499printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34500
34501fi
34502
34503
34504fi
34505
34506
34507# check for suseconds_t
34508ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34509#ifdef HAVE_SYS_TYPES_H
34510#include <sys/types.h>
34511#endif
34512#ifdef HAVE_SYS_TIME_H
34513#include <sys/time.h>
34514#endif
34515
34516"
34517if test "x$ac_cv_type_suseconds_t" = xyes
34518then :
34519
34520
34521printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34522
34523
34524fi
34525
34526
34527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34528printf %s "checking if time_t is unsigned... " >&6; }
34529
34530 case $host_os in
34531 darwin*)
34532 if test "$cross_compiling" = yes
34533then :
34534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535printf "%s\n" "no" >&6; }
34536
34537else $as_nop
34538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34539/* end confdefs.h. */
34540
34541 #include <time.h>
34542 #include <limits.h>
34543 time_t t = -1;
34544 return (t > 0);
34545
34546_ACEOF
34547if ac_fn_c_try_run "$LINENO"
34548then :
34549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34550printf "%s\n" "yes" >&6; }
34551
34552printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34553
34554
34555else $as_nop
34556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34557printf "%s\n" "no" >&6; }
34558
34559fi
34560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34561 conftest.$ac_objext conftest.beam conftest.$ac_ext
34562fi
34563
34564 ;;
34565 *)
34566 old=$LD_LIBRARY_PATH
34567 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34568 export LD_LIBRARY_PATH
34569 if test "$cross_compiling" = yes
34570then :
34571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34572printf "%s\n" "no" >&6; }
34573
34574else $as_nop
34575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34576/* end confdefs.h. */
34577
34578 #include <time.h>
34579 #include <limits.h>
34580 time_t t = -1;
34581 return (t > 0);
34582
34583_ACEOF
34584if ac_fn_c_try_run "$LINENO"
34585then :
34586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34587printf "%s\n" "yes" >&6; }
34588
34589printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34590
34591
34592else $as_nop
34593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34594printf "%s\n" "no" >&6; }
34595
34596fi
34597rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34598 conftest.$ac_objext conftest.beam conftest.$ac_ext
34599fi
34600
34601 LD_LIBRARY_PATH=$old # restore
34602 ;;
34603 esac
34604
34605
34606
34607curl_includes_poll="\
34608/* includes start */
34609#ifdef HAVE_SYS_TYPES_H
34610# include <sys/types.h>
34611#endif
34612#ifdef HAVE_POLL_H
34613# include <poll.h>
34614#endif
34615#ifdef HAVE_SYS_POLL_H
34616# include <sys/poll.h>
34617#endif
34618/* includes end */"
34619 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34620"
34621if test "x$ac_cv_header_sys_types_h" = xyes
34622then :
34623 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34624
34625fi
34626ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34627"
34628if test "x$ac_cv_header_poll_h" = xyes
34629then :
34630 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34631
34632fi
34633ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34634"
34635if test "x$ac_cv_header_sys_poll_h" = xyes
34636then :
34637 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34638
34639fi
34640
34641
34642
34643 #
34644 tst_poll_events_macro_defined="unknown"
34645 #
34646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647/* end confdefs.h. */
34648
34649
34650 $curl_includes_poll
34651
34652int main (void)
34653{
34654
34655#if defined(events) || defined(revents)
34656 return 0;
34657#else
34658 force compilation error
34659#endif
34660
34661 ;
34662 return 0;
34663}
34664
34665_ACEOF
34666if ac_fn_c_try_compile "$LINENO"
34667then :
34668
34669 tst_poll_events_macro_defined="yes"
34670
34671else $as_nop
34672
34673 tst_poll_events_macro_defined="no"
34674
34675fi
34676rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34677 #
34678 if test "$tst_poll_events_macro_defined" = "yes"; then
34679 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34680
34681cat >>confdefs.h <<_EOF
34682#define CURL_PULL_SYS_POLL_H 1
34683_EOF
34684
34685 fi
34686 fi
34687 #
34688
34689
34690
34691 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34692#undef inline
34693#ifdef HAVE_WINDOWS_H
34694#ifndef WIN32_LEAN_AND_MEAN
34695#define WIN32_LEAN_AND_MEAN
34696#endif
34697#include <windows.h>
34698#ifdef HAVE_WINSOCK2_H
34699#include <winsock2.h>
34700#endif
34701#else
34702#ifdef HAVE_SYS_TYPES_H
34703#include <sys/types.h>
34704#endif
34705#ifdef HAVE_SYS_SOCKET_H
34706#include <sys/socket.h>
34707#endif
34708#ifdef HAVE_NETINET_IN_H
34709#include <netinet/in.h>
34710#endif
34711#ifdef HAVE_ARPA_INET_H
34712#include <arpa/inet.h>
34713#endif
34714#endif
34715
34716"
34717if test "x$ac_cv_type_in_addr_t" = xyes
34718then :
34719
34720else $as_nop
34721
34722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34723printf %s "checking for in_addr_t equivalent... " >&6; }
34724if test ${curl_cv_in_addr_t_equiv+y}
34725then :
34726 printf %s "(cached) " >&6
34727else $as_nop
34728
34729 curl_cv_in_addr_t_equiv="unknown"
34730 for t in "unsigned long" int size_t unsigned long; do
34731 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
34732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34733/* end confdefs.h. */
34734
34735
34736#undef inline
34737#ifdef HAVE_WINDOWS_H
34738#ifndef WIN32_LEAN_AND_MEAN
34739#define WIN32_LEAN_AND_MEAN
34740#endif
34741#include <windows.h>
34742#ifdef HAVE_WINSOCK2_H
34743#include <winsock2.h>
34744#endif
34745#else
34746#ifdef HAVE_SYS_TYPES_H
34747#include <sys/types.h>
34748#endif
34749#ifdef HAVE_SYS_SOCKET_H
34750#include <sys/socket.h>
34751#endif
34752#ifdef HAVE_NETINET_IN_H
34753#include <netinet/in.h>
34754#endif
34755#ifdef HAVE_ARPA_INET_H
34756#include <arpa/inet.h>
34757#endif
34758#endif
34759
34760int main (void)
34761{
34762
34763 $t data = inet_addr ("1.2.3.4");
34764
34765 ;
34766 return 0;
34767}
34768
34769_ACEOF
34770if ac_fn_c_try_link "$LINENO"
34771then :
34772
34773 curl_cv_in_addr_t_equiv="$t"
34774
34775fi
34776rm -f core conftest.err conftest.$ac_objext conftest.beam \
34777 conftest$ac_exeext conftest.$ac_ext
34778 fi
34779 done
34780
34781fi
34782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
34783printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
34784 case "$curl_cv_in_addr_t_equiv" in
34785 unknown)
34786 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
34787 ;;
34788 *)
34789
34790printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
34791
34792 ;;
34793 esac
34794
34795fi
34796
34797
34798
34799
34800 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
34801#undef inline
34802#ifdef HAVE_WINDOWS_H
34803#ifndef WIN32_LEAN_AND_MEAN
34804#define WIN32_LEAN_AND_MEAN
34805#endif
34806#include <windows.h>
34807#ifdef HAVE_WINSOCK2_H
34808#include <winsock2.h>
34809#endif
34810#else
34811#ifdef HAVE_SYS_TYPES_H
34812#include <sys/types.h>
34813#endif
34814#ifdef HAVE_SYS_SOCKET_H
34815#include <sys/socket.h>
34816#endif
34817#ifdef HAVE_NETINET_IN_H
34818#include <netinet/in.h>
34819#endif
34820#ifdef HAVE_ARPA_INET_H
34821#include <arpa/inet.h>
34822#endif
34823#endif
34824
34825"
34826if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
34827then :
34828
34829printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
34830
34831fi
34832
34833
34834
34835
34836 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
34837if test "x$ac_cv_header_sys_select_h" = xyes
34838then :
34839 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
34840
34841fi
34842ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34843if test "x$ac_cv_header_sys_socket_h" = xyes
34844then :
34845 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34846
34847fi
34848
34849 #
34850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
34851printf %s "checking for select... " >&6; }
34852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34853/* end confdefs.h. */
34854
34855
34856#undef inline
34857#ifdef HAVE_WINDOWS_H
34858#ifndef WIN32_LEAN_AND_MEAN
34859#define WIN32_LEAN_AND_MEAN
34860#endif
34861#include <windows.h>
34862#ifdef HAVE_WINSOCK2_H
34863#include <winsock2.h>
34864#endif
34865#endif
34866#ifdef HAVE_SYS_TYPES_H
34867#include <sys/types.h>
34868#endif
34869#ifdef HAVE_SYS_TIME_H
34870#include <sys/time.h>
34871#endif
34872#include <time.h>
34873#ifndef HAVE_WINDOWS_H
34874#ifdef HAVE_SYS_SELECT_H
34875#include <sys/select.h>
34876#elif defined(HAVE_UNISTD_H)
34877#include <unistd.h>
34878#endif
34879#ifdef HAVE_SYS_SOCKET_H
34880#include <sys/socket.h>
34881#endif
34882$curl_includes_bsdsocket
34883#endif
34884
34885int main (void)
34886{
34887
34888 select(0, 0, 0, 0, 0);
34889
34890 ;
34891 return 0;
34892}
34893
34894_ACEOF
34895if ac_fn_c_try_link "$LINENO"
34896then :
34897
34898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34899printf "%s\n" "yes" >&6; }
34900 curl_cv_select="yes"
34901
34902else $as_nop
34903
34904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34905printf "%s\n" "no" >&6; }
34906 curl_cv_select="no"
34907
34908fi
34909rm -f core conftest.err conftest.$ac_objext conftest.beam \
34910 conftest$ac_exeext conftest.$ac_ext
34911 #
34912 if test "$curl_cv_select" = "yes"; then
34913
34914printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
34915
34916 curl_cv_func_select="yes"
34917 fi
34918
34919
34920
34921 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34922if test "x$ac_cv_header_sys_types_h" = xyes
34923then :
34924 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34925
34926fi
34927ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34928if test "x$ac_cv_header_sys_socket_h" = xyes
34929then :
34930 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34931
34932fi
34933
34934 #
34935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
34936printf %s "checking for recv... " >&6; }
34937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34938/* end confdefs.h. */
34939
34940
34941#undef inline
34942#ifdef HAVE_WINDOWS_H
34943#ifndef WIN32_LEAN_AND_MEAN
34944#define WIN32_LEAN_AND_MEAN
34945#endif
34946#include <windows.h>
34947#ifdef HAVE_WINSOCK2_H
34948#include <winsock2.h>
34949#endif
34950#else
34951$curl_includes_bsdsocket
34952#ifdef HAVE_SYS_TYPES_H
34953#include <sys/types.h>
34954#endif
34955#ifdef HAVE_SYS_SOCKET_H
34956#include <sys/socket.h>
34957#endif
34958#endif
34959
34960int main (void)
34961{
34962
34963 recv(0, 0, 0, 0);
34964
34965 ;
34966 return 0;
34967}
34968
34969_ACEOF
34970if ac_fn_c_try_link "$LINENO"
34971then :
34972
34973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34974printf "%s\n" "yes" >&6; }
34975 curl_cv_recv="yes"
34976
34977else $as_nop
34978
34979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34980printf "%s\n" "no" >&6; }
34981 curl_cv_recv="no"
34982
34983fi
34984rm -f core conftest.err conftest.$ac_objext conftest.beam \
34985 conftest$ac_exeext conftest.$ac_ext
34986 #
34987 if test "$curl_cv_recv" = "yes"; then
34988
34989printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
34990
34991 curl_cv_func_recv="yes"
34992 else
34993 as_fn_error $? "Unable to link function recv" "$LINENO" 5
34994 fi
34995
34996
34997 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34998if test "x$ac_cv_header_sys_types_h" = xyes
34999then :
35000 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35001
35002fi
35003ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35004if test "x$ac_cv_header_sys_socket_h" = xyes
35005then :
35006 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35007
35008fi
35009
35010 #
35011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35012printf %s "checking for send... " >&6; }
35013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35014/* end confdefs.h. */
35015
35016
35017#undef inline
35018#ifdef HAVE_WINDOWS_H
35019#ifndef WIN32_LEAN_AND_MEAN
35020#define WIN32_LEAN_AND_MEAN
35021#endif
35022#include <windows.h>
35023#ifdef HAVE_WINSOCK2_H
35024#include <winsock2.h>
35025#endif
35026#else
35027$curl_includes_bsdsocket
35028#ifdef HAVE_SYS_TYPES_H
35029#include <sys/types.h>
35030#endif
35031#ifdef HAVE_SYS_SOCKET_H
35032#include <sys/socket.h>
35033#endif
35034#endif
35035
35036int main (void)
35037{
35038
35039 send(0, 0, 0, 0);
35040
35041 ;
35042 return 0;
35043}
35044
35045_ACEOF
35046if ac_fn_c_try_link "$LINENO"
35047then :
35048
35049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35050printf "%s\n" "yes" >&6; }
35051 curl_cv_send="yes"
35052
35053else $as_nop
35054
35055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35056printf "%s\n" "no" >&6; }
35057 curl_cv_send="no"
35058
35059fi
35060rm -f core conftest.err conftest.$ac_objext conftest.beam \
35061 conftest$ac_exeext conftest.$ac_ext
35062 #
35063 if test "$curl_cv_send" = "yes"; then
35064
35065printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35066
35067 curl_cv_func_send="yes"
35068 else
35069 as_fn_error $? "Unable to link function send" "$LINENO" 5
35070 fi
35071
35072
35073 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35074if test "x$ac_cv_header_sys_types_h" = xyes
35075then :
35076 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35077
35078fi
35079ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35080if test "x$ac_cv_header_sys_socket_h" = xyes
35081then :
35082 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35083
35084fi
35085
35086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35087printf %s "checking for MSG_NOSIGNAL... " >&6; }
35088if test ${curl_cv_msg_nosignal+y}
35089then :
35090 printf %s "(cached) " >&6
35091else $as_nop
35092
35093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35094/* end confdefs.h. */
35095
35096
35097#undef inline
35098#ifdef HAVE_WINDOWS_H
35099#ifndef WIN32_LEAN_AND_MEAN
35100#define WIN32_LEAN_AND_MEAN
35101#endif
35102#include <windows.h>
35103#ifdef HAVE_WINSOCK2_H
35104#include <winsock2.h>
35105#endif
35106#else
35107#ifdef HAVE_SYS_TYPES_H
35108#include <sys/types.h>
35109#endif
35110#ifdef HAVE_SYS_SOCKET_H
35111#include <sys/socket.h>
35112#endif
35113#endif
35114
35115int main (void)
35116{
35117
35118 int flag=MSG_NOSIGNAL;
35119
35120 ;
35121 return 0;
35122}
35123
35124_ACEOF
35125if ac_fn_c_try_compile "$LINENO"
35126then :
35127
35128 curl_cv_msg_nosignal="yes"
35129
35130else $as_nop
35131
35132 curl_cv_msg_nosignal="no"
35133
35134fi
35135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35136
35137fi
35138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35139printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35140 case "$curl_cv_msg_nosignal" in
35141 yes)
35142
35143printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35144
35145 ;;
35146 esac
35147
35148
35149
35150curl_includes_unistd="\
35151/* includes start */
35152#ifdef HAVE_SYS_TYPES_H
35153# include <sys/types.h>
35154#endif
35155#ifdef HAVE_UNISTD_H
35156# include <unistd.h>
35157#endif
35158/* includes end */"
35159 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35160"
35161if test "x$ac_cv_header_sys_types_h" = xyes
35162then :
35163 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35164
35165fi
35166ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35167"
35168if test "x$ac_cv_header_unistd_h" = xyes
35169then :
35170 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35171
35172fi
35173
35174
35175
35176 #
35177 tst_links_alarm="unknown"
35178 tst_proto_alarm="unknown"
35179 tst_compi_alarm="unknown"
35180 tst_allow_alarm="unknown"
35181 #
35182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35183printf %s "checking if alarm can be linked... " >&6; }
35184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35185/* end confdefs.h. */
35186
35187
35188#define alarm innocuous_alarm
35189#ifdef __STDC__
35190# include <limits.h>
35191#else
35192# include <assert.h>
35193#endif
35194#undef alarm
35195#ifdef __cplusplus
35196extern "C"
35197#endif
35198char alarm ();
35199#if defined __stub_alarm || defined __stub___alarm
35200choke me
35201#endif
35202
35203int main (void)
35204{
35205return alarm ();
35206 ;
35207 return 0;
35208}
35209
35210_ACEOF
35211if ac_fn_c_try_link "$LINENO"
35212then :
35213
35214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35215printf "%s\n" "yes" >&6; }
35216 tst_links_alarm="yes"
35217
35218else $as_nop
35219
35220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35221printf "%s\n" "no" >&6; }
35222 tst_links_alarm="no"
35223
35224fi
35225rm -f core conftest.err conftest.$ac_objext conftest.beam \
35226 conftest$ac_exeext conftest.$ac_ext
35227 #
35228 if test "$tst_links_alarm" = "yes"; then
35229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35230printf %s "checking if alarm is prototyped... " >&6; }
35231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35232/* end confdefs.h. */
35233
35234 $curl_includes_unistd
35235
35236_ACEOF
35237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35238 $EGREP "alarm" >/dev/null 2>&1
35239then :
35240
35241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242printf "%s\n" "yes" >&6; }
35243 tst_proto_alarm="yes"
35244
35245else $as_nop
35246
35247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248printf "%s\n" "no" >&6; }
35249 tst_proto_alarm="no"
35250
35251fi
35252rm -rf conftest*
35253
35254 fi
35255 #
35256 if test "$tst_proto_alarm" = "yes"; then
35257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35258printf %s "checking if alarm is compilable... " >&6; }
35259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35260/* end confdefs.h. */
35261
35262
35263 $curl_includes_unistd
35264
35265int main (void)
35266{
35267
35268 if(0 != alarm(0))
35269 return 1;
35270
35271 ;
35272 return 0;
35273}
35274
35275_ACEOF
35276if ac_fn_c_try_compile "$LINENO"
35277then :
35278
35279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35280printf "%s\n" "yes" >&6; }
35281 tst_compi_alarm="yes"
35282
35283else $as_nop
35284
35285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35286printf "%s\n" "no" >&6; }
35287 tst_compi_alarm="no"
35288
35289fi
35290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35291 fi
35292 #
35293 if test "$tst_compi_alarm" = "yes"; then
35294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35295printf %s "checking if alarm usage allowed... " >&6; }
35296 if test "x$curl_disallow_alarm" != "xyes"; then
35297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35298printf "%s\n" "yes" >&6; }
35299 tst_allow_alarm="yes"
35300 else
35301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35302printf "%s\n" "no" >&6; }
35303 tst_allow_alarm="no"
35304 fi
35305 fi
35306 #
35307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35308printf %s "checking if alarm might be used... " >&6; }
35309 if test "$tst_links_alarm" = "yes" &&
35310 test "$tst_proto_alarm" = "yes" &&
35311 test "$tst_compi_alarm" = "yes" &&
35312 test "$tst_allow_alarm" = "yes"; then
35313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35314printf "%s\n" "yes" >&6; }
35315
35316printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35317
35318 curl_cv_func_alarm="yes"
35319 else
35320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35321printf "%s\n" "no" >&6; }
35322 curl_cv_func_alarm="no"
35323 fi
35324
35325
35326curl_includes_string="\
35327/* includes start */
35328#ifdef HAVE_SYS_TYPES_H
35329# include <sys/types.h>
35330#endif
35331#ifdef HAVE_STRING_H
35332# include <string.h>
35333#endif
35334#ifdef HAVE_STRINGS_H
35335# include <strings.h>
35336#endif
35337/* includes end */"
35338 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35339"
35340if test "x$ac_cv_header_sys_types_h" = xyes
35341then :
35342 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35343
35344fi
35345ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
35346"
35347if test "x$ac_cv_header_string_h" = xyes
35348then :
35349 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
35350
35351fi
35352ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35353"
35354if test "x$ac_cv_header_strings_h" = xyes
35355then :
35356 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35357
35358fi
35359
35360
35361
35362curl_includes_libgen="\
35363/* includes start */
35364#ifdef HAVE_SYS_TYPES_H
35365# include <sys/types.h>
35366#endif
35367#ifdef HAVE_LIBGEN_H
35368# include <libgen.h>
35369#endif
35370/* includes end */"
35371 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35372"
35373if test "x$ac_cv_header_sys_types_h" = xyes
35374then :
35375 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35376
35377fi
35378ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35379"
35380if test "x$ac_cv_header_libgen_h" = xyes
35381then :
35382 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35383
35384fi
35385
35386
35387
35388 #
35389 tst_links_basename="unknown"
35390 tst_proto_basename="unknown"
35391 tst_compi_basename="unknown"
35392 tst_allow_basename="unknown"
35393 #
35394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35395printf %s "checking if basename can be linked... " >&6; }
35396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397/* end confdefs.h. */
35398
35399
35400#define basename innocuous_basename
35401#ifdef __STDC__
35402# include <limits.h>
35403#else
35404# include <assert.h>
35405#endif
35406#undef basename
35407#ifdef __cplusplus
35408extern "C"
35409#endif
35410char basename ();
35411#if defined __stub_basename || defined __stub___basename
35412choke me
35413#endif
35414
35415int main (void)
35416{
35417return basename ();
35418 ;
35419 return 0;
35420}
35421
35422_ACEOF
35423if ac_fn_c_try_link "$LINENO"
35424then :
35425
35426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35427printf "%s\n" "yes" >&6; }
35428 tst_links_basename="yes"
35429
35430else $as_nop
35431
35432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35433printf "%s\n" "no" >&6; }
35434 tst_links_basename="no"
35435
35436fi
35437rm -f core conftest.err conftest.$ac_objext conftest.beam \
35438 conftest$ac_exeext conftest.$ac_ext
35439 #
35440 if test "$tst_links_basename" = "yes"; then
35441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35442printf %s "checking if basename is prototyped... " >&6; }
35443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35444/* end confdefs.h. */
35445
35446 $curl_includes_string
35447 $curl_includes_libgen
35448 $curl_includes_unistd
35449
35450_ACEOF
35451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35452 $EGREP "basename" >/dev/null 2>&1
35453then :
35454
35455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35456printf "%s\n" "yes" >&6; }
35457 tst_proto_basename="yes"
35458
35459else $as_nop
35460
35461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35462printf "%s\n" "no" >&6; }
35463 tst_proto_basename="no"
35464
35465fi
35466rm -rf conftest*
35467
35468 fi
35469 #
35470 if test "$tst_proto_basename" = "yes"; then
35471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35472printf %s "checking if basename is compilable... " >&6; }
35473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35474/* end confdefs.h. */
35475
35476
35477 $curl_includes_string
35478 $curl_includes_libgen
35479 $curl_includes_unistd
35480
35481int main (void)
35482{
35483
35484 if(0 != basename(0))
35485 return 1;
35486
35487 ;
35488 return 0;
35489}
35490
35491_ACEOF
35492if ac_fn_c_try_compile "$LINENO"
35493then :
35494
35495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35496printf "%s\n" "yes" >&6; }
35497 tst_compi_basename="yes"
35498
35499else $as_nop
35500
35501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35502printf "%s\n" "no" >&6; }
35503 tst_compi_basename="no"
35504
35505fi
35506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35507 fi
35508 #
35509 if test "$tst_compi_basename" = "yes"; then
35510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35511printf %s "checking if basename usage allowed... " >&6; }
35512 if test "x$curl_disallow_basename" != "xyes"; then
35513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35514printf "%s\n" "yes" >&6; }
35515 tst_allow_basename="yes"
35516 else
35517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35518printf "%s\n" "no" >&6; }
35519 tst_allow_basename="no"
35520 fi
35521 fi
35522 #
35523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35524printf %s "checking if basename might be used... " >&6; }
35525 if test "$tst_links_basename" = "yes" &&
35526 test "$tst_proto_basename" = "yes" &&
35527 test "$tst_compi_basename" = "yes" &&
35528 test "$tst_allow_basename" = "yes"; then
35529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35530printf "%s\n" "yes" >&6; }
35531
35532printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35533
35534 curl_cv_func_basename="yes"
35535 else
35536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35537printf "%s\n" "no" >&6; }
35538 curl_cv_func_basename="no"
35539 fi
35540
35541
35542curl_includes_socket="\
35543/* includes start */
35544#ifdef HAVE_SYS_TYPES_H
35545# include <sys/types.h>
35546#endif
35547#ifdef HAVE_SOCKET_H
35548# include <socket.h>
35549#endif
35550/* includes end */"
35551 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35552"
35553if test "x$ac_cv_header_sys_types_h" = xyes
35554then :
35555 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35556
35557fi
35558ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35559"
35560if test "x$ac_cv_header_socket_h" = xyes
35561then :
35562 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35563
35564fi
35565
35566
35567
35568 #
35569 tst_links_closesocket="unknown"
35570 tst_proto_closesocket="unknown"
35571 tst_compi_closesocket="unknown"
35572 tst_allow_closesocket="unknown"
35573 #
35574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35575printf %s "checking if closesocket can be linked... " >&6; }
35576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35577/* end confdefs.h. */
35578
35579
35580 $curl_includes_winsock2
35581 $curl_includes_socket
35582
35583int main (void)
35584{
35585
35586 if(0 != closesocket(0))
35587 return 1;
35588
35589 ;
35590 return 0;
35591}
35592
35593_ACEOF
35594if ac_fn_c_try_link "$LINENO"
35595then :
35596
35597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598printf "%s\n" "yes" >&6; }
35599 tst_links_closesocket="yes"
35600
35601else $as_nop
35602
35603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35604printf "%s\n" "no" >&6; }
35605 tst_links_closesocket="no"
35606
35607fi
35608rm -f core conftest.err conftest.$ac_objext conftest.beam \
35609 conftest$ac_exeext conftest.$ac_ext
35610 #
35611 if test "$tst_links_closesocket" = "yes"; then
35612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35613printf %s "checking if closesocket is prototyped... " >&6; }
35614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35615/* end confdefs.h. */
35616
35617 $curl_includes_winsock2
35618 $curl_includes_socket
35619
35620_ACEOF
35621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35622 $EGREP "closesocket" >/dev/null 2>&1
35623then :
35624
35625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35626printf "%s\n" "yes" >&6; }
35627 tst_proto_closesocket="yes"
35628
35629else $as_nop
35630
35631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35632printf "%s\n" "no" >&6; }
35633 tst_proto_closesocket="no"
35634
35635fi
35636rm -rf conftest*
35637
35638 fi
35639 #
35640 if test "$tst_proto_closesocket" = "yes"; then
35641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35642printf %s "checking if closesocket is compilable... " >&6; }
35643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35644/* end confdefs.h. */
35645
35646
35647 $curl_includes_winsock2
35648 $curl_includes_socket
35649
35650int main (void)
35651{
35652
35653 if(0 != closesocket(0))
35654 return 1;
35655
35656 ;
35657 return 0;
35658}
35659
35660_ACEOF
35661if ac_fn_c_try_compile "$LINENO"
35662then :
35663
35664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35665printf "%s\n" "yes" >&6; }
35666 tst_compi_closesocket="yes"
35667
35668else $as_nop
35669
35670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35671printf "%s\n" "no" >&6; }
35672 tst_compi_closesocket="no"
35673
35674fi
35675rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35676 fi
35677 #
35678 if test "$tst_compi_closesocket" = "yes"; then
35679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35680printf %s "checking if closesocket usage allowed... " >&6; }
35681 if test "x$curl_disallow_closesocket" != "xyes"; then
35682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35683printf "%s\n" "yes" >&6; }
35684 tst_allow_closesocket="yes"
35685 else
35686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35687printf "%s\n" "no" >&6; }
35688 tst_allow_closesocket="no"
35689 fi
35690 fi
35691 #
35692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
35693printf %s "checking if closesocket might be used... " >&6; }
35694 if test "$tst_links_closesocket" = "yes" &&
35695 test "$tst_proto_closesocket" = "yes" &&
35696 test "$tst_compi_closesocket" = "yes" &&
35697 test "$tst_allow_closesocket" = "yes"; then
35698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699printf "%s\n" "yes" >&6; }
35700
35701printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
35702
35703 curl_cv_func_closesocket="yes"
35704 else
35705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35706printf "%s\n" "no" >&6; }
35707 curl_cv_func_closesocket="no"
35708 fi
35709
35710
35711curl_includes_sys_socket="\
35712/* includes start */
35713#ifdef HAVE_SYS_TYPES_H
35714# include <sys/types.h>
35715#endif
35716#ifdef HAVE_SYS_SOCKET_H
35717# include <sys/socket.h>
35718#endif
35719/* includes end */"
35720 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
35721"
35722if test "x$ac_cv_header_sys_types_h" = xyes
35723then :
35724 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35725
35726fi
35727ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
35728"
35729if test "x$ac_cv_header_sys_socket_h" = xyes
35730then :
35731 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35732
35733fi
35734
35735
35736
35737 #
35738 tst_links_closesocket_camel="unknown"
35739 tst_proto_closesocket_camel="unknown"
35740 tst_compi_closesocket_camel="unknown"
35741 tst_allow_closesocket_camel="unknown"
35742 #
35743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
35744printf %s "checking if CloseSocket can be linked... " >&6; }
35745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35746/* end confdefs.h. */
35747
35748
35749 $curl_includes_bsdsocket
35750 $curl_includes_sys_socket
35751
35752int main (void)
35753{
35754
35755 if(0 != CloseSocket(0))
35756 return 1;
35757
35758 ;
35759 return 0;
35760}
35761
35762_ACEOF
35763if ac_fn_c_try_link "$LINENO"
35764then :
35765
35766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35767printf "%s\n" "yes" >&6; }
35768 tst_links_closesocket_camel="yes"
35769
35770else $as_nop
35771
35772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35773printf "%s\n" "no" >&6; }
35774 tst_links_closesocket_camel="no"
35775
35776fi
35777rm -f core conftest.err conftest.$ac_objext conftest.beam \
35778 conftest$ac_exeext conftest.$ac_ext
35779 #
35780 if test "$tst_links_closesocket_camel" = "yes"; then
35781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
35782printf %s "checking if CloseSocket is prototyped... " >&6; }
35783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35784/* end confdefs.h. */
35785
35786 $curl_includes_bsdsocket
35787 $curl_includes_sys_socket
35788
35789_ACEOF
35790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35791 $EGREP "CloseSocket" >/dev/null 2>&1
35792then :
35793
35794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35795printf "%s\n" "yes" >&6; }
35796 tst_proto_closesocket_camel="yes"
35797
35798else $as_nop
35799
35800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35801printf "%s\n" "no" >&6; }
35802 tst_proto_closesocket_camel="no"
35803
35804fi
35805rm -rf conftest*
35806
35807 fi
35808 #
35809 if test "$tst_proto_closesocket_camel" = "yes"; then
35810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
35811printf %s "checking if CloseSocket is compilable... " >&6; }
35812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35813/* end confdefs.h. */
35814
35815
35816 $curl_includes_bsdsocket
35817 $curl_includes_sys_socket
35818
35819int main (void)
35820{
35821
35822 if(0 != CloseSocket(0))
35823 return 1;
35824
35825 ;
35826 return 0;
35827}
35828
35829_ACEOF
35830if ac_fn_c_try_compile "$LINENO"
35831then :
35832
35833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35834printf "%s\n" "yes" >&6; }
35835 tst_compi_closesocket_camel="yes"
35836
35837else $as_nop
35838
35839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35840printf "%s\n" "no" >&6; }
35841 tst_compi_closesocket_camel="no"
35842
35843fi
35844rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35845 fi
35846 #
35847 if test "$tst_compi_closesocket_camel" = "yes"; then
35848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
35849printf %s "checking if CloseSocket usage allowed... " >&6; }
35850 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
35851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35852printf "%s\n" "yes" >&6; }
35853 tst_allow_closesocket_camel="yes"
35854 else
35855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35856printf "%s\n" "no" >&6; }
35857 tst_allow_closesocket_camel="no"
35858 fi
35859 fi
35860 #
35861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
35862printf %s "checking if CloseSocket might be used... " >&6; }
35863 if test "$tst_links_closesocket_camel" = "yes" &&
35864 test "$tst_proto_closesocket_camel" = "yes" &&
35865 test "$tst_compi_closesocket_camel" = "yes" &&
35866 test "$tst_allow_closesocket_camel" = "yes"; then
35867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35868printf "%s\n" "yes" >&6; }
35869
35870printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
35871
35872 curl_cv_func_closesocket_camel="yes"
35873 else
35874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35875printf "%s\n" "no" >&6; }
35876 curl_cv_func_closesocket_camel="no"
35877 fi
35878
35879
35880 #
35881 tst_links_connect="unknown"
35882 tst_proto_connect="unknown"
35883 tst_compi_connect="unknown"
35884 tst_allow_connect="unknown"
35885 #
35886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
35887printf %s "checking if connect can be linked... " >&6; }
35888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35889/* end confdefs.h. */
35890
35891
35892 $curl_includes_winsock2
35893 $curl_includes_bsdsocket
35894 $curl_includes_sys_socket
35895 $curl_includes_socket
35896
35897int main (void)
35898{
35899
35900 if(0 != connect(0, 0, 0))
35901 return 1;
35902
35903 ;
35904 return 0;
35905}
35906
35907_ACEOF
35908if ac_fn_c_try_link "$LINENO"
35909then :
35910
35911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35912printf "%s\n" "yes" >&6; }
35913 tst_links_connect="yes"
35914
35915else $as_nop
35916
35917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35918printf "%s\n" "no" >&6; }
35919 tst_links_connect="no"
35920
35921fi
35922rm -f core conftest.err conftest.$ac_objext conftest.beam \
35923 conftest$ac_exeext conftest.$ac_ext
35924 #
35925 if test "$tst_links_connect" = "yes"; then
35926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
35927printf %s "checking if connect is prototyped... " >&6; }
35928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35929/* end confdefs.h. */
35930
35931 $curl_includes_winsock2
35932 $curl_includes_bsdsocket
35933 $curl_includes_sys_socket
35934 $curl_includes_socket
35935
35936_ACEOF
35937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35938 $EGREP "connect" >/dev/null 2>&1
35939then :
35940
35941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35942printf "%s\n" "yes" >&6; }
35943 tst_proto_connect="yes"
35944
35945else $as_nop
35946
35947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35948printf "%s\n" "no" >&6; }
35949 tst_proto_connect="no"
35950
35951fi
35952rm -rf conftest*
35953
35954 fi
35955 #
35956 if test "$tst_proto_connect" = "yes"; then
35957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
35958printf %s "checking if connect is compilable... " >&6; }
35959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35960/* end confdefs.h. */
35961
35962
35963 $curl_includes_winsock2
35964 $curl_includes_bsdsocket
35965 $curl_includes_sys_socket
35966 $curl_includes_socket
35967
35968int main (void)
35969{
35970
35971 if(0 != connect(0, 0, 0))
35972 return 1;
35973
35974 ;
35975 return 0;
35976}
35977
35978_ACEOF
35979if ac_fn_c_try_compile "$LINENO"
35980then :
35981
35982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35983printf "%s\n" "yes" >&6; }
35984 tst_compi_connect="yes"
35985
35986else $as_nop
35987
35988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35989printf "%s\n" "no" >&6; }
35990 tst_compi_connect="no"
35991
35992fi
35993rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35994 fi
35995 #
35996 if test "$tst_compi_connect" = "yes"; then
35997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
35998printf %s "checking if connect usage allowed... " >&6; }
35999 if test "x$curl_disallow_connect" != "xyes"; then
36000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36001printf "%s\n" "yes" >&6; }
36002 tst_allow_connect="yes"
36003 else
36004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36005printf "%s\n" "no" >&6; }
36006 tst_allow_connect="no"
36007 fi
36008 fi
36009 #
36010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
36011printf %s "checking if connect might be used... " >&6; }
36012 if test "$tst_links_connect" = "yes" &&
36013 test "$tst_proto_connect" = "yes" &&
36014 test "$tst_compi_connect" = "yes" &&
36015 test "$tst_allow_connect" = "yes"; then
36016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36017printf "%s\n" "yes" >&6; }
36018
36019printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
36020
36021 curl_cv_func_connect="yes"
36022 else
36023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36024printf "%s\n" "no" >&6; }
36025 curl_cv_func_connect="no"
36026 fi
36027
36028
36029curl_includes_fcntl="\
36030/* includes start */
36031#ifdef HAVE_SYS_TYPES_H
36032# include <sys/types.h>
36033#endif
36034#ifdef HAVE_UNISTD_H
36035# include <unistd.h>
36036#endif
36037#ifdef HAVE_FCNTL_H
36038# include <fcntl.h>
36039#endif
36040/* includes end */"
36041 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36042"
36043if test "x$ac_cv_header_sys_types_h" = xyes
36044then :
36045 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36046
36047fi
36048ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36049"
36050if test "x$ac_cv_header_unistd_h" = xyes
36051then :
36052 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36053
36054fi
36055ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36056"
36057if test "x$ac_cv_header_fcntl_h" = xyes
36058then :
36059 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36060
36061fi
36062
36063
36064
36065 #
36066 tst_links_fcntl="unknown"
36067 tst_proto_fcntl="unknown"
36068 tst_compi_fcntl="unknown"
36069 tst_allow_fcntl="unknown"
36070 #
36071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36072printf %s "checking if fcntl can be linked... " >&6; }
36073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36074/* end confdefs.h. */
36075
36076
36077#define fcntl innocuous_fcntl
36078#ifdef __STDC__
36079# include <limits.h>
36080#else
36081# include <assert.h>
36082#endif
36083#undef fcntl
36084#ifdef __cplusplus
36085extern "C"
36086#endif
36087char fcntl ();
36088#if defined __stub_fcntl || defined __stub___fcntl
36089choke me
36090#endif
36091
36092int main (void)
36093{
36094return fcntl ();
36095 ;
36096 return 0;
36097}
36098
36099_ACEOF
36100if ac_fn_c_try_link "$LINENO"
36101then :
36102
36103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36104printf "%s\n" "yes" >&6; }
36105 tst_links_fcntl="yes"
36106
36107else $as_nop
36108
36109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36110printf "%s\n" "no" >&6; }
36111 tst_links_fcntl="no"
36112
36113fi
36114rm -f core conftest.err conftest.$ac_objext conftest.beam \
36115 conftest$ac_exeext conftest.$ac_ext
36116 #
36117 if test "$tst_links_fcntl" = "yes"; then
36118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36119printf %s "checking if fcntl is prototyped... " >&6; }
36120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36121/* end confdefs.h. */
36122
36123 $curl_includes_fcntl
36124
36125_ACEOF
36126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36127 $EGREP "fcntl" >/dev/null 2>&1
36128then :
36129
36130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36131printf "%s\n" "yes" >&6; }
36132 tst_proto_fcntl="yes"
36133
36134else $as_nop
36135
36136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36137printf "%s\n" "no" >&6; }
36138 tst_proto_fcntl="no"
36139
36140fi
36141rm -rf conftest*
36142
36143 fi
36144 #
36145 if test "$tst_proto_fcntl" = "yes"; then
36146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36147printf %s "checking if fcntl is compilable... " >&6; }
36148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36149/* end confdefs.h. */
36150
36151
36152 $curl_includes_fcntl
36153
36154int main (void)
36155{
36156
36157 if(0 != fcntl(0, 0, 0))
36158 return 1;
36159
36160 ;
36161 return 0;
36162}
36163
36164_ACEOF
36165if ac_fn_c_try_compile "$LINENO"
36166then :
36167
36168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36169printf "%s\n" "yes" >&6; }
36170 tst_compi_fcntl="yes"
36171
36172else $as_nop
36173
36174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36175printf "%s\n" "no" >&6; }
36176 tst_compi_fcntl="no"
36177
36178fi
36179rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36180 fi
36181 #
36182 if test "$tst_compi_fcntl" = "yes"; then
36183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36184printf %s "checking if fcntl usage allowed... " >&6; }
36185 if test "x$curl_disallow_fcntl" != "xyes"; then
36186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36187printf "%s\n" "yes" >&6; }
36188 tst_allow_fcntl="yes"
36189 else
36190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36191printf "%s\n" "no" >&6; }
36192 tst_allow_fcntl="no"
36193 fi
36194 fi
36195 #
36196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36197printf %s "checking if fcntl might be used... " >&6; }
36198 if test "$tst_links_fcntl" = "yes" &&
36199 test "$tst_proto_fcntl" = "yes" &&
36200 test "$tst_compi_fcntl" = "yes" &&
36201 test "$tst_allow_fcntl" = "yes"; then
36202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36203printf "%s\n" "yes" >&6; }
36204
36205printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36206
36207 curl_cv_func_fcntl="yes"
36208
36209 #
36210 tst_compi_fcntl_o_nonblock="unknown"
36211 tst_allow_fcntl_o_nonblock="unknown"
36212 #
36213 case $host_os in
36214 sunos4* | aix3*)
36215 curl_disallow_fcntl_o_nonblock="yes"
36216 ;;
36217 esac
36218 #
36219 if test "$curl_cv_func_fcntl" = "yes"; then
36220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36221printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36223/* end confdefs.h. */
36224
36225
36226 $curl_includes_fcntl
36227
36228int main (void)
36229{
36230
36231 int flags = 0;
36232 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36233 return 1;
36234
36235 ;
36236 return 0;
36237}
36238
36239_ACEOF
36240if ac_fn_c_try_compile "$LINENO"
36241then :
36242
36243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36244printf "%s\n" "yes" >&6; }
36245 tst_compi_fcntl_o_nonblock="yes"
36246
36247else $as_nop
36248
36249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36250printf "%s\n" "no" >&6; }
36251 tst_compi_fcntl_o_nonblock="no"
36252
36253fi
36254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36255 fi
36256 #
36257 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36259printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36260 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36262printf "%s\n" "yes" >&6; }
36263 tst_allow_fcntl_o_nonblock="yes"
36264 else
36265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36266printf "%s\n" "no" >&6; }
36267 tst_allow_fcntl_o_nonblock="no"
36268 fi
36269 fi
36270 #
36271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36272printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36273 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36274 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36276printf "%s\n" "yes" >&6; }
36277
36278printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36279
36280 curl_cv_func_fcntl_o_nonblock="yes"
36281 else
36282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36283printf "%s\n" "no" >&6; }
36284 curl_cv_func_fcntl_o_nonblock="no"
36285 fi
36286
36287 else
36288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36289printf "%s\n" "no" >&6; }
36290 curl_cv_func_fcntl="no"
36291 fi
36292
36293
36294curl_includes_ws2tcpip="\
36295/* includes start */
36296#ifdef HAVE_WINDOWS_H
36297# ifndef WIN32_LEAN_AND_MEAN
36298# define WIN32_LEAN_AND_MEAN
36299# endif
36300# include <windows.h>
36301# ifdef HAVE_WINSOCK2_H
36302# include <winsock2.h>
36303# ifdef HAVE_WS2TCPIP_H
36304# include <ws2tcpip.h>
36305# endif
36306# endif
36307#endif
36308/* includes end */"
36309
36310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36311printf %s "checking for windows.h... " >&6; }
36312if test ${curl_cv_header_windows_h+y}
36313then :
36314 printf %s "(cached) " >&6
36315else $as_nop
36316
36317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36318/* end confdefs.h. */
36319
36320
36321#undef inline
36322#ifndef WIN32_LEAN_AND_MEAN
36323#define WIN32_LEAN_AND_MEAN
36324#endif
36325#include <windows.h>
36326
36327int main (void)
36328{
36329
36330#if defined(__CYGWIN__) || defined(__CEGCC__)
36331 HAVE_WINDOWS_H shall not be defined.
36332#else
36333 int dummy=2*WINVER;
36334#endif
36335
36336 ;
36337 return 0;
36338}
36339
36340_ACEOF
36341if ac_fn_c_try_compile "$LINENO"
36342then :
36343
36344 curl_cv_header_windows_h="yes"
36345
36346else $as_nop
36347
36348 curl_cv_header_windows_h="no"
36349
36350fi
36351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36352
36353fi
36354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36355printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36356 case "$curl_cv_header_windows_h" in
36357 yes)
36358
36359printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36360
36361 ;;
36362 esac
36363
36364
36365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36366printf %s "checking for winsock2.h... " >&6; }
36367if test ${curl_cv_header_winsock2_h+y}
36368then :
36369 printf %s "(cached) " >&6
36370else $as_nop
36371
36372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36373/* end confdefs.h. */
36374
36375
36376#undef inline
36377#ifndef WIN32_LEAN_AND_MEAN
36378#define WIN32_LEAN_AND_MEAN
36379#endif
36380#include <windows.h>
36381#include <winsock2.h>
36382
36383int main (void)
36384{
36385
36386#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36387 HAVE_WINSOCK2_H shall not be defined.
36388#else
36389 int dummy=2*IPPROTO_ESP;
36390#endif
36391
36392 ;
36393 return 0;
36394}
36395
36396_ACEOF
36397if ac_fn_c_try_compile "$LINENO"
36398then :
36399
36400 curl_cv_header_winsock2_h="yes"
36401
36402else $as_nop
36403
36404 curl_cv_header_winsock2_h="no"
36405
36406fi
36407rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36408
36409fi
36410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36411printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36412 case "$curl_cv_header_winsock2_h" in
36413 yes)
36414
36415printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36416
36417 ;;
36418 esac
36419
36420
36421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36422printf %s "checking for ws2tcpip.h... " >&6; }
36423if test ${curl_cv_header_ws2tcpip_h+y}
36424then :
36425 printf %s "(cached) " >&6
36426else $as_nop
36427
36428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36429/* end confdefs.h. */
36430
36431
36432#undef inline
36433#ifndef WIN32_LEAN_AND_MEAN
36434#define WIN32_LEAN_AND_MEAN
36435#endif
36436#include <windows.h>
36437#include <winsock2.h>
36438#include <ws2tcpip.h>
36439
36440int main (void)
36441{
36442
36443#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36444 HAVE_WS2TCPIP_H shall not be defined.
36445#else
36446 int dummy=2*IP_PKTINFO;
36447#endif
36448
36449 ;
36450 return 0;
36451}
36452
36453_ACEOF
36454if ac_fn_c_try_compile "$LINENO"
36455then :
36456
36457 curl_cv_header_ws2tcpip_h="yes"
36458
36459else $as_nop
36460
36461 curl_cv_header_ws2tcpip_h="no"
36462
36463fi
36464rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36465
36466fi
36467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36468printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36469 case "$curl_cv_header_ws2tcpip_h" in
36470 yes)
36471
36472printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36473
36474 ;;
36475 esac
36476
36477
36478
36479curl_includes_netdb="\
36480/* includes start */
36481#ifdef HAVE_SYS_TYPES_H
36482# include <sys/types.h>
36483#endif
36484#ifdef HAVE_NETDB_H
36485# include <netdb.h>
36486#endif
36487/* includes end */"
36488 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36489"
36490if test "x$ac_cv_header_sys_types_h" = xyes
36491then :
36492 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36493
36494fi
36495ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36496"
36497if test "x$ac_cv_header_netdb_h" = xyes
36498then :
36499 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36500
36501fi
36502
36503
36504
36505 #
36506 tst_links_freeaddrinfo="unknown"
36507 tst_proto_freeaddrinfo="unknown"
36508 tst_compi_freeaddrinfo="unknown"
36509 tst_allow_freeaddrinfo="unknown"
36510 #
36511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36512printf %s "checking if freeaddrinfo can be linked... " >&6; }
36513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36514/* end confdefs.h. */
36515
36516
36517 $curl_includes_ws2tcpip
36518 $curl_includes_sys_socket
36519 $curl_includes_netdb
36520
36521int main (void)
36522{
36523
36524 freeaddrinfo(0);
36525
36526 ;
36527 return 0;
36528}
36529
36530_ACEOF
36531if ac_fn_c_try_link "$LINENO"
36532then :
36533
36534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36535printf "%s\n" "yes" >&6; }
36536 tst_links_freeaddrinfo="yes"
36537
36538else $as_nop
36539
36540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36541printf "%s\n" "no" >&6; }
36542 tst_links_freeaddrinfo="no"
36543
36544fi
36545rm -f core conftest.err conftest.$ac_objext conftest.beam \
36546 conftest$ac_exeext conftest.$ac_ext
36547 #
36548 if test "$tst_links_freeaddrinfo" = "yes"; then
36549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36550printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36552/* end confdefs.h. */
36553
36554 $curl_includes_ws2tcpip
36555 $curl_includes_sys_socket
36556 $curl_includes_netdb
36557
36558_ACEOF
36559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36560 $EGREP "freeaddrinfo" >/dev/null 2>&1
36561then :
36562
36563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36564printf "%s\n" "yes" >&6; }
36565 tst_proto_freeaddrinfo="yes"
36566
36567else $as_nop
36568
36569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36570printf "%s\n" "no" >&6; }
36571 tst_proto_freeaddrinfo="no"
36572
36573fi
36574rm -rf conftest*
36575
36576 fi
36577 #
36578 if test "$tst_proto_freeaddrinfo" = "yes"; then
36579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36580printf %s "checking if freeaddrinfo is compilable... " >&6; }
36581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36582/* end confdefs.h. */
36583
36584
36585 $curl_includes_ws2tcpip
36586 $curl_includes_sys_socket
36587 $curl_includes_netdb
36588
36589int main (void)
36590{
36591
36592 freeaddrinfo(0);
36593
36594 ;
36595 return 0;
36596}
36597
36598_ACEOF
36599if ac_fn_c_try_compile "$LINENO"
36600then :
36601
36602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36603printf "%s\n" "yes" >&6; }
36604 tst_compi_freeaddrinfo="yes"
36605
36606else $as_nop
36607
36608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36609printf "%s\n" "no" >&6; }
36610 tst_compi_freeaddrinfo="no"
36611
36612fi
36613rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36614 fi
36615 #
36616 if test "$tst_compi_freeaddrinfo" = "yes"; then
36617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36618printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36619 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36621printf "%s\n" "yes" >&6; }
36622 tst_allow_freeaddrinfo="yes"
36623 else
36624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36625printf "%s\n" "no" >&6; }
36626 tst_allow_freeaddrinfo="no"
36627 fi
36628 fi
36629 #
36630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36631printf %s "checking if freeaddrinfo might be used... " >&6; }
36632 if test "$tst_links_freeaddrinfo" = "yes" &&
36633 test "$tst_proto_freeaddrinfo" = "yes" &&
36634 test "$tst_compi_freeaddrinfo" = "yes" &&
36635 test "$tst_allow_freeaddrinfo" = "yes"; then
36636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36637printf "%s\n" "yes" >&6; }
36638
36639printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36640
36641 curl_cv_func_freeaddrinfo="yes"
36642 else
36643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36644printf "%s\n" "no" >&6; }
36645 curl_cv_func_freeaddrinfo="no"
36646 fi
36647
36648
36649curl_includes_sys_xattr="\
36650/* includes start */
36651#ifdef HAVE_SYS_TYPES_H
36652# include <sys/types.h>
36653#endif
36654#ifdef HAVE_SYS_XATTR_H
36655# include <sys/xattr.h>
36656#endif
36657/* includes end */"
36658 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36659"
36660if test "x$ac_cv_header_sys_types_h" = xyes
36661then :
36662 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36663
36664fi
36665ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36666"
36667if test "x$ac_cv_header_sys_xattr_h" = xyes
36668then :
36669 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36670
36671fi
36672
36673
36674
36675 #
36676 tst_links_fsetxattr="unknown"
36677 tst_proto_fsetxattr="unknown"
36678 tst_compi_fsetxattr="unknown"
36679 tst_allow_fsetxattr="unknown"
36680 tst_nargs_fsetxattr="unknown"
36681 #
36682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36683printf %s "checking if fsetxattr can be linked... " >&6; }
36684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36685/* end confdefs.h. */
36686
36687
36688#define fsetxattr innocuous_fsetxattr
36689#ifdef __STDC__
36690# include <limits.h>
36691#else
36692# include <assert.h>
36693#endif
36694#undef fsetxattr
36695#ifdef __cplusplus
36696extern "C"
36697#endif
36698char fsetxattr ();
36699#if defined __stub_fsetxattr || defined __stub___fsetxattr
36700choke me
36701#endif
36702
36703int main (void)
36704{
36705return fsetxattr ();
36706 ;
36707 return 0;
36708}
36709
36710_ACEOF
36711if ac_fn_c_try_link "$LINENO"
36712then :
36713
36714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36715printf "%s\n" "yes" >&6; }
36716 tst_links_fsetxattr="yes"
36717
36718else $as_nop
36719
36720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36721printf "%s\n" "no" >&6; }
36722 tst_links_fsetxattr="no"
36723
36724fi
36725rm -f core conftest.err conftest.$ac_objext conftest.beam \
36726 conftest$ac_exeext conftest.$ac_ext
36727 #
36728 if test "$tst_links_fsetxattr" = "yes"; then
36729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
36730printf %s "checking if fsetxattr is prototyped... " >&6; }
36731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36732/* end confdefs.h. */
36733
36734 $curl_includes_sys_xattr
36735
36736_ACEOF
36737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36738 $EGREP "fsetxattr" >/dev/null 2>&1
36739then :
36740
36741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36742printf "%s\n" "yes" >&6; }
36743 tst_proto_fsetxattr="yes"
36744
36745else $as_nop
36746
36747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36748printf "%s\n" "no" >&6; }
36749 tst_proto_fsetxattr="no"
36750
36751fi
36752rm -rf conftest*
36753
36754 fi
36755 #
36756 if test "$tst_proto_fsetxattr" = "yes"; then
36757 if test "$tst_nargs_fsetxattr" = "unknown"; then
36758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
36759printf %s "checking if fsetxattr takes 5 args.... " >&6; }
36760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36761/* end confdefs.h. */
36762
36763
36764 $curl_includes_sys_xattr
36765
36766int main (void)
36767{
36768
36769 if(0 != fsetxattr(0, 0, 0, 0, 0))
36770 return 1;
36771
36772 ;
36773 return 0;
36774}
36775
36776_ACEOF
36777if ac_fn_c_try_compile "$LINENO"
36778then :
36779
36780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36781printf "%s\n" "yes" >&6; }
36782 tst_compi_fsetxattr="yes"
36783 tst_nargs_fsetxattr="5"
36784
36785else $as_nop
36786
36787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36788printf "%s\n" "no" >&6; }
36789 tst_compi_fsetxattr="no"
36790
36791fi
36792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36793 fi
36794 if test "$tst_nargs_fsetxattr" = "unknown"; then
36795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
36796printf %s "checking if fsetxattr takes 6 args.... " >&6; }
36797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36798/* end confdefs.h. */
36799
36800
36801 $curl_includes_sys_xattr
36802
36803int main (void)
36804{
36805
36806 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
36807 return 1;
36808
36809 ;
36810 return 0;
36811}
36812
36813_ACEOF
36814if ac_fn_c_try_compile "$LINENO"
36815then :
36816
36817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36818printf "%s\n" "yes" >&6; }
36819 tst_compi_fsetxattr="yes"
36820 tst_nargs_fsetxattr="6"
36821
36822else $as_nop
36823
36824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36825printf "%s\n" "no" >&6; }
36826 tst_compi_fsetxattr="no"
36827
36828fi
36829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36830 fi
36831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
36832printf %s "checking if fsetxattr is compilable... " >&6; }
36833 if test "$tst_compi_fsetxattr" = "yes"; then
36834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36835printf "%s\n" "yes" >&6; }
36836 else
36837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36838printf "%s\n" "no" >&6; }
36839 fi
36840 fi
36841 #
36842 if test "$tst_compi_fsetxattr" = "yes"; then
36843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
36844printf %s "checking if fsetxattr usage allowed... " >&6; }
36845 if test "x$curl_disallow_fsetxattr" != "xyes"; then
36846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36847printf "%s\n" "yes" >&6; }
36848 tst_allow_fsetxattr="yes"
36849 else
36850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36851printf "%s\n" "no" >&6; }
36852 tst_allow_fsetxattr="no"
36853 fi
36854 fi
36855 #
36856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
36857printf %s "checking if fsetxattr might be used... " >&6; }
36858 if test "$tst_links_fsetxattr" = "yes" &&
36859 test "$tst_proto_fsetxattr" = "yes" &&
36860 test "$tst_compi_fsetxattr" = "yes" &&
36861 test "$tst_allow_fsetxattr" = "yes"; then
36862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36863printf "%s\n" "yes" >&6; }
36864
36865printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
36866
36867 #
36868 if test "$tst_nargs_fsetxattr" -eq "5"; then
36869
36870printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
36871
36872 elif test "$tst_nargs_fsetxattr" -eq "6"; then
36873
36874printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
36875
36876 fi
36877 #
36878 curl_cv_func_fsetxattr="yes"
36879 else
36880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36881printf "%s\n" "no" >&6; }
36882 curl_cv_func_fsetxattr="no"
36883 fi
36884
36885
36886 #
36887 tst_links_ftruncate="unknown"
36888 tst_proto_ftruncate="unknown"
36889 tst_compi_ftruncate="unknown"
36890 tst_allow_ftruncate="unknown"
36891 #
36892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
36893printf %s "checking if ftruncate can be linked... " >&6; }
36894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36895/* end confdefs.h. */
36896
36897
36898#define ftruncate innocuous_ftruncate
36899#ifdef __STDC__
36900# include <limits.h>
36901#else
36902# include <assert.h>
36903#endif
36904#undef ftruncate
36905#ifdef __cplusplus
36906extern "C"
36907#endif
36908char ftruncate ();
36909#if defined __stub_ftruncate || defined __stub___ftruncate
36910choke me
36911#endif
36912
36913int main (void)
36914{
36915return ftruncate ();
36916 ;
36917 return 0;
36918}
36919
36920_ACEOF
36921if ac_fn_c_try_link "$LINENO"
36922then :
36923
36924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36925printf "%s\n" "yes" >&6; }
36926 tst_links_ftruncate="yes"
36927
36928else $as_nop
36929
36930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36931printf "%s\n" "no" >&6; }
36932 tst_links_ftruncate="no"
36933
36934fi
36935rm -f core conftest.err conftest.$ac_objext conftest.beam \
36936 conftest$ac_exeext conftest.$ac_ext
36937 #
36938 if test "$tst_links_ftruncate" = "yes"; then
36939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
36940printf %s "checking if ftruncate is prototyped... " >&6; }
36941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36942/* end confdefs.h. */
36943
36944 $curl_includes_unistd
36945
36946_ACEOF
36947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36948 $EGREP "ftruncate" >/dev/null 2>&1
36949then :
36950
36951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952printf "%s\n" "yes" >&6; }
36953 tst_proto_ftruncate="yes"
36954
36955else $as_nop
36956
36957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36958printf "%s\n" "no" >&6; }
36959 tst_proto_ftruncate="no"
36960
36961fi
36962rm -rf conftest*
36963
36964 fi
36965 #
36966 if test "$tst_proto_ftruncate" = "yes"; then
36967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
36968printf %s "checking if ftruncate is compilable... " >&6; }
36969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36970/* end confdefs.h. */
36971
36972
36973 $curl_includes_unistd
36974
36975int main (void)
36976{
36977
36978 if(0 != ftruncate(0, 0))
36979 return 1;
36980
36981 ;
36982 return 0;
36983}
36984
36985_ACEOF
36986if ac_fn_c_try_compile "$LINENO"
36987then :
36988
36989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36990printf "%s\n" "yes" >&6; }
36991 tst_compi_ftruncate="yes"
36992
36993else $as_nop
36994
36995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36996printf "%s\n" "no" >&6; }
36997 tst_compi_ftruncate="no"
36998
36999fi
37000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37001 fi
37002 #
37003 if test "$tst_compi_ftruncate" = "yes"; then
37004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37005printf %s "checking if ftruncate usage allowed... " >&6; }
37006 if test "x$curl_disallow_ftruncate" != "xyes"; then
37007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37008printf "%s\n" "yes" >&6; }
37009 tst_allow_ftruncate="yes"
37010 else
37011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37012printf "%s\n" "no" >&6; }
37013 tst_allow_ftruncate="no"
37014 fi
37015 fi
37016 #
37017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37018printf %s "checking if ftruncate might be used... " >&6; }
37019 if test "$tst_links_ftruncate" = "yes" &&
37020 test "$tst_proto_ftruncate" = "yes" &&
37021 test "$tst_compi_ftruncate" = "yes" &&
37022 test "$tst_allow_ftruncate" = "yes"; then
37023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024printf "%s\n" "yes" >&6; }
37025
37026printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37027
37028 curl_cv_func_ftruncate="yes"
37029 else
37030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37031printf "%s\n" "no" >&6; }
37032 curl_cv_func_ftruncate="no"
37033 fi
37034
37035
37036curl_includes_stdlib="\
37037/* includes start */
37038#ifdef HAVE_SYS_TYPES_H
37039# include <sys/types.h>
37040#endif
37041#ifdef HAVE_STDLIB_H
37042# include <stdlib.h>
37043#endif
37044/* includes end */"
37045 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37046"
37047if test "x$ac_cv_header_sys_types_h" = xyes
37048then :
37049 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37050
37051fi
37052ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
37053"
37054if test "x$ac_cv_header_stdlib_h" = xyes
37055then :
37056 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
37057
37058fi
37059
37060
37061
37062 #
37063 tst_links_getaddrinfo="unknown"
37064 tst_proto_getaddrinfo="unknown"
37065 tst_compi_getaddrinfo="unknown"
37066 tst_works_getaddrinfo="unknown"
37067 tst_allow_getaddrinfo="unknown"
37068 tst_tsafe_getaddrinfo="unknown"
37069 #
37070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37071printf %s "checking if getaddrinfo can be linked... " >&6; }
37072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37073/* end confdefs.h. */
37074
37075
37076 $curl_includes_ws2tcpip
37077 $curl_includes_sys_socket
37078 $curl_includes_netdb
37079
37080int main (void)
37081{
37082
37083 if(0 != getaddrinfo(0, 0, 0, 0))
37084 return 1;
37085
37086 ;
37087 return 0;
37088}
37089
37090_ACEOF
37091if ac_fn_c_try_link "$LINENO"
37092then :
37093
37094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37095printf "%s\n" "yes" >&6; }
37096 tst_links_getaddrinfo="yes"
37097
37098else $as_nop
37099
37100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37101printf "%s\n" "no" >&6; }
37102 tst_links_getaddrinfo="no"
37103
37104fi
37105rm -f core conftest.err conftest.$ac_objext conftest.beam \
37106 conftest$ac_exeext conftest.$ac_ext
37107 #
37108 if test "$tst_links_getaddrinfo" = "yes"; then
37109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37110printf %s "checking if getaddrinfo is prototyped... " >&6; }
37111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37112/* end confdefs.h. */
37113
37114 $curl_includes_ws2tcpip
37115 $curl_includes_sys_socket
37116 $curl_includes_netdb
37117
37118_ACEOF
37119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37120 $EGREP "getaddrinfo" >/dev/null 2>&1
37121then :
37122
37123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37124printf "%s\n" "yes" >&6; }
37125 tst_proto_getaddrinfo="yes"
37126
37127else $as_nop
37128
37129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37130printf "%s\n" "no" >&6; }
37131 tst_proto_getaddrinfo="no"
37132
37133fi
37134rm -rf conftest*
37135
37136 fi
37137 #
37138 if test "$tst_proto_getaddrinfo" = "yes"; then
37139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37140printf %s "checking if getaddrinfo is compilable... " >&6; }
37141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37142/* end confdefs.h. */
37143
37144
37145 $curl_includes_ws2tcpip
37146 $curl_includes_sys_socket
37147 $curl_includes_netdb
37148
37149int main (void)
37150{
37151
37152 if(0 != getaddrinfo(0, 0, 0, 0))
37153 return 1;
37154
37155 ;
37156 return 0;
37157}
37158
37159_ACEOF
37160if ac_fn_c_try_compile "$LINENO"
37161then :
37162
37163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37164printf "%s\n" "yes" >&6; }
37165 tst_compi_getaddrinfo="yes"
37166
37167else $as_nop
37168
37169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37170printf "%s\n" "no" >&6; }
37171 tst_compi_getaddrinfo="no"
37172
37173fi
37174rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37175 fi
37176 #
37177 if test "x$cross_compiling" != "xyes" &&
37178 test "$tst_compi_getaddrinfo" = "yes"; then
37179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37180printf %s "checking if getaddrinfo seems to work... " >&6; }
37181
37182 case $host_os in
37183 darwin*)
37184 if test "$cross_compiling" = yes
37185then :
37186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37187printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37188as_fn_error $? "cannot run test program while cross compiling
37189See \`config.log' for more details" "$LINENO" 5; }
37190else $as_nop
37191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37192/* end confdefs.h. */
37193
37194
37195 $curl_includes_ws2tcpip
37196 $curl_includes_stdlib
37197 $curl_includes_string
37198 $curl_includes_sys_socket
37199 $curl_includes_netdb
37200
37201int main (void)
37202{
37203
37204 struct addrinfo hints;
37205 struct addrinfo *ai = 0;
37206 int error;
37207
37208 #ifdef HAVE_WINSOCK2_H
37209 WSADATA wsa;
37210 if (WSAStartup(MAKEWORD(2,2), &wsa))
37211 exit(2);
37212 #endif
37213
37214 memset(&hints, 0, sizeof(hints));
37215 hints.ai_flags = AI_NUMERICHOST;
37216 hints.ai_family = AF_UNSPEC;
37217 hints.ai_socktype = SOCK_STREAM;
37218 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37219 if(error || !ai)
37220 exit(1); /* fail */
37221 else
37222 exit(0);
37223
37224 ;
37225 return 0;
37226}
37227
37228_ACEOF
37229if ac_fn_c_try_run "$LINENO"
37230then :
37231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232printf "%s\n" "yes" >&6; }
37233 tst_works_getaddrinfo="yes"
37234
37235else $as_nop
37236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37237printf "%s\n" "no" >&6; }
37238 tst_works_getaddrinfo="no"
37239
37240fi
37241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37242 conftest.$ac_objext conftest.beam conftest.$ac_ext
37243fi
37244
37245 ;;
37246 *)
37247 old=$LD_LIBRARY_PATH
37248 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37249 export LD_LIBRARY_PATH
37250 if test "$cross_compiling" = yes
37251then :
37252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37253printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37254as_fn_error $? "cannot run test program while cross compiling
37255See \`config.log' for more details" "$LINENO" 5; }
37256else $as_nop
37257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37258/* end confdefs.h. */
37259
37260
37261 $curl_includes_ws2tcpip
37262 $curl_includes_stdlib
37263 $curl_includes_string
37264 $curl_includes_sys_socket
37265 $curl_includes_netdb
37266
37267int main (void)
37268{
37269
37270 struct addrinfo hints;
37271 struct addrinfo *ai = 0;
37272 int error;
37273
37274 #ifdef HAVE_WINSOCK2_H
37275 WSADATA wsa;
37276 if (WSAStartup(MAKEWORD(2,2), &wsa))
37277 exit(2);
37278 #endif
37279
37280 memset(&hints, 0, sizeof(hints));
37281 hints.ai_flags = AI_NUMERICHOST;
37282 hints.ai_family = AF_UNSPEC;
37283 hints.ai_socktype = SOCK_STREAM;
37284 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37285 if(error || !ai)
37286 exit(1); /* fail */
37287 else
37288 exit(0);
37289
37290 ;
37291 return 0;
37292}
37293
37294_ACEOF
37295if ac_fn_c_try_run "$LINENO"
37296then :
37297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37298printf "%s\n" "yes" >&6; }
37299 tst_works_getaddrinfo="yes"
37300
37301else $as_nop
37302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303printf "%s\n" "no" >&6; }
37304 tst_works_getaddrinfo="no"
37305
37306fi
37307rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37308 conftest.$ac_objext conftest.beam conftest.$ac_ext
37309fi
37310
37311 LD_LIBRARY_PATH=$old # restore
37312 ;;
37313 esac
37314
37315 fi
37316 #
37317 if test "$tst_compi_getaddrinfo" = "yes" &&
37318 test "$tst_works_getaddrinfo" != "no"; then
37319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37320printf %s "checking if getaddrinfo usage allowed... " >&6; }
37321 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37323printf "%s\n" "yes" >&6; }
37324 tst_allow_getaddrinfo="yes"
37325 else
37326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37327printf "%s\n" "no" >&6; }
37328 tst_allow_getaddrinfo="no"
37329 fi
37330 fi
37331 #
37332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37333printf %s "checking if getaddrinfo might be used... " >&6; }
37334 if test "$tst_links_getaddrinfo" = "yes" &&
37335 test "$tst_proto_getaddrinfo" = "yes" &&
37336 test "$tst_compi_getaddrinfo" = "yes" &&
37337 test "$tst_allow_getaddrinfo" = "yes" &&
37338 test "$tst_works_getaddrinfo" != "no"; then
37339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340printf "%s\n" "yes" >&6; }
37341
37342printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37343
37344 curl_cv_func_getaddrinfo="yes"
37345 else
37346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37347printf "%s\n" "no" >&6; }
37348 curl_cv_func_getaddrinfo="no"
37349 curl_cv_func_getaddrinfo_threadsafe="no"
37350 fi
37351 #
37352 if test "$curl_cv_func_getaddrinfo" = "yes"; then
37353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37354printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37355 case $host_os in
37356 aix[1234].* | aix5.[01].*)
37357 tst_tsafe_getaddrinfo="no"
37358 ;;
37359 aix*)
37360 tst_tsafe_getaddrinfo="yes"
37361 ;;
37362 darwin[12345].*)
37363 tst_tsafe_getaddrinfo="no"
37364 ;;
37365 darwin*)
37366 tst_tsafe_getaddrinfo="yes"
37367 ;;
37368 freebsd[1234].* | freebsd5.[1234]*)
37369 tst_tsafe_getaddrinfo="no"
37370 ;;
37371 freebsd*)
37372 tst_tsafe_getaddrinfo="yes"
37373 ;;
37374 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37375 tst_tsafe_getaddrinfo="no"
37376 ;;
37377 hpux*)
37378 tst_tsafe_getaddrinfo="yes"
37379 ;;
37380 midnightbsd*)
37381 tst_tsafe_getaddrinfo="yes"
37382 ;;
37383 netbsd[123].*)
37384 tst_tsafe_getaddrinfo="no"
37385 ;;
37386 netbsd*)
37387 tst_tsafe_getaddrinfo="yes"
37388 ;;
37389 *bsd*)
37390 tst_tsafe_getaddrinfo="no"
37391 ;;
37392 solaris2*)
37393 tst_tsafe_getaddrinfo="yes"
37394 ;;
37395 esac
37396 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37397 test "$curl_cv_native_windows" = "yes"; then
37398 tst_tsafe_getaddrinfo="yes"
37399 fi
37400 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37401
37402
37403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37404/* end confdefs.h. */
37405
37406
37407 $curl_includes_sys_socket
37408 $curl_includes_netdb
37409
37410int main (void)
37411{
37412#ifdef h_errno
37413 return 0;
37414#else
37415 force compilation error
37416#endif
37417}
37418
37419
37420_ACEOF
37421if ac_fn_c_try_compile "$LINENO"
37422then :
37423
37424 tst_symbol_defined="yes"
37425
37426else $as_nop
37427
37428 tst_symbol_defined="no"
37429
37430fi
37431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37432 if test "$tst_symbol_defined" = "yes"; then
37433 curl_cv_have_def_h_errno=yes
37434
37435 else
37436 curl_cv_have_def_h_errno=no
37437
37438 fi
37439
37440 if test "$curl_cv_have_def_h_errno" = "yes"; then
37441 tst_h_errno_macro="yes"
37442 else
37443 tst_h_errno_macro="no"
37444 fi
37445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37446/* end confdefs.h. */
37447
37448
37449 $curl_includes_sys_socket
37450 $curl_includes_netdb
37451
37452int main (void)
37453{
37454
37455 h_errno = 2;
37456 if(0 != h_errno)
37457 return 1;
37458
37459 ;
37460 return 0;
37461}
37462
37463_ACEOF
37464if ac_fn_c_try_compile "$LINENO"
37465then :
37466
37467 tst_h_errno_modifiable_lvalue="yes"
37468
37469else $as_nop
37470
37471 tst_h_errno_modifiable_lvalue="no"
37472
37473fi
37474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37476/* end confdefs.h. */
37477
37478
37479
37480int main (void)
37481{
37482
37483#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37484 return 0;
37485#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37486 return 0;
37487#else
37488 force compilation error
37489#endif
37490
37491 ;
37492 return 0;
37493}
37494
37495_ACEOF
37496if ac_fn_c_try_compile "$LINENO"
37497then :
37498
37499 tst_h_errno_sbs_issue_7="yes"
37500
37501else $as_nop
37502
37503 tst_h_errno_sbs_issue_7="no"
37504
37505fi
37506rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37507 if test "$tst_h_errno_macro" = "no" &&
37508 test "$tst_h_errno_modifiable_lvalue" = "no" &&
37509 test "$tst_h_errno_sbs_issue_7" = "no"; then
37510 tst_tsafe_getaddrinfo="no"
37511 else
37512 tst_tsafe_getaddrinfo="yes"
37513 fi
37514 fi
37515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37516printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37517 if test "$tst_tsafe_getaddrinfo" = "yes"; then
37518
37519printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37520
37521 curl_cv_func_getaddrinfo_threadsafe="yes"
37522 else
37523 curl_cv_func_getaddrinfo_threadsafe="no"
37524 fi
37525 fi
37526
37527
37528 #
37529 tst_links_gethostbyname="unknown"
37530 tst_proto_gethostbyname="unknown"
37531 tst_compi_gethostbyname="unknown"
37532 tst_allow_gethostbyname="unknown"
37533 #
37534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37535printf %s "checking if gethostbyname can be linked... " >&6; }
37536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37537/* end confdefs.h. */
37538
37539
37540 $curl_includes_winsock2
37541 $curl_includes_bsdsocket
37542 $curl_includes_netdb
37543
37544int main (void)
37545{
37546
37547 if(0 != gethostbyname(0))
37548 return 1;
37549
37550 ;
37551 return 0;
37552}
37553
37554_ACEOF
37555if ac_fn_c_try_link "$LINENO"
37556then :
37557
37558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37559printf "%s\n" "yes" >&6; }
37560 tst_links_gethostbyname="yes"
37561
37562else $as_nop
37563
37564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37565printf "%s\n" "no" >&6; }
37566 tst_links_gethostbyname="no"
37567
37568fi
37569rm -f core conftest.err conftest.$ac_objext conftest.beam \
37570 conftest$ac_exeext conftest.$ac_ext
37571 #
37572 if test "$tst_links_gethostbyname" = "yes"; then
37573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37574printf %s "checking if gethostbyname is prototyped... " >&6; }
37575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37576/* end confdefs.h. */
37577
37578 $curl_includes_winsock2
37579 $curl_includes_bsdsocket
37580 $curl_includes_netdb
37581
37582_ACEOF
37583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37584 $EGREP "gethostbyname" >/dev/null 2>&1
37585then :
37586
37587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37588printf "%s\n" "yes" >&6; }
37589 tst_proto_gethostbyname="yes"
37590
37591else $as_nop
37592
37593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37594printf "%s\n" "no" >&6; }
37595 tst_proto_gethostbyname="no"
37596
37597fi
37598rm -rf conftest*
37599
37600 fi
37601 #
37602 if test "$tst_proto_gethostbyname" = "yes"; then
37603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37604printf %s "checking if gethostbyname is compilable... " >&6; }
37605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37606/* end confdefs.h. */
37607
37608
37609 $curl_includes_winsock2
37610 $curl_includes_bsdsocket
37611 $curl_includes_netdb
37612
37613int main (void)
37614{
37615
37616 if(0 != gethostbyname(0))
37617 return 1;
37618
37619 ;
37620 return 0;
37621}
37622
37623_ACEOF
37624if ac_fn_c_try_compile "$LINENO"
37625then :
37626
37627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37628printf "%s\n" "yes" >&6; }
37629 tst_compi_gethostbyname="yes"
37630
37631else $as_nop
37632
37633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37634printf "%s\n" "no" >&6; }
37635 tst_compi_gethostbyname="no"
37636
37637fi
37638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37639 fi
37640 #
37641 if test "$tst_compi_gethostbyname" = "yes"; then
37642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37643printf %s "checking if gethostbyname usage allowed... " >&6; }
37644 if test "x$curl_disallow_gethostbyname" != "xyes"; then
37645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37646printf "%s\n" "yes" >&6; }
37647 tst_allow_gethostbyname="yes"
37648 else
37649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37650printf "%s\n" "no" >&6; }
37651 tst_allow_gethostbyname="no"
37652 fi
37653 fi
37654 #
37655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37656printf %s "checking if gethostbyname might be used... " >&6; }
37657 if test "$tst_links_gethostbyname" = "yes" &&
37658 test "$tst_proto_gethostbyname" = "yes" &&
37659 test "$tst_compi_gethostbyname" = "yes" &&
37660 test "$tst_allow_gethostbyname" = "yes"; then
37661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662printf "%s\n" "yes" >&6; }
37663
37664printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37665
37666 curl_cv_func_gethostbyname="yes"
37667 else
37668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37669printf "%s\n" "no" >&6; }
37670 curl_cv_func_gethostbyname="no"
37671 fi
37672
37673
37674 #
37675 tst_links_gethostbyname_r="unknown"
37676 tst_proto_gethostbyname_r="unknown"
37677 tst_compi_gethostbyname_r="unknown"
37678 tst_allow_gethostbyname_r="unknown"
37679 tst_nargs_gethostbyname_r="unknown"
37680 #
37681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37682printf %s "checking if gethostbyname_r can be linked... " >&6; }
37683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37684/* end confdefs.h. */
37685
37686
37687#define gethostbyname_r innocuous_gethostbyname_r
37688#ifdef __STDC__
37689# include <limits.h>
37690#else
37691# include <assert.h>
37692#endif
37693#undef gethostbyname_r
37694#ifdef __cplusplus
37695extern "C"
37696#endif
37697char gethostbyname_r ();
37698#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37699choke me
37700#endif
37701
37702int main (void)
37703{
37704return gethostbyname_r ();
37705 ;
37706 return 0;
37707}
37708
37709_ACEOF
37710if ac_fn_c_try_link "$LINENO"
37711then :
37712
37713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37714printf "%s\n" "yes" >&6; }
37715 tst_links_gethostbyname_r="yes"
37716
37717else $as_nop
37718
37719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37720printf "%s\n" "no" >&6; }
37721 tst_links_gethostbyname_r="no"
37722
37723fi
37724rm -f core conftest.err conftest.$ac_objext conftest.beam \
37725 conftest$ac_exeext conftest.$ac_ext
37726 #
37727 if test "$tst_links_gethostbyname_r" = "yes"; then
37728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37729printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37731/* end confdefs.h. */
37732
37733 $curl_includes_netdb
37734
37735_ACEOF
37736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37737 $EGREP "gethostbyname_r" >/dev/null 2>&1
37738then :
37739
37740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37741printf "%s\n" "yes" >&6; }
37742 tst_proto_gethostbyname_r="yes"
37743
37744else $as_nop
37745
37746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37747printf "%s\n" "no" >&6; }
37748 tst_proto_gethostbyname_r="no"
37749
37750fi
37751rm -rf conftest*
37752
37753 fi
37754 #
37755 if test "$tst_proto_gethostbyname_r" = "yes"; then
37756 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
37758printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
37759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37760/* end confdefs.h. */
37761
37762
37763 $curl_includes_netdb
37764 $curl_includes_bsdsocket
37765
37766int main (void)
37767{
37768
37769 if(0 != gethostbyname_r(0, 0, 0))
37770 return 1;
37771
37772 ;
37773 return 0;
37774}
37775
37776_ACEOF
37777if ac_fn_c_try_compile "$LINENO"
37778then :
37779
37780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37781printf "%s\n" "yes" >&6; }
37782 tst_compi_gethostbyname_r="yes"
37783 tst_nargs_gethostbyname_r="3"
37784
37785else $as_nop
37786
37787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37788printf "%s\n" "no" >&6; }
37789 tst_compi_gethostbyname_r="no"
37790
37791fi
37792rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37793 fi
37794 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
37796printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
37797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37798/* end confdefs.h. */
37799
37800
37801 $curl_includes_netdb
37802 $curl_includes_bsdsocket
37803
37804int main (void)
37805{
37806
37807 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
37808 return 1;
37809
37810 ;
37811 return 0;
37812}
37813
37814_ACEOF
37815if ac_fn_c_try_compile "$LINENO"
37816then :
37817
37818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37819printf "%s\n" "yes" >&6; }
37820 tst_compi_gethostbyname_r="yes"
37821 tst_nargs_gethostbyname_r="5"
37822
37823else $as_nop
37824
37825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37826printf "%s\n" "no" >&6; }
37827 tst_compi_gethostbyname_r="no"
37828
37829fi
37830rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37831 fi
37832 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
37834printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
37835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37836/* end confdefs.h. */
37837
37838
37839 $curl_includes_netdb
37840 $curl_includes_bsdsocket
37841
37842int main (void)
37843{
37844
37845 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
37846 return 1;
37847
37848 ;
37849 return 0;
37850}
37851
37852_ACEOF
37853if ac_fn_c_try_compile "$LINENO"
37854then :
37855
37856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37857printf "%s\n" "yes" >&6; }
37858 tst_compi_gethostbyname_r="yes"
37859 tst_nargs_gethostbyname_r="6"
37860
37861else $as_nop
37862
37863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37864printf "%s\n" "no" >&6; }
37865 tst_compi_gethostbyname_r="no"
37866
37867fi
37868rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37869 fi
37870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
37871printf %s "checking if gethostbyname_r is compilable... " >&6; }
37872 if test "$tst_compi_gethostbyname_r" = "yes"; then
37873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37874printf "%s\n" "yes" >&6; }
37875 else
37876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37877printf "%s\n" "no" >&6; }
37878 fi
37879 fi
37880 #
37881 if test "$tst_compi_gethostbyname_r" = "yes"; then
37882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
37883printf %s "checking if gethostbyname_r usage allowed... " >&6; }
37884 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
37885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37886printf "%s\n" "yes" >&6; }
37887 tst_allow_gethostbyname_r="yes"
37888 else
37889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37890printf "%s\n" "no" >&6; }
37891 tst_allow_gethostbyname_r="no"
37892 fi
37893 fi
37894 #
37895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
37896printf %s "checking if gethostbyname_r might be used... " >&6; }
37897 if test "$tst_links_gethostbyname_r" = "yes" &&
37898 test "$tst_proto_gethostbyname_r" = "yes" &&
37899 test "$tst_compi_gethostbyname_r" = "yes" &&
37900 test "$tst_allow_gethostbyname_r" = "yes"; then
37901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37902printf "%s\n" "yes" >&6; }
37903
37904printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
37905
37906 #
37907 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
37908
37909printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
37910
37911 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
37912
37913printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
37914
37915 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
37916
37917printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
37918
37919 fi
37920 #
37921 curl_cv_func_gethostbyname_r="yes"
37922 else
37923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37924printf "%s\n" "no" >&6; }
37925 curl_cv_func_gethostbyname_r="no"
37926 fi
37927
37928
37929curl_preprocess_callconv="\
37930/* preprocess start */
37931#ifdef HAVE_WINDOWS_H
37932# define FUNCALLCONV __stdcall
37933#else
37934# define FUNCALLCONV
37935#endif
37936/* preprocess end */"
37937
37938
37939 #
37940 tst_links_gethostname="unknown"
37941 tst_proto_gethostname="unknown"
37942 tst_compi_gethostname="unknown"
37943 tst_allow_gethostname="unknown"
37944 #
37945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
37946printf %s "checking if gethostname can be linked... " >&6; }
37947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37948/* end confdefs.h. */
37949
37950
37951 $curl_includes_winsock2
37952 $curl_includes_unistd
37953 $curl_includes_bsdsocket
37954
37955int main (void)
37956{
37957
37958 if(0 != gethostname(0, 0))
37959 return 1;
37960
37961 ;
37962 return 0;
37963}
37964
37965_ACEOF
37966if ac_fn_c_try_link "$LINENO"
37967then :
37968
37969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37970printf "%s\n" "yes" >&6; }
37971 tst_links_gethostname="yes"
37972
37973else $as_nop
37974
37975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37976printf "%s\n" "no" >&6; }
37977 tst_links_gethostname="no"
37978
37979fi
37980rm -f core conftest.err conftest.$ac_objext conftest.beam \
37981 conftest$ac_exeext conftest.$ac_ext
37982 #
37983 if test "$tst_links_gethostname" = "yes"; then
37984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
37985printf %s "checking if gethostname is prototyped... " >&6; }
37986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37987/* end confdefs.h. */
37988
37989 $curl_includes_winsock2
37990 $curl_includes_unistd
37991 $curl_includes_bsdsocket
37992
37993_ACEOF
37994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37995 $EGREP "gethostname" >/dev/null 2>&1
37996then :
37997
37998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37999printf "%s\n" "yes" >&6; }
38000 tst_proto_gethostname="yes"
38001
38002else $as_nop
38003
38004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38005printf "%s\n" "no" >&6; }
38006 tst_proto_gethostname="no"
38007
38008fi
38009rm -rf conftest*
38010
38011 fi
38012 #
38013 if test "$tst_proto_gethostname" = "yes"; then
38014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38015printf %s "checking if gethostname is compilable... " >&6; }
38016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38017/* end confdefs.h. */
38018
38019
38020 $curl_includes_winsock2
38021 $curl_includes_unistd
38022 $curl_includes_bsdsocket
38023
38024int main (void)
38025{
38026
38027 if(0 != gethostname(0, 0))
38028 return 1;
38029
38030 ;
38031 return 0;
38032}
38033
38034_ACEOF
38035if ac_fn_c_try_compile "$LINENO"
38036then :
38037
38038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38039printf "%s\n" "yes" >&6; }
38040 tst_compi_gethostname="yes"
38041
38042else $as_nop
38043
38044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38045printf "%s\n" "no" >&6; }
38046 tst_compi_gethostname="no"
38047
38048fi
38049rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38050 fi
38051 #
38052 if test "$tst_compi_gethostname" = "yes"; then
38053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38054printf %s "checking for gethostname arg 2 data type... " >&6; }
38055 tst_gethostname_type_arg2="unknown"
38056 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38057 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38058 if test "$tst_gethostname_type_arg2" = "unknown"; then
38059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38060/* end confdefs.h. */
38061
38062
38063 $curl_includes_winsock2
38064 $curl_includes_unistd
38065 $curl_includes_bsdsocket
38066 $curl_preprocess_callconv
38067 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38068
38069int main (void)
38070{
38071
38072 if(0 != gethostname(0, 0))
38073 return 1;
38074
38075 ;
38076 return 0;
38077}
38078
38079_ACEOF
38080if ac_fn_c_try_compile "$LINENO"
38081then :
38082
38083 tst_gethostname_type_arg2="$tst_arg2"
38084
38085fi
38086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38087 fi
38088 done
38089 done
38090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38091printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38092 if test "$tst_gethostname_type_arg2" != "unknown"; then
38093
38094printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38095
38096 fi
38097 fi
38098 #
38099 if test "$tst_compi_gethostname" = "yes"; then
38100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38101printf %s "checking if gethostname usage allowed... " >&6; }
38102 if test "x$curl_disallow_gethostname" != "xyes"; then
38103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38104printf "%s\n" "yes" >&6; }
38105 tst_allow_gethostname="yes"
38106 else
38107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38108printf "%s\n" "no" >&6; }
38109 tst_allow_gethostname="no"
38110 fi
38111 fi
38112 #
38113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38114printf %s "checking if gethostname might be used... " >&6; }
38115 if test "$tst_links_gethostname" = "yes" &&
38116 test "$tst_proto_gethostname" = "yes" &&
38117 test "$tst_compi_gethostname" = "yes" &&
38118 test "$tst_allow_gethostname" = "yes"; then
38119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38120printf "%s\n" "yes" >&6; }
38121
38122printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38123
38124 curl_cv_func_gethostname="yes"
38125 else
38126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38127printf "%s\n" "no" >&6; }
38128 curl_cv_func_gethostname="no"
38129 fi
38130
38131
38132 #
38133 tst_links_getpeername="unknown"
38134 tst_proto_getpeername="unknown"
38135 tst_compi_getpeername="unknown"
38136 tst_allow_getpeername="unknown"
38137 #
38138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38139printf %s "checking if getpeername can be linked... " >&6; }
38140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38141/* end confdefs.h. */
38142
38143
38144 $curl_includes_winsock2
38145 $curl_includes_bsdsocket
38146 $curl_includes_sys_socket
38147
38148int main (void)
38149{
38150
38151 if(0 != getpeername(0, (void *)0, (void *)0))
38152 return 1;
38153
38154 ;
38155 return 0;
38156}
38157
38158_ACEOF
38159if ac_fn_c_try_link "$LINENO"
38160then :
38161
38162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38163printf "%s\n" "yes" >&6; }
38164 tst_links_getpeername="yes"
38165
38166else $as_nop
38167
38168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38169printf "%s\n" "no" >&6; }
38170 tst_links_getpeername="no"
38171
38172fi
38173rm -f core conftest.err conftest.$ac_objext conftest.beam \
38174 conftest$ac_exeext conftest.$ac_ext
38175 #
38176 if test "$tst_links_getpeername" = "yes"; then
38177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38178printf %s "checking if getpeername is prototyped... " >&6; }
38179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38180/* end confdefs.h. */
38181
38182 $curl_includes_winsock2
38183 $curl_includes_bsdsocket
38184 $curl_includes_sys_socket
38185
38186_ACEOF
38187if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38188 $EGREP "getpeername" >/dev/null 2>&1
38189then :
38190
38191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38192printf "%s\n" "yes" >&6; }
38193 tst_proto_getpeername="yes"
38194
38195else $as_nop
38196
38197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38198printf "%s\n" "no" >&6; }
38199 tst_proto_getpeername="no"
38200
38201fi
38202rm -rf conftest*
38203
38204 fi
38205 #
38206 if test "$tst_proto_getpeername" = "yes"; then
38207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38208printf %s "checking if getpeername is compilable... " >&6; }
38209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38210/* end confdefs.h. */
38211
38212
38213 $curl_includes_winsock2
38214 $curl_includes_bsdsocket
38215 $curl_includes_sys_socket
38216
38217int main (void)
38218{
38219
38220 if(0 != getpeername(0, (void *)0, (void *)0))
38221 return 1;
38222
38223 ;
38224 return 0;
38225}
38226
38227_ACEOF
38228if ac_fn_c_try_compile "$LINENO"
38229then :
38230
38231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38232printf "%s\n" "yes" >&6; }
38233 tst_compi_getpeername="yes"
38234
38235else $as_nop
38236
38237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238printf "%s\n" "no" >&6; }
38239 tst_compi_getpeername="no"
38240
38241fi
38242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38243 fi
38244 #
38245 if test "$tst_compi_getpeername" = "yes"; then
38246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38247printf %s "checking if getpeername usage allowed... " >&6; }
38248 if test "x$curl_disallow_getpeername" != "xyes"; then
38249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38250printf "%s\n" "yes" >&6; }
38251 tst_allow_getpeername="yes"
38252 else
38253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38254printf "%s\n" "no" >&6; }
38255 tst_allow_getpeername="no"
38256 fi
38257 fi
38258 #
38259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38260printf %s "checking if getpeername might be used... " >&6; }
38261 if test "$tst_links_getpeername" = "yes" &&
38262 test "$tst_proto_getpeername" = "yes" &&
38263 test "$tst_compi_getpeername" = "yes" &&
38264 test "$tst_allow_getpeername" = "yes"; then
38265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38266printf "%s\n" "yes" >&6; }
38267
38268printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38269
38270 curl_cv_func_getpeername="yes"
38271 else
38272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38273printf "%s\n" "no" >&6; }
38274 curl_cv_func_getpeername="no"
38275 fi
38276
38277
38278 #
38279 tst_links_getsockname="unknown"
38280 tst_proto_getsockname="unknown"
38281 tst_compi_getsockname="unknown"
38282 tst_allow_getsockname="unknown"
38283 #
38284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38285printf %s "checking if getsockname can be linked... " >&6; }
38286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38287/* end confdefs.h. */
38288
38289
38290 $curl_includes_winsock2
38291 $curl_includes_bsdsocket
38292 $curl_includes_sys_socket
38293
38294int main (void)
38295{
38296
38297 if(0 != getsockname(0, (void *)0, (void *)0))
38298 return 1;
38299
38300 ;
38301 return 0;
38302}
38303
38304_ACEOF
38305if ac_fn_c_try_link "$LINENO"
38306then :
38307
38308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38309printf "%s\n" "yes" >&6; }
38310 tst_links_getsockname="yes"
38311
38312else $as_nop
38313
38314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38315printf "%s\n" "no" >&6; }
38316 tst_links_getsockname="no"
38317
38318fi
38319rm -f core conftest.err conftest.$ac_objext conftest.beam \
38320 conftest$ac_exeext conftest.$ac_ext
38321 #
38322 if test "$tst_links_getsockname" = "yes"; then
38323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38324printf %s "checking if getsockname is prototyped... " >&6; }
38325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38326/* end confdefs.h. */
38327
38328 $curl_includes_winsock2
38329 $curl_includes_bsdsocket
38330 $curl_includes_sys_socket
38331
38332_ACEOF
38333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38334 $EGREP "getsockname" >/dev/null 2>&1
38335then :
38336
38337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38338printf "%s\n" "yes" >&6; }
38339 tst_proto_getsockname="yes"
38340
38341else $as_nop
38342
38343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38344printf "%s\n" "no" >&6; }
38345 tst_proto_getsockname="no"
38346
38347fi
38348rm -rf conftest*
38349
38350 fi
38351 #
38352 if test "$tst_proto_getsockname" = "yes"; then
38353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38354printf %s "checking if getsockname is compilable... " >&6; }
38355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38356/* end confdefs.h. */
38357
38358
38359 $curl_includes_winsock2
38360 $curl_includes_bsdsocket
38361 $curl_includes_sys_socket
38362
38363int main (void)
38364{
38365
38366 if(0 != getsockname(0, (void *)0, (void *)0))
38367 return 1;
38368
38369 ;
38370 return 0;
38371}
38372
38373_ACEOF
38374if ac_fn_c_try_compile "$LINENO"
38375then :
38376
38377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38378printf "%s\n" "yes" >&6; }
38379 tst_compi_getsockname="yes"
38380
38381else $as_nop
38382
38383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38384printf "%s\n" "no" >&6; }
38385 tst_compi_getsockname="no"
38386
38387fi
38388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38389 fi
38390 #
38391 if test "$tst_compi_getsockname" = "yes"; then
38392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38393printf %s "checking if getsockname usage allowed... " >&6; }
38394 if test "x$curl_disallow_getsockname" != "xyes"; then
38395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38396printf "%s\n" "yes" >&6; }
38397 tst_allow_getsockname="yes"
38398 else
38399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38400printf "%s\n" "no" >&6; }
38401 tst_allow_getsockname="no"
38402 fi
38403 fi
38404 #
38405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38406printf %s "checking if getsockname might be used... " >&6; }
38407 if test "$tst_links_getsockname" = "yes" &&
38408 test "$tst_proto_getsockname" = "yes" &&
38409 test "$tst_compi_getsockname" = "yes" &&
38410 test "$tst_allow_getsockname" = "yes"; then
38411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38412printf "%s\n" "yes" >&6; }
38413
38414printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38415
38416 curl_cv_func_getsockname="yes"
38417 else
38418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38419printf "%s\n" "no" >&6; }
38420 curl_cv_func_getsockname="no"
38421 fi
38422
38423
38424curl_includes_netif="\
38425/* includes start */
38426#ifdef HAVE_NET_IF_H
38427# include <net/if.h>
38428#endif
38429/* includes end */"
38430 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38431"
38432if test "x$ac_cv_header_net_if_h" = xyes
38433then :
38434 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38435
38436fi
38437
38438
38439
38440 #
38441 tst_links_if_nametoindex="unknown"
38442 tst_proto_if_nametoindex="unknown"
38443 tst_compi_if_nametoindex="unknown"
38444 tst_allow_if_nametoindex="unknown"
38445 #
38446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38447printf %s "checking if if_nametoindex can be linked... " >&6; }
38448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38449/* end confdefs.h. */
38450
38451
38452 $curl_includes_winsock2
38453 $curl_includes_bsdsocket
38454 #include <net/if.h>
38455
38456int main (void)
38457{
38458
38459 if(0 != if_nametoindex(""))
38460 return 1;
38461
38462 ;
38463 return 0;
38464}
38465
38466_ACEOF
38467if ac_fn_c_try_link "$LINENO"
38468then :
38469
38470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38471printf "%s\n" "yes" >&6; }
38472 tst_links_if_nametoindex="yes"
38473
38474else $as_nop
38475
38476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38477printf "%s\n" "no" >&6; }
38478 tst_links_if_nametoindex="no"
38479
38480fi
38481rm -f core conftest.err conftest.$ac_objext conftest.beam \
38482 conftest$ac_exeext conftest.$ac_ext
38483 #
38484 if test "$tst_links_if_nametoindex" = "yes"; then
38485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38486printf %s "checking if if_nametoindex is prototyped... " >&6; }
38487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38488/* end confdefs.h. */
38489
38490 $curl_includes_winsock2
38491 $curl_includes_netif
38492
38493_ACEOF
38494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38495 $EGREP "if_nametoindex" >/dev/null 2>&1
38496then :
38497
38498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38499printf "%s\n" "yes" >&6; }
38500 tst_proto_if_nametoindex="yes"
38501
38502else $as_nop
38503
38504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38505printf "%s\n" "no" >&6; }
38506 tst_proto_if_nametoindex="no"
38507
38508fi
38509rm -rf conftest*
38510
38511 fi
38512 #
38513 if test "$tst_proto_if_nametoindex" = "yes"; then
38514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38515printf %s "checking if if_nametoindex is compilable... " >&6; }
38516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38517/* end confdefs.h. */
38518
38519
38520 $curl_includes_winsock2
38521 $curl_includes_netif
38522
38523int main (void)
38524{
38525
38526 if(0 != if_nametoindex(""))
38527 return 1;
38528
38529 ;
38530 return 0;
38531}
38532
38533_ACEOF
38534if ac_fn_c_try_compile "$LINENO"
38535then :
38536
38537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38538printf "%s\n" "yes" >&6; }
38539 tst_compi_if_nametoindex="yes"
38540
38541else $as_nop
38542
38543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38544printf "%s\n" "no" >&6; }
38545 tst_compi_if_nametoindex="no"
38546
38547fi
38548rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38549 fi
38550 #
38551 if test "$tst_compi_if_nametoindex" = "yes"; then
38552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38553printf %s "checking if if_nametoindex usage allowed... " >&6; }
38554 if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38556printf "%s\n" "yes" >&6; }
38557 tst_allow_if_nametoindex="yes"
38558 else
38559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560printf "%s\n" "no" >&6; }
38561 tst_allow_if_nametoindex="no"
38562 fi
38563 fi
38564 #
38565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38566printf %s "checking if if_nametoindex might be used... " >&6; }
38567 if test "$tst_links_if_nametoindex" = "yes" &&
38568 test "$tst_proto_if_nametoindex" = "yes" &&
38569 test "$tst_compi_if_nametoindex" = "yes" &&
38570 test "$tst_allow_if_nametoindex" = "yes"; then
38571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38572printf "%s\n" "yes" >&6; }
38573
38574printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38575
38576 curl_cv_func_if_nametoindex="yes"
38577 else
38578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38579printf "%s\n" "no" >&6; }
38580 curl_cv_func_if_nametoindex="no"
38581 fi
38582
38583
38584curl_includes_ifaddrs="\
38585/* includes start */
38586#ifdef HAVE_SYS_TYPES_H
38587# include <sys/types.h>
38588#endif
38589#ifdef HAVE_SYS_SOCKET_H
38590# include <sys/socket.h>
38591#endif
38592#ifdef HAVE_NETINET_IN_H
38593# include <netinet/in.h>
38594#endif
38595#ifdef HAVE_IFADDRS_H
38596# include <ifaddrs.h>
38597#endif
38598/* includes end */"
38599 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38600"
38601if test "x$ac_cv_header_sys_types_h" = xyes
38602then :
38603 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38604
38605fi
38606ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38607"
38608if test "x$ac_cv_header_sys_socket_h" = xyes
38609then :
38610 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38611
38612fi
38613ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38614"
38615if test "x$ac_cv_header_netinet_in_h" = xyes
38616then :
38617 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38618
38619fi
38620ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38621"
38622if test "x$ac_cv_header_ifaddrs_h" = xyes
38623then :
38624 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38625
38626fi
38627
38628
38629
38630 #
38631 tst_links_getifaddrs="unknown"
38632 tst_proto_getifaddrs="unknown"
38633 tst_compi_getifaddrs="unknown"
38634 tst_works_getifaddrs="unknown"
38635 tst_allow_getifaddrs="unknown"
38636 #
38637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38638printf %s "checking if getifaddrs can be linked... " >&6; }
38639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38640/* end confdefs.h. */
38641
38642
38643#define getifaddrs innocuous_getifaddrs
38644#ifdef __STDC__
38645# include <limits.h>
38646#else
38647# include <assert.h>
38648#endif
38649#undef getifaddrs
38650#ifdef __cplusplus
38651extern "C"
38652#endif
38653char getifaddrs ();
38654#if defined __stub_getifaddrs || defined __stub___getifaddrs
38655choke me
38656#endif
38657
38658int main (void)
38659{
38660return getifaddrs ();
38661 ;
38662 return 0;
38663}
38664
38665_ACEOF
38666if ac_fn_c_try_link "$LINENO"
38667then :
38668
38669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38670printf "%s\n" "yes" >&6; }
38671 tst_links_getifaddrs="yes"
38672
38673else $as_nop
38674
38675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38676printf "%s\n" "no" >&6; }
38677 tst_links_getifaddrs="no"
38678
38679fi
38680rm -f core conftest.err conftest.$ac_objext conftest.beam \
38681 conftest$ac_exeext conftest.$ac_ext
38682 #
38683 if test "$tst_links_getifaddrs" = "yes"; then
38684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38685printf %s "checking if getifaddrs is prototyped... " >&6; }
38686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38687/* end confdefs.h. */
38688
38689 $curl_includes_ifaddrs
38690
38691_ACEOF
38692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38693 $EGREP "getifaddrs" >/dev/null 2>&1
38694then :
38695
38696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38697printf "%s\n" "yes" >&6; }
38698 tst_proto_getifaddrs="yes"
38699
38700else $as_nop
38701
38702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38703printf "%s\n" "no" >&6; }
38704 tst_proto_getifaddrs="no"
38705
38706fi
38707rm -rf conftest*
38708
38709 fi
38710 #
38711 if test "$tst_proto_getifaddrs" = "yes"; then
38712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38713printf %s "checking if getifaddrs is compilable... " >&6; }
38714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38715/* end confdefs.h. */
38716
38717
38718 $curl_includes_ifaddrs
38719
38720int main (void)
38721{
38722
38723 if(0 != getifaddrs(0))
38724 return 1;
38725
38726 ;
38727 return 0;
38728}
38729
38730_ACEOF
38731if ac_fn_c_try_compile "$LINENO"
38732then :
38733
38734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38735printf "%s\n" "yes" >&6; }
38736 tst_compi_getifaddrs="yes"
38737
38738else $as_nop
38739
38740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38741printf "%s\n" "no" >&6; }
38742 tst_compi_getifaddrs="no"
38743
38744fi
38745rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38746 fi
38747 #
38748 if test "x$cross_compiling" != "xyes" &&
38749 test "$tst_compi_getifaddrs" = "yes"; then
38750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38751printf %s "checking if getifaddrs seems to work... " >&6; }
38752
38753 case $host_os in
38754 darwin*)
38755 if test "$cross_compiling" = yes
38756then :
38757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38758printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38759as_fn_error $? "cannot run test program while cross compiling
38760See \`config.log' for more details" "$LINENO" 5; }
38761else $as_nop
38762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38763/* end confdefs.h. */
38764
38765
38766 $curl_includes_stdlib
38767 $curl_includes_ifaddrs
38768
38769int main (void)
38770{
38771
38772 struct ifaddrs *ifa = 0;
38773 int error;
38774
38775 error = getifaddrs(&ifa);
38776 if(error || !ifa)
38777 exit(1); /* fail */
38778 else
38779 exit(0);
38780
38781 ;
38782 return 0;
38783}
38784
38785_ACEOF
38786if ac_fn_c_try_run "$LINENO"
38787then :
38788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38789printf "%s\n" "yes" >&6; }
38790 tst_works_getifaddrs="yes"
38791
38792else $as_nop
38793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38794printf "%s\n" "no" >&6; }
38795 tst_works_getifaddrs="no"
38796
38797fi
38798rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38799 conftest.$ac_objext conftest.beam conftest.$ac_ext
38800fi
38801
38802 ;;
38803 *)
38804 old=$LD_LIBRARY_PATH
38805 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38806 export LD_LIBRARY_PATH
38807 if test "$cross_compiling" = yes
38808then :
38809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38810printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38811as_fn_error $? "cannot run test program while cross compiling
38812See \`config.log' for more details" "$LINENO" 5; }
38813else $as_nop
38814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38815/* end confdefs.h. */
38816
38817
38818 $curl_includes_stdlib
38819 $curl_includes_ifaddrs
38820
38821int main (void)
38822{
38823
38824 struct ifaddrs *ifa = 0;
38825 int error;
38826
38827 error = getifaddrs(&ifa);
38828 if(error || !ifa)
38829 exit(1); /* fail */
38830 else
38831 exit(0);
38832
38833 ;
38834 return 0;
38835}
38836
38837_ACEOF
38838if ac_fn_c_try_run "$LINENO"
38839then :
38840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38841printf "%s\n" "yes" >&6; }
38842 tst_works_getifaddrs="yes"
38843
38844else $as_nop
38845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38846printf "%s\n" "no" >&6; }
38847 tst_works_getifaddrs="no"
38848
38849fi
38850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38851 conftest.$ac_objext conftest.beam conftest.$ac_ext
38852fi
38853
38854 LD_LIBRARY_PATH=$old # restore
38855 ;;
38856 esac
38857
38858 fi
38859 #
38860 if test "$tst_compi_getifaddrs" = "yes" &&
38861 test "$tst_works_getifaddrs" != "no"; then
38862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
38863printf %s "checking if getifaddrs usage allowed... " >&6; }
38864 if test "x$curl_disallow_getifaddrs" != "xyes"; then
38865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38866printf "%s\n" "yes" >&6; }
38867 tst_allow_getifaddrs="yes"
38868 else
38869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38870printf "%s\n" "no" >&6; }
38871 tst_allow_getifaddrs="no"
38872 fi
38873 fi
38874 #
38875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
38876printf %s "checking if getifaddrs might be used... " >&6; }
38877 if test "$tst_links_getifaddrs" = "yes" &&
38878 test "$tst_proto_getifaddrs" = "yes" &&
38879 test "$tst_compi_getifaddrs" = "yes" &&
38880 test "$tst_allow_getifaddrs" = "yes" &&
38881 test "$tst_works_getifaddrs" != "no"; then
38882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38883printf "%s\n" "yes" >&6; }
38884
38885printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
38886
38887 curl_cv_func_getifaddrs="yes"
38888 else
38889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38890printf "%s\n" "no" >&6; }
38891 curl_cv_func_getifaddrs="no"
38892 fi
38893
38894
38895curl_includes_time="\
38896/* includes start */
38897#ifdef HAVE_SYS_TYPES_H
38898# include <sys/types.h>
38899#endif
38900#ifdef HAVE_SYS_TIME_H
38901# include <sys/time.h>
38902#endif
38903#include <time.h>
38904/* includes end */"
38905 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
38906"
38907if test "x$ac_cv_header_sys_types_h" = xyes
38908then :
38909 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38910
38911fi
38912ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
38913"
38914if test "x$ac_cv_header_sys_time_h" = xyes
38915then :
38916 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
38917
38918fi
38919
38920
38921
38922 #
38923 tst_links_gmtime_r="unknown"
38924 tst_proto_gmtime_r="unknown"
38925 tst_compi_gmtime_r="unknown"
38926 tst_works_gmtime_r="unknown"
38927 tst_allow_gmtime_r="unknown"
38928 #
38929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
38930printf %s "checking if gmtime_r can be linked... " >&6; }
38931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38932/* end confdefs.h. */
38933
38934
38935#define gmtime_r innocuous_gmtime_r
38936#ifdef __STDC__
38937# include <limits.h>
38938#else
38939# include <assert.h>
38940#endif
38941#undef gmtime_r
38942#ifdef __cplusplus
38943extern "C"
38944#endif
38945char gmtime_r ();
38946#if defined __stub_gmtime_r || defined __stub___gmtime_r
38947choke me
38948#endif
38949
38950int main (void)
38951{
38952return gmtime_r ();
38953 ;
38954 return 0;
38955}
38956
38957_ACEOF
38958if ac_fn_c_try_link "$LINENO"
38959then :
38960
38961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38962printf "%s\n" "yes" >&6; }
38963 tst_links_gmtime_r="yes"
38964
38965else $as_nop
38966
38967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38968printf "%s\n" "no" >&6; }
38969 tst_links_gmtime_r="no"
38970
38971fi
38972rm -f core conftest.err conftest.$ac_objext conftest.beam \
38973 conftest$ac_exeext conftest.$ac_ext
38974 #
38975 if test "$tst_links_gmtime_r" = "yes"; then
38976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
38977printf %s "checking if gmtime_r is prototyped... " >&6; }
38978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38979/* end confdefs.h. */
38980
38981 $curl_includes_time
38982
38983_ACEOF
38984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38985 $EGREP "gmtime_r" >/dev/null 2>&1
38986then :
38987
38988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38989printf "%s\n" "yes" >&6; }
38990 tst_proto_gmtime_r="yes"
38991
38992else $as_nop
38993
38994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38995printf "%s\n" "no" >&6; }
38996 tst_proto_gmtime_r="no"
38997
38998fi
38999rm -rf conftest*
39000
39001 fi
39002 #
39003 if test "$tst_proto_gmtime_r" = "yes"; then
39004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39005printf %s "checking if gmtime_r is compilable... " >&6; }
39006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39007/* end confdefs.h. */
39008
39009
39010 $curl_includes_time
39011
39012int main (void)
39013{
39014
39015 if(0 != gmtime_r(0, 0))
39016 return 1;
39017
39018 ;
39019 return 0;
39020}
39021
39022_ACEOF
39023if ac_fn_c_try_compile "$LINENO"
39024then :
39025
39026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39027printf "%s\n" "yes" >&6; }
39028 tst_compi_gmtime_r="yes"
39029
39030else $as_nop
39031
39032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39033printf "%s\n" "no" >&6; }
39034 tst_compi_gmtime_r="no"
39035
39036fi
39037rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39038 fi
39039 #
39040 if test "x$cross_compiling" != "xyes" &&
39041 test "$tst_compi_gmtime_r" = "yes"; then
39042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39043printf %s "checking if gmtime_r seems to work... " >&6; }
39044
39045 case $host_os in
39046 darwin*)
39047 if test "$cross_compiling" = yes
39048then :
39049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39050printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39051as_fn_error $? "cannot run test program while cross compiling
39052See \`config.log' for more details" "$LINENO" 5; }
39053else $as_nop
39054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39055/* end confdefs.h. */
39056
39057
39058 $curl_includes_stdlib
39059 $curl_includes_time
39060
39061int main (void)
39062{
39063
39064 time_t local = 1170352587;
39065 struct tm *gmt = 0;
39066 struct tm result;
39067 gmt = gmtime_r(&local, &result);
39068 if(gmt)
39069 exit(0);
39070 else
39071 exit(1);
39072
39073 ;
39074 return 0;
39075}
39076
39077_ACEOF
39078if ac_fn_c_try_run "$LINENO"
39079then :
39080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39081printf "%s\n" "yes" >&6; }
39082 tst_works_gmtime_r="yes"
39083
39084else $as_nop
39085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086printf "%s\n" "no" >&6; }
39087 tst_works_gmtime_r="no"
39088
39089fi
39090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39091 conftest.$ac_objext conftest.beam conftest.$ac_ext
39092fi
39093
39094 ;;
39095 *)
39096 old=$LD_LIBRARY_PATH
39097 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39098 export LD_LIBRARY_PATH
39099 if test "$cross_compiling" = yes
39100then :
39101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39102printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39103as_fn_error $? "cannot run test program while cross compiling
39104See \`config.log' for more details" "$LINENO" 5; }
39105else $as_nop
39106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107/* end confdefs.h. */
39108
39109
39110 $curl_includes_stdlib
39111 $curl_includes_time
39112
39113int main (void)
39114{
39115
39116 time_t local = 1170352587;
39117 struct tm *gmt = 0;
39118 struct tm result;
39119 gmt = gmtime_r(&local, &result);
39120 if(gmt)
39121 exit(0);
39122 else
39123 exit(1);
39124
39125 ;
39126 return 0;
39127}
39128
39129_ACEOF
39130if ac_fn_c_try_run "$LINENO"
39131then :
39132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39133printf "%s\n" "yes" >&6; }
39134 tst_works_gmtime_r="yes"
39135
39136else $as_nop
39137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39138printf "%s\n" "no" >&6; }
39139 tst_works_gmtime_r="no"
39140
39141fi
39142rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39143 conftest.$ac_objext conftest.beam conftest.$ac_ext
39144fi
39145
39146 LD_LIBRARY_PATH=$old # restore
39147 ;;
39148 esac
39149
39150 fi
39151 #
39152 if test "$tst_compi_gmtime_r" = "yes" &&
39153 test "$tst_works_gmtime_r" != "no"; then
39154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39155printf %s "checking if gmtime_r usage allowed... " >&6; }
39156 if test "x$curl_disallow_gmtime_r" != "xyes"; then
39157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39158printf "%s\n" "yes" >&6; }
39159 tst_allow_gmtime_r="yes"
39160 else
39161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39162printf "%s\n" "no" >&6; }
39163 tst_allow_gmtime_r="no"
39164 fi
39165 fi
39166 #
39167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39168printf %s "checking if gmtime_r might be used... " >&6; }
39169 if test "$tst_links_gmtime_r" = "yes" &&
39170 test "$tst_proto_gmtime_r" = "yes" &&
39171 test "$tst_compi_gmtime_r" = "yes" &&
39172 test "$tst_allow_gmtime_r" = "yes" &&
39173 test "$tst_works_gmtime_r" != "no"; then
39174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39175printf "%s\n" "yes" >&6; }
39176
39177printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39178
39179 curl_cv_func_gmtime_r="yes"
39180 else
39181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39182printf "%s\n" "no" >&6; }
39183 curl_cv_func_gmtime_r="no"
39184 fi
39185
39186
39187curl_includes_arpa_inet="\
39188/* includes start */
39189#ifdef HAVE_SYS_TYPES_H
39190# include <sys/types.h>
39191#endif
39192#ifdef HAVE_SYS_SOCKET_H
39193# include <sys/socket.h>
39194#endif
39195#ifdef HAVE_NETINET_IN_H
39196# include <netinet/in.h>
39197#endif
39198#ifdef HAVE_ARPA_INET_H
39199# include <arpa/inet.h>
39200#endif
39201#ifdef HAVE_WINSOCK2_H
39202#include <winsock2.h>
39203#include <ws2tcpip.h>
39204#endif
39205/* includes end */"
39206 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39207"
39208if test "x$ac_cv_header_sys_types_h" = xyes
39209then :
39210 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39211
39212fi
39213ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39214"
39215if test "x$ac_cv_header_sys_socket_h" = xyes
39216then :
39217 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39218
39219fi
39220ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39221"
39222if test "x$ac_cv_header_netinet_in_h" = xyes
39223then :
39224 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39225
39226fi
39227ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39228"
39229if test "x$ac_cv_header_arpa_inet_h" = xyes
39230then :
39231 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39232
39233fi
39234
39235
39236
39237 #
39238 tst_links_inet_ntop="unknown"
39239 tst_proto_inet_ntop="unknown"
39240 tst_compi_inet_ntop="unknown"
39241 tst_works_inet_ntop="unknown"
39242 tst_allow_inet_ntop="unknown"
39243 #
39244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39245printf %s "checking if inet_ntop can be linked... " >&6; }
39246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39247/* end confdefs.h. */
39248
39249
39250#define inet_ntop innocuous_inet_ntop
39251#ifdef __STDC__
39252# include <limits.h>
39253#else
39254# include <assert.h>
39255#endif
39256#undef inet_ntop
39257#ifdef __cplusplus
39258extern "C"
39259#endif
39260char inet_ntop ();
39261#if defined __stub_inet_ntop || defined __stub___inet_ntop
39262choke me
39263#endif
39264
39265int main (void)
39266{
39267return inet_ntop ();
39268 ;
39269 return 0;
39270}
39271
39272_ACEOF
39273if ac_fn_c_try_link "$LINENO"
39274then :
39275
39276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39277printf "%s\n" "yes" >&6; }
39278 tst_links_inet_ntop="yes"
39279
39280else $as_nop
39281
39282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39283printf "%s\n" "no" >&6; }
39284 tst_links_inet_ntop="no"
39285
39286fi
39287rm -f core conftest.err conftest.$ac_objext conftest.beam \
39288 conftest$ac_exeext conftest.$ac_ext
39289 #
39290 if test "$tst_links_inet_ntop" = "yes"; then
39291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39292printf %s "checking if inet_ntop is prototyped... " >&6; }
39293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39294/* end confdefs.h. */
39295
39296 $curl_includes_arpa_inet
39297
39298_ACEOF
39299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39300 $EGREP "inet_ntop" >/dev/null 2>&1
39301then :
39302
39303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39304printf "%s\n" "yes" >&6; }
39305 tst_proto_inet_ntop="yes"
39306
39307else $as_nop
39308
39309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39310printf "%s\n" "no" >&6; }
39311 tst_proto_inet_ntop="no"
39312
39313fi
39314rm -rf conftest*
39315
39316 fi
39317 #
39318 if test "$tst_proto_inet_ntop" = "yes"; then
39319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39320printf %s "checking if inet_ntop is compilable... " >&6; }
39321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39322/* end confdefs.h. */
39323
39324
39325 $curl_includes_arpa_inet
39326
39327int main (void)
39328{
39329
39330 if(0 != inet_ntop(0, 0, 0, 0))
39331 return 1;
39332
39333 ;
39334 return 0;
39335}
39336
39337_ACEOF
39338if ac_fn_c_try_compile "$LINENO"
39339then :
39340
39341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39342printf "%s\n" "yes" >&6; }
39343 tst_compi_inet_ntop="yes"
39344
39345else $as_nop
39346
39347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39348printf "%s\n" "no" >&6; }
39349 tst_compi_inet_ntop="no"
39350
39351fi
39352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39353 fi
39354 #
39355 if test "x$cross_compiling" != "xyes" &&
39356 test "$tst_compi_inet_ntop" = "yes"; then
39357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39358printf %s "checking if inet_ntop seems to work... " >&6; }
39359
39360 case $host_os in
39361 darwin*)
39362 if test "$cross_compiling" = yes
39363then :
39364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39365printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39366as_fn_error $? "cannot run test program while cross compiling
39367See \`config.log' for more details" "$LINENO" 5; }
39368else $as_nop
39369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39370/* end confdefs.h. */
39371
39372
39373 $curl_includes_stdlib
39374 $curl_includes_arpa_inet
39375 $curl_includes_string
39376
39377int main (void)
39378{
39379
39380 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39381 char ipv4res[sizeof "255.255.255.255"];
39382 unsigned char ipv6a[26];
39383 unsigned char ipv4a[5];
39384 char *ipv6ptr = 0;
39385 char *ipv4ptr = 0;
39386 /* - */
39387 ipv4res[0] = '\0';
39388 ipv4a[0] = 0xc0;
39389 ipv4a[1] = 0xa8;
39390 ipv4a[2] = 0x64;
39391 ipv4a[3] = 0x01;
39392 ipv4a[4] = 0x01;
39393 /* - */
39394 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39395 if(!ipv4ptr)
39396 exit(1); /* fail */
39397 if(ipv4ptr != ipv4res)
39398 exit(1); /* fail */
39399 if(!ipv4ptr[0])
39400 exit(1); /* fail */
39401 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39402 exit(1); /* fail */
39403 /* - */
39404 ipv6res[0] = '\0';
39405 memset(ipv6a, 0, sizeof(ipv6a));
39406 ipv6a[0] = 0xfe;
39407 ipv6a[1] = 0x80;
39408 ipv6a[8] = 0x02;
39409 ipv6a[9] = 0x14;
39410 ipv6a[10] = 0x4f;
39411 ipv6a[11] = 0xff;
39412 ipv6a[12] = 0xfe;
39413 ipv6a[13] = 0x0b;
39414 ipv6a[14] = 0x76;
39415 ipv6a[15] = 0xc8;
39416 ipv6a[25] = 0x01;
39417 /* - */
39418 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39419 if(!ipv6ptr)
39420 exit(1); /* fail */
39421 if(ipv6ptr != ipv6res)
39422 exit(1); /* fail */
39423 if(!ipv6ptr[0])
39424 exit(1); /* fail */
39425 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39426 exit(1); /* fail */
39427 /* - */
39428 exit(0);
39429
39430 ;
39431 return 0;
39432}
39433
39434_ACEOF
39435if ac_fn_c_try_run "$LINENO"
39436then :
39437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39438printf "%s\n" "yes" >&6; }
39439 tst_works_inet_ntop="yes"
39440
39441else $as_nop
39442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39443printf "%s\n" "no" >&6; }
39444 tst_works_inet_ntop="no"
39445
39446fi
39447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39448 conftest.$ac_objext conftest.beam conftest.$ac_ext
39449fi
39450
39451 ;;
39452 *)
39453 old=$LD_LIBRARY_PATH
39454 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39455 export LD_LIBRARY_PATH
39456 if test "$cross_compiling" = yes
39457then :
39458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39459printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39460as_fn_error $? "cannot run test program while cross compiling
39461See \`config.log' for more details" "$LINENO" 5; }
39462else $as_nop
39463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39464/* end confdefs.h. */
39465
39466
39467 $curl_includes_stdlib
39468 $curl_includes_arpa_inet
39469 $curl_includes_string
39470
39471int main (void)
39472{
39473
39474 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39475 char ipv4res[sizeof "255.255.255.255"];
39476 unsigned char ipv6a[26];
39477 unsigned char ipv4a[5];
39478 char *ipv6ptr = 0;
39479 char *ipv4ptr = 0;
39480 /* - */
39481 ipv4res[0] = '\0';
39482 ipv4a[0] = 0xc0;
39483 ipv4a[1] = 0xa8;
39484 ipv4a[2] = 0x64;
39485 ipv4a[3] = 0x01;
39486 ipv4a[4] = 0x01;
39487 /* - */
39488 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39489 if(!ipv4ptr)
39490 exit(1); /* fail */
39491 if(ipv4ptr != ipv4res)
39492 exit(1); /* fail */
39493 if(!ipv4ptr[0])
39494 exit(1); /* fail */
39495 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39496 exit(1); /* fail */
39497 /* - */
39498 ipv6res[0] = '\0';
39499 memset(ipv6a, 0, sizeof(ipv6a));
39500 ipv6a[0] = 0xfe;
39501 ipv6a[1] = 0x80;
39502 ipv6a[8] = 0x02;
39503 ipv6a[9] = 0x14;
39504 ipv6a[10] = 0x4f;
39505 ipv6a[11] = 0xff;
39506 ipv6a[12] = 0xfe;
39507 ipv6a[13] = 0x0b;
39508 ipv6a[14] = 0x76;
39509 ipv6a[15] = 0xc8;
39510 ipv6a[25] = 0x01;
39511 /* - */
39512 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39513 if(!ipv6ptr)
39514 exit(1); /* fail */
39515 if(ipv6ptr != ipv6res)
39516 exit(1); /* fail */
39517 if(!ipv6ptr[0])
39518 exit(1); /* fail */
39519 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39520 exit(1); /* fail */
39521 /* - */
39522 exit(0);
39523
39524 ;
39525 return 0;
39526}
39527
39528_ACEOF
39529if ac_fn_c_try_run "$LINENO"
39530then :
39531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39532printf "%s\n" "yes" >&6; }
39533 tst_works_inet_ntop="yes"
39534
39535else $as_nop
39536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39537printf "%s\n" "no" >&6; }
39538 tst_works_inet_ntop="no"
39539
39540fi
39541rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39542 conftest.$ac_objext conftest.beam conftest.$ac_ext
39543fi
39544
39545 LD_LIBRARY_PATH=$old # restore
39546 ;;
39547 esac
39548
39549 fi
39550 #
39551 if test "$tst_compi_inet_ntop" = "yes" &&
39552 test "$tst_works_inet_ntop" != "no"; then
39553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39554printf %s "checking if inet_ntop usage allowed... " >&6; }
39555 if test "x$curl_disallow_inet_ntop" != "xyes"; then
39556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39557printf "%s\n" "yes" >&6; }
39558 tst_allow_inet_ntop="yes"
39559 else
39560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39561printf "%s\n" "no" >&6; }
39562 tst_allow_inet_ntop="no"
39563 fi
39564 fi
39565 #
39566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39567printf %s "checking if inet_ntop might be used... " >&6; }
39568 if test "$tst_links_inet_ntop" = "yes" &&
39569 test "$tst_proto_inet_ntop" = "yes" &&
39570 test "$tst_compi_inet_ntop" = "yes" &&
39571 test "$tst_allow_inet_ntop" = "yes" &&
39572 test "$tst_works_inet_ntop" != "no"; then
39573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39574printf "%s\n" "yes" >&6; }
39575
39576printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39577
39578 curl_cv_func_inet_ntop="yes"
39579 else
39580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39581printf "%s\n" "no" >&6; }
39582 curl_cv_func_inet_ntop="no"
39583 fi
39584
39585
39586 #
39587 tst_links_inet_pton="unknown"
39588 tst_proto_inet_pton="unknown"
39589 tst_compi_inet_pton="unknown"
39590 tst_works_inet_pton="unknown"
39591 tst_allow_inet_pton="unknown"
39592 #
39593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39594printf %s "checking if inet_pton can be linked... " >&6; }
39595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39596/* end confdefs.h. */
39597
39598
39599#define inet_pton innocuous_inet_pton
39600#ifdef __STDC__
39601# include <limits.h>
39602#else
39603# include <assert.h>
39604#endif
39605#undef inet_pton
39606#ifdef __cplusplus
39607extern "C"
39608#endif
39609char inet_pton ();
39610#if defined __stub_inet_pton || defined __stub___inet_pton
39611choke me
39612#endif
39613
39614int main (void)
39615{
39616return inet_pton ();
39617 ;
39618 return 0;
39619}
39620
39621_ACEOF
39622if ac_fn_c_try_link "$LINENO"
39623then :
39624
39625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39626printf "%s\n" "yes" >&6; }
39627 tst_links_inet_pton="yes"
39628
39629else $as_nop
39630
39631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39632printf "%s\n" "no" >&6; }
39633 tst_links_inet_pton="no"
39634
39635fi
39636rm -f core conftest.err conftest.$ac_objext conftest.beam \
39637 conftest$ac_exeext conftest.$ac_ext
39638 #
39639 if test "$tst_links_inet_pton" = "yes"; then
39640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39641printf %s "checking if inet_pton is prototyped... " >&6; }
39642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39643/* end confdefs.h. */
39644
39645 $curl_includes_arpa_inet
39646
39647_ACEOF
39648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39649 $EGREP "inet_pton" >/dev/null 2>&1
39650then :
39651
39652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39653printf "%s\n" "yes" >&6; }
39654 tst_proto_inet_pton="yes"
39655
39656else $as_nop
39657
39658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39659printf "%s\n" "no" >&6; }
39660 tst_proto_inet_pton="no"
39661
39662fi
39663rm -rf conftest*
39664
39665 fi
39666 #
39667 if test "$tst_proto_inet_pton" = "yes"; then
39668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39669printf %s "checking if inet_pton is compilable... " >&6; }
39670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39671/* end confdefs.h. */
39672
39673
39674 $curl_includes_arpa_inet
39675
39676int main (void)
39677{
39678
39679 if(0 != inet_pton(0, 0, 0))
39680 return 1;
39681
39682 ;
39683 return 0;
39684}
39685
39686_ACEOF
39687if ac_fn_c_try_compile "$LINENO"
39688then :
39689
39690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39691printf "%s\n" "yes" >&6; }
39692 tst_compi_inet_pton="yes"
39693
39694else $as_nop
39695
39696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39697printf "%s\n" "no" >&6; }
39698 tst_compi_inet_pton="no"
39699
39700fi
39701rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39702 fi
39703 #
39704 if test "x$cross_compiling" != "xyes" &&
39705 test "$tst_compi_inet_pton" = "yes"; then
39706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39707printf %s "checking if inet_pton seems to work... " >&6; }
39708
39709 case $host_os in
39710 darwin*)
39711 if test "$cross_compiling" = yes
39712then :
39713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39714printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39715as_fn_error $? "cannot run test program while cross compiling
39716See \`config.log' for more details" "$LINENO" 5; }
39717else $as_nop
39718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39719/* end confdefs.h. */
39720
39721
39722 $curl_includes_stdlib
39723 $curl_includes_arpa_inet
39724 $curl_includes_string
39725
39726int main (void)
39727{
39728
39729 unsigned char ipv6a[16+1];
39730 unsigned char ipv4a[4+1];
39731 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39732 const char *ipv4src = "192.168.100.1";
39733 /* - */
39734 memset(ipv4a, 1, sizeof(ipv4a));
39735 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39736 exit(1); /* fail */
39737 /* - */
39738 if( (ipv4a[0] != 0xc0) ||
39739 (ipv4a[1] != 0xa8) ||
39740 (ipv4a[2] != 0x64) ||
39741 (ipv4a[3] != 0x01) ||
39742 (ipv4a[4] != 0x01) )
39743 exit(1); /* fail */
39744 /* - */
39745 memset(ipv6a, 1, sizeof(ipv6a));
39746 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39747 exit(1); /* fail */
39748 /* - */
39749 if( (ipv6a[0] != 0xfe) ||
39750 (ipv6a[1] != 0x80) ||
39751 (ipv6a[8] != 0x02) ||
39752 (ipv6a[9] != 0x14) ||
39753 (ipv6a[10] != 0x4f) ||
39754 (ipv6a[11] != 0xff) ||
39755 (ipv6a[12] != 0xfe) ||
39756 (ipv6a[13] != 0x0b) ||
39757 (ipv6a[14] != 0x76) ||
39758 (ipv6a[15] != 0xc8) ||
39759 (ipv6a[16] != 0x01) )
39760 exit(1); /* fail */
39761 /* - */
39762 if( (ipv6a[2] != 0x0) ||
39763 (ipv6a[3] != 0x0) ||
39764 (ipv6a[4] != 0x0) ||
39765 (ipv6a[5] != 0x0) ||
39766 (ipv6a[6] != 0x0) ||
39767 (ipv6a[7] != 0x0) )
39768 exit(1); /* fail */
39769 /* - */
39770 exit(0);
39771
39772 ;
39773 return 0;
39774}
39775
39776_ACEOF
39777if ac_fn_c_try_run "$LINENO"
39778then :
39779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39780printf "%s\n" "yes" >&6; }
39781 tst_works_inet_pton="yes"
39782
39783else $as_nop
39784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39785printf "%s\n" "no" >&6; }
39786 tst_works_inet_pton="no"
39787
39788fi
39789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39790 conftest.$ac_objext conftest.beam conftest.$ac_ext
39791fi
39792
39793 ;;
39794 *)
39795 old=$LD_LIBRARY_PATH
39796 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39797 export LD_LIBRARY_PATH
39798 if test "$cross_compiling" = yes
39799then :
39800 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39801printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39802as_fn_error $? "cannot run test program while cross compiling
39803See \`config.log' for more details" "$LINENO" 5; }
39804else $as_nop
39805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39806/* end confdefs.h. */
39807
39808
39809 $curl_includes_stdlib
39810 $curl_includes_arpa_inet
39811 $curl_includes_string
39812
39813int main (void)
39814{
39815
39816 unsigned char ipv6a[16+1];
39817 unsigned char ipv4a[4+1];
39818 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39819 const char *ipv4src = "192.168.100.1";
39820 /* - */
39821 memset(ipv4a, 1, sizeof(ipv4a));
39822 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39823 exit(1); /* fail */
39824 /* - */
39825 if( (ipv4a[0] != 0xc0) ||
39826 (ipv4a[1] != 0xa8) ||
39827 (ipv4a[2] != 0x64) ||
39828 (ipv4a[3] != 0x01) ||
39829 (ipv4a[4] != 0x01) )
39830 exit(1); /* fail */
39831 /* - */
39832 memset(ipv6a, 1, sizeof(ipv6a));
39833 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39834 exit(1); /* fail */
39835 /* - */
39836 if( (ipv6a[0] != 0xfe) ||
39837 (ipv6a[1] != 0x80) ||
39838 (ipv6a[8] != 0x02) ||
39839 (ipv6a[9] != 0x14) ||
39840 (ipv6a[10] != 0x4f) ||
39841 (ipv6a[11] != 0xff) ||
39842 (ipv6a[12] != 0xfe) ||
39843 (ipv6a[13] != 0x0b) ||
39844 (ipv6a[14] != 0x76) ||
39845 (ipv6a[15] != 0xc8) ||
39846 (ipv6a[16] != 0x01) )
39847 exit(1); /* fail */
39848 /* - */
39849 if( (ipv6a[2] != 0x0) ||
39850 (ipv6a[3] != 0x0) ||
39851 (ipv6a[4] != 0x0) ||
39852 (ipv6a[5] != 0x0) ||
39853 (ipv6a[6] != 0x0) ||
39854 (ipv6a[7] != 0x0) )
39855 exit(1); /* fail */
39856 /* - */
39857 exit(0);
39858
39859 ;
39860 return 0;
39861}
39862
39863_ACEOF
39864if ac_fn_c_try_run "$LINENO"
39865then :
39866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39867printf "%s\n" "yes" >&6; }
39868 tst_works_inet_pton="yes"
39869
39870else $as_nop
39871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39872printf "%s\n" "no" >&6; }
39873 tst_works_inet_pton="no"
39874
39875fi
39876rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39877 conftest.$ac_objext conftest.beam conftest.$ac_ext
39878fi
39879
39880 LD_LIBRARY_PATH=$old # restore
39881 ;;
39882 esac
39883
39884 fi
39885 #
39886 if test "$tst_compi_inet_pton" = "yes" &&
39887 test "$tst_works_inet_pton" != "no"; then
39888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
39889printf %s "checking if inet_pton usage allowed... " >&6; }
39890 if test "x$curl_disallow_inet_pton" != "xyes"; then
39891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39892printf "%s\n" "yes" >&6; }
39893 tst_allow_inet_pton="yes"
39894 else
39895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39896printf "%s\n" "no" >&6; }
39897 tst_allow_inet_pton="no"
39898 fi
39899 fi
39900 #
39901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
39902printf %s "checking if inet_pton might be used... " >&6; }
39903 if test "$tst_links_inet_pton" = "yes" &&
39904 test "$tst_proto_inet_pton" = "yes" &&
39905 test "$tst_compi_inet_pton" = "yes" &&
39906 test "$tst_allow_inet_pton" = "yes" &&
39907 test "$tst_works_inet_pton" != "no"; then
39908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39909printf "%s\n" "yes" >&6; }
39910
39911printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
39912
39913 curl_cv_func_inet_pton="yes"
39914 else
39915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39916printf "%s\n" "no" >&6; }
39917 curl_cv_func_inet_pton="no"
39918 fi
39919
39920
39921 #
39922 tst_links_ioctlsocket="unknown"
39923 tst_proto_ioctlsocket="unknown"
39924 tst_compi_ioctlsocket="unknown"
39925 tst_allow_ioctlsocket="unknown"
39926 #
39927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
39928printf %s "checking if ioctlsocket can be linked... " >&6; }
39929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39930/* end confdefs.h. */
39931
39932
39933 $curl_includes_winsock2
39934
39935int main (void)
39936{
39937
39938 if(0 != ioctlsocket(0, 0, 0))
39939 return 1;
39940
39941 ;
39942 return 0;
39943}
39944
39945_ACEOF
39946if ac_fn_c_try_link "$LINENO"
39947then :
39948
39949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39950printf "%s\n" "yes" >&6; }
39951 tst_links_ioctlsocket="yes"
39952
39953else $as_nop
39954
39955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956printf "%s\n" "no" >&6; }
39957 tst_links_ioctlsocket="no"
39958
39959fi
39960rm -f core conftest.err conftest.$ac_objext conftest.beam \
39961 conftest$ac_exeext conftest.$ac_ext
39962 #
39963 if test "$tst_links_ioctlsocket" = "yes"; then
39964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
39965printf %s "checking if ioctlsocket is prototyped... " >&6; }
39966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39967/* end confdefs.h. */
39968
39969 $curl_includes_winsock2
39970
39971_ACEOF
39972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39973 $EGREP "ioctlsocket" >/dev/null 2>&1
39974then :
39975
39976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39977printf "%s\n" "yes" >&6; }
39978 tst_proto_ioctlsocket="yes"
39979
39980else $as_nop
39981
39982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39983printf "%s\n" "no" >&6; }
39984 tst_proto_ioctlsocket="no"
39985
39986fi
39987rm -rf conftest*
39988
39989 fi
39990 #
39991 if test "$tst_proto_ioctlsocket" = "yes"; then
39992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
39993printf %s "checking if ioctlsocket is compilable... " >&6; }
39994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39995/* end confdefs.h. */
39996
39997
39998 $curl_includes_winsock2
39999
40000int main (void)
40001{
40002
40003 if(0 != ioctlsocket(0, 0, 0))
40004 return 1;
40005
40006 ;
40007 return 0;
40008}
40009
40010_ACEOF
40011if ac_fn_c_try_compile "$LINENO"
40012then :
40013
40014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40015printf "%s\n" "yes" >&6; }
40016 tst_compi_ioctlsocket="yes"
40017
40018else $as_nop
40019
40020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40021printf "%s\n" "no" >&6; }
40022 tst_compi_ioctlsocket="no"
40023
40024fi
40025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40026 fi
40027 #
40028 if test "$tst_compi_ioctlsocket" = "yes"; then
40029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40030printf %s "checking if ioctlsocket usage allowed... " >&6; }
40031 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40033printf "%s\n" "yes" >&6; }
40034 tst_allow_ioctlsocket="yes"
40035 else
40036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40037printf "%s\n" "no" >&6; }
40038 tst_allow_ioctlsocket="no"
40039 fi
40040 fi
40041 #
40042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40043printf %s "checking if ioctlsocket might be used... " >&6; }
40044 if test "$tst_links_ioctlsocket" = "yes" &&
40045 test "$tst_proto_ioctlsocket" = "yes" &&
40046 test "$tst_compi_ioctlsocket" = "yes" &&
40047 test "$tst_allow_ioctlsocket" = "yes"; then
40048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40049printf "%s\n" "yes" >&6; }
40050
40051printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40052
40053 curl_cv_func_ioctlsocket="yes"
40054
40055 #
40056 tst_compi_ioctlsocket_fionbio="unknown"
40057 tst_allow_ioctlsocket_fionbio="unknown"
40058 #
40059 if test "$curl_cv_func_ioctlsocket" = "yes"; then
40060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40061printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40063/* end confdefs.h. */
40064
40065
40066 $curl_includes_winsock2
40067
40068int main (void)
40069{
40070
40071 int flags = 0;
40072 if(0 != ioctlsocket(0, FIONBIO, &flags))
40073 return 1;
40074
40075 ;
40076 return 0;
40077}
40078
40079_ACEOF
40080if ac_fn_c_try_compile "$LINENO"
40081then :
40082
40083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40084printf "%s\n" "yes" >&6; }
40085 tst_compi_ioctlsocket_fionbio="yes"
40086
40087else $as_nop
40088
40089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40090printf "%s\n" "no" >&6; }
40091 tst_compi_ioctlsocket_fionbio="no"
40092
40093fi
40094rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40095 fi
40096 #
40097 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40099printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40100 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40102printf "%s\n" "yes" >&6; }
40103 tst_allow_ioctlsocket_fionbio="yes"
40104 else
40105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40106printf "%s\n" "no" >&6; }
40107 tst_allow_ioctlsocket_fionbio="no"
40108 fi
40109 fi
40110 #
40111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40112printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40113 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40114 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40116printf "%s\n" "yes" >&6; }
40117
40118printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40119
40120 curl_cv_func_ioctlsocket_fionbio="yes"
40121 else
40122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40123printf "%s\n" "no" >&6; }
40124 curl_cv_func_ioctlsocket_fionbio="no"
40125 fi
40126
40127 else
40128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40129printf "%s\n" "no" >&6; }
40130 curl_cv_func_ioctlsocket="no"
40131 fi
40132
40133
40134 #
40135 tst_links_ioctlsocket_camel="unknown"
40136 tst_proto_ioctlsocket_camel="unknown"
40137 tst_compi_ioctlsocket_camel="unknown"
40138 tst_allow_ioctlsocket_camel="unknown"
40139 #
40140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40141printf %s "checking if IoctlSocket can be linked... " >&6; }
40142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40143/* end confdefs.h. */
40144
40145
40146 $curl_includes_bsdsocket
40147
40148int main (void)
40149{
40150
40151 IoctlSocket(0, 0, 0);
40152
40153 ;
40154 return 0;
40155}
40156
40157_ACEOF
40158if ac_fn_c_try_link "$LINENO"
40159then :
40160
40161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40162printf "%s\n" "yes" >&6; }
40163 tst_links_ioctlsocket_camel="yes"
40164
40165else $as_nop
40166
40167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40168printf "%s\n" "no" >&6; }
40169 tst_links_ioctlsocket_camel="no"
40170
40171fi
40172rm -f core conftest.err conftest.$ac_objext conftest.beam \
40173 conftest$ac_exeext conftest.$ac_ext
40174 #
40175 if test "$tst_links_ioctlsocket_camel" = "yes"; then
40176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40177printf %s "checking if IoctlSocket is prototyped... " >&6; }
40178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40179/* end confdefs.h. */
40180
40181 $curl_includes_bsdsocket
40182
40183_ACEOF
40184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40185 $EGREP "IoctlSocket" >/dev/null 2>&1
40186then :
40187
40188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40189printf "%s\n" "yes" >&6; }
40190 tst_proto_ioctlsocket_camel="yes"
40191
40192else $as_nop
40193
40194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40195printf "%s\n" "no" >&6; }
40196 tst_proto_ioctlsocket_camel="no"
40197
40198fi
40199rm -rf conftest*
40200
40201 fi
40202 #
40203 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40205printf %s "checking if IoctlSocket is compilable... " >&6; }
40206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40207/* end confdefs.h. */
40208
40209
40210 $curl_includes_bsdsocket
40211
40212int main (void)
40213{
40214
40215 if(0 != IoctlSocket(0, 0, 0))
40216 return 1;
40217
40218 ;
40219 return 0;
40220}
40221
40222_ACEOF
40223if ac_fn_c_try_compile "$LINENO"
40224then :
40225
40226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40227printf "%s\n" "yes" >&6; }
40228 tst_compi_ioctlsocket_camel="yes"
40229
40230else $as_nop
40231
40232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40233printf "%s\n" "no" >&6; }
40234 tst_compi_ioctlsocket_camel="no"
40235
40236fi
40237rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40238 fi
40239 #
40240 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40242printf %s "checking if IoctlSocket usage allowed... " >&6; }
40243 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40245printf "%s\n" "yes" >&6; }
40246 tst_allow_ioctlsocket_camel="yes"
40247 else
40248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40249printf "%s\n" "no" >&6; }
40250 tst_allow_ioctlsocket_camel="no"
40251 fi
40252 fi
40253 #
40254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40255printf %s "checking if IoctlSocket might be used... " >&6; }
40256 if test "$tst_links_ioctlsocket_camel" = "yes" &&
40257 test "$tst_proto_ioctlsocket_camel" = "yes" &&
40258 test "$tst_compi_ioctlsocket_camel" = "yes" &&
40259 test "$tst_allow_ioctlsocket_camel" = "yes"; then
40260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40261printf "%s\n" "yes" >&6; }
40262
40263printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40264
40265 curl_cv_func_ioctlsocket_camel="yes"
40266
40267 #
40268 tst_compi_ioctlsocket_camel_fionbio="unknown"
40269 tst_allow_ioctlsocket_camel_fionbio="unknown"
40270 #
40271 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40273printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40275/* end confdefs.h. */
40276
40277
40278 $curl_includes_bsdsocket
40279
40280int main (void)
40281{
40282
40283 long flags = 0;
40284 if(0 != IoctlSocket(0, FIONBIO, &flags))
40285 return 1;
40286
40287 ;
40288 return 0;
40289}
40290
40291_ACEOF
40292if ac_fn_c_try_compile "$LINENO"
40293then :
40294
40295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40296printf "%s\n" "yes" >&6; }
40297 tst_compi_ioctlsocket_camel_fionbio="yes"
40298
40299else $as_nop
40300
40301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40302printf "%s\n" "no" >&6; }
40303 tst_compi_ioctlsocket_camel_fionbio="no"
40304
40305fi
40306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40307 fi
40308 #
40309 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40311printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40312 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40314printf "%s\n" "yes" >&6; }
40315 tst_allow_ioctlsocket_camel_fionbio="yes"
40316 else
40317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40318printf "%s\n" "no" >&6; }
40319 tst_allow_ioctlsocket_camel_fionbio="no"
40320 fi
40321 fi
40322 #
40323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40324printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40325 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40326 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40328printf "%s\n" "yes" >&6; }
40329
40330printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40331
40332 curl_cv_func_ioctlsocket_camel_fionbio="yes"
40333 else
40334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40335printf "%s\n" "no" >&6; }
40336 curl_cv_func_ioctlsocket_camel_fionbio="no"
40337 fi
40338
40339 else
40340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40341printf "%s\n" "no" >&6; }
40342 curl_cv_func_ioctlsocket_camel="no"
40343 fi
40344
40345
40346 #
40347 tst_links_memrchr="unknown"
40348 tst_macro_memrchr="unknown"
40349 tst_proto_memrchr="unknown"
40350 tst_compi_memrchr="unknown"
40351 tst_allow_memrchr="unknown"
40352 #
40353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40354printf %s "checking if memrchr can be linked... " >&6; }
40355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40356/* end confdefs.h. */
40357
40358
40359#define memrchr innocuous_memrchr
40360#ifdef __STDC__
40361# include <limits.h>
40362#else
40363# include <assert.h>
40364#endif
40365#undef memrchr
40366#ifdef __cplusplus
40367extern "C"
40368#endif
40369char memrchr ();
40370#if defined __stub_memrchr || defined __stub___memrchr
40371choke me
40372#endif
40373
40374int main (void)
40375{
40376return memrchr ();
40377 ;
40378 return 0;
40379}
40380
40381_ACEOF
40382if ac_fn_c_try_link "$LINENO"
40383then :
40384
40385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40386printf "%s\n" "yes" >&6; }
40387 tst_links_memrchr="yes"
40388
40389else $as_nop
40390
40391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40392printf "%s\n" "no" >&6; }
40393 tst_links_memrchr="no"
40394
40395fi
40396rm -f core conftest.err conftest.$ac_objext conftest.beam \
40397 conftest$ac_exeext conftest.$ac_ext
40398 #
40399 if test "$tst_links_memrchr" = "no"; then
40400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40401printf %s "checking if memrchr seems a macro... " >&6; }
40402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40403/* end confdefs.h. */
40404
40405
40406 $curl_includes_string
40407
40408int main (void)
40409{
40410
40411 if(0 != memrchr(0, 0, 0))
40412 return 1;
40413
40414 ;
40415 return 0;
40416}
40417
40418_ACEOF
40419if ac_fn_c_try_link "$LINENO"
40420then :
40421
40422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40423printf "%s\n" "yes" >&6; }
40424 tst_macro_memrchr="yes"
40425
40426else $as_nop
40427
40428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40429printf "%s\n" "no" >&6; }
40430 tst_macro_memrchr="no"
40431
40432fi
40433rm -f core conftest.err conftest.$ac_objext conftest.beam \
40434 conftest$ac_exeext conftest.$ac_ext
40435 fi
40436 #
40437 if test "$tst_links_memrchr" = "yes"; then
40438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40439printf %s "checking if memrchr is prototyped... " >&6; }
40440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40441/* end confdefs.h. */
40442
40443 $curl_includes_string
40444
40445_ACEOF
40446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40447 $EGREP "memrchr" >/dev/null 2>&1
40448then :
40449
40450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40451printf "%s\n" "yes" >&6; }
40452 tst_proto_memrchr="yes"
40453
40454else $as_nop
40455
40456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40457printf "%s\n" "no" >&6; }
40458 tst_proto_memrchr="no"
40459
40460fi
40461rm -rf conftest*
40462
40463 fi
40464 #
40465 if test "$tst_proto_memrchr" = "yes" ||
40466 test "$tst_macro_memrchr" = "yes"; then
40467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40468printf %s "checking if memrchr is compilable... " >&6; }
40469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40470/* end confdefs.h. */
40471
40472
40473 $curl_includes_string
40474
40475int main (void)
40476{
40477
40478 if(0 != memrchr(0, 0, 0))
40479 return 1;
40480
40481 ;
40482 return 0;
40483}
40484
40485_ACEOF
40486if ac_fn_c_try_compile "$LINENO"
40487then :
40488
40489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40490printf "%s\n" "yes" >&6; }
40491 tst_compi_memrchr="yes"
40492
40493else $as_nop
40494
40495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40496printf "%s\n" "no" >&6; }
40497 tst_compi_memrchr="no"
40498
40499fi
40500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40501 fi
40502 #
40503 if test "$tst_compi_memrchr" = "yes"; then
40504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40505printf %s "checking if memrchr usage allowed... " >&6; }
40506 if test "x$curl_disallow_memrchr" != "xyes"; then
40507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40508printf "%s\n" "yes" >&6; }
40509 tst_allow_memrchr="yes"
40510 else
40511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40512printf "%s\n" "no" >&6; }
40513 tst_allow_memrchr="no"
40514 fi
40515 fi
40516 #
40517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40518printf %s "checking if memrchr might be used... " >&6; }
40519 if (test "$tst_proto_memrchr" = "yes" ||
40520 test "$tst_macro_memrchr" = "yes") &&
40521 test "$tst_compi_memrchr" = "yes" &&
40522 test "$tst_allow_memrchr" = "yes"; then
40523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40524printf "%s\n" "yes" >&6; }
40525
40526printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
40527
40528 curl_cv_func_memrchr="yes"
40529 else
40530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40531printf "%s\n" "no" >&6; }
40532 curl_cv_func_memrchr="no"
40533 fi
40534
40535
40536 #
40537 tst_links_poll="unknown"
40538 tst_proto_poll="unknown"
40539 tst_compi_poll="unknown"
40540 tst_works_poll="unknown"
40541 tst_allow_poll="unknown"
40542 #
40543 case $host_os in
40544 darwin*|interix*)
40545 curl_disallow_poll="yes"
40546 tst_compi_poll="no"
40547 ;;
40548 esac
40549 #
40550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
40551printf %s "checking if poll can be linked... " >&6; }
40552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40553/* end confdefs.h. */
40554
40555
40556 $curl_includes_poll
40557
40558int main (void)
40559{
40560
40561 if(0 != poll(0, 0, 0))
40562 return 1;
40563
40564 ;
40565 return 0;
40566}
40567
40568_ACEOF
40569if ac_fn_c_try_link "$LINENO"
40570then :
40571
40572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40573printf "%s\n" "yes" >&6; }
40574 tst_links_poll="yes"
40575
40576else $as_nop
40577
40578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40579printf "%s\n" "no" >&6; }
40580 tst_links_poll="no"
40581
40582fi
40583rm -f core conftest.err conftest.$ac_objext conftest.beam \
40584 conftest$ac_exeext conftest.$ac_ext
40585 #
40586 if test "$tst_links_poll" = "yes"; then
40587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
40588printf %s "checking if poll is prototyped... " >&6; }
40589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40590/* end confdefs.h. */
40591
40592 $curl_includes_poll
40593
40594_ACEOF
40595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40596 $EGREP "poll" >/dev/null 2>&1
40597then :
40598
40599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40600printf "%s\n" "yes" >&6; }
40601 tst_proto_poll="yes"
40602
40603else $as_nop
40604
40605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40606printf "%s\n" "no" >&6; }
40607 tst_proto_poll="no"
40608
40609fi
40610rm -rf conftest*
40611
40612 fi
40613 #
40614 if test "$tst_proto_poll" = "yes"; then
40615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
40616printf %s "checking if poll is compilable... " >&6; }
40617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40618/* end confdefs.h. */
40619
40620
40621 $curl_includes_poll
40622
40623int main (void)
40624{
40625
40626 if(0 != poll(0, 0, 0))
40627 return 1;
40628
40629 ;
40630 return 0;
40631}
40632
40633_ACEOF
40634if ac_fn_c_try_compile "$LINENO"
40635then :
40636
40637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40638printf "%s\n" "yes" >&6; }
40639 tst_compi_poll="yes"
40640
40641else $as_nop
40642
40643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40644printf "%s\n" "no" >&6; }
40645 tst_compi_poll="no"
40646
40647fi
40648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40649 fi
40650 #
40651 if test "x$cross_compiling" != "xyes" &&
40652 test "$tst_compi_poll" = "yes"; then
40653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
40654printf %s "checking if poll seems to work... " >&6; }
40655
40656 case $host_os in
40657 darwin*)
40658 if test "$cross_compiling" = yes
40659then :
40660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40661printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40662as_fn_error $? "cannot run test program while cross compiling
40663See \`config.log' for more details" "$LINENO" 5; }
40664else $as_nop
40665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40666/* end confdefs.h. */
40667
40668
40669 $curl_includes_stdlib
40670 $curl_includes_poll
40671 $curl_includes_time
40672
40673int main (void)
40674{
40675
40676 /* detect the original poll() breakage */
40677 if(0 != poll(0, 0, 10))
40678 exit(1); /* fail */
40679 else {
40680 /* detect the 10.12 poll() breakage */
40681 struct timeval before, after;
40682 int rc;
40683 size_t us;
40684
40685 gettimeofday(&before, NULL);
40686 rc = poll(NULL, 0, 500);
40687 gettimeofday(&after, NULL);
40688
40689 us = (after.tv_sec - before.tv_sec) * 1000000 +
40690 (after.tv_usec - before.tv_usec);
40691
40692 if(us < 400000)
40693 exit(1);
40694 }
40695
40696 ;
40697 return 0;
40698}
40699
40700_ACEOF
40701if ac_fn_c_try_run "$LINENO"
40702then :
40703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40704printf "%s\n" "yes" >&6; }
40705 tst_works_poll="yes"
40706
40707else $as_nop
40708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40709printf "%s\n" "no" >&6; }
40710 tst_works_poll="no"
40711
40712fi
40713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40714 conftest.$ac_objext conftest.beam conftest.$ac_ext
40715fi
40716
40717 ;;
40718 *)
40719 old=$LD_LIBRARY_PATH
40720 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40721 export LD_LIBRARY_PATH
40722 if test "$cross_compiling" = yes
40723then :
40724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40725printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40726as_fn_error $? "cannot run test program while cross compiling
40727See \`config.log' for more details" "$LINENO" 5; }
40728else $as_nop
40729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40730/* end confdefs.h. */
40731
40732
40733 $curl_includes_stdlib
40734 $curl_includes_poll
40735 $curl_includes_time
40736
40737int main (void)
40738{
40739
40740 /* detect the original poll() breakage */
40741 if(0 != poll(0, 0, 10))
40742 exit(1); /* fail */
40743 else {
40744 /* detect the 10.12 poll() breakage */
40745 struct timeval before, after;
40746 int rc;
40747 size_t us;
40748
40749 gettimeofday(&before, NULL);
40750 rc = poll(NULL, 0, 500);
40751 gettimeofday(&after, NULL);
40752
40753 us = (after.tv_sec - before.tv_sec) * 1000000 +
40754 (after.tv_usec - before.tv_usec);
40755
40756 if(us < 400000)
40757 exit(1);
40758 }
40759
40760 ;
40761 return 0;
40762}
40763
40764_ACEOF
40765if ac_fn_c_try_run "$LINENO"
40766then :
40767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40768printf "%s\n" "yes" >&6; }
40769 tst_works_poll="yes"
40770
40771else $as_nop
40772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40773printf "%s\n" "no" >&6; }
40774 tst_works_poll="no"
40775
40776fi
40777rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40778 conftest.$ac_objext conftest.beam conftest.$ac_ext
40779fi
40780
40781 LD_LIBRARY_PATH=$old # restore
40782 ;;
40783 esac
40784
40785 fi
40786 #
40787 if test "$tst_compi_poll" = "yes" &&
40788 test "$tst_works_poll" != "no"; then
40789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
40790printf %s "checking if poll usage allowed... " >&6; }
40791 if test "x$curl_disallow_poll" != "xyes"; then
40792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40793printf "%s\n" "yes" >&6; }
40794 tst_allow_poll="yes"
40795 else
40796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40797printf "%s\n" "no" >&6; }
40798 tst_allow_poll="no"
40799 fi
40800 fi
40801 #
40802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
40803printf %s "checking if poll might be used... " >&6; }
40804 if test "$tst_links_poll" = "yes" &&
40805 test "$tst_proto_poll" = "yes" &&
40806 test "$tst_compi_poll" = "yes" &&
40807 test "$tst_allow_poll" = "yes" &&
40808 test "$tst_works_poll" != "no"; then
40809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40810printf "%s\n" "yes" >&6; }
40811
40812printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
40813
40814 curl_cv_func_poll="yes"
40815 else
40816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40817printf "%s\n" "no" >&6; }
40818 curl_cv_func_poll="no"
40819 fi
40820
40821
40822curl_includes_signal="\
40823/* includes start */
40824#ifdef HAVE_SYS_TYPES_H
40825# include <sys/types.h>
40826#endif
40827#ifdef HAVE_SIGNAL_H
40828# include <signal.h>
40829#endif
40830/* includes end */"
40831 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
40832"
40833if test "x$ac_cv_header_sys_types_h" = xyes
40834then :
40835 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
40836
40837fi
40838ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
40839"
40840if test "x$ac_cv_header_signal_h" = xyes
40841then :
40842 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
40843
40844fi
40845
40846
40847
40848 #
40849 tst_links_sigaction="unknown"
40850 tst_proto_sigaction="unknown"
40851 tst_compi_sigaction="unknown"
40852 tst_allow_sigaction="unknown"
40853 #
40854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
40855printf %s "checking if sigaction can be linked... " >&6; }
40856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40857/* end confdefs.h. */
40858
40859
40860#define sigaction innocuous_sigaction
40861#ifdef __STDC__
40862# include <limits.h>
40863#else
40864# include <assert.h>
40865#endif
40866#undef sigaction
40867#ifdef __cplusplus
40868extern "C"
40869#endif
40870char sigaction ();
40871#if defined __stub_sigaction || defined __stub___sigaction
40872choke me
40873#endif
40874
40875int main (void)
40876{
40877return sigaction ();
40878 ;
40879 return 0;
40880}
40881
40882_ACEOF
40883if ac_fn_c_try_link "$LINENO"
40884then :
40885
40886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40887printf "%s\n" "yes" >&6; }
40888 tst_links_sigaction="yes"
40889
40890else $as_nop
40891
40892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40893printf "%s\n" "no" >&6; }
40894 tst_links_sigaction="no"
40895
40896fi
40897rm -f core conftest.err conftest.$ac_objext conftest.beam \
40898 conftest$ac_exeext conftest.$ac_ext
40899 #
40900 if test "$tst_links_sigaction" = "yes"; then
40901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
40902printf %s "checking if sigaction is prototyped... " >&6; }
40903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40904/* end confdefs.h. */
40905
40906 $curl_includes_signal
40907
40908_ACEOF
40909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40910 $EGREP "sigaction" >/dev/null 2>&1
40911then :
40912
40913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40914printf "%s\n" "yes" >&6; }
40915 tst_proto_sigaction="yes"
40916
40917else $as_nop
40918
40919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40920printf "%s\n" "no" >&6; }
40921 tst_proto_sigaction="no"
40922
40923fi
40924rm -rf conftest*
40925
40926 fi
40927 #
40928 if test "$tst_proto_sigaction" = "yes"; then
40929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
40930printf %s "checking if sigaction is compilable... " >&6; }
40931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40932/* end confdefs.h. */
40933
40934
40935 $curl_includes_signal
40936
40937int main (void)
40938{
40939
40940 if(0 != sigaction(0, 0, 0))
40941 return 1;
40942
40943 ;
40944 return 0;
40945}
40946
40947_ACEOF
40948if ac_fn_c_try_compile "$LINENO"
40949then :
40950
40951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40952printf "%s\n" "yes" >&6; }
40953 tst_compi_sigaction="yes"
40954
40955else $as_nop
40956
40957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40958printf "%s\n" "no" >&6; }
40959 tst_compi_sigaction="no"
40960
40961fi
40962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40963 fi
40964 #
40965 if test "$tst_compi_sigaction" = "yes"; then
40966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
40967printf %s "checking if sigaction usage allowed... " >&6; }
40968 if test "x$curl_disallow_sigaction" != "xyes"; then
40969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40970printf "%s\n" "yes" >&6; }
40971 tst_allow_sigaction="yes"
40972 else
40973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40974printf "%s\n" "no" >&6; }
40975 tst_allow_sigaction="no"
40976 fi
40977 fi
40978 #
40979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
40980printf %s "checking if sigaction might be used... " >&6; }
40981 if test "$tst_links_sigaction" = "yes" &&
40982 test "$tst_proto_sigaction" = "yes" &&
40983 test "$tst_compi_sigaction" = "yes" &&
40984 test "$tst_allow_sigaction" = "yes"; then
40985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986printf "%s\n" "yes" >&6; }
40987
40988printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
40989
40990 curl_cv_func_sigaction="yes"
40991 else
40992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40993printf "%s\n" "no" >&6; }
40994 curl_cv_func_sigaction="no"
40995 fi
40996
40997
40998 #
40999 tst_links_siginterrupt="unknown"
41000 tst_proto_siginterrupt="unknown"
41001 tst_compi_siginterrupt="unknown"
41002 tst_allow_siginterrupt="unknown"
41003 #
41004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41005printf %s "checking if siginterrupt can be linked... " >&6; }
41006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41007/* end confdefs.h. */
41008
41009
41010#define siginterrupt innocuous_siginterrupt
41011#ifdef __STDC__
41012# include <limits.h>
41013#else
41014# include <assert.h>
41015#endif
41016#undef siginterrupt
41017#ifdef __cplusplus
41018extern "C"
41019#endif
41020char siginterrupt ();
41021#if defined __stub_siginterrupt || defined __stub___siginterrupt
41022choke me
41023#endif
41024
41025int main (void)
41026{
41027return siginterrupt ();
41028 ;
41029 return 0;
41030}
41031
41032_ACEOF
41033if ac_fn_c_try_link "$LINENO"
41034then :
41035
41036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41037printf "%s\n" "yes" >&6; }
41038 tst_links_siginterrupt="yes"
41039
41040else $as_nop
41041
41042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41043printf "%s\n" "no" >&6; }
41044 tst_links_siginterrupt="no"
41045
41046fi
41047rm -f core conftest.err conftest.$ac_objext conftest.beam \
41048 conftest$ac_exeext conftest.$ac_ext
41049 #
41050 if test "$tst_links_siginterrupt" = "yes"; then
41051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41052printf %s "checking if siginterrupt is prototyped... " >&6; }
41053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41054/* end confdefs.h. */
41055
41056 $curl_includes_signal
41057
41058_ACEOF
41059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41060 $EGREP "siginterrupt" >/dev/null 2>&1
41061then :
41062
41063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41064printf "%s\n" "yes" >&6; }
41065 tst_proto_siginterrupt="yes"
41066
41067else $as_nop
41068
41069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41070printf "%s\n" "no" >&6; }
41071 tst_proto_siginterrupt="no"
41072
41073fi
41074rm -rf conftest*
41075
41076 fi
41077 #
41078 if test "$tst_proto_siginterrupt" = "yes"; then
41079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41080printf %s "checking if siginterrupt is compilable... " >&6; }
41081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41082/* end confdefs.h. */
41083
41084
41085 $curl_includes_signal
41086
41087int main (void)
41088{
41089
41090 if(0 != siginterrupt(0, 0))
41091 return 1;
41092
41093 ;
41094 return 0;
41095}
41096
41097_ACEOF
41098if ac_fn_c_try_compile "$LINENO"
41099then :
41100
41101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41102printf "%s\n" "yes" >&6; }
41103 tst_compi_siginterrupt="yes"
41104
41105else $as_nop
41106
41107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41108printf "%s\n" "no" >&6; }
41109 tst_compi_siginterrupt="no"
41110
41111fi
41112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41113 fi
41114 #
41115 if test "$tst_compi_siginterrupt" = "yes"; then
41116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41117printf %s "checking if siginterrupt usage allowed... " >&6; }
41118 if test "x$curl_disallow_siginterrupt" != "xyes"; then
41119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41120printf "%s\n" "yes" >&6; }
41121 tst_allow_siginterrupt="yes"
41122 else
41123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41124printf "%s\n" "no" >&6; }
41125 tst_allow_siginterrupt="no"
41126 fi
41127 fi
41128 #
41129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41130printf %s "checking if siginterrupt might be used... " >&6; }
41131 if test "$tst_links_siginterrupt" = "yes" &&
41132 test "$tst_proto_siginterrupt" = "yes" &&
41133 test "$tst_compi_siginterrupt" = "yes" &&
41134 test "$tst_allow_siginterrupt" = "yes"; then
41135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41136printf "%s\n" "yes" >&6; }
41137
41138printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41139
41140 curl_cv_func_siginterrupt="yes"
41141 else
41142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41143printf "%s\n" "no" >&6; }
41144 curl_cv_func_siginterrupt="no"
41145 fi
41146
41147
41148 #
41149 tst_links_signal="unknown"
41150 tst_proto_signal="unknown"
41151 tst_compi_signal="unknown"
41152 tst_allow_signal="unknown"
41153 #
41154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41155printf %s "checking if signal can be linked... " >&6; }
41156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41157/* end confdefs.h. */
41158
41159
41160#define signal innocuous_signal
41161#ifdef __STDC__
41162# include <limits.h>
41163#else
41164# include <assert.h>
41165#endif
41166#undef signal
41167#ifdef __cplusplus
41168extern "C"
41169#endif
41170char signal ();
41171#if defined __stub_signal || defined __stub___signal
41172choke me
41173#endif
41174
41175int main (void)
41176{
41177return signal ();
41178 ;
41179 return 0;
41180}
41181
41182_ACEOF
41183if ac_fn_c_try_link "$LINENO"
41184then :
41185
41186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41187printf "%s\n" "yes" >&6; }
41188 tst_links_signal="yes"
41189
41190else $as_nop
41191
41192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41193printf "%s\n" "no" >&6; }
41194 tst_links_signal="no"
41195
41196fi
41197rm -f core conftest.err conftest.$ac_objext conftest.beam \
41198 conftest$ac_exeext conftest.$ac_ext
41199 #
41200 if test "$tst_links_signal" = "yes"; then
41201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41202printf %s "checking if signal is prototyped... " >&6; }
41203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41204/* end confdefs.h. */
41205
41206 $curl_includes_signal
41207
41208_ACEOF
41209if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41210 $EGREP "signal" >/dev/null 2>&1
41211then :
41212
41213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41214printf "%s\n" "yes" >&6; }
41215 tst_proto_signal="yes"
41216
41217else $as_nop
41218
41219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41220printf "%s\n" "no" >&6; }
41221 tst_proto_signal="no"
41222
41223fi
41224rm -rf conftest*
41225
41226 fi
41227 #
41228 if test "$tst_proto_signal" = "yes"; then
41229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41230printf %s "checking if signal is compilable... " >&6; }
41231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41232/* end confdefs.h. */
41233
41234
41235 $curl_includes_signal
41236
41237int main (void)
41238{
41239
41240 if(0 != signal(0, 0))
41241 return 1;
41242
41243 ;
41244 return 0;
41245}
41246
41247_ACEOF
41248if ac_fn_c_try_compile "$LINENO"
41249then :
41250
41251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41252printf "%s\n" "yes" >&6; }
41253 tst_compi_signal="yes"
41254
41255else $as_nop
41256
41257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41258printf "%s\n" "no" >&6; }
41259 tst_compi_signal="no"
41260
41261fi
41262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41263 fi
41264 #
41265 if test "$tst_compi_signal" = "yes"; then
41266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41267printf %s "checking if signal usage allowed... " >&6; }
41268 if test "x$curl_disallow_signal" != "xyes"; then
41269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41270printf "%s\n" "yes" >&6; }
41271 tst_allow_signal="yes"
41272 else
41273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41274printf "%s\n" "no" >&6; }
41275 tst_allow_signal="no"
41276 fi
41277 fi
41278 #
41279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41280printf %s "checking if signal might be used... " >&6; }
41281 if test "$tst_links_signal" = "yes" &&
41282 test "$tst_proto_signal" = "yes" &&
41283 test "$tst_compi_signal" = "yes" &&
41284 test "$tst_allow_signal" = "yes"; then
41285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41286printf "%s\n" "yes" >&6; }
41287
41288printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41289
41290 curl_cv_func_signal="yes"
41291 else
41292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41293printf "%s\n" "no" >&6; }
41294 curl_cv_func_signal="no"
41295 fi
41296
41297
41298curl_includes_setjmp="\
41299/* includes start */
41300#ifdef HAVE_SYS_TYPES_H
41301# include <sys/types.h>
41302#endif
41303#ifdef HAVE_SETJMP_H
41304# include <setjmp.h>
41305#endif
41306/* includes end */"
41307 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41308"
41309if test "x$ac_cv_header_sys_types_h" = xyes
41310then :
41311 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41312
41313fi
41314ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
41315"
41316if test "x$ac_cv_header_setjmp_h" = xyes
41317then :
41318 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
41319
41320fi
41321
41322
41323
41324 #
41325 tst_links_sigsetjmp="unknown"
41326 tst_macro_sigsetjmp="unknown"
41327 tst_proto_sigsetjmp="unknown"
41328 tst_compi_sigsetjmp="unknown"
41329 tst_allow_sigsetjmp="unknown"
41330 #
41331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41332printf %s "checking if sigsetjmp can be linked... " >&6; }
41333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41334/* end confdefs.h. */
41335
41336
41337#define sigsetjmp innocuous_sigsetjmp
41338#ifdef __STDC__
41339# include <limits.h>
41340#else
41341# include <assert.h>
41342#endif
41343#undef sigsetjmp
41344#ifdef __cplusplus
41345extern "C"
41346#endif
41347char sigsetjmp ();
41348#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41349choke me
41350#endif
41351
41352int main (void)
41353{
41354return sigsetjmp ();
41355 ;
41356 return 0;
41357}
41358
41359_ACEOF
41360if ac_fn_c_try_link "$LINENO"
41361then :
41362
41363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41364printf "%s\n" "yes" >&6; }
41365 tst_links_sigsetjmp="yes"
41366
41367else $as_nop
41368
41369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41370printf "%s\n" "no" >&6; }
41371 tst_links_sigsetjmp="no"
41372
41373fi
41374rm -f core conftest.err conftest.$ac_objext conftest.beam \
41375 conftest$ac_exeext conftest.$ac_ext
41376 #
41377 if test "$tst_links_sigsetjmp" = "no"; then
41378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41379printf %s "checking if sigsetjmp seems a macro... " >&6; }
41380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41381/* end confdefs.h. */
41382
41383
41384 $curl_includes_setjmp
41385
41386int main (void)
41387{
41388
41389 sigjmp_buf env;
41390 if(0 != sigsetjmp(env, 0))
41391 return 1;
41392
41393 ;
41394 return 0;
41395}
41396
41397_ACEOF
41398if ac_fn_c_try_link "$LINENO"
41399then :
41400
41401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41402printf "%s\n" "yes" >&6; }
41403 tst_macro_sigsetjmp="yes"
41404
41405else $as_nop
41406
41407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41408printf "%s\n" "no" >&6; }
41409 tst_macro_sigsetjmp="no"
41410
41411fi
41412rm -f core conftest.err conftest.$ac_objext conftest.beam \
41413 conftest$ac_exeext conftest.$ac_ext
41414 fi
41415 #
41416 if test "$tst_links_sigsetjmp" = "yes"; then
41417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41418printf %s "checking if sigsetjmp is prototyped... " >&6; }
41419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41420/* end confdefs.h. */
41421
41422 $curl_includes_setjmp
41423
41424_ACEOF
41425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41426 $EGREP "sigsetjmp" >/dev/null 2>&1
41427then :
41428
41429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41430printf "%s\n" "yes" >&6; }
41431 tst_proto_sigsetjmp="yes"
41432
41433else $as_nop
41434
41435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41436printf "%s\n" "no" >&6; }
41437 tst_proto_sigsetjmp="no"
41438
41439fi
41440rm -rf conftest*
41441
41442 fi
41443 #
41444 if test "$tst_proto_sigsetjmp" = "yes" ||
41445 test "$tst_macro_sigsetjmp" = "yes"; then
41446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41447printf %s "checking if sigsetjmp is compilable... " >&6; }
41448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41449/* end confdefs.h. */
41450
41451
41452 $curl_includes_setjmp
41453
41454int main (void)
41455{
41456
41457 sigjmp_buf env;
41458 if(0 != sigsetjmp(env, 0))
41459 return 1;
41460
41461 ;
41462 return 0;
41463}
41464
41465_ACEOF
41466if ac_fn_c_try_compile "$LINENO"
41467then :
41468
41469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41470printf "%s\n" "yes" >&6; }
41471 tst_compi_sigsetjmp="yes"
41472
41473else $as_nop
41474
41475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41476printf "%s\n" "no" >&6; }
41477 tst_compi_sigsetjmp="no"
41478
41479fi
41480rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41481 fi
41482 #
41483 if test "$tst_compi_sigsetjmp" = "yes"; then
41484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41485printf %s "checking if sigsetjmp usage allowed... " >&6; }
41486 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41488printf "%s\n" "yes" >&6; }
41489 tst_allow_sigsetjmp="yes"
41490 else
41491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41492printf "%s\n" "no" >&6; }
41493 tst_allow_sigsetjmp="no"
41494 fi
41495 fi
41496 #
41497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41498printf %s "checking if sigsetjmp might be used... " >&6; }
41499 if (test "$tst_proto_sigsetjmp" = "yes" ||
41500 test "$tst_macro_sigsetjmp" = "yes") &&
41501 test "$tst_compi_sigsetjmp" = "yes" &&
41502 test "$tst_allow_sigsetjmp" = "yes"; then
41503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41504printf "%s\n" "yes" >&6; }
41505
41506printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41507
41508 curl_cv_func_sigsetjmp="yes"
41509 else
41510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41511printf "%s\n" "no" >&6; }
41512 curl_cv_func_sigsetjmp="no"
41513 fi
41514
41515
41516 #
41517 tst_links_socket="unknown"
41518 tst_proto_socket="unknown"
41519 tst_compi_socket="unknown"
41520 tst_allow_socket="unknown"
41521 #
41522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41523printf %s "checking if socket can be linked... " >&6; }
41524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41525/* end confdefs.h. */
41526
41527
41528 $curl_includes_winsock2
41529 $curl_includes_bsdsocket
41530 $curl_includes_sys_socket
41531 $curl_includes_socket
41532
41533int main (void)
41534{
41535
41536 if(0 != socket(0, 0, 0))
41537 return 1;
41538
41539 ;
41540 return 0;
41541}
41542
41543_ACEOF
41544if ac_fn_c_try_link "$LINENO"
41545then :
41546
41547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41548printf "%s\n" "yes" >&6; }
41549 tst_links_socket="yes"
41550
41551else $as_nop
41552
41553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41554printf "%s\n" "no" >&6; }
41555 tst_links_socket="no"
41556
41557fi
41558rm -f core conftest.err conftest.$ac_objext conftest.beam \
41559 conftest$ac_exeext conftest.$ac_ext
41560 #
41561 if test "$tst_links_socket" = "yes"; then
41562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
41563printf %s "checking if socket is prototyped... " >&6; }
41564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41565/* end confdefs.h. */
41566
41567 $curl_includes_winsock2
41568 $curl_includes_bsdsocket
41569 $curl_includes_sys_socket
41570 $curl_includes_socket
41571
41572_ACEOF
41573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41574 $EGREP "socket" >/dev/null 2>&1
41575then :
41576
41577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41578printf "%s\n" "yes" >&6; }
41579 tst_proto_socket="yes"
41580
41581else $as_nop
41582
41583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41584printf "%s\n" "no" >&6; }
41585 tst_proto_socket="no"
41586
41587fi
41588rm -rf conftest*
41589
41590 fi
41591 #
41592 if test "$tst_proto_socket" = "yes"; then
41593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
41594printf %s "checking if socket is compilable... " >&6; }
41595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41596/* end confdefs.h. */
41597
41598
41599 $curl_includes_winsock2
41600 $curl_includes_bsdsocket
41601 $curl_includes_sys_socket
41602 $curl_includes_socket
41603
41604int main (void)
41605{
41606
41607 if(0 != socket(0, 0, 0))
41608 return 1;
41609
41610 ;
41611 return 0;
41612}
41613
41614_ACEOF
41615if ac_fn_c_try_compile "$LINENO"
41616then :
41617
41618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41619printf "%s\n" "yes" >&6; }
41620 tst_compi_socket="yes"
41621
41622else $as_nop
41623
41624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41625printf "%s\n" "no" >&6; }
41626 tst_compi_socket="no"
41627
41628fi
41629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41630 fi
41631 #
41632 if test "$tst_compi_socket" = "yes"; then
41633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
41634printf %s "checking if socket usage allowed... " >&6; }
41635 if test "x$curl_disallow_socket" != "xyes"; then
41636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41637printf "%s\n" "yes" >&6; }
41638 tst_allow_socket="yes"
41639 else
41640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41641printf "%s\n" "no" >&6; }
41642 tst_allow_socket="no"
41643 fi
41644 fi
41645 #
41646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
41647printf %s "checking if socket might be used... " >&6; }
41648 if test "$tst_links_socket" = "yes" &&
41649 test "$tst_proto_socket" = "yes" &&
41650 test "$tst_compi_socket" = "yes" &&
41651 test "$tst_allow_socket" = "yes"; then
41652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41653printf "%s\n" "yes" >&6; }
41654
41655printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
41656
41657 curl_cv_func_socket="yes"
41658 else
41659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41660printf "%s\n" "no" >&6; }
41661 curl_cv_func_socket="no"
41662 fi
41663
41664
41665 #
41666 tst_links_socketpair="unknown"
41667 tst_proto_socketpair="unknown"
41668 tst_compi_socketpair="unknown"
41669 tst_allow_socketpair="unknown"
41670 #
41671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
41672printf %s "checking if socketpair can be linked... " >&6; }
41673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41674/* end confdefs.h. */
41675
41676
41677#define socketpair innocuous_socketpair
41678#ifdef __STDC__
41679# include <limits.h>
41680#else
41681# include <assert.h>
41682#endif
41683#undef socketpair
41684#ifdef __cplusplus
41685extern "C"
41686#endif
41687char socketpair ();
41688#if defined __stub_socketpair || defined __stub___socketpair
41689choke me
41690#endif
41691
41692int main (void)
41693{
41694return socketpair ();
41695 ;
41696 return 0;
41697}
41698
41699_ACEOF
41700if ac_fn_c_try_link "$LINENO"
41701then :
41702
41703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41704printf "%s\n" "yes" >&6; }
41705 tst_links_socketpair="yes"
41706
41707else $as_nop
41708
41709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41710printf "%s\n" "no" >&6; }
41711 tst_links_socketpair="no"
41712
41713fi
41714rm -f core conftest.err conftest.$ac_objext conftest.beam \
41715 conftest$ac_exeext conftest.$ac_ext
41716 #
41717 if test "$tst_links_socketpair" = "yes"; then
41718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
41719printf %s "checking if socketpair is prototyped... " >&6; }
41720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41721/* end confdefs.h. */
41722
41723 $curl_includes_sys_socket
41724 $curl_includes_socket
41725
41726_ACEOF
41727if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41728 $EGREP "socketpair" >/dev/null 2>&1
41729then :
41730
41731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41732printf "%s\n" "yes" >&6; }
41733 tst_proto_socketpair="yes"
41734
41735else $as_nop
41736
41737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41738printf "%s\n" "no" >&6; }
41739 tst_proto_socketpair="no"
41740
41741fi
41742rm -rf conftest*
41743
41744 fi
41745 #
41746 if test "$tst_proto_socketpair" = "yes"; then
41747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
41748printf %s "checking if socketpair is compilable... " >&6; }
41749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41750/* end confdefs.h. */
41751
41752
41753 $curl_includes_sys_socket
41754 $curl_includes_socket
41755
41756int main (void)
41757{
41758
41759 int sv[2];
41760 if(0 != socketpair(0, 0, 0, sv))
41761 return 1;
41762
41763 ;
41764 return 0;
41765}
41766
41767_ACEOF
41768if ac_fn_c_try_compile "$LINENO"
41769then :
41770
41771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41772printf "%s\n" "yes" >&6; }
41773 tst_compi_socketpair="yes"
41774
41775else $as_nop
41776
41777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41778printf "%s\n" "no" >&6; }
41779 tst_compi_socketpair="no"
41780
41781fi
41782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41783 fi
41784 #
41785 if test "$tst_compi_socketpair" = "yes"; then
41786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
41787printf %s "checking if socketpair usage allowed... " >&6; }
41788 if test "x$curl_disallow_socketpair" != "xyes"; then
41789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41790printf "%s\n" "yes" >&6; }
41791 tst_allow_socketpair="yes"
41792 else
41793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41794printf "%s\n" "no" >&6; }
41795 tst_allow_socketpair="no"
41796 fi
41797 fi
41798 #
41799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
41800printf %s "checking if socketpair might be used... " >&6; }
41801 if test "$tst_links_socketpair" = "yes" &&
41802 test "$tst_proto_socketpair" = "yes" &&
41803 test "$tst_compi_socketpair" = "yes" &&
41804 test "$tst_allow_socketpair" = "yes"; then
41805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41806printf "%s\n" "yes" >&6; }
41807
41808printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
41809
41810 curl_cv_func_socketpair="yes"
41811 else
41812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41813printf "%s\n" "no" >&6; }
41814 curl_cv_func_socketpair="no"
41815 fi
41816
41817
41818 #
41819 tst_links_strcasecmp="unknown"
41820 tst_proto_strcasecmp="unknown"
41821 tst_compi_strcasecmp="unknown"
41822 tst_allow_strcasecmp="unknown"
41823 #
41824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
41825printf %s "checking if strcasecmp can be linked... " >&6; }
41826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41827/* end confdefs.h. */
41828
41829
41830#define strcasecmp innocuous_strcasecmp
41831#ifdef __STDC__
41832# include <limits.h>
41833#else
41834# include <assert.h>
41835#endif
41836#undef strcasecmp
41837#ifdef __cplusplus
41838extern "C"
41839#endif
41840char strcasecmp ();
41841#if defined __stub_strcasecmp || defined __stub___strcasecmp
41842choke me
41843#endif
41844
41845int main (void)
41846{
41847return strcasecmp ();
41848 ;
41849 return 0;
41850}
41851
41852_ACEOF
41853if ac_fn_c_try_link "$LINENO"
41854then :
41855
41856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41857printf "%s\n" "yes" >&6; }
41858 tst_links_strcasecmp="yes"
41859
41860else $as_nop
41861
41862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41863printf "%s\n" "no" >&6; }
41864 tst_links_strcasecmp="no"
41865
41866fi
41867rm -f core conftest.err conftest.$ac_objext conftest.beam \
41868 conftest$ac_exeext conftest.$ac_ext
41869 #
41870 if test "$tst_links_strcasecmp" = "yes"; then
41871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
41872printf %s "checking if strcasecmp is prototyped... " >&6; }
41873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41874/* end confdefs.h. */
41875
41876 $curl_includes_string
41877
41878_ACEOF
41879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41880 $EGREP "strcasecmp" >/dev/null 2>&1
41881then :
41882
41883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41884printf "%s\n" "yes" >&6; }
41885 tst_proto_strcasecmp="yes"
41886
41887else $as_nop
41888
41889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41890printf "%s\n" "no" >&6; }
41891 tst_proto_strcasecmp="no"
41892
41893fi
41894rm -rf conftest*
41895
41896 fi
41897 #
41898 if test "$tst_proto_strcasecmp" = "yes"; then
41899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
41900printf %s "checking if strcasecmp is compilable... " >&6; }
41901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41902/* end confdefs.h. */
41903
41904
41905 $curl_includes_string
41906
41907int main (void)
41908{
41909
41910 if(0 != strcasecmp(0, 0))
41911 return 1;
41912
41913 ;
41914 return 0;
41915}
41916
41917_ACEOF
41918if ac_fn_c_try_compile "$LINENO"
41919then :
41920
41921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41922printf "%s\n" "yes" >&6; }
41923 tst_compi_strcasecmp="yes"
41924
41925else $as_nop
41926
41927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41928printf "%s\n" "no" >&6; }
41929 tst_compi_strcasecmp="no"
41930
41931fi
41932rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41933 fi
41934 #
41935 if test "$tst_compi_strcasecmp" = "yes"; then
41936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
41937printf %s "checking if strcasecmp usage allowed... " >&6; }
41938 if test "x$curl_disallow_strcasecmp" != "xyes"; then
41939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41940printf "%s\n" "yes" >&6; }
41941 tst_allow_strcasecmp="yes"
41942 else
41943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41944printf "%s\n" "no" >&6; }
41945 tst_allow_strcasecmp="no"
41946 fi
41947 fi
41948 #
41949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
41950printf %s "checking if strcasecmp might be used... " >&6; }
41951 if test "$tst_links_strcasecmp" = "yes" &&
41952 test "$tst_proto_strcasecmp" = "yes" &&
41953 test "$tst_compi_strcasecmp" = "yes" &&
41954 test "$tst_allow_strcasecmp" = "yes"; then
41955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41956printf "%s\n" "yes" >&6; }
41957
41958printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
41959
41960 curl_cv_func_strcasecmp="yes"
41961 else
41962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41963printf "%s\n" "no" >&6; }
41964 curl_cv_func_strcasecmp="no"
41965 fi
41966
41967
41968 #
41969 tst_links_strcmpi="unknown"
41970 tst_proto_strcmpi="unknown"
41971 tst_compi_strcmpi="unknown"
41972 tst_allow_strcmpi="unknown"
41973 #
41974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
41975printf %s "checking if strcmpi can be linked... " >&6; }
41976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41977/* end confdefs.h. */
41978
41979
41980#define strcmpi innocuous_strcmpi
41981#ifdef __STDC__
41982# include <limits.h>
41983#else
41984# include <assert.h>
41985#endif
41986#undef strcmpi
41987#ifdef __cplusplus
41988extern "C"
41989#endif
41990char strcmpi ();
41991#if defined __stub_strcmpi || defined __stub___strcmpi
41992choke me
41993#endif
41994
41995int main (void)
41996{
41997return strcmpi ();
41998 ;
41999 return 0;
42000}
42001
42002_ACEOF
42003if ac_fn_c_try_link "$LINENO"
42004then :
42005
42006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42007printf "%s\n" "yes" >&6; }
42008 tst_links_strcmpi="yes"
42009
42010else $as_nop
42011
42012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42013printf "%s\n" "no" >&6; }
42014 tst_links_strcmpi="no"
42015
42016fi
42017rm -f core conftest.err conftest.$ac_objext conftest.beam \
42018 conftest$ac_exeext conftest.$ac_ext
42019 #
42020 if test "$tst_links_strcmpi" = "yes"; then
42021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42022printf %s "checking if strcmpi is prototyped... " >&6; }
42023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42024/* end confdefs.h. */
42025
42026 $curl_includes_string
42027
42028_ACEOF
42029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42030 $EGREP "strcmpi" >/dev/null 2>&1
42031then :
42032
42033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42034printf "%s\n" "yes" >&6; }
42035 tst_proto_strcmpi="yes"
42036
42037else $as_nop
42038
42039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42040printf "%s\n" "no" >&6; }
42041 tst_proto_strcmpi="no"
42042
42043fi
42044rm -rf conftest*
42045
42046 fi
42047 #
42048 if test "$tst_proto_strcmpi" = "yes"; then
42049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42050printf %s "checking if strcmpi is compilable... " >&6; }
42051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42052/* end confdefs.h. */
42053
42054
42055 $curl_includes_string
42056
42057int main (void)
42058{
42059
42060 if(0 != strcmpi(0, 0))
42061 return 1;
42062
42063 ;
42064 return 0;
42065}
42066
42067_ACEOF
42068if ac_fn_c_try_compile "$LINENO"
42069then :
42070
42071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42072printf "%s\n" "yes" >&6; }
42073 tst_compi_strcmpi="yes"
42074
42075else $as_nop
42076
42077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42078printf "%s\n" "no" >&6; }
42079 tst_compi_strcmpi="no"
42080
42081fi
42082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42083 fi
42084 #
42085 if test "$tst_compi_strcmpi" = "yes"; then
42086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42087printf %s "checking if strcmpi usage allowed... " >&6; }
42088 if test "x$curl_disallow_strcmpi" != "xyes"; then
42089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42090printf "%s\n" "yes" >&6; }
42091 tst_allow_strcmpi="yes"
42092 else
42093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42094printf "%s\n" "no" >&6; }
42095 tst_allow_strcmpi="no"
42096 fi
42097 fi
42098 #
42099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42100printf %s "checking if strcmpi might be used... " >&6; }
42101 if test "$tst_links_strcmpi" = "yes" &&
42102 test "$tst_proto_strcmpi" = "yes" &&
42103 test "$tst_compi_strcmpi" = "yes" &&
42104 test "$tst_allow_strcmpi" = "yes"; then
42105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42106printf "%s\n" "yes" >&6; }
42107
42108printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42109
42110 curl_cv_func_strcmpi="yes"
42111 else
42112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42113printf "%s\n" "no" >&6; }
42114 curl_cv_func_strcmpi="no"
42115 fi
42116
42117
42118 #
42119 tst_links_strdup="unknown"
42120 tst_proto_strdup="unknown"
42121 tst_compi_strdup="unknown"
42122 tst_allow_strdup="unknown"
42123 #
42124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42125printf %s "checking if strdup can be linked... " >&6; }
42126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42127/* end confdefs.h. */
42128
42129
42130#define strdup innocuous_strdup
42131#ifdef __STDC__
42132# include <limits.h>
42133#else
42134# include <assert.h>
42135#endif
42136#undef strdup
42137#ifdef __cplusplus
42138extern "C"
42139#endif
42140char strdup ();
42141#if defined __stub_strdup || defined __stub___strdup
42142choke me
42143#endif
42144
42145int main (void)
42146{
42147return strdup ();
42148 ;
42149 return 0;
42150}
42151
42152_ACEOF
42153if ac_fn_c_try_link "$LINENO"
42154then :
42155
42156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42157printf "%s\n" "yes" >&6; }
42158 tst_links_strdup="yes"
42159
42160else $as_nop
42161
42162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42163printf "%s\n" "no" >&6; }
42164 tst_links_strdup="no"
42165
42166fi
42167rm -f core conftest.err conftest.$ac_objext conftest.beam \
42168 conftest$ac_exeext conftest.$ac_ext
42169 #
42170 if test "$tst_links_strdup" = "yes"; then
42171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42172printf %s "checking if strdup is prototyped... " >&6; }
42173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42174/* end confdefs.h. */
42175
42176 $curl_includes_string
42177
42178_ACEOF
42179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42180 $EGREP "strdup" >/dev/null 2>&1
42181then :
42182
42183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42184printf "%s\n" "yes" >&6; }
42185 tst_proto_strdup="yes"
42186
42187else $as_nop
42188
42189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42190printf "%s\n" "no" >&6; }
42191 tst_proto_strdup="no"
42192
42193fi
42194rm -rf conftest*
42195
42196 fi
42197 #
42198 if test "$tst_proto_strdup" = "yes"; then
42199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42200printf %s "checking if strdup is compilable... " >&6; }
42201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42202/* end confdefs.h. */
42203
42204
42205 $curl_includes_string
42206
42207int main (void)
42208{
42209
42210 if(0 != strdup(0))
42211 return 1;
42212
42213 ;
42214 return 0;
42215}
42216
42217_ACEOF
42218if ac_fn_c_try_compile "$LINENO"
42219then :
42220
42221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42222printf "%s\n" "yes" >&6; }
42223 tst_compi_strdup="yes"
42224
42225else $as_nop
42226
42227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42228printf "%s\n" "no" >&6; }
42229 tst_compi_strdup="no"
42230
42231fi
42232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42233 fi
42234 #
42235 if test "$tst_compi_strdup" = "yes"; then
42236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42237printf %s "checking if strdup usage allowed... " >&6; }
42238 if test "x$curl_disallow_strdup" != "xyes"; then
42239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42240printf "%s\n" "yes" >&6; }
42241 tst_allow_strdup="yes"
42242 else
42243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42244printf "%s\n" "no" >&6; }
42245 tst_allow_strdup="no"
42246 fi
42247 fi
42248 #
42249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42250printf %s "checking if strdup might be used... " >&6; }
42251 if test "$tst_links_strdup" = "yes" &&
42252 test "$tst_proto_strdup" = "yes" &&
42253 test "$tst_compi_strdup" = "yes" &&
42254 test "$tst_allow_strdup" = "yes"; then
42255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42256printf "%s\n" "yes" >&6; }
42257
42258printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42259
42260 curl_cv_func_strdup="yes"
42261 else
42262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42263printf "%s\n" "no" >&6; }
42264 curl_cv_func_strdup="no"
42265 fi
42266
42267
42268 #
42269 tst_links_strerror_r="unknown"
42270 tst_proto_strerror_r="unknown"
42271 tst_compi_strerror_r="unknown"
42272 tst_glibc_strerror_r="unknown"
42273 tst_posix_strerror_r="unknown"
42274 tst_allow_strerror_r="unknown"
42275 tst_works_glibc_strerror_r="unknown"
42276 tst_works_posix_strerror_r="unknown"
42277 tst_glibc_strerror_r_type_arg3="unknown"
42278 tst_posix_strerror_r_type_arg3="unknown"
42279 #
42280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42281printf %s "checking if strerror_r can be linked... " >&6; }
42282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42283/* end confdefs.h. */
42284
42285
42286#define strerror_r innocuous_strerror_r
42287#ifdef __STDC__
42288# include <limits.h>
42289#else
42290# include <assert.h>
42291#endif
42292#undef strerror_r
42293#ifdef __cplusplus
42294extern "C"
42295#endif
42296char strerror_r ();
42297#if defined __stub_strerror_r || defined __stub___strerror_r
42298choke me
42299#endif
42300
42301int main (void)
42302{
42303return strerror_r ();
42304 ;
42305 return 0;
42306}
42307
42308_ACEOF
42309if ac_fn_c_try_link "$LINENO"
42310then :
42311
42312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42313printf "%s\n" "yes" >&6; }
42314 tst_links_strerror_r="yes"
42315
42316else $as_nop
42317
42318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42319printf "%s\n" "no" >&6; }
42320 tst_links_strerror_r="no"
42321
42322fi
42323rm -f core conftest.err conftest.$ac_objext conftest.beam \
42324 conftest$ac_exeext conftest.$ac_ext
42325 #
42326 if test "$tst_links_strerror_r" = "yes"; then
42327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42328printf %s "checking if strerror_r is prototyped... " >&6; }
42329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42330/* end confdefs.h. */
42331
42332 $curl_includes_string
42333
42334_ACEOF
42335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42336 $EGREP "strerror_r" >/dev/null 2>&1
42337then :
42338
42339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42340printf "%s\n" "yes" >&6; }
42341 tst_proto_strerror_r="yes"
42342
42343else $as_nop
42344
42345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42346printf "%s\n" "no" >&6; }
42347 tst_proto_strerror_r="no"
42348
42349fi
42350rm -rf conftest*
42351
42352 fi
42353 #
42354 if test "$tst_proto_strerror_r" = "yes"; then
42355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42356printf %s "checking if strerror_r is compilable... " >&6; }
42357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42358/* end confdefs.h. */
42359
42360
42361 $curl_includes_string
42362
42363int main (void)
42364{
42365
42366 if(0 != strerror_r(0, 0, 0))
42367 return 1;
42368
42369 ;
42370 return 0;
42371}
42372
42373_ACEOF
42374if ac_fn_c_try_compile "$LINENO"
42375then :
42376
42377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42378printf "%s\n" "yes" >&6; }
42379 tst_compi_strerror_r="yes"
42380
42381else $as_nop
42382
42383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42384printf "%s\n" "no" >&6; }
42385 tst_compi_strerror_r="no"
42386
42387fi
42388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42389 fi
42390 #
42391 if test "$tst_compi_strerror_r" = "yes"; then
42392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42393printf %s "checking if strerror_r is glibc like... " >&6; }
42394 tst_glibc_strerror_r_type_arg3="unknown"
42395 for arg3 in 'size_t' 'int' 'unsigned int'; do
42396 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42398/* end confdefs.h. */
42399
42400
42401 $curl_includes_string
42402 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42403
42404int main (void)
42405{
42406
42407 if(0 != strerror_r(0, 0, 0))
42408 return 1;
42409
42410 ;
42411 return 0;
42412}
42413
42414_ACEOF
42415if ac_fn_c_try_compile "$LINENO"
42416then :
42417
42418 tst_glibc_strerror_r_type_arg3="$arg3"
42419
42420fi
42421rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42422 fi
42423 done
42424 case "$tst_glibc_strerror_r_type_arg3" in
42425 unknown)
42426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42427printf "%s\n" "no" >&6; }
42428 tst_glibc_strerror_r="no"
42429 ;;
42430 *)
42431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42432printf "%s\n" "yes" >&6; }
42433 tst_glibc_strerror_r="yes"
42434 ;;
42435 esac
42436 fi
42437 #
42438 if test "x$cross_compiling" != "xyes" &&
42439 test "$tst_glibc_strerror_r" = "yes"; then
42440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42441printf %s "checking if strerror_r seems to work... " >&6; }
42442
42443 case $host_os in
42444 darwin*)
42445 if test "$cross_compiling" = yes
42446then :
42447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42448printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42449as_fn_error $? "cannot run test program while cross compiling
42450See \`config.log' for more details" "$LINENO" 5; }
42451else $as_nop
42452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42453/* end confdefs.h. */
42454
42455
42456 $curl_includes_stdlib
42457 $curl_includes_string
42458# include <errno.h>
42459
42460int main (void)
42461{
42462
42463 char buffer[1024];
42464 char *string = 0;
42465 buffer[0] = '\0';
42466 string = strerror_r(EACCES, buffer, sizeof(buffer));
42467 if(!string)
42468 exit(1); /* fail */
42469 if(!string[0])
42470 exit(1); /* fail */
42471 else
42472 exit(0);
42473
42474 ;
42475 return 0;
42476}
42477
42478_ACEOF
42479if ac_fn_c_try_run "$LINENO"
42480then :
42481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42482printf "%s\n" "yes" >&6; }
42483 tst_works_glibc_strerror_r="yes"
42484
42485else $as_nop
42486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42487printf "%s\n" "no" >&6; }
42488 tst_works_glibc_strerror_r="no"
42489
42490fi
42491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42492 conftest.$ac_objext conftest.beam conftest.$ac_ext
42493fi
42494
42495 ;;
42496 *)
42497 old=$LD_LIBRARY_PATH
42498 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42499 export LD_LIBRARY_PATH
42500 if test "$cross_compiling" = yes
42501then :
42502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42503printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42504as_fn_error $? "cannot run test program while cross compiling
42505See \`config.log' for more details" "$LINENO" 5; }
42506else $as_nop
42507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42508/* end confdefs.h. */
42509
42510
42511 $curl_includes_stdlib
42512 $curl_includes_string
42513# include <errno.h>
42514
42515int main (void)
42516{
42517
42518 char buffer[1024];
42519 char *string = 0;
42520 buffer[0] = '\0';
42521 string = strerror_r(EACCES, buffer, sizeof(buffer));
42522 if(!string)
42523 exit(1); /* fail */
42524 if(!string[0])
42525 exit(1); /* fail */
42526 else
42527 exit(0);
42528
42529 ;
42530 return 0;
42531}
42532
42533_ACEOF
42534if ac_fn_c_try_run "$LINENO"
42535then :
42536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42537printf "%s\n" "yes" >&6; }
42538 tst_works_glibc_strerror_r="yes"
42539
42540else $as_nop
42541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42542printf "%s\n" "no" >&6; }
42543 tst_works_glibc_strerror_r="no"
42544
42545fi
42546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42547 conftest.$ac_objext conftest.beam conftest.$ac_ext
42548fi
42549
42550 LD_LIBRARY_PATH=$old # restore
42551 ;;
42552 esac
42553
42554 fi
42555 #
42556 if test "$tst_compi_strerror_r" = "yes" &&
42557 test "$tst_works_glibc_strerror_r" != "yes"; then
42558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
42559printf %s "checking if strerror_r is POSIX like... " >&6; }
42560 tst_posix_strerror_r_type_arg3="unknown"
42561 for arg3 in 'size_t' 'int' 'unsigned int'; do
42562 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
42563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42564/* end confdefs.h. */
42565
42566
42567 $curl_includes_string
42568 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
42569
42570int main (void)
42571{
42572
42573 if(0 != strerror_r(0, 0, 0))
42574 return 1;
42575
42576 ;
42577 return 0;
42578}
42579
42580_ACEOF
42581if ac_fn_c_try_compile "$LINENO"
42582then :
42583
42584 tst_posix_strerror_r_type_arg3="$arg3"
42585
42586fi
42587rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42588 fi
42589 done
42590 case "$tst_posix_strerror_r_type_arg3" in
42591 unknown)
42592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42593printf "%s\n" "no" >&6; }
42594 tst_posix_strerror_r="no"
42595 ;;
42596 *)
42597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42598printf "%s\n" "yes" >&6; }
42599 tst_posix_strerror_r="yes"
42600 ;;
42601 esac
42602 fi
42603 #
42604 if test "x$cross_compiling" != "xyes" &&
42605 test "$tst_posix_strerror_r" = "yes"; then
42606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42607printf %s "checking if strerror_r seems to work... " >&6; }
42608
42609 case $host_os in
42610 darwin*)
42611 if test "$cross_compiling" = yes
42612then :
42613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42614printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42615as_fn_error $? "cannot run test program while cross compiling
42616See \`config.log' for more details" "$LINENO" 5; }
42617else $as_nop
42618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42619/* end confdefs.h. */
42620
42621
42622 $curl_includes_stdlib
42623 $curl_includes_string
42624# include <errno.h>
42625
42626int main (void)
42627{
42628
42629 char buffer[1024];
42630 int error = 1;
42631 buffer[0] = '\0';
42632 error = strerror_r(EACCES, buffer, sizeof(buffer));
42633 if(error)
42634 exit(1); /* fail */
42635 if(buffer[0] == '\0')
42636 exit(1); /* fail */
42637 else
42638 exit(0);
42639
42640 ;
42641 return 0;
42642}
42643
42644_ACEOF
42645if ac_fn_c_try_run "$LINENO"
42646then :
42647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42648printf "%s\n" "yes" >&6; }
42649 tst_works_posix_strerror_r="yes"
42650
42651else $as_nop
42652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42653printf "%s\n" "no" >&6; }
42654 tst_works_posix_strerror_r="no"
42655
42656fi
42657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42658 conftest.$ac_objext conftest.beam conftest.$ac_ext
42659fi
42660
42661 ;;
42662 *)
42663 old=$LD_LIBRARY_PATH
42664 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42665 export LD_LIBRARY_PATH
42666 if test "$cross_compiling" = yes
42667then :
42668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42669printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42670as_fn_error $? "cannot run test program while cross compiling
42671See \`config.log' for more details" "$LINENO" 5; }
42672else $as_nop
42673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42674/* end confdefs.h. */
42675
42676
42677 $curl_includes_stdlib
42678 $curl_includes_string
42679# include <errno.h>
42680
42681int main (void)
42682{
42683
42684 char buffer[1024];
42685 int error = 1;
42686 buffer[0] = '\0';
42687 error = strerror_r(EACCES, buffer, sizeof(buffer));
42688 if(error)
42689 exit(1); /* fail */
42690 if(buffer[0] == '\0')
42691 exit(1); /* fail */
42692 else
42693 exit(0);
42694
42695 ;
42696 return 0;
42697}
42698
42699_ACEOF
42700if ac_fn_c_try_run "$LINENO"
42701then :
42702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42703printf "%s\n" "yes" >&6; }
42704 tst_works_posix_strerror_r="yes"
42705
42706else $as_nop
42707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42708printf "%s\n" "no" >&6; }
42709 tst_works_posix_strerror_r="no"
42710
42711fi
42712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42713 conftest.$ac_objext conftest.beam conftest.$ac_ext
42714fi
42715
42716 LD_LIBRARY_PATH=$old # restore
42717 ;;
42718 esac
42719
42720 fi
42721 #
42722 if test "$tst_works_glibc_strerror_r" = "yes"; then
42723 tst_posix_strerror_r="no"
42724 fi
42725 if test "$tst_works_posix_strerror_r" = "yes"; then
42726 tst_glibc_strerror_r="no"
42727 fi
42728 if test "$tst_glibc_strerror_r" = "yes" &&
42729 test "$tst_works_glibc_strerror_r" != "no" &&
42730 test "$tst_posix_strerror_r" != "yes"; then
42731 tst_allow_strerror_r="check"
42732 fi
42733 if test "$tst_posix_strerror_r" = "yes" &&
42734 test "$tst_works_posix_strerror_r" != "no" &&
42735 test "$tst_glibc_strerror_r" != "yes"; then
42736 tst_allow_strerror_r="check"
42737 fi
42738 if test "$tst_allow_strerror_r" = "check"; then
42739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
42740printf %s "checking if strerror_r usage allowed... " >&6; }
42741 if test "x$curl_disallow_strerror_r" != "xyes"; then
42742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42743printf "%s\n" "yes" >&6; }
42744 tst_allow_strerror_r="yes"
42745 else
42746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42747printf "%s\n" "no" >&6; }
42748 tst_allow_strerror_r="no"
42749 fi
42750 fi
42751 #
42752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
42753printf %s "checking if strerror_r might be used... " >&6; }
42754 if test "$tst_links_strerror_r" = "yes" &&
42755 test "$tst_proto_strerror_r" = "yes" &&
42756 test "$tst_compi_strerror_r" = "yes" &&
42757 test "$tst_allow_strerror_r" = "yes"; then
42758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42759printf "%s\n" "yes" >&6; }
42760 if test "$tst_glibc_strerror_r" = "yes"; then
42761
42762printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42763
42764
42765printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
42766
42767 fi
42768 if test "$tst_posix_strerror_r" = "yes"; then
42769
42770printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42771
42772
42773printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
42774
42775 fi
42776 curl_cv_func_strerror_r="yes"
42777 else
42778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42779printf "%s\n" "no" >&6; }
42780 curl_cv_func_strerror_r="no"
42781 fi
42782 #
42783 if test "$tst_compi_strerror_r" = "yes" &&
42784 test "$tst_allow_strerror_r" = "unknown"; then
42785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
42786printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
42787 fi
42788 #
42789
42790
42791 #
42792 tst_links_stricmp="unknown"
42793 tst_proto_stricmp="unknown"
42794 tst_compi_stricmp="unknown"
42795 tst_allow_stricmp="unknown"
42796 #
42797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
42798printf %s "checking if stricmp can be linked... " >&6; }
42799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42800/* end confdefs.h. */
42801
42802
42803#define stricmp innocuous_stricmp
42804#ifdef __STDC__
42805# include <limits.h>
42806#else
42807# include <assert.h>
42808#endif
42809#undef stricmp
42810#ifdef __cplusplus
42811extern "C"
42812#endif
42813char stricmp ();
42814#if defined __stub_stricmp || defined __stub___stricmp
42815choke me
42816#endif
42817
42818int main (void)
42819{
42820return stricmp ();
42821 ;
42822 return 0;
42823}
42824
42825_ACEOF
42826if ac_fn_c_try_link "$LINENO"
42827then :
42828
42829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42830printf "%s\n" "yes" >&6; }
42831 tst_links_stricmp="yes"
42832
42833else $as_nop
42834
42835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42836printf "%s\n" "no" >&6; }
42837 tst_links_stricmp="no"
42838
42839fi
42840rm -f core conftest.err conftest.$ac_objext conftest.beam \
42841 conftest$ac_exeext conftest.$ac_ext
42842 #
42843 if test "$tst_links_stricmp" = "yes"; then
42844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
42845printf %s "checking if stricmp is prototyped... " >&6; }
42846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42847/* end confdefs.h. */
42848
42849 $curl_includes_string
42850
42851_ACEOF
42852if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42853 $EGREP "stricmp" >/dev/null 2>&1
42854then :
42855
42856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42857printf "%s\n" "yes" >&6; }
42858 tst_proto_stricmp="yes"
42859
42860else $as_nop
42861
42862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42863printf "%s\n" "no" >&6; }
42864 tst_proto_stricmp="no"
42865
42866fi
42867rm -rf conftest*
42868
42869 fi
42870 #
42871 if test "$tst_proto_stricmp" = "yes"; then
42872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
42873printf %s "checking if stricmp is compilable... " >&6; }
42874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42875/* end confdefs.h. */
42876
42877
42878 $curl_includes_string
42879
42880int main (void)
42881{
42882
42883 if(0 != stricmp(0, 0))
42884 return 1;
42885
42886 ;
42887 return 0;
42888}
42889
42890_ACEOF
42891if ac_fn_c_try_compile "$LINENO"
42892then :
42893
42894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42895printf "%s\n" "yes" >&6; }
42896 tst_compi_stricmp="yes"
42897
42898else $as_nop
42899
42900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42901printf "%s\n" "no" >&6; }
42902 tst_compi_stricmp="no"
42903
42904fi
42905rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42906 fi
42907 #
42908 if test "$tst_compi_stricmp" = "yes"; then
42909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
42910printf %s "checking if stricmp usage allowed... " >&6; }
42911 if test "x$curl_disallow_stricmp" != "xyes"; then
42912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42913printf "%s\n" "yes" >&6; }
42914 tst_allow_stricmp="yes"
42915 else
42916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42917printf "%s\n" "no" >&6; }
42918 tst_allow_stricmp="no"
42919 fi
42920 fi
42921 #
42922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
42923printf %s "checking if stricmp might be used... " >&6; }
42924 if test "$tst_links_stricmp" = "yes" &&
42925 test "$tst_proto_stricmp" = "yes" &&
42926 test "$tst_compi_stricmp" = "yes" &&
42927 test "$tst_allow_stricmp" = "yes"; then
42928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42929printf "%s\n" "yes" >&6; }
42930
42931printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
42932
42933 curl_cv_func_stricmp="yes"
42934 else
42935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42936printf "%s\n" "no" >&6; }
42937 curl_cv_func_stricmp="no"
42938 fi
42939
42940
42941 #
42942 tst_links_strtok_r="unknown"
42943 tst_proto_strtok_r="unknown"
42944 tst_compi_strtok_r="unknown"
42945 tst_allow_strtok_r="unknown"
42946 #
42947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
42948printf %s "checking if strtok_r can be linked... " >&6; }
42949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42950/* end confdefs.h. */
42951
42952
42953#define strtok_r innocuous_strtok_r
42954#ifdef __STDC__
42955# include <limits.h>
42956#else
42957# include <assert.h>
42958#endif
42959#undef strtok_r
42960#ifdef __cplusplus
42961extern "C"
42962#endif
42963char strtok_r ();
42964#if defined __stub_strtok_r || defined __stub___strtok_r
42965choke me
42966#endif
42967
42968int main (void)
42969{
42970return strtok_r ();
42971 ;
42972 return 0;
42973}
42974
42975_ACEOF
42976if ac_fn_c_try_link "$LINENO"
42977then :
42978
42979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42980printf "%s\n" "yes" >&6; }
42981 tst_links_strtok_r="yes"
42982
42983else $as_nop
42984
42985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42986printf "%s\n" "no" >&6; }
42987 tst_links_strtok_r="no"
42988
42989fi
42990rm -f core conftest.err conftest.$ac_objext conftest.beam \
42991 conftest$ac_exeext conftest.$ac_ext
42992 #
42993 if test "$tst_links_strtok_r" = "yes"; then
42994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
42995printf %s "checking if strtok_r is prototyped... " >&6; }
42996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42997/* end confdefs.h. */
42998
42999 $curl_includes_string
43000
43001_ACEOF
43002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43003 $EGREP "strtok_r" >/dev/null 2>&1
43004then :
43005
43006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43007printf "%s\n" "yes" >&6; }
43008 tst_proto_strtok_r="yes"
43009
43010else $as_nop
43011
43012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43013printf "%s\n" "no" >&6; }
43014 tst_proto_strtok_r="no"
43015
43016fi
43017rm -rf conftest*
43018
43019 fi
43020 #
43021 if test "$tst_proto_strtok_r" = "yes"; then
43022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43023printf %s "checking if strtok_r is compilable... " >&6; }
43024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43025/* end confdefs.h. */
43026
43027
43028 $curl_includes_string
43029
43030int main (void)
43031{
43032
43033 if(0 != strtok_r(0, 0, 0))
43034 return 1;
43035
43036 ;
43037 return 0;
43038}
43039
43040_ACEOF
43041if ac_fn_c_try_compile "$LINENO"
43042then :
43043
43044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43045printf "%s\n" "yes" >&6; }
43046 tst_compi_strtok_r="yes"
43047
43048else $as_nop
43049
43050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43051printf "%s\n" "no" >&6; }
43052 tst_compi_strtok_r="no"
43053
43054fi
43055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43056 fi
43057 #
43058 if test "$tst_compi_strtok_r" = "yes"; then
43059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43060printf %s "checking if strtok_r usage allowed... " >&6; }
43061 if test "x$curl_disallow_strtok_r" != "xyes"; then
43062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43063printf "%s\n" "yes" >&6; }
43064 tst_allow_strtok_r="yes"
43065 else
43066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43067printf "%s\n" "no" >&6; }
43068 tst_allow_strtok_r="no"
43069 fi
43070 fi
43071 #
43072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43073printf %s "checking if strtok_r might be used... " >&6; }
43074 if test "$tst_links_strtok_r" = "yes" &&
43075 test "$tst_proto_strtok_r" = "yes" &&
43076 test "$tst_compi_strtok_r" = "yes" &&
43077 test "$tst_allow_strtok_r" = "yes"; then
43078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43079printf "%s\n" "yes" >&6; }
43080
43081printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43082
43083 curl_cv_func_strtok_r="yes"
43084 else
43085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43086printf "%s\n" "no" >&6; }
43087 curl_cv_func_strtok_r="no"
43088 fi
43089
43090
43091 #
43092 tst_links_strtoll="unknown"
43093 tst_proto_strtoll="unknown"
43094 tst_compi_strtoll="unknown"
43095 tst_allow_strtoll="unknown"
43096 #
43097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43098printf %s "checking if strtoll can be linked... " >&6; }
43099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43100/* end confdefs.h. */
43101
43102
43103#define strtoll innocuous_strtoll
43104#ifdef __STDC__
43105# include <limits.h>
43106#else
43107# include <assert.h>
43108#endif
43109#undef strtoll
43110#ifdef __cplusplus
43111extern "C"
43112#endif
43113char strtoll ();
43114#if defined __stub_strtoll || defined __stub___strtoll
43115choke me
43116#endif
43117
43118int main (void)
43119{
43120return strtoll ();
43121 ;
43122 return 0;
43123}
43124
43125_ACEOF
43126if ac_fn_c_try_link "$LINENO"
43127then :
43128
43129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43130printf "%s\n" "yes" >&6; }
43131 tst_links_strtoll="yes"
43132
43133else $as_nop
43134
43135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43136printf "%s\n" "no" >&6; }
43137 tst_links_strtoll="no"
43138
43139fi
43140rm -f core conftest.err conftest.$ac_objext conftest.beam \
43141 conftest$ac_exeext conftest.$ac_ext
43142 #
43143 if test "$tst_links_strtoll" = "yes"; then
43144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43145printf %s "checking if strtoll is prototyped... " >&6; }
43146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43147/* end confdefs.h. */
43148
43149 $curl_includes_stdlib
43150
43151_ACEOF
43152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43153 $EGREP "strtoll" >/dev/null 2>&1
43154then :
43155
43156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43157printf "%s\n" "yes" >&6; }
43158 tst_proto_strtoll="yes"
43159
43160else $as_nop
43161
43162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43163printf "%s\n" "no" >&6; }
43164 tst_proto_strtoll="no"
43165
43166fi
43167rm -rf conftest*
43168
43169 fi
43170 #
43171 if test "$tst_proto_strtoll" = "yes"; then
43172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43173printf %s "checking if strtoll is compilable... " >&6; }
43174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43175/* end confdefs.h. */
43176
43177
43178 $curl_includes_stdlib
43179
43180int main (void)
43181{
43182
43183 if(0 != strtoll(0, 0, 0))
43184 return 1;
43185
43186 ;
43187 return 0;
43188}
43189
43190_ACEOF
43191if ac_fn_c_try_compile "$LINENO"
43192then :
43193
43194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43195printf "%s\n" "yes" >&6; }
43196 tst_compi_strtoll="yes"
43197
43198else $as_nop
43199
43200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43201printf "%s\n" "no" >&6; }
43202 tst_compi_strtoll="no"
43203
43204fi
43205rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43206 fi
43207 #
43208 if test "$tst_compi_strtoll" = "yes"; then
43209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43210printf %s "checking if strtoll usage allowed... " >&6; }
43211 if test "x$curl_disallow_strtoll" != "xyes"; then
43212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43213printf "%s\n" "yes" >&6; }
43214 tst_allow_strtoll="yes"
43215 else
43216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43217printf "%s\n" "no" >&6; }
43218 tst_allow_strtoll="no"
43219 fi
43220 fi
43221 #
43222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43223printf %s "checking if strtoll might be used... " >&6; }
43224 if test "$tst_links_strtoll" = "yes" &&
43225 test "$tst_proto_strtoll" = "yes" &&
43226 test "$tst_compi_strtoll" = "yes" &&
43227 test "$tst_allow_strtoll" = "yes"; then
43228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43229printf "%s\n" "yes" >&6; }
43230
43231printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43232
43233 curl_cv_func_strtoll="yes"
43234 else
43235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43236printf "%s\n" "no" >&6; }
43237 curl_cv_func_strtoll="no"
43238 fi
43239
43240
43241case $host in
43242 *msdosdjgpp)
43243 ac_cv_func_pipe=no
43244 skipcheck_pipe=yes
43245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43246printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43247 ;;
43248esac
43249
43250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43251printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43252if test ${ac_cv_c_undeclared_builtin_options+y}
43253then :
43254 printf %s "(cached) " >&6
43255else $as_nop
43256 ac_save_CFLAGS=$CFLAGS
43257 ac_cv_c_undeclared_builtin_options='cannot detect'
43258 for ac_arg in '' -fno-builtin; do
43259 CFLAGS="$ac_save_CFLAGS $ac_arg"
43260 # This test program should *not* compile successfully.
43261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43262/* end confdefs.h. */
43263
43264int main (void)
43265{
43266(void) strchr;
43267 ;
43268 return 0;
43269}
43270_ACEOF
43271if ac_fn_c_try_compile "$LINENO"
43272then :
43273
43274else $as_nop
43275 # This test program should compile successfully.
43276 # No library function is consistently available on
43277 # freestanding implementations, so test against a dummy
43278 # declaration. Include always-available headers on the
43279 # off chance that they somehow elicit warnings.
43280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43281/* end confdefs.h. */
43282#include <float.h>
43283#include <limits.h>
43284#include <stdarg.h>
43285#include <stddef.h>
43286extern void ac_decl (int, char *);
43287
43288int main (void)
43289{
43290(void) ac_decl (0, (char *) 0);
43291 (void) ac_decl;
43292
43293 ;
43294 return 0;
43295}
43296_ACEOF
43297if ac_fn_c_try_compile "$LINENO"
43298then :
43299 if test x"$ac_arg" = x
43300then :
43301 ac_cv_c_undeclared_builtin_options='none needed'
43302else $as_nop
43303 ac_cv_c_undeclared_builtin_options=$ac_arg
43304fi
43305 break
43306fi
43307rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43308fi
43309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43310 done
43311 CFLAGS=$ac_save_CFLAGS
43312
43313fi
43314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43315printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43316 case $ac_cv_c_undeclared_builtin_options in #(
43317 'cannot detect') :
43318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43319printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43320as_fn_error $? "cannot make $CC report undeclared builtins
43321See \`config.log' for more details" "$LINENO" 5; } ;; #(
43322 'none needed') :
43323 ac_c_undeclared_builtin_options='' ;; #(
43324 *) :
43325 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43326esac
43327
43328ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43329 #include <sys/types.h>
43330" "$ac_c_undeclared_builtin_options" "CFLAGS"
43331if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43332then :
43333 ac_have_decl=1
43334else $as_nop
43335 ac_have_decl=0
43336fi
43337printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43338if test $ac_have_decl = 1
43339then :
43340
43341else $as_nop
43342
43343printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43344
43345fi
43346
43347
43348
43349
43350 for ac_func in fnmatch fchmod geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes
43351do :
43352 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43353ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43354if eval test \"x\$"$as_ac_var"\" = x"yes"
43355then :
43356 cat >>confdefs.h <<_ACEOF
43357#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43358_ACEOF
43359
43360
43361else $as_nop
43362
43363 func="$ac_func"
43364 eval skipcheck=\$skipcheck_$func
43365 if test "x$skipcheck" != "xyes"; then
43366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43367printf %s "checking deeper for $func... " >&6; }
43368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43369/* end confdefs.h. */
43370
43371
43372
43373int main (void)
43374{
43375
43376 $func ();
43377
43378 ;
43379 return 0;
43380}
43381
43382_ACEOF
43383if ac_fn_c_try_link "$LINENO"
43384then :
43385
43386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43387printf "%s\n" "yes" >&6; }
43388 eval "ac_cv_func_$func=yes"
43389
43390cat >>confdefs.h <<_ACEOF
43391#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43392_ACEOF
43393
43394
43395else $as_nop
43396
43397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43398printf "%s\n" "but still no" >&6; }
43399
43400fi
43401rm -f core conftest.err conftest.$ac_objext conftest.beam \
43402 conftest$ac_exeext conftest.$ac_ext
43403 fi
43404
43405fi
43406
43407done
43408
43409
43410 #
43411 tst_method="unknown"
43412
43413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43414printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43415 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43416 tst_method="fcntl O_NONBLOCK"
43417 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43418 tst_method="ioctl FIONBIO"
43419 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43420 tst_method="ioctlsocket FIONBIO"
43421 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43422 tst_method="IoctlSocket FIONBIO"
43423 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43424 tst_method="setsockopt SO_NONBLOCK"
43425 fi
43426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43427printf "%s\n" "$tst_method" >&6; }
43428 if test "$tst_method" = "unknown"; then
43429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43430printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43431 fi
43432
43433
43434
43435# Extract the first word of "perl", so it can be a program name with args.
43436set dummy perl; ac_word=$2
43437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43438printf %s "checking for $ac_word... " >&6; }
43439if test ${ac_cv_path_PERL+y}
43440then :
43441 printf %s "(cached) " >&6
43442else $as_nop
43443 case $PERL in
43444 [\\/]* | ?:[\\/]*)
43445 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43446 ;;
43447 *)
43448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43449as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43450for as_dir in $as_dummy
43451do
43452 IFS=$as_save_IFS
43453 case $as_dir in #(((
43454 '') as_dir=./ ;;
43455 */) ;;
43456 *) as_dir=$as_dir/ ;;
43457 esac
43458 for ac_exec_ext in '' $ac_executable_extensions; do
43459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43460 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43462 break 2
43463 fi
43464done
43465 done
43466IFS=$as_save_IFS
43467
43468 ;;
43469esac
43470fi
43471PERL=$ac_cv_path_PERL
43472if test -n "$PERL"; then
43473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43474printf "%s\n" "$PERL" >&6; }
43475else
43476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43477printf "%s\n" "no" >&6; }
43478fi
43479
43480
43481
43482
43483for ac_prog in gnroff nroff
43484do
43485 # Extract the first word of "$ac_prog", so it can be a program name with args.
43486set dummy $ac_prog; ac_word=$2
43487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43488printf %s "checking for $ac_word... " >&6; }
43489if test ${ac_cv_path_NROFF+y}
43490then :
43491 printf %s "(cached) " >&6
43492else $as_nop
43493 case $NROFF in
43494 [\\/]* | ?:[\\/]*)
43495 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43496 ;;
43497 *)
43498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43499as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43500for as_dir in $as_dummy
43501do
43502 IFS=$as_save_IFS
43503 case $as_dir in #(((
43504 '') as_dir=./ ;;
43505 */) ;;
43506 *) as_dir=$as_dir/ ;;
43507 esac
43508 for ac_exec_ext in '' $ac_executable_extensions; do
43509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43510 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43512 break 2
43513 fi
43514done
43515 done
43516IFS=$as_save_IFS
43517
43518 ;;
43519esac
43520fi
43521NROFF=$ac_cv_path_NROFF
43522if test -n "$NROFF"; then
43523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43524printf "%s\n" "$NROFF" >&6; }
43525else
43526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43527printf "%s\n" "no" >&6; }
43528fi
43529
43530
43531 test -n "$NROFF" && break
43532done
43533
43534
43535
43536if test -n "$NROFF"; then
43537
43538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43539printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
43540 MANOPT="-man"
43541 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43542 if test -z "$mancheck"; then
43543 MANOPT="-mandoc"
43544 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43545 if test -z "$mancheck"; then
43546 MANOPT=""
43547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43548printf "%s\n" "failed" >&6; }
43549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43550printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43551 else
43552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43553printf "%s\n" "$MANOPT" >&6; }
43554 fi
43555 else
43556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43557printf "%s\n" "$MANOPT" >&6; }
43558 fi
43559
43560fi
43561
43562if test -z "$MANOPT"
43563then
43564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43565printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
43566 USE_MANUAL="no";
43567fi
43568
43569
43570if test "$USE_MANUAL" = "1"; then
43571
43572printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
43573
43574 curl_manual_msg="enabled"
43575fi
43576
43577 if test x"$USE_MANUAL" = x1; then
43578 USE_MANUAL_TRUE=
43579 USE_MANUAL_FALSE='#'
43580else
43581 USE_MANUAL_TRUE='#'
43582 USE_MANUAL_FALSE=
43583fi
43584
43585
43586
43587 #
43588 if test "$want_ares" = "yes"; then
43589 clean_CPPFLAGS="$CPPFLAGS"
43590 clean_LDFLAGS="$LDFLAGS"
43591 clean_LIBS="$LIBS"
43592 configure_runpath=`pwd`
43593 if test -n "$want_ares_path"; then
43594 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
43595
43596 if test -n "$PKG_CONFIG"; then
43597 PKGCONFIG="$PKG_CONFIG"
43598 else
43599 if test -n "$ac_tool_prefix"; then
43600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43601set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43603printf %s "checking for $ac_word... " >&6; }
43604if test ${ac_cv_path_PKGCONFIG+y}
43605then :
43606 printf %s "(cached) " >&6
43607else $as_nop
43608 case $PKGCONFIG in
43609 [\\/]* | ?:[\\/]*)
43610 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43611 ;;
43612 *)
43613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43614as_dummy="$PATH:/usr/bin:/usr/local/bin"
43615for as_dir in $as_dummy
43616do
43617 IFS=$as_save_IFS
43618 case $as_dir in #(((
43619 '') as_dir=./ ;;
43620 */) ;;
43621 *) as_dir=$as_dir/ ;;
43622 esac
43623 for ac_exec_ext in '' $ac_executable_extensions; do
43624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43625 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43627 break 2
43628 fi
43629done
43630 done
43631IFS=$as_save_IFS
43632
43633 ;;
43634esac
43635fi
43636PKGCONFIG=$ac_cv_path_PKGCONFIG
43637if test -n "$PKGCONFIG"; then
43638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43639printf "%s\n" "$PKGCONFIG" >&6; }
43640else
43641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43642printf "%s\n" "no" >&6; }
43643fi
43644
43645
43646fi
43647if test -z "$ac_cv_path_PKGCONFIG"; then
43648 ac_pt_PKGCONFIG=$PKGCONFIG
43649 # Extract the first word of "pkg-config", so it can be a program name with args.
43650set dummy pkg-config; ac_word=$2
43651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43652printf %s "checking for $ac_word... " >&6; }
43653if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
43654then :
43655 printf %s "(cached) " >&6
43656else $as_nop
43657 case $ac_pt_PKGCONFIG in
43658 [\\/]* | ?:[\\/]*)
43659 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43660 ;;
43661 *)
43662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43663as_dummy="$PATH:/usr/bin:/usr/local/bin"
43664for as_dir in $as_dummy
43665do
43666 IFS=$as_save_IFS
43667 case $as_dir in #(((
43668 '') as_dir=./ ;;
43669 */) ;;
43670 *) as_dir=$as_dir/ ;;
43671 esac
43672 for ac_exec_ext in '' $ac_executable_extensions; do
43673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43674 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43676 break 2
43677 fi
43678done
43679 done
43680IFS=$as_save_IFS
43681
43682 ;;
43683esac
43684fi
43685ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43686if test -n "$ac_pt_PKGCONFIG"; then
43687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43688printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
43689else
43690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43691printf "%s\n" "no" >&6; }
43692fi
43693
43694 if test "x$ac_pt_PKGCONFIG" = x; then
43695 PKGCONFIG="no"
43696 else
43697 case $cross_compiling:$ac_tool_warned in
43698yes:)
43699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43700printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43701ac_tool_warned=yes ;;
43702esac
43703 PKGCONFIG=$ac_pt_PKGCONFIG
43704 fi
43705else
43706 PKGCONFIG="$ac_cv_path_PKGCONFIG"
43707fi
43708
43709 fi
43710
43711 if test "x$PKGCONFIG" != "xno"; then
43712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43713printf %s "checking for libcares options with pkg-config... " >&6; }
43714 itexists=`
43715 if test -n "$ARES_PCDIR"; then
43716 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43717 export PKG_CONFIG_LIBDIR
43718 fi
43719 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43720
43721 if test -z "$itexists"; then
43722 PKGCONFIG="no"
43723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43724printf "%s\n" "no" >&6; }
43725 else
43726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
43727printf "%s\n" "found" >&6; }
43728 fi
43729 fi
43730
43731 if test "$PKGCONFIG" != "no" ; then
43732 ares_LIBS=`
43733 if test -n "$ARES_PCDIR"; then
43734 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43735 export PKG_CONFIG_LIBDIR
43736 fi
43737
43738 $PKGCONFIG --libs-only-l libcares`
43739 ares_LDFLAGS=`
43740 if test -n "$ARES_PCDIR"; then
43741 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43742 export PKG_CONFIG_LIBDIR
43743 fi
43744
43745 $PKGCONFIG --libs-only-L libcares`
43746 ares_CPPFLAGS=`
43747 if test -n "$ARES_PCDIR"; then
43748 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43749 export PKG_CONFIG_LIBDIR
43750 fi
43751
43752 $PKGCONFIG --cflags-only-I libcares`
43753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
43754printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
43755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
43756printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43758printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43759 else
43760 ares_CPPFLAGS="-I$want_ares_path/include"
43761 ares_LDFLAGS="-L$want_ares_path/lib"
43762 ares_LIBS="-lcares"
43763 fi
43764 else
43765
43766 if test -n "$PKG_CONFIG"; then
43767 PKGCONFIG="$PKG_CONFIG"
43768 else
43769 if test -n "$ac_tool_prefix"; then
43770 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43771set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43773printf %s "checking for $ac_word... " >&6; }
43774if test ${ac_cv_path_PKGCONFIG+y}
43775then :
43776 printf %s "(cached) " >&6
43777else $as_nop
43778 case $PKGCONFIG in
43779 [\\/]* | ?:[\\/]*)
43780 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43781 ;;
43782 *)
43783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43784as_dummy="$PATH:/usr/bin:/usr/local/bin"
43785for as_dir in $as_dummy
43786do
43787 IFS=$as_save_IFS
43788 case $as_dir in #(((
43789 '') as_dir=./ ;;
43790 */) ;;
43791 *) as_dir=$as_dir/ ;;
43792 esac
43793 for ac_exec_ext in '' $ac_executable_extensions; do
43794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43795 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43797 break 2
43798 fi
43799done
43800 done
43801IFS=$as_save_IFS
43802
43803 ;;
43804esac
43805fi
43806PKGCONFIG=$ac_cv_path_PKGCONFIG
43807if test -n "$PKGCONFIG"; then
43808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43809printf "%s\n" "$PKGCONFIG" >&6; }
43810else
43811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43812printf "%s\n" "no" >&6; }
43813fi
43814
43815
43816fi
43817if test -z "$ac_cv_path_PKGCONFIG"; then
43818 ac_pt_PKGCONFIG=$PKGCONFIG
43819 # Extract the first word of "pkg-config", so it can be a program name with args.
43820set dummy pkg-config; ac_word=$2
43821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43822printf %s "checking for $ac_word... " >&6; }
43823if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
43824then :
43825 printf %s "(cached) " >&6
43826else $as_nop
43827 case $ac_pt_PKGCONFIG in
43828 [\\/]* | ?:[\\/]*)
43829 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43830 ;;
43831 *)
43832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43833as_dummy="$PATH:/usr/bin:/usr/local/bin"
43834for as_dir in $as_dummy
43835do
43836 IFS=$as_save_IFS
43837 case $as_dir in #(((
43838 '') as_dir=./ ;;
43839 */) ;;
43840 *) as_dir=$as_dir/ ;;
43841 esac
43842 for ac_exec_ext in '' $ac_executable_extensions; do
43843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43844 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43846 break 2
43847 fi
43848done
43849 done
43850IFS=$as_save_IFS
43851
43852 ;;
43853esac
43854fi
43855ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43856if test -n "$ac_pt_PKGCONFIG"; then
43857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43858printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
43859else
43860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43861printf "%s\n" "no" >&6; }
43862fi
43863
43864 if test "x$ac_pt_PKGCONFIG" = x; then
43865 PKGCONFIG="no"
43866 else
43867 case $cross_compiling:$ac_tool_warned in
43868yes:)
43869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43870printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43871ac_tool_warned=yes ;;
43872esac
43873 PKGCONFIG=$ac_pt_PKGCONFIG
43874 fi
43875else
43876 PKGCONFIG="$ac_cv_path_PKGCONFIG"
43877fi
43878
43879 fi
43880
43881 if test "x$PKGCONFIG" != "xno"; then
43882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43883printf %s "checking for libcares options with pkg-config... " >&6; }
43884 itexists=`
43885 if test -n ""; then
43886 PKG_CONFIG_LIBDIR=""
43887 export PKG_CONFIG_LIBDIR
43888 fi
43889 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43890
43891 if test -z "$itexists"; then
43892 PKGCONFIG="no"
43893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43894printf "%s\n" "no" >&6; }
43895 else
43896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
43897printf "%s\n" "found" >&6; }
43898 fi
43899 fi
43900
43901 if test "$PKGCONFIG" != "no" ; then
43902 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
43903 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
43904 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
43905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
43906printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
43907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
43908printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43910printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43911 else
43912 ares_CPPFLAGS=""
43913 ares_LDFLAGS=""
43914 ares_LIBS="-lcares"
43915 fi
43916 fi
43917 #
43918 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
43919 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
43920 LIBS="$ares_LIBS $clean_LIBS"
43921 #
43922
43923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
43924printf %s "checking that c-ares is good and recent enough... " >&6; }
43925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43926/* end confdefs.h. */
43927
43928
43929#include <ares.h>
43930 /* set of dummy functions in case c-ares was built with debug */
43931 void curl_dofree() { }
43932 void curl_sclose() { }
43933 void curl_domalloc() { }
43934 void curl_docalloc() { }
43935 void curl_socket() { }
43936
43937int main (void)
43938{
43939
43940 ares_channel channel;
43941 ares_cancel(channel); /* added in 1.2.0 */
43942 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
43943 ares_dup(&channel, channel); /* added in 1.6.0 */
43944
43945 ;
43946 return 0;
43947}
43948
43949_ACEOF
43950if ac_fn_c_try_link "$LINENO"
43951then :
43952
43953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43954printf "%s\n" "yes" >&6; }
43955
43956else $as_nop
43957
43958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43959printf "%s\n" "no" >&6; }
43960 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
43961 CPPFLAGS="$clean_CPPFLAGS"
43962 LDFLAGS="$clean_LDFLAGS"
43963 LIBS="$clean_LIBS"
43964 # prevent usage
43965 want_ares="no"
43966
43967fi
43968rm -f core conftest.err conftest.$ac_objext conftest.beam \
43969 conftest$ac_exeext conftest.$ac_ext
43970
43971 if test "$want_ares" = "yes"; then
43972
43973printf "%s\n" "#define USE_ARES 1" >>confdefs.h
43974
43975 USE_ARES=1
43976
43977 curl_res_msg="c-ares"
43978 fi
43979 fi
43980
43981
43982if test "x$curl_cv_native_windows" != "xyes" &&
43983 test "x$enable_shared" = "xyes"; then
43984 build_libhostname=yes
43985else
43986 build_libhostname=no
43987fi
43988 if test x$build_libhostname = xyes; then
43989 BUILD_LIBHOSTNAME_TRUE=
43990 BUILD_LIBHOSTNAME_FALSE='#'
43991else
43992 BUILD_LIBHOSTNAME_TRUE='#'
43993 BUILD_LIBHOSTNAME_FALSE=
43994fi
43995
43996
43997if test "x$want_ares" != xyes; then
43998
43999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44000printf %s "checking whether to enable the threaded resolver... " >&6; }
44001 OPT_THRES="default"
44002 # Check whether --enable-threaded_resolver was given.
44003if test ${enable_threaded_resolver+y}
44004then :
44005 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44006fi
44007
44008 case "$OPT_THRES" in
44009 no)
44010 want_thres="no"
44011 ;;
44012 *)
44013 want_thres="yes"
44014 ;;
44015 esac
44016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44017printf "%s\n" "$want_thres" >&6; }
44018
44019fi
44020
44021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44022printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44023# Check whether --enable-pthreads was given.
44024if test ${enable_pthreads+y}
44025then :
44026 enableval=$enable_pthreads; case "$enableval" in
44027 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44028printf "%s\n" "no" >&6; }
44029 want_pthreads=no
44030 ;;
44031 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44032printf "%s\n" "yes" >&6; }
44033 want_pthreads=yes
44034 ;;
44035 esac
44036else $as_nop
44037
44038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44039printf "%s\n" "auto" >&6; }
44040 want_pthreads=auto
44041
44042
44043fi
44044
44045
44046if test "$want_pthreads" != "no"; then
44047 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44048 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44049 fi
44050 if test "$dontwant_rt" != "no"; then
44051 if test "$want_pthreads" = "yes"; then
44052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44053printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44054 fi
44055 want_pthreads=no
44056 fi
44057fi
44058
44059if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44060 want_pthreads=no
44061fi
44062
44063if test "$want_pthreads" != "no"; then
44064 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44065if test "x$ac_cv_header_pthread_h" = xyes
44066then :
44067
44068printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44069
44070 save_CFLAGS="$CFLAGS"
44071 save_LIBS="$LIBS"
44072
44073 LIBS=
44074 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44075if test "x$ac_cv_func_pthread_create" = xyes
44076then :
44077 USE_THREADS_POSIX=1
44078fi
44079
44080 LIBS="$save_LIBS"
44081
44082 case $host in
44083 *-hp-hpux*)
44084 USE_THREADS_POSIX=""
44085 ;;
44086 *)
44087 ;;
44088 esac
44089
44090 if test "$USE_THREADS_POSIX" != "1"
44091 then
44092 # assign PTHREAD for pkg-config use
44093 PTHREAD=" -pthread"
44094
44095 case $host in
44096 *-ibm-aix*)
44097 COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44098 if test x"$COMPILER_VERSION" = "x"; then
44099 CFLAGS="$CFLAGS -pthread"
44100 else
44101 CFLAGS="$CFLAGS -qthreaded"
44102 fi
44103 ;;
44104 powerpc-*amigaos*)
44105 PTHREAD=" -lpthread"
44106 ;;
44107 *)
44108 CFLAGS="$CFLAGS -pthread"
44109 ;;
44110 esac
44111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44112printf %s "checking for pthread_create in -lpthread... " >&6; }
44113if test ${ac_cv_lib_pthread_pthread_create+y}
44114then :
44115 printf %s "(cached) " >&6
44116else $as_nop
44117 ac_check_lib_save_LIBS=$LIBS
44118LIBS="-lpthread $LIBS"
44119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44120/* end confdefs.h. */
44121
44122
44123#ifdef __cplusplus
44124extern "C"
44125#endif
44126char pthread_create ();
44127int main (void)
44128{
44129return pthread_create ();
44130 ;
44131 return 0;
44132}
44133_ACEOF
44134if ac_fn_c_try_link "$LINENO"
44135then :
44136 ac_cv_lib_pthread_pthread_create=yes
44137else $as_nop
44138 ac_cv_lib_pthread_pthread_create=no
44139fi
44140rm -f core conftest.err conftest.$ac_objext conftest.beam \
44141 conftest$ac_exeext conftest.$ac_ext
44142LIBS=$ac_check_lib_save_LIBS
44143fi
44144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44145printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44146if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44147then :
44148 USE_THREADS_POSIX=1
44149else $as_nop
44150 CFLAGS="$save_CFLAGS"
44151fi
44152
44153 fi
44154
44155 if test "x$USE_THREADS_POSIX" = "x1"
44156 then
44157
44158printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44159
44160 curl_res_msg="POSIX threaded"
44161 fi
44162
44163fi
44164
44165fi
44166
44167if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44168 if test "$want_pthreads" = "yes"; then
44169 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44170 fi
44171 if test "$curl_cv_native_windows" = "yes"; then
44172 USE_THREADS_WIN32=1
44173
44174printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44175
44176 curl_res_msg="Win32 threaded"
44177 else
44178 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44179 fi
44180fi
44181
44182
44183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44184printf %s "checking convert -I options to -isystem... " >&6; }
44185 if test "$compiler_id" = "GNU_C" ||
44186 test "$compiler_id" = "CLANG"; then
44187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44188printf "%s\n" "yes" >&6; }
44189 tmp_has_include="no"
44190 tmp_chg_FLAGS="$CFLAGS"
44191 for word1 in $tmp_chg_FLAGS; do
44192 case "$word1" in
44193 -I*)
44194 tmp_has_include="yes"
44195 ;;
44196 esac
44197 done
44198 if test "$tmp_has_include" = "yes"; then
44199 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44200 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44201 CFLAGS="$tmp_chg_FLAGS"
44202 squeeze CFLAGS
44203 fi
44204 tmp_has_include="no"
44205 tmp_chg_FLAGS="$CPPFLAGS"
44206 for word1 in $tmp_chg_FLAGS; do
44207 case "$word1" in
44208 -I*)
44209 tmp_has_include="yes"
44210 ;;
44211 esac
44212 done
44213 if test "$tmp_has_include" = "yes"; then
44214 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44215 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44216 CPPFLAGS="$tmp_chg_FLAGS"
44217 squeeze CPPFLAGS
44218 fi
44219 else
44220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44221printf "%s\n" "no" >&6; }
44222 fi
44223
44224
44225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44226printf %s "checking whether to enable verbose strings... " >&6; }
44227# Check whether --enable-verbose was given.
44228if test ${enable_verbose+y}
44229then :
44230 enableval=$enable_verbose; case "$enableval" in
44231 no)
44232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44233printf "%s\n" "no" >&6; }
44234
44235printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44236
44237 curl_verbose_msg="no"
44238 ;;
44239 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44240printf "%s\n" "yes" >&6; }
44241 ;;
44242 esac
44243else $as_nop
44244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44245printf "%s\n" "yes" >&6; }
44246
44247fi
44248
44249
44250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44251printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44252# Check whether --enable-sspi was given.
44253if test ${enable_sspi+y}
44254then :
44255 enableval=$enable_sspi; case "$enableval" in
44256 yes)
44257 if test "$curl_cv_native_windows" = "yes"; then
44258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44259printf "%s\n" "yes" >&6; }
44260
44261printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44262
44263 USE_WINDOWS_SSPI=1
44264
44265 curl_sspi_msg="enabled"
44266 else
44267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44268printf "%s\n" "no" >&6; }
44269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44270printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44271 fi
44272 ;;
44273 *)
44274 if test "x$SCHANNEL_ENABLED" = "x1"; then
44275 # --with-schannel implies --enable-sspi
44276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44277printf "%s\n" "yes" >&6; }
44278 else
44279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44280printf "%s\n" "no" >&6; }
44281 fi
44282 ;;
44283 esac
44284else $as_nop
44285 if test "x$SCHANNEL_ENABLED" = "x1"; then
44286 # --with-schannel implies --enable-sspi
44287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44288printf "%s\n" "yes" >&6; }
44289 else
44290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44291printf "%s\n" "no" >&6; }
44292 fi
44293
44294fi
44295
44296
44297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
44298printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
44299# Check whether --enable-crypto-auth was given.
44300if test ${enable_crypto_auth+y}
44301then :
44302 enableval=$enable_crypto_auth; case "$enableval" in
44303 no)
44304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44305printf "%s\n" "no" >&6; }
44306
44307printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
44308
44309 CURL_DISABLE_CRYPTO_AUTH=1
44310 ;;
44311 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44312printf "%s\n" "yes" >&6; }
44313 ;;
44314 esac
44315else $as_nop
44316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44317printf "%s\n" "yes" >&6; }
44318
44319fi
44320
44321
44322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44323printf %s "checking whether to support NTLM... " >&6; }
44324# Check whether --enable-ntlm was given.
44325if test ${enable_ntlm+y}
44326then :
44327 enableval=$enable_ntlm; case "$enableval" in
44328 no)
44329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44330printf "%s\n" "no" >&6; }
44331
44332printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44333
44334 CURL_DISABLE_NTLM=1
44335 ;;
44336 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44337printf "%s\n" "yes" >&6; }
44338 ;;
44339 esac
44340else $as_nop
44341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44342printf "%s\n" "yes" >&6; }
44343
44344fi
44345
44346
44347
44348 OPT_NTLM_WB="default"
44349 # Check whether --enable-ntlm-wb was given.
44350if test ${enable_ntlm_wb+y}
44351then :
44352 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44353fi
44354
44355 want_ntlm_wb_file="/usr/bin/ntlm_auth"
44356 case "$OPT_NTLM_WB" in
44357 no)
44358 want_ntlm_wb="no"
44359 ;;
44360 default)
44361 want_ntlm_wb="yes"
44362 ;;
44363 *)
44364 want_ntlm_wb="yes"
44365 if test -n "$enableval" && test "$enableval" != "yes"; then
44366 want_ntlm_wb_file="$enableval"
44367 fi
44368 ;;
44369 esac
44370
44371
44372
44373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44374printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44375 if test "$curl_cv_native_windows" = "yes" ||
44376 test "x$SSL_ENABLED" = "x"; then
44377 want_ntlm_wb_file=""
44378 want_ntlm_wb="no"
44379 fi
44380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44381printf "%s\n" "$want_ntlm_wb" >&6; }
44382 if test "$want_ntlm_wb" = "yes"; then
44383
44384printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44385
44386
44387printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44388
44389 NTLM_WB_ENABLED=1
44390 fi
44391
44392
44393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44394printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44395# Check whether --enable-tls-srp was given.
44396if test ${enable_tls_srp+y}
44397then :
44398 enableval=$enable_tls_srp; case "$enableval" in
44399 no)
44400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44401printf "%s\n" "no" >&6; }
44402 want_tls_srp=no
44403 ;;
44404 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44405printf "%s\n" "yes" >&6; }
44406 want_tls_srp=yes
44407 ;;
44408 esac
44409else $as_nop
44410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44411printf "%s\n" "yes" >&6; }
44412 want_tls_srp=yes
44413
44414fi
44415
44416
44417if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44418
44419printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
44420
44421 USE_TLS_SRP=1
44422 curl_tls_srp_msg="enabled"
44423fi
44424
44425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44426printf %s "checking whether to enable Unix domain sockets... " >&6; }
44427# Check whether --enable-unix-sockets was given.
44428if test ${enable_unix_sockets+y}
44429then :
44430 enableval=$enable_unix_sockets; case "$enableval" in
44431 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44432printf "%s\n" "no" >&6; }
44433 want_unix_sockets=no
44434 ;;
44435 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44436printf "%s\n" "yes" >&6; }
44437 want_unix_sockets=yes
44438 ;;
44439 esac
44440else $as_nop
44441
44442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44443printf "%s\n" "auto" >&6; }
44444 want_unix_sockets=auto
44445
44446
44447fi
44448
44449if test "x$want_unix_sockets" != "xno"; then
44450 if test "x$curl_cv_native_windows" = "xyes"; then
44451 USE_UNIX_SOCKETS=1
44452
44453printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44454
44455 curl_unix_sockets_msg="enabled"
44456 else
44457 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
44458 #include <sys/un.h>
44459
44460"
44461if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
44462then :
44463
44464
44465printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44466
44467 USE_UNIX_SOCKETS=1
44468
44469 curl_unix_sockets_msg="enabled"
44470
44471else $as_nop
44472
44473 if test "x$want_unix_sockets" = "xyes"; then
44474 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
44475 fi
44476
44477fi
44478
44479 fi
44480fi
44481
44482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
44483printf %s "checking whether to support cookies... " >&6; }
44484# Check whether --enable-cookies was given.
44485if test ${enable_cookies+y}
44486then :
44487 enableval=$enable_cookies; case "$enableval" in
44488 no)
44489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44490printf "%s\n" "no" >&6; }
44491
44492printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
44493
44494 ;;
44495 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44496printf "%s\n" "yes" >&6; }
44497 ;;
44498 esac
44499else $as_nop
44500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44501printf "%s\n" "yes" >&6; }
44502
44503fi
44504
44505
44506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
44507printf %s "checking whether to support socketpair... " >&6; }
44508# Check whether --enable-socketpair was given.
44509if test ${enable_socketpair+y}
44510then :
44511 enableval=$enable_socketpair; case "$enableval" in
44512 no)
44513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44514printf "%s\n" "no" >&6; }
44515
44516printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
44517
44518 ;;
44519 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44520printf "%s\n" "yes" >&6; }
44521 ;;
44522 esac
44523else $as_nop
44524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44525printf "%s\n" "yes" >&6; }
44526
44527fi
44528
44529
44530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
44531printf %s "checking whether to support HTTP authentication... " >&6; }
44532# Check whether --enable-http-auth was given.
44533if test ${enable_http_auth+y}
44534then :
44535 enableval=$enable_http_auth; case "$enableval" in
44536 no)
44537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44538printf "%s\n" "no" >&6; }
44539
44540printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
44541
44542 ;;
44543 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44544printf "%s\n" "yes" >&6; }
44545 ;;
44546 esac
44547else $as_nop
44548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44549printf "%s\n" "yes" >&6; }
44550
44551fi
44552
44553
44554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
44555printf %s "checking whether to support DoH... " >&6; }
44556# Check whether --enable-doh was given.
44557if test ${enable_doh+y}
44558then :
44559 enableval=$enable_doh; case "$enableval" in
44560 no)
44561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44562printf "%s\n" "no" >&6; }
44563
44564printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
44565
44566 ;;
44567 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44568printf "%s\n" "yes" >&6; }
44569 ;;
44570 esac
44571else $as_nop
44572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44573printf "%s\n" "yes" >&6; }
44574
44575fi
44576
44577
44578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
44579printf %s "checking whether to support the MIME API... " >&6; }
44580# Check whether --enable-mime was given.
44581if test ${enable_mime+y}
44582then :
44583 enableval=$enable_mime; case "$enableval" in
44584 no)
44585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44586printf "%s\n" "no" >&6; }
44587
44588printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
44589
44590 ;;
44591 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44592printf "%s\n" "yes" >&6; }
44593 ;;
44594 esac
44595else $as_nop
44596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44597printf "%s\n" "yes" >&6; }
44598
44599fi
44600
44601
44602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
44603printf %s "checking whether to support date parsing... " >&6; }
44604# Check whether --enable-dateparse was given.
44605if test ${enable_dateparse+y}
44606then :
44607 enableval=$enable_dateparse; case "$enableval" in
44608 no)
44609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44610printf "%s\n" "no" >&6; }
44611
44612printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
44613
44614 ;;
44615 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44616printf "%s\n" "yes" >&6; }
44617 ;;
44618 esac
44619else $as_nop
44620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44621printf "%s\n" "yes" >&6; }
44622
44623fi
44624
44625
44626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
44627printf %s "checking whether to support netrc parsing... " >&6; }
44628# Check whether --enable-netrc was given.
44629if test ${enable_netrc+y}
44630then :
44631 enableval=$enable_netrc; case "$enableval" in
44632 no)
44633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44634printf "%s\n" "no" >&6; }
44635
44636printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
44637
44638 ;;
44639 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44640printf "%s\n" "yes" >&6; }
44641 ;;
44642 esac
44643else $as_nop
44644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44645printf "%s\n" "yes" >&6; }
44646
44647fi
44648
44649
44650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
44651printf %s "checking whether to support progress-meter... " >&6; }
44652# Check whether --enable-progress-meter was given.
44653if test ${enable_progress_meter+y}
44654then :
44655 enableval=$enable_progress_meter; case "$enableval" in
44656 no)
44657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44658printf "%s\n" "no" >&6; }
44659
44660printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
44661
44662 ;;
44663 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44664printf "%s\n" "yes" >&6; }
44665 ;;
44666 esac
44667else $as_nop
44668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44669printf "%s\n" "yes" >&6; }
44670
44671fi
44672
44673
44674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
44675printf %s "checking whether to support DNS shuffling... " >&6; }
44676# Check whether --enable-dnsshuffle was given.
44677if test ${enable_dnsshuffle+y}
44678then :
44679 enableval=$enable_dnsshuffle; case "$enableval" in
44680 no)
44681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44682printf "%s\n" "no" >&6; }
44683
44684printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
44685
44686 ;;
44687 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44688printf "%s\n" "yes" >&6; }
44689 ;;
44690 esac
44691else $as_nop
44692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44693printf "%s\n" "yes" >&6; }
44694
44695fi
44696
44697
44698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
44699printf %s "checking whether to support curl_easy_option*... " >&6; }
44700# Check whether --enable-get-easy-options was given.
44701if test ${enable_get_easy_options+y}
44702then :
44703 enableval=$enable_get_easy_options; case "$enableval" in
44704 no)
44705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44706printf "%s\n" "no" >&6; }
44707
44708printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
44709
44710 ;;
44711 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44712printf "%s\n" "yes" >&6; }
44713 ;;
44714 esac
44715else $as_nop
44716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44717printf "%s\n" "yes" >&6; }
44718
44719fi
44720
44721
44722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
44723printf %s "checking whether to support alt-svc... " >&6; }
44724# Check whether --enable-alt-svc was given.
44725if test ${enable_alt_svc+y}
44726then :
44727 enableval=$enable_alt_svc; case "$enableval" in
44728 no)
44729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44730printf "%s\n" "no" >&6; }
44731
44732printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
44733
44734 curl_altsvc_msg="no";
44735 enable_altsvc="no"
44736 ;;
44737 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44738printf "%s\n" "yes" >&6; }
44739 ;;
44740 esac
44741else $as_nop
44742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44743printf "%s\n" "yes" >&6; }
44744
44745fi
44746
44747
44748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
44749printf %s "checking whether to support headers-api... " >&6; }
44750# Check whether --enable-headers-api was given.
44751if test ${enable_headers_api+y}
44752then :
44753 enableval=$enable_headers_api; case "$enableval" in
44754 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44755printf "%s\n" "no" >&6; }
44756 curl_headers_msg="no (--enable-headers-api)"
44757
44758printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
44759
44760 ;;
44761 *)
44762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44763printf "%s\n" "yes" >&6; }
44764 ;;
44765 esac
44766else $as_nop
44767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44768printf "%s\n" "yes" >&6; }
44769
44770fi
44771
44772
44773if test -n "$SSL_ENABLED"; then
44774
44775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
44776printf %s "checking whether to support HSTS... " >&6; }
44777 # Check whether --enable-hsts was given.
44778if test ${enable_hsts+y}
44779then :
44780 enableval=$enable_hsts; case "$enableval" in
44781 no)
44782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44783printf "%s\n" "no" >&6; }
44784 hsts="no"
44785 ;;
44786 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44787printf "%s\n" "yes" >&6; }
44788 ;;
44789 esac
44790else $as_nop
44791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
44792printf "%s\n" "$hsts" >&6; }
44793
44794fi
44795
44796else
44797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
44798printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
44799 hsts="no"
44800fi
44801
44802if test "x$hsts" != "xyes"; then
44803 curl_hsts_msg="no (--enable-hsts)";
44804
44805printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
44806
44807fi
44808
44809if test "x$want_ech" != "xno"; then
44810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
44811printf %s "checking whether ECH support is available... " >&6; }
44812
44813 ECH_ENABLED=0
44814 ECH_SUPPORT=''
44815
44816 if test "x$OPENSSL_ENABLED" = "x1"; then
44817
44818 for ac_func in SSL_get_ech_status
44819do :
44820 ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
44821if test "x$ac_cv_func_SSL_get_ech_status" = xyes
44822then :
44823 printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
44824 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
44825 ECH_ENABLED=1
44826fi
44827
44828done
44829
44830 fi
44831
44832 if test "x$ECH_ENABLED" = "x1"; then
44833
44834printf "%s\n" "#define USE_ECH 1" >>confdefs.h
44835
44836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
44837printf "%s\n" "$ECH_SUPPORT" >&6; }
44838 experimental="$experimental ECH"
44839 else
44840 as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
44841 fi
44842fi
44843
44844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
44845printf %s "checking whether to support WebSockets... " >&6; }
44846# Check whether --enable-websockets was given.
44847if test ${enable_websockets+y}
44848then :
44849 enableval=$enable_websockets; case "$enableval" in
44850 no)
44851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44852printf "%s\n" "no" >&6; }
44853 ;;
44854 *)
44855 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
44856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44857printf "%s\n" "yes" >&6; }
44858 curl_ws_msg="enabled"
44859
44860printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
44861
44862 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
44863 if test "x$SSL_ENABLED" = "x1"; then
44864 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
44865 fi
44866 experimental="$experimental Websockets"
44867 else
44868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44869printf "%s\n" "no" >&6; }
44870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
44871printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
44872 fi
44873 ;;
44874 esac
44875else $as_nop
44876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44877printf "%s\n" "no" >&6; }
44878
44879fi
44880
44881
44882
44883
44884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
44885printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
44886 CFLAG_CURL_SYMBOL_HIDING=""
44887 doing_symbol_hiding="no"
44888 if test "$want_symbol_hiding" = "yes" &&
44889 test "$supports_symbol_hiding" = "yes"; then
44890 doing_symbol_hiding="yes"
44891 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
44892
44893printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
44894
44895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44896printf "%s\n" "yes" >&6; }
44897 else
44898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44899printf "%s\n" "no" >&6; }
44900 fi
44901 if test x$doing_symbol_hiding = xyes; then
44902 DOING_CURL_SYMBOL_HIDING_TRUE=
44903 DOING_CURL_SYMBOL_HIDING_FALSE='#'
44904else
44905 DOING_CURL_SYMBOL_HIDING_TRUE='#'
44906 DOING_CURL_SYMBOL_HIDING_FALSE=
44907fi
44908
44909
44910
44911
44912LIBCURL_LIBS="$LIBS$PTHREAD"
44913
44914
44915
44916
44917
44918BLANK_AT_MAKETIME=
44919
44920
44921 if test x$cross_compiling = xyes; then
44922 CROSSCOMPILING_TRUE=
44923 CROSSCOMPILING_FALSE='#'
44924else
44925 CROSSCOMPILING_TRUE='#'
44926 CROSSCOMPILING_FALSE=
44927fi
44928
44929
44930ENABLE_SHARED="$enable_shared"
44931
44932
44933ENABLE_STATIC="$enable_static"
44934
44935
44936if test "x$enable_shared" = "xno"; then
44937 LIBCURL_NO_SHARED=$LIBCURL_LIBS
44938else
44939 LIBCURL_NO_SHARED=
44940fi
44941
44942
44943
44944if test "x$OPENSSL_ENABLED" = "x1"; then
44945 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44946elif test -n "$SSL_ENABLED"; then
44947 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44948fi
44949if test "x$IPV6_ENABLED" = "x1"; then
44950 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
44951fi
44952if test "x$USE_UNIX_SOCKETS" = "x1"; then
44953 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
44954fi
44955if test "x$HAVE_LIBZ" = "x1"; then
44956 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
44957fi
44958if test "x$HAVE_BROTLI" = "x1"; then
44959 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
44960fi
44961if test "x$HAVE_ZSTD" = "x1"; then
44962 SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
44963fi
44964if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
44965 -o "x$USE_THREADS_WIN32" = "x1"; then
44966 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
44967fi
44968if test "x$IDN_ENABLED" = "x1"; then
44969 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
44970fi
44971if test "x$USE_WINDOWS_SSPI" = "x1"; then
44972 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
44973fi
44974
44975if test "x$HAVE_GSSAPI" = "x1"; then
44976 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
44977fi
44978
44979if test "x$curl_psl_msg" = "xenabled"; then
44980 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
44981fi
44982
44983if test "x$curl_gsasl_msg" = "xenabled"; then
44984 SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
44985fi
44986
44987if test "x$enable_altsvc" = "xyes"; then
44988 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
44989fi
44990if test "x$hsts" = "xyes"; then
44991 SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
44992fi
44993
44994if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
44995 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
44996 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
44997fi
44998
44999if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45000 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45001 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45002fi
45003
45004use_curl_ntlm_core=no
45005
45006if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45007 "x$CURL_DISABLE_NTLM" != "x1"; then
45008 if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45009 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
45010 -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45011 -o "x$USE_WIN32_CRYPTO" = "x1" \
45012 -o "x$WOLFSSL_NTLM" = "x1"; then
45013 use_curl_ntlm_core=yes
45014 fi
45015
45016 if test "x$use_curl_ntlm_core" = "xyes" \
45017 -o "x$USE_WINDOWS_SSPI" = "x1"; then
45018 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45019
45020 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45021 "x$NTLM_WB_ENABLED" = "x1"; then
45022 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45023 fi
45024 fi
45025fi
45026
45027if test "x$USE_TLS_SRP" = "x1"; then
45028 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45029fi
45030
45031if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
45032 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45033fi
45034
45035if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
45036 -o "x$USE_MSH3" = "x1"; then
45037 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45038fi
45039
45040if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45041 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45042fi
45043
45044if test "x$https_proxy" != "xno"; then
45045 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
45046 -o "x$NSS_ENABLED" = "x1"; then
45047 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45048 fi
45049fi
45050
45051if test "x$ECH_ENABLED" = "x1"; then
45052 SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45053fi
45054
45055if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45056 if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45057 "$curl_win32_file_api" = "win32_large_files"; then
45058 SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45059 fi
45060fi
45061
45062if test "$tst_atomic" = "yes"; then
45063 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45064else
45065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45066/* end confdefs.h. */
45067
45068
45069 #include <windows.h>
45070
45071int main (void)
45072{
45073
45074 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45075 #error
45076 #endif
45077
45078 ;
45079 return 0;
45080}
45081
45082_ACEOF
45083if ac_fn_c_try_compile "$LINENO"
45084then :
45085
45086 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45087
45088fi
45089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45090fi
45091
45092SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45093
45094
45095if test "x$CURL_DISABLE_HTTP" != "x1"; then
45096 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
45097 if test "x$SSL_ENABLED" = "x1"; then
45098 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45099 fi
45100fi
45101if test "x$CURL_DISABLE_FTP" != "x1"; then
45102 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45103 if test "x$SSL_ENABLED" = "x1"; then
45104 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45105 fi
45106fi
45107if test "x$CURL_DISABLE_FILE" != "x1"; then
45108 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45109fi
45110if test "x$CURL_DISABLE_TELNET" != "x1"; then
45111 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45112fi
45113if test "x$CURL_DISABLE_LDAP" != "x1"; then
45114 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45115 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45116 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45117 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
45118 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45119 fi
45120 fi
45121fi
45122if test "x$CURL_DISABLE_DICT" != "x1"; then
45123 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45124fi
45125if test "x$CURL_DISABLE_TFTP" != "x1"; then
45126 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45127fi
45128if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45129 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45130 if test "x$SSL_ENABLED" = "x1"; then
45131 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45132 fi
45133fi
45134if test "x$CURL_DISABLE_MQTT" != "x1"; then
45135 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45136fi
45137if test "x$CURL_DISABLE_POP3" != "x1"; then
45138 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45139 if test "x$SSL_ENABLED" = "x1"; then
45140 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45141 fi
45142fi
45143if test "x$CURL_DISABLE_IMAP" != "x1"; then
45144 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45145 if test "x$SSL_ENABLED" = "x1"; then
45146 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45147 fi
45148fi
45149if test "x$CURL_DISABLE_SMB" != "x1" \
45150 -a "x$use_curl_ntlm_core" = "xyes"; then
45151 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45152 if test "x$SSL_ENABLED" = "x1"; then
45153 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45154 fi
45155fi
45156if test "x$CURL_DISABLE_SMTP" != "x1"; then
45157 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45158 if test "x$SSL_ENABLED" = "x1"; then
45159 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45160 fi
45161fi
45162if test "x$USE_LIBSSH2" = "x1"; then
45163 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45164 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45165fi
45166if test "x$USE_LIBSSH" = "x1"; then
45167 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45168 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45169fi
45170if test "x$USE_WOLFSSH" = "x1"; then
45171 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45172fi
45173if test "x$CURL_DISABLE_RTSP" != "x1"; then
45174 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45175fi
45176if test "x$USE_LIBRTMP" = "x1"; then
45177 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45178fi
45179
45180SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45181
45182
45183
45184
45185squeeze CFLAGS
45186squeeze CPPFLAGS
45187squeeze DEFS
45188squeeze LDFLAGS
45189squeeze LIBS
45190
45191squeeze LIBCURL_LIBS
45192squeeze CURL_NETWORK_LIBS
45193squeeze CURL_NETWORK_AND_TIME_LIBS
45194
45195squeeze SUPPORT_FEATURES
45196squeeze SUPPORT_PROTOCOLS
45197
45198
45199
45200 xc_bad_var_libs=no
45201 for xc_word in $LIBS; do
45202 case "$xc_word" in
45203 -l* | --library=*)
45204 :
45205 ;;
45206 *)
45207 xc_bad_var_libs=yes
45208 ;;
45209 esac
45210 done
45211 if test $xc_bad_var_libs = yes; then
45212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45213printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45215printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45216 fi
45217
45218
45219 xc_bad_var_ldflags=no
45220 for xc_word in $LDFLAGS; do
45221 case "$xc_word" in
45222 -D*)
45223 xc_bad_var_ldflags=yes
45224 ;;
45225 -U*)
45226 xc_bad_var_ldflags=yes
45227 ;;
45228 -I*)
45229 xc_bad_var_ldflags=yes
45230 ;;
45231 -l* | --library=*)
45232 xc_bad_var_ldflags=yes
45233 ;;
45234 esac
45235 done
45236 if test $xc_bad_var_ldflags = yes; then
45237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45238printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45239 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45240 for xc_word in $LDFLAGS; do
45241 case "$xc_word" in
45242 -D*)
45243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45244printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45245 ;;
45246 -U*)
45247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45248printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45249 ;;
45250 -I*)
45251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45252printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45253 ;;
45254 -l* | --library=*)
45255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45256printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45257 ;;
45258 esac
45259 done
45260 fi
45261
45262
45263 xc_bad_var_cppflags=no
45264 for xc_word in $CPPFLAGS; do
45265 case "$xc_word" in
45266 -rpath*)
45267 xc_bad_var_cppflags=yes
45268 ;;
45269 -L* | --library-path=*)
45270 xc_bad_var_cppflags=yes
45271 ;;
45272 -l* | --library=*)
45273 xc_bad_var_cppflags=yes
45274 ;;
45275 esac
45276 done
45277 if test $xc_bad_var_cppflags = yes; then
45278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45279printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45280 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45281 for xc_word in $CPPFLAGS; do
45282 case "$xc_word" in
45283 -rpath*)
45284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45285printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45286 ;;
45287 -L* | --library-path=*)
45288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45289printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45290 ;;
45291 -l* | --library=*)
45292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45293printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45294 ;;
45295 esac
45296 done
45297 fi
45298
45299
45300 xc_bad_var_cflags=no
45301 for xc_word in $CFLAGS; do
45302 case "$xc_word" in
45303 -D*)
45304 xc_bad_var_cflags=yes
45305 ;;
45306 -U*)
45307 xc_bad_var_cflags=yes
45308 ;;
45309 -I*)
45310 xc_bad_var_cflags=yes
45311 ;;
45312 -rpath*)
45313 xc_bad_var_cflags=yes
45314 ;;
45315 -L* | --library-path=*)
45316 xc_bad_var_cflags=yes
45317 ;;
45318 -l* | --library=*)
45319 xc_bad_var_cflags=yes
45320 ;;
45321 esac
45322 done
45323 if test $xc_bad_var_cflags = yes; then
45324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45325printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
45326 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45327 for xc_word in $CFLAGS; do
45328 case "$xc_word" in
45329 -D*)
45330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45331printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45332 ;;
45333 -U*)
45334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45335printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45336 ;;
45337 -I*)
45338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45339printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45340 ;;
45341 -rpath*)
45342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45343printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45344 ;;
45345 -L* | --library-path=*)
45346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45347printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45348 ;;
45349 -l* | --library=*)
45350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45351printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45352 ;;
45353 esac
45354 done
45355 fi
45356
45357 if test $xc_bad_var_libs = yes ||
45358 test $xc_bad_var_cflags = yes ||
45359 test $xc_bad_var_ldflags = yes ||
45360 test $xc_bad_var_cppflags = yes; then
45361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
45362printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
45363 fi
45364
45365
45366SSL_BACKENDS=${ssl_backends}
45367
45368
45369if test "x$want_curldebug_assumed" = "xyes" &&
45370 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
45371 ac_configure_args="$ac_configure_args --enable-curldebug"
45372fi
45373
45374ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers lib/libcurl.plist tests/Makefile tests/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"
45375
45376cat >confcache <<\_ACEOF
45377# This file is a shell script that caches the results of configure
45378# tests run on this system so they can be shared between configure
45379# scripts and configure runs, see configure's option --config-cache.
45380# It is not useful on other systems. If it contains results you don't
45381# want to keep, you may remove or edit it.
45382#
45383# config.status only pays attention to the cache file if you give it
45384# the --recheck option to rerun configure.
45385#
45386# `ac_cv_env_foo' variables (set or unset) will be overridden when
45387# loading this file, other *unset* `ac_cv_foo' will be assigned the
45388# following values.
45389
45390_ACEOF
45391
45392# The following way of writing the cache mishandles newlines in values,
45393# but we know of no workaround that is simple, portable, and efficient.
45394# So, we kill variables containing newlines.
45395# Ultrix sh set writes to stderr and can't be redirected directly,
45396# and sets the high bit in the cache file unless we assign to the vars.
45397(
45398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45399 eval ac_val=\$$ac_var
45400 case $ac_val in #(
45401 *${as_nl}*)
45402 case $ac_var in #(
45403 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45404printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45405 esac
45406 case $ac_var in #(
45407 _ | IFS | as_nl) ;; #(
45408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45409 *) { eval $ac_var=; unset $ac_var;} ;;
45410 esac ;;
45411 esac
45412 done
45413
45414 (set) 2>&1 |
45415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45416 *${as_nl}ac_space=\ *)
45417 # `set' does not quote correctly, so add quotes: double-quote
45418 # substitution turns \\\\ into \\, and sed turns \\ into \.
45419 sed -n \
45420 "s/'/'\\\\''/g;
45421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45422 ;; #(
45423 *)
45424 # `set' quotes correctly as required by POSIX, so do not add quotes.
45425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45426 ;;
45427 esac |
45428 sort
45429) |
45430 sed '
45431 /^ac_cv_env_/b end
45432 t clear
45433 :clear
45434 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
45435 t end
45436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45437 :end' >>confcache
45438if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45439 if test -w "$cache_file"; then
45440 if test "x$cache_file" != "x/dev/null"; then
45441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45442printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
45443 if test ! -f "$cache_file" || test -h "$cache_file"; then
45444 cat confcache >"$cache_file"
45445 else
45446 case $cache_file in #(
45447 */* | ?:*)
45448 mv -f confcache "$cache_file"$$ &&
45449 mv -f "$cache_file"$$ "$cache_file" ;; #(
45450 *)
45451 mv -f confcache "$cache_file" ;;
45452 esac
45453 fi
45454 fi
45455 else
45456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45457printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
45458 fi
45459fi
45460rm -f confcache
45461
45462test "x$prefix" = xNONE && prefix=$ac_default_prefix
45463# Let make expand exec_prefix.
45464test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45465
45466DEFS=-DHAVE_CONFIG_H
45467
45468ac_libobjs=
45469ac_ltlibobjs=
45470U=
45471for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45472 # 1. Remove the extension, and $U if already installed.
45473 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45474 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
45475 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45476 # will be set to the directory where LIBOBJS objects are built.
45477 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45478 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45479done
45480LIBOBJS=$ac_libobjs
45481
45482LTLIBOBJS=$ac_ltlibobjs
45483
45484
45485if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45486 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
45487Usually this means the macro was only invoked conditionally." "$LINENO" 5
45488fi
45489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
45490printf %s "checking that generated files are newer than configure... " >&6; }
45491 if test -n "$am_sleep_pid"; then
45492 # Hide warnings about reused PIDs.
45493 wait $am_sleep_pid 2>/dev/null
45494 fi
45495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
45496printf "%s\n" "done" >&6; }
45497if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45498 as_fn_error $? "conditional \"AMDEP\" was never defined.
45499Usually this means the macro was only invoked conditionally." "$LINENO" 5
45500fi
45501if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45502 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45503Usually this means the macro was only invoked conditionally." "$LINENO" 5
45504fi
45505 if test -n "$EXEEXT"; then
45506 am__EXEEXT_TRUE=
45507 am__EXEEXT_FALSE='#'
45508else
45509 am__EXEEXT_TRUE='#'
45510 am__EXEEXT_FALSE=
45511fi
45512
45513if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
45514 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
45515Usually this means the macro was only invoked conditionally." "$LINENO" 5
45516fi
45517if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
45518 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
45519Usually this means the macro was only invoked conditionally." "$LINENO" 5
45520fi
45521if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
45522 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
45523Usually this means the macro was only invoked conditionally." "$LINENO" 5
45524fi
45525if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
45526 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
45527Usually this means the macro was only invoked conditionally." "$LINENO" 5
45528fi
45529if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
45530 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
45531Usually this means the macro was only invoked conditionally." "$LINENO" 5
45532fi
45533if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
45534 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
45535Usually this means the macro was only invoked conditionally." "$LINENO" 5
45536fi
45537if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
45538 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
45539Usually this means the macro was only invoked conditionally." "$LINENO" 5
45540fi
45541if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
45542 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
45543Usually this means the macro was only invoked conditionally." "$LINENO" 5
45544fi
45545if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
45546 as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
45547Usually this means the macro was only invoked conditionally." "$LINENO" 5
45548fi
45549if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
45550 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
45551Usually this means the macro was only invoked conditionally." "$LINENO" 5
45552fi
45553if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
45554 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
45555Usually this means the macro was only invoked conditionally." "$LINENO" 5
45556fi
45557if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
45558 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
45559Usually this means the macro was only invoked conditionally." "$LINENO" 5
45560fi
45561if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
45562 as_fn_error $? "conditional \"USE_GSASL\" was never defined.
45563Usually this means the macro was only invoked conditionally." "$LINENO" 5
45564fi
45565if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
45566 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
45567Usually this means the macro was only invoked conditionally." "$LINENO" 5
45568fi
45569if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
45570 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
45571Usually this means the macro was only invoked conditionally." "$LINENO" 5
45572fi
45573if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
45574 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
45575Usually this means the macro was only invoked conditionally." "$LINENO" 5
45576fi
45577if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
45578 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
45579Usually this means the macro was only invoked conditionally." "$LINENO" 5
45580fi
45581if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
45582 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
45583Usually this means the macro was only invoked conditionally." "$LINENO" 5
45584fi
45585
45586: "${CONFIG_STATUS=./config.status}"
45587ac_write_fail=0
45588ac_clean_files_save=$ac_clean_files
45589ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45591printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
45592as_write_fail=0
45593cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45594#! $SHELL
45595# Generated by $as_me.
45596# Run this file to recreate the current configuration.
45597# Compiler output produced by configure, useful for debugging
45598# configure, is in config.log if it exists.
45599
45600debug=false
45601ac_cs_recheck=false
45602ac_cs_silent=false
45603
45604SHELL=\${CONFIG_SHELL-$SHELL}
45605export SHELL
45606_ASEOF
45607cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45608## -------------------- ##
45609## M4sh Initialization. ##
45610## -------------------- ##
45611
45612# Be more Bourne compatible
45613DUALCASE=1; export DUALCASE # for MKS sh
45614as_nop=:
45615if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
45616then :
45617 emulate sh
45618 NULLCMD=:
45619 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45620 # is contrary to our usage. Disable this feature.
45621 alias -g '${1+"$@"}'='"$@"'
45622 setopt NO_GLOB_SUBST
45623else $as_nop
45624 case `(set -o) 2>/dev/null` in #(
45625 *posix*) :
45626 set -o posix ;; #(
45627 *) :
45628 ;;
45629esac
45630fi
45631
45632
45633
45634# Reset variables that may have inherited troublesome values from
45635# the environment.
45636
45637# IFS needs to be set, to space, tab, and newline, in precisely that order.
45638# (If _AS_PATH_WALK were called with IFS unset, it would have the
45639# side effect of setting IFS to empty, thus disabling word splitting.)
45640# Quoting is to prevent editors from complaining about space-tab.
45641as_nl='
45642'
45643export as_nl
45644IFS=" "" $as_nl"
45645
45646PS1='$ '
45647PS2='> '
45648PS4='+ '
45649
45650# Ensure predictable behavior from utilities with locale-dependent output.
45651LC_ALL=C
45652export LC_ALL
45653LANGUAGE=C
45654export LANGUAGE
45655
45656# We cannot yet rely on "unset" to work, but we need these variables
45657# to be unset--not just set to an empty or harmless value--now, to
45658# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
45659# also avoids known problems related to "unset" and subshell syntax
45660# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
45661for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
45662do eval test \${$as_var+y} \
45663 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45664done
45665
45666# Ensure that fds 0, 1, and 2 are open.
45667if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
45668if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
45669if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
45670
45671
45672
45673# Find who we are. Look in the path if we contain no directory separator.
45674as_myself=
45675case $0 in #((
45676 *[\\/]* ) as_myself=$0 ;;
45677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45678for as_dir in $PATH
45679do
45680 IFS=$as_save_IFS
45681 case $as_dir in #(((
45682 '') as_dir=./ ;;
45683 */) ;;
45684 *) as_dir=$as_dir/ ;;
45685 esac
45686 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
45687 done
45688IFS=$as_save_IFS
45689
45690 ;;
45691esac
45692# We did not find ourselves, most probably we were run as `sh COMMAND'
45693# in which case we are not to be found in the path.
45694if test "x$as_myself" = x; then
45695 as_myself=$0
45696fi
45697if test ! -f "$as_myself"; then
45698 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45699 exit 1
45700fi
45701
45702
45703
45704# as_fn_error STATUS ERROR [LINENO LOG_FD]
45705# ----------------------------------------
45706# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45707# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45708# script with STATUS, using 1 if that was 0.
45709as_fn_error ()
45710{
45711 as_status=$1; test $as_status -eq 0 && as_status=1
45712 if test "$4"; then
45713 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45715 fi
45716 printf "%s\n" "$as_me: error: $2" >&2
45717 as_fn_exit $as_status
45718} # as_fn_error
45719
45720
45721
45722# as_fn_set_status STATUS
45723# -----------------------
45724# Set $? to STATUS, without forking.
45725as_fn_set_status ()
45726{
45727 return $1
45728} # as_fn_set_status
45729
45730# as_fn_exit STATUS
45731# -----------------
45732# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45733as_fn_exit ()
45734{
45735 set +e
45736 as_fn_set_status $1
45737 exit $1
45738} # as_fn_exit
45739
45740# as_fn_unset VAR
45741# ---------------
45742# Portably unset VAR.
45743as_fn_unset ()
45744{
45745 { eval $1=; unset $1;}
45746}
45747as_unset=as_fn_unset
45748
45749# as_fn_append VAR VALUE
45750# ----------------------
45751# Append the text in VALUE to the end of the definition contained in VAR. Take
45752# advantage of any shell optimizations that allow amortized linear growth over
45753# repeated appends, instead of the typical quadratic growth present in naive
45754# implementations.
45755if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
45756then :
45757 eval 'as_fn_append ()
45758 {
45759 eval $1+=\$2
45760 }'
45761else $as_nop
45762 as_fn_append ()
45763 {
45764 eval $1=\$$1\$2
45765 }
45766fi # as_fn_append
45767
45768# as_fn_arith ARG...
45769# ------------------
45770# Perform arithmetic evaluation on the ARGs, and store the result in the
45771# global $as_val. Take advantage of shells that can avoid forks. The arguments
45772# must be portable across $(()) and expr.
45773if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
45774then :
45775 eval 'as_fn_arith ()
45776 {
45777 as_val=$(( $* ))
45778 }'
45779else $as_nop
45780 as_fn_arith ()
45781 {
45782 as_val=`expr "$@" || test $? -eq 1`
45783 }
45784fi # as_fn_arith
45785
45786
45787if expr a : '\(a\)' >/dev/null 2>&1 &&
45788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45789 as_expr=expr
45790else
45791 as_expr=false
45792fi
45793
45794if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45795 as_basename=basename
45796else
45797 as_basename=false
45798fi
45799
45800if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45801 as_dirname=dirname
45802else
45803 as_dirname=false
45804fi
45805
45806as_me=`$as_basename -- "$0" ||
45807$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45808 X"$0" : 'X\(//\)$' \| \
45809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45810printf "%s\n" X/"$0" |
45811 sed '/^.*\/\([^/][^/]*\)\/*$/{
45812 s//\1/
45813 q
45814 }
45815 /^X\/\(\/\/\)$/{
45816 s//\1/
45817 q
45818 }
45819 /^X\/\(\/\).*/{
45820 s//\1/
45821 q
45822 }
45823 s/.*/./; q'`
45824
45825# Avoid depending upon Character Ranges.
45826as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45827as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45828as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45829as_cr_digits='0123456789'
45830as_cr_alnum=$as_cr_Letters$as_cr_digits
45831
45832
45833# Determine whether it's possible to make 'echo' print without a newline.
45834# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
45835# for compatibility with existing Makefiles.
45836ECHO_C= ECHO_N= ECHO_T=
45837case `echo -n x` in #(((((
45838-n*)
45839 case `echo 'xy\c'` in
45840 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45841 xy) ECHO_C='\c';;
45842 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
45843 ECHO_T=' ';;
45844 esac;;
45845*)
45846 ECHO_N='-n';;
45847esac
45848
45849# For backward compatibility with old third-party macros, we provide
45850# the shell variables $as_echo and $as_echo_n. New code should use
45851# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
45852as_echo='printf %s\n'
45853as_echo_n='printf %s'
45854
45855rm -f conf$$ conf$$.exe conf$$.file
45856if test -d conf$$.dir; then
45857 rm -f conf$$.dir/conf$$.file
45858else
45859 rm -f conf$$.dir
45860 mkdir conf$$.dir 2>/dev/null
45861fi
45862if (echo >conf$$.file) 2>/dev/null; then
45863 if ln -s conf$$.file conf$$ 2>/dev/null; then
45864 as_ln_s='ln -s'
45865 # ... but there are two gotchas:
45866 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45867 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45868 # In both cases, we have to default to `cp -pR'.
45869 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45870 as_ln_s='cp -pR'
45871 elif ln conf$$.file conf$$ 2>/dev/null; then
45872 as_ln_s=ln
45873 else
45874 as_ln_s='cp -pR'
45875 fi
45876else
45877 as_ln_s='cp -pR'
45878fi
45879rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45880rmdir conf$$.dir 2>/dev/null
45881
45882
45883# as_fn_mkdir_p
45884# -------------
45885# Create "$as_dir" as a directory, including parents if necessary.
45886as_fn_mkdir_p ()
45887{
45888
45889 case $as_dir in #(
45890 -*) as_dir=./$as_dir;;
45891 esac
45892 test -d "$as_dir" || eval $as_mkdir_p || {
45893 as_dirs=
45894 while :; do
45895 case $as_dir in #(
45896 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45897 *) as_qdir=$as_dir;;
45898 esac
45899 as_dirs="'$as_qdir' $as_dirs"
45900 as_dir=`$as_dirname -- "$as_dir" ||
45901$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45902 X"$as_dir" : 'X\(//\)[^/]' \| \
45903 X"$as_dir" : 'X\(//\)$' \| \
45904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45905printf "%s\n" X"$as_dir" |
45906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45907 s//\1/
45908 q
45909 }
45910 /^X\(\/\/\)[^/].*/{
45911 s//\1/
45912 q
45913 }
45914 /^X\(\/\/\)$/{
45915 s//\1/
45916 q
45917 }
45918 /^X\(\/\).*/{
45919 s//\1/
45920 q
45921 }
45922 s/.*/./; q'`
45923 test -d "$as_dir" && break
45924 done
45925 test -z "$as_dirs" || eval "mkdir $as_dirs"
45926 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45927
45928
45929} # as_fn_mkdir_p
45930if mkdir -p . 2>/dev/null; then
45931 as_mkdir_p='mkdir -p "$as_dir"'
45932else
45933 test -d ./-p && rmdir ./-p
45934 as_mkdir_p=false
45935fi
45936
45937
45938# as_fn_executable_p FILE
45939# -----------------------
45940# Test if FILE is an executable regular file.
45941as_fn_executable_p ()
45942{
45943 test -f "$1" && test -x "$1"
45944} # as_fn_executable_p
45945as_test_x='test -x'
45946as_executable_p=as_fn_executable_p
45947
45948# Sed expression to map a string onto a valid CPP name.
45949as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45950
45951# Sed expression to map a string onto a valid variable name.
45952as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45953
45954
45955exec 6>&1
45956## ----------------------------------- ##
45957## Main body of $CONFIG_STATUS script. ##
45958## ----------------------------------- ##
45959_ASEOF
45960test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45961
45962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45963# Save the log message, to keep $0 and so on meaningful, and to
45964# report actual input values of CONFIG_FILES etc. instead of their
45965# values after options handling.
45966ac_log="
45967This file was extended by curl $as_me -, which was
45968generated by GNU Autoconf 2.71. Invocation command line was
45969
45970 CONFIG_FILES = $CONFIG_FILES
45971 CONFIG_HEADERS = $CONFIG_HEADERS
45972 CONFIG_LINKS = $CONFIG_LINKS
45973 CONFIG_COMMANDS = $CONFIG_COMMANDS
45974 $ $0 $@
45975
45976on `(hostname || uname -n) 2>/dev/null | sed 1q`
45977"
45978
45979_ACEOF
45980
45981case $ac_config_files in *"
45982"*) set x $ac_config_files; shift; ac_config_files=$*;;
45983esac
45984
45985case $ac_config_headers in *"
45986"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45987esac
45988
45989
45990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45991# Files that config.status was made for.
45992config_files="$ac_config_files"
45993config_headers="$ac_config_headers"
45994config_commands="$ac_config_commands"
45995
45996_ACEOF
45997
45998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45999ac_cs_usage="\
46000\`$as_me' instantiates files and other configuration actions
46001from templates according to the current configuration. Unless the files
46002and actions are specified as TAGs, all are instantiated by default.
46003
46004Usage: $0 [OPTION]... [TAG]...
46005
46006 -h, --help print this help, then exit
46007 -V, --version print version number and configuration settings, then exit
46008 --config print configuration, then exit
46009 -q, --quiet, --silent
46010 do not print progress messages
46011 -d, --debug don't remove temporary files
46012 --recheck update $as_me by reconfiguring in the same conditions
46013 --file=FILE[:TEMPLATE]
46014 instantiate the configuration file FILE
46015 --header=FILE[:TEMPLATE]
46016 instantiate the configuration header FILE
46017
46018Configuration files:
46019$config_files
46020
46021Configuration headers:
46022$config_headers
46023
46024Configuration commands:
46025$config_commands
46026
46027Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46028
46029_ACEOF
46030ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46031ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46032cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46033ac_cs_config='$ac_cs_config_escaped'
46034ac_cs_version="\\
46035curl config.status -
46036configured by $0, generated by GNU Autoconf 2.71,
46037 with options \\"\$ac_cs_config\\"
46038
46039Copyright (C) 2021 Free Software Foundation, Inc.
46040This config.status script is free software; the Free Software Foundation
46041gives unlimited permission to copy, distribute and modify it."
46042
46043ac_pwd='$ac_pwd'
46044srcdir='$srcdir'
46045INSTALL='$INSTALL'
46046MKDIR_P='$MKDIR_P'
46047AWK='$AWK'
46048test -n "\$AWK" || AWK=awk
46049_ACEOF
46050
46051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46052# The default lists apply if the user does not specify any file.
46053ac_need_defaults=:
46054while test $# != 0
46055do
46056 case $1 in
46057 --*=?*)
46058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46060 ac_shift=:
46061 ;;
46062 --*=)
46063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46064 ac_optarg=
46065 ac_shift=:
46066 ;;
46067 *)
46068 ac_option=$1
46069 ac_optarg=$2
46070 ac_shift=shift
46071 ;;
46072 esac
46073
46074 case $ac_option in
46075 # Handling of the options.
46076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46077 ac_cs_recheck=: ;;
46078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46079 printf "%s\n" "$ac_cs_version"; exit ;;
46080 --config | --confi | --conf | --con | --co | --c )
46081 printf "%s\n" "$ac_cs_config"; exit ;;
46082 --debug | --debu | --deb | --de | --d | -d )
46083 debug=: ;;
46084 --file | --fil | --fi | --f )
46085 $ac_shift
46086 case $ac_optarg in
46087 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46088 '') as_fn_error $? "missing file argument" ;;
46089 esac
46090 as_fn_append CONFIG_FILES " '$ac_optarg'"
46091 ac_need_defaults=false;;
46092 --header | --heade | --head | --hea )
46093 $ac_shift
46094 case $ac_optarg in
46095 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46096 esac
46097 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46098 ac_need_defaults=false;;
46099 --he | --h)
46100 # Conflict between --help and --header
46101 as_fn_error $? "ambiguous option: \`$1'
46102Try \`$0 --help' for more information.";;
46103 --help | --hel | -h )
46104 printf "%s\n" "$ac_cs_usage"; exit ;;
46105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46107 ac_cs_silent=: ;;
46108
46109 # This is an error.
46110 -*) as_fn_error $? "unrecognized option: \`$1'
46111Try \`$0 --help' for more information." ;;
46112
46113 *) as_fn_append ac_config_targets " $1"
46114 ac_need_defaults=false ;;
46115
46116 esac
46117 shift
46118done
46119
46120ac_configure_extra_args=
46121
46122if $ac_cs_silent; then
46123 exec 6>/dev/null
46124 ac_configure_extra_args="$ac_configure_extra_args --silent"
46125fi
46126
46127_ACEOF
46128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46129if \$ac_cs_recheck; then
46130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46131 shift
46132 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46133 CONFIG_SHELL='$SHELL'
46134 export CONFIG_SHELL
46135 exec "\$@"
46136fi
46137
46138_ACEOF
46139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46140exec 5>>config.log
46141{
46142 echo
46143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46144## Running $as_me. ##
46145_ASBOX
46146 printf "%s\n" "$ac_log"
46147} >&5
46148
46149_ACEOF
46150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46151#
46152# INIT-COMMANDS
46153#
46154AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46155
46156
46157# The HP-UX ksh and POSIX shell print the target directory to stdout
46158# if CDPATH is set.
46159(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46160
46161sed_quote_subst='$sed_quote_subst'
46162double_quote_subst='$double_quote_subst'
46163delay_variable_subst='$delay_variable_subst'
46164macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46165macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46166AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46167DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46168OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46169enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46170enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46171pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46172enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46173shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46174SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46175ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46176PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46177host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46178host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46179host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46180build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46181build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46182build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46183SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46184Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46185GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46186EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46187FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46188LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46189NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46190LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46191max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46192ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46193exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46194lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46195lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46196lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46197lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46198lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46199reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46200reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46201FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46202deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46203file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46204file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46205want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46206sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46207AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46208lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46209AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46210archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46211STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46212RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46213old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46214old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46215old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46216lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46217CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46218CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46219compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46220GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46221lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46222lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46223lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46224lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46225lt_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"`'
46226lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46227nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46228lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46229lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46230objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46231MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46232lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46233lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46234lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46235lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46236lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46237need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46238MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46239DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46240NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46241LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46242OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46243OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46244libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46245shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46246extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46247archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46248enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46249export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46250whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46251compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46252old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46253old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46254archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46255archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46256module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46257module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46258with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46259allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46260no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46261hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46262hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46263hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46264hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46265hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46266hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46267hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46268inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46269link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46270always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46271export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46272exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46273include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46274prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46275postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46276file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46277variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46278need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46279need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46280version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46281runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46282shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46283shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46284libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46285library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46286soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46287install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46288postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46289postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46290finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46291finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46292hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46293sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46294configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46295configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46296hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46297enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46298enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46299enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46300old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46301striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46302LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
46303reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
46304reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
46305old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46306compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
46307GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
46308lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
46309lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
46310lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
46311lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
46312lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
46313archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
46314enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
46315export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46316whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46317compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
46318old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
46319old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
46320archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46321archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46322module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
46323module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46324with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
46325allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46326no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46327hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46328hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
46329hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
46330hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
46331hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
46332hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
46333hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
46334inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
46335link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
46336always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
46337export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
46338exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46339include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46340prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46341postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46342file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
46343hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
46344
46345LTCC='$LTCC'
46346LTCFLAGS='$LTCFLAGS'
46347compiler='$compiler_DEFAULT'
46348
46349# A function that is used when there is no print builtin or printf.
46350func_fallback_echo ()
46351{
46352 eval 'cat <<_LTECHO_EOF
46353\$1
46354_LTECHO_EOF'
46355}
46356
46357# Quote evaled strings.
46358for var in AS \
46359DLLTOOL \
46360OBJDUMP \
46361SHELL \
46362ECHO \
46363PATH_SEPARATOR \
46364SED \
46365GREP \
46366EGREP \
46367FGREP \
46368LD \
46369NM \
46370LN_S \
46371lt_SP2NL \
46372lt_NL2SP \
46373reload_flag \
46374FILECMD \
46375deplibs_check_method \
46376file_magic_cmd \
46377file_magic_glob \
46378want_nocaseglob \
46379sharedlib_from_linklib_cmd \
46380AR \
46381archiver_list_spec \
46382STRIP \
46383RANLIB \
46384CC \
46385CFLAGS \
46386compiler \
46387lt_cv_sys_global_symbol_pipe \
46388lt_cv_sys_global_symbol_to_cdecl \
46389lt_cv_sys_global_symbol_to_import \
46390lt_cv_sys_global_symbol_to_c_name_address \
46391lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46392lt_cv_nm_interface \
46393nm_file_list_spec \
46394lt_cv_truncate_bin \
46395lt_prog_compiler_no_builtin_flag \
46396lt_prog_compiler_pic \
46397lt_prog_compiler_wl \
46398lt_prog_compiler_static \
46399lt_cv_prog_compiler_c_o \
46400need_locks \
46401MANIFEST_TOOL \
46402DSYMUTIL \
46403NMEDIT \
46404LIPO \
46405OTOOL \
46406OTOOL64 \
46407shrext_cmds \
46408export_dynamic_flag_spec \
46409whole_archive_flag_spec \
46410compiler_needs_object \
46411with_gnu_ld \
46412allow_undefined_flag \
46413no_undefined_flag \
46414hardcode_libdir_flag_spec \
46415hardcode_libdir_separator \
46416exclude_expsyms \
46417include_expsyms \
46418file_list_spec \
46419variables_saved_for_relink \
46420libname_spec \
46421library_names_spec \
46422soname_spec \
46423install_override_mode \
46424finish_eval \
46425old_striplib \
46426striplib \
46427LD_RC \
46428reload_flag_RC \
46429compiler_RC \
46430lt_prog_compiler_no_builtin_flag_RC \
46431lt_prog_compiler_pic_RC \
46432lt_prog_compiler_wl_RC \
46433lt_prog_compiler_static_RC \
46434lt_cv_prog_compiler_c_o_RC \
46435export_dynamic_flag_spec_RC \
46436whole_archive_flag_spec_RC \
46437compiler_needs_object_RC \
46438with_gnu_ld_RC \
46439allow_undefined_flag_RC \
46440no_undefined_flag_RC \
46441hardcode_libdir_flag_spec_RC \
46442hardcode_libdir_separator_RC \
46443exclude_expsyms_RC \
46444include_expsyms_RC \
46445file_list_spec_RC; do
46446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46447 *[\\\\\\\`\\"\\\$]*)
46448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46449 ;;
46450 *)
46451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46452 ;;
46453 esac
46454done
46455
46456# Double-quote double-evaled strings.
46457for var in reload_cmds \
46458old_postinstall_cmds \
46459old_postuninstall_cmds \
46460old_archive_cmds \
46461extract_expsyms_cmds \
46462old_archive_from_new_cmds \
46463old_archive_from_expsyms_cmds \
46464archive_cmds \
46465archive_expsym_cmds \
46466module_cmds \
46467module_expsym_cmds \
46468export_symbols_cmds \
46469prelink_cmds \
46470postlink_cmds \
46471postinstall_cmds \
46472postuninstall_cmds \
46473finish_cmds \
46474sys_lib_search_path_spec \
46475configure_time_dlsearch_path \
46476configure_time_lt_sys_library_path \
46477reload_cmds_RC \
46478old_archive_cmds_RC \
46479old_archive_from_new_cmds_RC \
46480old_archive_from_expsyms_cmds_RC \
46481archive_cmds_RC \
46482archive_expsym_cmds_RC \
46483module_cmds_RC \
46484module_expsym_cmds_RC \
46485export_symbols_cmds_RC \
46486prelink_cmds_RC \
46487postlink_cmds_RC; do
46488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46489 *[\\\\\\\`\\"\\\$]*)
46490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46491 ;;
46492 *)
46493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46494 ;;
46495 esac
46496done
46497
46498ac_aux_dir='$ac_aux_dir'
46499
46500# See if we are running on zsh, and set the options that allow our
46501# commands through without removal of \ escapes INIT.
46502if test -n "\${ZSH_VERSION+set}"; then
46503 setopt NO_GLOB_SUBST
46504fi
46505
46506
46507 PACKAGE='$PACKAGE'
46508 VERSION='$VERSION'
46509 RM='$RM'
46510 ofile='$ofile'
46511
46512
46513
46514
46515
46516
46517_ACEOF
46518
46519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46520
46521# Handling of arguments.
46522for ac_config_target in $ac_config_targets
46523do
46524 case $ac_config_target in
46525 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
46526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46527 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46529 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46530 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
46531 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
46532 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
46533 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
46534 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46535 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
46536 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46537 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46538 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46539 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
46540 "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
46541 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46542 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
46543 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
46544 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
46545 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
46546 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
46547 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
46548 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
46549 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
46550 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
46551 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
46552
46553 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46554 esac
46555done
46556
46557
46558# If the user did not use the arguments to specify the items to instantiate,
46559# then the envvar interface is used. Set only those that are not.
46560# We use the long form for the default assignment because of an extremely
46561# bizarre bug on SunOS 4.1.3.
46562if $ac_need_defaults; then
46563 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
46564 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
46565 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
46566fi
46567
46568# Have a temporary directory for convenience. Make it in the build tree
46569# simply because there is no reason against having it here, and in addition,
46570# creating and moving files from /tmp can sometimes cause problems.
46571# Hook for its removal unless debugging.
46572# Note that there is a small window in which the directory will not be cleaned:
46573# after its creation but before its name has been assigned to `$tmp'.
46574$debug ||
46575{
46576 tmp= ac_tmp=
46577 trap 'exit_status=$?
46578 : "${ac_tmp:=$tmp}"
46579 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46580' 0
46581 trap 'as_fn_exit 1' 1 2 13 15
46582}
46583# Create a (secure) tmp directory for tmp files.
46584
46585{
46586 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46587 test -d "$tmp"
46588} ||
46589{
46590 tmp=./conf$$-$RANDOM
46591 (umask 077 && mkdir "$tmp")
46592} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46593ac_tmp=$tmp
46594
46595# Set up the scripts for CONFIG_FILES section.
46596# No need to generate them if there are no CONFIG_FILES.
46597# This happens for instance with `./config.status config.h'.
46598if test -n "$CONFIG_FILES"; then
46599
46600
46601ac_cr=`echo X | tr X '\015'`
46602# On cygwin, bash can eat \r inside `` if the user requested igncr.
46603# But we know of no other shell where ac_cr would be empty at this
46604# point, so we can use a bashism as a fallback.
46605if test "x$ac_cr" = x; then
46606 eval ac_cr=\$\'\\r\'
46607fi
46608ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46609if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46610 ac_cs_awk_cr='\\r'
46611else
46612 ac_cs_awk_cr=$ac_cr
46613fi
46614
46615echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46616_ACEOF
46617
46618
46619{
46620 echo "cat >conf$$subs.awk <<_ACEOF" &&
46621 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46622 echo "_ACEOF"
46623} >conf$$subs.sh ||
46624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46625ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46626ac_delim='%!_!# '
46627for ac_last_try in false false false false false :; do
46628 . ./conf$$subs.sh ||
46629 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46630
46631 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46632 if test $ac_delim_n = $ac_delim_num; then
46633 break
46634 elif $ac_last_try; then
46635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46636 else
46637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46638 fi
46639done
46640rm -f conf$$subs.sh
46641
46642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46643cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46644_ACEOF
46645sed -n '
46646h
46647s/^/S["/; s/!.*/"]=/
46648p
46649g
46650s/^[^!]*!//
46651:repl
46652t repl
46653s/'"$ac_delim"'$//
46654t delim
46655:nl
46656h
46657s/\(.\{148\}\)..*/\1/
46658t more1
46659s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46660p
46661n
46662b repl
46663:more1
46664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46665p
46666g
46667s/.\{148\}//
46668t nl
46669:delim
46670h
46671s/\(.\{148\}\)..*/\1/
46672t more2
46673s/["\\]/\\&/g; s/^/"/; s/$/"/
46674p
46675b
46676:more2
46677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46678p
46679g
46680s/.\{148\}//
46681t delim
46682' <conf$$subs.awk | sed '
46683/^[^""]/{
46684 N
46685 s/\n//
46686}
46687' >>$CONFIG_STATUS || ac_write_fail=1
46688rm -f conf$$subs.awk
46689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46690_ACAWK
46691cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46692 for (key in S) S_is_set[key] = 1
46693 FS = ""
46694
46695}
46696{
46697 line = $ 0
46698 nfields = split(line, field, "@")
46699 substed = 0
46700 len = length(field[1])
46701 for (i = 2; i < nfields; i++) {
46702 key = field[i]
46703 keylen = length(key)
46704 if (S_is_set[key]) {
46705 value = S[key]
46706 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46707 len += length(value) + length(field[++i])
46708 substed = 1
46709 } else
46710 len += 1 + keylen
46711 }
46712
46713 print line
46714}
46715
46716_ACAWK
46717_ACEOF
46718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46719if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46720 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46721else
46722 cat
46723fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46724 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46725_ACEOF
46726
46727# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46728# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46729# trailing colons and then remove the whole line if VPATH becomes empty
46730# (actually we leave an empty line to preserve line numbers).
46731if test "x$srcdir" = x.; then
46732 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
46733h
46734s///
46735s/^/:/
46736s/[ ]*$/:/
46737s/:\$(srcdir):/:/g
46738s/:\${srcdir}:/:/g
46739s/:@srcdir@:/:/g
46740s/^:*//
46741s/:*$//
46742x
46743s/\(=[ ]*\).*/\1/
46744G
46745s/\n//
46746s/^[^=]*=[ ]*$//
46747}'
46748fi
46749
46750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46751fi # test -n "$CONFIG_FILES"
46752
46753# Set up the scripts for CONFIG_HEADERS section.
46754# No need to generate them if there are no CONFIG_HEADERS.
46755# This happens for instance with `./config.status Makefile'.
46756if test -n "$CONFIG_HEADERS"; then
46757cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46758BEGIN {
46759_ACEOF
46760
46761# Transform confdefs.h into an awk script `defines.awk', embedded as
46762# here-document in config.status, that substitutes the proper values into
46763# config.h.in to produce config.h.
46764
46765# Create a delimiter string that does not exist in confdefs.h, to ease
46766# handling of long lines.
46767ac_delim='%!_!# '
46768for ac_last_try in false false :; do
46769 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46770 if test -z "$ac_tt"; then
46771 break
46772 elif $ac_last_try; then
46773 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46774 else
46775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46776 fi
46777done
46778
46779# For the awk script, D is an array of macro values keyed by name,
46780# likewise P contains macro parameters if any. Preserve backslash
46781# newline sequences.
46782
46783ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46784sed -n '
46785s/.\{148\}/&'"$ac_delim"'/g
46786t rset
46787:rset
46788s/^[ ]*#[ ]*define[ ][ ]*/ /
46789t def
46790d
46791:def
46792s/\\$//
46793t bsnl
46794s/["\\]/\\&/g
46795s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46796D["\1"]=" \3"/p
46797s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
46798d
46799:bsnl
46800s/["\\]/\\&/g
46801s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46802D["\1"]=" \3\\\\\\n"\\/p
46803t cont
46804s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46805t cont
46806d
46807:cont
46808n
46809s/.\{148\}/&'"$ac_delim"'/g
46810t clear
46811:clear
46812s/\\$//
46813t bsnlc
46814s/["\\]/\\&/g; s/^/"/; s/$/"/p
46815d
46816:bsnlc
46817s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46818b cont
46819' <confdefs.h | sed '
46820s/'"$ac_delim"'/"\\\
46821"/g' >>$CONFIG_STATUS || ac_write_fail=1
46822
46823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46824 for (key in D) D_is_set[key] = 1
46825 FS = ""
46826}
46827/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46828 line = \$ 0
46829 split(line, arg, " ")
46830 if (arg[1] == "#") {
46831 defundef = arg[2]
46832 mac1 = arg[3]
46833 } else {
46834 defundef = substr(arg[1], 2)
46835 mac1 = arg[2]
46836 }
46837 split(mac1, mac2, "(") #)
46838 macro = mac2[1]
46839 prefix = substr(line, 1, index(line, defundef) - 1)
46840 if (D_is_set[macro]) {
46841 # Preserve the white space surrounding the "#".
46842 print prefix "define", macro P[macro] D[macro]
46843 next
46844 } else {
46845 # Replace #undef with comments. This is necessary, for example,
46846 # in the case of _POSIX_SOURCE, which is predefined and required
46847 # on some systems where configure will not decide to define it.
46848 if (defundef == "undef") {
46849 print "/*", prefix defundef, macro, "*/"
46850 next
46851 }
46852 }
46853}
46854{ print }
46855_ACAWK
46856_ACEOF
46857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46858 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46859fi # test -n "$CONFIG_HEADERS"
46860
46861
46862eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
46863shift
46864for ac_tag
46865do
46866 case $ac_tag in
46867 :[FHLC]) ac_mode=$ac_tag; continue;;
46868 esac
46869 case $ac_mode$ac_tag in
46870 :[FHL]*:*);;
46871 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46872 :[FH]-) ac_tag=-:-;;
46873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46874 esac
46875 ac_save_IFS=$IFS
46876 IFS=:
46877 set x $ac_tag
46878 IFS=$ac_save_IFS
46879 shift
46880 ac_file=$1
46881 shift
46882
46883 case $ac_mode in
46884 :L) ac_source=$1;;
46885 :[FH])
46886 ac_file_inputs=
46887 for ac_f
46888 do
46889 case $ac_f in
46890 -) ac_f="$ac_tmp/stdin";;
46891 *) # Look for the file first in the build tree, then in the source tree
46892 # (if the path is not absolute). The absolute path cannot be DOS-style,
46893 # because $ac_f cannot contain `:'.
46894 test -f "$ac_f" ||
46895 case $ac_f in
46896 [\\/$]*) false;;
46897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46898 esac ||
46899 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46900 esac
46901 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46902 as_fn_append ac_file_inputs " '$ac_f'"
46903 done
46904
46905 # Let's still pretend it is `configure' which instantiates (i.e., don't
46906 # use $as_me), people would be surprised to read:
46907 # /* config.h. Generated by config.status. */
46908 configure_input='Generated from '`
46909 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46910 `' by configure.'
46911 if test x"$ac_file" != x-; then
46912 configure_input="$ac_file. $configure_input"
46913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46914printf "%s\n" "$as_me: creating $ac_file" >&6;}
46915 fi
46916 # Neutralize special characters interpreted by sed in replacement strings.
46917 case $configure_input in #(
46918 *\&* | *\|* | *\\* )
46919 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
46920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
46921 *) ac_sed_conf_input=$configure_input;;
46922 esac
46923
46924 case $ac_tag in
46925 *:-:* | *:-) cat >"$ac_tmp/stdin" \
46926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46927 esac
46928 ;;
46929 esac
46930
46931 ac_dir=`$as_dirname -- "$ac_file" ||
46932$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46933 X"$ac_file" : 'X\(//\)[^/]' \| \
46934 X"$ac_file" : 'X\(//\)$' \| \
46935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46936printf "%s\n" X"$ac_file" |
46937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46938 s//\1/
46939 q
46940 }
46941 /^X\(\/\/\)[^/].*/{
46942 s//\1/
46943 q
46944 }
46945 /^X\(\/\/\)$/{
46946 s//\1/
46947 q
46948 }
46949 /^X\(\/\).*/{
46950 s//\1/
46951 q
46952 }
46953 s/.*/./; q'`
46954 as_dir="$ac_dir"; as_fn_mkdir_p
46955 ac_builddir=.
46956
46957case "$ac_dir" in
46958.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46959*)
46960 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
46961 # A ".." for each directory in $ac_dir_suffix.
46962 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46963 case $ac_top_builddir_sub in
46964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46966 esac ;;
46967esac
46968ac_abs_top_builddir=$ac_pwd
46969ac_abs_builddir=$ac_pwd$ac_dir_suffix
46970# for backward compatibility:
46971ac_top_builddir=$ac_top_build_prefix
46972
46973case $srcdir in
46974 .) # We are building in place.
46975 ac_srcdir=.
46976 ac_top_srcdir=$ac_top_builddir_sub
46977 ac_abs_top_srcdir=$ac_pwd ;;
46978 [\\/]* | ?:[\\/]* ) # Absolute name.
46979 ac_srcdir=$srcdir$ac_dir_suffix;
46980 ac_top_srcdir=$srcdir
46981 ac_abs_top_srcdir=$srcdir ;;
46982 *) # Relative name.
46983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46984 ac_top_srcdir=$ac_top_build_prefix$srcdir
46985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46986esac
46987ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46988
46989
46990 case $ac_mode in
46991 :F)
46992 #
46993 # CONFIG_FILE
46994 #
46995
46996 case $INSTALL in
46997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46999 esac
47000 ac_MKDIR_P=$MKDIR_P
47001 case $MKDIR_P in
47002 [\\/$]* | ?:[\\/]* ) ;;
47003 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47004 esac
47005_ACEOF
47006
47007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47008# If the template does not know about datarootdir, expand it.
47009# FIXME: This hack should be removed a few years after 2.60.
47010ac_datarootdir_hack=; ac_datarootdir_seen=
47011ac_sed_dataroot='
47012/datarootdir/ {
47013 p
47014 q
47015}
47016/@datadir@/p
47017/@docdir@/p
47018/@infodir@/p
47019/@localedir@/p
47020/@mandir@/p'
47021case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47022*datarootdir*) ac_datarootdir_seen=yes;;
47023*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47025printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47026_ACEOF
47027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47028 ac_datarootdir_hack='
47029 s&@datadir@&$datadir&g
47030 s&@docdir@&$docdir&g
47031 s&@infodir@&$infodir&g
47032 s&@localedir@&$localedir&g
47033 s&@mandir@&$mandir&g
47034 s&\\\${datarootdir}&$datarootdir&g' ;;
47035esac
47036_ACEOF
47037
47038# Neutralize VPATH when `$srcdir' = `.'.
47039# Shell code in configure.ac might set extrasub.
47040# FIXME: do we really want to maintain this feature?
47041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47042ac_sed_extra="$ac_vpsub
47043$extrasub
47044_ACEOF
47045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47046:t
47047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47048s|@configure_input@|$ac_sed_conf_input|;t t
47049s&@top_builddir@&$ac_top_builddir_sub&;t t
47050s&@top_build_prefix@&$ac_top_build_prefix&;t t
47051s&@srcdir@&$ac_srcdir&;t t
47052s&@abs_srcdir@&$ac_abs_srcdir&;t t
47053s&@top_srcdir@&$ac_top_srcdir&;t t
47054s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47055s&@builddir@&$ac_builddir&;t t
47056s&@abs_builddir@&$ac_abs_builddir&;t t
47057s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47058s&@INSTALL@&$ac_INSTALL&;t t
47059s&@MKDIR_P@&$ac_MKDIR_P&;t t
47060$ac_datarootdir_hack
47061"
47062eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47063 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47064
47065test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47066 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
47068 "$ac_tmp/out"`; test -z "$ac_out"; } &&
47069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47070which seems to be undefined. Please make sure it is defined" >&5
47071printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47072which seems to be undefined. Please make sure it is defined" >&2;}
47073
47074 rm -f "$ac_tmp/stdin"
47075 case $ac_file in
47076 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47077 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47078 esac \
47079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47080 ;;
47081 :H)
47082 #
47083 # CONFIG_HEADER
47084 #
47085 if test x"$ac_file" != x-; then
47086 {
47087 printf "%s\n" "/* $configure_input */" >&1 \
47088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47089 } >"$ac_tmp/config.h" \
47090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47091 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47093printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47094 else
47095 rm -f "$ac_file"
47096 mv "$ac_tmp/config.h" "$ac_file" \
47097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47098 fi
47099 else
47100 printf "%s\n" "/* $configure_input */" >&1 \
47101 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47102 || as_fn_error $? "could not create -" "$LINENO" 5
47103 fi
47104# Compute "$ac_file"'s index in $config_headers.
47105_am_arg="$ac_file"
47106_am_stamp_count=1
47107for _am_header in $config_headers :; do
47108 case $_am_header in
47109 $_am_arg | $_am_arg:* )
47110 break ;;
47111 * )
47112 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47113 esac
47114done
47115echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47116$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47117 X"$_am_arg" : 'X\(//\)[^/]' \| \
47118 X"$_am_arg" : 'X\(//\)$' \| \
47119 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47120printf "%s\n" X"$_am_arg" |
47121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47122 s//\1/
47123 q
47124 }
47125 /^X\(\/\/\)[^/].*/{
47126 s//\1/
47127 q
47128 }
47129 /^X\(\/\/\)$/{
47130 s//\1/
47131 q
47132 }
47133 /^X\(\/\).*/{
47134 s//\1/
47135 q
47136 }
47137 s/.*/./; q'`/stamp-h$_am_stamp_count
47138 ;;
47139
47140 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47141printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47142 ;;
47143 esac
47144
47145
47146 case $ac_file$ac_mode in
47147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47148 # Older Autoconf quotes --file arguments for eval, but not when files
47149 # are listed without --file. Let's play safe and only enable the eval
47150 # if we detect the quoting.
47151 # TODO: see whether this extra hack can be removed once we start
47152 # requiring Autoconf 2.70 or later.
47153 case $CONFIG_FILES in #(
47154 *\'*) :
47155 eval set x "$CONFIG_FILES" ;; #(
47156 *) :
47157 set x $CONFIG_FILES ;; #(
47158 *) :
47159 ;;
47160esac
47161 shift
47162 # Used to flag and report bootstrapping failures.
47163 am_rc=0
47164 for am_mf
47165 do
47166 # Strip MF so we end up with the name of the file.
47167 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47168 # Check whether this is an Automake generated Makefile which includes
47169 # dependency-tracking related rules and includes.
47170 # Grep'ing the whole file directly is not great: AIX grep has a line
47171 # limit of 2048, but all sed's we know have understand at least 4000.
47172 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47173 || continue
47174 am_dirpart=`$as_dirname -- "$am_mf" ||
47175$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47176 X"$am_mf" : 'X\(//\)[^/]' \| \
47177 X"$am_mf" : 'X\(//\)$' \| \
47178 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47179printf "%s\n" X"$am_mf" |
47180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47181 s//\1/
47182 q
47183 }
47184 /^X\(\/\/\)[^/].*/{
47185 s//\1/
47186 q
47187 }
47188 /^X\(\/\/\)$/{
47189 s//\1/
47190 q
47191 }
47192 /^X\(\/\).*/{
47193 s//\1/
47194 q
47195 }
47196 s/.*/./; q'`
47197 am_filepart=`$as_basename -- "$am_mf" ||
47198$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47199 X"$am_mf" : 'X\(//\)$' \| \
47200 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47201printf "%s\n" X/"$am_mf" |
47202 sed '/^.*\/\([^/][^/]*\)\/*$/{
47203 s//\1/
47204 q
47205 }
47206 /^X\/\(\/\/\)$/{
47207 s//\1/
47208 q
47209 }
47210 /^X\/\(\/\).*/{
47211 s//\1/
47212 q
47213 }
47214 s/.*/./; q'`
47215 { echo "$as_me:$LINENO: cd "$am_dirpart" \
47216 && sed -e '/# am--include-marker/d' "$am_filepart" \
47217 | $MAKE -f - am--depfiles" >&5
47218 (cd "$am_dirpart" \
47219 && sed -e '/# am--include-marker/d' "$am_filepart" \
47220 | $MAKE -f - am--depfiles) >&5 2>&5
47221 ac_status=$?
47222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223 (exit $ac_status); } || am_rc=$?
47224 done
47225 if test $am_rc -ne 0; then
47226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47227printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47228as_fn_error $? "Something went wrong bootstrapping makefile fragments
47229 for automatic dependency tracking. If GNU make was not used, consider
47230 re-running the configure script with MAKE=\"gmake\" (or whatever is
47231 necessary). You can also try re-running configure with the
47232 '--disable-dependency-tracking' option to at least be able to build
47233 the package (albeit without support for automatic dependency tracking).
47234See \`config.log' for more details" "$LINENO" 5; }
47235 fi
47236 { am_dirpart=; unset am_dirpart;}
47237 { am_filepart=; unset am_filepart;}
47238 { am_mf=; unset am_mf;}
47239 { am_rc=; unset am_rc;}
47240 rm -f conftest-deps.mk
47241}
47242 ;;
47243 "libtool":C)
47244
47245 # See if we are running on zsh, and set the options that allow our
47246 # commands through without removal of \ escapes.
47247 if test -n "${ZSH_VERSION+set}"; then
47248 setopt NO_GLOB_SUBST
47249 fi
47250
47251 cfgfile=${ofile}T
47252 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47253 $RM "$cfgfile"
47254
47255 cat <<_LT_EOF >> "$cfgfile"
47256#! $SHELL
47257# Generated automatically by $as_me ($PACKAGE) $VERSION
47258# NOTE: Changes made to this file will be lost: look at ltmain.sh.
47259
47260# Provide generalized library-building support services.
47261# Written by Gordon Matzigkeit, 1996
47262
47263# Copyright (C) 2014 Free Software Foundation, Inc.
47264# This is free software; see the source for copying conditions. There is NO
47265# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47266
47267# GNU Libtool is free software; you can redistribute it and/or modify
47268# it under the terms of the GNU General Public License as published by
47269# the Free Software Foundation; either version 2 of of the License, or
47270# (at your option) any later version.
47271#
47272# As a special exception to the GNU General Public License, if you
47273# distribute this file as part of a program or library that is built
47274# using GNU Libtool, you may include this file under the same
47275# distribution terms that you use for the rest of that program.
47276#
47277# GNU Libtool is distributed in the hope that it will be useful, but
47278# WITHOUT ANY WARRANTY; without even the implied warranty of
47279# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47280# GNU General Public License for more details.
47281#
47282# You should have received a copy of the GNU General Public License
47283# along with this program. If not, see <http://www.gnu.org/licenses/>.
47284
47285
47286# The names of the tagged configurations supported by this script.
47287available_tags='RC '
47288
47289# Configured defaults for sys_lib_dlsearch_path munging.
47290: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47291
47292# ### BEGIN LIBTOOL CONFIG
47293
47294# Which release of libtool.m4 was used?
47295macro_version=$macro_version
47296macro_revision=$macro_revision
47297
47298# Assembler program.
47299AS=$lt_AS
47300
47301# DLL creation program.
47302DLLTOOL=$lt_DLLTOOL
47303
47304# Object dumper program.
47305OBJDUMP=$lt_OBJDUMP
47306
47307# Whether or not to build shared libraries.
47308build_libtool_libs=$enable_shared
47309
47310# Whether or not to build static libraries.
47311build_old_libs=$enable_static
47312
47313# What type of objects to build.
47314pic_mode=$pic_mode
47315
47316# Whether or not to optimize for fast installation.
47317fast_install=$enable_fast_install
47318
47319# Shared archive member basename,for filename based shared library versioning on AIX.
47320shared_archive_member_spec=$shared_archive_member_spec
47321
47322# Shell to use when invoking shell scripts.
47323SHELL=$lt_SHELL
47324
47325# An echo program that protects backslashes.
47326ECHO=$lt_ECHO
47327
47328# The PATH separator for the build system.
47329PATH_SEPARATOR=$lt_PATH_SEPARATOR
47330
47331# The host system.
47332host_alias=$host_alias
47333host=$host
47334host_os=$host_os
47335
47336# The build system.
47337build_alias=$build_alias
47338build=$build
47339build_os=$build_os
47340
47341# A sed program that does not truncate output.
47342SED=$lt_SED
47343
47344# Sed that helps us avoid accidentally triggering echo(1) options like -n.
47345Xsed="\$SED -e 1s/^X//"
47346
47347# A grep program that handles long lines.
47348GREP=$lt_GREP
47349
47350# An ERE matcher.
47351EGREP=$lt_EGREP
47352
47353# A literal string matcher.
47354FGREP=$lt_FGREP
47355
47356# A BSD- or MS-compatible name lister.
47357NM=$lt_NM
47358
47359# Whether we need soft or hard links.
47360LN_S=$lt_LN_S
47361
47362# What is the maximum length of a command?
47363max_cmd_len=$max_cmd_len
47364
47365# Object file suffix (normally "o").
47366objext=$ac_objext
47367
47368# Executable file suffix (normally "").
47369exeext=$exeext
47370
47371# whether the shell understands "unset".
47372lt_unset=$lt_unset
47373
47374# turn spaces into newlines.
47375SP2NL=$lt_lt_SP2NL
47376
47377# turn newlines into spaces.
47378NL2SP=$lt_lt_NL2SP
47379
47380# convert \$build file names to \$host format.
47381to_host_file_cmd=$lt_cv_to_host_file_cmd
47382
47383# convert \$build files to toolchain format.
47384to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47385
47386# A file(cmd) program that detects file types.
47387FILECMD=$lt_FILECMD
47388
47389# Method to check whether dependent libraries are shared objects.
47390deplibs_check_method=$lt_deplibs_check_method
47391
47392# Command to use when deplibs_check_method = "file_magic".
47393file_magic_cmd=$lt_file_magic_cmd
47394
47395# How to find potential files when deplibs_check_method = "file_magic".
47396file_magic_glob=$lt_file_magic_glob
47397
47398# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47399want_nocaseglob=$lt_want_nocaseglob
47400
47401# Command to associate shared and link libraries.
47402sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47403
47404# The archiver.
47405AR=$lt_AR
47406
47407# Flags to create an archive (by configure).
47408lt_ar_flags=$lt_ar_flags
47409
47410# Flags to create an archive.
47411AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
47412
47413# How to feed a file listing to the archiver.
47414archiver_list_spec=$lt_archiver_list_spec
47415
47416# A symbol stripping program.
47417STRIP=$lt_STRIP
47418
47419# Commands used to install an old-style archive.
47420RANLIB=$lt_RANLIB
47421old_postinstall_cmds=$lt_old_postinstall_cmds
47422old_postuninstall_cmds=$lt_old_postuninstall_cmds
47423
47424# Whether to use a lock for old archive extraction.
47425lock_old_archive_extraction=$lock_old_archive_extraction
47426
47427# A C compiler.
47428LTCC=$lt_CC
47429
47430# LTCC compiler flags.
47431LTCFLAGS=$lt_CFLAGS
47432
47433# Take the output of nm and produce a listing of raw symbols and C names.
47434global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47435
47436# Transform the output of nm in a proper C declaration.
47437global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47438
47439# Transform the output of nm into a list of symbols to manually relocate.
47440global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
47441
47442# Transform the output of nm in a C name address pair.
47443global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47444
47445# Transform the output of nm in a C name address pair when lib prefix is needed.
47446global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47447
47448# The name lister interface.
47449nm_interface=$lt_lt_cv_nm_interface
47450
47451# Specify filename containing input files for \$NM.
47452nm_file_list_spec=$lt_nm_file_list_spec
47453
47454# The root where to search for dependent libraries,and where our libraries should be installed.
47455lt_sysroot=$lt_sysroot
47456
47457# Command to truncate a binary pipe.
47458lt_truncate_bin=$lt_lt_cv_truncate_bin
47459
47460# The name of the directory that contains temporary libtool files.
47461objdir=$objdir
47462
47463# Used to examine libraries when file_magic_cmd begins with "file".
47464MAGIC_CMD=$MAGIC_CMD
47465
47466# Must we lock files when doing compilation?
47467need_locks=$lt_need_locks
47468
47469# Manifest tool.
47470MANIFEST_TOOL=$lt_MANIFEST_TOOL
47471
47472# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47473DSYMUTIL=$lt_DSYMUTIL
47474
47475# Tool to change global to local symbols on Mac OS X.
47476NMEDIT=$lt_NMEDIT
47477
47478# Tool to manipulate fat objects and archives on Mac OS X.
47479LIPO=$lt_LIPO
47480
47481# ldd/readelf like tool for Mach-O binaries on Mac OS X.
47482OTOOL=$lt_OTOOL
47483
47484# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47485OTOOL64=$lt_OTOOL64
47486
47487# Old archive suffix (normally "a").
47488libext=$libext
47489
47490# Shared library suffix (normally ".so").
47491shrext_cmds=$lt_shrext_cmds
47492
47493# The commands to extract the exported symbol list from a shared archive.
47494extract_expsyms_cmds=$lt_extract_expsyms_cmds
47495
47496# Variables whose values should be saved in libtool wrapper scripts and
47497# restored at link time.
47498variables_saved_for_relink=$lt_variables_saved_for_relink
47499
47500# Do we need the "lib" prefix for modules?
47501need_lib_prefix=$need_lib_prefix
47502
47503# Do we need a version for libraries?
47504need_version=$need_version
47505
47506# Library versioning type.
47507version_type=$version_type
47508
47509# Shared library runtime path variable.
47510runpath_var=$runpath_var
47511
47512# Shared library path variable.
47513shlibpath_var=$shlibpath_var
47514
47515# Is shlibpath searched before the hard-coded library search path?
47516shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47517
47518# Format of library name prefix.
47519libname_spec=$lt_libname_spec
47520
47521# List of archive names. First name is the real one, the rest are links.
47522# The last name is the one that the linker finds with -lNAME
47523library_names_spec=$lt_library_names_spec
47524
47525# The coded name of the library, if different from the real name.
47526soname_spec=$lt_soname_spec
47527
47528# Permission mode override for installation of shared libraries.
47529install_override_mode=$lt_install_override_mode
47530
47531# Command to use after installation of a shared archive.
47532postinstall_cmds=$lt_postinstall_cmds
47533
47534# Command to use after uninstallation of a shared archive.
47535postuninstall_cmds=$lt_postuninstall_cmds
47536
47537# Commands used to finish a libtool library installation in a directory.
47538finish_cmds=$lt_finish_cmds
47539
47540# As "finish_cmds", except a single script fragment to be evaled but
47541# not shown.
47542finish_eval=$lt_finish_eval
47543
47544# Whether we should hardcode library paths into libraries.
47545hardcode_into_libs=$hardcode_into_libs
47546
47547# Compile-time system search path for libraries.
47548sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47549
47550# Detected run-time system search path for libraries.
47551sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
47552
47553# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
47554configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
47555
47556# Whether dlopen is supported.
47557dlopen_support=$enable_dlopen
47558
47559# Whether dlopen of programs is supported.
47560dlopen_self=$enable_dlopen_self
47561
47562# Whether dlopen of statically linked programs is supported.
47563dlopen_self_static=$enable_dlopen_self_static
47564
47565# Commands to strip libraries.
47566old_striplib=$lt_old_striplib
47567striplib=$lt_striplib
47568
47569
47570# The linker used to build libraries.
47571LD=$lt_LD
47572
47573# How to create reloadable object files.
47574reload_flag=$lt_reload_flag
47575reload_cmds=$lt_reload_cmds
47576
47577# Commands used to build an old-style archive.
47578old_archive_cmds=$lt_old_archive_cmds
47579
47580# A language specific compiler.
47581CC=$lt_compiler
47582
47583# Is the compiler the GNU compiler?
47584with_gcc=$GCC
47585
47586# Compiler flag to turn off builtin functions.
47587no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47588
47589# Additional compiler flags for building library objects.
47590pic_flag=$lt_lt_prog_compiler_pic
47591
47592# How to pass a linker flag through the compiler.
47593wl=$lt_lt_prog_compiler_wl
47594
47595# Compiler flag to prevent dynamic linking.
47596link_static_flag=$lt_lt_prog_compiler_static
47597
47598# Does compiler simultaneously support -c and -o options?
47599compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47600
47601# Whether or not to add -lc for building shared libraries.
47602build_libtool_need_lc=$archive_cmds_need_lc
47603
47604# Whether or not to disallow shared libs when runtime libs are static.
47605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47606
47607# Compiler flag to allow reflexive dlopens.
47608export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47609
47610# Compiler flag to generate shared objects directly from archives.
47611whole_archive_flag_spec=$lt_whole_archive_flag_spec
47612
47613# Whether the compiler copes with passing no objects directly.
47614compiler_needs_object=$lt_compiler_needs_object
47615
47616# Create an old-style archive from a shared archive.
47617old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47618
47619# Create a temporary old-style archive to link instead of a shared archive.
47620old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47621
47622# Commands used to build a shared archive.
47623archive_cmds=$lt_archive_cmds
47624archive_expsym_cmds=$lt_archive_expsym_cmds
47625
47626# Commands used to build a loadable module if different from building
47627# a shared archive.
47628module_cmds=$lt_module_cmds
47629module_expsym_cmds=$lt_module_expsym_cmds
47630
47631# Whether we are building with GNU ld or not.
47632with_gnu_ld=$lt_with_gnu_ld
47633
47634# Flag that allows shared libraries with undefined symbols to be built.
47635allow_undefined_flag=$lt_allow_undefined_flag
47636
47637# Flag that enforces no undefined symbols.
47638no_undefined_flag=$lt_no_undefined_flag
47639
47640# Flag to hardcode \$libdir into a binary during linking.
47641# This must work even if \$libdir does not exist
47642hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47643
47644# Whether we need a single "-rpath" flag with a separated argument.
47645hardcode_libdir_separator=$lt_hardcode_libdir_separator
47646
47647# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47648# DIR into the resulting binary.
47649hardcode_direct=$hardcode_direct
47650
47651# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47652# DIR into the resulting binary and the resulting library dependency is
47653# "absolute",i.e impossible to change by setting \$shlibpath_var if the
47654# library is relocated.
47655hardcode_direct_absolute=$hardcode_direct_absolute
47656
47657# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47658# into the resulting binary.
47659hardcode_minus_L=$hardcode_minus_L
47660
47661# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47662# into the resulting binary.
47663hardcode_shlibpath_var=$hardcode_shlibpath_var
47664
47665# Set to "yes" if building a shared library automatically hardcodes DIR
47666# into the library and all subsequent libraries and executables linked
47667# against it.
47668hardcode_automatic=$hardcode_automatic
47669
47670# Set to yes if linker adds runtime paths of dependent libraries
47671# to runtime path list.
47672inherit_rpath=$inherit_rpath
47673
47674# Whether libtool must link a program against all its dependency libraries.
47675link_all_deplibs=$link_all_deplibs
47676
47677# Set to "yes" if exported symbols are required.
47678always_export_symbols=$always_export_symbols
47679
47680# The commands to list exported symbols.
47681export_symbols_cmds=$lt_export_symbols_cmds
47682
47683# Symbols that should not be listed in the preloaded symbols.
47684exclude_expsyms=$lt_exclude_expsyms
47685
47686# Symbols that must always be exported.
47687include_expsyms=$lt_include_expsyms
47688
47689# Commands necessary for linking programs (against libraries) with templates.
47690prelink_cmds=$lt_prelink_cmds
47691
47692# Commands necessary for finishing linking programs.
47693postlink_cmds=$lt_postlink_cmds
47694
47695# Specify filename containing input files.
47696file_list_spec=$lt_file_list_spec
47697
47698# How to hardcode a shared library path into an executable.
47699hardcode_action=$hardcode_action
47700
47701# ### END LIBTOOL CONFIG
47702
47703_LT_EOF
47704
47705 cat <<'_LT_EOF' >> "$cfgfile"
47706
47707# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
47708
47709# func_munge_path_list VARIABLE PATH
47710# -----------------------------------
47711# VARIABLE is name of variable containing _space_ separated list of
47712# directories to be munged by the contents of PATH, which is string
47713# having a format:
47714# "DIR[:DIR]:"
47715# string "DIR[ DIR]" will be prepended to VARIABLE
47716# ":DIR[:DIR]"
47717# string "DIR[ DIR]" will be appended to VARIABLE
47718# "DIRP[:DIRP]::[DIRA:]DIRA"
47719# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
47720# "DIRA[ DIRA]" will be appended to VARIABLE
47721# "DIR[:DIR]"
47722# VARIABLE will be replaced by "DIR[ DIR]"
47723func_munge_path_list ()
47724{
47725 case x$2 in
47726 x)
47727 ;;
47728 *:)
47729 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
47730 ;;
47731 x:*)
47732 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
47733 ;;
47734 *::*)
47735 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
47736 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
47737 ;;
47738 *)
47739 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
47740 ;;
47741 esac
47742}
47743
47744
47745# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
47746func_cc_basename ()
47747{
47748 for cc_temp in $*""; do
47749 case $cc_temp in
47750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47752 \-*) ;;
47753 *) break;;
47754 esac
47755 done
47756 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
47757}
47758
47759
47760# ### END FUNCTIONS SHARED WITH CONFIGURE
47761
47762_LT_EOF
47763
47764 case $host_os in
47765 aix3*)
47766 cat <<\_LT_EOF >> "$cfgfile"
47767# AIX sometimes has problems with the GCC collect2 program. For some
47768# reason, if we set the COLLECT_NAMES environment variable, the problems
47769# vanish in a puff of smoke.
47770if test set != "${COLLECT_NAMES+set}"; then
47771 COLLECT_NAMES=
47772 export COLLECT_NAMES
47773fi
47774_LT_EOF
47775 ;;
47776 esac
47777
47778
47779
47780ltmain=$ac_aux_dir/ltmain.sh
47781
47782
47783 # We use sed instead of cat because bash on DJGPP gets confused if
47784 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47785 # text mode, it properly converts lines to CR/LF. This bash problem
47786 # is reportedly fixed, but why not run on old versions too?
47787 $SED '$q' "$ltmain" >> "$cfgfile" \
47788 || (rm -f "$cfgfile"; exit 1)
47789
47790 mv -f "$cfgfile" "$ofile" ||
47791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47792 chmod +x "$ofile"
47793
47794
47795 cat <<_LT_EOF >> "$ofile"
47796
47797# ### BEGIN LIBTOOL TAG CONFIG: RC
47798
47799# The linker used to build libraries.
47800LD=$lt_LD_RC
47801
47802# How to create reloadable object files.
47803reload_flag=$lt_reload_flag_RC
47804reload_cmds=$lt_reload_cmds_RC
47805
47806# Commands used to build an old-style archive.
47807old_archive_cmds=$lt_old_archive_cmds_RC
47808
47809# A language specific compiler.
47810CC=$lt_compiler_RC
47811
47812# Is the compiler the GNU compiler?
47813with_gcc=$GCC_RC
47814
47815# Compiler flag to turn off builtin functions.
47816no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
47817
47818# Additional compiler flags for building library objects.
47819pic_flag=$lt_lt_prog_compiler_pic_RC
47820
47821# How to pass a linker flag through the compiler.
47822wl=$lt_lt_prog_compiler_wl_RC
47823
47824# Compiler flag to prevent dynamic linking.
47825link_static_flag=$lt_lt_prog_compiler_static_RC
47826
47827# Does compiler simultaneously support -c and -o options?
47828compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
47829
47830# Whether or not to add -lc for building shared libraries.
47831build_libtool_need_lc=$archive_cmds_need_lc_RC
47832
47833# Whether or not to disallow shared libs when runtime libs are static.
47834allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
47835
47836# Compiler flag to allow reflexive dlopens.
47837export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
47838
47839# Compiler flag to generate shared objects directly from archives.
47840whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
47841
47842# Whether the compiler copes with passing no objects directly.
47843compiler_needs_object=$lt_compiler_needs_object_RC
47844
47845# Create an old-style archive from a shared archive.
47846old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
47847
47848# Create a temporary old-style archive to link instead of a shared archive.
47849old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
47850
47851# Commands used to build a shared archive.
47852archive_cmds=$lt_archive_cmds_RC
47853archive_expsym_cmds=$lt_archive_expsym_cmds_RC
47854
47855# Commands used to build a loadable module if different from building
47856# a shared archive.
47857module_cmds=$lt_module_cmds_RC
47858module_expsym_cmds=$lt_module_expsym_cmds_RC
47859
47860# Whether we are building with GNU ld or not.
47861with_gnu_ld=$lt_with_gnu_ld_RC
47862
47863# Flag that allows shared libraries with undefined symbols to be built.
47864allow_undefined_flag=$lt_allow_undefined_flag_RC
47865
47866# Flag that enforces no undefined symbols.
47867no_undefined_flag=$lt_no_undefined_flag_RC
47868
47869# Flag to hardcode \$libdir into a binary during linking.
47870# This must work even if \$libdir does not exist
47871hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
47872
47873# Whether we need a single "-rpath" flag with a separated argument.
47874hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
47875
47876# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47877# DIR into the resulting binary.
47878hardcode_direct=$hardcode_direct_RC
47879
47880# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47881# DIR into the resulting binary and the resulting library dependency is
47882# "absolute",i.e impossible to change by setting \$shlibpath_var if the
47883# library is relocated.
47884hardcode_direct_absolute=$hardcode_direct_absolute_RC
47885
47886# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47887# into the resulting binary.
47888hardcode_minus_L=$hardcode_minus_L_RC
47889
47890# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47891# into the resulting binary.
47892hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
47893
47894# Set to "yes" if building a shared library automatically hardcodes DIR
47895# into the library and all subsequent libraries and executables linked
47896# against it.
47897hardcode_automatic=$hardcode_automatic_RC
47898
47899# Set to yes if linker adds runtime paths of dependent libraries
47900# to runtime path list.
47901inherit_rpath=$inherit_rpath_RC
47902
47903# Whether libtool must link a program against all its dependency libraries.
47904link_all_deplibs=$link_all_deplibs_RC
47905
47906# Set to "yes" if exported symbols are required.
47907always_export_symbols=$always_export_symbols_RC
47908
47909# The commands to list exported symbols.
47910export_symbols_cmds=$lt_export_symbols_cmds_RC
47911
47912# Symbols that should not be listed in the preloaded symbols.
47913exclude_expsyms=$lt_exclude_expsyms_RC
47914
47915# Symbols that must always be exported.
47916include_expsyms=$lt_include_expsyms_RC
47917
47918# Commands necessary for linking programs (against libraries) with templates.
47919prelink_cmds=$lt_prelink_cmds_RC
47920
47921# Commands necessary for finishing linking programs.
47922postlink_cmds=$lt_postlink_cmds_RC
47923
47924# Specify filename containing input files.
47925file_list_spec=$lt_file_list_spec_RC
47926
47927# How to hardcode a shared library path into an executable.
47928hardcode_action=$hardcode_action_RC
47929
47930# ### END LIBTOOL TAG CONFIG: RC
47931_LT_EOF
47932
47933 ;;
47934
47935 esac
47936done # for ac_tag
47937
47938
47939as_fn_exit 0
47940_ACEOF
47941ac_clean_files=$ac_clean_files_save
47942
47943test $ac_write_fail = 0 ||
47944 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47945
47946
47947# configure is writing to config.log, and then calls config.status.
47948# config.status does its own redirection, appending to config.log.
47949# Unfortunately, on DOS this fails, as config.log is still kept open
47950# by configure, so config.status won't be able to write to it; its
47951# output is simply discarded. So we exec the FD to /dev/null,
47952# effectively closing config.log, so it can be properly (re)opened and
47953# appended to by config.status. When coming back to configure, we
47954# need to make the FD available again.
47955if test "$no_create" != yes; then
47956 ac_cs_success=:
47957 ac_config_status_args=
47958 test "$silent" = yes &&
47959 ac_config_status_args="$ac_config_status_args --quiet"
47960 exec 5>/dev/null
47961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47962 exec 5>>config.log
47963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47964 # would make configure fail if this is the last instruction.
47965 $ac_cs_success || as_fn_exit 1
47966fi
47967if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47969printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47970fi
47971
47972
47973
47974 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
47975 if test -z "$tmp_cpp"; then
47976 tmp_cpp='cpp'
47977 fi
47978 cat >./tests/configurehelp.pm <<_EOF
47979# This is a generated file. Do not edit.
47980
47981package configurehelp;
47982
47983use strict;
47984use warnings;
47985use Exporter;
47986
47987use vars qw(
47988 @ISA
47989 @EXPORT_OK
47990 \$Cpreprocessor
47991 );
47992
47993@ISA = qw(Exporter);
47994
47995@EXPORT_OK = qw(
47996 \$Cpreprocessor
47997 );
47998
47999\$Cpreprocessor = '$tmp_cpp';
48000
480011;
48002_EOF
48003
48004
48005
48006## ---------------------------------- ##
48007## Start of distclean amending code ##
48008## ---------------------------------- ##
48009
48010for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
48011do
48012
48013if test ! -f "$xc_subdir/Makefile"; then
48014 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
48015 exit 1
48016fi
48017
48018# Fetch dependency tracking file list from Makefile include lines.
48019
48020xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
48021xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
48022
48023# --disable-dependency-tracking might have been used, consequently
48024# there is nothing to amend without a dependency tracking file list.
48025
48026if test $xc_cnt_words -gt 0; then
48027
48028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
48029printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
48030
48031# Build Makefile specific patch hunk.
48032
48033xc_p="$xc_subdir/xc_patch.tmp"
48034
48035xc_rm_depfiles=`echo "$xc_inc_lines" \
48036 | $SED 's%include% -rm -f%' 2>/dev/null`
48037
48038xc_dep_subdirs=`echo "$xc_inc_lines" \
48039 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
48040 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
48041 | sort | uniq`
48042
48043echo "$xc_rm_depfiles" >$xc_p
48044
48045for xc_dep_dir in $xc_dep_subdirs; do
48046 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
48047 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
48048 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
48049 echo "${xc_tab}fi" >>$xc_p
48050done
48051
48052# Build Makefile patching sed scripts.
48053
48054xc_s1="$xc_subdir/xc_script_1.tmp"
48055xc_s2="$xc_subdir/xc_script_2.tmp"
48056xc_s3="$xc_subdir/xc_script_3.tmp"
48057
48058cat >$xc_s1 <<\_EOT
48059/^distclean[ ]*:/,/^[^ ][^ ]*:/{
48060 s/^.*(DEPDIR)/___xc_depdir_line___/
48061}
48062/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
48063 s/^.*(DEPDIR)/___xc_depdir_line___/
48064}
48065_EOT
48066
48067cat >$xc_s2 <<\_EOT
48068/___xc_depdir_line___$/{
48069 N
48070 /___xc_depdir_line___$/D
48071}
48072_EOT
48073
48074cat >$xc_s3 <<_EOT
48075/^___xc_depdir_line___/{
48076 r $xc_p
48077 d
48078}
48079_EOT
48080
48081# Apply patch to Makefile and cleanup.
48082
48083$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
48084$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
48085$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
48086
48087if test -f "$xc_subdir/Makefile.tmp3"; then
48088 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
48089fi
48090
48091test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
48092test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
48093test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
48094
48095test -f "$xc_p" && rm -f "$xc_p"
48096test -f "$xc_s1" && rm -f "$xc_s1"
48097test -f "$xc_s2" && rm -f "$xc_s2"
48098test -f "$xc_s3" && rm -f "$xc_s3"
48099
48100fi
48101
48102done
48103
48104## -------------------------------- ##
48105## End of distclean amending code ##
48106## -------------------------------- ##
48107
48108
48109
48110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48111
48112 Host setup: ${host}
48113 Install prefix: ${prefix}
48114 Compiler: ${CC}
48115 CFLAGS: ${CFLAGS}
48116 CPPFLAGS: ${CPPFLAGS}
48117 LDFLAGS: ${LDFLAGS}
48118 LIBS: ${LIBS}
48119
48120 curl version: ${CURLVERSION}
48121 SSL: ${curl_ssl_msg}
48122 SSH: ${curl_ssh_msg}
48123 zlib: ${curl_zlib_msg}
48124 brotli: ${curl_brotli_msg}
48125 zstd: ${curl_zstd_msg}
48126 GSS-API: ${curl_gss_msg}
48127 GSASL: ${curl_gsasl_msg}
48128 TLS-SRP: ${curl_tls_srp_msg}
48129 resolver: ${curl_res_msg}
48130 IPv6: ${curl_ipv6_msg}
48131 Unix sockets: ${curl_unix_sockets_msg}
48132 IDN: ${curl_idn_msg}
48133 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
48134 Built-in manual: ${curl_manual_msg}
48135 --libcurl option: ${curl_libcurl_msg}
48136 Verbose errors: ${curl_verbose_msg}
48137 Code coverage: ${curl_coverage_msg}
48138 SSPI: ${curl_sspi_msg}
48139 ca cert bundle: ${ca}${ca_warning}
48140 ca cert path: ${capath}${capath_warning}
48141 ca fallback: ${with_ca_fallback}
48142 LDAP: ${curl_ldap_msg}
48143 LDAPS: ${curl_ldaps_msg}
48144 RTSP: ${curl_rtsp_msg}
48145 RTMP: ${curl_rtmp_msg}
48146 PSL: ${curl_psl_msg}
48147 Alt-svc: ${curl_altsvc_msg}
48148 Headers API: ${curl_headers_msg}
48149 HSTS: ${curl_hsts_msg}
48150 HTTP1: ${curl_h1_msg}
48151 HTTP2: ${curl_h2_msg}
48152 HTTP3: ${curl_h3_msg}
48153 ECH: ${curl_ech_msg}
48154 WebSockets: ${curl_ws_msg}
48155 Protocols: ${SUPPORT_PROTOCOLS}
48156 Features: ${SUPPORT_FEATURES}
48157" >&5
48158printf "%s\n" "$as_me: Configured to build curl/libcurl:
48159
48160 Host setup: ${host}
48161 Install prefix: ${prefix}
48162 Compiler: ${CC}
48163 CFLAGS: ${CFLAGS}
48164 CPPFLAGS: ${CPPFLAGS}
48165 LDFLAGS: ${LDFLAGS}
48166 LIBS: ${LIBS}
48167
48168 curl version: ${CURLVERSION}
48169 SSL: ${curl_ssl_msg}
48170 SSH: ${curl_ssh_msg}
48171 zlib: ${curl_zlib_msg}
48172 brotli: ${curl_brotli_msg}
48173 zstd: ${curl_zstd_msg}
48174 GSS-API: ${curl_gss_msg}
48175 GSASL: ${curl_gsasl_msg}
48176 TLS-SRP: ${curl_tls_srp_msg}
48177 resolver: ${curl_res_msg}
48178 IPv6: ${curl_ipv6_msg}
48179 Unix sockets: ${curl_unix_sockets_msg}
48180 IDN: ${curl_idn_msg}
48181 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
48182 Built-in manual: ${curl_manual_msg}
48183 --libcurl option: ${curl_libcurl_msg}
48184 Verbose errors: ${curl_verbose_msg}
48185 Code coverage: ${curl_coverage_msg}
48186 SSPI: ${curl_sspi_msg}
48187 ca cert bundle: ${ca}${ca_warning}
48188 ca cert path: ${capath}${capath_warning}
48189 ca fallback: ${with_ca_fallback}
48190 LDAP: ${curl_ldap_msg}
48191 LDAPS: ${curl_ldaps_msg}
48192 RTSP: ${curl_rtsp_msg}
48193 RTMP: ${curl_rtmp_msg}
48194 PSL: ${curl_psl_msg}
48195 Alt-svc: ${curl_altsvc_msg}
48196 Headers API: ${curl_headers_msg}
48197 HSTS: ${curl_hsts_msg}
48198 HTTP1: ${curl_h1_msg}
48199 HTTP2: ${curl_h2_msg}
48200 HTTP3: ${curl_h3_msg}
48201 ECH: ${curl_ech_msg}
48202 WebSockets: ${curl_ws_msg}
48203 Protocols: ${SUPPORT_PROTOCOLS}
48204 Features: ${SUPPORT_FEATURES}
48205" >&6;}
48206if test -n "$experimental"; then
48207 cat >&2 << _EOF
48208 WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!
48209_EOF
48210fi
48211