blob: db0a194860e60c658529226a84ae9864db7468a0 [file] [log] [blame]
Elliott Hughes82be86d2017-09-20 17:00:17 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for curl -.
4#
5# Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
15# This configure script may be copied, distributed and modified under the
16# terms of the curl license; see COPYING for more details
17
18## -------------------------------- ##
19## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20## -------------------------------- ##
21
22xc_configure_preamble_ver_major='1'
23xc_configure_preamble_ver_minor='0'
24
25#
26# Set IFS to space, tab and newline.
27#
28
29xc_space=' '
30xc_tab=' '
31xc_newline='
32'
33IFS="$xc_space$xc_tab$xc_newline"
34
35#
36# Set internationalization behavior variables.
37#
38
39LANG='C'
40LC_ALL='C'
41LANGUAGE='C'
42export LANG
43export LC_ALL
44export LANGUAGE
45
46#
47# Some useful variables.
48#
49
50xc_msg_warn='configure: WARNING:'
51xc_msg_abrt='Can not continue.'
52xc_msg_err='configure: error:'
53
54#
55# Verify that 'echo' command is available, otherwise abort.
56#
57
58xc_tst_str='unknown'
59(`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60case "x$xc_tst_str" in # ((
61 xsuccess)
62 :
63 ;;
64 *)
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
67 exit 1
68 ;;
69esac
70
71#
72# Verify that 'test' command is available, otherwise abort.
73#
74
75xc_tst_str='unknown'
76(`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77case "x$xc_tst_str" in # ((
78 xsuccess)
79 :
80 ;;
81 *)
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
83 exit 1
84 ;;
85esac
86
87#
88# Verify that 'PATH' variable is set, otherwise abort.
89#
90
91xc_tst_str='unknown'
92(`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93case "x$xc_tst_str" in # ((
94 xsuccess)
95 :
96 ;;
97 *)
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
99 exit 1
100 ;;
101esac
102
103#
104# Verify that 'expr' command is available, otherwise abort.
105#
106
107xc_tst_str='unknown'
108xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109case "x$xc_tst_str" in # ((
110 x7)
111 :
112 ;;
113 *)
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
115 exit 1
116 ;;
117esac
118
119#
120# Verify that 'sed' utility is found within 'PATH', otherwise abort.
121#
122
123xc_tst_str='unknown'
124xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126case "x$xc_tst_str" in # ((
127 xsuccess)
128 :
129 ;;
130 *)
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
132 exit 1
133 ;;
134esac
135
136#
137# Verify that 'grep' utility is found within 'PATH', otherwise abort.
138#
139
140xc_tst_str='unknown'
141(`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143case "x$xc_tst_str" in # ((
144 xsuccess)
145 :
146 ;;
147 *)
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
149 exit 1
150 ;;
151esac
152
153#
154# Verify that 'tr' utility is found within 'PATH', otherwise abort.
155#
156
157xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160case "x$xc_tst_str" in # ((
161 xsuccess)
162 :
163 ;;
164 *)
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
166 exit 1
167 ;;
168esac
169
170#
171# Verify that 'wc' utility is found within 'PATH', otherwise abort.
172#
173
174xc_tst_str='unknown unknown unknown unknown'
175xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177case "x$xc_tst_str" in # ((
178 x4)
179 :
180 ;;
181 *)
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
183 exit 1
184 ;;
185esac
186
187#
188# Verify that 'cat' utility is found within 'PATH', otherwise abort.
189#
190
191xc_tst_str='unknown'
192xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
194unknown
195unknown
196unknown
197_EOT`
198case "x$xc_tst_str" in # ((
199 x3)
200 :
201 ;;
202 *)
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
204 exit 1
205 ;;
206esac
207
208#
209# Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
210#
211
212# Directory count in 'PATH' when using a colon separator.
213xc_tst_dirs_col='x'
214xc_tst_prev_IFS=$IFS; IFS=':'
215for xc_tst_dir in $PATH; do
216 IFS=$xc_tst_prev_IFS
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
218done
219IFS=$xc_tst_prev_IFS
220xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
221
222# Directory count in 'PATH' when using a semicolon separator.
223xc_tst_dirs_sem='x'
224xc_tst_prev_IFS=$IFS; IFS=';'
225for xc_tst_dir in $PATH; do
226 IFS=$xc_tst_prev_IFS
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
228done
229IFS=$xc_tst_prev_IFS
230xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
231
232if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
Elliott Hughescac39802018-04-27 16:19:43 -0700236 # User should provide the correct 'PATH_SEPARATOR' definition.
237 # Until then, guess that it is colon!
238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
239 PATH_SEPARATOR=':'
Elliott Hughes82be86d2017-09-20 17:00:17 -0700240 fi
241else
242 # Separator with the greater directory count is the auto-detected one.
243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244 xc_tst_auto_separator=';'
245 else
246 xc_tst_auto_separator=':'
247 fi
248 if test -z "$PATH_SEPARATOR"; then
249 # Simply use the auto-detected one when not already set.
250 PATH_SEPARATOR=$xc_tst_auto_separator
251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
253 fi
254fi
255xc_PATH_SEPARATOR=$PATH_SEPARATOR
256
257xc_configure_preamble_result='yes'
258
259
260## -------------------- ##
261## M4sh Initialization. ##
262## -------------------- ##
263
264# Be more Bourne compatible
265DUALCASE=1; export DUALCASE # for MKS sh
266if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
267 emulate sh
268 NULLCMD=:
269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
272 setopt NO_GLOB_SUBST
273else
274 case `(set -o) 2>/dev/null` in #(
275 *posix*) :
276 set -o posix ;; #(
277 *) :
278 ;;
279esac
280fi
281
282
283as_nl='
284'
285export as_nl
286# Printing a long string crashes Solaris 7 /usr/bin/printf.
287as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290# Prefer a ksh shell builtin over an external printf program on Solaris,
291# but without wasting forks for bash or zsh.
292if test -z "$BASH_VERSION$ZSH_VERSION" \
293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294 as_echo='print -r --'
295 as_echo_n='print -rn --'
296elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297 as_echo='printf %s\n'
298 as_echo_n='printf %s'
299else
300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302 as_echo_n='/usr/ucb/echo -n'
303 else
304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
305 as_echo_n_body='eval
306 arg=$1;
307 case $arg in #(
308 *"$as_nl"*)
309 expr "X$arg" : "X\\(.*\\)$as_nl";
310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 esac;
312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 '
314 export as_echo_n_body
315 as_echo_n='sh -c $as_echo_n_body as_echo'
316 fi
317 export as_echo_body
318 as_echo='sh -c $as_echo_body as_echo'
319fi
320
321
322
323# IFS
324# We need space, tab and new line, in precisely that order. Quoting is
325# there to prevent editors from complaining about space-tab.
326# (If _AS_PATH_WALK were called with IFS unset, it would disable word
327# splitting by setting IFS to empty value.)
328IFS=" "" $as_nl"
329
330# Find who we are. Look in the path if we contain no directory separator.
331as_myself=
332case $0 in #((
333 *[\\/]* ) as_myself=$0 ;;
334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
335for as_dir in $PATH
336do
337 IFS=$as_save_IFS
338 test -z "$as_dir" && as_dir=.
339 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
340 done
341IFS=$as_save_IFS
342
343 ;;
344esac
345# We did not find ourselves, most probably we were run as `sh COMMAND'
346# in which case we are not to be found in the path.
347if test "x$as_myself" = x; then
348 as_myself=$0
349fi
350if test ! -f "$as_myself"; then
351 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
352 exit 1
353fi
354
355# Unset variables that we do not need and which cause bugs (e.g. in
356# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
357# suppresses any "Segmentation fault" message there. '((' could
358# trigger a bug in pdksh 5.2.14.
359for as_var in BASH_ENV ENV MAIL MAILPATH
360do eval test x\${$as_var+set} = xset \
361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
362done
363PS1='$ '
364PS2='> '
365PS4='+ '
366
367# NLS nuisances.
368LC_ALL=C
369export LC_ALL
370LANGUAGE=C
371export LANGUAGE
372
373# CDPATH.
374(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375
376# Use a proper internal environment variable to ensure we don't fall
377 # into an infinite loop, continuously re-executing ourselves.
378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379 _as_can_reexec=no; export _as_can_reexec;
380 # We cannot yet assume a decent shell, so we have to provide a
381# neutralization value for shells without unset; and this also
382# works around shells that cannot unset nonexistent variables.
383# Preserve -v and -x to the replacement shell.
384BASH_ENV=/dev/null
385ENV=/dev/null
386(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387case $- in # ((((
388 *v*x* | *x*v* ) as_opts=-vx ;;
389 *v* ) as_opts=-v ;;
390 *x* ) as_opts=-x ;;
391 * ) as_opts= ;;
392esac
393exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394# Admittedly, this is quite paranoid, since all the known shells bail
395# out after a failed `exec'.
396$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
397as_fn_exit 255
398 fi
399 # We don't want this to propagate to other subprocesses.
400 { _as_can_reexec=; unset _as_can_reexec;}
401if test "x$CONFIG_SHELL" = x; then
402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
403 emulate sh
404 NULLCMD=:
405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406 # is contrary to our usage. Disable this feature.
407 alias -g '\${1+\"\$@\"}'='\"\$@\"'
408 setopt NO_GLOB_SUBST
409else
410 case \`(set -o) 2>/dev/null\` in #(
411 *posix*) :
412 set -o posix ;; #(
413 *) :
414 ;;
415esac
416fi
417"
418 as_required="as_fn_return () { (exit \$1); }
419as_fn_success () { as_fn_return 0; }
420as_fn_failure () { as_fn_return 1; }
421as_fn_ret_success () { return 0; }
422as_fn_ret_failure () { return 1; }
423
424exitcode=0
425as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
430
431else
432 exitcode=1; echo positional parameters were not saved.
433fi
434test x\$exitcode = x0 || exit 1
435test -x / || exit 1"
436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440test \$(( 1 + 1 )) = 2 || exit 1
441
442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446 PATH=/empty FPATH=/empty; export PATH FPATH
447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449 if (eval "$as_required") 2>/dev/null; then :
450 as_have_required=yes
451else
452 as_have_required=no
453fi
454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
455
456else
457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458as_found=false
459for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
460do
461 IFS=$as_save_IFS
462 test -z "$as_dir" && as_dir=.
463 as_found=:
464 case $as_dir in #(
465 /*)
466 for as_base in sh bash ksh sh5; do
467 # Try only shells that exist, to save several forks.
468 as_shell=$as_dir/$as_base
469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471 CONFIG_SHELL=$as_shell as_have_required=yes
472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
473 break 2
474fi
475fi
476 done;;
477 esac
478 as_found=false
479done
480$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482 CONFIG_SHELL=$SHELL as_have_required=yes
483fi; }
484IFS=$as_save_IFS
485
486
487 if test "x$CONFIG_SHELL" != x; then :
488 export CONFIG_SHELL
489 # We cannot yet assume a decent shell, so we have to provide a
490# neutralization value for shells without unset; and this also
491# works around shells that cannot unset nonexistent variables.
492# Preserve -v and -x to the replacement shell.
493BASH_ENV=/dev/null
494ENV=/dev/null
495(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496case $- in # ((((
497 *v*x* | *x*v* ) as_opts=-vx ;;
498 *v* ) as_opts=-v ;;
499 *x* ) as_opts=-x ;;
500 * ) as_opts= ;;
501esac
502exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503# Admittedly, this is quite paranoid, since all the known shells bail
504# out after a failed `exec'.
505$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
506exit 255
507fi
508
509 if test x$as_have_required = xno; then :
510 $as_echo "$0: This script requires a shell more modern than all"
511 $as_echo "$0: the shells that I found on your system."
512 if test x${ZSH_VERSION+set} = xset ; then
513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 else
516 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517$0: mailing list: https://curl.haxx.se/mail/ about your
518$0: system, including any error possibly output before this
519$0: message. Then install a modern shell, or manually run
520$0: the script under such a shell if you do have one."
521 fi
522 exit 1
523fi
524fi
525fi
526SHELL=${CONFIG_SHELL-/bin/sh}
527export SHELL
528# Unset more variables known to interfere with behavior of common tools.
529CLICOLOR_FORCE= GREP_OPTIONS=
530unset CLICOLOR_FORCE GREP_OPTIONS
531
532## --------------------- ##
533## M4sh Shell Functions. ##
534## --------------------- ##
535# as_fn_unset VAR
536# ---------------
537# Portably unset VAR.
538as_fn_unset ()
539{
540 { eval $1=; unset $1;}
541}
542as_unset=as_fn_unset
543
544# as_fn_set_status STATUS
545# -----------------------
546# Set $? to STATUS, without forking.
547as_fn_set_status ()
548{
549 return $1
550} # as_fn_set_status
551
552# as_fn_exit STATUS
553# -----------------
554# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
555as_fn_exit ()
556{
557 set +e
558 as_fn_set_status $1
559 exit $1
560} # as_fn_exit
561
562# as_fn_mkdir_p
563# -------------
564# Create "$as_dir" as a directory, including parents if necessary.
565as_fn_mkdir_p ()
566{
567
568 case $as_dir in #(
569 -*) as_dir=./$as_dir;;
570 esac
571 test -d "$as_dir" || eval $as_mkdir_p || {
572 as_dirs=
573 while :; do
574 case $as_dir in #(
575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
576 *) as_qdir=$as_dir;;
577 esac
578 as_dirs="'$as_qdir' $as_dirs"
579 as_dir=`$as_dirname -- "$as_dir" ||
580$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581 X"$as_dir" : 'X\(//\)[^/]' \| \
582 X"$as_dir" : 'X\(//\)$' \| \
583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584$as_echo X"$as_dir" |
585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
586 s//\1/
587 q
588 }
589 /^X\(\/\/\)[^/].*/{
590 s//\1/
591 q
592 }
593 /^X\(\/\/\)$/{
594 s//\1/
595 q
596 }
597 /^X\(\/\).*/{
598 s//\1/
599 q
600 }
601 s/.*/./; q'`
602 test -d "$as_dir" && break
603 done
604 test -z "$as_dirs" || eval "mkdir $as_dirs"
605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
606
607
608} # as_fn_mkdir_p
609
610# as_fn_executable_p FILE
611# -----------------------
612# Test if FILE is an executable regular file.
613as_fn_executable_p ()
614{
615 test -f "$1" && test -x "$1"
616} # as_fn_executable_p
617# as_fn_append VAR VALUE
618# ----------------------
619# Append the text in VALUE to the end of the definition contained in VAR. Take
620# advantage of any shell optimizations that allow amortized linear growth over
621# repeated appends, instead of the typical quadratic growth present in naive
622# implementations.
623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624 eval 'as_fn_append ()
625 {
626 eval $1+=\$2
627 }'
628else
629 as_fn_append ()
630 {
631 eval $1=\$$1\$2
632 }
633fi # as_fn_append
634
635# as_fn_arith ARG...
636# ------------------
637# Perform arithmetic evaluation on the ARGs, and store the result in the
638# global $as_val. Take advantage of shells that can avoid forks. The arguments
639# must be portable across $(()) and expr.
640if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
641 eval 'as_fn_arith ()
642 {
643 as_val=$(( $* ))
644 }'
645else
646 as_fn_arith ()
647 {
648 as_val=`expr "$@" || test $? -eq 1`
649 }
650fi # as_fn_arith
651
652
653# as_fn_error STATUS ERROR [LINENO LOG_FD]
654# ----------------------------------------
655# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657# script with STATUS, using 1 if that was 0.
658as_fn_error ()
659{
660 as_status=$1; test $as_status -eq 0 && as_status=1
661 if test "$4"; then
662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 fi
665 $as_echo "$as_me: error: $2" >&2
666 as_fn_exit $as_status
667} # as_fn_error
668
669if expr a : '\(a\)' >/dev/null 2>&1 &&
670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
671 as_expr=expr
672else
673 as_expr=false
674fi
675
676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
677 as_basename=basename
678else
679 as_basename=false
680fi
681
682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
683 as_dirname=dirname
684else
685 as_dirname=false
686fi
687
688as_me=`$as_basename -- "$0" ||
689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690 X"$0" : 'X\(//\)$' \| \
691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692$as_echo X/"$0" |
693 sed '/^.*\/\([^/][^/]*\)\/*$/{
694 s//\1/
695 q
696 }
697 /^X\/\(\/\/\)$/{
698 s//\1/
699 q
700 }
701 /^X\/\(\/\).*/{
702 s//\1/
703 q
704 }
705 s/.*/./; q'`
706
707# Avoid depending upon Character Ranges.
708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711as_cr_digits='0123456789'
712as_cr_alnum=$as_cr_Letters$as_cr_digits
713
714
715 as_lineno_1=$LINENO as_lineno_1a=$LINENO
716 as_lineno_2=$LINENO as_lineno_2a=$LINENO
717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
720 sed -n '
721 p
722 /[$]LINENO/=
723 ' <$as_myself |
724 sed '
725 s/[$]LINENO.*/&-/
726 t lineno
727 b
728 :lineno
729 N
730 :loop
731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
732 t loop
733 s/-\n.*//
734 ' >$as_me.lineno &&
735 chmod +x "$as_me.lineno" ||
736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737
738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739 # already done that, so ensure we don't try to do so again and fall
740 # in an infinite loop. This has already happened in practice.
741 _as_can_reexec=no; export _as_can_reexec
742 # Don't try to exec as it changes $[0], causing all sort of problems
743 # (the dirname of $[0] is not the place where we might find the
744 # original and so on. Autoconf is especially sensitive to this).
745 . "./$as_me.lineno"
746 # Exit status is that of the last command.
747 exit
748}
749
750ECHO_C= ECHO_N= ECHO_T=
751case `echo -n x` in #(((((
752-n*)
753 case `echo 'xy\c'` in
754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 xy) ECHO_C='\c';;
756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
757 ECHO_T=' ';;
758 esac;;
759*)
760 ECHO_N='-n';;
761esac
762
763rm -f conf$$ conf$$.exe conf$$.file
764if test -d conf$$.dir; then
765 rm -f conf$$.dir/conf$$.file
766else
767 rm -f conf$$.dir
768 mkdir conf$$.dir 2>/dev/null
769fi
770if (echo >conf$$.file) 2>/dev/null; then
771 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 as_ln_s='ln -s'
773 # ... but there are two gotchas:
774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776 # In both cases, we have to default to `cp -pR'.
777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 as_ln_s='cp -pR'
779 elif ln conf$$.file conf$$ 2>/dev/null; then
780 as_ln_s=ln
781 else
782 as_ln_s='cp -pR'
783 fi
784else
785 as_ln_s='cp -pR'
786fi
787rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788rmdir conf$$.dir 2>/dev/null
789
790if mkdir -p . 2>/dev/null; then
791 as_mkdir_p='mkdir -p "$as_dir"'
792else
793 test -d ./-p && rmdir ./-p
794 as_mkdir_p=false
795fi
796
797as_test_x='test -x'
798as_executable_p=as_fn_executable_p
799
800# Sed expression to map a string onto a valid CPP name.
801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802
803# Sed expression to map a string onto a valid variable name.
804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805
806SHELL=${CONFIG_SHELL-/bin/sh}
807
808
809test -n "$DJDIR" || exec 7<&0 </dev/null
810exec 6>&1
811
812# Name of the host.
813# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814# so uname gets run too.
815ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
816
817#
818# Initializations.
819#
820ac_default_prefix=/usr/local
821ac_clean_files=
822ac_config_libobj_dir=.
823LIBOBJS=
824cross_compiling=no
825subdirs=
826MFLAGS=
827MAKEFLAGS=
828
829# Identity of this package.
830PACKAGE_NAME='curl'
831PACKAGE_TARNAME='curl'
832PACKAGE_VERSION='-'
833PACKAGE_STRING='curl -'
834PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
835PACKAGE_URL=''
836
837ac_unique_file="lib/urldata.h"
838# Factoring default headers for most tests.
839ac_includes_default="\
840#include <stdio.h>
841#ifdef HAVE_SYS_TYPES_H
842# include <sys/types.h>
843#endif
844#ifdef HAVE_SYS_STAT_H
845# include <sys/stat.h>
846#endif
847#ifdef STDC_HEADERS
848# include <stdlib.h>
849# include <stddef.h>
850#else
851# ifdef HAVE_STDLIB_H
852# include <stdlib.h>
853# endif
854#endif
855#ifdef HAVE_STRING_H
856# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
857# include <memory.h>
858# endif
859# include <string.h>
860#endif
861#ifdef HAVE_STRINGS_H
862# include <strings.h>
863#endif
864#ifdef HAVE_INTTYPES_H
865# include <inttypes.h>
866#endif
867#ifdef HAVE_STDINT_H
868# include <stdint.h>
869#endif
870#ifdef HAVE_UNISTD_H
871# include <unistd.h>
872#endif"
873
874enable_option_checking=no
875ac_subst_vars='am__EXEEXT_FALSE
876am__EXEEXT_TRUE
877LTLIBOBJS
878LIBOBJS
Elliott Hughes0128fe42018-02-27 14:57:55 -0800879SSL_BACKENDS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700880SUPPORT_PROTOCOLS
881SUPPORT_FEATURES
882ENABLE_STATIC
883ENABLE_SHARED
884CROSSCOMPILING_FALSE
885CROSSCOMPILING_TRUE
886BLANK_AT_MAKETIME
887CURL_NETWORK_AND_TIME_LIBS
888CURL_NETWORK_LIBS
889LIBCURL_LIBS
Elliott Hughes82be86d2017-09-20 17:00:17 -0700890CFLAG_CURL_SYMBOL_HIDING
891DOING_CURL_SYMBOL_HIDING_FALSE
892DOING_CURL_SYMBOL_HIDING_TRUE
893USE_UNIX_SOCKETS
894BUILD_LIBHOSTNAME_FALSE
895BUILD_LIBHOSTNAME_TRUE
896USE_EMBEDDED_ARES_FALSE
897USE_EMBEDDED_ARES_TRUE
898USE_ARES
899subdirs
900USE_MANUAL_FALSE
901USE_MANUAL_TRUE
902MANOPT
903NROFF
904PERL
905IPV6_ENABLED
906ZSH_FUNCTIONS_DIR
907USE_NGHTTP2
908IDN_ENABLED
909CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911CURL_LT_SHLIB_VERSIONED_FLAVOUR
912USE_LIBRTMP
Elliott Hughes0128fe42018-02-27 14:57:55 -0800913USE_LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -0700914USE_LIBSSH2
915LIBMETALINK_CPPFLAGS
916LIBMETALINK_LDFLAGS
917LIBMETALINK_LIBS
918USE_LIBPSL_FALSE
919USE_LIBPSL_TRUE
920CURL_CA_BUNDLE
Alex Deymo486467e2017-12-19 19:04:07 +0100921CURL_WITH_MULTI_SSL
Elliott Hughes82be86d2017-09-20 17:00:17 -0700922SSL_ENABLED
Elliott Hughes82be86d2017-09-20 17:00:17 -0700923NSS_LIBS
924USE_NSS
Elliott Hughesa93fb052018-12-12 14:22:48 -0800925USE_MESALINK
Elliott Hughes82be86d2017-09-20 17:00:17 -0700926USE_CYASSL
927USE_MBEDTLS
928USE_POLARSSL
929HAVE_GNUTLS_SRP
930USE_GNUTLS_NETTLE
931USE_GNUTLS
932HAVE_OPENSSL_SRP
933RANDOM_FILE
934SSL_LIBS
935USE_DARWINSSL
936USE_WINDOWS_SSPI
937USE_SCHANNEL
Alex Deymo486467e2017-12-19 19:04:07 +0100938DEFAULT_SSL_BACKEND
939BUILD_STUB_GSS_FALSE
940BUILD_STUB_GSS_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -0700941USE_OPENLDAP
Alex Deymo486467e2017-12-19 19:04:07 +0100942HAVE_BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -0700943ZLIB_LIBS
944HAVE_LIBZ_FALSE
945HAVE_LIBZ_TRUE
946HAVE_LIBZ
947PKGCONFIG
948CURL_DISABLE_GOPHER
949CURL_DISABLE_SMTP
950CURL_DISABLE_SMB
951CURL_DISABLE_IMAP
952CURL_DISABLE_POP3
953CURL_DISABLE_TFTP
954CURL_DISABLE_TELNET
955CURL_DISABLE_DICT
956CURL_DISABLE_PROXY
957HAVE_LDAP_SSL
958CURL_DISABLE_LDAPS
959CURL_DISABLE_LDAP
960CURL_DISABLE_FILE
961CURL_DISABLE_FTP
962CURL_DISABLE_RTSP
963CURL_DISABLE_HTTP
964DOING_NATIVE_WINDOWS_FALSE
965DOING_NATIVE_WINDOWS_TRUE
966BUILD_UNITTESTS_FALSE
967BUILD_UNITTESTS_TRUE
968CURLDEBUG_FALSE
969CURLDEBUG_TRUE
970USE_EXPLICIT_LIB_DEPS_FALSE
971USE_EXPLICIT_LIB_DEPS_TRUE
972REQUIRE_LIB_DEPS
973CPPFLAG_CURL_STATICLIB
974USE_CPPFLAG_CURL_STATICLIB_FALSE
975USE_CPPFLAG_CURL_STATICLIB_TRUE
976CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
977CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
978CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
979CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
980CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
981CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
982LT_SYS_LIBRARY_PATH
983OTOOL64
984OTOOL
985LIPO
986NMEDIT
987DSYMUTIL
988MANIFEST_TOOL
989RANLIB
990ac_ct_AR
991LN_S
992NM
993ac_ct_DUMPBIN
994DUMPBIN
995LD
996FGREP
997LIBTOOL
998OBJDUMP
999DLLTOOL
1000AS
Elliott Hughes72d948d2018-08-03 14:37:21 -07001001AR_FLAGS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001002host_os
1003host_vendor
1004host_cpu
1005host
1006build_os
1007build_vendor
1008build_cpu
1009build
1010PKGADD_VENDOR
1011PKGADD_NAME
1012PKGADD_PKG
1013VERSIONNUM
1014CURLVERSION
1015am__fastdepCC_FALSE
1016am__fastdepCC_TRUE
1017CCDEPMODE
1018am__nodep
1019AMDEPBACKSLASH
1020AMDEP_FALSE
1021AMDEP_TRUE
1022am__quote
1023am__include
1024DEPDIR
1025am__untar
1026am__tar
1027AMTAR
1028am__leading_dot
1029SET_MAKE
1030AWK
1031mkdir_p
1032MKDIR_P
1033INSTALL_STRIP_PROGRAM
1034STRIP
1035install_sh
1036MAKEINFO
1037AUTOHEADER
1038AUTOMAKE
1039AUTOCONF
1040ACLOCAL
1041VERSION
1042PACKAGE
1043CYGPATH_W
1044am__isrc
Elliott Hughes0128fe42018-02-27 14:57:55 -08001045CODE_COVERAGE_RULES
1046CODE_COVERAGE_LDFLAGS
1047CODE_COVERAGE_LIBS
1048CODE_COVERAGE_CXXFLAGS
1049CODE_COVERAGE_CFLAGS
1050CODE_COVERAGE_CPPFLAGS
1051GENHTML
1052LCOV
1053GCOV
1054CODE_COVERAGE_ENABLED
1055CODE_COVERAGE_ENABLED_FALSE
1056CODE_COVERAGE_ENABLED_TRUE
Elliott Hughes82be86d2017-09-20 17:00:17 -07001057CPP
1058OBJEXT
1059EXEEXT
1060ac_ct_CC
1061CPPFLAGS
1062LDFLAGS
1063CFLAGS
1064CC
1065INSTALL_DATA
1066INSTALL_SCRIPT
1067INSTALL_PROGRAM
1068libext
1069AR
1070EGREP
1071GREP
Elliott Hughes0128fe42018-02-27 14:57:55 -08001072SED
Elliott Hughes82be86d2017-09-20 17:00:17 -07001073CURL_CFLAG_EXTRAS
1074CONFIGURE_OPTIONS
Elliott Hughes82be86d2017-09-20 17:00:17 -07001075AM_BACKSLASH
1076AM_DEFAULT_VERBOSITY
1077AM_DEFAULT_V
1078AM_V
1079MAINT
1080MAINTAINER_MODE_FALSE
1081MAINTAINER_MODE_TRUE
1082target_alias
1083host_alias
1084build_alias
1085LIBS
1086ECHO_T
1087ECHO_N
1088ECHO_C
1089DEFS
1090mandir
1091localedir
1092libdir
1093psdir
1094pdfdir
1095dvidir
1096htmldir
1097infodir
1098docdir
1099oldincludedir
1100includedir
1101runstatedir
1102localstatedir
1103sharedstatedir
1104sysconfdir
1105datadir
1106datarootdir
1107libexecdir
1108sbindir
1109bindir
1110program_transform_name
1111prefix
1112exec_prefix
1113PACKAGE_URL
1114PACKAGE_BUGREPORT
1115PACKAGE_STRING
1116PACKAGE_VERSION
1117PACKAGE_TARNAME
1118PACKAGE_NAME
1119SHELL
1120PATH_SEPARATOR'
1121ac_subst_files=''
1122ac_user_opts='
1123enable_option_checking
1124enable_maintainer_mode
1125enable_silent_rules
1126enable_debug
1127enable_optimize
1128enable_warnings
1129enable_werror
1130enable_curldebug
1131enable_symbol_hiding
1132enable_hidden_symbols
1133enable_ares
1134enable_rt
1135with_gcov
1136enable_code_coverage
1137enable_dependency_tracking
1138enable_largefile
1139enable_shared
1140enable_static
1141with_pic
1142enable_fast_install
1143with_aix_soname
1144with_gnu_ld
1145with_sysroot
1146enable_libtool_lock
1147enable_http
1148enable_ftp
1149enable_file
1150enable_ldap
1151enable_ldaps
1152enable_rtsp
1153enable_proxy
1154enable_dict
1155enable_telnet
1156enable_tftp
1157enable_pop3
1158enable_imap
1159enable_smb
1160enable_smtp
1161enable_gopher
1162enable_manual
1163enable_libcurl_option
1164enable_libgcc
1165with_zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001166with_brotli
Elliott Hughes82be86d2017-09-20 17:00:17 -07001167with_ldap_lib
1168with_lber_lib
1169enable_ipv6
1170with_gssapi_includes
1171with_gssapi_libs
1172with_gssapi
Alex Deymo486467e2017-12-19 19:04:07 +01001173with_default_ssl_backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001174with_winssl
1175with_darwinssl
1176with_ssl
1177with_egd_socket
1178with_random
Elliott Hughesa93fb052018-12-12 14:22:48 -08001179enable_openssl_auto_load_config
Elliott Hughes82be86d2017-09-20 17:00:17 -07001180with_gnutls
1181with_polarssl
1182with_mbedtls
1183with_cyassl
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07001184with_wolfssl
Elliott Hughesa93fb052018-12-12 14:22:48 -08001185with_mesalink
Elliott Hughes82be86d2017-09-20 17:00:17 -07001186with_nss
Elliott Hughes82be86d2017-09-20 17:00:17 -07001187with_ca_bundle
1188with_ca_path
1189with_ca_fallback
1190with_libpsl
1191with_libmetalink
1192with_libssh2
Elliott Hughes0128fe42018-02-27 14:57:55 -08001193with_libssh
Elliott Hughes82be86d2017-09-20 17:00:17 -07001194with_librtmp
1195enable_versioned_symbols
1196with_winidn
1197with_libidn2
1198with_nghttp2
1199with_zsh_functions_dir
1200enable_threaded_resolver
1201enable_pthreads
1202enable_verbose
1203enable_sspi
1204enable_crypto_auth
1205enable_ntlm_wb
1206enable_tls_srp
1207enable_unix_sockets
1208enable_cookies
Elliott Hughes82be86d2017-09-20 17:00:17 -07001209'
1210 ac_precious_vars='build_alias
1211host_alias
1212target_alias
1213CC
1214CFLAGS
1215LDFLAGS
1216LIBS
1217CPPFLAGS
1218CPP
1219LT_SYS_LIBRARY_PATH'
1220ac_subdirs_all='ares'
1221
1222# Initialize some variables set by options.
1223ac_init_help=
1224ac_init_version=false
1225ac_unrecognized_opts=
1226ac_unrecognized_sep=
1227# The variables have the same names as the options, with
1228# dashes changed to underlines.
1229cache_file=/dev/null
1230exec_prefix=NONE
1231no_create=
1232no_recursion=
1233prefix=NONE
1234program_prefix=NONE
1235program_suffix=NONE
1236program_transform_name=s,x,x,
1237silent=
1238site=
1239srcdir=
1240verbose=
1241x_includes=NONE
1242x_libraries=NONE
1243
1244# Installation directory options.
1245# These are left unexpanded so users can "make install exec_prefix=/foo"
1246# and all the variables that are supposed to be based on exec_prefix
1247# by default will actually change.
1248# Use braces instead of parens because sh, perl, etc. also accept them.
1249# (The list follows the same order as the GNU Coding Standards.)
1250bindir='${exec_prefix}/bin'
1251sbindir='${exec_prefix}/sbin'
1252libexecdir='${exec_prefix}/libexec'
1253datarootdir='${prefix}/share'
1254datadir='${datarootdir}'
1255sysconfdir='${prefix}/etc'
1256sharedstatedir='${prefix}/com'
1257localstatedir='${prefix}/var'
1258runstatedir='${localstatedir}/run'
1259includedir='${prefix}/include'
1260oldincludedir='/usr/include'
1261docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1262infodir='${datarootdir}/info'
1263htmldir='${docdir}'
1264dvidir='${docdir}'
1265pdfdir='${docdir}'
1266psdir='${docdir}'
1267libdir='${exec_prefix}/lib'
1268localedir='${datarootdir}/locale'
1269mandir='${datarootdir}/man'
1270
1271ac_prev=
1272ac_dashdash=
1273for ac_option
1274do
1275 # If the previous option needs an argument, assign it.
1276 if test -n "$ac_prev"; then
1277 eval $ac_prev=\$ac_option
1278 ac_prev=
1279 continue
1280 fi
1281
1282 case $ac_option in
1283 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1284 *=) ac_optarg= ;;
1285 *) ac_optarg=yes ;;
1286 esac
1287
1288 # Accept the important Cygnus configure options, so we can diagnose typos.
1289
1290 case $ac_dashdash$ac_option in
1291 --)
1292 ac_dashdash=yes ;;
1293
1294 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1295 ac_prev=bindir ;;
1296 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1297 bindir=$ac_optarg ;;
1298
1299 -build | --build | --buil | --bui | --bu)
1300 ac_prev=build_alias ;;
1301 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1302 build_alias=$ac_optarg ;;
1303
1304 -cache-file | --cache-file | --cache-fil | --cache-fi \
1305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1306 ac_prev=cache_file ;;
1307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1309 cache_file=$ac_optarg ;;
1310
1311 --config-cache | -C)
1312 cache_file=config.cache ;;
1313
1314 -datadir | --datadir | --datadi | --datad)
1315 ac_prev=datadir ;;
1316 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1317 datadir=$ac_optarg ;;
1318
1319 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1320 | --dataroo | --dataro | --datar)
1321 ac_prev=datarootdir ;;
1322 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1323 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1324 datarootdir=$ac_optarg ;;
1325
1326 -disable-* | --disable-*)
1327 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1328 # Reject names that are not valid shell variable names.
1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330 as_fn_error $? "invalid feature name: $ac_useropt"
1331 ac_useropt_orig=$ac_useropt
1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333 case $ac_user_opts in
1334 *"
1335"enable_$ac_useropt"
1336"*) ;;
1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1338 ac_unrecognized_sep=', ';;
1339 esac
1340 eval enable_$ac_useropt=no ;;
1341
1342 -docdir | --docdir | --docdi | --doc | --do)
1343 ac_prev=docdir ;;
1344 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1345 docdir=$ac_optarg ;;
1346
1347 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1348 ac_prev=dvidir ;;
1349 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1350 dvidir=$ac_optarg ;;
1351
1352 -enable-* | --enable-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error $? "invalid feature name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1360 *"
1361"enable_$ac_useropt"
1362"*) ;;
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1365 esac
1366 eval enable_$ac_useropt=\$ac_optarg ;;
1367
1368 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1369 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1370 | --exec | --exe | --ex)
1371 ac_prev=exec_prefix ;;
1372 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1373 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1374 | --exec=* | --exe=* | --ex=*)
1375 exec_prefix=$ac_optarg ;;
1376
1377 -gas | --gas | --ga | --g)
1378 # Obsolete; use --with-gas.
1379 with_gas=yes ;;
1380
1381 -help | --help | --hel | --he | -h)
1382 ac_init_help=long ;;
1383 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1384 ac_init_help=recursive ;;
1385 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1386 ac_init_help=short ;;
1387
1388 -host | --host | --hos | --ho)
1389 ac_prev=host_alias ;;
1390 -host=* | --host=* | --hos=* | --ho=*)
1391 host_alias=$ac_optarg ;;
1392
1393 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1394 ac_prev=htmldir ;;
1395 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1396 | --ht=*)
1397 htmldir=$ac_optarg ;;
1398
1399 -includedir | --includedir | --includedi | --included | --include \
1400 | --includ | --inclu | --incl | --inc)
1401 ac_prev=includedir ;;
1402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1403 | --includ=* | --inclu=* | --incl=* | --inc=*)
1404 includedir=$ac_optarg ;;
1405
1406 -infodir | --infodir | --infodi | --infod | --info | --inf)
1407 ac_prev=infodir ;;
1408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1409 infodir=$ac_optarg ;;
1410
1411 -libdir | --libdir | --libdi | --libd)
1412 ac_prev=libdir ;;
1413 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1414 libdir=$ac_optarg ;;
1415
1416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1417 | --libexe | --libex | --libe)
1418 ac_prev=libexecdir ;;
1419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1420 | --libexe=* | --libex=* | --libe=*)
1421 libexecdir=$ac_optarg ;;
1422
1423 -localedir | --localedir | --localedi | --localed | --locale)
1424 ac_prev=localedir ;;
1425 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1426 localedir=$ac_optarg ;;
1427
1428 -localstatedir | --localstatedir | --localstatedi | --localstated \
1429 | --localstate | --localstat | --localsta | --localst | --locals)
1430 ac_prev=localstatedir ;;
1431 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1432 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1433 localstatedir=$ac_optarg ;;
1434
1435 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1436 ac_prev=mandir ;;
1437 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1438 mandir=$ac_optarg ;;
1439
1440 -nfp | --nfp | --nf)
1441 # Obsolete; use --without-fp.
1442 with_fp=no ;;
1443
1444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1445 | --no-cr | --no-c | -n)
1446 no_create=yes ;;
1447
1448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1450 no_recursion=yes ;;
1451
1452 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1453 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1454 | --oldin | --oldi | --old | --ol | --o)
1455 ac_prev=oldincludedir ;;
1456 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1457 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1458 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1459 oldincludedir=$ac_optarg ;;
1460
1461 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1462 ac_prev=prefix ;;
1463 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1464 prefix=$ac_optarg ;;
1465
1466 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1467 | --program-pre | --program-pr | --program-p)
1468 ac_prev=program_prefix ;;
1469 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1470 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1471 program_prefix=$ac_optarg ;;
1472
1473 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1474 | --program-suf | --program-su | --program-s)
1475 ac_prev=program_suffix ;;
1476 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1477 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1478 program_suffix=$ac_optarg ;;
1479
1480 -program-transform-name | --program-transform-name \
1481 | --program-transform-nam | --program-transform-na \
1482 | --program-transform-n | --program-transform- \
1483 | --program-transform | --program-transfor \
1484 | --program-transfo | --program-transf \
1485 | --program-trans | --program-tran \
1486 | --progr-tra | --program-tr | --program-t)
1487 ac_prev=program_transform_name ;;
1488 -program-transform-name=* | --program-transform-name=* \
1489 | --program-transform-nam=* | --program-transform-na=* \
1490 | --program-transform-n=* | --program-transform-=* \
1491 | --program-transform=* | --program-transfor=* \
1492 | --program-transfo=* | --program-transf=* \
1493 | --program-trans=* | --program-tran=* \
1494 | --progr-tra=* | --program-tr=* | --program-t=*)
1495 program_transform_name=$ac_optarg ;;
1496
1497 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1498 ac_prev=pdfdir ;;
1499 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1500 pdfdir=$ac_optarg ;;
1501
1502 -psdir | --psdir | --psdi | --psd | --ps)
1503 ac_prev=psdir ;;
1504 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1505 psdir=$ac_optarg ;;
1506
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 silent=yes ;;
1510
1511 -runstatedir | --runstatedir | --runstatedi | --runstated \
1512 | --runstate | --runstat | --runsta | --runst | --runs \
1513 | --run | --ru | --r)
1514 ac_prev=runstatedir ;;
1515 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1516 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1517 | --run=* | --ru=* | --r=*)
1518 runstatedir=$ac_optarg ;;
1519
1520 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1521 ac_prev=sbindir ;;
1522 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1523 | --sbi=* | --sb=*)
1524 sbindir=$ac_optarg ;;
1525
1526 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1527 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1528 | --sharedst | --shareds | --shared | --share | --shar \
1529 | --sha | --sh)
1530 ac_prev=sharedstatedir ;;
1531 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1532 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1533 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1534 | --sha=* | --sh=*)
1535 sharedstatedir=$ac_optarg ;;
1536
1537 -site | --site | --sit)
1538 ac_prev=site ;;
1539 -site=* | --site=* | --sit=*)
1540 site=$ac_optarg ;;
1541
1542 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1543 ac_prev=srcdir ;;
1544 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1545 srcdir=$ac_optarg ;;
1546
1547 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1548 | --syscon | --sysco | --sysc | --sys | --sy)
1549 ac_prev=sysconfdir ;;
1550 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1551 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1552 sysconfdir=$ac_optarg ;;
1553
1554 -target | --target | --targe | --targ | --tar | --ta | --t)
1555 ac_prev=target_alias ;;
1556 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1557 target_alias=$ac_optarg ;;
1558
1559 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1560 verbose=yes ;;
1561
1562 -version | --version | --versio | --versi | --vers | -V)
1563 ac_init_version=: ;;
1564
1565 -with-* | --with-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569 as_fn_error $? "invalid package name: $ac_useropt"
1570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574"with_$ac_useropt"
1575"*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval with_$ac_useropt=\$ac_optarg ;;
1580
1581 -without-* | --without-*)
1582 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1583 # Reject names that are not valid shell variable names.
1584 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1585 as_fn_error $? "invalid package name: $ac_useropt"
1586 ac_useropt_orig=$ac_useropt
1587 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1588 case $ac_user_opts in
1589 *"
1590"with_$ac_useropt"
1591"*) ;;
1592 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1593 ac_unrecognized_sep=', ';;
1594 esac
1595 eval with_$ac_useropt=no ;;
1596
1597 --x)
1598 # Obsolete; use --with-x.
1599 with_x=yes ;;
1600
1601 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1602 | --x-incl | --x-inc | --x-in | --x-i)
1603 ac_prev=x_includes ;;
1604 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1605 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1606 x_includes=$ac_optarg ;;
1607
1608 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1609 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1610 ac_prev=x_libraries ;;
1611 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1612 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1613 x_libraries=$ac_optarg ;;
1614
1615 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1616Try \`$0 --help' for more information"
1617 ;;
1618
1619 *=*)
1620 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1621 # Reject names that are not valid shell variable names.
1622 case $ac_envvar in #(
1623 '' | [0-9]* | *[!_$as_cr_alnum]* )
1624 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1625 esac
1626 eval $ac_envvar=\$ac_optarg
1627 export $ac_envvar ;;
1628
1629 *)
1630 # FIXME: should be removed in autoconf 3.0.
1631 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1632 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1633 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1634 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1635 ;;
1636
1637 esac
1638done
1639
1640if test -n "$ac_prev"; then
1641 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1642 as_fn_error $? "missing argument to $ac_option"
1643fi
1644
1645if test -n "$ac_unrecognized_opts"; then
1646 case $enable_option_checking in
1647 no) ;;
1648 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1649 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1650 esac
1651fi
1652
1653# Check all directory arguments for consistency.
1654for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1655 datadir sysconfdir sharedstatedir localstatedir includedir \
1656 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1657 libdir localedir mandir runstatedir
1658do
1659 eval ac_val=\$$ac_var
1660 # Remove trailing slashes.
1661 case $ac_val in
1662 */ )
1663 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1664 eval $ac_var=\$ac_val;;
1665 esac
1666 # Be sure to have absolute directory names.
1667 case $ac_val in
1668 [\\/$]* | ?:[\\/]* ) continue;;
1669 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1670 esac
1671 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1672done
1673
1674# There might be people who depend on the old broken behavior: `$host'
1675# used to hold the argument of --host etc.
1676# FIXME: To remove some day.
1677build=$build_alias
1678host=$host_alias
1679target=$target_alias
1680
1681# FIXME: To remove some day.
1682if test "x$host_alias" != x; then
1683 if test "x$build_alias" = x; then
1684 cross_compiling=maybe
1685 elif test "x$build_alias" != "x$host_alias"; then
1686 cross_compiling=yes
1687 fi
1688fi
1689
1690ac_tool_prefix=
1691test -n "$host_alias" && ac_tool_prefix=$host_alias-
1692
1693test "$silent" = yes && exec 6>/dev/null
1694
1695
1696ac_pwd=`pwd` && test -n "$ac_pwd" &&
1697ac_ls_di=`ls -di .` &&
1698ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1699 as_fn_error $? "working directory cannot be determined"
1700test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1701 as_fn_error $? "pwd does not report name of working directory"
1702
1703
1704# Find the source files, if location was not specified.
1705if test -z "$srcdir"; then
1706 ac_srcdir_defaulted=yes
1707 # Try the directory containing this script, then the parent directory.
1708 ac_confdir=`$as_dirname -- "$as_myself" ||
1709$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1710 X"$as_myself" : 'X\(//\)[^/]' \| \
1711 X"$as_myself" : 'X\(//\)$' \| \
1712 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1713$as_echo X"$as_myself" |
1714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1715 s//\1/
1716 q
1717 }
1718 /^X\(\/\/\)[^/].*/{
1719 s//\1/
1720 q
1721 }
1722 /^X\(\/\/\)$/{
1723 s//\1/
1724 q
1725 }
1726 /^X\(\/\).*/{
1727 s//\1/
1728 q
1729 }
1730 s/.*/./; q'`
1731 srcdir=$ac_confdir
1732 if test ! -r "$srcdir/$ac_unique_file"; then
1733 srcdir=..
1734 fi
1735else
1736 ac_srcdir_defaulted=no
1737fi
1738if test ! -r "$srcdir/$ac_unique_file"; then
1739 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1740 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1741fi
1742ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1743ac_abs_confdir=`(
1744 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1745 pwd)`
1746# When building in place, set srcdir=.
1747if test "$ac_abs_confdir" = "$ac_pwd"; then
1748 srcdir=.
1749fi
1750# Remove unnecessary trailing slashes from srcdir.
1751# Double slashes in file names in object file debugging info
1752# mess up M-x gdb in Emacs.
1753case $srcdir in
1754*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1755esac
1756for ac_var in $ac_precious_vars; do
1757 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1758 eval ac_env_${ac_var}_value=\$${ac_var}
1759 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1760 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1761done
1762
1763#
1764# Report the --help message.
1765#
1766if test "$ac_init_help" = "long"; then
1767 # Omit some internal or obsolete options to make the list less imposing.
1768 # This message is too long to be a string in the A/UX 3.1 sh.
1769 cat <<_ACEOF
1770\`configure' configures curl - to adapt to many kinds of systems.
1771
1772Usage: $0 [OPTION]... [VAR=VALUE]...
1773
1774To assign environment variables (e.g., CC, CFLAGS...), specify them as
1775VAR=VALUE. See below for descriptions of some of the useful variables.
1776
1777Defaults for the options are specified in brackets.
1778
1779Configuration:
1780 -h, --help display this help and exit
1781 --help=short display options specific to this package
1782 --help=recursive display the short help of all the included packages
1783 -V, --version display version information and exit
1784 -q, --quiet, --silent do not print \`checking ...' messages
1785 --cache-file=FILE cache test results in FILE [disabled]
1786 -C, --config-cache alias for \`--cache-file=config.cache'
1787 -n, --no-create do not create output files
1788 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1789
1790Installation directories:
1791 --prefix=PREFIX install architecture-independent files in PREFIX
1792 [$ac_default_prefix]
1793 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1794 [PREFIX]
1795
1796By default, \`make install' will install all the files in
1797\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1798an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1799for instance \`--prefix=\$HOME'.
1800
1801For better control, use the options below.
1802
1803Fine tuning of the installation directories:
1804 --bindir=DIR user executables [EPREFIX/bin]
1805 --sbindir=DIR system admin executables [EPREFIX/sbin]
1806 --libexecdir=DIR program executables [EPREFIX/libexec]
1807 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1808 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1809 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1810 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1811 --libdir=DIR object code libraries [EPREFIX/lib]
1812 --includedir=DIR C header files [PREFIX/include]
1813 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1814 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1815 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1816 --infodir=DIR info documentation [DATAROOTDIR/info]
1817 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1818 --mandir=DIR man documentation [DATAROOTDIR/man]
1819 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1820 --htmldir=DIR html documentation [DOCDIR]
1821 --dvidir=DIR dvi documentation [DOCDIR]
1822 --pdfdir=DIR pdf documentation [DOCDIR]
1823 --psdir=DIR ps documentation [DOCDIR]
1824_ACEOF
1825
1826 cat <<\_ACEOF
1827
1828Program names:
1829 --program-prefix=PREFIX prepend PREFIX to installed program names
1830 --program-suffix=SUFFIX append SUFFIX to installed program names
1831 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1832
1833System types:
1834 --build=BUILD configure for building on BUILD [guessed]
1835 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1836_ACEOF
1837fi
1838
1839if test -n "$ac_init_help"; then
1840 case $ac_init_help in
1841 short | recursive ) echo "Configuration of curl -:";;
1842 esac
1843 cat <<\_ACEOF
1844
1845Optional Features:
1846 --disable-option-checking ignore unrecognized --enable/--with options
1847 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1848 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1849 --enable-maintainer-mode
1850 enable make rules and dependencies not useful (and
1851 sometimes confusing) to the casual installer
1852 --enable-silent-rules less verbose build output (undo: "make V=1")
1853 --disable-silent-rules verbose build output (undo: "make V=0")
1854 --enable-debug Enable debug build options
1855 --disable-debug Disable debug build options
1856 --enable-optimize Enable compiler optimizations
1857 --disable-optimize Disable compiler optimizations
1858 --enable-warnings Enable strict compiler warnings
1859 --disable-warnings Disable strict compiler warnings
1860 --enable-werror Enable compiler warnings as errors
1861 --disable-werror Disable compiler warnings as errors
1862 --enable-curldebug Enable curl debug memory tracking
1863 --disable-curldebug Disable curl debug memory tracking
1864 --enable-symbol-hiding Enable hiding of library internal symbols
1865 --disable-symbol-hiding Disable hiding of library internal symbols
1866 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1867 --disable-hidden-symbols
1868 To be deprecated, use --disable-symbol-hiding
1869 --enable-ares[=PATH] Enable c-ares for DNS lookups
1870 --disable-ares Disable c-ares for DNS lookups
1871 --disable-rt disable dependency on -lrt
1872 --enable-code-coverage Whether to enable code coverage support
1873 --enable-dependency-tracking
1874 do not reject slow dependency extractors
1875 --disable-dependency-tracking
1876 speeds up one-time build
1877 --disable-largefile omit support for large files
1878 --enable-shared[=PKGS] build shared libraries [default=yes]
1879 --enable-static[=PKGS] build static libraries [default=yes]
1880 --enable-fast-install[=PKGS]
1881 optimize for fast installation [default=yes]
1882 --disable-libtool-lock avoid locking (might break parallel builds)
1883 --enable-http Enable HTTP support
1884 --disable-http Disable HTTP support
1885 --enable-ftp Enable FTP support
1886 --disable-ftp Disable FTP support
1887 --enable-file Enable FILE support
1888 --disable-file Disable FILE support
1889 --enable-ldap Enable LDAP support
1890 --disable-ldap Disable LDAP support
1891 --enable-ldaps Enable LDAPS support
1892 --disable-ldaps Disable LDAPS support
1893 --enable-rtsp Enable RTSP support
1894 --disable-rtsp Disable RTSP support
1895 --enable-proxy Enable proxy support
1896 --disable-proxy Disable proxy support
1897 --enable-dict Enable DICT support
1898 --disable-dict Disable DICT support
1899 --enable-telnet Enable TELNET support
1900 --disable-telnet Disable TELNET support
1901 --enable-tftp Enable TFTP support
1902 --disable-tftp Disable TFTP support
1903 --enable-pop3 Enable POP3 support
1904 --disable-pop3 Disable POP3 support
1905 --enable-imap Enable IMAP support
1906 --disable-imap Disable IMAP support
1907 --enable-smb Enable SMB/CIFS support
1908 --disable-smb Disable SMB/CIFS support
1909 --enable-smtp Enable SMTP support
1910 --disable-smtp Disable SMTP support
1911 --enable-gopher Enable Gopher support
1912 --disable-gopher Disable Gopher support
1913 --enable-manual Enable built-in manual
1914 --disable-manual Disable built-in manual
1915 --enable-libcurl-option Enable --libcurl C code generation support
1916 --disable-libcurl-option
1917 Disable --libcurl C code generation support
1918 --enable-libgcc use libgcc when linking
1919 --enable-ipv6 Enable IPv6 (with IPv4) support
1920 --disable-ipv6 Disable IPv6 support
Elliott Hughesa93fb052018-12-12 14:22:48 -08001921 --enable-openssl-auto-load-config
1922 Enable automatic loading of OpenSSL configuration
1923 --disable-openssl-auto-load-config
1924 Disable automatic loading of OpenSSL configuration
Elliott Hughes82be86d2017-09-20 17:00:17 -07001925 --enable-versioned-symbols
1926 Enable versioned symbols in shared library
1927 --disable-versioned-symbols
1928 Disable versioned symbols in shared library
1929 --enable-threaded-resolver
1930 Enable threaded resolver
1931 --disable-threaded-resolver
1932 Disable threaded resolver
1933 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1934 --disable-pthreads Disable POSIX threads
1935 --enable-verbose Enable verbose strings
1936 --disable-verbose Disable verbose strings
1937 --enable-sspi Enable SSPI
1938 --disable-sspi Disable SSPI
1939 --enable-crypto-auth Enable cryptographic authentication
1940 --disable-crypto-auth Disable cryptographic authentication
1941 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1942 helper, where FILE is ntlm_auth's absolute filename
1943 (default: /usr/bin/ntlm_auth)
1944 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1945 helper
1946 --enable-tls-srp Enable TLS-SRP authentication
1947 --disable-tls-srp Disable TLS-SRP authentication
1948 --enable-unix-sockets Enable Unix domain sockets
1949 --disable-unix-sockets Disable Unix domain sockets
1950 --enable-cookies Enable cookies support
1951 --disable-cookies Disable cookies support
Elliott Hughes82be86d2017-09-20 17:00:17 -07001952
1953Optional Packages:
1954 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1955 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1956 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1957 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1958 both]
1959 --with-aix-soname=aix|svr4|both
1960 shared library versioning (aka "SONAME") variant to
1961 provide on AIX, [default=aix].
1962 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1963 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1964 compiler's sysroot if not specified).
1965 --with-zlib=PATH search for zlib in PATH
1966 --without-zlib disable use of zlib
Alex Deymo486467e2017-12-19 19:04:07 +01001967 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1968 installation; when possible, set the PKG_CONFIG_PATH
1969 environment variable instead of using this option
1970 --without-brotli disable BROTLI
Elliott Hughes82be86d2017-09-20 17:00:17 -07001971 --with-ldap-lib=libname Specify name of ldap lib file
1972 --with-lber-lib=libname Specify name of lber lib file
1973 --with-gssapi-includes=DIR
1974 Specify location of GSS-API headers
1975 --with-gssapi-libs=DIR Specify location of GSS-API libs
1976 --with-gssapi=DIR Where to look for GSS-API
Alex Deymo486467e2017-12-19 19:04:07 +01001977 --with-default-ssl-backend=NAME
1978 Use NAME as default SSL backend
1979 --without-default-ssl-backend
1980 Use implicit default SSL backend
Elliott Hughes82be86d2017-09-20 17:00:17 -07001981 --with-winssl enable Windows native SSL/TLS
1982 --without-winssl disable Windows native SSL/TLS
1983 --with-darwinssl enable Apple OS native SSL/TLS
1984 --without-darwinssl disable Apple OS native SSL/TLS
1985 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1986 installation (default: /usr/local/ssl); when
1987 possible, set the PKG_CONFIG_PATH environment
1988 variable instead of using this option
1989 --without-ssl disable OpenSSL
1990 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1991 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1992 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1993 installation root
1994 --without-gnutls disable GnuTLS detection
1995 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1996 installation root
1997 --without-polarssl disable PolarSSL detection
1998 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1999 installation root
2000 --without-mbedtls disable mbedTLS detection
2001 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
2002 installation root (default: system lib default)
2003 --without-cyassl disable CyaSSL detection
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07002004 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2005 installation root (default: system lib default)
2006 --without-wolfssl disable WolfSSL detection
Elliott Hughesa93fb052018-12-12 14:22:48 -08002007 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2008 installation root
2009 --without-mesalink disable MesaLink detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002010 --with-nss=PATH where to look for NSS, PATH points to the
2011 installation root
2012 --without-nss disable NSS detection
Elliott Hughes82be86d2017-09-20 17:00:17 -07002013 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2014 /etc/ca-bundle.crt)
2015 --without-ca-bundle Don't use a default CA bundle
2016 --with-ca-path=DIRECTORY
2017 Path to a directory containing CA certificates
2018 stored individually, with their filenames in a hash
2019 format. This option can be used with OpenSSL, GnuTLS
2020 and PolarSSL backends. Refer to OpenSSL c_rehash for
2021 details. (example: /etc/certificates)
2022 --without-ca-path Don't use a default CA path
2023 --with-ca-fallback Use the built in CA store of the SSL library
2024 --without-ca-fallback Don't use the built in CA store of the SSL library
2025 --without-libpsl disable support for libpsl cookie checking
2026 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2027 installation root
2028 --without-libmetalink disable libmetalink detection
2029 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2030 LIBSSH2 installation; when possible, set the
2031 PKG_CONFIG_PATH environment variable instead of
2032 using this option
Elliott Hughes0128fe42018-02-27 14:57:55 -08002033 --with-libssh2 enable LIBSSH2
2034 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2035 installation; when possible, set the PKG_CONFIG_PATH
2036 environment variable instead of using this option
2037 --with-libssh enable LIBSSH
Elliott Hughes82be86d2017-09-20 17:00:17 -07002038 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2039 LIBRTMP installation; when possible, set the
2040 PKG_CONFIG_PATH environment variable instead of
2041 using this option
2042 --without-librtmp disable LIBRTMP
2043 --with-winidn=PATH enable Windows native IDN
2044 --without-winidn disable Windows native IDN
2045 --with-libidn2=PATH Enable libidn2 usage
2046 --without-libidn2 Disable libidn2 usage
2047 --with-nghttp2=PATH Enable nghttp2 usage
2048 --without-nghttp2 Disable nghttp2 usage
2049 --with-zsh-functions-dir=PATH
2050 Install zsh completions to PATH
2051 --without-zsh-functions-dir
2052 Do not install zsh completions
2053
2054Some influential environment variables:
2055 CC C compiler command
2056 CFLAGS C compiler flags
2057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2058 nonstandard directory <lib dir>
2059 LIBS libraries to pass to the linker, e.g. -l<library>
2060 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2061 you have headers in a nonstandard directory <include dir>
2062 CPP C preprocessor
2063 LT_SYS_LIBRARY_PATH
2064 User-defined run-time library search path.
2065
2066Use these variables to override the choices made by `configure' or to help
2067it to find libraries and programs with nonstandard names/locations.
2068
2069Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2070_ACEOF
2071ac_status=$?
2072fi
2073
2074if test "$ac_init_help" = "recursive"; then
2075 # If there are subdirs, report their specific --help.
2076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2077 test -d "$ac_dir" ||
2078 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2079 continue
2080 ac_builddir=.
2081
2082case "$ac_dir" in
2083.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2084*)
2085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2086 # A ".." for each directory in $ac_dir_suffix.
2087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2088 case $ac_top_builddir_sub in
2089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2091 esac ;;
2092esac
2093ac_abs_top_builddir=$ac_pwd
2094ac_abs_builddir=$ac_pwd$ac_dir_suffix
2095# for backward compatibility:
2096ac_top_builddir=$ac_top_build_prefix
2097
2098case $srcdir in
2099 .) # We are building in place.
2100 ac_srcdir=.
2101 ac_top_srcdir=$ac_top_builddir_sub
2102 ac_abs_top_srcdir=$ac_pwd ;;
2103 [\\/]* | ?:[\\/]* ) # Absolute name.
2104 ac_srcdir=$srcdir$ac_dir_suffix;
2105 ac_top_srcdir=$srcdir
2106 ac_abs_top_srcdir=$srcdir ;;
2107 *) # Relative name.
2108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2109 ac_top_srcdir=$ac_top_build_prefix$srcdir
2110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2111esac
2112ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2113
2114 cd "$ac_dir" || { ac_status=$?; continue; }
2115 # Check for guested configure.
2116 if test -f "$ac_srcdir/configure.gnu"; then
2117 echo &&
2118 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2119 elif test -f "$ac_srcdir/configure"; then
2120 echo &&
2121 $SHELL "$ac_srcdir/configure" --help=recursive
2122 else
2123 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2124 fi || ac_status=$?
2125 cd "$ac_pwd" || { ac_status=$?; break; }
2126 done
2127fi
2128
2129test -n "$ac_init_help" && exit $ac_status
2130if $ac_init_version; then
2131 cat <<\_ACEOF
2132curl configure -
2133generated by GNU Autoconf 2.69
2134
2135Copyright (C) 2012 Free Software Foundation, Inc.
2136This configure script is free software; the Free Software Foundation
2137gives unlimited permission to copy, distribute and modify it.
2138
2139Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2140This configure script may be copied, distributed and modified under the
2141terms of the curl license; see COPYING for more details
2142_ACEOF
2143 exit
2144fi
2145
2146## ------------------------ ##
2147## Autoconf initialization. ##
2148## ------------------------ ##
2149
2150# ac_fn_c_try_compile LINENO
2151# --------------------------
2152# Try to compile conftest.$ac_ext, and return whether this succeeded.
2153ac_fn_c_try_compile ()
2154{
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 rm -f conftest.$ac_objext
2157 if { { ac_try="$ac_compile"
2158case "(($ac_try" in
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2161esac
2162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163$as_echo "$ac_try_echo"; } >&5
2164 (eval "$ac_compile") 2>conftest.err
2165 ac_status=$?
2166 if test -s conftest.err; then
2167 grep -v '^ *+' conftest.err >conftest.er1
2168 cat conftest.er1 >&5
2169 mv -f conftest.er1 conftest.err
2170 fi
2171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172 test $ac_status = 0; } && {
2173 test -z "$ac_c_werror_flag" ||
2174 test ! -s conftest.err
2175 } && test -s conftest.$ac_objext; then :
2176 ac_retval=0
2177else
2178 $as_echo "$as_me: failed program was:" >&5
2179sed 's/^/| /' conftest.$ac_ext >&5
2180
2181 ac_retval=1
2182fi
2183 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2184 as_fn_set_status $ac_retval
2185
2186} # ac_fn_c_try_compile
2187
2188# ac_fn_c_try_cpp LINENO
2189# ----------------------
2190# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2191ac_fn_c_try_cpp ()
2192{
2193 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2194 if { { ac_try="$ac_cpp conftest.$ac_ext"
2195case "(($ac_try" in
2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197 *) ac_try_echo=$ac_try;;
2198esac
2199eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2200$as_echo "$ac_try_echo"; } >&5
2201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2202 ac_status=$?
2203 if test -s conftest.err; then
2204 grep -v '^ *+' conftest.err >conftest.er1
2205 cat conftest.er1 >&5
2206 mv -f conftest.er1 conftest.err
2207 fi
2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2209 test $ac_status = 0; } > conftest.i && {
2210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2211 test ! -s conftest.err
2212 }; then :
2213 ac_retval=0
2214else
2215 $as_echo "$as_me: failed program was:" >&5
2216sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 ac_retval=1
2219fi
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221 as_fn_set_status $ac_retval
2222
2223} # ac_fn_c_try_cpp
2224
Alex Deymo486467e2017-12-19 19:04:07 +01002225# ac_fn_c_try_link LINENO
2226# -----------------------
2227# Try to link conftest.$ac_ext, and return whether this succeeded.
2228ac_fn_c_try_link ()
2229{
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 rm -f conftest.$ac_objext conftest$ac_exeext
2232 if { { ac_try="$ac_link"
2233case "(($ac_try" in
2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2235 *) ac_try_echo=$ac_try;;
2236esac
2237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2238$as_echo "$ac_try_echo"; } >&5
2239 (eval "$ac_link") 2>conftest.err
2240 ac_status=$?
2241 if test -s conftest.err; then
2242 grep -v '^ *+' conftest.err >conftest.er1
2243 cat conftest.er1 >&5
2244 mv -f conftest.er1 conftest.err
2245 fi
2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247 test $ac_status = 0; } && {
2248 test -z "$ac_c_werror_flag" ||
2249 test ! -s conftest.err
2250 } && test -s conftest$ac_exeext && {
2251 test "$cross_compiling" = yes ||
2252 test -x conftest$ac_exeext
2253 }; then :
2254 ac_retval=0
2255else
2256 $as_echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 ac_retval=1
2260fi
2261 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2262 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2263 # interfere with the next link command; also delete a directory that is
2264 # left behind by Apple's compiler. We do this before executing the actions.
2265 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 as_fn_set_status $ac_retval
2268
2269} # ac_fn_c_try_link
2270
Elliott Hughes82be86d2017-09-20 17:00:17 -07002271# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2272# -------------------------------------------------------
2273# Tests whether HEADER exists and can be compiled using the include files in
2274# INCLUDES, setting the cache variable VAR accordingly.
2275ac_fn_c_check_header_compile ()
2276{
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279$as_echo_n "checking for $2... " >&6; }
2280if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2282else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284/* end confdefs.h. */
2285$4
2286#include <$2>
2287_ACEOF
2288if ac_fn_c_try_compile "$LINENO"; then :
2289 eval "$3=yes"
2290else
2291 eval "$3=no"
2292fi
2293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294fi
2295eval ac_res=\$$3
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297$as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299
2300} # ac_fn_c_check_header_compile
2301
2302# ac_fn_c_try_run LINENO
2303# ----------------------
2304# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2305# that executables *can* be run.
2306ac_fn_c_try_run ()
2307{
2308 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2309 if { { ac_try="$ac_link"
2310case "(($ac_try" in
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2313esac
2314eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315$as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_link") 2>&5
2317 ac_status=$?
2318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2320 { { case "(($ac_try" in
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2323esac
2324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325$as_echo "$ac_try_echo"; } >&5
2326 (eval "$ac_try") 2>&5
2327 ac_status=$?
2328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2329 test $ac_status = 0; }; }; then :
2330 ac_retval=0
2331else
2332 $as_echo "$as_me: program exited with status $ac_status" >&5
2333 $as_echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 ac_retval=$ac_status
2337fi
2338 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340 as_fn_set_status $ac_retval
2341
2342} # ac_fn_c_try_run
2343
Alex Deymo486467e2017-12-19 19:04:07 +01002344# ac_fn_c_check_func LINENO FUNC VAR
2345# ----------------------------------
2346# Tests whether FUNC exists, setting the cache variable VAR accordingly
2347ac_fn_c_check_func ()
2348{
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2351$as_echo_n "checking for $2... " >&6; }
2352if eval \${$3+:} false; then :
2353 $as_echo_n "(cached) " >&6
2354else
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356/* end confdefs.h. */
2357
2358#define $2 innocuous_$2
2359#ifdef __STDC__
2360# include <limits.h>
2361#else
2362# include <assert.h>
2363#endif
2364#undef $2
2365#ifdef __cplusplus
2366extern "C"
2367#endif
2368char $2 ();
2369#if defined __stub_$2 || defined __stub___$2
2370choke me
2371#endif
2372
2373int main (void)
2374{
2375return $2 ();
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380if ac_fn_c_try_link "$LINENO"; then :
2381 eval "$3=yes"
2382else
2383 eval "$3=no"
2384fi
2385rm -f core conftest.err conftest.$ac_objext \
2386 conftest$ac_exeext conftest.$ac_ext
2387fi
2388eval ac_res=\$$3
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390$as_echo "$ac_res" >&6; }
2391 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2392
2393} # ac_fn_c_check_func
2394
2395# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2396# -------------------------------------------------------
2397# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2398# the include files in INCLUDES and setting the cache variable VAR
2399# accordingly.
2400ac_fn_c_check_header_mongrel ()
2401{
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 if eval \${$3+:} false; then :
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405$as_echo_n "checking for $2... " >&6; }
2406if eval \${$3+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408fi
2409eval ac_res=\$$3
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411$as_echo "$ac_res" >&6; }
2412else
2413 # Is the header compilable?
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2415$as_echo_n "checking $2 usability... " >&6; }
2416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417/* end confdefs.h. */
2418$4
2419#include <$2>
2420_ACEOF
2421if ac_fn_c_try_compile "$LINENO"; then :
2422 ac_header_compiler=yes
2423else
2424 ac_header_compiler=no
2425fi
2426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2428$as_echo "$ac_header_compiler" >&6; }
2429
2430# Is the header present?
2431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2432$as_echo_n "checking $2 presence... " >&6; }
2433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434/* end confdefs.h. */
2435#include <$2>
2436_ACEOF
2437if ac_fn_c_try_cpp "$LINENO"; then :
2438 ac_header_preproc=yes
2439else
2440 ac_header_preproc=no
2441fi
2442rm -f conftest.err conftest.i conftest.$ac_ext
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2444$as_echo "$ac_header_preproc" >&6; }
2445
2446# So? What about this header?
2447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2448 yes:no: )
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2450$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2452$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2453 ;;
2454 no:yes:* )
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2456$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2458$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2460$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2462$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2464$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2465( $as_echo "## ----------------------------------------------------------------------- ##
2466## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2467## ----------------------------------------------------------------------- ##"
2468 ) | sed "s/^/$as_me: WARNING: /" >&2
2469 ;;
2470esac
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472$as_echo_n "checking for $2... " >&6; }
2473if eval \${$3+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475else
2476 eval "$3=\$ac_header_compiler"
2477fi
2478eval ac_res=\$$3
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480$as_echo "$ac_res" >&6; }
2481fi
2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483
2484} # ac_fn_c_check_header_mongrel
2485
Elliott Hughes82be86d2017-09-20 17:00:17 -07002486# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2487# -------------------------------------------
2488# Tests whether TYPE exists after having included INCLUDES, setting cache
2489# variable VAR accordingly.
2490ac_fn_c_check_type ()
2491{
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2494$as_echo_n "checking for $2... " >&6; }
2495if eval \${$3+:} false; then :
2496 $as_echo_n "(cached) " >&6
2497else
2498 eval "$3=no"
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500/* end confdefs.h. */
2501$4
2502int main (void)
2503{
2504if (sizeof ($2))
2505 return 0;
2506 ;
2507 return 0;
2508}
2509_ACEOF
2510if ac_fn_c_try_compile "$LINENO"; then :
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512/* end confdefs.h. */
2513$4
2514int main (void)
2515{
2516if (sizeof (($2)))
2517 return 0;
2518 ;
2519 return 0;
2520}
2521_ACEOF
2522if ac_fn_c_try_compile "$LINENO"; then :
2523
2524else
2525 eval "$3=yes"
2526fi
2527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528fi
2529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530fi
2531eval ac_res=\$$3
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533$as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2535
2536} # ac_fn_c_check_type
2537
Elliott Hughes72d948d2018-08-03 14:37:21 -07002538# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2539# ---------------------------------------------
2540# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2541# accordingly.
2542ac_fn_c_check_decl ()
2543{
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 as_decl_name=`echo $2|sed 's/ *(.*//'`
2546 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2548$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2549if eval \${$3+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551else
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553/* end confdefs.h. */
2554$4
2555int main (void)
2556{
2557#ifndef $as_decl_name
2558#ifdef __cplusplus
2559 (void) $as_decl_use;
2560#else
2561 (void) $as_decl_name;
2562#endif
2563#endif
2564
2565 ;
2566 return 0;
2567}
2568_ACEOF
2569if ac_fn_c_try_compile "$LINENO"; then :
2570 eval "$3=yes"
2571else
2572 eval "$3=no"
2573fi
2574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575fi
2576eval ac_res=\$$3
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578$as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2580
2581} # ac_fn_c_check_decl
2582
Elliott Hughes82be86d2017-09-20 17:00:17 -07002583# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2584# ----------------------------------------------------
2585# Tries to find if the field MEMBER exists in type AGGR, after including
2586# INCLUDES, setting cache variable VAR accordingly.
2587ac_fn_c_check_member ()
2588{
2589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2591$as_echo_n "checking for $2.$3... " >&6; }
2592if eval \${$4+:} false; then :
2593 $as_echo_n "(cached) " >&6
2594else
2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596/* end confdefs.h. */
2597$5
2598int main (void)
2599{
2600static $2 ac_aggr;
2601if (ac_aggr.$3)
2602return 0;
2603 ;
2604 return 0;
2605}
2606_ACEOF
2607if ac_fn_c_try_compile "$LINENO"; then :
2608 eval "$4=yes"
2609else
2610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2611/* end confdefs.h. */
2612$5
2613int main (void)
2614{
2615static $2 ac_aggr;
2616if (sizeof ac_aggr.$3)
2617return 0;
2618 ;
2619 return 0;
2620}
2621_ACEOF
2622if ac_fn_c_try_compile "$LINENO"; then :
2623 eval "$4=yes"
2624else
2625 eval "$4=no"
2626fi
2627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2628fi
2629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630fi
2631eval ac_res=\$$4
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633$as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2635
2636} # ac_fn_c_check_member
2637cat >config.log <<_ACEOF
2638This file contains any messages produced by compilers while
2639running configure, to aid debugging if configure makes a mistake.
2640
2641It was created by curl $as_me -, which was
2642generated by GNU Autoconf 2.69. Invocation command line was
2643
2644 $ $0 $@
2645
2646_ACEOF
2647exec 5>>config.log
2648{
2649cat <<_ASUNAME
2650## --------- ##
2651## Platform. ##
2652## --------- ##
2653
2654hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2655uname -m = `(uname -m) 2>/dev/null || echo unknown`
2656uname -r = `(uname -r) 2>/dev/null || echo unknown`
2657uname -s = `(uname -s) 2>/dev/null || echo unknown`
2658uname -v = `(uname -v) 2>/dev/null || echo unknown`
2659
2660/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2661/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2662
2663/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2664/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2665/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2666/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2667/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2668/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2669/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2670
2671_ASUNAME
2672
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 $as_echo "PATH: $as_dir"
2679 done
2680IFS=$as_save_IFS
2681
2682} >&5
2683
2684cat >&5 <<_ACEOF
2685
2686
2687## ----------- ##
2688## Core tests. ##
2689## ----------- ##
2690
2691_ACEOF
2692
2693
2694# Keep a trace of the command line.
2695# Strip out --no-create and --no-recursion so they do not pile up.
2696# Strip out --silent because we don't want to record it for future runs.
2697# Also quote any args containing shell meta-characters.
2698# Make two passes to allow for proper duplicate-argument suppression.
2699ac_configure_args=
2700ac_configure_args0=
2701ac_configure_args1=
2702ac_must_keep_next=false
2703for ac_pass in 1 2
2704do
2705 for ac_arg
2706 do
2707 case $ac_arg in
2708 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2710 | -silent | --silent | --silen | --sile | --sil)
2711 continue ;;
2712 *\'*)
2713 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2714 esac
2715 case $ac_pass in
2716 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2717 2)
2718 as_fn_append ac_configure_args1 " '$ac_arg'"
2719 if test $ac_must_keep_next = true; then
2720 ac_must_keep_next=false # Got value, back to normal.
2721 else
2722 case $ac_arg in
2723 *=* | --config-cache | -C | -disable-* | --disable-* \
2724 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2725 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2726 | -with-* | --with-* | -without-* | --without-* | --x)
2727 case "$ac_configure_args0 " in
2728 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2729 esac
2730 ;;
2731 -* ) ac_must_keep_next=true ;;
2732 esac
2733 fi
2734 as_fn_append ac_configure_args " '$ac_arg'"
2735 ;;
2736 esac
2737 done
2738done
2739{ ac_configure_args0=; unset ac_configure_args0;}
2740{ ac_configure_args1=; unset ac_configure_args1;}
2741
2742# When interrupted or exit'd, cleanup temporary files, and complete
2743# config.log. We remove comments because anyway the quotes in there
2744# would cause problems or look ugly.
2745# WARNING: Use '\'' to represent an apostrophe within the trap.
2746# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2747trap 'exit_status=$?
2748 # Save into config.log some information that might help in debugging.
2749 {
2750 echo
2751
2752 $as_echo "## ---------------- ##
2753## Cache variables. ##
2754## ---------------- ##"
2755 echo
2756 # The following way of writing the cache mishandles newlines in values,
2757(
2758 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2759 eval ac_val=\$$ac_var
2760 case $ac_val in #(
2761 *${as_nl}*)
2762 case $ac_var in #(
2763 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2764$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2765 esac
2766 case $ac_var in #(
2767 _ | IFS | as_nl) ;; #(
2768 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2769 *) { eval $ac_var=; unset $ac_var;} ;;
2770 esac ;;
2771 esac
2772 done
2773 (set) 2>&1 |
2774 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2775 *${as_nl}ac_space=\ *)
2776 sed -n \
2777 "s/'\''/'\''\\\\'\'''\''/g;
2778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2779 ;; #(
2780 *)
2781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2782 ;;
2783 esac |
2784 sort
2785)
2786 echo
2787
2788 $as_echo "## ----------------- ##
2789## Output variables. ##
2790## ----------------- ##"
2791 echo
2792 for ac_var in $ac_subst_vars
2793 do
2794 eval ac_val=\$$ac_var
2795 case $ac_val in
2796 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2797 esac
2798 $as_echo "$ac_var='\''$ac_val'\''"
2799 done | sort
2800 echo
2801
2802 if test -n "$ac_subst_files"; then
2803 $as_echo "## ------------------- ##
2804## File substitutions. ##
2805## ------------------- ##"
2806 echo
2807 for ac_var in $ac_subst_files
2808 do
2809 eval ac_val=\$$ac_var
2810 case $ac_val in
2811 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2812 esac
2813 $as_echo "$ac_var='\''$ac_val'\''"
2814 done | sort
2815 echo
2816 fi
2817
2818 if test -s confdefs.h; then
2819 $as_echo "## ----------- ##
2820## confdefs.h. ##
2821## ----------- ##"
2822 echo
2823 cat confdefs.h
2824 echo
2825 fi
2826 test "$ac_signal" != 0 &&
2827 $as_echo "$as_me: caught signal $ac_signal"
2828 $as_echo "$as_me: exit $exit_status"
2829 } >&5
2830 rm -f core *.core core.conftest.* &&
2831 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2832 exit $exit_status
2833' 0
2834for ac_signal in 1 2 13 15; do
2835 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2836done
2837ac_signal=0
2838
2839# confdefs.h avoids OS command line length limits that DEFS can exceed.
2840rm -f -r conftest* confdefs.h
2841
2842$as_echo "/* confdefs.h */" > confdefs.h
2843
2844# Predefined preprocessor variables.
2845
2846cat >>confdefs.h <<_ACEOF
2847#define PACKAGE_NAME "$PACKAGE_NAME"
2848_ACEOF
2849
2850cat >>confdefs.h <<_ACEOF
2851#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2852_ACEOF
2853
2854cat >>confdefs.h <<_ACEOF
2855#define PACKAGE_VERSION "$PACKAGE_VERSION"
2856_ACEOF
2857
2858cat >>confdefs.h <<_ACEOF
2859#define PACKAGE_STRING "$PACKAGE_STRING"
2860_ACEOF
2861
2862cat >>confdefs.h <<_ACEOF
2863#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2864_ACEOF
2865
2866cat >>confdefs.h <<_ACEOF
2867#define PACKAGE_URL "$PACKAGE_URL"
2868_ACEOF
2869
2870
2871# Let the site file select an alternate cache file if it wants to.
2872# Prefer an explicitly selected file to automatically selected ones.
2873ac_site_file1=NONE
2874ac_site_file2=NONE
2875if test -n "$CONFIG_SITE"; then
2876 # We do not want a PATH search for config.site.
2877 case $CONFIG_SITE in #((
2878 -*) ac_site_file1=./$CONFIG_SITE;;
2879 */*) ac_site_file1=$CONFIG_SITE;;
2880 *) ac_site_file1=./$CONFIG_SITE;;
2881 esac
2882elif test "x$prefix" != xNONE; then
2883 ac_site_file1=$prefix/share/config.site
2884 ac_site_file2=$prefix/etc/config.site
2885else
2886 ac_site_file1=$ac_default_prefix/share/config.site
2887 ac_site_file2=$ac_default_prefix/etc/config.site
2888fi
2889for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2890do
2891 test "x$ac_site_file" = xNONE && continue
2892 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2894$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2895 sed 's/^/| /' "$ac_site_file" >&5
2896 . "$ac_site_file" \
2897 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899as_fn_error $? "failed to load site script $ac_site_file
2900See \`config.log' for more details" "$LINENO" 5; }
2901 fi
2902done
2903
2904if test -r "$cache_file"; then
2905 # Some versions of bash will fail to source /dev/null (special files
2906 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2907 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2909$as_echo "$as_me: loading cache $cache_file" >&6;}
2910 case $cache_file in
2911 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2912 *) . "./$cache_file";;
2913 esac
2914 fi
2915else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2917$as_echo "$as_me: creating cache $cache_file" >&6;}
2918 >$cache_file
2919fi
2920
2921# Check that the precious variables saved in the cache have kept the same
2922# value.
2923ac_cache_corrupted=false
2924for ac_var in $ac_precious_vars; do
2925 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2926 eval ac_new_set=\$ac_env_${ac_var}_set
2927 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2928 eval ac_new_val=\$ac_env_${ac_var}_value
2929 case $ac_old_set,$ac_new_set in
2930 set,)
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2932$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2934 ,set)
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2936$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2937 ac_cache_corrupted=: ;;
2938 ,);;
2939 *)
2940 if test "x$ac_old_val" != "x$ac_new_val"; then
2941 # differences in whitespace do not lead to failure.
2942 ac_old_val_w=`echo x $ac_old_val`
2943 ac_new_val_w=`echo x $ac_new_val`
2944 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2946$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2947 ac_cache_corrupted=:
2948 else
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2950$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2951 eval $ac_var=\$ac_old_val
2952 fi
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2954$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2956$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2957 fi;;
2958 esac
2959 # Pass precious variables to config.status.
2960 if test "$ac_new_set" = set; then
2961 case $ac_new_val in
2962 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2963 *) ac_arg=$ac_var=$ac_new_val ;;
2964 esac
2965 case " $ac_configure_args " in
2966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2968 esac
2969 fi
2970done
2971if $ac_cache_corrupted; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2975$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2976 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2977fi
2978## -------------------- ##
2979## Main body of script. ##
2980## -------------------- ##
2981
2982ac_ext=c
2983ac_cpp='$CPP $CPPFLAGS'
2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987
2988
2989
2990
2991
2992
2993
2994# using curl-override.m4
2995
2996
2997
2998
2999
3000ac_config_headers="$ac_config_headers lib/curl_config.h"
3001
3002
3003
3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3005$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3006 # Check whether --enable-maintainer-mode was given.
3007if test "${enable_maintainer_mode+set}" = set; then :
3008 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3009else
3010 USE_MAINTAINER_MODE=no
3011fi
3012
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3014$as_echo "$USE_MAINTAINER_MODE" >&6; }
3015 if test $USE_MAINTAINER_MODE = yes; then
3016 MAINTAINER_MODE_TRUE=
3017 MAINTAINER_MODE_FALSE='#'
3018else
3019 MAINTAINER_MODE_TRUE='#'
3020 MAINTAINER_MODE_FALSE=
3021fi
3022
3023 MAINT=$MAINTAINER_MODE_TRUE
3024
3025
3026# Check whether --enable-silent-rules was given.
3027if test "${enable_silent_rules+set}" = set; then :
3028 enableval=$enable_silent_rules;
3029fi
3030
3031case $enable_silent_rules in # (((
3032 yes) AM_DEFAULT_VERBOSITY=0;;
3033 no) AM_DEFAULT_VERBOSITY=1;;
3034 *) AM_DEFAULT_VERBOSITY=0;;
3035esac
3036am_make=${MAKE-make}
3037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3038$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3039if ${am_cv_make_support_nested_variables+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041else
3042 if $as_echo 'TRUE=$(BAR$(V))
3043BAR0=false
3044BAR1=true
3045V=1
3046am__doit:
3047 @$(TRUE)
3048.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3049 am_cv_make_support_nested_variables=yes
3050else
3051 am_cv_make_support_nested_variables=no
3052fi
3053fi
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3055$as_echo "$am_cv_make_support_nested_variables" >&6; }
3056if test $am_cv_make_support_nested_variables = yes; then
3057 AM_V='$(V)'
3058 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3059else
3060 AM_V=$AM_DEFAULT_VERBOSITY
3061 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3062fi
3063AM_BACKSLASH='\'
3064
3065
3066
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3068$as_echo_n "checking whether to enable debug build options... " >&6; }
3069 OPT_DEBUG_BUILD="default"
3070 # Check whether --enable-debug was given.
3071if test "${enable_debug+set}" = set; then :
3072 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3073fi
3074
3075 case "$OPT_DEBUG_BUILD" in
3076 no)
3077 want_debug="no"
3078 ;;
3079 default)
3080 want_debug="no"
3081 ;;
3082 *)
3083 want_debug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003084
3085$as_echo "#define DEBUGBUILD 1" >>confdefs.h
3086
Elliott Hughes82be86d2017-09-20 17:00:17 -07003087 ;;
3088 esac
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3090$as_echo "$want_debug" >&6; }
3091
3092
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3094$as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3095 OPT_COMPILER_OPTIMIZE="default"
3096 # Check whether --enable-optimize was given.
3097if test "${enable_optimize+set}" = set; then :
3098 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3099fi
3100
3101 case "$OPT_COMPILER_OPTIMIZE" in
3102 no)
3103 want_optimize="no"
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106 ;;
3107 default)
3108 if test "$want_debug" = "yes"; then
3109 want_optimize="assume_no"
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3111$as_echo "(assumed) no" >&6; }
3112 else
3113 want_optimize="assume_yes"
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3115$as_echo "(assumed) yes" >&6; }
3116 fi
3117 ;;
3118 *)
3119 want_optimize="yes"
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3121$as_echo "yes" >&6; }
3122 ;;
3123 esac
3124
3125
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3127$as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3128 OPT_COMPILER_WARNINGS="default"
3129 # Check whether --enable-warnings was given.
3130if test "${enable_warnings+set}" = set; then :
3131 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3132fi
3133
3134 case "$OPT_COMPILER_WARNINGS" in
3135 no)
3136 want_warnings="no"
3137 ;;
3138 default)
3139 want_warnings="$want_debug"
3140 ;;
3141 *)
3142 want_warnings="yes"
3143 ;;
3144 esac
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3146$as_echo "$want_warnings" >&6; }
3147
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3150$as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3151 OPT_COMPILER_WERROR="default"
3152 # Check whether --enable-werror was given.
3153if test "${enable_werror+set}" = set; then :
3154 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3155fi
3156
3157 case "$OPT_COMPILER_WERROR" in
3158 no)
3159 want_werror="no"
3160 ;;
3161 default)
3162 want_werror="no"
3163 ;;
3164 *)
3165 want_werror="yes"
3166 ;;
3167 esac
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3169$as_echo "$want_werror" >&6; }
3170
3171
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3173$as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3174 OPT_CURLDEBUG_BUILD="default"
3175 # Check whether --enable-curldebug was given.
3176if test "${enable_curldebug+set}" = set; then :
3177 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3178fi
3179
3180 case "$OPT_CURLDEBUG_BUILD" in
3181 no)
3182 want_curldebug="no"
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184$as_echo "no" >&6; }
3185 ;;
3186 default)
3187 if test "$want_debug" = "yes"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3189$as_echo "(assumed) yes" >&6; }
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003190
3191$as_echo "#define CURLDEBUG 1" >>confdefs.h
3192
Elliott Hughes82be86d2017-09-20 17:00:17 -07003193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196 fi
3197 want_curldebug_assumed="yes"
3198 want_curldebug="$want_debug"
3199 ;;
3200 *)
3201 want_curldebug="yes"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -07003202
3203$as_echo "#define CURLDEBUG 1" >>confdefs.h
3204
Elliott Hughes82be86d2017-09-20 17:00:17 -07003205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3206$as_echo "yes" >&6; }
3207 ;;
3208 esac
3209
3210
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3212$as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3213 OPT_SYMBOL_HIDING="default"
3214 # Check whether --enable-symbol-hiding was given.
3215if test "${enable_symbol_hiding+set}" = set; then :
3216 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3217fi
3218
3219 # Check whether --enable-hidden-symbols was given.
3220if test "${enable_hidden_symbols+set}" = set; then :
3221 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3222fi
3223
3224 case "$OPT_SYMBOL_HIDING" in
3225 no)
3226 want_symbol_hiding="no"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228$as_echo "no" >&6; }
3229 ;;
3230 default)
3231 want_symbol_hiding="yes"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233$as_echo "yes" >&6; }
3234 ;;
3235 *)
3236 want_symbol_hiding="yes"
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3238$as_echo "yes" >&6; }
3239 ;;
3240 esac
3241
3242
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3244$as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3245 OPT_ARES="default"
3246 # Check whether --enable-ares was given.
3247if test "${enable_ares+set}" = set; then :
3248 enableval=$enable_ares; OPT_ARES=$enableval
3249fi
3250
3251 case "$OPT_ARES" in
3252 no)
3253 want_ares="no"
3254 ;;
3255 default)
3256 want_ares="no"
3257 ;;
3258 *)
3259 want_ares="yes"
3260 if test -n "$enableval" && test "$enableval" != "yes"; then
3261 want_ares_path="$enableval"
3262 fi
3263 ;;
3264 esac
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3266$as_echo "$want_ares" >&6; }
3267
3268
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3270$as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3271 OPT_RT="default"
3272 # Check whether --enable-rt was given.
3273if test "${enable_rt+set}" = set; then :
3274 enableval=$enable_rt; OPT_RT=$enableval
3275fi
3276
3277 case "$OPT_RT" in
3278 no)
3279 dontwant_rt="yes"
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281$as_echo "yes" >&6; }
3282 ;;
3283 default)
3284 dontwant_rt="no"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3286$as_echo "(assumed no)" >&6; }
3287 ;;
3288 *)
3289 dontwant_rt="no"
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291$as_echo "no" >&6; }
3292 ;;
3293 esac
3294
3295
3296#
3297# Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3298#
3299
3300if test -z "$xc_configure_preamble_result"; then
3301 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3302fi
3303
3304#
3305# Check that 'PATH_SEPARATOR' has already been set.
3306#
3307
3308if test -z "$xc_PATH_SEPARATOR"; then
3309 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3310fi
3311if test -z "$PATH_SEPARATOR"; then
3312 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3313fi
3314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3315$as_echo_n "checking for path separator... " >&6; }
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3317$as_echo "$PATH_SEPARATOR" >&6; }
3318if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3320$as_echo_n "checking for initial path separator... " >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3322$as_echo "$xc_PATH_SEPARATOR" >&6; }
3323 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3324fi
3325
Elliott Hughes82be86d2017-09-20 17:00:17 -07003326
3327#
3328# save the configure arguments
3329#
3330CONFIGURE_OPTIONS="\"$ac_configure_args\""
3331
3332
3333CURL_CFLAG_EXTRAS=""
3334if test X"$want_werror" = Xyes; then
3335 CURL_CFLAG_EXTRAS="-Werror"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -07003336 if test "$compiler_id" = "GNU_C"; then
3337 if test "$compiler_num" -ge "500"; then
3338 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3339 fi
3340 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -07003341fi
3342
3343
3344if test -z "$SED"; then
3345 # Extract the first word of "sed", so it can be a program name with args.
3346set dummy sed; ac_word=$2
3347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348$as_echo_n "checking for $ac_word... " >&6; }
3349if ${ac_cv_path_SED+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351else
3352 case $SED in
3353 [\\/]* | ?:[\\/]*)
3354 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3355 ;;
3356 *)
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358as_dummy="$PATH:/usr/bin:/usr/local/bin"
3359for as_dir in $as_dummy
3360do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 break 2
3368 fi
3369done
3370 done
3371IFS=$as_save_IFS
3372
3373 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3374 ;;
3375esac
3376fi
3377SED=$ac_cv_path_SED
3378if test -n "$SED"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3380$as_echo "$SED" >&6; }
3381else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383$as_echo "no" >&6; }
3384fi
3385
3386
3387 if test -z "$SED" || test "$SED" = "not_found"; then
3388 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3389 fi
3390fi
3391
3392
3393if test -z "$GREP"; then
3394 # Extract the first word of "grep", so it can be a program name with args.
3395set dummy grep; ac_word=$2
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397$as_echo_n "checking for $ac_word... " >&6; }
3398if ${ac_cv_path_GREP+:} false; then :
3399 $as_echo_n "(cached) " >&6
3400else
3401 case $GREP in
3402 [\\/]* | ?:[\\/]*)
3403 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3404 ;;
3405 *)
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407as_dummy="$PATH:/usr/bin:/usr/local/bin"
3408for as_dir in $as_dummy
3409do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418done
3419 done
3420IFS=$as_save_IFS
3421
3422 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3423 ;;
3424esac
3425fi
3426GREP=$ac_cv_path_GREP
3427if test -n "$GREP"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3429$as_echo "$GREP" >&6; }
3430else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433fi
3434
3435
3436 if test -z "$GREP" || test "$GREP" = "not_found"; then
3437 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3438 fi
3439fi
3440
3441
3442if test -z "$EGREP"; then
3443 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3445$as_echo_n "checking for egrep... " >&6; }
3446 EGREP="$GREP -E"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3448$as_echo "$EGREP" >&6; }
3449 else
3450 # Extract the first word of "egrep", so it can be a program name with args.
3451set dummy egrep; ac_word=$2
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453$as_echo_n "checking for $ac_word... " >&6; }
3454if ${ac_cv_path_EGREP+:} false; then :
3455 $as_echo_n "(cached) " >&6
3456else
3457 case $EGREP in
3458 [\\/]* | ?:[\\/]*)
3459 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3460 ;;
3461 *)
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463as_dummy="$PATH:/usr/bin:/usr/local/bin"
3464for as_dir in $as_dummy
3465do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3470 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474done
3475 done
3476IFS=$as_save_IFS
3477
3478 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3479 ;;
3480esac
3481fi
3482EGREP=$ac_cv_path_EGREP
3483if test -n "$EGREP"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3485$as_echo "$EGREP" >&6; }
3486else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488$as_echo "no" >&6; }
3489fi
3490
3491
3492 fi
3493fi
3494if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3495 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3496fi
3497
3498
3499if test -z "$AR"; then
3500 if test -n "$ac_tool_prefix"; then
3501 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3502set dummy ${ac_tool_prefix}ar; ac_word=$2
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504$as_echo_n "checking for $ac_word... " >&6; }
3505if ${ac_cv_path_AR+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507else
3508 case $AR in
3509 [\\/]* | ?:[\\/]*)
3510 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3511 ;;
3512 *)
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514as_dummy="$PATH:/usr/bin:/usr/local/bin"
3515for as_dir in $as_dummy
3516do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 break 2
3524 fi
3525done
3526 done
3527IFS=$as_save_IFS
3528
3529 ;;
3530esac
3531fi
3532AR=$ac_cv_path_AR
3533if test -n "$AR"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3535$as_echo "$AR" >&6; }
3536else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541
3542fi
3543if test -z "$ac_cv_path_AR"; then
3544 ac_pt_AR=$AR
3545 # Extract the first word of "ar", so it can be a program name with args.
3546set dummy ar; ac_word=$2
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548$as_echo_n "checking for $ac_word... " >&6; }
3549if ${ac_cv_path_ac_pt_AR+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551else
3552 case $ac_pt_AR in
3553 [\\/]* | ?:[\\/]*)
3554 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3555 ;;
3556 *)
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558as_dummy="$PATH:/usr/bin:/usr/local/bin"
3559for as_dir in $as_dummy
3560do
3561 IFS=$as_save_IFS
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 break 2
3568 fi
3569done
3570 done
3571IFS=$as_save_IFS
3572
3573 ;;
3574esac
3575fi
3576ac_pt_AR=$ac_cv_path_ac_pt_AR
3577if test -n "$ac_pt_AR"; then
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3579$as_echo "$ac_pt_AR" >&6; }
3580else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583fi
3584
3585 if test "x$ac_pt_AR" = x; then
3586 AR="not_found"
3587 else
3588 case $cross_compiling:$ac_tool_warned in
3589yes:)
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592ac_tool_warned=yes ;;
3593esac
3594 AR=$ac_pt_AR
3595 fi
3596else
3597 AR="$ac_cv_path_AR"
3598fi
3599
3600 if test -z "$AR" || test "$AR" = "not_found"; then
3601 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3602 fi
3603fi
3604
3605
3606
3607
3608CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3609
3610 xc_prog_cc_prev_IFS=$IFS
3611 xc_prog_cc_prev_LIBS=$LIBS
3612 xc_prog_cc_prev_CFLAGS=$CFLAGS
3613 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3614 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3615
3616
3617
3618 xc_bad_var_libs=no
3619 for xc_word in $LIBS; do
3620 case "$xc_word" in
3621 -l* | --library=*)
3622 :
3623 ;;
3624 *)
3625 xc_bad_var_libs=yes
3626 ;;
3627 esac
3628 done
3629 if test $xc_bad_var_libs = yes; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3631$as_echo "$as_me: using LIBS: $LIBS" >&6;}
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3633$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3634 fi
3635
3636
3637 xc_bad_var_ldflags=no
3638 for xc_word in $LDFLAGS; do
3639 case "$xc_word" in
3640 -D*)
3641 xc_bad_var_ldflags=yes
3642 ;;
3643 -U*)
3644 xc_bad_var_ldflags=yes
3645 ;;
3646 -I*)
3647 xc_bad_var_ldflags=yes
3648 ;;
3649 -l* | --library=*)
3650 xc_bad_var_ldflags=yes
3651 ;;
3652 esac
3653 done
3654 if test $xc_bad_var_ldflags = yes; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3656$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3657 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3658 for xc_word in $LDFLAGS; do
3659 case "$xc_word" in
3660 -D*)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3662$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3663 ;;
3664 -U*)
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3666$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3667 ;;
3668 -I*)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3670$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3671 ;;
3672 -l* | --library=*)
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3674$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3675 ;;
3676 esac
3677 done
3678 fi
3679
3680
3681 xc_bad_var_cppflags=no
3682 for xc_word in $CPPFLAGS; do
3683 case "$xc_word" in
3684 -rpath*)
3685 xc_bad_var_cppflags=yes
3686 ;;
3687 -L* | --library-path=*)
3688 xc_bad_var_cppflags=yes
3689 ;;
3690 -l* | --library=*)
3691 xc_bad_var_cppflags=yes
3692 ;;
3693 esac
3694 done
3695 if test $xc_bad_var_cppflags = yes; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3697$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3698 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3699 for xc_word in $CPPFLAGS; do
3700 case "$xc_word" in
3701 -rpath*)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3703$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3704 ;;
3705 -L* | --library-path=*)
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3707$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3708 ;;
3709 -l* | --library=*)
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3711$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3712 ;;
3713 esac
3714 done
3715 fi
3716
3717
3718 xc_bad_var_cflags=no
3719 for xc_word in $CFLAGS; do
3720 case "$xc_word" in
3721 -D*)
3722 xc_bad_var_cflags=yes
3723 ;;
3724 -U*)
3725 xc_bad_var_cflags=yes
3726 ;;
3727 -I*)
3728 xc_bad_var_cflags=yes
3729 ;;
3730 -rpath*)
3731 xc_bad_var_cflags=yes
3732 ;;
3733 -L* | --library-path=*)
3734 xc_bad_var_cflags=yes
3735 ;;
3736 -l* | --library=*)
3737 xc_bad_var_cflags=yes
3738 ;;
3739 esac
3740 done
3741 if test $xc_bad_var_cflags = yes; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3743$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3744 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3745 for xc_word in $CFLAGS; do
3746 case "$xc_word" in
3747 -D*)
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3749$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3750 ;;
3751 -U*)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3753$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3754 ;;
3755 -I*)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3757$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3758 ;;
3759 -rpath*)
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3761$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3762 ;;
3763 -L* | --library-path=*)
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3765$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3766 ;;
3767 -l* | --library=*)
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3769$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3770 ;;
3771 esac
3772 done
3773 fi
3774
3775 if test $xc_bad_var_libs = yes ||
3776 test $xc_bad_var_cflags = yes ||
3777 test $xc_bad_var_ldflags = yes ||
3778 test $xc_bad_var_cppflags = yes; then
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3780$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3781 fi
3782
3783ac_aux_dir=
3784for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3785 if test -f "$ac_dir/install-sh"; then
3786 ac_aux_dir=$ac_dir
3787 ac_install_sh="$ac_aux_dir/install-sh -c"
3788 break
3789 elif test -f "$ac_dir/install.sh"; then
3790 ac_aux_dir=$ac_dir
3791 ac_install_sh="$ac_aux_dir/install.sh -c"
3792 break
3793 elif test -f "$ac_dir/shtool"; then
3794 ac_aux_dir=$ac_dir
3795 ac_install_sh="$ac_aux_dir/shtool install -c"
3796 break
3797 fi
3798done
3799if test -z "$ac_aux_dir"; then
3800 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3801fi
3802
3803# These three variables are undocumented and unsupported,
3804# and are intended to be withdrawn in a future Autoconf release.
3805# They can cause serious problems if a builder's source tree is in a directory
3806# whose full name contains unusual characters.
3807ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3808ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3809ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3810
3811
3812# Find a good install program. We prefer a C program (faster),
3813# so one script is as good as another. But avoid the broken or
3814# incompatible versions:
3815# SysV /etc/install, /usr/sbin/install
3816# SunOS /usr/etc/install
3817# IRIX /sbin/install
3818# AIX /bin/install
3819# AmigaOS /C/install, which installs bootblocks on floppy discs
3820# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823# OS/2's system install, which has a completely different semantic
3824# ./install, which can be erroneously created by make from ./install.sh.
3825# Reject install programs that cannot install multiple files.
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3827$as_echo_n "checking for a BSD-compatible install... " >&6; }
3828if test -z "$INSTALL"; then
3829if ${ac_cv_path_install+:} false; then :
3830 $as_echo_n "(cached) " >&6
3831else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 # Account for people who put trailing slashes in PATH elements.
3838case $as_dir/ in #((
3839 ./ | .// | /[cC]/* | \
3840 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3841 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3842 /usr/ucb/* ) ;;
3843 *)
3844 # OSF1 and SCO ODT 3.0 have their own names for install.
3845 # Don't use installbsd from OSF since it installs stuff as root
3846 # by default.
3847 for ac_prog in ginstall scoinst install; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3850 if test $ac_prog = install &&
3851 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852 # AIX install. It has an incompatible calling convention.
3853 :
3854 elif test $ac_prog = install &&
3855 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856 # program-specific install script used by HP pwplus--don't use.
3857 :
3858 else
3859 rm -rf conftest.one conftest.two conftest.dir
3860 echo one > conftest.one
3861 echo two > conftest.two
3862 mkdir conftest.dir
3863 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3864 test -s conftest.one && test -s conftest.two &&
3865 test -s conftest.dir/conftest.one &&
3866 test -s conftest.dir/conftest.two
3867 then
3868 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3869 break 3
3870 fi
3871 fi
3872 fi
3873 done
3874 done
3875 ;;
3876esac
3877
3878 done
3879IFS=$as_save_IFS
3880
3881rm -rf conftest.one conftest.two conftest.dir
3882
3883fi
3884 if test "${ac_cv_path_install+set}" = set; then
3885 INSTALL=$ac_cv_path_install
3886 else
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for INSTALL within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 INSTALL=$ac_install_sh
3892 fi
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3895$as_echo "$INSTALL" >&6; }
3896
3897# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3898# It thinks the first close brace ends the variable substitution.
3899test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3900
3901test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3902
3903test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3904
3905# Expand $ac_aux_dir to an absolute path.
3906am_aux_dir=`cd "$ac_aux_dir" && pwd`
3907
3908ac_ext=c
3909ac_cpp='$CPP $CPPFLAGS'
3910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3912ac_compiler_gnu=$ac_cv_c_compiler_gnu
3913if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3915set dummy ${ac_tool_prefix}gcc; ac_word=$2
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3917$as_echo_n "checking for $ac_word... " >&6; }
3918if ${ac_cv_prog_CC+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920else
3921 if test -n "$CC"; then
3922 ac_cv_prog_CC="$CC" # Let the user override the test.
3923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935done
3936 done
3937IFS=$as_save_IFS
3938
3939fi
3940fi
3941CC=$ac_cv_prog_CC
3942if test -n "$CC"; then
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944$as_echo "$CC" >&6; }
3945else
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947$as_echo "no" >&6; }
3948fi
3949
3950
3951fi
3952if test -z "$ac_cv_prog_CC"; then
3953 ac_ct_CC=$CC
3954 # Extract the first word of "gcc", so it can be a program name with args.
3955set dummy gcc; ac_word=$2
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957$as_echo_n "checking for $ac_word... " >&6; }
3958if ${ac_cv_prog_ac_ct_CC+:} false; then :
3959 $as_echo_n "(cached) " >&6
3960else
3961 if test -n "$ac_ct_CC"; then
3962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CC="gcc"
3972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975done
3976 done
3977IFS=$as_save_IFS
3978
3979fi
3980fi
3981ac_ct_CC=$ac_cv_prog_ac_ct_CC
3982if test -n "$ac_ct_CC"; then
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3984$as_echo "$ac_ct_CC" >&6; }
3985else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3987$as_echo "no" >&6; }
3988fi
3989
3990 if test "x$ac_ct_CC" = x; then
3991 CC=""
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994yes:)
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3997ac_tool_warned=yes ;;
3998esac
3999 CC=$ac_ct_CC
4000 fi
4001else
4002 CC="$ac_cv_prog_CC"
4003fi
4004
4005if test -z "$CC"; then
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4008set dummy ${ac_tool_prefix}cc; ac_word=$2
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010$as_echo_n "checking for $ac_word... " >&6; }
4011if ${ac_cv_prog_CC+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013else
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC="$CC" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020 IFS=$as_save_IFS
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_CC="${ac_tool_prefix}cc"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 break 2
4027 fi
4028done
4029 done
4030IFS=$as_save_IFS
4031
4032fi
4033fi
4034CC=$ac_cv_prog_CC
4035if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037$as_echo "$CC" >&6; }
4038else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040$as_echo "no" >&6; }
4041fi
4042
4043
4044 fi
4045fi
4046if test -z "$CC"; then
4047 # Extract the first word of "cc", so it can be a program name with args.
4048set dummy cc; ac_word=$2
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050$as_echo_n "checking for $ac_word... " >&6; }
4051if ${ac_cv_prog_CC+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053else
4054 if test -n "$CC"; then
4055 ac_cv_prog_CC="$CC" # Let the user override the test.
4056else
4057 ac_prog_rejected=no
4058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH
4060do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4066 ac_prog_rejected=yes
4067 continue
4068 fi
4069 ac_cv_prog_CC="cc"
4070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 break 2
4072 fi
4073done
4074 done
4075IFS=$as_save_IFS
4076
4077if test $ac_prog_rejected = yes; then
4078 # We found a bogon in the path, so make sure we never use it.
4079 set dummy $ac_cv_prog_CC
4080 shift
4081 if test $# != 0; then
4082 # We chose a different compiler from the bogus one.
4083 # However, it has the same basename, so the bogon will be chosen
4084 # first if we set CC to just the basename; use the full file name.
4085 shift
4086 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4087 fi
4088fi
4089fi
4090fi
4091CC=$ac_cv_prog_CC
4092if test -n "$CC"; then
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4094$as_echo "$CC" >&6; }
4095else
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4097$as_echo "no" >&6; }
4098fi
4099
4100
4101fi
4102if test -z "$CC"; then
4103 if test -n "$ac_tool_prefix"; then
4104 for ac_prog in cl.exe
4105 do
4106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4107set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109$as_echo_n "checking for $ac_word... " >&6; }
4110if ${ac_cv_prog_CC+:} false; then :
4111 $as_echo_n "(cached) " >&6
4112else
4113 if test -n "$CC"; then
4114 ac_cv_prog_CC="$CC" # Let the user override the test.
4115else
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 break 2
4126 fi
4127done
4128 done
4129IFS=$as_save_IFS
4130
4131fi
4132fi
4133CC=$ac_cv_prog_CC
4134if test -n "$CC"; then
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4136$as_echo "$CC" >&6; }
4137else
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
4140fi
4141
4142
4143 test -n "$CC" && break
4144 done
4145fi
4146if test -z "$CC"; then
4147 ac_ct_CC=$CC
4148 for ac_prog in cl.exe
4149do
4150 # Extract the first word of "$ac_prog", so it can be a program name with args.
4151set dummy $ac_prog; ac_word=$2
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4153$as_echo_n "checking for $ac_word... " >&6; }
4154if ${ac_cv_prog_ac_ct_CC+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 if test -n "$ac_ct_CC"; then
4158 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4159else
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163 IFS=$as_save_IFS
4164 test -z "$as_dir" && as_dir=.
4165 for ac_exec_ext in '' $ac_executable_extensions; do
4166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167 ac_cv_prog_ac_ct_CC="$ac_prog"
4168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 break 2
4170 fi
4171done
4172 done
4173IFS=$as_save_IFS
4174
4175fi
4176fi
4177ac_ct_CC=$ac_cv_prog_ac_ct_CC
4178if test -n "$ac_ct_CC"; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4180$as_echo "$ac_ct_CC" >&6; }
4181else
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183$as_echo "no" >&6; }
4184fi
4185
4186
4187 test -n "$ac_ct_CC" && break
4188done
4189
4190 if test "x$ac_ct_CC" = x; then
4191 CC=""
4192 else
4193 case $cross_compiling:$ac_tool_warned in
4194yes:)
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197ac_tool_warned=yes ;;
4198esac
4199 CC=$ac_ct_CC
4200 fi
4201fi
4202
4203fi
4204
4205
4206test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4208as_fn_error $? "no acceptable C compiler found in \$PATH
4209See \`config.log' for more details" "$LINENO" 5; }
4210
4211# Provide some information about the compiler.
4212$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4213set X $ac_compile
4214ac_compiler=$2
4215for ac_option in --version -v -V -qversion; do
4216 { { ac_try="$ac_compiler $ac_option >&5"
4217case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220esac
4221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222$as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4224 ac_status=$?
4225 if test -s conftest.err; then
4226 sed '10a\
4227... rest of stderr output deleted ...
4228 10q' conftest.err >conftest.er1
4229 cat conftest.er1 >&5
4230 fi
4231 rm -f conftest.er1 conftest.err
4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }
4234done
4235
4236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h. */
4238
4239int main (void)
4240{
4241
4242 ;
4243 return 0;
4244}
4245_ACEOF
4246ac_clean_files_save=$ac_clean_files
4247ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4248# Try to create an executable without -o first, disregard a.out.
4249# It will help us diagnose broken compilers, and finding out an intuition
4250# of exeext.
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4252$as_echo_n "checking whether the C compiler works... " >&6; }
4253ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4254
4255# The possible output files:
4256ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4257
4258ac_rmfiles=
4259for ac_file in $ac_files
4260do
4261 case $ac_file in
4262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4263 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4264 esac
4265done
4266rm -f $ac_rmfiles
4267
4268if { { ac_try="$ac_link_default"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274$as_echo "$ac_try_echo"; } >&5
4275 (eval "$ac_link_default") 2>&5
4276 ac_status=$?
4277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4278 test $ac_status = 0; }; then :
4279 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4280# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4281# in a Makefile. We should not override ac_cv_exeext if it was cached,
4282# so that the user can short-circuit this test for compilers unknown to
4283# Autoconf.
4284for ac_file in $ac_files ''
4285do
4286 test -f "$ac_file" || continue
4287 case $ac_file in
4288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4289 ;;
4290 [ab].out )
4291 # We found the default executable, but exeext='' is most
4292 # certainly right.
4293 break;;
4294 *.* )
4295 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4296 then :; else
4297 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4298 fi
4299 # We set ac_cv_exeext here because the later test for it is not
4300 # safe: cross compilers may not add the suffix if given an `-o'
4301 # argument, so we may need to know it at that point already.
4302 # Even if this section looks crufty: it has the advantage of
4303 # actually working.
4304 break;;
4305 * )
4306 break;;
4307 esac
4308done
4309test "$ac_cv_exeext" = no && ac_cv_exeext=
4310
4311else
4312 ac_file=''
4313fi
4314if test -z "$ac_file"; then :
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316$as_echo "no" >&6; }
4317$as_echo "$as_me: failed program was:" >&5
4318sed 's/^/| /' conftest.$ac_ext >&5
4319
4320{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4322as_fn_error 77 "C compiler cannot create executables
4323See \`config.log' for more details" "$LINENO" 5; }
4324else
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4326$as_echo "yes" >&6; }
4327fi
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4329$as_echo_n "checking for C compiler default output file name... " >&6; }
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4331$as_echo "$ac_file" >&6; }
4332ac_exeext=$ac_cv_exeext
4333
4334rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4335ac_clean_files=$ac_clean_files_save
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4337$as_echo_n "checking for suffix of executables... " >&6; }
4338if { { ac_try="$ac_link"
4339case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4344$as_echo "$ac_try_echo"; } >&5
4345 (eval "$ac_link") 2>&5
4346 ac_status=$?
4347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348 test $ac_status = 0; }; then :
4349 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4350# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4351# work properly (i.e., refer to `conftest.exe'), while it won't with
4352# `rm'.
4353for ac_file in conftest.exe conftest conftest.*; do
4354 test -f "$ac_file" || continue
4355 case $ac_file in
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4357 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4358 break;;
4359 * ) break;;
4360 esac
4361done
4362else
4363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4366See \`config.log' for more details" "$LINENO" 5; }
4367fi
4368rm -f conftest conftest$ac_cv_exeext
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4370$as_echo "$ac_cv_exeext" >&6; }
4371
4372rm -f conftest.$ac_ext
4373EXEEXT=$ac_cv_exeext
4374ac_exeext=$EXEEXT
4375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h. */
4377#include <stdio.h>
4378int main (void)
4379{
4380FILE *f = fopen ("conftest.out", "w");
4381 return ferror (f) || fclose (f) != 0;
4382
4383 ;
4384 return 0;
4385}
4386_ACEOF
4387ac_clean_files="$ac_clean_files conftest.out"
4388# Check that the compiler produces executables we can run. If not, either
4389# the compiler is broken, or we cross compile.
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4391$as_echo_n "checking whether we are cross compiling... " >&6; }
4392if test "$cross_compiling" != yes; then
4393 { { ac_try="$ac_link"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_link") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }
4404 if { ac_try='./conftest$ac_cv_exeext'
4405 { { case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; }; }; then
4415 cross_compiling=no
4416 else
4417 if test "$cross_compiling" = maybe; then
4418 cross_compiling=yes
4419 else
4420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422as_fn_error $? "cannot run C compiled programs.
4423If you meant to cross compile, use \`--host'.
4424See \`config.log' for more details" "$LINENO" 5; }
4425 fi
4426 fi
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4429$as_echo "$cross_compiling" >&6; }
4430
4431rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4432ac_clean_files=$ac_clean_files_save
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4434$as_echo_n "checking for suffix of object files... " >&6; }
4435if ${ac_cv_objext+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437else
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440
4441int main (void)
4442{
4443
4444 ;
4445 return 0;
4446}
4447_ACEOF
4448rm -f conftest.o conftest.obj
4449if { { ac_try="$ac_compile"
4450case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
4454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455$as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_compile") 2>&5
4457 ac_status=$?
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 for ac_file in conftest.o conftest.obj conftest.*; do
4461 test -f "$ac_file" || continue;
4462 case $ac_file in
4463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4465 break;;
4466 esac
4467done
4468else
4469 $as_echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474as_fn_error $? "cannot compute suffix of object files: cannot compile
4475See \`config.log' for more details" "$LINENO" 5; }
4476fi
4477rm -f conftest.$ac_cv_objext conftest.$ac_ext
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4480$as_echo "$ac_cv_objext" >&6; }
4481OBJEXT=$ac_cv_objext
4482ac_objext=$OBJEXT
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4484$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4485if ${ac_cv_c_compiler_gnu+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487else
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h. */
4490
4491int main (void)
4492{
4493#ifndef __GNUC__
4494 choke me
4495#endif
4496
4497 ;
4498 return 0;
4499}
4500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"; then :
4502 ac_compiler_gnu=yes
4503else
4504 ac_compiler_gnu=no
4505fi
4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507ac_cv_c_compiler_gnu=$ac_compiler_gnu
4508
4509fi
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4511$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4512if test $ac_compiler_gnu = yes; then
4513 GCC=yes
4514else
4515 GCC=
4516fi
4517ac_test_CFLAGS=${CFLAGS+set}
4518ac_save_CFLAGS=$CFLAGS
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4520$as_echo_n "checking whether $CC accepts -g... " >&6; }
4521if ${ac_cv_prog_cc_g+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523else
4524 ac_save_c_werror_flag=$ac_c_werror_flag
4525 ac_c_werror_flag=yes
4526 ac_cv_prog_cc_g=no
4527 CFLAGS="-g"
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529/* end confdefs.h. */
4530
4531int main (void)
4532{
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538if ac_fn_c_try_compile "$LINENO"; then :
4539 ac_cv_prog_cc_g=yes
4540else
4541 CFLAGS=""
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543/* end confdefs.h. */
4544
4545int main (void)
4546{
4547
4548 ;
4549 return 0;
4550}
4551_ACEOF
4552if ac_fn_c_try_compile "$LINENO"; then :
4553
4554else
4555 ac_c_werror_flag=$ac_save_c_werror_flag
4556 CFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
4559
4560int main (void)
4561{
4562
4563 ;
4564 return 0;
4565}
4566_ACEOF
4567if ac_fn_c_try_compile "$LINENO"; then :
4568 ac_cv_prog_cc_g=yes
4569fi
4570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571fi
4572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573fi
4574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 ac_c_werror_flag=$ac_save_c_werror_flag
4576fi
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4578$as_echo "$ac_cv_prog_cc_g" >&6; }
4579if test "$ac_test_CFLAGS" = set; then
4580 CFLAGS=$ac_save_CFLAGS
4581elif test $ac_cv_prog_cc_g = yes; then
4582 if test "$GCC" = yes; then
4583 CFLAGS="-g -O2"
4584 else
4585 CFLAGS="-g"
4586 fi
4587else
4588 if test "$GCC" = yes; then
4589 CFLAGS="-O2"
4590 else
4591 CFLAGS=
4592 fi
4593fi
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4595$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4596if ${ac_cv_prog_cc_c89+:} false; then :
4597 $as_echo_n "(cached) " >&6
4598else
4599 ac_cv_prog_cc_c89=no
4600ac_save_CC=$CC
4601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h. */
4603#include <stdarg.h>
4604#include <stdio.h>
4605struct stat;
4606/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4607struct buf { int x; };
4608FILE * (*rcsopen) (struct buf *, struct stat *, int);
4609static char *e (p, i)
4610 char **p;
4611 int i;
4612{
4613 return p[i];
4614}
4615static char *f (char * (*g) (char **, int), char **p, ...)
4616{
4617 char *s;
4618 va_list v;
4619 va_start (v,p);
4620 s = g (p, va_arg (v,int));
4621 va_end (v);
4622 return s;
4623}
4624
4625/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4626 function prototypes and stuff, but not '\xHH' hex character constants.
4627 These don't provoke an error unfortunately, instead are silently treated
4628 as 'x'. The following induces an error, until -std is added to get
4629 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4630 array size at least. It's necessary to write '\x00'==0 to get something
4631 that's true only with -std. */
4632int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4633
4634/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4635 inside strings and character constants. */
4636#define FOO(x) 'x'
4637int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4638
4639int test (int i, double x);
4640struct s1 {int (*f) (int a);};
4641struct s2 {int (*f) (double a);};
4642int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4643int argc;
4644char **argv;
4645int main (void)
4646{
4647return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4648 ;
4649 return 0;
4650}
4651_ACEOF
4652for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4653 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4654do
4655 CC="$ac_save_CC $ac_arg"
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657 ac_cv_prog_cc_c89=$ac_arg
4658fi
4659rm -f core conftest.err conftest.$ac_objext
4660 test "x$ac_cv_prog_cc_c89" != "xno" && break
4661done
4662rm -f conftest.$ac_ext
4663CC=$ac_save_CC
4664
4665fi
4666# AC_CACHE_VAL
4667case "x$ac_cv_prog_cc_c89" in
4668 x)
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4670$as_echo "none needed" >&6; } ;;
4671 xno)
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4673$as_echo "unsupported" >&6; } ;;
4674 *)
4675 CC="$CC $ac_cv_prog_cc_c89"
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4677$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4678esac
4679if test "x$ac_cv_prog_cc_c89" != xno; then :
4680
4681fi
4682
4683ac_ext=c
4684ac_cpp='$CPP $CPPFLAGS'
4685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4687ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688
4689ac_ext=c
4690ac_cpp='$CPP $CPPFLAGS'
4691ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4692ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4693ac_compiler_gnu=$ac_cv_c_compiler_gnu
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4695$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4696if ${am_cv_prog_cc_c_o+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h. */
4701
4702int main (void)
4703{
4704
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709 # Make sure it works both with $CC and with simple cc.
4710 # Following AC_PROG_CC_C_O, we do the test twice because some
4711 # compilers refuse to overwrite an existing .o file with -o,
4712 # though they will create one.
4713 am_cv_prog_cc_c_o=yes
4714 for am_i in 1 2; do
4715 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4716 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4717 ac_status=$?
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } \
4720 && test -f conftest2.$ac_objext; then
4721 : OK
4722 else
4723 am_cv_prog_cc_c_o=no
4724 break
4725 fi
4726 done
4727 rm -f core conftest*
4728 unset am_i
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4731$as_echo "$am_cv_prog_cc_c_o" >&6; }
4732if test "$am_cv_prog_cc_c_o" != yes; then
4733 # Losing compiler, so override with the script.
4734 # FIXME: It is wrong to rewrite CC.
4735 # But if we don't then we get into trouble of one sort or another.
4736 # A longer-term fix would be to have automake use am__CC in this case,
4737 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4738 CC="$am_aux_dir/compile $CC"
4739fi
4740ac_ext=c
4741ac_cpp='$CPP $CPPFLAGS'
4742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745
4746
4747
4748ac_ext=c
4749ac_cpp='$CPP $CPPFLAGS'
4750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4752ac_compiler_gnu=$ac_cv_c_compiler_gnu
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4754$as_echo_n "checking how to run the C preprocessor... " >&6; }
4755# On Suns, sometimes $CPP names a directory.
4756if test -n "$CPP" && test -d "$CPP"; then
4757 CPP=
4758fi
4759if test -z "$CPP"; then
4760 if ${ac_cv_prog_CPP+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 # Double quotes because CPP needs to be expanded
4764 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4765 do
4766 ac_preproc_ok=false
4767for ac_c_preproc_warn_flag in '' yes
4768do
4769 # Use a header file that comes with gcc, so configuring glibc
4770 # with a fresh cross-compiler works.
4771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4772 # <limits.h> exists even on freestanding compilers.
4773 # On the NeXT, cc -E runs the code through the compiler's parser,
4774 # not just through cpp. "Syntax error" is here to catch this case.
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h. */
4777#ifdef __STDC__
4778# include <limits.h>
4779#else
4780# include <assert.h>
4781#endif
4782 Syntax error
4783_ACEOF
4784if ac_fn_c_try_cpp "$LINENO"; then :
4785
4786else
4787 # Broken: fails on valid input.
4788continue
4789fi
4790rm -f conftest.err conftest.i conftest.$ac_ext
4791
4792 # OK, works on sane cases. Now check whether nonexistent headers
4793 # can be detected and how.
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h. */
4796#include <ac_nonexistent.h>
4797_ACEOF
4798if ac_fn_c_try_cpp "$LINENO"; then :
4799 # Broken: success on invalid input.
4800continue
4801else
4802 # Passes both tests.
4803ac_preproc_ok=:
4804break
4805fi
4806rm -f conftest.err conftest.i conftest.$ac_ext
4807
4808done
4809# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4810rm -f conftest.i conftest.err conftest.$ac_ext
4811if $ac_preproc_ok; then :
4812 break
4813fi
4814
4815 done
4816 ac_cv_prog_CPP=$CPP
4817
4818fi
4819 CPP=$ac_cv_prog_CPP
4820else
4821 ac_cv_prog_CPP=$CPP
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4824$as_echo "$CPP" >&6; }
4825ac_preproc_ok=false
4826for ac_c_preproc_warn_flag in '' yes
4827do
4828 # Use a header file that comes with gcc, so configuring glibc
4829 # with a fresh cross-compiler works.
4830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4831 # <limits.h> exists even on freestanding compilers.
4832 # On the NeXT, cc -E runs the code through the compiler's parser,
4833 # not just through cpp. "Syntax error" is here to catch this case.
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835/* end confdefs.h. */
4836#ifdef __STDC__
4837# include <limits.h>
4838#else
4839# include <assert.h>
4840#endif
4841 Syntax error
4842_ACEOF
4843if ac_fn_c_try_cpp "$LINENO"; then :
4844
4845else
4846 # Broken: fails on valid input.
4847continue
4848fi
4849rm -f conftest.err conftest.i conftest.$ac_ext
4850
4851 # OK, works on sane cases. Now check whether nonexistent headers
4852 # can be detected and how.
4853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4854/* end confdefs.h. */
4855#include <ac_nonexistent.h>
4856_ACEOF
4857if ac_fn_c_try_cpp "$LINENO"; then :
4858 # Broken: success on invalid input.
4859continue
4860else
4861 # Passes both tests.
4862ac_preproc_ok=:
4863break
4864fi
4865rm -f conftest.err conftest.i conftest.$ac_ext
4866
4867done
4868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4869rm -f conftest.i conftest.err conftest.$ac_ext
4870if $ac_preproc_ok; then :
4871
4872else
4873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4874$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4875as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4876See \`config.log' for more details" "$LINENO" 5; }
4877fi
4878
4879ac_ext=c
4880ac_cpp='$CPP $CPPFLAGS'
4881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884
4885
4886 IFS=$xc_prog_cc_prev_IFS
4887 LIBS=$xc_prog_cc_prev_LIBS
4888 CFLAGS=$xc_prog_cc_prev_CFLAGS
4889 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4890 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4891
4892
4893
4894
4895
Elliott Hughes0128fe42018-02-27 14:57:55 -08004896
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4898$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4899if ${ac_cv_path_SED+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901else
4902 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4903 for ac_i in 1 2 3 4 5 6 7; do
4904 ac_script="$ac_script$as_nl$ac_script"
4905 done
4906 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4907 { ac_script=; unset ac_script;}
4908 if test -z "$SED"; then
4909 ac_path_SED_found=false
4910 # Loop through the user's path and test for each of PROGNAME-LIST
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_prog in sed gsed; do
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4919 as_fn_executable_p "$ac_path_SED" || continue
4920# Check for GNU ac_path_SED and select it if it is found.
4921 # Check for GNU $ac_path_SED
4922case `"$ac_path_SED" --version 2>&1` in
4923*GNU*)
4924 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4925*)
4926 ac_count=0
4927 $as_echo_n 0123456789 >"conftest.in"
4928 while :
4929 do
4930 cat "conftest.in" "conftest.in" >"conftest.tmp"
4931 mv "conftest.tmp" "conftest.in"
4932 cp "conftest.in" "conftest.nl"
4933 $as_echo '' >> "conftest.nl"
4934 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4936 as_fn_arith $ac_count + 1 && ac_count=$as_val
4937 if test $ac_count -gt ${ac_path_SED_max-0}; then
4938 # Best one so far, save it but keep looking for a better one
4939 ac_cv_path_SED="$ac_path_SED"
4940 ac_path_SED_max=$ac_count
4941 fi
4942 # 10*(2^10) chars as input seems more than enough
4943 test $ac_count -gt 10 && break
4944 done
4945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4946esac
4947
4948 $ac_path_SED_found && break 3
4949 done
4950 done
4951 done
4952IFS=$as_save_IFS
4953 if test -z "$ac_cv_path_SED"; then
4954 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4955 fi
4956else
4957 ac_cv_path_SED=$SED
4958fi
4959
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4962$as_echo "$ac_cv_path_SED" >&6; }
4963 SED="$ac_cv_path_SED"
4964 rm -f conftest.sed
4965
4966if test "$GCC" = "yes" ; then :
4967
4968
4969
4970 # allow to override gcov location
4971
4972# Check whether --with-gcov was given.
4973if test "${with_gcov+set}" = set; then :
4974 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
4975else
4976 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
4977fi
4978
4979
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
4981$as_echo_n "checking whether to build with code coverage support... " >&6; }
4982 # Check whether --enable-code-coverage was given.
4983if test "${enable_code_coverage+set}" = set; then :
4984 enableval=$enable_code_coverage;
4985else
4986 enable_code_coverage=no
4987fi
4988
4989
4990 if test x$enable_code_coverage = xyes; then
4991 CODE_COVERAGE_ENABLED_TRUE=
4992 CODE_COVERAGE_ENABLED_FALSE='#'
4993else
4994 CODE_COVERAGE_ENABLED_TRUE='#'
4995 CODE_COVERAGE_ENABLED_FALSE=
4996fi
4997
4998 CODE_COVERAGE_ENABLED=$enable_code_coverage
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5001$as_echo "$enable_code_coverage" >&6; }
5002
5003 if test "$enable_code_coverage" = "yes" ; then :
5004
5005 # check for gcov
5006 if test -n "$ac_tool_prefix"; then
5007 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5008set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010$as_echo_n "checking for $ac_word... " >&6; }
5011if ${ac_cv_prog_GCOV+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013else
5014 if test -n "$GCOV"; then
5015 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5016else
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020 IFS=$as_save_IFS
5021 test -z "$as_dir" && as_dir=.
5022 for ac_exec_ext in '' $ac_executable_extensions; do
5023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 break 2
5027 fi
5028done
5029 done
5030IFS=$as_save_IFS
5031
5032fi
5033fi
5034GCOV=$ac_cv_prog_GCOV
5035if test -n "$GCOV"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5037$as_echo "$GCOV" >&6; }
5038else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040$as_echo "no" >&6; }
5041fi
5042
5043
5044fi
5045if test -z "$ac_cv_prog_GCOV"; then
5046 ac_ct_GCOV=$GCOV
5047 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5048set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5050$as_echo_n "checking for $ac_word... " >&6; }
5051if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5052 $as_echo_n "(cached) " >&6
5053else
5054 if test -n "$ac_ct_GCOV"; then
5055 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
5069 done
5070IFS=$as_save_IFS
5071
5072fi
5073fi
5074ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5075if test -n "$ac_ct_GCOV"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5077$as_echo "$ac_ct_GCOV" >&6; }
5078else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
5081fi
5082
5083 if test "x$ac_ct_GCOV" = x; then
5084 GCOV=":"
5085 else
5086 case $cross_compiling:$ac_tool_warned in
5087yes:)
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090ac_tool_warned=yes ;;
5091esac
5092 GCOV=$ac_ct_GCOV
5093 fi
5094else
5095 GCOV="$ac_cv_prog_GCOV"
5096fi
5097
5098 if test "X$GCOV" = "X:"; then :
5099 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5100fi
5101
5102
5103 if test "$GCC" = "no" ; then :
5104
5105 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5106
5107fi
5108
5109 # Extract the first word of "lcov", so it can be a program name with args.
5110set dummy lcov; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if ${ac_cv_prog_LCOV+:} false; then :
5114 $as_echo_n "(cached) " >&6
5115else
5116 if test -n "$LCOV"; then
5117 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122 IFS=$as_save_IFS
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_LCOV="lcov"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5129 fi
5130done
5131 done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136LCOV=$ac_cv_prog_LCOV
5137if test -n "$LCOV"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5139$as_echo "$LCOV" >&6; }
5140else
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146 # Extract the first word of "genhtml", so it can be a program name with args.
5147set dummy genhtml; ac_word=$2
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if ${ac_cv_prog_GENHTML+:} false; then :
5151 $as_echo_n "(cached) " >&6
5152else
5153 if test -n "$GENHTML"; then
5154 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163 ac_cv_prog_GENHTML="genhtml"
5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 break 2
5166 fi
5167done
5168 done
5169IFS=$as_save_IFS
5170
5171fi
5172fi
5173GENHTML=$ac_cv_prog_GENHTML
5174if test -n "$GENHTML"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5176$as_echo "$GENHTML" >&6; }
5177else
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
5180fi
5181
5182
5183
5184 if test -z "$LCOV" ; then :
5185
5186 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5187
5188fi
5189
5190 if test -z "$GENHTML" ; then :
5191
5192 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5193
5194fi
5195
5196 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5197 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5198 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5199 CODE_COVERAGE_LIBS="-lgcov"
5200 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5201
5202
5203
5204
5205
5206
5207
5208 CODE_COVERAGE_RULES_CHECK='
5209 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5210 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5211'
5212 CODE_COVERAGE_RULES_CAPTURE='
5213 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
5214 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
5215 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5216 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
5217 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5218'
5219 CODE_COVERAGE_RULES_CLEAN='
5220clean: code-coverage-clean
5221distclean: code-coverage-clean
5222code-coverage-clean:
5223 -$(LCOV) --directory $(top_builddir) -z
5224 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5225 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5226'
5227
5228else
5229
5230 CODE_COVERAGE_RULES_CHECK='
5231 @echo "Need to reconfigure with --enable-code-coverage"
5232'
5233 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5234 CODE_COVERAGE_RULES_CLEAN=''
5235
5236fi
5237
5238CODE_COVERAGE_RULES='
5239# Code coverage
5240#
5241# Optional:
5242# - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5243# Multiple directories may be specified, separated by whitespace.
5244# (Default: $(top_builddir))
5245# - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5246# by lcov for code coverage. (Default:
5247# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5248# - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5249# reports to be created. (Default:
5250# $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5251# - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5252# set to 0 to disable it and leave empty to stay with the default.
5253# (Default: empty)
5254# - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5255# instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5256# - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5257# instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5258# - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5259# - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5260# collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5261# - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5262# instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5263# - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5264# lcov instance. (Default: empty)
5265# - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5266# instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5267# - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5268# genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5269# - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5270# instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5271# - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5272#
5273# The generated report will be titled using the $(PACKAGE_NAME) and
5274# $(PACKAGE_VERSION). In order to add the current git hash to the title,
5275# use the git-version-gen script, available online.
5276
5277# Optional variables
5278CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5279CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5280CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5281CODE_COVERAGE_BRANCH_COVERAGE ?=
5282CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5283--rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5284CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5285CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5286CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5287CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5288CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5289CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5290CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5291$(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5292--rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5293CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5294CODE_COVERAGE_IGNORE_PATTERN ?=
5295
5296GITIGNOREFILES ?=
5297GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5298
5299code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5300code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5301code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5302 $(CODE_COVERAGE_OUTPUT_FILE);
5303code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5304code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5305code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5306 $(CODE_COVERAGE_IGNORE_PATTERN);
5307code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5308code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5309code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5310code_coverage_quiet = $(code_coverage_quiet_$(V))
5311code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5312code_coverage_quiet_0 = --quiet
5313
5314# sanitizes the test-name: replaces with underscores: dashes and dots
5315code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5316
5317# Use recursive makes in order to ignore errors during check
5318check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5319
5320# Capture code coverage data
5321code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5322
5323# Hook rule executed before code-coverage-capture, overridable by the user
5324code-coverage-capture-hook:
5325
5326'"$CODE_COVERAGE_RULES_CLEAN"'
5327
5328A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5329A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5330
5331.PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5332'
5333
5334
5335
5336
5337else
5338 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5339 CODE_COVERAGE_ENABLED_TRUE='#'
5340
5341fi
5342
Elliott Hughes82be86d2017-09-20 17:00:17 -07005343am__api_version='1.15'
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5346$as_echo_n "checking whether build environment is sane... " >&6; }
5347# Reject unsafe characters in $srcdir or the absolute working directory
5348# name. Accept space and tab only in the latter.
5349am_lf='
5350'
5351case `pwd` in
5352 *[\\\"\#\$\&\'\`$am_lf]*)
5353 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5354esac
5355case $srcdir in
5356 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5357 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5358esac
5359
5360# Do 'set' in a subshell so we don't clobber the current shell's
5361# arguments. Must try -L first in case configure is actually a
5362# symlink; some systems play weird games with the mod time of symlinks
5363# (eg FreeBSD returns the mod time of the symlink's containing
5364# directory).
5365if (
5366 am_has_slept=no
5367 for am_try in 1 2; do
5368 echo "timestamp, slept: $am_has_slept" > conftest.file
5369 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5370 if test "$*" = "X"; then
5371 # -L didn't work.
5372 set X `ls -t "$srcdir/configure" conftest.file`
5373 fi
5374 if test "$*" != "X $srcdir/configure conftest.file" \
5375 && test "$*" != "X conftest.file $srcdir/configure"; then
5376
5377 # If neither matched, then we have a broken ls. This can happen
5378 # if, for instance, CONFIG_SHELL is bash and it inherits a
5379 # broken ls alias from the environment. This has actually
5380 # happened. Such a system could not be considered "sane".
5381 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5382 alias in your environment" "$LINENO" 5
5383 fi
5384 if test "$2" = conftest.file || test $am_try -eq 2; then
5385 break
5386 fi
5387 # Just in case.
5388 sleep 1
5389 am_has_slept=yes
5390 done
5391 test "$2" = conftest.file
5392 )
5393then
5394 # Ok.
5395 :
5396else
5397 as_fn_error $? "newly created file is older than distributed files!
5398Check your system clock" "$LINENO" 5
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401$as_echo "yes" >&6; }
5402# If we didn't sleep, we still need to ensure time stamps of config.status and
5403# generated files are strictly newer.
5404am_sleep_pid=
5405if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5406 ( sleep 1 ) &
5407 am_sleep_pid=$!
5408fi
5409
5410rm -f conftest.file
5411
5412test "$program_prefix" != NONE &&
5413 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5414# Use a double $ so make ignores it.
5415test "$program_suffix" != NONE &&
5416 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5417# Double any \ or $.
5418# By default was `s,x,x', remove it if useless.
5419ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5420program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5421
5422if test x"${MISSING+set}" != xset; then
5423 case $am_aux_dir in
5424 *\ * | *\ *)
5425 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5426 *)
5427 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5428 esac
5429fi
5430# Use eval to expand $SHELL
5431if eval "$MISSING --is-lightweight"; then
5432 am_missing_run="$MISSING "
5433else
5434 am_missing_run=
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5436$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5437fi
5438
5439if test x"${install_sh+set}" != xset; then
5440 case $am_aux_dir in
5441 *\ * | *\ *)
5442 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5443 *)
5444 install_sh="\${SHELL} $am_aux_dir/install-sh"
5445 esac
5446fi
5447
5448# Installed binaries are usually stripped using 'strip' when the user
5449# run "make install-strip". However 'strip' might not be the right
5450# tool to use in cross-compilation environments, therefore Automake
5451# will honor the 'STRIP' environment variable to overrule this program.
5452if test "$cross_compiling" != no; then
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5455set dummy ${ac_tool_prefix}strip; ac_word=$2
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457$as_echo_n "checking for $ac_word... " >&6; }
5458if ${ac_cv_prog_STRIP+:} false; then :
5459 $as_echo_n "(cached) " >&6
5460else
5461 if test -n "$STRIP"; then
5462 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476 done
5477IFS=$as_save_IFS
5478
5479fi
5480fi
5481STRIP=$ac_cv_prog_STRIP
5482if test -n "$STRIP"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5484$as_echo "$STRIP" >&6; }
5485else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487$as_echo "no" >&6; }
5488fi
5489
5490
5491fi
5492if test -z "$ac_cv_prog_STRIP"; then
5493 ac_ct_STRIP=$STRIP
5494 # Extract the first word of "strip", so it can be a program name with args.
5495set dummy strip; ac_word=$2
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497$as_echo_n "checking for $ac_word... " >&6; }
5498if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5499 $as_echo_n "(cached) " >&6
5500else
5501 if test -n "$ac_ct_STRIP"; then
5502 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
5509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5511 ac_cv_prog_ac_ct_STRIP="strip"
5512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 break 2
5514 fi
5515done
5516 done
5517IFS=$as_save_IFS
5518
5519fi
5520fi
5521ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5522if test -n "$ac_ct_STRIP"; then
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5524$as_echo "$ac_ct_STRIP" >&6; }
5525else
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527$as_echo "no" >&6; }
5528fi
5529
5530 if test "x$ac_ct_STRIP" = x; then
5531 STRIP=":"
5532 else
5533 case $cross_compiling:$ac_tool_warned in
5534yes:)
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5536$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5537ac_tool_warned=yes ;;
5538esac
5539 STRIP=$ac_ct_STRIP
5540 fi
5541else
5542 STRIP="$ac_cv_prog_STRIP"
5543fi
5544
5545fi
5546INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5547
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5549$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5550if test -z "$MKDIR_P"; then
5551 if ${ac_cv_path_mkdir+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553else
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_prog in mkdir gmkdir; do
5560 for ac_exec_ext in '' $ac_executable_extensions; do
5561 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5562 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5563 'mkdir (GNU coreutils) '* | \
5564 'mkdir (coreutils) '* | \
5565 'mkdir (fileutils) '4.1*)
5566 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5567 break 3;;
5568 esac
5569 done
5570 done
5571 done
5572IFS=$as_save_IFS
5573
5574fi
5575
5576 test -d ./--version && rmdir ./--version
5577 if test "${ac_cv_path_mkdir+set}" = set; then
5578 MKDIR_P="$ac_cv_path_mkdir -p"
5579 else
5580 # As a last resort, use the slow shell script. Don't cache a
5581 # value for MKDIR_P within a source directory, because that will
5582 # break other packages using the cache if that directory is
5583 # removed, or if the value is a relative name.
5584 MKDIR_P="$ac_install_sh -d"
5585 fi
5586fi
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5588$as_echo "$MKDIR_P" >&6; }
5589
5590for ac_prog in gawk mawk nawk awk
5591do
5592 # Extract the first word of "$ac_prog", so it can be a program name with args.
5593set dummy $ac_prog; ac_word=$2
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595$as_echo_n "checking for $ac_word... " >&6; }
5596if ${ac_cv_prog_AWK+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598else
5599 if test -n "$AWK"; then
5600 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_AWK="$ac_prog"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613done
5614 done
5615IFS=$as_save_IFS
5616
5617fi
5618fi
5619AWK=$ac_cv_prog_AWK
5620if test -n "$AWK"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5622$as_echo "$AWK" >&6; }
5623else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625$as_echo "no" >&6; }
5626fi
5627
5628
5629 test -n "$AWK" && break
5630done
5631
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5633$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5634set x ${MAKE-make}
5635ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5636if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638else
5639 cat >conftest.make <<\_ACEOF
5640SHELL = /bin/sh
5641all:
5642 @echo '@@@%%%=$(MAKE)=@@@%%%'
5643_ACEOF
5644# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5645case `${MAKE-make} -f conftest.make 2>/dev/null` in
5646 *@@@%%%=?*=@@@%%%*)
5647 eval ac_cv_prog_make_${ac_make}_set=yes;;
5648 *)
5649 eval ac_cv_prog_make_${ac_make}_set=no;;
5650esac
5651rm -f conftest.make
5652fi
5653if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655$as_echo "yes" >&6; }
5656 SET_MAKE=
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659$as_echo "no" >&6; }
5660 SET_MAKE="MAKE=${MAKE-make}"
5661fi
5662
5663rm -rf .tst 2>/dev/null
5664mkdir .tst 2>/dev/null
5665if test -d .tst; then
5666 am__leading_dot=.
5667else
5668 am__leading_dot=_
5669fi
5670rmdir .tst 2>/dev/null
5671
5672DEPDIR="${am__leading_dot}deps"
5673
5674ac_config_commands="$ac_config_commands depfiles"
5675
5676
5677am_make=${MAKE-make}
5678cat > confinc << 'END'
5679am__doit:
5680 @echo this is the am__doit target
5681.PHONY: am__doit
5682END
5683# If we don't find an include directive, just comment out the code.
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5685$as_echo_n "checking for style of include used by $am_make... " >&6; }
5686am__include="#"
5687am__quote=
5688_am_result=none
5689# First try GNU make style include.
5690echo "include confinc" > confmf
5691# Ignore all kinds of additional output from 'make'.
5692case `$am_make -s -f confmf 2> /dev/null` in #(
5693*the\ am__doit\ target*)
5694 am__include=include
5695 am__quote=
5696 _am_result=GNU
5697 ;;
5698esac
5699# Now try BSD make style include.
5700if test "$am__include" = "#"; then
5701 echo '.include "confinc"' > confmf
5702 case `$am_make -s -f confmf 2> /dev/null` in #(
5703 *the\ am__doit\ target*)
5704 am__include=.include
5705 am__quote="\""
5706 _am_result=BSD
5707 ;;
5708 esac
5709fi
5710
5711
5712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5713$as_echo "$_am_result" >&6; }
5714rm -f confinc confmf
5715
5716# Check whether --enable-dependency-tracking was given.
5717if test "${enable_dependency_tracking+set}" = set; then :
5718 enableval=$enable_dependency_tracking;
5719fi
5720
5721if test "x$enable_dependency_tracking" != xno; then
5722 am_depcomp="$ac_aux_dir/depcomp"
5723 AMDEPBACKSLASH='\'
5724 am__nodep='_no'
5725fi
5726 if test "x$enable_dependency_tracking" != xno; then
5727 AMDEP_TRUE=
5728 AMDEP_FALSE='#'
5729else
5730 AMDEP_TRUE='#'
5731 AMDEP_FALSE=
5732fi
5733
5734
5735## --------------------------------------- ##
5736## Start of automake initialization code ##
5737## --------------------------------------- ##
5738
5739if test "`cd $srcdir && pwd`" != "`pwd`"; then
5740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5741 # is not polluted with repeated "-I."
5742 am__isrc=' -I$(srcdir)'
5743 # test to see if srcdir already configured
5744 if test -f $srcdir/config.status; then
5745 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5746 fi
5747fi
5748
5749# test whether we have cygpath
5750if test -z "$CYGPATH_W"; then
5751 if (cygpath --version) >/dev/null 2>/dev/null; then
5752 CYGPATH_W='cygpath -w'
5753 else
5754 CYGPATH_W=echo
5755 fi
5756fi
5757
5758
5759# Define the identity of the package.
5760 PACKAGE='curl'
5761 VERSION='-'
5762
5763
5764cat >>confdefs.h <<_ACEOF
5765#define PACKAGE "$PACKAGE"
5766_ACEOF
5767
5768
5769cat >>confdefs.h <<_ACEOF
5770#define VERSION "$VERSION"
5771_ACEOF
5772
5773# Some tools Automake needs.
5774
5775ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5776
5777
5778AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5779
5780
5781AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5782
5783
5784AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5785
5786
5787MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5788
5789# For better backward compatibility. To be removed once Automake 1.9.x
5790# dies out for good. For more background, see:
5791# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5792# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5793mkdir_p='$(MKDIR_P)'
5794
5795# We need awk for the "check" target (and possibly the TAP driver). The
5796# system "awk" is bad on some platforms.
5797# Always define AMTAR for backward compatibility. Yes, it's still used
5798# in the wild :-( We should find a proper way to deprecate it ...
5799AMTAR='$${TAR-tar}'
5800
5801
5802# We'll loop over all known methods to create a tar archive until one works.
5803_am_tools='gnutar pax cpio none'
5804
5805am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5806
5807
5808
5809
5810
5811depcc="$CC" am_compiler_list=
5812
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5814$as_echo_n "checking dependency style of $depcc... " >&6; }
5815if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817else
5818 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5819 # We make a subdir and do the tests there. Otherwise we can end up
5820 # making bogus files that we don't know about and never remove. For
5821 # instance it was reported that on HP-UX the gcc test will end up
5822 # making a dummy file named 'D' -- because '-MD' means "put the output
5823 # in D".
5824 rm -rf conftest.dir
5825 mkdir conftest.dir
5826 # Copy depcomp to subdir because otherwise we won't find it if we're
5827 # using a relative directory.
5828 cp "$am_depcomp" conftest.dir
5829 cd conftest.dir
5830 # We will build objects and dependencies in a subdirectory because
5831 # it helps to detect inapplicable dependency modes. For instance
5832 # both Tru64's cc and ICC support -MD to output dependencies as a
5833 # side effect of compilation, but ICC will put the dependencies in
5834 # the current directory while Tru64 will put them in the object
5835 # directory.
5836 mkdir sub
5837
5838 am_cv_CC_dependencies_compiler_type=none
5839 if test "$am_compiler_list" = ""; then
5840 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5841 fi
5842 am__universal=false
5843 case " $depcc " in #(
5844 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5845 esac
5846
5847 for depmode in $am_compiler_list; do
5848 # Setup a source with many dependencies, because some compilers
5849 # like to wrap large dependency lists on column 80 (with \), and
5850 # we should not choose a depcomp mode which is confused by this.
5851 #
5852 # We need to recreate these files for each test, as the compiler may
5853 # overwrite some of them when testing with obscure command lines.
5854 # This happens at least with the AIX C compiler.
5855 : > sub/conftest.c
5856 for i in 1 2 3 4 5 6; do
5857 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5858 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5859 # Solaris 10 /bin/sh.
5860 echo '/* dummy */' > sub/conftst$i.h
5861 done
5862 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5863
5864 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5865 # mode. It turns out that the SunPro C++ compiler does not properly
5866 # handle '-M -o', and we need to detect this. Also, some Intel
5867 # versions had trouble with output in subdirs.
5868 am__obj=sub/conftest.${OBJEXT-o}
5869 am__minus_obj="-o $am__obj"
5870 case $depmode in
5871 gcc)
5872 # This depmode causes a compiler race in universal mode.
5873 test "$am__universal" = false || continue
5874 ;;
5875 nosideeffect)
5876 # After this tag, mechanisms are not by side-effect, so they'll
5877 # only be used when explicitly requested.
5878 if test "x$enable_dependency_tracking" = xyes; then
5879 continue
5880 else
5881 break
5882 fi
5883 ;;
5884 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5885 # This compiler won't grok '-c -o', but also, the minuso test has
5886 # not run yet. These depmodes are late enough in the game, and
5887 # so weak that their functioning should not be impacted.
5888 am__obj=conftest.${OBJEXT-o}
5889 am__minus_obj=
5890 ;;
5891 none) break ;;
5892 esac
5893 if depmode=$depmode \
5894 source=sub/conftest.c object=$am__obj \
5895 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5896 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5897 >/dev/null 2>conftest.err &&
5898 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5899 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5900 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5901 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5902 # icc doesn't choke on unknown options, it will just issue warnings
5903 # or remarks (even with -Werror). So we grep stderr for any message
5904 # that says an option was ignored or not supported.
5905 # When given -MP, icc 7.0 and 7.1 complain thusly:
5906 # icc: Command line warning: ignoring option '-M'; no argument required
5907 # The diagnosis changed in icc 8.0:
5908 # icc: Command line remark: option '-MP' not supported
5909 if (grep 'ignoring option' conftest.err ||
5910 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5911 am_cv_CC_dependencies_compiler_type=$depmode
5912 break
5913 fi
5914 fi
5915 done
5916
5917 cd ..
5918 rm -rf conftest.dir
5919else
5920 am_cv_CC_dependencies_compiler_type=none
5921fi
5922
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5925$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5926CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5927
5928 if
5929 test "x$enable_dependency_tracking" != xno \
5930 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5931 am__fastdepCC_TRUE=
5932 am__fastdepCC_FALSE='#'
5933else
5934 am__fastdepCC_TRUE='#'
5935 am__fastdepCC_FALSE=
5936fi
5937
5938
5939
5940# POSIX will say in a future version that running "rm -f" with no argument
5941# is OK; and we want to be able to make that assumption in our Makefile
5942# recipes. So use an aggressive probe to check that the usage we want is
5943# actually supported "in the wild" to an acceptable degree.
5944# See automake bug#10828.
5945# To make any issue more visible, cause the running configure to be aborted
5946# by default if the 'rm' program in use doesn't match our expectations; the
5947# user can still override this though.
5948if rm -f && rm -fr && rm -rf; then : OK; else
5949 cat >&2 <<'END'
5950Oops!
5951
5952Your 'rm' program seems unable to run without file operands specified
5953on the command line, even when the '-f' option is present. This is contrary
5954to the behaviour of most rm programs out there, and not conforming with
5955the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5956
5957Please tell bug-automake@gnu.org about your system, including the value
5958of your $PATH and any error possibly output before this message. This
5959can help us improve future automake versions.
5960
5961END
5962 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5963 echo 'Configuration will proceed anyway, since you have set the' >&2
5964 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5965 echo >&2
5966 else
5967 cat >&2 <<'END'
5968Aborting the configuration process, to ensure you take notice of the issue.
5969
5970You can download and install GNU coreutils to get an 'rm' implementation
5971that behaves properly: <http://www.gnu.org/software/coreutils/>.
5972
5973If you want to complete the configuration process using your problematic
5974'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5975to "yes", and re-run configure.
5976
5977END
5978 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5979 fi
5980fi
5981
5982## ------------------------------------- ##
5983## End of automake initialization code ##
5984## ------------------------------------- ##
5985
5986
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5988$as_echo_n "checking curl version... " >&6; }
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5990$as_echo "$CURLVERSION" >&6; }
5991
5992
5993
5994VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5995
5996
5997PKGADD_PKG="HAXXcurl"
5998PKGADD_NAME="curl - a client that groks URLs"
5999PKGADD_VENDOR="curl.haxx.se"
6000
6001
6002
6003
Haibo Huang21926d52019-01-08 14:27:10 -08006004 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,winssl,darwinssl,mesalink} )"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006005 curl_ssh_msg="no (--with-libssh2)"
6006 curl_zlib_msg="no (--with-zlib)"
Alex Deymo486467e2017-12-19 19:04:07 +01006007 curl_brotli_msg="no (--with-brotli)"
Elliott Hughes82be86d2017-09-20 17:00:17 -07006008 curl_gss_msg="no (--with-gssapi)"
6009curl_tls_srp_msg="no (--enable-tls-srp)"
6010 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6011 curl_ipv6_msg="no (--enable-ipv6)"
6012curl_unix_sockets_msg="no (--enable-unix-sockets)"
6013 curl_idn_msg="no (--with-{libidn2,winidn})"
6014 curl_manual_msg="no (--enable-manual)"
6015curl_libcurl_msg="enabled (--disable-libcurl-option)"
6016curl_verbose_msg="enabled (--disable-verbose)"
6017 curl_sspi_msg="no (--enable-sspi)"
6018 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6019 curl_ldaps_msg="no (--enable-ldaps)"
6020 curl_rtsp_msg="no (--enable-rtsp)"
6021 curl_rtmp_msg="no (--with-librtmp)"
6022 curl_mtlnk_msg="no (--with-libmetalink)"
6023 curl_psl_msg="no (--with-libpsl)"
6024
Alex Deymo486467e2017-12-19 19:04:07 +01006025 ssl_backends=
Elliott Hughes82be86d2017-09-20 17:00:17 -07006026
6027INITIAL_LDFLAGS=$LDFLAGS
6028INITIAL_LIBS=$LIBS
6029
6030
6031# Make sure we can run config.sub.
6032$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6033 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6034
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6036$as_echo_n "checking build system type... " >&6; }
6037if ${ac_cv_build+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039else
6040 ac_build_alias=$build_alias
6041test "x$ac_build_alias" = x &&
6042 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6043test "x$ac_build_alias" = x &&
6044 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6045ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6046 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6047
6048fi
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6050$as_echo "$ac_cv_build" >&6; }
6051case $ac_cv_build in
6052*-*-*) ;;
6053*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6054esac
6055build=$ac_cv_build
6056ac_save_IFS=$IFS; IFS='-'
6057set x $ac_cv_build
6058shift
6059build_cpu=$1
6060build_vendor=$2
6061shift; shift
6062# Remember, the first character of IFS is used to create $*,
6063# except with old shells:
6064build_os=$*
6065IFS=$ac_save_IFS
6066case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6067
6068
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6070$as_echo_n "checking host system type... " >&6; }
6071if ${ac_cv_host+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073else
6074 if test "x$host_alias" = x; then
6075 ac_cv_host=$ac_cv_build
6076else
6077 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6078 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6079fi
6080
6081fi
6082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6083$as_echo "$ac_cv_host" >&6; }
6084case $ac_cv_host in
6085*-*-*) ;;
6086*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6087esac
6088host=$ac_cv_host
6089ac_save_IFS=$IFS; IFS='-'
6090set x $ac_cv_host
6091shift
6092host_cpu=$1
6093host_vendor=$2
6094shift; shift
6095# Remember, the first character of IFS is used to create $*,
6096# except with old shells:
6097host_os=$*
6098IFS=$ac_save_IFS
6099case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6100
6101
6102
6103cat >>confdefs.h <<_ACEOF
6104#define OS "${host}"
6105_ACEOF
6106
6107
Elliott Hughes72d948d2018-08-03 14:37:21 -07006108# Silence warning: ar: 'u' modifier ignored since 'D' is the default
6109AR_FLAGS=cr
6110
Elliott Hughes82be86d2017-09-20 17:00:17 -07006111
6112
6113
Elliott Hughes82be86d2017-09-20 17:00:17 -07006114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6115$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6116if ${ac_cv_path_GREP+:} false; then :
6117 $as_echo_n "(cached) " >&6
6118else
6119 if test -z "$GREP"; then
6120 ac_path_GREP_found=false
6121 # Loop through the user's path and test for each of PROGNAME-LIST
6122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6124do
6125 IFS=$as_save_IFS
6126 test -z "$as_dir" && as_dir=.
6127 for ac_prog in grep ggrep; do
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6130 as_fn_executable_p "$ac_path_GREP" || continue
6131# Check for GNU ac_path_GREP and select it if it is found.
6132 # Check for GNU $ac_path_GREP
6133case `"$ac_path_GREP" --version 2>&1` in
6134*GNU*)
6135 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6136*)
6137 ac_count=0
6138 $as_echo_n 0123456789 >"conftest.in"
6139 while :
6140 do
6141 cat "conftest.in" "conftest.in" >"conftest.tmp"
6142 mv "conftest.tmp" "conftest.in"
6143 cp "conftest.in" "conftest.nl"
6144 $as_echo 'GREP' >> "conftest.nl"
6145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6147 as_fn_arith $ac_count + 1 && ac_count=$as_val
6148 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6149 # Best one so far, save it but keep looking for a better one
6150 ac_cv_path_GREP="$ac_path_GREP"
6151 ac_path_GREP_max=$ac_count
6152 fi
6153 # 10*(2^10) chars as input seems more than enough
6154 test $ac_count -gt 10 && break
6155 done
6156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6157esac
6158
6159 $ac_path_GREP_found && break 3
6160 done
6161 done
6162 done
6163IFS=$as_save_IFS
6164 if test -z "$ac_cv_path_GREP"; then
6165 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6166 fi
6167else
6168 ac_cv_path_GREP=$GREP
6169fi
6170
6171fi
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6173$as_echo "$ac_cv_path_GREP" >&6; }
6174 GREP="$ac_cv_path_GREP"
6175
6176
6177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6178$as_echo_n "checking for egrep... " >&6; }
6179if ${ac_cv_path_EGREP+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181else
6182 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6183 then ac_cv_path_EGREP="$GREP -E"
6184 else
6185 if test -z "$EGREP"; then
6186 ac_path_EGREP_found=false
6187 # Loop through the user's path and test for each of PROGNAME-LIST
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
6193 for ac_prog in egrep; do
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6196 as_fn_executable_p "$ac_path_EGREP" || continue
6197# Check for GNU ac_path_EGREP and select it if it is found.
6198 # Check for GNU $ac_path_EGREP
6199case `"$ac_path_EGREP" --version 2>&1` in
6200*GNU*)
6201 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6202*)
6203 ac_count=0
6204 $as_echo_n 0123456789 >"conftest.in"
6205 while :
6206 do
6207 cat "conftest.in" "conftest.in" >"conftest.tmp"
6208 mv "conftest.tmp" "conftest.in"
6209 cp "conftest.in" "conftest.nl"
6210 $as_echo 'EGREP' >> "conftest.nl"
6211 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6212 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6213 as_fn_arith $ac_count + 1 && ac_count=$as_val
6214 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6215 # Best one so far, save it but keep looking for a better one
6216 ac_cv_path_EGREP="$ac_path_EGREP"
6217 ac_path_EGREP_max=$ac_count
6218 fi
6219 # 10*(2^10) chars as input seems more than enough
6220 test $ac_count -gt 10 && break
6221 done
6222 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6223esac
6224
6225 $ac_path_EGREP_found && break 3
6226 done
6227 done
6228 done
6229IFS=$as_save_IFS
6230 if test -z "$ac_cv_path_EGREP"; then
6231 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6232 fi
6233else
6234 ac_cv_path_EGREP=$EGREP
6235fi
6236
6237 fi
6238fi
6239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6240$as_echo "$ac_cv_path_EGREP" >&6; }
6241 EGREP="$ac_cv_path_EGREP"
6242
6243
Elliott Hughes82be86d2017-09-20 17:00:17 -07006244
6245
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6247$as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249/* end confdefs.h. */
6250
6251#ifdef _AIX
6252 yes_this_is_aix
6253#endif
6254
6255_ACEOF
6256if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6257 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6258
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6260$as_echo "yes" >&6; }
6261 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6262
6263
6264else
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267$as_echo "no" >&6; }
6268
6269fi
6270rm -f conftest*
6271
6272
6273
6274
6275 #
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6277$as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279/* end confdefs.h. */
6280
6281
6282
6283int main (void)
6284{
6285
6286#ifdef _THREAD_SAFE
6287 int dummy=1;
6288#else
6289 force compilation error
6290#endif
6291
6292 ;
6293 return 0;
6294}
6295
6296_ACEOF
6297if ac_fn_c_try_compile "$LINENO"; then :
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6300$as_echo "yes" >&6; }
6301 tmp_thread_safe_initially_defined="yes"
6302
6303else
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306$as_echo "no" >&6; }
6307 tmp_thread_safe_initially_defined="no"
6308
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311 #
6312 if test "$tmp_thread_safe_initially_defined" = "no"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6314$as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6315
6316 case $host_os in
6317 aix[123].* | aix4.[012].*)
6318 tmp_need_thread_safe="no"
6319 ;;
6320 aix*)
6321 tmp_need_thread_safe="yes"
6322 ;;
6323 *)
6324 tmp_need_thread_safe="no"
6325 ;;
6326 esac
6327
6328 if test "$tmp_need_thread_safe" = "yes"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6330$as_echo "yes" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334 fi
6335 fi
6336 #
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6338$as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6339 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6340 test "$tmp_need_thread_safe" = "yes"; then
6341
6342
6343$as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6344
6345cat >>confdefs.h <<_EOF
6346#ifndef _THREAD_SAFE
6347# define _THREAD_SAFE
6348#endif
6349_EOF
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6352$as_echo "yes" >&6; }
6353 else
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355$as_echo "no" >&6; }
6356 fi
6357 #
6358
6359
6360 #
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6362$as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h. */
6365
6366
6367
6368int main (void)
6369{
6370
6371#ifdef _REENTRANT
6372 int dummy=1;
6373#else
6374 force compilation error
6375#endif
6376
6377 ;
6378 return 0;
6379}
6380
6381_ACEOF
6382if ac_fn_c_try_compile "$LINENO"; then :
6383
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6385$as_echo "yes" >&6; }
6386 tmp_reentrant_initially_defined="yes"
6387
6388else
6389
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391$as_echo "no" >&6; }
6392 tmp_reentrant_initially_defined="no"
6393
6394fi
6395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 #
6397 if test "$tmp_reentrant_initially_defined" = "no"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6399$as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6400
6401 case $host_os in
6402 solaris*)
6403 tmp_need_reentrant="yes"
6404 ;;
6405 *)
6406 tmp_need_reentrant="no"
6407 ;;
6408 esac
6409
6410 if test "$tmp_need_reentrant" = "no"; then
6411
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413/* end confdefs.h. */
6414
6415
6416#include <errno.h>
6417
6418int main (void)
6419{
6420
6421 if(0 != errno)
6422 return 1;
6423
6424 ;
6425 return 0;
6426}
6427
6428_ACEOF
6429if ac_fn_c_try_compile "$LINENO"; then :
6430
6431 tmp_errno="yes"
6432
6433else
6434
6435 tmp_errno="no"
6436
6437fi
6438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6439 if test "$tmp_errno" = "yes"; then
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441/* end confdefs.h. */
6442
6443
6444#include <errno.h>
6445
6446int main (void)
6447{
6448
6449#ifdef errno
6450 int dummy=1;
6451#else
6452 force compilation error
6453#endif
6454
6455 ;
6456 return 0;
6457}
6458
6459_ACEOF
6460if ac_fn_c_try_compile "$LINENO"; then :
6461
6462 tmp_errno="errno_macro_defined"
6463
6464else
6465
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467/* end confdefs.h. */
6468
6469
6470#define _REENTRANT
6471#include <errno.h>
6472
6473int main (void)
6474{
6475
6476#ifdef errno
6477 int dummy=1;
6478#else
6479 force compilation error
6480#endif
6481
6482 ;
6483 return 0;
6484}
6485
6486_ACEOF
6487if ac_fn_c_try_compile "$LINENO"; then :
6488
6489 tmp_errno="errno_macro_needs_reentrant"
6490 tmp_need_reentrant="yes"
6491
6492fi
6493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6494
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 fi
6498
6499 fi
6500 if test "$tmp_need_reentrant" = "no"; then
6501
6502 if test "$tmp_need_reentrant" = "no"; then
6503
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h. */
6506
6507
6508#define gmtime_r innocuous_gmtime_r
6509#ifdef __STDC__
6510# include <limits.h>
6511#else
6512# include <assert.h>
6513#endif
6514#undef gmtime_r
6515#ifdef __cplusplus
6516extern "C"
6517#endif
6518char gmtime_r ();
6519#if defined __stub_gmtime_r || defined __stub___gmtime_r
6520choke me
6521#endif
6522
6523int main (void)
6524{
6525return gmtime_r ();
6526 ;
6527 return 0;
6528}
6529
6530_ACEOF
6531if ac_fn_c_try_link "$LINENO"; then :
6532
6533 tmp_gmtime_r="yes"
6534
6535else
6536
6537 tmp_gmtime_r="no"
6538
6539fi
6540rm -f core conftest.err conftest.$ac_objext \
6541 conftest$ac_exeext conftest.$ac_ext
6542 if test "$tmp_gmtime_r" = "yes"; then
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544/* end confdefs.h. */
6545
6546#include <sys/types.h>
6547#include <time.h>
6548
6549_ACEOF
6550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6551 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6552
6553 tmp_gmtime_r="proto_declared"
6554
6555else
6556
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h. */
6559
6560#define _REENTRANT
6561#include <sys/types.h>
6562#include <time.h>
6563
6564_ACEOF
6565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6567
6568 tmp_gmtime_r="proto_needs_reentrant"
6569 tmp_need_reentrant="yes"
6570
6571fi
6572rm -f conftest*
6573
6574
6575fi
6576rm -f conftest*
6577
6578 fi
6579
6580 fi
6581 if test "$tmp_need_reentrant" = "no"; then
6582
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h. */
6585
6586
6587#define localtime_r innocuous_localtime_r
6588#ifdef __STDC__
6589# include <limits.h>
6590#else
6591# include <assert.h>
6592#endif
6593#undef localtime_r
6594#ifdef __cplusplus
6595extern "C"
6596#endif
6597char localtime_r ();
6598#if defined __stub_localtime_r || defined __stub___localtime_r
6599choke me
6600#endif
6601
6602int main (void)
6603{
6604return localtime_r ();
6605 ;
6606 return 0;
6607}
6608
6609_ACEOF
6610if ac_fn_c_try_link "$LINENO"; then :
6611
6612 tmp_localtime_r="yes"
6613
6614else
6615
6616 tmp_localtime_r="no"
6617
6618fi
6619rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
6621 if test "$tmp_localtime_r" = "yes"; then
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623/* end confdefs.h. */
6624
6625#include <sys/types.h>
6626#include <time.h>
6627
6628_ACEOF
6629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "localtime_r" >/dev/null 2>&1; then :
6631
6632 tmp_localtime_r="proto_declared"
6633
6634else
6635
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637/* end confdefs.h. */
6638
6639#define _REENTRANT
6640#include <sys/types.h>
6641#include <time.h>
6642
6643_ACEOF
6644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "localtime_r" >/dev/null 2>&1; then :
6646
6647 tmp_localtime_r="proto_needs_reentrant"
6648 tmp_need_reentrant="yes"
6649
6650fi
6651rm -f conftest*
6652
6653
6654fi
6655rm -f conftest*
6656
6657 fi
6658
6659 fi
6660 if test "$tmp_need_reentrant" = "no"; then
6661
6662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h. */
6664
6665
6666#define strerror_r innocuous_strerror_r
6667#ifdef __STDC__
6668# include <limits.h>
6669#else
6670# include <assert.h>
6671#endif
6672#undef strerror_r
6673#ifdef __cplusplus
6674extern "C"
6675#endif
6676char strerror_r ();
6677#if defined __stub_strerror_r || defined __stub___strerror_r
6678choke me
6679#endif
6680
6681int main (void)
6682{
6683return strerror_r ();
6684 ;
6685 return 0;
6686}
6687
6688_ACEOF
6689if ac_fn_c_try_link "$LINENO"; then :
6690
6691 tmp_strerror_r="yes"
6692
6693else
6694
6695 tmp_strerror_r="no"
6696
6697fi
6698rm -f core conftest.err conftest.$ac_objext \
6699 conftest$ac_exeext conftest.$ac_ext
6700 if test "$tmp_strerror_r" = "yes"; then
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h. */
6703
6704#include <sys/types.h>
6705#include <string.h>
6706
6707_ACEOF
6708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6709 $EGREP "strerror_r" >/dev/null 2>&1; then :
6710
6711 tmp_strerror_r="proto_declared"
6712
6713else
6714
6715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716/* end confdefs.h. */
6717
6718#define _REENTRANT
6719#include <sys/types.h>
6720#include <string.h>
6721
6722_ACEOF
6723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6724 $EGREP "strerror_r" >/dev/null 2>&1; then :
6725
6726 tmp_strerror_r="proto_needs_reentrant"
6727 tmp_need_reentrant="yes"
6728
6729fi
6730rm -f conftest*
6731
6732
6733fi
6734rm -f conftest*
6735
6736 fi
6737
6738 fi
6739 if test "$tmp_need_reentrant" = "no"; then
6740
6741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h. */
6743
6744
6745#define strtok_r innocuous_strtok_r
6746#ifdef __STDC__
6747# include <limits.h>
6748#else
6749# include <assert.h>
6750#endif
6751#undef strtok_r
6752#ifdef __cplusplus
6753extern "C"
6754#endif
6755char strtok_r ();
6756#if defined __stub_strtok_r || defined __stub___strtok_r
6757choke me
6758#endif
6759
6760int main (void)
6761{
6762return strtok_r ();
6763 ;
6764 return 0;
6765}
6766
6767_ACEOF
6768if ac_fn_c_try_link "$LINENO"; then :
6769
6770 tmp_strtok_r="yes"
6771
6772else
6773
6774 tmp_strtok_r="no"
6775
6776fi
6777rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 if test "$tmp_strtok_r" = "yes"; then
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781/* end confdefs.h. */
6782
6783#include <sys/types.h>
6784#include <string.h>
6785
6786_ACEOF
6787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788 $EGREP "strtok_r" >/dev/null 2>&1; then :
6789
6790 tmp_strtok_r="proto_declared"
6791
6792else
6793
6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h. */
6796
6797#define _REENTRANT
6798#include <sys/types.h>
6799#include <string.h>
6800
6801_ACEOF
6802if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6803 $EGREP "strtok_r" >/dev/null 2>&1; then :
6804
6805 tmp_strtok_r="proto_needs_reentrant"
6806 tmp_need_reentrant="yes"
6807
6808fi
6809rm -f conftest*
6810
6811
6812fi
6813rm -f conftest*
6814
6815 fi
6816
6817 fi
6818 if test "$tmp_need_reentrant" = "no"; then
6819
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h. */
6822
6823
6824#define inet_ntoa_r innocuous_inet_ntoa_r
6825#ifdef __STDC__
6826# include <limits.h>
6827#else
6828# include <assert.h>
6829#endif
6830#undef inet_ntoa_r
6831#ifdef __cplusplus
6832extern "C"
6833#endif
6834char inet_ntoa_r ();
6835#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6836choke me
6837#endif
6838
6839int main (void)
6840{
6841return inet_ntoa_r ();
6842 ;
6843 return 0;
6844}
6845
6846_ACEOF
6847if ac_fn_c_try_link "$LINENO"; then :
6848
6849 tmp_inet_ntoa_r="yes"
6850
6851else
6852
6853 tmp_inet_ntoa_r="no"
6854
6855fi
6856rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 if test "$tmp_inet_ntoa_r" = "yes"; then
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860/* end confdefs.h. */
6861
6862#include <sys/types.h>
6863#include <sys/socket.h>
6864#include <netinet/in.h>
6865#include <arpa/inet.h>
6866
6867_ACEOF
6868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6870
6871 tmp_inet_ntoa_r="proto_declared"
6872
6873else
6874
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876/* end confdefs.h. */
6877
6878#define _REENTRANT
6879#include <sys/types.h>
6880#include <sys/socket.h>
6881#include <netinet/in.h>
6882#include <arpa/inet.h>
6883
6884_ACEOF
6885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6886 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6887
6888 tmp_inet_ntoa_r="proto_needs_reentrant"
6889 tmp_need_reentrant="yes"
6890
6891fi
6892rm -f conftest*
6893
6894
6895fi
6896rm -f conftest*
6897
6898 fi
6899
6900 fi
6901 if test "$tmp_need_reentrant" = "no"; then
6902
6903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904/* end confdefs.h. */
6905
6906
6907#define gethostbyaddr_r innocuous_gethostbyaddr_r
6908#ifdef __STDC__
6909# include <limits.h>
6910#else
6911# include <assert.h>
6912#endif
6913#undef gethostbyaddr_r
6914#ifdef __cplusplus
6915extern "C"
6916#endif
6917char gethostbyaddr_r ();
6918#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6919choke me
6920#endif
6921
6922int main (void)
6923{
6924return gethostbyaddr_r ();
6925 ;
6926 return 0;
6927}
6928
6929_ACEOF
6930if ac_fn_c_try_link "$LINENO"; then :
6931
6932 tmp_gethostbyaddr_r="yes"
6933
6934else
6935
6936 tmp_gethostbyaddr_r="no"
6937
6938fi
6939rm -f core conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6941 if test "$tmp_gethostbyaddr_r" = "yes"; then
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943/* end confdefs.h. */
6944
6945#include <sys/types.h>
6946#include <netdb.h>
6947
6948_ACEOF
6949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6951
6952 tmp_gethostbyaddr_r="proto_declared"
6953
6954else
6955
6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6957/* end confdefs.h. */
6958
6959#define _REENTRANT
6960#include <sys/types.h>
6961#include <netdb.h>
6962
6963_ACEOF
6964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6965 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6966
6967 tmp_gethostbyaddr_r="proto_needs_reentrant"
6968 tmp_need_reentrant="yes"
6969
6970fi
6971rm -f conftest*
6972
6973
6974fi
6975rm -f conftest*
6976
6977 fi
6978
6979 fi
6980 if test "$tmp_need_reentrant" = "no"; then
6981
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983/* end confdefs.h. */
6984
6985
6986#define gethostbyname_r innocuous_gethostbyname_r
6987#ifdef __STDC__
6988# include <limits.h>
6989#else
6990# include <assert.h>
6991#endif
6992#undef gethostbyname_r
6993#ifdef __cplusplus
6994extern "C"
6995#endif
6996char gethostbyname_r ();
6997#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6998choke me
6999#endif
7000
7001int main (void)
7002{
7003return gethostbyname_r ();
7004 ;
7005 return 0;
7006}
7007
7008_ACEOF
7009if ac_fn_c_try_link "$LINENO"; then :
7010
7011 tmp_gethostbyname_r="yes"
7012
7013else
7014
7015 tmp_gethostbyname_r="no"
7016
7017fi
7018rm -f core conftest.err conftest.$ac_objext \
7019 conftest$ac_exeext conftest.$ac_ext
7020 if test "$tmp_gethostbyname_r" = "yes"; then
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022/* end confdefs.h. */
7023
7024#include <sys/types.h>
7025#include <netdb.h>
7026
7027_ACEOF
7028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7030
7031 tmp_gethostbyname_r="proto_declared"
7032
7033else
7034
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036/* end confdefs.h. */
7037
7038#define _REENTRANT
7039#include <sys/types.h>
7040#include <netdb.h>
7041
7042_ACEOF
7043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7044 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7045
7046 tmp_gethostbyname_r="proto_needs_reentrant"
7047 tmp_need_reentrant="yes"
7048
7049fi
7050rm -f conftest*
7051
7052
7053fi
7054rm -f conftest*
7055
7056 fi
7057
7058 fi
7059 if test "$tmp_need_reentrant" = "no"; then
7060
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062/* end confdefs.h. */
7063
7064
7065#define getprotobyname_r innocuous_getprotobyname_r
7066#ifdef __STDC__
7067# include <limits.h>
7068#else
7069# include <assert.h>
7070#endif
7071#undef getprotobyname_r
7072#ifdef __cplusplus
7073extern "C"
7074#endif
7075char getprotobyname_r ();
7076#if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7077choke me
7078#endif
7079
7080int main (void)
7081{
7082return getprotobyname_r ();
7083 ;
7084 return 0;
7085}
7086
7087_ACEOF
7088if ac_fn_c_try_link "$LINENO"; then :
7089
7090 tmp_getprotobyname_r="yes"
7091
7092else
7093
7094 tmp_getprotobyname_r="no"
7095
7096fi
7097rm -f core conftest.err conftest.$ac_objext \
7098 conftest$ac_exeext conftest.$ac_ext
7099 if test "$tmp_getprotobyname_r" = "yes"; then
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101/* end confdefs.h. */
7102
7103#include <sys/types.h>
7104#include <netdb.h>
7105
7106_ACEOF
7107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7108 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7109
7110 tmp_getprotobyname_r="proto_declared"
7111
7112else
7113
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h. */
7116
7117#define _REENTRANT
7118#include <sys/types.h>
7119#include <netdb.h>
7120
7121_ACEOF
7122if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7123 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7124
7125 tmp_getprotobyname_r="proto_needs_reentrant"
7126 tmp_need_reentrant="yes"
7127
7128fi
7129rm -f conftest*
7130
7131
7132fi
7133rm -f conftest*
7134
7135 fi
7136
7137 fi
7138 if test "$tmp_need_reentrant" = "no"; then
7139
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h. */
7142
7143
7144#define getservbyport_r innocuous_getservbyport_r
7145#ifdef __STDC__
7146# include <limits.h>
7147#else
7148# include <assert.h>
7149#endif
7150#undef getservbyport_r
7151#ifdef __cplusplus
7152extern "C"
7153#endif
7154char getservbyport_r ();
7155#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7156choke me
7157#endif
7158
7159int main (void)
7160{
7161return getservbyport_r ();
7162 ;
7163 return 0;
7164}
7165
7166_ACEOF
7167if ac_fn_c_try_link "$LINENO"; then :
7168
7169 tmp_getservbyport_r="yes"
7170
7171else
7172
7173 tmp_getservbyport_r="no"
7174
7175fi
7176rm -f core conftest.err conftest.$ac_objext \
7177 conftest$ac_exeext conftest.$ac_ext
7178 if test "$tmp_getservbyport_r" = "yes"; then
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180/* end confdefs.h. */
7181
7182#include <sys/types.h>
7183#include <netdb.h>
7184
7185_ACEOF
7186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7187 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7188
7189 tmp_getservbyport_r="proto_declared"
7190
7191else
7192
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194/* end confdefs.h. */
7195
7196#define _REENTRANT
7197#include <sys/types.h>
7198#include <netdb.h>
7199
7200_ACEOF
7201if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7202 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7203
7204 tmp_getservbyport_r="proto_needs_reentrant"
7205 tmp_need_reentrant="yes"
7206
7207fi
7208rm -f conftest*
7209
7210
7211fi
7212rm -f conftest*
7213
7214 fi
7215
7216 fi
7217
7218 fi
7219 if test "$tmp_need_reentrant" = "yes"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7221$as_echo "yes" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
7225 fi
7226 fi
7227 #
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7229$as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7230 if test "$tmp_reentrant_initially_defined" = "yes" ||
7231 test "$tmp_need_reentrant" = "yes"; then
7232
7233
7234$as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7235
7236cat >>confdefs.h <<_EOF
7237#ifndef _REENTRANT
7238# define _REENTRANT
7239#endif
7240_EOF
7241
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7243$as_echo "yes" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246$as_echo "no" >&6; }
7247 fi
7248 #
7249
7250
7251# Check whether --enable-largefile was given.
7252if test "${enable_largefile+set}" = set; then :
7253 enableval=$enable_largefile;
7254fi
7255
7256if test "$enable_largefile" != no; then
7257
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7259$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7260if ${ac_cv_sys_largefile_CC+:} false; then :
7261 $as_echo_n "(cached) " >&6
7262else
7263 ac_cv_sys_largefile_CC=no
7264 if test "$GCC" != yes; then
7265 ac_save_CC=$CC
7266 while :; do
7267 # IRIX 6.2 and later do not support large files by default,
7268 # so use the C compiler's -n32 option if that helps.
7269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270/* end confdefs.h. */
7271#include <sys/types.h>
7272 /* Check that off_t can represent 2**63 - 1 correctly.
7273 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7274 since some C++ compilers masquerading as C compilers
7275 incorrectly reject 9223372036854775807. */
7276#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7277 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7278 && LARGE_OFF_T % 2147483647 == 1)
7279 ? 1 : -1];
7280int main (void)
7281{
7282
7283 ;
7284 return 0;
7285}
7286_ACEOF
7287 if ac_fn_c_try_compile "$LINENO"; then :
7288 break
7289fi
7290rm -f core conftest.err conftest.$ac_objext
7291 CC="$CC -n32"
7292 if ac_fn_c_try_compile "$LINENO"; then :
7293 ac_cv_sys_largefile_CC=' -n32'; break
7294fi
7295rm -f core conftest.err conftest.$ac_objext
7296 break
7297 done
7298 CC=$ac_save_CC
7299 rm -f conftest.$ac_ext
7300 fi
7301fi
7302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7303$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7304 if test "$ac_cv_sys_largefile_CC" != no; then
7305 CC=$CC$ac_cv_sys_largefile_CC
7306 fi
7307
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7309$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7310if ${ac_cv_sys_file_offset_bits+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312else
7313 while :; do
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h. */
7316#include <sys/types.h>
7317 /* Check that off_t can represent 2**63 - 1 correctly.
7318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7319 since some C++ compilers masquerading as C compilers
7320 incorrectly reject 9223372036854775807. */
7321#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7323 && LARGE_OFF_T % 2147483647 == 1)
7324 ? 1 : -1];
7325int main (void)
7326{
7327
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332if ac_fn_c_try_compile "$LINENO"; then :
7333 ac_cv_sys_file_offset_bits=no; break
7334fi
7335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7337/* end confdefs.h. */
7338#define _FILE_OFFSET_BITS 64
7339#include <sys/types.h>
7340 /* Check that off_t can represent 2**63 - 1 correctly.
7341 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7342 since some C++ compilers masquerading as C compilers
7343 incorrectly reject 9223372036854775807. */
7344#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7345 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7346 && LARGE_OFF_T % 2147483647 == 1)
7347 ? 1 : -1];
7348int main (void)
7349{
7350
7351 ;
7352 return 0;
7353}
7354_ACEOF
7355if ac_fn_c_try_compile "$LINENO"; then :
7356 ac_cv_sys_file_offset_bits=64; break
7357fi
7358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 ac_cv_sys_file_offset_bits=unknown
7360 break
7361done
7362fi
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7364$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7365case $ac_cv_sys_file_offset_bits in #(
7366 no | unknown) ;;
7367 *)
7368cat >>confdefs.h <<_ACEOF
7369#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7370_ACEOF
7371;;
7372esac
7373rm -rf conftest*
7374 if test $ac_cv_sys_file_offset_bits = unknown; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7376$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7377if ${ac_cv_sys_large_files+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379else
7380 while :; do
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h. */
7383#include <sys/types.h>
7384 /* Check that off_t can represent 2**63 - 1 correctly.
7385 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7386 since some C++ compilers masquerading as C compilers
7387 incorrectly reject 9223372036854775807. */
7388#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7389 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7390 && LARGE_OFF_T % 2147483647 == 1)
7391 ? 1 : -1];
7392int main (void)
7393{
7394
7395 ;
7396 return 0;
7397}
7398_ACEOF
7399if ac_fn_c_try_compile "$LINENO"; then :
7400 ac_cv_sys_large_files=no; break
7401fi
7402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404/* end confdefs.h. */
7405#define _LARGE_FILES 1
7406#include <sys/types.h>
7407 /* Check that off_t can represent 2**63 - 1 correctly.
7408 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7409 since some C++ compilers masquerading as C compilers
7410 incorrectly reject 9223372036854775807. */
7411#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7412 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7413 && LARGE_OFF_T % 2147483647 == 1)
7414 ? 1 : -1];
7415int main (void)
7416{
7417
7418 ;
7419 return 0;
7420}
7421_ACEOF
7422if ac_fn_c_try_compile "$LINENO"; then :
7423 ac_cv_sys_large_files=1; break
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 ac_cv_sys_large_files=unknown
7427 break
7428done
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7431$as_echo "$ac_cv_sys_large_files" >&6; }
7432case $ac_cv_sys_large_files in #(
7433 no | unknown) ;;
7434 *)
7435cat >>confdefs.h <<_ACEOF
7436#define _LARGE_FILES $ac_cv_sys_large_files
7437_ACEOF
7438;;
7439esac
7440rm -rf conftest*
7441 fi
7442
7443
7444fi
7445
7446
7447case `pwd` in
7448 *\ * | *\ *)
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7450$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7451esac
7452
7453
7454
7455macro_version='2.4.6'
7456macro_revision='2.4.6'
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470ltmain=$ac_aux_dir/ltmain.sh
7471
7472# Backslashify metacharacters that are still active within
7473# double-quoted strings.
7474sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7475
7476# Same as above, but do not quote variable references.
7477double_quote_subst='s/\(["`\\]\)/\\\1/g'
7478
7479# Sed substitution to delay expansion of an escaped shell variable in a
7480# double_quote_subst'ed string.
7481delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7482
7483# Sed substitution to delay expansion of an escaped single quote.
7484delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7485
7486# Sed substitution to avoid accidental globbing in evaled expressions
7487no_glob_subst='s/\*/\\\*/g'
7488
7489ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7490ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7491ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7492
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7494$as_echo_n "checking how to print strings... " >&6; }
7495# Test print first, because it will be a builtin if present.
7496if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7497 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7498 ECHO='print -r --'
7499elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7500 ECHO='printf %s\n'
7501else
7502 # Use this function as a fallback that always works.
7503 func_fallback_echo ()
7504 {
7505 eval 'cat <<_LTECHO_EOF
7506$1
7507_LTECHO_EOF'
7508 }
7509 ECHO='func_fallback_echo'
7510fi
7511
7512# func_echo_all arg...
7513# Invoke $ECHO with all args, space-separated.
7514func_echo_all ()
7515{
7516 $ECHO ""
7517}
7518
7519case $ECHO in
7520 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7521$as_echo "printf" >&6; } ;;
7522 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7523$as_echo "print -r" >&6; } ;;
7524 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7525$as_echo "cat" >&6; } ;;
7526esac
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7542$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7543if ${ac_cv_path_SED+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545else
7546 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7547 for ac_i in 1 2 3 4 5 6 7; do
7548 ac_script="$ac_script$as_nl$ac_script"
7549 done
7550 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7551 { ac_script=; unset ac_script;}
7552 if test -z "$SED"; then
7553 ac_path_SED_found=false
7554 # Loop through the user's path and test for each of PROGNAME-LIST
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_prog in sed gsed; do
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7563 as_fn_executable_p "$ac_path_SED" || continue
7564# Check for GNU ac_path_SED and select it if it is found.
7565 # Check for GNU $ac_path_SED
7566case `"$ac_path_SED" --version 2>&1` in
7567*GNU*)
7568 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7569*)
7570 ac_count=0
7571 $as_echo_n 0123456789 >"conftest.in"
7572 while :
7573 do
7574 cat "conftest.in" "conftest.in" >"conftest.tmp"
7575 mv "conftest.tmp" "conftest.in"
7576 cp "conftest.in" "conftest.nl"
7577 $as_echo '' >> "conftest.nl"
7578 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7579 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7580 as_fn_arith $ac_count + 1 && ac_count=$as_val
7581 if test $ac_count -gt ${ac_path_SED_max-0}; then
7582 # Best one so far, save it but keep looking for a better one
7583 ac_cv_path_SED="$ac_path_SED"
7584 ac_path_SED_max=$ac_count
7585 fi
7586 # 10*(2^10) chars as input seems more than enough
7587 test $ac_count -gt 10 && break
7588 done
7589 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7590esac
7591
7592 $ac_path_SED_found && break 3
7593 done
7594 done
7595 done
7596IFS=$as_save_IFS
7597 if test -z "$ac_cv_path_SED"; then
7598 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7599 fi
7600else
7601 ac_cv_path_SED=$SED
7602fi
7603
7604fi
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7606$as_echo "$ac_cv_path_SED" >&6; }
7607 SED="$ac_cv_path_SED"
7608 rm -f conftest.sed
7609
7610test -z "$SED" && SED=sed
7611Xsed="$SED -e 1s/^X//"
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7624$as_echo_n "checking for fgrep... " >&6; }
7625if ${ac_cv_path_FGREP+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627else
7628 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7629 then ac_cv_path_FGREP="$GREP -F"
7630 else
7631 if test -z "$FGREP"; then
7632 ac_path_FGREP_found=false
7633 # Loop through the user's path and test for each of PROGNAME-LIST
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7636do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_prog in fgrep; do
7640 for ac_exec_ext in '' $ac_executable_extensions; do
7641 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7642 as_fn_executable_p "$ac_path_FGREP" || continue
7643# Check for GNU ac_path_FGREP and select it if it is found.
7644 # Check for GNU $ac_path_FGREP
7645case `"$ac_path_FGREP" --version 2>&1` in
7646*GNU*)
7647 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7648*)
7649 ac_count=0
7650 $as_echo_n 0123456789 >"conftest.in"
7651 while :
7652 do
7653 cat "conftest.in" "conftest.in" >"conftest.tmp"
7654 mv "conftest.tmp" "conftest.in"
7655 cp "conftest.in" "conftest.nl"
7656 $as_echo 'FGREP' >> "conftest.nl"
7657 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7659 as_fn_arith $ac_count + 1 && ac_count=$as_val
7660 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7661 # Best one so far, save it but keep looking for a better one
7662 ac_cv_path_FGREP="$ac_path_FGREP"
7663 ac_path_FGREP_max=$ac_count
7664 fi
7665 # 10*(2^10) chars as input seems more than enough
7666 test $ac_count -gt 10 && break
7667 done
7668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7669esac
7670
7671 $ac_path_FGREP_found && break 3
7672 done
7673 done
7674 done
7675IFS=$as_save_IFS
7676 if test -z "$ac_cv_path_FGREP"; then
7677 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7678 fi
7679else
7680 ac_cv_path_FGREP=$FGREP
7681fi
7682
7683 fi
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7686$as_echo "$ac_cv_path_FGREP" >&6; }
7687 FGREP="$ac_cv_path_FGREP"
7688
7689
7690test -z "$GREP" && GREP=grep
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710# Check whether --with-gnu-ld was given.
7711if test "${with_gnu_ld+set}" = set; then :
7712 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7713else
7714 with_gnu_ld=no
7715fi
7716
7717ac_prog=ld
7718if test yes = "$GCC"; then
7719 # Check if gcc -print-prog-name=ld gives a path.
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7721$as_echo_n "checking for ld used by $CC... " >&6; }
7722 case $host in
7723 *-*-mingw*)
7724 # gcc leaves a trailing carriage return, which upsets mingw
7725 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7726 *)
7727 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7728 esac
7729 case $ac_prog in
7730 # Accept absolute paths.
7731 [\\/]* | ?:[\\/]*)
7732 re_direlt='/[^/][^/]*/\.\./'
7733 # Canonicalize the pathname of ld
7734 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7735 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7736 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7737 done
7738 test -z "$LD" && LD=$ac_prog
7739 ;;
7740 "")
7741 # If it fails, then pretend we aren't using GCC.
7742 ac_prog=ld
7743 ;;
7744 *)
7745 # If it is relative, then search for the first ld in PATH.
7746 with_gnu_ld=unknown
7747 ;;
7748 esac
7749elif test yes = "$with_gnu_ld"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7751$as_echo_n "checking for GNU ld... " >&6; }
7752else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7754$as_echo_n "checking for non-GNU ld... " >&6; }
7755fi
7756if ${lt_cv_path_LD+:} false; then :
7757 $as_echo_n "(cached) " >&6
7758else
7759 if test -z "$LD"; then
7760 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7761 for ac_dir in $PATH; do
7762 IFS=$lt_save_ifs
7763 test -z "$ac_dir" && ac_dir=.
7764 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7765 lt_cv_path_LD=$ac_dir/$ac_prog
7766 # Check to see if the program is GNU ld. I'd rather use --version,
7767 # but apparently some variants of GNU ld only accept -v.
7768 # Break only if it was the GNU/non-GNU ld that we prefer.
7769 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7770 *GNU* | *'with BFD'*)
7771 test no != "$with_gnu_ld" && break
7772 ;;
7773 *)
7774 test yes != "$with_gnu_ld" && break
7775 ;;
7776 esac
7777 fi
7778 done
7779 IFS=$lt_save_ifs
7780else
7781 lt_cv_path_LD=$LD # Let the user override the test with a path.
7782fi
7783fi
7784
7785LD=$lt_cv_path_LD
7786if test -n "$LD"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7788$as_echo "$LD" >&6; }
7789else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792fi
7793test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7795$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7796if ${lt_cv_prog_gnu_ld+:} false; then :
7797 $as_echo_n "(cached) " >&6
7798else
7799 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7800case `$LD -v 2>&1 </dev/null` in
7801*GNU* | *'with BFD'*)
7802 lt_cv_prog_gnu_ld=yes
7803 ;;
7804*)
7805 lt_cv_prog_gnu_ld=no
7806 ;;
7807esac
7808fi
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7810$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7811with_gnu_ld=$lt_cv_prog_gnu_ld
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7822$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7823if ${lt_cv_path_NM+:} false; then :
7824 $as_echo_n "(cached) " >&6
7825else
7826 if test -n "$NM"; then
7827 # Let the user override the test.
7828 lt_cv_path_NM=$NM
7829else
7830 lt_nm_to_check=${ac_tool_prefix}nm
7831 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7832 lt_nm_to_check="$lt_nm_to_check nm"
7833 fi
7834 for lt_tmp_nm in $lt_nm_to_check; do
7835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7836 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7837 IFS=$lt_save_ifs
7838 test -z "$ac_dir" && ac_dir=.
7839 tmp_nm=$ac_dir/$lt_tmp_nm
7840 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7841 # Check to see if the nm accepts a BSD-compat flag.
7842 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7843 # nm: unknown option "B" ignored
7844 # Tru64's nm complains that /dev/null is an invalid object file
7845 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7846 case $build_os in
7847 mingw*) lt_bad_file=conftest.nm/nofile ;;
7848 *) lt_bad_file=/dev/null ;;
7849 esac
7850 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7851 *$lt_bad_file* | *'Invalid file or object type'*)
7852 lt_cv_path_NM="$tmp_nm -B"
7853 break 2
7854 ;;
7855 *)
7856 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7857 */dev/null*)
7858 lt_cv_path_NM="$tmp_nm -p"
7859 break 2
7860 ;;
7861 *)
7862 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7863 continue # so that we can try to find one that supports BSD flags
7864 ;;
7865 esac
7866 ;;
7867 esac
7868 fi
7869 done
7870 IFS=$lt_save_ifs
7871 done
7872 : ${lt_cv_path_NM=no}
7873fi
7874fi
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7876$as_echo "$lt_cv_path_NM" >&6; }
7877if test no != "$lt_cv_path_NM"; then
7878 NM=$lt_cv_path_NM
7879else
7880 # Didn't find any BSD compatible name lister, look for dumpbin.
7881 if test -n "$DUMPBIN"; then :
7882 # Let the user override the test.
7883 else
7884 if test -n "$ac_tool_prefix"; then
7885 for ac_prog in dumpbin "link -dump"
7886 do
7887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7888set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7890$as_echo_n "checking for $ac_word... " >&6; }
7891if ${ac_cv_prog_DUMPBIN+:} false; then :
7892 $as_echo_n "(cached) " >&6
7893else
7894 if test -n "$DUMPBIN"; then
7895 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7896else
7897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7898for as_dir in $PATH
7899do
7900 IFS=$as_save_IFS
7901 test -z "$as_dir" && as_dir=.
7902 for ac_exec_ext in '' $ac_executable_extensions; do
7903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7904 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7906 break 2
7907 fi
7908done
7909 done
7910IFS=$as_save_IFS
7911
7912fi
7913fi
7914DUMPBIN=$ac_cv_prog_DUMPBIN
7915if test -n "$DUMPBIN"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7917$as_echo "$DUMPBIN" >&6; }
7918else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920$as_echo "no" >&6; }
7921fi
7922
7923
7924 test -n "$DUMPBIN" && break
7925 done
7926fi
7927if test -z "$DUMPBIN"; then
7928 ac_ct_DUMPBIN=$DUMPBIN
7929 for ac_prog in dumpbin "link -dump"
7930do
7931 # Extract the first word of "$ac_prog", so it can be a program name with args.
7932set dummy $ac_prog; ac_word=$2
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934$as_echo_n "checking for $ac_word... " >&6; }
7935if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937else
7938 if test -n "$ac_ct_DUMPBIN"; then
7939 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944 IFS=$as_save_IFS
7945 test -z "$as_dir" && as_dir=.
7946 for ac_exec_ext in '' $ac_executable_extensions; do
7947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950 break 2
7951 fi
7952done
7953 done
7954IFS=$as_save_IFS
7955
7956fi
7957fi
7958ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7959if test -n "$ac_ct_DUMPBIN"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7961$as_echo "$ac_ct_DUMPBIN" >&6; }
7962else
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7964$as_echo "no" >&6; }
7965fi
7966
7967
7968 test -n "$ac_ct_DUMPBIN" && break
7969done
7970
7971 if test "x$ac_ct_DUMPBIN" = x; then
7972 DUMPBIN=":"
7973 else
7974 case $cross_compiling:$ac_tool_warned in
7975yes:)
7976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7978ac_tool_warned=yes ;;
7979esac
7980 DUMPBIN=$ac_ct_DUMPBIN
7981 fi
7982fi
7983
7984 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7985 *COFF*)
7986 DUMPBIN="$DUMPBIN -symbols -headers"
7987 ;;
7988 *)
7989 DUMPBIN=:
7990 ;;
7991 esac
7992 fi
7993
7994 if test : != "$DUMPBIN"; then
7995 NM=$DUMPBIN
7996 fi
7997fi
7998test -z "$NM" && NM=nm
7999
8000
8001
8002
8003
8004
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8006$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8007if ${lt_cv_nm_interface+:} false; then :
8008 $as_echo_n "(cached) " >&6
8009else
8010 lt_cv_nm_interface="BSD nm"
8011 echo "int some_variable = 0;" > conftest.$ac_ext
8012 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8013 (eval "$ac_compile" 2>conftest.err)
8014 cat conftest.err >&5
8015 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8016 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8017 cat conftest.err >&5
8018 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8019 cat conftest.out >&5
8020 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8021 lt_cv_nm_interface="MS dumpbin"
8022 fi
8023 rm -f conftest*
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8026$as_echo "$lt_cv_nm_interface" >&6; }
8027
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8029$as_echo_n "checking whether ln -s works... " >&6; }
8030LN_S=$as_ln_s
8031if test "$LN_S" = "ln -s"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8033$as_echo "yes" >&6; }
8034else
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8036$as_echo "no, using $LN_S" >&6; }
8037fi
8038
8039# find the maximum length of command line arguments
8040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8041$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8042if ${lt_cv_sys_max_cmd_len+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044else
8045 i=0
8046 teststring=ABCD
8047
8048 case $build_os in
8049 msdosdjgpp*)
8050 # On DJGPP, this test can blow up pretty badly due to problems in libc
8051 # (any single argument exceeding 2000 bytes causes a buffer overrun
8052 # during glob expansion). Even if it were fixed, the result of this
8053 # check would be larger than it should be.
8054 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8055 ;;
8056
8057 gnu*)
8058 # Under GNU Hurd, this test is not required because there is
8059 # no limit to the length of command line arguments.
8060 # Libtool will interpret -1 as no limit whatsoever
8061 lt_cv_sys_max_cmd_len=-1;
8062 ;;
8063
8064 cygwin* | mingw* | cegcc*)
8065 # On Win9x/ME, this test blows up -- it succeeds, but takes
8066 # about 5 minutes as the teststring grows exponentially.
8067 # Worse, since 9x/ME are not pre-emptively multitasking,
8068 # you end up with a "frozen" computer, even though with patience
8069 # the test eventually succeeds (with a max line length of 256k).
8070 # Instead, let's just punt: use the minimum linelength reported by
8071 # all of the supported platforms: 8192 (on NT/2K/XP).
8072 lt_cv_sys_max_cmd_len=8192;
8073 ;;
8074
8075 mint*)
8076 # On MiNT this can take a long time and run out of memory.
8077 lt_cv_sys_max_cmd_len=8192;
8078 ;;
8079
8080 amigaos*)
8081 # On AmigaOS with pdksh, this test takes hours, literally.
8082 # So we just punt and use a minimum line length of 8192.
8083 lt_cv_sys_max_cmd_len=8192;
8084 ;;
8085
8086 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8087 # This has been around since 386BSD, at least. Likely further.
8088 if test -x /sbin/sysctl; then
8089 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8090 elif test -x /usr/sbin/sysctl; then
8091 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8092 else
8093 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8094 fi
8095 # And add a safety zone
8096 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8097 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8098 ;;
8099
8100 interix*)
8101 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8102 lt_cv_sys_max_cmd_len=196608
8103 ;;
8104
8105 os2*)
8106 # The test takes a long time on OS/2.
8107 lt_cv_sys_max_cmd_len=8192
8108 ;;
8109
8110 osf*)
8111 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8112 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8113 # nice to cause kernel panics so lets avoid the loop below.
8114 # First set a reasonable default.
8115 lt_cv_sys_max_cmd_len=16384
8116 #
8117 if test -x /sbin/sysconfig; then
8118 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8119 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8120 esac
8121 fi
8122 ;;
8123 sco3.2v5*)
8124 lt_cv_sys_max_cmd_len=102400
8125 ;;
8126 sysv5* | sco5v6* | sysv4.2uw2*)
8127 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8128 if test -n "$kargmax"; then
8129 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8130 else
8131 lt_cv_sys_max_cmd_len=32768
8132 fi
8133 ;;
8134 *)
8135 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8136 if test -n "$lt_cv_sys_max_cmd_len" && \
8137 test undefined != "$lt_cv_sys_max_cmd_len"; then
8138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8140 else
8141 # Make teststring a little bigger before we do anything with it.
8142 # a 1K string should be a reasonable start.
8143 for i in 1 2 3 4 5 6 7 8; do
8144 teststring=$teststring$teststring
8145 done
8146 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8147 # If test is not a shell built-in, we'll probably end up computing a
8148 # maximum length that is only half of the actual maximum length, but
8149 # we can't tell.
8150 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8151 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8152 test 17 != "$i" # 1/2 MB should be enough
8153 do
8154 i=`expr $i + 1`
8155 teststring=$teststring$teststring
8156 done
8157 # Only check the string length outside the loop.
8158 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8159 teststring=
8160 # Add a significant safety factor because C++ compilers can tack on
8161 # massive amounts of additional arguments before passing them to the
8162 # linker. It appears as though 1/2 is a usable value.
8163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8164 fi
8165 ;;
8166 esac
8167
8168fi
8169
8170if test -n "$lt_cv_sys_max_cmd_len"; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8172$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8173else
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8175$as_echo "none" >&6; }
8176fi
8177max_cmd_len=$lt_cv_sys_max_cmd_len
8178
8179
8180
8181
8182
8183
8184: ${CP="cp -f"}
8185: ${MV="mv -f"}
8186: ${RM="rm -f"}
8187
8188if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8189 lt_unset=unset
8190else
8191 lt_unset=false
8192fi
8193
8194
8195
8196
8197
8198# test EBCDIC or ASCII
8199case `echo X|tr X '\101'` in
8200 A) # ASCII based system
8201 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8202 lt_SP2NL='tr \040 \012'
8203 lt_NL2SP='tr \015\012 \040\040'
8204 ;;
8205 *) # EBCDIC based system
8206 lt_SP2NL='tr \100 \n'
8207 lt_NL2SP='tr \r\n \100\100'
8208 ;;
8209esac
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8220$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8221if ${lt_cv_to_host_file_cmd+:} false; then :
8222 $as_echo_n "(cached) " >&6
8223else
8224 case $host in
8225 *-*-mingw* )
8226 case $build in
8227 *-*-mingw* ) # actually msys
8228 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8229 ;;
8230 *-*-cygwin* )
8231 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8232 ;;
8233 * ) # otherwise, assume *nix
8234 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8235 ;;
8236 esac
8237 ;;
8238 *-*-cygwin* )
8239 case $build in
8240 *-*-mingw* ) # actually msys
8241 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8242 ;;
8243 *-*-cygwin* )
8244 lt_cv_to_host_file_cmd=func_convert_file_noop
8245 ;;
8246 * ) # otherwise, assume *nix
8247 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8248 ;;
8249 esac
8250 ;;
8251 * ) # unhandled hosts (and "normal" native builds)
8252 lt_cv_to_host_file_cmd=func_convert_file_noop
8253 ;;
8254esac
8255
8256fi
8257
8258to_host_file_cmd=$lt_cv_to_host_file_cmd
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8260$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8261
8262
8263
8264
8265
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8267$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8268if ${lt_cv_to_tool_file_cmd+:} false; then :
8269 $as_echo_n "(cached) " >&6
8270else
8271 #assume ordinary cross tools, or native build.
8272lt_cv_to_tool_file_cmd=func_convert_file_noop
8273case $host in
8274 *-*-mingw* )
8275 case $build in
8276 *-*-mingw* ) # actually msys
8277 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8278 ;;
8279 esac
8280 ;;
8281esac
8282
8283fi
8284
8285to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8287$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8288
8289
8290
8291
8292
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8294$as_echo_n "checking for $LD option to reload object files... " >&6; }
8295if ${lt_cv_ld_reload_flag+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297else
8298 lt_cv_ld_reload_flag='-r'
8299fi
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8301$as_echo "$lt_cv_ld_reload_flag" >&6; }
8302reload_flag=$lt_cv_ld_reload_flag
8303case $reload_flag in
8304"" | " "*) ;;
8305*) reload_flag=" $reload_flag" ;;
8306esac
8307reload_cmds='$LD$reload_flag -o $output$reload_objs'
8308case $host_os in
8309 cygwin* | mingw* | pw32* | cegcc*)
8310 if test yes != "$GCC"; then
8311 reload_cmds=false
8312 fi
8313 ;;
8314 darwin*)
8315 if test yes = "$GCC"; then
8316 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8317 else
8318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8319 fi
8320 ;;
8321esac
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331if test -n "$ac_tool_prefix"; then
8332 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8333set dummy ${ac_tool_prefix}objdump; ac_word=$2
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335$as_echo_n "checking for $ac_word... " >&6; }
8336if ${ac_cv_prog_OBJDUMP+:} false; then :
8337 $as_echo_n "(cached) " >&6
8338else
8339 if test -n "$OBJDUMP"; then
8340 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8341else
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8349 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8352 fi
8353done
8354 done
8355IFS=$as_save_IFS
8356
8357fi
8358fi
8359OBJDUMP=$ac_cv_prog_OBJDUMP
8360if test -n "$OBJDUMP"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8362$as_echo "$OBJDUMP" >&6; }
8363else
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365$as_echo "no" >&6; }
8366fi
8367
8368
8369fi
8370if test -z "$ac_cv_prog_OBJDUMP"; then
8371 ac_ct_OBJDUMP=$OBJDUMP
8372 # Extract the first word of "objdump", so it can be a program name with args.
8373set dummy objdump; ac_word=$2
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375$as_echo_n "checking for $ac_word... " >&6; }
8376if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8377 $as_echo_n "(cached) " >&6
8378else
8379 if test -n "$ac_ct_OBJDUMP"; then
8380 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8381else
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8389 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8391 break 2
8392 fi
8393done
8394 done
8395IFS=$as_save_IFS
8396
8397fi
8398fi
8399ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8400if test -n "$ac_ct_OBJDUMP"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8402$as_echo "$ac_ct_OBJDUMP" >&6; }
8403else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405$as_echo "no" >&6; }
8406fi
8407
8408 if test "x$ac_ct_OBJDUMP" = x; then
8409 OBJDUMP="false"
8410 else
8411 case $cross_compiling:$ac_tool_warned in
8412yes:)
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8415ac_tool_warned=yes ;;
8416esac
8417 OBJDUMP=$ac_ct_OBJDUMP
8418 fi
8419else
8420 OBJDUMP="$ac_cv_prog_OBJDUMP"
8421fi
8422
8423test -z "$OBJDUMP" && OBJDUMP=objdump
8424
8425
8426
8427
8428
8429
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8431$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8432if ${lt_cv_deplibs_check_method+:} false; then :
8433 $as_echo_n "(cached) " >&6
8434else
8435 lt_cv_file_magic_cmd='$MAGIC_CMD'
8436lt_cv_file_magic_test_file=
8437lt_cv_deplibs_check_method='unknown'
8438# Need to set the preceding variable on all platforms that support
8439# interlibrary dependencies.
8440# 'none' -- dependencies not supported.
8441# 'unknown' -- same as none, but documents that we really don't know.
8442# 'pass_all' -- all dependencies passed with no checks.
8443# 'test_compile' -- check by making test program.
8444# 'file_magic [[regex]]' -- check by looking for files in library path
8445# that responds to the $file_magic_cmd with a given extended regex.
8446# If you have 'file' or equivalent on your system and you're not sure
8447# whether 'pass_all' will *always* work, you probably want this one.
8448
8449case $host_os in
8450aix[4-9]*)
8451 lt_cv_deplibs_check_method=pass_all
8452 ;;
8453
8454beos*)
8455 lt_cv_deplibs_check_method=pass_all
8456 ;;
8457
8458bsdi[45]*)
8459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8460 lt_cv_file_magic_cmd='/usr/bin/file -L'
8461 lt_cv_file_magic_test_file=/shlib/libc.so
8462 ;;
8463
8464cygwin*)
8465 # func_win32_libid is a shell function defined in ltmain.sh
8466 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8467 lt_cv_file_magic_cmd='func_win32_libid'
8468 ;;
8469
8470mingw* | pw32*)
8471 # Base MSYS/MinGW do not provide the 'file' command needed by
8472 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8473 # unless we find 'file', for example because we are cross-compiling.
8474 if ( file / ) >/dev/null 2>&1; then
8475 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8476 lt_cv_file_magic_cmd='func_win32_libid'
8477 else
8478 # Keep this pattern in sync with the one in func_win32_libid.
8479 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8480 lt_cv_file_magic_cmd='$OBJDUMP -f'
8481 fi
8482 ;;
8483
8484cegcc*)
8485 # use the weaker test based on 'objdump'. See mingw*.
8486 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8487 lt_cv_file_magic_cmd='$OBJDUMP -f'
8488 ;;
8489
8490darwin* | rhapsody*)
8491 lt_cv_deplibs_check_method=pass_all
8492 ;;
8493
8494freebsd* | dragonfly*)
8495 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8496 case $host_cpu in
8497 i*86 )
8498 # Not sure whether the presence of OpenBSD here was a mistake.
8499 # Let's accept both of them until this is cleared up.
8500 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8501 lt_cv_file_magic_cmd=/usr/bin/file
8502 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8503 ;;
8504 esac
8505 else
8506 lt_cv_deplibs_check_method=pass_all
8507 fi
8508 ;;
8509
8510haiku*)
8511 lt_cv_deplibs_check_method=pass_all
8512 ;;
8513
8514hpux10.20* | hpux11*)
8515 lt_cv_file_magic_cmd=/usr/bin/file
8516 case $host_cpu in
8517 ia64*)
8518 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8519 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8520 ;;
8521 hppa*64*)
8522 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]'
8523 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8524 ;;
8525 *)
8526 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8527 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8528 ;;
8529 esac
8530 ;;
8531
8532interix[3-9]*)
8533 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8535 ;;
8536
8537irix5* | irix6* | nonstopux*)
8538 case $LD in
8539 *-32|*"-32 ") libmagic=32-bit;;
8540 *-n32|*"-n32 ") libmagic=N32;;
8541 *-64|*"-64 ") libmagic=64-bit;;
8542 *) libmagic=never-match;;
8543 esac
8544 lt_cv_deplibs_check_method=pass_all
8545 ;;
8546
8547# This must be glibc/ELF.
8548linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8549 lt_cv_deplibs_check_method=pass_all
8550 ;;
8551
8552netbsd* | netbsdelf*-gnu)
8553 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8554 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8555 else
8556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8557 fi
8558 ;;
8559
8560newos6*)
8561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8562 lt_cv_file_magic_cmd=/usr/bin/file
8563 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8564 ;;
8565
8566*nto* | *qnx*)
8567 lt_cv_deplibs_check_method=pass_all
8568 ;;
8569
8570openbsd* | bitrig*)
8571 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8573 else
8574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8575 fi
8576 ;;
8577
8578osf3* | osf4* | osf5*)
8579 lt_cv_deplibs_check_method=pass_all
8580 ;;
8581
8582rdos*)
8583 lt_cv_deplibs_check_method=pass_all
8584 ;;
8585
8586solaris*)
8587 lt_cv_deplibs_check_method=pass_all
8588 ;;
8589
8590sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8591 lt_cv_deplibs_check_method=pass_all
8592 ;;
8593
8594sysv4 | sysv4.3*)
8595 case $host_vendor in
8596 motorola)
8597 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]'
8598 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8599 ;;
8600 ncr)
8601 lt_cv_deplibs_check_method=pass_all
8602 ;;
8603 sequent)
8604 lt_cv_file_magic_cmd='/bin/file'
8605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8606 ;;
8607 sni)
8608 lt_cv_file_magic_cmd='/bin/file'
8609 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8610 lt_cv_file_magic_test_file=/lib/libc.so
8611 ;;
8612 siemens)
8613 lt_cv_deplibs_check_method=pass_all
8614 ;;
8615 pc)
8616 lt_cv_deplibs_check_method=pass_all
8617 ;;
8618 esac
8619 ;;
8620
8621tpf*)
8622 lt_cv_deplibs_check_method=pass_all
8623 ;;
8624os2*)
8625 lt_cv_deplibs_check_method=pass_all
8626 ;;
8627esac
8628
8629fi
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8631$as_echo "$lt_cv_deplibs_check_method" >&6; }
8632
8633file_magic_glob=
8634want_nocaseglob=no
8635if test "$build" = "$host"; then
8636 case $host_os in
8637 mingw* | pw32*)
8638 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8639 want_nocaseglob=yes
8640 else
8641 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8642 fi
8643 ;;
8644 esac
8645fi
8646
8647file_magic_cmd=$lt_cv_file_magic_cmd
8648deplibs_check_method=$lt_cv_deplibs_check_method
8649test -z "$deplibs_check_method" && deplibs_check_method=unknown
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672if test -n "$ac_tool_prefix"; then
8673 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8674set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676$as_echo_n "checking for $ac_word... " >&6; }
8677if ${ac_cv_prog_DLLTOOL+:} false; then :
8678 $as_echo_n "(cached) " >&6
8679else
8680 if test -n "$DLLTOOL"; then
8681 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8682else
8683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8684for as_dir in $PATH
8685do
8686 IFS=$as_save_IFS
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8690 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8692 break 2
8693 fi
8694done
8695 done
8696IFS=$as_save_IFS
8697
8698fi
8699fi
8700DLLTOOL=$ac_cv_prog_DLLTOOL
8701if test -n "$DLLTOOL"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8703$as_echo "$DLLTOOL" >&6; }
8704else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706$as_echo "no" >&6; }
8707fi
8708
8709
8710fi
8711if test -z "$ac_cv_prog_DLLTOOL"; then
8712 ac_ct_DLLTOOL=$DLLTOOL
8713 # Extract the first word of "dlltool", so it can be a program name with args.
8714set dummy dlltool; ac_word=$2
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716$as_echo_n "checking for $ac_word... " >&6; }
8717if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8718 $as_echo_n "(cached) " >&6
8719else
8720 if test -n "$ac_ct_DLLTOOL"; then
8721 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8722else
8723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724for as_dir in $PATH
8725do
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 break 2
8733 fi
8734done
8735 done
8736IFS=$as_save_IFS
8737
8738fi
8739fi
8740ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8741if test -n "$ac_ct_DLLTOOL"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8743$as_echo "$ac_ct_DLLTOOL" >&6; }
8744else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746$as_echo "no" >&6; }
8747fi
8748
8749 if test "x$ac_ct_DLLTOOL" = x; then
8750 DLLTOOL="false"
8751 else
8752 case $cross_compiling:$ac_tool_warned in
8753yes:)
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756ac_tool_warned=yes ;;
8757esac
8758 DLLTOOL=$ac_ct_DLLTOOL
8759 fi
8760else
8761 DLLTOOL="$ac_cv_prog_DLLTOOL"
8762fi
8763
8764test -z "$DLLTOOL" && DLLTOOL=dlltool
8765
8766
8767
8768
8769
8770
8771
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8773$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8774if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776else
8777 lt_cv_sharedlib_from_linklib_cmd='unknown'
8778
8779case $host_os in
8780cygwin* | mingw* | pw32* | cegcc*)
8781 # two different shell functions defined in ltmain.sh;
8782 # decide which one to use based on capabilities of $DLLTOOL
8783 case `$DLLTOOL --help 2>&1` in
8784 *--identify-strict*)
8785 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8786 ;;
8787 *)
8788 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8789 ;;
8790 esac
8791 ;;
8792*)
8793 # fallback: assume linklib IS sharedlib
8794 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8795 ;;
8796esac
8797
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8800$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8801sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8802test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8803
8804
8805
8806
8807
8808
8809
8810if test -n "$ac_tool_prefix"; then
8811 for ac_prog in ar
8812 do
8813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816$as_echo_n "checking for $ac_word... " >&6; }
8817if ${ac_cv_prog_AR+:} false; then :
8818 $as_echo_n "(cached) " >&6
8819else
8820 if test -n "$AR"; then
8821 ac_cv_prog_AR="$AR" # Let the user override the test.
8822else
8823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824for as_dir in $PATH
8825do
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8833 fi
8834done
8835 done
8836IFS=$as_save_IFS
8837
8838fi
8839fi
8840AR=$ac_cv_prog_AR
8841if test -n "$AR"; then
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8843$as_echo "$AR" >&6; }
8844else
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846$as_echo "no" >&6; }
8847fi
8848
8849
8850 test -n "$AR" && break
8851 done
8852fi
8853if test -z "$AR"; then
8854 ac_ct_AR=$AR
8855 for ac_prog in ar
8856do
8857 # Extract the first word of "$ac_prog", so it can be a program name with args.
8858set dummy $ac_prog; ac_word=$2
8859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8860$as_echo_n "checking for $ac_word... " >&6; }
8861if ${ac_cv_prog_ac_ct_AR+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863else
8864 if test -n "$ac_ct_AR"; then
8865 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8866else
8867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868for as_dir in $PATH
8869do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_ac_ct_AR="$ac_prog"
8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878done
8879 done
8880IFS=$as_save_IFS
8881
8882fi
8883fi
8884ac_ct_AR=$ac_cv_prog_ac_ct_AR
8885if test -n "$ac_ct_AR"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8887$as_echo "$ac_ct_AR" >&6; }
8888else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890$as_echo "no" >&6; }
8891fi
8892
8893
8894 test -n "$ac_ct_AR" && break
8895done
8896
8897 if test "x$ac_ct_AR" = x; then
8898 AR="false"
8899 else
8900 case $cross_compiling:$ac_tool_warned in
8901yes:)
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8904ac_tool_warned=yes ;;
8905esac
8906 AR=$ac_ct_AR
8907 fi
8908fi
8909
8910: ${AR=ar}
8911: ${AR_FLAGS=cru}
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8924$as_echo_n "checking for archiver @FILE support... " >&6; }
8925if ${lt_cv_ar_at_file+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927else
8928 lt_cv_ar_at_file=no
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930/* end confdefs.h. */
8931
8932int main (void)
8933{
8934
8935 ;
8936 return 0;
8937}
8938_ACEOF
8939if ac_fn_c_try_compile "$LINENO"; then :
8940 echo conftest.$ac_objext > conftest.lst
8941 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8943 (eval $lt_ar_try) 2>&5
8944 ac_status=$?
8945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946 test $ac_status = 0; }
8947 if test 0 -eq "$ac_status"; then
8948 # Ensure the archiver fails upon bogus file names.
8949 rm -f conftest.$ac_objext libconftest.a
8950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8951 (eval $lt_ar_try) 2>&5
8952 ac_status=$?
8953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8954 test $ac_status = 0; }
8955 if test 0 -ne "$ac_status"; then
8956 lt_cv_ar_at_file=@
8957 fi
8958 fi
8959 rm -f conftest.* libconftest.a
8960
8961fi
8962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963
8964fi
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8966$as_echo "$lt_cv_ar_at_file" >&6; }
8967
8968if test no = "$lt_cv_ar_at_file"; then
8969 archiver_list_spec=
8970else
8971 archiver_list_spec=$lt_cv_ar_at_file
8972fi
8973
8974
8975
8976
8977
8978
8979
8980if test -n "$ac_tool_prefix"; then
8981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8982set dummy ${ac_tool_prefix}strip; ac_word=$2
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
8985if ${ac_cv_prog_STRIP+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987else
8988 if test -n "$STRIP"; then
8989 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8990else
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8998 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9000 break 2
9001 fi
9002done
9003 done
9004IFS=$as_save_IFS
9005
9006fi
9007fi
9008STRIP=$ac_cv_prog_STRIP
9009if test -n "$STRIP"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9011$as_echo "$STRIP" >&6; }
9012else
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
9015fi
9016
9017
9018fi
9019if test -z "$ac_cv_prog_STRIP"; then
9020 ac_ct_STRIP=$STRIP
9021 # Extract the first word of "strip", so it can be a program name with args.
9022set dummy strip; ac_word=$2
9023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9024$as_echo_n "checking for $ac_word... " >&6; }
9025if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9026 $as_echo_n "(cached) " >&6
9027else
9028 if test -n "$ac_ct_STRIP"; then
9029 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9030else
9031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9032for as_dir in $PATH
9033do
9034 IFS=$as_save_IFS
9035 test -z "$as_dir" && as_dir=.
9036 for ac_exec_ext in '' $ac_executable_extensions; do
9037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9038 ac_cv_prog_ac_ct_STRIP="strip"
9039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9040 break 2
9041 fi
9042done
9043 done
9044IFS=$as_save_IFS
9045
9046fi
9047fi
9048ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9049if test -n "$ac_ct_STRIP"; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9051$as_echo "$ac_ct_STRIP" >&6; }
9052else
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054$as_echo "no" >&6; }
9055fi
9056
9057 if test "x$ac_ct_STRIP" = x; then
9058 STRIP=":"
9059 else
9060 case $cross_compiling:$ac_tool_warned in
9061yes:)
9062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9064ac_tool_warned=yes ;;
9065esac
9066 STRIP=$ac_ct_STRIP
9067 fi
9068else
9069 STRIP="$ac_cv_prog_STRIP"
9070fi
9071
9072test -z "$STRIP" && STRIP=:
9073
9074
9075
9076
9077
9078
9079if test -n "$ac_tool_prefix"; then
9080 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9081set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083$as_echo_n "checking for $ac_word... " >&6; }
9084if ${ac_cv_prog_RANLIB+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086else
9087 if test -n "$RANLIB"; then
9088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9089else
9090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9097 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9100 fi
9101done
9102 done
9103IFS=$as_save_IFS
9104
9105fi
9106fi
9107RANLIB=$ac_cv_prog_RANLIB
9108if test -n "$RANLIB"; then
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9110$as_echo "$RANLIB" >&6; }
9111else
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
9114fi
9115
9116
9117fi
9118if test -z "$ac_cv_prog_RANLIB"; then
9119 ac_ct_RANLIB=$RANLIB
9120 # Extract the first word of "ranlib", so it can be a program name with args.
9121set dummy ranlib; ac_word=$2
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123$as_echo_n "checking for $ac_word... " >&6; }
9124if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9125 $as_echo_n "(cached) " >&6
9126else
9127 if test -n "$ac_ct_RANLIB"; then
9128 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9129else
9130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131for as_dir in $PATH
9132do
9133 IFS=$as_save_IFS
9134 test -z "$as_dir" && as_dir=.
9135 for ac_exec_ext in '' $ac_executable_extensions; do
9136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137 ac_cv_prog_ac_ct_RANLIB="ranlib"
9138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139 break 2
9140 fi
9141done
9142 done
9143IFS=$as_save_IFS
9144
9145fi
9146fi
9147ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9148if test -n "$ac_ct_RANLIB"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9150$as_echo "$ac_ct_RANLIB" >&6; }
9151else
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153$as_echo "no" >&6; }
9154fi
9155
9156 if test "x$ac_ct_RANLIB" = x; then
9157 RANLIB=":"
9158 else
9159 case $cross_compiling:$ac_tool_warned in
9160yes:)
9161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9163ac_tool_warned=yes ;;
9164esac
9165 RANLIB=$ac_ct_RANLIB
9166 fi
9167else
9168 RANLIB="$ac_cv_prog_RANLIB"
9169fi
9170
9171test -z "$RANLIB" && RANLIB=:
9172
9173
9174
9175
9176
9177
9178# Determine commands to create old-style static archives.
9179old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9180old_postinstall_cmds='chmod 644 $oldlib'
9181old_postuninstall_cmds=
9182
9183if test -n "$RANLIB"; then
9184 case $host_os in
9185 bitrig* | openbsd*)
9186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9187 ;;
9188 *)
9189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9190 ;;
9191 esac
9192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9193fi
9194
9195case $host_os in
9196 darwin*)
9197 lock_old_archive_extraction=yes ;;
9198 *)
9199 lock_old_archive_extraction=no ;;
9200esac
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240# If no C compiler was specified, use CC.
9241LTCC=${LTCC-"$CC"}
9242
9243# If no C compiler flags were specified, use CFLAGS.
9244LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9245
9246# Allow CC to be a program name with arguments.
9247compiler=$CC
9248
9249
9250# Check for command to grab the raw symbol name followed by C symbol from nm.
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9252$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9253if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9254 $as_echo_n "(cached) " >&6
9255else
9256
9257# These are sane defaults that work on at least a few old systems.
9258# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9259
9260# Character class describing NM global symbol codes.
9261symcode='[BCDEGRST]'
9262
9263# Regexp to match symbols that can be accessed directly from C.
9264sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9265
9266# Define system-specific variables.
9267case $host_os in
9268aix*)
9269 symcode='[BCDT]'
9270 ;;
9271cygwin* | mingw* | pw32* | cegcc*)
9272 symcode='[ABCDGISTW]'
9273 ;;
9274hpux*)
9275 if test ia64 = "$host_cpu"; then
9276 symcode='[ABCDEGRST]'
9277 fi
9278 ;;
9279irix* | nonstopux*)
9280 symcode='[BCDEGRST]'
9281 ;;
9282osf*)
9283 symcode='[BCDEGQRST]'
9284 ;;
9285solaris*)
9286 symcode='[BDRT]'
9287 ;;
9288sco3.2v5*)
9289 symcode='[DT]'
9290 ;;
9291sysv4.2uw2*)
9292 symcode='[DT]'
9293 ;;
9294sysv5* | sco5v6* | unixware* | OpenUNIX*)
9295 symcode='[ABDT]'
9296 ;;
9297sysv4)
9298 symcode='[DFNSTU]'
9299 ;;
9300esac
9301
9302# If we're using GNU nm, then use its standard symbol codes.
9303case `$NM -V 2>&1` in
9304*GNU* | *'with BFD'*)
9305 symcode='[ABCDGIRSTW]' ;;
9306esac
9307
9308if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9309 # Gets list of data symbols to import.
9310 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9311 # Adjust the below global symbol transforms to fixup imported variables.
9312 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9313 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9314 lt_c_name_lib_hook="\
9315 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9316 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9317else
9318 # Disable hooks by default.
9319 lt_cv_sys_global_symbol_to_import=
9320 lt_cdecl_hook=
9321 lt_c_name_hook=
9322 lt_c_name_lib_hook=
9323fi
9324
9325# Transform an extracted symbol line into a proper C declaration.
9326# Some systems (esp. on ia64) link data and code symbols differently,
9327# so use this general approach.
9328lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9329$lt_cdecl_hook\
9330" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9331" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9332
9333# Transform an extracted symbol line into symbol name and symbol address
9334lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9335$lt_c_name_hook\
9336" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9337" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9338
9339# Transform an extracted symbol line into symbol name with lib prefix and
9340# symbol address.
9341lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9342$lt_c_name_lib_hook\
9343" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9344" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9345" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9346
9347# Handle CRLF in mingw tool chain
9348opt_cr=
9349case $build_os in
9350mingw*)
9351 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9352 ;;
9353esac
9354
9355# Try without a prefix underscore, then with it.
9356for ac_symprfx in "" "_"; do
9357
9358 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9359 symxfrm="\\1 $ac_symprfx\\2 \\2"
9360
9361 # Write the raw and C identifiers.
9362 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9363 # Fake it for dumpbin and say T for any non-static function,
9364 # D for any global variable and I for any imported variable.
9365 # Also find C++ and __fastcall symbols from MSVC++,
9366 # which start with @ or ?.
9367 lt_cv_sys_global_symbol_pipe="$AWK '"\
9368" {last_section=section; section=\$ 3};"\
9369" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9370" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9371" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9372" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9373" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9374" \$ 0!~/External *\|/{next};"\
9375" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9376" {if(hide[section]) next};"\
9377" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9378" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9379" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9380" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9381" ' prfx=^$ac_symprfx"
9382 else
9383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9384 fi
9385 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9386
9387 # Check to see that the pipe works correctly.
9388 pipe_works=no
9389
9390 rm -f conftest*
9391 cat > conftest.$ac_ext <<_LT_EOF
9392#ifdef __cplusplus
9393extern "C" {
9394#endif
9395char nm_test_var;
9396void nm_test_func(void);
9397void nm_test_func(void){}
9398#ifdef __cplusplus
9399}
9400#endif
9401int main(){nm_test_var='a';nm_test_func();return(0);}
9402_LT_EOF
9403
9404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9405 (eval $ac_compile) 2>&5
9406 ac_status=$?
9407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9408 test $ac_status = 0; }; then
9409 # Now try to grab the symbols.
9410 nlist=conftest.nm
9411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9412 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9413 ac_status=$?
9414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9415 test $ac_status = 0; } && test -s "$nlist"; then
9416 # Try sorting and uniquifying the output.
9417 if sort "$nlist" | uniq > "$nlist"T; then
9418 mv -f "$nlist"T "$nlist"
9419 else
9420 rm -f "$nlist"T
9421 fi
9422
9423 # Make sure that we snagged all the symbols we need.
9424 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9425 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9426 cat <<_LT_EOF > conftest.$ac_ext
9427/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9428#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9429/* DATA imports from DLLs on WIN32 can't be const, because runtime
9430 relocations are performed -- see ld's documentation on pseudo-relocs. */
9431# define LT_DLSYM_CONST
9432#elif defined __osf__
9433/* This system does not cope well with relocations in const data. */
9434# define LT_DLSYM_CONST
9435#else
9436# define LT_DLSYM_CONST const
9437#endif
9438
9439#ifdef __cplusplus
9440extern "C" {
9441#endif
9442
9443_LT_EOF
9444 # Now generate the symbol file.
9445 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9446
9447 cat <<_LT_EOF >> conftest.$ac_ext
9448
9449/* The mapping between symbol names and symbols. */
9450LT_DLSYM_CONST struct {
9451 const char *name;
9452 void *address;
9453}
9454lt__PROGRAM__LTX_preloaded_symbols[] =
9455{
9456 { "@PROGRAM@", (void *) 0 },
9457_LT_EOF
9458 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9459 cat <<\_LT_EOF >> conftest.$ac_ext
9460 {0, (void *) 0}
9461};
9462
9463/* This works around a problem in FreeBSD linker */
9464#ifdef FREEBSD_WORKAROUND
9465static const void *lt_preloaded_setup() {
9466 return lt__PROGRAM__LTX_preloaded_symbols;
9467}
9468#endif
9469
9470#ifdef __cplusplus
9471}
9472#endif
9473_LT_EOF
9474 # Now try linking the two files.
9475 mv -f conftest.$ac_objext conftstm.$ac_objext
9476 lt_globsym_save_LIBS=$LIBS
9477 lt_globsym_save_CFLAGS=$CFLAGS
9478 LIBS=conftstm.$ac_objext
9479 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9481 (eval $ac_link) 2>&5
9482 ac_status=$?
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9485 pipe_works=yes
9486 fi
9487 LIBS=$lt_globsym_save_LIBS
9488 CFLAGS=$lt_globsym_save_CFLAGS
9489 else
9490 echo "cannot find nm_test_func in $nlist" >&5
9491 fi
9492 else
9493 echo "cannot find nm_test_var in $nlist" >&5
9494 fi
9495 else
9496 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9497 fi
9498 else
9499 echo "$progname: failed program was:" >&5
9500 cat conftest.$ac_ext >&5
9501 fi
9502 rm -rf conftest* conftst*
9503
9504 # Do not use the global_symbol_pipe unless it works.
9505 if test yes = "$pipe_works"; then
9506 break
9507 else
9508 lt_cv_sys_global_symbol_pipe=
9509 fi
9510done
9511
9512fi
9513
9514if test -z "$lt_cv_sys_global_symbol_pipe"; then
9515 lt_cv_sys_global_symbol_to_cdecl=
9516fi
9517if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9519$as_echo "failed" >&6; }
9520else
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9522$as_echo "ok" >&6; }
9523fi
9524
9525# Response file support.
9526if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9527 nm_file_list_spec='@'
9528elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9529 nm_file_list_spec='@'
9530fi
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9569$as_echo_n "checking for sysroot... " >&6; }
9570
9571# Check whether --with-sysroot was given.
9572if test "${with_sysroot+set}" = set; then :
9573 withval=$with_sysroot;
9574else
9575 with_sysroot=no
9576fi
9577
9578
9579lt_sysroot=
9580case $with_sysroot in #(
9581 yes)
9582 if test yes = "$GCC"; then
9583 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9584 fi
9585 ;; #(
9586 /*)
9587 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9588 ;; #(
9589 no|'')
9590 ;; #(
9591 *)
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9593$as_echo "$with_sysroot" >&6; }
9594 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9595 ;;
9596esac
9597
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9599$as_echo "${lt_sysroot:-no}" >&6; }
9600
9601
9602
9603
9604
9605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9606$as_echo_n "checking for a working dd... " >&6; }
9607if ${ac_cv_path_lt_DD+:} false; then :
9608 $as_echo_n "(cached) " >&6
9609else
9610 printf 0123456789abcdef0123456789abcdef >conftest.i
9611cat conftest.i conftest.i >conftest2.i
9612: ${lt_DD:=$DD}
9613if test -z "$lt_DD"; then
9614 ac_path_lt_DD_found=false
9615 # Loop through the user's path and test for each of PROGNAME-LIST
9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617for as_dir in $PATH
9618do
9619 IFS=$as_save_IFS
9620 test -z "$as_dir" && as_dir=.
9621 for ac_prog in dd; do
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9624 as_fn_executable_p "$ac_path_lt_DD" || continue
9625if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9626 cmp -s conftest.i conftest.out \
9627 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9628fi
9629 $ac_path_lt_DD_found && break 3
9630 done
9631 done
9632 done
9633IFS=$as_save_IFS
9634 if test -z "$ac_cv_path_lt_DD"; then
9635 :
9636 fi
9637else
9638 ac_cv_path_lt_DD=$lt_DD
9639fi
9640
9641rm -f conftest.i conftest2.i conftest.out
9642fi
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9644$as_echo "$ac_cv_path_lt_DD" >&6; }
9645
9646
9647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9648$as_echo_n "checking how to truncate binary pipes... " >&6; }
9649if ${lt_cv_truncate_bin+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651else
9652 printf 0123456789abcdef0123456789abcdef >conftest.i
9653cat conftest.i conftest.i >conftest2.i
9654lt_cv_truncate_bin=
9655if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9656 cmp -s conftest.i conftest.out \
9657 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9658fi
9659rm -f conftest.i conftest2.i conftest.out
9660test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9661fi
9662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9663$as_echo "$lt_cv_truncate_bin" >&6; }
9664
9665
9666
9667
9668
9669
9670
9671# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9672func_cc_basename ()
9673{
9674 for cc_temp in $*""; do
9675 case $cc_temp in
9676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9678 \-*) ;;
9679 *) break;;
9680 esac
9681 done
9682 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9683}
9684
9685# Check whether --enable-libtool-lock was given.
9686if test "${enable_libtool_lock+set}" = set; then :
9687 enableval=$enable_libtool_lock;
9688fi
9689
9690test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9691
9692# Some flags need to be propagated to the compiler or linker for good
9693# libtool support.
9694case $host in
9695ia64-*-hpux*)
9696 # Find out what ABI is being produced by ac_compile, and set mode
9697 # options accordingly.
9698 echo 'int i;' > conftest.$ac_ext
9699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9700 (eval $ac_compile) 2>&5
9701 ac_status=$?
9702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9703 test $ac_status = 0; }; then
9704 case `/usr/bin/file conftest.$ac_objext` in
9705 *ELF-32*)
9706 HPUX_IA64_MODE=32
9707 ;;
9708 *ELF-64*)
9709 HPUX_IA64_MODE=64
9710 ;;
9711 esac
9712 fi
9713 rm -rf conftest*
9714 ;;
9715*-*-irix6*)
9716 # Find out what ABI is being produced by ac_compile, and set linker
9717 # options accordingly.
9718 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9720 (eval $ac_compile) 2>&5
9721 ac_status=$?
9722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9723 test $ac_status = 0; }; then
9724 if test yes = "$lt_cv_prog_gnu_ld"; then
9725 case `/usr/bin/file conftest.$ac_objext` in
9726 *32-bit*)
9727 LD="${LD-ld} -melf32bsmip"
9728 ;;
9729 *N32*)
9730 LD="${LD-ld} -melf32bmipn32"
9731 ;;
9732 *64-bit*)
9733 LD="${LD-ld} -melf64bmip"
9734 ;;
9735 esac
9736 else
9737 case `/usr/bin/file conftest.$ac_objext` in
9738 *32-bit*)
9739 LD="${LD-ld} -32"
9740 ;;
9741 *N32*)
9742 LD="${LD-ld} -n32"
9743 ;;
9744 *64-bit*)
9745 LD="${LD-ld} -64"
9746 ;;
9747 esac
9748 fi
9749 fi
9750 rm -rf conftest*
9751 ;;
9752
9753mips64*-*linux*)
9754 # Find out what ABI is being produced by ac_compile, and set linker
9755 # options accordingly.
9756 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9758 (eval $ac_compile) 2>&5
9759 ac_status=$?
9760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9761 test $ac_status = 0; }; then
9762 emul=elf
9763 case `/usr/bin/file conftest.$ac_objext` in
9764 *32-bit*)
9765 emul="${emul}32"
9766 ;;
9767 *64-bit*)
9768 emul="${emul}64"
9769 ;;
9770 esac
9771 case `/usr/bin/file conftest.$ac_objext` in
9772 *MSB*)
9773 emul="${emul}btsmip"
9774 ;;
9775 *LSB*)
9776 emul="${emul}ltsmip"
9777 ;;
9778 esac
9779 case `/usr/bin/file conftest.$ac_objext` in
9780 *N32*)
9781 emul="${emul}n32"
9782 ;;
9783 esac
9784 LD="${LD-ld} -m $emul"
9785 fi
9786 rm -rf conftest*
9787 ;;
9788
9789x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9790s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9791 # Find out what ABI is being produced by ac_compile, and set linker
9792 # options accordingly. Note that the listed cases only cover the
9793 # situations where additional linker options are needed (such as when
9794 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9795 # vice versa); the common cases where no linker options are needed do
9796 # not appear in the list.
9797 echo 'int i;' > conftest.$ac_ext
9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9799 (eval $ac_compile) 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9802 test $ac_status = 0; }; then
9803 case `/usr/bin/file conftest.o` in
9804 *32-bit*)
9805 case $host in
9806 x86_64-*kfreebsd*-gnu)
9807 LD="${LD-ld} -m elf_i386_fbsd"
9808 ;;
9809 x86_64-*linux*)
9810 case `/usr/bin/file conftest.o` in
9811 *x86-64*)
9812 LD="${LD-ld} -m elf32_x86_64"
9813 ;;
9814 *)
9815 LD="${LD-ld} -m elf_i386"
9816 ;;
9817 esac
9818 ;;
9819 powerpc64le-*linux*)
9820 LD="${LD-ld} -m elf32lppclinux"
9821 ;;
9822 powerpc64-*linux*)
9823 LD="${LD-ld} -m elf32ppclinux"
9824 ;;
9825 s390x-*linux*)
9826 LD="${LD-ld} -m elf_s390"
9827 ;;
9828 sparc64-*linux*)
9829 LD="${LD-ld} -m elf32_sparc"
9830 ;;
9831 esac
9832 ;;
9833 *64-bit*)
9834 case $host in
9835 x86_64-*kfreebsd*-gnu)
9836 LD="${LD-ld} -m elf_x86_64_fbsd"
9837 ;;
9838 x86_64-*linux*)
9839 LD="${LD-ld} -m elf_x86_64"
9840 ;;
9841 powerpcle-*linux*)
9842 LD="${LD-ld} -m elf64lppc"
9843 ;;
9844 powerpc-*linux*)
9845 LD="${LD-ld} -m elf64ppc"
9846 ;;
9847 s390*-*linux*|s390*-*tpf*)
9848 LD="${LD-ld} -m elf64_s390"
9849 ;;
9850 sparc*-*linux*)
9851 LD="${LD-ld} -m elf64_sparc"
9852 ;;
9853 esac
9854 ;;
9855 esac
9856 fi
9857 rm -rf conftest*
9858 ;;
9859
9860*-*-sco3.2v5*)
9861 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9862 SAVE_CFLAGS=$CFLAGS
9863 CFLAGS="$CFLAGS -belf"
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9865$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9866if ${lt_cv_cc_needs_belf+:} false; then :
9867 $as_echo_n "(cached) " >&6
9868else
9869 ac_ext=c
9870ac_cpp='$CPP $CPPFLAGS'
9871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9873ac_compiler_gnu=$ac_cv_c_compiler_gnu
9874
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876/* end confdefs.h. */
9877
9878int main (void)
9879{
9880
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885if ac_fn_c_try_link "$LINENO"; then :
9886 lt_cv_cc_needs_belf=yes
9887else
9888 lt_cv_cc_needs_belf=no
9889fi
9890rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 ac_ext=c
9893ac_cpp='$CPP $CPPFLAGS'
9894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9896ac_compiler_gnu=$ac_cv_c_compiler_gnu
9897
9898fi
9899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9900$as_echo "$lt_cv_cc_needs_belf" >&6; }
9901 if test yes != "$lt_cv_cc_needs_belf"; then
9902 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9903 CFLAGS=$SAVE_CFLAGS
9904 fi
9905 ;;
9906*-*solaris*)
9907 # Find out what ABI is being produced by ac_compile, and set linker
9908 # options accordingly.
9909 echo 'int i;' > conftest.$ac_ext
9910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9911 (eval $ac_compile) 2>&5
9912 ac_status=$?
9913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9914 test $ac_status = 0; }; then
9915 case `/usr/bin/file conftest.o` in
9916 *64-bit*)
9917 case $lt_cv_prog_gnu_ld in
9918 yes*)
9919 case $host in
9920 i?86-*-solaris*|x86_64-*-solaris*)
9921 LD="${LD-ld} -m elf_x86_64"
9922 ;;
9923 sparc*-*-solaris*)
9924 LD="${LD-ld} -m elf64_sparc"
9925 ;;
9926 esac
9927 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9928 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9929 LD=${LD-ld}_sol2
9930 fi
9931 ;;
9932 *)
9933 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9934 LD="${LD-ld} -64"
9935 fi
9936 ;;
9937 esac
9938 ;;
9939 esac
9940 fi
9941 rm -rf conftest*
9942 ;;
9943esac
9944
9945need_locks=$enable_libtool_lock
9946
9947if test -n "$ac_tool_prefix"; then
9948 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9949set dummy ${ac_tool_prefix}mt; ac_word=$2
9950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951$as_echo_n "checking for $ac_word... " >&6; }
9952if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9953 $as_echo_n "(cached) " >&6
9954else
9955 if test -n "$MANIFEST_TOOL"; then
9956 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9957else
9958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9959for as_dir in $PATH
9960do
9961 IFS=$as_save_IFS
9962 test -z "$as_dir" && as_dir=.
9963 for ac_exec_ext in '' $ac_executable_extensions; do
9964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9965 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9967 break 2
9968 fi
9969done
9970 done
9971IFS=$as_save_IFS
9972
9973fi
9974fi
9975MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9976if test -n "$MANIFEST_TOOL"; then
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9978$as_echo "$MANIFEST_TOOL" >&6; }
9979else
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981$as_echo "no" >&6; }
9982fi
9983
9984
9985fi
9986if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9987 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9988 # Extract the first word of "mt", so it can be a program name with args.
9989set dummy mt; ac_word=$2
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991$as_echo_n "checking for $ac_word... " >&6; }
9992if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994else
9995 if test -n "$ac_ct_MANIFEST_TOOL"; then
9996 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9997else
9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
10003 for ac_exec_ext in '' $ac_executable_extensions; do
10004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10007 break 2
10008 fi
10009done
10010 done
10011IFS=$as_save_IFS
10012
10013fi
10014fi
10015ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10016if test -n "$ac_ct_MANIFEST_TOOL"; then
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10018$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10019else
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10021$as_echo "no" >&6; }
10022fi
10023
10024 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10025 MANIFEST_TOOL=":"
10026 else
10027 case $cross_compiling:$ac_tool_warned in
10028yes:)
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10030$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10031ac_tool_warned=yes ;;
10032esac
10033 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10034 fi
10035else
10036 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10037fi
10038
10039test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10041$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10042if ${lt_cv_path_mainfest_tool+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044else
10045 lt_cv_path_mainfest_tool=no
10046 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10047 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10048 cat conftest.err >&5
10049 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10050 lt_cv_path_mainfest_tool=yes
10051 fi
10052 rm -f conftest*
10053fi
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10055$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10056if test yes != "$lt_cv_path_mainfest_tool"; then
10057 MANIFEST_TOOL=:
10058fi
10059
10060
10061
10062
10063
10064
10065 case $host_os in
10066 rhapsody* | darwin*)
10067 if test -n "$ac_tool_prefix"; then
10068 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10069set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071$as_echo_n "checking for $ac_word... " >&6; }
10072if ${ac_cv_prog_DSYMUTIL+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074else
10075 if test -n "$DSYMUTIL"; then
10076 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10077else
10078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079for as_dir in $PATH
10080do
10081 IFS=$as_save_IFS
10082 test -z "$as_dir" && as_dir=.
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10085 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 break 2
10088 fi
10089done
10090 done
10091IFS=$as_save_IFS
10092
10093fi
10094fi
10095DSYMUTIL=$ac_cv_prog_DSYMUTIL
10096if test -n "$DSYMUTIL"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10098$as_echo "$DSYMUTIL" >&6; }
10099else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101$as_echo "no" >&6; }
10102fi
10103
10104
10105fi
10106if test -z "$ac_cv_prog_DSYMUTIL"; then
10107 ac_ct_DSYMUTIL=$DSYMUTIL
10108 # Extract the first word of "dsymutil", so it can be a program name with args.
10109set dummy dsymutil; ac_word=$2
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111$as_echo_n "checking for $ac_word... " >&6; }
10112if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114else
10115 if test -n "$ac_ct_DSYMUTIL"; then
10116 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10117else
10118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119for as_dir in $PATH
10120do
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 break 2
10128 fi
10129done
10130 done
10131IFS=$as_save_IFS
10132
10133fi
10134fi
10135ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10136if test -n "$ac_ct_DSYMUTIL"; then
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10138$as_echo "$ac_ct_DSYMUTIL" >&6; }
10139else
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141$as_echo "no" >&6; }
10142fi
10143
10144 if test "x$ac_ct_DSYMUTIL" = x; then
10145 DSYMUTIL=":"
10146 else
10147 case $cross_compiling:$ac_tool_warned in
10148yes:)
10149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10151ac_tool_warned=yes ;;
10152esac
10153 DSYMUTIL=$ac_ct_DSYMUTIL
10154 fi
10155else
10156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10157fi
10158
10159 if test -n "$ac_tool_prefix"; then
10160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10161set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163$as_echo_n "checking for $ac_word... " >&6; }
10164if ${ac_cv_prog_NMEDIT+:} false; then :
10165 $as_echo_n "(cached) " >&6
10166else
10167 if test -n "$NMEDIT"; then
10168 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10169else
10170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10171for as_dir in $PATH
10172do
10173 IFS=$as_save_IFS
10174 test -z "$as_dir" && as_dir=.
10175 for ac_exec_ext in '' $ac_executable_extensions; do
10176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10177 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 break 2
10180 fi
10181done
10182 done
10183IFS=$as_save_IFS
10184
10185fi
10186fi
10187NMEDIT=$ac_cv_prog_NMEDIT
10188if test -n "$NMEDIT"; then
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10190$as_echo "$NMEDIT" >&6; }
10191else
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10193$as_echo "no" >&6; }
10194fi
10195
10196
10197fi
10198if test -z "$ac_cv_prog_NMEDIT"; then
10199 ac_ct_NMEDIT=$NMEDIT
10200 # Extract the first word of "nmedit", so it can be a program name with args.
10201set dummy nmedit; ac_word=$2
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203$as_echo_n "checking for $ac_word... " >&6; }
10204if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206else
10207 if test -n "$ac_ct_NMEDIT"; then
10208 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10209else
10210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211for as_dir in $PATH
10212do
10213 IFS=$as_save_IFS
10214 test -z "$as_dir" && as_dir=.
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10217 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219 break 2
10220 fi
10221done
10222 done
10223IFS=$as_save_IFS
10224
10225fi
10226fi
10227ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10228if test -n "$ac_ct_NMEDIT"; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10230$as_echo "$ac_ct_NMEDIT" >&6; }
10231else
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233$as_echo "no" >&6; }
10234fi
10235
10236 if test "x$ac_ct_NMEDIT" = x; then
10237 NMEDIT=":"
10238 else
10239 case $cross_compiling:$ac_tool_warned in
10240yes:)
10241{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10242$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10243ac_tool_warned=yes ;;
10244esac
10245 NMEDIT=$ac_ct_NMEDIT
10246 fi
10247else
10248 NMEDIT="$ac_cv_prog_NMEDIT"
10249fi
10250
10251 if test -n "$ac_tool_prefix"; then
10252 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10253set dummy ${ac_tool_prefix}lipo; ac_word=$2
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255$as_echo_n "checking for $ac_word... " >&6; }
10256if ${ac_cv_prog_LIPO+:} false; then :
10257 $as_echo_n "(cached) " >&6
10258else
10259 if test -n "$LIPO"; then
10260 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10261else
10262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263for as_dir in $PATH
10264do
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10269 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10271 break 2
10272 fi
10273done
10274 done
10275IFS=$as_save_IFS
10276
10277fi
10278fi
10279LIPO=$ac_cv_prog_LIPO
10280if test -n "$LIPO"; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10282$as_echo "$LIPO" >&6; }
10283else
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285$as_echo "no" >&6; }
10286fi
10287
10288
10289fi
10290if test -z "$ac_cv_prog_LIPO"; then
10291 ac_ct_LIPO=$LIPO
10292 # Extract the first word of "lipo", so it can be a program name with args.
10293set dummy lipo; ac_word=$2
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295$as_echo_n "checking for $ac_word... " >&6; }
10296if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10297 $as_echo_n "(cached) " >&6
10298else
10299 if test -n "$ac_ct_LIPO"; then
10300 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10301else
10302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10309 ac_cv_prog_ac_ct_LIPO="lipo"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10312 fi
10313done
10314 done
10315IFS=$as_save_IFS
10316
10317fi
10318fi
10319ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10320if test -n "$ac_ct_LIPO"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10322$as_echo "$ac_ct_LIPO" >&6; }
10323else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325$as_echo "no" >&6; }
10326fi
10327
10328 if test "x$ac_ct_LIPO" = x; then
10329 LIPO=":"
10330 else
10331 case $cross_compiling:$ac_tool_warned in
10332yes:)
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10335ac_tool_warned=yes ;;
10336esac
10337 LIPO=$ac_ct_LIPO
10338 fi
10339else
10340 LIPO="$ac_cv_prog_LIPO"
10341fi
10342
10343 if test -n "$ac_tool_prefix"; then
10344 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10345set dummy ${ac_tool_prefix}otool; ac_word=$2
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10347$as_echo_n "checking for $ac_word... " >&6; }
10348if ${ac_cv_prog_OTOOL+:} false; then :
10349 $as_echo_n "(cached) " >&6
10350else
10351 if test -n "$OTOOL"; then
10352 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10353else
10354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355for as_dir in $PATH
10356do
10357 IFS=$as_save_IFS
10358 test -z "$as_dir" && as_dir=.
10359 for ac_exec_ext in '' $ac_executable_extensions; do
10360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363 break 2
10364 fi
10365done
10366 done
10367IFS=$as_save_IFS
10368
10369fi
10370fi
10371OTOOL=$ac_cv_prog_OTOOL
10372if test -n "$OTOOL"; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10374$as_echo "$OTOOL" >&6; }
10375else
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10377$as_echo "no" >&6; }
10378fi
10379
10380
10381fi
10382if test -z "$ac_cv_prog_OTOOL"; then
10383 ac_ct_OTOOL=$OTOOL
10384 # Extract the first word of "otool", so it can be a program name with args.
10385set dummy otool; ac_word=$2
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10387$as_echo_n "checking for $ac_word... " >&6; }
10388if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10389 $as_echo_n "(cached) " >&6
10390else
10391 if test -n "$ac_ct_OTOOL"; then
10392 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10393else
10394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10395for as_dir in $PATH
10396do
10397 IFS=$as_save_IFS
10398 test -z "$as_dir" && as_dir=.
10399 for ac_exec_ext in '' $ac_executable_extensions; do
10400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10401 ac_cv_prog_ac_ct_OTOOL="otool"
10402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10403 break 2
10404 fi
10405done
10406 done
10407IFS=$as_save_IFS
10408
10409fi
10410fi
10411ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10412if test -n "$ac_ct_OTOOL"; then
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10414$as_echo "$ac_ct_OTOOL" >&6; }
10415else
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10417$as_echo "no" >&6; }
10418fi
10419
10420 if test "x$ac_ct_OTOOL" = x; then
10421 OTOOL=":"
10422 else
10423 case $cross_compiling:$ac_tool_warned in
10424yes:)
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10427ac_tool_warned=yes ;;
10428esac
10429 OTOOL=$ac_ct_OTOOL
10430 fi
10431else
10432 OTOOL="$ac_cv_prog_OTOOL"
10433fi
10434
10435 if test -n "$ac_tool_prefix"; then
10436 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10437set dummy ${ac_tool_prefix}otool64; ac_word=$2
10438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439$as_echo_n "checking for $ac_word... " >&6; }
10440if ${ac_cv_prog_OTOOL64+:} false; then :
10441 $as_echo_n "(cached) " >&6
10442else
10443 if test -n "$OTOOL64"; then
10444 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10445else
10446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 break 2
10456 fi
10457done
10458 done
10459IFS=$as_save_IFS
10460
10461fi
10462fi
10463OTOOL64=$ac_cv_prog_OTOOL64
10464if test -n "$OTOOL64"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10466$as_echo "$OTOOL64" >&6; }
10467else
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469$as_echo "no" >&6; }
10470fi
10471
10472
10473fi
10474if test -z "$ac_cv_prog_OTOOL64"; then
10475 ac_ct_OTOOL64=$OTOOL64
10476 # Extract the first word of "otool64", so it can be a program name with args.
10477set dummy otool64; ac_word=$2
10478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479$as_echo_n "checking for $ac_word... " >&6; }
10480if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482else
10483 if test -n "$ac_ct_OTOOL64"; then
10484 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10485else
10486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487for as_dir in $PATH
10488do
10489 IFS=$as_save_IFS
10490 test -z "$as_dir" && as_dir=.
10491 for ac_exec_ext in '' $ac_executable_extensions; do
10492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10493 ac_cv_prog_ac_ct_OTOOL64="otool64"
10494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10495 break 2
10496 fi
10497done
10498 done
10499IFS=$as_save_IFS
10500
10501fi
10502fi
10503ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10504if test -n "$ac_ct_OTOOL64"; then
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10506$as_echo "$ac_ct_OTOOL64" >&6; }
10507else
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509$as_echo "no" >&6; }
10510fi
10511
10512 if test "x$ac_ct_OTOOL64" = x; then
10513 OTOOL64=":"
10514 else
10515 case $cross_compiling:$ac_tool_warned in
10516yes:)
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10519ac_tool_warned=yes ;;
10520esac
10521 OTOOL64=$ac_ct_OTOOL64
10522 fi
10523else
10524 OTOOL64="$ac_cv_prog_OTOOL64"
10525fi
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10554$as_echo_n "checking for -single_module linker flag... " >&6; }
10555if ${lt_cv_apple_cc_single_mod+:} false; then :
10556 $as_echo_n "(cached) " >&6
10557else
10558 lt_cv_apple_cc_single_mod=no
10559 if test -z "$LT_MULTI_MODULE"; then
10560 # By default we will add the -single_module flag. You can override
10561 # by either setting the environment variable LT_MULTI_MODULE
10562 # non-empty at configure time, or by adding -multi_module to the
10563 # link flags.
10564 rm -rf libconftest.dylib*
10565 echo "int foo(void){return 1;}" > conftest.c
10566 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10567-dynamiclib -Wl,-single_module conftest.c" >&5
10568 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10569 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10570 _lt_result=$?
10571 # If there is a non-empty error log, and "single_module"
10572 # appears in it, assume the flag caused a linker warning
10573 if test -s conftest.err && $GREP single_module conftest.err; then
10574 cat conftest.err >&5
10575 # Otherwise, if the output was created with a 0 exit code from
10576 # the compiler, it worked.
10577 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10578 lt_cv_apple_cc_single_mod=yes
10579 else
10580 cat conftest.err >&5
10581 fi
10582 rm -rf libconftest.dylib*
10583 rm -f conftest.*
10584 fi
10585fi
10586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10587$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10588
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10590$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10591if ${lt_cv_ld_exported_symbols_list+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593else
10594 lt_cv_ld_exported_symbols_list=no
10595 save_LDFLAGS=$LDFLAGS
10596 echo "_main" > conftest.sym
10597 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599/* end confdefs.h. */
10600
10601int main (void)
10602{
10603
10604 ;
10605 return 0;
10606}
10607_ACEOF
10608if ac_fn_c_try_link "$LINENO"; then :
10609 lt_cv_ld_exported_symbols_list=yes
10610else
10611 lt_cv_ld_exported_symbols_list=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LDFLAGS=$save_LDFLAGS
10616
10617fi
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10619$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10620
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10622$as_echo_n "checking for -force_load linker flag... " >&6; }
10623if ${lt_cv_ld_force_load+:} false; then :
10624 $as_echo_n "(cached) " >&6
10625else
10626 lt_cv_ld_force_load=no
10627 cat > conftest.c << _LT_EOF
10628int forced_loaded() { return 2;}
10629_LT_EOF
10630 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10631 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10632 echo "$AR cru libconftest.a conftest.o" >&5
10633 $AR cru libconftest.a conftest.o 2>&5
10634 echo "$RANLIB libconftest.a" >&5
10635 $RANLIB libconftest.a 2>&5
10636 cat > conftest.c << _LT_EOF
10637int main() { return 0;}
10638_LT_EOF
10639 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10640 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10641 _lt_result=$?
10642 if test -s conftest.err && $GREP force_load conftest.err; then
10643 cat conftest.err >&5
10644 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10645 lt_cv_ld_force_load=yes
10646 else
10647 cat conftest.err >&5
10648 fi
10649 rm -f conftest.err libconftest.a conftest conftest.c
10650 rm -rf conftest.dSYM
10651
10652fi
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10654$as_echo "$lt_cv_ld_force_load" >&6; }
10655 case $host_os in
10656 rhapsody* | darwin1.[012])
10657 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10658 darwin1.*)
10659 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10660 darwin*) # darwin 5.x on
10661 # if running on 10.5 or later, the deployment target defaults
10662 # to the OS version, if on x86, and 10.4, the deployment
10663 # target defaults to 10.4. Don't you love it?
10664 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10665 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10666 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10667 10.[012][,.]*)
10668 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10669 10.*)
10670 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10671 esac
10672 ;;
10673 esac
10674 if test yes = "$lt_cv_apple_cc_single_mod"; then
10675 _lt_dar_single_mod='$single_module'
10676 fi
10677 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10678 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10679 else
10680 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10681 fi
10682 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10683 _lt_dsymutil='~$DSYMUTIL $lib || :'
10684 else
10685 _lt_dsymutil=
10686 fi
10687 ;;
10688 esac
10689
10690# func_munge_path_list VARIABLE PATH
10691# -----------------------------------
10692# VARIABLE is name of variable containing _space_ separated list of
10693# directories to be munged by the contents of PATH, which is string
10694# having a format:
10695# "DIR[:DIR]:"
10696# string "DIR[ DIR]" will be prepended to VARIABLE
10697# ":DIR[:DIR]"
10698# string "DIR[ DIR]" will be appended to VARIABLE
10699# "DIRP[:DIRP]::[DIRA:]DIRA"
10700# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10701# "DIRA[ DIRA]" will be appended to VARIABLE
10702# "DIR[:DIR]"
10703# VARIABLE will be replaced by "DIR[ DIR]"
10704func_munge_path_list ()
10705{
10706 case x$2 in
10707 x)
10708 ;;
10709 *:)
10710 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10711 ;;
10712 x:*)
10713 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10714 ;;
10715 *::*)
10716 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10717 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10718 ;;
10719 *)
10720 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10721 ;;
10722 esac
10723}
10724
Alex Deymo486467e2017-12-19 19:04:07 +010010725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10726$as_echo_n "checking for ANSI C header files... " >&6; }
10727if ${ac_cv_header_stdc+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729else
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731/* end confdefs.h. */
10732#include <stdlib.h>
10733#include <stdarg.h>
10734#include <string.h>
10735#include <float.h>
10736
10737int main (void)
10738{
10739
10740 ;
10741 return 0;
10742}
10743_ACEOF
10744if ac_fn_c_try_compile "$LINENO"; then :
10745 ac_cv_header_stdc=yes
10746else
10747 ac_cv_header_stdc=no
10748fi
10749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750
10751if test $ac_cv_header_stdc = yes; then
10752 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754/* end confdefs.h. */
10755#include <string.h>
10756
10757_ACEOF
10758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10759 $EGREP "memchr" >/dev/null 2>&1; then :
10760
10761else
10762 ac_cv_header_stdc=no
10763fi
10764rm -f conftest*
10765
10766fi
10767
10768if test $ac_cv_header_stdc = yes; then
10769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771/* end confdefs.h. */
10772#include <stdlib.h>
10773
10774_ACEOF
10775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10776 $EGREP "free" >/dev/null 2>&1; then :
10777
10778else
10779 ac_cv_header_stdc=no
10780fi
10781rm -f conftest*
10782
10783fi
10784
10785if test $ac_cv_header_stdc = yes; then
10786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10787 if test "$cross_compiling" = yes; then :
10788 :
10789else
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791/* end confdefs.h. */
10792#include <ctype.h>
10793#include <stdlib.h>
10794#if ((' ' & 0x0FF) == 0x020)
10795# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10796# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10797#else
10798# define ISLOWER(c) \
10799 (('a' <= (c) && (c) <= 'i') \
10800 || ('j' <= (c) && (c) <= 'r') \
10801 || ('s' <= (c) && (c) <= 'z'))
10802# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10803#endif
10804
10805#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10806int
10807main ()
10808{
10809 int i;
10810 for (i = 0; i < 256; i++)
10811 if (XOR (islower (i), ISLOWER (i))
10812 || toupper (i) != TOUPPER (i))
10813 return 2;
10814 return 0;
10815}
10816_ACEOF
10817if ac_fn_c_try_run "$LINENO"; then :
10818
10819else
10820 ac_cv_header_stdc=no
10821fi
10822rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10823 conftest.$ac_objext conftest.beam conftest.$ac_ext
10824fi
10825
10826fi
10827fi
10828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10829$as_echo "$ac_cv_header_stdc" >&6; }
10830if test $ac_cv_header_stdc = yes; then
10831
10832$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10833
10834fi
10835
10836# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10837for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10838 inttypes.h stdint.h unistd.h
10839do :
10840 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10841ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10842"
10843if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10844 cat >>confdefs.h <<_ACEOF
10845#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10846_ACEOF
10847
10848fi
10849
10850done
10851
10852
Elliott Hughes82be86d2017-09-20 17:00:17 -070010853for ac_header in dlfcn.h
10854do :
10855 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10856"
10857if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10858 cat >>confdefs.h <<_ACEOF
10859#define HAVE_DLFCN_H 1
10860_ACEOF
10861
10862fi
10863
10864done
10865
10866# ------------------------------------ #
10867# Determine libtool default behavior #
10868# ------------------------------------ #
10869
10870#
10871# Default behavior is to enable shared and static libraries on systems
10872# where libtool knows how to build both library versions, and does not
10873# require separate configuration and build runs for each flavor.
10874#
10875
10876xc_lt_want_enable_shared='yes'
10877xc_lt_want_enable_static='yes'
10878
10879#
10880# User may have disabled shared or static libraries.
10881#
10882case "x$enable_shared" in # (
10883 xno)
10884 xc_lt_want_enable_shared='no'
10885 ;;
10886esac
10887case "x$enable_static" in # (
10888 xno)
10889 xc_lt_want_enable_static='no'
10890 ;;
10891esac
10892if test "x$xc_lt_want_enable_shared" = 'xno' &&
10893 test "x$xc_lt_want_enable_static" = 'xno'; then
10894 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10895fi
10896
10897#
10898# Default behavior on systems that require independent configuration
10899# and build runs for shared and static is to enable shared libraries
10900# and disable static ones. On these systems option '--disable-shared'
10901# must be used in order to build a proper static library.
10902#
10903
10904if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10905 test "x$xc_lt_want_enable_static" = 'xyes'; then
10906 case $host_os in # (
10907 pw32* | cegcc* | os2* | aix*)
10908 xc_lt_want_enable_static='no'
10909 ;;
10910 esac
10911fi
10912
10913#
10914# Make libtool aware of current shared and static library preferences
10915# taking in account that, depending on host characteristics, libtool
10916# may modify these option preferences later in this configure script.
10917#
10918
10919enable_shared=$xc_lt_want_enable_shared
10920enable_static=$xc_lt_want_enable_static
10921
10922#
10923# Default behavior is to build PIC objects for shared libraries and
10924# non-PIC objects for static libraries.
10925#
10926
10927xc_lt_want_with_pic='default'
10928
10929#
10930# User may have specified PIC preference.
10931#
10932
10933case "x$with_pic" in # ((
10934 xno)
10935 xc_lt_want_with_pic='no'
10936 ;;
10937 xyes)
10938 xc_lt_want_with_pic='yes'
10939 ;;
10940esac
10941
10942#
10943# Default behavior on some systems where building a shared library out
10944# of non-PIC compiled objects will fail with following linker error
10945# "relocation R_X86_64_32 can not be used when making a shared object"
10946# is to build PIC objects even for static libraries. This behavior may
10947# be overridden using 'configure --disable-shared --without-pic'.
10948#
10949
10950if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10951 case $host_cpu in # (
10952 x86_64 | amd64 | ia64)
10953 case $host_os in # (
10954 linux* | freebsd*)
10955 xc_lt_want_with_pic='yes'
10956 ;;
10957 esac
10958 ;;
10959 esac
10960fi
10961
10962#
10963# Make libtool aware of current PIC preference taking in account that,
10964# depending on host characteristics, libtool may modify PIC default
10965# behavior to fit host system idiosyncrasies later in this script.
10966#
10967
10968with_pic=$xc_lt_want_with_pic
10969
10970## ----------------------- ##
10971## Start of libtool code ##
10972## ----------------------- ##
10973
10974
10975
10976
10977# Set options
10978enable_win32_dll=yes
10979
10980case $host in
10981*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10982 if test -n "$ac_tool_prefix"; then
10983 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10984set dummy ${ac_tool_prefix}as; ac_word=$2
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986$as_echo_n "checking for $ac_word... " >&6; }
10987if ${ac_cv_prog_AS+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989else
10990 if test -n "$AS"; then
10991 ac_cv_prog_AS="$AS" # Let the user override the test.
10992else
10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11000 ac_cv_prog_AS="${ac_tool_prefix}as"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004done
11005 done
11006IFS=$as_save_IFS
11007
11008fi
11009fi
11010AS=$ac_cv_prog_AS
11011if test -n "$AS"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11013$as_echo "$AS" >&6; }
11014else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
11017fi
11018
11019
11020fi
11021if test -z "$ac_cv_prog_AS"; then
11022 ac_ct_AS=$AS
11023 # Extract the first word of "as", so it can be a program name with args.
11024set dummy as; ac_word=$2
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026$as_echo_n "checking for $ac_word... " >&6; }
11027if ${ac_cv_prog_ac_ct_AS+:} false; then :
11028 $as_echo_n "(cached) " >&6
11029else
11030 if test -n "$ac_ct_AS"; then
11031 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11032else
11033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11040 ac_cv_prog_ac_ct_AS="as"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11042 break 2
11043 fi
11044done
11045 done
11046IFS=$as_save_IFS
11047
11048fi
11049fi
11050ac_ct_AS=$ac_cv_prog_ac_ct_AS
11051if test -n "$ac_ct_AS"; then
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11053$as_echo "$ac_ct_AS" >&6; }
11054else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056$as_echo "no" >&6; }
11057fi
11058
11059 if test "x$ac_ct_AS" = x; then
11060 AS="false"
11061 else
11062 case $cross_compiling:$ac_tool_warned in
11063yes:)
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11066ac_tool_warned=yes ;;
11067esac
11068 AS=$ac_ct_AS
11069 fi
11070else
11071 AS="$ac_cv_prog_AS"
11072fi
11073
11074 if test -n "$ac_tool_prefix"; then
11075 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11076set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078$as_echo_n "checking for $ac_word... " >&6; }
11079if ${ac_cv_prog_DLLTOOL+:} false; then :
11080 $as_echo_n "(cached) " >&6
11081else
11082 if test -n "$DLLTOOL"; then
11083 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11092 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11094 break 2
11095 fi
11096done
11097 done
11098IFS=$as_save_IFS
11099
11100fi
11101fi
11102DLLTOOL=$ac_cv_prog_DLLTOOL
11103if test -n "$DLLTOOL"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11105$as_echo "$DLLTOOL" >&6; }
11106else
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
11109fi
11110
11111
11112fi
11113if test -z "$ac_cv_prog_DLLTOOL"; then
11114 ac_ct_DLLTOOL=$DLLTOOL
11115 # Extract the first word of "dlltool", so it can be a program name with args.
11116set dummy dlltool; ac_word=$2
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118$as_echo_n "checking for $ac_word... " >&6; }
11119if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11120 $as_echo_n "(cached) " >&6
11121else
11122 if test -n "$ac_ct_DLLTOOL"; then
11123 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134 break 2
11135 fi
11136done
11137 done
11138IFS=$as_save_IFS
11139
11140fi
11141fi
11142ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11143if test -n "$ac_ct_DLLTOOL"; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11145$as_echo "$ac_ct_DLLTOOL" >&6; }
11146else
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148$as_echo "no" >&6; }
11149fi
11150
11151 if test "x$ac_ct_DLLTOOL" = x; then
11152 DLLTOOL="false"
11153 else
11154 case $cross_compiling:$ac_tool_warned in
11155yes:)
11156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11158ac_tool_warned=yes ;;
11159esac
11160 DLLTOOL=$ac_ct_DLLTOOL
11161 fi
11162else
11163 DLLTOOL="$ac_cv_prog_DLLTOOL"
11164fi
11165
11166 if test -n "$ac_tool_prefix"; then
11167 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11168set dummy ${ac_tool_prefix}objdump; ac_word=$2
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170$as_echo_n "checking for $ac_word... " >&6; }
11171if ${ac_cv_prog_OBJDUMP+:} false; then :
11172 $as_echo_n "(cached) " >&6
11173else
11174 if test -n "$OBJDUMP"; then
11175 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11176else
11177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $PATH
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11184 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 break 2
11187 fi
11188done
11189 done
11190IFS=$as_save_IFS
11191
11192fi
11193fi
11194OBJDUMP=$ac_cv_prog_OBJDUMP
11195if test -n "$OBJDUMP"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11197$as_echo "$OBJDUMP" >&6; }
11198else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200$as_echo "no" >&6; }
11201fi
11202
11203
11204fi
11205if test -z "$ac_cv_prog_OBJDUMP"; then
11206 ac_ct_OBJDUMP=$OBJDUMP
11207 # Extract the first word of "objdump", so it can be a program name with args.
11208set dummy objdump; ac_word=$2
11209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210$as_echo_n "checking for $ac_word... " >&6; }
11211if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11212 $as_echo_n "(cached) " >&6
11213else
11214 if test -n "$ac_ct_OBJDUMP"; then
11215 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11216else
11217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218for as_dir in $PATH
11219do
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_exec_ext in '' $ac_executable_extensions; do
11223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11224 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11226 break 2
11227 fi
11228done
11229 done
11230IFS=$as_save_IFS
11231
11232fi
11233fi
11234ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11235if test -n "$ac_ct_OBJDUMP"; then
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11237$as_echo "$ac_ct_OBJDUMP" >&6; }
11238else
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240$as_echo "no" >&6; }
11241fi
11242
11243 if test "x$ac_ct_OBJDUMP" = x; then
11244 OBJDUMP="false"
11245 else
11246 case $cross_compiling:$ac_tool_warned in
11247yes:)
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11250ac_tool_warned=yes ;;
11251esac
11252 OBJDUMP=$ac_ct_OBJDUMP
11253 fi
11254else
11255 OBJDUMP="$ac_cv_prog_OBJDUMP"
11256fi
11257
11258 ;;
11259esac
11260
11261test -z "$AS" && AS=as
11262
11263
11264
11265
11266
11267test -z "$DLLTOOL" && DLLTOOL=dlltool
11268
11269
11270
11271
11272
11273test -z "$OBJDUMP" && OBJDUMP=objdump
11274
11275
11276
11277
11278
11279
11280
11281 enable_dlopen=no
11282
11283
11284
11285 # Check whether --enable-shared was given.
11286if test "${enable_shared+set}" = set; then :
11287 enableval=$enable_shared; p=${PACKAGE-default}
11288 case $enableval in
11289 yes) enable_shared=yes ;;
11290 no) enable_shared=no ;;
11291 *)
11292 enable_shared=no
11293 # Look at the argument we got. We use all the common list separators.
11294 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11295 for pkg in $enableval; do
11296 IFS=$lt_save_ifs
11297 if test "X$pkg" = "X$p"; then
11298 enable_shared=yes
11299 fi
11300 done
11301 IFS=$lt_save_ifs
11302 ;;
11303 esac
11304else
11305 enable_shared=yes
11306fi
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316 # Check whether --enable-static was given.
11317if test "${enable_static+set}" = set; then :
11318 enableval=$enable_static; p=${PACKAGE-default}
11319 case $enableval in
11320 yes) enable_static=yes ;;
11321 no) enable_static=no ;;
11322 *)
11323 enable_static=no
11324 # Look at the argument we got. We use all the common list separators.
11325 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11326 for pkg in $enableval; do
11327 IFS=$lt_save_ifs
11328 if test "X$pkg" = "X$p"; then
11329 enable_static=yes
11330 fi
11331 done
11332 IFS=$lt_save_ifs
11333 ;;
11334 esac
11335else
11336 enable_static=yes
11337fi
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348# Check whether --with-pic was given.
11349if test "${with_pic+set}" = set; then :
11350 withval=$with_pic; lt_p=${PACKAGE-default}
11351 case $withval in
11352 yes|no) pic_mode=$withval ;;
11353 *)
11354 pic_mode=default
11355 # Look at the argument we got. We use all the common list separators.
11356 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11357 for lt_pkg in $withval; do
11358 IFS=$lt_save_ifs
11359 if test "X$lt_pkg" = "X$lt_p"; then
11360 pic_mode=yes
11361 fi
11362 done
11363 IFS=$lt_save_ifs
11364 ;;
11365 esac
11366else
11367 pic_mode=default
11368fi
11369
11370
11371
11372
11373
11374
11375
11376
11377 # Check whether --enable-fast-install was given.
11378if test "${enable_fast_install+set}" = set; then :
11379 enableval=$enable_fast_install; p=${PACKAGE-default}
11380 case $enableval in
11381 yes) enable_fast_install=yes ;;
11382 no) enable_fast_install=no ;;
11383 *)
11384 enable_fast_install=no
11385 # Look at the argument we got. We use all the common list separators.
11386 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11387 for pkg in $enableval; do
11388 IFS=$lt_save_ifs
11389 if test "X$pkg" = "X$p"; then
11390 enable_fast_install=yes
11391 fi
11392 done
11393 IFS=$lt_save_ifs
11394 ;;
11395 esac
11396else
11397 enable_fast_install=yes
11398fi
11399
11400
11401
11402
11403
11404
11405
11406
11407 shared_archive_member_spec=
11408case $host,$enable_shared in
11409power*-*-aix[5-9]*,yes)
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11411$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11412
11413# Check whether --with-aix-soname was given.
11414if test "${with_aix_soname+set}" = set; then :
11415 withval=$with_aix_soname; case $withval in
11416 aix|svr4|both)
11417 ;;
11418 *)
11419 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11420 ;;
11421 esac
11422 lt_cv_with_aix_soname=$with_aix_soname
11423else
11424 if ${lt_cv_with_aix_soname+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426else
11427 lt_cv_with_aix_soname=aix
11428fi
11429
11430 with_aix_soname=$lt_cv_with_aix_soname
11431fi
11432
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11434$as_echo "$with_aix_soname" >&6; }
11435 if test aix != "$with_aix_soname"; then
11436 # For the AIX way of multilib, we name the shared archive member
11437 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11438 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11439 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11440 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11441 if test 64 = "${OBJECT_MODE-32}"; then
11442 shared_archive_member_spec=shr_64
11443 else
11444 shared_archive_member_spec=shr
11445 fi
11446 fi
11447 ;;
11448*)
11449 with_aix_soname=aix
11450 ;;
11451esac
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462# This can be used to rebuild libtool when needed
11463LIBTOOL_DEPS=$ltmain
11464
11465# Always use our own libtool.
11466LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497test -z "$LN_S" && LN_S="ln -s"
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512if test -n "${ZSH_VERSION+set}"; then
11513 setopt NO_GLOB_SUBST
11514fi
11515
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11517$as_echo_n "checking for objdir... " >&6; }
11518if ${lt_cv_objdir+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520else
11521 rm -f .libs 2>/dev/null
11522mkdir .libs 2>/dev/null
11523if test -d .libs; then
11524 lt_cv_objdir=.libs
11525else
11526 # MS-DOS does not allow filenames that begin with a dot.
11527 lt_cv_objdir=_libs
11528fi
11529rmdir .libs 2>/dev/null
11530fi
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11532$as_echo "$lt_cv_objdir" >&6; }
11533objdir=$lt_cv_objdir
11534
11535
11536
11537
11538
11539cat >>confdefs.h <<_ACEOF
11540#define LT_OBJDIR "$lt_cv_objdir/"
11541_ACEOF
11542
11543
11544
11545
11546case $host_os in
11547aix3*)
11548 # AIX sometimes has problems with the GCC collect2 program. For some
11549 # reason, if we set the COLLECT_NAMES environment variable, the problems
11550 # vanish in a puff of smoke.
11551 if test set != "${COLLECT_NAMES+set}"; then
11552 COLLECT_NAMES=
11553 export COLLECT_NAMES
11554 fi
11555 ;;
11556esac
11557
11558# Global variables:
11559ofile=libtool
11560can_build_shared=yes
11561
11562# All known linkers require a '.a' archive for static linking (except MSVC,
11563# which needs '.lib').
11564libext=a
11565
11566with_gnu_ld=$lt_cv_prog_gnu_ld
11567
11568old_CC=$CC
11569old_CFLAGS=$CFLAGS
11570
11571# Set sane defaults for various variables
11572test -z "$CC" && CC=cc
11573test -z "$LTCC" && LTCC=$CC
11574test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11575test -z "$LD" && LD=ld
11576test -z "$ac_objext" && ac_objext=o
11577
11578func_cc_basename $compiler
11579cc_basename=$func_cc_basename_result
11580
11581
11582# Only perform the check for file, if the check method requires it
11583test -z "$MAGIC_CMD" && MAGIC_CMD=file
11584case $deplibs_check_method in
11585file_magic*)
11586 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11588$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11589if ${lt_cv_path_MAGIC_CMD+:} false; then :
11590 $as_echo_n "(cached) " >&6
11591else
11592 case $MAGIC_CMD in
11593[\\/*] | ?:[\\/]*)
11594 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11595 ;;
11596*)
11597 lt_save_MAGIC_CMD=$MAGIC_CMD
11598 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11599 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11600 for ac_dir in $ac_dummy; do
11601 IFS=$lt_save_ifs
11602 test -z "$ac_dir" && ac_dir=.
11603 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11604 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11605 if test -n "$file_magic_test_file"; then
11606 case $deplibs_check_method in
11607 "file_magic "*)
11608 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11609 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11610 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11611 $EGREP "$file_magic_regex" > /dev/null; then
11612 :
11613 else
11614 cat <<_LT_EOF 1>&2
11615
11616*** Warning: the command libtool uses to detect shared libraries,
11617*** $file_magic_cmd, produces output that libtool cannot recognize.
11618*** The result is that libtool may fail to recognize shared libraries
11619*** as such. This will affect the creation of libtool libraries that
11620*** depend on shared libraries, but programs linked with such libtool
11621*** libraries will work regardless of this problem. Nevertheless, you
11622*** may want to report the problem to your system manager and/or to
11623*** bug-libtool@gnu.org
11624
11625_LT_EOF
11626 fi ;;
11627 esac
11628 fi
11629 break
11630 fi
11631 done
11632 IFS=$lt_save_ifs
11633 MAGIC_CMD=$lt_save_MAGIC_CMD
11634 ;;
11635esac
11636fi
11637
11638MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11639if test -n "$MAGIC_CMD"; then
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11641$as_echo "$MAGIC_CMD" >&6; }
11642else
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
11645fi
11646
11647
11648
11649
11650
11651if test -z "$lt_cv_path_MAGIC_CMD"; then
11652 if test -n "$ac_tool_prefix"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11654$as_echo_n "checking for file... " >&6; }
11655if ${lt_cv_path_MAGIC_CMD+:} false; then :
11656 $as_echo_n "(cached) " >&6
11657else
11658 case $MAGIC_CMD in
11659[\\/*] | ?:[\\/]*)
11660 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11661 ;;
11662*)
11663 lt_save_MAGIC_CMD=$MAGIC_CMD
11664 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11665 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11666 for ac_dir in $ac_dummy; do
11667 IFS=$lt_save_ifs
11668 test -z "$ac_dir" && ac_dir=.
11669 if test -f "$ac_dir/file"; then
11670 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11671 if test -n "$file_magic_test_file"; then
11672 case $deplibs_check_method in
11673 "file_magic "*)
11674 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11675 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11676 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11677 $EGREP "$file_magic_regex" > /dev/null; then
11678 :
11679 else
11680 cat <<_LT_EOF 1>&2
11681
11682*** Warning: the command libtool uses to detect shared libraries,
11683*** $file_magic_cmd, produces output that libtool cannot recognize.
11684*** The result is that libtool may fail to recognize shared libraries
11685*** as such. This will affect the creation of libtool libraries that
11686*** depend on shared libraries, but programs linked with such libtool
11687*** libraries will work regardless of this problem. Nevertheless, you
11688*** may want to report the problem to your system manager and/or to
11689*** bug-libtool@gnu.org
11690
11691_LT_EOF
11692 fi ;;
11693 esac
11694 fi
11695 break
11696 fi
11697 done
11698 IFS=$lt_save_ifs
11699 MAGIC_CMD=$lt_save_MAGIC_CMD
11700 ;;
11701esac
11702fi
11703
11704MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11705if test -n "$MAGIC_CMD"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11707$as_echo "$MAGIC_CMD" >&6; }
11708else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
11711fi
11712
11713
11714 else
11715 MAGIC_CMD=:
11716 fi
11717fi
11718
11719 fi
11720 ;;
11721esac
11722
11723# Use C for the default configuration in the libtool script
11724
11725lt_save_CC=$CC
11726ac_ext=c
11727ac_cpp='$CPP $CPPFLAGS'
11728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11730ac_compiler_gnu=$ac_cv_c_compiler_gnu
11731
11732
11733# Source file extension for C test sources.
11734ac_ext=c
11735
11736# Object file extension for compiled C test sources.
11737objext=o
11738objext=$objext
11739
11740# Code to be used in simple compile tests
11741lt_simple_compile_test_code="int some_variable = 0;"
11742
11743# Code to be used in simple link tests
11744lt_simple_link_test_code='int main(){return(0);}'
11745
11746
11747
11748
11749
11750
11751
11752# If no C compiler was specified, use CC.
11753LTCC=${LTCC-"$CC"}
11754
11755# If no C compiler flags were specified, use CFLAGS.
11756LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11757
11758# Allow CC to be a program name with arguments.
11759compiler=$CC
11760
11761# Save the default compiler, since it gets overwritten when the other
11762# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11763compiler_DEFAULT=$CC
11764
11765# save warnings/boilerplate of simple test code
11766ac_outfile=conftest.$ac_objext
11767echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11768eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11769_lt_compiler_boilerplate=`cat conftest.err`
11770$RM conftest*
11771
11772ac_outfile=conftest.$ac_objext
11773echo "$lt_simple_link_test_code" >conftest.$ac_ext
11774eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11775_lt_linker_boilerplate=`cat conftest.err`
11776$RM -r conftest*
11777
11778
11779## CAVEAT EMPTOR:
11780## There is no encapsulation within the following macros, do not change
11781## the running order or otherwise move them around unless you know exactly
11782## what you are doing...
11783if test -n "$compiler"; then
11784
11785lt_prog_compiler_no_builtin_flag=
11786
11787if test yes = "$GCC"; then
11788 case $cc_basename in
11789 nvcc*)
11790 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11791 *)
11792 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11793 esac
11794
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11796$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11797if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799else
11800 lt_cv_prog_compiler_rtti_exceptions=no
11801 ac_outfile=conftest.$ac_objext
11802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11803 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11804 # Insert the option either (1) after the last *FLAGS variable, or
11805 # (2) before a word containing "conftest.", or (3) at the end.
11806 # Note that $ac_compile itself does not contain backslashes and begins
11807 # with a dollar sign (not a hyphen), so the echo should work correctly.
11808 # The option is referenced via a variable to avoid confusing sed.
11809 lt_compile=`echo "$ac_compile" | $SED \
11810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11812 -e 's:$: $lt_compiler_flag:'`
11813 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11814 (eval "$lt_compile" 2>conftest.err)
11815 ac_status=$?
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 if (exit $ac_status) && test -s "$ac_outfile"; then
11819 # The compiler can only warn and ignore the option if not recognized
11820 # So say no if there are warnings other than the usual output.
11821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11824 lt_cv_prog_compiler_rtti_exceptions=yes
11825 fi
11826 fi
11827 $RM conftest*
11828
11829fi
11830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11831$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11832
11833if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11834 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11835else
11836 :
11837fi
11838
11839fi
11840
11841
11842
11843
11844
11845
11846 lt_prog_compiler_wl=
11847lt_prog_compiler_pic=
11848lt_prog_compiler_static=
11849
11850
11851 if test yes = "$GCC"; then
11852 lt_prog_compiler_wl='-Wl,'
11853 lt_prog_compiler_static='-static'
11854
11855 case $host_os in
11856 aix*)
11857 # All AIX code is PIC.
11858 if test ia64 = "$host_cpu"; then
11859 # AIX 5 now supports IA64 processor
11860 lt_prog_compiler_static='-Bstatic'
11861 fi
11862 lt_prog_compiler_pic='-fPIC'
11863 ;;
11864
11865 amigaos*)
11866 case $host_cpu in
11867 powerpc)
11868 # see comment about AmigaOS4 .so support
11869 lt_prog_compiler_pic='-fPIC'
11870 ;;
11871 m68k)
11872 # FIXME: we need at least 68020 code to build shared libraries, but
11873 # adding the '-m68020' flag to GCC prevents building anything better,
11874 # like '-m68040'.
11875 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11876 ;;
11877 esac
11878 ;;
11879
11880 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11881 # PIC is the default for these OSes.
11882 ;;
11883
11884 mingw* | cygwin* | pw32* | os2* | cegcc*)
11885 # This hack is so that the source file can tell whether it is being
11886 # built for inclusion in a dll (and should export symbols for example).
11887 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11888 # (--disable-auto-import) libraries
11889 lt_prog_compiler_pic='-DDLL_EXPORT'
11890 case $host_os in
11891 os2*)
11892 lt_prog_compiler_static='$wl-static'
11893 ;;
11894 esac
11895 ;;
11896
11897 darwin* | rhapsody*)
11898 # PIC is the default on this platform
11899 # Common symbols not allowed in MH_DYLIB files
11900 lt_prog_compiler_pic='-fno-common'
11901 ;;
11902
11903 haiku*)
11904 # PIC is the default for Haiku.
11905 # The "-static" flag exists, but is broken.
11906 lt_prog_compiler_static=
11907 ;;
11908
11909 hpux*)
11910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11912 # sets the default TLS model and affects inlining.
11913 case $host_cpu in
11914 hppa*64*)
11915 # +Z the default
11916 ;;
11917 *)
11918 lt_prog_compiler_pic='-fPIC'
11919 ;;
11920 esac
11921 ;;
11922
11923 interix[3-9]*)
11924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11925 # Instead, we relocate shared libraries at runtime.
11926 ;;
11927
11928 msdosdjgpp*)
11929 # Just because we use GCC doesn't mean we suddenly get shared libraries
11930 # on systems that don't support them.
11931 lt_prog_compiler_can_build_shared=no
11932 enable_shared=no
11933 ;;
11934
11935 *nto* | *qnx*)
11936 # QNX uses GNU C++, but need to define -shared option too, otherwise
11937 # it will coredump.
11938 lt_prog_compiler_pic='-fPIC -shared'
11939 ;;
11940
11941 sysv4*MP*)
11942 if test -d /usr/nec; then
11943 lt_prog_compiler_pic=-Kconform_pic
11944 fi
11945 ;;
11946
11947 *)
11948 lt_prog_compiler_pic='-fPIC'
11949 ;;
11950 esac
11951
11952 case $cc_basename in
11953 nvcc*) # Cuda Compiler Driver 2.2
11954 lt_prog_compiler_wl='-Xlinker '
11955 if test -n "$lt_prog_compiler_pic"; then
11956 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11957 fi
11958 ;;
11959 esac
11960 else
11961 # PORTME Check for flag to pass linker flags through the system compiler.
11962 case $host_os in
11963 aix*)
11964 lt_prog_compiler_wl='-Wl,'
11965 if test ia64 = "$host_cpu"; then
11966 # AIX 5 now supports IA64 processor
11967 lt_prog_compiler_static='-Bstatic'
11968 else
11969 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11970 fi
11971 ;;
11972
11973 darwin* | rhapsody*)
11974 # PIC is the default on this platform
11975 # Common symbols not allowed in MH_DYLIB files
11976 lt_prog_compiler_pic='-fno-common'
11977 case $cc_basename in
11978 nagfor*)
11979 # NAG Fortran compiler
11980 lt_prog_compiler_wl='-Wl,-Wl,,'
11981 lt_prog_compiler_pic='-PIC'
11982 lt_prog_compiler_static='-Bstatic'
11983 ;;
11984 esac
11985 ;;
11986
11987 mingw* | cygwin* | pw32* | os2* | cegcc*)
11988 # This hack is so that the source file can tell whether it is being
11989 # built for inclusion in a dll (and should export symbols for example).
11990 lt_prog_compiler_pic='-DDLL_EXPORT'
11991 case $host_os in
11992 os2*)
11993 lt_prog_compiler_static='$wl-static'
11994 ;;
11995 esac
11996 ;;
11997
11998 hpux9* | hpux10* | hpux11*)
11999 lt_prog_compiler_wl='-Wl,'
12000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12001 # not for PA HP-UX.
12002 case $host_cpu in
12003 hppa*64*|ia64*)
12004 # +Z the default
12005 ;;
12006 *)
12007 lt_prog_compiler_pic='+Z'
12008 ;;
12009 esac
12010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12011 lt_prog_compiler_static='$wl-a ${wl}archive'
12012 ;;
12013
12014 irix5* | irix6* | nonstopux*)
12015 lt_prog_compiler_wl='-Wl,'
12016 # PIC (with -KPIC) is the default.
12017 lt_prog_compiler_static='-non_shared'
12018 ;;
12019
12020 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12021 case $cc_basename in
12022 # old Intel for x86_64, which still supported -KPIC.
12023 ecc*)
12024 lt_prog_compiler_wl='-Wl,'
12025 lt_prog_compiler_pic='-KPIC'
12026 lt_prog_compiler_static='-static'
12027 ;;
12028 # icc used to be incompatible with GCC.
12029 # ICC 10 doesn't accept -KPIC any more.
12030 icc* | ifort*)
12031 lt_prog_compiler_wl='-Wl,'
12032 lt_prog_compiler_pic='-fPIC'
12033 lt_prog_compiler_static='-static'
12034 ;;
12035 # Lahey Fortran 8.1.
12036 lf95*)
12037 lt_prog_compiler_wl='-Wl,'
12038 lt_prog_compiler_pic='--shared'
12039 lt_prog_compiler_static='--static'
12040 ;;
12041 nagfor*)
12042 # NAG Fortran compiler
12043 lt_prog_compiler_wl='-Wl,-Wl,,'
12044 lt_prog_compiler_pic='-PIC'
12045 lt_prog_compiler_static='-Bstatic'
12046 ;;
12047 tcc*)
12048 # Fabrice Bellard et al's Tiny C Compiler
12049 lt_prog_compiler_wl='-Wl,'
12050 lt_prog_compiler_pic='-fPIC'
12051 lt_prog_compiler_static='-static'
12052 ;;
12053 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12054 # Portland Group compilers (*not* the Pentium gcc compiler,
12055 # which looks to be a dead project)
12056 lt_prog_compiler_wl='-Wl,'
12057 lt_prog_compiler_pic='-fpic'
12058 lt_prog_compiler_static='-Bstatic'
12059 ;;
12060 ccc*)
12061 lt_prog_compiler_wl='-Wl,'
12062 # All Alpha code is PIC.
12063 lt_prog_compiler_static='-non_shared'
12064 ;;
12065 xl* | bgxl* | bgf* | mpixl*)
12066 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12067 lt_prog_compiler_wl='-Wl,'
12068 lt_prog_compiler_pic='-qpic'
12069 lt_prog_compiler_static='-qstaticlink'
12070 ;;
12071 *)
12072 case `$CC -V 2>&1 | sed 5q` in
12073 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12074 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12075 lt_prog_compiler_pic='-KPIC'
12076 lt_prog_compiler_static='-Bstatic'
12077 lt_prog_compiler_wl=''
12078 ;;
12079 *Sun\ F* | *Sun*Fortran*)
12080 lt_prog_compiler_pic='-KPIC'
12081 lt_prog_compiler_static='-Bstatic'
12082 lt_prog_compiler_wl='-Qoption ld '
12083 ;;
12084 *Sun\ C*)
12085 # Sun C 5.9
12086 lt_prog_compiler_pic='-KPIC'
12087 lt_prog_compiler_static='-Bstatic'
12088 lt_prog_compiler_wl='-Wl,'
12089 ;;
12090 *Intel*\ [CF]*Compiler*)
12091 lt_prog_compiler_wl='-Wl,'
12092 lt_prog_compiler_pic='-fPIC'
12093 lt_prog_compiler_static='-static'
12094 ;;
12095 *Portland\ Group*)
12096 lt_prog_compiler_wl='-Wl,'
12097 lt_prog_compiler_pic='-fpic'
12098 lt_prog_compiler_static='-Bstatic'
12099 ;;
12100 esac
12101 ;;
12102 esac
12103 ;;
12104
12105 newsos6)
12106 lt_prog_compiler_pic='-KPIC'
12107 lt_prog_compiler_static='-Bstatic'
12108 ;;
12109
12110 *nto* | *qnx*)
12111 # QNX uses GNU C++, but need to define -shared option too, otherwise
12112 # it will coredump.
12113 lt_prog_compiler_pic='-fPIC -shared'
12114 ;;
12115
12116 osf3* | osf4* | osf5*)
12117 lt_prog_compiler_wl='-Wl,'
12118 # All OSF/1 code is PIC.
12119 lt_prog_compiler_static='-non_shared'
12120 ;;
12121
12122 rdos*)
12123 lt_prog_compiler_static='-non_shared'
12124 ;;
12125
12126 solaris*)
12127 lt_prog_compiler_pic='-KPIC'
12128 lt_prog_compiler_static='-Bstatic'
12129 case $cc_basename in
12130 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12131 lt_prog_compiler_wl='-Qoption ld ';;
12132 *)
12133 lt_prog_compiler_wl='-Wl,';;
12134 esac
12135 ;;
12136
12137 sunos4*)
12138 lt_prog_compiler_wl='-Qoption ld '
12139 lt_prog_compiler_pic='-PIC'
12140 lt_prog_compiler_static='-Bstatic'
12141 ;;
12142
12143 sysv4 | sysv4.2uw2* | sysv4.3*)
12144 lt_prog_compiler_wl='-Wl,'
12145 lt_prog_compiler_pic='-KPIC'
12146 lt_prog_compiler_static='-Bstatic'
12147 ;;
12148
12149 sysv4*MP*)
12150 if test -d /usr/nec; then
12151 lt_prog_compiler_pic='-Kconform_pic'
12152 lt_prog_compiler_static='-Bstatic'
12153 fi
12154 ;;
12155
12156 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12157 lt_prog_compiler_wl='-Wl,'
12158 lt_prog_compiler_pic='-KPIC'
12159 lt_prog_compiler_static='-Bstatic'
12160 ;;
12161
12162 unicos*)
12163 lt_prog_compiler_wl='-Wl,'
12164 lt_prog_compiler_can_build_shared=no
12165 ;;
12166
12167 uts4*)
12168 lt_prog_compiler_pic='-pic'
12169 lt_prog_compiler_static='-Bstatic'
12170 ;;
12171
12172 *)
12173 lt_prog_compiler_can_build_shared=no
12174 ;;
12175 esac
12176 fi
12177
12178case $host_os in
12179 # For platforms that do not support PIC, -DPIC is meaningless:
12180 *djgpp*)
12181 lt_prog_compiler_pic=
12182 ;;
12183 *)
12184 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12185 ;;
12186esac
12187
12188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12189$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12190if ${lt_cv_prog_compiler_pic+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192else
12193 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12196$as_echo "$lt_cv_prog_compiler_pic" >&6; }
12197lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12198
12199#
12200# Check to make sure the PIC flag actually works.
12201#
12202if test -n "$lt_prog_compiler_pic"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12204$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12205if ${lt_cv_prog_compiler_pic_works+:} false; then :
12206 $as_echo_n "(cached) " >&6
12207else
12208 lt_cv_prog_compiler_pic_works=no
12209 ac_outfile=conftest.$ac_objext
12210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12211 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12212 # Insert the option either (1) after the last *FLAGS variable, or
12213 # (2) before a word containing "conftest.", or (3) at the end.
12214 # Note that $ac_compile itself does not contain backslashes and begins
12215 # with a dollar sign (not a hyphen), so the echo should work correctly.
12216 # The option is referenced via a variable to avoid confusing sed.
12217 lt_compile=`echo "$ac_compile" | $SED \
12218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12220 -e 's:$: $lt_compiler_flag:'`
12221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12222 (eval "$lt_compile" 2>conftest.err)
12223 ac_status=$?
12224 cat conftest.err >&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 if (exit $ac_status) && test -s "$ac_outfile"; then
12227 # The compiler can only warn and ignore the option if not recognized
12228 # So say no if there are warnings other than the usual output.
12229 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12232 lt_cv_prog_compiler_pic_works=yes
12233 fi
12234 fi
12235 $RM conftest*
12236
12237fi
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12239$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12240
12241if test yes = "$lt_cv_prog_compiler_pic_works"; then
12242 case $lt_prog_compiler_pic in
12243 "" | " "*) ;;
12244 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12245 esac
12246else
12247 lt_prog_compiler_pic=
12248 lt_prog_compiler_can_build_shared=no
12249fi
12250
12251fi
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263#
12264# Check to make sure the static flag actually works.
12265#
12266wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12268$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12269if ${lt_cv_prog_compiler_static_works+:} false; then :
12270 $as_echo_n "(cached) " >&6
12271else
12272 lt_cv_prog_compiler_static_works=no
12273 save_LDFLAGS=$LDFLAGS
12274 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12275 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12276 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12277 # The linker can only warn and ignore the option if not recognized
12278 # So say no if there are warnings
12279 if test -s conftest.err; then
12280 # Append any errors to the config.log.
12281 cat conftest.err 1>&5
12282 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12283 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12284 if diff conftest.exp conftest.er2 >/dev/null; then
12285 lt_cv_prog_compiler_static_works=yes
12286 fi
12287 else
12288 lt_cv_prog_compiler_static_works=yes
12289 fi
12290 fi
12291 $RM -r conftest*
12292 LDFLAGS=$save_LDFLAGS
12293
12294fi
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12296$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12297
12298if test yes = "$lt_cv_prog_compiler_static_works"; then
12299 :
12300else
12301 lt_prog_compiler_static=
12302fi
12303
12304
12305
12306
12307
12308
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12311$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12312if ${lt_cv_prog_compiler_c_o+:} false; then :
12313 $as_echo_n "(cached) " >&6
12314else
12315 lt_cv_prog_compiler_c_o=no
12316 $RM -r conftest 2>/dev/null
12317 mkdir conftest
12318 cd conftest
12319 mkdir out
12320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12321
12322 lt_compiler_flag="-o out/conftest2.$ac_objext"
12323 # Insert the option either (1) after the last *FLAGS variable, or
12324 # (2) before a word containing "conftest.", or (3) at the end.
12325 # Note that $ac_compile itself does not contain backslashes and begins
12326 # with a dollar sign (not a hyphen), so the echo should work correctly.
12327 lt_compile=`echo "$ac_compile" | $SED \
12328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12330 -e 's:$: $lt_compiler_flag:'`
12331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12332 (eval "$lt_compile" 2>out/conftest.err)
12333 ac_status=$?
12334 cat out/conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12337 then
12338 # The compiler can only warn and ignore the option if not recognized
12339 # So say no if there are warnings
12340 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12341 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12342 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12343 lt_cv_prog_compiler_c_o=yes
12344 fi
12345 fi
12346 chmod u+w . 2>&5
12347 $RM conftest*
12348 # SGI C++ compiler will create directory out/ii_files/ for
12349 # template instantiation
12350 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12351 $RM out/* && rmdir out
12352 cd ..
12353 $RM -r conftest
12354 $RM conftest*
12355
12356fi
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12358$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12359
12360
12361
12362
12363
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12366$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12367if ${lt_cv_prog_compiler_c_o+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369else
12370 lt_cv_prog_compiler_c_o=no
12371 $RM -r conftest 2>/dev/null
12372 mkdir conftest
12373 cd conftest
12374 mkdir out
12375 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12376
12377 lt_compiler_flag="-o out/conftest2.$ac_objext"
12378 # Insert the option either (1) after the last *FLAGS variable, or
12379 # (2) before a word containing "conftest.", or (3) at the end.
12380 # Note that $ac_compile itself does not contain backslashes and begins
12381 # with a dollar sign (not a hyphen), so the echo should work correctly.
12382 lt_compile=`echo "$ac_compile" | $SED \
12383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12385 -e 's:$: $lt_compiler_flag:'`
12386 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12387 (eval "$lt_compile" 2>out/conftest.err)
12388 ac_status=$?
12389 cat out/conftest.err >&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12392 then
12393 # The compiler can only warn and ignore the option if not recognized
12394 # So say no if there are warnings
12395 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12398 lt_cv_prog_compiler_c_o=yes
12399 fi
12400 fi
12401 chmod u+w . 2>&5
12402 $RM conftest*
12403 # SGI C++ compiler will create directory out/ii_files/ for
12404 # template instantiation
12405 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12406 $RM out/* && rmdir out
12407 cd ..
12408 $RM -r conftest
12409 $RM conftest*
12410
12411fi
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12413$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12414
12415
12416
12417
12418hard_links=nottested
12419if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12420 # do not overwrite the value of need_locks provided by the user
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12422$as_echo_n "checking if we can lock with hard links... " >&6; }
12423 hard_links=yes
12424 $RM conftest*
12425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12426 touch conftest.a
12427 ln conftest.a conftest.b 2>&5 || hard_links=no
12428 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12430$as_echo "$hard_links" >&6; }
12431 if test no = "$hard_links"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12433$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12434 need_locks=warn
12435 fi
12436else
12437 need_locks=no
12438fi
12439
12440
12441
12442
12443
12444
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12446$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12447
12448 runpath_var=
12449 allow_undefined_flag=
12450 always_export_symbols=no
12451 archive_cmds=
12452 archive_expsym_cmds=
12453 compiler_needs_object=no
12454 enable_shared_with_static_runtimes=no
12455 export_dynamic_flag_spec=
12456 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12457 hardcode_automatic=no
12458 hardcode_direct=no
12459 hardcode_direct_absolute=no
12460 hardcode_libdir_flag_spec=
12461 hardcode_libdir_separator=
12462 hardcode_minus_L=no
12463 hardcode_shlibpath_var=unsupported
12464 inherit_rpath=no
12465 link_all_deplibs=unknown
12466 module_cmds=
12467 module_expsym_cmds=
12468 old_archive_from_new_cmds=
12469 old_archive_from_expsyms_cmds=
12470 thread_safe_flag_spec=
12471 whole_archive_flag_spec=
12472 # include_expsyms should be a list of space-separated symbols to be *always*
12473 # included in the symbol list
12474 include_expsyms=
12475 # exclude_expsyms can be an extended regexp of symbols to exclude
12476 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12477 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12478 # as well as any symbol that contains 'd'.
12479 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12480 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12481 # platforms (ab)use it in PIC code, but their linkers get confused if
12482 # the symbol is explicitly referenced. Since portable code cannot
12483 # rely on this symbol name, it's probably fine to never include it in
12484 # preloaded symbol tables.
12485 # Exclude shared library initialization/finalization symbols.
12486 extract_expsyms_cmds=
12487
12488 case $host_os in
12489 cygwin* | mingw* | pw32* | cegcc*)
12490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12491 # When not using gcc, we currently assume that we are using
12492 # Microsoft Visual C++.
12493 if test yes != "$GCC"; then
12494 with_gnu_ld=no
12495 fi
12496 ;;
12497 interix*)
12498 # we just hope/assume this is gcc and not c89 (= MSVC++)
12499 with_gnu_ld=yes
12500 ;;
12501 openbsd* | bitrig*)
12502 with_gnu_ld=no
12503 ;;
12504 linux* | k*bsd*-gnu | gnu*)
12505 link_all_deplibs=no
12506 ;;
12507 esac
12508
12509 ld_shlibs=yes
12510
12511 # On some targets, GNU ld is compatible enough with the native linker
12512 # that we're better off using the native interface for both.
12513 lt_use_gnu_ld_interface=no
12514 if test yes = "$with_gnu_ld"; then
12515 case $host_os in
12516 aix*)
12517 # The AIX port of GNU ld has always aspired to compatibility
12518 # with the native linker. However, as the warning in the GNU ld
12519 # block says, versions before 2.19.5* couldn't really create working
12520 # shared libraries, regardless of the interface used.
12521 case `$LD -v 2>&1` in
12522 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12523 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12524 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12525 *)
12526 lt_use_gnu_ld_interface=yes
12527 ;;
12528 esac
12529 ;;
12530 *)
12531 lt_use_gnu_ld_interface=yes
12532 ;;
12533 esac
12534 fi
12535
12536 if test yes = "$lt_use_gnu_ld_interface"; then
12537 # If archive_cmds runs LD, not CC, wlarc should be empty
12538 wlarc='$wl'
12539
12540 # Set some defaults for GNU ld with shared library support. These
12541 # are reset later if shared libraries are not supported. Putting them
12542 # here allows them to be overridden if necessary.
12543 runpath_var=LD_RUN_PATH
12544 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12545 export_dynamic_flag_spec='$wl--export-dynamic'
12546 # ancient GNU ld didn't support --whole-archive et. al.
12547 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12548 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12549 else
12550 whole_archive_flag_spec=
12551 fi
12552 supports_anon_versioning=no
12553 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12554 *GNU\ gold*) supports_anon_versioning=yes ;;
12555 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12556 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12557 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12558 *\ 2.11.*) ;; # other 2.11 versions
12559 *) supports_anon_versioning=yes ;;
12560 esac
12561
12562 # See if GNU ld supports shared libraries.
12563 case $host_os in
12564 aix[3-9]*)
12565 # On AIX/PPC, the GNU linker is very broken
12566 if test ia64 != "$host_cpu"; then
12567 ld_shlibs=no
12568 cat <<_LT_EOF 1>&2
12569
12570*** Warning: the GNU linker, at least up to release 2.19, is reported
12571*** to be unable to reliably create shared libraries on AIX.
12572*** Therefore, libtool is disabling shared libraries support. If you
12573*** really care for shared libraries, you may want to install binutils
12574*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12575*** You will then need to restart the configuration process.
12576
12577_LT_EOF
12578 fi
12579 ;;
12580
12581 amigaos*)
12582 case $host_cpu in
12583 powerpc)
12584 # see comment about AmigaOS4 .so support
12585 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12586 archive_expsym_cmds=''
12587 ;;
12588 m68k)
12589 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)'
12590 hardcode_libdir_flag_spec='-L$libdir'
12591 hardcode_minus_L=yes
12592 ;;
12593 esac
12594 ;;
12595
12596 beos*)
12597 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12598 allow_undefined_flag=unsupported
12599 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12600 # support --undefined. This deserves some investigation. FIXME
12601 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12602 else
12603 ld_shlibs=no
12604 fi
12605 ;;
12606
12607 cygwin* | mingw* | pw32* | cegcc*)
12608 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12609 # as there is no search path for DLLs.
12610 hardcode_libdir_flag_spec='-L$libdir'
12611 export_dynamic_flag_spec='$wl--export-all-symbols'
12612 allow_undefined_flag=unsupported
12613 always_export_symbols=no
12614 enable_shared_with_static_runtimes=yes
12615 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'
12616 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12617
12618 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12620 # If the export-symbols file already is a .def file, use it as
12621 # is; otherwise, prepend EXPORTS...
12622 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12623 cp $export_symbols $output_objdir/$soname.def;
12624 else
12625 echo EXPORTS > $output_objdir/$soname.def;
12626 cat $export_symbols >> $output_objdir/$soname.def;
12627 fi~
12628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12629 else
12630 ld_shlibs=no
12631 fi
12632 ;;
12633
12634 haiku*)
12635 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12636 link_all_deplibs=yes
12637 ;;
12638
12639 os2*)
12640 hardcode_libdir_flag_spec='-L$libdir'
12641 hardcode_minus_L=yes
12642 allow_undefined_flag=unsupported
12643 shrext_cmds=.dll
12644 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12645 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12646 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12647 $ECHO EXPORTS >> $output_objdir/$libname.def~
12648 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12649 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12650 emximp -o $lib $output_objdir/$libname.def'
12651 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12652 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12653 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12654 $ECHO EXPORTS >> $output_objdir/$libname.def~
12655 prefix_cmds="$SED"~
12656 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12657 prefix_cmds="$prefix_cmds -e 1d";
12658 fi~
12659 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12660 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12661 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12662 emximp -o $lib $output_objdir/$libname.def'
12663 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12664 enable_shared_with_static_runtimes=yes
12665 ;;
12666
12667 interix[3-9]*)
12668 hardcode_direct=no
12669 hardcode_shlibpath_var=no
12670 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12671 export_dynamic_flag_spec='$wl-E'
12672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12673 # Instead, shared libraries are loaded at an image base (0x10000000 by
12674 # default) and relocated if they conflict, which is a slow very memory
12675 # consuming and fragmenting process. To avoid this, we pick a random,
12676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12677 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12679 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'
12680 ;;
12681
12682 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12683 tmp_diet=no
12684 if test linux-dietlibc = "$host_os"; then
12685 case $cc_basename in
12686 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12687 esac
12688 fi
12689 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12690 && test no = "$tmp_diet"
12691 then
12692 tmp_addflag=' $pic_flag'
12693 tmp_sharedflag='-shared'
12694 case $cc_basename,$host_cpu in
12695 pgcc*) # Portland Group C compiler
12696 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'
12697 tmp_addflag=' $pic_flag'
12698 ;;
12699 pgf77* | pgf90* | pgf95* | pgfortran*)
12700 # Portland Group f77 and f90 compilers
12701 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'
12702 tmp_addflag=' $pic_flag -Mnomain' ;;
12703 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12704 tmp_addflag=' -i_dynamic' ;;
12705 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12706 tmp_addflag=' -i_dynamic -nofor_main' ;;
12707 ifc* | ifort*) # Intel Fortran compiler
12708 tmp_addflag=' -nofor_main' ;;
12709 lf95*) # Lahey Fortran 8.1
12710 whole_archive_flag_spec=
12711 tmp_sharedflag='--shared' ;;
12712 nagfor*) # NAGFOR 5.3
12713 tmp_sharedflag='-Wl,-shared' ;;
12714 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12715 tmp_sharedflag='-qmkshrobj'
12716 tmp_addflag= ;;
12717 nvcc*) # Cuda Compiler Driver 2.2
12718 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'
12719 compiler_needs_object=yes
12720 ;;
12721 esac
12722 case `$CC -V 2>&1 | sed 5q` in
12723 *Sun\ C*) # Sun C 5.9
12724 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'
12725 compiler_needs_object=yes
12726 tmp_sharedflag='-G' ;;
12727 *Sun\ F*) # Sun Fortran 8.3
12728 tmp_sharedflag='-G' ;;
12729 esac
12730 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12731
12732 if test yes = "$supports_anon_versioning"; then
12733 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12735 echo "local: *; };" >> $output_objdir/$libname.ver~
12736 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12737 fi
12738
12739 case $cc_basename in
12740 tcc*)
12741 export_dynamic_flag_spec='-rdynamic'
12742 ;;
12743 xlf* | bgf* | bgxlf* | mpixlf*)
12744 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12745 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12746 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12747 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12748 if test yes = "$supports_anon_versioning"; then
12749 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12751 echo "local: *; };" >> $output_objdir/$libname.ver~
12752 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12753 fi
12754 ;;
12755 esac
12756 else
12757 ld_shlibs=no
12758 fi
12759 ;;
12760
12761 netbsd* | netbsdelf*-gnu)
12762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12763 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12764 wlarc=
12765 else
12766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12768 fi
12769 ;;
12770
12771 solaris*)
12772 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12773 ld_shlibs=no
12774 cat <<_LT_EOF 1>&2
12775
12776*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12777*** create shared libraries on Solaris systems. Therefore, libtool
12778*** is disabling shared libraries support. We urge you to upgrade GNU
12779*** binutils to release 2.9.1 or newer. Another option is to modify
12780*** your PATH or compiler configuration so that the native linker is
12781*** used, and then restart.
12782
12783_LT_EOF
12784 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12785 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12786 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12787 else
12788 ld_shlibs=no
12789 fi
12790 ;;
12791
12792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12793 case `$LD -v 2>&1` in
12794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12795 ld_shlibs=no
12796 cat <<_LT_EOF 1>&2
12797
12798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12799*** reliably create shared libraries on SCO systems. Therefore, libtool
12800*** is disabling shared libraries support. We urge you to upgrade GNU
12801*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12802*** your PATH or compiler configuration so that the native linker is
12803*** used, and then restart.
12804
12805_LT_EOF
12806 ;;
12807 *)
12808 # For security reasons, it is highly recommended that you always
12809 # use absolute paths for naming shared libraries, and exclude the
12810 # DT_RUNPATH tag from executables and libraries. But doing so
12811 # requires that you compile everything twice, which is a pain.
12812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12816 else
12817 ld_shlibs=no
12818 fi
12819 ;;
12820 esac
12821 ;;
12822
12823 sunos4*)
12824 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12825 wlarc=
12826 hardcode_direct=yes
12827 hardcode_shlibpath_var=no
12828 ;;
12829
12830 *)
12831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12833 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12834 else
12835 ld_shlibs=no
12836 fi
12837 ;;
12838 esac
12839
12840 if test no = "$ld_shlibs"; then
12841 runpath_var=
12842 hardcode_libdir_flag_spec=
12843 export_dynamic_flag_spec=
12844 whole_archive_flag_spec=
12845 fi
12846 else
12847 # PORTME fill in a description of your system's linker (not GNU ld)
12848 case $host_os in
12849 aix3*)
12850 allow_undefined_flag=unsupported
12851 always_export_symbols=yes
12852 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'
12853 # Note: this linker hardcodes the directories in LIBPATH if there
12854 # are no directories specified by -L.
12855 hardcode_minus_L=yes
12856 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12857 # Neither direct hardcoding nor static linking is supported with a
12858 # broken collect2.
12859 hardcode_direct=unsupported
12860 fi
12861 ;;
12862
12863 aix[4-9]*)
12864 if test ia64 = "$host_cpu"; then
12865 # On IA64, the linker does run time linking by default, so we don't
12866 # have to do anything special.
12867 aix_use_runtimelinking=no
12868 exp_sym_flag='-Bexport'
12869 no_entry_flag=
12870 else
12871 # If we're using GNU nm, then we don't want the "-C" option.
12872 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12873 # Without the "-l" option, or with the "-B" option, AIX nm treats
12874 # weak defined symbols like other global defined symbols, whereas
12875 # GNU nm marks them as "W".
12876 # While the 'weak' keyword is ignored in the Export File, we need
12877 # it in the Import File for the 'aix-soname' feature, so we have
12878 # to replace the "-B" option with "-P" for AIX nm.
12879 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12880 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'
12881 else
12882 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12883 fi
12884 aix_use_runtimelinking=no
12885
12886 # Test if we are trying to use run time linking or normal
12887 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12888 # have runtime linking enabled, and use it for executables.
12889 # For shared libraries, we enable/disable runtime linking
12890 # depending on the kind of the shared library created -
12891 # when "with_aix_soname,aix_use_runtimelinking" is:
12892 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12893 # "aix,yes" lib.so shared, rtl:yes, for executables
12894 # lib.a static archive
12895 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12896 # lib.a(lib.so.V) shared, rtl:no, for executables
12897 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12898 # lib.a(lib.so.V) shared, rtl:no
12899 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12900 # lib.a static archive
12901 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12902 for ld_flag in $LDFLAGS; do
12903 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12904 aix_use_runtimelinking=yes
12905 break
12906 fi
12907 done
12908 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12909 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12910 # so we don't have lib.a shared libs to link our executables.
12911 # We have to force runtime linking in this case.
12912 aix_use_runtimelinking=yes
12913 LDFLAGS="$LDFLAGS -Wl,-brtl"
12914 fi
12915 ;;
12916 esac
12917
12918 exp_sym_flag='-bexport'
12919 no_entry_flag='-bnoentry'
12920 fi
12921
12922 # When large executables or shared objects are built, AIX ld can
12923 # have problems creating the table of contents. If linking a library
12924 # or program results in "error TOC overflow" add -mminimal-toc to
12925 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12926 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12927
12928 archive_cmds=''
12929 hardcode_direct=yes
12930 hardcode_direct_absolute=yes
12931 hardcode_libdir_separator=':'
12932 link_all_deplibs=yes
12933 file_list_spec='$wl-f,'
12934 case $with_aix_soname,$aix_use_runtimelinking in
12935 aix,*) ;; # traditional, no import file
12936 svr4,* | *,yes) # use import file
12937 # The Import File defines what to hardcode.
12938 hardcode_direct=no
12939 hardcode_direct_absolute=no
12940 ;;
12941 esac
12942
12943 if test yes = "$GCC"; then
12944 case $host_os in aix4.[012]|aix4.[012].*)
12945 # We only want to do this on AIX 4.2 and lower, the check
12946 # below for broken collect2 doesn't work under 4.3+
12947 collect2name=`$CC -print-prog-name=collect2`
12948 if test -f "$collect2name" &&
12949 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12950 then
12951 # We have reworked collect2
12952 :
12953 else
12954 # We have old collect2
12955 hardcode_direct=unsupported
12956 # It fails to find uninstalled libraries when the uninstalled
12957 # path is not listed in the libpath. Setting hardcode_minus_L
12958 # to unsupported forces relinking
12959 hardcode_minus_L=yes
12960 hardcode_libdir_flag_spec='-L$libdir'
12961 hardcode_libdir_separator=
12962 fi
12963 ;;
12964 esac
12965 shared_flag='-shared'
12966 if test yes = "$aix_use_runtimelinking"; then
12967 shared_flag="$shared_flag "'$wl-G'
12968 fi
12969 # Need to ensure runtime linking is disabled for the traditional
12970 # shared library, or the linker may eventually find shared libraries
12971 # /with/ Import File - we do not want to mix them.
12972 shared_flag_aix='-shared'
12973 shared_flag_svr4='-shared $wl-G'
12974 else
12975 # not using gcc
12976 if test ia64 = "$host_cpu"; then
12977 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12978 # chokes on -Wl,-G. The following line is correct:
12979 shared_flag='-G'
12980 else
12981 if test yes = "$aix_use_runtimelinking"; then
12982 shared_flag='$wl-G'
12983 else
12984 shared_flag='$wl-bM:SRE'
12985 fi
12986 shared_flag_aix='$wl-bM:SRE'
12987 shared_flag_svr4='$wl-G'
12988 fi
12989 fi
12990
12991 export_dynamic_flag_spec='$wl-bexpall'
12992 # It seems that -bexpall does not export symbols beginning with
12993 # underscore (_), so it is better to generate a list of symbols to export.
12994 always_export_symbols=yes
12995 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12996 # Warning - without using the other runtime loading flags (-brtl),
12997 # -berok will link without error, but may produce a broken library.
12998 allow_undefined_flag='-berok'
12999 # Determine the default libpath from the value encoded in an
13000 # empty executable.
13001 if test set = "${lt_cv_aix_libpath+set}"; then
13002 aix_libpath=$lt_cv_aix_libpath
13003else
13004 if ${lt_cv_aix_libpath_+:} false; then :
13005 $as_echo_n "(cached) " >&6
13006else
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008/* end confdefs.h. */
13009
13010int main (void)
13011{
13012
13013 ;
13014 return 0;
13015}
13016_ACEOF
13017if ac_fn_c_try_link "$LINENO"; then :
13018
13019 lt_aix_libpath_sed='
13020 /Import File Strings/,/^$/ {
13021 /^0/ {
13022 s/^0 *\([^ ]*\) *$/\1/
13023 p
13024 }
13025 }'
13026 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027 # Check for a 64-bit object if we didn't find anything.
13028 if test -z "$lt_cv_aix_libpath_"; then
13029 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13030 fi
13031fi
13032rm -f core conftest.err conftest.$ac_objext \
13033 conftest$ac_exeext conftest.$ac_ext
13034 if test -z "$lt_cv_aix_libpath_"; then
13035 lt_cv_aix_libpath_=/usr/lib:/lib
13036 fi
13037
13038fi
13039
13040 aix_libpath=$lt_cv_aix_libpath_
13041fi
13042
13043 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13044 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
13045 else
13046 if test ia64 = "$host_cpu"; then
13047 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13048 allow_undefined_flag="-z nodefs"
13049 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"
13050 else
13051 # Determine the default libpath from the value encoded in an
13052 # empty executable.
13053 if test set = "${lt_cv_aix_libpath+set}"; then
13054 aix_libpath=$lt_cv_aix_libpath
13055else
13056 if ${lt_cv_aix_libpath_+:} false; then :
13057 $as_echo_n "(cached) " >&6
13058else
13059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13060/* end confdefs.h. */
13061
13062int main (void)
13063{
13064
13065 ;
13066 return 0;
13067}
13068_ACEOF
13069if ac_fn_c_try_link "$LINENO"; then :
13070
13071 lt_aix_libpath_sed='
13072 /Import File Strings/,/^$/ {
13073 /^0/ {
13074 s/^0 *\([^ ]*\) *$/\1/
13075 p
13076 }
13077 }'
13078 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13079 # Check for a 64-bit object if we didn't find anything.
13080 if test -z "$lt_cv_aix_libpath_"; then
13081 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 fi
13083fi
13084rm -f core conftest.err conftest.$ac_objext \
13085 conftest$ac_exeext conftest.$ac_ext
13086 if test -z "$lt_cv_aix_libpath_"; then
13087 lt_cv_aix_libpath_=/usr/lib:/lib
13088 fi
13089
13090fi
13091
13092 aix_libpath=$lt_cv_aix_libpath_
13093fi
13094
13095 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13096 # Warning - without using the other run time loading flags,
13097 # -berok will link without error, but may produce a broken library.
13098 no_undefined_flag=' $wl-bernotok'
13099 allow_undefined_flag=' $wl-berok'
13100 if test yes = "$with_gnu_ld"; then
13101 # We only use this code for GNU lds that support --whole-archive.
13102 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13103 else
13104 # Exported symbols can be pulled into shared objects from archives
13105 whole_archive_flag_spec='$convenience'
13106 fi
13107 archive_cmds_need_lc=yes
13108 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13109 # -brtl affects multiple linker settings, -berok does not and is overridden later
13110 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13111 if test svr4 != "$with_aix_soname"; then
13112 # This is similar to how AIX traditionally builds its shared libraries.
13113 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'
13114 fi
13115 if test aix != "$with_aix_soname"; then
13116 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'
13117 else
13118 # used by -dlpreopen to get the symbols
13119 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13120 fi
13121 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13122 fi
13123 fi
13124 ;;
13125
13126 amigaos*)
13127 case $host_cpu in
13128 powerpc)
13129 # see comment about AmigaOS4 .so support
13130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13131 archive_expsym_cmds=''
13132 ;;
13133 m68k)
13134 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)'
13135 hardcode_libdir_flag_spec='-L$libdir'
13136 hardcode_minus_L=yes
13137 ;;
13138 esac
13139 ;;
13140
13141 bsdi[45]*)
13142 export_dynamic_flag_spec=-rdynamic
13143 ;;
13144
13145 cygwin* | mingw* | pw32* | cegcc*)
13146 # When not using gcc, we currently assume that we are using
13147 # Microsoft Visual C++.
13148 # hardcode_libdir_flag_spec is actually meaningless, as there is
13149 # no search path for DLLs.
13150 case $cc_basename in
13151 cl*)
13152 # Native MSVC
13153 hardcode_libdir_flag_spec=' '
13154 allow_undefined_flag=unsupported
13155 always_export_symbols=yes
13156 file_list_spec='@'
13157 # Tell ltmain to make .lib files, not .a files.
13158 libext=lib
13159 # Tell ltmain to make .dll files, not .so files.
13160 shrext_cmds=.dll
13161 # FIXME: Setting linknames here is a bad hack.
13162 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13163 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13164 cp "$export_symbols" "$output_objdir/$soname.def";
13165 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13166 else
13167 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13168 fi~
13169 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13170 linknames='
13171 # The linker will not automatically build a static lib if we build a DLL.
13172 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13173 enable_shared_with_static_runtimes=yes
13174 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13175 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13176 # Don't use ranlib
13177 old_postinstall_cmds='chmod 644 $oldlib'
13178 postlink_cmds='lt_outputfile="@OUTPUT@"~
13179 lt_tool_outputfile="@TOOL_OUTPUT@"~
13180 case $lt_outputfile in
13181 *.exe|*.EXE) ;;
13182 *)
13183 lt_outputfile=$lt_outputfile.exe
13184 lt_tool_outputfile=$lt_tool_outputfile.exe
13185 ;;
13186 esac~
13187 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13188 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13189 $RM "$lt_outputfile.manifest";
13190 fi'
13191 ;;
13192 *)
13193 # Assume MSVC wrapper
13194 hardcode_libdir_flag_spec=' '
13195 allow_undefined_flag=unsupported
13196 # Tell ltmain to make .lib files, not .a files.
13197 libext=lib
13198 # Tell ltmain to make .dll files, not .so files.
13199 shrext_cmds=.dll
13200 # FIXME: Setting linknames here is a bad hack.
13201 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13202 # The linker will automatically build a .lib file if we build a DLL.
13203 old_archive_from_new_cmds='true'
13204 # FIXME: Should let the user specify the lib program.
13205 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13206 enable_shared_with_static_runtimes=yes
13207 ;;
13208 esac
13209 ;;
13210
13211 darwin* | rhapsody*)
13212
13213
13214 archive_cmds_need_lc=no
13215 hardcode_direct=no
13216 hardcode_automatic=yes
13217 hardcode_shlibpath_var=unsupported
13218 if test yes = "$lt_cv_ld_force_load"; then
13219 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\"`'
13220
13221 else
13222 whole_archive_flag_spec=''
13223 fi
13224 link_all_deplibs=yes
13225 allow_undefined_flag=$_lt_dar_allow_undefined
13226 case $cc_basename in
13227 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13228 *) _lt_dar_can_shared=$GCC ;;
13229 esac
13230 if test yes = "$_lt_dar_can_shared"; then
13231 output_verbose_link_cmd=func_echo_all
13232 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13233 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13234 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"
13235 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"
13236
13237 else
13238 ld_shlibs=no
13239 fi
13240
13241 ;;
13242
13243 dgux*)
13244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13245 hardcode_libdir_flag_spec='-L$libdir'
13246 hardcode_shlibpath_var=no
13247 ;;
13248
13249 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13250 # support. Future versions do this automatically, but an explicit c++rt0.o
13251 # does not break anything, and helps significantly (at the cost of a little
13252 # extra space).
13253 freebsd2.2*)
13254 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13255 hardcode_libdir_flag_spec='-R$libdir'
13256 hardcode_direct=yes
13257 hardcode_shlibpath_var=no
13258 ;;
13259
13260 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13261 freebsd2.*)
13262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13263 hardcode_direct=yes
13264 hardcode_minus_L=yes
13265 hardcode_shlibpath_var=no
13266 ;;
13267
13268 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13269 freebsd* | dragonfly*)
13270 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13271 hardcode_libdir_flag_spec='-R$libdir'
13272 hardcode_direct=yes
13273 hardcode_shlibpath_var=no
13274 ;;
13275
13276 hpux9*)
13277 if test yes = "$GCC"; then
13278 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13279 else
13280 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv -f $output_objdir/$soname $lib'
13281 fi
13282 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13283 hardcode_libdir_separator=:
13284 hardcode_direct=yes
13285
13286 # hardcode_minus_L: Not really in the search PATH,
13287 # but as the default location of the library.
13288 hardcode_minus_L=yes
13289 export_dynamic_flag_spec='$wl-E'
13290 ;;
13291
13292 hpux10*)
13293 if test yes,no = "$GCC,$with_gnu_ld"; then
13294 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13295 else
13296 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13297 fi
13298 if test no = "$with_gnu_ld"; then
13299 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13300 hardcode_libdir_separator=:
13301 hardcode_direct=yes
13302 hardcode_direct_absolute=yes
13303 export_dynamic_flag_spec='$wl-E'
13304 # hardcode_minus_L: Not really in the search PATH,
13305 # but as the default location of the library.
13306 hardcode_minus_L=yes
13307 fi
13308 ;;
13309
13310 hpux11*)
13311 if test yes,no = "$GCC,$with_gnu_ld"; then
13312 case $host_cpu in
13313 hppa*64*)
13314 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13315 ;;
13316 ia64*)
13317 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13318 ;;
13319 *)
13320 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13321 ;;
13322 esac
13323 else
13324 case $host_cpu in
13325 hppa*64*)
13326 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13327 ;;
13328 ia64*)
13329 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13330 ;;
13331 *)
13332
13333 # Older versions of the 11.00 compiler do not understand -b yet
13334 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13336$as_echo_n "checking if $CC understands -b... " >&6; }
13337if ${lt_cv_prog_compiler__b+:} false; then :
13338 $as_echo_n "(cached) " >&6
13339else
13340 lt_cv_prog_compiler__b=no
13341 save_LDFLAGS=$LDFLAGS
13342 LDFLAGS="$LDFLAGS -b"
13343 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13344 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13345 # The linker can only warn and ignore the option if not recognized
13346 # So say no if there are warnings
13347 if test -s conftest.err; then
13348 # Append any errors to the config.log.
13349 cat conftest.err 1>&5
13350 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13351 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13352 if diff conftest.exp conftest.er2 >/dev/null; then
13353 lt_cv_prog_compiler__b=yes
13354 fi
13355 else
13356 lt_cv_prog_compiler__b=yes
13357 fi
13358 fi
13359 $RM -r conftest*
13360 LDFLAGS=$save_LDFLAGS
13361
13362fi
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13364$as_echo "$lt_cv_prog_compiler__b" >&6; }
13365
13366if test yes = "$lt_cv_prog_compiler__b"; then
13367 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13368else
13369 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13370fi
13371
13372 ;;
13373 esac
13374 fi
13375 if test no = "$with_gnu_ld"; then
13376 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13377 hardcode_libdir_separator=:
13378
13379 case $host_cpu in
13380 hppa*64*|ia64*)
13381 hardcode_direct=no
13382 hardcode_shlibpath_var=no
13383 ;;
13384 *)
13385 hardcode_direct=yes
13386 hardcode_direct_absolute=yes
13387 export_dynamic_flag_spec='$wl-E'
13388
13389 # hardcode_minus_L: Not really in the search PATH,
13390 # but as the default location of the library.
13391 hardcode_minus_L=yes
13392 ;;
13393 esac
13394 fi
13395 ;;
13396
13397 irix5* | irix6* | nonstopux*)
13398 if test yes = "$GCC"; then
13399 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'
13400 # Try to use the -exported_symbol ld option, if it does not
13401 # work, assume that -exports_file does not work either and
13402 # implicitly export all symbols.
13403 # This should be the same for all languages, so no per-tag cache variable.
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13405$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13406if ${lt_cv_irix_exported_symbol+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408else
13409 save_LDFLAGS=$LDFLAGS
13410 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13412/* end confdefs.h. */
13413int foo (void) { return 0; }
13414_ACEOF
13415if ac_fn_c_try_link "$LINENO"; then :
13416 lt_cv_irix_exported_symbol=yes
13417else
13418 lt_cv_irix_exported_symbol=no
13419fi
13420rm -f core conftest.err conftest.$ac_objext \
13421 conftest$ac_exeext conftest.$ac_ext
13422 LDFLAGS=$save_LDFLAGS
13423fi
13424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13425$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13426 if test yes = "$lt_cv_irix_exported_symbol"; then
13427 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'
13428 fi
13429 link_all_deplibs=no
13430 else
13431 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'
13432 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'
13433 fi
13434 archive_cmds_need_lc='no'
13435 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13436 hardcode_libdir_separator=:
13437 inherit_rpath=yes
13438 link_all_deplibs=yes
13439 ;;
13440
13441 linux*)
13442 case $cc_basename in
13443 tcc*)
13444 # Fabrice Bellard et al's Tiny C Compiler
13445 ld_shlibs=yes
13446 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13447 ;;
13448 esac
13449 ;;
13450
13451 netbsd* | netbsdelf*-gnu)
13452 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13453 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13454 else
13455 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13456 fi
13457 hardcode_libdir_flag_spec='-R$libdir'
13458 hardcode_direct=yes
13459 hardcode_shlibpath_var=no
13460 ;;
13461
13462 newsos6)
13463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464 hardcode_direct=yes
13465 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13466 hardcode_libdir_separator=:
13467 hardcode_shlibpath_var=no
13468 ;;
13469
13470 *nto* | *qnx*)
13471 ;;
13472
13473 openbsd* | bitrig*)
13474 if test -f /usr/libexec/ld.so; then
13475 hardcode_direct=yes
13476 hardcode_shlibpath_var=no
13477 hardcode_direct_absolute=yes
13478 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13479 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13480 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13481 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13482 export_dynamic_flag_spec='$wl-E'
13483 else
13484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13485 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13486 fi
13487 else
13488 ld_shlibs=no
13489 fi
13490 ;;
13491
13492 os2*)
13493 hardcode_libdir_flag_spec='-L$libdir'
13494 hardcode_minus_L=yes
13495 allow_undefined_flag=unsupported
13496 shrext_cmds=.dll
13497 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13498 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13499 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13500 $ECHO EXPORTS >> $output_objdir/$libname.def~
13501 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13502 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13503 emximp -o $lib $output_objdir/$libname.def'
13504 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13505 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13506 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13507 $ECHO EXPORTS >> $output_objdir/$libname.def~
13508 prefix_cmds="$SED"~
13509 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13510 prefix_cmds="$prefix_cmds -e 1d";
13511 fi~
13512 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13513 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13514 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13515 emximp -o $lib $output_objdir/$libname.def'
13516 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13517 enable_shared_with_static_runtimes=yes
13518 ;;
13519
13520 osf3*)
13521 if test yes = "$GCC"; then
13522 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13523 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'
13524 else
13525 allow_undefined_flag=' -expect_unresolved \*'
13526 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'
13527 fi
13528 archive_cmds_need_lc='no'
13529 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13530 hardcode_libdir_separator=:
13531 ;;
13532
13533 osf4* | osf5*) # as osf3* with the addition of -msym flag
13534 if test yes = "$GCC"; then
13535 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13536 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'
13537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13538 else
13539 allow_undefined_flag=' -expect_unresolved \*'
13540 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'
13541 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~
13542 $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'
13543
13544 # Both c and cxx compiler support -rpath directly
13545 hardcode_libdir_flag_spec='-rpath $libdir'
13546 fi
13547 archive_cmds_need_lc='no'
13548 hardcode_libdir_separator=:
13549 ;;
13550
13551 solaris*)
13552 no_undefined_flag=' -z defs'
13553 if test yes = "$GCC"; then
13554 wlarc='$wl'
13555 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13557 $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'
13558 else
13559 case `$CC -V 2>&1` in
13560 *"Compilers 5.0"*)
13561 wlarc=''
13562 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13564 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13565 ;;
13566 *)
13567 wlarc='$wl'
13568 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13570 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13571 ;;
13572 esac
13573 fi
13574 hardcode_libdir_flag_spec='-R$libdir'
13575 hardcode_shlibpath_var=no
13576 case $host_os in
13577 solaris2.[0-5] | solaris2.[0-5].*) ;;
13578 *)
13579 # The compiler driver will combine and reorder linker options,
13580 # but understands '-z linker_flag'. GCC discards it without '$wl',
13581 # but is careful enough not to reorder.
13582 # Supported since Solaris 2.6 (maybe 2.5.1?)
13583 if test yes = "$GCC"; then
13584 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13585 else
13586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13587 fi
13588 ;;
13589 esac
13590 link_all_deplibs=yes
13591 ;;
13592
13593 sunos4*)
13594 if test sequent = "$host_vendor"; then
13595 # Use $CC to link under sequent, because it throws in some extra .o
13596 # files that make .init and .fini sections work.
13597 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13598 else
13599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13600 fi
13601 hardcode_libdir_flag_spec='-L$libdir'
13602 hardcode_direct=yes
13603 hardcode_minus_L=yes
13604 hardcode_shlibpath_var=no
13605 ;;
13606
13607 sysv4)
13608 case $host_vendor in
13609 sni)
13610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13611 hardcode_direct=yes # is this really true???
13612 ;;
13613 siemens)
13614 ## LD is ld it makes a PLAMLIB
13615 ## CC just makes a GrossModule.
13616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13617 reload_cmds='$CC -r -o $output$reload_objs'
13618 hardcode_direct=no
13619 ;;
13620 motorola)
13621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13623 ;;
13624 esac
13625 runpath_var='LD_RUN_PATH'
13626 hardcode_shlibpath_var=no
13627 ;;
13628
13629 sysv4.3*)
13630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13631 hardcode_shlibpath_var=no
13632 export_dynamic_flag_spec='-Bexport'
13633 ;;
13634
13635 sysv4*MP*)
13636 if test -d /usr/nec; then
13637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13638 hardcode_shlibpath_var=no
13639 runpath_var=LD_RUN_PATH
13640 hardcode_runpath_var=yes
13641 ld_shlibs=yes
13642 fi
13643 ;;
13644
13645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13646 no_undefined_flag='$wl-z,text'
13647 archive_cmds_need_lc=no
13648 hardcode_shlibpath_var=no
13649 runpath_var='LD_RUN_PATH'
13650
13651 if test yes = "$GCC"; then
13652 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13653 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13654 else
13655 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13656 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 fi
13658 ;;
13659
13660 sysv5* | sco3.2v5* | sco5v6*)
13661 # Note: We CANNOT use -z defs as we might desire, because we do not
13662 # link with -lc, and that would cause any symbols used from libc to
13663 # always be unresolved, which means just about no library would
13664 # ever link correctly. If we're not using GNU ld we use -z text
13665 # though, which does catch some bad symbols but isn't as heavy-handed
13666 # as -z defs.
13667 no_undefined_flag='$wl-z,text'
13668 allow_undefined_flag='$wl-z,nodefs'
13669 archive_cmds_need_lc=no
13670 hardcode_shlibpath_var=no
13671 hardcode_libdir_flag_spec='$wl-R,$libdir'
13672 hardcode_libdir_separator=':'
13673 link_all_deplibs=yes
13674 export_dynamic_flag_spec='$wl-Bexport'
13675 runpath_var='LD_RUN_PATH'
13676
13677 if test yes = "$GCC"; then
13678 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13680 else
13681 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13682 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13683 fi
13684 ;;
13685
13686 uts4*)
13687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13688 hardcode_libdir_flag_spec='-L$libdir'
13689 hardcode_shlibpath_var=no
13690 ;;
13691
13692 *)
13693 ld_shlibs=no
13694 ;;
13695 esac
13696
13697 if test sni = "$host_vendor"; then
13698 case $host in
13699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13700 export_dynamic_flag_spec='$wl-Blargedynsym'
13701 ;;
13702 esac
13703 fi
13704 fi
13705
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13707$as_echo "$ld_shlibs" >&6; }
13708test no = "$ld_shlibs" && can_build_shared=no
13709
13710with_gnu_ld=$with_gnu_ld
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726#
13727# Do we need to explicitly link libc?
13728#
13729case "x$archive_cmds_need_lc" in
13730x|xyes)
13731 # Assume -lc should be added
13732 archive_cmds_need_lc=yes
13733
13734 if test yes,yes = "$GCC,$enable_shared"; then
13735 case $archive_cmds in
13736 *'~'*)
13737 # FIXME: we may have to deal with multi-command sequences.
13738 ;;
13739 '$CC '*)
13740 # Test whether the compiler implicitly links with -lc since on some
13741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13742 # to ld, don't add -lc before -lgcc.
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13744$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13745if ${lt_cv_archive_cmds_need_lc+:} false; then :
13746 $as_echo_n "(cached) " >&6
13747else
13748 $RM conftest*
13749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13750
13751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13752 (eval $ac_compile) 2>&5
13753 ac_status=$?
13754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13755 test $ac_status = 0; } 2>conftest.err; then
13756 soname=conftest
13757 lib=conftest
13758 libobjs=conftest.$ac_objext
13759 deplibs=
13760 wl=$lt_prog_compiler_wl
13761 pic_flag=$lt_prog_compiler_pic
13762 compiler_flags=-v
13763 linker_flags=-v
13764 verstring=
13765 output_objdir=.
13766 libname=conftest
13767 lt_save_allow_undefined_flag=$allow_undefined_flag
13768 allow_undefined_flag=
13769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13770 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13771 ac_status=$?
13772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13773 test $ac_status = 0; }
13774 then
13775 lt_cv_archive_cmds_need_lc=no
13776 else
13777 lt_cv_archive_cmds_need_lc=yes
13778 fi
13779 allow_undefined_flag=$lt_save_allow_undefined_flag
13780 else
13781 cat conftest.err 1>&5
13782 fi
13783 $RM conftest*
13784
13785fi
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13787$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13788 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13789 ;;
13790 esac
13791 fi
13792 ;;
13793esac
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13947$as_echo_n "checking dynamic linker characteristics... " >&6; }
13948
13949if test yes = "$GCC"; then
13950 case $host_os in
13951 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13952 *) lt_awk_arg='/^libraries:/' ;;
13953 esac
13954 case $host_os in
13955 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13956 *) lt_sed_strip_eq='s|=/|/|g' ;;
13957 esac
13958 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13959 case $lt_search_path_spec in
13960 *\;*)
13961 # if the path contains ";" then we assume it to be the separator
13962 # otherwise default to the standard path separator (i.e. ":") - it is
13963 # assumed that no part of a normal pathname contains ";" but that should
13964 # okay in the real world where ";" in dirpaths is itself problematic.
13965 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13966 ;;
13967 *)
13968 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13969 ;;
13970 esac
13971 # Ok, now we have the path, separated by spaces, we can step through it
13972 # and add multilib dir if necessary...
13973 lt_tmp_lt_search_path_spec=
13974 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13975 # ...but if some path component already ends with the multilib dir we assume
13976 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13977 case "$lt_multi_os_dir; $lt_search_path_spec " in
13978 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13979 lt_multi_os_dir=
13980 ;;
13981 esac
13982 for lt_sys_path in $lt_search_path_spec; do
13983 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13984 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13985 elif test -n "$lt_multi_os_dir"; then
13986 test -d "$lt_sys_path" && \
13987 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13988 fi
13989 done
13990 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13991BEGIN {RS = " "; FS = "/|\n";} {
13992 lt_foo = "";
13993 lt_count = 0;
13994 for (lt_i = NF; lt_i > 0; lt_i--) {
13995 if ($lt_i != "" && $lt_i != ".") {
13996 if ($lt_i == "..") {
13997 lt_count++;
13998 } else {
13999 if (lt_count == 0) {
14000 lt_foo = "/" $lt_i lt_foo;
14001 } else {
14002 lt_count--;
14003 }
14004 }
14005 }
14006 }
14007 if (lt_foo != "") { lt_freq[lt_foo]++; }
14008 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14009}'`
14010 # AWK program above erroneously prepends '/' to C:/dos/paths
14011 # for these hosts.
14012 case $host_os in
14013 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14014 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14015 esac
14016 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14017else
14018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14019fi
14020library_names_spec=
14021libname_spec='lib$name'
14022soname_spec=
14023shrext_cmds=.so
14024postinstall_cmds=
14025postuninstall_cmds=
14026finish_cmds=
14027finish_eval=
14028shlibpath_var=
14029shlibpath_overrides_runpath=unknown
14030version_type=none
14031dynamic_linker="$host_os ld.so"
14032sys_lib_dlsearch_path_spec="/lib /usr/lib"
14033need_lib_prefix=unknown
14034hardcode_into_libs=no
14035
14036# when you set need_version to no, make sure it does not cause -set_version
14037# flags to be left without arguments
14038need_version=unknown
14039
14040
14041
14042case $host_os in
14043aix3*)
14044 version_type=linux # correct to gnu/linux during the next big refactor
14045 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14046 shlibpath_var=LIBPATH
14047
14048 # AIX 3 has no versioning support, so we append a major version to the name.
14049 soname_spec='$libname$release$shared_ext$major'
14050 ;;
14051
14052aix[4-9]*)
14053 version_type=linux # correct to gnu/linux during the next big refactor
14054 need_lib_prefix=no
14055 need_version=no
14056 hardcode_into_libs=yes
14057 if test ia64 = "$host_cpu"; then
14058 # AIX 5 supports IA64
14059 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 else
14062 # With GCC up to 2.95.x, collect2 would create an import file
14063 # for dependence libraries. The import file would start with
14064 # the line '#! .'. This would cause the generated library to
14065 # depend on '.', always an invalid library. This was fixed in
14066 # development snapshots of GCC prior to 3.0.
14067 case $host_os in
14068 aix4 | aix4.[01] | aix4.[01].*)
14069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14070 echo ' yes '
14071 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14072 :
14073 else
14074 can_build_shared=no
14075 fi
14076 ;;
14077 esac
14078 # Using Import Files as archive members, it is possible to support
14079 # filename-based versioning of shared library archives on AIX. While
14080 # this would work for both with and without runtime linking, it will
14081 # prevent static linking of such archives. So we do filename-based
14082 # shared library versioning with .so extension only, which is used
14083 # when both runtime linking and shared linking is enabled.
14084 # Unfortunately, runtime linking may impact performance, so we do
14085 # not want this to be the default eventually. Also, we use the
14086 # versioned .so libs for executables only if there is the -brtl
14087 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14088 # To allow for filename-based versioning support, we need to create
14089 # libNAME.so.V as an archive file, containing:
14090 # *) an Import File, referring to the versioned filename of the
14091 # archive as well as the shared archive member, telling the
14092 # bitwidth (32 or 64) of that shared object, and providing the
14093 # list of exported symbols of that shared object, eventually
14094 # decorated with the 'weak' keyword
14095 # *) the shared object with the F_LOADONLY flag set, to really avoid
14096 # it being seen by the linker.
14097 # At run time we better use the real file rather than another symlink,
14098 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14099
14100 case $with_aix_soname,$aix_use_runtimelinking in
14101 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14102 # soname into executable. Probably we can add versioning support to
14103 # collect2, so additional links can be useful in future.
14104 aix,yes) # traditional libtool
14105 dynamic_linker='AIX unversionable lib.so'
14106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14107 # instead of lib<name>.a to let people know that these are not
14108 # typical AIX shared libraries.
14109 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14110 ;;
14111 aix,no) # traditional AIX only
14112 dynamic_linker='AIX lib.a(lib.so.V)'
14113 # We preserve .a as extension for shared libraries through AIX4.2
14114 # and later when we are not doing run time linking.
14115 library_names_spec='$libname$release.a $libname.a'
14116 soname_spec='$libname$release$shared_ext$major'
14117 ;;
14118 svr4,*) # full svr4 only
14119 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14120 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14121 # We do not specify a path in Import Files, so LIBPATH fires.
14122 shlibpath_overrides_runpath=yes
14123 ;;
14124 *,yes) # both, prefer svr4
14125 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14126 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14127 # unpreferred sharedlib libNAME.a needs extra handling
14128 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"'
14129 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"'
14130 # We do not specify a path in Import Files, so LIBPATH fires.
14131 shlibpath_overrides_runpath=yes
14132 ;;
14133 *,no) # both, prefer aix
14134 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14135 library_names_spec='$libname$release.a $libname.a'
14136 soname_spec='$libname$release$shared_ext$major'
14137 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14138 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)'
14139 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"'
14140 ;;
14141 esac
14142 shlibpath_var=LIBPATH
14143 fi
14144 ;;
14145
14146amigaos*)
14147 case $host_cpu in
14148 powerpc)
14149 # Since July 2007 AmigaOS4 officially supports .so libraries.
14150 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14152 ;;
14153 m68k)
14154 library_names_spec='$libname.ixlibrary $libname.a'
14155 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14156 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'
14157 ;;
14158 esac
14159 ;;
14160
14161beos*)
14162 library_names_spec='$libname$shared_ext'
14163 dynamic_linker="$host_os ld.so"
14164 shlibpath_var=LIBRARY_PATH
14165 ;;
14166
14167bsdi[45]*)
14168 version_type=linux # correct to gnu/linux during the next big refactor
14169 need_version=no
14170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14171 soname_spec='$libname$release$shared_ext$major'
14172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14173 shlibpath_var=LD_LIBRARY_PATH
14174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14176 # the default ld.so.conf also contains /usr/contrib/lib and
14177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14178 # libtool to hard-code these into programs
14179 ;;
14180
14181cygwin* | mingw* | pw32* | cegcc*)
14182 version_type=windows
14183 shrext_cmds=.dll
14184 need_version=no
14185 need_lib_prefix=no
14186
14187 case $GCC,$cc_basename in
14188 yes,*)
14189 # gcc
14190 library_names_spec='$libname.dll.a'
14191 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14192 postinstall_cmds='base_file=`basename \$file`~
14193 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14194 dldir=$destdir/`dirname \$dlpath`~
14195 test -d \$dldir || mkdir -p \$dldir~
14196 $install_prog $dir/$dlname \$dldir/$dlname~
14197 chmod a+x \$dldir/$dlname~
14198 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14199 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14200 fi'
14201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14202 dlpath=$dir/\$dldll~
14203 $RM \$dlpath'
14204 shlibpath_overrides_runpath=yes
14205
14206 case $host_os in
14207 cygwin*)
14208 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14209 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14210
14211 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14212 ;;
14213 mingw* | cegcc*)
14214 # MinGW DLLs use traditional 'lib' prefix
14215 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14216 ;;
14217 pw32*)
14218 # pw32 DLLs use 'pw' prefix rather than 'lib'
14219 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14220 ;;
14221 esac
14222 dynamic_linker='Win32 ld.exe'
14223 ;;
14224
14225 *,cl*)
14226 # Native MSVC
14227 libname_spec='$name'
14228 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14229 library_names_spec='$libname.dll.lib'
14230
14231 case $build_os in
14232 mingw*)
14233 sys_lib_search_path_spec=
14234 lt_save_ifs=$IFS
14235 IFS=';'
14236 for lt_path in $LIB
14237 do
14238 IFS=$lt_save_ifs
14239 # Let DOS variable expansion print the short 8.3 style file name.
14240 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14241 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14242 done
14243 IFS=$lt_save_ifs
14244 # Convert to MSYS style.
14245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14246 ;;
14247 cygwin*)
14248 # Convert to unix form, then to dos form, then back to unix form
14249 # but this time dos style (no spaces!) so that the unix form looks
14250 # like /cygdrive/c/PROGRA~1:/cygdr...
14251 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14252 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14253 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14254 ;;
14255 *)
14256 sys_lib_search_path_spec=$LIB
14257 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14258 # It is most probably a Windows format PATH.
14259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14260 else
14261 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14262 fi
14263 # FIXME: find the short name or the path components, as spaces are
14264 # common. (e.g. "Program Files" -> "PROGRA~1")
14265 ;;
14266 esac
14267
14268 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14269 postinstall_cmds='base_file=`basename \$file`~
14270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14271 dldir=$destdir/`dirname \$dlpath`~
14272 test -d \$dldir || mkdir -p \$dldir~
14273 $install_prog $dir/$dlname \$dldir/$dlname'
14274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14275 dlpath=$dir/\$dldll~
14276 $RM \$dlpath'
14277 shlibpath_overrides_runpath=yes
14278 dynamic_linker='Win32 link.exe'
14279 ;;
14280
14281 *)
14282 # Assume MSVC wrapper
14283 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14284 dynamic_linker='Win32 ld.exe'
14285 ;;
14286 esac
14287 # FIXME: first we should search . and the directory the executable is in
14288 shlibpath_var=PATH
14289 ;;
14290
14291darwin* | rhapsody*)
14292 dynamic_linker="$host_os dyld"
14293 version_type=darwin
14294 need_lib_prefix=no
14295 need_version=no
14296 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14297 soname_spec='$libname$release$major$shared_ext'
14298 shlibpath_overrides_runpath=yes
14299 shlibpath_var=DYLD_LIBRARY_PATH
14300 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14301
14302 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14303 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14304 ;;
14305
14306dgux*)
14307 version_type=linux # correct to gnu/linux during the next big refactor
14308 need_lib_prefix=no
14309 need_version=no
14310 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14311 soname_spec='$libname$release$shared_ext$major'
14312 shlibpath_var=LD_LIBRARY_PATH
14313 ;;
14314
14315freebsd* | dragonfly*)
14316 # DragonFly does not have aout. When/if they implement a new
14317 # versioning mechanism, adjust this.
14318 if test -x /usr/bin/objformat; then
14319 objformat=`/usr/bin/objformat`
14320 else
14321 case $host_os in
14322 freebsd[23].*) objformat=aout ;;
14323 *) objformat=elf ;;
14324 esac
14325 fi
14326 version_type=freebsd-$objformat
14327 case $version_type in
14328 freebsd-elf*)
14329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14330 soname_spec='$libname$release$shared_ext$major'
14331 need_version=no
14332 need_lib_prefix=no
14333 ;;
14334 freebsd-*)
14335 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14336 need_version=yes
14337 ;;
14338 esac
14339 shlibpath_var=LD_LIBRARY_PATH
14340 case $host_os in
14341 freebsd2.*)
14342 shlibpath_overrides_runpath=yes
14343 ;;
14344 freebsd3.[01]* | freebsdelf3.[01]*)
14345 shlibpath_overrides_runpath=yes
14346 hardcode_into_libs=yes
14347 ;;
14348 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14349 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14350 shlibpath_overrides_runpath=no
14351 hardcode_into_libs=yes
14352 ;;
14353 *) # from 4.6 on, and DragonFly
14354 shlibpath_overrides_runpath=yes
14355 hardcode_into_libs=yes
14356 ;;
14357 esac
14358 ;;
14359
14360haiku*)
14361 version_type=linux # correct to gnu/linux during the next big refactor
14362 need_lib_prefix=no
14363 need_version=no
14364 dynamic_linker="$host_os runtime_loader"
14365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14366 soname_spec='$libname$release$shared_ext$major'
14367 shlibpath_var=LIBRARY_PATH
14368 shlibpath_overrides_runpath=no
14369 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14370 hardcode_into_libs=yes
14371 ;;
14372
14373hpux9* | hpux10* | hpux11*)
14374 # Give a soname corresponding to the major version so that dld.sl refuses to
14375 # link against other versions.
14376 version_type=sunos
14377 need_lib_prefix=no
14378 need_version=no
14379 case $host_cpu in
14380 ia64*)
14381 shrext_cmds='.so'
14382 hardcode_into_libs=yes
14383 dynamic_linker="$host_os dld.so"
14384 shlibpath_var=LD_LIBRARY_PATH
14385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14387 soname_spec='$libname$release$shared_ext$major'
14388 if test 32 = "$HPUX_IA64_MODE"; then
14389 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14390 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14391 else
14392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14393 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14394 fi
14395 ;;
14396 hppa*64*)
14397 shrext_cmds='.sl'
14398 hardcode_into_libs=yes
14399 dynamic_linker="$host_os dld.sl"
14400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14403 soname_spec='$libname$release$shared_ext$major'
14404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14406 ;;
14407 *)
14408 shrext_cmds='.sl'
14409 dynamic_linker="$host_os dld.sl"
14410 shlibpath_var=SHLIB_PATH
14411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14413 soname_spec='$libname$release$shared_ext$major'
14414 ;;
14415 esac
14416 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14417 postinstall_cmds='chmod 555 $lib'
14418 # or fails outright, so override atomically:
14419 install_override_mode=555
14420 ;;
14421
14422interix[3-9]*)
14423 version_type=linux # correct to gnu/linux during the next big refactor
14424 need_lib_prefix=no
14425 need_version=no
14426 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14427 soname_spec='$libname$release$shared_ext$major'
14428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14429 shlibpath_var=LD_LIBRARY_PATH
14430 shlibpath_overrides_runpath=no
14431 hardcode_into_libs=yes
14432 ;;
14433
14434irix5* | irix6* | nonstopux*)
14435 case $host_os in
14436 nonstopux*) version_type=nonstopux ;;
14437 *)
14438 if test yes = "$lt_cv_prog_gnu_ld"; then
14439 version_type=linux # correct to gnu/linux during the next big refactor
14440 else
14441 version_type=irix
14442 fi ;;
14443 esac
14444 need_lib_prefix=no
14445 need_version=no
14446 soname_spec='$libname$release$shared_ext$major'
14447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14448 case $host_os in
14449 irix5* | nonstopux*)
14450 libsuff= shlibsuff=
14451 ;;
14452 *)
14453 case $LD in # libtool.m4 will add one of these switches to LD
14454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14455 libsuff= shlibsuff= libmagic=32-bit;;
14456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14457 libsuff=32 shlibsuff=N32 libmagic=N32;;
14458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14459 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14460 *) libsuff= shlibsuff= libmagic=never-match;;
14461 esac
14462 ;;
14463 esac
14464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14465 shlibpath_overrides_runpath=no
14466 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14467 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14468 hardcode_into_libs=yes
14469 ;;
14470
14471# No shared lib support for Linux oldld, aout, or coff.
14472linux*oldld* | linux*aout* | linux*coff*)
14473 dynamic_linker=no
14474 ;;
14475
14476linux*android*)
14477 version_type=none # Android doesn't support versioned libraries.
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='$libname$release$shared_ext'
14481 soname_spec='$libname$release$shared_ext'
14482 finish_cmds=
14483 shlibpath_var=LD_LIBRARY_PATH
14484 shlibpath_overrides_runpath=yes
14485
14486 # This implies no fast_install, which is unacceptable.
14487 # Some rework will be needed to allow for fast_install
14488 # before this can be enabled.
14489 hardcode_into_libs=yes
14490
14491 dynamic_linker='Android linker'
14492 # Don't embed -rpath directories since the linker doesn't support them.
14493 hardcode_libdir_flag_spec='-L$libdir'
14494 ;;
14495
14496# This must be glibc/ELF.
14497linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14498 version_type=linux # correct to gnu/linux during the next big refactor
14499 need_lib_prefix=no
14500 need_version=no
14501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14502 soname_spec='$libname$release$shared_ext$major'
14503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=no
14506
14507 # Some binutils ld are patched to set DT_RUNPATH
14508 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510else
14511 lt_cv_shlibpath_overrides_runpath=no
14512 save_LDFLAGS=$LDFLAGS
14513 save_libdir=$libdir
14514 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14515 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h. */
14518
14519int main (void)
14520{
14521
14522 ;
14523 return 0;
14524}
14525_ACEOF
14526if ac_fn_c_try_link "$LINENO"; then :
14527 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14528 lt_cv_shlibpath_overrides_runpath=yes
14529fi
14530fi
14531rm -f core conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LDFLAGS=$save_LDFLAGS
14534 libdir=$save_libdir
14535
14536fi
14537
14538 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14539
14540 # This implies no fast_install, which is unacceptable.
14541 # Some rework will be needed to allow for fast_install
14542 # before this can be enabled.
14543 hardcode_into_libs=yes
14544
14545 # Ideally, we could use ldconfig to report *all* directores which are
14546 # searched for libraries, however this is still not possible. Aside from not
14547 # being certain /sbin/ldconfig is available, command
14548 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14549 # even though it is searched at run-time. Try to do the best guess by
14550 # appending ld.so.conf contents (and includes) to the search path.
14551 if test -f /etc/ld.so.conf; then
14552 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' ' '`
14553 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14554 fi
14555
14556 # We used to test for /lib/ld.so.1 and disable shared libraries on
14557 # powerpc, because MkLinux only supported shared libraries with the
14558 # GNU dynamic linker. Since this was broken with cross compilers,
14559 # most powerpc-linux boxes support dynamic linking these days and
14560 # people can always --disable-shared, the test was removed, and we
14561 # assume the GNU/Linux dynamic linker is in use.
14562 dynamic_linker='GNU/Linux ld.so'
14563 ;;
14564
14565netbsdelf*-gnu)
14566 version_type=linux
14567 need_lib_prefix=no
14568 need_version=no
14569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14570 soname_spec='${libname}${release}${shared_ext}$major'
14571 shlibpath_var=LD_LIBRARY_PATH
14572 shlibpath_overrides_runpath=no
14573 hardcode_into_libs=yes
14574 dynamic_linker='NetBSD ld.elf_so'
14575 ;;
14576
14577netbsd*)
14578 version_type=sunos
14579 need_lib_prefix=no
14580 need_version=no
14581 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14582 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14584 dynamic_linker='NetBSD (a.out) ld.so'
14585 else
14586 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14587 soname_spec='$libname$release$shared_ext$major'
14588 dynamic_linker='NetBSD ld.elf_so'
14589 fi
14590 shlibpath_var=LD_LIBRARY_PATH
14591 shlibpath_overrides_runpath=yes
14592 hardcode_into_libs=yes
14593 ;;
14594
14595newsos6)
14596 version_type=linux # correct to gnu/linux during the next big refactor
14597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes
14600 ;;
14601
14602*nto* | *qnx*)
14603 version_type=qnx
14604 need_lib_prefix=no
14605 need_version=no
14606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14607 soname_spec='$libname$release$shared_ext$major'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=no
14610 hardcode_into_libs=yes
14611 dynamic_linker='ldqnx.so'
14612 ;;
14613
14614openbsd* | bitrig*)
14615 version_type=sunos
14616 sys_lib_dlsearch_path_spec=/usr/lib
14617 need_lib_prefix=no
14618 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14619 need_version=no
14620 else
14621 need_version=yes
14622 fi
14623 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=yes
14627 ;;
14628
14629os2*)
14630 libname_spec='$name'
14631 version_type=windows
14632 shrext_cmds=.dll
14633 need_version=no
14634 need_lib_prefix=no
14635 # OS/2 can only load a DLL with a base name of 8 characters or less.
14636 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14637 v=$($ECHO $release$versuffix | tr -d .-);
14638 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14639 $ECHO $n$v`$shared_ext'
14640 library_names_spec='${libname}_dll.$libext'
14641 dynamic_linker='OS/2 ld.exe'
14642 shlibpath_var=BEGINLIBPATH
14643 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14644 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14645 postinstall_cmds='base_file=`basename \$file`~
14646 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14647 dldir=$destdir/`dirname \$dlpath`~
14648 test -d \$dldir || mkdir -p \$dldir~
14649 $install_prog $dir/$dlname \$dldir/$dlname~
14650 chmod a+x \$dldir/$dlname~
14651 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14652 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14653 fi'
14654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14655 dlpath=$dir/\$dldll~
14656 $RM \$dlpath'
14657 ;;
14658
14659osf3* | osf4* | osf5*)
14660 version_type=osf
14661 need_lib_prefix=no
14662 need_version=no
14663 soname_spec='$libname$release$shared_ext$major'
14664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14665 shlibpath_var=LD_LIBRARY_PATH
14666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14668 ;;
14669
14670rdos*)
14671 dynamic_linker=no
14672 ;;
14673
14674solaris*)
14675 version_type=linux # correct to gnu/linux during the next big refactor
14676 need_lib_prefix=no
14677 need_version=no
14678 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14679 soname_spec='$libname$release$shared_ext$major'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 shlibpath_overrides_runpath=yes
14682 hardcode_into_libs=yes
14683 # ldd complains unless libraries are executable
14684 postinstall_cmds='chmod +x $lib'
14685 ;;
14686
14687sunos4*)
14688 version_type=sunos
14689 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14690 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 shlibpath_overrides_runpath=yes
14693 if test yes = "$with_gnu_ld"; then
14694 need_lib_prefix=no
14695 fi
14696 need_version=yes
14697 ;;
14698
14699sysv4 | sysv4.3*)
14700 version_type=linux # correct to gnu/linux during the next big refactor
14701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14702 soname_spec='$libname$release$shared_ext$major'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 case $host_vendor in
14705 sni)
14706 shlibpath_overrides_runpath=no
14707 need_lib_prefix=no
14708 runpath_var=LD_RUN_PATH
14709 ;;
14710 siemens)
14711 need_lib_prefix=no
14712 ;;
14713 motorola)
14714 need_lib_prefix=no
14715 need_version=no
14716 shlibpath_overrides_runpath=no
14717 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14718 ;;
14719 esac
14720 ;;
14721
14722sysv4*MP*)
14723 if test -d /usr/nec; then
14724 version_type=linux # correct to gnu/linux during the next big refactor
14725 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14726 soname_spec='$libname$shared_ext.$major'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 fi
14729 ;;
14730
14731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14732 version_type=sco
14733 need_lib_prefix=no
14734 need_version=no
14735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14736 soname_spec='$libname$release$shared_ext$major'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 shlibpath_overrides_runpath=yes
14739 hardcode_into_libs=yes
14740 if test yes = "$with_gnu_ld"; then
14741 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14742 else
14743 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14744 case $host_os in
14745 sco3.2v5*)
14746 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14747 ;;
14748 esac
14749 fi
14750 sys_lib_dlsearch_path_spec='/usr/lib'
14751 ;;
14752
14753tpf*)
14754 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14755 version_type=linux # correct to gnu/linux during the next big refactor
14756 need_lib_prefix=no
14757 need_version=no
14758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 shlibpath_overrides_runpath=no
14761 hardcode_into_libs=yes
14762 ;;
14763
14764uts4*)
14765 version_type=linux # correct to gnu/linux during the next big refactor
14766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14767 soname_spec='$libname$release$shared_ext$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 ;;
14770
14771*)
14772 dynamic_linker=no
14773 ;;
14774esac
14775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14776$as_echo "$dynamic_linker" >&6; }
14777test no = "$dynamic_linker" && can_build_shared=no
14778
14779variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14780if test yes = "$GCC"; then
14781 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14782fi
14783
14784if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14785 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14786fi
14787
14788if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14789 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14790fi
14791
14792# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14793configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14794
14795# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14796func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14797
14798# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14799configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14898$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14899hardcode_action=
14900if test -n "$hardcode_libdir_flag_spec" ||
14901 test -n "$runpath_var" ||
14902 test yes = "$hardcode_automatic"; then
14903
14904 # We can hardcode non-existent directories.
14905 if test no != "$hardcode_direct" &&
14906 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14907 # have to relink, otherwise we might link with an installed library
14908 # when we should be linking with a yet-to-be-installed one
14909 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14910 test no != "$hardcode_minus_L"; then
14911 # Linking always hardcodes the temporary library directory.
14912 hardcode_action=relink
14913 else
14914 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14915 hardcode_action=immediate
14916 fi
14917else
14918 # We cannot hardcode anything, or else we can only hardcode existing
14919 # directories.
14920 hardcode_action=unsupported
14921fi
14922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14923$as_echo "$hardcode_action" >&6; }
14924
14925if test relink = "$hardcode_action" ||
14926 test yes = "$inherit_rpath"; then
14927 # Fast installation is not supported
14928 enable_fast_install=no
14929elif test yes = "$shlibpath_overrides_runpath" ||
14930 test no = "$enable_shared"; then
14931 # Fast installation is not necessary
14932 enable_fast_install=needless
14933fi
14934
14935
14936
14937
14938
14939
14940 if test yes != "$enable_dlopen"; then
14941 enable_dlopen=unknown
14942 enable_dlopen_self=unknown
14943 enable_dlopen_self_static=unknown
14944else
14945 lt_cv_dlopen=no
14946 lt_cv_dlopen_libs=
14947
14948 case $host_os in
14949 beos*)
14950 lt_cv_dlopen=load_add_on
14951 lt_cv_dlopen_libs=
14952 lt_cv_dlopen_self=yes
14953 ;;
14954
14955 mingw* | pw32* | cegcc*)
14956 lt_cv_dlopen=LoadLibrary
14957 lt_cv_dlopen_libs=
14958 ;;
14959
14960 cygwin*)
14961 lt_cv_dlopen=dlopen
14962 lt_cv_dlopen_libs=
14963 ;;
14964
14965 darwin*)
14966 # if libdl is installed we need to link against it
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14968$as_echo_n "checking for dlopen in -ldl... " >&6; }
14969if ${ac_cv_lib_dl_dlopen+:} false; then :
14970 $as_echo_n "(cached) " >&6
14971else
14972 ac_check_lib_save_LIBS=$LIBS
14973LIBS="-ldl $LIBS"
14974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975/* end confdefs.h. */
14976
14977
14978#ifdef __cplusplus
14979extern "C"
14980#endif
14981char dlopen ();
14982int main (void)
14983{
14984return dlopen ();
14985 ;
14986 return 0;
14987}
14988_ACEOF
14989if ac_fn_c_try_link "$LINENO"; then :
14990 ac_cv_lib_dl_dlopen=yes
14991else
14992 ac_cv_lib_dl_dlopen=no
14993fi
14994rm -f core conftest.err conftest.$ac_objext \
14995 conftest$ac_exeext conftest.$ac_ext
14996LIBS=$ac_check_lib_save_LIBS
14997fi
14998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14999$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15000if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15001 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15002else
15003
15004 lt_cv_dlopen=dyld
15005 lt_cv_dlopen_libs=
15006 lt_cv_dlopen_self=yes
15007
15008fi
15009
15010 ;;
15011
15012 tpf*)
15013 # Don't try to run any link tests for TPF. We know it's impossible
15014 # because TPF is a cross-compiler, and we know how we open DSOs.
15015 lt_cv_dlopen=dlopen
15016 lt_cv_dlopen_libs=
15017 lt_cv_dlopen_self=no
15018 ;;
15019
15020 *)
15021 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15022if test "x$ac_cv_func_shl_load" = xyes; then :
15023 lt_cv_dlopen=shl_load
15024else
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15026$as_echo_n "checking for shl_load in -ldld... " >&6; }
15027if ${ac_cv_lib_dld_shl_load+:} false; then :
15028 $as_echo_n "(cached) " >&6
15029else
15030 ac_check_lib_save_LIBS=$LIBS
15031LIBS="-ldld $LIBS"
15032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h. */
15034
15035
15036#ifdef __cplusplus
15037extern "C"
15038#endif
15039char shl_load ();
15040int main (void)
15041{
15042return shl_load ();
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047if ac_fn_c_try_link "$LINENO"; then :
15048 ac_cv_lib_dld_shl_load=yes
15049else
15050 ac_cv_lib_dld_shl_load=no
15051fi
15052rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
15054LIBS=$ac_check_lib_save_LIBS
15055fi
15056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15057$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15058if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15059 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15060else
15061 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15062if test "x$ac_cv_func_dlopen" = xyes; then :
15063 lt_cv_dlopen=dlopen
15064else
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15066$as_echo_n "checking for dlopen in -ldl... " >&6; }
15067if ${ac_cv_lib_dl_dlopen+:} false; then :
15068 $as_echo_n "(cached) " >&6
15069else
15070 ac_check_lib_save_LIBS=$LIBS
15071LIBS="-ldl $LIBS"
15072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h. */
15074
15075
15076#ifdef __cplusplus
15077extern "C"
15078#endif
15079char dlopen ();
15080int main (void)
15081{
15082return dlopen ();
15083 ;
15084 return 0;
15085}
15086_ACEOF
15087if ac_fn_c_try_link "$LINENO"; then :
15088 ac_cv_lib_dl_dlopen=yes
15089else
15090 ac_cv_lib_dl_dlopen=no
15091fi
15092rm -f core conftest.err conftest.$ac_objext \
15093 conftest$ac_exeext conftest.$ac_ext
15094LIBS=$ac_check_lib_save_LIBS
15095fi
15096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15097$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15098if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15099 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15100else
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15102$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15103if ${ac_cv_lib_svld_dlopen+:} false; then :
15104 $as_echo_n "(cached) " >&6
15105else
15106 ac_check_lib_save_LIBS=$LIBS
15107LIBS="-lsvld $LIBS"
15108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109/* end confdefs.h. */
15110
15111
15112#ifdef __cplusplus
15113extern "C"
15114#endif
15115char dlopen ();
15116int main (void)
15117{
15118return dlopen ();
15119 ;
15120 return 0;
15121}
15122_ACEOF
15123if ac_fn_c_try_link "$LINENO"; then :
15124 ac_cv_lib_svld_dlopen=yes
15125else
15126 ac_cv_lib_svld_dlopen=no
15127fi
15128rm -f core conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130LIBS=$ac_check_lib_save_LIBS
15131fi
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15133$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15134if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15135 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15136else
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15138$as_echo_n "checking for dld_link in -ldld... " >&6; }
15139if ${ac_cv_lib_dld_dld_link+:} false; then :
15140 $as_echo_n "(cached) " >&6
15141else
15142 ac_check_lib_save_LIBS=$LIBS
15143LIBS="-ldld $LIBS"
15144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15145/* end confdefs.h. */
15146
15147
15148#ifdef __cplusplus
15149extern "C"
15150#endif
15151char dld_link ();
15152int main (void)
15153{
15154return dld_link ();
15155 ;
15156 return 0;
15157}
15158_ACEOF
15159if ac_fn_c_try_link "$LINENO"; then :
15160 ac_cv_lib_dld_dld_link=yes
15161else
15162 ac_cv_lib_dld_dld_link=no
15163fi
15164rm -f core conftest.err conftest.$ac_objext \
15165 conftest$ac_exeext conftest.$ac_ext
15166LIBS=$ac_check_lib_save_LIBS
15167fi
15168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15169$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15170if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15171 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15172fi
15173
15174
15175fi
15176
15177
15178fi
15179
15180
15181fi
15182
15183
15184fi
15185
15186
15187fi
15188
15189 ;;
15190 esac
15191
15192 if test no = "$lt_cv_dlopen"; then
15193 enable_dlopen=no
15194 else
15195 enable_dlopen=yes
15196 fi
15197
15198 case $lt_cv_dlopen in
15199 dlopen)
15200 save_CPPFLAGS=$CPPFLAGS
15201 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15202
15203 save_LDFLAGS=$LDFLAGS
15204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15205
15206 save_LIBS=$LIBS
15207 LIBS="$lt_cv_dlopen_libs $LIBS"
15208
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15210$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15211if ${lt_cv_dlopen_self+:} false; then :
15212 $as_echo_n "(cached) " >&6
15213else
15214 if test yes = "$cross_compiling"; then :
15215 lt_cv_dlopen_self=cross
15216else
15217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15218 lt_status=$lt_dlunknown
15219 cat > conftest.$ac_ext <<_LT_EOF
15220#line $LINENO "configure"
15221#include "confdefs.h"
15222
15223#if HAVE_DLFCN_H
15224#include <dlfcn.h>
15225#endif
15226
15227#include <stdio.h>
15228
15229#ifdef RTLD_GLOBAL
15230# define LT_DLGLOBAL RTLD_GLOBAL
15231#else
15232# ifdef DL_GLOBAL
15233# define LT_DLGLOBAL DL_GLOBAL
15234# else
15235# define LT_DLGLOBAL 0
15236# endif
15237#endif
15238
15239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15240 find out it does not work in some platform. */
15241#ifndef LT_DLLAZY_OR_NOW
15242# ifdef RTLD_LAZY
15243# define LT_DLLAZY_OR_NOW RTLD_LAZY
15244# else
15245# ifdef DL_LAZY
15246# define LT_DLLAZY_OR_NOW DL_LAZY
15247# else
15248# ifdef RTLD_NOW
15249# define LT_DLLAZY_OR_NOW RTLD_NOW
15250# else
15251# ifdef DL_NOW
15252# define LT_DLLAZY_OR_NOW DL_NOW
15253# else
15254# define LT_DLLAZY_OR_NOW 0
15255# endif
15256# endif
15257# endif
15258# endif
15259#endif
15260
15261/* When -fvisibility=hidden is used, assume the code has been annotated
15262 correspondingly for the symbols needed. */
15263#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15264int fnord () __attribute__((visibility("default")));
15265#endif
15266
15267int fnord () { return 42; }
15268int main ()
15269{
15270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15271 int status = $lt_dlunknown;
15272
15273 if (self)
15274 {
15275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15276 else
15277 {
15278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15279 else puts (dlerror ());
15280 }
15281 /* dlclose (self); */
15282 }
15283 else
15284 puts (dlerror ());
15285
15286 return status;
15287}
15288_LT_EOF
15289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15290 (eval $ac_link) 2>&5
15291 ac_status=$?
15292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15293 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15294 (./conftest; exit; ) >&5 2>/dev/null
15295 lt_status=$?
15296 case x$lt_status in
15297 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15298 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15299 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15300 esac
15301 else :
15302 # compilation failed
15303 lt_cv_dlopen_self=no
15304 fi
15305fi
15306rm -fr conftest*
15307
15308
15309fi
15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15311$as_echo "$lt_cv_dlopen_self" >&6; }
15312
15313 if test yes = "$lt_cv_dlopen_self"; then
15314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15316$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15317if ${lt_cv_dlopen_self_static+:} false; then :
15318 $as_echo_n "(cached) " >&6
15319else
15320 if test yes = "$cross_compiling"; then :
15321 lt_cv_dlopen_self_static=cross
15322else
15323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15324 lt_status=$lt_dlunknown
15325 cat > conftest.$ac_ext <<_LT_EOF
15326#line $LINENO "configure"
15327#include "confdefs.h"
15328
15329#if HAVE_DLFCN_H
15330#include <dlfcn.h>
15331#endif
15332
15333#include <stdio.h>
15334
15335#ifdef RTLD_GLOBAL
15336# define LT_DLGLOBAL RTLD_GLOBAL
15337#else
15338# ifdef DL_GLOBAL
15339# define LT_DLGLOBAL DL_GLOBAL
15340# else
15341# define LT_DLGLOBAL 0
15342# endif
15343#endif
15344
15345/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15346 find out it does not work in some platform. */
15347#ifndef LT_DLLAZY_OR_NOW
15348# ifdef RTLD_LAZY
15349# define LT_DLLAZY_OR_NOW RTLD_LAZY
15350# else
15351# ifdef DL_LAZY
15352# define LT_DLLAZY_OR_NOW DL_LAZY
15353# else
15354# ifdef RTLD_NOW
15355# define LT_DLLAZY_OR_NOW RTLD_NOW
15356# else
15357# ifdef DL_NOW
15358# define LT_DLLAZY_OR_NOW DL_NOW
15359# else
15360# define LT_DLLAZY_OR_NOW 0
15361# endif
15362# endif
15363# endif
15364# endif
15365#endif
15366
15367/* When -fvisibility=hidden is used, assume the code has been annotated
15368 correspondingly for the symbols needed. */
15369#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15370int fnord () __attribute__((visibility("default")));
15371#endif
15372
15373int fnord () { return 42; }
15374int main ()
15375{
15376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15377 int status = $lt_dlunknown;
15378
15379 if (self)
15380 {
15381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15382 else
15383 {
15384 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15385 else puts (dlerror ());
15386 }
15387 /* dlclose (self); */
15388 }
15389 else
15390 puts (dlerror ());
15391
15392 return status;
15393}
15394_LT_EOF
15395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15396 (eval $ac_link) 2>&5
15397 ac_status=$?
15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15400 (./conftest; exit; ) >&5 2>/dev/null
15401 lt_status=$?
15402 case x$lt_status in
15403 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15404 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15405 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15406 esac
15407 else :
15408 # compilation failed
15409 lt_cv_dlopen_self_static=no
15410 fi
15411fi
15412rm -fr conftest*
15413
15414
15415fi
15416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15417$as_echo "$lt_cv_dlopen_self_static" >&6; }
15418 fi
15419
15420 CPPFLAGS=$save_CPPFLAGS
15421 LDFLAGS=$save_LDFLAGS
15422 LIBS=$save_LIBS
15423 ;;
15424 esac
15425
15426 case $lt_cv_dlopen_self in
15427 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15428 *) enable_dlopen_self=unknown ;;
15429 esac
15430
15431 case $lt_cv_dlopen_self_static in
15432 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15433 *) enable_dlopen_self_static=unknown ;;
15434 esac
15435fi
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453striplib=
15454old_striplib=
15455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15456$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15457if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15458 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15459 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15461$as_echo "yes" >&6; }
15462else
15463# FIXME - insert some real tests, host_os isn't really good enough
15464 case $host_os in
15465 darwin*)
15466 if test -n "$STRIP"; then
15467 striplib="$STRIP -x"
15468 old_striplib="$STRIP -S"
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15470$as_echo "yes" >&6; }
15471 else
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473$as_echo "no" >&6; }
15474 fi
15475 ;;
15476 *)
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478$as_echo "no" >&6; }
15479 ;;
15480 esac
15481fi
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494 # Report what library types will actually be built
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15496$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15498$as_echo "$can_build_shared" >&6; }
15499
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15501$as_echo_n "checking whether to build shared libraries... " >&6; }
15502 test no = "$can_build_shared" && enable_shared=no
15503
15504 # On AIX, shared libraries and static libraries use the same namespace, and
15505 # are all built from PIC.
15506 case $host_os in
15507 aix3*)
15508 test yes = "$enable_shared" && enable_static=no
15509 if test -n "$RANLIB"; then
15510 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15511 postinstall_cmds='$RANLIB $lib'
15512 fi
15513 ;;
15514
15515 aix[4-9]*)
15516 if test ia64 != "$host_cpu"; then
15517 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15518 yes,aix,yes) ;; # shared object as lib.so file only
15519 yes,svr4,*) ;; # shared object as lib.so archive member only
15520 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15521 esac
15522 fi
15523 ;;
15524 esac
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15526$as_echo "$enable_shared" >&6; }
15527
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15529$as_echo_n "checking whether to build static libraries... " >&6; }
15530 # Make sure either enable_shared or enable_static is yes.
15531 test yes = "$enable_shared" || enable_static=yes
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15533$as_echo "$enable_static" >&6; }
15534
15535
15536
15537
15538fi
15539ac_ext=c
15540ac_cpp='$CPP $CPPFLAGS'
15541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15543ac_compiler_gnu=$ac_cv_c_compiler_gnu
15544
15545CC=$lt_save_CC
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561 ac_config_commands="$ac_config_commands libtool"
15562
15563
15564
15565
15566# Only expand once:
15567
15568
15569## --------------------- ##
15570## End of libtool code ##
15571## --------------------- ##
15572
15573#
15574# Verify if finally libtool shared libraries will be built
15575#
15576
15577case "x$enable_shared" in # ((
15578 xyes | xno)
15579 xc_lt_build_shared=$enable_shared
15580 ;;
15581 *)
15582 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15583 ;;
15584esac
15585
15586#
15587# Verify if finally libtool static libraries will be built
15588#
15589
15590case "x$enable_static" in # ((
15591 xyes | xno)
15592 xc_lt_build_static=$enable_static
15593 ;;
15594 *)
15595 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15596 ;;
15597esac
15598
15599#
15600# Verify if libtool shared libraries should be linked using flag -version-info
15601#
15602
15603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15604$as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15605xc_lt_shlib_use_version_info='yes'
15606if test "x$version_type" = 'xnone'; then
15607 xc_lt_shlib_use_version_info='no'
15608fi
15609case $host_os in # (
15610 amigaos*)
15611 xc_lt_shlib_use_version_info='yes'
15612 ;;
15613esac
15614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15615$as_echo "$xc_lt_shlib_use_version_info" >&6; }
15616
15617#
15618# Verify if libtool shared libraries should be linked using flag -no-undefined
15619#
15620
15621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15622$as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15623xc_lt_shlib_use_no_undefined='no'
15624if test "x$allow_undefined" = 'xno'; then
15625 xc_lt_shlib_use_no_undefined='yes'
15626elif test "x$allow_undefined_flag" = 'xunsupported'; then
15627 xc_lt_shlib_use_no_undefined='yes'
15628fi
15629case $host_os in # (
15630 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15631 xc_lt_shlib_use_no_undefined='yes'
15632 ;;
15633esac
15634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15635$as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15636
15637#
15638# Verify if libtool shared libraries should be linked using flag -mimpure-text
15639#
15640
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15642$as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15643xc_lt_shlib_use_mimpure_text='no'
15644case $host_os in # (
15645 solaris2*)
15646 if test "x$GCC" = 'xyes'; then
15647 xc_lt_shlib_use_mimpure_text='yes'
15648 fi
15649 ;;
15650esac
15651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15652$as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15653
15654#
15655# Find out whether libtool libraries would be built wit PIC
15656#
15657
15658case "x$pic_mode" in # ((((
15659 xdefault)
15660 xc_lt_build_shared_with_pic='yes'
15661 xc_lt_build_static_with_pic='no'
15662 ;;
15663 xyes)
15664 xc_lt_build_shared_with_pic='yes'
15665 xc_lt_build_static_with_pic='yes'
15666 ;;
15667 xno)
15668 xc_lt_build_shared_with_pic='no'
15669 xc_lt_build_static_with_pic='no'
15670 ;;
15671 *)
15672 xc_lt_build_shared_with_pic='unknown'
15673 xc_lt_build_static_with_pic='unknown'
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15675$as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15676 ;;
15677esac
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15679$as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15681$as_echo "$xc_lt_build_shared_with_pic" >&6; }
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15683$as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15685$as_echo "$xc_lt_build_static_with_pic" >&6; }
15686
15687#
15688# Verify if libtool shared libraries will be built while static not built
15689#
15690
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15692$as_echo_n "checking whether to build shared libraries only... " >&6; }
15693if test "$xc_lt_build_shared" = 'yes' &&
15694 test "$xc_lt_build_static" = 'no'; then
15695 xc_lt_build_shared_only='yes'
15696else
15697 xc_lt_build_shared_only='no'
15698fi
15699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15700$as_echo "$xc_lt_build_shared_only" >&6; }
15701
15702#
15703# Verify if libtool static libraries will be built while shared not built
15704#
15705
15706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15707$as_echo_n "checking whether to build static libraries only... " >&6; }
15708if test "$xc_lt_build_static" = 'yes' &&
15709 test "$xc_lt_build_shared" = 'no'; then
15710 xc_lt_build_static_only='yes'
15711else
15712 xc_lt_build_static_only='no'
15713fi
15714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15715$as_echo "$xc_lt_build_static_only" >&6; }
15716
15717
15718
15719
15720#
15721# Automake conditionals based on libtool related checks
15722#
15723
15724 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15725 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15726 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15727else
15728 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15729 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15730fi
15731
15732 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15733 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15734 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15735else
15736 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15737 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15738fi
15739
15740 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15741 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15742 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15743else
15744 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15745 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15746fi
15747
15748
15749#
15750# Due to libtool and automake machinery limitations of not allowing
15751# specifying separate CPPFLAGS or CFLAGS when compiling objects for
15752# inclusion of these in shared or static libraries, we are forced to
15753# build using separate configure runs for shared and static libraries
15754# on systems where different CPPFLAGS or CFLAGS are mandatory in order
15755# to compile objects for each kind of library. Notice that relying on
15756# the '-DPIC' CFLAG that libtool provides is not valid given that the
15757# user might for example choose to build static libraries with PIC.
15758#
15759
15760#
15761# Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15762# targeting a static library and not building its shared counterpart.
15763#
15764
15765 if test "x$xc_lt_build_static_only" = 'xyes'; then
15766 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15767 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15768else
15769 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15770 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15771fi
15772
15773
15774#
15775# Make staticlib CPPFLAG variable and its definition visible in output
15776# files unconditionally, providing an empty definition unless strictly
15777# targeting a static library and not building its shared counterpart.
15778#
15779
15780CPPFLAG_CURL_STATICLIB=
15781if test "x$xc_lt_build_static_only" = 'xyes'; then
15782 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15783fi
15784
15785
15786
15787# Determine whether all dependent libraries must be specified when linking
15788if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15789then
15790 REQUIRE_LIB_DEPS=no
15791else
15792 REQUIRE_LIB_DEPS=yes
15793fi
15794
15795 if test x$REQUIRE_LIB_DEPS = xyes; then
15796 USE_EXPLICIT_LIB_DEPS_TRUE=
15797 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15798else
15799 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15800 USE_EXPLICIT_LIB_DEPS_FALSE=
15801fi
15802
15803
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15805$as_echo_n "checking for inline... " >&6; }
15806if ${ac_cv_c_inline+:} false; then :
15807 $as_echo_n "(cached) " >&6
15808else
15809 ac_cv_c_inline=no
15810for ac_kw in inline __inline__ __inline; do
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812/* end confdefs.h. */
15813#ifndef __cplusplus
15814typedef int foo_t;
15815static $ac_kw foo_t static_foo () {return 0; }
15816$ac_kw foo_t foo () {return 0; }
15817#endif
15818
15819_ACEOF
15820if ac_fn_c_try_compile "$LINENO"; then :
15821 ac_cv_c_inline=$ac_kw
15822fi
15823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 test "$ac_cv_c_inline" != no && break
15825done
15826
15827fi
15828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15829$as_echo "$ac_cv_c_inline" >&6; }
15830
15831case $ac_cv_c_inline in
15832 inline | yes) ;;
15833 *)
15834 case $ac_cv_c_inline in
15835 no) ac_val=;;
15836 *) ac_val=$ac_cv_c_inline;;
15837 esac
15838 cat >>confdefs.h <<_ACEOF
15839#ifndef __cplusplus
15840#define inline $ac_val
15841#endif
15842_ACEOF
15843 ;;
15844esac
15845
15846
15847
15848
Alex Deymo486467e2017-12-19 19:04:07 +010015849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15850$as_echo_n "checking if cpp -P is needed... " >&6; }
15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15852/* end confdefs.h. */
15853
15854 #include <errno.h>
15855TEST EINVAL TEST
15856
15857_ACEOF
15858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15859 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15860 cpp=no
15861else
15862 cpp=yes
15863fi
15864rm -f conftest*
15865
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15867$as_echo "$cpp" >&6; }
15868
15869 if test "x$cpp" = "xyes"; then
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15871$as_echo_n "checking if cpp -P works... " >&6; }
15872 OLDCPPFLAGS=$CPPFLAGS
15873 CPPFLAGS="$CPPFLAGS -P"
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875/* end confdefs.h. */
15876
15877 #include <errno.h>
15878TEST EINVAL TEST
15879
15880_ACEOF
15881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15882 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15883 cpp_p=yes
15884else
15885 cpp_p=no
15886fi
15887rm -f conftest*
15888
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15890$as_echo "$cpp_p" >&6; }
15891
15892 if test "x$cpp_p" = "xno"; then
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15894$as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15895 # without -P
15896 CPPPFLAG=""
15897 else
15898 # with -P
15899 CPPPFLAG="-P"
15900 fi
15901 CPPFLAGS=$OLDCPPFLAGS
15902 else
15903 # without -P
15904 CPPPFLAG=""
15905 fi
15906
15907
Elliott Hughes82be86d2017-09-20 17:00:17 -070015908 #
15909 compiler_id="unknown"
15910 compiler_num="0"
15911 #
15912 flags_dbg_all="unknown"
15913 flags_dbg_yes="unknown"
15914 flags_dbg_off="unknown"
15915 flags_opt_all="unknown"
15916 flags_opt_yes="unknown"
15917 flags_opt_off="unknown"
15918 #
15919 flags_prefer_cppflags="no"
15920 #
15921
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15923$as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15924
15925 OLDCPPFLAGS=$CPPFLAGS
15926 # CPPPFLAG comes from CURL_CPP_P
15927 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15928 if test -z "$SED"; then
15929 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15930 fi
15931 if test -z "$GREP"; then
15932 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15933 fi
15934
15935 tmp_exp=""
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937/* end confdefs.h. */
15938
15939
15940#ifdef __DECC
15941CURL_DEF_TOKEN __DECC
15942#endif
15943
15944
15945_ACEOF
15946if ac_fn_c_try_cpp "$LINENO"; then :
15947
15948 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15949 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15950 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15951 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15952 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15953 tmp_exp=""
15954 fi
15955
15956fi
15957rm -f conftest.err conftest.i conftest.$ac_ext
15958 if test -z "$tmp_exp"; then
15959 curl_cv_have_def___DECC=no
15960
15961 else
15962 curl_cv_have_def___DECC=yes
15963 curl_cv_def___DECC=$tmp_exp
15964
15965 fi
15966 CPPFLAGS=$OLDCPPFLAGS
15967
15968
15969 OLDCPPFLAGS=$CPPFLAGS
15970 # CPPPFLAG comes from CURL_CPP_P
15971 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15972 if test -z "$SED"; then
15973 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15974 fi
15975 if test -z "$GREP"; then
15976 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15977 fi
15978
15979 tmp_exp=""
15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h. */
15982
15983
15984#ifdef __DECC_VER
15985CURL_DEF_TOKEN __DECC_VER
15986#endif
15987
15988
15989_ACEOF
15990if ac_fn_c_try_cpp "$LINENO"; then :
15991
15992 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15993 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15994 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15995 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15996 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15997 tmp_exp=""
15998 fi
15999
16000fi
16001rm -f conftest.err conftest.i conftest.$ac_ext
16002 if test -z "$tmp_exp"; then
16003 curl_cv_have_def___DECC_VER=no
16004
16005 else
16006 curl_cv_have_def___DECC_VER=yes
16007 curl_cv_def___DECC_VER=$tmp_exp
16008
16009 fi
16010 CPPFLAGS=$OLDCPPFLAGS
16011
16012 if test "$curl_cv_have_def___DECC" = "yes" &&
16013 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16015$as_echo "yes" >&6; }
16016 compiler_id="DEC_C"
16017 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16018 flags_dbg_yes="-g2"
16019 flags_dbg_off=""
16020 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16021 flags_opt_yes="-O1"
16022 flags_opt_off="-O0"
16023 else
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025$as_echo "no" >&6; }
16026 fi
16027
16028
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16030$as_echo_n "checking if compiler is HP-UX C... " >&6; }
16031
16032 OLDCPPFLAGS=$CPPFLAGS
16033 # CPPPFLAG comes from CURL_CPP_P
16034 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16035 if test -z "$SED"; then
16036 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16037 fi
16038 if test -z "$GREP"; then
16039 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16040 fi
16041
16042 tmp_exp=""
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044/* end confdefs.h. */
16045
16046
16047#ifdef __HP_cc
16048CURL_DEF_TOKEN __HP_cc
16049#endif
16050
16051
16052_ACEOF
16053if ac_fn_c_try_cpp "$LINENO"; then :
16054
16055 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16056 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16057 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16058 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16059 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16060 tmp_exp=""
16061 fi
16062
16063fi
16064rm -f conftest.err conftest.i conftest.$ac_ext
16065 if test -z "$tmp_exp"; then
16066 curl_cv_have_def___HP_cc=no
16067
16068 else
16069 curl_cv_have_def___HP_cc=yes
16070 curl_cv_def___HP_cc=$tmp_exp
16071
16072 fi
16073 CPPFLAGS=$OLDCPPFLAGS
16074
16075 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16077$as_echo "yes" >&6; }
16078 compiler_id="HP_UX_C"
16079 flags_dbg_all="-g -s"
16080 flags_dbg_yes="-g"
16081 flags_dbg_off="-s"
16082 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16083 flags_opt_yes="+O2"
16084 flags_opt_off="+O0"
16085 else
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16087$as_echo "no" >&6; }
16088 fi
16089
16090
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16092$as_echo_n "checking if compiler is IBM C... " >&6; }
16093
16094 OLDCPPFLAGS=$CPPFLAGS
16095 # CPPPFLAG comes from CURL_CPP_P
16096 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16097 if test -z "$SED"; then
16098 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16099 fi
16100 if test -z "$GREP"; then
16101 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16102 fi
16103
16104 tmp_exp=""
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106/* end confdefs.h. */
16107
16108
16109#ifdef __IBMC__
16110CURL_DEF_TOKEN __IBMC__
16111#endif
16112
16113
16114_ACEOF
16115if ac_fn_c_try_cpp "$LINENO"; then :
16116
16117 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16118 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16119 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16120 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16121 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16122 tmp_exp=""
16123 fi
16124
16125fi
16126rm -f conftest.err conftest.i conftest.$ac_ext
16127 if test -z "$tmp_exp"; then
16128 curl_cv_have_def___IBMC__=no
16129
16130 else
16131 curl_cv_have_def___IBMC__=yes
16132 curl_cv_def___IBMC__=$tmp_exp
16133
16134 fi
16135 CPPFLAGS=$OLDCPPFLAGS
16136
16137 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16139$as_echo "yes" >&6; }
16140 compiler_id="IBM_C"
16141 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16142 flags_dbg_yes="-g"
16143 flags_dbg_off=""
16144 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16145 flags_opt_all="$flags_opt_all -qnooptimize"
16146 flags_opt_all="$flags_opt_all -qoptimize=0"
16147 flags_opt_all="$flags_opt_all -qoptimize=1"
16148 flags_opt_all="$flags_opt_all -qoptimize=2"
16149 flags_opt_all="$flags_opt_all -qoptimize=3"
16150 flags_opt_all="$flags_opt_all -qoptimize=4"
16151 flags_opt_all="$flags_opt_all -qoptimize=5"
16152 flags_opt_yes="-O2"
16153 flags_opt_off="-qnooptimize"
16154 flags_prefer_cppflags="yes"
16155 else
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16157$as_echo "no" >&6; }
16158 fi
16159
16160
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16162$as_echo_n "checking if compiler is Intel C... " >&6; }
16163
16164 OLDCPPFLAGS=$CPPFLAGS
16165 # CPPPFLAG comes from CURL_CPP_P
16166 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16167 if test -z "$SED"; then
16168 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16169 fi
16170 if test -z "$GREP"; then
16171 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16172 fi
16173
16174 tmp_exp=""
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h. */
16177
16178
16179#ifdef __INTEL_COMPILER
16180CURL_DEF_TOKEN __INTEL_COMPILER
16181#endif
16182
16183
16184_ACEOF
16185if ac_fn_c_try_cpp "$LINENO"; then :
16186
16187 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16188 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16189 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16190 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16191 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16192 tmp_exp=""
16193 fi
16194
16195fi
16196rm -f conftest.err conftest.i conftest.$ac_ext
16197 if test -z "$tmp_exp"; then
16198 curl_cv_have_def___INTEL_COMPILER=no
16199
16200 else
16201 curl_cv_have_def___INTEL_COMPILER=yes
16202 curl_cv_def___INTEL_COMPILER=$tmp_exp
16203
16204 fi
16205 CPPFLAGS=$OLDCPPFLAGS
16206
16207 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16209$as_echo "yes" >&6; }
16210 compiler_num="$curl_cv_def___INTEL_COMPILER"
16211
16212 OLDCPPFLAGS=$CPPFLAGS
16213 # CPPPFLAG comes from CURL_CPP_P
16214 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16215 if test -z "$SED"; then
16216 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16217 fi
16218 if test -z "$GREP"; then
16219 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16220 fi
16221
16222 tmp_exp=""
16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224/* end confdefs.h. */
16225
16226
16227#ifdef __unix__
16228CURL_DEF_TOKEN __unix__
16229#endif
16230
16231
16232_ACEOF
16233if ac_fn_c_try_cpp "$LINENO"; then :
16234
16235 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16236 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16237 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16238 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16239 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16240 tmp_exp=""
16241 fi
16242
16243fi
16244rm -f conftest.err conftest.i conftest.$ac_ext
16245 if test -z "$tmp_exp"; then
16246 curl_cv_have_def___unix__=no
16247
16248 else
16249 curl_cv_have_def___unix__=yes
16250 curl_cv_def___unix__=$tmp_exp
16251
16252 fi
16253 CPPFLAGS=$OLDCPPFLAGS
16254
16255 if test "$curl_cv_have_def___unix__" = "yes"; then
16256 compiler_id="INTEL_UNIX_C"
16257 flags_dbg_all="-g -g0"
16258 flags_dbg_yes="-g"
16259 flags_dbg_off=""
16260 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16261 flags_opt_yes="-O2"
16262 flags_opt_off="-O0"
16263 else
16264 compiler_id="INTEL_WINDOWS_C"
16265 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16266 flags_dbg_all="$flags_dbg_all /debug"
16267 flags_dbg_all="$flags_dbg_all /debug:none"
16268 flags_dbg_all="$flags_dbg_all /debug:minimal"
16269 flags_dbg_all="$flags_dbg_all /debug:partial"
16270 flags_dbg_all="$flags_dbg_all /debug:full"
16271 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16272 flags_dbg_all="$flags_dbg_all /debug:extended"
16273 flags_dbg_yes="/Zi /Oy-"
16274 flags_dbg_off="/debug:none /Oy-"
16275 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16276 flags_opt_yes="/O2"
16277 flags_opt_off="/Od"
16278 fi
16279 else
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16281$as_echo "no" >&6; }
16282 fi
16283
16284
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16286$as_echo_n "checking if compiler is clang... " >&6; }
16287
16288 OLDCPPFLAGS=$CPPFLAGS
16289 # CPPPFLAG comes from CURL_CPP_P
16290 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16291 if test -z "$SED"; then
16292 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16293 fi
16294 if test -z "$GREP"; then
16295 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16296 fi
16297
16298 tmp_exp=""
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300/* end confdefs.h. */
16301
16302
16303#ifdef __clang__
16304CURL_DEF_TOKEN __clang__
16305#endif
16306
16307
16308_ACEOF
16309if ac_fn_c_try_cpp "$LINENO"; then :
16310
16311 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16312 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16313 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16314 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16315 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16316 tmp_exp=""
16317 fi
16318
16319fi
16320rm -f conftest.err conftest.i conftest.$ac_ext
16321 if test -z "$tmp_exp"; then
16322 curl_cv_have_def___clang__=no
16323
16324 else
16325 curl_cv_have_def___clang__=yes
16326 curl_cv_def___clang__=$tmp_exp
16327
16328 fi
16329 CPPFLAGS=$OLDCPPFLAGS
16330
16331 if test "$curl_cv_have_def___clang__" = "yes"; then
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333$as_echo "yes" >&6; }
16334 compiler_id="CLANG"
16335 fullclangver=`$CC -v 2>&1 | grep version`
16336 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16337 if test -z "$clangver"; then
16338 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
Alex Deymo486467e2017-12-19 19:04:07 +010016339 clangver="3.7"
Elliott Hughes82be86d2017-09-20 17:00:17 -070016340 else
16341 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16342 fi
16343 fi
16344 clangvhi=`echo $clangver | cut -d . -f1`
16345 clangvlo=`echo $clangver | cut -d . -f2`
16346 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16347 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16348 flags_dbg_all="$flags_dbg_all -ggdb"
16349 flags_dbg_all="$flags_dbg_all -gstabs"
16350 flags_dbg_all="$flags_dbg_all -gstabs+"
16351 flags_dbg_all="$flags_dbg_all -gcoff"
16352 flags_dbg_all="$flags_dbg_all -gxcoff"
16353 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16354 flags_dbg_all="$flags_dbg_all -gvms"
16355 flags_dbg_yes="-g"
16356 flags_dbg_off=""
16357 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16358 flags_opt_yes="-Os"
16359 flags_opt_off="-O0"
16360 else
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16362$as_echo "no" >&6; }
16363 fi
16364
16365
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16367$as_echo_n "checking if compiler is GNU C... " >&6; }
16368
16369 OLDCPPFLAGS=$CPPFLAGS
16370 # CPPPFLAG comes from CURL_CPP_P
16371 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16372 if test -z "$SED"; then
16373 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16374 fi
16375 if test -z "$GREP"; then
16376 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16377 fi
16378
16379 tmp_exp=""
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381/* end confdefs.h. */
16382
16383
16384#ifdef __GNUC__
16385CURL_DEF_TOKEN __GNUC__
16386#endif
16387
16388
16389_ACEOF
16390if ac_fn_c_try_cpp "$LINENO"; then :
16391
16392 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16393 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16394 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16395 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16396 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16397 tmp_exp=""
16398 fi
16399
16400fi
16401rm -f conftest.err conftest.i conftest.$ac_ext
16402 if test -z "$tmp_exp"; then
16403 curl_cv_have_def___GNUC__=no
16404
16405 else
16406 curl_cv_have_def___GNUC__=yes
16407 curl_cv_def___GNUC__=$tmp_exp
16408
16409 fi
16410 CPPFLAGS=$OLDCPPFLAGS
16411
16412 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16413 test "$compiler_id" = "unknown"; then
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16415$as_echo "yes" >&6; }
16416 compiler_id="GNU_C"
16417 gccver=`$CC -dumpversion`
16418 gccvhi=`echo $gccver | cut -d . -f1`
16419 gccvlo=`echo $gccver | cut -d . -f2`
16420 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16421 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16422 flags_dbg_all="$flags_dbg_all -ggdb"
16423 flags_dbg_all="$flags_dbg_all -gstabs"
16424 flags_dbg_all="$flags_dbg_all -gstabs+"
16425 flags_dbg_all="$flags_dbg_all -gcoff"
16426 flags_dbg_all="$flags_dbg_all -gxcoff"
16427 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16428 flags_dbg_all="$flags_dbg_all -gvms"
16429 flags_dbg_yes="-g"
16430 flags_dbg_off=""
16431 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16432 flags_opt_yes="-O2"
16433 flags_opt_off="-O0"
16434
16435 OLDCPPFLAGS=$CPPFLAGS
16436 # CPPPFLAG comes from CURL_CPP_P
16437 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16438 if test -z "$SED"; then
16439 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16440 fi
16441 if test -z "$GREP"; then
16442 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16443 fi
16444
16445 tmp_exp=""
16446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447/* end confdefs.h. */
16448
16449
16450#ifdef _WIN32
16451CURL_DEF_TOKEN _WIN32
16452#endif
16453
16454
16455_ACEOF
16456if ac_fn_c_try_cpp "$LINENO"; then :
16457
16458 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16459 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16460 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16461 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16462 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16463 tmp_exp=""
16464 fi
16465
16466fi
16467rm -f conftest.err conftest.i conftest.$ac_ext
16468 if test -z "$tmp_exp"; then
16469 curl_cv_have_def__WIN32=no
16470
16471 else
16472 curl_cv_have_def__WIN32=yes
16473 curl_cv_def__WIN32=$tmp_exp
16474
16475 fi
16476 CPPFLAGS=$OLDCPPFLAGS
16477
16478 else
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16480$as_echo "no" >&6; }
16481 fi
16482
16483
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16485$as_echo_n "checking if compiler is LCC... " >&6; }
16486
16487 OLDCPPFLAGS=$CPPFLAGS
16488 # CPPPFLAG comes from CURL_CPP_P
16489 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16490 if test -z "$SED"; then
16491 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16492 fi
16493 if test -z "$GREP"; then
16494 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16495 fi
16496
16497 tmp_exp=""
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499/* end confdefs.h. */
16500
16501
16502#ifdef __LCC__
16503CURL_DEF_TOKEN __LCC__
16504#endif
16505
16506
16507_ACEOF
16508if ac_fn_c_try_cpp "$LINENO"; then :
16509
16510 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16511 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16512 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16513 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16514 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16515 tmp_exp=""
16516 fi
16517
16518fi
16519rm -f conftest.err conftest.i conftest.$ac_ext
16520 if test -z "$tmp_exp"; then
16521 curl_cv_have_def___LCC__=no
16522
16523 else
16524 curl_cv_have_def___LCC__=yes
16525 curl_cv_def___LCC__=$tmp_exp
16526
16527 fi
16528 CPPFLAGS=$OLDCPPFLAGS
16529
16530 if test "$curl_cv_have_def___LCC__" = "yes"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16532$as_echo "yes" >&6; }
16533 compiler_id="LCC"
16534 flags_dbg_all="-g"
16535 flags_dbg_yes="-g"
16536 flags_dbg_off=""
16537 flags_opt_all=""
16538 flags_opt_yes=""
16539 flags_opt_off=""
16540 else
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16542$as_echo "no" >&6; }
16543 fi
16544
16545
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16547$as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16548
16549 OLDCPPFLAGS=$CPPFLAGS
16550 # CPPPFLAG comes from CURL_CPP_P
16551 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16552 if test -z "$SED"; then
16553 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16554 fi
16555 if test -z "$GREP"; then
16556 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16557 fi
16558
16559 tmp_exp=""
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561/* end confdefs.h. */
16562
16563
16564#ifdef __GNUC__
16565CURL_DEF_TOKEN __GNUC__
16566#endif
16567
16568
16569_ACEOF
16570if ac_fn_c_try_cpp "$LINENO"; then :
16571
16572 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16573 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16574 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16575 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16576 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16577 tmp_exp=""
16578 fi
16579
16580fi
16581rm -f conftest.err conftest.i conftest.$ac_ext
16582 if test -z "$tmp_exp"; then
16583 curl_cv_have_def___GNUC__=no
16584
16585 else
16586 curl_cv_have_def___GNUC__=yes
16587 curl_cv_def___GNUC__=$tmp_exp
16588
16589 fi
16590 CPPFLAGS=$OLDCPPFLAGS
16591
16592
16593 OLDCPPFLAGS=$CPPFLAGS
16594 # CPPPFLAG comes from CURL_CPP_P
16595 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16596 if test -z "$SED"; then
16597 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16598 fi
16599 if test -z "$GREP"; then
16600 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16601 fi
16602
16603 tmp_exp=""
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605/* end confdefs.h. */
16606
16607
16608#ifdef _COMPILER_VERSION
16609CURL_DEF_TOKEN _COMPILER_VERSION
16610#endif
16611
16612
16613_ACEOF
16614if ac_fn_c_try_cpp "$LINENO"; then :
16615
16616 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16617 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16618 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16619 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16620 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16621 tmp_exp=""
16622 fi
16623
16624fi
16625rm -f conftest.err conftest.i conftest.$ac_ext
16626 if test -z "$tmp_exp"; then
16627 curl_cv_have_def__COMPILER_VERSION=no
16628
16629 else
16630 curl_cv_have_def__COMPILER_VERSION=yes
16631 curl_cv_def__COMPILER_VERSION=$tmp_exp
16632
16633 fi
16634 CPPFLAGS=$OLDCPPFLAGS
16635
16636
16637 OLDCPPFLAGS=$CPPFLAGS
16638 # CPPPFLAG comes from CURL_CPP_P
16639 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16640 if test -z "$SED"; then
16641 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16642 fi
16643 if test -z "$GREP"; then
16644 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16645 fi
16646
16647 tmp_exp=""
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649/* end confdefs.h. */
16650
16651
16652#ifdef _SGI_COMPILER_VERSION
16653CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16654#endif
16655
16656
16657_ACEOF
16658if ac_fn_c_try_cpp "$LINENO"; then :
16659
16660 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16661 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16662 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16663 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16664 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16665 tmp_exp=""
16666 fi
16667
16668fi
16669rm -f conftest.err conftest.i conftest.$ac_ext
16670 if test -z "$tmp_exp"; then
16671 curl_cv_have_def__SGI_COMPILER_VERSION=no
16672
16673 else
16674 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16675 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16676
16677 fi
16678 CPPFLAGS=$OLDCPPFLAGS
16679
16680 if test "$curl_cv_have_def___GNUC__" = "no" &&
16681 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16682 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16684$as_echo "yes" >&6; }
16685 compiler_id="SGI_MIPSPRO_C"
16686 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16687 flags_dbg_yes="-g"
16688 flags_dbg_off=""
16689 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16690 flags_opt_yes="-O2"
16691 flags_opt_off="-O0"
16692 else
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694$as_echo "no" >&6; }
16695 fi
16696
16697
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16699$as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16700
16701 OLDCPPFLAGS=$CPPFLAGS
16702 # CPPPFLAG comes from CURL_CPP_P
16703 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16704 if test -z "$SED"; then
16705 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16706 fi
16707 if test -z "$GREP"; then
16708 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16709 fi
16710
16711 tmp_exp=""
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713/* end confdefs.h. */
16714
16715
16716#ifdef __GNUC__
16717CURL_DEF_TOKEN __GNUC__
16718#endif
16719
16720
16721_ACEOF
16722if ac_fn_c_try_cpp "$LINENO"; then :
16723
16724 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16725 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16726 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16727 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16728 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16729 tmp_exp=""
16730 fi
16731
16732fi
16733rm -f conftest.err conftest.i conftest.$ac_ext
16734 if test -z "$tmp_exp"; then
16735 curl_cv_have_def___GNUC__=no
16736
16737 else
16738 curl_cv_have_def___GNUC__=yes
16739 curl_cv_def___GNUC__=$tmp_exp
16740
16741 fi
16742 CPPFLAGS=$OLDCPPFLAGS
16743
16744
16745 OLDCPPFLAGS=$CPPFLAGS
16746 # CPPPFLAG comes from CURL_CPP_P
16747 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16748 if test -z "$SED"; then
16749 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16750 fi
16751 if test -z "$GREP"; then
16752 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16753 fi
16754
16755 tmp_exp=""
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757/* end confdefs.h. */
16758
16759
16760#ifdef __sgi
16761CURL_DEF_TOKEN __sgi
16762#endif
16763
16764
16765_ACEOF
16766if ac_fn_c_try_cpp "$LINENO"; then :
16767
16768 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16769 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16770 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16771 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16772 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16773 tmp_exp=""
16774 fi
16775
16776fi
16777rm -f conftest.err conftest.i conftest.$ac_ext
16778 if test -z "$tmp_exp"; then
16779 curl_cv_have_def___sgi=no
16780
16781 else
16782 curl_cv_have_def___sgi=yes
16783 curl_cv_def___sgi=$tmp_exp
16784
16785 fi
16786 CPPFLAGS=$OLDCPPFLAGS
16787
16788 if test "$curl_cv_have_def___GNUC__" = "no" &&
16789 test "$curl_cv_have_def___sgi" = "yes" &&
16790 test "$compiler_id" = "unknown"; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16792$as_echo "yes" >&6; }
16793 compiler_id="SGI_MIPS_C"
16794 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16795 flags_dbg_yes="-g"
16796 flags_dbg_off=""
16797 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16798 flags_opt_yes="-O2"
16799 flags_opt_off="-O0"
16800 else
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16802$as_echo "no" >&6; }
16803 fi
16804
16805
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16807$as_echo_n "checking if compiler is SunPro C... " >&6; }
16808
16809 OLDCPPFLAGS=$CPPFLAGS
16810 # CPPPFLAG comes from CURL_CPP_P
16811 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16812 if test -z "$SED"; then
16813 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16814 fi
16815 if test -z "$GREP"; then
16816 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16817 fi
16818
16819 tmp_exp=""
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821/* end confdefs.h. */
16822
16823
16824#ifdef __SUNPRO_C
16825CURL_DEF_TOKEN __SUNPRO_C
16826#endif
16827
16828
16829_ACEOF
16830if ac_fn_c_try_cpp "$LINENO"; then :
16831
16832 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16833 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16834 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16835 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16836 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16837 tmp_exp=""
16838 fi
16839
16840fi
16841rm -f conftest.err conftest.i conftest.$ac_ext
16842 if test -z "$tmp_exp"; then
16843 curl_cv_have_def___SUNPRO_C=no
16844
16845 else
16846 curl_cv_have_def___SUNPRO_C=yes
16847 curl_cv_def___SUNPRO_C=$tmp_exp
16848
16849 fi
16850 CPPFLAGS=$OLDCPPFLAGS
16851
16852 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16854$as_echo "yes" >&6; }
16855 compiler_id="SUNPRO_C"
16856 flags_dbg_all="-g -s"
16857 flags_dbg_yes="-g"
16858 flags_dbg_off="-s"
16859 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16860 flags_opt_yes="-xO2"
16861 flags_opt_off=""
16862 else
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16864$as_echo "no" >&6; }
16865 fi
16866
16867
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16869$as_echo_n "checking if compiler is Tiny C... " >&6; }
16870
16871 OLDCPPFLAGS=$CPPFLAGS
16872 # CPPPFLAG comes from CURL_CPP_P
16873 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16874 if test -z "$SED"; then
16875 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16876 fi
16877 if test -z "$GREP"; then
16878 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16879 fi
16880
16881 tmp_exp=""
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h. */
16884
16885
16886#ifdef __TINYC__
16887CURL_DEF_TOKEN __TINYC__
16888#endif
16889
16890
16891_ACEOF
16892if ac_fn_c_try_cpp "$LINENO"; then :
16893
16894 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16895 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16896 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16897 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16898 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16899 tmp_exp=""
16900 fi
16901
16902fi
16903rm -f conftest.err conftest.i conftest.$ac_ext
16904 if test -z "$tmp_exp"; then
16905 curl_cv_have_def___TINYC__=no
16906
16907 else
16908 curl_cv_have_def___TINYC__=yes
16909 curl_cv_def___TINYC__=$tmp_exp
16910
16911 fi
16912 CPPFLAGS=$OLDCPPFLAGS
16913
16914 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16916$as_echo "yes" >&6; }
16917 compiler_id="TINY_C"
16918 flags_dbg_all="-g -b"
16919 flags_dbg_yes="-g"
16920 flags_dbg_off=""
16921 flags_opt_all=""
16922 flags_opt_yes=""
16923 flags_opt_off=""
16924 else
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16926$as_echo "no" >&6; }
16927 fi
16928
16929
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16931$as_echo_n "checking if compiler is Watcom C... " >&6; }
16932
16933 OLDCPPFLAGS=$CPPFLAGS
16934 # CPPPFLAG comes from CURL_CPP_P
16935 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16936 if test -z "$SED"; then
16937 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16938 fi
16939 if test -z "$GREP"; then
16940 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16941 fi
16942
16943 tmp_exp=""
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945/* end confdefs.h. */
16946
16947
16948#ifdef __WATCOMC__
16949CURL_DEF_TOKEN __WATCOMC__
16950#endif
16951
16952
16953_ACEOF
16954if ac_fn_c_try_cpp "$LINENO"; then :
16955
16956 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16957 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16958 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16959 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16960 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16961 tmp_exp=""
16962 fi
16963
16964fi
16965rm -f conftest.err conftest.i conftest.$ac_ext
16966 if test -z "$tmp_exp"; then
16967 curl_cv_have_def___WATCOMC__=no
16968
16969 else
16970 curl_cv_have_def___WATCOMC__=yes
16971 curl_cv_def___WATCOMC__=$tmp_exp
16972
16973 fi
16974 CPPFLAGS=$OLDCPPFLAGS
16975
16976 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16978$as_echo "yes" >&6; }
16979
16980 OLDCPPFLAGS=$CPPFLAGS
16981 # CPPPFLAG comes from CURL_CPP_P
16982 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16983 if test -z "$SED"; then
16984 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16985 fi
16986 if test -z "$GREP"; then
16987 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16988 fi
16989
16990 tmp_exp=""
16991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16992/* end confdefs.h. */
16993
16994
16995#ifdef __UNIX__
16996CURL_DEF_TOKEN __UNIX__
16997#endif
16998
16999
17000_ACEOF
17001if ac_fn_c_try_cpp "$LINENO"; then :
17002
17003 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17004 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17005 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17006 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17007 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17008 tmp_exp=""
17009 fi
17010
17011fi
17012rm -f conftest.err conftest.i conftest.$ac_ext
17013 if test -z "$tmp_exp"; then
17014 curl_cv_have_def___UNIX__=no
17015
17016 else
17017 curl_cv_have_def___UNIX__=yes
17018 curl_cv_def___UNIX__=$tmp_exp
17019
17020 fi
17021 CPPFLAGS=$OLDCPPFLAGS
17022
17023 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17024 compiler_id="WATCOM_UNIX_C"
17025 flags_dbg_all="-g1 -g1+ -g2 -g3"
17026 flags_dbg_yes="-g2"
17027 flags_dbg_off=""
17028 flags_opt_all="-O0 -O1 -O2 -O3"
17029 flags_opt_yes="-O2"
17030 flags_opt_off="-O0"
17031 else
17032 compiler_id="WATCOM_WINDOWS_C"
17033 flags_dbg_all=""
17034 flags_dbg_yes=""
17035 flags_dbg_off=""
17036 flags_opt_all=""
17037 flags_opt_yes=""
17038 flags_opt_off=""
17039 fi
17040 else
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17042$as_echo "no" >&6; }
17043 fi
17044
17045 #
17046 if test "$compiler_id" = "unknown"; then
17047 cat <<_EOF 1>&2
17048***
17049*** Warning: This configure script does not have information about the
17050*** compiler you are using, relative to the flags required to enable or
17051*** disable generation of debug info, optimization options or warnings.
17052***
17053*** Whatever settings are present in CFLAGS will be used for this run.
17054***
17055*** If you wish to help the curl project to better support your compiler
17056*** you can report this and the required info on the libcurl development
17057*** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17058***
17059_EOF
17060 fi
17061
17062
17063squeeze() {
17064 _sqz_result=""
17065 eval _sqz_input=\$$1
17066 for _sqz_token in $_sqz_input; do
17067 if test -z "$_sqz_result"; then
17068 _sqz_result="$_sqz_token"
17069 else
17070 _sqz_result="$_sqz_result $_sqz_token"
17071 fi
17072 done
17073 eval $1=\$_sqz_result
17074 return 0
17075}
17076
17077
17078 #
17079 if test "$compiler_id" != "unknown"; then
17080 #
17081 if test "$compiler_id" = "GNU_C" ||
17082 test "$compiler_id" = "CLANG"; then
17083
17084 if test "$compiler_id" = "GNU_C" ||
17085 test "$compiler_id" = "CLANG"; then
17086 tmp_has_include="no"
17087 tmp_chg_FLAGS="$CFLAGS"
17088 for word1 in $tmp_chg_FLAGS; do
17089 case "$word1" in
17090 -I*)
17091 tmp_has_include="yes"
17092 ;;
17093 esac
17094 done
17095 if test "$tmp_has_include" = "yes"; then
17096 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17097 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17098 CFLAGS="$tmp_chg_FLAGS"
17099 squeeze CFLAGS
17100 fi
17101 tmp_has_include="no"
17102 tmp_chg_FLAGS="$CPPFLAGS"
17103 for word1 in $tmp_chg_FLAGS; do
17104 case "$word1" in
17105 -I*)
17106 tmp_has_include="yes"
17107 ;;
17108 esac
17109 done
17110 if test "$tmp_has_include" = "yes"; then
17111 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17112 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17113 CPPFLAGS="$tmp_chg_FLAGS"
17114 squeeze CPPFLAGS
17115 fi
17116 fi
17117
17118 fi
17119 #
17120 tmp_save_CPPFLAGS="$CPPFLAGS"
17121 tmp_save_CFLAGS="$CFLAGS"
17122 tmp_CPPFLAGS=""
17123 tmp_CFLAGS=""
17124 #
17125 case "$compiler_id" in
17126 #
17127 CLANG)
17128 #
17129 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17130 ;;
17131 #
17132 DEC_C)
17133 #
17134 tmp_CFLAGS="$tmp_CFLAGS -std1"
17135 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17136 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17137 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17138 ;;
17139 #
17140 GNU_C)
17141 #
17142 if test "$compiler_num" -ge "295"; then
17143 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17144 fi
17145 ;;
17146 #
17147 HP_UX_C)
17148 #
17149 tmp_CFLAGS="$tmp_CFLAGS -z"
17150 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17151 ;;
17152 #
17153 IBM_C)
17154 #
17155 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17156 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17157 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17158 ;;
17159 #
17160 INTEL_UNIX_C)
17161 #
17162 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17163 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17164 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17165 ;;
17166 #
17167 INTEL_WINDOWS_C)
17168 #
17169 tmp_CFLAGS="$tmp_CFLAGS"
17170 ;;
17171 #
17172 LCC)
17173 #
17174 tmp_CFLAGS="$tmp_CFLAGS -n"
17175 ;;
17176 #
17177 SGI_MIPS_C)
17178 #
17179 tmp_CFLAGS="$tmp_CFLAGS"
17180 ;;
17181 #
17182 SGI_MIPSPRO_C)
17183 #
17184 tmp_CFLAGS="$tmp_CFLAGS"
17185 ;;
17186 #
17187 SUNPRO_C)
17188 #
17189 tmp_CFLAGS="$tmp_CFLAGS"
17190 ;;
17191 #
17192 TINY_C)
17193 #
17194 tmp_CFLAGS="$tmp_CFLAGS"
17195 ;;
17196 #
17197 WATCOM_UNIX_C)
17198 #
17199 tmp_CFLAGS="$tmp_CFLAGS"
17200 ;;
17201 #
17202 WATCOM_WINDOWS_C)
17203 #
17204 tmp_CFLAGS="$tmp_CFLAGS"
17205 ;;
17206 #
17207 esac
17208 #
17209 squeeze tmp_CPPFLAGS
17210 squeeze tmp_CFLAGS
17211 #
17212 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17214$as_echo_n "checking if compiler accepts some basic options... " >&6; }
17215 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17216 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17217 squeeze CPPFLAGS
17218 squeeze CFLAGS
17219
17220 tmp_compiler_works="unknown"
17221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17222/* end confdefs.h. */
17223
17224
17225
17226int main (void)
17227{
17228
17229 int i = 1;
17230 return i;
17231
17232 ;
17233 return 0;
17234}
17235
17236_ACEOF
17237if ac_fn_c_try_compile "$LINENO"; then :
17238
17239 tmp_compiler_works="yes"
17240
17241else
17242
17243 tmp_compiler_works="no"
17244 echo " " >&6
17245 sed 's/^/cc-fail: /' conftest.err >&6
17246 echo " " >&6
17247
17248fi
17249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17250 if test "$tmp_compiler_works" = "yes"; then
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252/* end confdefs.h. */
17253
17254
17255
17256int main (void)
17257{
17258
17259 int i = 1;
17260 return i;
17261
17262 ;
17263 return 0;
17264}
17265
17266_ACEOF
17267if ac_fn_c_try_link "$LINENO"; then :
17268
17269 tmp_compiler_works="yes"
17270
17271else
17272
17273 tmp_compiler_works="no"
17274 echo " " >&6
17275 sed 's/^/link-fail: /' conftest.err >&6
17276 echo " " >&6
17277
17278fi
17279rm -f core conftest.err conftest.$ac_objext \
17280 conftest$ac_exeext conftest.$ac_ext
17281 fi
17282 if test "x$cross_compiling" != "xyes" &&
17283 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017284
17285
17286 old=$LD_LIBRARY_PATH
17287 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17288 export LD_LIBRARY_PATH
17289 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17292as_fn_error $? "cannot run test program while cross compiling
17293See \`config.log' for more details" "$LINENO" 5; }
17294else
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296/* end confdefs.h. */
17297
17298
17299# ifdef __STDC__
17300# include <stdlib.h>
17301# endif
17302
17303int main (void)
17304{
17305
17306 int i = 0;
17307 exit(i);
17308
17309 ;
17310 return 0;
17311}
17312
17313_ACEOF
17314if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017315 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017316
17317else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017318 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017319 echo " " >&6
17320 echo "run-fail: test program exited with status $ac_status" >&6
17321 echo " " >&6
17322
17323fi
17324rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17325 conftest.$ac_objext conftest.beam conftest.$ac_ext
17326fi
17327
Elliott Hughesa93fb052018-12-12 14:22:48 -080017328 LD_LIBRARY_PATH=$old # restore
17329
Elliott Hughes82be86d2017-09-20 17:00:17 -070017330 fi
17331 if test "$tmp_compiler_works" = "yes"; then
17332
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17334$as_echo "yes" >&6; }
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17336$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17337
17338 else
17339
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17341$as_echo "no" >&6; }
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17343$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17344 CPPFLAGS="$tmp_save_CPPFLAGS"
17345 CFLAGS="$tmp_save_CFLAGS"
17346
17347 fi
17348
17349 fi
17350 #
17351 fi
17352
17353
17354 #
17355 if test "$compiler_id" != "unknown"; then
17356 #
17357 tmp_save_CFLAGS="$CFLAGS"
17358 tmp_save_CPPFLAGS="$CPPFLAGS"
17359 #
17360 tmp_options=""
17361 tmp_CFLAGS="$CFLAGS"
17362 tmp_CPPFLAGS="$CPPFLAGS"
17363
17364 ac_var_stripped=""
17365 for word1 in $tmp_CFLAGS; do
17366 ac_var_strip_word="no"
17367 for word2 in $flags_dbg_all; do
17368 if test "$word1" = "$word2"; then
17369 ac_var_strip_word="yes"
17370 fi
17371 done
17372 if test "$ac_var_strip_word" = "no"; then
17373 ac_var_stripped="$ac_var_stripped $word1"
17374 fi
17375 done
17376 tmp_CFLAGS="$ac_var_stripped"
17377 squeeze tmp_CFLAGS
17378
17379
17380 ac_var_stripped=""
17381 for word1 in $tmp_CPPFLAGS; do
17382 ac_var_strip_word="no"
17383 for word2 in $flags_dbg_all; do
17384 if test "$word1" = "$word2"; then
17385 ac_var_strip_word="yes"
17386 fi
17387 done
17388 if test "$ac_var_strip_word" = "no"; then
17389 ac_var_stripped="$ac_var_stripped $word1"
17390 fi
17391 done
17392 tmp_CPPFLAGS="$ac_var_stripped"
17393 squeeze tmp_CPPFLAGS
17394
17395 #
17396 if test "$want_debug" = "yes"; then
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17398$as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17399 tmp_options="$flags_dbg_yes"
17400 fi
17401 if test "$want_debug" = "no"; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17403$as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17404 tmp_options="$flags_dbg_off"
17405 fi
17406 #
17407 if test "$flags_prefer_cppflags" = "yes"; then
17408 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17409 CFLAGS="$tmp_CFLAGS"
17410 else
17411 CPPFLAGS="$tmp_CPPFLAGS"
17412 CFLAGS="$tmp_CFLAGS $tmp_options"
17413 fi
17414 squeeze CPPFLAGS
17415 squeeze CFLAGS
17416
17417 tmp_compiler_works="unknown"
17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17419/* end confdefs.h. */
17420
17421
17422
17423int main (void)
17424{
17425
17426 int i = 1;
17427 return i;
17428
17429 ;
17430 return 0;
17431}
17432
17433_ACEOF
17434if ac_fn_c_try_compile "$LINENO"; then :
17435
17436 tmp_compiler_works="yes"
17437
17438else
17439
17440 tmp_compiler_works="no"
17441 echo " " >&6
17442 sed 's/^/cc-fail: /' conftest.err >&6
17443 echo " " >&6
17444
17445fi
17446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 if test "$tmp_compiler_works" = "yes"; then
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449/* end confdefs.h. */
17450
17451
17452
17453int main (void)
17454{
17455
17456 int i = 1;
17457 return i;
17458
17459 ;
17460 return 0;
17461}
17462
17463_ACEOF
17464if ac_fn_c_try_link "$LINENO"; then :
17465
17466 tmp_compiler_works="yes"
17467
17468else
17469
17470 tmp_compiler_works="no"
17471 echo " " >&6
17472 sed 's/^/link-fail: /' conftest.err >&6
17473 echo " " >&6
17474
17475fi
17476rm -f core conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17478 fi
17479 if test "x$cross_compiling" != "xyes" &&
17480 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017481
17482
17483 old=$LD_LIBRARY_PATH
17484 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17485 export LD_LIBRARY_PATH
17486 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017487 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17488$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17489as_fn_error $? "cannot run test program while cross compiling
17490See \`config.log' for more details" "$LINENO" 5; }
17491else
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493/* end confdefs.h. */
17494
17495
17496# ifdef __STDC__
17497# include <stdlib.h>
17498# endif
17499
17500int main (void)
17501{
17502
17503 int i = 0;
17504 exit(i);
17505
17506 ;
17507 return 0;
17508}
17509
17510_ACEOF
17511if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017512 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017513
17514else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017515 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017516 echo " " >&6
17517 echo "run-fail: test program exited with status $ac_status" >&6
17518 echo " " >&6
17519
17520fi
17521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17522 conftest.$ac_objext conftest.beam conftest.$ac_ext
17523fi
17524
Elliott Hughesa93fb052018-12-12 14:22:48 -080017525 LD_LIBRARY_PATH=$old # restore
17526
Elliott Hughes82be86d2017-09-20 17:00:17 -070017527 fi
17528 if test "$tmp_compiler_works" = "yes"; then
17529
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17531$as_echo "yes" >&6; }
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17533$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17534
17535 else
17536
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17538$as_echo "no" >&6; }
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17540$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17541 CPPFLAGS="$tmp_save_CPPFLAGS"
17542 CFLAGS="$tmp_save_CFLAGS"
17543
17544 fi
17545
17546 #
17547 fi
17548
17549
17550 #
17551 if test "$compiler_id" != "unknown"; then
17552 #
17553 tmp_save_CFLAGS="$CFLAGS"
17554 tmp_save_CPPFLAGS="$CPPFLAGS"
17555 #
17556 tmp_options=""
17557 tmp_CFLAGS="$CFLAGS"
17558 tmp_CPPFLAGS="$CPPFLAGS"
17559 honor_optimize_option="yes"
17560 #
17561 #
17562 if test "$want_optimize" = "assume_no" ||
17563 test "$want_optimize" = "assume_yes"; then
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17565$as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17566
17567
17568 ac_var_match_word="no"
17569 for word1 in $tmp_CFLAGS; do
17570 for word2 in $flags_opt_all; do
17571 if test "$word1" = "$word2"; then
17572 ac_var_match_word="yes"
17573 fi
17574 done
17575 done
17576
17577 if test "$ac_var_match_word" = "yes"; then
17578
17579 honor_optimize_option="no"
17580
17581
17582 fi
17583
17584
17585
17586 ac_var_match_word="no"
17587 for word1 in $tmp_CPPFLAGS; do
17588 for word2 in $flags_opt_all; do
17589 if test "$word1" = "$word2"; then
17590 ac_var_match_word="yes"
17591 fi
17592 done
17593 done
17594
17595 if test "$ac_var_match_word" = "yes"; then
17596
17597 honor_optimize_option="no"
17598
17599
17600 fi
17601
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17603$as_echo "$honor_optimize_option" >&6; }
17604 if test "$honor_optimize_option" = "yes"; then
17605 if test "$want_optimize" = "assume_yes"; then
17606 want_optimize="yes"
17607 fi
17608 if test "$want_optimize" = "assume_no"; then
17609 want_optimize="no"
17610 fi
17611 fi
17612 fi
17613 #
17614 if test "$honor_optimize_option" = "yes"; then
17615
17616 ac_var_stripped=""
17617 for word1 in $tmp_CFLAGS; do
17618 ac_var_strip_word="no"
17619 for word2 in $flags_opt_all; do
17620 if test "$word1" = "$word2"; then
17621 ac_var_strip_word="yes"
17622 fi
17623 done
17624 if test "$ac_var_strip_word" = "no"; then
17625 ac_var_stripped="$ac_var_stripped $word1"
17626 fi
17627 done
17628 tmp_CFLAGS="$ac_var_stripped"
17629 squeeze tmp_CFLAGS
17630
17631
17632 ac_var_stripped=""
17633 for word1 in $tmp_CPPFLAGS; do
17634 ac_var_strip_word="no"
17635 for word2 in $flags_opt_all; do
17636 if test "$word1" = "$word2"; then
17637 ac_var_strip_word="yes"
17638 fi
17639 done
17640 if test "$ac_var_strip_word" = "no"; then
17641 ac_var_stripped="$ac_var_stripped $word1"
17642 fi
17643 done
17644 tmp_CPPFLAGS="$ac_var_stripped"
17645 squeeze tmp_CPPFLAGS
17646
17647 if test "$want_optimize" = "yes"; then
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17649$as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17650 tmp_options="$flags_opt_yes"
17651 fi
17652 if test "$want_optimize" = "no"; then
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17654$as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17655 tmp_options="$flags_opt_off"
17656 fi
17657 if test "$flags_prefer_cppflags" = "yes"; then
17658 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17659 CFLAGS="$tmp_CFLAGS"
17660 else
17661 CPPFLAGS="$tmp_CPPFLAGS"
17662 CFLAGS="$tmp_CFLAGS $tmp_options"
17663 fi
17664 squeeze CPPFLAGS
17665 squeeze CFLAGS
17666
17667 tmp_compiler_works="unknown"
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669/* end confdefs.h. */
17670
17671
17672
17673int main (void)
17674{
17675
17676 int i = 1;
17677 return i;
17678
17679 ;
17680 return 0;
17681}
17682
17683_ACEOF
17684if ac_fn_c_try_compile "$LINENO"; then :
17685
17686 tmp_compiler_works="yes"
17687
17688else
17689
17690 tmp_compiler_works="no"
17691 echo " " >&6
17692 sed 's/^/cc-fail: /' conftest.err >&6
17693 echo " " >&6
17694
17695fi
17696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697 if test "$tmp_compiler_works" = "yes"; then
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699/* end confdefs.h. */
17700
17701
17702
17703int main (void)
17704{
17705
17706 int i = 1;
17707 return i;
17708
17709 ;
17710 return 0;
17711}
17712
17713_ACEOF
17714if ac_fn_c_try_link "$LINENO"; then :
17715
17716 tmp_compiler_works="yes"
17717
17718else
17719
17720 tmp_compiler_works="no"
17721 echo " " >&6
17722 sed 's/^/link-fail: /' conftest.err >&6
17723 echo " " >&6
17724
17725fi
17726rm -f core conftest.err conftest.$ac_objext \
17727 conftest$ac_exeext conftest.$ac_ext
17728 fi
17729 if test "x$cross_compiling" != "xyes" &&
17730 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080017731
17732
17733 old=$LD_LIBRARY_PATH
17734 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17735 export LD_LIBRARY_PATH
17736 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070017737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17739as_fn_error $? "cannot run test program while cross compiling
17740See \`config.log' for more details" "$LINENO" 5; }
17741else
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743/* end confdefs.h. */
17744
17745
17746# ifdef __STDC__
17747# include <stdlib.h>
17748# endif
17749
17750int main (void)
17751{
17752
17753 int i = 0;
17754 exit(i);
17755
17756 ;
17757 return 0;
17758}
17759
17760_ACEOF
17761if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080017762 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017763
17764else
Elliott Hughesa93fb052018-12-12 14:22:48 -080017765 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017766 echo " " >&6
17767 echo "run-fail: test program exited with status $ac_status" >&6
17768 echo " " >&6
17769
17770fi
17771rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17772 conftest.$ac_objext conftest.beam conftest.$ac_ext
17773fi
17774
Elliott Hughesa93fb052018-12-12 14:22:48 -080017775 LD_LIBRARY_PATH=$old # restore
17776
Elliott Hughes82be86d2017-09-20 17:00:17 -070017777 fi
17778 if test "$tmp_compiler_works" = "yes"; then
17779
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17781$as_echo "yes" >&6; }
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17783$as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17784
17785 else
17786
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17788$as_echo "no" >&6; }
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17790$as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17791 CPPFLAGS="$tmp_save_CPPFLAGS"
17792 CFLAGS="$tmp_save_CFLAGS"
17793
17794 fi
17795
17796 fi
17797 #
17798 fi
17799
17800
17801 #
17802 if test "$compiler_id" != "unknown"; then
17803 #
17804 tmp_save_CPPFLAGS="$CPPFLAGS"
17805 tmp_save_CFLAGS="$CFLAGS"
17806 tmp_CPPFLAGS=""
17807 tmp_CFLAGS=""
17808 #
17809 case "$compiler_id" in
17810 #
17811 CLANG)
17812 #
17813 if test "$want_warnings" = "yes"; then
17814 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17815 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17816 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17817 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17818 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17819 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17820 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17821 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17822 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17823 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17824 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17825 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17826 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17827 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17828 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17829 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17830 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17831 #
17832 if test "$compiler_num" -ge "101"; then
17833 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17834 fi
17835 #
17836 if test "$compiler_num" -ge "208"; then
17837 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17838 fi
17839 #
17840 if test "$compiler_num" -ge "209"; then
17841 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17842 fi
17843 #
17844 if test "$compiler_num" -ge "302"; then
17845 case $host_os in
17846 cygwin* | mingw*)
17847 ;;
17848 *)
17849 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17850 ;;
17851 esac
17852 fi
17853 #
17854 if test "$compiler_num" -ge "306"; then
17855 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17856 fi
17857 #
17858 if test "$compiler_num" -ge "309"; then
17859 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
Alex Deymo486467e2017-12-19 19:04:07 +010017860 # avoid the varargs warning, fixed in 4.0
17861 # https://bugs.llvm.org/show_bug.cgi?id=29140
17862 if test "$compiler_num" -lt "400"; then
17863 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17864 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070017865 fi
17866 fi
17867 ;;
17868 #
17869 DEC_C)
17870 #
17871 if test "$want_warnings" = "yes"; then
17872 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17873 fi
17874 ;;
17875 #
17876 GNU_C)
17877 #
17878 if test "$want_warnings" = "yes"; then
17879 #
17880 if test "x$cross_compiling" != "xyes" ||
17881 test "$compiler_num" -ge "300"; then
17882 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17883 fi
17884 #
17885 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17886 #
17887 if test "$compiler_num" -ge "104"; then
17888 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17889 if test "x$cross_compiling" != "xyes" ||
17890 test "$compiler_num" -ge "300"; then
17891 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17892 fi
17893 fi
17894 #
17895 if test "$compiler_num" -ge "207"; then
17896 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17897 if test "x$cross_compiling" != "xyes" ||
17898 test "$compiler_num" -ge "300"; then
17899 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17900 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17901 fi
17902 fi
17903 #
17904 if test "$compiler_num" -ge "295"; then
17905 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017906 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017907 fi
17908 #
17909 if test "$compiler_num" -ge "296"; then
17910 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17911 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17912 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17913 fi
17914 #
17915 if test "$compiler_num" -ge "297"; then
17916 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17917 fi
17918 #
17919 if test "$compiler_num" -ge "300"; then
17920 tmp_CFLAGS="$tmp_CFLAGS"
17921 fi
17922 #
17923 if test "$compiler_num" -ge "303"; then
17924 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17925 fi
17926 #
17927 if test "$compiler_num" -ge "304"; then
17928 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017929 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017930 fi
17931 #
17932 if test "$compiler_num" -ge "400"; then
17933 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17934 fi
17935 #
17936 if test "$compiler_num" -ge "402"; then
17937 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17938 fi
17939 #
17940 if test "$compiler_num" -ge "403"; then
17941 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17942 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17943 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17944 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017945 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
Elliott Hughes82be86d2017-09-20 17:00:17 -070017946 fi
17947 #
17948 if test "$compiler_num" -ge "405"; then
17949 if test "$curl_cv_have_def__WIN32" = "yes"; then
17950 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17951 fi
17952 fi
17953 #
17954 if test "$compiler_num" -ge "406"; then
17955 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17956 fi
17957 #
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017958 if test "$compiler_num" -ge "408"; then
17959 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17960 fi
17961 #
17962 if test "$compiler_num" -ge "500"; then
17963 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17964 fi
17965 #
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017966 if test "$compiler_num" -ge "600"; then
17967 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17968 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017969 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017970 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017971 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017972 fi
17973 #
17974 if test "$compiler_num" -ge "700"; then
17975 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17976 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17977 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17978 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17979 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070017980 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070017981 fi
17982 #
Elliott Hughes82be86d2017-09-20 17:00:17 -070017983 fi
17984 #
17985 if test "$compiler_num" -ge "300"; then
17986 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17987 else
17988 if test "x$cross_compiling" = "xyes"; then
17989 if test "$compiler_num" -ge "104"; then
17990 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17991 fi
17992 if test "$compiler_num" -ge "207"; then
17993 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17994 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17995 fi
17996 fi
17997 fi
17998 ;;
17999 #
18000 HP_UX_C)
18001 #
18002 if test "$want_warnings" = "yes"; then
18003 tmp_CFLAGS="$tmp_CFLAGS +w1"
18004 fi
18005 ;;
18006 #
18007 IBM_C)
18008 #
18009 tmp_CFLAGS="$tmp_CFLAGS"
18010 ;;
18011 #
18012 INTEL_UNIX_C)
18013 #
18014 if test "$want_warnings" = "yes"; then
18015 if test "$compiler_num" -gt "600"; then
18016 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18017 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18018 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18019 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18020 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18021 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18022 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18023 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18024 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18025 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18026 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18027 fi
18028 fi
18029 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18030 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18031 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18032 if test "$compiler_num" -ge "1000"; then
18033 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18034 fi
18035 ;;
18036 #
18037 INTEL_WINDOWS_C)
18038 #
18039 tmp_CFLAGS="$tmp_CFLAGS"
18040 ;;
18041 #
18042 LCC)
18043 #
18044 if test "$want_warnings" = "yes"; then
18045 tmp_CFLAGS="$tmp_CFLAGS"
18046 fi
18047 ;;
18048 #
18049 SGI_MIPS_C)
18050 #
18051 if test "$want_warnings" = "yes"; then
18052 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18053 fi
18054 ;;
18055 #
18056 SGI_MIPSPRO_C)
18057 #
18058 if test "$want_warnings" = "yes"; then
18059 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18060 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18061 fi
18062 ;;
18063 #
18064 SUNPRO_C)
18065 #
18066 if test "$want_warnings" = "yes"; then
18067 tmp_CFLAGS="$tmp_CFLAGS -v"
18068 fi
18069 ;;
18070 #
18071 TINY_C)
18072 #
18073 if test "$want_warnings" = "yes"; then
18074 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18075 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18076 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18077 fi
18078 ;;
18079 #
18080 WATCOM_UNIX_C)
18081 #
18082 if test "$want_warnings" = "yes"; then
18083 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18084 fi
18085 ;;
18086 #
18087 WATCOM_WINDOWS_C)
18088 #
18089 tmp_CFLAGS="$tmp_CFLAGS"
18090 ;;
18091 #
18092 esac
18093 #
18094 squeeze tmp_CPPFLAGS
18095 squeeze tmp_CFLAGS
18096 #
18097 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18099$as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18100 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18101 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18102 squeeze CPPFLAGS
18103 squeeze CFLAGS
18104
18105 tmp_compiler_works="unknown"
18106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107/* end confdefs.h. */
18108
18109
18110
18111int main (void)
18112{
18113
18114 int i = 1;
18115 return i;
18116
18117 ;
18118 return 0;
18119}
18120
18121_ACEOF
18122if ac_fn_c_try_compile "$LINENO"; then :
18123
18124 tmp_compiler_works="yes"
18125
18126else
18127
18128 tmp_compiler_works="no"
18129 echo " " >&6
18130 sed 's/^/cc-fail: /' conftest.err >&6
18131 echo " " >&6
18132
18133fi
18134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18135 if test "$tmp_compiler_works" = "yes"; then
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_link "$LINENO"; then :
18153
18154 tmp_compiler_works="yes"
18155
18156else
18157
18158 tmp_compiler_works="no"
18159 echo " " >&6
18160 sed 's/^/link-fail: /' conftest.err >&6
18161 echo " " >&6
18162
18163fi
18164rm -f core conftest.err conftest.$ac_objext \
18165 conftest$ac_exeext conftest.$ac_ext
18166 fi
18167 if test "x$cross_compiling" != "xyes" &&
18168 test "$tmp_compiler_works" = "yes"; then
Elliott Hughesa93fb052018-12-12 14:22:48 -080018169
18170
18171 old=$LD_LIBRARY_PATH
18172 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18173 export LD_LIBRARY_PATH
18174 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070018175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18177as_fn_error $? "cannot run test program while cross compiling
18178See \`config.log' for more details" "$LINENO" 5; }
18179else
18180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18181/* end confdefs.h. */
18182
18183
18184# ifdef __STDC__
18185# include <stdlib.h>
18186# endif
18187
18188int main (void)
18189{
18190
18191 int i = 0;
18192 exit(i);
18193
18194 ;
18195 return 0;
18196}
18197
18198_ACEOF
18199if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080018200 tmp_compiler_works="yes"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018201
18202else
Elliott Hughesa93fb052018-12-12 14:22:48 -080018203 tmp_compiler_works="no"
Elliott Hughes82be86d2017-09-20 17:00:17 -070018204 echo " " >&6
18205 echo "run-fail: test program exited with status $ac_status" >&6
18206 echo " " >&6
18207
18208fi
18209rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18210 conftest.$ac_objext conftest.beam conftest.$ac_ext
18211fi
18212
Elliott Hughesa93fb052018-12-12 14:22:48 -080018213 LD_LIBRARY_PATH=$old # restore
18214
Elliott Hughes82be86d2017-09-20 17:00:17 -070018215 fi
18216 if test "$tmp_compiler_works" = "yes"; then
18217
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18219$as_echo "yes" >&6; }
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18221$as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18222
18223 else
18224
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18226$as_echo "no" >&6; }
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18228$as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18229 CPPFLAGS="$tmp_save_CPPFLAGS"
18230 CFLAGS="$tmp_save_CFLAGS"
18231
18232 fi
18233
18234 fi
18235 #
18236 fi
18237
18238
18239if test "$compiler_id" = "INTEL_UNIX_C"; then
18240 #
18241 if test "$compiler_num" -ge "1000"; then
18242 CFLAGS="$CFLAGS -shared-intel"
18243 elif test "$compiler_num" -ge "900"; then
18244 CFLAGS="$CFLAGS -i-dynamic"
18245 fi
18246 #
18247fi
18248
18249
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18251$as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253/* end confdefs.h. */
18254
18255
18256
18257int main (void)
18258{
18259
18260 force compilation error
18261
18262 ;
18263 return 0;
18264}
18265
18266_ACEOF
18267if ac_fn_c_try_compile "$LINENO"; then :
18268
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18270$as_echo "no" >&6; }
18271 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18272
18273else
18274
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18276$as_echo "yes" >&6; }
18277
18278fi
18279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18280
18281
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18283$as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285/* end confdefs.h. */
18286
18287
18288 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18289
18290int main (void)
18291{
18292
18293 bad_t dummy;
18294
18295 ;
18296 return 0;
18297}
18298
18299_ACEOF
18300if ac_fn_c_try_compile "$LINENO"; then :
18301
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18303$as_echo "no" >&6; }
18304 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18305
18306else
18307
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18309$as_echo "yes" >&6; }
18310
18311fi
18312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18313
18314
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18316$as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318/* end confdefs.h. */
18319
18320
18321# include <stdlib.h>
18322 int rand(int n);
18323 int rand(int n)
18324 {
18325 if(n)
18326 return ++n;
18327 else
18328 return n;
18329 }
18330
18331int main (void)
18332{
18333
18334 int i[2]={0,0};
18335 int j = rand(i[0]);
18336 if(j)
18337 return j;
18338
18339 ;
18340 return 0;
18341}
18342
18343_ACEOF
18344if ac_fn_c_try_compile "$LINENO"; then :
18345
18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18347$as_echo "no" >&6; }
18348 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18349
18350else
18351
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18353$as_echo "yes" >&6; }
18354
18355fi
18356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18357
18358
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18360$as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18361 supports_symbol_hiding="no"
18362 symbol_hiding_CFLAGS=""
18363 symbol_hiding_EXTERN=""
18364 tmp_CFLAGS=""
18365 tmp_EXTERN=""
18366 case "$compiler_id" in
18367 CLANG)
18368 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18369 tmp_CFLAGS="-fvisibility=hidden"
18370 supports_symbol_hiding="yes"
18371 ;;
18372 GNU_C)
18373 if test "$compiler_num" -ge "304"; then
18374 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18375 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18376 tmp_CFLAGS="-fvisibility=hidden"
18377 supports_symbol_hiding="yes"
18378 fi
18379 fi
18380 ;;
18381 INTEL_UNIX_C)
18382 if test "$compiler_num" -ge "900"; then
18383 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18384 tmp_save_CFLAGS="$CFLAGS"
18385 CFLAGS="$CFLAGS -fvisibility=hidden"
18386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18387/* end confdefs.h. */
18388
18389
18390# include <stdio.h>
18391
18392int main (void)
18393{
18394
18395 printf("icc fvisibility bug test");
18396
18397 ;
18398 return 0;
18399}
18400
18401_ACEOF
18402if ac_fn_c_try_link "$LINENO"; then :
18403
18404 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18405 tmp_CFLAGS="-fvisibility=hidden"
18406 supports_symbol_hiding="yes"
18407
18408fi
18409rm -f core conftest.err conftest.$ac_objext \
18410 conftest$ac_exeext conftest.$ac_ext
18411 CFLAGS="$tmp_save_CFLAGS"
18412 fi
18413 fi
18414 ;;
18415 SUNPRO_C)
18416 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18417 tmp_EXTERN="__global"
18418 tmp_CFLAGS="-xldscope=hidden"
18419 supports_symbol_hiding="yes"
18420 fi
18421 ;;
18422 esac
18423 if test "$supports_symbol_hiding" = "yes"; then
18424 tmp_save_CFLAGS="$CFLAGS"
18425 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18426 squeeze CFLAGS
18427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18428/* end confdefs.h. */
18429
18430
18431 $tmp_EXTERN char *dummy(char *buff);
18432 char *dummy(char *buff)
18433 {
18434 if(buff)
18435 return ++buff;
18436 else
18437 return buff;
18438 }
18439
18440int main (void)
18441{
18442
18443 char b[16];
18444 char *r = dummy(&b[0]);
18445 if(r)
18446 return (int)*r;
18447
18448 ;
18449 return 0;
18450}
18451
18452_ACEOF
18453if ac_fn_c_try_compile "$LINENO"; then :
18454
18455 supports_symbol_hiding="yes"
18456 if test -f conftest.err; then
18457 grep 'visibility' conftest.err >/dev/null
18458 if test "$?" -eq "0"; then
18459 supports_symbol_hiding="no"
18460 fi
18461 fi
18462
18463else
18464
18465 supports_symbol_hiding="no"
18466 echo " " >&6
18467 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18468 sed 's/^/cc-err: /' conftest.err >&6
18469 echo " " >&6
18470
18471fi
18472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18473 CFLAGS="$tmp_save_CFLAGS"
18474 fi
18475 if test "$supports_symbol_hiding" = "yes"; then
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18477$as_echo "yes" >&6; }
18478 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18479 symbol_hiding_EXTERN="$tmp_EXTERN"
18480 else
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18482$as_echo "no" >&6; }
18483 fi
18484
18485
18486
18487 supports_curldebug="unknown"
18488 if test "$want_curldebug" = "yes"; then
18489 if test "x$enable_shared" != "xno" &&
18490 test "x$enable_shared" != "xyes"; then
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18492$as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18493 supports_curldebug="no"
18494 fi
18495 if test "x$enable_static" != "xno" &&
18496 test "x$enable_static" != "xyes"; then
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18498$as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18499 supports_curldebug="no"
18500 fi
18501 if test "$supports_curldebug" != "no"; then
18502 if test "$enable_shared" = "yes" &&
18503 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18504 supports_curldebug="no"
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18506$as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18507 fi
18508 fi
18509 fi
18510 #
18511 if test "$want_curldebug" = "yes"; then
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18513$as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18514 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18516$as_echo "$supports_curldebug" >&6; }
18517 if test "$supports_curldebug" = "no"; then
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18519$as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18520 want_curldebug="no"
18521 fi
18522 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070018523
18524 if test x$want_curldebug = xyes; then
18525 CURLDEBUG_TRUE=
18526 CURLDEBUG_FALSE='#'
18527else
18528 CURLDEBUG_TRUE='#'
18529 CURLDEBUG_FALSE=
18530fi
18531
18532
18533supports_unittests=yes
18534# cross-compilation of unit tests static library/programs fails when
18535# libcurl shared library is built. This might be due to a libtool or
18536# automake issue. In this case we disable unit tests.
18537if test "x$cross_compiling" != "xno" &&
18538 test "x$enable_shared" != "xno"; then
18539 supports_unittests=no
18540fi
18541
18542# IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18543# a problem related with OpenSSL headers and library versions not matching.
18544# Disable unit tests while time to further investigate this is found.
18545case $host in
18546 mips-sgi-irix6.5)
18547 if test "$compiler_id" = "GNU_C"; then
18548 supports_unittests=no
18549 fi
18550 ;;
18551esac
18552
18553# All AIX autobuilds fails unit tests linking against unittests library
18554# due to unittests library being built with no symbols or members. Libtool ?
18555# Disable unit tests while time to further investigate this is found.
18556case $host_os in
18557 aix*)
18558 supports_unittests=no
18559 ;;
18560esac
18561
18562if test "x$want_debug" = "xyes" &&
18563 test "x$supports_unittests" = "xyes"; then
18564 want_unittests=yes
18565else
18566 want_unittests=no
18567fi
18568 if test x$want_unittests = xyes; then
18569 BUILD_UNITTESTS_TRUE=
18570 BUILD_UNITTESTS_FALSE='#'
18571else
18572 BUILD_UNITTESTS_TRUE='#'
18573 BUILD_UNITTESTS_FALSE=
18574fi
18575
18576
18577
18578
18579
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18581$as_echo_n "checking for windows.h... " >&6; }
18582if ${curl_cv_header_windows_h+:} false; then :
18583 $as_echo_n "(cached) " >&6
18584else
18585
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h. */
18588
18589
18590#undef inline
18591#ifndef WIN32_LEAN_AND_MEAN
18592#define WIN32_LEAN_AND_MEAN
18593#endif
18594#include <windows.h>
18595
18596int main (void)
18597{
18598
18599#if defined(__CYGWIN__) || defined(__CEGCC__)
18600 HAVE_WINDOWS_H shall not be defined.
18601#else
18602 int dummy=2*WINVER;
18603#endif
18604
18605 ;
18606 return 0;
18607}
18608
18609_ACEOF
18610if ac_fn_c_try_compile "$LINENO"; then :
18611
18612 curl_cv_header_windows_h="yes"
18613
18614else
18615
18616 curl_cv_header_windows_h="no"
18617
18618fi
18619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620
18621fi
18622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18623$as_echo "$curl_cv_header_windows_h" >&6; }
18624 case "$curl_cv_header_windows_h" in
18625 yes)
18626
18627cat >>confdefs.h <<_ACEOF
18628#define HAVE_WINDOWS_H 1
18629_ACEOF
18630
18631 ;;
18632 esac
18633
18634
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18636$as_echo_n "checking whether build target is a native Windows one... " >&6; }
18637if ${curl_cv_native_windows+:} false; then :
18638 $as_echo_n "(cached) " >&6
18639else
18640
18641 if test "$curl_cv_header_windows_h" = "no"; then
18642 curl_cv_native_windows="no"
18643 else
18644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18645/* end confdefs.h. */
18646
18647
18648
18649int main (void)
18650{
18651
18652#if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18653 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18654 int dummy=1;
18655#else
18656 Not a native Windows build target.
18657#endif
18658
18659 ;
18660 return 0;
18661}
18662
18663_ACEOF
18664if ac_fn_c_try_compile "$LINENO"; then :
18665
18666 curl_cv_native_windows="yes"
18667
18668else
18669
18670 curl_cv_native_windows="no"
18671
18672fi
18673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18674 fi
18675
18676fi
18677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18678$as_echo "$curl_cv_native_windows" >&6; }
18679 if test "x$curl_cv_native_windows" = xyes; then
18680 DOING_NATIVE_WINDOWS_TRUE=
18681 DOING_NATIVE_WINDOWS_FALSE='#'
18682else
18683 DOING_NATIVE_WINDOWS_TRUE='#'
18684 DOING_NATIVE_WINDOWS_FALSE=
18685fi
18686
18687
18688case X-"$curl_cv_native_windows" in
18689 X-yes)
18690
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18692$as_echo_n "checking for winsock.h... " >&6; }
18693if ${curl_cv_header_winsock_h+:} false; then :
18694 $as_echo_n "(cached) " >&6
18695else
18696
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698/* end confdefs.h. */
18699
18700
18701#undef inline
18702#ifndef WIN32_LEAN_AND_MEAN
18703#define WIN32_LEAN_AND_MEAN
18704#endif
18705#include <windows.h>
18706#include <winsock.h>
18707
18708int main (void)
18709{
18710
18711#if defined(__CYGWIN__) || defined(__CEGCC__)
18712 HAVE_WINSOCK_H shall not be defined.
18713#else
18714 int dummy=WSACleanup();
18715#endif
18716
18717 ;
18718 return 0;
18719}
18720
18721_ACEOF
18722if ac_fn_c_try_compile "$LINENO"; then :
18723
18724 curl_cv_header_winsock_h="yes"
18725
18726else
18727
18728 curl_cv_header_winsock_h="no"
18729
18730fi
18731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732
18733fi
18734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18735$as_echo "$curl_cv_header_winsock_h" >&6; }
18736 case "$curl_cv_header_winsock_h" in
18737 yes)
18738
18739cat >>confdefs.h <<_ACEOF
18740#define HAVE_WINSOCK_H 1
18741_ACEOF
18742
18743 ;;
18744 esac
18745
18746
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18748$as_echo_n "checking for winsock2.h... " >&6; }
18749if ${curl_cv_header_winsock2_h+:} false; then :
18750 $as_echo_n "(cached) " >&6
18751else
18752
18753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18754/* end confdefs.h. */
18755
18756
18757#undef inline
18758#ifndef WIN32_LEAN_AND_MEAN
18759#define WIN32_LEAN_AND_MEAN
18760#endif
18761#include <windows.h>
18762#include <winsock2.h>
18763
18764int main (void)
18765{
18766
18767#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18768 HAVE_WINSOCK2_H shall not be defined.
18769#else
18770 int dummy=2*IPPROTO_ESP;
18771#endif
18772
18773 ;
18774 return 0;
18775}
18776
18777_ACEOF
18778if ac_fn_c_try_compile "$LINENO"; then :
18779
18780 curl_cv_header_winsock2_h="yes"
18781
18782else
18783
18784 curl_cv_header_winsock2_h="no"
18785
18786fi
18787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18788
18789fi
18790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18791$as_echo "$curl_cv_header_winsock2_h" >&6; }
18792 case "$curl_cv_header_winsock2_h" in
18793 yes)
18794
18795cat >>confdefs.h <<_ACEOF
18796#define HAVE_WINSOCK2_H 1
18797_ACEOF
18798
18799 ;;
18800 esac
18801
18802
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18804$as_echo_n "checking for ws2tcpip.h... " >&6; }
18805if ${curl_cv_header_ws2tcpip_h+:} false; then :
18806 $as_echo_n "(cached) " >&6
18807else
18808
18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18810/* end confdefs.h. */
18811
18812
18813#undef inline
18814#ifndef WIN32_LEAN_AND_MEAN
18815#define WIN32_LEAN_AND_MEAN
18816#endif
18817#include <windows.h>
18818#include <winsock2.h>
18819#include <ws2tcpip.h>
18820
18821int main (void)
18822{
18823
18824#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18825 HAVE_WS2TCPIP_H shall not be defined.
18826#else
18827 int dummy=2*IP_PKTINFO;
18828#endif
18829
18830 ;
18831 return 0;
18832}
18833
18834_ACEOF
18835if ac_fn_c_try_compile "$LINENO"; then :
18836
18837 curl_cv_header_ws2tcpip_h="yes"
18838
18839else
18840
18841 curl_cv_header_ws2tcpip_h="no"
18842
18843fi
18844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18845
18846fi
18847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18848$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18849 case "$curl_cv_header_ws2tcpip_h" in
18850 yes)
18851
18852cat >>confdefs.h <<_ACEOF
18853#define HAVE_WS2TCPIP_H 1
18854_ACEOF
18855
18856 ;;
18857 esac
18858
18859
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18861$as_echo_n "checking for winldap.h... " >&6; }
18862if ${curl_cv_header_winldap_h+:} false; then :
18863 $as_echo_n "(cached) " >&6
18864else
18865
18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867/* end confdefs.h. */
18868
18869
18870#undef inline
18871#ifdef HAVE_WINDOWS_H
18872#ifndef WIN32_LEAN_AND_MEAN
18873#define WIN32_LEAN_AND_MEAN
18874#endif
18875#include <windows.h>
18876#endif
18877#include <winldap.h>
18878
18879int main (void)
18880{
18881
18882#if defined(__CYGWIN__) || defined(__CEGCC__)
18883 HAVE_WINLDAP_H shall not be defined.
18884#else
18885 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18886 ULONG res = ldap_unbind(ldp);
18887#endif
18888
18889 ;
18890 return 0;
18891}
18892
18893_ACEOF
18894if ac_fn_c_try_compile "$LINENO"; then :
18895
18896 curl_cv_header_winldap_h="yes"
18897
18898else
18899
18900 curl_cv_header_winldap_h="no"
18901
18902fi
18903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18904
18905fi
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18907$as_echo "$curl_cv_header_winldap_h" >&6; }
18908 case "$curl_cv_header_winldap_h" in
18909 yes)
18910
18911cat >>confdefs.h <<_ACEOF
18912#define HAVE_WINLDAP_H 1
18913_ACEOF
18914
18915 ;;
18916 esac
18917
18918
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18920$as_echo_n "checking for winber.h... " >&6; }
18921if ${curl_cv_header_winber_h+:} false; then :
18922 $as_echo_n "(cached) " >&6
18923else
18924
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926/* end confdefs.h. */
18927
18928
18929#undef inline
18930#ifdef HAVE_WINDOWS_H
18931#ifndef WIN32_LEAN_AND_MEAN
18932#define WIN32_LEAN_AND_MEAN
18933#endif
18934#include <windows.h>
18935#endif
18936#include <winldap.h>
18937#include <winber.h>
18938
18939int main (void)
18940{
18941
18942#if defined(__CYGWIN__) || defined(__CEGCC__)
18943 HAVE_WINBER_H shall not be defined.
18944#else
18945 BERVAL *bvp = NULL;
18946 BerElement *bep = ber_init(bvp);
18947 ber_free(bep, 1);
18948#endif
18949
18950 ;
18951 return 0;
18952}
18953
18954_ACEOF
18955if ac_fn_c_try_compile "$LINENO"; then :
18956
18957 curl_cv_header_winber_h="yes"
18958
18959else
18960
18961 curl_cv_header_winber_h="no"
18962
18963fi
18964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965
18966fi
18967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18968$as_echo "$curl_cv_header_winber_h" >&6; }
18969 case "$curl_cv_header_winber_h" in
18970 yes)
18971
18972cat >>confdefs.h <<_ACEOF
18973#define HAVE_WINBER_H 1
18974_ACEOF
18975
18976 ;;
18977 esac
18978
18979 ;;
18980 *)
18981 curl_cv_header_winsock_h="no"
18982 curl_cv_header_winsock2_h="no"
18983 curl_cv_header_ws2tcpip_h="no"
18984 curl_cv_header_winldap_h="no"
18985 curl_cv_header_winber_h="no"
18986 ;;
18987esac
18988
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18990$as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18991 curl_win32_file_api="no"
18992 if test "$curl_cv_header_windows_h" = "yes"; then
18993 if test x"$enable_largefile" != "xno"; then
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995/* end confdefs.h. */
18996
18997
18998
18999int main (void)
19000{
19001
19002#if !defined(_WIN32_WCE) && \
19003 (defined(__MINGW32__) || \
19004 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19005 int dummy=1;
19006#else
19007 WIN32 large file API not supported.
19008#endif
19009
19010 ;
19011 return 0;
19012}
19013
19014_ACEOF
19015if ac_fn_c_try_compile "$LINENO"; then :
19016
19017 curl_win32_file_api="win32_large_files"
19018
19019fi
19020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021 fi
19022 if test "$curl_win32_file_api" = "no"; then
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024/* end confdefs.h. */
19025
19026
19027
19028int main (void)
19029{
19030
19031#if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19032 int dummy=1;
19033#else
19034 WIN32 small file API not supported.
19035#endif
19036
19037 ;
19038 return 0;
19039}
19040
19041_ACEOF
19042if ac_fn_c_try_compile "$LINENO"; then :
19043
19044 curl_win32_file_api="win32_small_files"
19045
19046fi
19047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19048 fi
19049 fi
19050 case "$curl_win32_file_api" in
19051 win32_large_files)
19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19053$as_echo "yes (large file enabled)" >&6; }
19054
19055cat >>confdefs.h <<_ACEOF
19056#define USE_WIN32_LARGE_FILES 1
19057_ACEOF
19058
19059 ;;
19060 win32_small_files)
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19062$as_echo "yes (large file disabled)" >&6; }
19063
19064cat >>confdefs.h <<_ACEOF
19065#define USE_WIN32_SMALL_FILES 1
19066_ACEOF
19067
19068 ;;
19069 *)
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19071$as_echo "no" >&6; }
19072 ;;
19073 esac
19074
19075
19076
19077
19078 tst_cflags="no"
19079 case $host_os in
19080 darwin*)
19081 tst_cflags="yes"
19082 ;;
19083 esac
19084
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19086$as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19088$as_echo "$tst_cflags" >&6; };
19089
19090 if test "$tst_cflags" = "yes"; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19092$as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19093 min=""
19094 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19095 min="-mmacosx-version-min=10.8"
19096 CFLAGS="$CFLAGS $min"
19097 fi
19098 if test -z "$min"; then
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19100$as_echo "set by user" >&6; }
19101 else
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19103$as_echo "$min set" >&6; }
19104 fi
19105
19106 old_CFLAGS=$CFLAGS
19107 CFLAGS="$CFLAGS -Werror=partial-availability"
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19109$as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111/* end confdefs.h. */
19112
19113int main (void)
19114{
19115
19116 ;
19117 return 0;
19118}
19119_ACEOF
19120if ac_fn_c_try_compile "$LINENO"; then :
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19122$as_echo "yes" >&6; }
19123else
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19125$as_echo "no" >&6; }
19126 CFLAGS=$old_CFLAGS
19127fi
19128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 fi
19130
19131
19132
Alex Deymo486467e2017-12-19 19:04:07 +010019133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19134$as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19136/* end confdefs.h. */
19137
19138
19139#include <stdlib.h>
19140
19141int main (void)
19142{
19143
19144 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19145
19146 ;
19147 return 0;
19148}
19149
19150_ACEOF
19151if ac_fn_c_try_compile "$LINENO"; then :
19152
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19154$as_echo "yes" >&6; }
19155
19156cat >>confdefs.h <<_ACEOF
19157#define HAVE_BUILTIN_AVAILABLE 1
19158_ACEOF
19159
19160
19161else
19162
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19164$as_echo "no" >&6; }
19165
19166fi
19167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19168
19169
Elliott Hughes82be86d2017-09-20 17:00:17 -070019170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19171$as_echo_n "checking whether to support http... " >&6; }
19172# Check whether --enable-http was given.
19173if test "${enable_http+set}" = set; then :
19174 enableval=$enable_http; case "$enableval" in
19175 no)
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177$as_echo "no" >&6; }
19178
19179$as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19180
19181 disable_http="yes"
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19183$as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19184 CURL_DISABLE_HTTP=1
19185
19186
19187$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19188
19189 CURL_DISABLE_RTSP=1
19190
19191 ;;
19192 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19193$as_echo "yes" >&6; }
19194 ;;
19195 esac
19196else
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198$as_echo "yes" >&6; }
19199
19200fi
19201
19202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19203$as_echo_n "checking whether to support ftp... " >&6; }
19204# Check whether --enable-ftp was given.
19205if test "${enable_ftp+set}" = set; then :
19206 enableval=$enable_ftp; case "$enableval" in
19207 no)
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19209$as_echo "no" >&6; }
19210
19211$as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19212
19213 CURL_DISABLE_FTP=1
19214
19215 ;;
19216 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19217$as_echo "yes" >&6; }
19218 ;;
19219 esac
19220else
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19222$as_echo "yes" >&6; }
19223
19224fi
19225
19226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19227$as_echo_n "checking whether to support file... " >&6; }
19228# Check whether --enable-file was given.
19229if test "${enable_file+set}" = set; then :
19230 enableval=$enable_file; case "$enableval" in
19231 no)
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19233$as_echo "no" >&6; }
19234
19235$as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19236
19237 CURL_DISABLE_FILE=1
19238
19239 ;;
19240 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19241$as_echo "yes" >&6; }
19242 ;;
19243 esac
19244else
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19246$as_echo "yes" >&6; }
19247
19248fi
19249
19250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19251$as_echo_n "checking whether to support ldap... " >&6; }
19252# Check whether --enable-ldap was given.
19253if test "${enable_ldap+set}" = set; then :
19254 enableval=$enable_ldap; case "$enableval" in
19255 no)
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257$as_echo "no" >&6; }
19258
19259$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19260
19261 CURL_DISABLE_LDAP=1
19262
19263 ;;
19264 *)
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19266$as_echo "yes" >&6; }
19267 ;;
19268 esac
19269else
19270
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19272$as_echo "yes" >&6; }
19273
19274fi
19275
19276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19277$as_echo_n "checking whether to support ldaps... " >&6; }
19278# Check whether --enable-ldaps was given.
19279if test "${enable_ldaps+set}" = set; then :
19280 enableval=$enable_ldaps; case "$enableval" in
19281 no)
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19283$as_echo "no" >&6; }
19284
19285$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19286
19287 CURL_DISABLE_LDAPS=1
19288
19289 ;;
19290 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19292$as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19293
19294$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19295
19296 CURL_DISABLE_LDAPS=1
19297
19298 else
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19300$as_echo "yes" >&6; }
19301
19302$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19303
19304 HAVE_LDAP_SSL=1
19305
19306 fi
19307 ;;
19308 esac
19309else
19310
19311 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313$as_echo "no" >&6; }
19314
19315$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19316
19317 CURL_DISABLE_LDAPS=1
19318
19319 else
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19321$as_echo "yes" >&6; }
19322
19323$as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19324
19325 HAVE_LDAP_SSL=1
19326
19327 fi
19328
19329fi
19330
19331
19332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19333$as_echo_n "checking whether to support rtsp... " >&6; }
19334# Check whether --enable-rtsp was given.
19335if test "${enable_rtsp+set}" = set; then :
19336 enableval=$enable_rtsp; case "$enableval" in
19337 no)
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19339$as_echo "no" >&6; }
19340
19341$as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19342
19343 CURL_DISABLE_RTSP=1
19344
19345 ;;
19346 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19347 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19348 else
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19350$as_echo "yes" >&6; }
19351 curl_rtsp_msg="enabled"
19352 fi
19353 ;;
19354 esac
19355else
19356 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19358$as_echo "yes" >&6; }
19359 curl_rtsp_msg="enabled"
19360 else
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19362$as_echo "no" >&6; }
19363 fi
19364
19365fi
19366
19367
19368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19369$as_echo_n "checking whether to support proxies... " >&6; }
19370# Check whether --enable-proxy was given.
19371if test "${enable_proxy+set}" = set; then :
19372 enableval=$enable_proxy; case "$enableval" in
19373 no)
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19375$as_echo "no" >&6; }
19376
19377$as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19378
19379 CURL_DISABLE_PROXY=1
19380
19381 ;;
19382 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19383$as_echo "yes" >&6; }
19384 ;;
19385 esac
19386else
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19388$as_echo "yes" >&6; }
19389
19390fi
19391
19392
19393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19394$as_echo_n "checking whether to support dict... " >&6; }
19395# Check whether --enable-dict was given.
19396if test "${enable_dict+set}" = set; then :
19397 enableval=$enable_dict; case "$enableval" in
19398 no)
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19400$as_echo "no" >&6; }
19401
19402$as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19403
19404 CURL_DISABLE_DICT=1
19405
19406 ;;
19407 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19408$as_echo "yes" >&6; }
19409 ;;
19410 esac
19411else
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19413$as_echo "yes" >&6; }
19414
19415fi
19416
19417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19418$as_echo_n "checking whether to support telnet... " >&6; }
19419# Check whether --enable-telnet was given.
19420if test "${enable_telnet+set}" = set; then :
19421 enableval=$enable_telnet; case "$enableval" in
19422 no)
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19424$as_echo "no" >&6; }
19425
19426$as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19427
19428 CURL_DISABLE_TELNET=1
19429
19430 ;;
19431 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19432$as_echo "yes" >&6; }
19433 ;;
19434 esac
19435else
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19437$as_echo "yes" >&6; }
19438
19439fi
19440
19441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19442$as_echo_n "checking whether to support tftp... " >&6; }
19443# Check whether --enable-tftp was given.
19444if test "${enable_tftp+set}" = set; then :
19445 enableval=$enable_tftp; case "$enableval" in
19446 no)
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448$as_echo "no" >&6; }
19449
19450$as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19451
19452 CURL_DISABLE_TFTP=1
19453
19454 ;;
19455 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19456$as_echo "yes" >&6; }
19457 ;;
19458 esac
19459else
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19461$as_echo "yes" >&6; }
19462
19463fi
19464
19465
19466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19467$as_echo_n "checking whether to support pop3... " >&6; }
19468# Check whether --enable-pop3 was given.
19469if test "${enable_pop3+set}" = set; then :
19470 enableval=$enable_pop3; case "$enableval" in
19471 no)
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19473$as_echo "no" >&6; }
19474
19475$as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19476
19477 CURL_DISABLE_POP3=1
19478
19479 ;;
19480 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19481$as_echo "yes" >&6; }
19482 ;;
19483 esac
19484else
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19486$as_echo "yes" >&6; }
19487
19488fi
19489
19490
19491
19492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19493$as_echo_n "checking whether to support imap... " >&6; }
19494# Check whether --enable-imap was given.
19495if test "${enable_imap+set}" = set; then :
19496 enableval=$enable_imap; case "$enableval" in
19497 no)
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499$as_echo "no" >&6; }
19500
19501$as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19502
19503 CURL_DISABLE_IMAP=1
19504
19505 ;;
19506 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19507$as_echo "yes" >&6; }
19508 ;;
19509 esac
19510else
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19512$as_echo "yes" >&6; }
19513
19514fi
19515
19516
19517
19518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19519$as_echo_n "checking whether to support smb... " >&6; }
19520# Check whether --enable-smb was given.
19521if test "${enable_smb+set}" = set; then :
19522 enableval=$enable_smb; case "$enableval" in
19523 no)
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19525$as_echo "no" >&6; }
19526
19527$as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19528
19529 CURL_DISABLE_SMB=1
19530
19531 ;;
19532 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19533$as_echo "yes" >&6; }
19534 ;;
19535 esac
19536else
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19538$as_echo "yes" >&6; }
19539
19540fi
19541
19542
19543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19544$as_echo_n "checking whether to support smtp... " >&6; }
19545# Check whether --enable-smtp was given.
19546if test "${enable_smtp+set}" = set; then :
19547 enableval=$enable_smtp; case "$enableval" in
19548 no)
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19550$as_echo "no" >&6; }
19551
19552$as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19553
19554 CURL_DISABLE_SMTP=1
19555
19556 ;;
19557 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19558$as_echo "yes" >&6; }
19559 ;;
19560 esac
19561else
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19563$as_echo "yes" >&6; }
19564
19565fi
19566
19567
19568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19569$as_echo_n "checking whether to support gopher... " >&6; }
19570# Check whether --enable-gopher was given.
19571if test "${enable_gopher+set}" = set; then :
19572 enableval=$enable_gopher; case "$enableval" in
19573 no)
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19575$as_echo "no" >&6; }
19576
19577$as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19578
19579 CURL_DISABLE_GOPHER=1
19580
19581 ;;
19582 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19583$as_echo "yes" >&6; }
19584 ;;
19585 esac
19586else
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588$as_echo "yes" >&6; }
19589
19590fi
19591
19592
19593
19594
19595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19596$as_echo_n "checking whether to provide built-in manual... " >&6; }
19597# Check whether --enable-manual was given.
19598if test "${enable_manual+set}" = set; then :
19599 enableval=$enable_manual; case "$enableval" in
19600 no)
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19602$as_echo "no" >&6; }
19603 ;;
19604 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19605$as_echo "yes" >&6; }
19606 USE_MANUAL="1"
19607 ;;
19608 esac
19609else
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19611$as_echo "yes" >&6; }
19612 USE_MANUAL="1"
19613
19614fi
19615
19616
19617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19618$as_echo_n "checking whether to enable generation of C code... " >&6; }
19619# Check whether --enable-libcurl_option was given.
19620if test "${enable_libcurl_option+set}" = set; then :
19621 enableval=$enable_libcurl_option; case "$enableval" in
19622 no)
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19624$as_echo "no" >&6; }
19625
19626$as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19627
19628 curl_libcurl_msg="no"
19629 ;;
19630 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19631$as_echo "yes" >&6; }
19632 ;;
19633 esac
19634else
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19636$as_echo "yes" >&6; }
19637
19638fi
19639
19640
19641
19642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19643$as_echo_n "checking whether to use libgcc... " >&6; }
19644# Check whether --enable-libgcc was given.
19645if test "${enable_libgcc+set}" = set; then :
19646 enableval=$enable_libgcc; case "$enableval" in
19647 yes)
19648 LIBS="-lgcc $LIBS"
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19650$as_echo "yes" >&6; }
19651 ;;
19652 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653$as_echo "no" >&6; }
19654 ;;
19655 esac
19656else
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19658$as_echo "no" >&6; }
19659
19660fi
19661
19662
19663
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19665$as_echo_n "checking if X/Open network library is required... " >&6; }
19666 tst_lib_xnet_required="no"
19667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19668/* end confdefs.h. */
19669
19670
19671int main (void)
19672{
19673#if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19674 return 0;
19675#elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19676 return 0;
19677#else
19678 force compilation error
19679#endif
19680}
19681
19682
19683_ACEOF
19684if ac_fn_c_try_compile "$LINENO"; then :
19685
19686 tst_lib_xnet_required="yes"
19687 LIBS="-lxnet $LIBS"
19688
19689fi
19690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19692$as_echo "$tst_lib_xnet_required" >&6; }
19693
19694
19695ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19696if test "x$ac_cv_func_gethostbyname" = xyes; then :
19697 HAVE_GETHOSTBYNAME="1"
19698
19699else
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19701$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19702if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19703 $as_echo_n "(cached) " >&6
19704else
19705 ac_check_lib_save_LIBS=$LIBS
19706LIBS="-lnsl $LIBS"
19707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19708/* end confdefs.h. */
19709
19710
19711#ifdef __cplusplus
19712extern "C"
19713#endif
19714char gethostbyname ();
19715int main (void)
19716{
19717return gethostbyname ();
19718 ;
19719 return 0;
19720}
19721_ACEOF
19722if ac_fn_c_try_link "$LINENO"; then :
19723 ac_cv_lib_nsl_gethostbyname=yes
19724else
19725 ac_cv_lib_nsl_gethostbyname=no
19726fi
19727rm -f core conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19729LIBS=$ac_check_lib_save_LIBS
19730fi
19731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19732$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19733if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19734 HAVE_GETHOSTBYNAME="1"
19735 LIBS="-lnsl $LIBS"
19736
19737fi
19738
19739
19740fi
19741
19742
19743if test "$HAVE_GETHOSTBYNAME" != "1"
19744then
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19746$as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19747if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19748 $as_echo_n "(cached) " >&6
19749else
19750 ac_check_lib_save_LIBS=$LIBS
19751LIBS="-lsocket $LIBS"
19752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753/* end confdefs.h. */
19754
19755
19756#ifdef __cplusplus
19757extern "C"
19758#endif
19759char gethostbyname ();
19760int main (void)
19761{
19762return gethostbyname ();
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767if ac_fn_c_try_link "$LINENO"; then :
19768 ac_cv_lib_socket_gethostbyname=yes
19769else
19770 ac_cv_lib_socket_gethostbyname=no
19771fi
19772rm -f core conftest.err conftest.$ac_objext \
19773 conftest$ac_exeext conftest.$ac_ext
19774LIBS=$ac_check_lib_save_LIBS
19775fi
19776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19777$as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19778if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19779 HAVE_GETHOSTBYNAME="1"
19780 LIBS="-lsocket $LIBS"
19781
19782fi
19783
19784fi
19785
19786if test "$HAVE_GETHOSTBYNAME" != "1"
19787then
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19789$as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19790if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19791 $as_echo_n "(cached) " >&6
19792else
19793 ac_check_lib_save_LIBS=$LIBS
19794LIBS="-lwatt $LIBS"
19795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796/* end confdefs.h. */
19797
19798
19799#ifdef __cplusplus
19800extern "C"
19801#endif
19802char gethostbyname ();
19803int main (void)
19804{
19805return gethostbyname ();
19806 ;
19807 return 0;
19808}
19809_ACEOF
19810if ac_fn_c_try_link "$LINENO"; then :
19811 ac_cv_lib_watt_gethostbyname=yes
19812else
19813 ac_cv_lib_watt_gethostbyname=no
19814fi
19815rm -f core conftest.err conftest.$ac_objext \
19816 conftest$ac_exeext conftest.$ac_ext
19817LIBS=$ac_check_lib_save_LIBS
19818fi
19819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19820$as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19821if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19822 HAVE_GETHOSTBYNAME="1"
19823 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19824 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19825 LIBS="-lwatt $LIBS"
19826
19827fi
19828
19829fi
19830
19831if test "$HAVE_GETHOSTBYNAME" != "1"
19832then
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19834$as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19835 my_ac_save_LIBS=$LIBS
19836 LIBS="-lnsl -lsocket $LIBS"
19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838/* end confdefs.h. */
19839
19840
19841
19842int main (void)
19843{
19844
19845 gethostbyname();
19846
19847 ;
19848 return 0;
19849}
19850
19851_ACEOF
19852if ac_fn_c_try_link "$LINENO"; then :
19853
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19855$as_echo "yes" >&6; }
19856 HAVE_GETHOSTBYNAME="1"
19857
19858else
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19861$as_echo "no" >&6; }
19862 LIBS=$my_ac_save_LIBS
19863
19864fi
19865rm -f core conftest.err conftest.$ac_objext \
19866 conftest$ac_exeext conftest.$ac_ext
19867fi
19868
19869if test "$HAVE_GETHOSTBYNAME" != "1"
19870then
19871 if test "$curl_cv_header_windows_h" = "yes"; then
19872 if test "$curl_cv_header_winsock_h" = "yes"; then
19873 case $host in
19874 *-*-mingw32ce*)
19875 winsock_LIB="-lwinsock"
19876 ;;
19877 *)
19878 winsock_LIB="-lwsock32"
19879 ;;
19880 esac
19881 fi
19882 if test "$curl_cv_header_winsock2_h" = "yes"; then
19883 winsock_LIB="-lws2_32"
19884 fi
19885 if test ! -z "$winsock_LIB"; then
19886 my_ac_save_LIBS=$LIBS
19887 LIBS="$winsock_LIB $LIBS"
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19889$as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891/* end confdefs.h. */
19892
19893
19894#ifdef HAVE_WINDOWS_H
19895#ifndef WIN32_LEAN_AND_MEAN
19896#define WIN32_LEAN_AND_MEAN
19897#endif
19898#include <windows.h>
19899#ifdef HAVE_WINSOCK2_H
19900#include <winsock2.h>
19901#else
19902#ifdef HAVE_WINSOCK_H
19903#include <winsock.h>
19904#endif
19905#endif
19906#endif
19907
19908int main (void)
19909{
19910
19911 gethostbyname("www.dummysite.com");
19912
19913 ;
19914 return 0;
19915}
19916
19917_ACEOF
19918if ac_fn_c_try_link "$LINENO"; then :
19919
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19921$as_echo "yes" >&6; }
19922 HAVE_GETHOSTBYNAME="1"
19923
19924else
19925
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19927$as_echo "no" >&6; }
19928 winsock_LIB=""
19929 LIBS=$my_ac_save_LIBS
19930
19931fi
19932rm -f core conftest.err conftest.$ac_objext \
19933 conftest$ac_exeext conftest.$ac_ext
19934 fi
19935 fi
19936fi
19937
19938if test "$HAVE_GETHOSTBYNAME" != "1"
19939then
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19941$as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943/* end confdefs.h. */
19944
19945
19946/* Older Minix versions may need <net/gen/netdb.h> here instead */
19947#include <netdb.h>
19948
19949int main (void)
19950{
19951
19952 gethostbyname("www.dummysite.com");
19953
19954 ;
19955 return 0;
19956}
19957
19958_ACEOF
19959if ac_fn_c_try_link "$LINENO"; then :
19960
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19962$as_echo "yes" >&6; }
19963 HAVE_GETHOSTBYNAME="1"
19964
19965else
19966
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19968$as_echo "no" >&6; }
19969
19970fi
19971rm -f core conftest.err conftest.$ac_objext \
19972 conftest$ac_exeext conftest.$ac_ext
19973fi
19974
19975if test "$HAVE_GETHOSTBYNAME" != "1"
19976then
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19978$as_echo_n "checking for gethostbyname for eCos... " >&6; }
19979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19980/* end confdefs.h. */
19981
19982
19983#include <stdio.h>
19984#include <netdb.h>
19985
19986int main (void)
19987{
19988
19989 gethostbyname("www.dummysite.com");
19990
19991 ;
19992 return 0;
19993}
19994
19995_ACEOF
19996if ac_fn_c_try_link "$LINENO"; then :
19997
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19999$as_echo "yes" >&6; }
20000 HAVE_GETHOSTBYNAME="1"
20001
20002else
20003
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20005$as_echo "no" >&6; }
20006
20007fi
20008rm -f core conftest.err conftest.$ac_objext \
20009 conftest$ac_exeext conftest.$ac_ext
20010fi
20011
20012if test "$HAVE_GETHOSTBYNAME" != "1"
20013then
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20015$as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20016if ${ac_cv_lib_network_gethostbyname+:} false; then :
20017 $as_echo_n "(cached) " >&6
20018else
20019 ac_check_lib_save_LIBS=$LIBS
20020LIBS="-lnetwork $LIBS"
20021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022/* end confdefs.h. */
20023
20024
20025#ifdef __cplusplus
20026extern "C"
20027#endif
20028char gethostbyname ();
20029int main (void)
20030{
20031return gethostbyname ();
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036if ac_fn_c_try_link "$LINENO"; then :
20037 ac_cv_lib_network_gethostbyname=yes
20038else
20039 ac_cv_lib_network_gethostbyname=no
20040fi
20041rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20043LIBS=$ac_check_lib_save_LIBS
20044fi
20045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20046$as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20047if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20048 HAVE_GETHOSTBYNAME="1"
20049 LIBS="-lnetwork $LIBS"
20050
20051fi
20052
20053fi
20054
20055if test "$HAVE_GETHOSTBYNAME" != "1"
20056then
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20058$as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20059if ${ac_cv_lib_net_gethostbyname+:} false; then :
20060 $as_echo_n "(cached) " >&6
20061else
20062 ac_check_lib_save_LIBS=$LIBS
20063LIBS="-lnet $LIBS"
20064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20065/* end confdefs.h. */
20066
20067
20068#ifdef __cplusplus
20069extern "C"
20070#endif
20071char gethostbyname ();
20072int main (void)
20073{
20074return gethostbyname ();
20075 ;
20076 return 0;
20077}
20078_ACEOF
20079if ac_fn_c_try_link "$LINENO"; then :
20080 ac_cv_lib_net_gethostbyname=yes
20081else
20082 ac_cv_lib_net_gethostbyname=no
20083fi
20084rm -f core conftest.err conftest.$ac_objext \
20085 conftest$ac_exeext conftest.$ac_ext
20086LIBS=$ac_check_lib_save_LIBS
20087fi
20088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20089$as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20090if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20091 HAVE_GETHOSTBYNAME="1"
20092 LIBS="-lnet $LIBS"
20093
20094fi
20095
20096fi
20097
20098
20099if test "$HAVE_GETHOSTBYNAME" != "1"; then
20100 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20101fi
20102
20103
20104curl_includes_winsock2="\
20105/* includes start */
20106#ifdef HAVE_WINDOWS_H
20107# ifndef WIN32_LEAN_AND_MEAN
20108# define WIN32_LEAN_AND_MEAN
20109# endif
20110# include <windows.h>
20111# ifdef HAVE_WINSOCK2_H
20112# include <winsock2.h>
20113# else
20114# ifdef HAVE_WINSOCK_H
20115# include <winsock.h>
20116# endif
20117# endif
20118#endif
20119/* includes end */"
20120
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20122$as_echo_n "checking for windows.h... " >&6; }
20123if ${curl_cv_header_windows_h+:} false; then :
20124 $as_echo_n "(cached) " >&6
20125else
20126
20127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20128/* end confdefs.h. */
20129
20130
20131#undef inline
20132#ifndef WIN32_LEAN_AND_MEAN
20133#define WIN32_LEAN_AND_MEAN
20134#endif
20135#include <windows.h>
20136
20137int main (void)
20138{
20139
20140#if defined(__CYGWIN__) || defined(__CEGCC__)
20141 HAVE_WINDOWS_H shall not be defined.
20142#else
20143 int dummy=2*WINVER;
20144#endif
20145
20146 ;
20147 return 0;
20148}
20149
20150_ACEOF
20151if ac_fn_c_try_compile "$LINENO"; then :
20152
20153 curl_cv_header_windows_h="yes"
20154
20155else
20156
20157 curl_cv_header_windows_h="no"
20158
20159fi
20160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20161
20162fi
20163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20164$as_echo "$curl_cv_header_windows_h" >&6; }
20165 case "$curl_cv_header_windows_h" in
20166 yes)
20167
20168cat >>confdefs.h <<_ACEOF
20169#define HAVE_WINDOWS_H 1
20170_ACEOF
20171
20172 ;;
20173 esac
20174
20175
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20177$as_echo_n "checking for winsock.h... " >&6; }
20178if ${curl_cv_header_winsock_h+:} false; then :
20179 $as_echo_n "(cached) " >&6
20180else
20181
20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183/* end confdefs.h. */
20184
20185
20186#undef inline
20187#ifndef WIN32_LEAN_AND_MEAN
20188#define WIN32_LEAN_AND_MEAN
20189#endif
20190#include <windows.h>
20191#include <winsock.h>
20192
20193int main (void)
20194{
20195
20196#if defined(__CYGWIN__) || defined(__CEGCC__)
20197 HAVE_WINSOCK_H shall not be defined.
20198#else
20199 int dummy=WSACleanup();
20200#endif
20201
20202 ;
20203 return 0;
20204}
20205
20206_ACEOF
20207if ac_fn_c_try_compile "$LINENO"; then :
20208
20209 curl_cv_header_winsock_h="yes"
20210
20211else
20212
20213 curl_cv_header_winsock_h="no"
20214
20215fi
20216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217
20218fi
20219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20220$as_echo "$curl_cv_header_winsock_h" >&6; }
20221 case "$curl_cv_header_winsock_h" in
20222 yes)
20223
20224cat >>confdefs.h <<_ACEOF
20225#define HAVE_WINSOCK_H 1
20226_ACEOF
20227
20228 ;;
20229 esac
20230
20231
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20233$as_echo_n "checking for winsock2.h... " >&6; }
20234if ${curl_cv_header_winsock2_h+:} false; then :
20235 $as_echo_n "(cached) " >&6
20236else
20237
20238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239/* end confdefs.h. */
20240
20241
20242#undef inline
20243#ifndef WIN32_LEAN_AND_MEAN
20244#define WIN32_LEAN_AND_MEAN
20245#endif
20246#include <windows.h>
20247#include <winsock2.h>
20248
20249int main (void)
20250{
20251
20252#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20253 HAVE_WINSOCK2_H shall not be defined.
20254#else
20255 int dummy=2*IPPROTO_ESP;
20256#endif
20257
20258 ;
20259 return 0;
20260}
20261
20262_ACEOF
20263if ac_fn_c_try_compile "$LINENO"; then :
20264
20265 curl_cv_header_winsock2_h="yes"
20266
20267else
20268
20269 curl_cv_header_winsock2_h="no"
20270
20271fi
20272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273
20274fi
20275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20276$as_echo "$curl_cv_header_winsock2_h" >&6; }
20277 case "$curl_cv_header_winsock2_h" in
20278 yes)
20279
20280cat >>confdefs.h <<_ACEOF
20281#define HAVE_WINSOCK2_H 1
20282_ACEOF
20283
20284 ;;
20285 esac
20286
20287
20288
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20290$as_echo_n "checking for connect in libraries... " >&6; }
20291 tst_connect_save_LIBS="$LIBS"
20292 tst_connect_need_LIBS="unknown"
20293 for tst_lib in '' '-lsocket' ; do
20294 if test "$tst_connect_need_LIBS" = "unknown"; then
20295 LIBS="$tst_lib $tst_connect_save_LIBS"
20296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20297/* end confdefs.h. */
20298
20299
20300 $curl_includes_winsock2
20301 #ifndef HAVE_WINDOWS_H
20302 int connect(int, void*, int);
20303 #endif
20304
20305int main (void)
20306{
20307
20308 if(0 != connect(0, 0, 0))
20309 return 1;
20310
20311 ;
20312 return 0;
20313}
20314
20315_ACEOF
20316if ac_fn_c_try_link "$LINENO"; then :
20317
20318 tst_connect_need_LIBS="$tst_lib"
20319
20320fi
20321rm -f core conftest.err conftest.$ac_objext \
20322 conftest$ac_exeext conftest.$ac_ext
20323 fi
20324 done
20325 LIBS="$tst_connect_save_LIBS"
20326 #
20327 case X-"$tst_connect_need_LIBS" in
20328 X-unknown)
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20330$as_echo "cannot find connect" >&6; }
20331 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20332 ;;
20333 X-)
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20335$as_echo "yes" >&6; }
20336 ;;
20337 *)
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20339$as_echo "$tst_connect_need_LIBS" >&6; }
20340 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20341 ;;
20342 esac
20343
20344
20345CURL_NETWORK_LIBS=$LIBS
20346
20347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20348$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20349if ${ac_cv_header_time+:} false; then :
20350 $as_echo_n "(cached) " >&6
20351else
20352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20353/* end confdefs.h. */
20354#include <sys/types.h>
20355#include <sys/time.h>
20356#include <time.h>
20357
20358int main (void)
20359{
20360if ((struct tm *) 0)
20361return 0;
20362 ;
20363 return 0;
20364}
20365_ACEOF
20366if ac_fn_c_try_compile "$LINENO"; then :
20367 ac_cv_header_time=yes
20368else
20369 ac_cv_header_time=no
20370fi
20371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20372fi
20373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20374$as_echo "$ac_cv_header_time" >&6; }
20375if test $ac_cv_header_time = yes; then
20376
20377$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20378
20379fi
20380
20381
20382 for ac_header in sys/types.h sys/time.h time.h
20383do :
20384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20385ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20387 cat >>confdefs.h <<_ACEOF
20388#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20389_ACEOF
20390
20391fi
20392
20393done
20394
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20396$as_echo_n "checking for monotonic clock_gettime... " >&6; }
20397 #
20398 if test "x$dontwant_rt" = "xno" ; then
20399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400/* end confdefs.h. */
20401
20402
20403#ifdef HAVE_SYS_TYPES_H
20404#include <sys/types.h>
20405#endif
20406#ifdef HAVE_SYS_TIME_H
20407#include <sys/time.h>
20408#ifdef TIME_WITH_SYS_TIME
20409#include <time.h>
20410#endif
20411#else
20412#ifdef HAVE_TIME_H
20413#include <time.h>
20414#endif
20415#endif
20416
20417int main (void)
20418{
20419
20420 struct timespec ts;
20421 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20422
20423 ;
20424 return 0;
20425}
20426
20427_ACEOF
20428if ac_fn_c_try_compile "$LINENO"; then :
20429
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20431$as_echo "yes" >&6; }
20432 curl_func_clock_gettime="yes"
20433
20434else
20435
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20437$as_echo "no" >&6; }
20438 curl_func_clock_gettime="no"
20439
20440fi
20441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20442 fi
20443
20444
20445 #
20446 if test "$curl_func_clock_gettime" = "yes"; then
20447 #
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20449$as_echo_n "checking for clock_gettime in libraries... " >&6; }
20450 #
20451 curl_cv_save_LIBS="$LIBS"
20452 curl_cv_gclk_LIBS="unknown"
20453 #
20454 for x_xlibs in '' '-lrt' '-lposix4' ; do
20455 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20456 if test -z "$x_xlibs"; then
20457 LIBS="$curl_cv_save_LIBS"
20458 else
20459 LIBS="$x_xlibs $curl_cv_save_LIBS"
20460 fi
20461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20462/* end confdefs.h. */
20463
20464
20465#ifdef HAVE_SYS_TYPES_H
20466#include <sys/types.h>
20467#endif
20468#ifdef HAVE_SYS_TIME_H
20469#include <sys/time.h>
20470#ifdef TIME_WITH_SYS_TIME
20471#include <time.h>
20472#endif
20473#else
20474#ifdef HAVE_TIME_H
20475#include <time.h>
20476#endif
20477#endif
20478
20479int main (void)
20480{
20481
20482 struct timespec ts;
20483 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20484
20485 ;
20486 return 0;
20487}
20488
20489_ACEOF
20490if ac_fn_c_try_link "$LINENO"; then :
20491
20492 curl_cv_gclk_LIBS="$x_xlibs"
20493
20494fi
20495rm -f core conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext conftest.$ac_ext
20497 fi
20498 done
20499 #
20500 LIBS="$curl_cv_save_LIBS"
20501 #
20502 case X-"$curl_cv_gclk_LIBS" in
20503 X-unknown)
20504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20505$as_echo "cannot find clock_gettime" >&6; }
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20507$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20508 curl_func_clock_gettime="no"
20509 ;;
20510 X-)
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20512$as_echo "no additional lib required" >&6; }
20513 curl_func_clock_gettime="yes"
20514 ;;
20515 *)
20516 if test -z "$curl_cv_save_LIBS"; then
20517 LIBS="$curl_cv_gclk_LIBS"
20518 else
20519 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20520 fi
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20522$as_echo "$curl_cv_gclk_LIBS" >&6; }
20523 curl_func_clock_gettime="yes"
20524 ;;
20525 esac
20526 #
20527 if test "x$cross_compiling" != "xyes" &&
20528 test "$curl_func_clock_gettime" = "yes"; then
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20530$as_echo_n "checking if monotonic clock_gettime works... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080020531
20532
20533 old=$LD_LIBRARY_PATH
20534 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20535 export LD_LIBRARY_PATH
20536 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070020537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20539as_fn_error $? "cannot run test program while cross compiling
20540See \`config.log' for more details" "$LINENO" 5; }
20541else
20542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20543/* end confdefs.h. */
20544
20545
20546#ifdef HAVE_STDLIB_H
20547#include <stdlib.h>
20548#endif
20549#ifdef HAVE_SYS_TYPES_H
20550#include <sys/types.h>
20551#endif
20552#ifdef HAVE_SYS_TIME_H
20553#include <sys/time.h>
20554#ifdef TIME_WITH_SYS_TIME
20555#include <time.h>
20556#endif
20557#else
20558#ifdef HAVE_TIME_H
20559#include <time.h>
20560#endif
20561#endif
20562
20563int main (void)
20564{
20565
20566 struct timespec ts;
20567 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20568 exit(0);
20569 else
20570 exit(1);
20571
20572 ;
20573 return 0;
20574}
20575
20576_ACEOF
20577if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080020578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020579$as_echo "yes" >&6; }
20580
20581else
Elliott Hughesa93fb052018-12-12 14:22:48 -080020582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070020583$as_echo "no" >&6; }
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20585$as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20586 curl_func_clock_gettime="no"
20587 LIBS="$curl_cv_save_LIBS"
20588
20589fi
20590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20591 conftest.$ac_objext conftest.beam conftest.$ac_ext
20592fi
20593
Elliott Hughesa93fb052018-12-12 14:22:48 -080020594 LD_LIBRARY_PATH=$old # restore
20595
Elliott Hughes82be86d2017-09-20 17:00:17 -070020596 fi
20597 #
20598 case "$curl_func_clock_gettime" in
20599 yes)
20600
20601cat >>confdefs.h <<_ACEOF
20602#define HAVE_CLOCK_GETTIME_MONOTONIC 1
20603_ACEOF
20604
20605 ;;
20606 esac
20607 #
20608 fi
20609 #
20610
20611
20612CURL_NETWORK_AND_TIME_LIBS=$LIBS
20613
20614
20615
20616clean_CPPFLAGS=$CPPFLAGS
20617clean_LDFLAGS=$LDFLAGS
20618clean_LIBS=$LIBS
20619ZLIB_LIBS=""
20620
20621# Check whether --with-zlib was given.
20622if test "${with_zlib+set}" = set; then :
20623 withval=$with_zlib; OPT_ZLIB="$withval"
20624fi
20625
20626
20627if test "$OPT_ZLIB" = "no" ; then
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20629$as_echo "$as_me: WARNING: zlib disabled" >&2;}
20630else
20631 if test "$OPT_ZLIB" = "yes" ; then
20632 OPT_ZLIB=""
20633 fi
20634
20635 if test -z "$OPT_ZLIB" ; then
20636
20637 if test -n "$PKG_CONFIG"; then
20638 PKGCONFIG="$PKG_CONFIG"
20639 else
20640 if test -n "$ac_tool_prefix"; then
20641 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20642set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20644$as_echo_n "checking for $ac_word... " >&6; }
20645if ${ac_cv_path_PKGCONFIG+:} false; then :
20646 $as_echo_n "(cached) " >&6
20647else
20648 case $PKGCONFIG in
20649 [\\/]* | ?:[\\/]*)
20650 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20651 ;;
20652 *)
20653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20654as_dummy="$PATH:/usr/bin:/usr/local/bin"
20655for as_dir in $as_dummy
20656do
20657 IFS=$as_save_IFS
20658 test -z "$as_dir" && as_dir=.
20659 for ac_exec_ext in '' $ac_executable_extensions; do
20660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20661 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20663 break 2
20664 fi
20665done
20666 done
20667IFS=$as_save_IFS
20668
20669 ;;
20670esac
20671fi
20672PKGCONFIG=$ac_cv_path_PKGCONFIG
20673if test -n "$PKGCONFIG"; then
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20675$as_echo "$PKGCONFIG" >&6; }
20676else
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20678$as_echo "no" >&6; }
20679fi
20680
20681
20682fi
20683if test -z "$ac_cv_path_PKGCONFIG"; then
20684 ac_pt_PKGCONFIG=$PKGCONFIG
20685 # Extract the first word of "pkg-config", so it can be a program name with args.
20686set dummy pkg-config; ac_word=$2
20687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20688$as_echo_n "checking for $ac_word... " >&6; }
20689if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20690 $as_echo_n "(cached) " >&6
20691else
20692 case $ac_pt_PKGCONFIG in
20693 [\\/]* | ?:[\\/]*)
20694 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20695 ;;
20696 *)
20697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20698as_dummy="$PATH:/usr/bin:/usr/local/bin"
20699for as_dir in $as_dummy
20700do
20701 IFS=$as_save_IFS
20702 test -z "$as_dir" && as_dir=.
20703 for ac_exec_ext in '' $ac_executable_extensions; do
20704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20705 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20707 break 2
20708 fi
20709done
20710 done
20711IFS=$as_save_IFS
20712
20713 ;;
20714esac
20715fi
20716ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20717if test -n "$ac_pt_PKGCONFIG"; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20719$as_echo "$ac_pt_PKGCONFIG" >&6; }
20720else
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20722$as_echo "no" >&6; }
20723fi
20724
20725 if test "x$ac_pt_PKGCONFIG" = x; then
20726 PKGCONFIG="no"
20727 else
20728 case $cross_compiling:$ac_tool_warned in
20729yes:)
20730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20732ac_tool_warned=yes ;;
20733esac
20734 PKGCONFIG=$ac_pt_PKGCONFIG
20735 fi
20736else
20737 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20738fi
20739
20740 fi
20741
20742 if test "x$PKGCONFIG" != "xno"; then
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20744$as_echo_n "checking for zlib options with pkg-config... " >&6; }
20745 itexists=`
20746 if test -n ""; then
20747 PKG_CONFIG_LIBDIR=""
20748 export PKG_CONFIG_LIBDIR
20749 fi
20750 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20751
20752 if test -z "$itexists"; then
20753 PKGCONFIG="no"
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20755$as_echo "no" >&6; }
20756 else
20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20758$as_echo "found" >&6; }
20759 fi
20760 fi
20761
20762
20763 if test "$PKGCONFIG" != "no" ; then
20764 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20765 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20766 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20767 OPT_ZLIB=""
20768 HAVE_LIBZ="1"
20769 fi
20770
20771 if test -z "$HAVE_LIBZ"; then
20772
20773
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20775$as_echo_n "checking for inflateEnd in -lz... " >&6; }
20776if ${ac_cv_lib_z_inflateEnd+:} false; then :
20777 $as_echo_n "(cached) " >&6
20778else
20779 ac_check_lib_save_LIBS=$LIBS
20780LIBS="-lz $LIBS"
20781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20782/* end confdefs.h. */
20783
20784
20785#ifdef __cplusplus
20786extern "C"
20787#endif
20788char inflateEnd ();
20789int main (void)
20790{
20791return inflateEnd ();
20792 ;
20793 return 0;
20794}
20795_ACEOF
20796if ac_fn_c_try_link "$LINENO"; then :
20797 ac_cv_lib_z_inflateEnd=yes
20798else
20799 ac_cv_lib_z_inflateEnd=no
20800fi
20801rm -f core conftest.err conftest.$ac_objext \
20802 conftest$ac_exeext conftest.$ac_ext
20803LIBS=$ac_check_lib_save_LIBS
20804fi
20805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20806$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20807if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20808 HAVE_LIBZ="1"
20809 LIBS="-lz $LIBS"
20810else
20811 OPT_ZLIB="/usr/local"
20812fi
20813
20814 fi
20815 fi
20816
20817 if test -n "$OPT_ZLIB"; then
20818 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20819 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20820 fi
20821
20822 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20823if test "x$ac_cv_header_zlib_h" = xyes; then :
20824
20825 HAVE_ZLIB_H="1"
20826 if test "$HAVE_LIBZ" != "1"; then
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20828$as_echo_n "checking for gzread in -lz... " >&6; }
20829if ${ac_cv_lib_z_gzread+:} false; then :
20830 $as_echo_n "(cached) " >&6
20831else
20832 ac_check_lib_save_LIBS=$LIBS
20833LIBS="-lz $LIBS"
20834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835/* end confdefs.h. */
20836
20837
20838#ifdef __cplusplus
20839extern "C"
20840#endif
20841char gzread ();
20842int main (void)
20843{
20844return gzread ();
20845 ;
20846 return 0;
20847}
20848_ACEOF
20849if ac_fn_c_try_link "$LINENO"; then :
20850 ac_cv_lib_z_gzread=yes
20851else
20852 ac_cv_lib_z_gzread=no
20853fi
20854rm -f core conftest.err conftest.$ac_objext \
20855 conftest$ac_exeext conftest.$ac_ext
20856LIBS=$ac_check_lib_save_LIBS
20857fi
20858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20859$as_echo "$ac_cv_lib_z_gzread" >&6; }
20860if test "x$ac_cv_lib_z_gzread" = xyes; then :
20861
20862 HAVE_LIBZ="1"
20863 LIBS="-lz $LIBS"
20864
20865else
20866 CPPFLAGS=$clean_CPPFLAGS
20867 LDFLAGS=$clean_LDFLAGS
20868fi
20869
20870 fi
20871
20872else
20873
20874 CPPFLAGS=$clean_CPPFLAGS
20875 LDFLAGS=$clean_LDFLAGS
20876
20877fi
20878
20879
20880
20881 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20882 then
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20884$as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20885 HAVE_LIBZ=""
20886 CPPFLAGS=$clean_CPPFLAGS
20887 LDFLAGS=$clean_LDFLAGS
20888 LIBS=$clean_LIBS
20889 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20890 then
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20892$as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20893 CPPFLAGS=$clean_CPPFLAGS
20894 LDFLAGS=$clean_LDFLAGS
20895 LIBS=$clean_LIBS
20896 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20897 then
20898
20899
20900$as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20901
20902
20903$as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20904
20905
20906 ZLIB_LIBS="-lz"
20907 LIBS="-lz $clean_LIBS"
20908
20909 AMFIXLIB="1"
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20911$as_echo "$as_me: found both libz and libz.h header" >&6;}
20912 curl_zlib_msg="enabled"
20913 fi
20914fi
20915
20916 if test x"$AMFIXLIB" = x1; then
20917 HAVE_LIBZ_TRUE=
20918 HAVE_LIBZ_FALSE='#'
20919else
20920 HAVE_LIBZ_TRUE='#'
20921 HAVE_LIBZ_FALSE=
20922fi
20923
20924
20925
20926
Alex Deymo486467e2017-12-19 19:04:07 +010020927
20928OPT_BROTLI=off
20929
20930# Check whether --with-brotli was given.
20931if test "${with_brotli+set}" = set; then :
20932 withval=$with_brotli; OPT_BROTLI=$withval
20933fi
20934
20935
20936if test X"$OPT_BROTLI" != Xno; then
20937 CLEANLDFLAGS="$LDFLAGS"
20938 CLEANCPPFLAGS="$CPPFLAGS"
20939 CLEANLIBS="$LIBS"
20940
20941 case "$OPT_BROTLI" in
20942 yes)
20943
20944 if test -n "$PKG_CONFIG"; then
20945 PKGCONFIG="$PKG_CONFIG"
20946 else
20947 if test -n "$ac_tool_prefix"; then
20948 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20949set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20951$as_echo_n "checking for $ac_word... " >&6; }
20952if ${ac_cv_path_PKGCONFIG+:} false; then :
20953 $as_echo_n "(cached) " >&6
20954else
20955 case $PKGCONFIG in
20956 [\\/]* | ?:[\\/]*)
20957 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20958 ;;
20959 *)
20960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20961as_dummy="$PATH:/usr/bin:/usr/local/bin"
20962for as_dir in $as_dummy
20963do
20964 IFS=$as_save_IFS
20965 test -z "$as_dir" && as_dir=.
20966 for ac_exec_ext in '' $ac_executable_extensions; do
20967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20968 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20970 break 2
20971 fi
20972done
20973 done
20974IFS=$as_save_IFS
20975
20976 ;;
20977esac
20978fi
20979PKGCONFIG=$ac_cv_path_PKGCONFIG
20980if test -n "$PKGCONFIG"; then
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20982$as_echo "$PKGCONFIG" >&6; }
20983else
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20985$as_echo "no" >&6; }
20986fi
20987
20988
20989fi
20990if test -z "$ac_cv_path_PKGCONFIG"; then
20991 ac_pt_PKGCONFIG=$PKGCONFIG
20992 # Extract the first word of "pkg-config", so it can be a program name with args.
20993set dummy pkg-config; ac_word=$2
20994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20995$as_echo_n "checking for $ac_word... " >&6; }
20996if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20997 $as_echo_n "(cached) " >&6
20998else
20999 case $ac_pt_PKGCONFIG in
21000 [\\/]* | ?:[\\/]*)
21001 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21002 ;;
21003 *)
21004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21005as_dummy="$PATH:/usr/bin:/usr/local/bin"
21006for as_dir in $as_dummy
21007do
21008 IFS=$as_save_IFS
21009 test -z "$as_dir" && as_dir=.
21010 for ac_exec_ext in '' $ac_executable_extensions; do
21011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21012 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21014 break 2
21015 fi
21016done
21017 done
21018IFS=$as_save_IFS
21019
21020 ;;
21021esac
21022fi
21023ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21024if test -n "$ac_pt_PKGCONFIG"; then
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21026$as_echo "$ac_pt_PKGCONFIG" >&6; }
21027else
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21029$as_echo "no" >&6; }
21030fi
21031
21032 if test "x$ac_pt_PKGCONFIG" = x; then
21033 PKGCONFIG="no"
21034 else
21035 case $cross_compiling:$ac_tool_warned in
21036yes:)
21037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21039ac_tool_warned=yes ;;
21040esac
21041 PKGCONFIG=$ac_pt_PKGCONFIG
21042 fi
21043else
21044 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21045fi
21046
21047 fi
21048
21049 if test "x$PKGCONFIG" != "xno"; then
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21051$as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21052 itexists=`
21053 if test -n ""; then
21054 PKG_CONFIG_LIBDIR=""
21055 export PKG_CONFIG_LIBDIR
21056 fi
21057 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21058
21059 if test -z "$itexists"; then
21060 PKGCONFIG="no"
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21062$as_echo "no" >&6; }
21063 else
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21065$as_echo "found" >&6; }
21066 fi
21067 fi
21068
21069
21070 if test "$PKGCONFIG" != "no" ; then
21071 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21072 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21073 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21074 version=`$PKGCONFIG --modversion libbrotlidec`
21075 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21076 fi
21077
21078 ;;
21079 off)
21080 ;;
21081 *)
21082 PREFIX_BROTLI=$OPT_BROTLI
21083 ;;
21084 esac
21085
21086 if test -n "$PREFIX_BROTLI"; then
21087 LIB_BROTLI="-lbrotlidec"
21088 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21089 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21090 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21091 fi
21092
21093 LDFLAGS="$LDFLAGS $LD_BROTLI"
21094 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21095 LIBS="$LIB_BROTLI $LIBS"
21096
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21098$as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21099if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21100 $as_echo_n "(cached) " >&6
21101else
21102 ac_check_lib_save_LIBS=$LIBS
21103LIBS="-lbrotlidec $LIBS"
21104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21105/* end confdefs.h. */
21106
21107
21108#ifdef __cplusplus
21109extern "C"
21110#endif
21111char BrotliDecoderDecompress ();
21112int main (void)
21113{
21114return BrotliDecoderDecompress ();
21115 ;
21116 return 0;
21117}
21118_ACEOF
21119if ac_fn_c_try_link "$LINENO"; then :
21120 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21121else
21122 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21123fi
21124rm -f core conftest.err conftest.$ac_objext \
21125 conftest$ac_exeext conftest.$ac_ext
21126LIBS=$ac_check_lib_save_LIBS
21127fi
21128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21129$as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21130if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21131 cat >>confdefs.h <<_ACEOF
21132#define HAVE_LIBBROTLIDEC 1
21133_ACEOF
21134
21135 LIBS="-lbrotlidec $LIBS"
21136
21137fi
21138
21139
21140 for ac_header in brotli/decode.h
21141do :
21142 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21143if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21144 cat >>confdefs.h <<_ACEOF
21145#define HAVE_BROTLI_DECODE_H 1
21146_ACEOF
21147 curl_brotli_msg="enabled (libbrotlidec)"
21148 HAVE_BROTLI=1
21149
21150$as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21151
21152 HAVE_BROTLI=1
21153
21154
21155fi
21156
21157done
21158
21159
21160 if test X"$OPT_BROTLI" != Xoff &&
21161 test "$HAVE_BROTLI" != "1"; then
21162 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21163 fi
21164
21165 if test "$HAVE_BROTLI" = "1"; then
21166 if test -n "$DIR_BROTLI"; then
21167
21168 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021169 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21170 export CURL_LIBRARY_PATH
21171 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21172$as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
Alex Deymo486467e2017-12-19 19:04:07 +010021173 fi
21174 fi
21175 else
21176 LDFLAGS=$CLEANLDFLAGS
21177 CPPFLAGS=$CLEANCPPFLAGS
21178 LIBS=$CLEANLIBS
21179 fi
21180fi
21181
21182
Elliott Hughes82be86d2017-09-20 17:00:17 -070021183LDAPLIBNAME=""
21184
21185# Check whether --with-ldap-lib was given.
21186if test "${with_ldap_lib+set}" = set; then :
21187 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21188fi
21189
21190
21191LBERLIBNAME=""
21192
21193# Check whether --with-lber-lib was given.
21194if test "${with_lber_lib+set}" = set; then :
21195 withval=$with_lber_lib; LBERLIBNAME="$withval"
21196fi
21197
21198
21199if test x$CURL_DISABLE_LDAP != x1 ; then
21200
21201
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21203$as_echo_n "checking for lber.h... " >&6; }
21204if ${curl_cv_header_lber_h+:} false; then :
21205 $as_echo_n "(cached) " >&6
21206else
21207
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209/* end confdefs.h. */
21210
21211
21212#undef inline
21213#ifdef HAVE_WINDOWS_H
21214#ifndef WIN32_LEAN_AND_MEAN
21215#define WIN32_LEAN_AND_MEAN
21216#endif
21217#include <windows.h>
21218#else
21219#ifdef HAVE_SYS_TYPES_H
21220#include <sys/types.h>
21221#endif
21222#endif
21223#ifndef NULL
21224#define NULL (void *)0
21225#endif
21226#include <lber.h>
21227
21228int main (void)
21229{
21230
21231 BerValue *bvp = NULL;
21232 BerElement *bep = ber_init(bvp);
21233 ber_free(bep, 1);
21234
21235 ;
21236 return 0;
21237}
21238
21239_ACEOF
21240if ac_fn_c_try_compile "$LINENO"; then :
21241
21242 curl_cv_header_lber_h="yes"
21243
21244else
21245
21246 curl_cv_header_lber_h="no"
21247
21248fi
21249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250
21251fi
21252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21253$as_echo "$curl_cv_header_lber_h" >&6; }
21254 if test "$curl_cv_header_lber_h" = "yes"; then
21255
21256cat >>confdefs.h <<_ACEOF
21257#define HAVE_LBER_H 1
21258_ACEOF
21259
21260 #
21261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21262/* end confdefs.h. */
21263
21264
21265#undef inline
21266#ifdef HAVE_WINDOWS_H
21267#ifndef WIN32_LEAN_AND_MEAN
21268#define WIN32_LEAN_AND_MEAN
21269#endif
21270#include <windows.h>
21271#else
21272#ifdef HAVE_SYS_TYPES_H
21273#include <sys/types.h>
21274#endif
21275#endif
21276#ifndef NULL
21277#define NULL (void *)0
21278#endif
21279#ifndef LDAP_DEPRECATED
21280#define LDAP_DEPRECATED 1
21281#endif
21282#include <ldap.h>
21283
21284int main (void)
21285{
21286
21287 BerValue *bvp = NULL;
21288 BerElement *bep = ber_init(bvp);
21289 ber_free(bep, 1);
21290
21291 ;
21292 return 0;
21293}
21294
21295_ACEOF
21296if ac_fn_c_try_compile "$LINENO"; then :
21297
21298 curl_cv_need_header_lber_h="no"
21299
21300else
21301
21302 curl_cv_need_header_lber_h="yes"
21303
21304fi
21305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 #
21307 case "$curl_cv_need_header_lber_h" in
21308 yes)
21309
21310cat >>confdefs.h <<_ACEOF
21311#define NEED_LBER_H 1
21312_ACEOF
21313
21314 ;;
21315 esac
21316 fi
21317
21318
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21320$as_echo_n "checking for ldap.h... " >&6; }
21321if ${curl_cv_header_ldap_h+:} false; then :
21322 $as_echo_n "(cached) " >&6
21323else
21324
21325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326/* end confdefs.h. */
21327
21328
21329#undef inline
21330#ifdef HAVE_WINDOWS_H
21331#ifndef WIN32_LEAN_AND_MEAN
21332#define WIN32_LEAN_AND_MEAN
21333#endif
21334#include <windows.h>
21335#else
21336#ifdef HAVE_SYS_TYPES_H
21337#include <sys/types.h>
21338#endif
21339#endif
21340#ifndef LDAP_DEPRECATED
21341#define LDAP_DEPRECATED 1
21342#endif
21343#ifdef NEED_LBER_H
21344#include <lber.h>
21345#endif
21346#include <ldap.h>
21347
21348int main (void)
21349{
21350
21351 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21352 int res = ldap_unbind(ldp);
21353
21354 ;
21355 return 0;
21356}
21357
21358_ACEOF
21359if ac_fn_c_try_compile "$LINENO"; then :
21360
21361 curl_cv_header_ldap_h="yes"
21362
21363else
21364
21365 curl_cv_header_ldap_h="no"
21366
21367fi
21368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369
21370fi
21371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21372$as_echo "$curl_cv_header_ldap_h" >&6; }
21373 case "$curl_cv_header_ldap_h" in
21374 yes)
21375
21376cat >>confdefs.h <<_ACEOF
21377#define HAVE_LDAP_H 1
21378_ACEOF
21379
21380 ;;
21381 esac
21382
21383
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21385$as_echo_n "checking for ldapssl.h... " >&6; }
21386if ${curl_cv_header_ldapssl_h+:} false; then :
21387 $as_echo_n "(cached) " >&6
21388else
21389
21390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21391/* end confdefs.h. */
21392
21393
21394#undef inline
21395#ifdef HAVE_WINDOWS_H
21396#ifndef WIN32_LEAN_AND_MEAN
21397#define WIN32_LEAN_AND_MEAN
21398#endif
21399#include <windows.h>
21400#else
21401#ifdef HAVE_SYS_TYPES_H
21402#include <sys/types.h>
21403#endif
21404#endif
21405#ifndef NULL
21406#define NULL (void *)0
21407#endif
21408#ifndef LDAP_DEPRECATED
21409#define LDAP_DEPRECATED 1
21410#endif
21411#ifdef NEED_LBER_H
21412#include <lber.h>
21413#endif
21414#ifdef HAVE_LDAP_H
21415#include <ldap.h>
21416#endif
21417#include <ldapssl.h>
21418
21419int main (void)
21420{
21421
21422 char *cert_label = NULL;
21423 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21424
21425 ;
21426 return 0;
21427}
21428
21429_ACEOF
21430if ac_fn_c_try_compile "$LINENO"; then :
21431
21432 curl_cv_header_ldapssl_h="yes"
21433
21434else
21435
21436 curl_cv_header_ldapssl_h="no"
21437
21438fi
21439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21440
21441fi
21442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21443$as_echo "$curl_cv_header_ldapssl_h" >&6; }
21444 case "$curl_cv_header_ldapssl_h" in
21445 yes)
21446
21447cat >>confdefs.h <<_ACEOF
21448#define HAVE_LDAPSSL_H 1
21449_ACEOF
21450
21451 ;;
21452 esac
21453
21454
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21456$as_echo_n "checking for ldap_ssl.h... " >&6; }
21457if ${curl_cv_header_ldap_ssl_h+:} false; then :
21458 $as_echo_n "(cached) " >&6
21459else
21460
21461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21462/* end confdefs.h. */
21463
21464
21465#undef inline
21466#ifdef HAVE_WINDOWS_H
21467#ifndef WIN32_LEAN_AND_MEAN
21468#define WIN32_LEAN_AND_MEAN
21469#endif
21470#include <windows.h>
21471#else
21472#ifdef HAVE_SYS_TYPES_H
21473#include <sys/types.h>
21474#endif
21475#endif
21476#ifndef LDAP_DEPRECATED
21477#define LDAP_DEPRECATED 1
21478#endif
21479#ifdef NEED_LBER_H
21480#include <lber.h>
21481#endif
21482#ifdef HAVE_LDAP_H
21483#include <ldap.h>
21484#endif
21485#include <ldap_ssl.h>
21486
21487int main (void)
21488{
21489
21490 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21491
21492 ;
21493 return 0;
21494}
21495
21496_ACEOF
21497if ac_fn_c_try_compile "$LINENO"; then :
21498
21499 curl_cv_header_ldap_ssl_h="yes"
21500
21501else
21502
21503 curl_cv_header_ldap_ssl_h="no"
21504
21505fi
21506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21507
21508fi
21509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21510$as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21511 case "$curl_cv_header_ldap_ssl_h" in
21512 yes)
21513
21514cat >>confdefs.h <<_ACEOF
21515#define HAVE_LDAP_SSL_H 1
21516_ACEOF
21517
21518 ;;
21519 esac
21520
21521
21522 if test -z "$LDAPLIBNAME" ; then
21523 if test "$curl_cv_native_windows" = "yes"; then
21524 LDAPLIBNAME="wldap32"
21525 LBERLIBNAME="no"
21526 fi
21527 fi
21528
21529 if test "$LDAPLIBNAME" ; then
21530 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21532$as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21533if eval \${$as_ac_Lib+:} false; then :
21534 $as_echo_n "(cached) " >&6
21535else
21536 ac_check_lib_save_LIBS=$LIBS
21537LIBS="-l"$LDAPLIBNAME" $LIBS"
21538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21539/* end confdefs.h. */
21540
21541
21542#ifdef __cplusplus
21543extern "C"
21544#endif
21545char ldap_init ();
21546int main (void)
21547{
21548return ldap_init ();
21549 ;
21550 return 0;
21551}
21552_ACEOF
21553if ac_fn_c_try_link "$LINENO"; then :
21554 eval "$as_ac_Lib=yes"
21555else
21556 eval "$as_ac_Lib=no"
21557fi
21558rm -f core conftest.err conftest.$ac_objext \
21559 conftest$ac_exeext conftest.$ac_ext
21560LIBS=$ac_check_lib_save_LIBS
21561fi
21562eval ac_res=\$$as_ac_Lib
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21564$as_echo "$ac_res" >&6; }
21565if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21566 cat >>confdefs.h <<_ACEOF
21567#define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21568_ACEOF
21569
21570 LIBS="-l"$LDAPLIBNAME" $LIBS"
21571
21572else
21573
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21575$as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21576
21577$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21578
21579 CURL_DISABLE_LDAP=1
21580
21581
21582$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21583
21584 CURL_DISABLE_LDAPS=1
21585
21586fi
21587
21588 else
21589
21590 #
21591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21592$as_echo_n "checking for LDAP libraries... " >&6; }
21593 #
21594 u_libs=""
21595 #
21596
21597 #
21598 curl_cv_save_LIBS="$LIBS"
21599 curl_cv_ldap_LIBS="unknown"
21600 #
21601 for x_nlibs in '' "$u_libs" \
21602 '-lldap' \
21603 '-lldap -llber' \
21604 '-llber -lldap' \
21605 '-lldapssl -lldapx -lldapsdk' \
21606 '-lldapsdk -lldapx -lldapssl' ; do
21607 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21608 if test -z "$x_nlibs"; then
21609 LIBS="$curl_cv_save_LIBS"
21610 else
21611 LIBS="$x_nlibs $curl_cv_save_LIBS"
21612 fi
21613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614/* end confdefs.h. */
21615
21616
21617#undef inline
21618#ifdef HAVE_WINDOWS_H
21619#ifndef WIN32_LEAN_AND_MEAN
21620#define WIN32_LEAN_AND_MEAN
21621#endif
21622#include <windows.h>
21623#else
21624#ifdef HAVE_SYS_TYPES_H
21625#include <sys/types.h>
21626#endif
21627#endif
21628#ifndef NULL
21629#define NULL (void *)0
21630#endif
21631#ifndef LDAP_DEPRECATED
21632#define LDAP_DEPRECATED 1
21633#endif
21634#ifdef NEED_LBER_H
21635#include <lber.h>
21636#endif
21637#ifdef HAVE_LDAP_H
21638#include <ldap.h>
21639#endif
21640
21641int main (void)
21642{
21643
21644 BerValue *bvp = NULL;
21645 BerElement *bep = ber_init(bvp);
21646 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21647 int res = ldap_unbind(ldp);
21648 ber_free(bep, 1);
21649
21650 ;
21651 return 0;
21652}
21653
21654_ACEOF
21655if ac_fn_c_try_link "$LINENO"; then :
21656
21657 curl_cv_ldap_LIBS="$x_nlibs"
21658
21659fi
21660rm -f core conftest.err conftest.$ac_objext \
21661 conftest$ac_exeext conftest.$ac_ext
21662 fi
21663 done
21664 #
21665 LIBS="$curl_cv_save_LIBS"
21666 #
21667 case X-"$curl_cv_ldap_LIBS" in
21668 X-unknown)
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21670$as_echo "cannot find LDAP libraries" >&6; }
21671 ;;
21672 X-)
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21674$as_echo "no additional lib required" >&6; }
21675 ;;
21676 *)
21677 if test -z "$curl_cv_save_LIBS"; then
21678 LIBS="$curl_cv_ldap_LIBS"
21679 else
21680 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21681 fi
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21683$as_echo "$curl_cv_ldap_LIBS" >&6; }
21684 ;;
21685 esac
21686 #
21687
21688 case X-"$curl_cv_ldap_LIBS" in
21689 X-unknown)
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21691$as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21692
21693$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21694
21695 CURL_DISABLE_LDAP=1
21696
21697
21698$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21699
21700 CURL_DISABLE_LDAPS=1
21701
21702 ;;
21703 esac
21704 fi
21705fi
21706
21707if test x$CURL_DISABLE_LDAP != x1 ; then
21708
21709 if test "$LBERLIBNAME" ; then
21710 if test "$LBERLIBNAME" != "no" ; then
21711 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21713$as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21714if eval \${$as_ac_Lib+:} false; then :
21715 $as_echo_n "(cached) " >&6
21716else
21717 ac_check_lib_save_LIBS=$LIBS
21718LIBS="-l"$LBERLIBNAME" $LIBS"
21719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21720/* end confdefs.h. */
21721
21722
21723#ifdef __cplusplus
21724extern "C"
21725#endif
21726char ber_free ();
21727int main (void)
21728{
21729return ber_free ();
21730 ;
21731 return 0;
21732}
21733_ACEOF
21734if ac_fn_c_try_link "$LINENO"; then :
21735 eval "$as_ac_Lib=yes"
21736else
21737 eval "$as_ac_Lib=no"
21738fi
21739rm -f core conftest.err conftest.$ac_objext \
21740 conftest$ac_exeext conftest.$ac_ext
21741LIBS=$ac_check_lib_save_LIBS
21742fi
21743eval ac_res=\$$as_ac_Lib
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21745$as_echo "$ac_res" >&6; }
21746if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21747 cat >>confdefs.h <<_ACEOF
21748#define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21749_ACEOF
21750
21751 LIBS="-l"$LBERLIBNAME" $LIBS"
21752
21753else
21754
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21756$as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21757
21758$as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21759
21760 CURL_DISABLE_LDAP=1
21761
21762
21763$as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21764
21765 CURL_DISABLE_LDAPS=1
21766
21767fi
21768
21769 fi
21770 fi
21771fi
21772
21773if test x$CURL_DISABLE_LDAP != x1 ; then
21774 for ac_func in ldap_url_parse ldap_init_fd
21775do :
21776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21777ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21778if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21779 cat >>confdefs.h <<_ACEOF
21780#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21781_ACEOF
21782
21783fi
21784done
21785
21786
21787 if test "$LDAPLIBNAME" = "wldap32"; then
21788 curl_ldap_msg="enabled (winldap)"
21789
21790$as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21791
21792 else
21793 curl_ldap_msg="enabled (OpenLDAP)"
21794 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21795
21796$as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21797
21798 USE_OPENLDAP=1
21799
21800 fi
21801 fi
21802fi
21803
21804if test x$CURL_DISABLE_LDAPS != x1 ; then
21805 curl_ldaps_msg="enabled"
21806fi
21807
21808
21809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21810$as_echo_n "checking whether to enable IPv6... " >&6; }
21811# Check whether --enable-ipv6 was given.
21812if test "${enable_ipv6+set}" = set; then :
21813 enableval=$enable_ipv6; case "$enableval" in
21814 no)
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21816$as_echo "no" >&6; }
21817 ipv6=no
21818 ;;
21819 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21820$as_echo "yes" >&6; }
21821 ipv6=yes
21822 ;;
21823 esac
21824else
21825 if test "$cross_compiling" = yes; then :
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21827$as_echo "yes" >&6; }
21828 ipv6=yes
21829
21830else
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832/* end confdefs.h. */
21833 /* is AF_INET6 available? */
21834#include <sys/types.h>
21835#ifdef HAVE_WINSOCK2_H
21836#include <winsock2.h>
21837#else
21838#include <sys/socket.h>
21839#endif
21840#include <stdlib.h> /* for exit() */
21841main()
21842{
21843 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21844 exit(1);
21845 else
21846 exit(0);
21847}
21848
21849_ACEOF
21850if ac_fn_c_try_run "$LINENO"; then :
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21852$as_echo "yes" >&6; }
21853 ipv6=yes
21854else
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21856$as_echo "no" >&6; }
21857 ipv6=no
21858fi
21859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21860 conftest.$ac_objext conftest.beam conftest.$ac_ext
21861fi
21862
21863fi
21864
21865
21866if test "$ipv6" = "yes"; then
21867 curl_ipv6_msg="enabled"
21868fi
21869
21870# Check if struct sockaddr_in6 have sin6_scope_id member
21871if test "$ipv6" = yes; then
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21873$as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21875/* end confdefs.h. */
21876
21877#include <sys/types.h>
21878#ifdef HAVE_WINSOCK2_H
21879#include <winsock2.h>
21880#include <ws2tcpip.h>
21881#else
21882#include <netinet/in.h>
Elliott Hughes0128fe42018-02-27 14:57:55 -080021883#if defined (__TANDEM)
21884# include <netinet/in6.h>
21885#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070021886#endif
21887int main (void)
21888{
21889struct sockaddr_in6 s; s.sin6_scope_id = 0;
21890 ;
21891 return 0;
21892}
21893_ACEOF
21894if ac_fn_c_try_compile "$LINENO"; then :
21895 have_sin6_scope_id=yes
21896fi
21897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 if test "$have_sin6_scope_id" = yes; then
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21900$as_echo "yes" >&6; }
21901
21902$as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21903
21904 else
21905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21906$as_echo "no" >&6; }
21907 fi
21908fi
21909
21910
21911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21912$as_echo_n "checking if argv can be written to... " >&6; }
Elliott Hughes82be86d2017-09-20 17:00:17 -070021913
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021914
21915 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070021916 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21917 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021918 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021919 curl_cv_writable_argv=cross
21920
21921else
21922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21923/* end confdefs.h. */
21924
Elliott Hughes82be86d2017-09-20 17:00:17 -070021925int main(int argc, char ** argv) {
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021926 argv00 = ' ';
21927 return (argv00 == ' ')?0:1;
Elliott Hughes82be86d2017-09-20 17:00:17 -070021928}
21929
Elliott Hughes82be86d2017-09-20 17:00:17 -070021930_ACEOF
21931if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070021932 curl_cv_writable_argv=yes
21933
21934else
Elliott Hughes82be86d2017-09-20 17:00:17 -070021935 curl_cv_writable_argv=no
21936
21937fi
21938rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21939 conftest.$ac_objext conftest.beam conftest.$ac_ext
21940fi
21941
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070021942 LD_LIBRARY_PATH=$old # restore
21943
Elliott Hughes82be86d2017-09-20 17:00:17 -070021944case $curl_cv_writable_argv in
21945yes)
21946
21947$as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21950$as_echo "yes" >&6; }
21951 ;;
21952no)
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954$as_echo "no" >&6; }
21955 ;;
21956*)
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21958$as_echo "no" >&6; }
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21960$as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21961 ;;
21962esac
21963
21964
21965
21966GSSAPI_ROOT="/usr"
21967
21968# Check whether --with-gssapi-includes was given.
21969if test "${with_gssapi_includes+set}" = set; then :
21970 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21971 want_gss="yes"
21972
21973fi
21974
21975
21976
21977# Check whether --with-gssapi-libs was given.
21978if test "${with_gssapi_libs+set}" = set; then :
21979 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21980 want_gss="yes"
21981
21982fi
21983
21984
21985
21986# Check whether --with-gssapi was given.
21987if test "${with_gssapi+set}" = set; then :
21988 withval=$with_gssapi;
21989 GSSAPI_ROOT="$withval"
21990 if test x"$GSSAPI_ROOT" != xno; then
21991 want_gss="yes"
21992 if test x"$GSSAPI_ROOT" = xyes; then
21993 GSSAPI_ROOT="/usr"
21994 fi
21995 fi
21996
21997fi
21998
21999
22000: ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22001
22002save_CPPFLAGS="$CPPFLAGS"
22003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22004$as_echo_n "checking if GSS-API support is requested... " >&6; }
22005if test x"$want_gss" = xyes; then
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22007$as_echo "yes" >&6; }
22008
22009 if test -z "$GSSAPI_INCS"; then
22010 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22011 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22012 elif test -f "$KRB5CONFIG"; then
22013 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22014 elif test "$GSSAPI_ROOT" != "yes"; then
22015 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22016 fi
22017 fi
22018
22019 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22020
22021 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22022if test "x$ac_cv_header_gss_h" = xyes; then :
22023
22024
22025$as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22026
22027 gnu_gss=yes
22028
22029else
22030
22031 for ac_header in gssapi/gssapi.h
22032do :
22033 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22034if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22035 cat >>confdefs.h <<_ACEOF
22036#define HAVE_GSSAPI_GSSAPI_H 1
22037_ACEOF
22038
22039else
22040 not_mit=1
22041fi
22042
22043done
22044
22045 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22046do :
22047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22048ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22049$ac_includes_default
22050#ifdef HAVE_GSSAPI_GSSAPI_H
22051#include <gssapi/gssapi.h>
22052#endif
22053
22054"
22055if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22056 cat >>confdefs.h <<_ACEOF
22057#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22058_ACEOF
22059
22060else
22061 not_mit=1
22062fi
22063
22064done
22065
22066 if test "x$not_mit" = "x1"; then
22067 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22068if test "x$ac_cv_header_gssapi_h" = xyes; then :
22069
22070
22071$as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22072
22073
22074else
22075
22076 want_gss=no
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22078$as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22079
22080
22081fi
22082
22083
22084 else
22085
22086$as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22087
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22089$as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22091/* end confdefs.h. */
22092
22093
22094#include <gssapi/gssapi.h>
22095#include <gssapi/gssapi_generic.h>
22096#include <gssapi/gssapi_krb5.h>
22097
22098int main (void)
22099{
22100
22101 gss_import_name(
22102 (OM_uint32 *)0,
22103 (gss_buffer_t)0,
22104 GSS_C_NT_HOSTBASED_SERVICE,
22105 (gss_name_t *)0);
22106
22107 ;
22108 return 0;
22109}
22110
22111_ACEOF
22112if ac_fn_c_try_compile "$LINENO"; then :
22113
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22115$as_echo "yes" >&6; }
22116
22117else
22118
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22120$as_echo "no" >&6; }
22121
22122$as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22123
22124
22125fi
22126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 fi
22128
22129
22130fi
22131
22132
22133else
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22135$as_echo "no" >&6; }
22136fi
22137if test x"$want_gss" = xyes; then
22138
22139$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22140
22141 HAVE_GSSAPI=1
22142 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22143
22144 if test -n "$gnu_gss"; then
22145 curl_gss_msg="enabled (GNU GSS)"
22146 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22147 LIBS="-lgss $LIBS"
22148 elif test -z "$GSSAPI_LIB_DIR"; then
22149 case $host in
22150 *-*-darwin*)
22151 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22152 ;;
22153 *)
22154 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22155 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22156 LIBS="$gss_libs $LIBS"
22157 elif test -f "$KRB5CONFIG"; then
22158 gss_libs=`$KRB5CONFIG --libs gssapi`
22159 LIBS="$gss_libs $LIBS"
22160 else
22161 case $host in
22162 *-hp-hpux*)
22163 gss_libname="gss"
22164 ;;
22165 *)
22166 gss_libname="gssapi"
22167 ;;
22168 esac
22169
22170 if test "$GSSAPI_ROOT" != "yes"; then
22171 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22172 LIBS="-l$gss_libname $LIBS"
22173 else
22174 LIBS="-l$gss_libname $LIBS"
22175 fi
22176 fi
22177 ;;
22178 esac
22179 else
22180 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22181 case $host in
22182 *-hp-hpux*)
22183 LIBS="-lgss $LIBS"
22184 ;;
22185 *)
22186 LIBS="-lgssapi $LIBS"
22187 ;;
22188 esac
22189 fi
22190else
22191 CPPFLAGS="$save_CPPFLAGS"
22192fi
22193
Alex Deymo486467e2017-12-19 19:04:07 +010022194build_libstubgss=no
22195if test x"$want_gss" = "xyes"; then
22196 build_libstubgss=yes
22197fi
22198
22199 if test "x$build_libstubgss" = "xyes"; then
22200 BUILD_STUB_GSS_TRUE=
22201 BUILD_STUB_GSS_FALSE='#'
22202else
22203 BUILD_STUB_GSS_TRUE='#'
22204 BUILD_STUB_GSS_FALSE=
22205fi
22206
22207
22208
22209DEFAULT_SSL_BACKEND=no
22210VALID_DEFAULT_SSL_BACKEND=
22211
22212# Check whether --with-default-ssl-backend was given.
22213if test "${with_default_ssl_backend+set}" = set; then :
22214 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22215fi
22216
22217case "$DEFAULT_SSL_BACKEND" in
22218 no)
22219 ;;
22220 default|yes)
22221 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22222 ;;
22223 *)
22224
22225 VALID_DEFAULT_SSL_BACKEND=no
22226 ;;
22227esac
22228
22229
Elliott Hughes82be86d2017-09-20 17:00:17 -070022230
22231OPT_WINSSL=no
22232
22233# Check whether --with-winssl was given.
22234if test "${with_winssl+set}" = set; then :
22235 withval=$with_winssl; OPT_WINSSL=$withval
22236fi
22237
22238
22239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22240$as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022241if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22242 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070022243 if test "x$OPT_WINSSL" != "xno" &&
22244 test "x$curl_cv_native_windows" = "xyes"; then
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22246$as_echo "yes" >&6; }
22247
22248$as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22249
22250 USE_SCHANNEL=1
22251
Alex Deymo486467e2017-12-19 19:04:07 +010022252 ssl_msg="Windows-native"
22253 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022254 WINSSL_ENABLED=1
22255 # --with-winssl implies --enable-sspi
22256
22257$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22258
22259 USE_WINDOWS_SSPI=1
22260
22261 curl_sspi_msg="enabled"
22262 LIBS="-lcrypt32 $LIBS"
22263 else
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22265$as_echo "no" >&6; }
22266 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022267 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022268else
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22270$as_echo "no" >&6; }
22271fi
22272
22273OPT_DARWINSSL=no
22274
22275# Check whether --with-darwinssl was given.
22276if test "${with_darwinssl+set}" = set; then :
22277 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22278fi
22279
22280
22281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22282$as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010022283if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022284 if test "x$OPT_DARWINSSL" != "xno" &&
22285 test -d "/System/Library/Frameworks/Security.framework"; then
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22287$as_echo "yes" >&6; }
22288
22289$as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22290
22291 USE_DARWINSSL=1
22292
Alex Deymo486467e2017-12-19 19:04:07 +010022293 ssl_msg="Apple OS-native"
22294 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022295 DARWINSSL_ENABLED=1
22296 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22297 else
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22299$as_echo "no" >&6; }
22300 fi
Alex Deymo486467e2017-12-19 19:04:07 +010022301 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022302else
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22304$as_echo "no" >&6; }
22305fi
22306
22307
22308OPT_SSL=off
22309ca="no"
22310
22311# Check whether --with-ssl was given.
22312if test "${with_ssl+set}" = set; then :
22313 withval=$with_ssl; OPT_SSL=$withval
22314fi
22315
22316
Alex Deymo486467e2017-12-19 19:04:07 +010022317if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22318 test X"$OPT_SSL" != Xno; then
22319 ssl_msg=
22320
Elliott Hughes82be86d2017-09-20 17:00:17 -070022321 CLEANLDFLAGS="$LDFLAGS"
22322 CLEANCPPFLAGS="$CPPFLAGS"
22323 CLEANLIBS="$LIBS"
22324
22325 case $host in
22326 *-*-msys* | *-*-mingw*)
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22328$as_echo_n "checking for gdi32... " >&6; }
22329 my_ac_save_LIBS=$LIBS
22330 LIBS="-lgdi32 $LIBS"
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332/* end confdefs.h. */
22333#include <windef.h>
22334 #include <wingdi.h>
22335int main (void)
22336{
22337GdiFlush();
22338 ;
22339 return 0;
22340}
22341_ACEOF
22342if ac_fn_c_try_link "$LINENO"; then :
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22344$as_echo "yes" >&6; }
22345else
22346 LIBS=$my_ac_save_LIBS
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22348$as_echo "no" >&6; }
22349
22350fi
22351rm -f core conftest.err conftest.$ac_objext \
22352 conftest$ac_exeext conftest.$ac_ext
22353 ;;
22354 esac
22355
22356 case "$OPT_SSL" in
22357 yes)
22358 if test x$cross_compiling != xyes; then
22359 PKGTEST="yes"
22360 fi
22361 PREFIX_OPENSSL=/usr/local/ssl
22362 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22363 ;;
22364 off)
22365 if test x$cross_compiling != xyes; then
22366 PKGTEST="yes"
22367 fi
22368 PREFIX_OPENSSL=
22369 ;;
22370 *)
22371 PKGTEST="no"
22372 PREFIX_OPENSSL=$OPT_SSL
22373
22374 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022375 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070022376 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22377$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022378 PKGTEST="yes"
Elliott Hughes72d948d2018-08-03 14:37:21 -070022379 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22380 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070022381 fi
22382
22383 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22384 if test "$PREFIX_OPENSSL" != "/usr" ; then
22385 SSL_LDFLAGS="-L$LIB_OPENSSL"
22386 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22387 fi
22388 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22389 ;;
22390 esac
22391
22392 if test "$PKGTEST" = "yes"; then
22393
22394
22395 if test -n "$PKG_CONFIG"; then
22396 PKGCONFIG="$PKG_CONFIG"
22397 else
22398 if test -n "$ac_tool_prefix"; then
22399 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22400set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22402$as_echo_n "checking for $ac_word... " >&6; }
22403if ${ac_cv_path_PKGCONFIG+:} false; then :
22404 $as_echo_n "(cached) " >&6
22405else
22406 case $PKGCONFIG in
22407 [\\/]* | ?:[\\/]*)
22408 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22409 ;;
22410 *)
22411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22412as_dummy="$PATH:/usr/bin:/usr/local/bin"
22413for as_dir in $as_dummy
22414do
22415 IFS=$as_save_IFS
22416 test -z "$as_dir" && as_dir=.
22417 for ac_exec_ext in '' $ac_executable_extensions; do
22418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22419 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22421 break 2
22422 fi
22423done
22424 done
22425IFS=$as_save_IFS
22426
22427 ;;
22428esac
22429fi
22430PKGCONFIG=$ac_cv_path_PKGCONFIG
22431if test -n "$PKGCONFIG"; then
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22433$as_echo "$PKGCONFIG" >&6; }
22434else
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22436$as_echo "no" >&6; }
22437fi
22438
22439
22440fi
22441if test -z "$ac_cv_path_PKGCONFIG"; then
22442 ac_pt_PKGCONFIG=$PKGCONFIG
22443 # Extract the first word of "pkg-config", so it can be a program name with args.
22444set dummy pkg-config; ac_word=$2
22445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22446$as_echo_n "checking for $ac_word... " >&6; }
22447if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22448 $as_echo_n "(cached) " >&6
22449else
22450 case $ac_pt_PKGCONFIG in
22451 [\\/]* | ?:[\\/]*)
22452 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22453 ;;
22454 *)
22455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22456as_dummy="$PATH:/usr/bin:/usr/local/bin"
22457for as_dir in $as_dummy
22458do
22459 IFS=$as_save_IFS
22460 test -z "$as_dir" && as_dir=.
22461 for ac_exec_ext in '' $ac_executable_extensions; do
22462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22463 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22465 break 2
22466 fi
22467done
22468 done
22469IFS=$as_save_IFS
22470
22471 ;;
22472esac
22473fi
22474ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22475if test -n "$ac_pt_PKGCONFIG"; then
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22477$as_echo "$ac_pt_PKGCONFIG" >&6; }
22478else
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22480$as_echo "no" >&6; }
22481fi
22482
22483 if test "x$ac_pt_PKGCONFIG" = x; then
22484 PKGCONFIG="no"
22485 else
22486 case $cross_compiling:$ac_tool_warned in
22487yes:)
22488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22490ac_tool_warned=yes ;;
22491esac
22492 PKGCONFIG=$ac_pt_PKGCONFIG
22493 fi
22494else
22495 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22496fi
22497
22498 fi
22499
22500 if test "x$PKGCONFIG" != "xno"; then
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22502$as_echo_n "checking for openssl options with pkg-config... " >&6; }
22503 itexists=`
22504 if test -n "$OPENSSL_PCDIR"; then
22505 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22506 export PKG_CONFIG_LIBDIR
22507 fi
22508 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22509
22510 if test -z "$itexists"; then
22511 PKGCONFIG="no"
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22513$as_echo "no" >&6; }
22514 else
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22516$as_echo "found" >&6; }
22517 fi
22518 fi
22519
22520
22521 if test "$PKGCONFIG" != "no" ; then
22522 SSL_LIBS=`
22523 if test -n "$OPENSSL_PCDIR"; then
22524 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22525 export PKG_CONFIG_LIBDIR
22526 fi
Haibo Huang21926d52019-01-08 14:27:10 -080022527 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
Elliott Hughes82be86d2017-09-20 17:00:17 -070022528
22529 SSL_LDFLAGS=`
22530 if test -n "$OPENSSL_PCDIR"; then
22531 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22532 export PKG_CONFIG_LIBDIR
22533 fi
22534 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22535
22536 SSL_CPPFLAGS=`
22537 if test -n "$OPENSSL_PCDIR"; then
22538 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22539 export PKG_CONFIG_LIBDIR
22540 fi
22541 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22542
22543
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22545$as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22547$as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22549$as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22550
22551 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22552
22553 LIBS="$SSL_LIBS $LIBS"
22554 fi
22555 fi
22556
22557 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22558 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22559
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22561$as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22562if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22563 $as_echo_n "(cached) " >&6
22564else
22565 ac_check_lib_save_LIBS=$LIBS
22566LIBS="-lcrypto $LIBS"
22567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568/* end confdefs.h. */
22569
22570
22571#ifdef __cplusplus
22572extern "C"
22573#endif
22574char HMAC_Update ();
22575int main (void)
22576{
22577return HMAC_Update ();
22578 ;
22579 return 0;
22580}
22581_ACEOF
22582if ac_fn_c_try_link "$LINENO"; then :
22583 ac_cv_lib_crypto_HMAC_Update=yes
22584else
22585 ac_cv_lib_crypto_HMAC_Update=no
22586fi
22587rm -f core conftest.err conftest.$ac_objext \
22588 conftest$ac_exeext conftest.$ac_ext
22589LIBS=$ac_check_lib_save_LIBS
22590fi
22591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22592$as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22593if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22594
22595 HAVECRYPTO="yes"
22596 LIBS="-lcrypto $LIBS"
22597
22598else
22599
22600 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070022601 if test "$PKGCONFIG" = "no" ; then
22602 # only set this if pkg-config wasn't used
22603 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22604 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070022605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22606$as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22607if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22608 $as_echo_n "(cached) " >&6
22609else
22610 ac_check_lib_save_LIBS=$LIBS
22611LIBS="-lcrypto $LIBS"
22612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22613/* end confdefs.h. */
22614
22615
22616#ifdef __cplusplus
22617extern "C"
22618#endif
22619char HMAC_Init_ex ();
22620int main (void)
22621{
22622return HMAC_Init_ex ();
22623 ;
22624 return 0;
22625}
22626_ACEOF
22627if ac_fn_c_try_link "$LINENO"; then :
22628 ac_cv_lib_crypto_HMAC_Init_ex=yes
22629else
22630 ac_cv_lib_crypto_HMAC_Init_ex=no
22631fi
22632rm -f core conftest.err conftest.$ac_objext \
22633 conftest$ac_exeext conftest.$ac_ext
22634LIBS=$ac_check_lib_save_LIBS
22635fi
22636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22637$as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22638if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22639
22640 HAVECRYPTO="yes"
22641 LIBS="-lcrypto $LIBS"
22642else
22643
22644
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22646$as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022647 LIBS="$CLEANLIBS -lcrypto -ldl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22649/* end confdefs.h. */
22650
22651 #include <openssl/err.h>
22652
22653int main (void)
22654{
22655
22656 ERR_clear_error();
22657
22658 ;
22659 return 0;
22660}
22661_ACEOF
22662if ac_fn_c_try_link "$LINENO"; then :
22663
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22665$as_echo "yes" >&6; }
22666 HAVECRYPTO="yes"
22667
22668else
22669
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22671$as_echo "no" >&6; }
22672
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22674$as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070022675 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22677/* end confdefs.h. */
22678
22679 #include <openssl/err.h>
22680
22681int main (void)
22682{
22683
22684 ERR_clear_error();
22685
22686 ;
22687 return 0;
22688}
22689_ACEOF
22690if ac_fn_c_try_link "$LINENO"; then :
22691
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22693$as_echo "yes" >&6; }
22694 HAVECRYPTO="yes"
22695
22696else
22697
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22699$as_echo "no" >&6; }
22700 LDFLAGS="$CLEANLDFLAGS"
22701 CPPFLAGS="$CLEANCPPFLAGS"
22702 LIBS="$CLEANLIBS"
22703
22704
22705fi
22706rm -f core conftest.err conftest.$ac_objext \
22707 conftest$ac_exeext conftest.$ac_ext
22708
22709
22710fi
22711rm -f core conftest.err conftest.$ac_objext \
22712 conftest$ac_exeext conftest.$ac_ext
22713
22714
22715fi
22716
22717
22718fi
22719
22720
22721 if test X"$HAVECRYPTO" = X"yes"; then
22722
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22724$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22725if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22726 $as_echo_n "(cached) " >&6
22727else
22728 ac_check_lib_save_LIBS=$LIBS
22729LIBS="-lssl $LIBS"
22730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731/* end confdefs.h. */
22732
22733
22734#ifdef __cplusplus
22735extern "C"
22736#endif
22737char SSL_connect ();
22738int main (void)
22739{
22740return SSL_connect ();
22741 ;
22742 return 0;
22743}
22744_ACEOF
22745if ac_fn_c_try_link "$LINENO"; then :
22746 ac_cv_lib_ssl_SSL_connect=yes
22747else
22748 ac_cv_lib_ssl_SSL_connect=no
22749fi
22750rm -f core conftest.err conftest.$ac_objext \
22751 conftest$ac_exeext conftest.$ac_ext
22752LIBS=$ac_check_lib_save_LIBS
22753fi
22754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22755$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22756if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22757 cat >>confdefs.h <<_ACEOF
22758#define HAVE_LIBSSL 1
22759_ACEOF
22760
22761 LIBS="-lssl $LIBS"
22762
22763fi
22764
22765
22766 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22768$as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22769 OLIBS=$LIBS
22770 LIBS="-lRSAglue -lrsaref $LIBS"
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22772$as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22773if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22774 $as_echo_n "(cached) " >&6
22775else
22776 ac_check_lib_save_LIBS=$LIBS
22777LIBS="-lssl $LIBS"
22778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22779/* end confdefs.h. */
22780
22781
22782#ifdef __cplusplus
22783extern "C"
22784#endif
22785char SSL_connect ();
22786int main (void)
22787{
22788return SSL_connect ();
22789 ;
22790 return 0;
22791}
22792_ACEOF
22793if ac_fn_c_try_link "$LINENO"; then :
22794 ac_cv_lib_ssl_SSL_connect=yes
22795else
22796 ac_cv_lib_ssl_SSL_connect=no
22797fi
22798rm -f core conftest.err conftest.$ac_objext \
22799 conftest$ac_exeext conftest.$ac_ext
22800LIBS=$ac_check_lib_save_LIBS
22801fi
22802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22803$as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22804if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22805 cat >>confdefs.h <<_ACEOF
22806#define HAVE_LIBSSL 1
22807_ACEOF
22808
22809 LIBS="-lssl $LIBS"
22810
22811fi
22812
22813 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22815$as_echo "no" >&6; }
22816 LIBS=$OLIBS
22817 else
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22819$as_echo "yes" >&6; }
22820 fi
22821
22822 else
22823
22824 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22825 openssl/pem.h openssl/ssl.h openssl/err.h
22826do :
22827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22828ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22829if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22830 cat >>confdefs.h <<_ACEOF
22831#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22832_ACEOF
Alex Deymo486467e2017-12-19 19:04:07 +010022833 ssl_msg="OpenSSL"
22834 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070022835 OPENSSL_ENABLED=1
22836
22837$as_echo "#define USE_OPENSSL 1" >>confdefs.h
22838
22839fi
22840
22841done
22842
22843
22844 if test $ac_cv_header_openssl_x509_h = no; then
22845 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22846do :
22847 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22848ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22849if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22850 cat >>confdefs.h <<_ACEOF
22851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22852_ACEOF
22853
22854fi
22855
22856done
22857
22858
22859 if test $ac_cv_header_x509_h = yes &&
22860 test $ac_cv_header_crypto_h = yes &&
22861 test $ac_cv_header_ssl_h = yes; then
Alex Deymo486467e2017-12-19 19:04:07 +010022862 ssl_msg="OpenSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022863 OPENSSL_ENABLED=1
22864 fi
22865 fi
22866 fi
22867
Alex Deymo486467e2017-12-19 19:04:07 +010022868 if test X"$OPENSSL_ENABLED" != X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022869 LIBS="$CLEANLIBS"
22870 fi
22871
22872 if test X"$OPT_SSL" != Xoff &&
22873 test "$OPENSSL_ENABLED" != "1"; then
22874 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22875 fi
22876 fi
22877
22878 if test X"$OPENSSL_ENABLED" = X"1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070022879
22880 for ac_func in RAND_egd \
Elliott Hughes82be86d2017-09-20 17:00:17 -070022881 SSL_get_shutdown \
22882 SSLv2_client_method
22883do :
22884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22886if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22887 cat >>confdefs.h <<_ACEOF
22888#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22889_ACEOF
22890
22891fi
22892done
22893
22894
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22896$as_echo_n "checking for BoringSSL... " >&6; }
22897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22898/* end confdefs.h. */
22899
22900
22901 #include <openssl/base.h>
22902
22903int main (void)
22904{
22905
22906 #ifndef OPENSSL_IS_BORINGSSL
22907 #error not boringssl
22908 #endif
22909
22910 ;
22911 return 0;
22912}
22913
22914_ACEOF
22915if ac_fn_c_try_compile "$LINENO"; then :
22916
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22918$as_echo "yes" >&6; }
22919
22920cat >>confdefs.h <<_ACEOF
22921#define HAVE_BORINGSSL 1
22922_ACEOF
22923
Alex Deymo486467e2017-12-19 19:04:07 +010022924 ssl_msg="BoringSSL"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022925
22926else
22927
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22929$as_echo "no" >&6; }
22930
22931fi
22932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22935$as_echo_n "checking for libressl... " >&6; }
22936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937/* end confdefs.h. */
22938
22939
22940#include <openssl/opensslv.h>
22941
22942int main (void)
22943{
22944
22945 int dummy = LIBRESSL_VERSION_NUMBER;
22946
22947 ;
22948 return 0;
22949}
22950
22951_ACEOF
22952if ac_fn_c_try_compile "$LINENO"; then :
22953
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22955$as_echo "yes" >&6; }
22956
22957cat >>confdefs.h <<_ACEOF
22958#define HAVE_LIBRESSL 1
22959_ACEOF
22960
Alex Deymo486467e2017-12-19 19:04:07 +010022961 ssl_msg="libressl"
Elliott Hughes82be86d2017-09-20 17:00:17 -070022962
22963else
22964
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22966$as_echo "no" >&6; }
22967
22968fi
22969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 fi
22971
22972 if test "$OPENSSL_ENABLED" = "1"; then
22973 if test -n "$LIB_OPENSSL"; then
22974 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070022975 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
22976 export CURL_LIBRARY_PATH
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
22978$as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070022979 fi
22980 fi
22981
22982 #
22983
22984 #
22985 tst_api="unknown"
22986 #
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22988$as_echo_n "checking for OpenSSL headers version... " >&6; }
22989
22990 OLDCPPFLAGS=$CPPFLAGS
22991 # CPPPFLAG comes from CURL_CPP_P
22992 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
22993 if test -z "$SED"; then
22994 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22995 fi
22996 if test -z "$GREP"; then
22997 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22998 fi
22999
23000 tmp_exp=""
23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23002/* end confdefs.h. */
23003
23004
23005# ifdef USE_OPENSSL
23006# include <openssl/crypto.h>
23007# else
23008# include <crypto.h>
23009# endif
23010
23011#ifdef OPENSSL_VERSION_NUMBER
23012CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23013#endif
23014
23015
23016_ACEOF
23017if ac_fn_c_try_cpp "$LINENO"; then :
23018
23019 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23020 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23021 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23022 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23023 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23024 tmp_exp=""
23025 fi
23026
23027fi
23028rm -f conftest.err conftest.i conftest.$ac_ext
23029 if test -z "$tmp_exp"; then
23030 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23031
23032 else
23033 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23034 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23035
23036 fi
23037 CPPFLAGS=$OLDCPPFLAGS
23038
23039 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23040 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23041 case "x$tst_verlen" in
23042 x6)
23043 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23044 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23045 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23046 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23047 ;;
23048 x11|x10)
23049 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23050 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23051 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23052 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23053 ;;
23054 *)
23055 tst_api="unknown"
23056 ;;
23057 esac
23058 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023059 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023060 0x110) tst_show="1.1.0" ;;
23061 0x102) tst_show="1.0.2" ;;
23062 0x101) tst_show="1.0.1" ;;
23063 0x100) tst_show="1.0.0" ;;
23064 0x099) tst_show="0.9.9" ;;
23065 0x098) tst_show="0.9.8" ;;
23066 0x097) tst_show="0.9.7" ;;
23067 0x096) tst_show="0.9.6" ;;
23068 0x095) tst_show="0.9.5" ;;
23069 0x094) tst_show="0.9.4" ;;
23070 0x093) tst_show="0.9.3" ;;
23071 0x092) tst_show="0.9.2" ;;
23072 0x091) tst_show="0.9.1" ;;
23073 *) tst_show="unknown" ;;
23074 esac
23075 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23076 else
23077 tst_show="unknown"
23078 fi
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23080$as_echo "$tst_show" >&6; }
23081 #
23082 curl_openssl_api_headers=$tst_api
23083
23084
23085 #
23086 tst_api="unknown"
23087 #
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23089$as_echo_n "checking for OpenSSL library version... " >&6; }
23090 if test "$tst_api" = "unknown"; then
Elliott Hughescac39802018-04-27 16:19:43 -070023091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23092/* end confdefs.h. */
23093
23094
23095#define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23096#ifdef __STDC__
23097# include <limits.h>
23098#else
23099# include <assert.h>
23100#endif
23101#undef ERR_clear_last_mark
23102#ifdef __cplusplus
23103extern "C"
23104#endif
23105char ERR_clear_last_mark ();
23106#if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23107choke me
23108#endif
23109
23110int main (void)
23111{
23112return ERR_clear_last_mark ();
23113 ;
23114 return 0;
23115}
23116
23117_ACEOF
23118if ac_fn_c_try_link "$LINENO"; then :
23119
23120 tst_api="0x111"
23121
23122fi
23123rm -f core conftest.err conftest.$ac_objext \
23124 conftest$ac_exeext conftest.$ac_ext
23125 fi
23126 if test "$tst_api" = "unknown"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070023127 case $host in
23128 *-*-vms*)
23129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23130/* end confdefs.h. */
23131
23132
23133#define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23134#ifdef __STDC__
23135# include <limits.h>
23136#else
23137# include <assert.h>
23138#endif
23139#undef SSL_CTX_set_not_resumbl_sess_cb
23140#ifdef __cplusplus
23141extern "C"
23142#endif
23143char SSL_CTX_set_not_resumbl_sess_cb ();
23144#if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23145choke me
23146#endif
23147
23148int main (void)
23149{
23150return SSL_CTX_set_not_resumbl_sess_cb ();
23151 ;
23152 return 0;
23153}
23154
23155_ACEOF
23156if ac_fn_c_try_link "$LINENO"; then :
23157
23158 tst_api="0x110"
23159
23160fi
23161rm -f core conftest.err conftest.$ac_objext \
23162 conftest$ac_exeext conftest.$ac_ext
23163 ;;
23164 *)
23165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166/* end confdefs.h. */
23167
23168
23169#define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23170#ifdef __STDC__
23171# include <limits.h>
23172#else
23173# include <assert.h>
23174#endif
23175#undef SSL_CTX_set_not_resumable_session_callback
23176#ifdef __cplusplus
23177extern "C"
23178#endif
23179char SSL_CTX_set_not_resumable_session_callback ();
23180#if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23181choke me
23182#endif
23183
23184int main (void)
23185{
23186return SSL_CTX_set_not_resumable_session_callback ();
23187 ;
23188 return 0;
23189}
23190
23191_ACEOF
23192if ac_fn_c_try_link "$LINENO"; then :
23193
23194 tst_api="0x110"
23195
23196fi
23197rm -f core conftest.err conftest.$ac_objext \
23198 conftest$ac_exeext conftest.$ac_ext
23199 ;;
23200 esac
23201 fi
23202 if test "$tst_api" = "unknown"; then
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204/* end confdefs.h. */
23205
23206
23207#define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23208#ifdef __STDC__
23209# include <limits.h>
23210#else
23211# include <assert.h>
23212#endif
23213#undef SSL_CONF_CTX_new
23214#ifdef __cplusplus
23215extern "C"
23216#endif
23217char SSL_CONF_CTX_new ();
23218#if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23219choke me
23220#endif
23221
23222int main (void)
23223{
23224return SSL_CONF_CTX_new ();
23225 ;
23226 return 0;
23227}
23228
23229_ACEOF
23230if ac_fn_c_try_link "$LINENO"; then :
23231
23232 tst_api="0x102"
23233
23234fi
23235rm -f core conftest.err conftest.$ac_objext \
23236 conftest$ac_exeext conftest.$ac_ext
23237 fi
23238 if test "$tst_api" = "unknown"; then
23239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23240/* end confdefs.h. */
23241
23242
23243#define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23244#ifdef __STDC__
23245# include <limits.h>
23246#else
23247# include <assert.h>
23248#endif
23249#undef SSL_renegotiate_abbreviated
23250#ifdef __cplusplus
23251extern "C"
23252#endif
23253char SSL_renegotiate_abbreviated ();
23254#if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23255choke me
23256#endif
23257
23258int main (void)
23259{
23260return SSL_renegotiate_abbreviated ();
23261 ;
23262 return 0;
23263}
23264
23265_ACEOF
23266if ac_fn_c_try_link "$LINENO"; then :
23267
23268 tst_api="0x101"
23269
23270fi
23271rm -f core conftest.err conftest.$ac_objext \
23272 conftest$ac_exeext conftest.$ac_ext
23273 fi
23274 if test "$tst_api" = "unknown"; then
23275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23276/* end confdefs.h. */
23277
23278
23279#define OBJ_add_sigid innocuous_OBJ_add_sigid
23280#ifdef __STDC__
23281# include <limits.h>
23282#else
23283# include <assert.h>
23284#endif
23285#undef OBJ_add_sigid
23286#ifdef __cplusplus
23287extern "C"
23288#endif
23289char OBJ_add_sigid ();
23290#if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23291choke me
23292#endif
23293
23294int main (void)
23295{
23296return OBJ_add_sigid ();
23297 ;
23298 return 0;
23299}
23300
23301_ACEOF
23302if ac_fn_c_try_link "$LINENO"; then :
23303
23304 tst_api="0x100"
23305
23306fi
23307rm -f core conftest.err conftest.$ac_objext \
23308 conftest$ac_exeext conftest.$ac_ext
23309 fi
23310 if test "$tst_api" = "unknown"; then
23311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23312/* end confdefs.h. */
23313
23314
23315#define ERR_set_mark innocuous_ERR_set_mark
23316#ifdef __STDC__
23317# include <limits.h>
23318#else
23319# include <assert.h>
23320#endif
23321#undef ERR_set_mark
23322#ifdef __cplusplus
23323extern "C"
23324#endif
23325char ERR_set_mark ();
23326#if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23327choke me
23328#endif
23329
23330int main (void)
23331{
23332return ERR_set_mark ();
23333 ;
23334 return 0;
23335}
23336
23337_ACEOF
23338if ac_fn_c_try_link "$LINENO"; then :
23339
23340 tst_api="0x098"
23341
23342fi
23343rm -f core conftest.err conftest.$ac_objext \
23344 conftest$ac_exeext conftest.$ac_ext
23345 fi
23346 if test "$tst_api" = "unknown"; then
23347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348/* end confdefs.h. */
23349
23350
23351#define ERR_peek_last_error innocuous_ERR_peek_last_error
23352#ifdef __STDC__
23353# include <limits.h>
23354#else
23355# include <assert.h>
23356#endif
23357#undef ERR_peek_last_error
23358#ifdef __cplusplus
23359extern "C"
23360#endif
23361char ERR_peek_last_error ();
23362#if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23363choke me
23364#endif
23365
23366int main (void)
23367{
23368return ERR_peek_last_error ();
23369 ;
23370 return 0;
23371}
23372
23373_ACEOF
23374if ac_fn_c_try_link "$LINENO"; then :
23375
23376 tst_api="0x097"
23377
23378fi
23379rm -f core conftest.err conftest.$ac_objext \
23380 conftest$ac_exeext conftest.$ac_ext
23381 fi
23382 if test "$tst_api" = "unknown"; then
23383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23384/* end confdefs.h. */
23385
23386
23387#define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23388#ifdef __STDC__
23389# include <limits.h>
23390#else
23391# include <assert.h>
23392#endif
23393#undef c2i_ASN1_OBJECT
23394#ifdef __cplusplus
23395extern "C"
23396#endif
23397char c2i_ASN1_OBJECT ();
23398#if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23399choke me
23400#endif
23401
23402int main (void)
23403{
23404return c2i_ASN1_OBJECT ();
23405 ;
23406 return 0;
23407}
23408
23409_ACEOF
23410if ac_fn_c_try_link "$LINENO"; then :
23411
23412 tst_api="0x096"
23413
23414fi
23415rm -f core conftest.err conftest.$ac_objext \
23416 conftest$ac_exeext conftest.$ac_ext
23417 fi
23418 if test "$tst_api" = "unknown"; then
23419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23420/* end confdefs.h. */
23421
23422
23423#define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23424#ifdef __STDC__
23425# include <limits.h>
23426#else
23427# include <assert.h>
23428#endif
23429#undef SSL_CTX_set_purpose
23430#ifdef __cplusplus
23431extern "C"
23432#endif
23433char SSL_CTX_set_purpose ();
23434#if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23435choke me
23436#endif
23437
23438int main (void)
23439{
23440return SSL_CTX_set_purpose ();
23441 ;
23442 return 0;
23443}
23444
23445_ACEOF
23446if ac_fn_c_try_link "$LINENO"; then :
23447
23448 tst_api="0x095"
23449
23450fi
23451rm -f core conftest.err conftest.$ac_objext \
23452 conftest$ac_exeext conftest.$ac_ext
23453 fi
23454 if test "$tst_api" = "unknown"; then
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456/* end confdefs.h. */
23457
23458
23459#define OBJ_obj2txt innocuous_OBJ_obj2txt
23460#ifdef __STDC__
23461# include <limits.h>
23462#else
23463# include <assert.h>
23464#endif
23465#undef OBJ_obj2txt
23466#ifdef __cplusplus
23467extern "C"
23468#endif
23469char OBJ_obj2txt ();
23470#if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23471choke me
23472#endif
23473
23474int main (void)
23475{
23476return OBJ_obj2txt ();
23477 ;
23478 return 0;
23479}
23480
23481_ACEOF
23482if ac_fn_c_try_link "$LINENO"; then :
23483
23484 tst_api="0x094"
23485
23486fi
23487rm -f core conftest.err conftest.$ac_objext \
23488 conftest$ac_exeext conftest.$ac_ext
23489 fi
23490 if test "$tst_api" = "unknown"; then
23491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23492/* end confdefs.h. */
23493
23494
23495#define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23496#ifdef __STDC__
23497# include <limits.h>
23498#else
23499# include <assert.h>
23500#endif
23501#undef SSL_get_verify_depth
23502#ifdef __cplusplus
23503extern "C"
23504#endif
23505char SSL_get_verify_depth ();
23506#if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23507choke me
23508#endif
23509
23510int main (void)
23511{
23512return SSL_get_verify_depth ();
23513 ;
23514 return 0;
23515}
23516
23517_ACEOF
23518if ac_fn_c_try_link "$LINENO"; then :
23519
23520 tst_api="0x093"
23521
23522fi
23523rm -f core conftest.err conftest.$ac_objext \
23524 conftest$ac_exeext conftest.$ac_ext
23525 fi
23526 if test "$tst_api" = "unknown"; then
23527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528/* end confdefs.h. */
23529
23530
23531#define SSL_library_init innocuous_SSL_library_init
23532#ifdef __STDC__
23533# include <limits.h>
23534#else
23535# include <assert.h>
23536#endif
23537#undef SSL_library_init
23538#ifdef __cplusplus
23539extern "C"
23540#endif
23541char SSL_library_init ();
23542#if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23543choke me
23544#endif
23545
23546int main (void)
23547{
23548return SSL_library_init ();
23549 ;
23550 return 0;
23551}
23552
23553_ACEOF
23554if ac_fn_c_try_link "$LINENO"; then :
23555
23556 tst_api="0x092"
23557
23558fi
23559rm -f core conftest.err conftest.$ac_objext \
23560 conftest$ac_exeext conftest.$ac_ext
23561 fi
23562 if test "$tst_api" = "unknown"; then
23563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23564/* end confdefs.h. */
23565
23566
23567#define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23568#ifdef __STDC__
23569# include <limits.h>
23570#else
23571# include <assert.h>
23572#endif
23573#undef SSL_CTX_set_cipher_list
23574#ifdef __cplusplus
23575extern "C"
23576#endif
23577char SSL_CTX_set_cipher_list ();
23578#if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23579choke me
23580#endif
23581
23582int main (void)
23583{
23584return SSL_CTX_set_cipher_list ();
23585 ;
23586 return 0;
23587}
23588
23589_ACEOF
23590if ac_fn_c_try_link "$LINENO"; then :
23591
23592 tst_api="0x091"
23593
23594fi
23595rm -f core conftest.err conftest.$ac_objext \
23596 conftest$ac_exeext conftest.$ac_ext
23597 fi
23598 case $tst_api in
Elliott Hughescac39802018-04-27 16:19:43 -070023599 0x111) tst_show="1.1.1" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070023600 0x110) tst_show="1.1.0" ;;
23601 0x102) tst_show="1.0.2" ;;
23602 0x101) tst_show="1.0.1" ;;
23603 0x100) tst_show="1.0.0" ;;
23604 0x099) tst_show="0.9.9" ;;
23605 0x098) tst_show="0.9.8" ;;
23606 0x097) tst_show="0.9.7" ;;
23607 0x096) tst_show="0.9.6" ;;
23608 0x095) tst_show="0.9.5" ;;
23609 0x094) tst_show="0.9.4" ;;
23610 0x093) tst_show="0.9.3" ;;
23611 0x092) tst_show="0.9.2" ;;
23612 0x091) tst_show="0.9.1" ;;
23613 *) tst_show="unknown" ;;
23614 esac
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23616$as_echo "$tst_show" >&6; }
23617 #
23618 curl_openssl_api_library=$tst_api
23619
23620 #
23621 tst_match="yes"
23622 #
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23624$as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23625 if test "$curl_openssl_api_headers" = "unknown" ||
23626 test "$curl_openssl_api_library" = "unknown"; then
23627 tst_match="fail"
23628 tst_warns="Can not compare OpenSSL headers and library versions."
23629 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23630 tst_match="no"
23631 tst_warns="OpenSSL headers and library versions do not match."
23632 fi
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23634$as_echo "$tst_match" >&6; }
23635 if test "$tst_match" != "yes"; then
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23637$as_echo "$as_me: WARNING: $tst_warns" >&2;}
23638 fi
23639
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070023640 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070023641 fi
23642
Alex Deymo486467e2017-12-19 19:04:07 +010023643 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070023644fi
23645
23646
23647if test X"$OPENSSL_ENABLED" = X"1"; then
23648
23649# Check whether --with-egd-socket was given.
23650if test "${with_egd_socket+set}" = set; then :
23651 withval=$with_egd_socket; EGD_SOCKET="$withval"
23652
23653fi
23654
23655 if test -n "$EGD_SOCKET" ; then
23656
23657cat >>confdefs.h <<_ACEOF
23658#define EGD_SOCKET "$EGD_SOCKET"
23659_ACEOF
23660
23661 fi
23662
23663
23664# Check whether --with-random was given.
23665if test "${with_random+set}" = set; then :
23666 withval=$with_random; RANDOM_FILE="$withval"
23667else
23668
23669 if test x$cross_compiling != xyes; then
23670 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23672$as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23673if eval \${$as_ac_File+:} false; then :
23674 $as_echo_n "(cached) " >&6
23675else
23676 test "$cross_compiling" = yes &&
23677 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23678if test -r ""/dev/urandom""; then
23679 eval "$as_ac_File=yes"
23680else
23681 eval "$as_ac_File=no"
23682fi
23683fi
23684eval ac_res=\$$as_ac_File
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23686$as_echo "$ac_res" >&6; }
23687if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23688 RANDOM_FILE="/dev/urandom"
23689fi
23690
23691 else
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23693$as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23694 fi
23695
23696
23697fi
23698
23699 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23700
23701
23702cat >>confdefs.h <<_ACEOF
23703#define RANDOM_FILE "$RANDOM_FILE"
23704_ACEOF
23705
23706 fi
23707fi
23708
23709if test "$OPENSSL_ENABLED" = "1"; then
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23711$as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23712if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23713 $as_echo_n "(cached) " >&6
23714else
23715 ac_check_lib_save_LIBS=$LIBS
23716LIBS="-lcrypto $LIBS"
23717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718/* end confdefs.h. */
23719
23720
23721#ifdef __cplusplus
23722extern "C"
23723#endif
23724char SRP_Calc_client_key ();
23725int main (void)
23726{
23727return SRP_Calc_client_key ();
23728 ;
23729 return 0;
23730}
23731_ACEOF
23732if ac_fn_c_try_link "$LINENO"; then :
23733 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23734else
23735 ac_cv_lib_crypto_SRP_Calc_client_key=no
23736fi
23737rm -f core conftest.err conftest.$ac_objext \
23738 conftest$ac_exeext conftest.$ac_ext
23739LIBS=$ac_check_lib_save_LIBS
23740fi
23741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23742$as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23743if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23744
23745
23746$as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23747
23748 HAVE_OPENSSL_SRP=1
23749
23750
23751fi
23752
23753fi
23754
Elliott Hughesa93fb052018-12-12 14:22:48 -080023755if test X"$OPENSSL_ENABLED" = X"1"; then
23756# Check whether --enable-openssl-auto-load-config was given.
23757if test "${enable_openssl_auto_load_config+set}" = set; then :
23758 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23760$as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23761
23762$as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23763
23764 fi
23765
23766fi
23767
23768fi
23769
Elliott Hughes82be86d2017-09-20 17:00:17 -070023770
23771OPT_GNUTLS=no
23772
23773
23774# Check whether --with-gnutls was given.
23775if test "${with_gnutls+set}" = set; then :
23776 withval=$with_gnutls; OPT_GNUTLS=$withval
23777fi
23778
23779
Alex Deymo486467e2017-12-19 19:04:07 +010023780if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23781 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070023782
23783 if test X"$OPT_GNUTLS" != Xno; then
23784
23785 addld=""
23786 addlib=""
23787 gtlslib=""
23788 version=""
23789 addcflags=""
23790
23791 if test "x$OPT_GNUTLS" = "xyes"; then
23792
23793 if test -n "$PKG_CONFIG"; then
23794 PKGCONFIG="$PKG_CONFIG"
23795 else
23796 if test -n "$ac_tool_prefix"; then
23797 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23798set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23800$as_echo_n "checking for $ac_word... " >&6; }
23801if ${ac_cv_path_PKGCONFIG+:} false; then :
23802 $as_echo_n "(cached) " >&6
23803else
23804 case $PKGCONFIG in
23805 [\\/]* | ?:[\\/]*)
23806 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23807 ;;
23808 *)
23809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23810as_dummy="$PATH:/usr/bin:/usr/local/bin"
23811for as_dir in $as_dummy
23812do
23813 IFS=$as_save_IFS
23814 test -z "$as_dir" && as_dir=.
23815 for ac_exec_ext in '' $ac_executable_extensions; do
23816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23817 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23819 break 2
23820 fi
23821done
23822 done
23823IFS=$as_save_IFS
23824
23825 ;;
23826esac
23827fi
23828PKGCONFIG=$ac_cv_path_PKGCONFIG
23829if test -n "$PKGCONFIG"; then
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23831$as_echo "$PKGCONFIG" >&6; }
23832else
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23834$as_echo "no" >&6; }
23835fi
23836
23837
23838fi
23839if test -z "$ac_cv_path_PKGCONFIG"; then
23840 ac_pt_PKGCONFIG=$PKGCONFIG
23841 # Extract the first word of "pkg-config", so it can be a program name with args.
23842set dummy pkg-config; ac_word=$2
23843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23844$as_echo_n "checking for $ac_word... " >&6; }
23845if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23846 $as_echo_n "(cached) " >&6
23847else
23848 case $ac_pt_PKGCONFIG in
23849 [\\/]* | ?:[\\/]*)
23850 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23851 ;;
23852 *)
23853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23854as_dummy="$PATH:/usr/bin:/usr/local/bin"
23855for as_dir in $as_dummy
23856do
23857 IFS=$as_save_IFS
23858 test -z "$as_dir" && as_dir=.
23859 for ac_exec_ext in '' $ac_executable_extensions; do
23860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23861 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23863 break 2
23864 fi
23865done
23866 done
23867IFS=$as_save_IFS
23868
23869 ;;
23870esac
23871fi
23872ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23873if test -n "$ac_pt_PKGCONFIG"; then
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23875$as_echo "$ac_pt_PKGCONFIG" >&6; }
23876else
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23878$as_echo "no" >&6; }
23879fi
23880
23881 if test "x$ac_pt_PKGCONFIG" = x; then
23882 PKGCONFIG="no"
23883 else
23884 case $cross_compiling:$ac_tool_warned in
23885yes:)
23886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23888ac_tool_warned=yes ;;
23889esac
23890 PKGCONFIG=$ac_pt_PKGCONFIG
23891 fi
23892else
23893 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23894fi
23895
23896 fi
23897
23898 if test "x$PKGCONFIG" != "xno"; then
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23900$as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23901 itexists=`
23902 if test -n ""; then
23903 PKG_CONFIG_LIBDIR=""
23904 export PKG_CONFIG_LIBDIR
23905 fi
23906 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23907
23908 if test -z "$itexists"; then
23909 PKGCONFIG="no"
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23911$as_echo "no" >&6; }
23912 else
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23914$as_echo "found" >&6; }
23915 fi
23916 fi
23917
23918
23919 if test "$PKGCONFIG" != "no" ; then
23920 addlib=`$PKGCONFIG --libs-only-l gnutls`
23921 addld=`$PKGCONFIG --libs-only-L gnutls`
23922 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23923 version=`$PKGCONFIG --modversion gnutls`
23924 gtlslib=`echo $addld | $SED -e 's/-L//'`
23925 else
23926 check=`libgnutls-config --version 2>/dev/null`
23927 if test -n "$check"; then
23928 addlib=`libgnutls-config --libs`
23929 addcflags=`libgnutls-config --cflags`
23930 version=`libgnutls-config --version`
23931 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23932 fi
23933 fi
23934 else
23935 cfg=$OPT_GNUTLS/bin/libgnutls-config
23936 check=`$cfg --version 2>/dev/null`
23937 if test -n "$check"; then
23938 addlib=`$cfg --libs`
23939 addcflags=`$cfg --cflags`
23940 version=`$cfg --version`
23941 gtlslib=`$cfg --prefix`/lib$libsuff
23942 else
23943 addlib=-lgnutls
23944 addld=-L$OPT_GNUTLS/lib$libsuff
23945 addcflags=-I$OPT_GNUTLS/include
23946 version="" # we just don't know
23947 gtlslib=$OPT_GNUTLS/lib$libsuff
23948 fi
23949 fi
23950
23951 if test -z "$version"; then
23952 version="unknown"
23953 fi
23954
23955 if test -n "$addlib"; then
23956
23957 CLEANLIBS="$LIBS"
23958 CLEANCPPFLAGS="$CPPFLAGS"
23959 CLEANLDFLAGS="$LDFLAGS"
23960
23961 LIBS="$addlib $LIBS"
23962 LDFLAGS="$LDFLAGS $addld"
23963 if test "$addcflags" != "-I/usr/include"; then
23964 CPPFLAGS="$CPPFLAGS $addcflags"
23965 fi
23966
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
23968$as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
23969if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
23970 $as_echo_n "(cached) " >&6
23971else
23972 ac_check_lib_save_LIBS=$LIBS
23973LIBS="-lgnutls $LIBS"
23974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23975/* end confdefs.h. */
23976
23977
23978#ifdef __cplusplus
23979extern "C"
23980#endif
23981char gnutls_check_version ();
23982int main (void)
23983{
23984return gnutls_check_version ();
23985 ;
23986 return 0;
23987}
23988_ACEOF
23989if ac_fn_c_try_link "$LINENO"; then :
23990 ac_cv_lib_gnutls_gnutls_check_version=yes
23991else
23992 ac_cv_lib_gnutls_gnutls_check_version=no
23993fi
23994rm -f core conftest.err conftest.$ac_objext \
23995 conftest$ac_exeext conftest.$ac_ext
23996LIBS=$ac_check_lib_save_LIBS
23997fi
23998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
23999$as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24000if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24001
24002
24003$as_echo "#define USE_GNUTLS 1" >>confdefs.h
24004
24005 USE_GNUTLS=1
24006
24007 GNUTLS_ENABLED=1
24008 USE_GNUTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024009 ssl_msg="GnuTLS"
24010 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024011
24012else
24013
24014 LIBS="$CLEANLIBS"
24015 CPPFLAGS="$CLEANCPPFLAGS"
24016
24017fi
24018
24019
24020 if test "x$USE_GNUTLS" = "xyes"; then
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24022$as_echo "$as_me: detected GnuTLS version $version" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024023 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024024 if test -n "$gtlslib"; then
24025 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024026 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24027 export CURL_LIBRARY_PATH
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24029$as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024030 fi
24031 fi
24032 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24033do :
24034 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24035ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24036if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24037 cat >>confdefs.h <<_ACEOF
24038#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24039_ACEOF
24040
24041fi
24042done
24043
24044 fi
24045
24046 fi
24047
24048 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024049 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024050fi
24051
24052
24053if test "$GNUTLS_ENABLED" = "1"; then
24054 USE_GNUTLS_NETTLE=
24055 # First check if we can detect either crypto library via transitive linking
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24057$as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24058if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24059 $as_echo_n "(cached) " >&6
24060else
24061 ac_check_lib_save_LIBS=$LIBS
24062LIBS="-lgnutls $LIBS"
24063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064/* end confdefs.h. */
24065
24066
24067#ifdef __cplusplus
24068extern "C"
24069#endif
24070char nettle_MD5Init ();
24071int main (void)
24072{
24073return nettle_MD5Init ();
24074 ;
24075 return 0;
24076}
24077_ACEOF
24078if ac_fn_c_try_link "$LINENO"; then :
24079 ac_cv_lib_gnutls_nettle_MD5Init=yes
24080else
24081 ac_cv_lib_gnutls_nettle_MD5Init=no
24082fi
24083rm -f core conftest.err conftest.$ac_objext \
24084 conftest$ac_exeext conftest.$ac_ext
24085LIBS=$ac_check_lib_save_LIBS
24086fi
24087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24088$as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24089if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24090 USE_GNUTLS_NETTLE=1
24091fi
24092
24093 if test "$USE_GNUTLS_NETTLE" = ""; then
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24095$as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24096if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24097 $as_echo_n "(cached) " >&6
24098else
24099 ac_check_lib_save_LIBS=$LIBS
24100LIBS="-lgnutls $LIBS"
24101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102/* end confdefs.h. */
24103
24104
24105#ifdef __cplusplus
24106extern "C"
24107#endif
24108char gcry_control ();
24109int main (void)
24110{
24111return gcry_control ();
24112 ;
24113 return 0;
24114}
24115_ACEOF
24116if ac_fn_c_try_link "$LINENO"; then :
24117 ac_cv_lib_gnutls_gcry_control=yes
24118else
24119 ac_cv_lib_gnutls_gcry_control=no
24120fi
24121rm -f core conftest.err conftest.$ac_objext \
24122 conftest$ac_exeext conftest.$ac_ext
24123LIBS=$ac_check_lib_save_LIBS
24124fi
24125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24126$as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24127if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24128 USE_GNUTLS_NETTLE=0
24129fi
24130
24131 fi
24132 # If not, try linking directly to both of them to see if they are available
24133 if test "$USE_GNUTLS_NETTLE" = ""; then
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24135$as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24136if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24137 $as_echo_n "(cached) " >&6
24138else
24139 ac_check_lib_save_LIBS=$LIBS
24140LIBS="-lnettle $LIBS"
24141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24142/* end confdefs.h. */
24143
24144
24145#ifdef __cplusplus
24146extern "C"
24147#endif
24148char nettle_MD5Init ();
24149int main (void)
24150{
24151return nettle_MD5Init ();
24152 ;
24153 return 0;
24154}
24155_ACEOF
24156if ac_fn_c_try_link "$LINENO"; then :
24157 ac_cv_lib_nettle_nettle_MD5Init=yes
24158else
24159 ac_cv_lib_nettle_nettle_MD5Init=no
24160fi
24161rm -f core conftest.err conftest.$ac_objext \
24162 conftest$ac_exeext conftest.$ac_ext
24163LIBS=$ac_check_lib_save_LIBS
24164fi
24165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24166$as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24167if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24168 USE_GNUTLS_NETTLE=1
24169fi
24170
24171 fi
24172 if test "$USE_GNUTLS_NETTLE" = ""; then
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24174$as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24175if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24176 $as_echo_n "(cached) " >&6
24177else
24178 ac_check_lib_save_LIBS=$LIBS
24179LIBS="-lgcrypt $LIBS"
24180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24181/* end confdefs.h. */
24182
24183
24184#ifdef __cplusplus
24185extern "C"
24186#endif
24187char gcry_control ();
24188int main (void)
24189{
24190return gcry_control ();
24191 ;
24192 return 0;
24193}
24194_ACEOF
24195if ac_fn_c_try_link "$LINENO"; then :
24196 ac_cv_lib_gcrypt_gcry_control=yes
24197else
24198 ac_cv_lib_gcrypt_gcry_control=no
24199fi
24200rm -f core conftest.err conftest.$ac_objext \
24201 conftest$ac_exeext conftest.$ac_ext
24202LIBS=$ac_check_lib_save_LIBS
24203fi
24204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24205$as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24206if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24207 USE_GNUTLS_NETTLE=0
24208fi
24209
24210 fi
24211 if test "$USE_GNUTLS_NETTLE" = ""; then
24212 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24213 fi
24214 if test "$USE_GNUTLS_NETTLE" = "1"; then
24215
24216$as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24217
24218 USE_GNUTLS_NETTLE=1
24219
24220 LIBS="-lnettle $LIBS"
24221 else
24222 LIBS="-lgcrypt $LIBS"
24223 fi
24224fi
24225
24226if test "$GNUTLS_ENABLED" = "1"; then
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24228$as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24229if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24230 $as_echo_n "(cached) " >&6
24231else
24232 ac_check_lib_save_LIBS=$LIBS
24233LIBS="-lgnutls $LIBS"
24234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24235/* end confdefs.h. */
24236
24237
24238#ifdef __cplusplus
24239extern "C"
24240#endif
24241char gnutls_srp_verifier ();
24242int main (void)
24243{
24244return gnutls_srp_verifier ();
24245 ;
24246 return 0;
24247}
24248_ACEOF
24249if ac_fn_c_try_link "$LINENO"; then :
24250 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24251else
24252 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24253fi
24254rm -f core conftest.err conftest.$ac_objext \
24255 conftest$ac_exeext conftest.$ac_ext
24256LIBS=$ac_check_lib_save_LIBS
24257fi
24258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24259$as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24260if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24261
24262
24263$as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24264
24265 HAVE_GNUTLS_SRP=1
24266
24267
24268fi
24269
24270fi
24271
24272
24273OPT_POLARSSL=no
24274
24275_cppflags=$CPPFLAGS
24276_ldflags=$LDFLAGS
24277
24278# Check whether --with-polarssl was given.
24279if test "${with_polarssl+set}" = set; then :
24280 withval=$with_polarssl; OPT_POLARSSL=$withval
24281fi
24282
24283
Alex Deymo486467e2017-12-19 19:04:07 +010024284if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24285 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024286
24287 if test X"$OPT_POLARSSL" != Xno; then
24288
24289 if test "$OPT_POLARSSL" = "yes"; then
24290 OPT_POLARSSL=""
24291 fi
24292
24293 if test -z "$OPT_POLARSSL" ; then
24294
24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24296$as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24297if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24298 $as_echo_n "(cached) " >&6
24299else
24300 ac_check_lib_save_LIBS=$LIBS
24301LIBS="-lpolarssl $LIBS"
24302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303/* end confdefs.h. */
24304
24305
24306#ifdef __cplusplus
24307extern "C"
24308#endif
24309char havege_init ();
24310int main (void)
24311{
24312return havege_init ();
24313 ;
24314 return 0;
24315}
24316_ACEOF
24317if ac_fn_c_try_link "$LINENO"; then :
24318 ac_cv_lib_polarssl_havege_init=yes
24319else
24320 ac_cv_lib_polarssl_havege_init=no
24321fi
24322rm -f core conftest.err conftest.$ac_objext \
24323 conftest$ac_exeext conftest.$ac_ext
24324LIBS=$ac_check_lib_save_LIBS
24325fi
24326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24327$as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24328if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24329
24330
24331$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24332
24333 USE_POLARSSL=1
24334
24335 POLARSSL_ENABLED=1
24336 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024337 ssl_msg="PolarSSL"
24338 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024339
24340fi
24341
24342 fi
24343
24344 addld=""
24345 addlib=""
24346 addcflags=""
24347 polarssllib=""
24348
24349 if test "x$USE_POLARSSL" != "xyes"; then
24350 addld=-L$OPT_POLARSSL/lib$libsuff
24351 addcflags=-I$OPT_POLARSSL/include
24352 polarssllib=$OPT_POLARSSL/lib$libsuff
24353
24354 LDFLAGS="$LDFLAGS $addld"
24355 if test "$addcflags" != "-I/usr/include"; then
24356 CPPFLAGS="$CPPFLAGS $addcflags"
24357 fi
24358
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24360$as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24361if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24362 $as_echo_n "(cached) " >&6
24363else
24364 ac_check_lib_save_LIBS=$LIBS
24365LIBS="-lpolarssl $LIBS"
24366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24367/* end confdefs.h. */
24368
24369
24370#ifdef __cplusplus
24371extern "C"
24372#endif
24373char ssl_init ();
24374int main (void)
24375{
24376return ssl_init ();
24377 ;
24378 return 0;
24379}
24380_ACEOF
24381if ac_fn_c_try_link "$LINENO"; then :
24382 ac_cv_lib_polarssl_ssl_init=yes
24383else
24384 ac_cv_lib_polarssl_ssl_init=no
24385fi
24386rm -f core conftest.err conftest.$ac_objext \
24387 conftest$ac_exeext conftest.$ac_ext
24388LIBS=$ac_check_lib_save_LIBS
24389fi
24390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24391$as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24392if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24393
24394
24395$as_echo "#define USE_POLARSSL 1" >>confdefs.h
24396
24397 USE_POLARSSL=1
24398
24399 POLARSSL_ENABLED=1
24400 USE_POLARSSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024401 ssl_msg="PolarSSL"
24402 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024403
24404else
24405
24406 CPPFLAGS=$_cppflags
24407 LDFLAGS=$_ldflags
24408
24409fi
24410
24411 fi
24412
24413 if test "x$USE_POLARSSL" = "xyes"; then
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24415$as_echo "$as_me: detected PolarSSL" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024416 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024417 LIBS="-lpolarssl $LIBS"
24418
24419 if test -n "$polarssllib"; then
24420 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024421 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$polarssllib"
24422 export CURL_LIBRARY_PATH
24423 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to CURL_LIBRARY_PATH" >&5
24424$as_echo "$as_me: Added $polarssllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024425 fi
24426 fi
24427 fi
24428
24429 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024430 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024431fi
24432
24433
24434OPT_MBEDTLS=no
24435
24436_cppflags=$CPPFLAGS
24437_ldflags=$LDFLAGS
24438
24439# Check whether --with-mbedtls was given.
24440if test "${with_mbedtls+set}" = set; then :
24441 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24442fi
24443
24444
Alex Deymo486467e2017-12-19 19:04:07 +010024445if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24446 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024447
24448 if test X"$OPT_MBEDTLS" != Xno; then
24449
24450 if test "$OPT_MBEDTLS" = "yes"; then
24451 OPT_MBEDTLS=""
24452 fi
24453
24454 if test -z "$OPT_MBEDTLS" ; then
24455
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24457$as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24458if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24459 $as_echo_n "(cached) " >&6
24460else
24461 ac_check_lib_save_LIBS=$LIBS
24462LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24464/* end confdefs.h. */
24465
24466
24467#ifdef __cplusplus
24468extern "C"
24469#endif
24470char mbedtls_havege_init ();
24471int main (void)
24472{
24473return mbedtls_havege_init ();
24474 ;
24475 return 0;
24476}
24477_ACEOF
24478if ac_fn_c_try_link "$LINENO"; then :
24479 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24480else
24481 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24482fi
24483rm -f core conftest.err conftest.$ac_objext \
24484 conftest$ac_exeext conftest.$ac_ext
24485LIBS=$ac_check_lib_save_LIBS
24486fi
24487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24488$as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24489if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24490
24491
24492$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24493
24494 USE_MBEDTLS=1
24495
24496 MBEDTLS_ENABLED=1
24497 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024498 ssl_msg="mbedTLS"
24499 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024500
24501fi
24502
24503 fi
24504
24505 addld=""
24506 addlib=""
24507 addcflags=""
24508 mbedtlslib=""
24509
24510 if test "x$USE_MBEDTLS" != "xyes"; then
24511 addld=-L$OPT_MBEDTLS/lib$libsuff
24512 addcflags=-I$OPT_MBEDTLS/include
24513 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24514
24515 LDFLAGS="$LDFLAGS $addld"
24516 if test "$addcflags" != "-I/usr/include"; then
24517 CPPFLAGS="$CPPFLAGS $addcflags"
24518 fi
24519
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24521$as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24522if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24523 $as_echo_n "(cached) " >&6
24524else
24525 ac_check_lib_save_LIBS=$LIBS
24526LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24528/* end confdefs.h. */
24529
24530
24531#ifdef __cplusplus
24532extern "C"
24533#endif
24534char mbedtls_ssl_init ();
24535int main (void)
24536{
24537return mbedtls_ssl_init ();
24538 ;
24539 return 0;
24540}
24541_ACEOF
24542if ac_fn_c_try_link "$LINENO"; then :
24543 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24544else
24545 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24546fi
24547rm -f core conftest.err conftest.$ac_objext \
24548 conftest$ac_exeext conftest.$ac_ext
24549LIBS=$ac_check_lib_save_LIBS
24550fi
24551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24552$as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24553if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24554
24555
24556$as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24557
24558 USE_MBEDTLS=1
24559
24560 MBEDTLS_ENABLED=1
24561 USE_MBEDTLS="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024562 ssl_msg="mbedTLS"
24563 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024564
24565else
24566
24567 CPPFLAGS=$_cppflags
24568 LDFLAGS=$_ldflags
24569
24570fi
24571
24572 fi
24573
24574 if test "x$USE_MBEDTLS" = "xyes"; then
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24576$as_echo "$as_me: detected mbedTLS" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024577 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024578
24579 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24580
24581 if test -n "$mbedtlslib"; then
24582 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024583 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24584 export CURL_LIBRARY_PATH
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24586$as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024587 fi
24588 fi
24589 fi
24590
24591 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024592 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024593fi
24594
24595
24596OPT_CYASSL=no
24597
24598_cppflags=$CPPFLAGS
24599_ldflags=$LDFLAGS
24600
24601# Check whether --with-cyassl was given.
24602if test "${with_cyassl+set}" = set; then :
24603 withval=$with_cyassl; OPT_CYASSL=$withval
24604fi
24605
24606
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024607
24608# Check whether --with-wolfssl was given.
24609if test "${with_wolfssl+set}" = set; then :
24610 withval=$with_wolfssl; OPT_CYASSL=$withval
24611fi
24612
24613
Alex Deymo486467e2017-12-19 19:04:07 +010024614if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24615 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070024616
24617 if test X"$OPT_CYASSL" != Xno; then
24618
24619 if test "$OPT_CYASSL" = "yes"; then
24620 OPT_CYASSL=""
24621 fi
24622
24623
24624 cyassllibname=cyassl
24625
24626 if test -z "$OPT_CYASSL" ; then
24627
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24629$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24630if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24631 $as_echo_n "(cached) " >&6
24632else
24633 ac_check_lib_save_LIBS=$LIBS
24634LIBS="-lcyassl $LIBS"
24635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24636/* end confdefs.h. */
24637
24638
24639#ifdef __cplusplus
24640extern "C"
24641#endif
24642char CyaSSL_Init ();
24643int main (void)
24644{
24645return CyaSSL_Init ();
24646 ;
24647 return 0;
24648}
24649_ACEOF
24650if ac_fn_c_try_link "$LINENO"; then :
24651 ac_cv_lib_cyassl_CyaSSL_Init=yes
24652else
24653 ac_cv_lib_cyassl_CyaSSL_Init=no
24654fi
24655rm -f core conftest.err conftest.$ac_objext \
24656 conftest$ac_exeext conftest.$ac_ext
24657LIBS=$ac_check_lib_save_LIBS
24658fi
24659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24660$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24661if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24662
24663
24664$as_echo "#define USE_CYASSL 1" >>confdefs.h
24665
24666 USE_CYASSL=1
24667
24668 CYASSL_ENABLED=1
24669 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024670 ssl_msg="CyaSSL"
24671 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024672
24673fi
24674
24675 fi
24676
24677 addld=""
24678 addlib=""
24679 addcflags=""
24680 cyassllib=""
24681
24682 if test "x$USE_CYASSL" != "xyes"; then
24683 addld=-L$OPT_CYASSL/lib$libsuff
24684 addcflags=-I$OPT_CYASSL/include
24685 cyassllib=$OPT_CYASSL/lib$libsuff
24686
24687 LDFLAGS="$LDFLAGS $addld"
24688 if test "$addcflags" != "-I/usr/include"; then
24689 CPPFLAGS="$CPPFLAGS $addcflags"
24690 fi
24691
24692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24693$as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24694if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24695 $as_echo_n "(cached) " >&6
24696else
24697 ac_check_lib_save_LIBS=$LIBS
24698LIBS="-lcyassl $LIBS"
24699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24700/* end confdefs.h. */
24701
24702
24703#ifdef __cplusplus
24704extern "C"
24705#endif
24706char CyaSSL_Init ();
24707int main (void)
24708{
24709return CyaSSL_Init ();
24710 ;
24711 return 0;
24712}
24713_ACEOF
24714if ac_fn_c_try_link "$LINENO"; then :
24715 ac_cv_lib_cyassl_CyaSSL_Init=yes
24716else
24717 ac_cv_lib_cyassl_CyaSSL_Init=no
24718fi
24719rm -f core conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
24721LIBS=$ac_check_lib_save_LIBS
24722fi
24723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24724$as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24725if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24726
24727
24728$as_echo "#define USE_CYASSL 1" >>confdefs.h
24729
24730 USE_CYASSL=1
24731
24732 CYASSL_ENABLED=1
24733 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024734 ssl_msg="CyaSSL"
24735 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024736
24737else
24738
24739 CPPFLAGS=$_cppflags
24740 LDFLAGS=$_ldflags
24741 cyassllib=""
24742
24743fi
24744
24745 fi
24746
24747 addld=""
24748 addlib=""
24749 addcflags=""
24750
24751 if test "x$USE_CYASSL" != "xyes"; then
24752 addld=-L$OPT_CYASSL/lib$libsuff
24753 addcflags=-I$OPT_CYASSL/include
24754 cyassllib=$OPT_CYASSL/lib$libsuff
24755
24756 LDFLAGS="$LDFLAGS $addld"
24757 if test "$addcflags" != "-I/usr/include"; then
24758 CPPFLAGS="$CPPFLAGS $addcflags"
24759 fi
24760
24761 cyassllibname=wolfssl
24762 my_ac_save_LIBS="$LIBS"
24763 LIBS="-l$cyassllibname -lm $LIBS"
24764
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24766$as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768/* end confdefs.h. */
24769
24770
24771/* These aren't needed for detection and confuse WolfSSL.
24772 They are set up properly later if it is detected. */
24773#undef SIZEOF_LONG
24774#undef SIZEOF_LONG_LONG
24775#include <cyassl/ssl.h>
24776
24777int main (void)
24778{
24779
24780 return CyaSSL_Init();
24781
24782 ;
24783 return 0;
24784}
24785
24786_ACEOF
24787if ac_fn_c_try_link "$LINENO"; then :
24788
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24790$as_echo "yes" >&6; }
24791
24792$as_echo "#define USE_CYASSL 1" >>confdefs.h
24793
24794 USE_CYASSL=1
24795
24796 CYASSL_ENABLED=1
24797 USE_CYASSL="yes"
Alex Deymo486467e2017-12-19 19:04:07 +010024798 ssl_msg="WolfSSL"
24799 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070024800
24801else
24802
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24804$as_echo "no" >&6; }
24805 CPPFLAGS=$_cppflags
24806 LDFLAGS=$_ldflags
24807 cyassllib=""
24808
24809fi
24810rm -f core conftest.err conftest.$ac_objext \
24811 conftest$ac_exeext conftest.$ac_ext
24812 LIBS="$my_ac_save_LIBS"
24813 fi
24814
24815 if test "x$USE_CYASSL" = "xyes"; then
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24817$as_echo "$as_me: detected $cyassllibname" >&6;}
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024818 check_for_ca_bundle=1
Elliott Hughes82be86d2017-09-20 17:00:17 -070024819
Elliott Hughes72d948d2018-08-03 14:37:21 -070024820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024821$as_echo_n "checking size of long long... " >&6; }
24822if ${ac_cv_sizeof_long_long+:} false; then :
24823 $as_echo_n "(cached) " >&6
24824else
Elliott Hughes72d948d2018-08-03 14:37:21 -070024825 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24827/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070024828
Elliott Hughes72d948d2018-08-03 14:37:21 -070024829#include <sys/types.h>
24830
24831
24832int main (void)
24833{
24834switch (0) case 0: case (sizeof (long long) == $ac_size):;
24835 ;
24836 return 0;
24837}
24838_ACEOF
24839if ac_fn_c_try_compile "$LINENO"; then :
24840 ac_cv_sizeof_long_long=$ac_size
24841fi
24842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24843 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24844done
24845
Elliott Hughes82be86d2017-09-20 17:00:17 -070024846fi
24847
Elliott Hughes72d948d2018-08-03 14:37:21 -070024848if test x$ac_cv_sizeof_long_long = x ; then
24849 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070024850fi
24851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24852$as_echo "$ac_cv_sizeof_long_long" >&6; }
24853
Elliott Hughes82be86d2017-09-20 17:00:17 -070024854cat >>confdefs.h <<_ACEOF
24855#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24856_ACEOF
24857
24858
24859
24860 for ac_header in cyassl/options.h
24861do :
24862 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24863if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24864 cat >>confdefs.h <<_ACEOF
24865#define HAVE_CYASSL_OPTIONS_H 1
24866_ACEOF
24867
24868fi
24869
24870done
24871
24872
24873 for ac_header in cyassl/error-ssl.h
24874do :
24875 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24876if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24877 cat >>confdefs.h <<_ACEOF
24878#define HAVE_CYASSL_ERROR_SSL_H 1
24879_ACEOF
24880
24881fi
24882
24883done
24884
24885
24886 LIBS="-l$cyassllibname -lm $LIBS"
24887
24888 if test "x$cyassllibname" = "xwolfssl"; then
24889 for ac_func in wolfSSLv3_client_method \
24890 wolfSSL_CTX_UseSupportedCurve \
24891 wolfSSL_get_peer_certificate \
24892 wolfSSL_UseALPN
24893do :
24894 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24895ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24896if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24897 cat >>confdefs.h <<_ACEOF
24898#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24899_ACEOF
24900
24901fi
24902done
24903
24904 else
24905 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24906 CyaSSL_get_peer_certificate
24907do :
24908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24909ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24910if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24911 cat >>confdefs.h <<_ACEOF
24912#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24913_ACEOF
24914
24915fi
24916done
24917
24918 fi
24919
24920 if test -n "$cyassllib"; then
24921 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070024922 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$cyassllib"
24923 export CURL_LIBRARY_PATH
24924 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to CURL_LIBRARY_PATH" >&5
24925$as_echo "$as_me: Added $cyassllib to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070024926 fi
24927 fi
24928
24929 fi
24930
24931 fi
Alex Deymo486467e2017-12-19 19:04:07 +010024932 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070024933fi
24934
24935
Elliott Hughesa93fb052018-12-12 14:22:48 -080024936OPT_MESALINK=no
24937
24938_cppflags=$CPPFLAGS
24939_ldflags=$LDFLAGS
24940
24941# Check whether --with-mesalink was given.
24942if test "${with_mesalink+set}" = set; then :
24943 withval=$with_mesalink; OPT_MESALINK=$withval
24944fi
24945
24946
24947if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24948 ssl_msg=
24949
24950 if test X"$OPT_MESALINK" != Xno; then
24951
24952 if test "$OPT_MESALINK" = "yes"; then
24953 OPT_MESALINK=""
24954 fi
24955
24956 if test -z "$OPT_MESALINK" ; then
24957
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24959$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24960if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24961 $as_echo_n "(cached) " >&6
24962else
24963 ac_check_lib_save_LIBS=$LIBS
24964LIBS="-lmesalink $LIBS"
24965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24966/* end confdefs.h. */
24967
24968
24969#ifdef __cplusplus
24970extern "C"
24971#endif
24972char mesalink_library_init ();
24973int main (void)
24974{
24975return mesalink_library_init ();
24976 ;
24977 return 0;
24978}
24979_ACEOF
24980if ac_fn_c_try_link "$LINENO"; then :
24981 ac_cv_lib_mesalink_mesalink_library_init=yes
24982else
24983 ac_cv_lib_mesalink_mesalink_library_init=no
24984fi
24985rm -f core conftest.err conftest.$ac_objext \
24986 conftest$ac_exeext conftest.$ac_ext
24987LIBS=$ac_check_lib_save_LIBS
24988fi
24989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24990$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24991if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24992
24993
24994$as_echo "#define USE_MESALINK 1" >>confdefs.h
24995
24996 USE_MESALINK=1
24997
24998 MESALINK_ENABLED=1
24999 USE_MESALINK="yes"
25000 ssl_msg="MesaLink"
25001 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25002
25003fi
25004
25005 fi
25006
25007 addld=""
25008 addlib=""
25009 addcflags=""
25010 mesalinklib=""
25011
25012 if test "x$USE_MESALINK" != "xyes"; then
25013 addld=-L$OPT_MESALINK/lib$libsuff
25014 addcflags=-I$OPT_MESALINK/include
25015 mesalinklib=$OPT_MESALINK/lib$libsuff
25016
25017 LDFLAGS="$LDFLAGS $addld"
25018 if test "$addcflags" != "-I/usr/include"; then
25019 CPPFLAGS="$CPPFLAGS $addcflags"
25020 fi
25021
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
25023$as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
25024if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
25025 $as_echo_n "(cached) " >&6
25026else
25027 ac_check_lib_save_LIBS=$LIBS
25028LIBS="-lmesalink $LIBS"
25029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25030/* end confdefs.h. */
25031
25032
25033#ifdef __cplusplus
25034extern "C"
25035#endif
25036char mesalink_library_init ();
25037int main (void)
25038{
25039return mesalink_library_init ();
25040 ;
25041 return 0;
25042}
25043_ACEOF
25044if ac_fn_c_try_link "$LINENO"; then :
25045 ac_cv_lib_mesalink_mesalink_library_init=yes
25046else
25047 ac_cv_lib_mesalink_mesalink_library_init=no
25048fi
25049rm -f core conftest.err conftest.$ac_objext \
25050 conftest$ac_exeext conftest.$ac_ext
25051LIBS=$ac_check_lib_save_LIBS
25052fi
25053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
25054$as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
25055if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
25056
25057
25058$as_echo "#define USE_MESALINK 1" >>confdefs.h
25059
25060 USE_MESALINK=1
25061
25062 MESALINK_ENABLED=1
25063 USE_MESALINK="yes"
25064 ssl_msg="MesaLink"
25065 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25066
25067else
25068
25069 CPPFLAGS=$_cppflags
25070 LDFLAGS=$_ldflags
25071
25072fi
25073
25074 fi
25075
25076 if test "x$USE_MESALINK" = "xyes"; then
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
25078$as_echo "$as_me: detected MesaLink" >&6;}
25079
25080 LIBS="-lmesalink $LIBS"
25081
25082 if test -n "$mesalinklib"; then
25083 if test "x$cross_compiling" != "xyes"; then
25084 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
25085 export LD_LIBRARY_PATH
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
25087$as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
25088 fi
25089 fi
25090 fi
25091
25092 fi
25093 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25094fi
25095
25096
Elliott Hughes82be86d2017-09-20 17:00:17 -070025097OPT_NSS=no
25098
25099
25100# Check whether --with-nss was given.
25101if test "${with_nss+set}" = set; then :
25102 withval=$with_nss; OPT_NSS=$withval
25103fi
25104
25105
Alex Deymo486467e2017-12-19 19:04:07 +010025106if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25107 ssl_msg=
Elliott Hughes82be86d2017-09-20 17:00:17 -070025108
25109 if test X"$OPT_NSS" != Xno; then
25110
25111 addld=""
25112 addlib=""
25113 addcflags=""
25114 nssprefix=""
25115 version=""
25116
25117 if test "x$OPT_NSS" = "xyes"; then
25118
25119
25120 if test -n "$PKG_CONFIG"; then
25121 PKGCONFIG="$PKG_CONFIG"
25122 else
25123 if test -n "$ac_tool_prefix"; then
25124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25125set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25127$as_echo_n "checking for $ac_word... " >&6; }
25128if ${ac_cv_path_PKGCONFIG+:} false; then :
25129 $as_echo_n "(cached) " >&6
25130else
25131 case $PKGCONFIG in
25132 [\\/]* | ?:[\\/]*)
25133 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25134 ;;
25135 *)
25136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25137as_dummy="$PATH:/usr/bin:/usr/local/bin"
25138for as_dir in $as_dummy
25139do
25140 IFS=$as_save_IFS
25141 test -z "$as_dir" && as_dir=.
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 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25158$as_echo "$PKGCONFIG" >&6; }
25159else
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25161$as_echo "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{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171$as_echo_n "checking for $ac_word... " >&6; }
25172if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25173 $as_echo_n "(cached) " >&6
25174else
25175 case $ac_pt_PKGCONFIG in
25176 [\\/]* | ?:[\\/]*)
25177 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25178 ;;
25179 *)
25180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25181as_dummy="$PATH:/usr/bin:/usr/local/bin"
25182for as_dir in $as_dummy
25183do
25184 IFS=$as_save_IFS
25185 test -z "$as_dir" && as_dir=.
25186 for ac_exec_ext in '' $ac_executable_extensions; do
25187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25188 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25190 break 2
25191 fi
25192done
25193 done
25194IFS=$as_save_IFS
25195
25196 ;;
25197esac
25198fi
25199ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25200if test -n "$ac_pt_PKGCONFIG"; then
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25202$as_echo "$ac_pt_PKGCONFIG" >&6; }
25203else
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205$as_echo "no" >&6; }
25206fi
25207
25208 if test "x$ac_pt_PKGCONFIG" = x; then
25209 PKGCONFIG="no"
25210 else
25211 case $cross_compiling:$ac_tool_warned in
25212yes:)
25213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25215ac_tool_warned=yes ;;
25216esac
25217 PKGCONFIG=$ac_pt_PKGCONFIG
25218 fi
25219else
25220 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25221fi
25222
25223 fi
25224
25225 if test "x$PKGCONFIG" != "xno"; then
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25227$as_echo_n "checking for nss options with pkg-config... " >&6; }
25228 itexists=`
25229 if test -n ""; then
25230 PKG_CONFIG_LIBDIR=""
25231 export PKG_CONFIG_LIBDIR
25232 fi
25233 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25234
25235 if test -z "$itexists"; then
25236 PKGCONFIG="no"
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25238$as_echo "no" >&6; }
25239 else
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25241$as_echo "found" >&6; }
25242 fi
25243 fi
25244
25245
25246 if test "$PKGCONFIG" != "no" ; then
25247 addlib=`$PKGCONFIG --libs nss`
25248 addcflags=`$PKGCONFIG --cflags nss`
25249 version=`$PKGCONFIG --modversion nss`
25250 nssprefix=`$PKGCONFIG --variable=prefix nss`
25251 else
25252
25253 check=`nss-config --version 2>/dev/null`
25254 if test -n "$check"; then
25255 addlib=`nss-config --libs`
25256 addcflags=`nss-config --cflags`
25257 version=`nss-config --version`
25258 nssprefix=`nss-config --prefix`
25259 else
25260 addlib="-lnss3"
25261 addcflags=""
25262 version="unknown"
25263 fi
25264 fi
25265 else
25266 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25267 if test -f "$NSS_PCDIR/nss.pc"; then
25268
25269 if test -n "$PKG_CONFIG"; then
25270 PKGCONFIG="$PKG_CONFIG"
25271 else
25272 if test -n "$ac_tool_prefix"; then
25273 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25274set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25276$as_echo_n "checking for $ac_word... " >&6; }
25277if ${ac_cv_path_PKGCONFIG+:} false; then :
25278 $as_echo_n "(cached) " >&6
25279else
25280 case $PKGCONFIG in
25281 [\\/]* | ?:[\\/]*)
25282 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25283 ;;
25284 *)
25285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25286as_dummy="$PATH:/usr/bin:/usr/local/bin"
25287for as_dir in $as_dummy
25288do
25289 IFS=$as_save_IFS
25290 test -z "$as_dir" && as_dir=.
25291 for ac_exec_ext in '' $ac_executable_extensions; do
25292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25293 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25295 break 2
25296 fi
25297done
25298 done
25299IFS=$as_save_IFS
25300
25301 ;;
25302esac
25303fi
25304PKGCONFIG=$ac_cv_path_PKGCONFIG
25305if test -n "$PKGCONFIG"; then
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25307$as_echo "$PKGCONFIG" >&6; }
25308else
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25310$as_echo "no" >&6; }
25311fi
25312
25313
25314fi
25315if test -z "$ac_cv_path_PKGCONFIG"; then
25316 ac_pt_PKGCONFIG=$PKGCONFIG
25317 # Extract the first word of "pkg-config", so it can be a program name with args.
25318set dummy pkg-config; ac_word=$2
25319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25320$as_echo_n "checking for $ac_word... " >&6; }
25321if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25322 $as_echo_n "(cached) " >&6
25323else
25324 case $ac_pt_PKGCONFIG in
25325 [\\/]* | ?:[\\/]*)
25326 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25327 ;;
25328 *)
25329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25330as_dummy="$PATH:/usr/bin:/usr/local/bin"
25331for as_dir in $as_dummy
25332do
25333 IFS=$as_save_IFS
25334 test -z "$as_dir" && as_dir=.
25335 for ac_exec_ext in '' $ac_executable_extensions; do
25336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25337 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25339 break 2
25340 fi
25341done
25342 done
25343IFS=$as_save_IFS
25344
25345 ;;
25346esac
25347fi
25348ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25349if test -n "$ac_pt_PKGCONFIG"; then
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25351$as_echo "$ac_pt_PKGCONFIG" >&6; }
25352else
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25354$as_echo "no" >&6; }
25355fi
25356
25357 if test "x$ac_pt_PKGCONFIG" = x; then
25358 PKGCONFIG="no"
25359 else
25360 case $cross_compiling:$ac_tool_warned in
25361yes:)
25362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25364ac_tool_warned=yes ;;
25365esac
25366 PKGCONFIG=$ac_pt_PKGCONFIG
25367 fi
25368else
25369 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25370fi
25371
25372 fi
25373
25374 if test "x$PKGCONFIG" != "xno"; then
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25376$as_echo_n "checking for nss options with pkg-config... " >&6; }
25377 itexists=`
25378 if test -n "$NSS_PCDIR"; then
25379 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25380 export PKG_CONFIG_LIBDIR
25381 fi
25382 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25383
25384 if test -z "$itexists"; then
25385 PKGCONFIG="no"
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25387$as_echo "no" >&6; }
25388 else
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25390$as_echo "found" >&6; }
25391 fi
25392 fi
25393
25394 if test "$PKGCONFIG" != "no" ; then
25395 addld=`
25396 if test -n "$NSS_PCDIR"; then
25397 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25398 export PKG_CONFIG_LIBDIR
25399 fi
25400 $PKGCONFIG --libs-only-L nss`
25401 addlib=`
25402 if test -n "$NSS_PCDIR"; then
25403 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25404 export PKG_CONFIG_LIBDIR
25405 fi
25406 $PKGCONFIG --libs-only-l nss`
25407 addcflags=`
25408 if test -n "$NSS_PCDIR"; then
25409 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25410 export PKG_CONFIG_LIBDIR
25411 fi
25412 $PKGCONFIG --cflags nss`
25413 version=`
25414 if test -n "$NSS_PCDIR"; then
25415 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25416 export PKG_CONFIG_LIBDIR
25417 fi
25418 $PKGCONFIG --modversion nss`
25419 nssprefix=`
25420 if test -n "$NSS_PCDIR"; then
25421 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25422 export PKG_CONFIG_LIBDIR
25423 fi
25424 $PKGCONFIG --variable=prefix nss`
25425 fi
25426 fi
25427 fi
25428
25429 if test -z "$addlib"; then
25430 # Without pkg-config, we'll kludge in some defaults
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25432$as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25433 addld="-L$OPT_NSS/lib"
25434 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25435 addcflags="-I$OPT_NSS/include"
25436 version="unknown"
25437 nssprefix=$OPT_NSS
25438 fi
25439
25440 CLEANLDFLAGS="$LDFLAGS"
25441 CLEANLIBS="$LIBS"
25442 CLEANCPPFLAGS="$CPPFLAGS"
25443
25444 LDFLAGS="$addld $LDFLAGS"
25445 LIBS="$addlib $LIBS"
25446 if test "$addcflags" != "-I/usr/include"; then
25447 CPPFLAGS="$CPPFLAGS $addcflags"
25448 fi
25449
25450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25451$as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25452if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25453 $as_echo_n "(cached) " >&6
25454else
25455 ac_check_lib_save_LIBS=$LIBS
25456LIBS="-lnss3 $LIBS"
25457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458/* end confdefs.h. */
25459
25460
25461#ifdef __cplusplus
25462extern "C"
25463#endif
25464char SSL_VersionRangeSet ();
25465int main (void)
25466{
25467return SSL_VersionRangeSet ();
25468 ;
25469 return 0;
25470}
25471_ACEOF
25472if ac_fn_c_try_link "$LINENO"; then :
25473 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25474else
25475 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25476fi
25477rm -f core conftest.err conftest.$ac_objext \
25478 conftest$ac_exeext conftest.$ac_ext
25479LIBS=$ac_check_lib_save_LIBS
25480fi
25481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25482$as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25483if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25484
25485
25486$as_echo "#define USE_NSS 1" >>confdefs.h
25487
25488 USE_NSS=1
25489
25490 USE_NSS="yes"
25491 NSS_ENABLED=1
Alex Deymo486467e2017-12-19 19:04:07 +010025492 ssl_msg="NSS"
25493 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
Elliott Hughes82be86d2017-09-20 17:00:17 -070025494
25495else
25496
25497 LDFLAGS="$CLEANLDFLAGS"
25498 LIBS="$CLEANLIBS"
25499 CPPFLAGS="$CLEANCPPFLAGS"
25500
25501fi
25502
25503
25504 if test "x$USE_NSS" = "xyes"; then
25505 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25506$as_echo "$as_me: detected NSS version $version" >&6;}
25507
Elliott Hughescac39802018-04-27 16:19:43 -070025508 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25509if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25510
25511
25512$as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25513
25514
25515fi
25516
25517
Elliott Hughes82be86d2017-09-20 17:00:17 -070025518 NSS_LIBS=$addlib
25519
25520
25521 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025522 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25523 export CURL_LIBRARY_PATH
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25525$as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070025526 fi
25527
25528 fi
25529 fi
Alex Deymo486467e2017-12-19 19:04:07 +010025530 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
Elliott Hughes82be86d2017-09-20 17:00:17 -070025531fi
Alex Deymo486467e2017-12-19 19:04:07 +010025532
Haibo Huang21926d52019-01-08 14:27:10 -080025533case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED$MESALINK_ENABLED" in
Alex Deymo486467e2017-12-19 19:04:07 +010025534x)
Elliott Hughes82be86d2017-09-20 17:00:17 -070025535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25536$as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
Haibo Huang21926d52019-01-08 14:27:10 -080025537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&5
25538$as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-winssl, --with-darwinssl, or --with-mesalink to address this." >&2;}
Alex Deymo486467e2017-12-19 19:04:07 +010025539 ;;
25540x1)
25541 # one SSL backend is enabled
Elliott Hughes82be86d2017-09-20 17:00:17 -070025542
25543 SSL_ENABLED="1"
Alex Deymo486467e2017-12-19 19:04:07 +010025544 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25545$as_echo "$as_me: built with one SSL backend" >&6;}
25546 ;;
25547*)
25548 # more than one SSL backend is enabled
25549
25550 SSL_ENABLED="1"
25551
25552 CURL_WITH_MULTI_SSL="1"
25553
25554$as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25555
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25557$as_echo "$as_me: built with multiple SSL backends" >&6;}
25558 ;;
25559esac
25560
25561if test -n "$ssl_backends"; then
25562 curl_ssl_msg="enabled ($ssl_backends)"
25563fi
25564
25565if test no = "$VALID_DEFAULT_SSL_BACKEND"
25566then
25567 if test -n "$SSL_ENABLED"
25568 then
25569 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25570 else
25571 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25572 fi
25573elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25574then
25575
25576cat >>confdefs.h <<_ACEOF
25577#define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25578_ACEOF
25579
Elliott Hughes82be86d2017-09-20 17:00:17 -070025580fi
25581
25582
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025583if test "$check_for_ca_bundle" -gt 0; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070025584
25585
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25587$as_echo_n "checking default CA cert bundle/path... " >&6; }
25588
25589
25590# Check whether --with-ca-bundle was given.
25591if test "${with_ca_bundle+set}" = set; then :
25592 withval=$with_ca_bundle;
25593 want_ca="$withval"
25594 if test "x$want_ca" = "xyes"; then
25595 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25596 fi
25597
25598else
25599 want_ca="unset"
25600fi
25601
25602
25603# Check whether --with-ca-path was given.
25604if test "${with_ca_path+set}" = set; then :
25605 withval=$with_ca_path;
25606 want_capath="$withval"
25607 if test "x$want_capath" = "xyes"; then
25608 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25609 fi
25610
25611else
25612 want_capath="unset"
25613fi
25614
25615
25616 ca_warning=" (warning: certs not found)"
25617 capath_warning=" (warning: certs not found)"
25618 check_capath=""
25619
25620 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25621 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25622 ca="$want_ca"
25623 capath="$want_capath"
25624 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25625 ca="$want_ca"
25626 capath="no"
25627 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25628 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25629 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25630 fi
25631 capath="$want_capath"
25632 ca="no"
25633 else
25634 ca="no"
25635 capath="no"
25636 if test "x$cross_compiling" != "xyes"; then
25637 if test "x$want_ca" = "xunset"; then
25638 if test "x$prefix" != xNONE; then
25639 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25640 else
25641 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25642 fi
25643
25644 for a in /etc/ssl/certs/ca-certificates.crt \
25645 /etc/pki/tls/certs/ca-bundle.crt \
25646 /usr/share/ssl/certs/ca-bundle.crt \
25647 /usr/local/share/certs/ca-root-nss.crt \
25648 /etc/ssl/cert.pem \
25649 "$cac"; do
25650 if test -f "$a"; then
25651 ca="$a"
25652 break
25653 fi
25654 done
25655 fi
25656 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25657 "x$OPENSSL_ENABLED" = "x1"; then
25658 check_capath="/etc/ssl/certs/"
25659 fi
25660 else
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25662$as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25663 fi
25664 fi
25665
25666 if test "x$ca" = "xno" || test -f "$ca"; then
25667 ca_warning=""
25668 fi
25669
25670 if test "x$capath" != "xno"; then
25671 check_capath="$capath"
25672 fi
25673
25674 if test ! -z "$check_capath"; then
25675 for a in "$check_capath"; do
25676 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
25677 if test "x$capath" = "xno"; then
25678 capath="$a"
25679 fi
25680 capath_warning=""
25681 break
25682 fi
25683 done
25684 fi
25685
25686 if test "x$capath" = "xno"; then
25687 capath_warning=""
25688 fi
25689
25690 if test "x$ca" != "xno"; then
25691 CURL_CA_BUNDLE='"'$ca'"'
25692
25693cat >>confdefs.h <<_ACEOF
25694#define CURL_CA_BUNDLE "$ca"
25695_ACEOF
25696
25697
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25699$as_echo "$ca" >&6; }
25700 fi
25701 if test "x$capath" != "xno"; then
25702 CURL_CA_PATH="\"$capath\""
25703
25704cat >>confdefs.h <<_ACEOF
25705#define CURL_CA_PATH "$capath"
25706_ACEOF
25707
25708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25709$as_echo "$capath (capath)" >&6; }
25710 fi
25711 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713$as_echo "no" >&6; }
25714 fi
25715
25716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25717$as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25718
25719# Check whether --with-ca-fallback was given.
25720if test "${with_ca_fallback+set}" = set; then :
25721 withval=$with_ca_fallback;
25722 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25723 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25724 fi
25725
25726else
25727 with_ca_fallback="no"
25728fi
25729
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25731$as_echo "$with_ca_fallback" >&6; }
25732 if test "x$with_ca_fallback" = "xyes"; then
25733 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25734 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25735 fi
25736
25737cat >>confdefs.h <<_ACEOF
25738#define CURL_CA_FALLBACK 1
25739_ACEOF
25740
25741 fi
25742
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070025743fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070025744
25745
25746
25747# Check whether --with-libpsl was given.
25748if test "${with_libpsl+set}" = set; then :
25749 withval=$with_libpsl; with_libpsl=$withval
25750else
25751 with_libpsl=yes
25752fi
25753
25754if test $with_libpsl != "no"; then
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25756$as_echo_n "checking for library containing psl_builtin... " >&6; }
25757if ${ac_cv_search_psl_builtin+:} false; then :
25758 $as_echo_n "(cached) " >&6
25759else
25760 ac_func_search_save_LIBS=$LIBS
25761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762/* end confdefs.h. */
25763
25764
25765#ifdef __cplusplus
25766extern "C"
25767#endif
25768char psl_builtin ();
25769int main (void)
25770{
25771return psl_builtin ();
25772 ;
25773 return 0;
25774}
25775_ACEOF
25776for ac_lib in '' psl; do
25777 if test -z "$ac_lib"; then
25778 ac_res="none required"
25779 else
25780 ac_res=-l$ac_lib
25781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25782 fi
25783 if ac_fn_c_try_link "$LINENO"; then :
25784 ac_cv_search_psl_builtin=$ac_res
25785fi
25786rm -f core conftest.err conftest.$ac_objext \
25787 conftest$ac_exeext
25788 if ${ac_cv_search_psl_builtin+:} false; then :
25789 break
25790fi
25791done
25792if ${ac_cv_search_psl_builtin+:} false; then :
25793
25794else
25795 ac_cv_search_psl_builtin=no
25796fi
25797rm conftest.$ac_ext
25798LIBS=$ac_func_search_save_LIBS
25799fi
25800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25801$as_echo "$ac_cv_search_psl_builtin" >&6; }
25802ac_res=$ac_cv_search_psl_builtin
25803if test "$ac_res" != no; then :
25804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25805 curl_psl_msg="yes";
25806
25807$as_echo "#define USE_LIBPSL 1" >>confdefs.h
25808
25809
25810else
25811 curl_psl_msg="no (libpsl not found)";
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25813$as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25814
25815
25816fi
25817
25818fi
25819 if test "$curl_psl_msg" = "yes"; then
25820 USE_LIBPSL_TRUE=
25821 USE_LIBPSL_FALSE='#'
25822else
25823 USE_LIBPSL_TRUE='#'
25824 USE_LIBPSL_FALSE=
25825fi
25826
25827
25828
25829OPT_LIBMETALINK=no
25830
25831
25832# Check whether --with-libmetalink was given.
25833if test "${with_libmetalink+set}" = set; then :
25834 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25835fi
25836
25837
25838if test X"$OPT_LIBMETALINK" != Xno; then
25839
25840 addld=""
25841 addlib=""
25842 addcflags=""
25843 version=""
25844 libmetalinklib=""
25845
25846 PKGTEST="no"
25847 if test "x$OPT_LIBMETALINK" = "xyes"; then
25848 PKGTEST="yes"
25849
25850 if test -n "$PKG_CONFIG"; then
25851 PKGCONFIG="$PKG_CONFIG"
25852 else
25853 if test -n "$ac_tool_prefix"; then
25854 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25855set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25857$as_echo_n "checking for $ac_word... " >&6; }
25858if ${ac_cv_path_PKGCONFIG+:} false; then :
25859 $as_echo_n "(cached) " >&6
25860else
25861 case $PKGCONFIG in
25862 [\\/]* | ?:[\\/]*)
25863 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25864 ;;
25865 *)
25866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25867as_dummy="$PATH:/usr/bin:/usr/local/bin"
25868for as_dir in $as_dummy
25869do
25870 IFS=$as_save_IFS
25871 test -z "$as_dir" && as_dir=.
25872 for ac_exec_ext in '' $ac_executable_extensions; do
25873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25874 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25876 break 2
25877 fi
25878done
25879 done
25880IFS=$as_save_IFS
25881
25882 ;;
25883esac
25884fi
25885PKGCONFIG=$ac_cv_path_PKGCONFIG
25886if test -n "$PKGCONFIG"; then
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25888$as_echo "$PKGCONFIG" >&6; }
25889else
25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25891$as_echo "no" >&6; }
25892fi
25893
25894
25895fi
25896if test -z "$ac_cv_path_PKGCONFIG"; then
25897 ac_pt_PKGCONFIG=$PKGCONFIG
25898 # Extract the first word of "pkg-config", so it can be a program name with args.
25899set dummy pkg-config; ac_word=$2
25900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25901$as_echo_n "checking for $ac_word... " >&6; }
25902if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25903 $as_echo_n "(cached) " >&6
25904else
25905 case $ac_pt_PKGCONFIG in
25906 [\\/]* | ?:[\\/]*)
25907 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25908 ;;
25909 *)
25910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25911as_dummy="$PATH:/usr/bin:/usr/local/bin"
25912for as_dir in $as_dummy
25913do
25914 IFS=$as_save_IFS
25915 test -z "$as_dir" && as_dir=.
25916 for ac_exec_ext in '' $ac_executable_extensions; do
25917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25918 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25920 break 2
25921 fi
25922done
25923 done
25924IFS=$as_save_IFS
25925
25926 ;;
25927esac
25928fi
25929ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25930if test -n "$ac_pt_PKGCONFIG"; then
25931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25932$as_echo "$ac_pt_PKGCONFIG" >&6; }
25933else
25934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25935$as_echo "no" >&6; }
25936fi
25937
25938 if test "x$ac_pt_PKGCONFIG" = x; then
25939 PKGCONFIG="no"
25940 else
25941 case $cross_compiling:$ac_tool_warned in
25942yes:)
25943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25945ac_tool_warned=yes ;;
25946esac
25947 PKGCONFIG=$ac_pt_PKGCONFIG
25948 fi
25949else
25950 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25951fi
25952
25953 fi
25954
25955 if test "x$PKGCONFIG" != "xno"; then
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25957$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25958 itexists=`
25959 if test -n ""; then
25960 PKG_CONFIG_LIBDIR=""
25961 export PKG_CONFIG_LIBDIR
25962 fi
25963 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25964
25965 if test -z "$itexists"; then
25966 PKGCONFIG="no"
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25968$as_echo "no" >&6; }
25969 else
25970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25971$as_echo "found" >&6; }
25972 fi
25973 fi
25974
25975 else
25976 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25978$as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25979 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25980 PKGTEST="yes"
25981 fi
25982 if test "$PKGTEST" = "yes"; then
25983
25984 if test -n "$PKG_CONFIG"; then
25985 PKGCONFIG="$PKG_CONFIG"
25986 else
25987 if test -n "$ac_tool_prefix"; then
25988 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25989set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25991$as_echo_n "checking for $ac_word... " >&6; }
25992if ${ac_cv_path_PKGCONFIG+:} false; then :
25993 $as_echo_n "(cached) " >&6
25994else
25995 case $PKGCONFIG in
25996 [\\/]* | ?:[\\/]*)
25997 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25998 ;;
25999 *)
26000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26001as_dummy="$PATH:/usr/bin:/usr/local/bin"
26002for as_dir in $as_dummy
26003do
26004 IFS=$as_save_IFS
26005 test -z "$as_dir" && as_dir=.
26006 for ac_exec_ext in '' $ac_executable_extensions; do
26007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26008 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26010 break 2
26011 fi
26012done
26013 done
26014IFS=$as_save_IFS
26015
26016 ;;
26017esac
26018fi
26019PKGCONFIG=$ac_cv_path_PKGCONFIG
26020if test -n "$PKGCONFIG"; then
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26022$as_echo "$PKGCONFIG" >&6; }
26023else
26024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26025$as_echo "no" >&6; }
26026fi
26027
26028
26029fi
26030if test -z "$ac_cv_path_PKGCONFIG"; then
26031 ac_pt_PKGCONFIG=$PKGCONFIG
26032 # Extract the first word of "pkg-config", so it can be a program name with args.
26033set dummy pkg-config; ac_word=$2
26034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26035$as_echo_n "checking for $ac_word... " >&6; }
26036if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26037 $as_echo_n "(cached) " >&6
26038else
26039 case $ac_pt_PKGCONFIG in
26040 [\\/]* | ?:[\\/]*)
26041 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26042 ;;
26043 *)
26044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26045as_dummy="$PATH:/usr/bin:/usr/local/bin"
26046for as_dir in $as_dummy
26047do
26048 IFS=$as_save_IFS
26049 test -z "$as_dir" && as_dir=.
26050 for ac_exec_ext in '' $ac_executable_extensions; do
26051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26052 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26054 break 2
26055 fi
26056done
26057 done
26058IFS=$as_save_IFS
26059
26060 ;;
26061esac
26062fi
26063ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26064if test -n "$ac_pt_PKGCONFIG"; then
26065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26066$as_echo "$ac_pt_PKGCONFIG" >&6; }
26067else
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26069$as_echo "no" >&6; }
26070fi
26071
26072 if test "x$ac_pt_PKGCONFIG" = x; then
26073 PKGCONFIG="no"
26074 else
26075 case $cross_compiling:$ac_tool_warned in
26076yes:)
26077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26079ac_tool_warned=yes ;;
26080esac
26081 PKGCONFIG=$ac_pt_PKGCONFIG
26082 fi
26083else
26084 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26085fi
26086
26087 fi
26088
26089 if test "x$PKGCONFIG" != "xno"; then
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26091$as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26092 itexists=`
26093 if test -n "$LIBMETALINK_PCDIR"; then
26094 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26095 export PKG_CONFIG_LIBDIR
26096 fi
26097 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26098
26099 if test -z "$itexists"; then
26100 PKGCONFIG="no"
26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26102$as_echo "no" >&6; }
26103 else
26104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26105$as_echo "found" >&6; }
26106 fi
26107 fi
26108
26109 fi
26110 fi
26111 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26112 addlib=`
26113 if test -n "$LIBMETALINK_PCDIR"; then
26114 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26115 export PKG_CONFIG_LIBDIR
26116 fi
26117 $PKGCONFIG --libs-only-l libmetalink`
26118 addld=`
26119 if test -n "$LIBMETALINK_PCDIR"; then
26120 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26121 export PKG_CONFIG_LIBDIR
26122 fi
26123 $PKGCONFIG --libs-only-L libmetalink`
26124 addcflags=`
26125 if test -n "$LIBMETALINK_PCDIR"; then
26126 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26127 export PKG_CONFIG_LIBDIR
26128 fi
26129 $PKGCONFIG --cflags-only-I libmetalink`
26130 version=`
26131 if test -n "$LIBMETALINK_PCDIR"; then
26132 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26133 export PKG_CONFIG_LIBDIR
26134 fi
26135 $PKGCONFIG --modversion libmetalink`
26136 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26137 fi
26138 if test -n "$addlib"; then
26139
26140 clean_CPPFLAGS="$CPPFLAGS"
26141 clean_LDFLAGS="$LDFLAGS"
26142 clean_LIBS="$LIBS"
26143 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26144 LDFLAGS="$clean_LDFLAGS $addld"
26145 LIBS="$addlib $clean_LIBS"
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26147$as_echo_n "checking if libmetalink is recent enough... " >&6; }
26148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26149/* end confdefs.h. */
26150
26151
26152# include <metalink/metalink.h>
26153
26154int main (void)
26155{
26156
26157 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26158 return 1;
26159
26160 ;
26161 return 0;
26162}
26163
26164_ACEOF
26165if ac_fn_c_try_link "$LINENO"; then :
26166
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26168$as_echo "yes ($version)" >&6; }
26169 want_metalink="yes"
26170
26171else
26172
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26174$as_echo "no ($version)" >&6; }
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26176$as_echo "$as_me: libmetalink library defective or too old" >&6;}
26177 want_metalink="no"
26178
26179fi
26180rm -f core conftest.err conftest.$ac_objext \
26181 conftest$ac_exeext conftest.$ac_ext
26182 CPPFLAGS="$clean_CPPFLAGS"
26183 LDFLAGS="$clean_LDFLAGS"
26184 LIBS="$clean_LIBS"
26185 if test "$want_metalink" = "yes"; then
26186
26187$as_echo "#define USE_METALINK 1" >>confdefs.h
26188
26189 LIBMETALINK_LIBS=$addlib
26190 LIBMETALINK_LDFLAGS=$addld
26191 LIBMETALINK_CPPFLAGS=$addcflags
26192
26193
26194
26195 curl_mtlnk_msg="enabled"
26196 fi
26197
26198 fi
26199fi
26200
26201
26202OPT_LIBSSH2=off
26203
26204# Check whether --with-libssh2 was given.
26205if test "${with_libssh2+set}" = set; then :
26206 withval=$with_libssh2; OPT_LIBSSH2=$withval
Elliott Hughes0128fe42018-02-27 14:57:55 -080026207else
26208 OPT_LIBSSH2=no
26209fi
26210
26211
26212
26213OPT_LIBSSH=off
26214
26215# Check whether --with-libssh was given.
26216if test "${with_libssh+set}" = set; then :
26217 withval=$with_libssh; OPT_LIBSSH=$withval
26218else
26219 OPT_LIBSSH=no
Elliott Hughes82be86d2017-09-20 17:00:17 -070026220fi
26221
26222
26223if test X"$OPT_LIBSSH2" != Xno; then
26224 CLEANLDFLAGS="$LDFLAGS"
26225 CLEANCPPFLAGS="$CPPFLAGS"
26226 CLEANLIBS="$LIBS"
26227
26228 case "$OPT_LIBSSH2" in
26229 yes)
26230
26231 if test -n "$PKG_CONFIG"; then
26232 PKGCONFIG="$PKG_CONFIG"
26233 else
26234 if test -n "$ac_tool_prefix"; then
26235 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26236set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26238$as_echo_n "checking for $ac_word... " >&6; }
26239if ${ac_cv_path_PKGCONFIG+:} false; then :
26240 $as_echo_n "(cached) " >&6
26241else
26242 case $PKGCONFIG in
26243 [\\/]* | ?:[\\/]*)
26244 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26245 ;;
26246 *)
26247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26248as_dummy="$PATH:/usr/bin:/usr/local/bin"
26249for as_dir in $as_dummy
26250do
26251 IFS=$as_save_IFS
26252 test -z "$as_dir" && as_dir=.
26253 for ac_exec_ext in '' $ac_executable_extensions; do
26254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26255 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26257 break 2
26258 fi
26259done
26260 done
26261IFS=$as_save_IFS
26262
26263 ;;
26264esac
26265fi
26266PKGCONFIG=$ac_cv_path_PKGCONFIG
26267if test -n "$PKGCONFIG"; then
26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26269$as_echo "$PKGCONFIG" >&6; }
26270else
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26272$as_echo "no" >&6; }
26273fi
26274
26275
26276fi
26277if test -z "$ac_cv_path_PKGCONFIG"; then
26278 ac_pt_PKGCONFIG=$PKGCONFIG
26279 # Extract the first word of "pkg-config", so it can be a program name with args.
26280set dummy pkg-config; ac_word=$2
26281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26282$as_echo_n "checking for $ac_word... " >&6; }
26283if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26284 $as_echo_n "(cached) " >&6
26285else
26286 case $ac_pt_PKGCONFIG in
26287 [\\/]* | ?:[\\/]*)
26288 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26289 ;;
26290 *)
26291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26292as_dummy="$PATH:/usr/bin:/usr/local/bin"
26293for as_dir in $as_dummy
26294do
26295 IFS=$as_save_IFS
26296 test -z "$as_dir" && as_dir=.
26297 for ac_exec_ext in '' $ac_executable_extensions; do
26298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26299 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26301 break 2
26302 fi
26303done
26304 done
26305IFS=$as_save_IFS
26306
26307 ;;
26308esac
26309fi
26310ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26311if test -n "$ac_pt_PKGCONFIG"; then
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26313$as_echo "$ac_pt_PKGCONFIG" >&6; }
26314else
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26316$as_echo "no" >&6; }
26317fi
26318
26319 if test "x$ac_pt_PKGCONFIG" = x; then
26320 PKGCONFIG="no"
26321 else
26322 case $cross_compiling:$ac_tool_warned in
26323yes:)
26324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26326ac_tool_warned=yes ;;
26327esac
26328 PKGCONFIG=$ac_pt_PKGCONFIG
26329 fi
26330else
26331 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26332fi
26333
26334 fi
26335
26336 if test "x$PKGCONFIG" != "xno"; then
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26338$as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26339 itexists=`
26340 if test -n ""; then
26341 PKG_CONFIG_LIBDIR=""
26342 export PKG_CONFIG_LIBDIR
26343 fi
26344 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26345
26346 if test -z "$itexists"; then
26347 PKGCONFIG="no"
26348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26349$as_echo "no" >&6; }
26350 else
26351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26352$as_echo "found" >&6; }
26353 fi
26354 fi
26355
26356
26357 if test "$PKGCONFIG" != "no" ; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070026358 LIB_SSH2=`$PKGCONFIG --libs libssh2`
Elliott Hughes82be86d2017-09-20 17:00:17 -070026359 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26360 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26361 version=`$PKGCONFIG --modversion libssh2`
26362 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26363 fi
26364
26365 ;;
26366 off)
26367 ;;
26368 *)
26369 PREFIX_SSH2=$OPT_LIBSSH2
26370 ;;
26371 esac
26372
26373 if test -n "$PREFIX_SSH2"; then
26374 LIB_SSH2="-lssh2"
26375 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26376 CPP_SSH2=-I${PREFIX_SSH2}/include
26377 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26378 fi
26379
26380 LDFLAGS="$LDFLAGS $LD_SSH2"
26381 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26382 LIBS="$LIB_SSH2 $LIBS"
26383
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26385$as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26386if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26387 $as_echo_n "(cached) " >&6
26388else
26389 ac_check_lib_save_LIBS=$LIBS
26390LIBS="-lssh2 $LIBS"
26391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26392/* end confdefs.h. */
26393
26394
26395#ifdef __cplusplus
26396extern "C"
26397#endif
26398char libssh2_channel_open_ex ();
26399int main (void)
26400{
26401return libssh2_channel_open_ex ();
26402 ;
26403 return 0;
26404}
26405_ACEOF
26406if ac_fn_c_try_link "$LINENO"; then :
26407 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26408else
26409 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26410fi
26411rm -f core conftest.err conftest.$ac_objext \
26412 conftest$ac_exeext conftest.$ac_ext
26413LIBS=$ac_check_lib_save_LIBS
26414fi
26415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26416$as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26417if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26418 cat >>confdefs.h <<_ACEOF
26419#define HAVE_LIBSSH2 1
26420_ACEOF
26421
26422 LIBS="-lssh2 $LIBS"
26423
26424fi
26425
26426
26427 for ac_header in libssh2.h
26428do :
26429 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26430if test "x$ac_cv_header_libssh2_h" = xyes; then :
26431 cat >>confdefs.h <<_ACEOF
26432#define HAVE_LIBSSH2_H 1
26433_ACEOF
26434 curl_ssh_msg="enabled (libSSH2)"
26435 LIBSSH2_ENABLED=1
26436
26437$as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26438
26439 USE_LIBSSH2=1
26440
26441
26442fi
26443
26444done
26445
26446
26447 if test X"$OPT_LIBSSH2" != Xoff &&
26448 test "$LIBSSH2_ENABLED" != "1"; then
26449 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26450 fi
26451
26452 if test "$LIBSSH2_ENABLED" = "1"; then
26453 if test -n "$DIR_SSH2"; then
26454
26455 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026456 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26457 export CURL_LIBRARY_PATH
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26459$as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070026460 fi
26461 fi
26462 else
26463 LDFLAGS=$CLEANLDFLAGS
26464 CPPFLAGS=$CLEANCPPFLAGS
26465 LIBS=$CLEANLIBS
26466 fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080026467elif test X"$OPT_LIBSSH" != Xno; then
26468 CLEANLDFLAGS="$LDFLAGS"
26469 CLEANCPPFLAGS="$CPPFLAGS"
26470 CLEANLIBS="$LIBS"
26471
26472 case "$OPT_LIBSSH" in
26473 yes)
26474
26475 if test -n "$PKG_CONFIG"; then
26476 PKGCONFIG="$PKG_CONFIG"
26477 else
26478 if test -n "$ac_tool_prefix"; then
26479 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26480set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26482$as_echo_n "checking for $ac_word... " >&6; }
26483if ${ac_cv_path_PKGCONFIG+:} false; then :
26484 $as_echo_n "(cached) " >&6
26485else
26486 case $PKGCONFIG in
26487 [\\/]* | ?:[\\/]*)
26488 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26489 ;;
26490 *)
26491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26492as_dummy="$PATH:/usr/bin:/usr/local/bin"
26493for as_dir in $as_dummy
26494do
26495 IFS=$as_save_IFS
26496 test -z "$as_dir" && as_dir=.
26497 for ac_exec_ext in '' $ac_executable_extensions; do
26498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26499 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26501 break 2
26502 fi
26503done
26504 done
26505IFS=$as_save_IFS
26506
26507 ;;
26508esac
26509fi
26510PKGCONFIG=$ac_cv_path_PKGCONFIG
26511if test -n "$PKGCONFIG"; then
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26513$as_echo "$PKGCONFIG" >&6; }
26514else
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26516$as_echo "no" >&6; }
26517fi
26518
26519
26520fi
26521if test -z "$ac_cv_path_PKGCONFIG"; then
26522 ac_pt_PKGCONFIG=$PKGCONFIG
26523 # Extract the first word of "pkg-config", so it can be a program name with args.
26524set dummy pkg-config; ac_word=$2
26525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26526$as_echo_n "checking for $ac_word... " >&6; }
26527if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26528 $as_echo_n "(cached) " >&6
26529else
26530 case $ac_pt_PKGCONFIG in
26531 [\\/]* | ?:[\\/]*)
26532 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26533 ;;
26534 *)
26535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26536as_dummy="$PATH:/usr/bin:/usr/local/bin"
26537for as_dir in $as_dummy
26538do
26539 IFS=$as_save_IFS
26540 test -z "$as_dir" && as_dir=.
26541 for ac_exec_ext in '' $ac_executable_extensions; do
26542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26543 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26545 break 2
26546 fi
26547done
26548 done
26549IFS=$as_save_IFS
26550
26551 ;;
26552esac
26553fi
26554ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26555if test -n "$ac_pt_PKGCONFIG"; then
26556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26557$as_echo "$ac_pt_PKGCONFIG" >&6; }
26558else
26559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26560$as_echo "no" >&6; }
26561fi
26562
26563 if test "x$ac_pt_PKGCONFIG" = x; then
26564 PKGCONFIG="no"
26565 else
26566 case $cross_compiling:$ac_tool_warned in
26567yes:)
26568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26570ac_tool_warned=yes ;;
26571esac
26572 PKGCONFIG=$ac_pt_PKGCONFIG
26573 fi
26574else
26575 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26576fi
26577
26578 fi
26579
26580 if test "x$PKGCONFIG" != "xno"; then
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26582$as_echo_n "checking for libssh options with pkg-config... " >&6; }
26583 itexists=`
26584 if test -n ""; then
26585 PKG_CONFIG_LIBDIR=""
26586 export PKG_CONFIG_LIBDIR
26587 fi
26588 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26589
26590 if test -z "$itexists"; then
26591 PKGCONFIG="no"
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26593$as_echo "no" >&6; }
26594 else
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26596$as_echo "found" >&6; }
26597 fi
26598 fi
26599
26600
26601 if test "$PKGCONFIG" != "no" ; then
26602 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26603 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26604 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26605 version=`$PKGCONFIG --modversion libssh`
26606 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26607 fi
26608
26609 ;;
26610 off)
26611 ;;
26612 *)
26613 PREFIX_SSH=$OPT_LIBSSH
26614 ;;
26615 esac
26616
26617 if test -n "$PREFIX_SSH"; then
26618 LIB_SSH="-lssh"
26619 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26620 CPP_SSH=-I${PREFIX_SSH}/include
26621 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26622 fi
26623
26624 LDFLAGS="$LDFLAGS $LD_SSH"
26625 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26626 LIBS="$LIB_SSH $LIBS"
26627
26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26629$as_echo_n "checking for ssh_new in -lssh... " >&6; }
26630if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26631 $as_echo_n "(cached) " >&6
26632else
26633 ac_check_lib_save_LIBS=$LIBS
26634LIBS="-lssh $LIBS"
26635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26636/* end confdefs.h. */
26637
26638
26639#ifdef __cplusplus
26640extern "C"
26641#endif
26642char ssh_new ();
26643int main (void)
26644{
26645return ssh_new ();
26646 ;
26647 return 0;
26648}
26649_ACEOF
26650if ac_fn_c_try_link "$LINENO"; then :
26651 ac_cv_lib_ssh_ssh_new=yes
26652else
26653 ac_cv_lib_ssh_ssh_new=no
26654fi
26655rm -f core conftest.err conftest.$ac_objext \
26656 conftest$ac_exeext conftest.$ac_ext
26657LIBS=$ac_check_lib_save_LIBS
26658fi
26659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26660$as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26661if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26662 cat >>confdefs.h <<_ACEOF
26663#define HAVE_LIBSSH 1
26664_ACEOF
26665
26666 LIBS="-lssh $LIBS"
26667
26668fi
26669
26670
26671 for ac_header in libssh/libssh.h
26672do :
26673 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26674if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26675 cat >>confdefs.h <<_ACEOF
26676#define HAVE_LIBSSH_LIBSSH_H 1
26677_ACEOF
26678 curl_ssh_msg="enabled (libSSH)"
26679 LIBSSH_ENABLED=1
26680
26681$as_echo "#define USE_LIBSSH 1" >>confdefs.h
26682
26683 USE_LIBSSH=1
26684
26685
26686fi
26687
26688done
26689
26690
26691 if test X"$OPT_LIBSSH" != Xoff &&
26692 test "$LIBSSH_ENABLED" != "1"; then
26693 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26694 fi
26695
26696 if test "$LIBSSH_ENABLED" = "1"; then
26697 if test -n "$DIR_SSH"; then
26698
26699 if test "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070026700 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26701 export CURL_LIBRARY_PATH
26702 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26703$as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes0128fe42018-02-27 14:57:55 -080026704 fi
26705 fi
26706 else
26707 LDFLAGS=$CLEANLDFLAGS
26708 CPPFLAGS=$CLEANCPPFLAGS
26709 LIBS=$CLEANLIBS
26710 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070026711fi
26712
26713
26714OPT_LIBRTMP=off
26715
26716# Check whether --with-librtmp was given.
26717if test "${with_librtmp+set}" = set; then :
26718 withval=$with_librtmp; OPT_LIBRTMP=$withval
26719fi
26720
26721
26722if test X"$OPT_LIBRTMP" != Xno; then
26723 CLEANLDFLAGS="$LDFLAGS"
26724 CLEANCPPFLAGS="$CPPFLAGS"
26725 CLEANLIBS="$LIBS"
26726
26727 case "$OPT_LIBRTMP" in
26728 yes)
26729
26730 if test -n "$PKG_CONFIG"; then
26731 PKGCONFIG="$PKG_CONFIG"
26732 else
26733 if test -n "$ac_tool_prefix"; then
26734 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26735set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26737$as_echo_n "checking for $ac_word... " >&6; }
26738if ${ac_cv_path_PKGCONFIG+:} false; then :
26739 $as_echo_n "(cached) " >&6
26740else
26741 case $PKGCONFIG in
26742 [\\/]* | ?:[\\/]*)
26743 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26744 ;;
26745 *)
26746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26747as_dummy="$PATH:/usr/bin:/usr/local/bin"
26748for as_dir in $as_dummy
26749do
26750 IFS=$as_save_IFS
26751 test -z "$as_dir" && as_dir=.
26752 for ac_exec_ext in '' $ac_executable_extensions; do
26753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26754 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26756 break 2
26757 fi
26758done
26759 done
26760IFS=$as_save_IFS
26761
26762 ;;
26763esac
26764fi
26765PKGCONFIG=$ac_cv_path_PKGCONFIG
26766if test -n "$PKGCONFIG"; then
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26768$as_echo "$PKGCONFIG" >&6; }
26769else
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26771$as_echo "no" >&6; }
26772fi
26773
26774
26775fi
26776if test -z "$ac_cv_path_PKGCONFIG"; then
26777 ac_pt_PKGCONFIG=$PKGCONFIG
26778 # Extract the first word of "pkg-config", so it can be a program name with args.
26779set dummy pkg-config; ac_word=$2
26780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26781$as_echo_n "checking for $ac_word... " >&6; }
26782if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26783 $as_echo_n "(cached) " >&6
26784else
26785 case $ac_pt_PKGCONFIG in
26786 [\\/]* | ?:[\\/]*)
26787 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26788 ;;
26789 *)
26790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26791as_dummy="$PATH:/usr/bin:/usr/local/bin"
26792for as_dir in $as_dummy
26793do
26794 IFS=$as_save_IFS
26795 test -z "$as_dir" && as_dir=.
26796 for ac_exec_ext in '' $ac_executable_extensions; do
26797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26798 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26800 break 2
26801 fi
26802done
26803 done
26804IFS=$as_save_IFS
26805
26806 ;;
26807esac
26808fi
26809ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26810if test -n "$ac_pt_PKGCONFIG"; then
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26812$as_echo "$ac_pt_PKGCONFIG" >&6; }
26813else
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26815$as_echo "no" >&6; }
26816fi
26817
26818 if test "x$ac_pt_PKGCONFIG" = x; then
26819 PKGCONFIG="no"
26820 else
26821 case $cross_compiling:$ac_tool_warned in
26822yes:)
26823{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26825ac_tool_warned=yes ;;
26826esac
26827 PKGCONFIG=$ac_pt_PKGCONFIG
26828 fi
26829else
26830 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26831fi
26832
26833 fi
26834
26835 if test "x$PKGCONFIG" != "xno"; then
26836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26837$as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26838 itexists=`
26839 if test -n ""; then
26840 PKG_CONFIG_LIBDIR=""
26841 export PKG_CONFIG_LIBDIR
26842 fi
26843 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26844
26845 if test -z "$itexists"; then
26846 PKGCONFIG="no"
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26848$as_echo "no" >&6; }
26849 else
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26851$as_echo "found" >&6; }
26852 fi
26853 fi
26854
26855
26856 if test "$PKGCONFIG" != "no" ; then
26857 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26858 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26859 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26860 version=`$PKGCONFIG --modversion librtmp`
26861 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26862 else
26863 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26864 fi
26865
26866 ;;
26867 off)
26868 LIB_RTMP="-lrtmp"
26869 ;;
26870 *)
26871 LIB_RTMP="-lrtmp"
26872 PREFIX_RTMP=$OPT_LIBRTMP
26873 ;;
26874 esac
26875
26876 if test -n "$PREFIX_RTMP"; then
26877 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26878 CPP_RTMP=-I${PREFIX_RTMP}/include
26879 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26880 fi
26881
26882 LDFLAGS="$LDFLAGS $LD_RTMP"
26883 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26884 LIBS="$LIB_RTMP $LIBS"
26885
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26887$as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26888if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26889 $as_echo_n "(cached) " >&6
26890else
26891 ac_check_lib_save_LIBS=$LIBS
26892LIBS="-lrtmp $LIBS"
26893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26894/* end confdefs.h. */
26895
26896
26897#ifdef __cplusplus
26898extern "C"
26899#endif
26900char RTMP_Init ();
26901int main (void)
26902{
26903return RTMP_Init ();
26904 ;
26905 return 0;
26906}
26907_ACEOF
26908if ac_fn_c_try_link "$LINENO"; then :
26909 ac_cv_lib_rtmp_RTMP_Init=yes
26910else
26911 ac_cv_lib_rtmp_RTMP_Init=no
26912fi
26913rm -f core conftest.err conftest.$ac_objext \
26914 conftest$ac_exeext conftest.$ac_ext
26915LIBS=$ac_check_lib_save_LIBS
26916fi
26917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26918$as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26919if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26920
26921 for ac_header in librtmp/rtmp.h
26922do :
26923 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26924if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26925 cat >>confdefs.h <<_ACEOF
26926#define HAVE_LIBRTMP_RTMP_H 1
26927_ACEOF
26928 curl_rtmp_msg="enabled (librtmp)"
26929 LIBRTMP_ENABLED=1
26930
26931$as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26932
26933 USE_LIBRTMP=1
26934
26935
26936fi
26937
26938done
26939
26940
26941else
26942 LDFLAGS=$CLEANLDFLAGS
26943 CPPFLAGS=$CLEANCPPFLAGS
26944 LIBS=$CLEANLIBS
26945
26946fi
26947
26948
26949 if test X"$OPT_LIBRTMP" != Xoff &&
26950 test "$LIBRTMP_ENABLED" != "1"; then
26951 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26952 fi
26953
26954fi
26955
26956
26957versioned_symbols_flavour=
26958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26959$as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26960# Check whether --enable-versioned-symbols was given.
26961if test "${enable_versioned_symbols+set}" = set; then :
26962 enableval=$enable_versioned_symbols; case "$enableval" in
26963 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26964$as_echo "yes" >&6; }
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26966$as_echo_n "checking if libraries can be versioned... " >&6; }
26967 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26968 if test -z "$GLD"; then
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26970$as_echo "no" >&6; }
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26972$as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26973 else
26974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26975$as_echo "yes" >&6; }
Alex Deymo486467e2017-12-19 19:04:07 +010026976 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26977 versioned_symbols_flavour="MULTISSL_"
26978 elif test "x$OPENSSL_ENABLED" = "x1"; then
Elliott Hughes82be86d2017-09-20 17:00:17 -070026979 versioned_symbols_flavour="OPENSSL_"
26980 elif test "x$GNUTLS_ENABLED" = "x1"; then
26981 versioned_symbols_flavour="GNUTLS_"
26982 elif test "x$NSS_ENABLED" = "x1"; then
26983 versioned_symbols_flavour="NSS_"
26984 elif test "x$POLARSSL_ENABLED" = "x1"; then
26985 versioned_symbols_flavour="POLARSSL_"
26986 elif test "x$CYASSL_ENABLED" = "x1"; then
26987 versioned_symbols_flavour="CYASSL_"
Elliott Hughes82be86d2017-09-20 17:00:17 -070026988 elif test "x$WINSSL_ENABLED" = "x1"; then
26989 versioned_symbols_flavour="WINSSL_"
26990 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26991 versioned_symbols_flavour="DARWINSSL_"
26992 else
26993 versioned_symbols_flavour=""
26994 fi
26995 versioned_symbols="yes"
26996 fi
26997 ;;
26998
26999 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27000$as_echo "no" >&6; }
27001 ;;
27002 esac
27003
27004else
27005
27006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27007$as_echo "no" >&6; }
27008
27009
27010fi
27011
27012
27013CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27014
27015 if test "x$versioned_symbols" = 'xyes'; then
27016 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27017 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27018else
27019 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27020 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27021fi
27022
27023
27024
27025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27026$as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27027OPT_WINIDN="default"
27028
27029# Check whether --with-winidn was given.
27030if test "${with_winidn+set}" = set; then :
27031 withval=$with_winidn; OPT_WINIDN=$withval
27032fi
27033
27034case "$OPT_WINIDN" in
27035 no|default)
27036 want_winidn="no"
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27038$as_echo "no" >&6; }
27039 ;;
27040 yes)
27041 want_winidn="yes"
27042 want_winidn_path="default"
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27044$as_echo "yes" >&6; }
27045 ;;
27046 *)
27047 want_winidn="yes"
27048 want_winidn_path="$withval"
27049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27050$as_echo "yes ($withval)" >&6; }
27051 ;;
27052esac
27053
27054if test "$want_winidn" = "yes"; then
27055 clean_CPPFLAGS="$CPPFLAGS"
27056 clean_LDFLAGS="$LDFLAGS"
27057 clean_LIBS="$LIBS"
27058 WINIDN_LIBS="-lnormaliz"
27059 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27060 #
27061 if test "$want_winidn_path" != "default"; then
27062 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27063 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27064 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27065 fi
27066 #
27067 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27068 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27069 LIBS="$WINIDN_LIBS $LIBS"
27070 #
27071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27072$as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27074/* end confdefs.h. */
27075
27076
27077 #include <windows.h>
27078
27079int main (void)
27080{
27081
27082 IdnToUnicode(0, NULL, 0, NULL, 0);
27083
27084 ;
27085 return 0;
27086}
27087
27088_ACEOF
27089if ac_fn_c_try_link "$LINENO"; then :
27090
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27092$as_echo "yes" >&6; }
27093 tst_links_winidn="yes"
27094
27095else
27096
27097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27098$as_echo "no" >&6; }
27099 tst_links_winidn="no"
27100
27101fi
27102rm -f core conftest.err conftest.$ac_objext \
27103 conftest$ac_exeext conftest.$ac_ext
27104 #
27105 if test "$tst_links_winidn" = "yes"; then
27106
27107$as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27108
27109
27110$as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27111
27112 IDN_ENABLED=1
27113
27114 curl_idn_msg="enabled (Windows-native)"
27115 else
27116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27117$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27118 CPPFLAGS="$clean_CPPFLAGS"
27119 LDFLAGS="$clean_LDFLAGS"
27120 LIBS="$clean_LIBS"
27121 fi
27122fi
27123
27124
27125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27126$as_echo_n "checking whether to build with libidn2... " >&6; }
27127OPT_IDN="default"
27128
27129# Check whether --with-libidn2 was given.
27130if test "${with_libidn2+set}" = set; then :
27131 withval=$with_libidn2; OPT_IDN=$withval
27132fi
27133
27134case "$OPT_IDN" in
27135 no)
27136 want_idn="no"
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27138$as_echo "no" >&6; }
27139 ;;
27140 default)
27141 want_idn="yes"
27142 want_idn_path="default"
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27144$as_echo "(assumed) yes" >&6; }
27145 ;;
27146 yes)
27147 want_idn="yes"
27148 want_idn_path="default"
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27150$as_echo "yes" >&6; }
27151 ;;
27152 *)
27153 want_idn="yes"
27154 want_idn_path="$withval"
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27156$as_echo "yes ($withval)" >&6; }
27157 ;;
27158esac
27159
27160if test "$want_idn" = "yes"; then
27161 clean_CPPFLAGS="$CPPFLAGS"
27162 clean_LDFLAGS="$LDFLAGS"
27163 clean_LIBS="$LIBS"
27164 PKGCONFIG="no"
27165 #
27166 if test "$want_idn_path" != "default"; then
27167 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27168
27169 if test -n "$PKG_CONFIG"; then
27170 PKGCONFIG="$PKG_CONFIG"
27171 else
27172 if test -n "$ac_tool_prefix"; then
27173 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27174set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27176$as_echo_n "checking for $ac_word... " >&6; }
27177if ${ac_cv_path_PKGCONFIG+:} false; then :
27178 $as_echo_n "(cached) " >&6
27179else
27180 case $PKGCONFIG in
27181 [\\/]* | ?:[\\/]*)
27182 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27183 ;;
27184 *)
27185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27186as_dummy="$PATH:/usr/bin:/usr/local/bin"
27187for as_dir in $as_dummy
27188do
27189 IFS=$as_save_IFS
27190 test -z "$as_dir" && as_dir=.
27191 for ac_exec_ext in '' $ac_executable_extensions; do
27192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27193 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27195 break 2
27196 fi
27197done
27198 done
27199IFS=$as_save_IFS
27200
27201 ;;
27202esac
27203fi
27204PKGCONFIG=$ac_cv_path_PKGCONFIG
27205if test -n "$PKGCONFIG"; then
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27207$as_echo "$PKGCONFIG" >&6; }
27208else
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27210$as_echo "no" >&6; }
27211fi
27212
27213
27214fi
27215if test -z "$ac_cv_path_PKGCONFIG"; then
27216 ac_pt_PKGCONFIG=$PKGCONFIG
27217 # Extract the first word of "pkg-config", so it can be a program name with args.
27218set dummy pkg-config; ac_word=$2
27219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27220$as_echo_n "checking for $ac_word... " >&6; }
27221if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27222 $as_echo_n "(cached) " >&6
27223else
27224 case $ac_pt_PKGCONFIG in
27225 [\\/]* | ?:[\\/]*)
27226 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27227 ;;
27228 *)
27229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27230as_dummy="$PATH:/usr/bin:/usr/local/bin"
27231for as_dir in $as_dummy
27232do
27233 IFS=$as_save_IFS
27234 test -z "$as_dir" && as_dir=.
27235 for ac_exec_ext in '' $ac_executable_extensions; do
27236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27237 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27239 break 2
27240 fi
27241done
27242 done
27243IFS=$as_save_IFS
27244
27245 ;;
27246esac
27247fi
27248ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27249if test -n "$ac_pt_PKGCONFIG"; then
27250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27251$as_echo "$ac_pt_PKGCONFIG" >&6; }
27252else
27253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27254$as_echo "no" >&6; }
27255fi
27256
27257 if test "x$ac_pt_PKGCONFIG" = x; then
27258 PKGCONFIG="no"
27259 else
27260 case $cross_compiling:$ac_tool_warned in
27261yes:)
27262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27264ac_tool_warned=yes ;;
27265esac
27266 PKGCONFIG=$ac_pt_PKGCONFIG
27267 fi
27268else
27269 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27270fi
27271
27272 fi
27273
27274 if test "x$PKGCONFIG" != "xno"; then
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27276$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27277 itexists=`
27278 if test -n "$IDN_PCDIR"; then
27279 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27280 export PKG_CONFIG_LIBDIR
27281 fi
27282 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27283
27284 if test -z "$itexists"; then
27285 PKGCONFIG="no"
27286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27287$as_echo "no" >&6; }
27288 else
27289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27290$as_echo "found" >&6; }
27291 fi
27292 fi
27293
27294 if test "$PKGCONFIG" != "no"; then
27295 IDN_LIBS=`
27296 if test -n "$IDN_PCDIR"; then
27297 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27298 export PKG_CONFIG_LIBDIR
27299 fi
27300 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27301 IDN_LDFLAGS=`
27302 if test -n "$IDN_PCDIR"; then
27303 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27304 export PKG_CONFIG_LIBDIR
27305 fi
27306 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27307 IDN_CPPFLAGS=`
27308 if test -n "$IDN_PCDIR"; then
27309 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27310 export PKG_CONFIG_LIBDIR
27311 fi
27312 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27313 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27314 else
27315 IDN_LIBS="-lidn2"
27316 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27317 IDN_CPPFLAGS="-I$want_idn_path/include"
27318 IDN_DIR="$want_idn_path/lib$libsuff"
27319 fi
27320 else
27321
27322 if test -n "$PKG_CONFIG"; then
27323 PKGCONFIG="$PKG_CONFIG"
27324 else
27325 if test -n "$ac_tool_prefix"; then
27326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27327set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27329$as_echo_n "checking for $ac_word... " >&6; }
27330if ${ac_cv_path_PKGCONFIG+:} false; then :
27331 $as_echo_n "(cached) " >&6
27332else
27333 case $PKGCONFIG in
27334 [\\/]* | ?:[\\/]*)
27335 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27336 ;;
27337 *)
27338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27339as_dummy="$PATH:/usr/bin:/usr/local/bin"
27340for as_dir in $as_dummy
27341do
27342 IFS=$as_save_IFS
27343 test -z "$as_dir" && as_dir=.
27344 for ac_exec_ext in '' $ac_executable_extensions; do
27345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27346 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27348 break 2
27349 fi
27350done
27351 done
27352IFS=$as_save_IFS
27353
27354 ;;
27355esac
27356fi
27357PKGCONFIG=$ac_cv_path_PKGCONFIG
27358if test -n "$PKGCONFIG"; then
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27360$as_echo "$PKGCONFIG" >&6; }
27361else
27362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27363$as_echo "no" >&6; }
27364fi
27365
27366
27367fi
27368if test -z "$ac_cv_path_PKGCONFIG"; then
27369 ac_pt_PKGCONFIG=$PKGCONFIG
27370 # Extract the first word of "pkg-config", so it can be a program name with args.
27371set dummy pkg-config; ac_word=$2
27372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27373$as_echo_n "checking for $ac_word... " >&6; }
27374if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27375 $as_echo_n "(cached) " >&6
27376else
27377 case $ac_pt_PKGCONFIG in
27378 [\\/]* | ?:[\\/]*)
27379 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27380 ;;
27381 *)
27382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27383as_dummy="$PATH:/usr/bin:/usr/local/bin"
27384for as_dir in $as_dummy
27385do
27386 IFS=$as_save_IFS
27387 test -z "$as_dir" && as_dir=.
27388 for ac_exec_ext in '' $ac_executable_extensions; do
27389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27390 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27392 break 2
27393 fi
27394done
27395 done
27396IFS=$as_save_IFS
27397
27398 ;;
27399esac
27400fi
27401ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27402if test -n "$ac_pt_PKGCONFIG"; then
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27404$as_echo "$ac_pt_PKGCONFIG" >&6; }
27405else
27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27407$as_echo "no" >&6; }
27408fi
27409
27410 if test "x$ac_pt_PKGCONFIG" = x; then
27411 PKGCONFIG="no"
27412 else
27413 case $cross_compiling:$ac_tool_warned in
27414yes:)
27415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27417ac_tool_warned=yes ;;
27418esac
27419 PKGCONFIG=$ac_pt_PKGCONFIG
27420 fi
27421else
27422 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27423fi
27424
27425 fi
27426
27427 if test "x$PKGCONFIG" != "xno"; then
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27429$as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27430 itexists=`
27431 if test -n ""; then
27432 PKG_CONFIG_LIBDIR=""
27433 export PKG_CONFIG_LIBDIR
27434 fi
27435 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27436
27437 if test -z "$itexists"; then
27438 PKGCONFIG="no"
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27440$as_echo "no" >&6; }
27441 else
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27443$as_echo "found" >&6; }
27444 fi
27445 fi
27446
27447 if test "$PKGCONFIG" != "no"; then
27448 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27449 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27450 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27451 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27452 else
27453 IDN_LIBS="-lidn2"
27454 fi
27455 fi
27456 #
27457 if test "$PKGCONFIG" != "no"; then
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27459$as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27460 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27461$as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27463$as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27464 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27465$as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27466 else
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27468$as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27470$as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27471 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27472$as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27474$as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27475 fi
27476 #
27477 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27478 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27479 LIBS="$IDN_LIBS $LIBS"
27480 #
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27482$as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27484/* end confdefs.h. */
27485
27486
27487#define idn2_lookup_ul innocuous_idn2_lookup_ul
27488#ifdef __STDC__
27489# include <limits.h>
27490#else
27491# include <assert.h>
27492#endif
27493#undef idn2_lookup_ul
27494#ifdef __cplusplus
27495extern "C"
27496#endif
27497char idn2_lookup_ul ();
27498#if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27499choke me
27500#endif
27501
27502int main (void)
27503{
27504return idn2_lookup_ul ();
27505 ;
27506 return 0;
27507}
27508
27509_ACEOF
27510if ac_fn_c_try_link "$LINENO"; then :
27511
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27513$as_echo "yes" >&6; }
27514 tst_links_libidn="yes"
27515
27516else
27517
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27519$as_echo "no" >&6; }
27520 tst_links_libidn="no"
27521
27522fi
27523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
27525 #
27526 for ac_header in idn2.h
27527do :
27528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27529ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27530if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27531 cat >>confdefs.h <<_ACEOF
27532#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27533_ACEOF
27534
27535fi
27536
27537done
27538
27539
27540 if test "$tst_links_libidn" = "yes"; then
27541
27542$as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27543
27544
27545 IDN_ENABLED=1
27546
27547 curl_idn_msg="enabled (libidn2)"
27548 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070027549 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27550 export CURL_LIBRARY_PATH
27551 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27552$as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
Elliott Hughes82be86d2017-09-20 17:00:17 -070027553 fi
27554 else
27555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27556$as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27557 CPPFLAGS="$clean_CPPFLAGS"
27558 LDFLAGS="$clean_LDFLAGS"
27559 LIBS="$clean_LIBS"
27560 fi
27561fi
27562
27563
27564
27565
27566
27567OPT_H2="yes"
27568
27569if test "x$disable_http" = "xyes"; then
27570 # without HTTP, nghttp2 is no use
27571 OPT_H2="no"
27572fi
27573
27574
27575# Check whether --with-nghttp2 was given.
27576if test "${with_nghttp2+set}" = set; then :
27577 withval=$with_nghttp2; OPT_H2=$withval
27578fi
27579
27580case "$OPT_H2" in
27581 no)
27582 want_h2="no"
27583 ;;
27584 yes)
27585 want_h2="default"
27586 want_h2_path=""
27587 ;;
27588 *)
27589 want_h2="yes"
27590 want_h2_path="$withval/lib/pkgconfig"
27591 ;;
27592esac
27593
27594curl_h2_msg="disabled (--with-nghttp2)"
27595if test X"$want_h2" != Xno; then
27596 CLEANLDFLAGS="$LDFLAGS"
27597 CLEANCPPFLAGS="$CPPFLAGS"
27598 CLEANLIBS="$LIBS"
27599
27600
27601 if test -n "$PKG_CONFIG"; then
27602 PKGCONFIG="$PKG_CONFIG"
27603 else
27604 if test -n "$ac_tool_prefix"; then
27605 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27606set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27608$as_echo_n "checking for $ac_word... " >&6; }
27609if ${ac_cv_path_PKGCONFIG+:} false; then :
27610 $as_echo_n "(cached) " >&6
27611else
27612 case $PKGCONFIG in
27613 [\\/]* | ?:[\\/]*)
27614 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27615 ;;
27616 *)
27617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27618as_dummy="$PATH:/usr/bin:/usr/local/bin"
27619for as_dir in $as_dummy
27620do
27621 IFS=$as_save_IFS
27622 test -z "$as_dir" && as_dir=.
27623 for ac_exec_ext in '' $ac_executable_extensions; do
27624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27625 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27627 break 2
27628 fi
27629done
27630 done
27631IFS=$as_save_IFS
27632
27633 ;;
27634esac
27635fi
27636PKGCONFIG=$ac_cv_path_PKGCONFIG
27637if test -n "$PKGCONFIG"; then
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27639$as_echo "$PKGCONFIG" >&6; }
27640else
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27642$as_echo "no" >&6; }
27643fi
27644
27645
27646fi
27647if test -z "$ac_cv_path_PKGCONFIG"; then
27648 ac_pt_PKGCONFIG=$PKGCONFIG
27649 # Extract the first word of "pkg-config", so it can be a program name with args.
27650set dummy pkg-config; ac_word=$2
27651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27652$as_echo_n "checking for $ac_word... " >&6; }
27653if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27654 $as_echo_n "(cached) " >&6
27655else
27656 case $ac_pt_PKGCONFIG in
27657 [\\/]* | ?:[\\/]*)
27658 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27659 ;;
27660 *)
27661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27662as_dummy="$PATH:/usr/bin:/usr/local/bin"
27663for as_dir in $as_dummy
27664do
27665 IFS=$as_save_IFS
27666 test -z "$as_dir" && as_dir=.
27667 for ac_exec_ext in '' $ac_executable_extensions; do
27668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27669 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27671 break 2
27672 fi
27673done
27674 done
27675IFS=$as_save_IFS
27676
27677 ;;
27678esac
27679fi
27680ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27681if test -n "$ac_pt_PKGCONFIG"; then
27682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27683$as_echo "$ac_pt_PKGCONFIG" >&6; }
27684else
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27686$as_echo "no" >&6; }
27687fi
27688
27689 if test "x$ac_pt_PKGCONFIG" = x; then
27690 PKGCONFIG="no"
27691 else
27692 case $cross_compiling:$ac_tool_warned in
27693yes:)
27694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27696ac_tool_warned=yes ;;
27697esac
27698 PKGCONFIG=$ac_pt_PKGCONFIG
27699 fi
27700else
27701 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27702fi
27703
27704 fi
27705
27706 if test "x$PKGCONFIG" != "xno"; then
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27708$as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27709 itexists=`
27710 if test -n "$want_h2_path"; then
27711 PKG_CONFIG_LIBDIR="$want_h2_path"
27712 export PKG_CONFIG_LIBDIR
27713 fi
27714 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27715
27716 if test -z "$itexists"; then
27717 PKGCONFIG="no"
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27719$as_echo "no" >&6; }
27720 else
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27722$as_echo "found" >&6; }
27723 fi
27724 fi
27725
27726
27727 if test "$PKGCONFIG" != "no" ; then
27728 LIB_H2=`
27729 if test -n "$want_h2_path"; then
27730 PKG_CONFIG_LIBDIR="$want_h2_path"
27731 export PKG_CONFIG_LIBDIR
27732 fi
27733
27734 $PKGCONFIG --libs-only-l libnghttp2`
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27736$as_echo "$as_me: -l is $LIB_H2" >&6;}
27737
27738 CPP_H2=`
27739 if test -n "$want_h2_path"; then
27740 PKG_CONFIG_LIBDIR="$want_h2_path"
27741 export PKG_CONFIG_LIBDIR
27742 fi
27743 $PKGCONFIG --cflags-only-I libnghttp2`
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27745$as_echo "$as_me: -I is $CPP_H2" >&6;}
27746
27747 LD_H2=`
27748 if test -n "$want_h2_path"; then
27749 PKG_CONFIG_LIBDIR="$want_h2_path"
27750 export PKG_CONFIG_LIBDIR
27751 fi
27752
27753 $PKGCONFIG --libs-only-L libnghttp2`
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27755$as_echo "$as_me: -L is $LD_H2" >&6;}
27756
27757 LDFLAGS="$LDFLAGS $LD_H2"
27758 CPPFLAGS="$CPPFLAGS $CPP_H2"
27759 LIBS="$LIB_H2 $LIBS"
27760
27761 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27762 # >= 1.0.0
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27764$as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27765if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27766 $as_echo_n "(cached) " >&6
27767else
27768 ac_check_lib_save_LIBS=$LIBS
27769LIBS="-lnghttp2 $LIBS"
27770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27771/* end confdefs.h. */
27772
27773
27774#ifdef __cplusplus
27775extern "C"
27776#endif
27777char nghttp2_option_set_no_recv_client_magic ();
27778int main (void)
27779{
27780return nghttp2_option_set_no_recv_client_magic ();
27781 ;
27782 return 0;
27783}
27784_ACEOF
27785if ac_fn_c_try_link "$LINENO"; then :
27786 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27787else
27788 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27789fi
27790rm -f core conftest.err conftest.$ac_objext \
27791 conftest$ac_exeext conftest.$ac_ext
27792LIBS=$ac_check_lib_save_LIBS
27793fi
27794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27795$as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27796if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27797
27798 for ac_header in nghttp2/nghttp2.h
27799do :
27800 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27801if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27802 cat >>confdefs.h <<_ACEOF
27803#define HAVE_NGHTTP2_NGHTTP2_H 1
27804_ACEOF
27805 curl_h2_msg="enabled (nghttp2)"
27806 NGHTTP2_ENABLED=1
27807
27808$as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27809
27810 USE_NGHTTP2=1
27811
27812
27813fi
27814
27815done
27816
27817
27818else
27819 LDFLAGS=$CLEANLDFLAGS
27820 CPPFLAGS=$CLEANCPPFLAGS
27821 LIBS=$CLEANLIBS
27822
27823fi
27824
27825
27826 else
27827 if test X"$want_h2" != Xdefault; then
27828 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27829 fi
27830 fi
27831
27832fi
27833
27834
27835OPT_ZSH_FPATH=default
27836
27837# Check whether --with-zsh-functions-dir was given.
27838if test "${with_zsh_functions_dir+set}" = set; then :
27839 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27840fi
27841
27842case "$OPT_ZSH_FPATH" in
27843 no)
27844 ;;
27845 default|yes)
27846 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27847
27848 ;;
27849 *)
27850 ZSH_FUNCTIONS_DIR="$withval"
27851
27852 ;;
27853esac
27854
27855
27856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27857$as_echo_n "checking for ANSI C header files... " >&6; }
27858if ${ac_cv_header_stdc+:} false; then :
27859 $as_echo_n "(cached) " >&6
27860else
27861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27862/* end confdefs.h. */
27863#include <stdlib.h>
27864#include <stdarg.h>
27865#include <string.h>
27866#include <float.h>
27867
27868int main (void)
27869{
27870
27871 ;
27872 return 0;
27873}
27874_ACEOF
27875if ac_fn_c_try_compile "$LINENO"; then :
27876 ac_cv_header_stdc=yes
27877else
27878 ac_cv_header_stdc=no
27879fi
27880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27881
27882if test $ac_cv_header_stdc = yes; then
27883 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27885/* end confdefs.h. */
27886#include <string.h>
27887
27888_ACEOF
27889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27890 $EGREP "memchr" >/dev/null 2>&1; then :
27891
27892else
27893 ac_cv_header_stdc=no
27894fi
27895rm -f conftest*
27896
27897fi
27898
27899if test $ac_cv_header_stdc = yes; then
27900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27902/* end confdefs.h. */
27903#include <stdlib.h>
27904
27905_ACEOF
27906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27907 $EGREP "free" >/dev/null 2>&1; then :
27908
27909else
27910 ac_cv_header_stdc=no
27911fi
27912rm -f conftest*
27913
27914fi
27915
27916if test $ac_cv_header_stdc = yes; then
27917 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27918 if test "$cross_compiling" = yes; then :
27919 :
27920else
27921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27922/* end confdefs.h. */
27923#include <ctype.h>
27924#include <stdlib.h>
27925#if ((' ' & 0x0FF) == 0x020)
27926# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27927# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27928#else
27929# define ISLOWER(c) \
27930 (('a' <= (c) && (c) <= 'i') \
27931 || ('j' <= (c) && (c) <= 'r') \
27932 || ('s' <= (c) && (c) <= 'z'))
27933# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27934#endif
27935
27936#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27937int
27938main ()
27939{
27940 int i;
27941 for (i = 0; i < 256; i++)
27942 if (XOR (islower (i), ISLOWER (i))
27943 || toupper (i) != TOUPPER (i))
27944 return 2;
27945 return 0;
27946}
27947_ACEOF
27948if ac_fn_c_try_run "$LINENO"; then :
27949
27950else
27951 ac_cv_header_stdc=no
27952fi
27953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27954 conftest.$ac_objext conftest.beam conftest.$ac_ext
27955fi
27956
27957fi
27958fi
27959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27960$as_echo "$ac_cv_header_stdc" >&6; }
27961if test $ac_cv_header_stdc = yes; then
27962
27963$as_echo "#define STDC_HEADERS 1" >>confdefs.h
27964
27965fi
27966
27967
27968
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27970$as_echo_n "checking for malloc.h... " >&6; }
27971if ${curl_cv_header_malloc_h+:} false; then :
27972 $as_echo_n "(cached) " >&6
27973else
27974
27975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27976/* end confdefs.h. */
27977
27978
27979#include <malloc.h>
27980
27981int main (void)
27982{
27983
27984 void *p = malloc(10);
27985 void *q = calloc(10,10);
27986 free(p);
27987 free(q);
27988
27989 ;
27990 return 0;
27991}
27992
27993_ACEOF
27994if ac_fn_c_try_compile "$LINENO"; then :
27995
27996 curl_cv_header_malloc_h="yes"
27997
27998else
27999
28000 curl_cv_header_malloc_h="no"
28001
28002fi
28003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28004
28005fi
28006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28007$as_echo "$curl_cv_header_malloc_h" >&6; }
28008 if test "$curl_cv_header_malloc_h" = "yes"; then
28009
28010cat >>confdefs.h <<_ACEOF
28011#define HAVE_MALLOC_H 1
28012_ACEOF
28013
28014 #
28015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28016/* end confdefs.h. */
28017
28018
28019#include <stdlib.h>
28020
28021int main (void)
28022{
28023
28024 void *p = malloc(10);
28025 void *q = calloc(10,10);
28026 free(p);
28027 free(q);
28028
28029 ;
28030 return 0;
28031}
28032
28033_ACEOF
28034if ac_fn_c_try_compile "$LINENO"; then :
28035
28036 curl_cv_need_header_malloc_h="no"
28037
28038else
28039
28040 curl_cv_need_header_malloc_h="yes"
28041
28042fi
28043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28044 #
28045 case "$curl_cv_need_header_malloc_h" in
28046 yes)
28047
28048cat >>confdefs.h <<_ACEOF
28049#define NEED_MALLOC_H 1
28050_ACEOF
28051
28052 ;;
28053 esac
28054 fi
28055
28056
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28058$as_echo_n "checking for memory.h... " >&6; }
28059if ${curl_cv_header_memory_h+:} false; then :
28060 $as_echo_n "(cached) " >&6
28061else
28062
28063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28064/* end confdefs.h. */
28065
28066
28067#include <memory.h>
28068
28069int main (void)
28070{
28071
28072 void *p = malloc(10);
28073 void *q = calloc(10,10);
28074 free(p);
28075 free(q);
28076
28077 ;
28078 return 0;
28079}
28080
28081_ACEOF
28082if ac_fn_c_try_compile "$LINENO"; then :
28083
28084 curl_cv_header_memory_h="yes"
28085
28086else
28087
28088 curl_cv_header_memory_h="no"
28089
28090fi
28091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28092
28093fi
28094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28095$as_echo "$curl_cv_header_memory_h" >&6; }
28096 if test "$curl_cv_header_memory_h" = "yes"; then
28097
28098cat >>confdefs.h <<_ACEOF
28099#define HAVE_MEMORY_H 1
28100_ACEOF
28101
28102 #
28103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28104/* end confdefs.h. */
28105
28106
28107#include <stdlib.h>
28108
28109int main (void)
28110{
28111
28112 void *p = malloc(10);
28113 void *q = calloc(10,10);
28114 free(p);
28115 free(q);
28116
28117 ;
28118 return 0;
28119}
28120
28121_ACEOF
28122if ac_fn_c_try_compile "$LINENO"; then :
28123
28124 curl_cv_need_header_memory_h="no"
28125
28126else
28127
28128 curl_cv_need_header_memory_h="yes"
28129
28130fi
28131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28132 #
28133 case "$curl_cv_need_header_memory_h" in
28134 yes)
28135
28136cat >>confdefs.h <<_ACEOF
28137#define NEED_MEMORY_H 1
28138_ACEOF
28139
28140 ;;
28141 esac
28142 fi
28143
28144
28145for ac_header in sys/types.h \
28146 sys/time.h \
28147 sys/select.h \
28148 sys/socket.h \
28149 sys/ioctl.h \
28150 sys/uio.h \
28151 assert.h \
28152 unistd.h \
28153 stdlib.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028154 arpa/inet.h \
28155 net/if.h \
28156 netinet/in.h \
Elliott Hughes0128fe42018-02-27 14:57:55 -080028157 netinet/in6.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028158 sys/un.h \
Alex Deymo486467e2017-12-19 19:04:07 +010028159 linux/tcp.h \
Elliott Hughes82be86d2017-09-20 17:00:17 -070028160 netinet/tcp.h \
28161 netdb.h \
28162 sys/sockio.h \
28163 sys/stat.h \
28164 sys/param.h \
28165 termios.h \
28166 termio.h \
28167 sgtty.h \
28168 fcntl.h \
28169 alloca.h \
28170 time.h \
28171 io.h \
28172 pwd.h \
28173 utime.h \
28174 sys/utime.h \
28175 sys/poll.h \
28176 poll.h \
28177 socket.h \
28178 sys/resource.h \
28179 libgen.h \
28180 locale.h \
28181 errno.h \
28182 stdbool.h \
28183 arpa/tftp.h \
28184 sys/filio.h \
28185 sys/wait.h \
28186 setjmp.h
28187do :
28188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28189ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28190#ifdef HAVE_SYS_TYPES_H
28191#include <sys/types.h>
28192#endif
28193#ifdef HAVE_SYS_TIME_H
28194#include <sys/time.h>
28195#endif
28196#ifdef HAVE_SYS_SELECT_H
28197#include <sys/select.h>
28198#endif
28199#ifdef HAVE_SYS_SOCKET_H
28200#include <sys/socket.h>
28201#endif
28202#ifdef HAVE_NETINET_IN_H
28203#include <netinet/in.h>
28204#endif
Elliott Hughes0128fe42018-02-27 14:57:55 -080028205#ifdef HAVE_NETINET_IN6_H
28206#include <netinet/in6.h>
28207#endif
Elliott Hughes82be86d2017-09-20 17:00:17 -070028208#ifdef HAVE_SYS_UN_H
28209#include <sys/un.h>
28210#endif
28211
28212
28213"
28214if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28215 cat >>confdefs.h <<_ACEOF
28216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28217_ACEOF
28218
28219fi
28220
28221done
28222
28223
28224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28225$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28226if ${ac_cv_c_const+:} false; then :
28227 $as_echo_n "(cached) " >&6
28228else
28229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28230/* end confdefs.h. */
28231
28232int main (void)
28233{
28234
28235#ifndef __cplusplus
28236 /* Ultrix mips cc rejects this sort of thing. */
28237 typedef int charset[2];
28238 const charset cs = { 0, 0 };
28239 /* SunOS 4.1.1 cc rejects this. */
28240 char const *const *pcpcc;
28241 char **ppc;
28242 /* NEC SVR4.0.2 mips cc rejects this. */
28243 struct point {int x, y;};
28244 static struct point const zero = {0,0};
28245 /* AIX XL C 1.02.0.0 rejects this.
28246 It does not let you subtract one const X* pointer from another in
28247 an arm of an if-expression whose if-part is not a constant
28248 expression */
28249 const char *g = "string";
28250 pcpcc = &g + (g ? g-g : 0);
28251 /* HPUX 7.0 cc rejects these. */
28252 ++pcpcc;
28253 ppc = (char**) pcpcc;
28254 pcpcc = (char const *const *) ppc;
28255 { /* SCO 3.2v4 cc rejects this sort of thing. */
28256 char tx;
28257 char *t = &tx;
28258 char const *s = 0 ? (char *) 0 : (char const *) 0;
28259
28260 *t++ = 0;
28261 if (s) return 0;
28262 }
28263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28264 int x[] = {25, 17};
28265 const int *foo = &x[0];
28266 ++foo;
28267 }
28268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28269 typedef const int *iptr;
28270 iptr p = 0;
28271 ++p;
28272 }
28273 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28275 struct s { int j; const int *ap[3]; } bx;
28276 struct s *b = &bx; b->j = 5;
28277 }
28278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28279 const int foo = 10;
28280 if (!foo) return 0;
28281 }
28282 return !cs[0] && !zero.x;
28283#endif
28284
28285 ;
28286 return 0;
28287}
28288_ACEOF
28289if ac_fn_c_try_compile "$LINENO"; then :
28290 ac_cv_c_const=yes
28291else
28292 ac_cv_c_const=no
28293fi
28294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28295fi
28296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28297$as_echo "$ac_cv_c_const" >&6; }
28298if test $ac_cv_c_const = no; then
28299
28300$as_echo "#define const /**/" >>confdefs.h
28301
28302fi
28303
28304
28305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28306$as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28307if ${curl_cv_variadic_macros_c99+:} false; then :
28308 $as_echo_n "(cached) " >&6
28309else
28310
28311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28312/* end confdefs.h. */
28313
28314
28315#define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28316#define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28317 int fun3(int arg1, int arg2, int arg3);
28318 int fun2(int arg1, int arg2);
28319 int fun3(int arg1, int arg2, int arg3)
28320 { return arg1 + arg2 + arg3; }
28321 int fun2(int arg1, int arg2)
28322 { return arg1 + arg2; }
28323
28324int main (void)
28325{
28326
28327 int res3 = c99_vmacro3(1, 2, 3);
28328 int res2 = c99_vmacro2(1, 2);
28329
28330 ;
28331 return 0;
28332}
28333
28334_ACEOF
28335if ac_fn_c_try_compile "$LINENO"; then :
28336
28337 curl_cv_variadic_macros_c99="yes"
28338
28339else
28340
28341 curl_cv_variadic_macros_c99="no"
28342
28343fi
28344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28345
28346fi
28347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28348$as_echo "$curl_cv_variadic_macros_c99" >&6; }
28349 case "$curl_cv_variadic_macros_c99" in
28350 yes)
28351
28352cat >>confdefs.h <<_ACEOF
28353#define HAVE_VARIADIC_MACROS_C99 1
28354_ACEOF
28355
28356 ;;
28357 esac
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28359$as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28360if ${curl_cv_variadic_macros_gcc+:} false; then :
28361 $as_echo_n "(cached) " >&6
28362else
28363
28364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28365/* end confdefs.h. */
28366
28367
28368#define gcc_vmacro3(first, args...) fun3(first, args)
28369#define gcc_vmacro2(first, args...) fun2(first, args)
28370 int fun3(int arg1, int arg2, int arg3);
28371 int fun2(int arg1, int arg2);
28372 int fun3(int arg1, int arg2, int arg3)
28373 { return arg1 + arg2 + arg3; }
28374 int fun2(int arg1, int arg2)
28375 { return arg1 + arg2; }
28376
28377int main (void)
28378{
28379
28380 int res3 = gcc_vmacro3(1, 2, 3);
28381 int res2 = gcc_vmacro2(1, 2);
28382
28383 ;
28384 return 0;
28385}
28386
28387_ACEOF
28388if ac_fn_c_try_compile "$LINENO"; then :
28389
28390 curl_cv_variadic_macros_gcc="yes"
28391
28392else
28393
28394 curl_cv_variadic_macros_gcc="no"
28395
28396fi
28397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28398
28399fi
28400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28401$as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28402 case "$curl_cv_variadic_macros_gcc" in
28403 yes)
28404
28405cat >>confdefs.h <<_ACEOF
28406#define HAVE_VARIADIC_MACROS_GCC 1
28407_ACEOF
28408
28409 ;;
28410 esac
28411
28412ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28413if test "x$ac_cv_type_size_t" = xyes; then :
28414
28415else
28416
28417cat >>confdefs.h <<_ACEOF
28418#define size_t unsigned int
28419_ACEOF
28420
28421fi
28422
28423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28424$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28425if ${ac_cv_header_time+:} false; then :
28426 $as_echo_n "(cached) " >&6
28427else
28428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28429/* end confdefs.h. */
28430#include <sys/types.h>
28431#include <sys/time.h>
28432#include <time.h>
28433
28434int main (void)
28435{
28436if ((struct tm *) 0)
28437return 0;
28438 ;
28439 return 0;
28440}
28441_ACEOF
28442if ac_fn_c_try_compile "$LINENO"; then :
28443 ac_cv_header_time=yes
28444else
28445 ac_cv_header_time=no
28446fi
28447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28448fi
28449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28450$as_echo "$ac_cv_header_time" >&6; }
28451if test $ac_cv_header_time = yes; then
28452
28453$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28454
28455fi
28456
28457
28458 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28459do :
28460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28461ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28462if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28463 cat >>confdefs.h <<_ACEOF
28464#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28465_ACEOF
28466
28467fi
28468
28469done
28470
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28472$as_echo_n "checking for struct timeval... " >&6; }
28473if ${curl_cv_struct_timeval+:} false; then :
28474 $as_echo_n "(cached) " >&6
28475else
28476
28477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28478/* end confdefs.h. */
28479
28480
28481#undef inline
28482#ifdef HAVE_WINDOWS_H
28483#ifndef WIN32_LEAN_AND_MEAN
28484#define WIN32_LEAN_AND_MEAN
28485#endif
28486#include <windows.h>
28487#ifdef HAVE_WINSOCK2_H
28488#include <winsock2.h>
28489#else
28490#ifdef HAVE_WINSOCK_H
28491#include <winsock.h>
28492#endif
28493#endif
28494#endif
28495#ifdef HAVE_SYS_TYPES_H
28496#include <sys/types.h>
28497#endif
28498#ifdef HAVE_SYS_TIME_H
28499#include <sys/time.h>
28500#ifdef TIME_WITH_SYS_TIME
28501#include <time.h>
28502#endif
28503#else
28504#ifdef HAVE_TIME_H
28505#include <time.h>
28506#endif
28507#endif
28508#ifdef HAVE_SYS_SOCKET_H
28509#include <sys/socket.h>
28510#endif
28511
28512int main (void)
28513{
28514
28515 struct timeval ts;
28516 ts.tv_sec = 0;
28517 ts.tv_usec = 0;
28518
28519 ;
28520 return 0;
28521}
28522
28523_ACEOF
28524if ac_fn_c_try_compile "$LINENO"; then :
28525
28526 curl_cv_struct_timeval="yes"
28527
28528else
28529
28530 curl_cv_struct_timeval="no"
28531
28532fi
28533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28534
28535fi
28536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28537$as_echo "$curl_cv_struct_timeval" >&6; }
28538 case "$curl_cv_struct_timeval" in
28539 yes)
28540
28541cat >>confdefs.h <<_ACEOF
28542#define HAVE_STRUCT_TIMEVAL 1
28543_ACEOF
28544
28545 ;;
28546 esac
28547
28548
28549
28550 if test "x$cross_compiling" != xyes; then
28551
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28553$as_echo_n "checking run-time libs availability... " >&6; }
Elliott Hughes72d948d2018-08-03 14:37:21 -070028554
28555
28556 old=$LD_LIBRARY_PATH
28557 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28558 export LD_LIBRARY_PATH
28559 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070028560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28562as_fn_error $? "cannot run test program while cross compiling
28563See \`config.log' for more details" "$LINENO" 5; }
28564else
28565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28566/* end confdefs.h. */
28567
Elliott Hughesb1ef70f2018-10-30 11:28:38 -070028568int main()
Elliott Hughes82be86d2017-09-20 17:00:17 -070028569{
28570 return 0;
28571}
28572
28573_ACEOF
28574if ac_fn_c_try_run "$LINENO"; then :
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28576$as_echo "fine" >&6; }
28577else
28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28579$as_echo "failed" >&6; }
28580 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28581
28582fi
28583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28584 conftest.$ac_objext conftest.beam conftest.$ac_ext
28585fi
28586
Elliott Hughes72d948d2018-08-03 14:37:21 -070028587 LD_LIBRARY_PATH=$old # restore
28588
Elliott Hughes82be86d2017-09-20 17:00:17 -070028589
28590 fi
28591
28592
Elliott Hughes82be86d2017-09-20 17:00:17 -070028593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28594$as_echo_n "checking size of size_t... " >&6; }
28595if ${ac_cv_sizeof_size_t+:} false; then :
28596 $as_echo_n "(cached) " >&6
28597else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028598 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28600/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028601
Elliott Hughes72d948d2018-08-03 14:37:21 -070028602#include <sys/types.h>
28603
28604
28605int main (void)
28606{
28607switch (0) case 0: case (sizeof (size_t) == $ac_size):;
28608 ;
28609 return 0;
28610}
28611_ACEOF
28612if ac_fn_c_try_compile "$LINENO"; then :
28613 ac_cv_sizeof_size_t=$ac_size
28614fi
28615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28616 if test x$ac_cv_sizeof_size_t != x ; then break; fi
28617done
28618
Elliott Hughes82be86d2017-09-20 17:00:17 -070028619fi
28620
Elliott Hughes72d948d2018-08-03 14:37:21 -070028621if test x$ac_cv_sizeof_size_t = x ; then
28622 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028623fi
28624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28625$as_echo "$ac_cv_sizeof_size_t" >&6; }
28626
Elliott Hughes82be86d2017-09-20 17:00:17 -070028627cat >>confdefs.h <<_ACEOF
28628#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28629_ACEOF
28630
28631
Elliott Hughes82be86d2017-09-20 17:00:17 -070028632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28633$as_echo_n "checking size of long... " >&6; }
28634if ${ac_cv_sizeof_long+:} false; then :
28635 $as_echo_n "(cached) " >&6
28636else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028637 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28639/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028640
Elliott Hughes72d948d2018-08-03 14:37:21 -070028641#include <sys/types.h>
28642
28643
28644int main (void)
28645{
28646switch (0) case 0: case (sizeof (long) == $ac_size):;
28647 ;
28648 return 0;
28649}
28650_ACEOF
28651if ac_fn_c_try_compile "$LINENO"; then :
28652 ac_cv_sizeof_long=$ac_size
28653fi
28654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28655 if test x$ac_cv_sizeof_long != x ; then break; fi
28656done
28657
Elliott Hughes82be86d2017-09-20 17:00:17 -070028658fi
28659
Elliott Hughes72d948d2018-08-03 14:37:21 -070028660if test x$ac_cv_sizeof_long = x ; then
28661 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028662fi
28663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28664$as_echo "$ac_cv_sizeof_long" >&6; }
28665
Elliott Hughes82be86d2017-09-20 17:00:17 -070028666cat >>confdefs.h <<_ACEOF
28667#define SIZEOF_LONG $ac_cv_sizeof_long
28668_ACEOF
28669
28670
Elliott Hughes82be86d2017-09-20 17:00:17 -070028671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28672$as_echo_n "checking size of int... " >&6; }
28673if ${ac_cv_sizeof_int+:} false; then :
28674 $as_echo_n "(cached) " >&6
28675else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028676 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28678/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028679
Elliott Hughes72d948d2018-08-03 14:37:21 -070028680#include <sys/types.h>
28681
28682
28683int main (void)
28684{
28685switch (0) case 0: case (sizeof (int) == $ac_size):;
28686 ;
28687 return 0;
28688}
28689_ACEOF
28690if ac_fn_c_try_compile "$LINENO"; then :
28691 ac_cv_sizeof_int=$ac_size
28692fi
28693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28694 if test x$ac_cv_sizeof_int != x ; then break; fi
28695done
28696
Elliott Hughes82be86d2017-09-20 17:00:17 -070028697fi
28698
Elliott Hughes72d948d2018-08-03 14:37:21 -070028699if test x$ac_cv_sizeof_int = x ; then
28700 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028701fi
28702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28703$as_echo "$ac_cv_sizeof_int" >&6; }
28704
Elliott Hughes82be86d2017-09-20 17:00:17 -070028705cat >>confdefs.h <<_ACEOF
28706#define SIZEOF_INT $ac_cv_sizeof_int
28707_ACEOF
28708
28709
Elliott Hughes82be86d2017-09-20 17:00:17 -070028710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28711$as_echo_n "checking size of short... " >&6; }
28712if ${ac_cv_sizeof_short+:} false; then :
28713 $as_echo_n "(cached) " >&6
28714else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028715 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28717/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028718
Elliott Hughes72d948d2018-08-03 14:37:21 -070028719#include <sys/types.h>
28720
28721
28722int main (void)
28723{
28724switch (0) case 0: case (sizeof (short) == $ac_size):;
28725 ;
28726 return 0;
28727}
28728_ACEOF
28729if ac_fn_c_try_compile "$LINENO"; then :
28730 ac_cv_sizeof_short=$ac_size
28731fi
28732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28733 if test x$ac_cv_sizeof_short != x ; then break; fi
28734done
28735
Elliott Hughes82be86d2017-09-20 17:00:17 -070028736fi
28737
Elliott Hughes72d948d2018-08-03 14:37:21 -070028738if test x$ac_cv_sizeof_short = x ; then
28739 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028740fi
28741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28742$as_echo "$ac_cv_sizeof_short" >&6; }
28743
Elliott Hughes82be86d2017-09-20 17:00:17 -070028744cat >>confdefs.h <<_ACEOF
28745#define SIZEOF_SHORT $ac_cv_sizeof_short
28746_ACEOF
28747
28748
Elliott Hughes82be86d2017-09-20 17:00:17 -070028749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28750$as_echo_n "checking size of time_t... " >&6; }
28751if ${ac_cv_sizeof_time_t+:} false; then :
28752 $as_echo_n "(cached) " >&6
28753else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028754 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28756/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028757
Elliott Hughes72d948d2018-08-03 14:37:21 -070028758#include <sys/types.h>
28759
28760
28761int main (void)
28762{
28763switch (0) case 0: case (sizeof (time_t) == $ac_size):;
28764 ;
28765 return 0;
28766}
28767_ACEOF
28768if ac_fn_c_try_compile "$LINENO"; then :
28769 ac_cv_sizeof_time_t=$ac_size
28770fi
28771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28772 if test x$ac_cv_sizeof_time_t != x ; then break; fi
28773done
28774
Elliott Hughes82be86d2017-09-20 17:00:17 -070028775fi
28776
Elliott Hughes72d948d2018-08-03 14:37:21 -070028777if test x$ac_cv_sizeof_time_t = x ; then
28778 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028779fi
28780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28781$as_echo "$ac_cv_sizeof_time_t" >&6; }
28782
Elliott Hughes82be86d2017-09-20 17:00:17 -070028783cat >>confdefs.h <<_ACEOF
28784#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28785_ACEOF
28786
28787
Elliott Hughes82be86d2017-09-20 17:00:17 -070028788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28789$as_echo_n "checking size of off_t... " >&6; }
28790if ${ac_cv_sizeof_off_t+:} false; then :
28791 $as_echo_n "(cached) " >&6
28792else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028793 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28795/* end confdefs.h. */
Elliott Hughes82be86d2017-09-20 17:00:17 -070028796
Elliott Hughes72d948d2018-08-03 14:37:21 -070028797#include <sys/types.h>
28798
28799
28800int main (void)
28801{
28802switch (0) case 0: case (sizeof (off_t) == $ac_size):;
28803 ;
28804 return 0;
28805}
28806_ACEOF
28807if ac_fn_c_try_compile "$LINENO"; then :
28808 ac_cv_sizeof_off_t=$ac_size
28809fi
28810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28811 if test x$ac_cv_sizeof_off_t != x ; then break; fi
28812done
28813
Elliott Hughes82be86d2017-09-20 17:00:17 -070028814fi
28815
Elliott Hughes72d948d2018-08-03 14:37:21 -070028816if test x$ac_cv_sizeof_off_t = x ; then
28817 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
Elliott Hughes82be86d2017-09-20 17:00:17 -070028818fi
28819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28820$as_echo "$ac_cv_sizeof_off_t" >&6; }
28821
Elliott Hughes82be86d2017-09-20 17:00:17 -070028822cat >>confdefs.h <<_ACEOF
28823#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28824_ACEOF
28825
28826
28827
Alex Deymo486467e2017-12-19 19:04:07 +010028828o=$CPPFLAGS
28829CPPFLAGS="-I$srcdir/include $CPPFLAGS"
Alex Deymo486467e2017-12-19 19:04:07 +010028830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28831$as_echo_n "checking size of curl_off_t... " >&6; }
28832if ${ac_cv_sizeof_curl_off_t+:} false; then :
28833 $as_echo_n "(cached) " >&6
28834else
Elliott Hughes72d948d2018-08-03 14:37:21 -070028835 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
28836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28837/* end confdefs.h. */
28838
28839#include <sys/types.h>
28840
Alex Deymo486467e2017-12-19 19:04:07 +010028841#include <curl/system.h>
28842
Alex Deymo486467e2017-12-19 19:04:07 +010028843
Elliott Hughes72d948d2018-08-03 14:37:21 -070028844int main (void)
28845{
28846switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
28847 ;
28848 return 0;
28849}
28850_ACEOF
28851if ac_fn_c_try_compile "$LINENO"; then :
28852 ac_cv_sizeof_curl_off_t=$ac_size
28853fi
28854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28855 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
28856done
28857
Elliott Hughes82be86d2017-09-20 17:00:17 -070028858fi
28859
Elliott Hughes72d948d2018-08-03 14:37:21 -070028860if test x$ac_cv_sizeof_curl_off_t = x ; then
28861 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
Alex Deymo486467e2017-12-19 19:04:07 +010028862fi
28863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28864$as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28865
Alex Deymo486467e2017-12-19 19:04:07 +010028866cat >>confdefs.h <<_ACEOF
28867#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28868_ACEOF
28869
28870
28871CPPFLAGS=$o
Elliott Hughes82be86d2017-09-20 17:00:17 -070028872
28873ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28874if test "x$ac_cv_type_long_long" = xyes; then :
28875
28876$as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28877
28878 longlong="yes"
28879
28880fi
28881
28882
28883if test "xyes" = "x$longlong"; then
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28885$as_echo_n "checking if numberLL works... " >&6; }
28886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28887/* end confdefs.h. */
28888
28889
28890
28891int main (void)
28892{
28893
28894 long long val = 1000LL;
28895
28896 ;
28897 return 0;
28898}
28899
28900_ACEOF
28901if ac_fn_c_try_compile "$LINENO"; then :
28902
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904$as_echo "yes" >&6; }
28905
28906$as_echo "#define HAVE_LL 1" >>confdefs.h
28907
28908
28909else
28910
28911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28912$as_echo "no" >&6; }
28913
28914fi
28915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28916fi
28917
28918
28919# check for ssize_t
28920ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28921if test "x$ac_cv_type_ssize_t" = xyes; then :
28922
28923else
28924
28925$as_echo "#define ssize_t int" >>confdefs.h
28926
28927fi
28928
28929
28930# check for bool type
28931ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28932#ifdef HAVE_SYS_TYPES_H
28933#include <sys/types.h>
28934#endif
28935#ifdef HAVE_STDBOOL_H
28936#include <stdbool.h>
28937#endif
28938
28939"
28940if test "x$ac_cv_type_bool" = xyes; then :
28941
28942
28943$as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28944
28945
28946fi
28947
28948
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028949# check for sa_family_t
28950ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
28951#ifdef HAVE_SYS_SOCKET_H
28952#include <sys/socket.h>
28953#endif
28954
28955"
28956if test "x$ac_cv_type_sa_family_t" = xyes; then :
28957
28958$as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
28959
28960else
28961
28962 # The windows name?
28963 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
28964#ifdef HAVE_SYS_SOCKET_H
28965#include <sys/socket.h>
28966#endif
28967
28968"
28969if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
28970
28971$as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
28972
28973else
28974
28975$as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
28976
28977fi
28978
28979
28980fi
28981
28982
Elliott Hughescac39802018-04-27 16:19:43 -070028983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28984$as_echo_n "checking if time_t is unsigned... " >&6; }
Elliott Hughescac39802018-04-27 16:19:43 -070028985
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028986
28987 old=$LD_LIBRARY_PATH
Elliott Hughes72d948d2018-08-03 14:37:21 -070028988 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
28989 export LD_LIBRARY_PATH
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070028990 if test "$cross_compiling" = yes; then :
Elliott Hughescac39802018-04-27 16:19:43 -070028991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28992$as_echo "no" >&6; }
28993
28994else
28995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28996/* end confdefs.h. */
28997
Elliott Hughescac39802018-04-27 16:19:43 -070028998 #include <time.h>
28999 #include <limits.h>
29000 time_t t = -1;
29001 return (t > 0);
29002
29003_ACEOF
29004if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughescac39802018-04-27 16:19:43 -070029005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29006$as_echo "yes" >&6; }
29007
29008$as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
29009
29010
29011else
Elliott Hughescac39802018-04-27 16:19:43 -070029012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29013$as_echo "no" >&6; }
29014
29015fi
29016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29017 conftest.$ac_objext conftest.beam conftest.$ac_ext
29018fi
29019
Elliott Hughes1ef06ba2018-05-30 15:43:58 -070029020 LD_LIBRARY_PATH=$old # restore
29021
Elliott Hughescac39802018-04-27 16:19:43 -070029022
Elliott Hughes82be86d2017-09-20 17:00:17 -070029023
Elliott Hughes82be86d2017-09-20 17:00:17 -070029024curl_includes_poll="\
29025/* includes start */
29026#ifdef HAVE_SYS_TYPES_H
29027# include <sys/types.h>
29028#endif
29029#ifdef HAVE_POLL_H
29030# include <poll.h>
29031#endif
29032#ifdef HAVE_SYS_POLL_H
29033# include <sys/poll.h>
29034#endif
29035/* includes end */"
29036 for ac_header in sys/types.h poll.h sys/poll.h
29037do :
29038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29040"
29041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29042 cat >>confdefs.h <<_ACEOF
29043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29044_ACEOF
29045
29046fi
29047
29048done
29049
29050
29051
29052 #
29053 tst_poll_events_macro_defined="unknown"
29054 #
29055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29056/* end confdefs.h. */
29057
29058
29059 $curl_includes_poll
29060
29061int main (void)
29062{
29063
29064#if defined(events) || defined(revents)
29065 return 0;
29066#else
29067 force compilation error
29068#endif
29069
29070 ;
29071 return 0;
29072}
29073
29074_ACEOF
29075if ac_fn_c_try_compile "$LINENO"; then :
29076
29077 tst_poll_events_macro_defined="yes"
29078
29079else
29080
29081 tst_poll_events_macro_defined="no"
29082
29083fi
29084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29085 #
29086 if test "$tst_poll_events_macro_defined" = "yes"; then
29087 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29088
29089cat >>confdefs.h <<_EOF
29090#define CURL_PULL_SYS_POLL_H 1
29091_EOF
29092
29093 fi
29094 fi
29095 #
29096
29097
29098
29099 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29100#undef inline
29101#ifdef HAVE_WINDOWS_H
29102#ifndef WIN32_LEAN_AND_MEAN
29103#define WIN32_LEAN_AND_MEAN
29104#endif
29105#include <windows.h>
29106#ifdef HAVE_WINSOCK2_H
29107#include <winsock2.h>
29108#else
29109#ifdef HAVE_WINSOCK_H
29110#include <winsock.h>
29111#endif
29112#endif
29113#else
29114#ifdef HAVE_SYS_TYPES_H
29115#include <sys/types.h>
29116#endif
29117#ifdef HAVE_SYS_SOCKET_H
29118#include <sys/socket.h>
29119#endif
29120#ifdef HAVE_NETINET_IN_H
29121#include <netinet/in.h>
29122#endif
29123#ifdef HAVE_ARPA_INET_H
29124#include <arpa/inet.h>
29125#endif
29126#endif
29127
29128"
29129if test "x$ac_cv_type_in_addr_t" = xyes; then :
29130
29131else
29132
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29134$as_echo_n "checking for in_addr_t equivalent... " >&6; }
29135if ${curl_cv_in_addr_t_equiv+:} false; then :
29136 $as_echo_n "(cached) " >&6
29137else
29138
29139 curl_cv_in_addr_t_equiv="unknown"
29140 for t in "unsigned long" int size_t unsigned long; do
29141 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29143/* end confdefs.h. */
29144
29145
29146#undef inline
29147#ifdef HAVE_WINDOWS_H
29148#ifndef WIN32_LEAN_AND_MEAN
29149#define WIN32_LEAN_AND_MEAN
29150#endif
29151#include <windows.h>
29152#ifdef HAVE_WINSOCK2_H
29153#include <winsock2.h>
29154#else
29155#ifdef HAVE_WINSOCK_H
29156#include <winsock.h>
29157#endif
29158#endif
29159#else
29160#ifdef HAVE_SYS_TYPES_H
29161#include <sys/types.h>
29162#endif
29163#ifdef HAVE_SYS_SOCKET_H
29164#include <sys/socket.h>
29165#endif
29166#ifdef HAVE_NETINET_IN_H
29167#include <netinet/in.h>
29168#endif
29169#ifdef HAVE_ARPA_INET_H
29170#include <arpa/inet.h>
29171#endif
29172#endif
29173
29174int main (void)
29175{
29176
29177 $t data = inet_addr ("1.2.3.4");
29178
29179 ;
29180 return 0;
29181}
29182
29183_ACEOF
29184if ac_fn_c_try_link "$LINENO"; then :
29185
29186 curl_cv_in_addr_t_equiv="$t"
29187
29188fi
29189rm -f core conftest.err conftest.$ac_objext \
29190 conftest$ac_exeext conftest.$ac_ext
29191 fi
29192 done
29193
29194fi
29195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29196$as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29197 case "$curl_cv_in_addr_t_equiv" in
29198 unknown)
29199 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29200 ;;
29201 *)
29202
29203cat >>confdefs.h <<_ACEOF
29204#define in_addr_t $curl_cv_in_addr_t_equiv
29205_ACEOF
29206
29207 ;;
29208 esac
29209
29210fi
29211
29212
29213
29214
29215 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29216#undef inline
29217#ifdef HAVE_WINDOWS_H
29218#ifndef WIN32_LEAN_AND_MEAN
29219#define WIN32_LEAN_AND_MEAN
29220#endif
29221#include <windows.h>
29222#ifdef HAVE_WINSOCK2_H
29223#include <winsock2.h>
29224#endif
29225#else
29226#ifdef HAVE_SYS_TYPES_H
29227#include <sys/types.h>
29228#endif
29229#ifdef HAVE_SYS_SOCKET_H
29230#include <sys/socket.h>
29231#endif
29232#ifdef HAVE_NETINET_IN_H
29233#include <netinet/in.h>
29234#endif
29235#ifdef HAVE_ARPA_INET_H
29236#include <arpa/inet.h>
29237#endif
29238#endif
29239
29240"
29241if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29242
29243$as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29244
29245fi
29246
29247
29248
29249
29250 for ac_header in signal.h
29251do :
29252 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29253if test "x$ac_cv_header_signal_h" = xyes; then :
29254 cat >>confdefs.h <<_ACEOF
29255#define HAVE_SIGNAL_H 1
29256_ACEOF
29257
29258fi
29259
29260done
29261
29262 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29263#ifdef HAVE_SIGNAL_H
29264#include <signal.h>
29265#endif
29266
29267"
29268if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29269
29270
29271$as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29272
29273
29274fi
29275
29276 case "$ac_cv_type_sig_atomic_t" in
29277 yes)
29278 #
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29280$as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29282/* end confdefs.h. */
29283
29284
29285#ifdef HAVE_SIGNAL_H
29286#include <signal.h>
29287#endif
29288
29289int main (void)
29290{
29291
29292 static volatile sig_atomic_t dummy = 0;
29293
29294 ;
29295 return 0;
29296}
29297
29298_ACEOF
29299if ac_fn_c_try_link "$LINENO"; then :
29300
29301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29302$as_echo "no" >&6; }
29303 curl_cv_sig_atomic_t_volatile="no"
29304
29305else
29306
29307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29308$as_echo "yes" >&6; }
29309 curl_cv_sig_atomic_t_volatile="yes"
29310
29311fi
29312rm -f core conftest.err conftest.$ac_objext \
29313 conftest$ac_exeext conftest.$ac_ext
29314 #
29315 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29316
29317$as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29318
29319 fi
29320 ;;
29321 esac
29322
29323
29324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29325$as_echo_n "checking return type of signal handlers... " >&6; }
29326if ${ac_cv_type_signal+:} false; then :
29327 $as_echo_n "(cached) " >&6
29328else
29329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29330/* end confdefs.h. */
29331#include <sys/types.h>
29332#include <signal.h>
29333
29334int main (void)
29335{
29336return *(signal (0, 0)) (0) == 1;
29337 ;
29338 return 0;
29339}
29340_ACEOF
29341if ac_fn_c_try_compile "$LINENO"; then :
29342 ac_cv_type_signal=int
29343else
29344 ac_cv_type_signal=void
29345fi
29346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29347fi
29348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29349$as_echo "$ac_cv_type_signal" >&6; }
29350
29351cat >>confdefs.h <<_ACEOF
29352#define RETSIGTYPE $ac_cv_type_signal
29353_ACEOF
29354
29355
29356
29357
29358 for ac_header in sys/select.h sys/socket.h
29359do :
29360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29361ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29362if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29363 cat >>confdefs.h <<_ACEOF
29364#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29365_ACEOF
29366
29367fi
29368
29369done
29370
29371 #
29372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29373$as_echo_n "checking for select... " >&6; }
29374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29375/* end confdefs.h. */
29376
29377
29378#undef inline
29379#ifdef HAVE_WINDOWS_H
29380#ifndef WIN32_LEAN_AND_MEAN
29381#define WIN32_LEAN_AND_MEAN
29382#endif
29383#include <windows.h>
29384#ifdef HAVE_WINSOCK2_H
29385#include <winsock2.h>
29386#else
29387#ifdef HAVE_WINSOCK_H
29388#include <winsock.h>
29389#endif
29390#endif
29391#endif
29392#ifdef HAVE_SYS_TYPES_H
29393#include <sys/types.h>
29394#endif
29395#ifdef HAVE_SYS_TIME_H
29396#include <sys/time.h>
29397#ifdef TIME_WITH_SYS_TIME
29398#include <time.h>
29399#endif
29400#else
29401#ifdef HAVE_TIME_H
29402#include <time.h>
29403#endif
29404#endif
29405#ifndef HAVE_WINDOWS_H
29406#ifdef HAVE_SYS_SELECT_H
29407#include <sys/select.h>
29408#endif
29409#ifdef HAVE_SYS_SOCKET_H
29410#include <sys/socket.h>
29411#endif
29412#endif
29413
29414int main (void)
29415{
29416
29417 select(0, 0, 0, 0, 0);
29418
29419 ;
29420 return 0;
29421}
29422
29423_ACEOF
29424if ac_fn_c_try_link "$LINENO"; then :
29425
29426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29427$as_echo "yes" >&6; }
29428 curl_cv_select="yes"
29429
29430else
29431
29432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29433$as_echo "no" >&6; }
29434 curl_cv_select="no"
29435
29436fi
29437rm -f core conftest.err conftest.$ac_objext \
29438 conftest$ac_exeext conftest.$ac_ext
29439 #
29440 if test "$curl_cv_select" = "yes"; then
29441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29442$as_echo_n "checking types of args and return type for select... " >&6; }
29443if ${curl_cv_func_select_args+:} false; then :
29444 $as_echo_n "(cached) " >&6
29445else
29446
29447 curl_cv_func_select_args="unknown"
29448 for sel_retv in 'int' 'ssize_t'; do
29449 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29450 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29451 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29452 if test "$curl_cv_func_select_args" = "unknown"; then
29453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29454/* end confdefs.h. */
29455
29456
29457#undef inline
29458#ifdef HAVE_WINDOWS_H
29459#ifndef WIN32_LEAN_AND_MEAN
29460#define WIN32_LEAN_AND_MEAN
29461#endif
29462#include <windows.h>
29463#ifdef HAVE_WINSOCK2_H
29464#include <winsock2.h>
29465#else
29466#ifdef HAVE_WINSOCK_H
29467#include <winsock.h>
29468#endif
29469#endif
29470#define SELECTCALLCONV PASCAL
29471#endif
29472#ifdef HAVE_SYS_TYPES_H
29473#include <sys/types.h>
29474#endif
29475#ifdef HAVE_SYS_TIME_H
29476#include <sys/time.h>
29477#ifdef TIME_WITH_SYS_TIME
29478#include <time.h>
29479#endif
29480#else
29481#ifdef HAVE_TIME_H
29482#include <time.h>
29483#endif
29484#endif
29485#ifndef HAVE_WINDOWS_H
29486#ifdef HAVE_SYS_SELECT_H
29487#include <sys/select.h>
29488#endif
29489#ifdef HAVE_SYS_SOCKET_H
29490#include <sys/socket.h>
29491#endif
29492#define SELECTCALLCONV
29493#endif
29494#ifndef HAVE_STRUCT_TIMEVAL
29495 struct timeval {
29496 long tv_sec;
29497 long tv_usec;
29498 };
29499#endif
29500 extern $sel_retv SELECTCALLCONV
29501#ifdef __ANDROID__
29502__attribute__((overloadable))
29503#endif
29504 select($sel_arg1,
29505 $sel_arg234,
29506 $sel_arg234,
29507 $sel_arg234,
29508 $sel_arg5);
29509
29510int main (void)
29511{
29512
29513 $sel_arg1 nfds=0;
29514 $sel_arg234 rfds=0;
29515 $sel_arg234 wfds=0;
29516 $sel_arg234 efds=0;
29517 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29518
29519 ;
29520 return 0;
29521}
29522
29523_ACEOF
29524if ac_fn_c_try_compile "$LINENO"; then :
29525
29526 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29527
29528fi
29529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29530 fi
29531 done
29532 done
29533 done
29534 done
29535
29536fi
29537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29538$as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29539 if test "$curl_cv_func_select_args" = "unknown"; then
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29541$as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29543$as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29544 else
29545 select_prev_IFS=$IFS; IFS=','
29546 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29547 IFS=$select_prev_IFS
29548 shift
29549 #
29550 sel_qual_type_arg5=$3
29551 #
29552
29553cat >>confdefs.h <<_ACEOF
29554#define SELECT_TYPE_ARG1 $1
29555_ACEOF
29556
29557
29558cat >>confdefs.h <<_ACEOF
29559#define SELECT_TYPE_ARG234 $2
29560_ACEOF
29561
29562
29563cat >>confdefs.h <<_ACEOF
29564#define SELECT_TYPE_RETV $4
29565_ACEOF
29566
29567 #
29568 prev_sh_opts=$-
29569 #
29570 case $prev_sh_opts in
29571 *f*)
29572 ;;
29573 *)
29574 set -f
29575 ;;
29576 esac
29577 #
29578 case "$sel_qual_type_arg5" in
29579 const*)
29580 sel_qual_arg5=const
29581 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29582 ;;
29583 *)
29584 sel_qual_arg5=
29585 sel_type_arg5=$sel_qual_type_arg5
29586 ;;
29587 esac
29588 #
29589
29590cat >>confdefs.h <<_ACEOF
29591#define SELECT_QUAL_ARG5 $sel_qual_arg5
29592_ACEOF
29593
29594
29595cat >>confdefs.h <<_ACEOF
29596#define SELECT_TYPE_ARG5 $sel_type_arg5
29597_ACEOF
29598
29599 #
29600 case $prev_sh_opts in
29601 *f*)
29602 ;;
29603 *)
29604 set +f
29605 ;;
29606 esac
29607 #
29608
29609cat >>confdefs.h <<_ACEOF
29610#define HAVE_SELECT 1
29611_ACEOF
29612
29613 curl_cv_func_select="yes"
29614 fi
29615 fi
29616
29617
29618
29619 for ac_header in sys/types.h sys/socket.h
29620do :
29621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29622ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29623if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29624 cat >>confdefs.h <<_ACEOF
29625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29626_ACEOF
29627
29628fi
29629
29630done
29631
29632 #
29633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29634$as_echo_n "checking for recv... " >&6; }
29635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636/* end confdefs.h. */
29637
29638
29639#undef inline
29640#ifdef HAVE_WINDOWS_H
29641#ifndef WIN32_LEAN_AND_MEAN
29642#define WIN32_LEAN_AND_MEAN
29643#endif
29644#include <windows.h>
29645#ifdef HAVE_WINSOCK2_H
29646#include <winsock2.h>
29647#else
29648#ifdef HAVE_WINSOCK_H
29649#include <winsock.h>
29650#endif
29651#endif
29652#else
29653#ifdef HAVE_SYS_TYPES_H
29654#include <sys/types.h>
29655#endif
29656#ifdef HAVE_SYS_SOCKET_H
29657#include <sys/socket.h>
29658#endif
29659#endif
29660
29661int main (void)
29662{
29663
29664 recv(0, 0, 0, 0);
29665
29666 ;
29667 return 0;
29668}
29669
29670_ACEOF
29671if ac_fn_c_try_link "$LINENO"; then :
29672
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29674$as_echo "yes" >&6; }
29675 curl_cv_recv="yes"
29676
29677else
29678
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29680$as_echo "no" >&6; }
29681 curl_cv_recv="no"
29682
29683fi
29684rm -f core conftest.err conftest.$ac_objext \
29685 conftest$ac_exeext conftest.$ac_ext
29686 #
29687 if test "$curl_cv_recv" = "yes"; then
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29689$as_echo_n "checking types of args and return type for recv... " >&6; }
29690if ${curl_cv_func_recv_args+:} false; then :
29691 $as_echo_n "(cached) " >&6
29692else
29693
29694 curl_cv_func_recv_args="unknown"
29695 for recv_retv in 'int' 'ssize_t'; do
29696 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29697 for recv_arg2 in 'char *' 'void *'; do
29698 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29699 for recv_arg4 in 'int' 'unsigned int'; do
29700 if test "$curl_cv_func_recv_args" = "unknown"; then
29701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29702/* end confdefs.h. */
29703
29704
29705#undef inline
29706#ifdef HAVE_WINDOWS_H
29707#ifndef WIN32_LEAN_AND_MEAN
29708#define WIN32_LEAN_AND_MEAN
29709#endif
29710#include <windows.h>
29711#ifdef HAVE_WINSOCK2_H
29712#include <winsock2.h>
29713#else
29714#ifdef HAVE_WINSOCK_H
29715#include <winsock.h>
29716#endif
29717#endif
29718#define RECVCALLCONV PASCAL
29719#else
29720#ifdef HAVE_SYS_TYPES_H
29721#include <sys/types.h>
29722#endif
29723#ifdef HAVE_SYS_SOCKET_H
29724#include <sys/socket.h>
29725#endif
29726#define RECVCALLCONV
29727#endif
29728 extern $recv_retv RECVCALLCONV
29729#ifdef __ANDROID__
29730__attribute__((overloadable))
29731#endif
29732 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
29733
29734int main (void)
29735{
29736
29737 $recv_arg1 s=0;
29738 $recv_arg2 buf=0;
29739 $recv_arg3 len=0;
29740 $recv_arg4 flags=0;
29741 $recv_retv res = recv(s, buf, len, flags);
29742
29743 ;
29744 return 0;
29745}
29746
29747_ACEOF
29748if ac_fn_c_try_compile "$LINENO"; then :
29749
29750 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
29751
29752fi
29753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29754 fi
29755 done
29756 done
29757 done
29758 done
29759 done
29760
29761fi
29762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
29763$as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
29764 if test "$curl_cv_func_recv_args" = "unknown"; then
29765 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
29766 else
29767 recv_prev_IFS=$IFS; IFS=','
29768 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
29769 IFS=$recv_prev_IFS
29770 shift
29771 #
29772
29773cat >>confdefs.h <<_ACEOF
29774#define RECV_TYPE_ARG1 $1
29775_ACEOF
29776
29777
29778cat >>confdefs.h <<_ACEOF
29779#define RECV_TYPE_ARG2 $2
29780_ACEOF
29781
29782
29783cat >>confdefs.h <<_ACEOF
29784#define RECV_TYPE_ARG3 $3
29785_ACEOF
29786
29787
29788cat >>confdefs.h <<_ACEOF
29789#define RECV_TYPE_ARG4 $4
29790_ACEOF
29791
29792
29793cat >>confdefs.h <<_ACEOF
29794#define RECV_TYPE_RETV $5
29795_ACEOF
29796
29797 #
29798
29799cat >>confdefs.h <<_ACEOF
29800#define HAVE_RECV 1
29801_ACEOF
29802
29803 curl_cv_func_recv="yes"
29804 fi
29805 else
29806 as_fn_error $? "Unable to link function recv" "$LINENO" 5
29807 fi
29808
29809
29810 for ac_header in sys/types.h sys/socket.h
29811do :
29812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29813ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29814if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29815 cat >>confdefs.h <<_ACEOF
29816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29817_ACEOF
29818
29819fi
29820
29821done
29822
29823 #
29824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
29825$as_echo_n "checking for send... " >&6; }
29826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29827/* end confdefs.h. */
29828
29829
29830#undef inline
29831#ifdef HAVE_WINDOWS_H
29832#ifndef WIN32_LEAN_AND_MEAN
29833#define WIN32_LEAN_AND_MEAN
29834#endif
29835#include <windows.h>
29836#ifdef HAVE_WINSOCK2_H
29837#include <winsock2.h>
29838#else
29839#ifdef HAVE_WINSOCK_H
29840#include <winsock.h>
29841#endif
29842#endif
29843#else
29844#ifdef HAVE_SYS_TYPES_H
29845#include <sys/types.h>
29846#endif
29847#ifdef HAVE_SYS_SOCKET_H
29848#include <sys/socket.h>
29849#endif
29850#endif
29851
29852int main (void)
29853{
29854
29855 send(0, 0, 0, 0);
29856
29857 ;
29858 return 0;
29859}
29860
29861_ACEOF
29862if ac_fn_c_try_link "$LINENO"; then :
29863
29864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29865$as_echo "yes" >&6; }
29866 curl_cv_send="yes"
29867
29868else
29869
29870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29871$as_echo "no" >&6; }
29872 curl_cv_send="no"
29873
29874fi
29875rm -f core conftest.err conftest.$ac_objext \
29876 conftest$ac_exeext conftest.$ac_ext
29877 #
29878 if test "$curl_cv_send" = "yes"; then
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
29880$as_echo_n "checking types of args and return type for send... " >&6; }
29881if ${curl_cv_func_send_args+:} false; then :
29882 $as_echo_n "(cached) " >&6
29883else
29884
29885 curl_cv_func_send_args="unknown"
29886 for send_retv in 'int' 'ssize_t'; do
29887 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
29888 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
29889 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
29890 for send_arg4 in 'int' 'unsigned int'; do
29891 if test "$curl_cv_func_send_args" = "unknown"; then
29892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29893/* end confdefs.h. */
29894
29895
29896#undef inline
29897#ifdef HAVE_WINDOWS_H
29898#ifndef WIN32_LEAN_AND_MEAN
29899#define WIN32_LEAN_AND_MEAN
29900#endif
29901#include <windows.h>
29902#ifdef HAVE_WINSOCK2_H
29903#include <winsock2.h>
29904#else
29905#ifdef HAVE_WINSOCK_H
29906#include <winsock.h>
29907#endif
29908#endif
29909#define SENDCALLCONV PASCAL
29910#else
29911#ifdef HAVE_SYS_TYPES_H
29912#include <sys/types.h>
29913#endif
29914#ifdef HAVE_SYS_SOCKET_H
29915#include <sys/socket.h>
29916#endif
29917#define SENDCALLCONV
29918#endif
29919 extern $send_retv SENDCALLCONV
29920#ifdef __ANDROID__
29921__attribute__((overloadable))
29922#endif
29923 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
29924
29925int main (void)
29926{
29927
29928 $send_arg1 s=0;
29929 $send_arg3 len=0;
29930 $send_arg4 flags=0;
29931 $send_retv res = send(s, 0, len, flags);
29932
29933 ;
29934 return 0;
29935}
29936
29937_ACEOF
29938if ac_fn_c_try_compile "$LINENO"; then :
29939
29940 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
29941
29942fi
29943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29944 fi
29945 done
29946 done
29947 done
29948 done
29949 done
29950
29951fi
29952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
29953$as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
29954 if test "$curl_cv_func_send_args" = "unknown"; then
29955 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
29956 else
29957 send_prev_IFS=$IFS; IFS=','
29958 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
29959 IFS=$send_prev_IFS
29960 shift
29961 #
29962 send_qual_type_arg2=$2
29963 #
29964
29965cat >>confdefs.h <<_ACEOF
29966#define SEND_TYPE_ARG1 $1
29967_ACEOF
29968
29969
29970cat >>confdefs.h <<_ACEOF
29971#define SEND_TYPE_ARG3 $3
29972_ACEOF
29973
29974
29975cat >>confdefs.h <<_ACEOF
29976#define SEND_TYPE_ARG4 $4
29977_ACEOF
29978
29979
29980cat >>confdefs.h <<_ACEOF
29981#define SEND_TYPE_RETV $5
29982_ACEOF
29983
29984 #
29985 prev_sh_opts=$-
29986 #
29987 case $prev_sh_opts in
29988 *f*)
29989 ;;
29990 *)
29991 set -f
29992 ;;
29993 esac
29994 #
29995 case "$send_qual_type_arg2" in
29996 const*)
29997 send_qual_arg2=const
29998 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
29999 ;;
30000 *)
30001 send_qual_arg2=
30002 send_type_arg2=$send_qual_type_arg2
30003 ;;
30004 esac
30005 #
30006
30007cat >>confdefs.h <<_ACEOF
30008#define SEND_QUAL_ARG2 $send_qual_arg2
30009_ACEOF
30010
30011
30012cat >>confdefs.h <<_ACEOF
30013#define SEND_TYPE_ARG2 $send_type_arg2
30014_ACEOF
30015
30016 #
30017 case $prev_sh_opts in
30018 *f*)
30019 ;;
30020 *)
30021 set +f
30022 ;;
30023 esac
30024 #
30025
30026cat >>confdefs.h <<_ACEOF
30027#define HAVE_SEND 1
30028_ACEOF
30029
30030 curl_cv_func_send="yes"
30031 fi
30032 else
30033 as_fn_error $? "Unable to link function send" "$LINENO" 5
30034 fi
30035
30036
30037 for ac_header in sys/types.h sys/socket.h
30038do :
30039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30040ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30042 cat >>confdefs.h <<_ACEOF
30043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30044_ACEOF
30045
30046fi
30047
30048done
30049
30050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30051$as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30052if ${curl_cv_msg_nosignal+:} false; then :
30053 $as_echo_n "(cached) " >&6
30054else
30055
30056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30057/* end confdefs.h. */
30058
30059
30060#undef inline
30061#ifdef HAVE_WINDOWS_H
30062#ifndef WIN32_LEAN_AND_MEAN
30063#define WIN32_LEAN_AND_MEAN
30064#endif
30065#include <windows.h>
30066#ifdef HAVE_WINSOCK2_H
30067#include <winsock2.h>
30068#else
30069#ifdef HAVE_WINSOCK_H
30070#include <winsock.h>
30071#endif
30072#endif
30073#else
30074#ifdef HAVE_SYS_TYPES_H
30075#include <sys/types.h>
30076#endif
30077#ifdef HAVE_SYS_SOCKET_H
30078#include <sys/socket.h>
30079#endif
30080#endif
30081
30082int main (void)
30083{
30084
30085 int flag=MSG_NOSIGNAL;
30086
30087 ;
30088 return 0;
30089}
30090
30091_ACEOF
30092if ac_fn_c_try_compile "$LINENO"; then :
30093
30094 curl_cv_msg_nosignal="yes"
30095
30096else
30097
30098 curl_cv_msg_nosignal="no"
30099
30100fi
30101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30102
30103fi
30104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30105$as_echo "$curl_cv_msg_nosignal" >&6; }
30106 case "$curl_cv_msg_nosignal" in
30107 yes)
30108
30109cat >>confdefs.h <<_ACEOF
30110#define HAVE_MSG_NOSIGNAL 1
30111_ACEOF
30112
30113 ;;
30114 esac
30115
30116
30117
30118curl_includes_unistd="\
30119/* includes start */
30120#ifdef HAVE_SYS_TYPES_H
30121# include <sys/types.h>
30122#endif
30123#ifdef HAVE_UNISTD_H
30124# include <unistd.h>
30125#endif
30126/* includes end */"
30127 for ac_header in sys/types.h unistd.h
30128do :
30129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30130ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30131"
30132if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30133 cat >>confdefs.h <<_ACEOF
30134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30135_ACEOF
30136
30137fi
30138
30139done
30140
30141
30142
30143 #
30144 tst_links_alarm="unknown"
30145 tst_proto_alarm="unknown"
30146 tst_compi_alarm="unknown"
30147 tst_allow_alarm="unknown"
30148 #
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30150$as_echo_n "checking if alarm can be linked... " >&6; }
30151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30152/* end confdefs.h. */
30153
30154
30155#define alarm innocuous_alarm
30156#ifdef __STDC__
30157# include <limits.h>
30158#else
30159# include <assert.h>
30160#endif
30161#undef alarm
30162#ifdef __cplusplus
30163extern "C"
30164#endif
30165char alarm ();
30166#if defined __stub_alarm || defined __stub___alarm
30167choke me
30168#endif
30169
30170int main (void)
30171{
30172return alarm ();
30173 ;
30174 return 0;
30175}
30176
30177_ACEOF
30178if ac_fn_c_try_link "$LINENO"; then :
30179
30180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30181$as_echo "yes" >&6; }
30182 tst_links_alarm="yes"
30183
30184else
30185
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30187$as_echo "no" >&6; }
30188 tst_links_alarm="no"
30189
30190fi
30191rm -f core conftest.err conftest.$ac_objext \
30192 conftest$ac_exeext conftest.$ac_ext
30193 #
30194 if test "$tst_links_alarm" = "yes"; then
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30196$as_echo_n "checking if alarm is prototyped... " >&6; }
30197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30198/* end confdefs.h. */
30199
30200 $curl_includes_unistd
30201
30202_ACEOF
30203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30204 $EGREP "alarm" >/dev/null 2>&1; then :
30205
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30207$as_echo "yes" >&6; }
30208 tst_proto_alarm="yes"
30209
30210else
30211
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30213$as_echo "no" >&6; }
30214 tst_proto_alarm="no"
30215
30216fi
30217rm -f conftest*
30218
30219 fi
30220 #
30221 if test "$tst_proto_alarm" = "yes"; then
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30223$as_echo_n "checking if alarm is compilable... " >&6; }
30224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30225/* end confdefs.h. */
30226
30227
30228 $curl_includes_unistd
30229
30230int main (void)
30231{
30232
30233 if(0 != alarm(0))
30234 return 1;
30235
30236 ;
30237 return 0;
30238}
30239
30240_ACEOF
30241if ac_fn_c_try_compile "$LINENO"; then :
30242
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30244$as_echo "yes" >&6; }
30245 tst_compi_alarm="yes"
30246
30247else
30248
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30250$as_echo "no" >&6; }
30251 tst_compi_alarm="no"
30252
30253fi
30254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30255 fi
30256 #
30257 if test "$tst_compi_alarm" = "yes"; then
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30259$as_echo_n "checking if alarm usage allowed... " >&6; }
30260 if test "x$curl_disallow_alarm" != "xyes"; then
30261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30262$as_echo "yes" >&6; }
30263 tst_allow_alarm="yes"
30264 else
30265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30266$as_echo "no" >&6; }
30267 tst_allow_alarm="no"
30268 fi
30269 fi
30270 #
30271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30272$as_echo_n "checking if alarm might be used... " >&6; }
30273 if test "$tst_links_alarm" = "yes" &&
30274 test "$tst_proto_alarm" = "yes" &&
30275 test "$tst_compi_alarm" = "yes" &&
30276 test "$tst_allow_alarm" = "yes"; then
30277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30278$as_echo "yes" >&6; }
30279
30280cat >>confdefs.h <<_ACEOF
30281#define HAVE_ALARM 1
30282_ACEOF
30283
30284 curl_cv_func_alarm="yes"
30285 else
30286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30287$as_echo "no" >&6; }
30288 curl_cv_func_alarm="no"
30289 fi
30290
30291
30292curl_includes_string="\
30293/* includes start */
30294#ifdef HAVE_SYS_TYPES_H
30295# include <sys/types.h>
30296#endif
30297#ifdef HAVE_STRING_H
30298# include <string.h>
30299#endif
30300#ifdef HAVE_STRINGS_H
30301# include <strings.h>
30302#endif
30303/* includes end */"
30304 for ac_header in sys/types.h string.h strings.h
30305do :
30306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30307ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30308"
30309if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30310 cat >>confdefs.h <<_ACEOF
30311#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30312_ACEOF
30313
30314fi
30315
30316done
30317
30318
30319
30320curl_includes_libgen="\
30321/* includes start */
30322#ifdef HAVE_SYS_TYPES_H
30323# include <sys/types.h>
30324#endif
30325#ifdef HAVE_LIBGEN_H
30326# include <libgen.h>
30327#endif
30328/* includes end */"
30329 for ac_header in sys/types.h libgen.h
30330do :
30331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30332ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30333"
30334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30335 cat >>confdefs.h <<_ACEOF
30336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30337_ACEOF
30338
30339fi
30340
30341done
30342
30343
30344
30345 #
30346 tst_links_basename="unknown"
30347 tst_proto_basename="unknown"
30348 tst_compi_basename="unknown"
30349 tst_allow_basename="unknown"
30350 #
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30352$as_echo_n "checking if basename can be linked... " >&6; }
30353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30354/* end confdefs.h. */
30355
30356
30357#define basename innocuous_basename
30358#ifdef __STDC__
30359# include <limits.h>
30360#else
30361# include <assert.h>
30362#endif
30363#undef basename
30364#ifdef __cplusplus
30365extern "C"
30366#endif
30367char basename ();
30368#if defined __stub_basename || defined __stub___basename
30369choke me
30370#endif
30371
30372int main (void)
30373{
30374return basename ();
30375 ;
30376 return 0;
30377}
30378
30379_ACEOF
30380if ac_fn_c_try_link "$LINENO"; then :
30381
30382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30383$as_echo "yes" >&6; }
30384 tst_links_basename="yes"
30385
30386else
30387
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30389$as_echo "no" >&6; }
30390 tst_links_basename="no"
30391
30392fi
30393rm -f core conftest.err conftest.$ac_objext \
30394 conftest$ac_exeext conftest.$ac_ext
30395 #
30396 if test "$tst_links_basename" = "yes"; then
30397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30398$as_echo_n "checking if basename is prototyped... " >&6; }
30399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30400/* end confdefs.h. */
30401
30402 $curl_includes_string
30403 $curl_includes_libgen
30404 $curl_includes_unistd
30405
30406_ACEOF
30407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30408 $EGREP "basename" >/dev/null 2>&1; then :
30409
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30411$as_echo "yes" >&6; }
30412 tst_proto_basename="yes"
30413
30414else
30415
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30417$as_echo "no" >&6; }
30418 tst_proto_basename="no"
30419
30420fi
30421rm -f conftest*
30422
30423 fi
30424 #
30425 if test "$tst_proto_basename" = "yes"; then
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30427$as_echo_n "checking if basename is compilable... " >&6; }
30428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30429/* end confdefs.h. */
30430
30431
30432 $curl_includes_string
30433 $curl_includes_libgen
30434 $curl_includes_unistd
30435
30436int main (void)
30437{
30438
30439 if(0 != basename(0))
30440 return 1;
30441
30442 ;
30443 return 0;
30444}
30445
30446_ACEOF
30447if ac_fn_c_try_compile "$LINENO"; then :
30448
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30450$as_echo "yes" >&6; }
30451 tst_compi_basename="yes"
30452
30453else
30454
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30456$as_echo "no" >&6; }
30457 tst_compi_basename="no"
30458
30459fi
30460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30461 fi
30462 #
30463 if test "$tst_compi_basename" = "yes"; then
30464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30465$as_echo_n "checking if basename usage allowed... " >&6; }
30466 if test "x$curl_disallow_basename" != "xyes"; then
30467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30468$as_echo "yes" >&6; }
30469 tst_allow_basename="yes"
30470 else
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30472$as_echo "no" >&6; }
30473 tst_allow_basename="no"
30474 fi
30475 fi
30476 #
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30478$as_echo_n "checking if basename might be used... " >&6; }
30479 if test "$tst_links_basename" = "yes" &&
30480 test "$tst_proto_basename" = "yes" &&
30481 test "$tst_compi_basename" = "yes" &&
30482 test "$tst_allow_basename" = "yes"; then
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30484$as_echo "yes" >&6; }
30485
30486cat >>confdefs.h <<_ACEOF
30487#define HAVE_BASENAME 1
30488_ACEOF
30489
30490 curl_cv_func_basename="yes"
30491 else
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30493$as_echo "no" >&6; }
30494 curl_cv_func_basename="no"
30495 fi
30496
30497
30498curl_includes_socket="\
30499/* includes start */
30500#ifdef HAVE_SYS_TYPES_H
30501# include <sys/types.h>
30502#endif
30503#ifdef HAVE_SOCKET_H
30504# include <socket.h>
30505#endif
30506/* includes end */"
30507 for ac_header in sys/types.h socket.h
30508do :
30509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30510ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30511"
30512if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30513 cat >>confdefs.h <<_ACEOF
30514#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30515_ACEOF
30516
30517fi
30518
30519done
30520
30521
30522
30523 #
30524 tst_links_closesocket="unknown"
30525 tst_proto_closesocket="unknown"
30526 tst_compi_closesocket="unknown"
30527 tst_allow_closesocket="unknown"
30528 #
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30530$as_echo_n "checking if closesocket can be linked... " >&6; }
30531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30532/* end confdefs.h. */
30533
30534
30535 $curl_includes_winsock2
30536 $curl_includes_socket
30537
30538int main (void)
30539{
30540
30541 if(0 != closesocket(0))
30542 return 1;
30543
30544 ;
30545 return 0;
30546}
30547
30548_ACEOF
30549if ac_fn_c_try_link "$LINENO"; then :
30550
30551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30552$as_echo "yes" >&6; }
30553 tst_links_closesocket="yes"
30554
30555else
30556
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30558$as_echo "no" >&6; }
30559 tst_links_closesocket="no"
30560
30561fi
30562rm -f core conftest.err conftest.$ac_objext \
30563 conftest$ac_exeext conftest.$ac_ext
30564 #
30565 if test "$tst_links_closesocket" = "yes"; then
30566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30567$as_echo_n "checking if closesocket is prototyped... " >&6; }
30568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30569/* end confdefs.h. */
30570
30571 $curl_includes_winsock2
30572 $curl_includes_socket
30573
30574_ACEOF
30575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30576 $EGREP "closesocket" >/dev/null 2>&1; then :
30577
30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30579$as_echo "yes" >&6; }
30580 tst_proto_closesocket="yes"
30581
30582else
30583
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30585$as_echo "no" >&6; }
30586 tst_proto_closesocket="no"
30587
30588fi
30589rm -f conftest*
30590
30591 fi
30592 #
30593 if test "$tst_proto_closesocket" = "yes"; then
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30595$as_echo_n "checking if closesocket is compilable... " >&6; }
30596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30597/* end confdefs.h. */
30598
30599
30600 $curl_includes_winsock2
30601 $curl_includes_socket
30602
30603int main (void)
30604{
30605
30606 if(0 != closesocket(0))
30607 return 1;
30608
30609 ;
30610 return 0;
30611}
30612
30613_ACEOF
30614if ac_fn_c_try_compile "$LINENO"; then :
30615
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30617$as_echo "yes" >&6; }
30618 tst_compi_closesocket="yes"
30619
30620else
30621
30622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30623$as_echo "no" >&6; }
30624 tst_compi_closesocket="no"
30625
30626fi
30627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30628 fi
30629 #
30630 if test "$tst_compi_closesocket" = "yes"; then
30631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30632$as_echo_n "checking if closesocket usage allowed... " >&6; }
30633 if test "x$curl_disallow_closesocket" != "xyes"; then
30634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30635$as_echo "yes" >&6; }
30636 tst_allow_closesocket="yes"
30637 else
30638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30639$as_echo "no" >&6; }
30640 tst_allow_closesocket="no"
30641 fi
30642 fi
30643 #
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30645$as_echo_n "checking if closesocket might be used... " >&6; }
30646 if test "$tst_links_closesocket" = "yes" &&
30647 test "$tst_proto_closesocket" = "yes" &&
30648 test "$tst_compi_closesocket" = "yes" &&
30649 test "$tst_allow_closesocket" = "yes"; then
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30651$as_echo "yes" >&6; }
30652
30653cat >>confdefs.h <<_ACEOF
30654#define HAVE_CLOSESOCKET 1
30655_ACEOF
30656
30657 curl_cv_func_closesocket="yes"
30658 else
30659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30660$as_echo "no" >&6; }
30661 curl_cv_func_closesocket="no"
30662 fi
30663
30664
Elliott Hughesa93fb052018-12-12 14:22:48 -080030665curl_includes_sys_socket="\
30666/* includes start */
30667#ifdef HAVE_SYS_TYPES_H
30668# include <sys/types.h>
30669#endif
30670#ifdef HAVE_SYS_SOCKET_H
30671# include <sys/socket.h>
30672#endif
30673/* includes end */"
30674 for ac_header in sys/types.h sys/socket.h
30675do :
30676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30677ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
30678"
30679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30680 cat >>confdefs.h <<_ACEOF
30681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30682_ACEOF
30683
30684fi
30685
30686done
30687
30688
30689
Elliott Hughes82be86d2017-09-20 17:00:17 -070030690 #
30691 tst_links_closesocket_camel="unknown"
30692 tst_proto_closesocket_camel="unknown"
30693 tst_compi_closesocket_camel="unknown"
30694 tst_allow_closesocket_camel="unknown"
30695 #
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30697$as_echo_n "checking if CloseSocket can be linked... " >&6; }
30698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30699/* end confdefs.h. */
30700
30701
30702 $curl_includes_sys_socket
30703
30704int main (void)
30705{
30706
30707 if(0 != CloseSocket(0))
30708 return 1;
30709
30710 ;
30711 return 0;
30712}
30713
30714_ACEOF
30715if ac_fn_c_try_link "$LINENO"; then :
30716
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30718$as_echo "yes" >&6; }
30719 tst_links_closesocket_camel="yes"
30720
30721else
30722
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30724$as_echo "no" >&6; }
30725 tst_links_closesocket_camel="no"
30726
30727fi
30728rm -f core conftest.err conftest.$ac_objext \
30729 conftest$ac_exeext conftest.$ac_ext
30730 #
30731 if test "$tst_links_closesocket_camel" = "yes"; then
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
30733$as_echo_n "checking if CloseSocket is prototyped... " >&6; }
30734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30735/* end confdefs.h. */
30736
30737 $curl_includes_sys_socket
30738
30739_ACEOF
30740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30741 $EGREP "CloseSocket" >/dev/null 2>&1; then :
30742
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30744$as_echo "yes" >&6; }
30745 tst_proto_closesocket_camel="yes"
30746
30747else
30748
30749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30750$as_echo "no" >&6; }
30751 tst_proto_closesocket_camel="no"
30752
30753fi
30754rm -f conftest*
30755
30756 fi
30757 #
30758 if test "$tst_proto_closesocket_camel" = "yes"; then
30759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
30760$as_echo_n "checking if CloseSocket is compilable... " >&6; }
30761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30762/* end confdefs.h. */
30763
30764
30765 $curl_includes_sys_socket
30766
30767int main (void)
30768{
30769
30770 if(0 != CloseSocket(0))
30771 return 1;
30772
30773 ;
30774 return 0;
30775}
30776
30777_ACEOF
30778if ac_fn_c_try_compile "$LINENO"; then :
30779
30780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30781$as_echo "yes" >&6; }
30782 tst_compi_closesocket_camel="yes"
30783
30784else
30785
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30787$as_echo "no" >&6; }
30788 tst_compi_closesocket_camel="no"
30789
30790fi
30791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30792 fi
30793 #
30794 if test "$tst_compi_closesocket_camel" = "yes"; then
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
30796$as_echo_n "checking if CloseSocket usage allowed... " >&6; }
30797 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30799$as_echo "yes" >&6; }
30800 tst_allow_closesocket_camel="yes"
30801 else
30802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30803$as_echo "no" >&6; }
30804 tst_allow_closesocket_camel="no"
30805 fi
30806 fi
30807 #
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
30809$as_echo_n "checking if CloseSocket might be used... " >&6; }
30810 if test "$tst_links_closesocket_camel" = "yes" &&
30811 test "$tst_proto_closesocket_camel" = "yes" &&
30812 test "$tst_compi_closesocket_camel" = "yes" &&
30813 test "$tst_allow_closesocket_camel" = "yes"; then
30814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30815$as_echo "yes" >&6; }
30816
30817cat >>confdefs.h <<_ACEOF
30818#define HAVE_CLOSESOCKET_CAMEL 1
30819_ACEOF
30820
30821 curl_cv_func_closesocket_camel="yes"
30822 else
30823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30824$as_echo "no" >&6; }
30825 curl_cv_func_closesocket_camel="no"
30826 fi
30827
30828
30829 #
30830 tst_links_connect="unknown"
30831 tst_proto_connect="unknown"
30832 tst_compi_connect="unknown"
30833 tst_allow_connect="unknown"
30834 #
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
30836$as_echo_n "checking if connect can be linked... " >&6; }
30837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838/* end confdefs.h. */
30839
30840
30841 $curl_includes_winsock2
30842 $curl_includes_sys_socket
30843 $curl_includes_socket
30844
30845int main (void)
30846{
30847
30848 if(0 != connect(0, 0, 0))
30849 return 1;
30850
30851 ;
30852 return 0;
30853}
30854
30855_ACEOF
30856if ac_fn_c_try_link "$LINENO"; then :
30857
30858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30859$as_echo "yes" >&6; }
30860 tst_links_connect="yes"
30861
30862else
30863
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865$as_echo "no" >&6; }
30866 tst_links_connect="no"
30867
30868fi
30869rm -f core conftest.err conftest.$ac_objext \
30870 conftest$ac_exeext conftest.$ac_ext
30871 #
30872 if test "$tst_links_connect" = "yes"; then
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
30874$as_echo_n "checking if connect is prototyped... " >&6; }
30875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30876/* end confdefs.h. */
30877
30878 $curl_includes_winsock2
30879 $curl_includes_sys_socket
30880 $curl_includes_socket
30881
30882_ACEOF
30883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30884 $EGREP "connect" >/dev/null 2>&1; then :
30885
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30887$as_echo "yes" >&6; }
30888 tst_proto_connect="yes"
30889
30890else
30891
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30893$as_echo "no" >&6; }
30894 tst_proto_connect="no"
30895
30896fi
30897rm -f conftest*
30898
30899 fi
30900 #
30901 if test "$tst_proto_connect" = "yes"; then
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
30903$as_echo_n "checking if connect is compilable... " >&6; }
30904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30905/* end confdefs.h. */
30906
30907
30908 $curl_includes_winsock2
30909 $curl_includes_sys_socket
30910 $curl_includes_socket
30911
30912int main (void)
30913{
30914
30915 if(0 != connect(0, 0, 0))
30916 return 1;
30917
30918 ;
30919 return 0;
30920}
30921
30922_ACEOF
30923if ac_fn_c_try_compile "$LINENO"; then :
30924
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30926$as_echo "yes" >&6; }
30927 tst_compi_connect="yes"
30928
30929else
30930
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932$as_echo "no" >&6; }
30933 tst_compi_connect="no"
30934
30935fi
30936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30937 fi
30938 #
30939 if test "$tst_compi_connect" = "yes"; then
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
30941$as_echo_n "checking if connect usage allowed... " >&6; }
30942 if test "x$curl_disallow_connect" != "xyes"; then
30943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30944$as_echo "yes" >&6; }
30945 tst_allow_connect="yes"
30946 else
30947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30948$as_echo "no" >&6; }
30949 tst_allow_connect="no"
30950 fi
30951 fi
30952 #
30953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
30954$as_echo_n "checking if connect might be used... " >&6; }
30955 if test "$tst_links_connect" = "yes" &&
30956 test "$tst_proto_connect" = "yes" &&
30957 test "$tst_compi_connect" = "yes" &&
30958 test "$tst_allow_connect" = "yes"; then
30959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30960$as_echo "yes" >&6; }
30961
30962cat >>confdefs.h <<_ACEOF
30963#define HAVE_CONNECT 1
30964_ACEOF
30965
30966 curl_cv_func_connect="yes"
30967 else
30968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30969$as_echo "no" >&6; }
30970 curl_cv_func_connect="no"
30971 fi
30972
30973
30974curl_includes_fcntl="\
30975/* includes start */
30976#ifdef HAVE_SYS_TYPES_H
30977# include <sys/types.h>
30978#endif
30979#ifdef HAVE_UNISTD_H
30980# include <unistd.h>
30981#endif
30982#ifdef HAVE_FCNTL_H
30983# include <fcntl.h>
30984#endif
30985/* includes end */"
30986 for ac_header in sys/types.h unistd.h fcntl.h
30987do :
30988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30989ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
30990"
30991if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30992 cat >>confdefs.h <<_ACEOF
30993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30994_ACEOF
30995
30996fi
30997
30998done
30999
31000
31001
31002 #
31003 tst_links_fcntl="unknown"
31004 tst_proto_fcntl="unknown"
31005 tst_compi_fcntl="unknown"
31006 tst_allow_fcntl="unknown"
31007 #
31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31009$as_echo_n "checking if fcntl can be linked... " >&6; }
31010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31011/* end confdefs.h. */
31012
31013
31014#define fcntl innocuous_fcntl
31015#ifdef __STDC__
31016# include <limits.h>
31017#else
31018# include <assert.h>
31019#endif
31020#undef fcntl
31021#ifdef __cplusplus
31022extern "C"
31023#endif
31024char fcntl ();
31025#if defined __stub_fcntl || defined __stub___fcntl
31026choke me
31027#endif
31028
31029int main (void)
31030{
31031return fcntl ();
31032 ;
31033 return 0;
31034}
31035
31036_ACEOF
31037if ac_fn_c_try_link "$LINENO"; then :
31038
31039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31040$as_echo "yes" >&6; }
31041 tst_links_fcntl="yes"
31042
31043else
31044
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31046$as_echo "no" >&6; }
31047 tst_links_fcntl="no"
31048
31049fi
31050rm -f core conftest.err conftest.$ac_objext \
31051 conftest$ac_exeext conftest.$ac_ext
31052 #
31053 if test "$tst_links_fcntl" = "yes"; then
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31055$as_echo_n "checking if fcntl is prototyped... " >&6; }
31056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31057/* end confdefs.h. */
31058
31059 $curl_includes_fcntl
31060
31061_ACEOF
31062if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31063 $EGREP "fcntl" >/dev/null 2>&1; then :
31064
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31066$as_echo "yes" >&6; }
31067 tst_proto_fcntl="yes"
31068
31069else
31070
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31072$as_echo "no" >&6; }
31073 tst_proto_fcntl="no"
31074
31075fi
31076rm -f conftest*
31077
31078 fi
31079 #
31080 if test "$tst_proto_fcntl" = "yes"; then
31081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31082$as_echo_n "checking if fcntl is compilable... " >&6; }
31083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31084/* end confdefs.h. */
31085
31086
31087 $curl_includes_fcntl
31088
31089int main (void)
31090{
31091
31092 if(0 != fcntl(0, 0, 0))
31093 return 1;
31094
31095 ;
31096 return 0;
31097}
31098
31099_ACEOF
31100if ac_fn_c_try_compile "$LINENO"; then :
31101
31102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31103$as_echo "yes" >&6; }
31104 tst_compi_fcntl="yes"
31105
31106else
31107
31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31109$as_echo "no" >&6; }
31110 tst_compi_fcntl="no"
31111
31112fi
31113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31114 fi
31115 #
31116 if test "$tst_compi_fcntl" = "yes"; then
31117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31118$as_echo_n "checking if fcntl usage allowed... " >&6; }
31119 if test "x$curl_disallow_fcntl" != "xyes"; then
31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31121$as_echo "yes" >&6; }
31122 tst_allow_fcntl="yes"
31123 else
31124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31125$as_echo "no" >&6; }
31126 tst_allow_fcntl="no"
31127 fi
31128 fi
31129 #
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31131$as_echo_n "checking if fcntl might be used... " >&6; }
31132 if test "$tst_links_fcntl" = "yes" &&
31133 test "$tst_proto_fcntl" = "yes" &&
31134 test "$tst_compi_fcntl" = "yes" &&
31135 test "$tst_allow_fcntl" = "yes"; then
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31137$as_echo "yes" >&6; }
31138
31139cat >>confdefs.h <<_ACEOF
31140#define HAVE_FCNTL 1
31141_ACEOF
31142
31143 curl_cv_func_fcntl="yes"
31144
31145 #
31146 tst_compi_fcntl_o_nonblock="unknown"
31147 tst_allow_fcntl_o_nonblock="unknown"
31148 #
31149 case $host_os in
31150 sunos4* | aix3* | beos*)
31151 curl_disallow_fcntl_o_nonblock="yes"
31152 ;;
31153 esac
31154 #
31155 if test "$curl_cv_func_fcntl" = "yes"; then
31156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31157$as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31159/* end confdefs.h. */
31160
31161
31162 $curl_includes_fcntl
31163
31164int main (void)
31165{
31166
31167 int flags = 0;
31168 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31169 return 1;
31170
31171 ;
31172 return 0;
31173}
31174
31175_ACEOF
31176if ac_fn_c_try_compile "$LINENO"; then :
31177
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31179$as_echo "yes" >&6; }
31180 tst_compi_fcntl_o_nonblock="yes"
31181
31182else
31183
31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31185$as_echo "no" >&6; }
31186 tst_compi_fcntl_o_nonblock="no"
31187
31188fi
31189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31190 fi
31191 #
31192 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31194$as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31195 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31197$as_echo "yes" >&6; }
31198 tst_allow_fcntl_o_nonblock="yes"
31199 else
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31201$as_echo "no" >&6; }
31202 tst_allow_fcntl_o_nonblock="no"
31203 fi
31204 fi
31205 #
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31207$as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31208 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31209 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31211$as_echo "yes" >&6; }
31212
31213cat >>confdefs.h <<_ACEOF
31214#define HAVE_FCNTL_O_NONBLOCK 1
31215_ACEOF
31216
31217 curl_cv_func_fcntl_o_nonblock="yes"
31218 else
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31220$as_echo "no" >&6; }
31221 curl_cv_func_fcntl_o_nonblock="no"
31222 fi
31223
31224 else
31225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31226$as_echo "no" >&6; }
31227 curl_cv_func_fcntl="no"
31228 fi
31229
31230
31231curl_includes_stdio="\
31232/* includes start */
31233#ifdef HAVE_SYS_TYPES_H
31234# include <sys/types.h>
31235#endif
31236#ifdef HAVE_STDIO_H
31237# include <stdio.h>
31238#endif
31239/* includes end */"
31240 for ac_header in sys/types.h stdio.h
31241do :
31242 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31243ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31244"
31245if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31246 cat >>confdefs.h <<_ACEOF
31247#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31248_ACEOF
31249
31250fi
31251
31252done
31253
31254
31255
31256 #
31257 tst_links_fdopen="unknown"
31258 tst_proto_fdopen="unknown"
31259 tst_compi_fdopen="unknown"
31260 tst_allow_fdopen="unknown"
31261 #
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31263$as_echo_n "checking if fdopen can be linked... " >&6; }
31264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31265/* end confdefs.h. */
31266
31267
31268#define fdopen innocuous_fdopen
31269#ifdef __STDC__
31270# include <limits.h>
31271#else
31272# include <assert.h>
31273#endif
31274#undef fdopen
31275#ifdef __cplusplus
31276extern "C"
31277#endif
31278char fdopen ();
31279#if defined __stub_fdopen || defined __stub___fdopen
31280choke me
31281#endif
31282
31283int main (void)
31284{
31285return fdopen ();
31286 ;
31287 return 0;
31288}
31289
31290_ACEOF
31291if ac_fn_c_try_link "$LINENO"; then :
31292
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31294$as_echo "yes" >&6; }
31295 tst_links_fdopen="yes"
31296
31297else
31298
31299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31300$as_echo "no" >&6; }
31301 tst_links_fdopen="no"
31302
31303fi
31304rm -f core conftest.err conftest.$ac_objext \
31305 conftest$ac_exeext conftest.$ac_ext
31306 #
31307 if test "$tst_links_fdopen" = "yes"; then
31308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31309$as_echo_n "checking if fdopen is prototyped... " >&6; }
31310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31311/* end confdefs.h. */
31312
31313 $curl_includes_stdio
31314
31315_ACEOF
31316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31317 $EGREP "fdopen" >/dev/null 2>&1; then :
31318
31319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31320$as_echo "yes" >&6; }
31321 tst_proto_fdopen="yes"
31322
31323else
31324
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31326$as_echo "no" >&6; }
31327 tst_proto_fdopen="no"
31328
31329fi
31330rm -f conftest*
31331
31332 fi
31333 #
31334 if test "$tst_proto_fdopen" = "yes"; then
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31336$as_echo_n "checking if fdopen is compilable... " >&6; }
31337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338/* end confdefs.h. */
31339
31340
31341 $curl_includes_stdio
31342
31343int main (void)
31344{
31345
31346 if(0 != fdopen(0, 0))
31347 return 1;
31348
31349 ;
31350 return 0;
31351}
31352
31353_ACEOF
31354if ac_fn_c_try_compile "$LINENO"; then :
31355
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31357$as_echo "yes" >&6; }
31358 tst_compi_fdopen="yes"
31359
31360else
31361
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31363$as_echo "no" >&6; }
31364 tst_compi_fdopen="no"
31365
31366fi
31367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31368 fi
31369 #
31370 if test "$tst_compi_fdopen" = "yes"; then
31371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31372$as_echo_n "checking if fdopen usage allowed... " >&6; }
31373 if test "x$curl_disallow_fdopen" != "xyes"; then
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31375$as_echo "yes" >&6; }
31376 tst_allow_fdopen="yes"
31377 else
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379$as_echo "no" >&6; }
31380 tst_allow_fdopen="no"
31381 fi
31382 fi
31383 #
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31385$as_echo_n "checking if fdopen might be used... " >&6; }
31386 if test "$tst_links_fdopen" = "yes" &&
31387 test "$tst_proto_fdopen" = "yes" &&
31388 test "$tst_compi_fdopen" = "yes" &&
31389 test "$tst_allow_fdopen" = "yes"; then
31390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31391$as_echo "yes" >&6; }
31392
31393cat >>confdefs.h <<_ACEOF
31394#define HAVE_FDOPEN 1
31395_ACEOF
31396
31397 curl_cv_func_fdopen="yes"
31398 else
31399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31400$as_echo "no" >&6; }
31401 curl_cv_func_fdopen="no"
31402 fi
31403
31404
Elliott Hughesa93fb052018-12-12 14:22:48 -080031405curl_includes_ws2tcpip="\
31406/* includes start */
31407#ifdef HAVE_WINDOWS_H
31408# ifndef WIN32_LEAN_AND_MEAN
31409# define WIN32_LEAN_AND_MEAN
31410# endif
31411# include <windows.h>
31412# ifdef HAVE_WINSOCK2_H
31413# include <winsock2.h>
31414# ifdef HAVE_WS2TCPIP_H
31415# include <ws2tcpip.h>
31416# endif
31417# endif
31418#endif
31419/* includes end */"
31420
31421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
31422$as_echo_n "checking for windows.h... " >&6; }
31423if ${curl_cv_header_windows_h+:} false; then :
31424 $as_echo_n "(cached) " >&6
31425else
31426
31427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31428/* end confdefs.h. */
31429
31430
31431#undef inline
31432#ifndef WIN32_LEAN_AND_MEAN
31433#define WIN32_LEAN_AND_MEAN
31434#endif
31435#include <windows.h>
31436
31437int main (void)
31438{
31439
31440#if defined(__CYGWIN__) || defined(__CEGCC__)
31441 HAVE_WINDOWS_H shall not be defined.
31442#else
31443 int dummy=2*WINVER;
31444#endif
31445
31446 ;
31447 return 0;
31448}
31449
31450_ACEOF
31451if ac_fn_c_try_compile "$LINENO"; then :
31452
31453 curl_cv_header_windows_h="yes"
31454
31455else
31456
31457 curl_cv_header_windows_h="no"
31458
31459fi
31460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31461
31462fi
31463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
31464$as_echo "$curl_cv_header_windows_h" >&6; }
31465 case "$curl_cv_header_windows_h" in
31466 yes)
31467
31468cat >>confdefs.h <<_ACEOF
31469#define HAVE_WINDOWS_H 1
31470_ACEOF
31471
31472 ;;
31473 esac
31474
31475
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
31477$as_echo_n "checking for winsock2.h... " >&6; }
31478if ${curl_cv_header_winsock2_h+:} false; then :
31479 $as_echo_n "(cached) " >&6
31480else
31481
31482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31483/* end confdefs.h. */
31484
31485
31486#undef inline
31487#ifndef WIN32_LEAN_AND_MEAN
31488#define WIN32_LEAN_AND_MEAN
31489#endif
31490#include <windows.h>
31491#include <winsock2.h>
31492
31493int main (void)
31494{
31495
31496#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31497 HAVE_WINSOCK2_H shall not be defined.
31498#else
31499 int dummy=2*IPPROTO_ESP;
31500#endif
31501
31502 ;
31503 return 0;
31504}
31505
31506_ACEOF
31507if ac_fn_c_try_compile "$LINENO"; then :
31508
31509 curl_cv_header_winsock2_h="yes"
31510
31511else
31512
31513 curl_cv_header_winsock2_h="no"
31514
31515fi
31516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31517
31518fi
31519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
31520$as_echo "$curl_cv_header_winsock2_h" >&6; }
31521 case "$curl_cv_header_winsock2_h" in
31522 yes)
31523
31524cat >>confdefs.h <<_ACEOF
31525#define HAVE_WINSOCK2_H 1
31526_ACEOF
31527
31528 ;;
31529 esac
31530
31531
31532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
31533$as_echo_n "checking for ws2tcpip.h... " >&6; }
31534if ${curl_cv_header_ws2tcpip_h+:} false; then :
31535 $as_echo_n "(cached) " >&6
31536else
31537
31538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31539/* end confdefs.h. */
31540
31541
31542#undef inline
31543#ifndef WIN32_LEAN_AND_MEAN
31544#define WIN32_LEAN_AND_MEAN
31545#endif
31546#include <windows.h>
31547#include <winsock2.h>
31548#include <ws2tcpip.h>
31549
31550int main (void)
31551{
31552
31553#if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
31554 HAVE_WS2TCPIP_H shall not be defined.
31555#else
31556 int dummy=2*IP_PKTINFO;
31557#endif
31558
31559 ;
31560 return 0;
31561}
31562
31563_ACEOF
31564if ac_fn_c_try_compile "$LINENO"; then :
31565
31566 curl_cv_header_ws2tcpip_h="yes"
31567
31568else
31569
31570 curl_cv_header_ws2tcpip_h="no"
31571
31572fi
31573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31574
31575fi
31576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
31577$as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
31578 case "$curl_cv_header_ws2tcpip_h" in
31579 yes)
31580
31581cat >>confdefs.h <<_ACEOF
31582#define HAVE_WS2TCPIP_H 1
31583_ACEOF
31584
31585 ;;
31586 esac
31587
31588
31589
Elliott Hughes82be86d2017-09-20 17:00:17 -070031590curl_includes_netdb="\
31591/* includes start */
31592#ifdef HAVE_SYS_TYPES_H
31593# include <sys/types.h>
31594#endif
31595#ifdef HAVE_NETDB_H
31596# include <netdb.h>
31597#endif
31598/* includes end */"
31599 for ac_header in sys/types.h netdb.h
31600do :
31601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31602ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31603"
31604if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31605 cat >>confdefs.h <<_ACEOF
31606#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31607_ACEOF
31608
31609fi
31610
31611done
31612
31613
31614
31615 #
31616 tst_links_freeaddrinfo="unknown"
31617 tst_proto_freeaddrinfo="unknown"
31618 tst_compi_freeaddrinfo="unknown"
31619 tst_allow_freeaddrinfo="unknown"
31620 #
31621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31622$as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31624/* end confdefs.h. */
31625
31626
31627 $curl_includes_ws2tcpip
31628 $curl_includes_sys_socket
31629 $curl_includes_netdb
31630
31631int main (void)
31632{
31633
31634 freeaddrinfo(0);
31635
31636 ;
31637 return 0;
31638}
31639
31640_ACEOF
31641if ac_fn_c_try_link "$LINENO"; then :
31642
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31644$as_echo "yes" >&6; }
31645 tst_links_freeaddrinfo="yes"
31646
31647else
31648
31649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31650$as_echo "no" >&6; }
31651 tst_links_freeaddrinfo="no"
31652
31653fi
31654rm -f core conftest.err conftest.$ac_objext \
31655 conftest$ac_exeext conftest.$ac_ext
31656 #
31657 if test "$tst_links_freeaddrinfo" = "yes"; then
31658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31659$as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31661/* end confdefs.h. */
31662
31663 $curl_includes_ws2tcpip
31664 $curl_includes_sys_socket
31665 $curl_includes_netdb
31666
31667_ACEOF
31668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31669 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31670
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31672$as_echo "yes" >&6; }
31673 tst_proto_freeaddrinfo="yes"
31674
31675else
31676
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678$as_echo "no" >&6; }
31679 tst_proto_freeaddrinfo="no"
31680
31681fi
31682rm -f conftest*
31683
31684 fi
31685 #
31686 if test "$tst_proto_freeaddrinfo" = "yes"; then
31687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31688$as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31690/* end confdefs.h. */
31691
31692
31693 $curl_includes_ws2tcpip
31694 $curl_includes_sys_socket
31695 $curl_includes_netdb
31696
31697int main (void)
31698{
31699
31700 freeaddrinfo(0);
31701
31702 ;
31703 return 0;
31704}
31705
31706_ACEOF
31707if ac_fn_c_try_compile "$LINENO"; then :
31708
31709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31710$as_echo "yes" >&6; }
31711 tst_compi_freeaddrinfo="yes"
31712
31713else
31714
31715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31716$as_echo "no" >&6; }
31717 tst_compi_freeaddrinfo="no"
31718
31719fi
31720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31721 fi
31722 #
31723 if test "$tst_compi_freeaddrinfo" = "yes"; then
31724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31725$as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31726 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31728$as_echo "yes" >&6; }
31729 tst_allow_freeaddrinfo="yes"
31730 else
31731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31732$as_echo "no" >&6; }
31733 tst_allow_freeaddrinfo="no"
31734 fi
31735 fi
31736 #
31737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31738$as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31739 if test "$tst_links_freeaddrinfo" = "yes" &&
31740 test "$tst_proto_freeaddrinfo" = "yes" &&
31741 test "$tst_compi_freeaddrinfo" = "yes" &&
31742 test "$tst_allow_freeaddrinfo" = "yes"; then
31743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31744$as_echo "yes" >&6; }
31745
31746cat >>confdefs.h <<_ACEOF
31747#define HAVE_FREEADDRINFO 1
31748_ACEOF
31749
31750 curl_cv_func_freeaddrinfo="yes"
31751 else
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31753$as_echo "no" >&6; }
31754 curl_cv_func_freeaddrinfo="no"
31755 fi
31756
31757
31758curl_includes_ifaddrs="\
31759/* includes start */
31760#ifdef HAVE_SYS_TYPES_H
31761# include <sys/types.h>
31762#endif
31763#ifdef HAVE_SYS_SOCKET_H
31764# include <sys/socket.h>
31765#endif
31766#ifdef HAVE_NETINET_IN_H
31767# include <netinet/in.h>
31768#endif
31769#ifdef HAVE_IFADDRS_H
31770# include <ifaddrs.h>
31771#endif
31772/* includes end */"
31773 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31774do :
31775 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31776ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31777"
31778if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31779 cat >>confdefs.h <<_ACEOF
31780#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31781_ACEOF
31782
31783fi
31784
31785done
31786
31787
31788
31789 #
31790 tst_links_freeifaddrs="unknown"
31791 tst_proto_freeifaddrs="unknown"
31792 tst_compi_freeifaddrs="unknown"
31793 tst_allow_freeifaddrs="unknown"
31794 #
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31796$as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31798/* end confdefs.h. */
31799
31800
31801#define freeifaddrs innocuous_freeifaddrs
31802#ifdef __STDC__
31803# include <limits.h>
31804#else
31805# include <assert.h>
31806#endif
31807#undef freeifaddrs
31808#ifdef __cplusplus
31809extern "C"
31810#endif
31811char freeifaddrs ();
31812#if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31813choke me
31814#endif
31815
31816int main (void)
31817{
31818return freeifaddrs ();
31819 ;
31820 return 0;
31821}
31822
31823_ACEOF
31824if ac_fn_c_try_link "$LINENO"; then :
31825
31826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31827$as_echo "yes" >&6; }
31828 tst_links_freeifaddrs="yes"
31829
31830else
31831
31832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31833$as_echo "no" >&6; }
31834 tst_links_freeifaddrs="no"
31835
31836fi
31837rm -f core conftest.err conftest.$ac_objext \
31838 conftest$ac_exeext conftest.$ac_ext
31839 #
31840 if test "$tst_links_freeifaddrs" = "yes"; then
31841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31842$as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31844/* end confdefs.h. */
31845
31846 $curl_includes_ifaddrs
31847
31848_ACEOF
31849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31850 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31851
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31853$as_echo "yes" >&6; }
31854 tst_proto_freeifaddrs="yes"
31855
31856else
31857
31858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31859$as_echo "no" >&6; }
31860 tst_proto_freeifaddrs="no"
31861
31862fi
31863rm -f conftest*
31864
31865 fi
31866 #
31867 if test "$tst_proto_freeifaddrs" = "yes"; then
31868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31869$as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31871/* end confdefs.h. */
31872
31873
31874 $curl_includes_ifaddrs
31875
31876int main (void)
31877{
31878
31879 freeifaddrs(0);
31880
31881 ;
31882 return 0;
31883}
31884
31885_ACEOF
31886if ac_fn_c_try_compile "$LINENO"; then :
31887
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31889$as_echo "yes" >&6; }
31890 tst_compi_freeifaddrs="yes"
31891
31892else
31893
31894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31895$as_echo "no" >&6; }
31896 tst_compi_freeifaddrs="no"
31897
31898fi
31899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31900 fi
31901 #
31902 if test "$tst_compi_freeifaddrs" = "yes"; then
31903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
31904$as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
31905 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
31906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31907$as_echo "yes" >&6; }
31908 tst_allow_freeifaddrs="yes"
31909 else
31910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31911$as_echo "no" >&6; }
31912 tst_allow_freeifaddrs="no"
31913 fi
31914 fi
31915 #
31916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
31917$as_echo_n "checking if freeifaddrs might be used... " >&6; }
31918 if test "$tst_links_freeifaddrs" = "yes" &&
31919 test "$tst_proto_freeifaddrs" = "yes" &&
31920 test "$tst_compi_freeifaddrs" = "yes" &&
31921 test "$tst_allow_freeifaddrs" = "yes"; then
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31923$as_echo "yes" >&6; }
31924
31925cat >>confdefs.h <<_ACEOF
31926#define HAVE_FREEIFADDRS 1
31927_ACEOF
31928
31929 curl_cv_func_freeifaddrs="yes"
31930 else
31931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31932$as_echo "no" >&6; }
31933 curl_cv_func_freeifaddrs="no"
31934 fi
31935
31936
31937curl_includes_sys_xattr="\
31938/* includes start */
31939#ifdef HAVE_SYS_TYPES_H
31940# include <sys/types.h>
31941#endif
31942#ifdef HAVE_SYS_XATTR_H
31943# include <sys/xattr.h>
31944#endif
31945/* includes end */"
31946 for ac_header in sys/types.h sys/xattr.h
31947do :
31948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31949ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
31950"
31951if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31952 cat >>confdefs.h <<_ACEOF
31953#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31954_ACEOF
31955
31956fi
31957
31958done
31959
31960
31961
31962 #
31963 tst_links_fsetxattr="unknown"
31964 tst_proto_fsetxattr="unknown"
31965 tst_compi_fsetxattr="unknown"
31966 tst_allow_fsetxattr="unknown"
31967 tst_nargs_fsetxattr="unknown"
31968 #
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
31970$as_echo_n "checking if fsetxattr can be linked... " >&6; }
31971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31972/* end confdefs.h. */
31973
31974
31975#define fsetxattr innocuous_fsetxattr
31976#ifdef __STDC__
31977# include <limits.h>
31978#else
31979# include <assert.h>
31980#endif
31981#undef fsetxattr
31982#ifdef __cplusplus
31983extern "C"
31984#endif
31985char fsetxattr ();
31986#if defined __stub_fsetxattr || defined __stub___fsetxattr
31987choke me
31988#endif
31989
31990int main (void)
31991{
31992return fsetxattr ();
31993 ;
31994 return 0;
31995}
31996
31997_ACEOF
31998if ac_fn_c_try_link "$LINENO"; then :
31999
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32001$as_echo "yes" >&6; }
32002 tst_links_fsetxattr="yes"
32003
32004else
32005
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32007$as_echo "no" >&6; }
32008 tst_links_fsetxattr="no"
32009
32010fi
32011rm -f core conftest.err conftest.$ac_objext \
32012 conftest$ac_exeext conftest.$ac_ext
32013 #
32014 if test "$tst_links_fsetxattr" = "yes"; then
32015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32016$as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32018/* end confdefs.h. */
32019
32020 $curl_includes_sys_xattr
32021
32022_ACEOF
32023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32024 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32025
32026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32027$as_echo "yes" >&6; }
32028 tst_proto_fsetxattr="yes"
32029
32030else
32031
32032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32033$as_echo "no" >&6; }
32034 tst_proto_fsetxattr="no"
32035
32036fi
32037rm -f conftest*
32038
32039 fi
32040 #
32041 if test "$tst_proto_fsetxattr" = "yes"; then
32042 if test "$tst_nargs_fsetxattr" = "unknown"; then
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32044$as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32046/* end confdefs.h. */
32047
32048
32049 $curl_includes_sys_xattr
32050
32051int main (void)
32052{
32053
32054 if(0 != fsetxattr(0, 0, 0, 0, 0))
32055 return 1;
32056
32057 ;
32058 return 0;
32059}
32060
32061_ACEOF
32062if ac_fn_c_try_compile "$LINENO"; then :
32063
32064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32065$as_echo "yes" >&6; }
32066 tst_compi_fsetxattr="yes"
32067 tst_nargs_fsetxattr="5"
32068
32069else
32070
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32072$as_echo "no" >&6; }
32073 tst_compi_fsetxattr="no"
32074
32075fi
32076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32077 fi
32078 if test "$tst_nargs_fsetxattr" = "unknown"; then
32079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32080$as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32082/* end confdefs.h. */
32083
32084
32085 $curl_includes_sys_xattr
32086
32087int main (void)
32088{
32089
32090 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32091 return 1;
32092
32093 ;
32094 return 0;
32095}
32096
32097_ACEOF
32098if ac_fn_c_try_compile "$LINENO"; then :
32099
32100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32101$as_echo "yes" >&6; }
32102 tst_compi_fsetxattr="yes"
32103 tst_nargs_fsetxattr="6"
32104
32105else
32106
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32108$as_echo "no" >&6; }
32109 tst_compi_fsetxattr="no"
32110
32111fi
32112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32113 fi
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32115$as_echo_n "checking if fsetxattr is compilable... " >&6; }
32116 if test "$tst_compi_fsetxattr" = "yes"; then
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32118$as_echo "yes" >&6; }
32119 else
32120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32121$as_echo "no" >&6; }
32122 fi
32123 fi
32124 #
32125 if test "$tst_compi_fsetxattr" = "yes"; then
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32127$as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32128 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32130$as_echo "yes" >&6; }
32131 tst_allow_fsetxattr="yes"
32132 else
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32134$as_echo "no" >&6; }
32135 tst_allow_fsetxattr="no"
32136 fi
32137 fi
32138 #
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32140$as_echo_n "checking if fsetxattr might be used... " >&6; }
32141 if test "$tst_links_fsetxattr" = "yes" &&
32142 test "$tst_proto_fsetxattr" = "yes" &&
32143 test "$tst_compi_fsetxattr" = "yes" &&
32144 test "$tst_allow_fsetxattr" = "yes"; then
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32146$as_echo "yes" >&6; }
32147
32148cat >>confdefs.h <<_ACEOF
32149#define HAVE_FSETXATTR 1
32150_ACEOF
32151
32152 #
32153 if test "$tst_nargs_fsetxattr" -eq "5"; then
32154
32155$as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32156
32157 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32158
32159$as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32160
32161 fi
32162 #
32163 curl_cv_func_fsetxattr="yes"
32164 else
32165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32166$as_echo "no" >&6; }
32167 curl_cv_func_fsetxattr="no"
32168 fi
32169
32170
32171 #
32172 tst_links_ftruncate="unknown"
32173 tst_proto_ftruncate="unknown"
32174 tst_compi_ftruncate="unknown"
32175 tst_allow_ftruncate="unknown"
32176 #
32177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32178$as_echo_n "checking if ftruncate can be linked... " >&6; }
32179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32180/* end confdefs.h. */
32181
32182
32183#define ftruncate innocuous_ftruncate
32184#ifdef __STDC__
32185# include <limits.h>
32186#else
32187# include <assert.h>
32188#endif
32189#undef ftruncate
32190#ifdef __cplusplus
32191extern "C"
32192#endif
32193char ftruncate ();
32194#if defined __stub_ftruncate || defined __stub___ftruncate
32195choke me
32196#endif
32197
32198int main (void)
32199{
32200return ftruncate ();
32201 ;
32202 return 0;
32203}
32204
32205_ACEOF
32206if ac_fn_c_try_link "$LINENO"; then :
32207
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32209$as_echo "yes" >&6; }
32210 tst_links_ftruncate="yes"
32211
32212else
32213
32214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32215$as_echo "no" >&6; }
32216 tst_links_ftruncate="no"
32217
32218fi
32219rm -f core conftest.err conftest.$ac_objext \
32220 conftest$ac_exeext conftest.$ac_ext
32221 #
32222 if test "$tst_links_ftruncate" = "yes"; then
32223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32224$as_echo_n "checking if ftruncate is prototyped... " >&6; }
32225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32226/* end confdefs.h. */
32227
32228 $curl_includes_unistd
32229
32230_ACEOF
32231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32232 $EGREP "ftruncate" >/dev/null 2>&1; then :
32233
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32235$as_echo "yes" >&6; }
32236 tst_proto_ftruncate="yes"
32237
32238else
32239
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32241$as_echo "no" >&6; }
32242 tst_proto_ftruncate="no"
32243
32244fi
32245rm -f conftest*
32246
32247 fi
32248 #
32249 if test "$tst_proto_ftruncate" = "yes"; then
32250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32251$as_echo_n "checking if ftruncate is compilable... " >&6; }
32252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32253/* end confdefs.h. */
32254
32255
32256 $curl_includes_unistd
32257
32258int main (void)
32259{
32260
32261 if(0 != ftruncate(0, 0))
32262 return 1;
32263
32264 ;
32265 return 0;
32266}
32267
32268_ACEOF
32269if ac_fn_c_try_compile "$LINENO"; then :
32270
32271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32272$as_echo "yes" >&6; }
32273 tst_compi_ftruncate="yes"
32274
32275else
32276
32277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32278$as_echo "no" >&6; }
32279 tst_compi_ftruncate="no"
32280
32281fi
32282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32283 fi
32284 #
32285 if test "$tst_compi_ftruncate" = "yes"; then
32286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32287$as_echo_n "checking if ftruncate usage allowed... " >&6; }
32288 if test "x$curl_disallow_ftruncate" != "xyes"; then
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32290$as_echo "yes" >&6; }
32291 tst_allow_ftruncate="yes"
32292 else
32293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32294$as_echo "no" >&6; }
32295 tst_allow_ftruncate="no"
32296 fi
32297 fi
32298 #
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32300$as_echo_n "checking if ftruncate might be used... " >&6; }
32301 if test "$tst_links_ftruncate" = "yes" &&
32302 test "$tst_proto_ftruncate" = "yes" &&
32303 test "$tst_compi_ftruncate" = "yes" &&
32304 test "$tst_allow_ftruncate" = "yes"; then
32305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32306$as_echo "yes" >&6; }
32307
32308cat >>confdefs.h <<_ACEOF
32309#define HAVE_FTRUNCATE 1
32310_ACEOF
32311
32312 curl_cv_func_ftruncate="yes"
32313 else
32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32315$as_echo "no" >&6; }
32316 curl_cv_func_ftruncate="no"
32317 fi
32318
32319
32320curl_includes_stdlib="\
32321/* includes start */
32322#ifdef HAVE_SYS_TYPES_H
32323# include <sys/types.h>
32324#endif
32325#ifdef HAVE_STDLIB_H
32326# include <stdlib.h>
32327#endif
32328/* includes end */"
32329 for ac_header in sys/types.h stdlib.h
32330do :
32331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32332ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32333"
32334if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32335 cat >>confdefs.h <<_ACEOF
32336#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32337_ACEOF
32338
32339fi
32340
32341done
32342
32343
32344
32345 #
32346 tst_links_getaddrinfo="unknown"
32347 tst_proto_getaddrinfo="unknown"
32348 tst_compi_getaddrinfo="unknown"
32349 tst_works_getaddrinfo="unknown"
32350 tst_allow_getaddrinfo="unknown"
32351 tst_tsafe_getaddrinfo="unknown"
32352 #
32353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32354$as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32356/* end confdefs.h. */
32357
32358
32359 $curl_includes_ws2tcpip
32360 $curl_includes_sys_socket
32361 $curl_includes_netdb
32362
32363int main (void)
32364{
32365
32366 if(0 != getaddrinfo(0, 0, 0, 0))
32367 return 1;
32368
32369 ;
32370 return 0;
32371}
32372
32373_ACEOF
32374if ac_fn_c_try_link "$LINENO"; then :
32375
32376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32377$as_echo "yes" >&6; }
32378 tst_links_getaddrinfo="yes"
32379
32380else
32381
32382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32383$as_echo "no" >&6; }
32384 tst_links_getaddrinfo="no"
32385
32386fi
32387rm -f core conftest.err conftest.$ac_objext \
32388 conftest$ac_exeext conftest.$ac_ext
32389 #
32390 if test "$tst_links_getaddrinfo" = "yes"; then
32391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32392$as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32394/* end confdefs.h. */
32395
32396 $curl_includes_ws2tcpip
32397 $curl_includes_sys_socket
32398 $curl_includes_netdb
32399
32400_ACEOF
32401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32402 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32403
32404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32405$as_echo "yes" >&6; }
32406 tst_proto_getaddrinfo="yes"
32407
32408else
32409
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32411$as_echo "no" >&6; }
32412 tst_proto_getaddrinfo="no"
32413
32414fi
32415rm -f conftest*
32416
32417 fi
32418 #
32419 if test "$tst_proto_getaddrinfo" = "yes"; then
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32421$as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32423/* end confdefs.h. */
32424
32425
32426 $curl_includes_ws2tcpip
32427 $curl_includes_sys_socket
32428 $curl_includes_netdb
32429
32430int main (void)
32431{
32432
32433 if(0 != getaddrinfo(0, 0, 0, 0))
32434 return 1;
32435
32436 ;
32437 return 0;
32438}
32439
32440_ACEOF
32441if ac_fn_c_try_compile "$LINENO"; then :
32442
32443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32444$as_echo "yes" >&6; }
32445 tst_compi_getaddrinfo="yes"
32446
32447else
32448
32449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32450$as_echo "no" >&6; }
32451 tst_compi_getaddrinfo="no"
32452
32453fi
32454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32455 fi
32456 #
32457 if test "x$cross_compiling" != "xyes" &&
32458 test "$tst_compi_getaddrinfo" = "yes"; then
32459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32460$as_echo_n "checking if getaddrinfo seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080032461
32462
32463 old=$LD_LIBRARY_PATH
32464 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
32465 export LD_LIBRARY_PATH
32466 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070032467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32469as_fn_error $? "cannot run test program while cross compiling
32470See \`config.log' for more details" "$LINENO" 5; }
32471else
32472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32473/* end confdefs.h. */
32474
32475
32476 $curl_includes_ws2tcpip
32477 $curl_includes_stdlib
32478 $curl_includes_string
32479 $curl_includes_sys_socket
32480 $curl_includes_netdb
32481
32482int main (void)
32483{
32484
32485 struct addrinfo hints;
32486 struct addrinfo *ai = 0;
32487 int error;
32488
32489 #ifdef HAVE_WINSOCK2_H
32490 WSADATA wsa;
32491 if (WSAStartup(MAKEWORD(2,2), &wsa))
32492 exit(2);
32493 #endif
32494
32495 memset(&hints, 0, sizeof(hints));
32496 hints.ai_flags = AI_NUMERICHOST;
32497 hints.ai_family = AF_UNSPEC;
32498 hints.ai_socktype = SOCK_STREAM;
32499 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32500 if(error || !ai)
32501 exit(1); /* fail */
32502 else
32503 exit(0);
32504
32505 ;
32506 return 0;
32507}
32508
32509_ACEOF
32510if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080032511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032512$as_echo "yes" >&6; }
32513 tst_works_getaddrinfo="yes"
32514
32515else
Elliott Hughesa93fb052018-12-12 14:22:48 -080032516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070032517$as_echo "no" >&6; }
32518 tst_works_getaddrinfo="no"
32519
32520fi
32521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32522 conftest.$ac_objext conftest.beam conftest.$ac_ext
32523fi
32524
Elliott Hughesa93fb052018-12-12 14:22:48 -080032525 LD_LIBRARY_PATH=$old # restore
32526
Elliott Hughes82be86d2017-09-20 17:00:17 -070032527 fi
32528 #
32529 if test "$tst_compi_getaddrinfo" = "yes" &&
32530 test "$tst_works_getaddrinfo" != "no"; then
32531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32532$as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32533 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32535$as_echo "yes" >&6; }
32536 tst_allow_getaddrinfo="yes"
32537 else
32538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32539$as_echo "no" >&6; }
32540 tst_allow_getaddrinfo="no"
32541 fi
32542 fi
32543 #
32544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32545$as_echo_n "checking if getaddrinfo might be used... " >&6; }
32546 if test "$tst_links_getaddrinfo" = "yes" &&
32547 test "$tst_proto_getaddrinfo" = "yes" &&
32548 test "$tst_compi_getaddrinfo" = "yes" &&
32549 test "$tst_allow_getaddrinfo" = "yes" &&
32550 test "$tst_works_getaddrinfo" != "no"; then
32551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32552$as_echo "yes" >&6; }
32553
32554cat >>confdefs.h <<_ACEOF
32555#define HAVE_GETADDRINFO 1
32556_ACEOF
32557
32558 curl_cv_func_getaddrinfo="yes"
32559 else
32560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32561$as_echo "no" >&6; }
32562 curl_cv_func_getaddrinfo="no"
32563 curl_cv_func_getaddrinfo_threadsafe="no"
32564 fi
32565 #
32566 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32568$as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32569 case $host_os in
32570 aix[1234].* | aix5.[01].*)
32571 tst_tsafe_getaddrinfo="no"
32572 ;;
32573 aix*)
32574 tst_tsafe_getaddrinfo="yes"
32575 ;;
32576 darwin[12345].*)
32577 tst_tsafe_getaddrinfo="no"
32578 ;;
32579 darwin*)
32580 tst_tsafe_getaddrinfo="yes"
32581 ;;
32582 freebsd[1234].* | freebsd5.[1234]*)
32583 tst_tsafe_getaddrinfo="no"
32584 ;;
32585 freebsd*)
32586 tst_tsafe_getaddrinfo="yes"
32587 ;;
32588 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32589 tst_tsafe_getaddrinfo="no"
32590 ;;
32591 hpux*)
32592 tst_tsafe_getaddrinfo="yes"
32593 ;;
32594 netbsd[123].*)
32595 tst_tsafe_getaddrinfo="no"
32596 ;;
32597 netbsd*)
32598 tst_tsafe_getaddrinfo="yes"
32599 ;;
32600 *bsd*)
32601 tst_tsafe_getaddrinfo="no"
32602 ;;
32603 solaris2*)
32604 tst_tsafe_getaddrinfo="yes"
32605 ;;
32606 esac
32607 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32608 test "$curl_cv_native_windows" = "yes"; then
32609 tst_tsafe_getaddrinfo="yes"
32610 fi
32611 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32612
32613
32614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32615/* end confdefs.h. */
32616
32617
32618 $curl_includes_sys_socket
32619 $curl_includes_netdb
32620
32621int main (void)
32622{
32623#ifdef h_errno
32624 return 0;
32625#else
32626 force compilation error
32627#endif
32628}
32629
32630
32631_ACEOF
32632if ac_fn_c_try_compile "$LINENO"; then :
32633
32634 tst_symbol_defined="yes"
32635
32636else
32637
32638 tst_symbol_defined="no"
32639
32640fi
32641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32642 if test "$tst_symbol_defined" = "yes"; then
32643 curl_cv_have_def_h_errno=yes
32644
32645 else
32646 curl_cv_have_def_h_errno=no
32647
32648 fi
32649
32650 if test "$curl_cv_have_def_h_errno" = "yes"; then
32651 tst_h_errno_macro="yes"
32652 else
32653 tst_h_errno_macro="no"
32654 fi
32655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32656/* end confdefs.h. */
32657
32658
32659 $curl_includes_sys_socket
32660 $curl_includes_netdb
32661
32662int main (void)
32663{
32664
32665 h_errno = 2;
32666 if(0 != h_errno)
32667 return 1;
32668
32669 ;
32670 return 0;
32671}
32672
32673_ACEOF
32674if ac_fn_c_try_compile "$LINENO"; then :
32675
32676 tst_h_errno_modifiable_lvalue="yes"
32677
32678else
32679
32680 tst_h_errno_modifiable_lvalue="no"
32681
32682fi
32683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32685/* end confdefs.h. */
32686
32687
32688
32689int main (void)
32690{
32691
32692#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32693 return 0;
32694#elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32695 return 0;
32696#else
32697 force compilation error
32698#endif
32699
32700 ;
32701 return 0;
32702}
32703
32704_ACEOF
32705if ac_fn_c_try_compile "$LINENO"; then :
32706
32707 tst_h_errno_sbs_issue_7="yes"
32708
32709else
32710
32711 tst_h_errno_sbs_issue_7="no"
32712
32713fi
32714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32715 if test "$tst_h_errno_macro" = "no" &&
32716 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32717 test "$tst_h_errno_sbs_issue_7" = "no"; then
32718 tst_tsafe_getaddrinfo="no"
32719 else
32720 tst_tsafe_getaddrinfo="yes"
32721 fi
32722 fi
32723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32724$as_echo "$tst_tsafe_getaddrinfo" >&6; }
32725 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32726
32727cat >>confdefs.h <<_ACEOF
32728#define HAVE_GETADDRINFO_THREADSAFE 1
32729_ACEOF
32730
32731 curl_cv_func_getaddrinfo_threadsafe="yes"
32732 else
32733 curl_cv_func_getaddrinfo_threadsafe="no"
32734 fi
32735 fi
32736
32737
32738 #
32739 tst_links_gai_strerror="unknown"
32740 tst_proto_gai_strerror="unknown"
32741 tst_compi_gai_strerror="unknown"
32742 tst_allow_gai_strerror="unknown"
32743 #
32744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32745$as_echo_n "checking if gai_strerror can be linked... " >&6; }
32746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32747/* end confdefs.h. */
32748
32749
32750 $curl_includes_winsock2
32751 $curl_includes_netdb
32752
32753int main (void)
32754{
32755
32756 if(0 != gai_strerror(0))
32757 return 1;
32758
32759 ;
32760 return 0;
32761}
32762
32763_ACEOF
32764if ac_fn_c_try_link "$LINENO"; then :
32765
32766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32767$as_echo "yes" >&6; }
32768 tst_links_gai_strerror="yes"
32769
32770else
32771
32772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32773$as_echo "no" >&6; }
32774 tst_links_gai_strerror="no"
32775
32776fi
32777rm -f core conftest.err conftest.$ac_objext \
32778 conftest$ac_exeext conftest.$ac_ext
32779 #
32780 if test "$tst_links_gai_strerror" = "yes"; then
32781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32782$as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32784/* end confdefs.h. */
32785
32786 $curl_includes_winsock2
32787 $curl_includes_netdb
32788
32789_ACEOF
32790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32791 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32792
32793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32794$as_echo "yes" >&6; }
32795 tst_proto_gai_strerror="yes"
32796
32797else
32798
32799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32800$as_echo "no" >&6; }
32801 tst_proto_gai_strerror="no"
32802
32803fi
32804rm -f conftest*
32805
32806 fi
32807 #
32808 if test "$tst_proto_gai_strerror" = "yes"; then
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32810$as_echo_n "checking if gai_strerror is compilable... " >&6; }
32811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32812/* end confdefs.h. */
32813
32814
32815 $curl_includes_winsock2
32816 $curl_includes_netdb
32817
32818int main (void)
32819{
32820
32821 if(0 != gai_strerror(0))
32822 return 1;
32823
32824 ;
32825 return 0;
32826}
32827
32828_ACEOF
32829if ac_fn_c_try_compile "$LINENO"; then :
32830
32831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32832$as_echo "yes" >&6; }
32833 tst_compi_gai_strerror="yes"
32834
32835else
32836
32837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32838$as_echo "no" >&6; }
32839 tst_compi_gai_strerror="no"
32840
32841fi
32842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32843 fi
32844 #
32845 if test "$tst_compi_gai_strerror" = "yes"; then
32846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32847$as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32848 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32850$as_echo "yes" >&6; }
32851 tst_allow_gai_strerror="yes"
32852 else
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32854$as_echo "no" >&6; }
32855 tst_allow_gai_strerror="no"
32856 fi
32857 fi
32858 #
32859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32860$as_echo_n "checking if gai_strerror might be used... " >&6; }
32861 if test "$tst_links_gai_strerror" = "yes" &&
32862 test "$tst_proto_gai_strerror" = "yes" &&
32863 test "$tst_compi_gai_strerror" = "yes" &&
32864 test "$tst_allow_gai_strerror" = "yes"; then
32865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32866$as_echo "yes" >&6; }
32867
32868cat >>confdefs.h <<_ACEOF
32869#define HAVE_GAI_STRERROR 1
32870_ACEOF
32871
32872 curl_cv_func_gai_strerror="yes"
32873 else
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32875$as_echo "no" >&6; }
32876 curl_cv_func_gai_strerror="no"
32877 fi
32878
32879
32880 #
32881 tst_links_gethostbyaddr="unknown"
32882 tst_proto_gethostbyaddr="unknown"
32883 tst_compi_gethostbyaddr="unknown"
32884 tst_allow_gethostbyaddr="unknown"
32885 #
32886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32887$as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32889/* end confdefs.h. */
32890
32891
32892 $curl_includes_winsock2
32893 $curl_includes_netdb
32894
32895int main (void)
32896{
32897
32898 if(0 != gethostbyaddr(0, 0, 0))
32899 return 1;
32900
32901 ;
32902 return 0;
32903}
32904
32905_ACEOF
32906if ac_fn_c_try_link "$LINENO"; then :
32907
32908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32909$as_echo "yes" >&6; }
32910 tst_links_gethostbyaddr="yes"
32911
32912else
32913
32914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32915$as_echo "no" >&6; }
32916 tst_links_gethostbyaddr="no"
32917
32918fi
32919rm -f core conftest.err conftest.$ac_objext \
32920 conftest$ac_exeext conftest.$ac_ext
32921 #
32922 if test "$tst_links_gethostbyaddr" = "yes"; then
32923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
32924$as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
32925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32926/* end confdefs.h. */
32927
32928 $curl_includes_winsock2
32929 $curl_includes_netdb
32930
32931_ACEOF
32932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32933 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
32934
32935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32936$as_echo "yes" >&6; }
32937 tst_proto_gethostbyaddr="yes"
32938
32939else
32940
32941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32942$as_echo "no" >&6; }
32943 tst_proto_gethostbyaddr="no"
32944
32945fi
32946rm -f conftest*
32947
32948 fi
32949 #
32950 if test "$tst_proto_gethostbyaddr" = "yes"; then
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
32952$as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
32953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32954/* end confdefs.h. */
32955
32956
32957 $curl_includes_winsock2
32958 $curl_includes_netdb
32959
32960int main (void)
32961{
32962
32963 if(0 != gethostbyaddr(0, 0, 0))
32964 return 1;
32965
32966 ;
32967 return 0;
32968}
32969
32970_ACEOF
32971if ac_fn_c_try_compile "$LINENO"; then :
32972
32973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32974$as_echo "yes" >&6; }
32975 tst_compi_gethostbyaddr="yes"
32976
32977else
32978
32979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32980$as_echo "no" >&6; }
32981 tst_compi_gethostbyaddr="no"
32982
32983fi
32984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32985 fi
32986 #
32987 if test "$tst_compi_gethostbyaddr" = "yes"; then
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
32989$as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
32990 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
32991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32992$as_echo "yes" >&6; }
32993 tst_allow_gethostbyaddr="yes"
32994 else
32995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32996$as_echo "no" >&6; }
32997 tst_allow_gethostbyaddr="no"
32998 fi
32999 fi
33000 #
33001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33002$as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33003 if test "$tst_links_gethostbyaddr" = "yes" &&
33004 test "$tst_proto_gethostbyaddr" = "yes" &&
33005 test "$tst_compi_gethostbyaddr" = "yes" &&
33006 test "$tst_allow_gethostbyaddr" = "yes"; then
33007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33008$as_echo "yes" >&6; }
33009
33010cat >>confdefs.h <<_ACEOF
33011#define HAVE_GETHOSTBYADDR 1
33012_ACEOF
33013
33014 curl_cv_func_gethostbyaddr="yes"
33015 else
33016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33017$as_echo "no" >&6; }
33018 curl_cv_func_gethostbyaddr="no"
33019 fi
33020
33021
33022 #
33023 tst_links_gethostbyaddr_r="unknown"
33024 tst_proto_gethostbyaddr_r="unknown"
33025 tst_compi_gethostbyaddr_r="unknown"
33026 tst_allow_gethostbyaddr_r="unknown"
33027 tst_nargs_gethostbyaddr_r="unknown"
33028 #
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33030$as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33032/* end confdefs.h. */
33033
33034
33035#define gethostbyaddr_r innocuous_gethostbyaddr_r
33036#ifdef __STDC__
33037# include <limits.h>
33038#else
33039# include <assert.h>
33040#endif
33041#undef gethostbyaddr_r
33042#ifdef __cplusplus
33043extern "C"
33044#endif
33045char gethostbyaddr_r ();
33046#if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33047choke me
33048#endif
33049
33050int main (void)
33051{
33052return gethostbyaddr_r ();
33053 ;
33054 return 0;
33055}
33056
33057_ACEOF
33058if ac_fn_c_try_link "$LINENO"; then :
33059
33060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33061$as_echo "yes" >&6; }
33062 tst_links_gethostbyaddr_r="yes"
33063
33064else
33065
33066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33067$as_echo "no" >&6; }
33068 tst_links_gethostbyaddr_r="no"
33069
33070fi
33071rm -f core conftest.err conftest.$ac_objext \
33072 conftest$ac_exeext conftest.$ac_ext
33073 #
33074 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33076$as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33078/* end confdefs.h. */
33079
33080 $curl_includes_netdb
33081
33082_ACEOF
33083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33084 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33085
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33087$as_echo "yes" >&6; }
33088 tst_proto_gethostbyaddr_r="yes"
33089
33090else
33091
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33093$as_echo "no" >&6; }
33094 tst_proto_gethostbyaddr_r="no"
33095
33096fi
33097rm -f conftest*
33098
33099 fi
33100 #
33101 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33102 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33104$as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33106/* end confdefs.h. */
33107
33108
33109 $curl_includes_netdb
33110
33111int main (void)
33112{
33113
33114 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33115 return 1;
33116
33117 ;
33118 return 0;
33119}
33120
33121_ACEOF
33122if ac_fn_c_try_compile "$LINENO"; then :
33123
33124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33125$as_echo "yes" >&6; }
33126 tst_compi_gethostbyaddr_r="yes"
33127 tst_nargs_gethostbyaddr_r="5"
33128
33129else
33130
33131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33132$as_echo "no" >&6; }
33133 tst_compi_gethostbyaddr_r="no"
33134
33135fi
33136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33137 fi
33138 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33140$as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33142/* end confdefs.h. */
33143
33144
33145 $curl_includes_netdb
33146
33147int main (void)
33148{
33149
33150 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33151 return 1;
33152
33153 ;
33154 return 0;
33155}
33156
33157_ACEOF
33158if ac_fn_c_try_compile "$LINENO"; then :
33159
33160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33161$as_echo "yes" >&6; }
33162 tst_compi_gethostbyaddr_r="yes"
33163 tst_nargs_gethostbyaddr_r="7"
33164
33165else
33166
33167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33168$as_echo "no" >&6; }
33169 tst_compi_gethostbyaddr_r="no"
33170
33171fi
33172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33173 fi
33174 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33176$as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33178/* end confdefs.h. */
33179
33180
33181 $curl_includes_netdb
33182
33183int main (void)
33184{
33185
33186 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33187 return 1;
33188
33189 ;
33190 return 0;
33191}
33192
33193_ACEOF
33194if ac_fn_c_try_compile "$LINENO"; then :
33195
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33197$as_echo "yes" >&6; }
33198 tst_compi_gethostbyaddr_r="yes"
33199 tst_nargs_gethostbyaddr_r="8"
33200
33201else
33202
33203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33204$as_echo "no" >&6; }
33205 tst_compi_gethostbyaddr_r="no"
33206
33207fi
33208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33209 fi
33210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33211$as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33212 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33214$as_echo "yes" >&6; }
33215 else
33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33217$as_echo "no" >&6; }
33218 fi
33219 fi
33220 #
33221 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33223$as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33224 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33226$as_echo "yes" >&6; }
33227 tst_allow_gethostbyaddr_r="yes"
33228 else
33229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33230$as_echo "no" >&6; }
33231 tst_allow_gethostbyaddr_r="no"
33232 fi
33233 fi
33234 #
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33236$as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33237 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33238 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33239 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33240 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33242$as_echo "yes" >&6; }
33243
33244cat >>confdefs.h <<_ACEOF
33245#define HAVE_GETHOSTBYADDR_R 1
33246_ACEOF
33247
33248 #
33249 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33250
33251$as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33252
33253 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33254
33255$as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33256
33257 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33258
33259$as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33260
33261 fi
33262 #
33263 curl_cv_func_gethostbyaddr_r="yes"
33264 else
33265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33266$as_echo "no" >&6; }
33267 curl_cv_func_gethostbyaddr_r="no"
33268 fi
33269
33270
33271 #
33272 tst_links_gethostbyname="unknown"
33273 tst_proto_gethostbyname="unknown"
33274 tst_compi_gethostbyname="unknown"
33275 tst_allow_gethostbyname="unknown"
33276 #
33277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33278$as_echo_n "checking if gethostbyname can be linked... " >&6; }
33279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33280/* end confdefs.h. */
33281
33282
33283 $curl_includes_winsock2
33284 $curl_includes_netdb
33285
33286int main (void)
33287{
33288
33289 if(0 != gethostbyname(0))
33290 return 1;
33291
33292 ;
33293 return 0;
33294}
33295
33296_ACEOF
33297if ac_fn_c_try_link "$LINENO"; then :
33298
33299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33300$as_echo "yes" >&6; }
33301 tst_links_gethostbyname="yes"
33302
33303else
33304
33305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33306$as_echo "no" >&6; }
33307 tst_links_gethostbyname="no"
33308
33309fi
33310rm -f core conftest.err conftest.$ac_objext \
33311 conftest$ac_exeext conftest.$ac_ext
33312 #
33313 if test "$tst_links_gethostbyname" = "yes"; then
33314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33315$as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33317/* end confdefs.h. */
33318
33319 $curl_includes_winsock2
33320 $curl_includes_netdb
33321
33322_ACEOF
33323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33324 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33325
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33327$as_echo "yes" >&6; }
33328 tst_proto_gethostbyname="yes"
33329
33330else
33331
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33333$as_echo "no" >&6; }
33334 tst_proto_gethostbyname="no"
33335
33336fi
33337rm -f conftest*
33338
33339 fi
33340 #
33341 if test "$tst_proto_gethostbyname" = "yes"; then
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33343$as_echo_n "checking if gethostbyname is compilable... " >&6; }
33344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33345/* end confdefs.h. */
33346
33347
33348 $curl_includes_winsock2
33349 $curl_includes_netdb
33350
33351int main (void)
33352{
33353
33354 if(0 != gethostbyname(0))
33355 return 1;
33356
33357 ;
33358 return 0;
33359}
33360
33361_ACEOF
33362if ac_fn_c_try_compile "$LINENO"; then :
33363
33364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33365$as_echo "yes" >&6; }
33366 tst_compi_gethostbyname="yes"
33367
33368else
33369
33370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33371$as_echo "no" >&6; }
33372 tst_compi_gethostbyname="no"
33373
33374fi
33375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33376 fi
33377 #
33378 if test "$tst_compi_gethostbyname" = "yes"; then
33379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33380$as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33381 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33383$as_echo "yes" >&6; }
33384 tst_allow_gethostbyname="yes"
33385 else
33386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33387$as_echo "no" >&6; }
33388 tst_allow_gethostbyname="no"
33389 fi
33390 fi
33391 #
33392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33393$as_echo_n "checking if gethostbyname might be used... " >&6; }
33394 if test "$tst_links_gethostbyname" = "yes" &&
33395 test "$tst_proto_gethostbyname" = "yes" &&
33396 test "$tst_compi_gethostbyname" = "yes" &&
33397 test "$tst_allow_gethostbyname" = "yes"; then
33398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33399$as_echo "yes" >&6; }
33400
33401cat >>confdefs.h <<_ACEOF
33402#define HAVE_GETHOSTBYNAME 1
33403_ACEOF
33404
33405 curl_cv_func_gethostbyname="yes"
33406 else
33407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33408$as_echo "no" >&6; }
33409 curl_cv_func_gethostbyname="no"
33410 fi
33411
33412
33413 #
33414 tst_links_gethostbyname_r="unknown"
33415 tst_proto_gethostbyname_r="unknown"
33416 tst_compi_gethostbyname_r="unknown"
33417 tst_allow_gethostbyname_r="unknown"
33418 tst_nargs_gethostbyname_r="unknown"
33419 #
33420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33421$as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33423/* end confdefs.h. */
33424
33425
33426#define gethostbyname_r innocuous_gethostbyname_r
33427#ifdef __STDC__
33428# include <limits.h>
33429#else
33430# include <assert.h>
33431#endif
33432#undef gethostbyname_r
33433#ifdef __cplusplus
33434extern "C"
33435#endif
33436char gethostbyname_r ();
33437#if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33438choke me
33439#endif
33440
33441int main (void)
33442{
33443return gethostbyname_r ();
33444 ;
33445 return 0;
33446}
33447
33448_ACEOF
33449if ac_fn_c_try_link "$LINENO"; then :
33450
33451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33452$as_echo "yes" >&6; }
33453 tst_links_gethostbyname_r="yes"
33454
33455else
33456
33457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33458$as_echo "no" >&6; }
33459 tst_links_gethostbyname_r="no"
33460
33461fi
33462rm -f core conftest.err conftest.$ac_objext \
33463 conftest$ac_exeext conftest.$ac_ext
33464 #
33465 if test "$tst_links_gethostbyname_r" = "yes"; then
33466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33467$as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33469/* end confdefs.h. */
33470
33471 $curl_includes_netdb
33472
33473_ACEOF
33474if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33475 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33476
33477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33478$as_echo "yes" >&6; }
33479 tst_proto_gethostbyname_r="yes"
33480
33481else
33482
33483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33484$as_echo "no" >&6; }
33485 tst_proto_gethostbyname_r="no"
33486
33487fi
33488rm -f conftest*
33489
33490 fi
33491 #
33492 if test "$tst_proto_gethostbyname_r" = "yes"; then
33493 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33495$as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33497/* end confdefs.h. */
33498
33499
33500 $curl_includes_netdb
33501
33502int main (void)
33503{
33504
33505 if(0 != gethostbyname_r(0, 0, 0))
33506 return 1;
33507
33508 ;
33509 return 0;
33510}
33511
33512_ACEOF
33513if ac_fn_c_try_compile "$LINENO"; then :
33514
33515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33516$as_echo "yes" >&6; }
33517 tst_compi_gethostbyname_r="yes"
33518 tst_nargs_gethostbyname_r="3"
33519
33520else
33521
33522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33523$as_echo "no" >&6; }
33524 tst_compi_gethostbyname_r="no"
33525
33526fi
33527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33528 fi
33529 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33531$as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33533/* end confdefs.h. */
33534
33535
33536 $curl_includes_netdb
33537
33538int main (void)
33539{
33540
33541 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33542 return 1;
33543
33544 ;
33545 return 0;
33546}
33547
33548_ACEOF
33549if ac_fn_c_try_compile "$LINENO"; then :
33550
33551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33552$as_echo "yes" >&6; }
33553 tst_compi_gethostbyname_r="yes"
33554 tst_nargs_gethostbyname_r="5"
33555
33556else
33557
33558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33559$as_echo "no" >&6; }
33560 tst_compi_gethostbyname_r="no"
33561
33562fi
33563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33564 fi
33565 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33567$as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33569/* end confdefs.h. */
33570
33571
33572 $curl_includes_netdb
33573
33574int main (void)
33575{
33576
33577 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33578 return 1;
33579
33580 ;
33581 return 0;
33582}
33583
33584_ACEOF
33585if ac_fn_c_try_compile "$LINENO"; then :
33586
33587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33588$as_echo "yes" >&6; }
33589 tst_compi_gethostbyname_r="yes"
33590 tst_nargs_gethostbyname_r="6"
33591
33592else
33593
33594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33595$as_echo "no" >&6; }
33596 tst_compi_gethostbyname_r="no"
33597
33598fi
33599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33600 fi
33601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33602$as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33603 if test "$tst_compi_gethostbyname_r" = "yes"; then
33604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33605$as_echo "yes" >&6; }
33606 else
33607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33608$as_echo "no" >&6; }
33609 fi
33610 fi
33611 #
33612 if test "$tst_compi_gethostbyname_r" = "yes"; then
33613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33614$as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33615 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33617$as_echo "yes" >&6; }
33618 tst_allow_gethostbyname_r="yes"
33619 else
33620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33621$as_echo "no" >&6; }
33622 tst_allow_gethostbyname_r="no"
33623 fi
33624 fi
33625 #
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33627$as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33628 if test "$tst_links_gethostbyname_r" = "yes" &&
33629 test "$tst_proto_gethostbyname_r" = "yes" &&
33630 test "$tst_compi_gethostbyname_r" = "yes" &&
33631 test "$tst_allow_gethostbyname_r" = "yes"; then
33632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33633$as_echo "yes" >&6; }
33634
33635cat >>confdefs.h <<_ACEOF
33636#define HAVE_GETHOSTBYNAME_R 1
33637_ACEOF
33638
33639 #
33640 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33641
33642$as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33643
33644 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33645
33646$as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33647
33648 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33649
33650$as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33651
33652 fi
33653 #
33654 curl_cv_func_gethostbyname_r="yes"
33655 else
33656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33657$as_echo "no" >&6; }
33658 curl_cv_func_gethostbyname_r="no"
33659 fi
33660
33661
Elliott Hughesa93fb052018-12-12 14:22:48 -080033662curl_preprocess_callconv="\
33663/* preprocess start */
33664#ifdef HAVE_WINDOWS_H
33665# define FUNCALLCONV __stdcall
33666#else
33667# define FUNCALLCONV
33668#endif
33669/* preprocess end */"
33670
33671
Elliott Hughes82be86d2017-09-20 17:00:17 -070033672 #
33673 tst_links_gethostname="unknown"
33674 tst_proto_gethostname="unknown"
33675 tst_compi_gethostname="unknown"
33676 tst_allow_gethostname="unknown"
33677 #
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33679$as_echo_n "checking if gethostname can be linked... " >&6; }
33680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33681/* end confdefs.h. */
33682
33683
33684 $curl_includes_winsock2
33685 $curl_includes_unistd
33686
33687int main (void)
33688{
33689
33690 if(0 != gethostname(0, 0))
33691 return 1;
33692
33693 ;
33694 return 0;
33695}
33696
33697_ACEOF
33698if ac_fn_c_try_link "$LINENO"; then :
33699
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33701$as_echo "yes" >&6; }
33702 tst_links_gethostname="yes"
33703
33704else
33705
33706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33707$as_echo "no" >&6; }
33708 tst_links_gethostname="no"
33709
33710fi
33711rm -f core conftest.err conftest.$ac_objext \
33712 conftest$ac_exeext conftest.$ac_ext
33713 #
33714 if test "$tst_links_gethostname" = "yes"; then
33715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33716$as_echo_n "checking if gethostname is prototyped... " >&6; }
33717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33718/* end confdefs.h. */
33719
33720 $curl_includes_winsock2
33721 $curl_includes_unistd
33722
33723_ACEOF
33724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33725 $EGREP "gethostname" >/dev/null 2>&1; then :
33726
33727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33728$as_echo "yes" >&6; }
33729 tst_proto_gethostname="yes"
33730
33731else
33732
33733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33734$as_echo "no" >&6; }
33735 tst_proto_gethostname="no"
33736
33737fi
33738rm -f conftest*
33739
33740 fi
33741 #
33742 if test "$tst_proto_gethostname" = "yes"; then
33743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33744$as_echo_n "checking if gethostname is compilable... " >&6; }
33745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33746/* end confdefs.h. */
33747
33748
33749 $curl_includes_winsock2
33750 $curl_includes_unistd
33751
33752int main (void)
33753{
33754
33755 if(0 != gethostname(0, 0))
33756 return 1;
33757
33758 ;
33759 return 0;
33760}
33761
33762_ACEOF
33763if ac_fn_c_try_compile "$LINENO"; then :
33764
33765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33766$as_echo "yes" >&6; }
33767 tst_compi_gethostname="yes"
33768
33769else
33770
33771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33772$as_echo "no" >&6; }
33773 tst_compi_gethostname="no"
33774
33775fi
33776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33777 fi
33778 #
33779 if test "$tst_compi_gethostname" = "yes"; then
33780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33781$as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33782 tst_gethostname_type_arg2="unknown"
33783 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33784 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33785 if test "$tst_gethostname_type_arg2" = "unknown"; then
33786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33787/* end confdefs.h. */
33788
33789
33790 $curl_includes_winsock2
33791 $curl_includes_unistd
33792 $curl_preprocess_callconv
33793 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33794
33795int main (void)
33796{
33797
33798 if(0 != gethostname(0, 0))
33799 return 1;
33800
33801 ;
33802 return 0;
33803}
33804
33805_ACEOF
33806if ac_fn_c_try_compile "$LINENO"; then :
33807
33808 tst_gethostname_type_arg2="$tst_arg2"
33809
33810fi
33811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33812 fi
33813 done
33814 done
33815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33816$as_echo "$tst_gethostname_type_arg2" >&6; }
33817 if test "$tst_gethostname_type_arg2" != "unknown"; then
33818
33819cat >>confdefs.h <<_ACEOF
33820#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33821_ACEOF
33822
33823 fi
33824 fi
33825 #
33826 if test "$tst_compi_gethostname" = "yes"; then
33827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33828$as_echo_n "checking if gethostname usage allowed... " >&6; }
33829 if test "x$curl_disallow_gethostname" != "xyes"; then
33830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33831$as_echo "yes" >&6; }
33832 tst_allow_gethostname="yes"
33833 else
33834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33835$as_echo "no" >&6; }
33836 tst_allow_gethostname="no"
33837 fi
33838 fi
33839 #
33840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33841$as_echo_n "checking if gethostname might be used... " >&6; }
33842 if test "$tst_links_gethostname" = "yes" &&
33843 test "$tst_proto_gethostname" = "yes" &&
33844 test "$tst_compi_gethostname" = "yes" &&
33845 test "$tst_allow_gethostname" = "yes"; then
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847$as_echo "yes" >&6; }
33848
33849cat >>confdefs.h <<_ACEOF
33850#define HAVE_GETHOSTNAME 1
33851_ACEOF
33852
33853 curl_cv_func_gethostname="yes"
33854 else
33855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33856$as_echo "no" >&6; }
33857 curl_cv_func_gethostname="no"
33858 fi
33859
33860
33861 #
33862 tst_links_getifaddrs="unknown"
33863 tst_proto_getifaddrs="unknown"
33864 tst_compi_getifaddrs="unknown"
33865 tst_works_getifaddrs="unknown"
33866 tst_allow_getifaddrs="unknown"
33867 #
33868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33869$as_echo_n "checking if getifaddrs can be linked... " >&6; }
33870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33871/* end confdefs.h. */
33872
33873
33874#define getifaddrs innocuous_getifaddrs
33875#ifdef __STDC__
33876# include <limits.h>
33877#else
33878# include <assert.h>
33879#endif
33880#undef getifaddrs
33881#ifdef __cplusplus
33882extern "C"
33883#endif
33884char getifaddrs ();
33885#if defined __stub_getifaddrs || defined __stub___getifaddrs
33886choke me
33887#endif
33888
33889int main (void)
33890{
33891return getifaddrs ();
33892 ;
33893 return 0;
33894}
33895
33896_ACEOF
33897if ac_fn_c_try_link "$LINENO"; then :
33898
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33900$as_echo "yes" >&6; }
33901 tst_links_getifaddrs="yes"
33902
33903else
33904
33905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33906$as_echo "no" >&6; }
33907 tst_links_getifaddrs="no"
33908
33909fi
33910rm -f core conftest.err conftest.$ac_objext \
33911 conftest$ac_exeext conftest.$ac_ext
33912 #
33913 if test "$tst_links_getifaddrs" = "yes"; then
33914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33915$as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33917/* end confdefs.h. */
33918
33919 $curl_includes_ifaddrs
33920
33921_ACEOF
33922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33923 $EGREP "getifaddrs" >/dev/null 2>&1; then :
33924
33925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33926$as_echo "yes" >&6; }
33927 tst_proto_getifaddrs="yes"
33928
33929else
33930
33931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33932$as_echo "no" >&6; }
33933 tst_proto_getifaddrs="no"
33934
33935fi
33936rm -f conftest*
33937
33938 fi
33939 #
33940 if test "$tst_proto_getifaddrs" = "yes"; then
33941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
33942$as_echo_n "checking if getifaddrs is compilable... " >&6; }
33943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33944/* end confdefs.h. */
33945
33946
33947 $curl_includes_ifaddrs
33948
33949int main (void)
33950{
33951
33952 if(0 != getifaddrs(0))
33953 return 1;
33954
33955 ;
33956 return 0;
33957}
33958
33959_ACEOF
33960if ac_fn_c_try_compile "$LINENO"; then :
33961
33962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33963$as_echo "yes" >&6; }
33964 tst_compi_getifaddrs="yes"
33965
33966else
33967
33968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33969$as_echo "no" >&6; }
33970 tst_compi_getifaddrs="no"
33971
33972fi
33973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33974 fi
33975 #
33976 if test "x$cross_compiling" != "xyes" &&
33977 test "$tst_compi_getifaddrs" = "yes"; then
33978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
33979$as_echo_n "checking if getifaddrs seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080033980
33981
33982 old=$LD_LIBRARY_PATH
33983 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
33984 export LD_LIBRARY_PATH
33985 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070033986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33988as_fn_error $? "cannot run test program while cross compiling
33989See \`config.log' for more details" "$LINENO" 5; }
33990else
33991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33992/* end confdefs.h. */
33993
33994
33995 $curl_includes_stdlib
33996 $curl_includes_ifaddrs
33997
33998int main (void)
33999{
34000
34001 struct ifaddrs *ifa = 0;
34002 int error;
34003
34004 error = getifaddrs(&ifa);
34005 if(error || !ifa)
34006 exit(1); /* fail */
34007 else
34008 exit(0);
34009
34010 ;
34011 return 0;
34012}
34013
34014_ACEOF
34015if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034017$as_echo "yes" >&6; }
34018 tst_works_getifaddrs="yes"
34019
34020else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034022$as_echo "no" >&6; }
34023 tst_works_getifaddrs="no"
34024
34025fi
34026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34027 conftest.$ac_objext conftest.beam conftest.$ac_ext
34028fi
34029
Elliott Hughesa93fb052018-12-12 14:22:48 -080034030 LD_LIBRARY_PATH=$old # restore
34031
Elliott Hughes82be86d2017-09-20 17:00:17 -070034032 fi
34033 #
34034 if test "$tst_compi_getifaddrs" = "yes" &&
34035 test "$tst_works_getifaddrs" != "no"; then
34036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34037$as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34038 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34040$as_echo "yes" >&6; }
34041 tst_allow_getifaddrs="yes"
34042 else
34043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34044$as_echo "no" >&6; }
34045 tst_allow_getifaddrs="no"
34046 fi
34047 fi
34048 #
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34050$as_echo_n "checking if getifaddrs might be used... " >&6; }
34051 if test "$tst_links_getifaddrs" = "yes" &&
34052 test "$tst_proto_getifaddrs" = "yes" &&
34053 test "$tst_compi_getifaddrs" = "yes" &&
34054 test "$tst_allow_getifaddrs" = "yes" &&
34055 test "$tst_works_getifaddrs" != "no"; then
34056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34057$as_echo "yes" >&6; }
34058
34059cat >>confdefs.h <<_ACEOF
34060#define HAVE_GETIFADDRS 1
34061_ACEOF
34062
34063 curl_cv_func_getifaddrs="yes"
34064 else
34065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34066$as_echo "no" >&6; }
34067 curl_cv_func_getifaddrs="no"
34068 fi
34069
34070
34071 #
34072 tst_links_getservbyport_r="unknown"
34073 tst_proto_getservbyport_r="unknown"
34074 tst_compi_getservbyport_r="unknown"
34075 tst_allow_getservbyport_r="unknown"
34076 tst_nargs_getservbyport_r="unknown"
34077 #
34078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34079$as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34081/* end confdefs.h. */
34082
34083
34084#define getservbyport_r innocuous_getservbyport_r
34085#ifdef __STDC__
34086# include <limits.h>
34087#else
34088# include <assert.h>
34089#endif
34090#undef getservbyport_r
34091#ifdef __cplusplus
34092extern "C"
34093#endif
34094char getservbyport_r ();
34095#if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34096choke me
34097#endif
34098
34099int main (void)
34100{
34101return getservbyport_r ();
34102 ;
34103 return 0;
34104}
34105
34106_ACEOF
34107if ac_fn_c_try_link "$LINENO"; then :
34108
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34110$as_echo "yes" >&6; }
34111 tst_links_getservbyport_r="yes"
34112
34113else
34114
34115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34116$as_echo "no" >&6; }
34117 tst_links_getservbyport_r="no"
34118
34119fi
34120rm -f core conftest.err conftest.$ac_objext \
34121 conftest$ac_exeext conftest.$ac_ext
34122 #
34123 if test "$tst_links_getservbyport_r" = "yes"; then
34124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34125$as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34127/* end confdefs.h. */
34128
34129 $curl_includes_netdb
34130
34131_ACEOF
34132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34133 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34134
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34136$as_echo "yes" >&6; }
34137 tst_proto_getservbyport_r="yes"
34138
34139else
34140
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34142$as_echo "no" >&6; }
34143 tst_proto_getservbyport_r="no"
34144
34145fi
34146rm -f conftest*
34147
34148 fi
34149 #
34150 if test "$tst_proto_getservbyport_r" = "yes"; then
34151 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34153$as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34155/* end confdefs.h. */
34156
34157
34158 $curl_includes_netdb
34159
34160int main (void)
34161{
34162
34163 if(0 != getservbyport_r(0, 0, 0, 0))
34164 return 1;
34165
34166 ;
34167 return 0;
34168}
34169
34170_ACEOF
34171if ac_fn_c_try_compile "$LINENO"; then :
34172
34173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34174$as_echo "yes" >&6; }
34175 tst_compi_getservbyport_r="yes"
34176 tst_nargs_getservbyport_r="4"
34177
34178else
34179
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34181$as_echo "no" >&6; }
34182 tst_compi_getservbyport_r="no"
34183
34184fi
34185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34186 fi
34187 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34189$as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34191/* end confdefs.h. */
34192
34193
34194 $curl_includes_netdb
34195
34196int main (void)
34197{
34198
34199 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34200 return 1;
34201
34202 ;
34203 return 0;
34204}
34205
34206_ACEOF
34207if ac_fn_c_try_compile "$LINENO"; then :
34208
34209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34210$as_echo "yes" >&6; }
34211 tst_compi_getservbyport_r="yes"
34212 tst_nargs_getservbyport_r="5"
34213
34214else
34215
34216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34217$as_echo "no" >&6; }
34218 tst_compi_getservbyport_r="no"
34219
34220fi
34221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222 fi
34223 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34225$as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34227/* end confdefs.h. */
34228
34229
34230 $curl_includes_netdb
34231
34232int main (void)
34233{
34234
34235 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34236 return 1;
34237
34238 ;
34239 return 0;
34240}
34241
34242_ACEOF
34243if ac_fn_c_try_compile "$LINENO"; then :
34244
34245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34246$as_echo "yes" >&6; }
34247 tst_compi_getservbyport_r="yes"
34248 tst_nargs_getservbyport_r="6"
34249
34250else
34251
34252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34253$as_echo "no" >&6; }
34254 tst_compi_getservbyport_r="no"
34255
34256fi
34257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34258 fi
34259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34260$as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34261 if test "$tst_compi_getservbyport_r" = "yes"; then
34262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34263$as_echo "yes" >&6; }
34264 else
34265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34266$as_echo "no" >&6; }
34267 fi
34268 fi
34269 #
34270 if test "$tst_compi_getservbyport_r" = "yes"; then
34271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34272$as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34273 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34275$as_echo "yes" >&6; }
34276 tst_allow_getservbyport_r="yes"
34277 else
34278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34279$as_echo "no" >&6; }
34280 tst_allow_getservbyport_r="no"
34281 fi
34282 fi
34283 #
34284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34285$as_echo_n "checking if getservbyport_r might be used... " >&6; }
34286 if test "$tst_links_getservbyport_r" = "yes" &&
34287 test "$tst_proto_getservbyport_r" = "yes" &&
34288 test "$tst_compi_getservbyport_r" = "yes" &&
34289 test "$tst_allow_getservbyport_r" = "yes"; then
34290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34291$as_echo "yes" >&6; }
34292
34293cat >>confdefs.h <<_ACEOF
34294#define HAVE_GETSERVBYPORT_R 1
34295_ACEOF
34296
34297
34298cat >>confdefs.h <<_ACEOF
34299#define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34300_ACEOF
34301
34302 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34303
34304$as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34305
34306 else
34307
34308$as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34309
34310 fi
34311 curl_cv_func_getservbyport_r="yes"
34312 else
34313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34314$as_echo "no" >&6; }
34315 curl_cv_func_getservbyport_r="no"
34316 fi
34317
34318
34319curl_includes_time="\
34320/* includes start */
34321#ifdef HAVE_SYS_TYPES_H
34322# include <sys/types.h>
34323#endif
34324#ifdef HAVE_SYS_TIME_H
34325# include <sys/time.h>
34326# ifdef TIME_WITH_SYS_TIME
34327# include <time.h>
34328# endif
34329#else
34330# ifdef HAVE_TIME_H
34331# include <time.h>
34332# endif
34333#endif
34334/* includes end */"
34335 for ac_header in sys/types.h sys/time.h time.h
34336do :
34337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34338ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34339"
34340if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34341 cat >>confdefs.h <<_ACEOF
34342#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34343_ACEOF
34344
34345fi
34346
34347done
34348
34349
34350
34351 #
34352 tst_links_gmtime_r="unknown"
34353 tst_proto_gmtime_r="unknown"
34354 tst_compi_gmtime_r="unknown"
34355 tst_works_gmtime_r="unknown"
34356 tst_allow_gmtime_r="unknown"
34357 #
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34359$as_echo_n "checking if gmtime_r can be linked... " >&6; }
34360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34361/* end confdefs.h. */
34362
34363
34364#define gmtime_r innocuous_gmtime_r
34365#ifdef __STDC__
34366# include <limits.h>
34367#else
34368# include <assert.h>
34369#endif
34370#undef gmtime_r
34371#ifdef __cplusplus
34372extern "C"
34373#endif
34374char gmtime_r ();
34375#if defined __stub_gmtime_r || defined __stub___gmtime_r
34376choke me
34377#endif
34378
34379int main (void)
34380{
34381return gmtime_r ();
34382 ;
34383 return 0;
34384}
34385
34386_ACEOF
34387if ac_fn_c_try_link "$LINENO"; then :
34388
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34390$as_echo "yes" >&6; }
34391 tst_links_gmtime_r="yes"
34392
34393else
34394
34395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34396$as_echo "no" >&6; }
34397 tst_links_gmtime_r="no"
34398
34399fi
34400rm -f core conftest.err conftest.$ac_objext \
34401 conftest$ac_exeext conftest.$ac_ext
34402 #
34403 if test "$tst_links_gmtime_r" = "yes"; then
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34405$as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34407/* end confdefs.h. */
34408
34409 $curl_includes_time
34410
34411_ACEOF
34412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34413 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34414
34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34416$as_echo "yes" >&6; }
34417 tst_proto_gmtime_r="yes"
34418
34419else
34420
34421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34422$as_echo "no" >&6; }
34423 tst_proto_gmtime_r="no"
34424
34425fi
34426rm -f conftest*
34427
34428 fi
34429 #
34430 if test "$tst_proto_gmtime_r" = "yes"; then
34431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34432$as_echo_n "checking if gmtime_r is compilable... " >&6; }
34433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34434/* end confdefs.h. */
34435
34436
34437 $curl_includes_time
34438
34439int main (void)
34440{
34441
34442 if(0 != gmtime_r(0, 0))
34443 return 1;
34444
34445 ;
34446 return 0;
34447}
34448
34449_ACEOF
34450if ac_fn_c_try_compile "$LINENO"; then :
34451
34452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34453$as_echo "yes" >&6; }
34454 tst_compi_gmtime_r="yes"
34455
34456else
34457
34458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34459$as_echo "no" >&6; }
34460 tst_compi_gmtime_r="no"
34461
34462fi
34463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34464 fi
34465 #
34466 if test "x$cross_compiling" != "xyes" &&
34467 test "$tst_compi_gmtime_r" = "yes"; then
34468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34469$as_echo_n "checking if gmtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034470
34471
34472 old=$LD_LIBRARY_PATH
34473 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34474 export LD_LIBRARY_PATH
34475 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34478as_fn_error $? "cannot run test program while cross compiling
34479See \`config.log' for more details" "$LINENO" 5; }
34480else
34481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34482/* end confdefs.h. */
34483
34484
34485 $curl_includes_stdlib
34486 $curl_includes_time
34487
34488int main (void)
34489{
34490
34491 time_t local = 1170352587;
34492 struct tm *gmt = 0;
34493 struct tm result;
34494 gmt = gmtime_r(&local, &result);
34495 if(gmt)
34496 exit(0);
34497 else
34498 exit(1);
34499
34500 ;
34501 return 0;
34502}
34503
34504_ACEOF
34505if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080034506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034507$as_echo "yes" >&6; }
34508 tst_works_gmtime_r="yes"
34509
34510else
Elliott Hughesa93fb052018-12-12 14:22:48 -080034511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070034512$as_echo "no" >&6; }
34513 tst_works_gmtime_r="no"
34514
34515fi
34516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34517 conftest.$ac_objext conftest.beam conftest.$ac_ext
34518fi
34519
Elliott Hughesa93fb052018-12-12 14:22:48 -080034520 LD_LIBRARY_PATH=$old # restore
34521
Elliott Hughes82be86d2017-09-20 17:00:17 -070034522 fi
34523 #
34524 if test "$tst_compi_gmtime_r" = "yes" &&
34525 test "$tst_works_gmtime_r" != "no"; then
34526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34527$as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34528 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34530$as_echo "yes" >&6; }
34531 tst_allow_gmtime_r="yes"
34532 else
34533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34534$as_echo "no" >&6; }
34535 tst_allow_gmtime_r="no"
34536 fi
34537 fi
34538 #
34539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34540$as_echo_n "checking if gmtime_r might be used... " >&6; }
34541 if test "$tst_links_gmtime_r" = "yes" &&
34542 test "$tst_proto_gmtime_r" = "yes" &&
34543 test "$tst_compi_gmtime_r" = "yes" &&
34544 test "$tst_allow_gmtime_r" = "yes" &&
34545 test "$tst_works_gmtime_r" != "no"; then
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34547$as_echo "yes" >&6; }
34548
34549cat >>confdefs.h <<_ACEOF
34550#define HAVE_GMTIME_R 1
34551_ACEOF
34552
34553 curl_cv_func_gmtime_r="yes"
34554 else
34555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34556$as_echo "no" >&6; }
34557 curl_cv_func_gmtime_r="no"
34558 fi
34559
34560
34561curl_includes_arpa_inet="\
34562/* includes start */
34563#ifdef HAVE_SYS_TYPES_H
34564# include <sys/types.h>
34565#endif
34566#ifdef HAVE_SYS_SOCKET_H
34567# include <sys/socket.h>
34568#endif
34569#ifdef HAVE_NETINET_IN_H
34570# include <netinet/in.h>
34571#endif
34572#ifdef HAVE_ARPA_INET_H
34573# include <arpa/inet.h>
34574#endif
34575#ifdef HAVE_WINSOCK2_H
34576#include <winsock2.h>
34577#include <ws2tcpip.h>
34578#endif
34579/* includes end */"
34580 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34581do :
34582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34583ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34584"
34585if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34586 cat >>confdefs.h <<_ACEOF
34587#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34588_ACEOF
34589
34590fi
34591
34592done
34593
34594
34595
34596 #
34597 tst_links_inet_ntoa_r="unknown"
34598 tst_proto_inet_ntoa_r="unknown"
34599 tst_compi_inet_ntoa_r="unknown"
34600 tst_allow_inet_ntoa_r="unknown"
34601 tst_nargs_inet_ntoa_r="unknown"
34602 #
34603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34604$as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34606/* end confdefs.h. */
34607
34608
34609#define inet_ntoa_r innocuous_inet_ntoa_r
34610#ifdef __STDC__
34611# include <limits.h>
34612#else
34613# include <assert.h>
34614#endif
34615#undef inet_ntoa_r
34616#ifdef __cplusplus
34617extern "C"
34618#endif
34619char inet_ntoa_r ();
34620#if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34621choke me
34622#endif
34623
34624int main (void)
34625{
34626return inet_ntoa_r ();
34627 ;
34628 return 0;
34629}
34630
34631_ACEOF
34632if ac_fn_c_try_link "$LINENO"; then :
34633
34634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34635$as_echo "yes" >&6; }
34636 tst_links_inet_ntoa_r="yes"
34637
34638else
34639
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34641$as_echo "no" >&6; }
34642 tst_links_inet_ntoa_r="no"
34643
34644fi
34645rm -f core conftest.err conftest.$ac_objext \
34646 conftest$ac_exeext conftest.$ac_ext
34647 #
34648 if test "$tst_links_inet_ntoa_r" = "yes"; then
34649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34650$as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34652/* end confdefs.h. */
34653
34654 $curl_includes_arpa_inet
34655
34656_ACEOF
34657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34658 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34659
34660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34661$as_echo "yes" >&6; }
34662 tst_proto_inet_ntoa_r="yes"
34663
34664else
34665
34666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34667$as_echo "no" >&6; }
34668 tst_proto_inet_ntoa_r="no"
34669
34670fi
34671rm -f conftest*
34672
34673 fi
34674 #
34675 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34676 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34678$as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34680/* end confdefs.h. */
34681
34682
34683 $curl_includes_arpa_inet
34684
34685int main (void)
34686{
34687
34688 struct in_addr addr;
34689 if(0 != inet_ntoa_r(addr, 0))
34690 return 1;
34691
34692 ;
34693 return 0;
34694}
34695
34696_ACEOF
34697if ac_fn_c_try_compile "$LINENO"; then :
34698
34699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34700$as_echo "yes" >&6; }
34701 tst_compi_inet_ntoa_r="yes"
34702 tst_nargs_inet_ntoa_r="2"
34703
34704else
34705
34706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34707$as_echo "no" >&6; }
34708 tst_compi_inet_ntoa_r="no"
34709
34710fi
34711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34712 fi
34713 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34715$as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34717/* end confdefs.h. */
34718
34719
34720 $curl_includes_arpa_inet
34721
34722int main (void)
34723{
34724
34725 struct in_addr addr;
34726 if(0 != inet_ntoa_r(addr, 0, 0))
34727 return 1;
34728
34729 ;
34730 return 0;
34731}
34732
34733_ACEOF
34734if ac_fn_c_try_compile "$LINENO"; then :
34735
34736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34737$as_echo "yes" >&6; }
34738 tst_compi_inet_ntoa_r="yes"
34739 tst_nargs_inet_ntoa_r="3"
34740
34741else
34742
34743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34744$as_echo "no" >&6; }
34745 tst_compi_inet_ntoa_r="no"
34746
34747fi
34748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34749 fi
34750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34751$as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34752 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34754$as_echo "yes" >&6; }
34755 else
34756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34757$as_echo "no" >&6; }
34758 fi
34759 fi
34760 #
34761 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34763$as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34764 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34766$as_echo "yes" >&6; }
34767 tst_allow_inet_ntoa_r="yes"
34768 else
34769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34770$as_echo "no" >&6; }
34771 tst_allow_inet_ntoa_r="no"
34772 fi
34773 fi
34774 #
34775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34776$as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34777 if test "$tst_links_inet_ntoa_r" = "yes" &&
34778 test "$tst_proto_inet_ntoa_r" = "yes" &&
34779 test "$tst_compi_inet_ntoa_r" = "yes" &&
34780 test "$tst_allow_inet_ntoa_r" = "yes"; then
34781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34782$as_echo "yes" >&6; }
34783
34784cat >>confdefs.h <<_ACEOF
34785#define HAVE_INET_NTOA_R 1
34786_ACEOF
34787
34788 #
34789 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34790
34791$as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34792
34793 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34794
34795$as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34796
34797 fi
34798 #
34799 curl_cv_func_inet_ntoa_r="yes"
34800 else
34801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34802$as_echo "no" >&6; }
34803 curl_cv_func_inet_ntoa_r="no"
34804 fi
34805
34806
34807 #
34808 tst_links_inet_ntop="unknown"
34809 tst_proto_inet_ntop="unknown"
34810 tst_compi_inet_ntop="unknown"
34811 tst_works_inet_ntop="unknown"
34812 tst_allow_inet_ntop="unknown"
34813 #
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34815$as_echo_n "checking if inet_ntop can be linked... " >&6; }
34816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34817/* end confdefs.h. */
34818
34819
34820#define inet_ntop innocuous_inet_ntop
34821#ifdef __STDC__
34822# include <limits.h>
34823#else
34824# include <assert.h>
34825#endif
34826#undef inet_ntop
34827#ifdef __cplusplus
34828extern "C"
34829#endif
34830char inet_ntop ();
34831#if defined __stub_inet_ntop || defined __stub___inet_ntop
34832choke me
34833#endif
34834
34835int main (void)
34836{
34837return inet_ntop ();
34838 ;
34839 return 0;
34840}
34841
34842_ACEOF
34843if ac_fn_c_try_link "$LINENO"; then :
34844
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34846$as_echo "yes" >&6; }
34847 tst_links_inet_ntop="yes"
34848
34849else
34850
34851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34852$as_echo "no" >&6; }
34853 tst_links_inet_ntop="no"
34854
34855fi
34856rm -f core conftest.err conftest.$ac_objext \
34857 conftest$ac_exeext conftest.$ac_ext
34858 #
34859 if test "$tst_links_inet_ntop" = "yes"; then
34860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34861$as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34863/* end confdefs.h. */
34864
34865 $curl_includes_arpa_inet
34866
34867_ACEOF
34868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34869 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34870
34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34872$as_echo "yes" >&6; }
34873 tst_proto_inet_ntop="yes"
34874
34875else
34876
34877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34878$as_echo "no" >&6; }
34879 tst_proto_inet_ntop="no"
34880
34881fi
34882rm -f conftest*
34883
34884 fi
34885 #
34886 if test "$tst_proto_inet_ntop" = "yes"; then
34887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34888$as_echo_n "checking if inet_ntop is compilable... " >&6; }
34889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34890/* end confdefs.h. */
34891
34892
34893 $curl_includes_arpa_inet
34894
34895int main (void)
34896{
34897
34898 if(0 != inet_ntop(0, 0, 0, 0))
34899 return 1;
34900
34901 ;
34902 return 0;
34903}
34904
34905_ACEOF
34906if ac_fn_c_try_compile "$LINENO"; then :
34907
34908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34909$as_echo "yes" >&6; }
34910 tst_compi_inet_ntop="yes"
34911
34912else
34913
34914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34915$as_echo "no" >&6; }
34916 tst_compi_inet_ntop="no"
34917
34918fi
34919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34920 fi
34921 #
34922 if test "x$cross_compiling" != "xyes" &&
34923 test "$tst_compi_inet_ntop" = "yes"; then
34924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34925$as_echo_n "checking if inet_ntop seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080034926
34927
34928 old=$LD_LIBRARY_PATH
34929 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34930 export LD_LIBRARY_PATH
34931 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070034932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34934as_fn_error $? "cannot run test program while cross compiling
34935See \`config.log' for more details" "$LINENO" 5; }
34936else
34937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34938/* end confdefs.h. */
34939
34940
34941 $curl_includes_stdlib
34942 $curl_includes_arpa_inet
34943 $curl_includes_string
34944
34945int main (void)
34946{
34947
34948 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
34949 char ipv4res[sizeof "255.255.255.255"];
34950 unsigned char ipv6a[26];
34951 unsigned char ipv4a[5];
34952 char *ipv6ptr = 0;
34953 char *ipv4ptr = 0;
34954 /* - */
34955 ipv4res[0] = '\0';
34956 ipv4a[0] = 0xc0;
34957 ipv4a[1] = 0xa8;
34958 ipv4a[2] = 0x64;
34959 ipv4a[3] = 0x01;
34960 ipv4a[4] = 0x01;
34961 /* - */
34962 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
34963 if(!ipv4ptr)
34964 exit(1); /* fail */
34965 if(ipv4ptr != ipv4res)
34966 exit(1); /* fail */
34967 if(!ipv4ptr[0])
34968 exit(1); /* fail */
34969 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
34970 exit(1); /* fail */
34971 /* - */
34972 ipv6res[0] = '\0';
34973 memset(ipv6a, 0, sizeof(ipv6a));
34974 ipv6a[0] = 0xfe;
34975 ipv6a[1] = 0x80;
34976 ipv6a[8] = 0x02;
34977 ipv6a[9] = 0x14;
34978 ipv6a[10] = 0x4f;
34979 ipv6a[11] = 0xff;
34980 ipv6a[12] = 0xfe;
34981 ipv6a[13] = 0x0b;
34982 ipv6a[14] = 0x76;
34983 ipv6a[15] = 0xc8;
34984 ipv6a[25] = 0x01;
34985 /* - */
34986 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
34987 if(!ipv6ptr)
34988 exit(1); /* fail */
34989 if(ipv6ptr != ipv6res)
34990 exit(1); /* fail */
34991 if(!ipv6ptr[0])
34992 exit(1); /* fail */
34993 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
34994 exit(1); /* fail */
34995 /* - */
34996 exit(0);
34997
34998 ;
34999 return 0;
35000}
35001
35002_ACEOF
35003if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035005$as_echo "yes" >&6; }
35006 tst_works_inet_ntop="yes"
35007
35008else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035010$as_echo "no" >&6; }
35011 tst_works_inet_ntop="no"
35012
35013fi
35014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35015 conftest.$ac_objext conftest.beam conftest.$ac_ext
35016fi
35017
Elliott Hughesa93fb052018-12-12 14:22:48 -080035018 LD_LIBRARY_PATH=$old # restore
35019
Elliott Hughes82be86d2017-09-20 17:00:17 -070035020 fi
35021 #
35022 if test "$tst_compi_inet_ntop" = "yes" &&
35023 test "$tst_works_inet_ntop" != "no"; then
35024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35025$as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35026 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35028$as_echo "yes" >&6; }
35029 tst_allow_inet_ntop="yes"
35030 else
35031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35032$as_echo "no" >&6; }
35033 tst_allow_inet_ntop="no"
35034 fi
35035 fi
35036 #
35037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35038$as_echo_n "checking if inet_ntop might be used... " >&6; }
35039 if test "$tst_links_inet_ntop" = "yes" &&
35040 test "$tst_proto_inet_ntop" = "yes" &&
35041 test "$tst_compi_inet_ntop" = "yes" &&
35042 test "$tst_allow_inet_ntop" = "yes" &&
35043 test "$tst_works_inet_ntop" != "no"; then
35044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35045$as_echo "yes" >&6; }
35046
35047cat >>confdefs.h <<_ACEOF
35048#define HAVE_INET_NTOP 1
35049_ACEOF
35050
35051 curl_cv_func_inet_ntop="yes"
35052 else
35053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35054$as_echo "no" >&6; }
35055 curl_cv_func_inet_ntop="no"
35056 fi
35057
35058
35059 #
35060 tst_links_inet_pton="unknown"
35061 tst_proto_inet_pton="unknown"
35062 tst_compi_inet_pton="unknown"
35063 tst_works_inet_pton="unknown"
35064 tst_allow_inet_pton="unknown"
35065 #
35066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35067$as_echo_n "checking if inet_pton can be linked... " >&6; }
35068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35069/* end confdefs.h. */
35070
35071
35072#define inet_pton innocuous_inet_pton
35073#ifdef __STDC__
35074# include <limits.h>
35075#else
35076# include <assert.h>
35077#endif
35078#undef inet_pton
35079#ifdef __cplusplus
35080extern "C"
35081#endif
35082char inet_pton ();
35083#if defined __stub_inet_pton || defined __stub___inet_pton
35084choke me
35085#endif
35086
35087int main (void)
35088{
35089return inet_pton ();
35090 ;
35091 return 0;
35092}
35093
35094_ACEOF
35095if ac_fn_c_try_link "$LINENO"; then :
35096
35097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35098$as_echo "yes" >&6; }
35099 tst_links_inet_pton="yes"
35100
35101else
35102
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35104$as_echo "no" >&6; }
35105 tst_links_inet_pton="no"
35106
35107fi
35108rm -f core conftest.err conftest.$ac_objext \
35109 conftest$ac_exeext conftest.$ac_ext
35110 #
35111 if test "$tst_links_inet_pton" = "yes"; then
35112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35113$as_echo_n "checking if inet_pton is prototyped... " >&6; }
35114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35115/* end confdefs.h. */
35116
35117 $curl_includes_arpa_inet
35118
35119_ACEOF
35120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35121 $EGREP "inet_pton" >/dev/null 2>&1; then :
35122
35123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35124$as_echo "yes" >&6; }
35125 tst_proto_inet_pton="yes"
35126
35127else
35128
35129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35130$as_echo "no" >&6; }
35131 tst_proto_inet_pton="no"
35132
35133fi
35134rm -f conftest*
35135
35136 fi
35137 #
35138 if test "$tst_proto_inet_pton" = "yes"; then
35139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35140$as_echo_n "checking if inet_pton is compilable... " >&6; }
35141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35142/* end confdefs.h. */
35143
35144
35145 $curl_includes_arpa_inet
35146
35147int main (void)
35148{
35149
35150 if(0 != inet_pton(0, 0, 0))
35151 return 1;
35152
35153 ;
35154 return 0;
35155}
35156
35157_ACEOF
35158if ac_fn_c_try_compile "$LINENO"; then :
35159
35160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35161$as_echo "yes" >&6; }
35162 tst_compi_inet_pton="yes"
35163
35164else
35165
35166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35167$as_echo "no" >&6; }
35168 tst_compi_inet_pton="no"
35169
35170fi
35171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35172 fi
35173 #
35174 if test "x$cross_compiling" != "xyes" &&
35175 test "$tst_compi_inet_pton" = "yes"; then
35176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35177$as_echo_n "checking if inet_pton seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080035178
35179
35180 old=$LD_LIBRARY_PATH
35181 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35182 export LD_LIBRARY_PATH
35183 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070035184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35185$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35186as_fn_error $? "cannot run test program while cross compiling
35187See \`config.log' for more details" "$LINENO" 5; }
35188else
35189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35190/* end confdefs.h. */
35191
35192
35193 $curl_includes_stdlib
35194 $curl_includes_arpa_inet
35195 $curl_includes_string
35196
35197int main (void)
35198{
35199
35200 unsigned char ipv6a[16+1];
35201 unsigned char ipv4a[4+1];
35202 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35203 const char *ipv4src = "192.168.100.1";
35204 /* - */
35205 memset(ipv4a, 1, sizeof(ipv4a));
35206 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35207 exit(1); /* fail */
35208 /* - */
35209 if( (ipv4a[0] != 0xc0) ||
35210 (ipv4a[1] != 0xa8) ||
35211 (ipv4a[2] != 0x64) ||
35212 (ipv4a[3] != 0x01) ||
35213 (ipv4a[4] != 0x01) )
35214 exit(1); /* fail */
35215 /* - */
35216 memset(ipv6a, 1, sizeof(ipv6a));
35217 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35218 exit(1); /* fail */
35219 /* - */
35220 if( (ipv6a[0] != 0xfe) ||
35221 (ipv6a[1] != 0x80) ||
35222 (ipv6a[8] != 0x02) ||
35223 (ipv6a[9] != 0x14) ||
35224 (ipv6a[10] != 0x4f) ||
35225 (ipv6a[11] != 0xff) ||
35226 (ipv6a[12] != 0xfe) ||
35227 (ipv6a[13] != 0x0b) ||
35228 (ipv6a[14] != 0x76) ||
35229 (ipv6a[15] != 0xc8) ||
35230 (ipv6a[16] != 0x01) )
35231 exit(1); /* fail */
35232 /* - */
35233 if( (ipv6a[2] != 0x0) ||
35234 (ipv6a[3] != 0x0) ||
35235 (ipv6a[4] != 0x0) ||
35236 (ipv6a[5] != 0x0) ||
35237 (ipv6a[6] != 0x0) ||
35238 (ipv6a[7] != 0x0) )
35239 exit(1); /* fail */
35240 /* - */
35241 exit(0);
35242
35243 ;
35244 return 0;
35245}
35246
35247_ACEOF
35248if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080035249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035250$as_echo "yes" >&6; }
35251 tst_works_inet_pton="yes"
35252
35253else
Elliott Hughesa93fb052018-12-12 14:22:48 -080035254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070035255$as_echo "no" >&6; }
35256 tst_works_inet_pton="no"
35257
35258fi
35259rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35260 conftest.$ac_objext conftest.beam conftest.$ac_ext
35261fi
35262
Elliott Hughesa93fb052018-12-12 14:22:48 -080035263 LD_LIBRARY_PATH=$old # restore
35264
Elliott Hughes82be86d2017-09-20 17:00:17 -070035265 fi
35266 #
35267 if test "$tst_compi_inet_pton" = "yes" &&
35268 test "$tst_works_inet_pton" != "no"; then
35269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35270$as_echo_n "checking if inet_pton usage allowed... " >&6; }
35271 if test "x$curl_disallow_inet_pton" != "xyes"; then
35272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35273$as_echo "yes" >&6; }
35274 tst_allow_inet_pton="yes"
35275 else
35276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35277$as_echo "no" >&6; }
35278 tst_allow_inet_pton="no"
35279 fi
35280 fi
35281 #
35282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35283$as_echo_n "checking if inet_pton might be used... " >&6; }
35284 if test "$tst_links_inet_pton" = "yes" &&
35285 test "$tst_proto_inet_pton" = "yes" &&
35286 test "$tst_compi_inet_pton" = "yes" &&
35287 test "$tst_allow_inet_pton" = "yes" &&
35288 test "$tst_works_inet_pton" != "no"; then
35289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35290$as_echo "yes" >&6; }
35291
35292cat >>confdefs.h <<_ACEOF
35293#define HAVE_INET_PTON 1
35294_ACEOF
35295
35296 curl_cv_func_inet_pton="yes"
35297 else
35298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35299$as_echo "no" >&6; }
35300 curl_cv_func_inet_pton="no"
35301 fi
35302
35303
35304curl_includes_stropts="\
35305/* includes start */
35306#ifdef HAVE_SYS_TYPES_H
35307# include <sys/types.h>
35308#endif
35309#ifdef HAVE_UNISTD_H
35310# include <unistd.h>
35311#endif
35312#ifdef HAVE_SYS_SOCKET_H
35313# include <sys/socket.h>
35314#endif
35315#ifdef HAVE_SYS_IOCTL_H
35316# include <sys/ioctl.h>
35317#endif
35318#ifdef HAVE_STROPTS_H
35319# include <stropts.h>
35320#endif
35321/* includes end */"
35322 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35323do :
35324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35325ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35326"
35327if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35328 cat >>confdefs.h <<_ACEOF
35329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35330_ACEOF
35331
35332fi
35333
35334done
35335
35336
35337
35338 #
35339 tst_links_ioctl="unknown"
35340 tst_proto_ioctl="unknown"
35341 tst_compi_ioctl="unknown"
35342 tst_allow_ioctl="unknown"
35343 #
35344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35345$as_echo_n "checking if ioctl can be linked... " >&6; }
35346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35347/* end confdefs.h. */
35348
35349
35350#define ioctl innocuous_ioctl
35351#ifdef __STDC__
35352# include <limits.h>
35353#else
35354# include <assert.h>
35355#endif
35356#undef ioctl
35357#ifdef __cplusplus
35358extern "C"
35359#endif
35360char ioctl ();
35361#if defined __stub_ioctl || defined __stub___ioctl
35362choke me
35363#endif
35364
35365int main (void)
35366{
35367return ioctl ();
35368 ;
35369 return 0;
35370}
35371
35372_ACEOF
35373if ac_fn_c_try_link "$LINENO"; then :
35374
35375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35376$as_echo "yes" >&6; }
35377 tst_links_ioctl="yes"
35378
35379else
35380
35381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35382$as_echo "no" >&6; }
35383 tst_links_ioctl="no"
35384
35385fi
35386rm -f core conftest.err conftest.$ac_objext \
35387 conftest$ac_exeext conftest.$ac_ext
35388 #
35389 if test "$tst_links_ioctl" = "yes"; then
35390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35391$as_echo_n "checking if ioctl is prototyped... " >&6; }
35392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35393/* end confdefs.h. */
35394
35395 $curl_includes_stropts
35396
35397_ACEOF
35398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35399 $EGREP "ioctl" >/dev/null 2>&1; then :
35400
35401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35402$as_echo "yes" >&6; }
35403 tst_proto_ioctl="yes"
35404
35405else
35406
35407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35408$as_echo "no" >&6; }
35409 tst_proto_ioctl="no"
35410
35411fi
35412rm -f conftest*
35413
35414 fi
35415 #
35416 if test "$tst_proto_ioctl" = "yes"; then
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35418$as_echo_n "checking if ioctl is compilable... " >&6; }
35419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35420/* end confdefs.h. */
35421
35422
35423 $curl_includes_stropts
35424
35425int main (void)
35426{
35427
35428 if(0 != ioctl(0, 0, 0))
35429 return 1;
35430
35431 ;
35432 return 0;
35433}
35434
35435_ACEOF
35436if ac_fn_c_try_compile "$LINENO"; then :
35437
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35439$as_echo "yes" >&6; }
35440 tst_compi_ioctl="yes"
35441
35442else
35443
35444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35445$as_echo "no" >&6; }
35446 tst_compi_ioctl="no"
35447
35448fi
35449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35450 fi
35451 #
35452 if test "$tst_compi_ioctl" = "yes"; then
35453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35454$as_echo_n "checking if ioctl usage allowed... " >&6; }
35455 if test "x$curl_disallow_ioctl" != "xyes"; then
35456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35457$as_echo "yes" >&6; }
35458 tst_allow_ioctl="yes"
35459 else
35460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35461$as_echo "no" >&6; }
35462 tst_allow_ioctl="no"
35463 fi
35464 fi
35465 #
35466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35467$as_echo_n "checking if ioctl might be used... " >&6; }
35468 if test "$tst_links_ioctl" = "yes" &&
35469 test "$tst_proto_ioctl" = "yes" &&
35470 test "$tst_compi_ioctl" = "yes" &&
35471 test "$tst_allow_ioctl" = "yes"; then
35472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35473$as_echo "yes" >&6; }
35474
35475cat >>confdefs.h <<_ACEOF
35476#define HAVE_IOCTL 1
35477_ACEOF
35478
35479 curl_cv_func_ioctl="yes"
35480
35481 #
35482 tst_compi_ioctl_fionbio="unknown"
35483 tst_allow_ioctl_fionbio="unknown"
35484 #
35485 if test "$curl_cv_func_ioctl" = "yes"; then
35486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35487$as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35489/* end confdefs.h. */
35490
35491
35492 $curl_includes_stropts
35493
35494int main (void)
35495{
35496
35497 int flags = 0;
35498 if(0 != ioctl(0, FIONBIO, &flags))
35499 return 1;
35500
35501 ;
35502 return 0;
35503}
35504
35505_ACEOF
35506if ac_fn_c_try_compile "$LINENO"; then :
35507
35508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35509$as_echo "yes" >&6; }
35510 tst_compi_ioctl_fionbio="yes"
35511
35512else
35513
35514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35515$as_echo "no" >&6; }
35516 tst_compi_ioctl_fionbio="no"
35517
35518fi
35519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35520 fi
35521 #
35522 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35524$as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35525 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35527$as_echo "yes" >&6; }
35528 tst_allow_ioctl_fionbio="yes"
35529 else
35530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35531$as_echo "no" >&6; }
35532 tst_allow_ioctl_fionbio="no"
35533 fi
35534 fi
35535 #
35536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35537$as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35538 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35539 test "$tst_allow_ioctl_fionbio" = "yes"; then
35540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35541$as_echo "yes" >&6; }
35542
35543cat >>confdefs.h <<_ACEOF
35544#define HAVE_IOCTL_FIONBIO 1
35545_ACEOF
35546
35547 curl_cv_func_ioctl_fionbio="yes"
35548 else
35549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35550$as_echo "no" >&6; }
35551 curl_cv_func_ioctl_fionbio="no"
35552 fi
35553
35554
35555 #
35556 tst_compi_ioctl_siocgifaddr="unknown"
35557 tst_allow_ioctl_siocgifaddr="unknown"
35558 #
35559 if test "$curl_cv_func_ioctl" = "yes"; then
35560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35561$as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35563/* end confdefs.h. */
35564
35565
35566 $curl_includes_stropts
35567 #include <net/if.h>
35568
35569int main (void)
35570{
35571
35572 struct ifreq ifr;
35573 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35574 return 1;
35575
35576 ;
35577 return 0;
35578}
35579
35580_ACEOF
35581if ac_fn_c_try_compile "$LINENO"; then :
35582
35583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35584$as_echo "yes" >&6; }
35585 tst_compi_ioctl_siocgifaddr="yes"
35586
35587else
35588
35589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35590$as_echo "no" >&6; }
35591 tst_compi_ioctl_siocgifaddr="no"
35592
35593fi
35594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35595 fi
35596 #
35597 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35599$as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35600 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35602$as_echo "yes" >&6; }
35603 tst_allow_ioctl_siocgifaddr="yes"
35604 else
35605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35606$as_echo "no" >&6; }
35607 tst_allow_ioctl_siocgifaddr="no"
35608 fi
35609 fi
35610 #
35611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35612$as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35613 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35614 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35616$as_echo "yes" >&6; }
35617
35618cat >>confdefs.h <<_ACEOF
35619#define HAVE_IOCTL_SIOCGIFADDR 1
35620_ACEOF
35621
35622 curl_cv_func_ioctl_siocgifaddr="yes"
35623 else
35624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35625$as_echo "no" >&6; }
35626 curl_cv_func_ioctl_siocgifaddr="no"
35627 fi
35628
35629 else
35630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35631$as_echo "no" >&6; }
35632 curl_cv_func_ioctl="no"
35633 fi
35634
35635
35636 #
35637 tst_links_ioctlsocket="unknown"
35638 tst_proto_ioctlsocket="unknown"
35639 tst_compi_ioctlsocket="unknown"
35640 tst_allow_ioctlsocket="unknown"
35641 #
35642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35643$as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35645/* end confdefs.h. */
35646
35647
35648 $curl_includes_winsock2
35649
35650int main (void)
35651{
35652
35653 if(0 != ioctlsocket(0, 0, 0))
35654 return 1;
35655
35656 ;
35657 return 0;
35658}
35659
35660_ACEOF
35661if ac_fn_c_try_link "$LINENO"; then :
35662
35663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35664$as_echo "yes" >&6; }
35665 tst_links_ioctlsocket="yes"
35666
35667else
35668
35669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35670$as_echo "no" >&6; }
35671 tst_links_ioctlsocket="no"
35672
35673fi
35674rm -f core conftest.err conftest.$ac_objext \
35675 conftest$ac_exeext conftest.$ac_ext
35676 #
35677 if test "$tst_links_ioctlsocket" = "yes"; then
35678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35679$as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35681/* end confdefs.h. */
35682
35683 $curl_includes_winsock2
35684
35685_ACEOF
35686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35687 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35688
35689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35690$as_echo "yes" >&6; }
35691 tst_proto_ioctlsocket="yes"
35692
35693else
35694
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35696$as_echo "no" >&6; }
35697 tst_proto_ioctlsocket="no"
35698
35699fi
35700rm -f conftest*
35701
35702 fi
35703 #
35704 if test "$tst_proto_ioctlsocket" = "yes"; then
35705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35706$as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35708/* end confdefs.h. */
35709
35710
35711 $curl_includes_winsock2
35712
35713int main (void)
35714{
35715
35716 if(0 != ioctlsocket(0, 0, 0))
35717 return 1;
35718
35719 ;
35720 return 0;
35721}
35722
35723_ACEOF
35724if ac_fn_c_try_compile "$LINENO"; then :
35725
35726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35727$as_echo "yes" >&6; }
35728 tst_compi_ioctlsocket="yes"
35729
35730else
35731
35732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35733$as_echo "no" >&6; }
35734 tst_compi_ioctlsocket="no"
35735
35736fi
35737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35738 fi
35739 #
35740 if test "$tst_compi_ioctlsocket" = "yes"; then
35741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35742$as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35743 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35745$as_echo "yes" >&6; }
35746 tst_allow_ioctlsocket="yes"
35747 else
35748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35749$as_echo "no" >&6; }
35750 tst_allow_ioctlsocket="no"
35751 fi
35752 fi
35753 #
35754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35755$as_echo_n "checking if ioctlsocket might be used... " >&6; }
35756 if test "$tst_links_ioctlsocket" = "yes" &&
35757 test "$tst_proto_ioctlsocket" = "yes" &&
35758 test "$tst_compi_ioctlsocket" = "yes" &&
35759 test "$tst_allow_ioctlsocket" = "yes"; then
35760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35761$as_echo "yes" >&6; }
35762
35763cat >>confdefs.h <<_ACEOF
35764#define HAVE_IOCTLSOCKET 1
35765_ACEOF
35766
35767 curl_cv_func_ioctlsocket="yes"
35768
35769 #
35770 tst_compi_ioctlsocket_fionbio="unknown"
35771 tst_allow_ioctlsocket_fionbio="unknown"
35772 #
35773 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35775$as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35777/* end confdefs.h. */
35778
35779
35780 $curl_includes_winsock2
35781
35782int main (void)
35783{
35784
35785 int flags = 0;
35786 if(0 != ioctlsocket(0, FIONBIO, &flags))
35787 return 1;
35788
35789 ;
35790 return 0;
35791}
35792
35793_ACEOF
35794if ac_fn_c_try_compile "$LINENO"; then :
35795
35796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35797$as_echo "yes" >&6; }
35798 tst_compi_ioctlsocket_fionbio="yes"
35799
35800else
35801
35802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35803$as_echo "no" >&6; }
35804 tst_compi_ioctlsocket_fionbio="no"
35805
35806fi
35807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35808 fi
35809 #
35810 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35812$as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35813 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35815$as_echo "yes" >&6; }
35816 tst_allow_ioctlsocket_fionbio="yes"
35817 else
35818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35819$as_echo "no" >&6; }
35820 tst_allow_ioctlsocket_fionbio="no"
35821 fi
35822 fi
35823 #
35824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35825$as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35826 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35827 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35829$as_echo "yes" >&6; }
35830
35831cat >>confdefs.h <<_ACEOF
35832#define HAVE_IOCTLSOCKET_FIONBIO 1
35833_ACEOF
35834
35835 curl_cv_func_ioctlsocket_fionbio="yes"
35836 else
35837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35838$as_echo "no" >&6; }
35839 curl_cv_func_ioctlsocket_fionbio="no"
35840 fi
35841
35842 else
35843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35844$as_echo "no" >&6; }
35845 curl_cv_func_ioctlsocket="no"
35846 fi
35847
35848
35849 #
35850 tst_links_ioctlsocket_camel="unknown"
35851 tst_proto_ioctlsocket_camel="unknown"
35852 tst_compi_ioctlsocket_camel="unknown"
35853 tst_allow_ioctlsocket_camel="unknown"
35854 #
35855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35856$as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35858/* end confdefs.h. */
35859
35860
35861#define IoctlSocket innocuous_IoctlSocket
35862#ifdef __STDC__
35863# include <limits.h>
35864#else
35865# include <assert.h>
35866#endif
35867#undef IoctlSocket
35868#ifdef __cplusplus
35869extern "C"
35870#endif
35871char IoctlSocket ();
35872#if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35873choke me
35874#endif
35875
35876int main (void)
35877{
35878return IoctlSocket ();
35879 ;
35880 return 0;
35881}
35882
35883_ACEOF
35884if ac_fn_c_try_link "$LINENO"; then :
35885
35886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35887$as_echo "yes" >&6; }
35888 tst_links_ioctlsocket_camel="yes"
35889
35890else
35891
35892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35893$as_echo "no" >&6; }
35894 tst_links_ioctlsocket_camel="no"
35895
35896fi
35897rm -f core conftest.err conftest.$ac_objext \
35898 conftest$ac_exeext conftest.$ac_ext
35899 #
35900 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35902$as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35904/* end confdefs.h. */
35905
35906 $curl_includes_stropts
35907
35908_ACEOF
35909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35910 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35911
35912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35913$as_echo "yes" >&6; }
35914 tst_proto_ioctlsocket_camel="yes"
35915
35916else
35917
35918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35919$as_echo "no" >&6; }
35920 tst_proto_ioctlsocket_camel="no"
35921
35922fi
35923rm -f conftest*
35924
35925 fi
35926 #
35927 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35929$as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35931/* end confdefs.h. */
35932
35933
35934 $curl_includes_stropts
35935
35936int main (void)
35937{
35938
35939 if(0 != IoctlSocket(0, 0, 0))
35940 return 1;
35941
35942 ;
35943 return 0;
35944}
35945
35946_ACEOF
35947if ac_fn_c_try_compile "$LINENO"; then :
35948
35949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35950$as_echo "yes" >&6; }
35951 tst_compi_ioctlsocket_camel="yes"
35952
35953else
35954
35955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35956$as_echo "no" >&6; }
35957 tst_compi_ioctlsocket_camel="no"
35958
35959fi
35960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35961 fi
35962 #
35963 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
35964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
35965$as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
35966 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
35967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35968$as_echo "yes" >&6; }
35969 tst_allow_ioctlsocket_camel="yes"
35970 else
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972$as_echo "no" >&6; }
35973 tst_allow_ioctlsocket_camel="no"
35974 fi
35975 fi
35976 #
35977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
35978$as_echo_n "checking if IoctlSocket might be used... " >&6; }
35979 if test "$tst_links_ioctlsocket_camel" = "yes" &&
35980 test "$tst_proto_ioctlsocket_camel" = "yes" &&
35981 test "$tst_compi_ioctlsocket_camel" = "yes" &&
35982 test "$tst_allow_ioctlsocket_camel" = "yes"; then
35983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35984$as_echo "yes" >&6; }
35985
35986cat >>confdefs.h <<_ACEOF
35987#define HAVE_IOCTLSOCKET_CAMEL 1
35988_ACEOF
35989
35990 curl_cv_func_ioctlsocket_camel="yes"
35991
35992 #
35993 tst_compi_ioctlsocket_camel_fionbio="unknown"
35994 tst_allow_ioctlsocket_camel_fionbio="unknown"
35995 #
35996 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
35997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
35998$as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
35999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36000/* end confdefs.h. */
36001
36002
36003 $curl_includes_stropts
36004
36005int main (void)
36006{
36007
36008 long flags = 0;
36009 if(0 != ioctlsocket(0, FIONBIO, &flags))
36010 return 1;
36011
36012 ;
36013 return 0;
36014}
36015
36016_ACEOF
36017if ac_fn_c_try_compile "$LINENO"; then :
36018
36019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36020$as_echo "yes" >&6; }
36021 tst_compi_ioctlsocket_camel_fionbio="yes"
36022
36023else
36024
36025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36026$as_echo "no" >&6; }
36027 tst_compi_ioctlsocket_camel_fionbio="no"
36028
36029fi
36030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36031 fi
36032 #
36033 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36035$as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36036 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36038$as_echo "yes" >&6; }
36039 tst_allow_ioctlsocket_camel_fionbio="yes"
36040 else
36041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36042$as_echo "no" >&6; }
36043 tst_allow_ioctlsocket_camel_fionbio="no"
36044 fi
36045 fi
36046 #
36047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36048$as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36049 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36050 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36052$as_echo "yes" >&6; }
36053
36054cat >>confdefs.h <<_ACEOF
36055#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36056_ACEOF
36057
36058 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36059 else
36060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36061$as_echo "no" >&6; }
36062 curl_cv_func_ioctlsocket_camel_fionbio="no"
36063 fi
36064
36065 else
36066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36067$as_echo "no" >&6; }
36068 curl_cv_func_ioctlsocket_camel="no"
36069 fi
36070
36071
36072 #
36073 tst_links_localtime_r="unknown"
36074 tst_proto_localtime_r="unknown"
36075 tst_compi_localtime_r="unknown"
36076 tst_works_localtime_r="unknown"
36077 tst_allow_localtime_r="unknown"
36078 #
36079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36080$as_echo_n "checking if localtime_r can be linked... " >&6; }
36081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36082/* end confdefs.h. */
36083
36084
36085#define localtime_r innocuous_localtime_r
36086#ifdef __STDC__
36087# include <limits.h>
36088#else
36089# include <assert.h>
36090#endif
36091#undef localtime_r
36092#ifdef __cplusplus
36093extern "C"
36094#endif
36095char localtime_r ();
36096#if defined __stub_localtime_r || defined __stub___localtime_r
36097choke me
36098#endif
36099
36100int main (void)
36101{
36102return localtime_r ();
36103 ;
36104 return 0;
36105}
36106
36107_ACEOF
36108if ac_fn_c_try_link "$LINENO"; then :
36109
36110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36111$as_echo "yes" >&6; }
36112 tst_links_localtime_r="yes"
36113
36114else
36115
36116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36117$as_echo "no" >&6; }
36118 tst_links_localtime_r="no"
36119
36120fi
36121rm -f core conftest.err conftest.$ac_objext \
36122 conftest$ac_exeext conftest.$ac_ext
36123 #
36124 if test "$tst_links_localtime_r" = "yes"; then
36125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36126$as_echo_n "checking if localtime_r is prototyped... " >&6; }
36127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36128/* end confdefs.h. */
36129
36130 $curl_includes_time
36131
36132_ACEOF
36133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36134 $EGREP "localtime_r" >/dev/null 2>&1; then :
36135
36136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36137$as_echo "yes" >&6; }
36138 tst_proto_localtime_r="yes"
36139
36140else
36141
36142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36143$as_echo "no" >&6; }
36144 tst_proto_localtime_r="no"
36145
36146fi
36147rm -f conftest*
36148
36149 fi
36150 #
36151 if test "$tst_proto_localtime_r" = "yes"; then
36152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36153$as_echo_n "checking if localtime_r is compilable... " >&6; }
36154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36155/* end confdefs.h. */
36156
36157
36158 $curl_includes_time
36159
36160int main (void)
36161{
36162
36163 if(0 != localtime_r(0, 0))
36164 return 1;
36165
36166 ;
36167 return 0;
36168}
36169
36170_ACEOF
36171if ac_fn_c_try_compile "$LINENO"; then :
36172
36173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36174$as_echo "yes" >&6; }
36175 tst_compi_localtime_r="yes"
36176
36177else
36178
36179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36180$as_echo "no" >&6; }
36181 tst_compi_localtime_r="no"
36182
36183fi
36184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36185 fi
36186 #
36187 if test "x$cross_compiling" != "xyes" &&
36188 test "$tst_compi_localtime_r" = "yes"; then
36189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36190$as_echo_n "checking if localtime_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036191
36192
36193 old=$LD_LIBRARY_PATH
36194 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36195 export LD_LIBRARY_PATH
36196 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36199as_fn_error $? "cannot run test program while cross compiling
36200See \`config.log' for more details" "$LINENO" 5; }
36201else
36202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36203/* end confdefs.h. */
36204
36205
36206 $curl_includes_stdlib
36207 $curl_includes_time
36208
36209int main (void)
36210{
36211
36212 time_t clock = 1170352587;
36213 struct tm *tmp = 0;
36214 struct tm result;
36215 tmp = localtime_r(&clock, &result);
36216 if(tmp)
36217 exit(0);
36218 else
36219 exit(1);
36220
36221 ;
36222 return 0;
36223}
36224
36225_ACEOF
36226if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036228$as_echo "yes" >&6; }
36229 tst_works_localtime_r="yes"
36230
36231else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036233$as_echo "no" >&6; }
36234 tst_works_localtime_r="no"
36235
36236fi
36237rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36238 conftest.$ac_objext conftest.beam conftest.$ac_ext
36239fi
36240
Elliott Hughesa93fb052018-12-12 14:22:48 -080036241 LD_LIBRARY_PATH=$old # restore
36242
Elliott Hughes82be86d2017-09-20 17:00:17 -070036243 fi
36244 #
36245 if test "$tst_compi_localtime_r" = "yes" &&
36246 test "$tst_works_localtime_r" != "no"; then
36247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36248$as_echo_n "checking if localtime_r usage allowed... " >&6; }
36249 if test "x$curl_disallow_localtime_r" != "xyes"; then
36250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36251$as_echo "yes" >&6; }
36252 tst_allow_localtime_r="yes"
36253 else
36254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36255$as_echo "no" >&6; }
36256 tst_allow_localtime_r="no"
36257 fi
36258 fi
36259 #
36260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36261$as_echo_n "checking if localtime_r might be used... " >&6; }
36262 if test "$tst_links_localtime_r" = "yes" &&
36263 test "$tst_proto_localtime_r" = "yes" &&
36264 test "$tst_compi_localtime_r" = "yes" &&
36265 test "$tst_allow_localtime_r" = "yes" &&
36266 test "$tst_works_localtime_r" != "no"; then
36267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36268$as_echo "yes" >&6; }
36269
36270cat >>confdefs.h <<_ACEOF
36271#define HAVE_LOCALTIME_R 1
36272_ACEOF
36273
36274 curl_cv_func_localtime_r="yes"
36275 else
36276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36277$as_echo "no" >&6; }
36278 curl_cv_func_localtime_r="no"
36279 fi
36280
36281
36282 #
36283 tst_links_memrchr="unknown"
36284 tst_macro_memrchr="unknown"
36285 tst_proto_memrchr="unknown"
36286 tst_compi_memrchr="unknown"
36287 tst_allow_memrchr="unknown"
36288 #
36289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36290$as_echo_n "checking if memrchr can be linked... " >&6; }
36291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36292/* end confdefs.h. */
36293
36294
36295#define memrchr innocuous_memrchr
36296#ifdef __STDC__
36297# include <limits.h>
36298#else
36299# include <assert.h>
36300#endif
36301#undef memrchr
36302#ifdef __cplusplus
36303extern "C"
36304#endif
36305char memrchr ();
36306#if defined __stub_memrchr || defined __stub___memrchr
36307choke me
36308#endif
36309
36310int main (void)
36311{
36312return memrchr ();
36313 ;
36314 return 0;
36315}
36316
36317_ACEOF
36318if ac_fn_c_try_link "$LINENO"; then :
36319
36320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36321$as_echo "yes" >&6; }
36322 tst_links_memrchr="yes"
36323
36324else
36325
36326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36327$as_echo "no" >&6; }
36328 tst_links_memrchr="no"
36329
36330fi
36331rm -f core conftest.err conftest.$ac_objext \
36332 conftest$ac_exeext conftest.$ac_ext
36333 #
36334 if test "$tst_links_memrchr" = "no"; then
36335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36336$as_echo_n "checking if memrchr seems a macro... " >&6; }
36337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36338/* end confdefs.h. */
36339
36340
36341 $curl_includes_string
36342
36343int main (void)
36344{
36345
36346 if(0 != memrchr(0, 0, 0))
36347 return 1;
36348
36349 ;
36350 return 0;
36351}
36352
36353_ACEOF
36354if ac_fn_c_try_link "$LINENO"; then :
36355
36356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36357$as_echo "yes" >&6; }
36358 tst_macro_memrchr="yes"
36359
36360else
36361
36362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36363$as_echo "no" >&6; }
36364 tst_macro_memrchr="no"
36365
36366fi
36367rm -f core conftest.err conftest.$ac_objext \
36368 conftest$ac_exeext conftest.$ac_ext
36369 fi
36370 #
36371 if test "$tst_links_memrchr" = "yes"; then
36372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36373$as_echo_n "checking if memrchr is prototyped... " >&6; }
36374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36375/* end confdefs.h. */
36376
36377 $curl_includes_string
36378
36379_ACEOF
36380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36381 $EGREP "memrchr" >/dev/null 2>&1; then :
36382
36383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36384$as_echo "yes" >&6; }
36385 tst_proto_memrchr="yes"
36386
36387else
36388
36389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36390$as_echo "no" >&6; }
36391 tst_proto_memrchr="no"
36392
36393fi
36394rm -f conftest*
36395
36396 fi
36397 #
36398 if test "$tst_proto_memrchr" = "yes" ||
36399 test "$tst_macro_memrchr" = "yes"; then
36400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36401$as_echo_n "checking if memrchr is compilable... " >&6; }
36402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36403/* end confdefs.h. */
36404
36405
36406 $curl_includes_string
36407
36408int main (void)
36409{
36410
36411 if(0 != memrchr(0, 0, 0))
36412 return 1;
36413
36414 ;
36415 return 0;
36416}
36417
36418_ACEOF
36419if ac_fn_c_try_compile "$LINENO"; then :
36420
36421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36422$as_echo "yes" >&6; }
36423 tst_compi_memrchr="yes"
36424
36425else
36426
36427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36428$as_echo "no" >&6; }
36429 tst_compi_memrchr="no"
36430
36431fi
36432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36433 fi
36434 #
36435 if test "$tst_compi_memrchr" = "yes"; then
36436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36437$as_echo_n "checking if memrchr usage allowed... " >&6; }
36438 if test "x$curl_disallow_memrchr" != "xyes"; then
36439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36440$as_echo "yes" >&6; }
36441 tst_allow_memrchr="yes"
36442 else
36443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36444$as_echo "no" >&6; }
36445 tst_allow_memrchr="no"
36446 fi
36447 fi
36448 #
36449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36450$as_echo_n "checking if memrchr might be used... " >&6; }
36451 if (test "$tst_proto_memrchr" = "yes" ||
36452 test "$tst_macro_memrchr" = "yes") &&
36453 test "$tst_compi_memrchr" = "yes" &&
36454 test "$tst_allow_memrchr" = "yes"; then
36455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36456$as_echo "yes" >&6; }
36457
36458cat >>confdefs.h <<_ACEOF
36459#define HAVE_MEMRCHR 1
36460_ACEOF
36461
36462 curl_cv_func_memrchr="yes"
36463 else
36464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36465$as_echo "no" >&6; }
36466 curl_cv_func_memrchr="no"
36467 fi
36468
36469
36470 #
36471 tst_links_poll="unknown"
36472 tst_proto_poll="unknown"
36473 tst_compi_poll="unknown"
36474 tst_works_poll="unknown"
36475 tst_allow_poll="unknown"
36476 #
36477 case $host_os in
36478 darwin*|interix*)
36479 curl_disallow_poll="yes"
36480 tst_compi_poll="no"
36481 ;;
36482 esac
36483 #
36484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36485$as_echo_n "checking if poll can be linked... " >&6; }
36486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36487/* end confdefs.h. */
36488
36489
36490 $curl_includes_poll
36491
36492int main (void)
36493{
36494
36495 if(0 != poll(0, 0, 0))
36496 return 1;
36497
36498 ;
36499 return 0;
36500}
36501
36502_ACEOF
36503if ac_fn_c_try_link "$LINENO"; then :
36504
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36506$as_echo "yes" >&6; }
36507 tst_links_poll="yes"
36508
36509else
36510
36511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36512$as_echo "no" >&6; }
36513 tst_links_poll="no"
36514
36515fi
36516rm -f core conftest.err conftest.$ac_objext \
36517 conftest$ac_exeext conftest.$ac_ext
36518 #
36519 if test "$tst_links_poll" = "yes"; then
36520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36521$as_echo_n "checking if poll is prototyped... " >&6; }
36522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36523/* end confdefs.h. */
36524
36525 $curl_includes_poll
36526
36527_ACEOF
36528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36529 $EGREP "poll" >/dev/null 2>&1; then :
36530
36531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36532$as_echo "yes" >&6; }
36533 tst_proto_poll="yes"
36534
36535else
36536
36537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36538$as_echo "no" >&6; }
36539 tst_proto_poll="no"
36540
36541fi
36542rm -f conftest*
36543
36544 fi
36545 #
36546 if test "$tst_proto_poll" = "yes"; then
36547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36548$as_echo_n "checking if poll is compilable... " >&6; }
36549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36550/* end confdefs.h. */
36551
36552
36553 $curl_includes_poll
36554
36555int main (void)
36556{
36557
36558 if(0 != poll(0, 0, 0))
36559 return 1;
36560
36561 ;
36562 return 0;
36563}
36564
36565_ACEOF
36566if ac_fn_c_try_compile "$LINENO"; then :
36567
36568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36569$as_echo "yes" >&6; }
36570 tst_compi_poll="yes"
36571
36572else
36573
36574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36575$as_echo "no" >&6; }
36576 tst_compi_poll="no"
36577
36578fi
36579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36580 fi
36581 #
36582 if test "x$cross_compiling" != "xyes" &&
36583 test "$tst_compi_poll" = "yes"; then
36584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36585$as_echo_n "checking if poll seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080036586
36587
36588 old=$LD_LIBRARY_PATH
36589 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36590 export LD_LIBRARY_PATH
36591 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070036592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36594as_fn_error $? "cannot run test program while cross compiling
36595See \`config.log' for more details" "$LINENO" 5; }
36596else
36597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36598/* end confdefs.h. */
36599
36600
36601 $curl_includes_stdlib
36602 $curl_includes_poll
36603 $curl_includes_time
36604
36605int main (void)
36606{
36607
36608 /* detect the original poll() breakage */
36609 if(0 != poll(0, 0, 10))
36610 exit(1); /* fail */
36611 else {
36612 /* detect the 10.12 poll() breakage */
36613 struct timeval before, after;
36614 int rc;
36615 size_t us;
36616
36617 gettimeofday(&before, NULL);
36618 rc = poll(NULL, 0, 500);
36619 gettimeofday(&after, NULL);
36620
36621 us = (after.tv_sec - before.tv_sec) * 1000000 +
36622 (after.tv_usec - before.tv_usec);
36623
36624 if(us < 400000)
36625 exit(1);
36626 }
36627
36628 ;
36629 return 0;
36630}
36631
36632_ACEOF
36633if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080036634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036635$as_echo "yes" >&6; }
36636 tst_works_poll="yes"
36637
36638else
Elliott Hughesa93fb052018-12-12 14:22:48 -080036639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070036640$as_echo "no" >&6; }
36641 tst_works_poll="no"
36642
36643fi
36644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36645 conftest.$ac_objext conftest.beam conftest.$ac_ext
36646fi
36647
Elliott Hughesa93fb052018-12-12 14:22:48 -080036648 LD_LIBRARY_PATH=$old # restore
36649
Elliott Hughes82be86d2017-09-20 17:00:17 -070036650 fi
36651 #
36652 if test "$tst_compi_poll" = "yes" &&
36653 test "$tst_works_poll" != "no"; then
36654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36655$as_echo_n "checking if poll usage allowed... " >&6; }
36656 if test "x$curl_disallow_poll" != "xyes"; then
36657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36658$as_echo "yes" >&6; }
36659 tst_allow_poll="yes"
36660 else
36661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36662$as_echo "no" >&6; }
36663 tst_allow_poll="no"
36664 fi
36665 fi
36666 #
36667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36668$as_echo_n "checking if poll might be used... " >&6; }
36669 if test "$tst_links_poll" = "yes" &&
36670 test "$tst_proto_poll" = "yes" &&
36671 test "$tst_compi_poll" = "yes" &&
36672 test "$tst_allow_poll" = "yes" &&
36673 test "$tst_works_poll" != "no"; then
36674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36675$as_echo "yes" >&6; }
36676
36677cat >>confdefs.h <<_ACEOF
36678#define HAVE_POLL 1
36679_ACEOF
36680
36681
36682cat >>confdefs.h <<_ACEOF
36683#define HAVE_POLL_FINE 1
36684_ACEOF
36685
36686 curl_cv_func_poll="yes"
36687 else
36688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36689$as_echo "no" >&6; }
36690 curl_cv_func_poll="no"
36691 fi
36692
36693
36694 #
36695 tst_links_setsockopt="unknown"
36696 tst_proto_setsockopt="unknown"
36697 tst_compi_setsockopt="unknown"
36698 tst_allow_setsockopt="unknown"
36699 #
36700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36701$as_echo_n "checking if setsockopt can be linked... " >&6; }
36702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36703/* end confdefs.h. */
36704
36705
36706 $curl_includes_winsock2
36707 $curl_includes_sys_socket
36708
36709int main (void)
36710{
36711
36712 if(0 != setsockopt(0, 0, 0, 0, 0))
36713 return 1;
36714
36715 ;
36716 return 0;
36717}
36718
36719_ACEOF
36720if ac_fn_c_try_link "$LINENO"; then :
36721
36722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36723$as_echo "yes" >&6; }
36724 tst_links_setsockopt="yes"
36725
36726else
36727
36728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36729$as_echo "no" >&6; }
36730 tst_links_setsockopt="no"
36731
36732fi
36733rm -f core conftest.err conftest.$ac_objext \
36734 conftest$ac_exeext conftest.$ac_ext
36735 #
36736 if test "$tst_links_setsockopt" = "yes"; then
36737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36738$as_echo_n "checking if setsockopt is prototyped... " >&6; }
36739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36740/* end confdefs.h. */
36741
36742 $curl_includes_winsock2
36743 $curl_includes_sys_socket
36744
36745_ACEOF
36746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36747 $EGREP "setsockopt" >/dev/null 2>&1; then :
36748
36749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36750$as_echo "yes" >&6; }
36751 tst_proto_setsockopt="yes"
36752
36753else
36754
36755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36756$as_echo "no" >&6; }
36757 tst_proto_setsockopt="no"
36758
36759fi
36760rm -f conftest*
36761
36762 fi
36763 #
36764 if test "$tst_proto_setsockopt" = "yes"; then
36765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36766$as_echo_n "checking if setsockopt is compilable... " >&6; }
36767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36768/* end confdefs.h. */
36769
36770
36771 $curl_includes_winsock2
36772 $curl_includes_sys_socket
36773
36774int main (void)
36775{
36776
36777 if(0 != setsockopt(0, 0, 0, 0, 0))
36778 return 1;
36779
36780 ;
36781 return 0;
36782}
36783
36784_ACEOF
36785if ac_fn_c_try_compile "$LINENO"; then :
36786
36787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36788$as_echo "yes" >&6; }
36789 tst_compi_setsockopt="yes"
36790
36791else
36792
36793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36794$as_echo "no" >&6; }
36795 tst_compi_setsockopt="no"
36796
36797fi
36798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36799 fi
36800 #
36801 if test "$tst_compi_setsockopt" = "yes"; then
36802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36803$as_echo_n "checking if setsockopt usage allowed... " >&6; }
36804 if test "x$curl_disallow_setsockopt" != "xyes"; then
36805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36806$as_echo "yes" >&6; }
36807 tst_allow_setsockopt="yes"
36808 else
36809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36810$as_echo "no" >&6; }
36811 tst_allow_setsockopt="no"
36812 fi
36813 fi
36814 #
36815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36816$as_echo_n "checking if setsockopt might be used... " >&6; }
36817 if test "$tst_links_setsockopt" = "yes" &&
36818 test "$tst_proto_setsockopt" = "yes" &&
36819 test "$tst_compi_setsockopt" = "yes" &&
36820 test "$tst_allow_setsockopt" = "yes"; then
36821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36822$as_echo "yes" >&6; }
36823
36824cat >>confdefs.h <<_ACEOF
36825#define HAVE_SETSOCKOPT 1
36826_ACEOF
36827
36828 curl_cv_func_setsockopt="yes"
36829
36830 #
36831 tst_compi_setsockopt_so_nonblock="unknown"
36832 tst_allow_setsockopt_so_nonblock="unknown"
36833 #
36834 if test "$curl_cv_func_setsockopt" = "yes"; then
36835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36836$as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36838/* end confdefs.h. */
36839
36840
36841 $curl_includes_winsock2
36842 $curl_includes_sys_socket
36843
36844int main (void)
36845{
36846
36847 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36848 return 1;
36849
36850 ;
36851 return 0;
36852}
36853
36854_ACEOF
36855if ac_fn_c_try_compile "$LINENO"; then :
36856
36857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36858$as_echo "yes" >&6; }
36859 tst_compi_setsockopt_so_nonblock="yes"
36860
36861else
36862
36863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36864$as_echo "no" >&6; }
36865 tst_compi_setsockopt_so_nonblock="no"
36866
36867fi
36868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36869 fi
36870 #
36871 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36873$as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36874 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36876$as_echo "yes" >&6; }
36877 tst_allow_setsockopt_so_nonblock="yes"
36878 else
36879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36880$as_echo "no" >&6; }
36881 tst_allow_setsockopt_so_nonblock="no"
36882 fi
36883 fi
36884 #
36885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36886$as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36887 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36888 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36890$as_echo "yes" >&6; }
36891
36892cat >>confdefs.h <<_ACEOF
36893#define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36894_ACEOF
36895
36896 curl_cv_func_setsockopt_so_nonblock="yes"
36897 else
36898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36899$as_echo "no" >&6; }
36900 curl_cv_func_setsockopt_so_nonblock="no"
36901 fi
36902
36903 else
36904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36905$as_echo "no" >&6; }
36906 curl_cv_func_setsockopt="no"
36907 fi
36908
36909
36910curl_includes_signal="\
36911/* includes start */
36912#ifdef HAVE_SYS_TYPES_H
36913# include <sys/types.h>
36914#endif
36915#ifdef HAVE_SIGNAL_H
36916# include <signal.h>
36917#endif
36918/* includes end */"
36919 for ac_header in sys/types.h signal.h
36920do :
36921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36922ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36923"
36924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36925 cat >>confdefs.h <<_ACEOF
36926#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36927_ACEOF
36928
36929fi
36930
36931done
36932
36933
36934
36935 #
36936 tst_links_sigaction="unknown"
36937 tst_proto_sigaction="unknown"
36938 tst_compi_sigaction="unknown"
36939 tst_allow_sigaction="unknown"
36940 #
36941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36942$as_echo_n "checking if sigaction can be linked... " >&6; }
36943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36944/* end confdefs.h. */
36945
36946
36947#define sigaction innocuous_sigaction
36948#ifdef __STDC__
36949# include <limits.h>
36950#else
36951# include <assert.h>
36952#endif
36953#undef sigaction
36954#ifdef __cplusplus
36955extern "C"
36956#endif
36957char sigaction ();
36958#if defined __stub_sigaction || defined __stub___sigaction
36959choke me
36960#endif
36961
36962int main (void)
36963{
36964return sigaction ();
36965 ;
36966 return 0;
36967}
36968
36969_ACEOF
36970if ac_fn_c_try_link "$LINENO"; then :
36971
36972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36973$as_echo "yes" >&6; }
36974 tst_links_sigaction="yes"
36975
36976else
36977
36978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36979$as_echo "no" >&6; }
36980 tst_links_sigaction="no"
36981
36982fi
36983rm -f core conftest.err conftest.$ac_objext \
36984 conftest$ac_exeext conftest.$ac_ext
36985 #
36986 if test "$tst_links_sigaction" = "yes"; then
36987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
36988$as_echo_n "checking if sigaction is prototyped... " >&6; }
36989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36990/* end confdefs.h. */
36991
36992 $curl_includes_signal
36993
36994_ACEOF
36995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36996 $EGREP "sigaction" >/dev/null 2>&1; then :
36997
36998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36999$as_echo "yes" >&6; }
37000 tst_proto_sigaction="yes"
37001
37002else
37003
37004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37005$as_echo "no" >&6; }
37006 tst_proto_sigaction="no"
37007
37008fi
37009rm -f conftest*
37010
37011 fi
37012 #
37013 if test "$tst_proto_sigaction" = "yes"; then
37014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37015$as_echo_n "checking if sigaction is compilable... " >&6; }
37016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37017/* end confdefs.h. */
37018
37019
37020 $curl_includes_signal
37021
37022int main (void)
37023{
37024
37025 if(0 != sigaction(0, 0, 0))
37026 return 1;
37027
37028 ;
37029 return 0;
37030}
37031
37032_ACEOF
37033if ac_fn_c_try_compile "$LINENO"; then :
37034
37035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37036$as_echo "yes" >&6; }
37037 tst_compi_sigaction="yes"
37038
37039else
37040
37041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37042$as_echo "no" >&6; }
37043 tst_compi_sigaction="no"
37044
37045fi
37046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37047 fi
37048 #
37049 if test "$tst_compi_sigaction" = "yes"; then
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37051$as_echo_n "checking if sigaction usage allowed... " >&6; }
37052 if test "x$curl_disallow_sigaction" != "xyes"; then
37053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37054$as_echo "yes" >&6; }
37055 tst_allow_sigaction="yes"
37056 else
37057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37058$as_echo "no" >&6; }
37059 tst_allow_sigaction="no"
37060 fi
37061 fi
37062 #
37063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37064$as_echo_n "checking if sigaction might be used... " >&6; }
37065 if test "$tst_links_sigaction" = "yes" &&
37066 test "$tst_proto_sigaction" = "yes" &&
37067 test "$tst_compi_sigaction" = "yes" &&
37068 test "$tst_allow_sigaction" = "yes"; then
37069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37070$as_echo "yes" >&6; }
37071
37072cat >>confdefs.h <<_ACEOF
37073#define HAVE_SIGACTION 1
37074_ACEOF
37075
37076 curl_cv_func_sigaction="yes"
37077 else
37078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37079$as_echo "no" >&6; }
37080 curl_cv_func_sigaction="no"
37081 fi
37082
37083
37084 #
37085 tst_links_siginterrupt="unknown"
37086 tst_proto_siginterrupt="unknown"
37087 tst_compi_siginterrupt="unknown"
37088 tst_allow_siginterrupt="unknown"
37089 #
37090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37091$as_echo_n "checking if siginterrupt can be linked... " >&6; }
37092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37093/* end confdefs.h. */
37094
37095
37096#define siginterrupt innocuous_siginterrupt
37097#ifdef __STDC__
37098# include <limits.h>
37099#else
37100# include <assert.h>
37101#endif
37102#undef siginterrupt
37103#ifdef __cplusplus
37104extern "C"
37105#endif
37106char siginterrupt ();
37107#if defined __stub_siginterrupt || defined __stub___siginterrupt
37108choke me
37109#endif
37110
37111int main (void)
37112{
37113return siginterrupt ();
37114 ;
37115 return 0;
37116}
37117
37118_ACEOF
37119if ac_fn_c_try_link "$LINENO"; then :
37120
37121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37122$as_echo "yes" >&6; }
37123 tst_links_siginterrupt="yes"
37124
37125else
37126
37127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37128$as_echo "no" >&6; }
37129 tst_links_siginterrupt="no"
37130
37131fi
37132rm -f core conftest.err conftest.$ac_objext \
37133 conftest$ac_exeext conftest.$ac_ext
37134 #
37135 if test "$tst_links_siginterrupt" = "yes"; then
37136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37137$as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37139/* end confdefs.h. */
37140
37141 $curl_includes_signal
37142
37143_ACEOF
37144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37145 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37146
37147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37148$as_echo "yes" >&6; }
37149 tst_proto_siginterrupt="yes"
37150
37151else
37152
37153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37154$as_echo "no" >&6; }
37155 tst_proto_siginterrupt="no"
37156
37157fi
37158rm -f conftest*
37159
37160 fi
37161 #
37162 if test "$tst_proto_siginterrupt" = "yes"; then
37163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37164$as_echo_n "checking if siginterrupt is compilable... " >&6; }
37165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37166/* end confdefs.h. */
37167
37168
37169 $curl_includes_signal
37170
37171int main (void)
37172{
37173
37174 if(0 != siginterrupt(0, 0))
37175 return 1;
37176
37177 ;
37178 return 0;
37179}
37180
37181_ACEOF
37182if ac_fn_c_try_compile "$LINENO"; then :
37183
37184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37185$as_echo "yes" >&6; }
37186 tst_compi_siginterrupt="yes"
37187
37188else
37189
37190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37191$as_echo "no" >&6; }
37192 tst_compi_siginterrupt="no"
37193
37194fi
37195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37196 fi
37197 #
37198 if test "$tst_compi_siginterrupt" = "yes"; then
37199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37200$as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37201 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37203$as_echo "yes" >&6; }
37204 tst_allow_siginterrupt="yes"
37205 else
37206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37207$as_echo "no" >&6; }
37208 tst_allow_siginterrupt="no"
37209 fi
37210 fi
37211 #
37212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37213$as_echo_n "checking if siginterrupt might be used... " >&6; }
37214 if test "$tst_links_siginterrupt" = "yes" &&
37215 test "$tst_proto_siginterrupt" = "yes" &&
37216 test "$tst_compi_siginterrupt" = "yes" &&
37217 test "$tst_allow_siginterrupt" = "yes"; then
37218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37219$as_echo "yes" >&6; }
37220
37221cat >>confdefs.h <<_ACEOF
37222#define HAVE_SIGINTERRUPT 1
37223_ACEOF
37224
37225 curl_cv_func_siginterrupt="yes"
37226 else
37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37228$as_echo "no" >&6; }
37229 curl_cv_func_siginterrupt="no"
37230 fi
37231
37232
37233 #
37234 tst_links_signal="unknown"
37235 tst_proto_signal="unknown"
37236 tst_compi_signal="unknown"
37237 tst_allow_signal="unknown"
37238 #
37239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37240$as_echo_n "checking if signal can be linked... " >&6; }
37241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37242/* end confdefs.h. */
37243
37244
37245#define signal innocuous_signal
37246#ifdef __STDC__
37247# include <limits.h>
37248#else
37249# include <assert.h>
37250#endif
37251#undef signal
37252#ifdef __cplusplus
37253extern "C"
37254#endif
37255char signal ();
37256#if defined __stub_signal || defined __stub___signal
37257choke me
37258#endif
37259
37260int main (void)
37261{
37262return signal ();
37263 ;
37264 return 0;
37265}
37266
37267_ACEOF
37268if ac_fn_c_try_link "$LINENO"; then :
37269
37270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37271$as_echo "yes" >&6; }
37272 tst_links_signal="yes"
37273
37274else
37275
37276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37277$as_echo "no" >&6; }
37278 tst_links_signal="no"
37279
37280fi
37281rm -f core conftest.err conftest.$ac_objext \
37282 conftest$ac_exeext conftest.$ac_ext
37283 #
37284 if test "$tst_links_signal" = "yes"; then
37285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37286$as_echo_n "checking if signal is prototyped... " >&6; }
37287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37288/* end confdefs.h. */
37289
37290 $curl_includes_signal
37291
37292_ACEOF
37293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37294 $EGREP "signal" >/dev/null 2>&1; then :
37295
37296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37297$as_echo "yes" >&6; }
37298 tst_proto_signal="yes"
37299
37300else
37301
37302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303$as_echo "no" >&6; }
37304 tst_proto_signal="no"
37305
37306fi
37307rm -f conftest*
37308
37309 fi
37310 #
37311 if test "$tst_proto_signal" = "yes"; then
37312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37313$as_echo_n "checking if signal is compilable... " >&6; }
37314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37315/* end confdefs.h. */
37316
37317
37318 $curl_includes_signal
37319
37320int main (void)
37321{
37322
37323 if(0 != signal(0, 0))
37324 return 1;
37325
37326 ;
37327 return 0;
37328}
37329
37330_ACEOF
37331if ac_fn_c_try_compile "$LINENO"; then :
37332
37333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37334$as_echo "yes" >&6; }
37335 tst_compi_signal="yes"
37336
37337else
37338
37339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37340$as_echo "no" >&6; }
37341 tst_compi_signal="no"
37342
37343fi
37344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37345 fi
37346 #
37347 if test "$tst_compi_signal" = "yes"; then
37348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37349$as_echo_n "checking if signal usage allowed... " >&6; }
37350 if test "x$curl_disallow_signal" != "xyes"; then
37351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37352$as_echo "yes" >&6; }
37353 tst_allow_signal="yes"
37354 else
37355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37356$as_echo "no" >&6; }
37357 tst_allow_signal="no"
37358 fi
37359 fi
37360 #
37361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37362$as_echo_n "checking if signal might be used... " >&6; }
37363 if test "$tst_links_signal" = "yes" &&
37364 test "$tst_proto_signal" = "yes" &&
37365 test "$tst_compi_signal" = "yes" &&
37366 test "$tst_allow_signal" = "yes"; then
37367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37368$as_echo "yes" >&6; }
37369
37370cat >>confdefs.h <<_ACEOF
37371#define HAVE_SIGNAL 1
37372_ACEOF
37373
37374 curl_cv_func_signal="yes"
37375 else
37376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37377$as_echo "no" >&6; }
37378 curl_cv_func_signal="no"
37379 fi
37380
37381
37382curl_includes_setjmp="\
37383/* includes start */
37384#ifdef HAVE_SYS_TYPES_H
37385# include <sys/types.h>
37386#endif
37387#ifdef HAVE_SETJMP_H
37388# include <setjmp.h>
37389#endif
37390/* includes end */"
37391 for ac_header in sys/types.h setjmp.h
37392do :
37393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37394ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37395"
37396if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37397 cat >>confdefs.h <<_ACEOF
37398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37399_ACEOF
37400
37401fi
37402
37403done
37404
37405
37406
37407 #
37408 tst_links_sigsetjmp="unknown"
37409 tst_macro_sigsetjmp="unknown"
37410 tst_proto_sigsetjmp="unknown"
37411 tst_compi_sigsetjmp="unknown"
37412 tst_allow_sigsetjmp="unknown"
37413 #
37414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37415$as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37417/* end confdefs.h. */
37418
37419
37420#define sigsetjmp innocuous_sigsetjmp
37421#ifdef __STDC__
37422# include <limits.h>
37423#else
37424# include <assert.h>
37425#endif
37426#undef sigsetjmp
37427#ifdef __cplusplus
37428extern "C"
37429#endif
37430char sigsetjmp ();
37431#if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37432choke me
37433#endif
37434
37435int main (void)
37436{
37437return sigsetjmp ();
37438 ;
37439 return 0;
37440}
37441
37442_ACEOF
37443if ac_fn_c_try_link "$LINENO"; then :
37444
37445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37446$as_echo "yes" >&6; }
37447 tst_links_sigsetjmp="yes"
37448
37449else
37450
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37452$as_echo "no" >&6; }
37453 tst_links_sigsetjmp="no"
37454
37455fi
37456rm -f core conftest.err conftest.$ac_objext \
37457 conftest$ac_exeext conftest.$ac_ext
37458 #
37459 if test "$tst_links_sigsetjmp" = "no"; then
37460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37461$as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37463/* end confdefs.h. */
37464
37465
37466 $curl_includes_setjmp
37467
37468int main (void)
37469{
37470
37471 sigjmp_buf env;
37472 if(0 != sigsetjmp(env, 0))
37473 return 1;
37474
37475 ;
37476 return 0;
37477}
37478
37479_ACEOF
37480if ac_fn_c_try_link "$LINENO"; then :
37481
37482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37483$as_echo "yes" >&6; }
37484 tst_macro_sigsetjmp="yes"
37485
37486else
37487
37488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37489$as_echo "no" >&6; }
37490 tst_macro_sigsetjmp="no"
37491
37492fi
37493rm -f core conftest.err conftest.$ac_objext \
37494 conftest$ac_exeext conftest.$ac_ext
37495 fi
37496 #
37497 if test "$tst_links_sigsetjmp" = "yes"; then
37498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37499$as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37501/* end confdefs.h. */
37502
37503 $curl_includes_setjmp
37504
37505_ACEOF
37506if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37507 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37508
37509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37510$as_echo "yes" >&6; }
37511 tst_proto_sigsetjmp="yes"
37512
37513else
37514
37515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37516$as_echo "no" >&6; }
37517 tst_proto_sigsetjmp="no"
37518
37519fi
37520rm -f conftest*
37521
37522 fi
37523 #
37524 if test "$tst_proto_sigsetjmp" = "yes" ||
37525 test "$tst_macro_sigsetjmp" = "yes"; then
37526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37527$as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37529/* end confdefs.h. */
37530
37531
37532 $curl_includes_setjmp
37533
37534int main (void)
37535{
37536
37537 sigjmp_buf env;
37538 if(0 != sigsetjmp(env, 0))
37539 return 1;
37540
37541 ;
37542 return 0;
37543}
37544
37545_ACEOF
37546if ac_fn_c_try_compile "$LINENO"; then :
37547
37548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37549$as_echo "yes" >&6; }
37550 tst_compi_sigsetjmp="yes"
37551
37552else
37553
37554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37555$as_echo "no" >&6; }
37556 tst_compi_sigsetjmp="no"
37557
37558fi
37559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37560 fi
37561 #
37562 if test "$tst_compi_sigsetjmp" = "yes"; then
37563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37564$as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37565 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37567$as_echo "yes" >&6; }
37568 tst_allow_sigsetjmp="yes"
37569 else
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571$as_echo "no" >&6; }
37572 tst_allow_sigsetjmp="no"
37573 fi
37574 fi
37575 #
37576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37577$as_echo_n "checking if sigsetjmp might be used... " >&6; }
37578 if (test "$tst_proto_sigsetjmp" = "yes" ||
37579 test "$tst_macro_sigsetjmp" = "yes") &&
37580 test "$tst_compi_sigsetjmp" = "yes" &&
37581 test "$tst_allow_sigsetjmp" = "yes"; then
37582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37583$as_echo "yes" >&6; }
37584
37585cat >>confdefs.h <<_ACEOF
37586#define HAVE_SIGSETJMP 1
37587_ACEOF
37588
37589 curl_cv_func_sigsetjmp="yes"
37590 else
37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37592$as_echo "no" >&6; }
37593 curl_cv_func_sigsetjmp="no"
37594 fi
37595
37596
37597 #
37598 tst_links_socket="unknown"
37599 tst_proto_socket="unknown"
37600 tst_compi_socket="unknown"
37601 tst_allow_socket="unknown"
37602 #
37603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37604$as_echo_n "checking if socket can be linked... " >&6; }
37605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37606/* end confdefs.h. */
37607
37608
37609 $curl_includes_winsock2
37610 $curl_includes_sys_socket
37611 $curl_includes_socket
37612
37613int main (void)
37614{
37615
37616 if(0 != socket(0, 0, 0))
37617 return 1;
37618
37619 ;
37620 return 0;
37621}
37622
37623_ACEOF
37624if ac_fn_c_try_link "$LINENO"; then :
37625
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37627$as_echo "yes" >&6; }
37628 tst_links_socket="yes"
37629
37630else
37631
37632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37633$as_echo "no" >&6; }
37634 tst_links_socket="no"
37635
37636fi
37637rm -f core conftest.err conftest.$ac_objext \
37638 conftest$ac_exeext conftest.$ac_ext
37639 #
37640 if test "$tst_links_socket" = "yes"; then
37641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37642$as_echo_n "checking if socket is prototyped... " >&6; }
37643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37644/* end confdefs.h. */
37645
37646 $curl_includes_winsock2
37647 $curl_includes_sys_socket
37648 $curl_includes_socket
37649
37650_ACEOF
37651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37652 $EGREP "socket" >/dev/null 2>&1; then :
37653
37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37655$as_echo "yes" >&6; }
37656 tst_proto_socket="yes"
37657
37658else
37659
37660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37661$as_echo "no" >&6; }
37662 tst_proto_socket="no"
37663
37664fi
37665rm -f conftest*
37666
37667 fi
37668 #
37669 if test "$tst_proto_socket" = "yes"; then
37670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37671$as_echo_n "checking if socket is compilable... " >&6; }
37672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37673/* end confdefs.h. */
37674
37675
37676 $curl_includes_winsock2
37677 $curl_includes_sys_socket
37678 $curl_includes_socket
37679
37680int main (void)
37681{
37682
37683 if(0 != socket(0, 0, 0))
37684 return 1;
37685
37686 ;
37687 return 0;
37688}
37689
37690_ACEOF
37691if ac_fn_c_try_compile "$LINENO"; then :
37692
37693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37694$as_echo "yes" >&6; }
37695 tst_compi_socket="yes"
37696
37697else
37698
37699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37700$as_echo "no" >&6; }
37701 tst_compi_socket="no"
37702
37703fi
37704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37705 fi
37706 #
37707 if test "$tst_compi_socket" = "yes"; then
37708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37709$as_echo_n "checking if socket usage allowed... " >&6; }
37710 if test "x$curl_disallow_socket" != "xyes"; then
37711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37712$as_echo "yes" >&6; }
37713 tst_allow_socket="yes"
37714 else
37715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37716$as_echo "no" >&6; }
37717 tst_allow_socket="no"
37718 fi
37719 fi
37720 #
37721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37722$as_echo_n "checking if socket might be used... " >&6; }
37723 if test "$tst_links_socket" = "yes" &&
37724 test "$tst_proto_socket" = "yes" &&
37725 test "$tst_compi_socket" = "yes" &&
37726 test "$tst_allow_socket" = "yes"; then
37727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37728$as_echo "yes" >&6; }
37729
37730cat >>confdefs.h <<_ACEOF
37731#define HAVE_SOCKET 1
37732_ACEOF
37733
37734 curl_cv_func_socket="yes"
37735 else
37736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37737$as_echo "no" >&6; }
37738 curl_cv_func_socket="no"
37739 fi
37740
37741
37742 #
37743 tst_links_socketpair="unknown"
37744 tst_proto_socketpair="unknown"
37745 tst_compi_socketpair="unknown"
37746 tst_allow_socketpair="unknown"
37747 #
37748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37749$as_echo_n "checking if socketpair can be linked... " >&6; }
37750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37751/* end confdefs.h. */
37752
37753
37754#define socketpair innocuous_socketpair
37755#ifdef __STDC__
37756# include <limits.h>
37757#else
37758# include <assert.h>
37759#endif
37760#undef socketpair
37761#ifdef __cplusplus
37762extern "C"
37763#endif
37764char socketpair ();
37765#if defined __stub_socketpair || defined __stub___socketpair
37766choke me
37767#endif
37768
37769int main (void)
37770{
37771return socketpair ();
37772 ;
37773 return 0;
37774}
37775
37776_ACEOF
37777if ac_fn_c_try_link "$LINENO"; then :
37778
37779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37780$as_echo "yes" >&6; }
37781 tst_links_socketpair="yes"
37782
37783else
37784
37785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37786$as_echo "no" >&6; }
37787 tst_links_socketpair="no"
37788
37789fi
37790rm -f core conftest.err conftest.$ac_objext \
37791 conftest$ac_exeext conftest.$ac_ext
37792 #
37793 if test "$tst_links_socketpair" = "yes"; then
37794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37795$as_echo_n "checking if socketpair is prototyped... " >&6; }
37796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37797/* end confdefs.h. */
37798
37799 $curl_includes_sys_socket
37800 $curl_includes_socket
37801
37802_ACEOF
37803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37804 $EGREP "socketpair" >/dev/null 2>&1; then :
37805
37806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37807$as_echo "yes" >&6; }
37808 tst_proto_socketpair="yes"
37809
37810else
37811
37812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37813$as_echo "no" >&6; }
37814 tst_proto_socketpair="no"
37815
37816fi
37817rm -f conftest*
37818
37819 fi
37820 #
37821 if test "$tst_proto_socketpair" = "yes"; then
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37823$as_echo_n "checking if socketpair is compilable... " >&6; }
37824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37825/* end confdefs.h. */
37826
37827
37828 $curl_includes_sys_socket
37829 $curl_includes_socket
37830
37831int main (void)
37832{
37833
37834 int sv[2];
37835 if(0 != socketpair(0, 0, 0, sv))
37836 return 1;
37837
37838 ;
37839 return 0;
37840}
37841
37842_ACEOF
37843if ac_fn_c_try_compile "$LINENO"; then :
37844
37845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37846$as_echo "yes" >&6; }
37847 tst_compi_socketpair="yes"
37848
37849else
37850
37851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37852$as_echo "no" >&6; }
37853 tst_compi_socketpair="no"
37854
37855fi
37856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37857 fi
37858 #
37859 if test "$tst_compi_socketpair" = "yes"; then
37860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37861$as_echo_n "checking if socketpair usage allowed... " >&6; }
37862 if test "x$curl_disallow_socketpair" != "xyes"; then
37863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37864$as_echo "yes" >&6; }
37865 tst_allow_socketpair="yes"
37866 else
37867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37868$as_echo "no" >&6; }
37869 tst_allow_socketpair="no"
37870 fi
37871 fi
37872 #
37873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37874$as_echo_n "checking if socketpair might be used... " >&6; }
37875 if test "$tst_links_socketpair" = "yes" &&
37876 test "$tst_proto_socketpair" = "yes" &&
37877 test "$tst_compi_socketpair" = "yes" &&
37878 test "$tst_allow_socketpair" = "yes"; then
37879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37880$as_echo "yes" >&6; }
37881
37882cat >>confdefs.h <<_ACEOF
37883#define HAVE_SOCKETPAIR 1
37884_ACEOF
37885
37886 curl_cv_func_socketpair="yes"
37887 else
37888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37889$as_echo "no" >&6; }
37890 curl_cv_func_socketpair="no"
37891 fi
37892
37893
37894 #
37895 tst_links_strcasecmp="unknown"
37896 tst_proto_strcasecmp="unknown"
37897 tst_compi_strcasecmp="unknown"
37898 tst_allow_strcasecmp="unknown"
37899 #
37900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37901$as_echo_n "checking if strcasecmp can be linked... " >&6; }
37902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37903/* end confdefs.h. */
37904
37905
37906#define strcasecmp innocuous_strcasecmp
37907#ifdef __STDC__
37908# include <limits.h>
37909#else
37910# include <assert.h>
37911#endif
37912#undef strcasecmp
37913#ifdef __cplusplus
37914extern "C"
37915#endif
37916char strcasecmp ();
37917#if defined __stub_strcasecmp || defined __stub___strcasecmp
37918choke me
37919#endif
37920
37921int main (void)
37922{
37923return strcasecmp ();
37924 ;
37925 return 0;
37926}
37927
37928_ACEOF
37929if ac_fn_c_try_link "$LINENO"; then :
37930
37931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37932$as_echo "yes" >&6; }
37933 tst_links_strcasecmp="yes"
37934
37935else
37936
37937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37938$as_echo "no" >&6; }
37939 tst_links_strcasecmp="no"
37940
37941fi
37942rm -f core conftest.err conftest.$ac_objext \
37943 conftest$ac_exeext conftest.$ac_ext
37944 #
37945 if test "$tst_links_strcasecmp" = "yes"; then
37946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37947$as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37949/* end confdefs.h. */
37950
37951 $curl_includes_string
37952
37953_ACEOF
37954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37955 $EGREP "strcasecmp" >/dev/null 2>&1; then :
37956
37957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37958$as_echo "yes" >&6; }
37959 tst_proto_strcasecmp="yes"
37960
37961else
37962
37963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37964$as_echo "no" >&6; }
37965 tst_proto_strcasecmp="no"
37966
37967fi
37968rm -f conftest*
37969
37970 fi
37971 #
37972 if test "$tst_proto_strcasecmp" = "yes"; then
37973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
37974$as_echo_n "checking if strcasecmp is compilable... " >&6; }
37975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37976/* end confdefs.h. */
37977
37978
37979 $curl_includes_string
37980
37981int main (void)
37982{
37983
37984 if(0 != strcasecmp(0, 0))
37985 return 1;
37986
37987 ;
37988 return 0;
37989}
37990
37991_ACEOF
37992if ac_fn_c_try_compile "$LINENO"; then :
37993
37994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37995$as_echo "yes" >&6; }
37996 tst_compi_strcasecmp="yes"
37997
37998else
37999
38000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38001$as_echo "no" >&6; }
38002 tst_compi_strcasecmp="no"
38003
38004fi
38005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38006 fi
38007 #
38008 if test "$tst_compi_strcasecmp" = "yes"; then
38009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38010$as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38011 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38013$as_echo "yes" >&6; }
38014 tst_allow_strcasecmp="yes"
38015 else
38016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38017$as_echo "no" >&6; }
38018 tst_allow_strcasecmp="no"
38019 fi
38020 fi
38021 #
38022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38023$as_echo_n "checking if strcasecmp might be used... " >&6; }
38024 if test "$tst_links_strcasecmp" = "yes" &&
38025 test "$tst_proto_strcasecmp" = "yes" &&
38026 test "$tst_compi_strcasecmp" = "yes" &&
38027 test "$tst_allow_strcasecmp" = "yes"; then
38028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38029$as_echo "yes" >&6; }
38030
38031cat >>confdefs.h <<_ACEOF
38032#define HAVE_STRCASECMP 1
38033_ACEOF
38034
38035 curl_cv_func_strcasecmp="yes"
38036 else
38037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38038$as_echo "no" >&6; }
38039 curl_cv_func_strcasecmp="no"
38040 fi
38041
38042
38043 #
38044 tst_links_strcmpi="unknown"
38045 tst_proto_strcmpi="unknown"
38046 tst_compi_strcmpi="unknown"
38047 tst_allow_strcmpi="unknown"
38048 #
38049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38050$as_echo_n "checking if strcmpi can be linked... " >&6; }
38051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38052/* end confdefs.h. */
38053
38054
38055#define strcmpi innocuous_strcmpi
38056#ifdef __STDC__
38057# include <limits.h>
38058#else
38059# include <assert.h>
38060#endif
38061#undef strcmpi
38062#ifdef __cplusplus
38063extern "C"
38064#endif
38065char strcmpi ();
38066#if defined __stub_strcmpi || defined __stub___strcmpi
38067choke me
38068#endif
38069
38070int main (void)
38071{
38072return strcmpi ();
38073 ;
38074 return 0;
38075}
38076
38077_ACEOF
38078if ac_fn_c_try_link "$LINENO"; then :
38079
38080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38081$as_echo "yes" >&6; }
38082 tst_links_strcmpi="yes"
38083
38084else
38085
38086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38087$as_echo "no" >&6; }
38088 tst_links_strcmpi="no"
38089
38090fi
38091rm -f core conftest.err conftest.$ac_objext \
38092 conftest$ac_exeext conftest.$ac_ext
38093 #
38094 if test "$tst_links_strcmpi" = "yes"; then
38095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38096$as_echo_n "checking if strcmpi is prototyped... " >&6; }
38097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38098/* end confdefs.h. */
38099
38100 $curl_includes_string
38101
38102_ACEOF
38103if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38104 $EGREP "strcmpi" >/dev/null 2>&1; then :
38105
38106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38107$as_echo "yes" >&6; }
38108 tst_proto_strcmpi="yes"
38109
38110else
38111
38112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38113$as_echo "no" >&6; }
38114 tst_proto_strcmpi="no"
38115
38116fi
38117rm -f conftest*
38118
38119 fi
38120 #
38121 if test "$tst_proto_strcmpi" = "yes"; then
38122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38123$as_echo_n "checking if strcmpi is compilable... " >&6; }
38124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38125/* end confdefs.h. */
38126
38127
38128 $curl_includes_string
38129
38130int main (void)
38131{
38132
38133 if(0 != strcmpi(0, 0))
38134 return 1;
38135
38136 ;
38137 return 0;
38138}
38139
38140_ACEOF
38141if ac_fn_c_try_compile "$LINENO"; then :
38142
38143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38144$as_echo "yes" >&6; }
38145 tst_compi_strcmpi="yes"
38146
38147else
38148
38149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38150$as_echo "no" >&6; }
38151 tst_compi_strcmpi="no"
38152
38153fi
38154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38155 fi
38156 #
38157 if test "$tst_compi_strcmpi" = "yes"; then
38158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38159$as_echo_n "checking if strcmpi usage allowed... " >&6; }
38160 if test "x$curl_disallow_strcmpi" != "xyes"; then
38161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38162$as_echo "yes" >&6; }
38163 tst_allow_strcmpi="yes"
38164 else
38165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38166$as_echo "no" >&6; }
38167 tst_allow_strcmpi="no"
38168 fi
38169 fi
38170 #
38171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38172$as_echo_n "checking if strcmpi might be used... " >&6; }
38173 if test "$tst_links_strcmpi" = "yes" &&
38174 test "$tst_proto_strcmpi" = "yes" &&
38175 test "$tst_compi_strcmpi" = "yes" &&
38176 test "$tst_allow_strcmpi" = "yes"; then
38177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38178$as_echo "yes" >&6; }
38179
38180cat >>confdefs.h <<_ACEOF
38181#define HAVE_STRCMPI 1
38182_ACEOF
38183
38184 curl_cv_func_strcmpi="yes"
38185 else
38186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38187$as_echo "no" >&6; }
38188 curl_cv_func_strcmpi="no"
38189 fi
38190
38191
38192 #
38193 tst_links_strdup="unknown"
38194 tst_proto_strdup="unknown"
38195 tst_compi_strdup="unknown"
38196 tst_allow_strdup="unknown"
38197 #
38198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38199$as_echo_n "checking if strdup can be linked... " >&6; }
38200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38201/* end confdefs.h. */
38202
38203
38204#define strdup innocuous_strdup
38205#ifdef __STDC__
38206# include <limits.h>
38207#else
38208# include <assert.h>
38209#endif
38210#undef strdup
38211#ifdef __cplusplus
38212extern "C"
38213#endif
38214char strdup ();
38215#if defined __stub_strdup || defined __stub___strdup
38216choke me
38217#endif
38218
38219int main (void)
38220{
38221return strdup ();
38222 ;
38223 return 0;
38224}
38225
38226_ACEOF
38227if ac_fn_c_try_link "$LINENO"; then :
38228
38229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38230$as_echo "yes" >&6; }
38231 tst_links_strdup="yes"
38232
38233else
38234
38235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38236$as_echo "no" >&6; }
38237 tst_links_strdup="no"
38238
38239fi
38240rm -f core conftest.err conftest.$ac_objext \
38241 conftest$ac_exeext conftest.$ac_ext
38242 #
38243 if test "$tst_links_strdup" = "yes"; then
38244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38245$as_echo_n "checking if strdup is prototyped... " >&6; }
38246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38247/* end confdefs.h. */
38248
38249 $curl_includes_string
38250
38251_ACEOF
38252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38253 $EGREP "strdup" >/dev/null 2>&1; then :
38254
38255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38256$as_echo "yes" >&6; }
38257 tst_proto_strdup="yes"
38258
38259else
38260
38261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38262$as_echo "no" >&6; }
38263 tst_proto_strdup="no"
38264
38265fi
38266rm -f conftest*
38267
38268 fi
38269 #
38270 if test "$tst_proto_strdup" = "yes"; then
38271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38272$as_echo_n "checking if strdup is compilable... " >&6; }
38273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38274/* end confdefs.h. */
38275
38276
38277 $curl_includes_string
38278
38279int main (void)
38280{
38281
38282 if(0 != strdup(0))
38283 return 1;
38284
38285 ;
38286 return 0;
38287}
38288
38289_ACEOF
38290if ac_fn_c_try_compile "$LINENO"; then :
38291
38292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38293$as_echo "yes" >&6; }
38294 tst_compi_strdup="yes"
38295
38296else
38297
38298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38299$as_echo "no" >&6; }
38300 tst_compi_strdup="no"
38301
38302fi
38303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38304 fi
38305 #
38306 if test "$tst_compi_strdup" = "yes"; then
38307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38308$as_echo_n "checking if strdup usage allowed... " >&6; }
38309 if test "x$curl_disallow_strdup" != "xyes"; then
38310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38311$as_echo "yes" >&6; }
38312 tst_allow_strdup="yes"
38313 else
38314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38315$as_echo "no" >&6; }
38316 tst_allow_strdup="no"
38317 fi
38318 fi
38319 #
38320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38321$as_echo_n "checking if strdup might be used... " >&6; }
38322 if test "$tst_links_strdup" = "yes" &&
38323 test "$tst_proto_strdup" = "yes" &&
38324 test "$tst_compi_strdup" = "yes" &&
38325 test "$tst_allow_strdup" = "yes"; then
38326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38327$as_echo "yes" >&6; }
38328
38329cat >>confdefs.h <<_ACEOF
38330#define HAVE_STRDUP 1
38331_ACEOF
38332
38333 curl_cv_func_strdup="yes"
38334 else
38335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38336$as_echo "no" >&6; }
38337 curl_cv_func_strdup="no"
38338 fi
38339
38340
38341 #
38342 tst_links_strerror_r="unknown"
38343 tst_proto_strerror_r="unknown"
38344 tst_compi_strerror_r="unknown"
38345 tst_glibc_strerror_r="unknown"
38346 tst_posix_strerror_r="unknown"
38347 tst_allow_strerror_r="unknown"
38348 tst_works_glibc_strerror_r="unknown"
38349 tst_works_posix_strerror_r="unknown"
38350 tst_glibc_strerror_r_type_arg3="unknown"
38351 tst_posix_strerror_r_type_arg3="unknown"
38352 #
38353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38354$as_echo_n "checking if strerror_r can be linked... " >&6; }
38355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38356/* end confdefs.h. */
38357
38358
38359#define strerror_r innocuous_strerror_r
38360#ifdef __STDC__
38361# include <limits.h>
38362#else
38363# include <assert.h>
38364#endif
38365#undef strerror_r
38366#ifdef __cplusplus
38367extern "C"
38368#endif
38369char strerror_r ();
38370#if defined __stub_strerror_r || defined __stub___strerror_r
38371choke me
38372#endif
38373
38374int main (void)
38375{
38376return strerror_r ();
38377 ;
38378 return 0;
38379}
38380
38381_ACEOF
38382if ac_fn_c_try_link "$LINENO"; then :
38383
38384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38385$as_echo "yes" >&6; }
38386 tst_links_strerror_r="yes"
38387
38388else
38389
38390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38391$as_echo "no" >&6; }
38392 tst_links_strerror_r="no"
38393
38394fi
38395rm -f core conftest.err conftest.$ac_objext \
38396 conftest$ac_exeext conftest.$ac_ext
38397 #
38398 if test "$tst_links_strerror_r" = "yes"; then
38399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38400$as_echo_n "checking if strerror_r is prototyped... " >&6; }
38401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38402/* end confdefs.h. */
38403
38404 $curl_includes_string
38405
38406_ACEOF
38407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38408 $EGREP "strerror_r" >/dev/null 2>&1; then :
38409
38410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38411$as_echo "yes" >&6; }
38412 tst_proto_strerror_r="yes"
38413
38414else
38415
38416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38417$as_echo "no" >&6; }
38418 tst_proto_strerror_r="no"
38419
38420fi
38421rm -f conftest*
38422
38423 fi
38424 #
38425 if test "$tst_proto_strerror_r" = "yes"; then
38426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38427$as_echo_n "checking if strerror_r is compilable... " >&6; }
38428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38429/* end confdefs.h. */
38430
38431
38432 $curl_includes_string
38433
38434int main (void)
38435{
38436
38437 if(0 != strerror_r(0, 0, 0))
38438 return 1;
38439
38440 ;
38441 return 0;
38442}
38443
38444_ACEOF
38445if ac_fn_c_try_compile "$LINENO"; then :
38446
38447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38448$as_echo "yes" >&6; }
38449 tst_compi_strerror_r="yes"
38450
38451else
38452
38453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38454$as_echo "no" >&6; }
38455 tst_compi_strerror_r="no"
38456
38457fi
38458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38459 fi
38460 #
38461 if test "$tst_compi_strerror_r" = "yes"; then
38462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38463$as_echo_n "checking if strerror_r is glibc like... " >&6; }
38464 tst_glibc_strerror_r_type_arg3="unknown"
38465 for arg3 in 'size_t' 'int' 'unsigned int'; do
38466 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38468/* end confdefs.h. */
38469
38470
38471 $curl_includes_string
38472 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38473
38474int main (void)
38475{
38476
38477 if(0 != strerror_r(0, 0, 0))
38478 return 1;
38479
38480 ;
38481 return 0;
38482}
38483
38484_ACEOF
38485if ac_fn_c_try_compile "$LINENO"; then :
38486
38487 tst_glibc_strerror_r_type_arg3="$arg3"
38488
38489fi
38490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38491 fi
38492 done
38493 case "$tst_glibc_strerror_r_type_arg3" in
38494 unknown)
38495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38496$as_echo "no" >&6; }
38497 tst_glibc_strerror_r="no"
38498 ;;
38499 *)
38500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38501$as_echo "yes" >&6; }
38502 tst_glibc_strerror_r="yes"
38503 ;;
38504 esac
38505 fi
38506 #
38507 if test "x$cross_compiling" != "xyes" &&
38508 test "$tst_glibc_strerror_r" = "yes"; then
38509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38510$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038511
38512
38513 old=$LD_LIBRARY_PATH
38514 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38515 export LD_LIBRARY_PATH
38516 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038517 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38518$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38519as_fn_error $? "cannot run test program while cross compiling
38520See \`config.log' for more details" "$LINENO" 5; }
38521else
38522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38523/* end confdefs.h. */
38524
38525
38526 $curl_includes_stdlib
38527 $curl_includes_string
38528# include <errno.h>
38529
38530int main (void)
38531{
38532
38533 char buffer[1024];
38534 char *string = 0;
38535 buffer[0] = '\0';
38536 string = strerror_r(EACCES, buffer, sizeof(buffer));
38537 if(!string)
38538 exit(1); /* fail */
38539 if(!string[0])
38540 exit(1); /* fail */
38541 else
38542 exit(0);
38543
38544 ;
38545 return 0;
38546}
38547
38548_ACEOF
38549if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038551$as_echo "yes" >&6; }
38552 tst_works_glibc_strerror_r="yes"
38553
38554else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038556$as_echo "no" >&6; }
38557 tst_works_glibc_strerror_r="no"
38558
38559fi
38560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38561 conftest.$ac_objext conftest.beam conftest.$ac_ext
38562fi
38563
Elliott Hughesa93fb052018-12-12 14:22:48 -080038564 LD_LIBRARY_PATH=$old # restore
38565
Elliott Hughes82be86d2017-09-20 17:00:17 -070038566 fi
38567 #
38568 if test "$tst_compi_strerror_r" = "yes" &&
38569 test "$tst_works_glibc_strerror_r" != "yes"; then
38570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38571$as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38572 tst_posix_strerror_r_type_arg3="unknown"
38573 for arg3 in 'size_t' 'int' 'unsigned int'; do
38574 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38576/* end confdefs.h. */
38577
38578
38579 $curl_includes_string
38580 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38581
38582int main (void)
38583{
38584
38585 if(0 != strerror_r(0, 0, 0))
38586 return 1;
38587
38588 ;
38589 return 0;
38590}
38591
38592_ACEOF
38593if ac_fn_c_try_compile "$LINENO"; then :
38594
38595 tst_posix_strerror_r_type_arg3="$arg3"
38596
38597fi
38598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38599 fi
38600 done
38601 case "$tst_posix_strerror_r_type_arg3" in
38602 unknown)
38603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38604$as_echo "no" >&6; }
38605 tst_posix_strerror_r="no"
38606 ;;
38607 *)
38608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38609$as_echo "yes" >&6; }
38610 tst_posix_strerror_r="yes"
38611 ;;
38612 esac
38613 fi
38614 #
38615 if test "x$cross_compiling" != "xyes" &&
38616 test "$tst_posix_strerror_r" = "yes"; then
38617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38618$as_echo_n "checking if strerror_r seems to work... " >&6; }
Elliott Hughesa93fb052018-12-12 14:22:48 -080038619
38620
38621 old=$LD_LIBRARY_PATH
38622 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38623 export LD_LIBRARY_PATH
38624 if test "$cross_compiling" = yes; then :
Elliott Hughes82be86d2017-09-20 17:00:17 -070038625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38627as_fn_error $? "cannot run test program while cross compiling
38628See \`config.log' for more details" "$LINENO" 5; }
38629else
38630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38631/* end confdefs.h. */
38632
38633
38634 $curl_includes_stdlib
38635 $curl_includes_string
38636# include <errno.h>
38637
38638int main (void)
38639{
38640
38641 char buffer[1024];
38642 int error = 1;
38643 buffer[0] = '\0';
38644 error = strerror_r(EACCES, buffer, sizeof(buffer));
38645 if(error)
38646 exit(1); /* fail */
38647 if(buffer[0] == '\0')
38648 exit(1); /* fail */
38649 else
38650 exit(0);
38651
38652 ;
38653 return 0;
38654}
38655
38656_ACEOF
38657if ac_fn_c_try_run "$LINENO"; then :
Elliott Hughesa93fb052018-12-12 14:22:48 -080038658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038659$as_echo "yes" >&6; }
38660 tst_works_posix_strerror_r="yes"
38661
38662else
Elliott Hughesa93fb052018-12-12 14:22:48 -080038663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Elliott Hughes82be86d2017-09-20 17:00:17 -070038664$as_echo "no" >&6; }
38665 tst_works_posix_strerror_r="no"
38666
38667fi
38668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38669 conftest.$ac_objext conftest.beam conftest.$ac_ext
38670fi
38671
Elliott Hughesa93fb052018-12-12 14:22:48 -080038672 LD_LIBRARY_PATH=$old # restore
38673
Elliott Hughes82be86d2017-09-20 17:00:17 -070038674 fi
38675 #
38676 if test "$tst_works_glibc_strerror_r" = "yes"; then
38677 tst_posix_strerror_r="no"
38678 fi
38679 if test "$tst_works_posix_strerror_r" = "yes"; then
38680 tst_glibc_strerror_r="no"
38681 fi
38682 if test "$tst_glibc_strerror_r" = "yes" &&
38683 test "$tst_works_glibc_strerror_r" != "no" &&
38684 test "$tst_posix_strerror_r" != "yes"; then
38685 tst_allow_strerror_r="check"
38686 fi
38687 if test "$tst_posix_strerror_r" = "yes" &&
38688 test "$tst_works_posix_strerror_r" != "no" &&
38689 test "$tst_glibc_strerror_r" != "yes"; then
38690 tst_allow_strerror_r="check"
38691 fi
38692 if test "$tst_allow_strerror_r" = "check"; then
38693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38694$as_echo_n "checking if strerror_r usage allowed... " >&6; }
38695 if test "x$curl_disallow_strerror_r" != "xyes"; then
38696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38697$as_echo "yes" >&6; }
38698 tst_allow_strerror_r="yes"
38699 else
38700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38701$as_echo "no" >&6; }
38702 tst_allow_strerror_r="no"
38703 fi
38704 fi
38705 #
38706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38707$as_echo_n "checking if strerror_r might be used... " >&6; }
38708 if test "$tst_links_strerror_r" = "yes" &&
38709 test "$tst_proto_strerror_r" = "yes" &&
38710 test "$tst_compi_strerror_r" = "yes" &&
38711 test "$tst_allow_strerror_r" = "yes"; then
38712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38713$as_echo "yes" >&6; }
38714 if test "$tst_glibc_strerror_r" = "yes"; then
38715
38716cat >>confdefs.h <<_ACEOF
38717#define HAVE_STRERROR_R 1
38718_ACEOF
38719
38720
38721cat >>confdefs.h <<_ACEOF
38722#define HAVE_GLIBC_STRERROR_R 1
38723_ACEOF
38724
38725
38726cat >>confdefs.h <<_ACEOF
38727#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38728_ACEOF
38729
38730 fi
38731 if test "$tst_posix_strerror_r" = "yes"; then
38732
38733cat >>confdefs.h <<_ACEOF
38734#define HAVE_STRERROR_R 1
38735_ACEOF
38736
38737
38738cat >>confdefs.h <<_ACEOF
38739#define HAVE_POSIX_STRERROR_R 1
38740_ACEOF
38741
38742
38743cat >>confdefs.h <<_ACEOF
38744#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38745_ACEOF
38746
38747 fi
38748 curl_cv_func_strerror_r="yes"
38749 else
38750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38751$as_echo "no" >&6; }
38752 curl_cv_func_strerror_r="no"
38753 fi
38754 #
38755 if test "$tst_compi_strerror_r" = "yes" &&
38756 test "$tst_allow_strerror_r" = "unknown"; then
38757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38758$as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38759 fi
38760 #
38761
38762
38763 #
38764 tst_links_stricmp="unknown"
38765 tst_proto_stricmp="unknown"
38766 tst_compi_stricmp="unknown"
38767 tst_allow_stricmp="unknown"
38768 #
38769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38770$as_echo_n "checking if stricmp can be linked... " >&6; }
38771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38772/* end confdefs.h. */
38773
38774
38775#define stricmp innocuous_stricmp
38776#ifdef __STDC__
38777# include <limits.h>
38778#else
38779# include <assert.h>
38780#endif
38781#undef stricmp
38782#ifdef __cplusplus
38783extern "C"
38784#endif
38785char stricmp ();
38786#if defined __stub_stricmp || defined __stub___stricmp
38787choke me
38788#endif
38789
38790int main (void)
38791{
38792return stricmp ();
38793 ;
38794 return 0;
38795}
38796
38797_ACEOF
38798if ac_fn_c_try_link "$LINENO"; then :
38799
38800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38801$as_echo "yes" >&6; }
38802 tst_links_stricmp="yes"
38803
38804else
38805
38806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38807$as_echo "no" >&6; }
38808 tst_links_stricmp="no"
38809
38810fi
38811rm -f core conftest.err conftest.$ac_objext \
38812 conftest$ac_exeext conftest.$ac_ext
38813 #
38814 if test "$tst_links_stricmp" = "yes"; then
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38816$as_echo_n "checking if stricmp is prototyped... " >&6; }
38817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38818/* end confdefs.h. */
38819
38820 $curl_includes_string
38821
38822_ACEOF
38823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38824 $EGREP "stricmp" >/dev/null 2>&1; then :
38825
38826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38827$as_echo "yes" >&6; }
38828 tst_proto_stricmp="yes"
38829
38830else
38831
38832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38833$as_echo "no" >&6; }
38834 tst_proto_stricmp="no"
38835
38836fi
38837rm -f conftest*
38838
38839 fi
38840 #
38841 if test "$tst_proto_stricmp" = "yes"; then
38842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38843$as_echo_n "checking if stricmp is compilable... " >&6; }
38844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38845/* end confdefs.h. */
38846
38847
38848 $curl_includes_string
38849
38850int main (void)
38851{
38852
38853 if(0 != stricmp(0, 0))
38854 return 1;
38855
38856 ;
38857 return 0;
38858}
38859
38860_ACEOF
38861if ac_fn_c_try_compile "$LINENO"; then :
38862
38863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38864$as_echo "yes" >&6; }
38865 tst_compi_stricmp="yes"
38866
38867else
38868
38869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38870$as_echo "no" >&6; }
38871 tst_compi_stricmp="no"
38872
38873fi
38874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38875 fi
38876 #
38877 if test "$tst_compi_stricmp" = "yes"; then
38878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38879$as_echo_n "checking if stricmp usage allowed... " >&6; }
38880 if test "x$curl_disallow_stricmp" != "xyes"; then
38881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38882$as_echo "yes" >&6; }
38883 tst_allow_stricmp="yes"
38884 else
38885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38886$as_echo "no" >&6; }
38887 tst_allow_stricmp="no"
38888 fi
38889 fi
38890 #
38891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38892$as_echo_n "checking if stricmp might be used... " >&6; }
38893 if test "$tst_links_stricmp" = "yes" &&
38894 test "$tst_proto_stricmp" = "yes" &&
38895 test "$tst_compi_stricmp" = "yes" &&
38896 test "$tst_allow_stricmp" = "yes"; then
38897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38898$as_echo "yes" >&6; }
38899
38900cat >>confdefs.h <<_ACEOF
38901#define HAVE_STRICMP 1
38902_ACEOF
38903
38904 curl_cv_func_stricmp="yes"
38905 else
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38907$as_echo "no" >&6; }
38908 curl_cv_func_stricmp="no"
38909 fi
38910
38911
38912 #
38913 tst_links_strncasecmp="unknown"
38914 tst_proto_strncasecmp="unknown"
38915 tst_compi_strncasecmp="unknown"
38916 tst_allow_strncasecmp="unknown"
38917 #
38918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38919$as_echo_n "checking if strncasecmp can be linked... " >&6; }
38920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38921/* end confdefs.h. */
38922
38923
38924#define strncasecmp innocuous_strncasecmp
38925#ifdef __STDC__
38926# include <limits.h>
38927#else
38928# include <assert.h>
38929#endif
38930#undef strncasecmp
38931#ifdef __cplusplus
38932extern "C"
38933#endif
38934char strncasecmp ();
38935#if defined __stub_strncasecmp || defined __stub___strncasecmp
38936choke me
38937#endif
38938
38939int main (void)
38940{
38941return strncasecmp ();
38942 ;
38943 return 0;
38944}
38945
38946_ACEOF
38947if ac_fn_c_try_link "$LINENO"; then :
38948
38949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38950$as_echo "yes" >&6; }
38951 tst_links_strncasecmp="yes"
38952
38953else
38954
38955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38956$as_echo "no" >&6; }
38957 tst_links_strncasecmp="no"
38958
38959fi
38960rm -f core conftest.err conftest.$ac_objext \
38961 conftest$ac_exeext conftest.$ac_ext
38962 #
38963 if test "$tst_links_strncasecmp" = "yes"; then
38964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
38965$as_echo_n "checking if strncasecmp is prototyped... " >&6; }
38966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38967/* end confdefs.h. */
38968
38969 $curl_includes_string
38970
38971_ACEOF
38972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38973 $EGREP "strncasecmp" >/dev/null 2>&1; then :
38974
38975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38976$as_echo "yes" >&6; }
38977 tst_proto_strncasecmp="yes"
38978
38979else
38980
38981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38982$as_echo "no" >&6; }
38983 tst_proto_strncasecmp="no"
38984
38985fi
38986rm -f conftest*
38987
38988 fi
38989 #
38990 if test "$tst_proto_strncasecmp" = "yes"; then
38991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
38992$as_echo_n "checking if strncasecmp is compilable... " >&6; }
38993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38994/* end confdefs.h. */
38995
38996
38997 $curl_includes_string
38998
38999int main (void)
39000{
39001
39002 if(0 != strncasecmp(0, 0, 0))
39003 return 1;
39004
39005 ;
39006 return 0;
39007}
39008
39009_ACEOF
39010if ac_fn_c_try_compile "$LINENO"; then :
39011
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39013$as_echo "yes" >&6; }
39014 tst_compi_strncasecmp="yes"
39015
39016else
39017
39018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39019$as_echo "no" >&6; }
39020 tst_compi_strncasecmp="no"
39021
39022fi
39023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39024 fi
39025 #
39026 if test "$tst_compi_strncasecmp" = "yes"; then
39027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39028$as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39029 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39031$as_echo "yes" >&6; }
39032 tst_allow_strncasecmp="yes"
39033 else
39034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39035$as_echo "no" >&6; }
39036 tst_allow_strncasecmp="no"
39037 fi
39038 fi
39039 #
39040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39041$as_echo_n "checking if strncasecmp might be used... " >&6; }
39042 if test "$tst_links_strncasecmp" = "yes" &&
39043 test "$tst_proto_strncasecmp" = "yes" &&
39044 test "$tst_compi_strncasecmp" = "yes" &&
39045 test "$tst_allow_strncasecmp" = "yes"; then
39046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39047$as_echo "yes" >&6; }
39048
39049cat >>confdefs.h <<_ACEOF
39050#define HAVE_STRNCASECMP 1
39051_ACEOF
39052
39053 curl_cv_func_strncasecmp="yes"
39054 else
39055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39056$as_echo "no" >&6; }
39057 curl_cv_func_strncasecmp="no"
39058 fi
39059
39060
39061 #
39062 tst_links_strncmpi="unknown"
39063 tst_proto_strncmpi="unknown"
39064 tst_compi_strncmpi="unknown"
39065 tst_allow_strncmpi="unknown"
39066 #
39067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39068$as_echo_n "checking if strncmpi can be linked... " >&6; }
39069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39070/* end confdefs.h. */
39071
39072
39073#define strncmpi innocuous_strncmpi
39074#ifdef __STDC__
39075# include <limits.h>
39076#else
39077# include <assert.h>
39078#endif
39079#undef strncmpi
39080#ifdef __cplusplus
39081extern "C"
39082#endif
39083char strncmpi ();
39084#if defined __stub_strncmpi || defined __stub___strncmpi
39085choke me
39086#endif
39087
39088int main (void)
39089{
39090return strncmpi ();
39091 ;
39092 return 0;
39093}
39094
39095_ACEOF
39096if ac_fn_c_try_link "$LINENO"; then :
39097
39098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39099$as_echo "yes" >&6; }
39100 tst_links_strncmpi="yes"
39101
39102else
39103
39104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39105$as_echo "no" >&6; }
39106 tst_links_strncmpi="no"
39107
39108fi
39109rm -f core conftest.err conftest.$ac_objext \
39110 conftest$ac_exeext conftest.$ac_ext
39111 #
39112 if test "$tst_links_strncmpi" = "yes"; then
39113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39114$as_echo_n "checking if strncmpi is prototyped... " >&6; }
39115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39116/* end confdefs.h. */
39117
39118 $curl_includes_string
39119
39120_ACEOF
39121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39122 $EGREP "strncmpi" >/dev/null 2>&1; then :
39123
39124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39125$as_echo "yes" >&6; }
39126 tst_proto_strncmpi="yes"
39127
39128else
39129
39130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39131$as_echo "no" >&6; }
39132 tst_proto_strncmpi="no"
39133
39134fi
39135rm -f conftest*
39136
39137 fi
39138 #
39139 if test "$tst_proto_strncmpi" = "yes"; then
39140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39141$as_echo_n "checking if strncmpi is compilable... " >&6; }
39142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39143/* end confdefs.h. */
39144
39145
39146 $curl_includes_string
39147
39148int main (void)
39149{
39150
39151 if(0 != strncmpi(0, 0))
39152 return 1;
39153
39154 ;
39155 return 0;
39156}
39157
39158_ACEOF
39159if ac_fn_c_try_compile "$LINENO"; then :
39160
39161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39162$as_echo "yes" >&6; }
39163 tst_compi_strncmpi="yes"
39164
39165else
39166
39167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39168$as_echo "no" >&6; }
39169 tst_compi_strncmpi="no"
39170
39171fi
39172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39173 fi
39174 #
39175 if test "$tst_compi_strncmpi" = "yes"; then
39176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39177$as_echo_n "checking if strncmpi usage allowed... " >&6; }
39178 if test "x$curl_disallow_strncmpi" != "xyes"; then
39179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39180$as_echo "yes" >&6; }
39181 tst_allow_strncmpi="yes"
39182 else
39183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39184$as_echo "no" >&6; }
39185 tst_allow_strncmpi="no"
39186 fi
39187 fi
39188 #
39189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39190$as_echo_n "checking if strncmpi might be used... " >&6; }
39191 if test "$tst_links_strncmpi" = "yes" &&
39192 test "$tst_proto_strncmpi" = "yes" &&
39193 test "$tst_compi_strncmpi" = "yes" &&
39194 test "$tst_allow_strncmpi" = "yes"; then
39195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39196$as_echo "yes" >&6; }
39197
39198cat >>confdefs.h <<_ACEOF
39199#define HAVE_STRNCMPI 1
39200_ACEOF
39201
39202 curl_cv_func_strncmpi="yes"
39203 else
39204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39205$as_echo "no" >&6; }
39206 curl_cv_func_strncmpi="no"
39207 fi
39208
39209
39210 #
39211 tst_links_strnicmp="unknown"
39212 tst_proto_strnicmp="unknown"
39213 tst_compi_strnicmp="unknown"
39214 tst_allow_strnicmp="unknown"
39215 #
39216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39217$as_echo_n "checking if strnicmp can be linked... " >&6; }
39218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39219/* end confdefs.h. */
39220
39221
39222#define strnicmp innocuous_strnicmp
39223#ifdef __STDC__
39224# include <limits.h>
39225#else
39226# include <assert.h>
39227#endif
39228#undef strnicmp
39229#ifdef __cplusplus
39230extern "C"
39231#endif
39232char strnicmp ();
39233#if defined __stub_strnicmp || defined __stub___strnicmp
39234choke me
39235#endif
39236
39237int main (void)
39238{
39239return strnicmp ();
39240 ;
39241 return 0;
39242}
39243
39244_ACEOF
39245if ac_fn_c_try_link "$LINENO"; then :
39246
39247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39248$as_echo "yes" >&6; }
39249 tst_links_strnicmp="yes"
39250
39251else
39252
39253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39254$as_echo "no" >&6; }
39255 tst_links_strnicmp="no"
39256
39257fi
39258rm -f core conftest.err conftest.$ac_objext \
39259 conftest$ac_exeext conftest.$ac_ext
39260 #
39261 if test "$tst_links_strnicmp" = "yes"; then
39262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39263$as_echo_n "checking if strnicmp is prototyped... " >&6; }
39264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39265/* end confdefs.h. */
39266
39267 $curl_includes_string
39268
39269_ACEOF
39270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39271 $EGREP "strnicmp" >/dev/null 2>&1; then :
39272
39273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39274$as_echo "yes" >&6; }
39275 tst_proto_strnicmp="yes"
39276
39277else
39278
39279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39280$as_echo "no" >&6; }
39281 tst_proto_strnicmp="no"
39282
39283fi
39284rm -f conftest*
39285
39286 fi
39287 #
39288 if test "$tst_proto_strnicmp" = "yes"; then
39289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39290$as_echo_n "checking if strnicmp is compilable... " >&6; }
39291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39292/* end confdefs.h. */
39293
39294
39295 $curl_includes_string
39296
39297int main (void)
39298{
39299
39300 if(0 != strnicmp(0, 0))
39301 return 1;
39302
39303 ;
39304 return 0;
39305}
39306
39307_ACEOF
39308if ac_fn_c_try_compile "$LINENO"; then :
39309
39310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39311$as_echo "yes" >&6; }
39312 tst_compi_strnicmp="yes"
39313
39314else
39315
39316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39317$as_echo "no" >&6; }
39318 tst_compi_strnicmp="no"
39319
39320fi
39321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39322 fi
39323 #
39324 if test "$tst_compi_strnicmp" = "yes"; then
39325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39326$as_echo_n "checking if strnicmp usage allowed... " >&6; }
39327 if test "x$curl_disallow_strnicmp" != "xyes"; then
39328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39329$as_echo "yes" >&6; }
39330 tst_allow_strnicmp="yes"
39331 else
39332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39333$as_echo "no" >&6; }
39334 tst_allow_strnicmp="no"
39335 fi
39336 fi
39337 #
39338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39339$as_echo_n "checking if strnicmp might be used... " >&6; }
39340 if test "$tst_links_strnicmp" = "yes" &&
39341 test "$tst_proto_strnicmp" = "yes" &&
39342 test "$tst_compi_strnicmp" = "yes" &&
39343 test "$tst_allow_strnicmp" = "yes"; then
39344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39345$as_echo "yes" >&6; }
39346
39347cat >>confdefs.h <<_ACEOF
39348#define HAVE_STRNICMP 1
39349_ACEOF
39350
39351 curl_cv_func_strnicmp="yes"
39352 else
39353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39354$as_echo "no" >&6; }
39355 curl_cv_func_strnicmp="no"
39356 fi
39357
39358
39359 #
39360 tst_links_strstr="unknown"
39361 tst_proto_strstr="unknown"
39362 tst_compi_strstr="unknown"
39363 tst_allow_strstr="unknown"
39364 #
39365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39366$as_echo_n "checking if strstr can be linked... " >&6; }
39367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39368/* end confdefs.h. */
39369
39370
39371#define strstr innocuous_strstr
39372#ifdef __STDC__
39373# include <limits.h>
39374#else
39375# include <assert.h>
39376#endif
39377#undef strstr
39378#ifdef __cplusplus
39379extern "C"
39380#endif
39381char strstr ();
39382#if defined __stub_strstr || defined __stub___strstr
39383choke me
39384#endif
39385
39386int main (void)
39387{
39388return strstr ();
39389 ;
39390 return 0;
39391}
39392
39393_ACEOF
39394if ac_fn_c_try_link "$LINENO"; then :
39395
39396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39397$as_echo "yes" >&6; }
39398 tst_links_strstr="yes"
39399
39400else
39401
39402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39403$as_echo "no" >&6; }
39404 tst_links_strstr="no"
39405
39406fi
39407rm -f core conftest.err conftest.$ac_objext \
39408 conftest$ac_exeext conftest.$ac_ext
39409 #
39410 if test "$tst_links_strstr" = "yes"; then
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39412$as_echo_n "checking if strstr is prototyped... " >&6; }
39413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39414/* end confdefs.h. */
39415
39416 $curl_includes_string
39417
39418_ACEOF
39419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39420 $EGREP "strstr" >/dev/null 2>&1; then :
39421
39422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39423$as_echo "yes" >&6; }
39424 tst_proto_strstr="yes"
39425
39426else
39427
39428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39429$as_echo "no" >&6; }
39430 tst_proto_strstr="no"
39431
39432fi
39433rm -f conftest*
39434
39435 fi
39436 #
39437 if test "$tst_proto_strstr" = "yes"; then
39438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39439$as_echo_n "checking if strstr is compilable... " >&6; }
39440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39441/* end confdefs.h. */
39442
39443
39444 $curl_includes_string
39445
39446int main (void)
39447{
39448
39449 if(0 != strstr(0, 0))
39450 return 1;
39451
39452 ;
39453 return 0;
39454}
39455
39456_ACEOF
39457if ac_fn_c_try_compile "$LINENO"; then :
39458
39459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39460$as_echo "yes" >&6; }
39461 tst_compi_strstr="yes"
39462
39463else
39464
39465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39466$as_echo "no" >&6; }
39467 tst_compi_strstr="no"
39468
39469fi
39470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39471 fi
39472 #
39473 if test "$tst_compi_strstr" = "yes"; then
39474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39475$as_echo_n "checking if strstr usage allowed... " >&6; }
39476 if test "x$curl_disallow_strstr" != "xyes"; then
39477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39478$as_echo "yes" >&6; }
39479 tst_allow_strstr="yes"
39480 else
39481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39482$as_echo "no" >&6; }
39483 tst_allow_strstr="no"
39484 fi
39485 fi
39486 #
39487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39488$as_echo_n "checking if strstr might be used... " >&6; }
39489 if test "$tst_links_strstr" = "yes" &&
39490 test "$tst_proto_strstr" = "yes" &&
39491 test "$tst_compi_strstr" = "yes" &&
39492 test "$tst_allow_strstr" = "yes"; then
39493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39494$as_echo "yes" >&6; }
39495
39496cat >>confdefs.h <<_ACEOF
39497#define HAVE_STRSTR 1
39498_ACEOF
39499
39500 curl_cv_func_strstr="yes"
39501 else
39502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39503$as_echo "no" >&6; }
39504 curl_cv_func_strstr="no"
39505 fi
39506
39507
39508 #
39509 tst_links_strtok_r="unknown"
39510 tst_proto_strtok_r="unknown"
39511 tst_compi_strtok_r="unknown"
39512 tst_allow_strtok_r="unknown"
39513 #
39514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39515$as_echo_n "checking if strtok_r can be linked... " >&6; }
39516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39517/* end confdefs.h. */
39518
39519
39520#define strtok_r innocuous_strtok_r
39521#ifdef __STDC__
39522# include <limits.h>
39523#else
39524# include <assert.h>
39525#endif
39526#undef strtok_r
39527#ifdef __cplusplus
39528extern "C"
39529#endif
39530char strtok_r ();
39531#if defined __stub_strtok_r || defined __stub___strtok_r
39532choke me
39533#endif
39534
39535int main (void)
39536{
39537return strtok_r ();
39538 ;
39539 return 0;
39540}
39541
39542_ACEOF
39543if ac_fn_c_try_link "$LINENO"; then :
39544
39545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39546$as_echo "yes" >&6; }
39547 tst_links_strtok_r="yes"
39548
39549else
39550
39551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39552$as_echo "no" >&6; }
39553 tst_links_strtok_r="no"
39554
39555fi
39556rm -f core conftest.err conftest.$ac_objext \
39557 conftest$ac_exeext conftest.$ac_ext
39558 #
39559 if test "$tst_links_strtok_r" = "yes"; then
39560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39561$as_echo_n "checking if strtok_r is prototyped... " >&6; }
39562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39563/* end confdefs.h. */
39564
39565 $curl_includes_string
39566
39567_ACEOF
39568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39569 $EGREP "strtok_r" >/dev/null 2>&1; then :
39570
39571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39572$as_echo "yes" >&6; }
39573 tst_proto_strtok_r="yes"
39574
39575else
39576
39577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39578$as_echo "no" >&6; }
39579 tst_proto_strtok_r="no"
39580
39581fi
39582rm -f conftest*
39583
39584 fi
39585 #
39586 if test "$tst_proto_strtok_r" = "yes"; then
39587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39588$as_echo_n "checking if strtok_r is compilable... " >&6; }
39589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39590/* end confdefs.h. */
39591
39592
39593 $curl_includes_string
39594
39595int main (void)
39596{
39597
39598 if(0 != strtok_r(0, 0, 0))
39599 return 1;
39600
39601 ;
39602 return 0;
39603}
39604
39605_ACEOF
39606if ac_fn_c_try_compile "$LINENO"; then :
39607
39608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39609$as_echo "yes" >&6; }
39610 tst_compi_strtok_r="yes"
39611
39612else
39613
39614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39615$as_echo "no" >&6; }
39616 tst_compi_strtok_r="no"
39617
39618fi
39619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39620 fi
39621 #
39622 if test "$tst_compi_strtok_r" = "yes"; then
39623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39624$as_echo_n "checking if strtok_r usage allowed... " >&6; }
39625 if test "x$curl_disallow_strtok_r" != "xyes"; then
39626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39627$as_echo "yes" >&6; }
39628 tst_allow_strtok_r="yes"
39629 else
39630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39631$as_echo "no" >&6; }
39632 tst_allow_strtok_r="no"
39633 fi
39634 fi
39635 #
39636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39637$as_echo_n "checking if strtok_r might be used... " >&6; }
39638 if test "$tst_links_strtok_r" = "yes" &&
39639 test "$tst_proto_strtok_r" = "yes" &&
39640 test "$tst_compi_strtok_r" = "yes" &&
39641 test "$tst_allow_strtok_r" = "yes"; then
39642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39643$as_echo "yes" >&6; }
39644
39645cat >>confdefs.h <<_ACEOF
39646#define HAVE_STRTOK_R 1
39647_ACEOF
39648
39649 curl_cv_func_strtok_r="yes"
39650 else
39651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39652$as_echo "no" >&6; }
39653 curl_cv_func_strtok_r="no"
39654 fi
39655
39656
39657 #
39658 tst_links_strtoll="unknown"
39659 tst_proto_strtoll="unknown"
39660 tst_compi_strtoll="unknown"
39661 tst_allow_strtoll="unknown"
39662 #
39663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39664$as_echo_n "checking if strtoll can be linked... " >&6; }
39665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39666/* end confdefs.h. */
39667
39668
39669#define strtoll innocuous_strtoll
39670#ifdef __STDC__
39671# include <limits.h>
39672#else
39673# include <assert.h>
39674#endif
39675#undef strtoll
39676#ifdef __cplusplus
39677extern "C"
39678#endif
39679char strtoll ();
39680#if defined __stub_strtoll || defined __stub___strtoll
39681choke me
39682#endif
39683
39684int main (void)
39685{
39686return strtoll ();
39687 ;
39688 return 0;
39689}
39690
39691_ACEOF
39692if ac_fn_c_try_link "$LINENO"; then :
39693
39694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39695$as_echo "yes" >&6; }
39696 tst_links_strtoll="yes"
39697
39698else
39699
39700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39701$as_echo "no" >&6; }
39702 tst_links_strtoll="no"
39703
39704fi
39705rm -f core conftest.err conftest.$ac_objext \
39706 conftest$ac_exeext conftest.$ac_ext
39707 #
39708 if test "$tst_links_strtoll" = "yes"; then
39709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39710$as_echo_n "checking if strtoll is prototyped... " >&6; }
39711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39712/* end confdefs.h. */
39713
39714 $curl_includes_stdlib
39715
39716_ACEOF
39717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39718 $EGREP "strtoll" >/dev/null 2>&1; then :
39719
39720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39721$as_echo "yes" >&6; }
39722 tst_proto_strtoll="yes"
39723
39724else
39725
39726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39727$as_echo "no" >&6; }
39728 tst_proto_strtoll="no"
39729
39730fi
39731rm -f conftest*
39732
39733 fi
39734 #
39735 if test "$tst_proto_strtoll" = "yes"; then
39736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39737$as_echo_n "checking if strtoll is compilable... " >&6; }
39738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39739/* end confdefs.h. */
39740
39741
39742 $curl_includes_stdlib
39743
39744int main (void)
39745{
39746
39747 if(0 != strtoll(0, 0, 0))
39748 return 1;
39749
39750 ;
39751 return 0;
39752}
39753
39754_ACEOF
39755if ac_fn_c_try_compile "$LINENO"; then :
39756
39757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39758$as_echo "yes" >&6; }
39759 tst_compi_strtoll="yes"
39760
39761else
39762
39763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39764$as_echo "no" >&6; }
39765 tst_compi_strtoll="no"
39766
39767fi
39768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39769 fi
39770 #
39771 if test "$tst_compi_strtoll" = "yes"; then
39772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39773$as_echo_n "checking if strtoll usage allowed... " >&6; }
39774 if test "x$curl_disallow_strtoll" != "xyes"; then
39775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39776$as_echo "yes" >&6; }
39777 tst_allow_strtoll="yes"
39778 else
39779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39780$as_echo "no" >&6; }
39781 tst_allow_strtoll="no"
39782 fi
39783 fi
39784 #
39785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39786$as_echo_n "checking if strtoll might be used... " >&6; }
39787 if test "$tst_links_strtoll" = "yes" &&
39788 test "$tst_proto_strtoll" = "yes" &&
39789 test "$tst_compi_strtoll" = "yes" &&
39790 test "$tst_allow_strtoll" = "yes"; then
39791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39792$as_echo "yes" >&6; }
39793
39794cat >>confdefs.h <<_ACEOF
39795#define HAVE_STRTOLL 1
39796_ACEOF
39797
39798 curl_cv_func_strtoll="yes"
39799 else
39800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39801$as_echo "no" >&6; }
39802 curl_cv_func_strtoll="no"
39803 fi
39804
39805
39806curl_includes_sys_uio="\
39807/* includes start */
39808#ifdef HAVE_SYS_TYPES_H
39809# include <sys/types.h>
39810#endif
39811#ifdef HAVE_SYS_UIO_H
39812# include <sys/uio.h>
39813#endif
39814/* includes end */"
39815 for ac_header in sys/types.h sys/uio.h
39816do :
39817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39818ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39819"
39820if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39821 cat >>confdefs.h <<_ACEOF
39822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39823_ACEOF
39824
39825fi
39826
39827done
39828
39829
39830
39831 #
39832 tst_links_writev="unknown"
39833 tst_proto_writev="unknown"
39834 tst_compi_writev="unknown"
39835 tst_allow_writev="unknown"
39836 #
39837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39838$as_echo_n "checking if writev can be linked... " >&6; }
39839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39840/* end confdefs.h. */
39841
39842
39843#define writev innocuous_writev
39844#ifdef __STDC__
39845# include <limits.h>
39846#else
39847# include <assert.h>
39848#endif
39849#undef writev
39850#ifdef __cplusplus
39851extern "C"
39852#endif
39853char writev ();
39854#if defined __stub_writev || defined __stub___writev
39855choke me
39856#endif
39857
39858int main (void)
39859{
39860return writev ();
39861 ;
39862 return 0;
39863}
39864
39865_ACEOF
39866if ac_fn_c_try_link "$LINENO"; then :
39867
39868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39869$as_echo "yes" >&6; }
39870 tst_links_writev="yes"
39871
39872else
39873
39874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39875$as_echo "no" >&6; }
39876 tst_links_writev="no"
39877
39878fi
39879rm -f core conftest.err conftest.$ac_objext \
39880 conftest$ac_exeext conftest.$ac_ext
39881 #
39882 if test "$tst_links_writev" = "yes"; then
39883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39884$as_echo_n "checking if writev is prototyped... " >&6; }
39885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39886/* end confdefs.h. */
39887
39888 $curl_includes_sys_uio
39889
39890_ACEOF
39891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39892 $EGREP "writev" >/dev/null 2>&1; then :
39893
39894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39895$as_echo "yes" >&6; }
39896 tst_proto_writev="yes"
39897
39898else
39899
39900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39901$as_echo "no" >&6; }
39902 tst_proto_writev="no"
39903
39904fi
39905rm -f conftest*
39906
39907 fi
39908 #
39909 if test "$tst_proto_writev" = "yes"; then
39910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39911$as_echo_n "checking if writev is compilable... " >&6; }
39912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39913/* end confdefs.h. */
39914
39915
39916 $curl_includes_sys_uio
39917
39918int main (void)
39919{
39920
39921 if(0 != writev(0, 0, 0))
39922 return 1;
39923
39924 ;
39925 return 0;
39926}
39927
39928_ACEOF
39929if ac_fn_c_try_compile "$LINENO"; then :
39930
39931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39932$as_echo "yes" >&6; }
39933 tst_compi_writev="yes"
39934
39935else
39936
39937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39938$as_echo "no" >&6; }
39939 tst_compi_writev="no"
39940
39941fi
39942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39943 fi
39944 #
39945 if test "$tst_compi_writev" = "yes"; then
39946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39947$as_echo_n "checking if writev usage allowed... " >&6; }
39948 if test "x$curl_disallow_writev" != "xyes"; then
39949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39950$as_echo "yes" >&6; }
39951 tst_allow_writev="yes"
39952 else
39953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39954$as_echo "no" >&6; }
39955 tst_allow_writev="no"
39956 fi
39957 fi
39958 #
39959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
39960$as_echo_n "checking if writev might be used... " >&6; }
39961 if test "$tst_links_writev" = "yes" &&
39962 test "$tst_proto_writev" = "yes" &&
39963 test "$tst_compi_writev" = "yes" &&
39964 test "$tst_allow_writev" = "yes"; then
39965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39966$as_echo "yes" >&6; }
39967
39968cat >>confdefs.h <<_ACEOF
39969#define HAVE_WRITEV 1
39970_ACEOF
39971
39972 curl_cv_func_writev="yes"
39973 else
39974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39975$as_echo "no" >&6; }
39976 curl_cv_func_writev="no"
39977 fi
39978
39979
39980case $host in
39981 *msdosdjgpp)
39982 ac_cv_func_pipe=no
39983 skipcheck_pipe=yes
39984 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
39985$as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
39986 ;;
39987esac
39988
Elliott Hughes72d948d2018-08-03 14:37:21 -070039989ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
39990 #include <sys/types.h>
39991"
39992if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
39993 ac_have_decl=1
39994else
39995 ac_have_decl=0
39996fi
39997
39998cat >>confdefs.h <<_ACEOF
39999#define HAVE_DECL_GETPWUID_R $ac_have_decl
40000_ACEOF
40001if test $ac_have_decl = 1; then :
40002
40003else
40004
40005$as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
40006
40007fi
40008
40009
40010
40011for ac_func in fnmatch \
40012 geteuid \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040013 getpass_r \
40014 getppid \
40015 getpwuid \
40016 getpwuid_r \
40017 getrlimit \
40018 gettimeofday \
40019 if_nametoindex \
Alex Deymo486467e2017-12-19 19:04:07 +010040020 mach_absolute_time \
Elliott Hughes82be86d2017-09-20 17:00:17 -070040021 pipe \
40022 setlocale \
40023 setmode \
40024 setrlimit \
40025 utime \
40026 utimes
40027
40028do :
40029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40030ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40031if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40032 cat >>confdefs.h <<_ACEOF
40033#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40034_ACEOF
40035
40036
40037else
40038
40039 func="$ac_func"
40040 eval skipcheck=\$skipcheck_$func
40041 if test "x$skipcheck" != "xyes"; then
40042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40043$as_echo_n "checking deeper for $func... " >&6; }
40044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40045/* end confdefs.h. */
40046
40047
40048
40049int main (void)
40050{
40051
40052 $func ();
40053
40054 ;
40055 return 0;
40056}
40057
40058_ACEOF
40059if ac_fn_c_try_link "$LINENO"; then :
40060
40061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40062$as_echo "yes" >&6; }
40063 eval "ac_cv_func_$func=yes"
40064
40065cat >>confdefs.h <<_ACEOF
40066#define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40067_ACEOF
40068
40069
40070else
40071
40072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40073$as_echo "but still no" >&6; }
40074
40075fi
40076rm -f core conftest.err conftest.$ac_objext \
40077 conftest$ac_exeext conftest.$ac_ext
40078 fi
40079
40080fi
40081done
40082
40083
Elliott Hughes82be86d2017-09-20 17:00:17 -070040084if test "$ipv6" = "yes"; then
40085 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40086
40087$as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40088
40089 IPV6_ENABLED=1
40090
40091 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040092fi
40093
40094
40095 #
40096 tst_method="unknown"
40097
40098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40099$as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40100 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40101 tst_method="fcntl O_NONBLOCK"
40102 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40103 tst_method="ioctl FIONBIO"
40104 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40105 tst_method="ioctlsocket FIONBIO"
40106 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40107 tst_method="IoctlSocket FIONBIO"
40108 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40109 tst_method="setsockopt SO_NONBLOCK"
40110 fi
40111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40112$as_echo "$tst_method" >&6; }
40113 if test "$tst_method" = "unknown"; then
40114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40115$as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40116 fi
40117
40118
40119
40120# Extract the first word of "perl", so it can be a program name with args.
40121set dummy perl; ac_word=$2
40122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40123$as_echo_n "checking for $ac_word... " >&6; }
40124if ${ac_cv_path_PERL+:} false; then :
40125 $as_echo_n "(cached) " >&6
40126else
40127 case $PERL in
40128 [\\/]* | ?:[\\/]*)
40129 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40130 ;;
40131 *)
40132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40133as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40134for as_dir in $as_dummy
40135do
40136 IFS=$as_save_IFS
40137 test -z "$as_dir" && as_dir=.
40138 for ac_exec_ext in '' $ac_executable_extensions; do
40139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40140 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40142 break 2
40143 fi
40144done
40145 done
40146IFS=$as_save_IFS
40147
40148 ;;
40149esac
40150fi
40151PERL=$ac_cv_path_PERL
40152if test -n "$PERL"; then
40153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40154$as_echo "$PERL" >&6; }
40155else
40156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40157$as_echo "no" >&6; }
40158fi
40159
40160
40161
40162
40163for ac_prog in gnroff nroff
40164do
40165 # Extract the first word of "$ac_prog", so it can be a program name with args.
40166set dummy $ac_prog; ac_word=$2
40167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40168$as_echo_n "checking for $ac_word... " >&6; }
40169if ${ac_cv_path_NROFF+:} false; then :
40170 $as_echo_n "(cached) " >&6
40171else
40172 case $NROFF in
40173 [\\/]* | ?:[\\/]*)
40174 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40175 ;;
40176 *)
40177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40178as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40179for as_dir in $as_dummy
40180do
40181 IFS=$as_save_IFS
40182 test -z "$as_dir" && as_dir=.
40183 for ac_exec_ext in '' $ac_executable_extensions; do
40184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40185 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40187 break 2
40188 fi
40189done
40190 done
40191IFS=$as_save_IFS
40192
40193 ;;
40194esac
40195fi
40196NROFF=$ac_cv_path_NROFF
40197if test -n "$NROFF"; then
40198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40199$as_echo "$NROFF" >&6; }
40200else
40201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40202$as_echo "no" >&6; }
40203fi
40204
40205
40206 test -n "$NROFF" && break
40207done
40208
40209
40210
40211if test -n "$NROFF"; then
40212
40213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40214$as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40215 MANOPT="-man"
40216 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40217 if test -z "$mancheck"; then
40218 MANOPT="-mandoc"
40219 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40220 if test -z "$mancheck"; then
40221 MANOPT=""
40222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40223$as_echo "failed" >&6; }
40224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40225$as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40226 else
40227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40228$as_echo "$MANOPT" >&6; }
40229 fi
40230 else
40231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40232$as_echo "$MANOPT" >&6; }
40233 fi
40234
40235fi
40236
40237if test -z "$MANOPT"
40238then
40239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40240$as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40241 USE_MANUAL="no";
40242fi
40243
40244
40245if test "$USE_MANUAL" = "1"; then
40246
40247$as_echo "#define USE_MANUAL 1" >>confdefs.h
40248
40249 curl_manual_msg="enabled"
40250fi
40251
40252 if test x"$USE_MANUAL" = x1; then
40253 USE_MANUAL_TRUE=
40254 USE_MANUAL_FALSE='#'
40255else
40256 USE_MANUAL_TRUE='#'
40257 USE_MANUAL_FALSE=
40258fi
40259
40260
40261
40262
40263
40264 #
40265 if test "$want_ares" = "yes"; then
40266 clean_CPPFLAGS="$CPPFLAGS"
40267 clean_LDFLAGS="$LDFLAGS"
40268 clean_LIBS="$LIBS"
40269 embedded_ares="unknown"
40270 configure_runpath=`pwd`
40271 embedded_ares_builddir="$configure_runpath/ares"
40272 if test -n "$want_ares_path"; then
Elliott Hughes72d948d2018-08-03 14:37:21 -070040273 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
40274
40275 if test -n "$PKG_CONFIG"; then
40276 PKGCONFIG="$PKG_CONFIG"
40277 else
40278 if test -n "$ac_tool_prefix"; then
40279 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40280set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40282$as_echo_n "checking for $ac_word... " >&6; }
40283if ${ac_cv_path_PKGCONFIG+:} false; then :
40284 $as_echo_n "(cached) " >&6
40285else
40286 case $PKGCONFIG in
40287 [\\/]* | ?:[\\/]*)
40288 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40289 ;;
40290 *)
40291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40292as_dummy="$PATH:/usr/bin:/usr/local/bin"
40293for as_dir in $as_dummy
40294do
40295 IFS=$as_save_IFS
40296 test -z "$as_dir" && as_dir=.
40297 for ac_exec_ext in '' $ac_executable_extensions; do
40298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40299 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40301 break 2
40302 fi
40303done
40304 done
40305IFS=$as_save_IFS
40306
40307 ;;
40308esac
40309fi
40310PKGCONFIG=$ac_cv_path_PKGCONFIG
40311if test -n "$PKGCONFIG"; then
40312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40313$as_echo "$PKGCONFIG" >&6; }
40314else
40315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316$as_echo "no" >&6; }
40317fi
40318
40319
40320fi
40321if test -z "$ac_cv_path_PKGCONFIG"; then
40322 ac_pt_PKGCONFIG=$PKGCONFIG
40323 # Extract the first word of "pkg-config", so it can be a program name with args.
40324set dummy pkg-config; ac_word=$2
40325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40326$as_echo_n "checking for $ac_word... " >&6; }
40327if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40328 $as_echo_n "(cached) " >&6
40329else
40330 case $ac_pt_PKGCONFIG in
40331 [\\/]* | ?:[\\/]*)
40332 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40333 ;;
40334 *)
40335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40336as_dummy="$PATH:/usr/bin:/usr/local/bin"
40337for as_dir in $as_dummy
40338do
40339 IFS=$as_save_IFS
40340 test -z "$as_dir" && as_dir=.
40341 for ac_exec_ext in '' $ac_executable_extensions; do
40342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40343 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40345 break 2
40346 fi
40347done
40348 done
40349IFS=$as_save_IFS
40350
40351 ;;
40352esac
40353fi
40354ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40355if test -n "$ac_pt_PKGCONFIG"; then
40356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40357$as_echo "$ac_pt_PKGCONFIG" >&6; }
40358else
40359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40360$as_echo "no" >&6; }
40361fi
40362
40363 if test "x$ac_pt_PKGCONFIG" = x; then
40364 PKGCONFIG="no"
40365 else
40366 case $cross_compiling:$ac_tool_warned in
40367yes:)
40368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40370ac_tool_warned=yes ;;
40371esac
40372 PKGCONFIG=$ac_pt_PKGCONFIG
40373 fi
40374else
40375 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40376fi
40377
40378 fi
40379
40380 if test "x$PKGCONFIG" != "xno"; then
40381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40382$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40383 itexists=`
40384 if test -n "$ARES_PCDIR"; then
40385 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40386 export PKG_CONFIG_LIBDIR
40387 fi
40388 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40389
40390 if test -z "$itexists"; then
40391 PKGCONFIG="no"
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40393$as_echo "no" >&6; }
40394 else
40395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40396$as_echo "found" >&6; }
40397 fi
40398 fi
40399
40400 if test "$PKGCONFIG" != "no" ; then
40401 ares_LIBS=`
40402 if test -n "$ARES_PCDIR"; then
40403 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40404 export PKG_CONFIG_LIBDIR
40405 fi
40406
40407 $PKGCONFIG --libs-only-l libcares`
40408 ares_LDFLAGS=`
40409 if test -n "$ARES_PCDIR"; then
40410 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40411 export PKG_CONFIG_LIBDIR
40412 fi
40413
40414 $PKGCONFIG --libs-only-L libcares`
40415 ares_CPPFLAGS=`
40416 if test -n "$ARES_PCDIR"; then
40417 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
40418 export PKG_CONFIG_LIBDIR
40419 fi
40420
40421 $PKGCONFIG --cflags-only-I libcares`
40422 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
40423$as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
40424 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
40425$as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40426 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40427$as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40428 else
40429 ares_CPPFLAGS="-I$want_ares_path/include"
40430 ares_LDFLAGS="-L$want_ares_path/lib"
40431 ares_LIBS="-lcares"
40432 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040433 else
40434 if test -d "$srcdir/ares"; then
40435 embedded_ares="yes"
40436 subdirs="$subdirs ares"
40437
40438 ares_CPPFLAGS=""
40439 ares_LDFLAGS="-L$embedded_ares_builddir"
40440 ares_LIBS="-lcares"
40441 else
Elliott Hughes72d948d2018-08-03 14:37:21 -070040442
40443 if test -n "$PKG_CONFIG"; then
40444 PKGCONFIG="$PKG_CONFIG"
40445 else
40446 if test -n "$ac_tool_prefix"; then
40447 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
40448set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
40449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40450$as_echo_n "checking for $ac_word... " >&6; }
40451if ${ac_cv_path_PKGCONFIG+:} false; then :
40452 $as_echo_n "(cached) " >&6
40453else
40454 case $PKGCONFIG in
40455 [\\/]* | ?:[\\/]*)
40456 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
40457 ;;
40458 *)
40459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40460as_dummy="$PATH:/usr/bin:/usr/local/bin"
40461for as_dir in $as_dummy
40462do
40463 IFS=$as_save_IFS
40464 test -z "$as_dir" && as_dir=.
40465 for ac_exec_ext in '' $ac_executable_extensions; do
40466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40467 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40469 break 2
40470 fi
40471done
40472 done
40473IFS=$as_save_IFS
40474
40475 ;;
40476esac
40477fi
40478PKGCONFIG=$ac_cv_path_PKGCONFIG
40479if test -n "$PKGCONFIG"; then
40480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
40481$as_echo "$PKGCONFIG" >&6; }
40482else
40483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40484$as_echo "no" >&6; }
40485fi
40486
40487
40488fi
40489if test -z "$ac_cv_path_PKGCONFIG"; then
40490 ac_pt_PKGCONFIG=$PKGCONFIG
40491 # Extract the first word of "pkg-config", so it can be a program name with args.
40492set dummy pkg-config; ac_word=$2
40493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40494$as_echo_n "checking for $ac_word... " >&6; }
40495if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
40496 $as_echo_n "(cached) " >&6
40497else
40498 case $ac_pt_PKGCONFIG in
40499 [\\/]* | ?:[\\/]*)
40500 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
40501 ;;
40502 *)
40503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40504as_dummy="$PATH:/usr/bin:/usr/local/bin"
40505for as_dir in $as_dummy
40506do
40507 IFS=$as_save_IFS
40508 test -z "$as_dir" && as_dir=.
40509 for ac_exec_ext in '' $ac_executable_extensions; do
40510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40511 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
40512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40513 break 2
40514 fi
40515done
40516 done
40517IFS=$as_save_IFS
40518
40519 ;;
40520esac
40521fi
40522ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
40523if test -n "$ac_pt_PKGCONFIG"; then
40524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
40525$as_echo "$ac_pt_PKGCONFIG" >&6; }
40526else
40527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40528$as_echo "no" >&6; }
40529fi
40530
40531 if test "x$ac_pt_PKGCONFIG" = x; then
40532 PKGCONFIG="no"
40533 else
40534 case $cross_compiling:$ac_tool_warned in
40535yes:)
40536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
40537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
40538ac_tool_warned=yes ;;
40539esac
40540 PKGCONFIG=$ac_pt_PKGCONFIG
40541 fi
40542else
40543 PKGCONFIG="$ac_cv_path_PKGCONFIG"
40544fi
40545
40546 fi
40547
40548 if test "x$PKGCONFIG" != "xno"; then
40549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
40550$as_echo_n "checking for libcares options with pkg-config... " >&6; }
40551 itexists=`
40552 if test -n ""; then
40553 PKG_CONFIG_LIBDIR=""
40554 export PKG_CONFIG_LIBDIR
40555 fi
40556 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
40557
40558 if test -z "$itexists"; then
40559 PKGCONFIG="no"
40560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40561$as_echo "no" >&6; }
40562 else
40563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
40564$as_echo "found" >&6; }
40565 fi
40566 fi
40567
40568 if test "$PKGCONFIG" != "no" ; then
40569 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
40570 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
40571 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
40572 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
40573$as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
40574 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
40575$as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
40576 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
40577$as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
40578 else
40579 ares_CPPFLAGS=""
40580 ares_LDFLAGS=""
40581 ares_LIBS="-lcares"
40582 fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070040583 fi
40584 fi
40585 #
40586 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40587 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40588 LIBS="$ares_LIBS $clean_LIBS"
40589 #
40590 if test "$embedded_ares" != "yes"; then
40591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40592$as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40594/* end confdefs.h. */
40595
40596
40597#include <ares.h>
40598 /* set of dummy functions in case c-ares was built with debug */
40599 void curl_dofree() { }
40600 void curl_sclose() { }
40601 void curl_domalloc() { }
40602 void curl_docalloc() { }
40603 void curl_socket() { }
40604
40605int main (void)
40606{
40607
40608 ares_channel channel;
40609 ares_cancel(channel); /* added in 1.2.0 */
40610 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40611 ares_dup(&channel, channel); /* added in 1.6.0 */
40612
40613 ;
40614 return 0;
40615}
40616
40617_ACEOF
40618if ac_fn_c_try_link "$LINENO"; then :
40619
40620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40621$as_echo "yes" >&6; }
40622
40623else
40624
40625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40626$as_echo "no" >&6; }
40627 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40628 CPPFLAGS="$clean_CPPFLAGS"
40629 LDFLAGS="$clean_LDFLAGS"
40630 LIBS="$clean_LIBS"
40631 # prevent usage
40632 want_ares="no"
40633
40634fi
40635rm -f core conftest.err conftest.$ac_objext \
40636 conftest$ac_exeext conftest.$ac_ext
40637 fi
40638 if test "$want_ares" = "yes"; then
40639
40640$as_echo "#define USE_ARES 1" >>confdefs.h
40641
40642 USE_ARES=1
40643
40644 curl_res_msg="c-ares"
40645 fi
40646 fi
40647
40648 if test x$embedded_ares = xyes; then
40649 USE_EMBEDDED_ARES_TRUE=
40650 USE_EMBEDDED_ARES_FALSE='#'
40651else
40652 USE_EMBEDDED_ARES_TRUE='#'
40653 USE_EMBEDDED_ARES_FALSE=
40654fi
40655
40656
40657if test "x$curl_cv_native_windows" != "xyes" &&
40658 test "x$enable_shared" = "xyes"; then
40659 build_libhostname=yes
40660else
40661 build_libhostname=no
40662fi
40663 if test x$build_libhostname = xyes; then
40664 BUILD_LIBHOSTNAME_TRUE=
40665 BUILD_LIBHOSTNAME_FALSE='#'
40666else
40667 BUILD_LIBHOSTNAME_TRUE='#'
40668 BUILD_LIBHOSTNAME_FALSE=
40669fi
40670
40671
40672if test "x$want_ares" != xyes; then
40673
40674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40675$as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40676 OPT_THRES="default"
40677 # Check whether --enable-threaded_resolver was given.
40678if test "${enable_threaded_resolver+set}" = set; then :
40679 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40680fi
40681
40682 case "$OPT_THRES" in
Elliott Hughes82be86d2017-09-20 17:00:17 -070040683 no)
40684 want_thres="no"
40685 ;;
Alex Deymo486467e2017-12-19 19:04:07 +010040686 *)
40687 want_thres="yes"
40688 ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070040689 esac
40690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40691$as_echo "$want_thres" >&6; }
40692
40693fi
40694
40695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40696$as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40697# Check whether --enable-pthreads was given.
40698if test "${enable_pthreads+set}" = set; then :
40699 enableval=$enable_pthreads; case "$enableval" in
40700 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40701$as_echo "no" >&6; }
40702 want_pthreads=no
40703 ;;
40704 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40705$as_echo "yes" >&6; }
40706 want_pthreads=yes
40707 ;;
40708 esac
40709else
40710
40711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40712$as_echo "auto" >&6; }
40713 want_pthreads=auto
40714
40715
40716fi
40717
40718
40719if test "$want_pthreads" != "no"; then
40720 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40721 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40722 fi
40723 if test "$dontwant_rt" != "no"; then
40724 if test "$want_pthreads" = "yes"; then
40725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40726$as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40727 fi
40728 want_pthreads=no
40729 fi
40730fi
40731
40732if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40733 want_pthreads=no
40734fi
40735
40736if test "$want_pthreads" != "no"; then
40737 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40738if test "x$ac_cv_header_pthread_h" = xyes; then :
40739
40740$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40741
40742 save_CFLAGS="$CFLAGS"
40743
40744 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40745if test "x$ac_cv_func_pthread_create" = xyes; then :
40746 USE_THREADS_POSIX=1
40747fi
40748
40749
Elliott Hughesa93fb052018-12-12 14:22:48 -080040750 case $host in
40751 *-hp-hpux*)
40752 USE_THREADS_POSIX=""
40753 ;;
40754 *)
40755 ;;
40756 esac
40757
Elliott Hughes82be86d2017-09-20 17:00:17 -070040758 if test "$USE_THREADS_POSIX" != "1"
40759 then
40760 CFLAGS="$CFLAGS -pthread"
40761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40762$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40763if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40764 $as_echo_n "(cached) " >&6
40765else
40766 ac_check_lib_save_LIBS=$LIBS
40767LIBS="-lpthread $LIBS"
40768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40769/* end confdefs.h. */
40770
40771
40772#ifdef __cplusplus
40773extern "C"
40774#endif
40775char pthread_create ();
40776int main (void)
40777{
40778return pthread_create ();
40779 ;
40780 return 0;
40781}
40782_ACEOF
40783if ac_fn_c_try_link "$LINENO"; then :
40784 ac_cv_lib_pthread_pthread_create=yes
40785else
40786 ac_cv_lib_pthread_pthread_create=no
40787fi
40788rm -f core conftest.err conftest.$ac_objext \
40789 conftest$ac_exeext conftest.$ac_ext
40790LIBS=$ac_check_lib_save_LIBS
40791fi
40792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40793$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40794if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40795 USE_THREADS_POSIX=1
40796else
40797 CFLAGS="$save_CFLAGS"
40798fi
40799
40800 fi
40801
40802 if test "x$USE_THREADS_POSIX" = "x1"
40803 then
40804
40805$as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40806
40807 curl_res_msg="POSIX threaded"
40808 fi
40809
40810fi
40811
40812
40813fi
40814
40815if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40816 if test "$want_pthreads" = "yes"; then
40817 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40818 fi
40819 if test "$curl_cv_native_windows" = "yes"; then
40820 USE_THREADS_WIN32=1
40821
40822$as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
40823
40824 curl_res_msg="Win32 threaded"
40825 else
40826 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
40827 fi
40828fi
40829
40830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
40831$as_echo_n "checking whether to enable verbose strings... " >&6; }
40832# Check whether --enable-verbose was given.
40833if test "${enable_verbose+set}" = set; then :
40834 enableval=$enable_verbose; case "$enableval" in
40835 no)
40836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40837$as_echo "no" >&6; }
40838
40839$as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
40840
40841 curl_verbose_msg="no"
40842 ;;
40843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40844$as_echo "yes" >&6; }
40845 ;;
40846 esac
40847else
40848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40849$as_echo "yes" >&6; }
40850
40851fi
40852
40853
40854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
40855$as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
40856# Check whether --enable-sspi was given.
40857if test "${enable_sspi+set}" = set; then :
40858 enableval=$enable_sspi; case "$enableval" in
40859 yes)
40860 if test "$curl_cv_native_windows" = "yes"; then
40861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40862$as_echo "yes" >&6; }
40863
40864$as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
40865
40866 USE_WINDOWS_SSPI=1
40867
40868 curl_sspi_msg="enabled"
40869 else
40870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40871$as_echo "no" >&6; }
40872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
40873$as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
40874 fi
40875 ;;
40876 *)
40877 if test "x$WINSSL_ENABLED" = "x1"; then
40878 # --with-winssl implies --enable-sspi
40879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40880$as_echo "yes" >&6; }
40881 else
40882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40883$as_echo "no" >&6; }
40884 fi
40885 ;;
40886 esac
40887else
40888 if test "x$WINSSL_ENABLED" = "x1"; then
40889 # --with-winssl implies --enable-sspi
40890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40891$as_echo "yes" >&6; }
40892 else
40893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40894$as_echo "no" >&6; }
40895 fi
40896
40897fi
40898
40899
40900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
40901$as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
40902# Check whether --enable-crypto-auth was given.
40903if test "${enable_crypto_auth+set}" = set; then :
40904 enableval=$enable_crypto_auth; case "$enableval" in
40905 no)
40906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40907$as_echo "no" >&6; }
40908
40909$as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
40910
40911 CURL_DISABLE_CRYPTO_AUTH=1
40912 ;;
40913 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40914$as_echo "yes" >&6; }
40915 ;;
40916 esac
40917else
40918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40919$as_echo "yes" >&6; }
40920
40921fi
40922
40923
40924
40925 OPT_NTLM_WB="default"
40926 # Check whether --enable-ntlm-wb was given.
40927if test "${enable_ntlm_wb+set}" = set; then :
40928 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
40929fi
40930
40931 want_ntlm_wb_file="/usr/bin/ntlm_auth"
40932 case "$OPT_NTLM_WB" in
40933 no)
40934 want_ntlm_wb="no"
40935 ;;
40936 default)
40937 want_ntlm_wb="yes"
40938 ;;
40939 *)
40940 want_ntlm_wb="yes"
40941 if test -n "$enableval" && test "$enableval" != "yes"; then
40942 want_ntlm_wb_file="$enableval"
40943 fi
40944 ;;
40945 esac
40946
40947
40948
40949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
40950$as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
40951 if test "$curl_cv_native_windows" = "yes" ||
40952 test "x$SSL_ENABLED" = "x"; then
40953 want_ntlm_wb_file=""
40954 want_ntlm_wb="no"
40955 fi
40956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
40957$as_echo "$want_ntlm_wb" >&6; }
40958 if test "$want_ntlm_wb" = "yes"; then
40959
40960$as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
40961
40962
40963cat >>confdefs.h <<_ACEOF
40964#define NTLM_WB_FILE "$want_ntlm_wb_file"
40965_ACEOF
40966
40967 NTLM_WB_ENABLED=1
40968 fi
40969
40970
40971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
40972$as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
40973# Check whether --enable-tls-srp was given.
40974if test "${enable_tls_srp+set}" = set; then :
40975 enableval=$enable_tls_srp; case "$enableval" in
40976 no)
40977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40978$as_echo "no" >&6; }
40979
40980$as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
40981
40982 want_tls_srp=no
40983 ;;
40984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40985$as_echo "yes" >&6; }
40986 want_tls_srp=yes
40987 ;;
40988 esac
40989else
40990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40991$as_echo "yes" >&6; }
40992 want_tls_srp=yes
40993
40994fi
40995
40996
40997if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
40998
40999$as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41000
41001 USE_TLS_SRP=1
41002 curl_tls_srp_msg="enabled"
41003fi
41004
41005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41006$as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41007# Check whether --enable-unix-sockets was given.
41008if test "${enable_unix_sockets+set}" = set; then :
41009 enableval=$enable_unix_sockets; case "$enableval" in
41010 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41011$as_echo "no" >&6; }
41012 want_unix_sockets=no
41013 ;;
41014 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41015$as_echo "yes" >&6; }
41016 want_unix_sockets=yes
41017 ;;
41018 esac
41019else
41020
41021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41022$as_echo "auto" >&6; }
41023 want_unix_sockets=auto
41024
41025
41026fi
41027
41028if test "x$want_unix_sockets" != "xno"; then
41029 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41030 #include <sys/un.h>
41031
41032"
41033if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41034
41035
41036$as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41037
41038 USE_UNIX_SOCKETS=1
41039
41040 curl_unix_sockets_msg="enabled"
41041
41042else
41043
41044 if test "x$want_unix_sockets" = "xyes"; then
41045 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41046 fi
41047
41048fi
41049
41050fi
41051
41052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41053$as_echo_n "checking whether to enable support for cookies... " >&6; }
41054# Check whether --enable-cookies was given.
41055if test "${enable_cookies+set}" = set; then :
41056 enableval=$enable_cookies; case "$enableval" in
41057 no)
41058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41059$as_echo "no" >&6; }
41060
41061$as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41062
41063 ;;
41064 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41065$as_echo "yes" >&6; }
41066 ;;
41067 esac
41068else
41069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41070$as_echo "yes" >&6; }
41071
41072fi
41073
41074
41075
41076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41077$as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41078 CFLAG_CURL_SYMBOL_HIDING=""
41079 doing_symbol_hiding="no"
41080 if test x"$curl_cv_native_windows" != "xyes" &&
41081 test "$want_symbol_hiding" = "yes" &&
41082 test "$supports_symbol_hiding" = "yes"; then
41083 doing_symbol_hiding="yes"
41084 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41085
41086cat >>confdefs.h <<_ACEOF
41087#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41088_ACEOF
41089
41090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41091$as_echo "yes" >&6; }
41092 else
41093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41094$as_echo "no" >&6; }
41095 fi
41096 if test x$doing_symbol_hiding = xyes; then
41097 DOING_CURL_SYMBOL_HIDING_TRUE=
41098 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41099else
41100 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41101 DOING_CURL_SYMBOL_HIDING_FALSE=
41102fi
41103
41104
41105
41106
Elliott Hughes82be86d2017-09-20 17:00:17 -070041107LIBCURL_LIBS=$LIBS
41108
41109
41110
41111
41112
41113BLANK_AT_MAKETIME=
41114
41115
41116 if test x$cross_compiling = xyes; then
41117 CROSSCOMPILING_TRUE=
41118 CROSSCOMPILING_FALSE='#'
41119else
41120 CROSSCOMPILING_TRUE='#'
41121 CROSSCOMPILING_FALSE=
41122fi
41123
41124
41125ENABLE_SHARED="$enable_shared"
41126
41127
41128ENABLE_STATIC="$enable_static"
41129
41130
41131
41132
41133if test "x$OPENSSL_ENABLED" = "x1"; then
41134 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41135elif test -n "$SSL_ENABLED"; then
41136 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41137fi
41138if test "x$IPV6_ENABLED" = "x1"; then
41139 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41140fi
41141if test "x$USE_UNIX_SOCKETS" = "x1"; then
41142 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41143fi
41144if test "x$HAVE_LIBZ" = "x1"; then
41145 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41146fi
Alex Deymo486467e2017-12-19 19:04:07 +010041147if test "x$HAVE_BROTLI" = "x1"; then
41148 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41149fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041150if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41151 -o "x$USE_THREADS_WIN32" = "x1"; then
41152 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41153fi
41154if test "x$IDN_ENABLED" = "x1"; then
41155 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41156fi
41157if test "x$USE_WINDOWS_SSPI" = "x1"; then
41158 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41159fi
41160
41161if test "x$HAVE_GSSAPI" = "x1"; then
41162 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41163fi
41164
41165if test "x$curl_psl_msg" = "xyes"; then
41166 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41167fi
41168
41169if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41170 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41171 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41172fi
41173
41174if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41175 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41176 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41177fi
41178
41179if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41180 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41181 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41182 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41183 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41184
41185 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41186 "x$NTLM_WB_ENABLED" = "x1"; then
41187 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41188 fi
41189 fi
41190fi
41191
41192if test "x$USE_TLS_SRP" = "x1"; then
41193 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41194fi
41195
41196if test "x$USE_NGHTTP2" = "x1"; then
41197 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41198fi
41199
Alex Deymo486467e2017-12-19 19:04:07 +010041200if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41201 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41202fi
41203
Elliott Hughes82be86d2017-09-20 17:00:17 -070041204if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41205 -o "x$NSS_ENABLED" = "x1"; then
41206 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41207fi
41208
41209
41210
41211if test "x$CURL_DISABLE_HTTP" != "x1"; then
41212 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41213 if test "x$SSL_ENABLED" = "x1"; then
41214 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41215 fi
41216fi
41217if test "x$CURL_DISABLE_FTP" != "x1"; then
41218 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41219 if test "x$SSL_ENABLED" = "x1"; then
41220 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41221 fi
41222fi
41223if test "x$CURL_DISABLE_FILE" != "x1"; then
41224 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41225fi
41226if test "x$CURL_DISABLE_TELNET" != "x1"; then
41227 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41228fi
41229if test "x$CURL_DISABLE_LDAP" != "x1"; then
41230 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41231 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41232 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41233 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41234 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41235 fi
41236 fi
41237fi
41238if test "x$CURL_DISABLE_DICT" != "x1"; then
41239 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41240fi
41241if test "x$CURL_DISABLE_TFTP" != "x1"; then
41242 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41243fi
41244if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41245 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41246fi
41247if test "x$CURL_DISABLE_POP3" != "x1"; then
41248 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41249 if test "x$SSL_ENABLED" = "x1"; then
41250 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41251 fi
41252fi
41253if test "x$CURL_DISABLE_IMAP" != "x1"; then
41254 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41255 if test "x$SSL_ENABLED" = "x1"; then
41256 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41257 fi
41258fi
41259if test "x$CURL_DISABLE_SMB" != "x1" \
41260 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41261 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41262 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41263 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41264 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41265 if test "x$SSL_ENABLED" = "x1"; then
41266 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41267 fi
41268fi
41269if test "x$CURL_DISABLE_SMTP" != "x1"; then
41270 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41271 if test "x$SSL_ENABLED" = "x1"; then
41272 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41273 fi
41274fi
41275if test "x$USE_LIBSSH2" = "x1"; then
41276 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41277 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41278fi
Elliott Hughes0128fe42018-02-27 14:57:55 -080041279if test "x$USE_LIBSSH" = "x1"; then
41280 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41281 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41282fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041283if test "x$CURL_DISABLE_RTSP" != "x1"; then
41284 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41285fi
41286if test "x$USE_LIBRTMP" = "x1"; then
41287 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41288fi
41289
41290SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41291
41292
41293
41294
41295squeeze CFLAGS
41296squeeze CPPFLAGS
41297squeeze DEFS
41298squeeze LDFLAGS
41299squeeze LIBS
41300
41301squeeze LIBCURL_LIBS
41302squeeze CURL_NETWORK_LIBS
41303squeeze CURL_NETWORK_AND_TIME_LIBS
41304
41305squeeze SUPPORT_FEATURES
41306squeeze SUPPORT_PROTOCOLS
41307
41308
41309
41310 xc_bad_var_libs=no
41311 for xc_word in $LIBS; do
41312 case "$xc_word" in
41313 -l* | --library=*)
41314 :
41315 ;;
41316 *)
41317 xc_bad_var_libs=yes
41318 ;;
41319 esac
41320 done
41321 if test $xc_bad_var_libs = yes; then
41322 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41323$as_echo "$as_me: using LIBS: $LIBS" >&6;}
41324 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41325$as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41326 fi
41327
41328
41329 xc_bad_var_ldflags=no
41330 for xc_word in $LDFLAGS; do
41331 case "$xc_word" in
41332 -D*)
41333 xc_bad_var_ldflags=yes
41334 ;;
41335 -U*)
41336 xc_bad_var_ldflags=yes
41337 ;;
41338 -I*)
41339 xc_bad_var_ldflags=yes
41340 ;;
41341 -l* | --library=*)
41342 xc_bad_var_ldflags=yes
41343 ;;
41344 esac
41345 done
41346 if test $xc_bad_var_ldflags = yes; then
41347 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41348$as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41349 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41350 for xc_word in $LDFLAGS; do
41351 case "$xc_word" in
41352 -D*)
41353 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41354$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41355 ;;
41356 -U*)
41357 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41358$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41359 ;;
41360 -I*)
41361 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41362$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41363 ;;
41364 -l* | --library=*)
41365 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41366$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41367 ;;
41368 esac
41369 done
41370 fi
41371
41372
41373 xc_bad_var_cppflags=no
41374 for xc_word in $CPPFLAGS; do
41375 case "$xc_word" in
41376 -rpath*)
41377 xc_bad_var_cppflags=yes
41378 ;;
41379 -L* | --library-path=*)
41380 xc_bad_var_cppflags=yes
41381 ;;
41382 -l* | --library=*)
41383 xc_bad_var_cppflags=yes
41384 ;;
41385 esac
41386 done
41387 if test $xc_bad_var_cppflags = yes; then
41388 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41389$as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41390 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41391 for xc_word in $CPPFLAGS; do
41392 case "$xc_word" in
41393 -rpath*)
41394 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41395$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41396 ;;
41397 -L* | --library-path=*)
41398 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41399$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41400 ;;
41401 -l* | --library=*)
41402 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41403$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41404 ;;
41405 esac
41406 done
41407 fi
41408
41409
41410 xc_bad_var_cflags=no
41411 for xc_word in $CFLAGS; do
41412 case "$xc_word" in
41413 -D*)
41414 xc_bad_var_cflags=yes
41415 ;;
41416 -U*)
41417 xc_bad_var_cflags=yes
41418 ;;
41419 -I*)
41420 xc_bad_var_cflags=yes
41421 ;;
41422 -rpath*)
41423 xc_bad_var_cflags=yes
41424 ;;
41425 -L* | --library-path=*)
41426 xc_bad_var_cflags=yes
41427 ;;
41428 -l* | --library=*)
41429 xc_bad_var_cflags=yes
41430 ;;
41431 esac
41432 done
41433 if test $xc_bad_var_cflags = yes; then
41434 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41435$as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41436 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41437 for xc_word in $CFLAGS; do
41438 case "$xc_word" in
41439 -D*)
41440 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41441$as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41442 ;;
41443 -U*)
41444 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41445$as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41446 ;;
41447 -I*)
41448 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41449$as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41450 ;;
41451 -rpath*)
41452 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41453$as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41454 ;;
41455 -L* | --library-path=*)
41456 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41457$as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41458 ;;
41459 -l* | --library=*)
41460 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41461$as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41462 ;;
41463 esac
41464 done
41465 fi
41466
41467 if test $xc_bad_var_libs = yes ||
41468 test $xc_bad_var_cflags = yes ||
41469 test $xc_bad_var_ldflags = yes ||
41470 test $xc_bad_var_cppflags = yes; then
41471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41472$as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41473 fi
41474
41475
Elliott Hughes0128fe42018-02-27 14:57:55 -080041476SSL_BACKENDS=${ssl_backends}
41477
41478
Elliott Hughes82be86d2017-09-20 17:00:17 -070041479if test "x$want_curldebug_assumed" = "xyes" &&
41480 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41481 ac_configure_args="$ac_configure_args --enable-curldebug"
41482fi
41483
Haibo Huang21926d52019-01-08 14:27:10 -080041484ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
Elliott Hughes82be86d2017-09-20 17:00:17 -070041485
41486cat >confcache <<\_ACEOF
41487# This file is a shell script that caches the results of configure
41488# tests run on this system so they can be shared between configure
41489# scripts and configure runs, see configure's option --config-cache.
41490# It is not useful on other systems. If it contains results you don't
41491# want to keep, you may remove or edit it.
41492#
41493# config.status only pays attention to the cache file if you give it
41494# the --recheck option to rerun configure.
41495#
41496# `ac_cv_env_foo' variables (set or unset) will be overridden when
41497# loading this file, other *unset* `ac_cv_foo' will be assigned the
41498# following values.
41499
41500_ACEOF
41501
41502# The following way of writing the cache mishandles newlines in values,
41503# but we know of no workaround that is simple, portable, and efficient.
41504# So, we kill variables containing newlines.
41505# Ultrix sh set writes to stderr and can't be redirected directly,
41506# and sets the high bit in the cache file unless we assign to the vars.
41507(
41508 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41509 eval ac_val=\$$ac_var
41510 case $ac_val in #(
41511 *${as_nl}*)
41512 case $ac_var in #(
41513 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41514$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41515 esac
41516 case $ac_var in #(
41517 _ | IFS | as_nl) ;; #(
41518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41519 *) { eval $ac_var=; unset $ac_var;} ;;
41520 esac ;;
41521 esac
41522 done
41523
41524 (set) 2>&1 |
41525 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41526 *${as_nl}ac_space=\ *)
41527 # `set' does not quote correctly, so add quotes: double-quote
41528 # substitution turns \\\\ into \\, and sed turns \\ into \.
41529 sed -n \
41530 "s/'/'\\\\''/g;
41531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41532 ;; #(
41533 *)
41534 # `set' quotes correctly as required by POSIX, so do not add quotes.
41535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41536 ;;
41537 esac |
41538 sort
41539) |
41540 sed '
41541 /^ac_cv_env_/b end
41542 t clear
41543 :clear
41544 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41545 t end
41546 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41547 :end' >>confcache
41548if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41549 if test -w "$cache_file"; then
41550 if test "x$cache_file" != "x/dev/null"; then
41551 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41552$as_echo "$as_me: updating cache $cache_file" >&6;}
41553 if test ! -f "$cache_file" || test -h "$cache_file"; then
41554 cat confcache >"$cache_file"
41555 else
41556 case $cache_file in #(
41557 */* | ?:*)
41558 mv -f confcache "$cache_file"$$ &&
41559 mv -f "$cache_file"$$ "$cache_file" ;; #(
41560 *)
41561 mv -f confcache "$cache_file" ;;
41562 esac
41563 fi
41564 fi
41565 else
41566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41567$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41568 fi
41569fi
41570rm -f confcache
41571
41572test "x$prefix" = xNONE && prefix=$ac_default_prefix
41573# Let make expand exec_prefix.
41574test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41575
41576DEFS=-DHAVE_CONFIG_H
41577
41578ac_libobjs=
41579ac_ltlibobjs=
41580U=
41581for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41582 # 1. Remove the extension, and $U if already installed.
41583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41586 # will be set to the directory where LIBOBJS objects are built.
41587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41589done
41590LIBOBJS=$ac_libobjs
41591
41592LTLIBOBJS=$ac_ltlibobjs
41593
41594
41595if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41596 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41597Usually this means the macro was only invoked conditionally." "$LINENO" 5
41598fi
41599if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41600 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41601Usually this means the macro was only invoked conditionally." "$LINENO" 5
41602fi
41603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41604$as_echo_n "checking that generated files are newer than configure... " >&6; }
41605 if test -n "$am_sleep_pid"; then
41606 # Hide warnings about reused PIDs.
41607 wait $am_sleep_pid 2>/dev/null
41608 fi
41609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41610$as_echo "done" >&6; }
41611if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41612 as_fn_error $? "conditional \"AMDEP\" was never defined.
41613Usually this means the macro was only invoked conditionally." "$LINENO" 5
41614fi
41615if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41616 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41617Usually this means the macro was only invoked conditionally." "$LINENO" 5
41618fi
41619 if test -n "$EXEEXT"; then
41620 am__EXEEXT_TRUE=
41621 am__EXEEXT_FALSE='#'
41622else
41623 am__EXEEXT_TRUE='#'
41624 am__EXEEXT_FALSE=
41625fi
41626
41627if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41628 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41629Usually this means the macro was only invoked conditionally." "$LINENO" 5
41630fi
41631if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41632 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41633Usually this means the macro was only invoked conditionally." "$LINENO" 5
41634fi
41635if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41636 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41637Usually this means the macro was only invoked conditionally." "$LINENO" 5
41638fi
41639if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41640 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41641Usually this means the macro was only invoked conditionally." "$LINENO" 5
41642fi
41643if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41644 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41645Usually this means the macro was only invoked conditionally." "$LINENO" 5
41646fi
41647if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41648 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41649Usually this means the macro was only invoked conditionally." "$LINENO" 5
41650fi
41651if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41652 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41653Usually this means the macro was only invoked conditionally." "$LINENO" 5
41654fi
41655if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41656 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41657Usually this means the macro was only invoked conditionally." "$LINENO" 5
41658fi
41659if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41660 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41661Usually this means the macro was only invoked conditionally." "$LINENO" 5
41662fi
Alex Deymo486467e2017-12-19 19:04:07 +010041663if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41664 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41665Usually this means the macro was only invoked conditionally." "$LINENO" 5
41666fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041667if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41668 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41669Usually this means the macro was only invoked conditionally." "$LINENO" 5
41670fi
41671if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41672 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41673Usually this means the macro was only invoked conditionally." "$LINENO" 5
41674fi
41675if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41676 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41677Usually this means the macro was only invoked conditionally." "$LINENO" 5
41678fi
41679if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41680 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41681Usually this means the macro was only invoked conditionally." "$LINENO" 5
41682fi
41683if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41684 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41685Usually this means the macro was only invoked conditionally." "$LINENO" 5
41686fi
41687if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41688 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41689Usually this means the macro was only invoked conditionally." "$LINENO" 5
41690fi
Elliott Hughes82be86d2017-09-20 17:00:17 -070041691if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41692 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41693Usually this means the macro was only invoked conditionally." "$LINENO" 5
41694fi
41695
41696: "${CONFIG_STATUS=./config.status}"
41697ac_write_fail=0
41698ac_clean_files_save=$ac_clean_files
41699ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41700{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41701$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41702as_write_fail=0
41703cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41704#! $SHELL
41705# Generated by $as_me.
41706# Run this file to recreate the current configuration.
41707# Compiler output produced by configure, useful for debugging
41708# configure, is in config.log if it exists.
41709
41710debug=false
41711ac_cs_recheck=false
41712ac_cs_silent=false
41713
41714SHELL=\${CONFIG_SHELL-$SHELL}
41715export SHELL
41716_ASEOF
41717cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41718## -------------------- ##
41719## M4sh Initialization. ##
41720## -------------------- ##
41721
41722# Be more Bourne compatible
41723DUALCASE=1; export DUALCASE # for MKS sh
41724if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41725 emulate sh
41726 NULLCMD=:
41727 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41728 # is contrary to our usage. Disable this feature.
41729 alias -g '${1+"$@"}'='"$@"'
41730 setopt NO_GLOB_SUBST
41731else
41732 case `(set -o) 2>/dev/null` in #(
41733 *posix*) :
41734 set -o posix ;; #(
41735 *) :
41736 ;;
41737esac
41738fi
41739
41740
41741as_nl='
41742'
41743export as_nl
41744# Printing a long string crashes Solaris 7 /usr/bin/printf.
41745as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41746as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41747as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41748# Prefer a ksh shell builtin over an external printf program on Solaris,
41749# but without wasting forks for bash or zsh.
41750if test -z "$BASH_VERSION$ZSH_VERSION" \
41751 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41752 as_echo='print -r --'
41753 as_echo_n='print -rn --'
41754elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41755 as_echo='printf %s\n'
41756 as_echo_n='printf %s'
41757else
41758 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41759 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41760 as_echo_n='/usr/ucb/echo -n'
41761 else
41762 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41763 as_echo_n_body='eval
41764 arg=$1;
41765 case $arg in #(
41766 *"$as_nl"*)
41767 expr "X$arg" : "X\\(.*\\)$as_nl";
41768 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41769 esac;
41770 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41771 '
41772 export as_echo_n_body
41773 as_echo_n='sh -c $as_echo_n_body as_echo'
41774 fi
41775 export as_echo_body
41776 as_echo='sh -c $as_echo_body as_echo'
41777fi
41778
41779
41780
41781# IFS
41782# We need space, tab and new line, in precisely that order. Quoting is
41783# there to prevent editors from complaining about space-tab.
41784# (If _AS_PATH_WALK were called with IFS unset, it would disable word
41785# splitting by setting IFS to empty value.)
41786IFS=" "" $as_nl"
41787
41788# Find who we are. Look in the path if we contain no directory separator.
41789as_myself=
41790case $0 in #((
41791 *[\\/]* ) as_myself=$0 ;;
41792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41793for as_dir in $PATH
41794do
41795 IFS=$as_save_IFS
41796 test -z "$as_dir" && as_dir=.
41797 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41798 done
41799IFS=$as_save_IFS
41800
41801 ;;
41802esac
41803# We did not find ourselves, most probably we were run as `sh COMMAND'
41804# in which case we are not to be found in the path.
41805if test "x$as_myself" = x; then
41806 as_myself=$0
41807fi
41808if test ! -f "$as_myself"; then
41809 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41810 exit 1
41811fi
41812
41813# Unset variables that we do not need and which cause bugs (e.g. in
41814# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41815# suppresses any "Segmentation fault" message there. '((' could
41816# trigger a bug in pdksh 5.2.14.
41817for as_var in BASH_ENV ENV MAIL MAILPATH
41818do eval test x\${$as_var+set} = xset \
41819 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
41820done
41821PS1='$ '
41822PS2='> '
41823PS4='+ '
41824
41825# NLS nuisances.
41826LC_ALL=C
41827export LC_ALL
41828LANGUAGE=C
41829export LANGUAGE
41830
41831# CDPATH.
41832(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41833
41834
41835# as_fn_error STATUS ERROR [LINENO LOG_FD]
41836# ----------------------------------------
41837# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41838# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41839# script with STATUS, using 1 if that was 0.
41840as_fn_error ()
41841{
41842 as_status=$1; test $as_status -eq 0 && as_status=1
41843 if test "$4"; then
41844 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
41845 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41846 fi
41847 $as_echo "$as_me: error: $2" >&2
41848 as_fn_exit $as_status
41849} # as_fn_error
41850
41851
41852# as_fn_set_status STATUS
41853# -----------------------
41854# Set $? to STATUS, without forking.
41855as_fn_set_status ()
41856{
41857 return $1
41858} # as_fn_set_status
41859
41860# as_fn_exit STATUS
41861# -----------------
41862# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41863as_fn_exit ()
41864{
41865 set +e
41866 as_fn_set_status $1
41867 exit $1
41868} # as_fn_exit
41869
41870# as_fn_unset VAR
41871# ---------------
41872# Portably unset VAR.
41873as_fn_unset ()
41874{
41875 { eval $1=; unset $1;}
41876}
41877as_unset=as_fn_unset
41878# as_fn_append VAR VALUE
41879# ----------------------
41880# Append the text in VALUE to the end of the definition contained in VAR. Take
41881# advantage of any shell optimizations that allow amortized linear growth over
41882# repeated appends, instead of the typical quadratic growth present in naive
41883# implementations.
41884if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
41885 eval 'as_fn_append ()
41886 {
41887 eval $1+=\$2
41888 }'
41889else
41890 as_fn_append ()
41891 {
41892 eval $1=\$$1\$2
41893 }
41894fi # as_fn_append
41895
41896# as_fn_arith ARG...
41897# ------------------
41898# Perform arithmetic evaluation on the ARGs, and store the result in the
41899# global $as_val. Take advantage of shells that can avoid forks. The arguments
41900# must be portable across $(()) and expr.
41901if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
41902 eval 'as_fn_arith ()
41903 {
41904 as_val=$(( $* ))
41905 }'
41906else
41907 as_fn_arith ()
41908 {
41909 as_val=`expr "$@" || test $? -eq 1`
41910 }
41911fi # as_fn_arith
41912
41913
41914if expr a : '\(a\)' >/dev/null 2>&1 &&
41915 test "X`expr 00001 : '.*\(...\)'`" = X001; then
41916 as_expr=expr
41917else
41918 as_expr=false
41919fi
41920
41921if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41922 as_basename=basename
41923else
41924 as_basename=false
41925fi
41926
41927if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
41928 as_dirname=dirname
41929else
41930 as_dirname=false
41931fi
41932
41933as_me=`$as_basename -- "$0" ||
41934$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41935 X"$0" : 'X\(//\)$' \| \
41936 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41937$as_echo X/"$0" |
41938 sed '/^.*\/\([^/][^/]*\)\/*$/{
41939 s//\1/
41940 q
41941 }
41942 /^X\/\(\/\/\)$/{
41943 s//\1/
41944 q
41945 }
41946 /^X\/\(\/\).*/{
41947 s//\1/
41948 q
41949 }
41950 s/.*/./; q'`
41951
41952# Avoid depending upon Character Ranges.
41953as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41954as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41955as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41956as_cr_digits='0123456789'
41957as_cr_alnum=$as_cr_Letters$as_cr_digits
41958
41959ECHO_C= ECHO_N= ECHO_T=
41960case `echo -n x` in #(((((
41961-n*)
41962 case `echo 'xy\c'` in
41963 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
41964 xy) ECHO_C='\c';;
41965 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
41966 ECHO_T=' ';;
41967 esac;;
41968*)
41969 ECHO_N='-n';;
41970esac
41971
41972rm -f conf$$ conf$$.exe conf$$.file
41973if test -d conf$$.dir; then
41974 rm -f conf$$.dir/conf$$.file
41975else
41976 rm -f conf$$.dir
41977 mkdir conf$$.dir 2>/dev/null
41978fi
41979if (echo >conf$$.file) 2>/dev/null; then
41980 if ln -s conf$$.file conf$$ 2>/dev/null; then
41981 as_ln_s='ln -s'
41982 # ... but there are two gotchas:
41983 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41984 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41985 # In both cases, we have to default to `cp -pR'.
41986 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
41987 as_ln_s='cp -pR'
41988 elif ln conf$$.file conf$$ 2>/dev/null; then
41989 as_ln_s=ln
41990 else
41991 as_ln_s='cp -pR'
41992 fi
41993else
41994 as_ln_s='cp -pR'
41995fi
41996rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
41997rmdir conf$$.dir 2>/dev/null
41998
41999
42000# as_fn_mkdir_p
42001# -------------
42002# Create "$as_dir" as a directory, including parents if necessary.
42003as_fn_mkdir_p ()
42004{
42005
42006 case $as_dir in #(
42007 -*) as_dir=./$as_dir;;
42008 esac
42009 test -d "$as_dir" || eval $as_mkdir_p || {
42010 as_dirs=
42011 while :; do
42012 case $as_dir in #(
42013 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42014 *) as_qdir=$as_dir;;
42015 esac
42016 as_dirs="'$as_qdir' $as_dirs"
42017 as_dir=`$as_dirname -- "$as_dir" ||
42018$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42019 X"$as_dir" : 'X\(//\)[^/]' \| \
42020 X"$as_dir" : 'X\(//\)$' \| \
42021 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42022$as_echo X"$as_dir" |
42023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42024 s//\1/
42025 q
42026 }
42027 /^X\(\/\/\)[^/].*/{
42028 s//\1/
42029 q
42030 }
42031 /^X\(\/\/\)$/{
42032 s//\1/
42033 q
42034 }
42035 /^X\(\/\).*/{
42036 s//\1/
42037 q
42038 }
42039 s/.*/./; q'`
42040 test -d "$as_dir" && break
42041 done
42042 test -z "$as_dirs" || eval "mkdir $as_dirs"
42043 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42044
42045
42046} # as_fn_mkdir_p
42047if mkdir -p . 2>/dev/null; then
42048 as_mkdir_p='mkdir -p "$as_dir"'
42049else
42050 test -d ./-p && rmdir ./-p
42051 as_mkdir_p=false
42052fi
42053
42054
42055# as_fn_executable_p FILE
42056# -----------------------
42057# Test if FILE is an executable regular file.
42058as_fn_executable_p ()
42059{
42060 test -f "$1" && test -x "$1"
42061} # as_fn_executable_p
42062as_test_x='test -x'
42063as_executable_p=as_fn_executable_p
42064
42065# Sed expression to map a string onto a valid CPP name.
42066as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42067
42068# Sed expression to map a string onto a valid variable name.
42069as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42070
42071
42072exec 6>&1
42073## ----------------------------------- ##
42074## Main body of $CONFIG_STATUS script. ##
42075## ----------------------------------- ##
42076_ASEOF
42077test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42078
42079cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42080# Save the log message, to keep $0 and so on meaningful, and to
42081# report actual input values of CONFIG_FILES etc. instead of their
42082# values after options handling.
42083ac_log="
42084This file was extended by curl $as_me -, which was
42085generated by GNU Autoconf 2.69. Invocation command line was
42086
42087 CONFIG_FILES = $CONFIG_FILES
42088 CONFIG_HEADERS = $CONFIG_HEADERS
42089 CONFIG_LINKS = $CONFIG_LINKS
42090 CONFIG_COMMANDS = $CONFIG_COMMANDS
42091 $ $0 $@
42092
42093on `(hostname || uname -n) 2>/dev/null | sed 1q`
42094"
42095
42096_ACEOF
42097
42098case $ac_config_files in *"
42099"*) set x $ac_config_files; shift; ac_config_files=$*;;
42100esac
42101
42102case $ac_config_headers in *"
42103"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42104esac
42105
42106
42107cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42108# Files that config.status was made for.
42109config_files="$ac_config_files"
42110config_headers="$ac_config_headers"
42111config_commands="$ac_config_commands"
42112
42113_ACEOF
42114
42115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42116ac_cs_usage="\
42117\`$as_me' instantiates files and other configuration actions
42118from templates according to the current configuration. Unless the files
42119and actions are specified as TAGs, all are instantiated by default.
42120
42121Usage: $0 [OPTION]... [TAG]...
42122
42123 -h, --help print this help, then exit
42124 -V, --version print version number and configuration settings, then exit
42125 --config print configuration, then exit
42126 -q, --quiet, --silent
42127 do not print progress messages
42128 -d, --debug don't remove temporary files
42129 --recheck update $as_me by reconfiguring in the same conditions
42130 --file=FILE[:TEMPLATE]
42131 instantiate the configuration file FILE
42132 --header=FILE[:TEMPLATE]
42133 instantiate the configuration header FILE
42134
42135Configuration files:
42136$config_files
42137
42138Configuration headers:
42139$config_headers
42140
42141Configuration commands:
42142$config_commands
42143
42144Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42145
42146_ACEOF
42147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42148ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42149ac_cs_version="\\
42150curl config.status -
42151configured by $0, generated by GNU Autoconf 2.69,
42152 with options \\"\$ac_cs_config\\"
42153
42154Copyright (C) 2012 Free Software Foundation, Inc.
42155This config.status script is free software; the Free Software Foundation
42156gives unlimited permission to copy, distribute and modify it."
42157
42158ac_pwd='$ac_pwd'
42159srcdir='$srcdir'
42160INSTALL='$INSTALL'
42161MKDIR_P='$MKDIR_P'
42162AWK='$AWK'
42163test -n "\$AWK" || AWK=awk
42164_ACEOF
42165
42166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42167# The default lists apply if the user does not specify any file.
42168ac_need_defaults=:
42169while test $# != 0
42170do
42171 case $1 in
42172 --*=?*)
42173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42175 ac_shift=:
42176 ;;
42177 --*=)
42178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42179 ac_optarg=
42180 ac_shift=:
42181 ;;
42182 *)
42183 ac_option=$1
42184 ac_optarg=$2
42185 ac_shift=shift
42186 ;;
42187 esac
42188
42189 case $ac_option in
42190 # Handling of the options.
42191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42192 ac_cs_recheck=: ;;
42193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42194 $as_echo "$ac_cs_version"; exit ;;
42195 --config | --confi | --conf | --con | --co | --c )
42196 $as_echo "$ac_cs_config"; exit ;;
42197 --debug | --debu | --deb | --de | --d | -d )
42198 debug=: ;;
42199 --file | --fil | --fi | --f )
42200 $ac_shift
42201 case $ac_optarg in
42202 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42203 '') as_fn_error $? "missing file argument" ;;
42204 esac
42205 as_fn_append CONFIG_FILES " '$ac_optarg'"
42206 ac_need_defaults=false;;
42207 --header | --heade | --head | --hea )
42208 $ac_shift
42209 case $ac_optarg in
42210 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42211 esac
42212 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42213 ac_need_defaults=false;;
42214 --he | --h)
42215 # Conflict between --help and --header
42216 as_fn_error $? "ambiguous option: \`$1'
42217Try \`$0 --help' for more information.";;
42218 --help | --hel | -h )
42219 $as_echo "$ac_cs_usage"; exit ;;
42220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42222 ac_cs_silent=: ;;
42223
42224 # This is an error.
42225 -*) as_fn_error $? "unrecognized option: \`$1'
42226Try \`$0 --help' for more information." ;;
42227
42228 *) as_fn_append ac_config_targets " $1"
42229 ac_need_defaults=false ;;
42230
42231 esac
42232 shift
42233done
42234
42235ac_configure_extra_args=
42236
42237if $ac_cs_silent; then
42238 exec 6>/dev/null
42239 ac_configure_extra_args="$ac_configure_extra_args --silent"
42240fi
42241
42242_ACEOF
42243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42244if \$ac_cs_recheck; then
42245 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42246 shift
42247 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42248 CONFIG_SHELL='$SHELL'
42249 export CONFIG_SHELL
42250 exec "\$@"
42251fi
42252
42253_ACEOF
42254cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42255exec 5>>config.log
42256{
42257 echo
42258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42259## Running $as_me. ##
42260_ASBOX
42261 $as_echo "$ac_log"
42262} >&5
42263
42264_ACEOF
42265cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42266#
42267# INIT-COMMANDS
42268#
42269AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42270
42271
42272# The HP-UX ksh and POSIX shell print the target directory to stdout
42273# if CDPATH is set.
42274(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42275
42276sed_quote_subst='$sed_quote_subst'
42277double_quote_subst='$double_quote_subst'
42278delay_variable_subst='$delay_variable_subst'
42279macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42280macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42281AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42282DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42283OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42284enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42285enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42286pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42287enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42288shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42289SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42290ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42291PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42292host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42293host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42294host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42295build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42296build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42297build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42298SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42299Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42300GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42301EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42302FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42303LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42304NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42305LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42306max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42307ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42308exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42309lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42310lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42311lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42312lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42313lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42314reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42315reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42316deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42317file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42318file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42319want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42320sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42321AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42322AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42323archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42324STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42325RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42326old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42327old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42328old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42329lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42330CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42331CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42332compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42333GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42334lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42335lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42336lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42337lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42338lt_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"`'
42339lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42340nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42341lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42342lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42343objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42344MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42345lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42346lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42347lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42348lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42349lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42350need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42351MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42352DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42353NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42354LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42355OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42356OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42357libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42358shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42359extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42360archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42361enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42362export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42363whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42364compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42365old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42366old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42367archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42368archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42369module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42370module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42371with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42372allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42373no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42374hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42375hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42376hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42377hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42378hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42379hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42380hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42381inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42382link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42383always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42384export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42385exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42386include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42387prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42388postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42389file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42390variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42391need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42392need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42393version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42394runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42395shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42396shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42397libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42398library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42399soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42400install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42401postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42402postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42403finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42404finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42405hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42406sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42407configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42408configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42409hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42410enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42411enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42412enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42413old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42414striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42415
42416LTCC='$LTCC'
42417LTCFLAGS='$LTCFLAGS'
42418compiler='$compiler_DEFAULT'
42419
42420# A function that is used when there is no print builtin or printf.
42421func_fallback_echo ()
42422{
42423 eval 'cat <<_LTECHO_EOF
42424\$1
42425_LTECHO_EOF'
42426}
42427
42428# Quote evaled strings.
42429for var in AS \
42430DLLTOOL \
42431OBJDUMP \
42432SHELL \
42433ECHO \
42434PATH_SEPARATOR \
42435SED \
42436GREP \
42437EGREP \
42438FGREP \
42439LD \
42440NM \
42441LN_S \
42442lt_SP2NL \
42443lt_NL2SP \
42444reload_flag \
42445deplibs_check_method \
42446file_magic_cmd \
42447file_magic_glob \
42448want_nocaseglob \
42449sharedlib_from_linklib_cmd \
42450AR \
42451AR_FLAGS \
42452archiver_list_spec \
42453STRIP \
42454RANLIB \
42455CC \
42456CFLAGS \
42457compiler \
42458lt_cv_sys_global_symbol_pipe \
42459lt_cv_sys_global_symbol_to_cdecl \
42460lt_cv_sys_global_symbol_to_import \
42461lt_cv_sys_global_symbol_to_c_name_address \
42462lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42463lt_cv_nm_interface \
42464nm_file_list_spec \
42465lt_cv_truncate_bin \
42466lt_prog_compiler_no_builtin_flag \
42467lt_prog_compiler_pic \
42468lt_prog_compiler_wl \
42469lt_prog_compiler_static \
42470lt_cv_prog_compiler_c_o \
42471need_locks \
42472MANIFEST_TOOL \
42473DSYMUTIL \
42474NMEDIT \
42475LIPO \
42476OTOOL \
42477OTOOL64 \
42478shrext_cmds \
42479export_dynamic_flag_spec \
42480whole_archive_flag_spec \
42481compiler_needs_object \
42482with_gnu_ld \
42483allow_undefined_flag \
42484no_undefined_flag \
42485hardcode_libdir_flag_spec \
42486hardcode_libdir_separator \
42487exclude_expsyms \
42488include_expsyms \
42489file_list_spec \
42490variables_saved_for_relink \
42491libname_spec \
42492library_names_spec \
42493soname_spec \
42494install_override_mode \
42495finish_eval \
42496old_striplib \
42497striplib; do
42498 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42499 *[\\\\\\\`\\"\\\$]*)
42500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42501 ;;
42502 *)
42503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42504 ;;
42505 esac
42506done
42507
42508# Double-quote double-evaled strings.
42509for var in reload_cmds \
42510old_postinstall_cmds \
42511old_postuninstall_cmds \
42512old_archive_cmds \
42513extract_expsyms_cmds \
42514old_archive_from_new_cmds \
42515old_archive_from_expsyms_cmds \
42516archive_cmds \
42517archive_expsym_cmds \
42518module_cmds \
42519module_expsym_cmds \
42520export_symbols_cmds \
42521prelink_cmds \
42522postlink_cmds \
42523postinstall_cmds \
42524postuninstall_cmds \
42525finish_cmds \
42526sys_lib_search_path_spec \
42527configure_time_dlsearch_path \
42528configure_time_lt_sys_library_path; do
42529 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42530 *[\\\\\\\`\\"\\\$]*)
42531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42532 ;;
42533 *)
42534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42535 ;;
42536 esac
42537done
42538
42539ac_aux_dir='$ac_aux_dir'
42540
42541# See if we are running on zsh, and set the options that allow our
42542# commands through without removal of \ escapes INIT.
42543if test -n "\${ZSH_VERSION+set}"; then
42544 setopt NO_GLOB_SUBST
42545fi
42546
42547
42548 PACKAGE='$PACKAGE'
42549 VERSION='$VERSION'
42550 RM='$RM'
42551 ofile='$ofile'
42552
42553
42554
42555
42556_ACEOF
42557
42558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42559
42560# Handling of arguments.
42561for ac_config_target in $ac_config_targets
42562do
42563 case $ac_config_target in
42564 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42565 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42566 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42567 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42568 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42569 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42570 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42571 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42572 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42573 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42574 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42575 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42576 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42577 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42578 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42579 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42580 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42581 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42582 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42583 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42584 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42585 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042586 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042587 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
Elliott Hughes82be86d2017-09-20 17:00:17 -070042588 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42589 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42590
42591 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42592 esac
42593done
42594
42595
42596# If the user did not use the arguments to specify the items to instantiate,
42597# then the envvar interface is used. Set only those that are not.
42598# We use the long form for the default assignment because of an extremely
42599# bizarre bug on SunOS 4.1.3.
42600if $ac_need_defaults; then
42601 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42602 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42603 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42604fi
42605
42606# Have a temporary directory for convenience. Make it in the build tree
42607# simply because there is no reason against having it here, and in addition,
42608# creating and moving files from /tmp can sometimes cause problems.
42609# Hook for its removal unless debugging.
42610# Note that there is a small window in which the directory will not be cleaned:
42611# after its creation but before its name has been assigned to `$tmp'.
42612$debug ||
42613{
42614 tmp= ac_tmp=
42615 trap 'exit_status=$?
42616 : "${ac_tmp:=$tmp}"
42617 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42618' 0
42619 trap 'as_fn_exit 1' 1 2 13 15
42620}
42621# Create a (secure) tmp directory for tmp files.
42622
42623{
42624 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42625 test -d "$tmp"
42626} ||
42627{
42628 tmp=./conf$$-$RANDOM
42629 (umask 077 && mkdir "$tmp")
42630} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42631ac_tmp=$tmp
42632
42633# Set up the scripts for CONFIG_FILES section.
42634# No need to generate them if there are no CONFIG_FILES.
42635# This happens for instance with `./config.status config.h'.
42636if test -n "$CONFIG_FILES"; then
42637
42638
42639ac_cr=`echo X | tr X '\015'`
42640# On cygwin, bash can eat \r inside `` if the user requested igncr.
42641# But we know of no other shell where ac_cr would be empty at this
42642# point, so we can use a bashism as a fallback.
42643if test "x$ac_cr" = x; then
42644 eval ac_cr=\$\'\\r\'
42645fi
42646ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42647if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42648 ac_cs_awk_cr='\\r'
42649else
42650 ac_cs_awk_cr=$ac_cr
42651fi
42652
42653echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42654_ACEOF
42655
42656
42657{
42658 echo "cat >conf$$subs.awk <<_ACEOF" &&
42659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42660 echo "_ACEOF"
42661} >conf$$subs.sh ||
42662 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42663ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42664ac_delim='%!_!# '
42665for ac_last_try in false false false false false :; do
42666 . ./conf$$subs.sh ||
42667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42668
42669 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42670 if test $ac_delim_n = $ac_delim_num; then
42671 break
42672 elif $ac_last_try; then
42673 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42674 else
42675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42676 fi
42677done
42678rm -f conf$$subs.sh
42679
42680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42681cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42682_ACEOF
42683sed -n '
42684h
42685s/^/S["/; s/!.*/"]=/
42686p
42687g
42688s/^[^!]*!//
42689:repl
42690t repl
42691s/'"$ac_delim"'$//
42692t delim
42693:nl
42694h
42695s/\(.\{148\}\)..*/\1/
42696t more1
42697s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42698p
42699n
42700b repl
42701:more1
42702s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42703p
42704g
42705s/.\{148\}//
42706t nl
42707:delim
42708h
42709s/\(.\{148\}\)..*/\1/
42710t more2
42711s/["\\]/\\&/g; s/^/"/; s/$/"/
42712p
42713b
42714:more2
42715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42716p
42717g
42718s/.\{148\}//
42719t delim
42720' <conf$$subs.awk | sed '
42721/^[^""]/{
42722 N
42723 s/\n//
42724}
42725' >>$CONFIG_STATUS || ac_write_fail=1
42726rm -f conf$$subs.awk
42727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42728_ACAWK
42729cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42730 for (key in S) S_is_set[key] = 1
42731 FS = ""
42732
42733}
42734{
42735 line = $ 0
42736 nfields = split(line, field, "@")
42737 substed = 0
42738 len = length(field[1])
42739 for (i = 2; i < nfields; i++) {
42740 key = field[i]
42741 keylen = length(key)
42742 if (S_is_set[key]) {
42743 value = S[key]
42744 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42745 len += length(value) + length(field[++i])
42746 substed = 1
42747 } else
42748 len += 1 + keylen
42749 }
42750
42751 print line
42752}
42753
42754_ACAWK
42755_ACEOF
42756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42757if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42758 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42759else
42760 cat
42761fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42762 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42763_ACEOF
42764
42765# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42766# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42767# trailing colons and then remove the whole line if VPATH becomes empty
42768# (actually we leave an empty line to preserve line numbers).
42769if test "x$srcdir" = x.; then
42770 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42771h
42772s///
42773s/^/:/
42774s/[ ]*$/:/
42775s/:\$(srcdir):/:/g
42776s/:\${srcdir}:/:/g
42777s/:@srcdir@:/:/g
42778s/^:*//
42779s/:*$//
42780x
42781s/\(=[ ]*\).*/\1/
42782G
42783s/\n//
42784s/^[^=]*=[ ]*$//
42785}'
42786fi
42787
42788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42789fi # test -n "$CONFIG_FILES"
42790
42791# Set up the scripts for CONFIG_HEADERS section.
42792# No need to generate them if there are no CONFIG_HEADERS.
42793# This happens for instance with `./config.status Makefile'.
42794if test -n "$CONFIG_HEADERS"; then
42795cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42796BEGIN {
42797_ACEOF
42798
42799# Transform confdefs.h into an awk script `defines.awk', embedded as
42800# here-document in config.status, that substitutes the proper values into
42801# config.h.in to produce config.h.
42802
42803# Create a delimiter string that does not exist in confdefs.h, to ease
42804# handling of long lines.
42805ac_delim='%!_!# '
42806for ac_last_try in false false :; do
42807 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42808 if test -z "$ac_tt"; then
42809 break
42810 elif $ac_last_try; then
42811 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
42812 else
42813 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42814 fi
42815done
42816
42817# For the awk script, D is an array of macro values keyed by name,
42818# likewise P contains macro parameters if any. Preserve backslash
42819# newline sequences.
42820
42821ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42822sed -n '
42823s/.\{148\}/&'"$ac_delim"'/g
42824t rset
42825:rset
42826s/^[ ]*#[ ]*define[ ][ ]*/ /
42827t def
42828d
42829:def
42830s/\\$//
42831t bsnl
42832s/["\\]/\\&/g
42833s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42834D["\1"]=" \3"/p
42835s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
42836d
42837:bsnl
42838s/["\\]/\\&/g
42839s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
42840D["\1"]=" \3\\\\\\n"\\/p
42841t cont
42842s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
42843t cont
42844d
42845:cont
42846n
42847s/.\{148\}/&'"$ac_delim"'/g
42848t clear
42849:clear
42850s/\\$//
42851t bsnlc
42852s/["\\]/\\&/g; s/^/"/; s/$/"/p
42853d
42854:bsnlc
42855s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
42856b cont
42857' <confdefs.h | sed '
42858s/'"$ac_delim"'/"\\\
42859"/g' >>$CONFIG_STATUS || ac_write_fail=1
42860
42861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42862 for (key in D) D_is_set[key] = 1
42863 FS = ""
42864}
42865/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42866 line = \$ 0
42867 split(line, arg, " ")
42868 if (arg[1] == "#") {
42869 defundef = arg[2]
42870 mac1 = arg[3]
42871 } else {
42872 defundef = substr(arg[1], 2)
42873 mac1 = arg[2]
42874 }
42875 split(mac1, mac2, "(") #)
42876 macro = mac2[1]
42877 prefix = substr(line, 1, index(line, defundef) - 1)
42878 if (D_is_set[macro]) {
42879 # Preserve the white space surrounding the "#".
42880 print prefix "define", macro P[macro] D[macro]
42881 next
42882 } else {
42883 # Replace #undef with comments. This is necessary, for example,
42884 # in the case of _POSIX_SOURCE, which is predefined and required
42885 # on some systems where configure will not decide to define it.
42886 if (defundef == "undef") {
42887 print "/*", prefix defundef, macro, "*/"
42888 next
42889 }
42890 }
42891}
42892{ print }
42893_ACAWK
42894_ACEOF
42895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42896 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
42897fi # test -n "$CONFIG_HEADERS"
42898
42899
42900eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42901shift
42902for ac_tag
42903do
42904 case $ac_tag in
42905 :[FHLC]) ac_mode=$ac_tag; continue;;
42906 esac
42907 case $ac_mode$ac_tag in
42908 :[FHL]*:*);;
42909 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
42910 :[FH]-) ac_tag=-:-;;
42911 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
42912 esac
42913 ac_save_IFS=$IFS
42914 IFS=:
42915 set x $ac_tag
42916 IFS=$ac_save_IFS
42917 shift
42918 ac_file=$1
42919 shift
42920
42921 case $ac_mode in
42922 :L) ac_source=$1;;
42923 :[FH])
42924 ac_file_inputs=
42925 for ac_f
42926 do
42927 case $ac_f in
42928 -) ac_f="$ac_tmp/stdin";;
42929 *) # Look for the file first in the build tree, then in the source tree
42930 # (if the path is not absolute). The absolute path cannot be DOS-style,
42931 # because $ac_f cannot contain `:'.
42932 test -f "$ac_f" ||
42933 case $ac_f in
42934 [\\/$]*) false;;
42935 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
42936 esac ||
42937 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42938 esac
42939 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42940 as_fn_append ac_file_inputs " '$ac_f'"
42941 done
42942
42943 # Let's still pretend it is `configure' which instantiates (i.e., don't
42944 # use $as_me), people would be surprised to read:
42945 # /* config.h. Generated by config.status. */
42946 configure_input='Generated from '`
42947 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42948 `' by configure.'
42949 if test x"$ac_file" != x-; then
42950 configure_input="$ac_file. $configure_input"
42951 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42952$as_echo "$as_me: creating $ac_file" >&6;}
42953 fi
42954 # Neutralize special characters interpreted by sed in replacement strings.
42955 case $configure_input in #(
42956 *\&* | *\|* | *\\* )
42957 ac_sed_conf_input=`$as_echo "$configure_input" |
42958 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42959 *) ac_sed_conf_input=$configure_input;;
42960 esac
42961
42962 case $ac_tag in
42963 *:-:* | *:-) cat >"$ac_tmp/stdin" \
42964 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
42965 esac
42966 ;;
42967 esac
42968
42969 ac_dir=`$as_dirname -- "$ac_file" ||
42970$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42971 X"$ac_file" : 'X\(//\)[^/]' \| \
42972 X"$ac_file" : 'X\(//\)$' \| \
42973 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42974$as_echo X"$ac_file" |
42975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42976 s//\1/
42977 q
42978 }
42979 /^X\(\/\/\)[^/].*/{
42980 s//\1/
42981 q
42982 }
42983 /^X\(\/\/\)$/{
42984 s//\1/
42985 q
42986 }
42987 /^X\(\/\).*/{
42988 s//\1/
42989 q
42990 }
42991 s/.*/./; q'`
42992 as_dir="$ac_dir"; as_fn_mkdir_p
42993 ac_builddir=.
42994
42995case "$ac_dir" in
42996.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42997*)
42998 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42999 # A ".." for each directory in $ac_dir_suffix.
43000 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43001 case $ac_top_builddir_sub in
43002 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43003 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43004 esac ;;
43005esac
43006ac_abs_top_builddir=$ac_pwd
43007ac_abs_builddir=$ac_pwd$ac_dir_suffix
43008# for backward compatibility:
43009ac_top_builddir=$ac_top_build_prefix
43010
43011case $srcdir in
43012 .) # We are building in place.
43013 ac_srcdir=.
43014 ac_top_srcdir=$ac_top_builddir_sub
43015 ac_abs_top_srcdir=$ac_pwd ;;
43016 [\\/]* | ?:[\\/]* ) # Absolute name.
43017 ac_srcdir=$srcdir$ac_dir_suffix;
43018 ac_top_srcdir=$srcdir
43019 ac_abs_top_srcdir=$srcdir ;;
43020 *) # Relative name.
43021 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43022 ac_top_srcdir=$ac_top_build_prefix$srcdir
43023 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43024esac
43025ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43026
43027
43028 case $ac_mode in
43029 :F)
43030 #
43031 # CONFIG_FILE
43032 #
43033
43034 case $INSTALL in
43035 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43036 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43037 esac
43038 ac_MKDIR_P=$MKDIR_P
43039 case $MKDIR_P in
43040 [\\/$]* | ?:[\\/]* ) ;;
43041 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43042 esac
43043_ACEOF
43044
43045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43046# If the template does not know about datarootdir, expand it.
43047# FIXME: This hack should be removed a few years after 2.60.
43048ac_datarootdir_hack=; ac_datarootdir_seen=
43049ac_sed_dataroot='
43050/datarootdir/ {
43051 p
43052 q
43053}
43054/@datadir@/p
43055/@docdir@/p
43056/@infodir@/p
43057/@localedir@/p
43058/@mandir@/p'
43059case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43060*datarootdir*) ac_datarootdir_seen=yes;;
43061*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43063$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43064_ACEOF
43065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43066 ac_datarootdir_hack='
43067 s&@datadir@&$datadir&g
43068 s&@docdir@&$docdir&g
43069 s&@infodir@&$infodir&g
43070 s&@localedir@&$localedir&g
43071 s&@mandir@&$mandir&g
43072 s&\\\${datarootdir}&$datarootdir&g' ;;
43073esac
43074_ACEOF
43075
43076# Neutralize VPATH when `$srcdir' = `.'.
43077# Shell code in configure.ac might set extrasub.
43078# FIXME: do we really want to maintain this feature?
43079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43080ac_sed_extra="$ac_vpsub
43081$extrasub
43082_ACEOF
43083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43084:t
43085/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43086s|@configure_input@|$ac_sed_conf_input|;t t
43087s&@top_builddir@&$ac_top_builddir_sub&;t t
43088s&@top_build_prefix@&$ac_top_build_prefix&;t t
43089s&@srcdir@&$ac_srcdir&;t t
43090s&@abs_srcdir@&$ac_abs_srcdir&;t t
43091s&@top_srcdir@&$ac_top_srcdir&;t t
43092s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43093s&@builddir@&$ac_builddir&;t t
43094s&@abs_builddir@&$ac_abs_builddir&;t t
43095s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43096s&@INSTALL@&$ac_INSTALL&;t t
43097s&@MKDIR_P@&$ac_MKDIR_P&;t t
43098$ac_datarootdir_hack
43099"
43100eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43101 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43102
43103test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43104 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43105 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43106 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43108which seems to be undefined. Please make sure it is defined" >&5
43109$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43110which seems to be undefined. Please make sure it is defined" >&2;}
43111
43112 rm -f "$ac_tmp/stdin"
43113 case $ac_file in
43114 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43115 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43116 esac \
43117 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43118 ;;
43119 :H)
43120 #
43121 # CONFIG_HEADER
43122 #
43123 if test x"$ac_file" != x-; then
43124 {
43125 $as_echo "/* $configure_input */" \
43126 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43127 } >"$ac_tmp/config.h" \
43128 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43129 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43130 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43131$as_echo "$as_me: $ac_file is unchanged" >&6;}
43132 else
43133 rm -f "$ac_file"
43134 mv "$ac_tmp/config.h" "$ac_file" \
43135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43136 fi
43137 else
43138 $as_echo "/* $configure_input */" \
43139 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43140 || as_fn_error $? "could not create -" "$LINENO" 5
43141 fi
43142# Compute "$ac_file"'s index in $config_headers.
43143_am_arg="$ac_file"
43144_am_stamp_count=1
43145for _am_header in $config_headers :; do
43146 case $_am_header in
43147 $_am_arg | $_am_arg:* )
43148 break ;;
43149 * )
43150 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43151 esac
43152done
43153echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43154$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43155 X"$_am_arg" : 'X\(//\)[^/]' \| \
43156 X"$_am_arg" : 'X\(//\)$' \| \
43157 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43158$as_echo X"$_am_arg" |
43159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43160 s//\1/
43161 q
43162 }
43163 /^X\(\/\/\)[^/].*/{
43164 s//\1/
43165 q
43166 }
43167 /^X\(\/\/\)$/{
43168 s//\1/
43169 q
43170 }
43171 /^X\(\/\).*/{
43172 s//\1/
43173 q
43174 }
43175 s/.*/./; q'`/stamp-h$_am_stamp_count
43176 ;;
43177
43178 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43179$as_echo "$as_me: executing $ac_file commands" >&6;}
43180 ;;
43181 esac
43182
43183
43184 case $ac_file$ac_mode in
43185 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43186 # Older Autoconf quotes --file arguments for eval, but not when files
43187 # are listed without --file. Let's play safe and only enable the eval
43188 # if we detect the quoting.
43189 case $CONFIG_FILES in
43190 *\'*) eval set x "$CONFIG_FILES" ;;
43191 *) set x $CONFIG_FILES ;;
43192 esac
43193 shift
43194 for mf
43195 do
43196 # Strip MF so we end up with the name of the file.
43197 mf=`echo "$mf" | sed -e 's/:.*$//'`
43198 # Check whether this is an Automake generated Makefile or not.
43199 # We used to match only the files named 'Makefile.in', but
43200 # some people rename them; so instead we look at the file content.
43201 # Grep'ing the first line is not enough: some people post-process
43202 # each Makefile.in and add a new line on top of each file to say so.
43203 # Grep'ing the whole file is not good either: AIX grep has a line
43204 # limit of 2048, but all sed's we know have understand at least 4000.
43205 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43206 dirpart=`$as_dirname -- "$mf" ||
43207$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43208 X"$mf" : 'X\(//\)[^/]' \| \
43209 X"$mf" : 'X\(//\)$' \| \
43210 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43211$as_echo X"$mf" |
43212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43213 s//\1/
43214 q
43215 }
43216 /^X\(\/\/\)[^/].*/{
43217 s//\1/
43218 q
43219 }
43220 /^X\(\/\/\)$/{
43221 s//\1/
43222 q
43223 }
43224 /^X\(\/\).*/{
43225 s//\1/
43226 q
43227 }
43228 s/.*/./; q'`
43229 else
43230 continue
43231 fi
43232 # Extract the definition of DEPDIR, am__include, and am__quote
43233 # from the Makefile without running 'make'.
43234 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43235 test -z "$DEPDIR" && continue
43236 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43237 test -z "$am__include" && continue
43238 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43239 # Find all dependency output files, they are included files with
43240 # $(DEPDIR) in their names. We invoke sed twice because it is the
43241 # simplest approach to changing $(DEPDIR) to its actual value in the
43242 # expansion.
43243 for file in `sed -n "
43244 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43245 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43246 # Make sure the directory exists.
43247 test -f "$dirpart/$file" && continue
43248 fdir=`$as_dirname -- "$file" ||
43249$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43250 X"$file" : 'X\(//\)[^/]' \| \
43251 X"$file" : 'X\(//\)$' \| \
43252 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43253$as_echo X"$file" |
43254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43255 s//\1/
43256 q
43257 }
43258 /^X\(\/\/\)[^/].*/{
43259 s//\1/
43260 q
43261 }
43262 /^X\(\/\/\)$/{
43263 s//\1/
43264 q
43265 }
43266 /^X\(\/\).*/{
43267 s//\1/
43268 q
43269 }
43270 s/.*/./; q'`
43271 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43272 # echo "creating $dirpart/$file"
43273 echo '# dummy' > "$dirpart/$file"
43274 done
43275 done
43276}
43277 ;;
43278 "libtool":C)
43279
43280 # See if we are running on zsh, and set the options that allow our
43281 # commands through without removal of \ escapes.
43282 if test -n "${ZSH_VERSION+set}"; then
43283 setopt NO_GLOB_SUBST
43284 fi
43285
43286 cfgfile=${ofile}T
43287 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43288 $RM "$cfgfile"
43289
43290 cat <<_LT_EOF >> "$cfgfile"
43291#! $SHELL
43292# Generated automatically by $as_me ($PACKAGE) $VERSION
43293# NOTE: Changes made to this file will be lost: look at ltmain.sh.
43294
43295# Provide generalized library-building support services.
43296# Written by Gordon Matzigkeit, 1996
43297
43298# Copyright (C) 2014 Free Software Foundation, Inc.
43299# This is free software; see the source for copying conditions. There is NO
43300# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43301
43302# GNU Libtool is free software; you can redistribute it and/or modify
43303# it under the terms of the GNU General Public License as published by
43304# the Free Software Foundation; either version 2 of of the License, or
43305# (at your option) any later version.
43306#
43307# As a special exception to the GNU General Public License, if you
43308# distribute this file as part of a program or library that is built
43309# using GNU Libtool, you may include this file under the same
43310# distribution terms that you use for the rest of that program.
43311#
43312# GNU Libtool is distributed in the hope that it will be useful, but
43313# WITHOUT ANY WARRANTY; without even the implied warranty of
43314# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43315# GNU General Public License for more details.
43316#
43317# You should have received a copy of the GNU General Public License
43318# along with this program. If not, see <http://www.gnu.org/licenses/>.
43319
43320
43321# The names of the tagged configurations supported by this script.
43322available_tags=''
43323
43324# Configured defaults for sys_lib_dlsearch_path munging.
43325: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43326
43327# ### BEGIN LIBTOOL CONFIG
43328
43329# Which release of libtool.m4 was used?
43330macro_version=$macro_version
43331macro_revision=$macro_revision
43332
43333# Assembler program.
43334AS=$lt_AS
43335
43336# DLL creation program.
43337DLLTOOL=$lt_DLLTOOL
43338
43339# Object dumper program.
43340OBJDUMP=$lt_OBJDUMP
43341
43342# Whether or not to build shared libraries.
43343build_libtool_libs=$enable_shared
43344
43345# Whether or not to build static libraries.
43346build_old_libs=$enable_static
43347
43348# What type of objects to build.
43349pic_mode=$pic_mode
43350
43351# Whether or not to optimize for fast installation.
43352fast_install=$enable_fast_install
43353
43354# Shared archive member basename,for filename based shared library versioning on AIX.
43355shared_archive_member_spec=$shared_archive_member_spec
43356
43357# Shell to use when invoking shell scripts.
43358SHELL=$lt_SHELL
43359
43360# An echo program that protects backslashes.
43361ECHO=$lt_ECHO
43362
43363# The PATH separator for the build system.
43364PATH_SEPARATOR=$lt_PATH_SEPARATOR
43365
43366# The host system.
43367host_alias=$host_alias
43368host=$host
43369host_os=$host_os
43370
43371# The build system.
43372build_alias=$build_alias
43373build=$build
43374build_os=$build_os
43375
43376# A sed program that does not truncate output.
43377SED=$lt_SED
43378
43379# Sed that helps us avoid accidentally triggering echo(1) options like -n.
43380Xsed="\$SED -e 1s/^X//"
43381
43382# A grep program that handles long lines.
43383GREP=$lt_GREP
43384
43385# An ERE matcher.
43386EGREP=$lt_EGREP
43387
43388# A literal string matcher.
43389FGREP=$lt_FGREP
43390
43391# A BSD- or MS-compatible name lister.
43392NM=$lt_NM
43393
43394# Whether we need soft or hard links.
43395LN_S=$lt_LN_S
43396
43397# What is the maximum length of a command?
43398max_cmd_len=$max_cmd_len
43399
43400# Object file suffix (normally "o").
43401objext=$ac_objext
43402
43403# Executable file suffix (normally "").
43404exeext=$exeext
43405
43406# whether the shell understands "unset".
43407lt_unset=$lt_unset
43408
43409# turn spaces into newlines.
43410SP2NL=$lt_lt_SP2NL
43411
43412# turn newlines into spaces.
43413NL2SP=$lt_lt_NL2SP
43414
43415# convert \$build file names to \$host format.
43416to_host_file_cmd=$lt_cv_to_host_file_cmd
43417
43418# convert \$build files to toolchain format.
43419to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43420
43421# Method to check whether dependent libraries are shared objects.
43422deplibs_check_method=$lt_deplibs_check_method
43423
43424# Command to use when deplibs_check_method = "file_magic".
43425file_magic_cmd=$lt_file_magic_cmd
43426
43427# How to find potential files when deplibs_check_method = "file_magic".
43428file_magic_glob=$lt_file_magic_glob
43429
43430# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43431want_nocaseglob=$lt_want_nocaseglob
43432
43433# Command to associate shared and link libraries.
43434sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43435
43436# The archiver.
43437AR=$lt_AR
43438
43439# Flags to create an archive.
43440AR_FLAGS=$lt_AR_FLAGS
43441
43442# How to feed a file listing to the archiver.
43443archiver_list_spec=$lt_archiver_list_spec
43444
43445# A symbol stripping program.
43446STRIP=$lt_STRIP
43447
43448# Commands used to install an old-style archive.
43449RANLIB=$lt_RANLIB
43450old_postinstall_cmds=$lt_old_postinstall_cmds
43451old_postuninstall_cmds=$lt_old_postuninstall_cmds
43452
43453# Whether to use a lock for old archive extraction.
43454lock_old_archive_extraction=$lock_old_archive_extraction
43455
43456# A C compiler.
43457LTCC=$lt_CC
43458
43459# LTCC compiler flags.
43460LTCFLAGS=$lt_CFLAGS
43461
43462# Take the output of nm and produce a listing of raw symbols and C names.
43463global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43464
43465# Transform the output of nm in a proper C declaration.
43466global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43467
43468# Transform the output of nm into a list of symbols to manually relocate.
43469global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43470
43471# Transform the output of nm in a C name address pair.
43472global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43473
43474# Transform the output of nm in a C name address pair when lib prefix is needed.
43475global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43476
43477# The name lister interface.
43478nm_interface=$lt_lt_cv_nm_interface
43479
43480# Specify filename containing input files for \$NM.
43481nm_file_list_spec=$lt_nm_file_list_spec
43482
43483# The root where to search for dependent libraries,and where our libraries should be installed.
43484lt_sysroot=$lt_sysroot
43485
43486# Command to truncate a binary pipe.
43487lt_truncate_bin=$lt_lt_cv_truncate_bin
43488
43489# The name of the directory that contains temporary libtool files.
43490objdir=$objdir
43491
43492# Used to examine libraries when file_magic_cmd begins with "file".
43493MAGIC_CMD=$MAGIC_CMD
43494
43495# Must we lock files when doing compilation?
43496need_locks=$lt_need_locks
43497
43498# Manifest tool.
43499MANIFEST_TOOL=$lt_MANIFEST_TOOL
43500
43501# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43502DSYMUTIL=$lt_DSYMUTIL
43503
43504# Tool to change global to local symbols on Mac OS X.
43505NMEDIT=$lt_NMEDIT
43506
43507# Tool to manipulate fat objects and archives on Mac OS X.
43508LIPO=$lt_LIPO
43509
43510# ldd/readelf like tool for Mach-O binaries on Mac OS X.
43511OTOOL=$lt_OTOOL
43512
43513# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43514OTOOL64=$lt_OTOOL64
43515
43516# Old archive suffix (normally "a").
43517libext=$libext
43518
43519# Shared library suffix (normally ".so").
43520shrext_cmds=$lt_shrext_cmds
43521
43522# The commands to extract the exported symbol list from a shared archive.
43523extract_expsyms_cmds=$lt_extract_expsyms_cmds
43524
43525# Variables whose values should be saved in libtool wrapper scripts and
43526# restored at link time.
43527variables_saved_for_relink=$lt_variables_saved_for_relink
43528
43529# Do we need the "lib" prefix for modules?
43530need_lib_prefix=$need_lib_prefix
43531
43532# Do we need a version for libraries?
43533need_version=$need_version
43534
43535# Library versioning type.
43536version_type=$version_type
43537
43538# Shared library runtime path variable.
43539runpath_var=$runpath_var
43540
43541# Shared library path variable.
43542shlibpath_var=$shlibpath_var
43543
43544# Is shlibpath searched before the hard-coded library search path?
43545shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43546
43547# Format of library name prefix.
43548libname_spec=$lt_libname_spec
43549
43550# List of archive names. First name is the real one, the rest are links.
43551# The last name is the one that the linker finds with -lNAME
43552library_names_spec=$lt_library_names_spec
43553
43554# The coded name of the library, if different from the real name.
43555soname_spec=$lt_soname_spec
43556
43557# Permission mode override for installation of shared libraries.
43558install_override_mode=$lt_install_override_mode
43559
43560# Command to use after installation of a shared archive.
43561postinstall_cmds=$lt_postinstall_cmds
43562
43563# Command to use after uninstallation of a shared archive.
43564postuninstall_cmds=$lt_postuninstall_cmds
43565
43566# Commands used to finish a libtool library installation in a directory.
43567finish_cmds=$lt_finish_cmds
43568
43569# As "finish_cmds", except a single script fragment to be evaled but
43570# not shown.
43571finish_eval=$lt_finish_eval
43572
43573# Whether we should hardcode library paths into libraries.
43574hardcode_into_libs=$hardcode_into_libs
43575
43576# Compile-time system search path for libraries.
43577sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43578
43579# Detected run-time system search path for libraries.
43580sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43581
43582# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43583configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43584
43585# Whether dlopen is supported.
43586dlopen_support=$enable_dlopen
43587
43588# Whether dlopen of programs is supported.
43589dlopen_self=$enable_dlopen_self
43590
43591# Whether dlopen of statically linked programs is supported.
43592dlopen_self_static=$enable_dlopen_self_static
43593
43594# Commands to strip libraries.
43595old_striplib=$lt_old_striplib
43596striplib=$lt_striplib
43597
43598
43599# The linker used to build libraries.
43600LD=$lt_LD
43601
43602# How to create reloadable object files.
43603reload_flag=$lt_reload_flag
43604reload_cmds=$lt_reload_cmds
43605
43606# Commands used to build an old-style archive.
43607old_archive_cmds=$lt_old_archive_cmds
43608
43609# A language specific compiler.
43610CC=$lt_compiler
43611
43612# Is the compiler the GNU compiler?
43613with_gcc=$GCC
43614
43615# Compiler flag to turn off builtin functions.
43616no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43617
43618# Additional compiler flags for building library objects.
43619pic_flag=$lt_lt_prog_compiler_pic
43620
43621# How to pass a linker flag through the compiler.
43622wl=$lt_lt_prog_compiler_wl
43623
43624# Compiler flag to prevent dynamic linking.
43625link_static_flag=$lt_lt_prog_compiler_static
43626
43627# Does compiler simultaneously support -c and -o options?
43628compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43629
43630# Whether or not to add -lc for building shared libraries.
43631build_libtool_need_lc=$archive_cmds_need_lc
43632
43633# Whether or not to disallow shared libs when runtime libs are static.
43634allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43635
43636# Compiler flag to allow reflexive dlopens.
43637export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43638
43639# Compiler flag to generate shared objects directly from archives.
43640whole_archive_flag_spec=$lt_whole_archive_flag_spec
43641
43642# Whether the compiler copes with passing no objects directly.
43643compiler_needs_object=$lt_compiler_needs_object
43644
43645# Create an old-style archive from a shared archive.
43646old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43647
43648# Create a temporary old-style archive to link instead of a shared archive.
43649old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43650
43651# Commands used to build a shared archive.
43652archive_cmds=$lt_archive_cmds
43653archive_expsym_cmds=$lt_archive_expsym_cmds
43654
43655# Commands used to build a loadable module if different from building
43656# a shared archive.
43657module_cmds=$lt_module_cmds
43658module_expsym_cmds=$lt_module_expsym_cmds
43659
43660# Whether we are building with GNU ld or not.
43661with_gnu_ld=$lt_with_gnu_ld
43662
43663# Flag that allows shared libraries with undefined symbols to be built.
43664allow_undefined_flag=$lt_allow_undefined_flag
43665
43666# Flag that enforces no undefined symbols.
43667no_undefined_flag=$lt_no_undefined_flag
43668
43669# Flag to hardcode \$libdir into a binary during linking.
43670# This must work even if \$libdir does not exist
43671hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43672
43673# Whether we need a single "-rpath" flag with a separated argument.
43674hardcode_libdir_separator=$lt_hardcode_libdir_separator
43675
43676# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43677# DIR into the resulting binary.
43678hardcode_direct=$hardcode_direct
43679
43680# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43681# DIR into the resulting binary and the resulting library dependency is
43682# "absolute",i.e impossible to change by setting \$shlibpath_var if the
43683# library is relocated.
43684hardcode_direct_absolute=$hardcode_direct_absolute
43685
43686# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43687# into the resulting binary.
43688hardcode_minus_L=$hardcode_minus_L
43689
43690# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43691# into the resulting binary.
43692hardcode_shlibpath_var=$hardcode_shlibpath_var
43693
43694# Set to "yes" if building a shared library automatically hardcodes DIR
43695# into the library and all subsequent libraries and executables linked
43696# against it.
43697hardcode_automatic=$hardcode_automatic
43698
43699# Set to yes if linker adds runtime paths of dependent libraries
43700# to runtime path list.
43701inherit_rpath=$inherit_rpath
43702
43703# Whether libtool must link a program against all its dependency libraries.
43704link_all_deplibs=$link_all_deplibs
43705
43706# Set to "yes" if exported symbols are required.
43707always_export_symbols=$always_export_symbols
43708
43709# The commands to list exported symbols.
43710export_symbols_cmds=$lt_export_symbols_cmds
43711
43712# Symbols that should not be listed in the preloaded symbols.
43713exclude_expsyms=$lt_exclude_expsyms
43714
43715# Symbols that must always be exported.
43716include_expsyms=$lt_include_expsyms
43717
43718# Commands necessary for linking programs (against libraries) with templates.
43719prelink_cmds=$lt_prelink_cmds
43720
43721# Commands necessary for finishing linking programs.
43722postlink_cmds=$lt_postlink_cmds
43723
43724# Specify filename containing input files.
43725file_list_spec=$lt_file_list_spec
43726
43727# How to hardcode a shared library path into an executable.
43728hardcode_action=$hardcode_action
43729
43730# ### END LIBTOOL CONFIG
43731
43732_LT_EOF
43733
43734 cat <<'_LT_EOF' >> "$cfgfile"
43735
43736# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43737
43738# func_munge_path_list VARIABLE PATH
43739# -----------------------------------
43740# VARIABLE is name of variable containing _space_ separated list of
43741# directories to be munged by the contents of PATH, which is string
43742# having a format:
43743# "DIR[:DIR]:"
43744# string "DIR[ DIR]" will be prepended to VARIABLE
43745# ":DIR[:DIR]"
43746# string "DIR[ DIR]" will be appended to VARIABLE
43747# "DIRP[:DIRP]::[DIRA:]DIRA"
43748# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43749# "DIRA[ DIRA]" will be appended to VARIABLE
43750# "DIR[:DIR]"
43751# VARIABLE will be replaced by "DIR[ DIR]"
43752func_munge_path_list ()
43753{
43754 case x$2 in
43755 x)
43756 ;;
43757 *:)
43758 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43759 ;;
43760 x:*)
43761 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43762 ;;
43763 *::*)
43764 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43765 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43766 ;;
43767 *)
43768 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43769 ;;
43770 esac
43771}
43772
43773
43774# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43775func_cc_basename ()
43776{
43777 for cc_temp in $*""; do
43778 case $cc_temp in
43779 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43780 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43781 \-*) ;;
43782 *) break;;
43783 esac
43784 done
43785 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43786}
43787
43788
43789# ### END FUNCTIONS SHARED WITH CONFIGURE
43790
43791_LT_EOF
43792
43793 case $host_os in
43794 aix3*)
43795 cat <<\_LT_EOF >> "$cfgfile"
43796# AIX sometimes has problems with the GCC collect2 program. For some
43797# reason, if we set the COLLECT_NAMES environment variable, the problems
43798# vanish in a puff of smoke.
43799if test set != "${COLLECT_NAMES+set}"; then
43800 COLLECT_NAMES=
43801 export COLLECT_NAMES
43802fi
43803_LT_EOF
43804 ;;
43805 esac
43806
43807
43808ltmain=$ac_aux_dir/ltmain.sh
43809
43810
43811 # We use sed instead of cat because bash on DJGPP gets confused if
43812 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43813 # text mode, it properly converts lines to CR/LF. This bash problem
43814 # is reportedly fixed, but why not run on old versions too?
43815 sed '$q' "$ltmain" >> "$cfgfile" \
43816 || (rm -f "$cfgfile"; exit 1)
43817
43818 mv -f "$cfgfile" "$ofile" ||
43819 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43820 chmod +x "$ofile"
43821
43822 ;;
43823
43824 esac
43825done # for ac_tag
43826
43827
43828as_fn_exit 0
43829_ACEOF
43830ac_clean_files=$ac_clean_files_save
43831
43832test $ac_write_fail = 0 ||
43833 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
43834
43835
43836# configure is writing to config.log, and then calls config.status.
43837# config.status does its own redirection, appending to config.log.
43838# Unfortunately, on DOS this fails, as config.log is still kept open
43839# by configure, so config.status won't be able to write to it; its
43840# output is simply discarded. So we exec the FD to /dev/null,
43841# effectively closing config.log, so it can be properly (re)opened and
43842# appended to by config.status. When coming back to configure, we
43843# need to make the FD available again.
43844if test "$no_create" != yes; then
43845 ac_cs_success=:
43846 ac_config_status_args=
43847 test "$silent" = yes &&
43848 ac_config_status_args="$ac_config_status_args --quiet"
43849 exec 5>/dev/null
43850 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43851 exec 5>>config.log
43852 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43853 # would make configure fail if this is the last instruction.
43854 $ac_cs_success || as_fn_exit 1
43855fi
43856
43857#
43858# CONFIG_SUBDIRS section.
43859#
43860if test "$no_recursion" != yes; then
43861
43862 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
43863 # so they do not pile up.
43864 ac_sub_configure_args=
43865 ac_prev=
43866 eval "set x $ac_configure_args"
43867 shift
43868 for ac_arg
43869 do
43870 if test -n "$ac_prev"; then
43871 ac_prev=
43872 continue
43873 fi
43874 case $ac_arg in
43875 -cache-file | --cache-file | --cache-fil | --cache-fi \
43876 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43877 ac_prev=cache_file ;;
43878 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43879 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43880 | --c=*)
43881 ;;
43882 --config-cache | -C)
43883 ;;
43884 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43885 ac_prev=srcdir ;;
43886 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43887 ;;
43888 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43889 ac_prev=prefix ;;
43890 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43891 ;;
43892 --disable-option-checking)
43893 ;;
43894 *)
43895 case $ac_arg in
43896 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43897 esac
43898 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
43899 esac
43900 done
43901
43902 # Always prepend --prefix to ensure using the same prefix
43903 # in subdir configurations.
43904 ac_arg="--prefix=$prefix"
43905 case $ac_arg in
43906 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
43907 esac
43908 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
43909
43910 # Pass --silent
43911 if test "$silent" = yes; then
43912 ac_sub_configure_args="--silent $ac_sub_configure_args"
43913 fi
43914
43915 # Always prepend --disable-option-checking to silence warnings, since
43916 # different subdirs can have different --enable and --with options.
43917 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
43918
43919 ac_popdir=`pwd`
43920 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43921
43922 # Do not complain, so a configure script can configure whichever
43923 # parts of a large source tree are present.
43924 test -d "$srcdir/$ac_dir" || continue
43925
43926 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
43927 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
43928 $as_echo "$ac_msg" >&6
43929 as_dir="$ac_dir"; as_fn_mkdir_p
43930 ac_builddir=.
43931
43932case "$ac_dir" in
43933.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43934*)
43935 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43936 # A ".." for each directory in $ac_dir_suffix.
43937 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43938 case $ac_top_builddir_sub in
43939 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43940 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43941 esac ;;
43942esac
43943ac_abs_top_builddir=$ac_pwd
43944ac_abs_builddir=$ac_pwd$ac_dir_suffix
43945# for backward compatibility:
43946ac_top_builddir=$ac_top_build_prefix
43947
43948case $srcdir in
43949 .) # We are building in place.
43950 ac_srcdir=.
43951 ac_top_srcdir=$ac_top_builddir_sub
43952 ac_abs_top_srcdir=$ac_pwd ;;
43953 [\\/]* | ?:[\\/]* ) # Absolute name.
43954 ac_srcdir=$srcdir$ac_dir_suffix;
43955 ac_top_srcdir=$srcdir
43956 ac_abs_top_srcdir=$srcdir ;;
43957 *) # Relative name.
43958 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43959 ac_top_srcdir=$ac_top_build_prefix$srcdir
43960 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43961esac
43962ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43963
43964
43965 cd "$ac_dir"
43966
43967 # Check for guested configure; otherwise get Cygnus style configure.
43968 if test -f "$ac_srcdir/configure.gnu"; then
43969 ac_sub_configure=$ac_srcdir/configure.gnu
43970 elif test -f "$ac_srcdir/configure"; then
43971 ac_sub_configure=$ac_srcdir/configure
43972 elif test -f "$ac_srcdir/configure.in"; then
43973 # This should be Cygnus configure.
43974 ac_sub_configure=$ac_aux_dir/configure
43975 else
43976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
43977$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43978 ac_sub_configure=
43979 fi
43980
43981 # The recursion is here.
43982 if test -n "$ac_sub_configure"; then
43983 # Make the cache file name correct relative to the subdirectory.
43984 case $cache_file in
43985 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43986 *) # Relative name.
43987 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
43988 esac
43989
43990 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43991$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43992 # The eval makes quoting arguments work.
43993 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
43994 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
43995 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
43996 fi
43997
43998 cd "$ac_popdir"
43999 done
44000fi
44001if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44003$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44004fi
44005
44006
44007
44008 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44009 if test -z "$tmp_cpp"; then
44010 tmp_cpp='cpp'
44011 fi
44012 cat >./tests/configurehelp.pm <<_EOF
44013# This is a generated file. Do not edit.
44014
44015package configurehelp;
44016
44017use strict;
44018use warnings;
44019use Exporter;
44020
44021use vars qw(
44022 @ISA
44023 @EXPORT_OK
44024 \$Cpreprocessor
44025 );
44026
44027@ISA = qw(Exporter);
44028
44029@EXPORT_OK = qw(
44030 \$Cpreprocessor
44031 );
44032
44033\$Cpreprocessor = '$tmp_cpp';
44034
440351;
44036_EOF
44037
44038
44039
44040## ---------------------------------- ##
44041## Start of distclean amending code ##
44042## ---------------------------------- ##
44043
44044for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44045do
44046
44047if test ! -f "$xc_subdir/Makefile"; then
44048 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44049 exit 1
44050fi
44051
44052# Fetch dependency tracking file list from Makefile include lines.
44053
44054xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44055xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44056
44057# --disable-dependency-tracking might have been used, consequently
44058# there is nothing to amend without a dependency tracking file list.
44059
44060if test $xc_cnt_words -gt 0; then
44061
44062{ $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44063$as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44064
44065# Build Makefile specific patch hunk.
44066
44067xc_p="$xc_subdir/xc_patch.tmp"
44068
44069xc_rm_depfiles=`echo "$xc_inc_lines" \
44070 | $SED 's%include% -rm -f%' 2>/dev/null`
44071
44072xc_dep_subdirs=`echo "$xc_inc_lines" \
44073 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44074 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44075 | sort | uniq`
44076
44077echo "$xc_rm_depfiles" >$xc_p
44078
44079for xc_dep_dir in $xc_dep_subdirs; do
44080 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44081 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44082 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44083 echo "${xc_tab}fi" >>$xc_p
44084done
44085
44086# Build Makefile patching sed scripts.
44087
44088xc_s1="$xc_subdir/xc_script_1.tmp"
44089xc_s2="$xc_subdir/xc_script_2.tmp"
44090xc_s3="$xc_subdir/xc_script_3.tmp"
44091
44092cat >$xc_s1 <<\_EOT
44093/^distclean[ ]*:/,/^[^ ][^ ]*:/{
44094 s/^.*(DEPDIR)/___xc_depdir_line___/
44095}
44096/^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44097 s/^.*(DEPDIR)/___xc_depdir_line___/
44098}
44099_EOT
44100
44101cat >$xc_s2 <<\_EOT
44102/___xc_depdir_line___$/{
44103 N
44104 /___xc_depdir_line___$/D
44105}
44106_EOT
44107
44108cat >$xc_s3 <<_EOT
44109/^___xc_depdir_line___/{
44110 r $xc_p
44111 d
44112}
44113_EOT
44114
44115# Apply patch to Makefile and cleanup.
44116
44117$SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44118$SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44119$SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44120
44121if test -f "$xc_subdir/Makefile.tmp3"; then
44122 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44123fi
44124
44125test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44126test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44127test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44128
44129test -f "$xc_p" && rm -f "$xc_p"
44130test -f "$xc_s1" && rm -f "$xc_s1"
44131test -f "$xc_s2" && rm -f "$xc_s2"
44132test -f "$xc_s3" && rm -f "$xc_s3"
44133
44134fi
44135
44136done
44137
44138## -------------------------------- ##
44139## End of distclean amending code ##
44140## -------------------------------- ##
44141
44142
44143
44144{ $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44145
Elliott Hughes82be86d2017-09-20 17:00:17 -070044146 Host setup: ${host}
44147 Install prefix: ${prefix}
44148 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044149 CFLAGS: ${CFLAGS}
44150 CPPFLAGS: ${CPPFLAGS}
44151 LDFLAGS: ${LDFLAGS}
44152 LIBS: ${LIBS}
44153
44154 curl version: ${CURLVERSION}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044155 SSL support: ${curl_ssl_msg}
44156 SSH support: ${curl_ssh_msg}
44157 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044158 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044159 GSS-API support: ${curl_gss_msg}
44160 TLS-SRP support: ${curl_tls_srp_msg}
44161 resolver: ${curl_res_msg}
44162 IPv6 support: ${curl_ipv6_msg}
44163 Unix sockets support: ${curl_unix_sockets_msg}
44164 IDN support: ${curl_idn_msg}
44165 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44166 Built-in manual: ${curl_manual_msg}
44167 --libcurl option: ${curl_libcurl_msg}
44168 Verbose errors: ${curl_verbose_msg}
44169 SSPI support: ${curl_sspi_msg}
44170 ca cert bundle: ${ca}${ca_warning}
44171 ca cert path: ${capath}${capath_warning}
44172 ca fallback: ${with_ca_fallback}
44173 LDAP support: ${curl_ldap_msg}
44174 LDAPS support: ${curl_ldaps_msg}
44175 RTSP support: ${curl_rtsp_msg}
44176 RTMP support: ${curl_rtmp_msg}
44177 metalink support: ${curl_mtlnk_msg}
44178 PSL support: ${curl_psl_msg}
44179 HTTP2 support: ${curl_h2_msg}
44180 Protocols: ${SUPPORT_PROTOCOLS}
44181" >&5
44182$as_echo "$as_me: Configured to build curl/libcurl:
44183
Elliott Hughes82be86d2017-09-20 17:00:17 -070044184 Host setup: ${host}
44185 Install prefix: ${prefix}
44186 Compiler: ${CC}
Haibo Huang21926d52019-01-08 14:27:10 -080044187 CFLAGS: ${CFLAGS}
44188 CPPFLAGS: ${CPPFLAGS}
44189 LDFLAGS: ${LDFLAGS}
44190 LIBS: ${LIBS}
44191
44192 curl version: ${CURLVERSION}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044193 SSL support: ${curl_ssl_msg}
44194 SSH support: ${curl_ssh_msg}
44195 zlib support: ${curl_zlib_msg}
Alex Deymo486467e2017-12-19 19:04:07 +010044196 brotli support: ${curl_brotli_msg}
Elliott Hughes82be86d2017-09-20 17:00:17 -070044197 GSS-API support: ${curl_gss_msg}
44198 TLS-SRP support: ${curl_tls_srp_msg}
44199 resolver: ${curl_res_msg}
44200 IPv6 support: ${curl_ipv6_msg}
44201 Unix sockets support: ${curl_unix_sockets_msg}
44202 IDN support: ${curl_idn_msg}
44203 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44204 Built-in manual: ${curl_manual_msg}
44205 --libcurl option: ${curl_libcurl_msg}
44206 Verbose errors: ${curl_verbose_msg}
44207 SSPI support: ${curl_sspi_msg}
44208 ca cert bundle: ${ca}${ca_warning}
44209 ca cert path: ${capath}${capath_warning}
44210 ca fallback: ${with_ca_fallback}
44211 LDAP support: ${curl_ldap_msg}
44212 LDAPS support: ${curl_ldaps_msg}
44213 RTSP support: ${curl_rtsp_msg}
44214 RTMP support: ${curl_rtmp_msg}
44215 metalink support: ${curl_mtlnk_msg}
44216 PSL support: ${curl_psl_msg}
44217 HTTP2 support: ${curl_h2_msg}
44218 Protocols: ${SUPPORT_PROTOCOLS}
44219" >&6;}